/* Flucky's Fountain website. Palette from art/style-guide.md. */
:root {
  --sky: #6ECEF8; --sky-deep: #3AB3EA; --sky-pale: #E6F7FE;
  --grass: #9BBD3C; --leaf: #5A9A12; --leaf-text: #3D720C; /* leaf green dark enough for small text (WCAG AA 4.5:1 on the pale greens) */ --mint: #99E6C0; --mint-pale: #E9FBF2;
  --navy: #275277; --navy-deep: #173A57; --ink: #1F3550; --ink-soft: #4A6077;
  --water: #43E7D2; --wood: #E49D0C; --wood-dark: #8B3C2B; --brown: #632A1E;
  --gold: #FFE019; --gold-2: #FBD83A; --gold-shade: #E2A426;
  --purple: #5F0D86; --purple-2: #9716D4; --purple-deep: #390F60; --ruby: #E3262E;
  --cream: #FFFBEF; --white: #fff;
  --radius: 22px; --shadow: 0 10px 30px rgba(23, 58, 87, .16); --shadow-sm: 0 4px 14px rgba(23, 58, 87, .14);
  --head: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--body); color: var(--ink); background: var(--cream); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--purple-2); }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; color: var(--brown); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; color: var(--navy-deep); }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); margin-inline: auto; }
.small { font-size: .92rem; } .center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--purple-2); outline-offset: 3px; border-radius: 6px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 251, 239, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(39, 82, 119, .08); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { width: 118px; height: auto; }
.nav { display: flex; gap: 4px; }
.nav a { font-weight: 800; text-decoration: none; color: var(--navy-deep); padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--mint-pale); color: var(--navy-deep); }
.nav a[aria-current="page"] { background: var(--mint); }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--mint); cursor: pointer;
  padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.menu-btn span:not(.sr-only) { display: block; height: 3px; border-radius: 2px; background: var(--navy-deep); }
