/* MyAmazeLand — site styles. Calm paper background, one strong action per section. */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/fredoka-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/fredoka-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/fredoka-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/nunito-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/nunito-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/nunito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/nunito-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lilita One'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/lilita-one-400.woff2') format('woff2'); }

:root {
  --paper: #FFFBF2;
  --white: #FFFFFF;
  --ink: #1F2A44;
  --ink-2: #3A4560;
  --muted: #5A6480;
  --line: #ECE5D5;
  --soft: #FFF5E1;
  --teal: #12A39A;
  --teal-d: #0B6A64;
  --coral: #FF6B57;
  --coral-d: #D9442E;
  --yellow: #FFC93C;
  --yellow-soft: #FFF1C9;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(31, 42, 68, .06), 0 8px 24px rgba(31, 42, 68, .07);
  --shadow-lift: 0 2px 4px rgba(31, 42, 68, .08), 0 16px 36px rgba(31, 42, 68, .12);
  --head: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.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(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; color: #fff; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.center img { margin: 0 auto 16px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 40em; }
.eyebrow { font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-d); margin-bottom: .8em; }
.eyebrow a { color: inherit; text-decoration: none; }
.fine { font-size: .9rem; color: var(--muted); margin: .7em 0 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent; font: 800 1.05rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-coral { background: var(--coral-d); color: #fff; box-shadow: 0 4px 0 #A8321F; }
.btn-coral:hover { color: #fff; background: #C93C27; }
.btn-navy { background: var(--ink); color: #fff; box-shadow: 0 4px 0 #0E1526; }
.btn-navy:hover { color: #fff; }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-link { background: none; color: var(--teal-d); padding: 0 8px; text-decoration: underline; min-height: 44px; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .95rem; box-shadow: 0 3px 0 #A8321F; }

/* header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { flex: none; display: block; padding: 4px 0; }
.brand img { width: 300px; height: auto; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 9px 11px; border-radius: 999px; white-space: nowrap; font-size: .98rem; }
.header-cta { white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--soft); }
.main-nav a[aria-current] { color: var(--teal-d); }
@media (max-width: 1280px) {
  .header-inner { flex-wrap: wrap; gap: 4px 12px; padding: 10px 0 6px; min-height: 0; }
  .brand img { width: 250px; }
  .header-cta { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; gap: 2px; padding-bottom: 4px; scrollbar-width: none; }
  .main-nav a { padding: 8px 12px; font-size: .95rem; white-space: nowrap; }
}
@media (max-width: 420px) { .header-cta { display: none; } }

/* hero */
.hero { padding: 48px 0 24px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hl { color: var(--coral-d); position: relative; white-space: nowrap; }
.hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em; background: var(--yellow); border-radius: 99px; z-index: -1; }
.age-label { font: 600 1.15rem var(--head); margin: 1.4em 0 .6em; }
.age-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.age { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 8px; min-height: 96px;
  background: var(--white); border: 2px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s; }
.age b { font: 700 2rem/1 var(--head); color: var(--teal-d); }
.age span { font-weight: 700; color: var(--muted); font-size: .95rem; margin-top: 4px; }
.age:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: var(--shadow-lift); color: var(--ink); }
.hero-alt { margin-top: 18px; font-weight: 700; }
.hero-art img { width: 100%; max-width: 520px; margin-left: auto; }
@media (max-width: 860px) {
  .hero { padding-top: 28px; }
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 260px; margin: 0 auto; }
}

/* trust strip */
.trust { padding: 8px 0 24px; }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust p { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 16px; background: var(--white); border-radius: 16px;
  font-weight: 700; font-size: .98rem; border: 1px solid var(--line); }
.tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); position: relative; }
.tick::after { content: ''; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
@media (max-width: 860px) { .trust-inner { grid-template-columns: 1fr 1fr; } .trust p { font-size: .9rem; } }

/* sections */
.section { padding: 56px 0; }
.section-tight { padding: 28px 0 56px; }
.section-soft { background: var(--soft); }
.section-head { margin-bottom: 24px; }
.section-head p { color: var(--ink-2); margin: 0; }
.page-head { padding: 44px 0 8px; }

/* today */
.today { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; background: var(--white); border-radius: var(--radius);
  padding: 24px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); transition: box-shadow .15s, transform .15s; }
.today:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); color: var(--ink); }
.today-thumb { background: var(--soft); border-radius: 16px; padding: 18px; aspect-ratio: 1; display: grid; place-items: center; }
.today-thumb img { max-height: 100%; width: auto; }
.today-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.today-title { font: 600 1.9rem/1.15 var(--head); }
@media (max-width: 700px) { .today { grid-template-columns: 1fr; padding: 16px; } .today-thumb { aspect-ratio: auto; max-height: 300px; } }

