/* PawKick Cuties website: the skeleton's one stylesheet. The game's own fonts (vendor/fonts) and its cosy palette:
   cream paper, brown ink, teal buttons, a yellow highlight and a soft sky. fonts/fonts.css holds the game's Latin faces
   and the site's own Korean and Japanese ones (scripts/site-fonts.py). */
@import url('fonts/fonts.css');

:root {
  color-scheme: light;
  --cream: #fbf6e3;
  --cream-2: #fffcf1;
  --cream-3: #f2e9cd;
  --cream-4: #e3d5af;
  --ink: #6b5640;
  --ink-strong: #54412c;
  --muted: #806a50;
  --line: rgba(107, 86, 64, 0.16);
  --line-strong: rgba(107, 86, 64, 0.3);
  --yellow: #f9d94a;
  --yellow-soft: #fff0b3;
  --yellow-edge: #e2b524;
  --teal: #5cc8b4;
  --teal-edge: #3aa592;
  --teal-soft: #d5f1ea;
  --teal-ink: #17796a;
  --coral: #f2846c;
  --coral-soft: #fde0d8;
  --pink-soft: #fde4ee;
  --lilac-soft: #ebe3fb;
  --day-0: #86d0f5; --day-1: #c4e9f4; --day-2: #ffe6b3;   /* the page's own sky tints */
  --sky-0: #86d0f5; --sky-1: #c4e9f4; --sky-2: #ffe6b3;   /* the 3D views' sky: the season's, set by the scene (src/menu-world.js applyTheme) */
  --bg: #f3ead0;
  --shadow: 0 12px 26px -12px rgba(84, 62, 34, 0.45), 0 3px 0 rgba(84, 62, 34, 0.07);
  --font-display: "Fredoka", "Nunito", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-title: "Lilita One", "Fredoka", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --blob: 34px 42px 30px 46px / 40px 32px 44px 30px;
  --blob-sm: 22px 27px 20px 28px / 26px 20px 28px 22px;
  --wrap: 1120px;
  --gutter: 16px;
}
@media (min-width: 700px) { :root { --gutter: 32px; } }
/* Korean, Japanese and Chinese (the /ko/, /ja/ and /zh/ pages, and those languages' names in every page's language
   picker): the game's own faces after the Latin ones, so Latin letters and numbers stay in Fredoka, Nunito and Lilita
   One. Jua and Gowun Dodum for Korean, M PLUS Rounded 1c for Japanese, ZCOOL KuaiLe and Noto Sans SC for Simplified
   Chinese, as the game has them (website/fonts: cut to the characters these pages draw). Korean wraps between words,
   not inside them; Japanese between phrases where the browser can; Chinese, written without spaces, between any two
   characters, never before a closing punctuation mark (line-break: strict) */
[lang|="ko"] {
  --font-display: "Fredoka", "Jua", "Apple SD Gothic Neo", "Malgun Gothic", ui-rounded, system-ui, sans-serif;
  --font-title: "Lilita One", "Jua", "Apple SD Gothic Neo", "Malgun Gothic", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", ui-rounded, system-ui, sans-serif;
}
[lang|="ja"] {
  --font-display: "Fredoka", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", ui-rounded, system-ui, sans-serif;
  --font-title: "Lilita One", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", ui-rounded, system-ui, sans-serif;
}
[lang|="zh"] {
  --font-display: "Fredoka", "ZCOOL KuaiLe", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-rounded, system-ui, sans-serif;
  --font-title: "Lilita One", "ZCOOL KuaiLe", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-rounded, system-ui, sans-serif;
}
:root[lang|="ko"] body { word-break: keep-all; overflow-wrap: break-word; }
:root[lang|="ja"] body { word-break: auto-phrase; overflow-wrap: break-word; }
:root[lang|="zh"] body { word-break: normal; line-break: strict; overflow-wrap: break-word; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-width: 0; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
  font: 600 16px/1.55 var(--font-body); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--teal-ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink-strong); margin: 0 0 0.4em; line-height: 1.15; text-wrap: balance; }