@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 10px 16px 18px;
    background: var(--cream); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 800 1rem var(--body);
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; }
.btn.gold { background: linear-gradient(#FFE95C, var(--gold-2) 55%, var(--gold-shade)); color: var(--brown);
  box-shadow: 0 4px 0 #B9781C, var(--shadow-sm); }
.btn.gold:hover { filter: brightness(1.05); color: var(--brown); }
.btn.ghost { background: var(--white); color: var(--navy-deep); box-shadow: inset 0 0 0 2px var(--navy); }
/* Google's official "Get it on Google Play" badge. The image has its own clear space, so the negative margin only
   lines the black badge up with the text beside it. */
.play-btn { display: inline-block; line-height: 0; margin: -12px -14px; border-radius: 14px; transition: transform .15s; }
.play-btn img { height: 82px; width: auto; }
.play-btn:hover { transform: translateY(-1px); }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--ink);
  background: linear-gradient(180deg, #8ED9FA 0%, var(--sky) 45%, #A8E3FB 100%); }
.hero::before { content: ""; position: absolute; inset: auto 0 0 0; height: 62%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 251, 239, .92) 0%, rgba(255, 251, 239, .72) 42%, rgba(255, 251, 239, 0) 70%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center;
  padding: 56px 0 72px; }
.hero h1 { color: var(--brown); }
.hero h1 em { font-style: normal; color: var(--purple); }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 26px 0 14px; }
.hero-note { font-size: .9rem; color: var(--ink-soft); }
.hero-art { position: relative; min-height: 470px; }
.hero-art .fountain { position: absolute; width: 74%; left: 2%; bottom: 0; filter: drop-shadow(0 18px 18px rgba(23, 58, 87, .18)); }
.hero-art .flucky { position: absolute; width: 33%; right: 34%; bottom: 3%; animation: bob 3.2s ease-in-out infinite; }
.hero-art .phone { position: absolute; right: 0; top: 0; width: 44%; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
.coin-float { position: absolute; width: 54px; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-16px) rotate(12deg); } }
@media (max-width: 900px) {
  .hero::after { background: linear-gradient(180deg, rgba(255, 251, 239, .9) 0%, rgba(255, 251, 239, .6) 55%, rgba(255, 251, 239, 0) 80%); }
  .hero-in { grid-template-columns: 1fr; text-align: center; padding: 34px 0 40px; }
  .lede { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { min-height: 380px; max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .hero-art .flucky, .coin-float { animation: none; } html { scroll-behavior: auto; } }

/* Phone frame around app screenshots */
.phone { border-radius: 34px; padding: 9px; background: linear-gradient(160deg, #2C3E50, #0F1A26);
  box-shadow: 0 24px 50px rgba(15, 26, 38, .35), inset 0 0 0 2px rgba(255, 255, 255, .08); }
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 539 / 1200; object-fit: cover; background: var(--sky); }

/* Sections */
.section { padding: 76px 0; }
.section.sky { background: linear-gradient(180deg, var(--sky-pale), #fff); }
.section.mint { background: var(--mint-pale); }
.section.night { background: radial-gradient(ellipse at top, #5B1F8C, var(--purple-deep) 70%); color: #F3E9FF; }
.section.night h2, .section.night h3 { color: #FFE58A; }
.section.night a { color: #FFE58A; }
.kicker { display: inline-block; font: 800 .8rem var(--body); letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--leaf-text); background: #EAF7CF; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.night .kicker { background: rgba(255, 229, 138, .14); color: #FFE58A; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.night .section-head p { color: #E3D3F6; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { background: var(--white); border-radius: var(--radius); padding: 22px 22px 26px; box-shadow: var(--shadow); text-align: center; }
.step .phone { width: 68%; margin: -2px auto 18px; }
.step .num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font: 800 1.1rem var(--head);
  background: var(--gold-2); color: var(--brown); box-shadow: 0 3px 0 var(--gold-shade); margin-bottom: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* Areas grid */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.area { background: var(--white); border-radius: 18px; padding: 18px 14px; text-align: center; box-shadow: var(--shadow-sm); }
.area img { width: 72px; height: 72px; margin: 0 auto 8px; }
.area b { display: block; font: 700 1.1rem var(--head); color: var(--navy-deep); }
.area span { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 700px) { .areas { grid-template-columns: repeat(2, 1fr); } }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split > * { min-width: 0; }
.split .art { display: grid; place-items: center; }
.split .art .phone { width: min(300px, 80%); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 34px; margin: 0 0 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.flip > :first-child { order: 0; } }

/* Charms */
.charm-row { display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 14px; scroll-snap-type: x mandatory; }
/* Centred when the row fits; still scrolls from the first charm when it does not (auto margins, not justify-content, which would clip the left on narrow screens). */
.charm-row > :first-child { margin-left: auto; }
.charm-row > :last-child { margin-right: auto; }
.charm-chip { flex: 0 0 auto; width: 112px; text-align: center; scroll-snap-align: start; }
.charm-chip img { width: 92px; height: 92px; margin: 0 auto 6px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(23, 58, 87, .2)); }
.charm-chip span { font: 700 .92rem var(--head); color: var(--navy-deep); }
.charms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.charm-card { background: var(--white); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-sm); display: grid;
  grid-template-columns: 78px 1fr; gap: 14px; align-items: start; }
.charm-card img { width: 78px; height: 78px; object-fit: contain; }
.charm-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.charm-card p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.charm-card .tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .75rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--mint-pale); color: var(--leaf-text); }
.charm-card.golden { background: linear-gradient(160deg, #FFF8D6, #fff 60%); box-shadow: 0 0 0 2px var(--gold-2), var(--shadow-sm); }
.tag.gold { background: var(--gold-2); color: var(--brown); }

/* VIP / cards */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.night .card { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 229, 138, .25); }
.card img.ico { width: 64px; height: 64px; object-fit: contain; margin-bottom: 10px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }

/* CTA band */
.cta { text-align: center; padding: 70px 0; background: linear-gradient(180deg, var(--sky), #B8E9FC); position: relative; overflow: hidden; }
.cta .flucky-sm { width: 120px; margin: 0 auto 10px; }
.cta p { font-size: 1.15rem; color: var(--navy-deep); }

/* Article pages */
.page-hero { background: linear-gradient(180deg, var(--sky), #C9EEFD); padding: 48px 0 38px; text-align: center; position: relative; overflow: hidden; }
.page-hero .lede { margin: 0 auto; }
.page-hero .hero-img { width: 150px; margin: 0 auto 10px; filter: drop-shadow(0 10px 14px rgba(23, 58, 87, .2)); }
.prose { padding: 54px 0 30px; }
.prose h2 { margin-top: 1.6em; font-size: 1.8rem; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .45em; }
.callout { background: var(--mint-pale); border-left: 6px solid var(--leaf); border-radius: 14px; padding: 16px 20px; margin: 1.4em 0; }
.callout.gold { background: #FFF8D6; border-color: var(--gold-shade); }
.inline-cta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px; margin: 2em 0; }
.inline-cta p { margin: 0; font-weight: 700; font-size: 1.1rem; color: var(--navy-deep); }

/* Desktop QR code beside the Play badge (hidden on phones and touch screens) */
.play-qr { display: none; }
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  .play-row { display: inline-flex; align-items: center; gap: 36px; vertical-align: middle; } /* badge has 14px clear space built in */
  .play-qr { display: inline-flex; align-items: center; gap: 12px; padding-left: 22px; border-left: 2px solid rgba(23, 58, 87, .12); }
  .play-qr .qr { width: 72px; height: 72px; flex: none; border-radius: 8px; box-shadow: var(--shadow-sm); }
  .play-qr span { width: 9.5em; text-align: left; font-size: .85rem; line-height: 1.35; color: var(--ink-soft); font-weight: 600; }
}
.in-app .play-qr { display: none; }

/* FAQ */
.faq details { background: var(--white); border-radius: 16px; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 800; color: var(--navy-deep); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 800 1.5rem var(--head); color: var(--leaf); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 20px 16px; }
.faq h2 { margin-top: 1.4em; font-size: 1.5rem; scroll-margin-top: 90px; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.faq-nav a { font-weight: 800; font-size: .9rem; text-decoration: none; background: var(--mint-pale); padding: 6px 12px; border-radius: 999px; }

/* Forms */
.form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; display: grid; gap: 16px; }
.form label { font-weight: 800; color: var(--navy-deep); display: grid; gap: 6px; }
.form input, .form select, .form textarea { font: 1rem var(--body); padding: 12px 14px; border-radius: 12px; border: 2px solid #C8D8E6;
  background: #FBFDFF; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--sky-deep); outline: none; }
.form textarea { min-height: 150px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.form .check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.form .hint { font-weight: 600; font-size: .88rem; color: var(--ink-soft); }
.form .hp { position: absolute; left: -5000px; }
.form-msg { padding: 14px 18px; border-radius: 14px; font-weight: 700; }
.form-msg.ok { background: #E3F7D2; color: #2E6A0E; } .form-msg.err { background: #FDE3E3; color: #9B1C1C; }

/* News */
.news-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px 24px; margin-bottom: 18px; }
.news-item time { font-weight: 800; font-size: .85rem; color: var(--leaf-text); }

/* Footer */
.footer { background: var(--navy-deep); color: #D5E4F2; padding: 54px 0 26px; margin-top: 0; }
.footer a, .footer .linklike { color: #fff; text-decoration: none; display: block; margin: 0 0 8px; font-weight: 600; }
.footer a:hover, .footer .linklike:hover { color: var(--gold-2); }
.footer .play-btn { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1fr; gap: 30px; }
.foot-h { font: 800 1rem var(--body); color: var(--gold-2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.fine { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 34px; padding-top: 20px; font-size: .85rem; color: #A9BFD3; }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Cookie banner */
.cookie { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-inline: auto;
  background: var(--white); border-radius: 18px; box-shadow: 0 16px 40px rgba(15, 26, 38, .3); padding: 18px 20px; }
.cookie p { margin: 0 0 12px; font-size: .95rem; }
.cookie-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Yes or no oracle */
.oracle-hero { background: radial-gradient(ellipse at top, #6A2A9C, #390F60 75%); color: #F3E9FF; }
.oracle-hero h1 { color: #FFE58A; } .oracle-hero .lede { color: #E3D3F6; }
.oracle-hero .kicker { background: rgba(255, 229, 138, .15); color: #FFE58A; }
.oracle { margin: 26px auto 0; max-width: 520px; display: grid; gap: 14px; justify-items: center; }
.orb-wrap { position: relative; width: 260px; height: 190px; }
.orb { width: 260px; filter: drop-shadow(0 0 24px rgba(186, 120, 255, .6)); transition: transform .4s; }
.oracle-flucky { position: absolute; width: 74px; right: -34px; bottom: -6px; }
.oracle.asking .orb { animation: swirl 1.4s ease-in-out; }
@keyframes swirl { 0% { transform: scale(1); filter: drop-shadow(0 0 24px rgba(186, 120, 255, .6)); } 50% { transform: scale(1.08) rotate(-3deg); filter: drop-shadow(0 0 46px rgba(255, 229, 138, .95)); } 100% { transform: scale(1); } }
.oracle input[type=text] { width: 100%; font: 700 1.1rem var(--body); padding: 14px 18px; border-radius: 16px; border: 2px solid rgba(255, 229, 138, .5);
  background: rgba(255, 255, 255, .95); color: var(--ink); text-align: center; }
.oracle-areas { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.oracle-areas label { cursor: pointer; }
.oracle-areas input { position: absolute; opacity: 0; }
.oracle-areas span { display: inline-block; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: .9rem;
  background: rgba(255, 255, 255, .1); color: #F3E9FF; box-shadow: inset 0 0 0 1px rgba(255, 229, 138, .35); }
.oracle-areas input:checked + span { background: #FFE58A; color: var(--purple-deep); }
.oracle-areas input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.oracle-btn { font-size: 1.1rem; padding: 14px 34px; }
.oracle-answer { background: rgba(255, 255, 255, .08); border-radius: 18px; padding: 16px 20px; width: 100%; box-shadow: inset 0 0 0 1px rgba(255, 229, 138, .3); }
.oracle-word { font: 800 2.2rem/1.1 var(--head); color: #FFE58A; margin: 0 0 6px; }
.oracle-line { margin: 0 0 8px; font-size: 1.05rem; }
.oracle-more a, .oracle-note { color: #E3D3F6; }
.oracle-note { margin: 0; opacity: .85; }
.oracle.done .oracle-answer { animation: pop .4s ease-out; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Wishing well toss */
.well { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin: 0 0 2em; display: grid; gap: 14px; text-align: center; }
.well h2 { margin: 0; font-size: 1.6rem; }
.well-stage { position: relative; height: 230px; overflow: hidden; border-radius: 18px;
  background: linear-gradient(180deg, #A8E3FB, #DFF6FE 70%, #E9FBF2); }
.well-stage .well-fountain { position: absolute; left: 50%; bottom: -8px; width: 250px; transform: translateX(-50%); }
.well-coin { position: absolute; left: 50%; bottom: 8px; width: 46px; transform: translateX(-50%); opacity: 0; }
.well.tossing .well-coin { animation: toss 1.1s cubic-bezier(.3, .7, .4, 1) forwards; }
@keyframes toss { 0% { opacity: 1; bottom: 0; transform: translateX(-50%) scale(1.2) rotate(0); }
  55% { bottom: 175px; transform: translateX(-50%) scale(.8) rotate(540deg); }
  100% { opacity: 0; bottom: 92px; transform: translateX(-50%) scale(.45) rotate(900deg); } }
.well-splash { position: absolute; left: 50%; bottom: 88px; width: 20px; height: 8px; border-radius: 50%; border: 3px solid #fff;
  transform: translateX(-50%); opacity: 0; }
.well.tossed .well-splash { animation: ripple .9s ease-out; }
@keyframes ripple { from { opacity: .95; width: 20px; height: 8px; } to { opacity: 0; width: 170px; height: 44px; } }
.well-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.well input[type=text] { flex: 1 1 240px; font: 600 1rem var(--body); padding: 12px 14px; border-radius: 12px; border: 2px solid #C8D8E6; }
.coin-pick { display: flex; gap: 8px; }
.coin-pick label { cursor: pointer; }
.coin-pick input { position: absolute; opacity: 0; }
.coin-pick span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; font-weight: 800;
  background: var(--mint-pale); box-shadow: inset 0 0 0 2px transparent; }
.coin-pick img { width: 28px; }
.coin-pick input:checked + span { box-shadow: inset 0 0 0 2px var(--leaf); background: #EAF7CF; }
.coin-pick input:focus-visible + span { outline: 3px solid var(--purple-2); outline-offset: 2px; }
.well-msg { font: 700 1.15rem var(--head); color: var(--navy-deep); min-height: 1.4em; margin: 0; }
.well-count { font-size: .85rem; color: var(--ink-soft); margin: 0; min-height: 1.2em; }
@media (prefers-reduced-motion: reduce) { .well.tossing .well-coin, .oracle.asking .orb { animation-duration: .01s; } }

/* In-app pages (/app/…, layout-app.html): opened inside the game's web view. No header/footer; compact. */
.in-app { background: var(--cream); padding-bottom: env(safe-area-inset-bottom); }
.in-app .page-hero { padding: 22px 0 18px; }
.in-app .page-hero h1 { font-size: 1.9rem; }
.in-app .page-hero .lede { font-size: 1.02rem; }
.in-app .page-hero .hero-img { width: 80px !important; margin-bottom: 4px; }
.in-app .prose { padding: 22px 0 10px; }
.in-app .prose h2 { font-size: 1.45rem; margin-top: 1.2em; }
.in-app .faq h2 { scroll-margin-top: 12px; }
.in-app .news-item { padding: 16px 18px; }
.in-app .play-btn, .in-app .inline-cta, .in-app .play-btn { display: none; }
.app-fine { text-align: center; font-size: .78rem; color: var(--ink-soft); margin: 8px 16px 18px; }

.step-art { height: 150px; width: auto; max-width: 70%; object-fit: contain; margin: 4px auto 14px; filter: drop-shadow(0 8px 10px rgba(23, 58, 87, .18)); }
.charm-card.no-img { grid-template-columns: 1fr; }
.mystery { padding: 64px 0; background: radial-gradient(ellipse at center, #4B1675, #22093A 75%); }
.mystery h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.mystery p { font-size: 1.15rem; color: #E3D3F6; max-width: 34em; margin-inline: auto; }
.home .step { padding-top: 26px; }

/* Art has different shapes (cropped to its outline): always fit inside the box, never stretch. */
.area img, .charm-chip img, .card img.ico, .charm-card img, .hero-img, .flucky-sm, .step-art { object-fit: contain; }

/* Hero sky: the game's clouds drifting + breeze wisps, behind the fountain (decoration only) */
.hero-sky { position: absolute; inset: 0 0 38% 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cloud { position: absolute; left: 0; height: auto; opacity: .95; will-change: transform; animation: drift linear infinite; }
.cloud.c1 { top: 4%; width: 260px; animation-duration: 95s; animation-delay: -20s; }
.cloud.c2 { top: 26%; width: 200px; animation-duration: 120s; animation-delay: -75s; opacity: .85; }
.cloud.c3 { top: 12%; width: 150px; animation-duration: 80s; animation-delay: -50s; opacity: .8; }
.cloud.c4 { top: 40%; width: 120px; animation-duration: 140s; animation-delay: -110s; opacity: .7; }
@keyframes drift { from { transform: translateX(-320px); } to { transform: translateX(calc(100vw + 40px)); } }
.breeze { position: absolute; inset: 0; width: 100%; height: 100%; }
.breeze path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 140 900;
  opacity: 0; animation: gust 9s ease-in-out infinite; }
.breeze .w2 { animation-delay: -3s; } .breeze .w3 { animation-delay: -5.5s; stroke-width: 2; } .breeze .w4 { animation-delay: -7.5s; stroke-width: 2; }
@keyframes gust { 0% { stroke-dashoffset: 260; opacity: 0; } 20% { opacity: .75; } 60% { opacity: .55; } 100% { stroke-dashoffset: -760; opacity: 0; } }
.hero-in { z-index: 2; }
/* Flucky stands in front of the fountain, clear of the phone */
.hero-art .fountain { z-index: 1; }
.hero-art .phone { z-index: 2; }
.hero-art .flucky { z-index: 3; width: 27%; left: 24%; right: auto; bottom: 2%; }
@media (prefers-reduced-motion: reduce) { .cloud, .breeze path { animation: none; } .breeze { display: none; } }

/* Top bar in the hero's sky blue so it melds into the hero (the wooden logo stands out on blue) */
:root { --sky-top: #8ED9FA; }
.topbar { background: rgba(142, 217, 250, .94); border-bottom: 0; box-shadow: 0 6px 18px -14px rgba(23, 58, 87, .45); }
.nav a { color: var(--navy-deep); }
.nav a:hover { background: rgba(255, 255, 255, .45); }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .7); }
.menu-btn { background: rgba(255, 255, 255, .6); }
@media (max-width: 860px) { .nav { background: var(--sky-top); } .nav a:hover { background: rgba(255, 255, 255, .45); } }
.hero { background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky) 45%, #A8E3FB 100%); }
.page-hero { background: linear-gradient(180deg, var(--sky-top), #C9EEFD); }
/* The hero's pale reading wash starts below the top, so the sky continues straight on from the top bar */
.hero::after { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%); mask-image: linear-gradient(180deg, transparent 0, #000 26%); }

/* Hero v3 (wide screens): one continuous sky. A soft glow behind the text instead of a pale wash; the clouds and
   breeze stay on the fountain side, out from behind the headline. */
.topbar { box-shadow: none; }
.hero::after { -webkit-mask-image: none; mask-image: none;
  background: radial-gradient(ellipse 48% 62% at 22% 56%, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0) 70%); }
@media (min-width: 901px) {
  .hero-sky { left: 46%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); }
  @keyframes drift { from { transform: translateX(-320px); } to { transform: translateX(56vw); } }
}
@media (max-width: 900px) {
  .hero::after { background: radial-gradient(ellipse 80% 40% at 50% 28%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 75%); }
}

/* Hero text v2: frosted panel over the art, bolder body text, warmer label */
.hero-copy { position: relative; }
@media (min-width: 901px) {
  .hero-copy { padding: 30px 34px 26px; border-radius: 28px; background: rgba(255, 255, 255, .5);
    -webkit-backdrop-filter: blur(8px) saturate(1.1); backdrop-filter: blur(8px) saturate(1.1);
    box-shadow: 0 18px 40px -22px rgba(23, 58, 87, .45), inset 0 0 0 1px rgba(255, 255, 255, .6); }
}
.hero h1 { text-shadow: 0 2px 0 rgba(255, 255, 255, .55); margin-bottom: .35em; }
.hero h1 em { color: #6A1497; }
.hero .lede { font-size: clamp(1.12rem, 1.6vw, 1.32rem); font-weight: 700; line-height: 1.55; color: var(--navy-deep); max-width: 32em; }
.hero .kicker { background: linear-gradient(#FFF6C2, #FFE680); color: #8A4B12; box-shadow: 0 2px 0 rgba(226, 164, 38, .55); }
.hero-note { font-weight: 700; color: var(--navy); }
.hero .btn.ghost { box-shadow: inset 0 0 0 2px var(--navy), 0 4px 12px -6px rgba(23, 58, 87, .4); }
.hero .lede, .section-head p, .lede { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }

/* Hero background: gradients only (no stretched grass art) */
.hero { background: linear-gradient(180deg, var(--sky-top) 0%, #A6E2FB 42%, #D6F3F0 70%, #DDF3B8 88%, #C8E98E 100%); }
.hero::before { height: 34%; -webkit-mask-image: none; mask-image: none;
  background: radial-gradient(ellipse 42% 60% at 72% 100%, rgba(155, 189, 60, .55), rgba(155, 189, 60, 0) 70%),
              radial-gradient(ellipse 70% 70% at 30% 110%, rgba(215, 234, 114, .5), rgba(215, 234, 114, 0) 70%); }
@media (max-width: 900px) {
  .hero::before { height: 26%; background: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(155, 189, 60, .5), rgba(155, 189, 60, 0) 72%); }
}

/* Top bar: original height, a little space under the logo */
.topbar-in { min-height: 72px; padding: 5px 0 9px; }
.brand img { display: block; }
.faq h2 { scroll-margin-top: 96px; }
@media (max-width: 860px) { .nav { top: 100%; } }

/* Oracle + crystal ball heroes: a night sky (must beat the sky-blue .page-hero) */
.page-hero.oracle-hero, .page-hero.night-hero {
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff 99%, transparent), radial-gradient(1px 1px at 27% 64%, #fff 99%, transparent),
    radial-gradient(1.5px 1.5px at 41% 14%, #FFE58A 99%, transparent), radial-gradient(1px 1px at 58% 38%, #fff 99%, transparent),
    radial-gradient(2px 2px at 73% 18%, #fff 99%, transparent), radial-gradient(1px 1px at 86% 52%, #FFE58A 99%, transparent),
    radial-gradient(1.5px 1.5px at 93% 12%, #fff 99%, transparent), radial-gradient(1px 1px at 6% 78%, #fff 99%, transparent),
    radial-gradient(ellipse 70% 60% at 50% 38%, rgba(176, 102, 255, .45), rgba(176, 102, 255, 0) 70%),
    linear-gradient(180deg, #2A0B4A 0%, #4A157A 55%, #5C1D8C 100%);
  color: #F3E9FF; padding-bottom: 54px; }
.oracle-hero h1, .night-hero h1 { color: #FFE58A; text-shadow: 0 2px 14px rgba(255, 200, 80, .35); }
.oracle-hero .lede, .night-hero .lede { color: #F1E6FF; font-weight: 600; }
.oracle-hero .kicker, .night-hero .kicker { background: rgba(255, 229, 138, .18); color: #FFE58A; box-shadow: inset 0 0 0 1px rgba(255, 229, 138, .35); }
.oracle-areas span { background: rgba(255, 255, 255, .14); color: #fff; }
.oracle-note { color: #E3D3F6; opacity: 1; }

/* App icon: hero badge + final call-to-action */
.app-badge { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 6px 16px 6px 6px;
  border-radius: 20px; background: rgba(255, 255, 255, .72); box-shadow: 0 6px 16px -8px rgba(23, 58, 87, .45); }
.app-badge img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 3px 8px rgba(23, 58, 87, .3); }
.app-badge b { display: block; font: 800 1.05rem/1.15 var(--head); color: var(--brown); }
.app-badge span { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #8A4B12; }
.cta-icon { width: 128px; height: 128px; margin: 0 auto 16px; border-radius: 30px;
  box-shadow: 0 14px 30px -10px rgba(23, 58, 87, .55), 0 0 0 6px rgba(255, 255, 255, .55); }
@media (max-width: 900px) { .app-badge { margin-inline: auto; } }

/* Phones: the phone mockup moves below the fountain, nearly full width, and glides in as it scrolls into view.
   Wider screens keep it beside the fountain. */
.phone-mobile { display: none; }
@media (max-width: 900px) {
  .hero-art .phone { display: none; }
  .hero-art { min-height: 330px; max-width: 420px; }
  .hero-art .fountain { width: 78%; left: 4%; }
  .hero-art .flucky { width: 32%; left: auto; right: 6%; bottom: 0; }
  .phone-mobile { display: block; width: min(400px, 92%); margin: 30px auto 0; border-radius: 40px; padding: 11px; }
  .phone-mobile img { border-radius: 30px; }
}
.reveal { opacity: 0; transform: translateY(46px) scale(.9); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Comparison pages (/compare/ and the "alternative" / "vs" pages): a side-by-side table that scrolls on phones. */
.cmp-wrap { overflow-x: auto; margin: 22px 0 8px; border-radius: 16px; box-shadow: var(--shadow-sm); background: var(--white); }
.cmp { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .97rem; }
.cmp th, .cmp td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #E4EEF3; }
.cmp thead th { background: var(--mint-pale); font-family: var(--head); font-size: 1.05rem; color: var(--navy-deep); }
.cmp tbody th { font-weight: 800; color: var(--navy-deep); width: 26%; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp .us { background: #FFF8D6; }
.checked { color: var(--ink-soft); font-size: .9rem; margin-top: 0; }
.verdict { background: var(--white); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 18px 22px; margin: 18px 0; }
.verdict h3 { margin-top: 0; }
.cmp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0; list-style: none; }
.cmp-list li { background: var(--white); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 16px 18px; margin: 0; }
.cmp-list a { font-weight: 800; }
@media (max-width: 700px) { .cmp-list { grid-template-columns: 1fr; } }
.tm-note { font-size: .85rem; color: var(--ink-soft); }

/* Landing: Play button under the three rituals, where "What's your fortune today?" scrolls to. */
.steps-cta { display: flex; justify-content: center; margin-top: 36px; }

/* Waiting-list popup (pre-launch; build.js SITE.waitlist) */
dialog.waitlist { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border: 0;
  border-radius: var(--radius); padding: 28px 24px 22px; background: var(--cream); color: var(--ink); box-shadow: var(--shadow); text-align: center; }
dialog.waitlist::backdrop { background: rgba(23, 58, 87, .55); }
dialog.waitlist h2 { font-size: 1.8rem; margin: 6px 0 8px; }
dialog.waitlist p { margin: 0 0 14px; }
dialog.waitlist .form { padding: 18px; text-align: left; box-shadow: none; border: 2px solid #E3ECF4; }
dialog.waitlist .btn { width: 100%; }
.wl-flucky { width: 64px; height: auto; display: block; margin: 0 auto; }
.wl-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--mint-pale); color: var(--navy-deep); font-size: 1.6rem; line-height: 1; cursor: pointer; }
dialog.waitlist { position: fixed; }

.form[hidden], .form-msg[hidden] { display: none; }
.fine p { margin: 0 0 4px; } .footer .fine a { display: inline; padding: 0; color: inherit; text-decoration-thickness: 1px; } .fine a:hover { color: var(--white); }

/* Hero fountain: the water flows. Light streaks slide down through a mask of the image's water (fountain-water-mask.png,
   cut from fountain.webp's cyan water, owner 2026-11-28), plus a slow shimmer. Decoration only; still for reduced motion. */
.hero-art .fountain img { display: block; width: 100%; height: auto; }
.hero-art .fountain .water { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(/assets/img/fountain-water-mask.png) center / 100% 100% no-repeat;
  mask: url(/assets/img/fountain-water-mask.png) center / 100% 100% no-repeat; }
.hero-art .fountain .water::before, .hero-art .fountain .water::after { content: ""; position: absolute; inset: 0; }
.hero-art .fountain .water::before { /* streaks falling */
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 12px,
    rgba(255, 255, 255, .5) 16px, rgba(255, 255, 255, .15) 22px, rgba(255, 255, 255, 0) 28px, rgba(255, 255, 255, 0) 34px);
  background-size: 100% 34px; animation: water-fall .8s linear infinite; }
.hero-art .fountain .water::after { /* a soft band of light drifting down, so the streaks don't look mechanical */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, 0) 100%);
  background-size: 100% 45%; background-repeat: no-repeat; animation: water-glint 3.4s ease-in-out infinite; }
@keyframes water-fall { from { background-position: 0 0; } to { background-position: 0 34px; } }
@keyframes water-glint { from { background-position: 0 -60%; } to { background-position: 0 160%; } }
@media (prefers-reduced-motion: reduce) { .hero-art .fountain .water { display: none; } }
