/* Who Wants to Be a Millionaire — Quiz UI */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --gold: #f0c14b;
  --gold-bright: #ffe08a;
  --gold-dark: #b8860b;
  --blue-deep: #05031f;
  --blue-mid: #1a1060;
  --blue-pill: #0c1a4a;
  --blue-pill-hi: #163070;
  --orange: #ff8c00;
  --white: #f5f7ff;
  --line: rgba(255, 255, 255, 0.9);
  --danger: #e74c3c;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--blue-deep);
  color: var(--white);
  font-family: "Poppins", "Noto Sans TC", "Segoe UI", system-ui, sans-serif;
  touch-action: manipulation;
  user-select: none;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, #0d2a6e 0%, #04102e 55%, #01040f 100%);
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.screen.active {
  display: flex;
  opacity: 1;
}

.spotlight {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(80, 140, 255, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(240, 193, 75, 0.08) 0%, transparent 40%);
  animation: pulse-spot 6s ease-in-out infinite alternate;
}

@keyframes pulse-spot {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

/* —— Landing —— */
.landing-content, .thanks-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  max-width: 720px;
  width: 100%;
}

.brand-logo {
  display: block;
  width: min(520px, 88vw);
  height: auto;
  margin: 0 auto 0.75rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45));
}

.brand-logo.small {
  width: min(360px, 75vw);
  margin-bottom: 0.5rem;
}

.title-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.1;
}

.title-who {
  font-family: Cinzel, serif;
  font-size: clamp(0.95rem, 2.8vw, 1.25rem);
  letter-spacing: 0.35em;
  color: var(--gold);
  font-weight: 600;
}

.title-millionaire {
  font-family: Cinzel, serif;
  font-size: clamp(1.8rem, 7vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #fff6c8 0%, var(--gold) 45%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.title-sub {
  color: rgba(245, 247, 255, 0.7);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.lang-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.lang-btn {
  appearance: none;
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #1a4a9e, #0b2a6b);
  color: var(--gold-bright);
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.95rem 2.2rem;
  min-width: 180px;
  cursor: pointer;
  clip-path: polygon(8% 0%, 92% 0%, 100% 50%, 92% 100%, 8% 100%, 0% 50%);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  box-shadow: 0 0 20px rgba(240, 193, 75, 0.25);
}

.lang-btn:hover, .lang-btn:focus-visible {
  filter: brightness(1.15);
  box-shadow: 0 0 28px rgba(240, 193, 75, 0.5);
  outline: none;
}

.lang-btn:active {
  transform: scale(0.97);
}

.hint {
  margin-top: 1.25rem;
  color: rgba(245, 247, 255, 0.45);
  font-size: 0.9rem;
}

/* —— Question screen (reference style) —— */
#screen-question {
  justify-content: flex-start;
  padding: 0.75rem 1rem 1.25rem;
  gap: 0.5rem;
  background: transparent;
}

#screen-question.active {
  background: transparent;
}

.arena-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 35%, #2a1a7a 0%, #120a40 40%, #05031f 75%, #02010f 100%),
    radial-gradient(circle at 50% 100%, rgba(60, 100, 220, 0.25) 0%, transparent 55%);
  overflow: hidden;
}

.arena-rings {
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: min(140vw, 1100px);
  height: min(70vw, 560px);
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center,
      transparent 38%,
      rgba(100, 150, 255, 0.06) 42%,
      transparent 46%,
      rgba(100, 150, 255, 0.08) 52%,
      transparent 56%,
      rgba(120, 160, 255, 0.1) 64%,
      transparent 68%,
      rgba(140, 180, 255, 0.12) 78%,
      transparent 82%);
  box-shadow:
    inset 0 0 60px rgba(80, 120, 255, 0.15),
    0 0 80px rgba(40, 80, 200, 0.2);
  opacity: 0.85;
}

.q-top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  max-width: none;
  min-height: 190px;
  flex-shrink: 0;
  padding: 0.25rem 3.75rem;
}

.q-show-title {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 2.8vw, 1.45rem);
  color: #fff;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.q-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  max-width: 90%;
  font-size: 0.75rem;
  color: rgba(245, 247, 255, 0.55);
}

.q-progress {
  color: rgba(255, 220, 140, 0.9);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.q-meta-sep { opacity: 0.4; }

.q-project {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 28rem;
}

.timer-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 6;
}

.timer-fg {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.2s linear, stroke 0.3s;
}

