:root {
  --ink: #f8f5ff;
  --muted: #c5bde0;
  --violet: #8c5cff;
  --violet-bright: #a978ff;
  --pink: #ff64ce;
  --cyan: #6ee7ff;
  --panel: rgba(19, 10, 52, 0.78);
  --panel-strong: rgba(18, 8, 50, 0.94);
  --line: rgba(255, 255, 255, 0.15);
  --shadow: 0 24px 80px rgba(5, 1, 24, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: #10072f;
  font-family: "DM Sans", system-ui, sans-serif;
  overflow-x: hidden;
}

button { font: inherit; }

.scene {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(180deg, rgba(12, 5, 39, 0.1), #10072f 95%), url("assets/journey-background-desktop.webp") center top / cover fixed;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 2, 28, 0.18), rgba(10, 4, 34, 0.62) 48%, #10072f 100%);
}

.ambient { position: fixed; width: 32rem; height: 32rem; border-radius: 50%; filter: blur(110px); opacity: .22; z-index: -2; pointer-events: none; }
.ambient-one { top: 5%; left: -12rem; background: #853cff; }
.ambient-two { right: -12rem; top: 35%; background: #ef42bd; }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 32px 0 28px; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.25); border-radius: 15px; background: linear-gradient(145deg, var(--violet), #d251cf); box-shadow: 0 10px 30px rgba(138,75,255,.35); font-size: 1.45rem; }
.eyebrow, .section-kicker, .modal-kicker { margin: 0 0 4px; color: #d4c9f0; font-size: .72rem; font-weight: 700; letter-spacing: .16em; }
h1, h2, h3 { font-family: "Syne", sans-serif; }
h1 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 600; font-size: clamp(1.55rem, 3.3vw, 2.4rem); line-height: 1.18; letter-spacing: -.025em; color: #fff2fc; text-shadow: 0 2px 20px rgba(220,155,255,.24); }
.destination { padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(15,7,43,.55); backdrop-filter: blur(14px); text-align: right; }
.destination span { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.destination strong { display: block; margin-top: 2px; font-size: .95rem; }

.journey-card { position: relative; padding: clamp(22px, 4vw, 44px); border: 1px solid rgba(255,255,255,.17); border-radius: 28px; background: linear-gradient(145deg, rgba(25,12,67,.86), rgba(16,7,46,.74)); box-shadow: var(--shadow); backdrop-filter: blur(18px); overflow: hidden; }
.journey-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 82% 5%, rgba(185,88,255,.18), transparent 34%); }
.journey-head { position: relative; display: grid; grid-template-columns: 1fr minmax(240px, 34%); gap: 40px; align-items: end; }
.journey-head h2 { margin: 4px 0 8px; max-width: 680px; font-size: clamp(1.8rem, 4vw, 3.3rem); line-height: .98; letter-spacing: -.055em; }
.journey-message { margin: 0; color: var(--muted); font-size: .98rem; }
.progress-wrap { padding-bottom: 4px; }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--muted); font-size: .84rem; }
.progress-copy strong { color: #fff; }
.progress-track { height: 8px; border-radius: 10px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress-track span { display: block; width: 3.23%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--pink)); box-shadow: 0 0 18px var(--pink); transition: width .8s ease; }

.legend { position: relative; display: flex; flex-wrap: wrap; gap: 18px; margin: 26px 0 22px; padding-top: 20px; border-top: 1px solid var(--line); color: #cfc8e3; font-size: .78rem; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: #625b76; }
.legend-dot.current { background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.legend-dot.unlocked { background: var(--violet-bright); }

.road { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 16px; padding: 22px; border-radius: 24px; background: rgba(7,3,27,.3); isolation: isolate; }
.road::before { content: ""; position: absolute; inset: 48px 6%; border: 3px dashed rgba(199,179,255,.17); border-radius: 45px; z-index: -1; }
.day { position: relative; min-width: 0; min-height: 116px; padding: 12px; border: 1px solid rgba(255,255,255,.11); border-radius: 18px; background: linear-gradient(160deg, rgba(61,43,105,.86), rgba(31,20,67,.9)); box-shadow: 0 10px 24px rgba(6,2,24,.22); transition: transform .25s ease, border-color .25s ease, filter .25s ease; }
.day:nth-child(n+7):nth-child(-n+12), .day:nth-child(n+19):nth-child(-n+24) { transform: translateY(8px); }
.day:hover { border-color: rgba(180,141,255,.65); }
.day.locked { filter: saturate(.35); opacity: .54; }
.day.unlocked { border-color: rgba(163,111,255,.34); }
.day.current { border-color: #fa6ad6; box-shadow: 0 0 0 2px rgba(250,106,214,.16), 0 14px 38px rgba(190,63,220,.28); transform: translateY(-4px); }
.day.current::before { content: "Você"; position: absolute; z-index: 3; top: -14px; left: 50%; translate: -50%; padding: 4px 9px; border-radius: 20px; color: #2c0b36; background: #fface8; font-size: .68rem; font-weight: 800; box-shadow: 0 6px 15px rgba(0,0,0,.3); }
.day-number { display: flex; align-items: baseline; gap: 5px; }
.day-number strong { font-family: "Syne", sans-serif; font-size: 1.62rem; line-height: 1; }
.day-number span { color: #bcb2d2; font-size: .67rem; text-transform: uppercase; letter-spacing: .08em; }
.day-actions { display: flex; gap: 8px; margin-top: 18px; }
.icon-btn { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; color: #fff; background: rgba(255,255,255,.08); cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.icon-btn:hover { transform: translateY(-2px); background: rgba(168,108,255,.34); border-color: rgba(255,255,255,.35); }
.icon-btn:focus-visible, .modal-close:focus-visible, .modal-action:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.icon-btn:disabled, .icon-btn[aria-disabled="true"] { cursor: not-allowed; opacity: .48; transform: none; }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.day-stadium { grid-column: span 2; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 17px; background: linear-gradient(145deg, rgba(121,60,174,.96), rgba(101,41,151,.94)); border-color: rgba(255,194,238,.45); overflow: hidden; }
.day-stadium::after { content: "🏟️"; font-size: 3.2rem; filter: drop-shadow(0 10px 10px rgba(0,0,0,.26)); }
.stadium-label { margin: 8px 0 0; color: #f4c7ed; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.footer-note { margin: 20px 0 0; color: #bbb0d5; text-align: center; font-size: .84rem; }
.footer-note span { color: #ff72d3; }

.modal { width: min(480px, calc(100% - 32px)); padding: 34px; border: 1px solid rgba(255,255,255,.17); border-radius: 26px; color: var(--ink); background: var(--panel-strong); box-shadow: 0 30px 100px #050113; text-align: center; }
.modal::backdrop { background: rgba(5,1,19,.76); backdrop-filter: blur(9px); }
.modal[open] { animation: modal-in .25s ease both; }
.modal-close { position: absolute; top: 15px; right: 15px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: white; background: rgba(255,255,255,.07); cursor: pointer; font-size: 1.4rem; }
.modal-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 20px; font-family: "Syne"; font-size: 1.8rem; font-weight: 800; }
.modal-icon.question { background: linear-gradient(145deg, #7849ff, #b970ff); box-shadow: 0 12px 30px rgba(126,72,255,.32); }
.modal-icon.music { background: linear-gradient(145deg, #d643b8, #ff77c8); box-shadow: 0 12px 30px rgba(228,65,182,.3); }
.modal h3 { margin: 7px 0 12px; font-size: 1.8rem; letter-spacing: -.04em; }
.modal > p:not(.modal-kicker):not(.music-note) { color: #ddd5ed; font-size: 1.04rem; line-height: 1.65; }
.modal-action { margin-top: 12px; padding: 12px 18px; border: 0; border-radius: 12px; color: white; background: linear-gradient(100deg, var(--violet), #bb57dc); cursor: pointer; font-weight: 700; }
.music-note { margin: -3px 0 18px; color: var(--muted); }
#music-link { display: inline-block; margin-top: 16px; text-decoration: none; }
.video-shell { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 16px; background: #080318; }
.video-shell iframe { width: 100%; height: 100%; border: 0; }

@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }

@media (max-width: 850px) {
  main { width: min(100% - 24px, 680px); padding-top: 18px; }
  .journey-head { grid-template-columns: 1fr; gap: 22px; }
  .road { grid-template-columns: repeat(4, 1fr); }
  .day-stadium { grid-column: span 2; }
  .day:nth-child(n) { transform: none; }
  .day.current { transform: translateY(-3px); }
}

@media (max-width: 560px) {
  .topbar { align-items: flex-start; }
  .destination { display: none; }
  .journey-card { padding: 20px 14px; border-radius: 22px; }
  .legend { gap: 10px 16px; }
  .road { grid-template-columns: repeat(2, 1fr); gap: 14px 12px; padding: 16px 10px; }
  .road::before { inset: 45px 20%; }
  .day { min-height: 110px; }
  .day-stadium { grid-column: span 2; }
  .modal { padding: 30px 20px 24px; }
}

/* The page scrolls naturally beneath a pinned header. */
html { height: auto; scrollbar-width: none; }
body { height: auto; overflow-x: hidden; overflow-y: auto; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .modal::-webkit-scrollbar { display: none; }
main { width: 100%; min-height: 100dvh; padding: 0; }
.app-header { position: sticky; top: 0; z-index: 10; padding: max(18px, env(safe-area-inset-top)) 20px 0; background: rgba(16,7,47,.94); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.app-header > * { max-width: 540px; margin-inline: auto; }
.topbar { flex-shrink: 0; margin-bottom: 16px; gap: 12px; }
.brand-mark { flex-shrink: 0; }
.eyebrow { font-size: .75rem; letter-spacing: .07em; }
.destination, .section-kicker, .legend { display: none; }
.journey-card { display: block; width: min(100%, 580px); margin: 0 auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; overflow: visible; }
.journey-card::before { display: none; }
.journey-head { display: block; padding: 0 8px 16px; }
.journey-head h2 { font-size: 1.5rem; line-height: 1.15; margin: 0 0 8px; }
.journey-message { font-size: .875rem; line-height: 1.45; }
.progress-wrap { margin-top: 14px; }
.progress-copy { font-size: .875rem; }
.road { display: flex; flex-direction: column; align-items: center; gap: 70px; height: auto; overflow: visible; padding: 48px 28px 110px; border-radius: 0; background: none; }
.road::before { display: none; }
.day, .day:nth-child(n), .day.current { flex: 0 0 auto; width: min(100% - 28px, 240px); min-height: 160px; padding: 20px; transform: none; opacity: 1; text-align: center; }
.day-number, .day-actions { justify-content: center; }
.day:nth-child(n) { align-self: center; }
.day:not(:last-child)::after { content: "↑"; position: absolute; left: 50%; bottom: -54px; color: #b798ee; font-size: 1.5rem; height: 40px; border-left: 2px dashed #8366aa; padding-left: 12px; }
.day.locked { background: #251c3c; color: #c4b9d6; filter: none; }
.day.current { background: linear-gradient(135deg, #6332a3, #372062); }
.day.current::before { content: "Você está aqui"; font-size: .75rem; }
.day-number strong { font-size: 2.25rem; }
.day-number span, .stadium-label { font-size: .875rem; }
.day-actions { gap: 12px; margin-top: 20px; }
.icon-btn { width: 48px; height: 48px; border-radius: 15px; }
.icon-btn svg { width: 22px; height: 22px; }
.day-stadium { display: block; overflow: visible; }
.day-stadium::after { display: none; }
.modal { max-height: calc(100dvh - 24px); overflow-y: auto; scrollbar-width: none; }
body:has(dialog[open]) { overflow: hidden; }
.modal-close { width: 44px; height: 44px; }
.modal-kicker { font-size: .75rem; }
button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
@media (max-width: 360px) { .app-header { padding-inline: 16px; } .road { padding-inline: 20px; } }
@media (max-height: 670px) { .journey-message { display: none; } .topbar { margin-bottom: 10px; } }

.game-modal { text-align: left; padding-top: 64px; }
.game-modal h3 { font-size: 1.8rem; }
.game-emblem { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: #6431aa; margin: 26px auto; }
.game-emblem svg { width: 48px; height: 48px; stroke: white; stroke-width: 1.5; fill: none; stroke-linecap: round; }
.game-intro { text-align: center; font-size: 1.15rem; line-height: 1.5; }
.game-rules { display: flex; gap: 12px; text-align: center; margin: 24px 0; }
.game-rules span { flex: 1; color: var(--muted); font-size: .875rem; }
.game-rules strong { display: block; color: white; font-size: 1.5rem; margin-bottom: 4px; }
.next-round { width: 100%; min-height: 48px; }
[hidden] { display: none !important; }
.round-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .875rem; margin-top: 24px; }
.round-dots { display: flex; gap: 6px; margin: 12px 0 22px; }
.round-dots i { height: 5px; flex: 1; border-radius: 4px; background: #403254; }
.round-dots .active { background: var(--pink); }
.round-dots .done { background: var(--violet-bright); }
.listen-button { width: 100%; min-height: 76px; border: 1px solid #a476ed; background: #4b267c; color: white; border-radius: 18px; font-size: 1.05rem; cursor: pointer; }
.listen-button span { margin-right: 10px; }
.listen-button.playing { animation: audio-pulse 1s ease infinite; }
.listen-status { font-size: .875rem; color: var(--muted); line-height: 1.5; min-height: 42px; }
.answer-options { display: grid; gap: 10px; }
.answer-option { min-height: 52px; border: 1px solid #75608f; border-radius: 12px; color: white; background: #2c1b47; text-align: left; padding: 14px 16px; cursor: pointer; }
.answer-option:disabled { cursor: default; opacity: .55; }
.answer-option:not(:disabled):hover { background: #573680; }
.answer-option.correct { background: #194b45; border-color: #6ae0bd; opacity: 1; }
.answer-option.incorrect { background: #632743; border-color: #ff85b9; opacity: 1; }
.answer-feedback { font-size: .875rem; line-height: 1.5; color: #e9dafa; }
.audio-credit { font-size: .75rem !important; color: var(--muted); margin: 22px 0 0; text-align: center; }
.audio-credit a { color: #d2b6ff; }
.score-total { text-align: center; color: #e6c5ff; margin-top: 18px; }
.score-total strong { font-family: Syne, sans-serif; font-size: 5rem; }
.score-total span { font-size: 1.8rem; color: var(--muted); }
.result-kicker { text-align: center; font-size: .875rem; color: var(--muted); margin-top: 26px; }
.result-copy { text-align: center; line-height: 1.5; }
.result-list { list-style: none; padding: 0; margin: 24px 0; }
.result-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.back-to-route { display: block; margin: 12px auto 0; padding: 12px; border: 0; color: #d9c6f4; background: transparent; cursor: pointer; }
@keyframes audio-pulse { 50% { box-shadow: 0 0 24px #8c5cff66; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.truth-statement { font-size: 1.25rem; line-height: 1.6; padding: 22px; border-radius: 16px; background: #35204f; }
.truth-options { grid-template-columns: 1fr 1fr; }
.truth-options .answer-option { text-align: center; }
.option-letter { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 6px; background: #ffffff16; font-weight: 700; }
.result-answer { display: block; color: #d2b6ff; margin-top: 6px; }
.memory-modal { width: min(96vw, 560px); padding: 54px 18px 16px; }
.memory-modal h3 { font-size: 1.5rem; }
.memory-modal .round-meta { margin-top: 12px; }
.memory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.memory-card { position: relative; aspect-ratio: 4/5; min-width: 0; min-height: 44px; padding: 0; border: 1px solid #9670c8; border-radius: 10px; overflow: hidden; background: #29173f; cursor: pointer; }
.memory-back { display: flex; flex-direction: column; align-items: center; justify-content: center; position: absolute; inset: 0; background: linear-gradient(145deg,#59358a,#2b1748); color: #efd9ff; font-weight: 800; letter-spacing: .08em; font-size: .85rem; }
.memory-back span { color: #efa3db; margin-top: 8px; }
.memory-front { width: 100%; height: 100%; object-fit: contain; visibility: hidden; }
.memory-card.revealed .memory-front { visibility: visible; }
.memory-card.revealed .memory-back { display: none; }
.memory-card.matched { border: 3px solid #6ae0bd; cursor: default; }
.memory-status { color: #d7c5ee; font-size: .85rem; min-height: 2.5em; margin: 10px 0; }
.memory-credit { text-align: center; font-size: .7rem; color: #c5b0db; margin: 12px 0 0; }
.memory-credit a { color: inherit; }
@media (max-width: 420px) { .memory-grid { gap: 6px; } .memory-modal { padding-inline: 12px; } }
@media (max-height: 750px) { .memory-card { aspect-ratio: 1; } }

.brand-mark.brand-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: contain; background: transparent; border: 0; }
.brand-logo-heading { display: flex; justify-content: center; width: 100%; margin: 0; line-height: 0; }
.show-logo { display: block; width: min(100%, 240px); height: auto; max-height: 135px; object-fit: contain; }
@media (max-height: 670px) { .show-logo { max-height: 100px; width: auto; max-width: 100%; } }

.memory-front { object-fit: cover; object-position: 50% 35%; }
.memory-front.memory-group { object-fit: contain; object-position: center; }
.member-modal { width: min(540px, calc(100% - 24px)); padding: 62px 28px 20px; background: radial-gradient(ellipse at top, #392365, #150c32 70%); }
.member-modal h3 { margin: 8px 0 18px; font-size: 2.25rem; }
#member-slide h4 { margin: 0 0 18px; color: #e9caff; font-size: 1.1rem; }
#member-slide p { color: #eee5fa; line-height: 1.65; font-size: .98rem; margin: 14px 0; }
.member-portrait { display: block; width: 180px; height: 180px; object-fit: cover; object-position: center 35%; border-radius: 24px; margin: 0 auto 18px; border: 2px solid #bc85ef; box-shadow: 0 8px 35px #09031666; }
.member-facts { list-style: none; counter-reset: facts; padding: 0; margin: 0; text-align: left; display: grid; gap: 14px; }
.member-facts li { counter-increment: facts; padding: 15px 16px; border: 1px solid #ffffff20; border-radius: 16px; background: #ffffff07; line-height: 1.6; }
.member-facts li::before { content: '0' counter(facts); display: block; color: #cf9fff; font-weight: 700; margin-bottom: 4px; }
.member-navigation { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.member-navigation > button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #c99bed66; background: #9461db30; color: white; cursor: pointer; font-size: 1.2rem; }
.member-navigation > button:disabled { opacity: .3; cursor: default; }
.member-dots { display: flex; gap: 0; }
.member-dots button { width: 30px; height: 44px; border: none; padding: 0; background: transparent; cursor: pointer; }
.member-dots button::after { content: ''; display: block; width: 8px; height: 8px; margin: auto; border-radius: 100%; background: #b8a3ca66; }
.member-dots button[aria-current='step']::after { background: #e2b0ff; width: 20px; border-radius: 8px; }
.member-modal button:focus-visible, .member-video-link:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.member-modal .member-counter { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
.member-video-link { display: inline-block; text-decoration: none; }
@media (max-width: 420px) {
  .member-modal { padding: 58px 18px 18px; }
  .member-portrait { width: 150px; height: 150px; }
  .member-navigation { gap: 8px; }
}
.daily-curiosity-modal { padding-top: 64px; }
.daily-curiosity-modal h3 { font-size: 1.65rem; }
#daily-curiosity-content p { font-size: 1rem; line-height: 1.7; color: #eee5fa; }
#daily-curiosity-content .curiosity-source { margin-top: 24px; font-size: .875rem; color: var(--muted); }
.show-checklist { padding: 0; margin: 16px 0; list-style: none; text-align: left; display: grid; gap: 8px; }
.show-checklist label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff07; cursor: pointer; line-height: 1.5; }
.show-checklist input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: #b785ff; }
.show-checklist input:checked + span { color: #c9b5df; text-decoration: line-through; }
.dictionary-slide { padding: 20px 16px; border: 1px solid #c79bed44; border-radius: 18px; background: #9861df12; }
.dictionary-slide h4 { margin: 0 0 14px; color: #e8baff; font-size: 1.4rem; overflow-wrap: anywhere; }
.dictionary-slide p { margin: 0; }
.dictionary-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 10px; }
.dictionary-nav[hidden] { display: none; }
.dictionary-nav button { min-height: 44px; padding: 10px 12px; border: 1px solid #b990e366; border-radius: 12px; color: white; background: #9461db30; cursor: pointer; font-size: .875rem; }
.dictionary-nav button:disabled { opacity: .35; cursor: default; }
.dictionary-nav span { font-size: .875rem; white-space: nowrap; color: var(--muted); }
.daily-curiosity-modal button:focus-visible, .show-checklist input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.curiosity-links { display: grid; gap: 10px; margin-top: 18px; }
.curiosity-links a { color: #e0bcff; font-size: .875rem; line-height: 1.5; text-underline-offset: 3px; }
.curiosity-links a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
/* Concert header and final destination */
.app-header { padding: 15px 16px; isolation: isolate; background: linear-gradient(110deg, #0c0418, #19092d 45%, #10051e); border-bottom: 1px solid #b49aee33; box-shadow: 0 6px 22px #21103733; }
.app-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: #160820 url("assets/header-fireworks-desktop.webp") center / 100% 100% no-repeat; opacity: .35; }
.app-header::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, #48208033, transparent 45%, #45207833); }
.topbar { margin-bottom: 0; }
.brand-logo-heading { height: auto; overflow: hidden; }
.show-logo { width: min(100%, 220px); max-width: 220px; height: auto; max-height: none; object-fit: contain; object-position: center; align-self: center; }
.day.day-stadium, .day.day-stadium.current, .day.day-stadium.locked { width: min(100%, 480px); border: 0; padding: 8px 0 20px; border-radius: 0; background: none; box-shadow: none; }
.morumbi-illustration { display: block; width: 100%; height: auto; margin: 4px auto 0; }
.show-day-button { margin-top: 0; min-height: 48px; padding-inline: 28px; box-shadow: 0 0 28px #c43ee957; }
.show-day-button:disabled, .show-day-button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
#show-day-dialog { padding-top: 62px; }
.sequence-modal { width: min(96vw, 520px); padding: 58px 18px 22px; }
.sequence-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .875rem; color: #e2c7ff; }
.sequence-hearts { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 14px 0; color: #d6abff; font-size: .875rem; }
.sequence-hearts > span:first-child { font-size: 1.4rem; letter-spacing: .1em; }
.sequence-status { min-height: 48px; margin: 8px 0 12px; font-size: 1rem; line-height: 1.5; text-align: center; color: #f5e8ff; }
.sequence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sequence-tile { position: relative; aspect-ratio: 1; padding: 0; overflow: hidden; border: 3px solid #9060be66; border-radius: 14px; background: #2b1644; cursor: pointer; isolation: isolate; }
.sequence-tile img { width: 100%; height: 100%; display: block; object-fit: cover; filter: brightness(.65); }
.sequence-tile span { position: absolute; bottom: 0; left: 0; right: 0; padding: 5px 2px; color: white; font-size: .75rem; background: #170626ba; }
.sequence-tile:disabled { cursor: default; opacity: 1; }
.sequence-tile.lit { border-color: #ffe1ff; box-shadow: 0 0 20px #ed75ff; }
.sequence-tile.lit img { filter: brightness(1.45) saturate(1.15); }
.sequence-tile.lit::after { content: ''; position: absolute; inset: 0; background: #e27aff40; border: 4px solid #efbeff; border-radius: 10px; }
.sequence-tile.tap-correct { border-color: #b3ffe4; }
.sequence-tile.tap-wrong { border-color: #ff769d; }
.sequence-tile:focus-visible { outline: 3px solid #6ee7ff; outline-offset: 2px; }
@media (max-height: 670px) { .sequence-grid { max-width: 280px; margin-inline: auto; } }

.welcome-modal { width: min(480px, calc(100% - 32px)); padding: 36px 32px 28px; text-align: left; border: 1px solid #ba91ee66; background: radial-gradient(ellipse at top left, #61339355, transparent 60%), linear-gradient(145deg, #281440, #150b28); box-shadow: 0 24px 100px #080213cc, inset 0 1px 0 #ead8ff20; }
.welcome-heart { display: block; color: #d6b1ff; font-size: 42px; line-height: 1; margin-bottom: 20px; }
.welcome-modal .welcome-kicker { margin: 0 0 10px; color: #c6a5ec; font-size: .75rem; letter-spacing: .16em; line-height: 1.5; }
.welcome-modal h2 { margin: 0 0 22px; color: #f6edff; font-family: 'Playfair Display', serif; font-style: italic; font-size: 2.5rem; font-weight: 600; }
.welcome-modal h2:focus { outline: none; }
.welcome-letter p { color: #e5daef; font-size: 1rem; line-height: 1.65; margin: 0 0 16px; }
.welcome-letter .welcome-signature { color: #d6b1ff; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.35rem; margin: 20px 0 24px; }
.welcome-start { width: 100%; min-height: 48px; margin-top: 0; background: linear-gradient(110deg, #7845c0, #593294); border: 1px solid #bb90eb55; }
@media (max-width: 420px) { .welcome-modal { padding: 30px 24px 24px; } }

@media (max-width: 767px) {
  .scene { background-image: linear-gradient(180deg, rgba(12, 5, 39, 0.1), #10072f 95%), url("assets/journey-background-mobile.webp"); }
  .app-header::before { background-image: url("assets/header-fireworks-mobile.webp"); }
}

/* Keep the dedication visible below the scrolling route. */
.footer-note { display: block; position: fixed; inset: auto 0 0; z-index: 10; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); color: #eee0ff; background: rgba(22, 10, 43, .96); border-top: 1px solid #b49aee33; text-align: center; font-size: .875rem; line-height: 1.4; }
.road { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }

@media (min-width: 768px) {
  .app-header::before { background-size: auto 100%; background-repeat: repeat-x; }
}
