#sub-title {
  margin-bottom: 8px;
}

#instructions {
  margin-top: 0;
  margin-bottom: 14px;
}

.status-pill {
  background: #ffffff;
  color: #2e7d32;
  border: 2px solid #2e7d32;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: 'Shrikhand', cursive;
  font-size: 0.95rem;
}

.clip-tracker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 8px auto 14px;
  width: min(740px, calc(100% - 20px));
  overflow: hidden;
}

.video-top-row {
  width: min(760px, calc(100% - 20px));
  margin: 0 auto 8px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: 10px;
}

.video-top-row > * {
  min-width: 0;
}

.video-top-row .status-pill {
  width: 100%;
  max-width: 170px;
  text-align: center;
}

.timer-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 2px solid #2e7d32;
  border-radius: 999px;
  padding: 6px 10px;
  width: 100%;
  max-width: 220px;
  justify-content: center;
}

.timer-display {
  font-family: 'Shrikhand', cursive;
  color: #2e7d32;
  font-size: 1rem;
  min-width: 64px;
  text-align: center;
}

.timer-label {
  font-size: 0.8rem;
  color: #2e7d32;
  font-weight: 700;
}

@media (max-width: 720px) {
  .video-top-row {
    grid-template-columns: 1fr;
  }
}

.clip-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid #b8b8b8;
  background: #e6e6e6;
  color: #555;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 700;
  flex: 0 0 auto;
  cursor: pointer;
}

.clip-box .clip-index {
  font-size: 0.62rem;
  margin-bottom: 2px;
}

.clip-box .clip-mark {
  font-size: 1.05rem;
}

.clip-box.state-pending {
  background: #e6e6e6;
  border-color: #b8b8b8;
  color: #555;
}

.clip-box.state-correct {
  background: #2e7d32;
  border-color: #1e5a21;
  color: #fff;
}

.clip-box.state-wrong {
  background: #c62828;
  border-color: #8d1d1d;
  color: #fff;
}

.clip-box.is-current {
  transform: scale(1.14);
  box-shadow: 0 0 0 3px #f1c27d;
}

@media (max-width: 600px) {
  .clip-box {
    width: 36px;
    height: 36px;
  }

  .clip-box .clip-index {
    font-size: 0.56rem;
  }

  .clip-box .clip-mark {
    font-size: 0.9rem;
  }
}

.int-inv-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}

.arrow-btn {
  background-color: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'Shrikhand', cursive;
  cursor: pointer;
}

.arrow-btn:hover:not(:disabled) {
  background-color: #276a2b;
}

.arrow-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.revealed-answer {
  margin: 2px 0 12px;
  font-family: 'Shrikhand', cursive;
  color: #14351f;
  font-size: 1.05rem;
  white-space: pre-line;
}

#feedback {
  min-height: 32px;
}

#int-inv-end {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.int-inv-end-card {
  background: linear-gradient(180deg, #f7f4ea 0%, #efe7ca 100%);
  border: 2px solid #2e7d32;
  border-radius: 12px;
  padding: 18px 20px;
  width: min(520px, calc(100% - 24px));
  color: #14351f;
}

.int-inv-end-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-family: 'Shrikhand', cursive;
  font-weight: lighter;
}

.int-inv-end-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

#restart-btn {
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: 'Shrikhand', cursive;
}

#restart-btn:hover {
  background-color: #276a2b;
}

#int-inv-start-modal .modal-content {
  background: linear-gradient(180deg, #f7f4ea 0%, #efe7ca 100%);
  color: #14351f;
  border: 2px solid #2e7d32;
  max-width: 640px;
}

#int-inv-start-modal .modal-content h2 {
  font-family: 'Shrikhand', cursive;
  margin: 0 0 8px;
  color: #2e7d32;
}

#begin-int-inv-btn {
  background-color: #2e7d32;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'Shrikhand', cursive;
  cursor: pointer;
}

#begin-int-inv-btn:hover {
  background-color: #276a2b;
}

body.int-inv-round-over .guess-box,
body.int-inv-round-over #feedback {
  display: none !important;
}

#give-up-btn.is-confirming {
  background-color: #c62828;
  color: #fff;
}

#give-up-btn.is-confirming:hover:not(:disabled) {
  background-color: #8d1d1d;
}

body.int-inv-round-over #int-inv-end {
  margin: 12px 0 20px;
}