.timer-fg.urgent { stroke: var(--danger); }

#timer-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

/* Money tree / ladder — vertical column in the header top-right, above the question */
.ladder {
  position: absolute;
  top: 0.15rem;
  right: 0.75rem;
  transform: none;
  z-index: 3;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  padding: 0.35rem 0.3rem;
  background: rgba(5, 3, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.ladder-item {
  font-family: "Poppins", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.12rem 0.5rem;
  color: rgba(245, 247, 255, 0.45);
  text-align: center;
  border-radius: 999px;
  min-width: 1.6rem;
}

.ladder-item.current {
  background: var(--orange);
  color: #1a0a00;
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.55);
}

.ladder-item.done {
  color: var(--gold);
}

.q-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 1.1rem;
  width: 100%;
  max-width: 920px;
  min-height: 0;
  overflow: visible;
}

/* Pills with connector lines */
.pill {
  position: relative;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 40, 90, 0.92) 0%, rgba(8, 18, 50, 0.95) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.pill-row {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.question-row {
  /* Full-bleed to viewport so left/right lines touch the screen edges */
  width: 100vw;
  position: relative;
  left: 0;
  margin-left: calc(50% - 50vw);
  margin-right: 0;
  padding: 0;
  transform: none;
}

.question-box {
  flex: 1;
  margin: 0 clamp(2.5rem, 8vw, 6rem);
  padding: 1.1rem 2rem;
  text-align: center;
  font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.4;
  min-height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.conn-line {
  position: absolute;
  top: 50%;
  height: 1.5px;
  background: var(--line);
  z-index: 0;
  pointer-events: none;
}

.conn-line.left { left: 0; right: 50%; }
.conn-line.right { left: 50%; right: 0; }

/* Stretch from pill edge all the way to the viewport edge */
.question-row .conn-line.left {
  left: 0;
  right: auto;
  width: clamp(2.5rem, 8vw, 6rem);
}
.question-row .conn-line.right {
  right: 0;
  left: auto;
  width: clamp(2.5rem, 8vw, 6rem);
}

.conn-dot {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.question-row .conn-dot.left {
  left: clamp(2.5rem, 8vw, 6rem);
  margin-left: -3px;
}
.question-row .conn-dot.right {
  right: clamp(2.5rem, 8vw, 6rem);
  margin-right: -3px;
}

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.4rem;
  width: 100%;
  overflow: visible;
}

.answer-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  min-height: 3.4rem;
  background: transparent;
  border: none;
  color: #fff;
  transition: filter 0.15s;
}

.answer-btn .ans-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 40, 90, 0.92) 0%, rgba(8, 18, 50, 0.95) 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  text-align: left;
  min-height: 3.4rem;
  transition: filter 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}

.answer-btn .conn-line {
  width: 12%;
}

.answer-btn .conn-line.left { left: 0; right: auto; }
.answer-btn .conn-line.right { right: 0; left: auto; }

.answer-btn .conn-dot.left { left: 12%; margin-left: -3px; }
.answer-btn .conn-dot.right { right: 12%; margin-right: -3px; }

/* Make ans-inner leave room for connector stubs */
.answer-btn .ans-inner {
  margin: 0 12%;
}

/* Outer lines extend to both screen edges (#app clips overflow) */
.answers .answer-btn:nth-child(odd) .conn-line.left {
  left: -50vw;
  right: calc(100% - 12%);
  width: auto;
}
.answers .answer-btn:nth-child(even) .conn-line.right {
  right: -50vw;
  left: calc(100% - 12%);
  width: auto;
}
/* Inner stubs between the two columns stay short */
.answers .answer-btn:nth-child(odd) .conn-line.right {
  right: 0;
  left: auto;
  width: 12%;
}
.answers .answer-btn:nth-child(even) .conn-line.left {
  left: 0;
  right: auto;
  width: 12%;
}

.answer-btn:hover:not(:disabled) .ans-inner,
.answer-btn:focus-visible:not(:disabled) .ans-inner {
  filter: brightness(1.25);
  outline: none;
}

.answer-btn:disabled {
  cursor: default;
}

