:root {
  --ink: #182942;
  --ink-soft: #40536b;
  --cream: #fff8ea;
  --paper: #fffcf4;
  --yellow: #ffd459;
  --coral: #ff7469;
  --mint: #63d7aa;
  --violet: #9b7ae6;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 4px solid #497dff; outline-offset: 4px; }
::selection { background: var(--yellow); color: var(--ink); }
.container { width: min(1220px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: absolute; z-index: 30; top: -80px; left: 14px; padding: 12px 18px; background: white; border: 3px solid var(--ink); border-radius: 12px; font-weight: 900; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 10; background: #fffaf0; border-bottom: 3px solid var(--ink); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; flex-shrink: 0; transform: rotate(-11deg); border: 3px solid var(--ink); border-radius: 15px; box-shadow: 4px 4px 0 var(--ink); background: var(--coral); color: #fff; font-size: 34px; line-height: 1; font-weight: 900; }
.brand-name { font-size: 15px; font-weight: 1000; line-height: .9; letter-spacing: -.07em; white-space: nowrap; }
.brand-name strong { font-size: 27px; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.main-nav > a { font-size: 14px; font-weight: 900; transition: color .2s ease, transform .2s ease; }
.main-nav > a:hover { color: #7e4bd9; transform: translateY(-2px); }
.main-nav > .nav-cta { padding: 13px 18px; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 3px 4px 0 var(--ink); background: var(--yellow); white-space: nowrap; }
.main-nav > .nav-cta:hover { color: var(--ink); transform: translateY(-3px); }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; padding: clamp(75px, 8vw, 120px) 0 clamp(92px, 10vw, 140px); overflow: hidden; background: radial-gradient(circle at 52% 12%, #fff 0, #fff8e9 30%, transparent 60%), linear-gradient(110deg, #fffaf0 0%, #ffefc4 100%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.eyebrow, .section-kicker { margin: 0 0 22px; font-size: 12px; letter-spacing: .15em; font-weight: 1000; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow-line { width: 36px; height: 3px; background: var(--coral); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-top: 0; }
.hero h1 { max-width: 620px; margin-bottom: 25px; font-size: clamp(58px, 6.1vw, 100px); line-height: .93; letter-spacing: -.085em; font-weight: 1000; }
.hero h1 em { color: #8b62d3; font-style: normal; }
.hero h1 span { position: relative; display: inline-block; color: #ff655e; }
.hero h1 span::after { content: ""; position: absolute; z-index: -1; left: -2%; right: -2%; bottom: -6px; height: 17px; transform: rotate(-2deg); border-radius: 99px; background: var(--yellow); }
.hero-lead { max-width: 545px; margin: 0 0 30px; color: var(--ink-soft); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.button { min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 14px 22px; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 5px 6px 0 var(--ink); font-size: 16px; font-weight: 1000; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-4px); box-shadow: 5px 10px 0 var(--ink); }
.button:active { transform: translateY(3px); box-shadow: 2px 2px 0 var(--ink); }
.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.button span, .text-link span { font-size: 21px; line-height: .7; }
.button-primary { background: var(--coral); }
.button-outline { background: #fff; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 31px; color: var(--ink-soft); font-size: 13px; font-weight: 800; }
.hero-facts span { display: inline-flex; align-items: center; gap: 5px; }
.hero-facts b { color: #8b62d3; font-size: 18px; }
.hero-visual { position: relative; min-width: 0; padding: 30px 4px 42px; }
.game-window { position: relative; z-index: 2; overflow: hidden; transform: rotate(2deg); border: 5px solid var(--ink); border-radius: 23px; box-shadow: 14px 17px 0 #182942, 21px 24px 0 #ffd459; background: #93c8ed; }
.window-bar { height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 13px; background: var(--ink); color: #fff9ec; font-size: 10px; font-weight: 1000; letter-spacing: .08em; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; display: block; border-radius: 50%; background: var(--coral); }
.window-dots i:nth-child(2) { background: var(--yellow); }
.window-dots i:nth-child(3) { background: var(--mint); }
.window-stars { color: var(--yellow); }
.game-preview { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; }
.hero-sticker { position: absolute; z-index: 3; border: 3px solid var(--ink); box-shadow: 5px 6px 0 var(--ink); }
.sticker-chord { right: -12px; bottom: 11px; display: flex; flex-direction: column; align-items: center; width: 114px; padding: 9px 6px; transform: rotate(-8deg); border-radius: 15px; background: #fff9ea; }
.sticker-chord span { font-size: 8px; letter-spacing: .08em; font-weight: 1000; }
.sticker-chord strong { color: #8052cd; font-size: 54px; line-height: .95; }
.sticker-chord small { font-size: 11px; font-weight: 900; }
.sticker-note { top: -14px; left: 9px; display: grid; place-items: center; width: 72px; height: 72px; transform: rotate(-15deg); border-radius: 50%; background: var(--mint); font-size: 43px; }
.visual-orbit { position: absolute; border: 2px dashed #f0b354; border-radius: 50%; }
.visual-orbit-one { inset: -28px 80px 18px -65px; transform: rotate(-7deg); }
.visual-orbit-two { width: 160px; height: 160px; top: -55px; right: -35px; background: #ffc74d8c; border: 0; }
.hero-spark { position: absolute; z-index: 1; color: #b398e5; font-size: 70px; }
.hero-spark-one { top: 7%; left: 48%; transform: rotate(-12deg); }
.hero-spark-two { bottom: 17%; left: 4%; transform: rotate(18deg); font-size: 52px; }
.hero-wave { position: absolute; right: -5%; bottom: -60px; left: -5%; height: 110px; transform: rotate(-2deg); border-top: 4px solid var(--ink); background: #fffdf6; }

.ticker { overflow: hidden; padding: 15px 0; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); background: var(--yellow); }
.ticker-track { width: max-content; white-space: nowrap; animation: ticker-move 28s linear infinite; font-size: 14px; font-weight: 1000; letter-spacing: .16em; }
.ticker-track span { padding: 0 30px; color: #e75462; }
@keyframes ticker-move { to { transform: translateX(-50%); } }

.section { padding: clamp(76px, 8vw, 120px) 0; }
.section-kicker { color: #8b55cb; }
.section h2, .adventure-card h2, .play-copy h2 { max-width: 680px; margin-bottom: 18px; font-size: clamp(42px, 4.4vw, 68px); line-height: 1.04; letter-spacing: -.065em; font-weight: 1000; }
.section-intro { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.section-intro h2 { margin-right: auto; margin-left: auto; }
.section-intro > p:last-child, .modes-heading > p:not(.section-kicker), .faq-layout > div > p:last-child { color: var(--ink-soft); font-size: 18px; line-height: 1.6; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { position: relative; min-height: 312px; padding: 30px; overflow: hidden; border: 3px solid var(--ink); border-radius: 21px; box-shadow: 7px 8px 0 var(--ink); }
.step-one { background: #deefff; }
.step-two { background: #fff0c0; }
.step-three { background: #dff9e9; }
.step-number { position: absolute; top: 22px; right: 25px; color: #18294277; font-size: 15px; font-weight: 1000; }
.step-icon { width: 88px; height: 88px; display: grid; place-items: center; margin-bottom: 29px; transform: rotate(-5deg); border: 3px solid var(--ink); border-radius: 21px; box-shadow: 4px 5px 0 var(--ink); background: #fff; }
.chord-chip { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 11px; background: #193a59; color: #fff; font-size: 38px; font-weight: 1000; }
.piano-icon { grid-template-columns: repeat(5, 1fr); align-items: end; gap: 1px; padding: 15px 11px; }
.piano-icon i { height: 51px; border: 2px solid var(--ink); border-radius: 0 0 4px 4px; background: #fff9e9; }
.piano-icon i:nth-child(2), .piano-icon i:nth-child(4) { height: 32px; align-self: start; background: var(--ink); }
.jump-icon { background: var(--coral); color: #fff; font-size: 57px; font-weight: 900; }
.step h3 { margin: 0 0 10px; font-size: 27px; letter-spacing: -.04em; }
.step p { max-width: 305px; margin: 0; color: #344a60; font-size: 16px; line-height: 1.55; }

.adventure-section { position: relative; min-height: 610px; overflow: hidden; border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); background: #77c9f3; }
.adventure-art, .adventure-tint { position: absolute; inset: 0; }
.adventure-backdrop { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.adventure-tint { background: linear-gradient(90deg, #193b57cc 0%, #17355299 39%, transparent 72%); }
.adventure-hero, .adventure-totem { position: absolute; z-index: 1; height: auto; filter: drop-shadow(9px 9px 0 #16273e55); pointer-events: none; }
.adventure-hero { width: clamp(230px, 29vw, 410px); right: 22%; bottom: -8%; }
.adventure-totem { width: clamp(170px, 21vw, 295px); right: 3%; bottom: -7%; }
.adventure-chord { position: absolute; z-index: 2; right: 11%; bottom: 58%; display: grid; place-items: center; width: 70px; height: 62px; border: 3px solid #6de7e1; border-radius: 12px; background: var(--ink); color: #fff; font-size: 39px; font-weight: 1000; }
.adventure-content { position: relative; z-index: 3; min-height: 610px; display: flex; align-items: center; }
.adventure-card { max-width: 500px; padding: 38px 40px; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 9px 11px 0 var(--ink); background: #fffaf0; }
.adventure-card h2 { font-size: clamp(40px, 4vw, 60px); }
.adventure-card p:not(.section-kicker) { color: var(--ink-soft); font-size: 17px; line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; gap: 25px; margin-top: 13px; padding-bottom: 6px; border-bottom: 3px solid var(--coral); color: var(--ink); font-size: 17px; font-weight: 1000; }
.text-link:hover { color: #854ed2; }

.modes-section { background: #f9f3ff; }
.modes-layout { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.modes-heading { position: sticky; top: 30px; }
.modes-heading h2 { margin-bottom: 18px; }
.modes-doodle { margin-top: 30px; transform: rotate(-10deg); color: #a681e2; font-size: clamp(60px, 8vw, 120px); letter-spacing: .12em; white-space: nowrap; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mode-card { min-height: 260px; padding: 25px; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 6px 7px 0 var(--ink); }
.mode-green { background: #c9f1db; }
.mode-yellow { background: #ffebae; }
.mode-purple { background: #e4d5ff; }
.mode-coral { background: #ffd5cc; }
.mode-symbol { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 17px; border: 2px solid var(--ink); border-radius: 14px; background: #fff9f1; font-size: 33px; font-weight: 1000; }
.mode-label { display: block; margin-bottom: 8px; color: #526071; font-size: 11px; font-weight: 1000; letter-spacing: .13em; }
.mode-card h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.04em; }
.mode-card p { margin: 0; color: #384d62; font-size: 15px; line-height: 1.55; }

.play-section { position: relative; overflow: hidden; padding: clamp(85px, 9vw, 135px) 0; background: #1d3350; color: #fff9ea; }
.play-section::before { content: ""; position: absolute; width: 560px; height: 560px; top: -250px; right: -150px; border: 3px dashed #ffffff36; border-radius: 50%; }
.play-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .8fr); gap: 50px; align-items: center; }
.play-copy { position: relative; z-index: 2; max-width: 650px; }
.play-copy .section-kicker { color: #ffdc79; }
.play-copy h2 { font-size: clamp(54px, 6vw, 92px); }
.play-copy h2 span { color: var(--yellow); }
.play-copy > p:not(.section-kicker):not(.availability) { max-width: 570px; font-size: 19px; line-height: 1.6; }
.button-light { margin-top: 20px; background: var(--yellow); color: var(--ink); }
.availability { max-width: 560px; margin: 24px 0 0; color: #c4d1df; font-size: 13px; line-height: 1.5; }
.play-art { position: relative; display: grid; place-items: center; min-height: 390px; }
.play-disc { width: min(30vw, 370px); min-width: 280px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; gap: 9px; transform: rotate(-12deg); border: 12px solid #14263c; border-radius: 50%; box-shadow: 18px 20px 0 #11233b; background: radial-gradient(circle at 50% 50%, #ffdf73 0 17%, #ff796d 18% 34%, #a383ea 35% 54%, #58d4aa 55% 100%); }
.play-disc span { display: grid; place-items: center; width: 68px; height: 68px; border: 3px solid var(--ink); border-radius: 50%; background: #fff8ea; color: var(--ink); font-size: 17px; font-weight: 1000; }
.play-burst, .play-note { position: absolute; font-size: 78px; color: var(--yellow); }
.play-burst { top: -2px; right: 4%; transform: rotate(21deg); }
.play-note { bottom: -5px; left: 0; transform: rotate(-16deg); color: var(--mint); }

.faq-section { background: var(--cream); }
.faq-layout { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: clamp(35px, 7vw, 110px); }
.faq-layout h2 { margin-bottom: 15px; }
.faq-list { border-top: 3px solid var(--ink); }
.faq-list details { border-bottom: 3px solid var(--ink); }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 21px 2px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 1000; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); font-size: 22px; line-height: 1; transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 640px; margin: -2px 36px 22px 2px; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

.site-footer { padding: 55px 0 20px; border-top: 4px solid var(--ink); background: #fff2d6; }
.footer-main { display: flex; justify-content: space-between; gap: 45px; padding-bottom: 50px; }
.footer-main p { margin: 23px 0 0; font-size: 16px; font-weight: 850; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 14px 25px; align-content: center; font-weight: 900; }
.footer-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 17px; border-top: 2px solid #18294244; color: #54657a; font-size: 12px; font-weight: 800; }

@media (max-width: 1050px) {
  .main-nav { gap: 14px; }
  .main-nav > a { font-size: 12px; }
  .hero-grid { gap: 25px; }
  .hero h1 { font-size: clamp(54px, 6.5vw, 80px); }
  .hero-facts { gap: 8px 13px; }
  .adventure-hero { right: 17%; }
}

@media (max-width: 800px) {
  .container { width: min(620px, calc(100% - 36px)); }
  .header-inner { min-height: 74px; }
  .menu-toggle { width: 48px; height: 45px; display: grid; align-content: center; justify-items: center; gap: 5px; border: 2px solid var(--ink); border-radius: 10px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
  .menu-toggle span { width: 21px; height: 3px; border-radius: 99px; background: var(--ink); }
  .main-nav { position: absolute; top: calc(100% - 2px); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 18px 18px; border-bottom: 3px solid var(--ink); background: #fffaf0; box-shadow: 0 10px 18px #1829421b; }
  .main-nav.is-open { display: flex; }
  .main-nav > a { padding: 12px 6px; font-size: 15px; }
  .main-nav > .nav-cta { margin-top: 8px; text-align: center; }
  .hero { padding: 74px 0 95px; }
  .hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .hero-copy { text-align: center; }
  .eyebrow, .hero-actions, .hero-facts { justify-content: center; }
  .hero h1, .hero-lead { margin-right: auto; margin-left: auto; }
  .hero h1 { font-size: clamp(56px, 10vw, 90px); }
  .hero-visual { width: min(100%, 590px); margin: auto; }
  .hero-spark-one { left: 7%; }
  .hero-spark-two { display: none; }
  .steps { grid-template-columns: 1fr; gap: 17px; }
  .step { min-height: 0; padding: 23px; }
  .step-icon { width: 68px; height: 68px; margin-bottom: 17px; }
  .chord-chip { width: 44px; height: 44px; font-size: 29px; }
  .piano-icon { padding: 12px 8px; }
  .piano-icon i { height: 39px; }
  .piano-icon i:nth-child(2), .piano-icon i:nth-child(4) { height: 24px; }
  .jump-icon { font-size: 44px; }
  .adventure-section, .adventure-content { min-height: 720px; }
  .adventure-content { align-items: start; padding-top: 45px; }
  .adventure-card { max-width: 570px; padding: 27px; }
  .adventure-tint { background: linear-gradient(180deg, #193b57c4 0%, #17355266 46%, transparent 77%); }
  .adventure-hero { right: 40%; bottom: -6%; width: 320px; }
  .adventure-totem { right: 4%; bottom: -6%; width: 230px; }
  .adventure-chord { right: 16%; bottom: 44%; }
  .modes-layout, .faq-layout { grid-template-columns: 1fr; gap: 26px; }
  .modes-heading { position: static; }
  .modes-doodle { display: none; }
  .play-layout { grid-template-columns: 1fr; gap: 10px; }
  .play-art { min-height: 290px; }
}

@media (max-width: 540px) {
  .container { width: calc(100% - 30px); }
  .brand-mark { width: 46px; height: 46px; font-size: 29px; }
  .brand-name { font-size: 13px; }
  .brand-name strong { font-size: 23px; }
  .hero { padding-top: 62px; }
  .hero h1 { font-size: clamp(53px, 13vw, 72px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-facts { font-size: 11px; }
  .hero-visual { padding: 20px 0 40px; }
  .game-window { border-width: 3px; border-radius: 14px; box-shadow: 8px 9px 0 var(--ink), 12px 13px 0 var(--yellow); }
  .window-bar { height: 27px; padding: 0 8px; font-size: 8px; }
  .sticker-note { width: 47px; height: 47px; top: -5px; left: -9px; font-size: 30px; }
  .sticker-chord { width: 83px; right: -3px; bottom: 9px; padding: 5px 2px; }
  .sticker-chord span { font-size: 6px; }
  .sticker-chord strong { font-size: 37px; }
  .sticker-chord small { font-size: 8px; }
  .ticker-track { font-size: 11px; }
  .section { padding: 70px 0; }
  .section h2, .adventure-card h2 { font-size: 42px; }
  .section-intro > p:last-child { font-size: 16px; }
  .adventure-section, .adventure-content { min-height: 690px; }
  .adventure-card { padding: 24px; }
  .adventure-card p:not(.section-kicker) { font-size: 15px; }
  .adventure-hero { right: 35%; width: 260px; }
  .adventure-totem { right: -7%; width: 205px; }
  .adventure-chord { right: 13%; bottom: 34%; width: 53px; height: 48px; font-size: 31px; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: 0; }
  .play-copy h2 { font-size: 55px; }
  .play-copy > p:not(.section-kicker):not(.availability) { font-size: 16px; }
  .play-art { min-height: 260px; }
  .play-disc { min-width: 240px; }
  .play-disc span { width: 55px; height: 55px; font-size: 14px; }
  .footer-main, .footer-bottom { flex-direction: column; }
  .footer-main { padding-bottom: 30px; }
  .footer-bottom { gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