/* worlds */
.worlds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.world { display: flex; flex-direction: column; gap: 6px; background: var(--white); border-radius: var(--radius); padding: 0 0 18px;
  text-decoration: none; color: var(--ink); border: 1px solid var(--line); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.world:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.world-art { background: var(--wt); display: grid; place-items: center; padding: 18px 0 10px; border-bottom: 4px solid var(--w); margin-bottom: 8px; }
.world-art img { height: 150px; width: auto; transform: scale(1.25); transform-origin: bottom center; }
.world-name, .world-line, .world-meta { padding: 0 16px; }
.world-name { font: 600 1.25rem/1.2 var(--head); color: var(--wi); }
.world-line { font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
.world-meta { font-size: .82rem; font-weight: 800; color: var(--muted); margin-top: auto; padding-top: 6px; }
@media (max-width: 1000px) { .worlds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .worlds { grid-template-columns: 1fr 1fr; } .world-art img { height: 104px; } }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.steps p { margin: 0; color: var(--ink-2); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); font: 700 1.2rem var(--head); margin-bottom: 10px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* maker promo */
.maker-promo { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center; }
.maker-sample { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transform: rotate(2deg); }
@media (max-width: 860px) { .maker-promo { grid-template-columns: 1fr; } .maker-sample { max-width: 320px; } }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.card[hidden] { display: none; }
.card-thumb { background: var(--wt); aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 16px; border-bottom: 3px solid var(--w); }
.card-thumb img { max-height: 100%; width: auto; max-width: 100%; background: #fff; border-radius: 10px; padding: 8px; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.card-world { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wi, var(--teal-d)); }
.card-title { font: 600 1.15rem/1.25 var(--head); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chip { font-size: .8rem; font-weight: 700; color: var(--ink-2); background: var(--soft); border-radius: 999px; padding: 3px 10px; }

/* filters */
.filters { display: grid; gap: 10px; margin-bottom: 14px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { font-weight: 800; color: var(--muted); width: 60px; font-size: .9rem; }
.pill { font: 700 .95rem var(--body); padding: 9px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; min-height: 42px; }
.pill:hover { border-color: var(--teal); }
.pill.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.count { color: var(--muted); font-weight: 700; margin: 6px 0 14px; }
@media (max-width: 640px) {
  .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .filter-label { flex: none; width: auto; margin-right: 4px; }
  .pill { flex: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: 1rem; }
  .chip:nth-child(3) { display: none; }
}

/* world page */
.world-hero { background: var(--wt); border-bottom: 5px solid var(--w); padding: 40px 0; }
.world-hero h1 { color: var(--wi); }
.world-hero-inner { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: center; }
.world-hero-art { display: flex; align-items: flex-end; justify-content: center; gap: 8px; }
.world-hero-art img { height: 200px; width: auto; }
.world-hero-art .buddy { height: 140px; }
.world-skill { font-weight: 700; }
.level-block { margin-bottom: 40px; }
.level-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 1.5rem; }
.level-badge { display: inline-block; font: 800 .8rem var(--body); letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 12px; }
.level-ages { font: 700 .95rem var(--body); color: var(--muted); }
@media (max-width: 760px) { .world-hero-inner { grid-template-columns: 1fr; } .world-hero-art img { height: 140px; } .world-hero-art .buddy { height: 100px; } }

/* puzzle page */
.puzzle-top { padding: 24px 0 48px; }
.crumbs { font-weight: 700; font-size: .95rem; color: var(--muted); }
.crumbs a { color: var(--wi); }
.puzzle-layout { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; }
.puzzle-info { position: sticky; top: 96px; }
.puzzle-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.puzzle-how { margin-top: 14px; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.facts { list-style: none; padding: 0; margin: 0 0 12px; font-size: .95rem; color: var(--ink-2); }
.facts li { padding: 6px 0; border-top: 1px solid var(--line); }
.tip { font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) {
  .puzzle-layout { grid-template-columns: 1fr; gap: 20px; }
  .puzzle-info { position: static; }
  .actions .btn { flex: 1 1 auto; }
}

/* printable sheet */
.sheets { display: grid; gap: 24px; }
.sheet { background: #fff; border-radius: 8px; box-shadow: var(--shadow-lift); padding: 32px 36px 22px; max-width: 760px; width: 100%; margin: 0 auto;
  color: var(--ink); display: flex; flex-direction: column; }
.sheet-key { display: none; }
body.show-answer .sheet-key { display: flex; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 12px; border-bottom: 3px dotted var(--teal); }
.sheet-logo { width: 170px; }
.sheet-name { font: 600 1.1rem var(--head); display: flex; align-items: baseline; gap: 8px; }
.name-line { display: inline-block; width: 190px; border-bottom: 2px solid var(--ink); height: 1em; }
.sheet-title { text-align: center; margin: 14px 0 4px; }
.sheet-title h2 { font-size: 1.9rem; margin: 0 0 4px; }
.sheet-title p { font-size: .9rem; color: var(--muted); font-weight: 700; margin: 0; }
.sheet-help { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 14px; padding: 10px 14px; margin: 12px 0 16px; }
.sheet-help img { width: 46px; flex: none; }
.sheet-help p { margin: 0; font-size: .98rem; line-height: 1.45; }
.sheet-puzzle { display: flex; justify-content: center; }
.sheet-puzzle svg { width: 100%; height: auto; max-height: 720px; }
.sheet-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--muted); font-weight: 700; }
@media (max-width: 600px) {
  .sheet { padding: 16px 14px 12px; }
  .sheet-logo { width: 120px; }
  .name-line { width: 90px; }
  .sheet-title h2 { font-size: 1.35rem; }
  .sheet-help img { display: none; }
  .sheet-foot span:last-child { display: none; }
}

/* parents / prose */
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: 16px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 800; background: var(--soft); }
tr:last-child td { border-bottom: 0; }

/* packs */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pack { background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); position: relative; }
.pack-badge { display: inline-block; background: var(--yellow-soft); color: #7A5000; font-weight: 800; font-size: .78rem; border-radius: 999px; padding: 4px 10px; margin-bottom: 10px; }
.pack-meta { font-weight: 700; color: var(--muted); font-size: .9rem; margin-bottom: .5em; }
.pack-price { font: 700 1.6rem var(--head); color: var(--teal-d); margin: 0; }
.member { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 8px 0 8px 36px; position: relative; font-weight: 600; }
.checks li::before { content: ''; position: absolute; left: 0; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); }
.checks li::after { content: ''; position: absolute; left: 8px; top: 14px; width: 6px; height: 11px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.price-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lift); text-align: center; }
.price { font: 600 1.3rem var(--head); margin: 0; }
.price b { font-size: 3rem; }
.price-alt { color: var(--muted); font-weight: 700; }
.price-trial { display: inline-block; background: var(--yellow-soft); color: #7A5000; font-weight: 800; border-radius: 999px; padding: 4px 14px; margin-bottom: 10px; }
.price-region { font-size: .92rem; background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.price-intro { display: inline-block; background: var(--yellow-soft); color: #7A5000; font-weight: 800; font-size: .9rem; border-radius: 999px; padding: 4px 12px; margin-bottom: 10px; }
.price-local { font-size: .9rem; color: var(--ink-2); background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.promise { list-style: none; padding: 0; margin: 0 0 20px; font-size: .95rem; color: var(--ink-2); }
.promise li { padding: 4px 0; }
@media (max-width: 860px) { .packs, .member { grid-template-columns: 1fr; } }

/* maker */
.maker { display: grid; grid-template-columns: 360px 1fr; gap: 36px; align-items: start; }
.maker-panel { background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); position: sticky; top: 96px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.tab { font: 800 .95rem var(--body); border: 0; background: none; border-radius: 999px; padding: 10px; cursor: pointer; color: var(--ink-2); min-height: 44px; }
.tab.is-on { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.maker-form label, .maker-form legend { display: block; font-weight: 800; margin: 12px 0 6px; }
.maker-form input[type=text], .maker-form input:not([type]), .maker-form textarea { width: 100%; font: 700 1.1rem var(--body); padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); }
.maker-form textarea { font-weight: 600; font-size: 1rem; line-height: 1.5; resize: vertical; }
.maker-form input:focus, .maker-form textarea:focus { border-color: var(--teal); outline: none; }
.hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.seg { border: 0; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 800; }
.seg small { font-weight: 700; color: var(--muted); font-size: .72rem; }
.seg input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg input:checked + span small { color: #C9D6E8; }
.seg input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.maker .sheet-key { display: flex; }
@media (max-width: 900px) { .maker { grid-template-columns: 1fr; } .maker-panel { position: static; } }

/* signup */
.signup { background: var(--ink); color: #fff; padding: 48px 0; }
.signup-inner { display: grid; grid-template-columns: 170px 1fr; gap: 32px; align-items: center; }
.signup h2 { color: #fff; }
.signup p { color: #D7DEEA; }
.signup-art { width: 150px; }
.signup-form { display: flex; gap: 10px; max-width: 560px; flex-wrap: wrap; }
.signup-form input { flex: 1 1 240px; min-height: 52px; border-radius: 999px; border: 0; padding: 0 22px; font: 600 1.05rem var(--body); }
.signup .fine { color: #AEB8CC; }
.signup .fine.ok { color: var(--yellow); font-weight: 800; }
@media (max-width: 700px) { .signup-inner { grid-template-columns: 1fr; text-align: left; } .signup-art { width: 100px; } }

/* footer */
.site-footer { background: #151D31; color: #C9D2E3; padding: 40px 0 24px; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; }
.footer-inner img { width: 190px; margin-bottom: 12px; }
.footer-inner nav { display: grid; gap: 8px; }
.footer-inner a { color: #fff; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; color: #fff; }
.footer-base { border-top: 1px solid #2B3654; margin-top: 28px; padding-top: 18px; color: #8F9AB3; font-size: .85rem; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

/* print: only the sheet(s) */
@page { margin: 11mm; }
@media print {
  body { background: #fff; font-size: 12pt; }
  body * { visibility: hidden; }
  .sheets, .sheets * { visibility: visible; }
  .site-header, .site-footer, .signup, .no-print, .puzzle-info, .maker-panel, .crumbs, .skip { display: none !important; }
  .puzzle-top, .section, .wrap, .puzzle-layout, .maker { padding: 0 !important; margin: 0 !important; width: 100% !important; display: block !important; }
  .sheets { display: block; position: absolute; left: 0; top: 0; width: 100%; }
  .sheet { box-shadow: none; border-radius: 0; padding: 0; max-width: none; break-after: page; page-break-after: always; min-height: 0; }
  .sheet:last-child { break-after: auto; page-break-after: auto; }
  .sheet-key { display: none !important; }
  body.print-key .sheet-key { display: flex !important; }
  .sheet-puzzle svg { max-height: 178mm; width: auto; max-width: 100%; }
  .sheet-help { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet-puzzle, .sheet-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- library ---------- */
.lib-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 14px; }
.lib-bar .count { margin: 0; }
.card-thumb svg { width: 100%; height: 100%; max-height: 100%; background: #fff; border-radius: 10px; padding: 6px; }
.solved-tag { display: inline-block; background: var(--teal); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .7rem; letter-spacing: .04em; margin-left: 4px; }
.featured { margin-top: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.featured summary { font-weight: 800; cursor: pointer; }
.featured ul { columns: 3 220px; padding-left: 1.1em; margin: 12px 0 0; font-size: .95rem; }
.lib-callout { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; background: var(--white); border: 2px solid var(--w, var(--teal)); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 32px; }
.lib-callout p { margin: 0; font-size: 1.1rem; }
.featured-title { font-size: 1.4rem; color: var(--muted); }
.solved-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.solved-row .fine { margin: 0; }

/* ---------- puzzle page ---------- */
.play-page { padding: 24px 0 56px; }
.play-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.play-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 8px; }
.tabs-inline { display: inline-grid; grid-template-columns: auto auto; min-width: 280px; }
.tabs-inline .tab { padding: 10px 18px; }
.play-foot { text-align: right; font-weight: 800; margin-top: 18px; }

/* ---------- player ---------- */
.player { position: relative; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 20px; max-width: 820px; margin: 0 auto; }
.player-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 3px dotted var(--w, var(--teal)); margin-bottom: 16px; }
.player-how { margin: 0; flex: 1 1 320px; color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.player-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-hint { background: var(--yellow-soft); color: #6B4700; border-color: #F2D27A; box-shadow: none; }
.btn-hint:disabled { opacity: .5; cursor: default; transform: none; }
.player-board { display: grid; gap: 14px; justify-items: center; }
.board-svg { width: 100%; max-width: 640px; }
.board-svg svg { width: 100%; height: auto; display: block; }
.maze-board { cursor: pointer; border-radius: 12px; }
.maze-board:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.player-status { min-height: 1.6em; text-align: center; font-weight: 800; color: var(--wi, var(--teal-d)); margin: 10px 0 0; }
.palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pal { width: 58px; height: 58px; border-radius: 16px; border: 3px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; padding: 6px; font: 800 .85rem var(--body); color: var(--ink); }
.pal svg { width: 100%; height: 100%; }
.pal.is-on { border-color: var(--ink); background: var(--soft); box-shadow: 0 3px 0 var(--ink); }
.pal-erase { width: auto; padding: 0 14px; }
.code-key { max-width: 600px; }
.code-msg { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; max-width: 640px; }
.code-word { display: flex; gap: 6px; }
.code-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.code-cell svg { width: 46px; height: 38px; }
.code-cell input { width: 46px; height: 52px; text-align: center; font: 700 1.6rem var(--head); color: var(--teal-d); border: 2px solid var(--line); border-radius: 12px; background: var(--paper); text-transform: uppercase; padding: 0; }
.code-cell input:focus { border-color: var(--w, var(--teal)); outline: none; box-shadow: 0 0 0 3px var(--wt, #E3F5F3); }
.code-cell input.wrong, .brick-in.wrong { border-color: var(--coral); background: #FFE5E0; }
.code-cell input.right { border-color: var(--teal); background: #E3F5F3; }
.code-cell input.hinted, .brick-in.hinted { background: var(--yellow-soft); border-color: #F2D27A; }
.ws-board { cursor: pointer; }
.ws-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font: 600 1.15rem var(--head); max-width: 640px; }
.ws-list li { display: flex; align-items: center; gap: 8px; }
.ws-list li.found { color: var(--muted); text-decoration: line-through; }
.tick-box { width: 20px; height: 20px; border: 2.5px solid var(--w, var(--teal)); border-radius: 6px; }
.found .tick-box { background: var(--w, var(--teal)); }
.pyr { display: grid; gap: 8px; justify-items: center; padding: 10px 0; }
.pyr-row { display: flex; gap: 8px; }
.brick { width: clamp(52px, calc(84vw / var(--rows, 4)), 96px); height: 60px; border-radius: 14px; display: grid; place-items: center; font: 700 1.6rem var(--head); background: #E3F5F3; border: 3px solid var(--ink); color: var(--ink); }
input.brick { background: #fff; text-align: center; padding: 0; color: var(--coral-d); }
input.brick:focus { outline: none; box-shadow: 0 0 0 4px var(--wt, #E3F5F3); }
.player-win { position: fixed; inset: 0; background: rgba(31, 42, 68, .55); display: grid; place-items: center; padding: 16px; z-index: 50; overflow-y: auto; }
.player-win[hidden] { display: none; }
.win-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lift); padding: 24px 28px; text-align: center; max-width: 420px; width: 100%; animation: pop .35s ease-out; }
.win-aara { width: 90px; margin: 0 auto 4px; }
.win-title { font: 700 2rem var(--head); margin: 0; color: var(--ink); }
.win-stars { display: flex; justify-content: center; gap: 6px; margin: 8px 0; }
.win-stars svg { width: 54px; height: 54px; }
.win-sub { color: var(--ink-2); margin-bottom: 8px; }
.win-reward { background: var(--yellow-soft); border-radius: 12px; padding: 8px 12px; margin: 6px 0; font-size: .95rem; }
.win-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (max-width: 600px) {
  .player { padding: 12px; border-radius: 16px; }
  .player-tools .btn { flex: 1 1 auto; }
  .code-cell svg { width: 36px; height: 30px; }
  .code-cell input { width: 38px; height: 44px; font-size: 1.3rem; }
  .code-msg { gap: 8px 16px; }
  .brick { height: 48px; font-size: 1.25rem; }
  .pal { width: 48px; height: 48px; }
}

/* ---------- quest ---------- */
.quest-promo { background: linear-gradient(180deg, var(--paper), #FFF1C9); }
.quest-promo-inner { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.quest-promo-inner img { width: 200px; margin: 0 auto; }
.quest-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.quest-facts span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: .9rem; }
@media (max-width: 700px) { .quest-promo-inner { grid-template-columns: 1fr; } .quest-promo-inner img { width: 130px; } }
.quest-intro { background: linear-gradient(180deg, #FFF1C9, var(--paper)); padding: 40px 0 16px; }
.quest-intro-inner { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; }
.quest-intro-inner img { width: 170px; }
.quest-progress { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 8px 0 12px; }
.quest-progress p { margin: 0; font-weight: 700; }
.bar { width: 260px; max-width: 100%; height: 14px; background: #EFE7D2; border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.bar.small { width: 100%; height: 8px; }
.pieces { display: flex; gap: 6px; margin-bottom: 18px; }
.piece { width: 28px; height: 28px; border-radius: 50%; border: 2.5px dashed #CDBF9C; }
.piece.got { border: 0; background: radial-gradient(circle at 35% 35%, #FFE28A, var(--yellow) 60%, #E0A400); box-shadow: 0 2px 0 #C48C00; }
@media (max-width: 700px) { .quest-intro-inner { grid-template-columns: 1fr; } .quest-intro-inner img { width: 110px; } .piece { width: 22px; height: 22px; } }
.chapters { display: grid; gap: 18px; }
.chapter { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); border-top: 5px solid var(--w); padding: 18px 20px 20px; }
.chapter.locked { opacity: .6; }
.chapter-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.chapter-head img { width: 52px; flex: none; }
.chapter-head h2 { font-size: 1.4rem; margin: 0 0 2px; color: var(--wi); }
.chapter-head p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.chapter-n { font-size: .78rem !important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) !important; }
.stages { list-style: none; margin: 0; padding: 8px 0 18px; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; position: relative; }
.stages::before { content: ''; position: absolute; left: 4%; right: 4%; top: 50%; border-top: 4px dotted var(--w); opacity: .45; }
.stage { position: relative; display: flex; justify-content: center; }
.stage:nth-child(even) { transform: translateY(14px); }
.stage a, .stage span { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font: 700 1.05rem var(--head); }
.stage.open a { background: #fff; border: 3px solid var(--w); color: var(--ink); }
.stage.done a { background: var(--w); color: #fff; border: 3px solid var(--w); }
.stage.lock span { background: #EFEAE0; color: #A39C8C; border: 3px solid #E2DACB; }
.stage.boss a, .stage.boss span { width: 56px; height: 56px; border-radius: 16px; }
.stage.current a { box-shadow: 0 0 0 5px var(--yellow); animation: bob 1.6s ease-in-out infinite; }
.stage .st { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .7rem; color: #E0A400; white-space: nowrap; letter-spacing: -1px; }
@keyframes bob { 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .stage.current a { animation: none; } }
@media (max-width: 640px) {
  .stages { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 26px; }
  .stages::before { display: none; }
  .stage:nth-child(even) { transform: none; }
}
.story { display: flex; gap: 14px; align-items: center; background: var(--wt, var(--soft)); border-radius: 18px; padding: 14px 18px; margin-bottom: 18px; }
.story img { width: 54px; flex: none; }
.story p { margin: 0; font-weight: 700; color: var(--ink); }

/* ---------- passport ---------- */
.pass-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 28px; }
.pass-name label { display: block; font-weight: 800; margin-bottom: 6px; }
.pass-name input { width: 100%; max-width: 360px; font: 700 1.2rem var(--body); padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
.pass-stats { display: flex; gap: 12px; }
.pass-stats p { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; text-align: center; min-width: 110px; }
.pass-stats b { display: block; font: 700 2rem var(--head); color: var(--teal-d); }
.pass-stats span { font-size: .85rem; font-weight: 700; color: var(--muted); }
@media (max-width: 760px) { .pass-top { grid-template-columns: 1fr; } .pass-stats p { min-width: 0; flex: 1; padding: 10px; } }
.muted { color: var(--muted); }
.stamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 14px 0 32px; }
.stamp-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-align: center; }
.stamp { width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; border: 4px dashed #D9D2C2; filter: grayscale(1); opacity: .5; }
.stamp img { height: 70px; width: auto; }
.has-bronze .stamp, .has-silver .stamp, .has-gold .stamp { filter: none; opacity: 1; border-style: solid; transform: rotate(-6deg); }
.has-bronze .stamp { border-color: #C9864A; background: #FBEBDD; }
.has-silver .stamp { border-color: #9AA6B8; background: #EEF2F7; }
.has-gold .stamp { border-color: #E0A400; background: #FFF1C9; }
.stamp-world { font: 600 1.05rem var(--head); color: var(--wi); margin: 0; }
.stamp-level { font-weight: 800; margin: 0; font-size: .9rem; }
.stamp-next { font-size: .8rem; color: var(--muted); margin: 2px 0 6px; }
@media (max-width: 900px) { .stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.badges { list-style: none; padding: 0; margin: 14px 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.badge { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; opacity: .55; }
.badge b { font-family: var(--head); font-weight: 600; }
.badge > span:not(.badge-icon):not(.sr-only) { grid-column: 2; font-size: .85rem; color: var(--muted); }
.badge-icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: #EFEAE0; position: relative; }
.badge.on { opacity: 1; border-color: #F2D27A; }
.badge.on .badge-icon { background: radial-gradient(circle at 35% 35%, #FFE28A, var(--yellow) 60%, #E0A400); }
.badge.on .badge-icon::after { content: ''; position: absolute; inset: 11px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: #fff; }
.cert { aspect-ratio: 1.414; max-width: 760px; padding: 18px; }
.cert-inner { height: 100%; border: 6px double var(--teal); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: linear-gradient(180deg, #fff, #FFFBF2); }
.cert-logo { width: 240px; }
.cert-kicker { font: 700 1.6rem var(--head); color: var(--coral-d); margin: 10px 0 0; }
.cert-to { color: var(--muted); margin: 0; }
.cert-name { font: 700 clamp(2rem, 6vw, 3.2rem) var(--head); color: var(--ink); margin: 0; border-bottom: 3px dotted var(--teal); padding: 0 24px 4px; }
.cert-text { max-width: 30em; margin: 8px 0; }
.cert-foot { margin-top: auto; display: flex; align-items: center; gap: 14px; width: 100%; justify-content: center; }
.cert-foot img { width: 64px; }
.cert-foot p { margin: 0; text-align: left; font-size: .95rem; }
.cert-date { color: var(--muted); }
.reset-box { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 12px; }
.reset-box [data-reset-confirm] { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-top: 8px; }
@media print { .cert { aspect-ratio: auto; height: 180mm; } .cert-inner { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ---------- reasoning and maths play ---------- */
.qa { display: grid; gap: 16px; width: 100%; max-width: 680px; }
.qa-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qa-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font: 700 1rem var(--head); }
.seq, .chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tile { min-width: 54px; height: 54px; padding: 0 8px; border-radius: 14px; background: #E8EEF6; border: 2px solid var(--ink); display: grid; place-items: center; font: 700 1.4rem var(--head); }
.tile.round { border-radius: 50%; background: #E3F5F3; border-color: var(--teal); min-width: 54px; }
.qa-in { width: 64px; height: 54px; border-radius: 14px; border: 3px dashed var(--coral); background: #fff; text-align: center; font: 700 1.4rem var(--head); color: var(--coral-d); padding: 0; }
.qa-in:focus { outline: none; border-style: solid; box-shadow: 0 0 0 4px #FFE5E0; }
.qa-in.wrong { border-style: solid; background: #FFE5E0; }
.qa-in.right { border: 3px solid var(--teal); background: #E3F5F3; color: var(--teal-d); }
.qa-in.hinted { border-style: solid; border-color: #F2D27A; background: var(--yellow-soft); }
.op { font: 700 .9rem var(--head); background: var(--yellow); border-radius: 999px; padding: 4px 10px; }
.op-big { font: 700 1.6rem var(--head); padding: 0 4px; }
.qa-note { width: 100%; margin: 0; font-weight: 800; color: var(--teal-d); font-size: .95rem; }
.qa-row.story { align-items: flex-start; }
.qa-row.story p { margin: 2px 0 8px; font-size: 1.08rem; font-weight: 600; max-width: 36em; }
.story-ans { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--teal-d); }
.story-ans .qa-in { width: 96px; }
.qa-row.eq { background: #F6F9FD; border-radius: 16px; padding: 8px 12px; gap: 6px; }
.qa-icon { width: 44px; height: 44px; }
.ask { display: inline-flex; align-items: center; gap: 4px; margin-right: 14px; }
.clues { margin: 0 0 12px; padding-left: 1.4em; display: grid; gap: 6px; font-weight: 600; font-size: 1.05rem; max-width: 640px; }
.logic { width: 100%; max-width: 680px; }
.logic-table th, .logic-table td { padding: 8px 10px; }
.logic-table select { font: 700 1rem var(--body); padding: 8px 10px; border-radius: 10px; border: 2px solid var(--line); background: #fff; color: var(--ink); min-width: 110px; }
.logic-table select.wrong { border-color: var(--coral); background: #FFE5E0; }
.logic-table select.hinted { border-color: #F2D27A; background: var(--yellow-soft); }
.odd { display: grid; gap: 12px; width: 100%; max-width: 680px; }
.odd-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.odd-item { min-width: 96px; height: 64px; padding: 0 12px; border-radius: 16px; border: 2px solid var(--ink); background: #F6F9FD; font: 700 1.3rem var(--head); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.odd-item svg { width: 44px; height: 44px; }
.odd-item.is-on { border: 4px solid var(--teal); background: #E3F5F3; }
.odd-item.wrong { border-color: var(--coral); background: #FFE5E0; }
.odd-why { width: 100%; margin: 0 0 0 42px; color: var(--teal-d); font-weight: 700; font-size: .92rem; }
@media (max-width: 600px) {
  .tile, .tile.round { min-width: 44px; height: 46px; font-size: 1.15rem; }
  .qa-in { width: 52px; height: 46px; font-size: 1.15rem; }
  .odd-item { min-width: 64px; height: 54px; font-size: 1rem; }
  .qa-icon { width: 36px; height: 36px; }
}

/* ---------- membership plans ---------- */
.trial-pill { display: inline-block; background: var(--yellow-soft); color: #6B4700; font-weight: 800; border-radius: 999px; padding: 8px 16px; margin: 6px 0 0; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 12px; }
.plan { position: relative; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 20px 18px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.3rem; margin-bottom: 6px; }
.plan-best { border-color: var(--teal); box-shadow: var(--shadow-lift); }
.plan-flag { position: absolute; top: -13px; left: 20px; background: var(--teal); color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; }
.plan-price { margin: 0; font: 600 1rem var(--head); color: var(--muted); }
.plan-price b { font-size: 2.2rem; color: var(--ink); margin-right: 4px; }
.plan-per { margin: 2px 0 12px; font-weight: 700; color: var(--ink-2); }
.save { color: var(--teal-d); font-weight: 800; }
.plan-facts { list-style: none; padding: 12px 0 0; margin: 0 0 10px; border-top: 1px dashed var(--line); display: grid; gap: 4px; font-size: .95rem; }
.plan-facts b { font-family: var(--head); font-size: 1.15rem; }
.plan-line { margin: auto 0 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }
.compare td, .compare th { font-variant-numeric: tabular-nums; }
.compare tr.us td { background: #E3F5F3; }
.ladder { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.ladder li { background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); position: relative; }
.ladder li:not(:last-child)::after { content: ''; position: absolute; right: -12px; top: 50%; width: 10px; height: 10px; border-top: 3px solid var(--teal); border-right: 3px solid var(--teal); transform: translateY(-50%) rotate(45deg); }
.ladder h3 { font-size: 1.2rem; margin: 6px 0 4px; }
.ladder p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.rank { font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-d); }
@media (max-width: 900px) { .ladder { grid-template-columns: 1fr 1fr; } .ladder li::after { display: none; } }

/* ---------- reviews and feedback ---------- */
.review-avg { font-size: 1.1rem; margin-bottom: 14px; }
.review-avg b { font: 700 2rem var(--head); color: var(--teal-d); margin-right: 6px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.review-stars { color: #E0A400; margin: 0 0 6px; letter-spacing: 2px; }
.review-stars span { color: #E4DED0; }
.review blockquote { margin: 0 0 8px; font-weight: 600; }
.review figcaption { color: var(--muted); font-size: .9rem; font-weight: 700; }
.feedback { display: grid; gap: 8px; background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.feedback label { font-weight: 800; }
.feedback textarea, .feedback input:not([type=radio]):not([type=checkbox]) { width: 100%; font: 600 1rem var(--body); padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 600 !important; font-size: .95rem; }
.feedback .btn { justify-self: start; margin-top: 6px; }
.feedback .fine.ok { color: var(--teal-d); font-weight: 800; }
.stars-input { border: 0; padding: 0; margin: 0 0 4px; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input legend { font-weight: 800; margin-bottom: 4px; float: left; width: 100%; }
.stars-input input { position: absolute; opacity: 0; }
.stars-input label { font-size: 2.2rem; color: #E4DED0; cursor: pointer; line-height: 1; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: #E0A400; }
.stars-input input:focus-visible + label { outline: 3px solid var(--yellow); border-radius: 6px; }
@media (max-width: 520px) { .fb-row { grid-template-columns: 1fr; } }
.win-rate { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 10px 0 0; font-size: .9rem; font-weight: 700; color: var(--muted); }
.win-rate button { font: 700 .85rem var(--body); border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--ink); }
.win-rate button:hover { border-color: var(--teal); }
#pp-band { width: 100%; max-width: 360px; font: 700 1.05rem var(--body); padding: 10px 12px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
.pass-name label[for=pp-band] { margin-top: 12px; }

/* free or member */
.five-x { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.five-x-num { font: 700 4.2rem/1 var(--head); color: var(--coral-d); margin: 0; background: #FFF1C9; border-radius: 22px; padding: 10px 18px; }
.five-x h2 { margin: 0 0 4px; }
.five-x p { margin: 0; }
.member-tag { display: inline-block; background: #1F2A44; color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .7rem; letter-spacing: .04em; margin-left: 4px; }
.free-tag { display: inline-block; background: #FFF1C9; color: #7A4B00; border-radius: 999px; padding: 1px 8px; font-size: .7rem; letter-spacing: .04em; margin-left: 4px; }
.card.is-member .card-thumb { position: relative; }
.card.is-member.locked .card-thumb svg { filter: blur(3px); opacity: .55; }
.card.is-member.locked .card-thumb::after { content: "Members"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #1F2A44; color: #fff; font: 700 .9rem var(--head); border-radius: 999px; padding: 6px 14px; }
.locked-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; background: #fff; border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.locked-panel .peek { position: relative; overflow: hidden; border-radius: 16px; background: var(--paper); }
.locked-panel .peek svg { width: 100%; height: auto; filter: blur(5px); opacity: .5; display: block; }
.locked-panel h2 { margin-top: 0; }
@media (max-width: 760px) { .locked-panel { grid-template-columns: 1fr; padding: 20px; } .five-x { flex-direction: column; align-items: flex-start; } }

/* guides */
.guide-say { display: flex; gap: 12px; align-items: center; }
.guide-say img { flex: none; width: 64px; height: auto; }
.guide-say p { position: relative; margin: 0; background: #fff; border: 2px solid var(--wt, #F1E9D8); border-radius: 18px; padding: 10px 14px; font-size: .98rem; line-height: 1.45; box-shadow: 0 2px 0 rgba(31, 42, 68, .05); }
.guide-say p::before { content: ""; position: absolute; left: -9px; top: 50%; width: 14px; height: 14px; background: #fff; border-left: 2px solid var(--wt, #F1E9D8); border-bottom: 2px solid var(--wt, #F1E9D8); transform: translateY(-50%) rotate(45deg); }
.guide-say b { color: var(--wi, var(--teal-d)); }
.guide-lib { margin: 0 0 18px; max-width: 760px; }
.guide-pass { margin-top: 16px; max-width: 760px; }
.player-how.guide-say { flex: 1 1 320px; }
.player-how.guide-say img { width: 52px; }
.player-how.guide-say p { border-color: var(--wt); font-size: .95rem; }
.guide-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.win-from { margin: -4px 0 8px; font-weight: 700; color: var(--muted); }
.story img + img { margin-left: -14px; }
.guide-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.guide-mini { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; background: #fff; border-radius: 18px; padding: 14px 8px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; }
.guide-mini:hover { transform: translateY(-3px); }
.guide-mini img { width: 84px; height: 88px; object-fit: contain; }
.guide-mini b { font: 700 1.1rem var(--head); }
.guide-mini span { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.guides-h { margin-top: 34px; margin-bottom: 4px; }
.guide-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: 22px; padding: 18px; box-shadow: var(--shadow); border-top: 6px solid var(--w); scroll-margin-top: 90px; }
.guide-card img { flex: none; width: 110px; height: auto; background: var(--wt); border-radius: 18px; padding: 6px; }
.guide-card h3 { margin: 0; font-size: 1.4rem; }
.guide-card p { margin: 4px 0; font-size: .95rem; }
.guide-what { color: var(--wi); font-weight: 800; font-size: .85rem !important; text-transform: uppercase; letter-spacing: .05em; }
.guide-quote { font-style: italic; color: var(--muted); }
.guide-world { font-weight: 800; color: var(--wi); }
.guide-lead { max-width: 820px; padding: 24px; }
.guide-lead img { width: 170px; }
.guide-lead h3 { font-size: 2rem; }
@media (max-width: 900px) { .guide-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .guide-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .guide-pair { grid-template-columns: 1fr; } .guide-card, .guide-lead { flex-direction: column; align-items: center; text-align: center; } .guide-say img { width: 52px; } }
.guide-pop p { animation: guide-pop .4s ease; }
@keyframes guide-pop { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .guide-pop p { animation: none; } }

/* personalised preview */
.pv-section { background: linear-gradient(180deg, #FFF8E6, var(--paper)); }
.pv-compact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.pv-form h2 { margin-top: 0; }
.pv-form label { display: block; font-weight: 800; margin: 14px 0 6px; }
.pv-input { width: 100%; max-width: 420px; font: 700 1.6rem var(--head); padding: 12px 18px; border: 3px solid var(--coral); border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 6px 0 #FFE1DB; }
.pv-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 6px 0 #CDEFEA; }
.pv-bands { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.pv-line { font-weight: 700; color: var(--ink-2); min-height: 1.6em; }
.pv-privacy { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.pv-add { padding-left: 0; margin-top: 10px; }
.pv-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
.pv-why { background: #fff; border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow); }
.pv-why h3 { margin-top: 0; }
.pv-stage { display: flex; gap: 18px; justify-content: center; align-items: flex-end; }
.pv-stage-full { margin: 34px 0 10px; flex-wrap: wrap; }
.pv-card { margin: 0; text-align: center; transition: transform .25s ease; }
.pv-card figcaption { font-weight: 800; font-size: .9rem; color: var(--muted); margin-top: 8px; }
.pv-svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 22px rgba(31, 42, 68, .16)); }
.pv-compact .pv-cover { width: min(360px, 100%); transform: rotate(-2deg); }
.pv-stage-full .pv-cover { width: 280px; transform: rotate(-3deg); }
.pv-stage-full .pv-sheet { width: 300px; }
.pv-stage-full .pv-cert { width: 380px; transform: rotate(2deg); }
.pv-stage-full .pv-sib { width: 220px; transform: rotate(4deg); }
.pv-card:hover { transform: rotate(0) translateY(-6px); }
.pv-pop .pv-svg { animation: pv-pop .45s ease; }
@keyframes pv-pop { 0% { transform: scale(.96); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
.pv-cta-row { text-align: center; }
.pv-cta-row .actions { justify-content: center; }
.pv-print { display: none; }
@media print { .pv-print { display: block !important; } .pv-stage, .pv-top, .pv-cta-row { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .pv-pop .pv-svg { animation: none; } .pv-card { transition: none; } }
@media (max-width: 860px) { .pv-compact, .pv-top { grid-template-columns: 1fr; gap: 22px; } .pv-stage-full { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 10px 4px 16px; scroll-snap-type: x mandatory; } .pv-stage-full .pv-card { flex: none; width: 78%; scroll-snap-align: center; transform: none; } }

/* sharing */
.share-modal { position: fixed; inset: 0; background: rgba(31, 42, 68, .55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.share-box { position: relative; background: #fff; border-radius: 24px; padding: 22px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.share-box h2 { margin: 0 0 10px; font-size: 1.5rem; }
.share-x { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--muted); }
.share-name { display: block; font-weight: 800; font-size: .95rem; }
.share-name input { display: block; width: 100%; margin-top: 6px; font: 700 1.2rem var(--head); padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; }
.share-preview { margin: 14px 0; text-align: center; min-height: 120px; }
.share-preview img { width: min(300px, 100%); border-radius: 14px; box-shadow: var(--shadow); }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.share-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.challenge-banner { display: flex; gap: 12px; align-items: center; background: #FFF1C9; border: 2px solid #F5C451; border-radius: 18px; padding: 10px 16px; margin: 0 0 16px; }
.challenge-banner p { margin: 0; }
.sheet-foot-qr { align-items: center; gap: 12px; justify-content: flex-start !important; }
.sheet-foot-qr .qr { flex: none; width: 64px; height: 64px; }
.sheet-foot-qr .qr svg { width: 64px; height: 64px; }
.win-actions .btn-navy, .win-actions [data-challenge] { margin-top: 6px; }

/* toy vote */
.toy-vote { margin-top: 40px; background: #fff; border-radius: 24px; padding: 26px; box-shadow: var(--shadow); border: 3px dashed #F5C451; }
.toy-head h2 { margin: 0 0 6px; }
.toy-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.toy-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--paper); border: 3px solid transparent; border-radius: 18px; padding: 10px 6px; cursor: pointer; font: inherit; color: var(--ink); }
.toy-btn img { width: 64px; height: 66px; object-fit: contain; }
.toy-btn:hover { border-color: var(--line); }
.toy-btn.is-on { border-color: var(--coral); background: #FFF1EE; }
.toy-msg { min-height: 1.6em; font-weight: 700; margin: 12px 0 0; }
@media (max-width: 640px) { .toy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  [data-personal-full] { display: flex; flex-direction: column; }
  [data-personal-full] .pv-top { display: contents; }
  [data-personal-full] .pv-form { order: 1; } [data-personal-full] .pv-stage { order: 2; margin-top: 18px; } [data-personal-full] .pv-cta-row { order: 3; } [data-personal-full] .pv-why { order: 4; margin-top: 22px; } [data-personal-full] .pv-print { order: 5; }
}

/* shop: bundle and book builder */
.promo-strip { padding-block: 10px; }
.promo-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #1F2A44; color: #fff; border-radius: 20px; padding: 12px 18px; }
.promo-inner p { margin: 0; flex: 1 1 280px; }
.promo-inner .btn-ghost { color: #fff; border-color: #fff; background: transparent; }
.bundle-hero { background: linear-gradient(180deg, #1F2A44, #2F3F6B); color: #fff; padding-block: 48px; }
.bundle-hero h1 { color: #fff; }
.bundle-hero .lead { color: #DCE3F0; }
.bundle-hero .eyebrow { color: #FFC93C; }
.bundle-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.bundle-offer { background: #fff; color: var(--ink); border-radius: 22px; padding: 20px 22px; margin-top: 18px; box-shadow: var(--shadow-lift); }
.bundle-price { font: 600 1.2rem var(--head); margin: 0 0 10px; }
.bundle-price b { font-size: 2.2rem; color: var(--coral-d); }
.bundle-price span { color: var(--muted); font-size: 1rem; }
.bundle-count p { margin: 0; font-weight: 700; }
.bundle-count .bar { height: 14px; background: #EEE6D6; border-radius: 999px; overflow: hidden; margin: 8px 0; }
.bundle-count .bar span { display: block; height: 100%; background: var(--coral); border-radius: 999px; transition: width .6s ease; }
.bundle-left { color: var(--muted); font-size: .95rem; }
.bundle-offer .actions { margin-top: 12px; }
.bundle-pics { position: relative; height: 470px; }
.bundle-pics img { position: absolute; width: 56%; height: auto; border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.bp1 { left: 0; top: 30px; transform: rotate(-5deg); z-index: 3; }
.bp2 { left: 24%; top: 0; transform: rotate(2deg); z-index: 2; }
.bp3 { right: 0; top: 50px; transform: rotate(6deg); z-index: 1; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.planets { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.planets li { display: flex; justify-content: space-between; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); flex-wrap: wrap; }
.planets span { color: var(--muted); font-weight: 700; font-size: .9rem; }
.steps-simple { padding-left: 1.2em; display: grid; gap: 8px; }
.note-box { background: #FFF4D6; border-radius: 16px; padding: 14px 16px; margin-top: 16px; }
.book-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
.book-form label { display: block; font-weight: 800; margin: 0 0 6px; }
.bk-fs { border: 0; padding: 0; margin: 14px 0; }
.bk-fs legend { font-weight: 800; margin-bottom: 6px; }
.bk-types { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.bk-type { display: flex; gap: 6px; align-items: center; font-weight: 600 !important; margin: 0 !important; }
.bk-price { font-size: 1.05rem; margin: 14px 0 6px; }
.book-preview { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.bk-cover { width: 100%; transform: rotate(-2deg); }
.bk-inside h3 { margin-top: 0; }
.bk-mix { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.bk-mix li { background: #fff; border-radius: 999px; padding: 3px 10px; font-size: .85rem; box-shadow: var(--shadow); }
.bk-sample-h { font-weight: 800; margin: 0 0 6px; }
.bk-samples { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-sample { background: #fff; border-radius: 12px; padding: 8px; box-shadow: var(--shadow); }
.bk-sample svg { width: 100%; height: auto; display: block; }
.bk-sample-t { display: block; font-weight: 800; font-size: .8rem; margin-bottom: 4px; }
.bk-print-cover .sheet-puzzle svg { max-height: 240mm; }
@media (max-width: 860px) { .bundle-grid, .two-col, .book-grid, .book-preview { grid-template-columns: 1fr; } .bundle-pics { height: 360px; } }

/* policy pages */
.legal h2 { font-size: 1.3rem; margin: 26px 0 8px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- accounts, packs, classes, admin ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 200; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px; box-shadow: var(--shadow-lift); font-weight: 700; max-width: calc(100% - 32px); }
.header-login { white-space: nowrap; font-weight: 800; color: var(--ink); text-decoration: none; margin-right: 12px; padding: 8px 4px; }
.header-login:hover { color: var(--teal-d); text-decoration: underline; }
@media (max-width: 420px) { .header-login { margin-left: auto; } }
.acct-login { text-align: center; }
.acct-login img { margin: 0 auto 8px; }
.acct-form, .acct-add { display: grid; gap: 8px; text-align: left; max-width: 420px; margin: 16px auto 0; }
.acct-add { margin: 12px 0 0; }
.acct-form label, .acct-add label { font-weight: 800; font-size: .95rem; }
.acct-form input, .acct-add input, .acct-add select, .pack-select { font: 600 1.05rem var(--body); padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); min-height: 46px; width: 100%; }
.acct-form input:focus, .acct-add input:focus, .acct-add select:focus, .pack-select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px #DDF3F1; }
.acct-form .check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.acct-form .check input { width: 20px; min-height: 20px; }
.acct-msg { min-height: 1.6em; font-weight: 700; color: var(--teal-d); }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.acct-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; min-width: 0; }
.acct-card h2 { font-size: 1.3rem; margin: 0 0 8px; }
.acct-card ul { padding-left: 1.1em; margin: 6px 0; }
.acct-status { font-weight: 800; }
.acct-status.ok { color: var(--teal-d); }
.acct-welcome { background: var(--yellow-soft); border-radius: 14px; padding: 10px 14px; font-weight: 700; display: inline-block; }
.acct-kids { list-style: none; padding: 0 !important; display: grid; gap: 6px; }
.acct-kids li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acct-kids li span { color: var(--muted); font-size: .92rem; }
.acct-kids .btn-link { margin-left: auto; min-height: 36px; }
.plan-btn { width: 100%; margin-top: 10px; }
.plan-btn:disabled { opacity: .7; cursor: default; }
.region-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: center; margin: 0 0 18px; }
.class-box { margin: 18px 0; }
.class-join { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--white); border: 2px dashed var(--teal); border-radius: 16px; padding: 12px 16px; }
.class-join input { font: 600 1rem var(--body); padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; min-height: 42px; width: 9em; }
.class-join #cj-code { text-transform: uppercase; letter-spacing: .12em; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.pill small { font-weight: 600; opacity: .75; }
.pack-controls { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-end; justify-content: space-between; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 22px; }
.pack-label { display: block; font-weight: 800; margin: 0 0 4px; }
.pack-select { width: auto; min-width: 220px; }
.pack-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.pack-head h2 { margin: 0; }
.pack-story { font-size: 1.1rem; margin: 4px 0; }
.pack-card { border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card-meta { color: var(--muted); font-size: .9rem; }
.pack-print { display: none; }
.modal-open { overflow: hidden; }
.pack-modal { position: fixed; inset: 0; z-index: 120; background: rgba(31, 42, 68, .55); display: grid; place-items: center; padding: 12px; }
.pack-modal-box { background: var(--paper); border-radius: var(--radius); width: min(980px, 100%); max-height: calc(100vh - 24px); overflow: auto; padding: 16px 18px 22px; box-shadow: var(--shadow-lift); }
.pack-modal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.pack-modal-top h2 { margin: 0; font-size: 1.3rem; }
.class-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.class-top h2 { margin: 0; }
.class-code { background: var(--yellow-soft); border-radius: 14px; padding: 6px 14px; text-align: center; }
.class-code span { display: block; font-size: .8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.class-code b { font: 700 1.6rem var(--head); letter-spacing: .12em; }
.class-card { grid-column: 1 / -1; }
.table-scroll { overflow-x: auto; }
.report { width: 100%; border-collapse: collapse; font-size: .98rem; }
.report th, .report td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.report th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.report .btn-link { min-height: 32px; }
.slip-print { display: none; }
.slip-sheet { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6mm; }
.code-slip { border: 2px dashed #9AA3B5; border-radius: 12px; padding: 5mm; font-size: 11pt; }
.code-slip p { margin: 2mm 0; }
.code-big { font: 700 26pt var(--head); letter-spacing: .15em; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 14px 16px; }
.stat b { display: block; font: 700 1.9rem var(--head); }
.stat span { color: var(--muted); font-weight: 700; font-size: .92rem; }
.fb-list { display: grid; gap: 12px; margin-top: 12px; }
.fb-item { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 14px 18px; }
.fb-item p { margin: 4px 0; }
.fb-text { white-space: pre-wrap; }
.fb-stars { color: #E0A400; letter-spacing: 2px; }
@media (max-width: 640px) {
  .acct-grid { grid-template-columns: 1fr; }
  .pack-controls { padding: 14px; }
  .pack-select { width: 100%; }
  .pack-head .actions { width: 100%; }
  .class-join input { width: 100%; }
}
@media print {
  .pack-print, .slip-print { display: block; }
  .pack-modal, .toast { display: none !important; }
}

.btn-link, .btn-small.btn-link { box-shadow: none; }

@media (max-width: 600px) { .brand img { width: 190px; } }

/* ---------- Today hub (home) ---------- */
.hub { padding-top: 8px; }
.hub-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.hub-head h2 { margin: 0; }
.hub-bands { display: flex; gap: 6px; }
.hub-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: stretch; }
.hub-daily { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-decoration: none; color: var(--ink); border-top: 5px solid var(--w, var(--coral)); transition: transform .15s, box-shadow .15s; }
.hub-daily:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: var(--ink); }
.hub-thumb { background: var(--wt, var(--soft)); border-radius: 16px; padding: 12px; aspect-ratio: 1; display: grid; place-items: center; }
.hub-thumb svg { width: 100%; height: 100%; background: #fff; border-radius: 10px; padding: 6px; }
.hub-daily-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hub-daily-body .eyebrow { margin: 0; }
.hub-done { font-weight: 800; color: var(--teal-d); background: #E3F5F3; border-radius: 12px; padding: 8px 12px; }
.hub-tomorrow { font-size: .95rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; width: 100%; }
.hub-side { display: grid; gap: 14px; }
.hub-card { display: block; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 18px; text-decoration: none; color: var(--ink); }
a.hub-card:hover { box-shadow: var(--shadow-lift); color: var(--ink); }
.hub-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.hub-card p { margin: 4px 0; }
.hub-card .actions { margin-top: 8px; }
.hub-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0; }
.hub-stats span { color: var(--muted); font-weight: 700; }
.hub-stats b { font: 700 1.5rem var(--head); color: var(--ink); margin-right: 3px; }
.hub-break { display: flex; gap: 14px; align-items: flex-start; background: #E3F5F3; }
.hub-gift { display: flex; gap: 14px; align-items: center; background: var(--yellow-soft); }
.hub-pack { border: 2px solid var(--coral); }
.hub-pack .btn { margin-top: 8px; }
.gift-box { flex: none; position: relative; width: 58px; height: 52px; background: var(--coral); border-radius: 8px; display: grid; place-items: center; color: #fff; font: 700 1.6rem var(--head); }
.gift-box::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 10px; margin-left: -5px; background: var(--yellow); }
.gift-box::after { content: ""; position: absolute; left: -4px; right: -4px; top: -8px; height: 14px; background: #D9442E; border-radius: 5px; }
.gift-box span { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) { .hub-gift:hover .gift-box { animation: wiggle .6s ease-in-out; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@media (max-width: 980px) { .hub-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .hub-daily { grid-template-columns: 1fr; padding: 14px; } .hub-thumb { max-height: 280px; aspect-ratio: auto; } }

/* ---------- mystery gift page ---------- */
.gift-open { position: relative; width: 220px; height: 210px; margin: 10px auto 18px; border: 0; background: none; cursor: pointer; display: block; }
.gift-open .gift-body { position: absolute; left: 20px; right: 20px; bottom: 0; height: 140px; background: var(--coral); border-radius: 14px; display: grid; place-items: center; color: #fff; font: 700 4rem var(--head); z-index: 2; box-shadow: var(--shadow-lift); }
.gift-open .gift-body::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 26px; margin-left: -13px; background: var(--yellow); }
.gift-open .gift-body span { position: relative; }
.gift-open .gift-lid { position: absolute; left: 8px; right: 8px; top: 40px; height: 36px; background: #D9442E; border-radius: 10px; z-index: 3; transition: transform .6s cubic-bezier(.3,1.6,.5,1); }
.gift-open .gift-lid::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 26px; margin-left: -13px; background: var(--yellow); }
.gift-open .gift-peek { position: absolute; left: 50%; top: 70px; margin-left: -45px; z-index: 1; transition: transform .6s ease; }
.gift-open:hover .gift-lid { transform: translateY(-6px) rotate(-3deg); }
.gift-open.is-open .gift-lid { transform: translate(60px, -40px) rotate(28deg); }
.gift-open.is-open .gift-peek { transform: translateY(-74px); }
.gift-open:focus-visible { outline: 4px solid var(--teal); outline-offset: 6px; border-radius: 16px; }
.gift-reveal h2 { font-size: 2rem; }
.gift-sheets { text-align: left; }
.gift-sheet { padding: 0 !important; }
.gift-svg { width: 100%; height: auto; display: block; border-radius: 12px; }
.gift-next { display: flex; gap: 14px; align-items: center; text-align: left; background: var(--white); border: 2px dashed var(--yellow); border-radius: 18px; padding: 14px 18px; margin: 26px auto 0; max-width: 640px; }
.gift-next p { margin: 0; }
.gift-past { margin-top: 26px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check-row input { width: 20px; height: 20px; margin-top: 4px; flex: none; }
@media print { .gift-svg { width: 190mm; height: 269mm; border-radius: 0; } .gift-open, .gift-next, .gift-past { display: none !important; } }

@media (max-width: 1280px) { .header-login { margin-left: auto; } .header-login + .header-cta { margin-left: 0; } }
.hub-daily { grid-template-columns: 300px 1fr; }
@media (max-width: 640px) { .hub-daily { grid-template-columns: 1fr; } }

.actions.center { justify-content: center; }

/* ---------- Seven Locks on the home page ---------- */
.btn-big { min-height: 56px; padding: 0 30px; font-size: 1.12rem; }
.saga-banner { background: #121731 radial-gradient(ellipse at 20% 0, #2A2257 0, transparent 60%); color: #E9E3D0; padding: 38px 0; }
.saga-banner-inner { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; }
.saga-banner-locks { display: flex; align-items: flex-end; gap: 6px; }
.saga-banner h2 { font: 400 clamp(1.8rem, 3.6vw, 2.6rem)/1.1 'Lilita One', 'Fredoka', sans-serif; color: #F2E6C8; margin: 0 0 10px; }
.saga-banner p { font-size: 1.12rem; line-height: 1.65; color: #D9D3C2; margin: 4px 0; max-width: 60ch; }
.saga-banner b { color: #F2E6C8; font-weight: 600; }
.saga-banner .actions { margin-top: 16px; }
.hub-saga { display: flex; gap: 14px; align-items: center; background: #161B3A; border: 1px solid #7B5A1C; color: #E9E3D0; }
.hub-saga h3 { color: #F2E6C8; font-family: 'Lilita One', 'Fredoka', sans-serif; font-weight: 400; }
.hub-saga p { color: #C9C3B2; }
a.hub-saga:hover { color: #E9E3D0; border-color: #D4AE55; }
.hub-envelope { flex: none; width: 60px; height: 42px; background: #F2E6C8; border-radius: 4px; position: relative; overflow: hidden; }
.hub-envelope::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 60%; background: #E2CFA0; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.hub-envelope::after { content: ""; position: absolute; left: 50%; top: 42%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #A3241B; }
.hub-envelope.open::after { background: #D4AE55; }
.sg-btn, .saga-banner .sg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 10px; font: 800 1.08rem var(--body); color: #2B1D05; text-decoration: none; cursor: pointer;
  background: linear-gradient(#F6DC8E, #D4AE55 55%, #A67A2C); border: 2px solid #5B4214; box-shadow: 0 3px 0 #5B4214, inset 0 1px 0 rgba(255,255,255,.6); }
.sg-btn:hover { filter: brightness(1.06); color: #2B1D05; }
.sg-btn:focus-visible { outline: 3px solid #8FE8DA; outline-offset: 3px; }
@media (max-width: 700px) { .saga-banner-inner { grid-template-columns: 1fr; } .saga-banner-locks svg { width: 54px; height: auto; } }

/* the Seven Locks tab: the one menu item that glows, with Aara riding along */
.main-nav .nav-locks { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px 5px 6px; border-radius: 999px; color: #F6DC8E; font-weight: 800;
  background: linear-gradient(180deg, #2E2668, #141A3A); border: 2px solid #D4AE55; box-shadow: 0 0 0 3px rgba(212,174,85,.18), 0 6px 18px rgba(46,38,104,.45); margin: 0 6px; }
.main-nav .nav-locks img { width: 30px; height: 31px; background: #F2E6C8; border-radius: 50%; padding: 2px; }
.main-nav .nav-locks i { font-style: normal; color: #8FE8DA; font-size: .85rem; }
.main-nav .nav-locks:hover, .main-nav .nav-locks[aria-current] { background: linear-gradient(180deg, #3B3185, #1A1F44); color: #FFF3C8; }
@media (prefers-reduced-motion: no-preference) { .main-nav .nav-locks i { animation: twinkle 2.6s ease-in-out infinite; } }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.8); } }
@media (max-width: 1280px) { .main-nav .nav-locks { padding: 4px 12px 4px 5px; } .main-nav .nav-locks img { width: 26px; height: 27px; } }

/* Founding Family offer (India) on the membership page */
.founding { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center; margin: 0 0 28px; padding: 22px 24px; border-radius: 22px; background: linear-gradient(135deg, #FFF4E0, #FFE3DC); border: 2px solid var(--coral); }
.founding[hidden] { display: none; }
.founding h3 { margin: 4px 0 8px; font-size: 1.35rem; }
.founding p { margin: 0 0 6px; }
.founding .bar { height: 14px; background: #EEE6D6; border-radius: 999px; overflow: hidden; margin: 8px 0 14px; }
.founding .bar span { display: block; height: 100%; background: var(--coral); border-radius: 999px; transition: width .6s ease; }
.founding .btn { width: 100%; }
@media (max-width: 720px) { .founding { grid-template-columns: minmax(0, 1fr); padding: 18px; } }

/* Printable landing pages (printables.html and printables/*) */
.pt-head .crumbs { margin-bottom: 6px; }
.pt-ages { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.pt-ages .pill { text-decoration: none; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.pt-grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin: 12px 0 14px; }
.pt-card { margin: 0; background: #fff; border: 1.5px solid #EFE6D6; border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.pt-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-radius: 10px; }
.pt-card figcaption { display: flex; flex-direction: column; gap: 2px; font-size: .95rem; }
.pt-card figcaption span { color: #5B6478; font-size: .88rem; }
.pt-links a { font-weight: 700; }
.pt-band { margin: 0 0 34px; }
.pt-faq details { border-bottom: 1px solid #EFE6D6; padding: 10px 0; }
.pt-faq summary { font-weight: 700; cursor: pointer; }
.pt-faq p { margin: 8px 0 0; }
.pt-others { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; font-size: .95rem; }
.pt-others a[aria-current] { font-weight: 800; text-decoration: none; }
.pt-types { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.pt-type { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: start; background: #fff; border: 1.5px solid #EFE6D6; border-radius: 18px; padding: 14px; }
.pt-type img { width: 110px; height: 110px; object-fit: contain; }
.pt-type h2 { font-size: 1.25rem; margin: 0 0 4px; }
.pt-type p { margin: 0 0 6px; }
.pt-print { display: none; }
@media print {
  body.pt-printing .site-header, body.pt-printing .site-footer, body.pt-printing .signup, body.pt-printing main > *:not(.pt-print) { display: none !important; }
  body.pt-printing .pt-print, body.pt-printing .pt-print * { visibility: visible; }
  body.pt-printing .pt-print { display: block !important; position: absolute; left: 0; top: 0; width: 100%; }
  .pt-sheet { display: flex; flex-direction: column; gap: 4mm; break-after: page; page-break-after: always; font-family: var(--body, sans-serif); color: #1F2A44; }
  .pt-sheet:last-child { break-after: auto; page-break-after: auto; }
  .pt-sheet header { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
  .pt-sheet h2 { margin: 2mm 0 0; font-size: 18pt; }
  .pt-sheet p { margin: 0; }
  .pt-sheet-meta { color: #5B6478; }
  .pt-sheet-img { width: 100%; max-height: 190mm; object-fit: contain; }
  .pt-sheet footer { font-size: 9pt; color: #5B6478; text-align: center; }
  body.pt-printing:not(.pt-printing-all) .pt-print-key { display: none !important; }
}
.pill-fest { background: #FFF1D6; border-color: #E0A400; font-weight: 800; }

/* Ad spaces: reserved height so the page never jumps when an ad loads; never printed */
.ad-slot { margin: 26px auto; max-width: 970px; min-height: 120px; padding: 8px 0; }
.ad-slot[data-ad="content"] { min-height: 120px; }
.ad-slot:empty { background: #FBF6EC; border-radius: 14px; }
.ad-label { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #8A93A6; margin: 0 0 6px; text-align: center; }
.ad-house { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: #fff; border: 1.5px dashed #F2C7BF; border-radius: 16px; text-decoration: none; color: inherit; }
.ad-house img { flex: none; }
.ad-house > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ad-house b { font-family: var(--head); font-size: 1.1rem; }
.ad-house .btn { flex: none; }
@media (max-width: 600px) { .ad-house { flex-wrap: wrap; } .ad-house img { width: 48px; height: 50px; } .ad-slot { min-height: 170px; } }
@media print { .ad-slot { display: none !important; } }
/* the tilted mission covers must never push the page wider than the screen */
.bundle-hero { overflow-x: clip; }
.bundle-pics { overflow: visible; max-width: 100%; }

/* Space Quest editions */
.sq-launch { font-size: 1.05rem; }
.sq-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.sq-card { background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; border-top: 8px solid #2F3F6B; }
.sq-card.sq-junior { border-top-color: #12A39A; }
.sq-card.sq-master { border-top-color: #7A3D8F; }
.sq-card.sq-family { border-top-color: var(--coral); background: #FFF6EE; }
.sq-card > img { width: 70%; margin: 0 auto; border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.sq-fam-pics { display: flex; justify-content: center; }
.sq-fam-pics img { width: 34%; border-radius: 6px; box-shadow: 0 6px 14px rgba(0,0,0,.2); margin: 0 -4%; }
.sq-fam-pics img:nth-child(1) { transform: rotate(-6deg); } .sq-fam-pics img:nth-child(3) { transform: rotate(6deg); }
.sq-card h3 { margin: 4px 0 0; font-size: 1.3rem; }
.sq-ages { margin: 0; font-weight: 800; color: var(--teal-d); }
.sq-about { margin: 0; font-size: .95rem; color: var(--ink-2); flex: 1; }
.sq-price { margin: 0; font: 700 1.6rem var(--head); }
.sq-price s { font-size: 1rem; color: #8A93A6; margin-left: 6px; }
.sq-card .actions { flex-direction: column; align-items: stretch; gap: 8px; }
.sq-card .actions .btn { text-align: center; }
.sq-dl { margin: 10px 0 0; }
@media (max-width: 1100px) { .sq-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sq-cards { grid-template-columns: minmax(0, 1fr); } .sq-card > img { width: 46%; } }
/* certificates drawn by js/cert.js */
.cert-inner:has(> .cert-svg) { border: 0; padding: 0; background: none; display: block; }
.cert-svg { display: block; width: 100%; height: auto; }
@media print { .cert-inner:has(> .cert-svg) { height: auto; } .cert-svg { max-height: 180mm; } }
.sq-family-sec { background: linear-gradient(180deg, #FFF6EE, #FFFBF2); }
.sq-compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 18px 0 26px; }
.sq-compare figure { margin: 0; text-align: center; }
.sq-compare img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 26px rgba(31, 42, 68, .18); background: #fff; }
.sq-compare figcaption { display: flex; flex-direction: column; margin-top: 10px; }
.sq-compare figcaption span { color: var(--muted); }
.sq-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.sq-why div { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.sq-why h3 { margin: 0 0 6px; font-size: 1.15rem; }
.sq-why p { margin: 0; }
@media (max-width: 760px) { .sq-compare { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .sq-compare figcaption span { font-size: .8rem; } .sq-why { grid-template-columns: minmax(0, 1fr); } }

/* festival pages: the festival's own pictures and colours */
.fest-head { background: linear-gradient(180deg, var(--fest-soft, #FFF6E6), transparent); }
.fest-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.fest-strip svg { width: 52px; height: 52px; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 2px 0 rgba(31, 42, 68, .08); }
.green-box { display: flex; gap: 20px; align-items: flex-start; background: #E8F6EC; border: 2px solid #2E9E5B; border-radius: 20px; padding: 22px; }
.green-box h2 { margin: 0 0 6px; color: #1E6B3E; }
.green-leaf { flex: none; }
.green-pledge { columns: 2; column-gap: 28px; margin: 8px 0 0; padding-left: 20px; }
.green-pledge li { break-inside: avoid; margin-bottom: 4px; }
@media (max-width: 640px) { .green-box { flex-direction: column; padding: 16px; } .green-pledge { columns: 1; } .fest-strip svg { width: 42px; height: 42px; } }

/* ===== v2: free-first home, signposts, stamp, festival cards, Ari's letter, currency picker ===== */
.free-badge { display: inline-flex; align-items: stretch; margin: 0 0 14px; border-radius: 999px; overflow: hidden; box-shadow: 0 4px 0 #C98F00, 0 8px 20px rgba(224, 164, 0, .35);
  font: 700 clamp(1rem, 2.2vw, 1.35rem)/1 var(--head); letter-spacing: .04em; text-transform: uppercase; transform: rotate(-1.5deg); position: relative; }
.free-badge > span:last-child { background: var(--yellow); color: var(--ink); padding: 12px 18px 11px 14px; }
.free-badge-tag { background: var(--coral-d); color: #fff; padding: 12px 14px 11px 16px; letter-spacing: .08em; }
.free-badge::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); transform: translateX(-100%); animation: shine 3.2s ease-in-out 1s infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.hero-v2 { padding: 28px 0 8px; }
.hero-v2 .lead { margin-bottom: 14px; }
.signposts { display: grid; gap: 10px; margin: 6px 0 16px; max-width: 560px; }
.sign { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; text-decoration: none; color: var(--ink); border: 2px solid; position: relative; transition: transform .15s, box-shadow .15s; }
.sign svg { width: 30px; height: 30px; flex: none; }
.sign span { display: grid; flex: 1; }
.sign b { font: 700 1.15rem/1.2 var(--head); }
.sign small { color: var(--ink-2); font-size: .9rem; }
.sign:hover { transform: translateX(4px); box-shadow: var(--shadow-lift); color: var(--ink); }
.sign-free { background: #E5F7EC; border-color: #2E9E5B; } .sign-free svg { color: #1E7A45; }
.sign-play { background: #E6F1FB; border-color: #4D9DE0; } .sign-play svg { color: #1F5F99; }
.sign-member { background: #FFF6E6; border-color: #E0A400; } .sign-member svg { color: #E0A400; }
.sign-tag { font: 800 .78rem/1 var(--body); font-style: normal; letter-spacing: .1em; background: #2E9E5B; color: #fff; padding: 6px 9px; border-radius: 8px; }
.sign-soon { background: var(--coral-d); }
.quest-cta { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 18px 10px 10px; border-radius: 999px; text-decoration: none; color: #fff; max-width: 560px;
  background: linear-gradient(100deg, #5B3FD0, #8E6BD8 55%, #12A39A); box-shadow: 0 5px 0 #3B2790, 0 10px 24px rgba(91, 63, 208, .35); transition: transform .15s; }
.quest-cta img { background: #fff; border-radius: 50%; padding: 4px; flex: none; }
.quest-cta span { display: grid; flex: 1; } .quest-cta b { font: 700 1.15rem/1.2 var(--head); } .quest-cta small { opacity: .92; font-size: .86rem; }
.quest-cta i { font-style: normal; font-size: 1.6rem; font-weight: 800; }
.quest-cta:hover { transform: translateY(-2px); color: #fff; }
.hero-art { position: relative; }
.hero-v2 .hero-art img { max-width: 460px; }
.hero-stamp { position: absolute; top: 4%; right: 2%; text-decoration: none; }
.soon-stamp { display: inline-grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; border: 5px solid #D9442E; outline: 2px dashed #D9442E; outline-offset: -14px;
  color: #D9442E; font: 700 .85rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .14em; transform: rotate(-14deg); background: rgba(255, 246, 230, .92);
  align-content: center; text-align: center; animation: stamp-in .6s cubic-bezier(.2, 1.6, .4, 1) .3s both; }
.soon-stamp b { font-size: 2rem; letter-spacing: .06em; line-height: 1; margin: 2px 0; }
@keyframes stamp-in { from { transform: rotate(-14deg) scale(2.2); opacity: 0; } to { transform: rotate(-14deg) scale(1); opacity: 1; } }
.head-stamp { float: right; margin: -6px 0 8px 18px; }
.soon-stamp-big { width: 170px; height: 170px; } .soon-stamp-big b { font-size: 2.3rem; }
/* festival cards */
.fest-row { margin: 18px 0 8px; }
.fest-row-head h2 { margin: 0; font-size: 1.45rem; } .fest-row-head p { margin: 2px 0 10px; color: var(--ink-2); }
.fest-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fest-card { display: grid; gap: 2px; padding: 12px 14px 14px; border-radius: 18px; text-decoration: none; color: var(--ink); background: var(--fs); border: 2px solid var(--fc); position: relative; transition: transform .15s, box-shadow .15s; }
.fest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.fest-card-pics { display: flex; gap: 4px; margin-bottom: 4px; }
.fest-card b { font: 700 1.25rem/1.15 var(--head); }
.fest-card-date { font-size: .85rem; color: var(--ink-2); }
.fest-card-tag { justify-self: start; margin-top: 6px; background: #2E9E5B; color: #fff; font: 800 .74rem/1 var(--body); letter-spacing: .06em; padding: 6px 8px; border-radius: 8px; }
/* free banner on puzzles and printables pages */
.free-banner { background: linear-gradient(180deg, #E5F7EC, #F7FBF8 70%); border-bottom: 1px solid var(--line); padding: 22px 0 10px; }
.free-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.free-banner h2, .free-banner h1 { margin: 0 0 6px; }
.free-banner-key { margin: 0; font-size: .95rem; color: var(--ink-2); }
.key-free { background: #2E9E5B; color: #fff; font-weight: 800; font-size: .75rem; padding: 3px 7px; border-radius: 6px; letter-spacing: .06em; }
.key-lock { font-weight: 800; color: #B07F00; }
.btn-big { font-size: 1.15rem; padding: 14px 26px; display: inline-flex; gap: 10px; align-items: center; }
.btn-big svg { width: 24px; height: 24px; }
/* Ari's letter */
.letterbox { background: radial-gradient(circle at 20% 30%, #FFF1C9, #FFE3D6 60%, #FFD7CC); padding: 44px 0; }
.letterbox-inner { display: grid; grid-template-columns: 380px 1fr; gap: 36px; align-items: center; }
.lb-art { position: relative; height: 300px; }
.lb-envelope { position: absolute; left: 20px; bottom: 10px; width: 300px; height: 190px; transform: rotate(-4deg); transition: transform .3s; }
.letterbox:hover .lb-envelope { transform: rotate(-2deg) translateY(-6px); }
.lb-back { position: absolute; inset: 0; background: #F2E6CF; border-radius: 12px; border: 3px solid var(--ink); }
.lb-peek { position: absolute; left: 50%; top: -58px; width: 200px; margin-left: -100px; transition: top .35s; }
.letterbox:hover .lb-peek { top: -80px; }
.lb-front { position: absolute; inset: 0; border-radius: 12px; border: 3px solid var(--ink);
  background: linear-gradient(155deg, transparent 49.4%, var(--ink) 49.6%, var(--ink) 50.4%, #FFF8EA 50.6%) left / 50.5% 100% no-repeat,
              linear-gradient(205deg, transparent 49.4%, var(--ink) 49.6%, var(--ink) 50.4%, #FFF8EA 50.6%) right / 50.5% 100% no-repeat; }
.lb-seal { position: absolute; left: 50%; top: 46%; width: 54px; height: 54px; margin-left: -27px; border-radius: 50%; background: #D9442E; color: #FFC93C; display: grid; place-items: center;
  font-size: 1.6rem; box-shadow: inset 0 0 0 4px #B23A26, 0 3px 6px rgba(0,0,0,.25); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.lb-to { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font: 600 1rem var(--head); color: var(--ink); }
.lb-ari { position: absolute; right: -6px; top: 0; width: 140px; height: auto; animation: fly 3.4s ease-in-out infinite; }
@keyframes fly { 0%, 100% { transform: translateY(0) rotate(4deg); } 50% { transform: translateY(-14px) rotate(-3deg); } }
.lb-spark { position: absolute; color: #E0A400; font-size: 1.6rem; animation: twinkle 1.8s ease-in-out infinite; }
.lb-spark.s1 { left: 6px; top: 40px; } .lb-spark.s2 { left: 120px; top: 6px; animation-delay: .6s; } .lb-spark.s3 { left: 40px; top: 110px; color: var(--coral-d); font-weight: 800; animation-delay: 1.1s; }
@keyframes twinkle { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.lb-kicker { font-weight: 800; color: var(--coral-d); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; margin: 0 0 4px; }
.lb-copy h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.lb-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.lb-list li { background: rgba(255,255,255,.75); border-radius: 12px; padding: 8px 12px; }
.lb-gift { background: var(--ink); color: var(--yellow); font-weight: 800; padding: 1px 8px; border-radius: 6px; }
.lb-count { font-weight: 800; color: #1E7A45; }
/* currency picker */
.cur-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cur-select { font: 700 1rem var(--body); padding: 10px 14px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; color: var(--ink); min-height: 46px; }
.cur-note { flex-basis: 100%; font-size: .88rem; color: var(--ink-2); }
.plan-approx { margin: -4px 0 6px; font-weight: 700; color: var(--teal-d); } .plan-approx small { font-weight: 400; color: var(--ink-2); }
@media (max-width: 900px) {
  .fest-cards { grid-template-columns: repeat(2, 1fr); }
  .letterbox-inner { grid-template-columns: 1fr; }
  .lb-art { height: 260px; max-width: 360px; margin: 0 auto; width: 100%; }
  .hero-stamp { top: 0; right: 0; } .soon-stamp { width: 120px; height: 120px; font-size: .72rem; } .soon-stamp b { font-size: 1.6rem; }
  .head-stamp { float: none; margin: 0 0 6px; }
}
@media (prefers-reduced-motion: reduce) { .free-badge::after, .soon-stamp, .lb-seal, .lb-ari, .lb-spark { animation: none; } }

.hero-v2 .hero-art { display: grid; gap: 10px; justify-items: center; }
.hero-v2 .hero-art > img { max-width: 330px; }
.hero-print { width: 100%; background: #fff; border: 2px solid #2E9E5B; border-radius: 20px; padding: 12px 14px 14px; box-shadow: var(--shadow); }
.hero-print h2 { font-size: 1.15rem; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.hero-print h2 .key-free { font-size: .8rem; }
.hero-print .fest-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-print .fest-card { padding: 8px 10px 10px; border-radius: 14px; }
.hero-print .fest-card b { font-size: 1.05rem; }
.hero-print .fest-card-pics svg { width: 30px; height: 30px; }
.hero-print .fest-card-date { display: none; }
.hero-print .fest-card-tag { margin-top: 4px; font-size: .68rem; padding: 4px 6px; }
.hero-print .more { display: block; text-align: center; margin-top: 8px; font-weight: 800; }
.hero-stamp { top: -6px; right: -4px; }
.hero-print h2 svg { width: 22px; height: 22px; color: #1E7A45; }
/* Seven Locks letter card on the home page: Ari with a sealed, glowing letter */
.hub-saga-v2 { background: radial-gradient(circle at 15% 50%, #2D2F6B, #161B3A 65%); border: 2px solid #D4AE55; box-shadow: 0 0 0 4px rgba(212, 174, 85, .18), 0 12px 30px rgba(22, 27, 58, .35); overflow: hidden; position: relative; }
.hub-saga-v2 h3 { font-size: 1.5rem; margin: 2px 0 4px; }
.hs-art { position: relative; flex: none; width: 150px; height: 120px; }
.hs-ari { position: absolute; left: 0; top: 0; width: 92px; height: auto; animation: fly 3.4s ease-in-out infinite; z-index: 2; }
.hs-env { position: absolute; right: 0; bottom: 8px; width: 84px; height: 58px; transform: rotate(8deg); z-index: 1; animation: wiggle 2.8s ease-in-out infinite; }
.hs-env::after { width: 22px; height: 22px; margin-left: -11px; box-shadow: 0 0 12px 3px rgba(255, 120, 90, .8); }
.hs-glow { position: absolute; right: -8px; bottom: -6px; width: 110px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 201, 60, .45), transparent 70%); animation: twinkle 2.4s ease-in-out infinite; }
.hs-sp { position: absolute; color: #FFC93C; font-style: normal; animation: twinkle 1.8s ease-in-out infinite; }
.hs-sp.a { left: 96px; top: 4px; } .hs-sp.b { left: 70px; bottom: 6px; animation-delay: .5s; } .hs-sp.c { right: 4px; top: 22px; animation-delay: 1s; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(8deg); } 85% { transform: rotate(2deg); } 90% { transform: rotate(13deg); } 95% { transform: rotate(5deg); } }
.hs-kicker { margin: 0; font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #FFC93C !important; }
.hs-btn { display: inline-block; margin-top: 8px; background: #D4AE55; color: #161B3A; font-weight: 800; padding: 8px 14px; border-radius: 999px; }
a.hub-saga-v2:hover .hs-btn { background: #FFC93C; }
@media (max-width: 600px) { .hub-saga-v2 { flex-direction: column; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .hs-ari, .hs-env, .hs-glow, .hs-sp { animation: none; } }
@media (max-width: 900px) {
  .hero-v2 .hero-copy { order: -1; }
  .hero-v2 .hero-art > img { max-width: 220px; }
}
.letterbox, .letterbox h2, .letterbox p, .letterbox li { color: var(--ink); }
.letterbox .lb-kicker { color: var(--coral-d); }
.letterbox .fine { color: var(--ink-2); }
.letterbox .lb-list b { color: var(--ink); }
@media (max-width: 600px) {
  .hero-v2 .hero-art > img { display: none; }
  .hero-v2 .hero-stamp { position: static; justify-self: end; margin: -10px -6px -46px 0; z-index: 2; }
  .hero-v2 .soon-stamp { width: 104px; height: 104px; } .hero-v2 .soon-stamp b { font-size: 1.35rem; }
}
@media (max-width: 600px) { .hero-v2 .soon-stamp { width: 112px; height: 112px; font-size: .6rem; letter-spacing: .1em; } }
.cur-pick .filter-label { white-space: nowrap; }
.lb-download { margin: 4px 0 8px; }