.answer-btn.locked .ans-inner {
  background: linear-gradient(180deg, #ff9f1a 0%, #cc6600 100%);
  border-color: #fff;
  color: #1a0a00;
  box-shadow: 0 0 24px rgba(255, 140, 0, 0.65);
}

.answer-btn.locked .ans-letter {
  color: #1a0a00;
}

.answer-btn.removed .ans-inner {
  opacity: 0.28;
  filter: grayscale(0.6);
}

.answer-btn.removed .ans-text {
  visibility: hidden;
}

.ans-letter {
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.ans-text {
  flex: 1;
  line-height: 1.3;
}

/* Lifeline result panel */
.lifeline-panel {
  position: relative;
  z-index: 3;
  margin: 0 auto;
  max-width: 420px;
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(8, 16, 48, 0.92);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
}

.lifeline-panel[hidden] {
  display: none !important;
}

.lifeline-panel .phone-msg {
  color: #fff;
}

.lifeline-panel .audience-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 0.6rem;
  height: 110px;
  margin-top: 0.35rem;
}

.lifeline-panel .bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.lifeline-panel .bar {
  width: 100%;
  max-width: 42px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #6eb0ff, #2a5fd4);
  min-height: 2px;
  transition: height 0.4s ease;
}

.lifeline-panel .bar-pct {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
}

.lifeline-panel .bar-letter {
  font-weight: 700;
  font-size: 0.85rem;
}

/* Lifelines */
.lifelines {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.lifeline-btn {
  position: relative;
  width: 72px;
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 40, 90, 0.95), rgba(8, 18, 50, 0.98));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: filter 0.15s, transform 0.1s;
}

.lifeline-btn:hover:not(:disabled) {
  filter: brightness(1.2);
}

.lifeline-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.lifeline-btn:disabled {
  cursor: default;
  opacity: 0.85;
}

.life-label {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.life-icon {
  width: 26px;
  height: 26px;
}

.life-x {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.life-x::before,
.life-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  height: 2.5px;
  background: var(--danger);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(231, 76, 60, 0.8);
}

.life-x::before { transform: translate(-50%, -50%) rotate(35deg); }
.life-x::after { transform: translate(-50%, -50%) rotate(-35deg); }

.lifeline-btn.used .life-x {
  display: block;
}

.lifeline-btn.used {
  opacity: 0.7;
}

/* —— Thanks —— */
.thanks-title {
  font-family: Cinzel, serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--gold-bright);
  letter-spacing: 0.1em;
}

.score-label {
  color: rgba(245, 247, 255, 0.6);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.score-display {
  font-family: Cinzel, serif;
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 30px rgba(240, 193, 75, 0.5);
}

.score-total {
  font-size: 0.5em;
  color: rgba(245, 247, 255, 0.5);
}

.score-msg {
  font-size: 1.1rem;
  color: rgba(245, 247, 255, 0.85);
  max-width: 28rem;
  margin: 0.5rem 0 1rem;
}

.play-again {
  margin-top: 0.5rem;
}

/* Mute */
.mute-btn {
  position: fixed;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 50;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(240, 193, 75, 0.4);
  background: rgba(0, 0, 0, 0.45);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
}

.mute-btn.muted { opacity: 0.5; }

/* —— Tablet (iPad / iPad Air / iPad Pro 11) —— */
@media (min-width: 701px) and (max-width: 1180px) {
  .q-top {
    min-height: 200px;
  }

  .q-show-title {
    font-size: 1.6rem;
  }

  .q-meta-row {
    font-size: 0.9rem;
  }

  .q-project {
    max-width: 36rem;
  }

  .timer-wrap {
    width: 72px;
    height: 72px;
  }

  #timer-num {
    font-size: 1.45rem;
  }

  .question-box {
    font-size: clamp(1.35rem, 2.2vw, 1.5rem);
    padding: 1.25rem 2.2rem;
    min-height: 5rem;
  }

  .answer-btn {
    font-size: 1.15rem;
    min-height: 4.2rem;
  }

  .answer-btn .ans-inner {
    padding: 1rem 1.5rem;
    min-height: 4.2rem;
  }

  .ladder-item {
    font-size: 0.8rem;
    min-width: 1.8rem;
    padding: 0.14rem 0.55rem;
  }

  .lifeline-btn {
    width: 88px;
    height: 54px;
  }

  .life-label {
    font-size: 0.95rem;
  }

  .life-icon {
    width: 30px;
    height: 30px;
  }

  .lifeline-panel {
    max-width: 520px;
  }

  .lifeline-panel .audience-chart {
    height: 130px;
  }

  .q-stage {
    max-width: 960px;
  }
}