h1 { font-family: var(--font-title); font-weight: 400; font-size: clamp(32px, 6vw, 52px); letter-spacing: 0.01em; }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 0.8em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
/* the trailer and the fields slider (at most 960 px wide): the column narrows to them, so they sit centered with their heading */
.wrap-media { max-width: calc(960px + 2 * var(--gutter)); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header + nav ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(251, 246, 227, 0.94); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand .logo { display: block; width: 132px; height: 80px; }
.brand .logo svg { width: 100%; height: 100%; display: block; }
.brand .logo-text { font: 400 22px/1 var(--font-title); color: var(--ink-strong); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font: 600 16px/1.2 var(--font-display); color: var(--ink-strong);
}
.site-nav a:hover { background: var(--cream-3); }
.site-nav a[aria-current="page"] { background: var(--yellow); box-shadow: 0 3px 0 var(--yellow-edge); }
.nav-toggle {
  display: none; margin-left: auto; border: 0; cursor: pointer; border-radius: 999px; padding: 10px 18px;
  font: 600 16px/1 var(--font-display); color: var(--ink-strong); background: var(--cream-2); box-shadow: 0 3px 0 var(--cream-4);
}
/* the language picker, at the end of the nav: a small pill with the page's language (like the phone menu's button)
   that opens a cream card of the four, the page's own one in yellow as the nav marks the page you're on */
.site-nav .lang { position: relative; margin-left: 6px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; border-radius: 999px; padding: 8px 12px 8px 11px;
  font: 600 16px/1.2 var(--font-display); color: var(--ink-strong); background: var(--cream-2); box-shadow: 0 3px 0 var(--cream-4);
}
.lang-toggle span[lang] { font-family: var(--font-display); }
.lang-toggle svg, .lang-label svg { width: 18px; height: 18px; flex: none; }
.lang-toggle svg:last-child { width: 14px; height: 14px; margin-left: -1px; transition: transform 0.15s ease; }
.lang.open .lang-toggle svg:last-child { transform: rotate(180deg); }
.lang-toggle:hover { background: var(--cream-3); }
.lang-toggle:focus-visible, .lang-menu a:focus-visible { outline: 3px solid var(--ink-strong); outline-offset: 2px; }
.lang-label { display: none; }
.site-nav .lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 10px); z-index: 20; min-width: 168px; flex-direction: column; gap: 2px;
  margin: 0; padding: 8px; background: var(--cream-2); border-radius: 18px; box-shadow: var(--shadow), 0 0 0 2px rgba(84, 62, 34, 0.08);
}
.lang.open .lang-menu { display: flex; }
.site-nav .lang-menu a { white-space: nowrap; }
.site-nav .lang-menu a[aria-current] { background: var(--yellow); box-shadow: 0 3px 0 var(--yellow-edge); }
@media (prefers-reduced-motion: reduce) { .lang-toggle svg:last-child { transition: none; } }
@media (max-width: 899px) {
  .brand .logo { width: 108px; height: 66px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 2px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px var(--gutter) 14px; }
  .site-nav a { padding: 12px 14px; }
  /* in the phone menu: the nine languages as they are, under a little "Language" */
  .site-nav .lang { margin: 6px 0 0; padding: 12px 14px 0; border-top: 2px dashed var(--line); }
  .lang-toggle { display: none; }
  .lang-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 600 15px/1.2 var(--font-display); color: var(--muted); }
  .site-nav .lang-menu { display: flex; position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; min-width: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .site-nav .lang-menu a { padding: 9px 16px; background: var(--cream-2); box-shadow: 0 3px 0 var(--cream-4); }
}
/* the English home page's offer of the visitor's own language (site.js suggestLanguage), a slim strip under the header */
.lang-suggest { background: var(--yellow-soft); border-bottom: 2px solid var(--line); }
.lang-suggest .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.lang-suggest p { margin: 0; font: 600 17px/1.3 var(--font-display); color: var(--ink-strong); }
.lang-suggest-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-suggest .btn { min-height: 40px; padding: 8px 20px; font-size: 16px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 72px; background: var(--ink-strong); color: #f2e6cc; padding: 36px 0 44px; }
.site-footer a { color: #fff6dd; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: baseline; justify-content: space-between; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer small { display: block; color: #d9c7a3; }
.footer-links { display: grid; gap: 10px; }
/* the nine languages, each named in itself (the page's own one not underlined) */
.site-footer .langs { gap: 6px 16px; font-size: 14px; }
.site-footer .langs a { font-family: var(--font-body); }
.site-footer .langs a[aria-current] { color: var(--yellow); text-decoration: none; }
/* the game's official pages (site.js SOCIAL), under its name: the brands' glyphs in the links' cream, 24 px, each in a
   44 px round target (the row pulled left so the first glyph lines up with the name); yellow under the pointer, as the
   page's own language, and from the keyboard the store badge's cream ring too */
.site-footer .social { gap: 4px; margin: 8px 0 0 -10px; }
.site-footer .social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.site-footer .social svg { width: 24px; height: 24px; fill: currentColor; }
@media (hover: hover) { .site-footer .social a:hover { color: var(--yellow); } }
.site-footer .social a:focus-visible { color: var(--yellow); outline: 3px solid #fff6dd; outline-offset: -4px; }

/* ---------- buttons, chips, placeholders ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 24px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 600 17px/1.1 var(--font-display); color: var(--ink-strong); background: var(--cream-2); box-shadow: 0 4px 0 var(--cream-4);
}
.btn.primary { background: var(--teal); color: #fff; box-shadow: 0 4px 0 var(--teal-edge); text-shadow: 0 1px 0 #2f8f7e; }
.btn:hover { background: var(--yellow); color: var(--ink-strong); box-shadow: 0 4px 0 var(--yellow-edge); text-shadow: none; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--cream-3); font: 700 13px/1.5 var(--font-body); color: var(--ink); white-space: nowrap; }
.chip.hat { background: var(--lilac-soft); }
.chip.keeper { background: var(--yellow); color: var(--ink-strong); }
.chip.season { background: #3f2a63; color: #ffd9a8; }
.placeholder {
  display: grid; place-items: center; text-align: center; padding: 20px; border-radius: var(--blob-sm);
  border: 2.5px dashed var(--line-strong); color: var(--muted);
  background: repeating-linear-gradient(-45deg, rgba(255, 252, 241, 0.75) 0 14px, rgba(242, 233, 205, 0.75) 14px 28px);
}
.tag-ph {
  display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--coral-soft); color: #b8432d;
  font: 800 11px/1.6 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle;
}
.ph-text { background: var(--yellow-soft); border-radius: 4px; padding: 0 4px; }

/* ---------- sections + cards ---------- */
section { padding: 48px 0 0; }
.page-head { padding-top: 40px; padding-bottom: 8px; }
.page-head p { max-width: 640px; font-size: 18px; }

/* ---------- home ---------- */
/* the live 3D views (hero/scene.js): the game's sky (hero/sky.css) behind the drawn island, the still picture over it
   until the first frame, then faded out */
.view { position: relative; overflow: hidden; }
.view > .season-sky { z-index: 0; }
.view > canvas.live { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.view > .poster { position: absolute; inset: 0; z-index: 2; transition: opacity 0.6s ease; }
.view > .poster img, .view > img.poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.view.live > .poster { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .view > .poster { transition: none; } }
/* the hero: edge to edge, the island on its night sky, the App Store badge on the island's soil (pinned there by the
   scene each frame; these numbers are where it sits on the still picture) */
.hero { background: #110c2c; padding: 0; }
.hero-view { height: max(360px, min(calc(100vh - 82px), 62.5vw)); cursor: pointer; }   /* (82px: the header) */
@media (max-width: 700px) { .hero-view { height: 122vw; min-height: 0; } .hero-view .season-note { top: 3%; width: 92%; } }
/* the season note's lettering, always two different playful fonts: the title in Jolly Lodger (Font Diner,
   SIL OFL 1.1, fonts/OFL-JollyLodger.txt, shipped unmodified as its reserved name requires), the line under it in Chewy
   (Font Diner / Sideshow, Apache 2.0, fonts/LICENSE-Chewy.txt); each downloads only when the note is on screen */
@font-face { font-family: 'Jolly Lodger'; src: url('fonts/JollyLodger-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Chewy'; src: url('fonts/Chewy-Regular.ttf') format('truetype'); font-display: swap; }
/* this season's note over the sky, above the team */
.hero-view .season-note { position: absolute; left: 50%; top: 4%; transform: translateX(-50%); z-index: 3; width: min(640px, 88%);
  text-align: center; color: #fff6dd; pointer-events: none; text-shadow: 0 2px 10px rgba(17, 12, 44, 0.85); }
.hero-view .season-note h2 { font: 400 clamp(46px, 6.4vw, 88px)/1 'Jolly Lodger', var(--font-display); letter-spacing: 0.03em; margin: 0 0 4px;
  color: #ff8a1f; -webkit-text-stroke: 2px #140c08; paint-order: stroke fill;
  text-shadow: 0 4px 0 #140c08, 0 0 18px rgba(255, 138, 31, 0.55), 0 0 42px rgba(255, 110, 20, 0.35); }
.hero-view .season-note p { margin: 0; white-space: nowrap; font: 400 clamp(16px, 2vw, 28px)/1.2 'Chewy', var(--font-body); letter-spacing: 0.03em;
  color: #ffc46b; text-shadow: 0 2px 0 #140c08, 0 0 10px rgba(20, 12, 8, 0.9); }
/* (Korean: Chewy has no Hangul, and the text face it would fall to, Gowun Dodum, is too thin for the night sky: Jua;
   Chinese the same, in ZCOOL KuaiLe) */
[lang|="ko"] .hero-view .season-note p, [lang|="zh"] .hero-view .season-note p { font-family: 'Chewy', var(--font-display); }
/* (Japanese, Korean and Chinese may wrap it, between phrases, on the narrowest phones: their letters run wider) */
[lang|="ja"] .hero-view .season-note p, [lang|="ko"] .hero-view .season-note p, [lang|="zh"] .hero-view .season-note p { white-space: normal; }
/* (-30%: the badge's middle a fifth of its height below the pinned point, where it sat under the line of text it had) */
.hero-view .store-badge { position: absolute; left: 50%; top: 84%; transform: translate(-50%, -30%); z-index: 3; pointer-events: none; }
/* (the link takes the click itself; the rest of the badge's box lets taps through to the team) */
.hero-view .store-badge a { pointer-events: auto; }
@media (max-width: 700px) {
  .hero-view .store-badge img { width: auto; height: 40px; }   /* Apple's smallest on screen */
}
/* the character viewer, one piece like the game's Store screen (its index.html .store-panel, .store-item, .screen-head):
   the everyday island fills the whole section, the list is a cream panel floating on it at the left (a strip along
   the top on phones and narrow screens), and what the one picked wears is a cream card on the island */
#characters { padding-top: 48px; }
.viewer { position: relative; height: clamp(600px, calc(100vh - 82px), 900px); overflow: hidden; -webkit-tap-highlight-color: transparent; }
/* (the island and the card under it take a sideways swipe, parts/swipe.js: up and down and a pinch stay the page's) */
.viewer-view { position: absolute; inset: 0; cursor: pointer; touch-action: pan-y pinch-zoom;
  --sky-0: #86d0f5; --sky-1: #c4e9f4; --sky-2: #ffe6b3; }   /* the everyday sky (src/themes.js Meadow Island), whatever the season */
.viewer-view > img.poster { object-fit: contain; padding: 14% 8% 16% 52%; -webkit-user-drag: none; -webkit-touch-callout: none; }
.viewer-view .slider-arrow { z-index: 3; }
.viewer-view .slider-arrow.prev { left: calc(min(560px, 40%) + 40px); }
.viewer-panel, .viewer-info {
  position: absolute; z-index: 4; box-sizing: border-box; background: var(--cream); color: var(--ink);
  border-radius: 40px 52px 36px 56px / 48px 38px 54px 40px; box-shadow: var(--shadow);
}
.viewer-panel::before, .viewer-info::before { content: ""; position: absolute; inset: 8px; border: 2px dashed rgba(190, 164, 112, 0.45); border-radius: inherit; pointer-events: none; }
.viewer-panel { left: 24px; top: 24px; bottom: 24px; width: min(560px, 40%); display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; padding: 22px 20px 18px 24px; }
/* the sign: the Store's own (an eyebrow pill on a cream sign) */
.viewer-sign { position: relative; justify-self: start; display: grid; justify-items: start; padding: 4px 4px 0; }
.viewer-sign .eyebrow {
  margin: 0 0 6px -4px; padding: 3px 13px 4px; border-radius: 999px; background: var(--yellow); color: var(--ink-strong);
  font: 600 13.5px/1.25 var(--font-display); transform: rotate(-3deg); box-shadow: 0 2px 0 var(--yellow-edge);
}
.viewer-sign h2 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); }
.viewer-pick { position: relative; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); align-content: start; gap: 12px; padding: 4px 6px 8px 2px; }
/* a card: the Store's (a tinted picture well, the name under it); the one on the island ringed in teal as the Store
   rings what's equipped */
.pick {
  --tint: #fde9a8; display: grid; gap: 6px; align-content: start; padding: 8px 8px 10px; border: 0; cursor: pointer; text-align: left;
  background: var(--cream-2); border-radius: 22px; box-shadow: 0 4px 0 var(--cream-3), 0 10px 18px -12px rgba(84, 62, 34, 0.55);
}
.pick:nth-child(5n+2) { --tint: #cfeec6; }
.pick:nth-child(5n+3) { --tint: #d2e7fb; }
.pick:nth-child(5n+4) { --tint: #fbd8e3; }
.pick:nth-child(5n+5) { --tint: #e4dbfa; }
.pick-art { display: block; aspect-ratio: 4 / 3; border-radius: 16px; background: var(--tint); overflow: hidden; }
.pick-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 85%; }
.pick-name { padding: 0 4px; font: 600 16px/1.15 var(--font-display); color: var(--ink-strong); }
@media (hover: hover) { .pick:hover { background: var(--yellow-soft); } }
.pick[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--teal), 0 4px 0 3px var(--teal-edge), 0 10px 18px -12px rgba(84, 62, 34, 0.55); }
.pick:focus-visible { outline: 3px solid var(--ink-strong); outline-offset: 3px; }
/* what they wear: a cream card on the grass, under them */
.viewer-info { right: 24px; bottom: 24px; width: min(460px, calc(60% - 72px)); padding: 18px 24px 18px; touch-action: pan-y pinch-zoom; }
.viewer-info h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; font-size: 24px; }
.viewer-info h3 .species { font: 700 14px var(--font-body); color: var(--muted); text-transform: none; }
.viewer-info p { margin: 0 0 8px; }
@media (max-width: 900px) {
  /* narrow: the strip of cards along the top, the island straight on below it, the card at the bottom: still one piece */
  .viewer { height: max(640px, 150vw); max-height: 820px; }
  .viewer-panel { left: 12px; right: 12px; top: 12px; bottom: auto; width: auto; gap: 8px; padding: 14px 12px 12px 16px; border-radius: 26px 32px 28px 34px / 30px 26px 32px 28px; }
  .viewer-panel::before, .viewer-info::before { inset: 6px; }
  .viewer-sign { grid-auto-flow: column; align-items: center; gap: 10px; padding: 0; }
  .viewer-sign .eyebrow { margin: 0; font-size: 12px; }
  .viewer-sign h2 { font-size: 22px; }
  .viewer-pick { display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; gap: 8px; padding: 2px 2px 6px; scroll-snap-type: x proximity; }
  .pick { flex: 0 0 92px; padding: 6px 6px 8px; gap: 4px; border-radius: 18px; scroll-snap-align: start; }
  .pick-art { border-radius: 13px; }
  .pick-name { font-size: 13px; }
  .viewer-view > img.poster { padding: 38% 22% 34%; }
  .viewer-view .slider-arrow.prev { left: 8px; }
  .viewer-info { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 14px 18px; border-radius: 26px 32px 28px 34px / 30px 26px 32px 28px; }
  .viewer-info h3 { font-size: 20px; }
  .viewer-info p { font-size: 14px; line-height: 1.45; }
}
.store-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.store-badge img { display: block; width: auto; height: 50px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45)); }   /* (each language's badge has its own width) */
.store-badge a { display: block; border-radius: 9px; }
.store-badge a:focus-visible { outline: 3px solid #fff6dd; outline-offset: 3px; }
.trailer { aspect-ratio: 16 / 9; font-size: 18px; max-width: 960px; }
/* the trailer: framed like the Fields slider below it, our still and a play button until YouTube's player takes over */
.trailer[data-render] { position: relative; overflow: hidden; background: #1d1a2b; border: 8px solid var(--cream-2); border-radius: var(--blob-sm); box-shadow: var(--shadow); }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.trailer-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* (up in the sky between the logo and the team on the poster, 44% down the 16:9 frame: 24.75% of its width) */
.trailer-button { position: relative; align-self: start; margin-top: calc(24.75% - 38px); width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-strong); background: var(--yellow); box-shadow: 0 6px 0 var(--yellow-edge), 0 14px 26px -10px rgba(40, 28, 16, 0.6); transition: transform 0.15s ease; }
.trailer-button svg { width: 46px; height: 46px; margin-left: 4px; }
.trailer-play:hover .trailer-button, .trailer-play:focus-visible .trailer-button { transform: scale(1.08); }
.trailer-play:focus-visible { outline: 3px solid var(--ink-strong); outline-offset: -6px; }
/* on phones the sky between the logo and the team is too thin for it: down in the corner, by the island's edge (the
   whole picture is still the button) */
@media (max-width: 700px) { .trailer[data-render] { border-width: 5px; } .trailer-button { align-self: end; justify-self: end; margin: 0 10px 10px 0; width: 48px; height: 48px; box-shadow: 0 4px 0 var(--yellow-edge), 0 10px 18px -8px rgba(40, 28, 16, 0.6); } .trailer-button svg { width: 28px; height: 28px; margin-left: 3px; } }
@media (prefers-reduced-motion: reduce) { .trailer-button { transition: none; } }
/* the field photos: one at a time across the whole width, arrows either side over the picture */
/* in the page column like the trailer, the photos framed in a cream border */
.slider { position: relative; width: 100%; max-width: 960px; overflow: hidden; background: var(--cream-3); margin-top: 6px; touch-action: pan-y pinch-zoom; -webkit-tap-highlight-color: transparent;
  border: 8px solid var(--cream-2); border-radius: var(--blob-sm); box-shadow: var(--shadow); }
.slider-stage { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform 0.45s ease; }
/* the card under the photo: the tournament (number, cup, field) and its boss, or what the field is */
.slider-info { display: flex; align-items: center; gap: 20px; padding: 14px 22px 16px; background: var(--cream-2); }
.slider-info .text { flex: 1 1 auto; min-width: 0; }
.slider-info .num { font: 600 13px/1 var(--font-display); color: var(--teal-ink); text-transform: uppercase; letter-spacing: 0.08em; }
.slider-info h3 { font-size: 22px; margin: 4px 0 2px; }
.slider-info p { margin: 0; color: var(--muted); }
.slider-info .boss { display: flex; align-items: center; gap: 10px; flex: none; }
.slider-info .boss img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 80%; background: var(--day-1); }
.slider-info .count { flex: none; font: 700 12px var(--font-body); color: var(--muted); }
/* a swipe (parts/swipe.js): the photos follow the finger, then glide on (a quicker ease than the arrows') */
.slider-track.drag { transition: none; }
.slider-track.glide { transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.3, 1); }
.slider-track.jump { transition: none; }
@media (prefers-reduced-motion: reduce) { .slider-track, .slider-track.glide { transition: none; } }
.slide { flex: 0 0 100%; margin: 0; aspect-ratio: 16 / 9; background: linear-gradient(180deg, var(--day-1), var(--cream-3)); }
.slide img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--ink-strong); background: rgba(255, 252, 241, 0.92); box-shadow: 0 4px 0 var(--cream-4), 0 10px 16px -10px rgba(84, 62, 34, 0.55);
}
.slider-arrow svg { width: 24px; height: 24px; }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-arrow:hover, .slider-arrow:focus-visible { background: var(--yellow); box-shadow: 0 4px 0 var(--yellow-edge); }
.slider-arrow:focus-visible { outline: 3px solid var(--ink-strong); outline-offset: 2px; }
@media (max-width: 700px) {
  .slider { border-width: 5px; }
  .slider-arrow { width: 34px; height: 34px; }
  .slider-arrow svg { width: 18px; height: 18px; }
  .slider-arrow.prev { left: 8px; }
  .slider-arrow.next { right: 8px; }
  .slider-info { padding: 12px 14px; gap: 12px; flex-wrap: wrap; }
  .slider-info h3 { font-size: 19px; }
  .slider-info .boss img { width: 42px; height: 42px; }
}

/* ---------- characters ---------- */
.char .pic img { object-position: 50% 85%; }
.char .species { text-transform: capitalize; }

/* ---------- fields ---------- */

/* ---------- season ---------- */
.season-hero { background: linear-gradient(180deg, #2d2552, #4b3a7a 60%, #8a5aa0); color: #f3e6ff; padding: 40px 0 44px; }
.season-hero h1 { color: #ffd9a8; }
.season-hero p { max-width: 620px; font-size: 18px; }

/* ---------- support, privacy, about ---------- */
.faq { display: grid; gap: 10px; max-width: 780px; }
.faq details { background: var(--cream-2); border-radius: 16px; box-shadow: var(--shadow); padding: 4px 18px; }
.faq summary { cursor: pointer; padding: 12px 0; font: 600 18px/1.3 var(--font-display); color: var(--ink-strong); }
.faq details p { margin: 0 0 12px; }
.prose > * { max-width: 760px; }
.prose section { padding-top: 24px; }

/* ---------- about: laid out like Supercell's About us (a big mission line, short sections under big headings, big
   pictures between them), in the site's cream, Fredoka and rounded cards ---------- */
.about h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.005em; }
.about .lead { font: 600 clamp(20px, 2.1vw, 26px)/1.35 var(--font-display); color: var(--ink-strong); }
.about-text p:not(.lead), .about-split > div > p:not(.lead) { font-size: 18px; }
.about-eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 4px 14px 5px; border-radius: 999px; background: var(--yellow); color: var(--ink-strong);
  font: 600 15px/1.25 var(--font-display); transform: rotate(-2deg); box-shadow: 0 2px 0 var(--yellow-edge);
}
.about-mission { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.about-mission h1 { max-width: 1040px; margin: 0; font-size: clamp(38px, 6.2vw, 80px); line-height: 1.08; }
.about-photo { margin: 0; overflow: hidden; border: 8px solid var(--cream-2); border-radius: var(--blob); box-shadow: var(--shadow); background: var(--cream-3); }
.about-photo img { width: 100%; height: auto; }
.about-block { padding-top: clamp(64px, 10vw, 128px); }
.about-split { display: grid; gap: 12px 64px; align-items: start; }
@media (min-width: 900px) { .about-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.about-split h2 { margin-bottom: 0.3em; }
.about-text { max-width: 640px; }
.about-cast { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 24px); }
.about-cast li { border-radius: var(--blob-sm); overflow: hidden; background: #fde9a8; box-shadow: var(--shadow); }
.about-cast li:nth-child(2) { background: #cfeec6; }
.about-cast li:nth-child(3) { background: #d2e7fb; }
.about-cast li:nth-child(4) { background: #fbd8e3; }
.about-cast img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; mix-blend-mode: multiply; }
@media (max-width: 700px) { .about-cast { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.about-values { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.about-values li { position: relative; padding: 28px 26px 24px; background: var(--cream-2); border-radius: var(--blob-sm); box-shadow: var(--shadow); }
.about-values li::before { content: ""; display: block; width: 44px; height: 8px; margin-bottom: 18px; border-radius: 999px; background: var(--teal); }
.about-values li:nth-child(2)::before { background: var(--yellow); }
.about-values li:nth-child(3)::before { background: var(--coral); }
.about-values li:nth-child(4)::before { background: #b9a2ec; }
.about-values h3 { font-size: 24px; }
.about-values p { margin: 0; }
.about-game { display: grid; margin-top: 28px; overflow: hidden; background: var(--cream-2); border-radius: var(--blob); box-shadow: var(--shadow); }
@media (min-width: 900px) { .about-game { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.about-game-art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .about-game-art img { aspect-ratio: 1; } }   /* (a phone: square as ever, the hero's taller still cropped, not squeezed) */
.about-game-text { padding: clamp(24px, 4vw, 48px); align-self: center; }
.about-game-text h3 { font: 400 clamp(32px, 4vw, 46px)/1.05 var(--font-title); margin-bottom: 12px; }
.about-game-text p { font-size: 18px; }
.about-soon { font: 600 17px/1.3 var(--font-display); color: var(--teal-ink); }
.about-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.btn:focus-visible { outline: 3px solid var(--ink-strong); outline-offset: 3px; }

/* the contact form */
.contact { background: var(--cream-2); border-radius: var(--blob-sm); box-shadow: var(--shadow); padding: clamp(20px, 3.5vw, 36px); }
.contact-form { display: grid; gap: 18px; }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* the field only a bot fills in (api/contact.js) */
.contact-form[hidden] { display: none; }
.contact .field { display: grid; gap: 6px; }
.contact label { font: 600 17px/1.2 var(--font-display); color: var(--ink-strong); }
.contact input, .contact select, .contact textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 2px solid var(--line-strong); border-radius: 14px;
  font: 600 16px/1.4 var(--font-body); color: var(--ink-strong); background: #fff;
}
.contact textarea { resize: vertical; min-height: 140px; }
.contact input, .contact textarea { scroll-margin-top: 110px; }   /* (clear of the sticky header when focused) */
.contact select { appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2354412c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.contact input:focus-visible, .contact select:focus-visible, .contact textarea:focus-visible { outline: none; border-color: var(--teal-edge); box-shadow: 0 0 0 4px rgba(92, 200, 180, 0.35); }
.contact .field.invalid input, .contact .field.invalid textarea { border-color: #c4472f; background: #fff8f5; }
.contact .field.invalid input:focus-visible, .contact .field.invalid textarea:focus-visible { box-shadow: 0 0 0 4px rgba(242, 132, 108, 0.35); }
.field-error { margin: 0; font-weight: 700; font-size: 15px; color: #b03a23; }
.field-error:empty { display: none; }
.contact-form .btn { justify-self: start; }
.contact-result:empty { display: none; }
.contact-result.error { margin-bottom: 18px; padding: 12px 16px; border-radius: 14px; background: var(--coral-soft); color: #8f3422; font-weight: 800; }
.contact-result.thanks { outline: none; }
.contact-result.thanks h3 { font-size: 28px; }
.contact-result.thanks p { font-size: 18px; }
.contact-result.thanks .small { font-size: 14px; color: var(--muted); }

/* ---------- the cookie notice (analytics.js): a small card at the bottom, until the visitor picks ---------- */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 420px; box-sizing: border-box; padding: 16px 18px;
  background: var(--cream-2); color: var(--ink-strong); border-radius: var(--blob-sm); box-shadow: var(--shadow), 0 0 0 2px rgba(84, 62, 34, 0.08);
  animation: consent-in 0.35s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
.consent p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
.consent p b { font-family: var(--font-display); font-weight: 600; font-size: 17px; display: block; margin-bottom: 2px; }
.consent-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-buttons .btn { min-height: 40px; padding: 8px 20px; }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
@media (max-width: 599px) { .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
