:root {
  --ink: #101e35;
  --ink-soft: #344054;
  --muted: #667085;
  --paper: #fffdf7;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --line: #e4e7ec;
  --wattle: #ffc94d;
  --wattle-deep: #d9a90d;
  --accent: #5b67f1;
  --accent-dark: #315477;
  --mint: #26b99a;
  --radius: 22px;
  --shadow: 0 18px 55px rgba(16, 24, 40, .09);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.container { width: min(calc(100% - 36px), var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: auto;
}
.skip-link:focus {
  left: 18px; top: 18px; z-index: 999;
  background: var(--ink); color: white; padding: 10px 14px; border-radius: 10px;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,247,.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(228,231,236,.75);
}
.nav-wrap { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-copy small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; line-height: 1.2; }
.brand-copy span { font-size: 18px; line-height: 1.25; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: 14px; padding: 10px 12px; border-radius: 12px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 4px 16px rgba(16,24,40,.06); }
.menu-btn { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-weight: 800; }

.hero { padding: 88px 0 68px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #e7dcad; background: #fff9dc; border-radius: 999px; font-size: 13px; font-weight: 800; color: #665215; }
.dot { width: 8px; height: 8px; background: var(--wattle); border-radius: 999px; box-shadow: 0 0 0 5px rgba(244,197,66,.18); }
h1 { margin: 20px 0 20px; font-size: clamp(44px, 7vw, 78px); line-height: .98; letter-spacing: -.055em; max-width: 830px; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--ink-soft); max-width: 680px; margin: 0 0 30px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 800; padding: 13px 18px; border-radius: 14px; border: 1px solid transparent; }
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(16,24,40,.18); }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: #c9ced8; }

.hero-card {
  position: relative; min-height: 440px; border-radius: 34px; padding: 26px;
  background: linear-gradient(145deg, #5966f1 0%, #787ffc 48%, #efe9ff 100%);
  box-shadow: var(--shadow); overflow: hidden;
}
.hero-card:before { content: ""; position: absolute; width: 270px; height: 270px; border-radius: 50%; background: rgba(255,255,255,.18); top: -90px; right: -50px; }
.hero-card:after { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: rgba(244,197,66,.55); bottom: -72px; left: -42px; }
.phone {
  position: absolute; inset: 42px 68px 42px 82px; border: 9px solid #171a24; background: #f9fafc; border-radius: 34px;
  box-shadow: 0 26px 45px rgba(35,38,70,.28); padding: 22px 18px; transform: rotate(5deg); z-index: 2;
}
.phone-notch { width: 74px; height: 17px; background: #171a24; border-radius: 999px; margin: -10px auto 22px; }
.phone-title { font-weight: 900; letter-spacing: -.03em; font-size: 20px; }
.puzzle-board { margin-top: 20px; display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; }
.puzzle-board span { aspect-ratio: 1; border-radius: 10px; background: #e9ecf5; position: relative; }
.puzzle-board span.on { background: #6772f5; }
.puzzle-board span.gold { background: #ffc94d; }
.mini-cta { margin-top: 18px; height: 48px; background: #171a24; color: white; display: flex; align-items: center; justify-content: center; border-radius: 14px; font-weight: 850; font-size: 13px; }
.float-chip { position: absolute; z-index: 3; background: rgba(255,255,255,.95); border: 1px solid rgba(255,255,255,.7); border-radius: 15px; padding: 10px 13px; box-shadow: 0 10px 26px rgba(20,30,70,.16); font-weight: 800; font-size: 12px; }
.chip-one { left: 18px; top: 88px; transform: rotate(-7deg); }
.chip-two { right: 18px; bottom: 72px; transform: rotate(5deg); }

.section { padding: 78px 0; }
.section.alt { background: var(--surface); border-block: 1px solid #f0f1f3; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.kicker { color: var(--accent-dark); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; }
h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -.045em; margin: 8px 0 0; }
h3 { letter-spacing: -.02em; }
.section-head p { color: var(--muted); max-width: 520px; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; box-shadow: 0 8px 25px rgba(16,24,40,.035); }
.card-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #f0f2ff; font-size: 20px; margin-bottom: 20px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

.studio-band { padding: 30px; border-radius: 30px; background: var(--ink); color: white; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.studio-band .kicker { color: #d8dcff; }
.studio-band p { color: #d0d5dd; max-width: 720px; }
.studio-band .btn-secondary { background: white; }

.page-hero { padding: 64px 0 42px; }
.page-hero h1 { font-size: clamp(42px, 6vw, 68px); max-width: 900px; }
.page-hero .lead { max-width: 780px; }

.game-card { overflow: hidden; padding: 0; }
.game-art { min-height: 260px; padding: 24px; background: linear-gradient(145deg, #5662ee, #9aa0ff); display: grid; place-items: center; }
.game-board { width: min(260px,80%); aspect-ratio: 1; display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; transform: rotate(-3deg); }
.game-board i { background: rgba(255,255,255,.26); border-radius: 12px; }
.game-board i:nth-child(2), .game-board i:nth-child(7), .game-board i:nth-child(12), .game-board i:nth-child(13), .game-board i:nth-child(18), .game-board i:nth-child(23), .game-board i:nth-child(24) { background: #fff; }
.game-meta { padding: 26px; }
.badge { display: inline-block; border-radius: 999px; padding: 6px 10px; font-weight: 850; font-size: 12px; background: #ecfdf3; color: #027a48; }

.prose { max-width: 820px; }
.prose h2 { font-size: 29px; margin-top: 44px; }
.prose h3 { font-size: 20px; margin-top: 30px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { color: var(--accent-dark); font-weight: 700; }
.notice { border-left: 4px solid var(--wattle); background: #fff8d8; padding: 15px 17px; border-radius: 0 12px 12px 0; color: #5c4c17; }
.meta-line { font-size: 14px; color: var(--muted); }

.support-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.contact-card { background: var(--ink); color: white; padding: 28px; border-radius: var(--radius); position: sticky; top: 105px; }
.contact-card p { color: #d0d5dd; }
.contact-card a { color: white; }
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 800; }
details p { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 35px 0; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.footer-small { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-size: 13px; font-weight: 750; color: var(--ink-soft); }

@media (max-width: 860px) {
  .hero { padding-top: 58px; }
  .hero-grid, .support-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 380px; }
  .cards { grid-template-columns: 1fr; }
  .studio-band { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .section-head { align-items: start; flex-direction: column; }
  .nav-links { display: none; position: absolute; top: 70px; left: 18px; right: 18px; background: white; padding: 10px; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand-copy small { display: none; }
  .brand-copy span { font-size: 16px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero-card { min-height: 330px; }
  .phone { inset: 35px 42px 32px 56px; }
  .float-chip { display: none; }
  .section { padding: 58px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Wattle Wink umbrella brand */
.brand-wordmark { font-size: 20px; letter-spacing: .04em; display:flex; align-items:center; gap:10px; white-space:nowrap; }
.brand-spark { color:#a47100; font-size:28px; }
h1 em { font-style:normal; color:#765400; }
.text-link { display:inline-block; margin-top:24px; font-weight:750; text-underline-offset:5px; }
.card-icon { background:#fff2cb; color:var(--ink); }
.studio-band .kicker { color:var(--wattle); }
:focus-visible { outline:3px solid #9b7100; outline-offset:5px; }
.creative-art { position:relative; min-height:500px; border-radius:120px 24px 24px 24px; background:var(--ink); overflow:hidden; box-shadow:var(--shadow); }
.art-door { position:absolute; top:105px; left:30%; width:45%; height:270px; border:9px solid var(--wattle); border-radius:100px 100px 0 0; background:#fff9e9; transform:rotate(-8deg); z-index:2; }
.art-door span { position:absolute; inset:0; border-radius:90px 90px 0 0; background:linear-gradient(160deg,#a9cee1,#fff9e9 70%); }
.art-orbit { position:absolute; width:150px; height:150px; border-radius:50%; background:#8bbdd7; top:35px; left:-45px; }
.art-star { position:absolute; top:36px; right:36px; font-size:58px; color:var(--wattle); }
.art-path { position:absolute; width:280px; height:300px; border:35px solid var(--wattle); border-radius:50%; top:310px; left:45%; transform:rotate(28deg); }
.art-note { position:absolute; left:28px; bottom:62px; font-size:23px; line-height:1.2; color:var(--paper); font-weight:700; z-index:3; }
.art-index { position:absolute; bottom:22px; left:28px; font-size:10px; letter-spacing:.2em; color:#d0dce6; }
.games-grid { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
@media(max-width:860px) { .hero-grid { gap:36px; } .creative-art { min-height:420px; max-width:560px; width:100%; } .games-grid { grid-template-columns:1fr; } }
@media(max-width:560px) { .brand-wordmark { font-size:17px; } .creative-art { min-height:390px; } .art-door { top:70px; height:230px; } .art-path { top:245px; } h1 { font-size:clamp(40px,11vw,60px); } }