/* —— iPad portrait —— */
@media (min-width: 701px) and (max-width: 900px) and (orientation: portrait) {
  .answers {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .q-stage {
    gap: 1.5rem;
    justify-content: center;
  }

  .q-top {
    gap: 0.6rem;
  }

  .timer-wrap {
    width: 80px;
    height: 80px;
  }

  #timer-num {
    font-size: 1.6rem;
  }

  .lifelines {
    margin-top: 1rem;
    gap: 1.25rem;
  }

  .q-project {
    white-space: normal;
    max-width: 36rem;
    text-align: center;
  }

  .q-meta-row {
    flex-direction: column;
    gap: 0.15rem;
  }

  .q-meta-sep {
    display: none;
  }

  /* Single-column: both sides of every answer reach the screen edges */
  .answer-btn .ans-inner {
    margin: 0 10%;
  }

  .answer-btn .conn-dot.left { left: 10%; }
  .answer-btn .conn-dot.right { right: 10%; }

  .answers .answer-btn:nth-child(n) .conn-line.left {
    left: -50vw;
    right: calc(100% - 10%);
    width: auto;
  }

  .answers .answer-btn:nth-child(n) .conn-line.right {
    right: -50vw;
    left: calc(100% - 10%);
    width: auto;
  }
}

/* —— iPad landscape —— */
@media (min-width: 901px) and (max-width: 1180px) and (orientation: landscape) {
  .q-top {
    min-height: 170px;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
  }

  .ladder {
    gap: 1px;
    padding: 0.25rem 0.25rem;
  }

  .ladder-item {
    font-size: 0.65rem;
    padding: 0.08rem 0.4rem;
    min-width: 1.45rem;
  }

  .q-stage {
    max-width: 960px;
    gap: 0.85rem;
  }

  .question-box {
    min-height: 4.2rem;
    padding: 0.9rem 2rem;
  }

  .lifeline-panel {
    max-height: 150px;
    overflow: hidden;
  }

  .lifeline-panel .audience-chart {
    height: 100px;
  }

  .answer-btn .ans-inner {
    padding: 0.75rem 1.25rem;
    min-height: 3.5rem;
  }
}

/* —— Phone —— */
@media (max-width: 700px) {
  .q-top {
    min-height: 160px;
    padding: 0.2rem 2.75rem;
  }

  .q-show-title {
    font-size: 1rem;
    padding-right: 0.25rem;
  }

  .answers {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .ladder {
    top: 0.1rem;
    right: 0.4rem;
    transform: none;
    flex-direction: column-reverse;
    gap: 1px;
    padding: 0.25rem 0.22rem;
  }

  .ladder-item {
    min-width: 1.35rem;
    padding: 0.08rem 0.35rem;
    font-size: 0.6rem;
  }

  .q-stage {
    gap: 0.85rem;
  }

  /* Single-column: lines to both screen edges */
  .answers .answer-btn:nth-child(n) .conn-line.left {
    left: -50vw;
    right: calc(100% - 8%);
    width: auto;
  }

  .answers .answer-btn:nth-child(n) .conn-line.right {
    right: -50vw;
    left: calc(100% - 8%);
    width: auto;
  }

  .question-box {
    padding: 0.9rem 1.3rem;
    margin: 0 1.5rem;
    font-size: 0.95rem;
  }

  .question-row .conn-line.left,
  .question-row .conn-line.right {
    width: 1.5rem;
  }

  .question-row .conn-dot.left { left: 1.5rem; }
  .question-row .conn-dot.right { right: 1.5rem; }

  .answer-btn .ans-inner {
    margin: 0 8%;
    padding: 0.75rem 1.1rem;
  }

  .answer-btn .conn-dot.left { left: 8%; }
  .answer-btn .conn-dot.right { right: 8%; }

  .lifelines { gap: 0.75rem; }
  .lifeline-btn { width: 64px; height: 40px; }
}

@media (max-height: 700px) {
  .brand-logo { width: min(380px, 70vw); margin-bottom: 0.4rem; }
  .brand-logo.small { width: min(280px, 60vw); }
  .title-sub { margin-bottom: 0.4rem; }
  .timer-wrap { width: 48px; height: 48px; }
  #timer-num { font-size: 1.05rem; }
  .q-stage { gap: 0.7rem; }

  .q-top {
    min-height: 150px;
  }

  .ladder-item {
    font-size: 0.6rem;
    padding: 0.06rem 0.35rem;
  }
}
