/* The FAQ is a dialogue tree. Everything here belongs to this page. */
.faq-page { --faq-peach: #ffbe85; --faq-line: #8391cb38; }
.faq-page [hidden] { display: none !important; }
.faq-page .faq-hero { padding-top: 42px; margin-bottom: 32px; border: 0; padding-bottom: 0; }
.faq-page .faq-hero .eyebrow { font-size: 12px; letter-spacing: 1.6px; color: var(--faq-peach); gap: 9px; margin-bottom: 20px; }
.faq-live-dot { flex: 0 0 6px; width: 6px; height: 6px; background: var(--faq-peach); box-shadow: 0 0 14px #ffbe8540; }
.faq-page .faq-hero h1 { position: relative; display: inline-block; font-size: clamp(48px, 6.2vw, 86px); line-height: 1.02; letter-spacing: -3.5px; max-width: none; margin: 0; }
.faq-page .faq-hero h1 .faq-title-star { position: absolute; top: 13px; right: -88px; font: 72px/1 Georgia, serif; color: var(--faq-peach); transform: rotate(-12deg); }
.faq-hero-bottom { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 18px; }
.faq-page .faq-hero .page-summary { font-size: 16px; line-height: 1.7; margin: 0; max-width: 55ch; }
.faq-hero-note { text-align: right; font: 11px/1.9 var(--mono); color: #a5adc8; letter-spacing: .8px; margin: 0 0 3px; }

.faq-console { position: relative; isolation: isolate; border: 1px solid #75eaf35c; background: #0c1024; box-shadow: 0 20px 65px #0003, 0 0 50px #75eaf306; border-radius: 12px; }
.faq-window-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 51px; padding: 10px 22px; border-bottom: 1px solid var(--faq-line); background: #151a31; border-radius: 12px 12px 0 0; font: 12px var(--mono); color: #cbd2e9; }
.faq-window-bar > span > span { color: var(--cyan); margin-right: 8px; }
.faq-window-actions { display: flex; align-items: center; gap: 22px; }
.faq-online { display: flex; gap: 8px; align-items: center; font-size: 10px; letter-spacing: .8px; color: #a9c1bc; }
.faq-online i { width: 5px; height: 5px; background: #a1edb3; }
.faq-page button { font-family: inherit; }
.faq-window-actions button, .faq-console-footer button { border: 0; background: none; color: #bfc8e5; font: 11px/1.5 var(--mono); cursor: pointer; padding: 7px 0; min-height: 32px; }
.faq-window-actions button[aria-pressed="true"] { color: var(--cyan); }
.faq-play-area { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.faq-terminal { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--faq-line); }
.faq-scene { position: relative; height: 220px; overflow: hidden; border-bottom: 1px solid var(--faq-line); background: radial-gradient(ellipse at 50% 75%, #75eaf312, transparent 58%), radial-gradient(ellipse at 78% 30%, #8f7cf618, transparent 50%), #090e22; }
.faq-scene::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 3px, #080b202e 3px 4px); pointer-events: none; }
.faq-scene-label { position: absolute; top: 19px; inset-inline: 22px; display: flex; justify-content: space-between; gap: 12px; color: #b0bbd8; font: 10px var(--mono); letter-spacing: .5px; z-index: 2; }
.faq-scene-label span:last-child { color: #bca3ef; }
.faq-scene-grid { position: absolute; left: -20%; right: -20%; bottom: -38px; height: 114px; transform: perspective(160px) rotateX(48deg); transform-origin: center top; background: linear-gradient(#75eaf324 1px, transparent 1px), linear-gradient(90deg, #75eaf31c 1px, transparent 1px); background-size: 32px 26px; mask-image: linear-gradient(transparent, #000 30%, transparent); }
.faq-bot { position: absolute; top: 51px; left: calc(50% - 68px); width: 136px; height: 136px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 3; touch-action: manipulation; }
.faq-bot svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 14px #75eaf325); transform-origin: 50% 90%; transition: transform .18s; }
.faq-bot:hover svg { transform: translateY(-5px) rotate(-5deg); }
.faq-bot:active svg { transform: translateY(2px) scale(.96); }
.faq-bot:focus-visible { outline-offset: 0; border-radius: 5px; }
.faq-bot-shadow { position: absolute; bottom: -3px; left: 25%; width: 50%; height: 7px; background: #75eaf320; border-radius: 50%; filter: blur(4px); z-index: -1; }
.faq-bot-eyes { transform-box: fill-box; transform-origin: center; }
.faq-mouth-happy, .faq-mouth-panic { display: none; }
[data-mood="happy"] .faq-mouth-neutral, [data-mood="panic"] .faq-mouth-neutral { display: none; }
[data-mood="happy"] .faq-mouth-happy, [data-mood="panic"] .faq-mouth-panic { display: block; }
[data-mood="thinking"] .faq-eye-right { transform: translateY(3px) scaleY(.55); transform-origin: 39px 30px; }
[data-mood="panic"] .faq-bot-aerial { fill: var(--pink); }
.faq-mood { position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; text-align: center; font: 9px var(--mono); letter-spacing: 1.4px; color: #9caec8; z-index: 2; }
.faq-orbit { position: absolute; font: 24px var(--mono); color: #75eaf340; pointer-events: none; }
.faq-orbit-one { left: 17%; top: 77px; transform: rotate(-12deg); }
.faq-orbit-two { right: 14%; top: 110px; color: #b5a0f66b; font-size: 20px; transform: rotate(12deg); }
.faq-orbit-three { right: 27%; top: 59px; color: #ffbe8566; font-size: 16px; }
.faq-coffee { position: absolute; left: calc(50% + 94px); bottom: 36px; font: 40px/1 var(--mono); color: var(--faq-peach); transform: rotate(-2deg); }
.faq-coffee-handle { font-size: 24px; margin-left: -6px; }
.faq-coffee-steam { position: absolute; top: -12px; left: 7px; font-size: 17px; color: #ffbe8570; }
.faq-response { flex: 1; padding: 25px 26px 22px; min-height: 275px; outline-offset: -4px; }
.faq-response:focus-visible { outline: 2px solid var(--cyan); }
.faq-response-tag { display: flex; gap: 8px; align-items: center; font: 10px var(--mono); letter-spacing: 1.3px; color: var(--cyan); margin: 0 0 13px; }
.faq-response-tag span { margin-left: auto; color: #75eaf365; font-size: 16px; }
.faq-page .faq-response h2 { font-size: clamp(20px, 1.85vw, 27px); line-height: 1.22; letter-spacing: -.65px; margin: 0 0 15px; max-width: 24ch; }
.faq-reply-body p { font-size: 15px; line-height: 1.85; color: #c3cbe2; margin: 0; }
.faq-reply-body a, .faq-reference a { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }
.faq-quips { border-left: 2px solid #ffbe8563; padding-left: 12px; margin: 20px 0 0; font: italic 12px/1.7 var(--mono); color: var(--faq-peach); }
.faq-terminal-footer { display: flex; justify-content: space-between; gap: 12px; padding: 13px 22px; border-top: 1px solid var(--faq-line); color: #a5b0ce; font: 9px/1.5 var(--mono); letter-spacing: .6px; }
.faq-terminal-footer > span:last-child { color: #75eaf380; letter-spacing: 3px; flex-shrink: 0; }

.faq-dialogue-menu { min-width: 0; padding: 27px 25px 23px; display: flex; flex-direction: column; }
.faq-menu-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 21px; gap: 12px; }
.faq-kicker { font: 10px/1.6 var(--mono); letter-spacing: 1.2px; color: var(--faq-peach); margin: 0 0 6px; }
.faq-page .faq-menu-heading h2 { font-size: clamp(21px, 2.1vw, 28px); letter-spacing: -.7px; line-height: 1.2; margin: 0; }
.faq-menu-hint { font: 27px var(--mono); color: #75eaf395; }
.faq-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.faq-choice { display: flex; align-items: start; gap: 9px; min-width: 0; min-height: 80px; padding: 14px 11px; text-align: left; border: 1px solid #8391cb40; border-radius: 5px; color: var(--text); background: #12172d; cursor: pointer; position: relative; transition: background .16s, border-color .16s, transform .16s; touch-action: manipulation; }
.faq-choice-number { font: 10px/1.9 var(--mono); color: #a4b0d0; flex-shrink: 0; }
.faq-choice > span:nth-child(2) { flex: 1; min-width: 0; }
.faq-choice strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.45; }
.faq-choice small { display: block; font-size: 11px; line-height: 1.6; color: #aeb8d4; margin-top: 4px; }
.faq-choice-mark { flex-shrink: 0; color: #8898c0; font-size: 14px; line-height: 1.4; }
.faq-choice.is-seen .faq-choice-number, .faq-choice.is-seen .faq-choice-mark { color: var(--cyan); }
.faq-choice[aria-pressed="true"] { border-color: var(--cyan); background: #75eaf313; box-shadow: inset 3px 0 0 var(--cyan); }
.faq-choice[aria-pressed="true"] strong { color: var(--cyan); }
.faq-choice:hover { background: #1a2340; border-color: #75eaf391; transform: translateY(-2px); }
.faq-choice:focus-visible { outline-offset: 2px; z-index: 1; }
.faq-bonus-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.faq-bonus-controls button { min-height: 42px; padding: 8px 12px; font: 10px/1.4 var(--mono); letter-spacing: .5px; cursor: pointer; border-radius: 4px; transition: background .15s; }
.faq-random { display: flex; gap: 8px; align-items: center; color: #c8d1ef; background: #171e37; border: 1px solid #8391cb55; }
.faq-random > span { font-size: 24px; line-height: 1; color: #c6b4ff; }
.faq-random:hover { background: #263050; }
.faq-panic { display: flex; align-items: center; gap: 8px; color: var(--faq-peach); background: #ffbe8507; border: 1px dashed #ffbe8580; }
.faq-panic > span { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1px solid #ffbe8580; border-radius: 50%; }
.faq-panic:hover { background: #ffbe8514; }
.faq-chaos-message { margin-top: 14px; padding: 12px 14px; border: 1px solid #ffbe8555; border-left: 3px solid var(--faq-peach); background: #ffbe850a; color: #ffd4ae; font: 12px/1.8 var(--mono); overflow-wrap: anywhere; }
.faq-quest { margin-top: auto; padding-top: 21px; }
.faq-quest > div:first-child { display: flex; justify-content: space-between; align-items: start; gap: 16px; font: 9px/1.6 var(--mono); color: #afbcd8; letter-spacing: .3px; }
#faq-progress-count { color: var(--cyan); white-space: nowrap; }
.faq-progress { height: 5px; margin-top: 10px; background: #222b45; overflow: hidden; }
.faq-progress > span { display: block; height: 100%; width: 0; background: var(--cyan); transition: width .3s ease; }
.faq-quest > p { font: 10px/1.7 var(--mono); color: #9ca9c8; margin: 9px 0 0; }
.faq-achievement { padding: 13px 15px; margin: 17px 0 0; border: 1px solid #c6b4ff80; background: #8f7cf615; color: #d4c6ff; font: 12px/1.8 var(--mono); }
.faq-console-footer { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 10px 22px; border-top: 1px solid var(--faq-line); background: #10152a; border-radius: 0 0 12px 12px; font: 9px/1.7 var(--mono); color: #aab5cf; letter-spacing: .2px; }
.faq-console-footer button { font-size: 10px; color: var(--cyan); text-align: right; }
.faq-console-footer button:hover, .faq-window-actions button:hover { color: #fff; }
.faq-console-footer button span { margin-left: 8px; }
.faq-particles { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; border-radius: 12px; }
.faq-particle { position: absolute; top: 35%; left: var(--left); width: 6px; height: 6px; background: var(--color); }

.faq-reference { margin-top: 32px; }
.faq-reference > .faq-kicker { margin-bottom: 22px; }
.faq-reference article { border-top: 1px solid var(--faq-line); padding: 24px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 30px; }
.faq-page .faq-reference h2 { font-size: 19px; line-height: 1.5; letter-spacing: -.4px; margin: 0; }
.faq-reference-body p { margin: 0; color: #c3cbe2; font-size: 15px; line-height: 1.85; }
.faq-page .faq-cta { margin-top: 38px; padding: 30px; background: linear-gradient(110deg, #75eaf309, #8f7cf608); }
.faq-page .faq-cta .eyebrow { color: var(--faq-peach); font-size: 11px; }
.faq-page .faq-cta h2 { font-size: 30px; line-height: 1.3; letter-spacing: -.7px; }
.faq-cta .gallery-cta { font: 12px/1.5 var(--mono); letter-spacing: .7px; }

/* Keep the shared radio controls compact so the deck leaves room for dialogue choices. */
.faq-page .music-player:not(.is-collapsed) { width: auto; }
.faq-page .music-player:not(.is-collapsed) .music-deck { grid-template-columns: 44px auto; align-items: center; gap: 8px; padding: 8px; }
.faq-page .music-player:not(.is-collapsed) .music-disc { width: 44px; height: 44px; }
.faq-page .music-player:not(.is-collapsed) .music-disc-hub { width: 14px; height: 14px; border-width: 3px; }
.faq-page .music-player:not(.is-collapsed) .music-station, .faq-page .music-player:not(.is-collapsed) #music-title,
.faq-page .music-player:not(.is-collapsed) #music-artist, .faq-page .music-player:not(.is-collapsed) .music-deck-footer { display: none; }
.faq-page .music-player:not(.is-collapsed) .music-controls { margin-top: 0; }
.faq-page .music-player:not(.is-collapsed) .music-controls button { width: 40px; height: 40px; min-height: 40px; padding: 10px; }

@media (prefers-reduced-motion: no-preference) {
  .faq-bot-eyes { animation: faq-blink 6s steps(1) infinite; }
  .faq-coffee-steam { animation: faq-steam 3.2s ease-in-out infinite; }
  .faq-response.is-changing .faq-reply-body, .faq-response.is-changing h2, .faq-response.is-changing .faq-quips { animation: faq-reply-in .23s ease-out both; }
  .faq-scene.is-booped .faq-bot svg { animation: faq-boop .42s ease-out; }
  .faq-scene.is-panicking .faq-bot svg { animation: faq-panic-hop .65s ease-in-out; }
  .faq-particle { animation: faq-loot 1s ease-out var(--delay) both; }
}
@keyframes faq-blink { 0%, 43%, 47%, 100% { transform: scaleY(1); } 44%, 46% { transform: scaleY(.15); } }
@keyframes faq-steam { 0%, 100% { translate: 0 2px; opacity: .6; } 50% { translate: 0 -4px; opacity: 1; } }
@keyframes faq-reply-in { from { opacity: .3; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes faq-boop { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-12px) rotate(-9deg); } 70% { transform: translateY(-4px) rotate(7deg); } }
@keyframes faq-panic-hop { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-17px) rotate(12deg); } 60% { transform: translateY(-7px) rotate(-10deg); } }
@keyframes faq-loot { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--travel), 180px) rotate(220deg); } }

@media (min-width: 1600px) {
  .faq-dialogue-menu { padding: 30px; }
  .faq-choice { min-height: 89px; padding: 16px 14px; gap: 12px; }
  .faq-choice strong { font-size: 15px; }
  .faq-choice small { font-size: 12px; }
  .faq-choice-number { font-size: 11px; }
  .faq-response { padding: 28px 32px; }
  .faq-reply-body p { font-size: 17px; }
  .faq-scene { height: 247px; }
  .faq-bot { top: 61px; width: 146px; height: 146px; left: calc(50% - 73px); }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .faq-choice { padding-inline: 10px; gap: 7px; }
  .faq-choice-number { display: none; }
  .faq-hero-note { font-size: 10px; }
  .faq-dialogue-menu { padding-inline: 18px; }
  .faq-response { padding-inline: 22px; }
}
@media (max-width: 760px) {
  .faq-page .faq-hero { padding-top: 25px; margin-bottom: 25px; }
  .faq-page .faq-hero h1 { font-size: clamp(44px, 9.7vw, 70px); letter-spacing: -2px; }
  .faq-page .faq-hero h1 .faq-title-star { font-size: 39px; right: -43px; top: 8px; }
  .faq-page .faq-hero .eyebrow { font-size: 10px; letter-spacing: 1px; margin-bottom: 16px; }
  .faq-page .faq-hero .page-summary { font-size: 14px; }
  .faq-hero-note { display: none; }
  .faq-play-area { grid-template-columns: minmax(0, 1fr); }
  .faq-terminal { border-right: 0; border-bottom: 1px solid var(--faq-line); }
  .faq-scene { height: 170px; }
  .faq-bot { top: 35px; left: calc(50% - 52px); width: 104px; height: 104px; }
  .faq-scene-label { inset-inline: 17px; top: 16px; font-size: 9px; }
  .faq-coffee { font-size: 32px; left: calc(50% + 72px); bottom: 32px; }
  .faq-coffee-handle { font-size: 20px; }
  .faq-orbit-one { top: 66px; }
  .faq-orbit-two { top: 79px; }
  .faq-orbit-three { top: 47px; }
  .faq-response { min-height: 0; padding: 21px; }
  .faq-page .faq-response h2 { font-size: 24px; max-width: 28ch; }
  .faq-reply-body p { font-size: 15px; line-height: 1.8; }
  .faq-quips { font-size: 11px; margin-top: 15px; }
  .faq-dialogue-menu { padding: 23px 18px; }
  .faq-menu-heading { margin-bottom: 18px; }
  .faq-page .faq-menu-heading h2 { font-size: 24px; }
  .faq-choice { min-height: 86px; }
  .faq-choice-number { display: none; }
  .faq-choice strong { font-size: 13px; }
  .faq-choice small { font-size: 11px; }
  .faq-choices { grid-template-columns: minmax(0, 1fr); overflow-anchor: none; }
  .faq-choices > .faq-response { margin: -5px 0 10px; border: 1px solid var(--faq-line); border-top: 0; border-radius: 0 0 8px 8px; background: #080b20; text-align: left; }
  .faq-choice[aria-expanded="true"] { border-radius: 8px 8px 0 0; }
  .faq-choice small { font-size: 13px; }
  .faq-window-bar { padding: 9px 17px; font-size: 11px; gap: 8px; }
  .faq-window-actions { gap: 14px; }
  .faq-online { font-size: 8px; gap: 5px; letter-spacing: .2px; }
  .faq-window-actions button { font-size: 10px; min-height: 34px; }
  .faq-terminal-footer { padding-inline: 18px; font-size: 8px; }
  .faq-console-footer { padding-inline: 18px; gap: 6px; flex-direction: column; align-items: start; }
  .faq-console-footer button { min-height: 38px; text-align: left; }
  .faq-reference article { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 20px; }
  .faq-page .faq-cta { padding: 24px 20px; margin-top: 26px; }
  .faq-page .faq-cta h2 { font-size: 27px; }
  .faq-cta .gallery-cta { font-size: 11px; }
}
@media (max-width: 380px) {
  .faq-page .faq-hero h1 { font-size: 41px; }
  .faq-page .faq-hero h1 .faq-title-star { font-size: 29px; right: -28px; top: 9px; }
  .faq-choices { grid-template-columns: minmax(0, 1fr); }
  .faq-choice { min-height: 70px; padding: 13px; align-items: center; gap: 11px; }
  .faq-choice-number { display: inline; }
  .faq-dialogue-menu { padding-inline: 15px; }
  .faq-online { display: none; }
  .faq-bonus-controls button { padding-inline: 9px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-page *, .faq-page *::before, .faq-page *::after { scroll-behavior: auto; }
  .faq-choice, .faq-bot svg, .faq-bonus-controls button, .faq-progress > span { transition: none; }
  .faq-choice:hover, .faq-bot:hover svg, .faq-bot:active svg { transform: none; }
}
