/* Dinko World — site styles. Plain CSS, mobile first. */

@font-face {
  font-family: "Lilita One";
  src: url("../fonts/lilitaone-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans-latinext.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --jungle-950: #08200f;
  --jungle-900: #0b2a19;
  --jungle-800: #0f3a24;
  --jungle-700: #15502f;
  --jungle-600: #1d6b3d;
  --field-a: #5ebd51;
  --field-b: #71cd5f;
  --stone: #9a8e7d;
  --stone-light: #b8ab97;
  --stone-dark: #6a6054;
  --sand: #f4dea0;
  --paper: #fff8e6;
  --ink: #26283c;
  --ink-soft: #4a4c63;
  --orange: #ff9630;
  --orange-dark: #c4660e;
  --yellow: #ffd040;
  --yellow-dark: #c99a12;
  --green: #58c454;
  --green-dark: #2f8a2c;
  --blue: #4696ff;
  --purple: #b068f0;
  --red: #eb5650;
  --tier-common: #66666f;
  --tier-rare: #1f6fe0;
  --tier-epic: #8a3fd1;
  --tier-mythic: #d32a3f;
  --radius: 28px;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-soft: 0 18px 40px -12px rgba(0, 0, 0, .55);
  --font-head: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--paper);
  background-color: var(--jungle-800);
  background-image:
    radial-gradient(1200px 600px at 15% -10%, rgba(120, 200, 90, .18), transparent 60%),
    radial-gradient(900px 500px at 100% 30%, rgba(255, 150, 48, .08), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%23ffffff' fill-opacity='.035'%3E%3Cellipse cx='30' cy='34' rx='18' ry='7' transform='rotate(-35 30 34)'/%3E%3Cellipse cx='132' cy='62' rx='22' ry='8' transform='rotate(28 132 62)'/%3E%3Cellipse cx='80' cy='140' rx='16' ry='6' transform='rotate(-12 80 140)'/%3E%3Ccircle cx='100' cy='20' r='3'/%3E%3Ccircle cx='160' cy='150' r='4'/%3E%3Ccircle cx='20' cy='110' r='2.5'/%3E%3Ccircle cx='62' cy='82' r='2'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--jungle-800), var(--jungle-950));
  background-attachment: scroll;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #ffe27f; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.1; margin: 0 0 .4em; letter-spacing: .01em; }

:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 12px;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 12px;
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 32, 15, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid rgba(0, 0, 0, .25);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 1.5rem; color: var(--paper); text-decoration: none;
}
.brand img { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--paper); box-shadow: 0 3px 0 rgba(0,0,0,.35); transition: transform .4s var(--bounce); }
.brand:hover { color: var(--paper); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.brand span { color: var(--yellow); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--paper); color: var(--ink); box-shadow: 0 4px 0 var(--stone-dark);
}
.nav-toggle svg { width: 26px; height: 26px; }
.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--jungle-900); border-bottom: 3px solid rgba(0,0,0,.3); padding: 8px 16px 18px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 14px; border-radius: 14px;
  font-family: var(--font-head); font-size: 1.2rem; letter-spacing: .02em;
  color: var(--paper); text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.08); color: var(--yellow); }
.site-nav .nav-cta a { background: var(--orange); color: var(--ink); text-align: center; box-shadow: 0 4px 0 var(--orange-dark); margin-top: 6px; }
.site-nav .nav-cta a:hover { background: #ffa850; color: var(--ink); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; background: none; border: 0; padding: 0; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 2px; }
  .site-nav a { font-size: 1.1rem; padding: 8px 14px; }
  .site-nav .nav-cta a { margin: 0 0 0 8px; padding: 8px 18px; transition: transform .3s var(--bounce); }
  .site-nav .nav-cta a:hover { transform: translateY(-2px) rotate(-2deg); }
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--orange); --btn-edge: var(--orange-dark); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 18px; border: 3px solid var(--ink);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-head); font-size: 1.25rem; letter-spacing: .02em; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 0 var(--btn-edge), 0 12px 22px -8px rgba(0,0,0,.6);
  transition: transform .35s var(--bounce), box-shadow .2s ease, filter .2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-3px) scale(1.03); filter: brightness(1.06); box-shadow: 0 9px 0 var(--btn-edge), 0 16px 26px -8px rgba(0,0,0,.6); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--btn-edge), 0 6px 12px -6px rgba(0,0,0,.6); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-big { min-height: 64px; padding: 14px 34px; font-size: 1.55rem; border-radius: 22px; }
.btn-paper { --btn-bg: var(--paper); --btn-edge: var(--stone-dark); }
.btn-green { --btn-bg: var(--green); --btn-edge: var(--green-dark); }
.btn-yellow { --btn-bg: var(--yellow); --btn-edge: var(--yellow-dark); }
.chip-soon {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 20px;
  border-radius: 16px; border: 3px dashed var(--stone); color: var(--ink-soft);
  font-family: var(--font-head); font-size: 1.15rem; background: rgba(38,40,60,.04);
}

/* ---------- hero ---------- */
.hero { padding: 22px 0 0; position: relative; }
.board {
  position: relative;
  border-radius: 40px;
  padding: clamp(10px, 2.5vw, 16px);
  background: linear-gradient(180deg, var(--stone-light), var(--stone) 40%, #8a7e6d);
  border: 4px solid var(--stone-dark);
  box-shadow: var(--shadow-soft), inset 0 3px 0 rgba(255,255,255,.35), inset 0 -4px 0 rgba(0,0,0,.18);
}
/* the two middle pockets, like the Dino Flick table */
.board::before, .board::after {
  content: ""; position: absolute; left: 50%; width: 92px; height: 20px; translate: -50% 0;
  background: #121218; z-index: 2;
}
.board::before { top: -4px; border-radius: 0 0 14px 14px; }
.board::after { bottom: -4px; border-radius: 14px 14px 0 0; }
.field {
  position: relative; overflow: hidden;
  border-radius: 32px;
  background: repeating-linear-gradient(90deg, var(--field-a) 0 56px, var(--field-b) 56px 112px);
  box-shadow: inset 0 6px 0 rgba(0,0,0,.18), inset 0 0 0 3px rgba(0,0,0,.12), inset 0 0 60px rgba(0,60,0,.25);
  padding: 26px 10px 40px;
  display: grid; gap: 8px; justify-items: center; text-align: center;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "mascots" "copy";
}
.field::after { /* center spot + line, subtle */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 0 118px, rgba(255,255,255,.22) 119px 122px, transparent 123px);
}
.mascots { grid-area: mascots; display: flex; gap: clamp(4px, 4vw, 60px); justify-content: center; position: relative; z-index: 1; }
.hero-copy { grid-area: copy; position: relative; z-index: 1; max-width: 640px; }

.logo {
  font-size: clamp(3.2rem, 13vw, 7.4rem);
  line-height: .92;
  margin: 6px 0 14px;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .02em;
  /* chunky ink outline made of shadows (works everywhere), plus a drop */
  text-shadow:
    0 -5px 0 var(--ink), 4px -4px 0 var(--ink), 5px 0 0 var(--ink), 4px 4px 0 var(--ink),
    0 5px 0 var(--ink), -4px 4px 0 var(--ink), -5px 0 0 var(--ink), -4px -4px 0 var(--ink),
    2px -5px 0 var(--ink), 5px -2px 0 var(--ink), 5px 2px 0 var(--ink), 2px 5px 0 var(--ink),
    -2px 5px 0 var(--ink), -5px 2px 0 var(--ink), -5px -2px 0 var(--ink), -2px -5px 0 var(--ink),
    0 12px 0 var(--ink), 4px 11px 0 var(--ink), -4px 11px 0 var(--ink),
    0 22px 28px rgba(0,0,0,.35);
}
.logo .w2 { display: block; color: var(--paper); }
.tagline {
  display: inline-block; margin: 0 0 22px; padding: 10px 18px;
  background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px;
  font-weight: 700; font-size: clamp(1rem, 3.6vw, 1.25rem); line-height: 1.4;
  box-shadow: 0 5px 0 rgba(38,40,60,.55);
  max-width: 34ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 16px; justify-content: center; }

/* mascots with their rival rings */
.mascot { --size: clamp(54px, 15vw, 150px); position: relative; width: calc(var(--size) * 1.48); aspect-ratio: 1; display: grid; place-items: center; }
.mascot .float { width: 100%; height: 100%; display: grid; place-items: center; animation: float 4.8s ease-in-out infinite; }
.mascot.right .float { animation-delay: -2.4s; }
.mascot-btn {
  position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 50%; display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
}
.mascot-btn:focus-visible { outline-offset: -6px; border-radius: 50%; }
.mascot .ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mascot.left .ring { animation: spin 9s linear infinite; }
.mascot.right .ring { animation: spin 16s linear infinite reverse; }
.mascot .disc {
  position: relative; width: calc(100% * 92 / 136); height: auto; aspect-ratio: 1; border-radius: 50%;
  filter: drop-shadow(0 8px 8px rgba(0,0,0,.35));
}
.mascot.boing .disc { animation: boing .7s var(--bounce); }
.mascot.grr .disc { animation: shake .5s ease-in-out; }
.bubble {
  position: absolute; top: 2%; z-index: 3; pointer-events: none;
  background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px;
  padding: 4px 12px; font-family: var(--font-head); font-size: 1.15rem; white-space: nowrap;
  opacity: 0; transform: translateY(8px) scale(.6); transition: opacity .2s, transform .35s var(--bounce);
}
.mascot.left .bubble { right: -6%; }
.mascot.right .bubble { left: -6%; }
.bubble.show { opacity: 1; transform: none; }
.bubble.angry { background: var(--red); color: #fff; }

@media (min-width: 900px) {
  .field {
    grid-template-columns: 1fr minmax(0, 1.6fr) 1fr;
    grid-template-areas: "left copy right";
    align-items: center; padding: 64px 28px 70px; gap: 10px;
  }
  .field { grid-template-areas: "left dinko right" "left copy right"; padding-top: 40px; }
  .mascots { display: contents; }
  .mascot { --size: 170px; }
  .mascot.left { grid-area: left; }
  .mascot.right { grid-area: right; }
  .mascot.hero-dinko { grid-area: dinko; width: 200px; margin-bottom: -18px; }
}

/* parade of dino discs */
.parade { position: relative; margin-top: 26px; overflow: hidden; padding: 10px 0 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.parade-row { display: flex; width: max-content; padding: 8px 0; animation: march 70s linear infinite; will-change: transform; }
.parade-row.rev { animation-direction: reverse; margin-left: -60px; }
.parade:hover .parade-row { animation-play-state: paused; }
.pdisc {
  flex: none; width: 86px; height: 86px; margin: 0 18px 0 0; padding: 0; border-radius: 50%; border: 4px solid var(--paper);
  background: var(--paper); cursor: pointer;
  box-shadow: 0 6px 0 rgba(0,0,0,.3), 0 10px 18px -6px rgba(0,0,0,.6);
  transition: transform .35s var(--bounce);
}
.pdisc.off1 { translate: 0 8px; }
.pdisc.off2 { translate: 0 -6px; }
.pdisc img { width: 100%; height: 100%; border-radius: 50%; }
.pdisc:hover { transform: scale(1.14) rotate(-6deg); }
.pdisc.pop { animation: boing .6s var(--bounce); }
.pdisc.t-rare { border-color: #7fb2ff; }
.pdisc.t-epic { border-color: #c79bff; }
.pdisc.t-mythic { border-color: #ff6a5a; box-shadow: 0 0 0 3px rgba(255,80,60,.35), 0 0 22px 6px rgba(255,60,40,.55), 0 6px 0 rgba(0,0,0,.3); }
@media (min-width: 900px) { .pdisc { width: 104px; height: 104px; } }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes march { to { transform: translateX(-50%); } }
@keyframes boing {
  0% { transform: scale(1); } 25% { transform: scale(1.18, .84) translateY(6px); }
  50% { transform: scale(.9, 1.14) translateY(-18px); } 75% { transform: scale(1.05, .96); } 100% { transform: scale(1); }
}
@keyframes shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-9deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
@keyframes mythic-glow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,90,60,.55), 0 0 28px 6px rgba(255,50,30,.45), 0 10px 0 #7a1222, var(--shadow-soft); }
  50% { box-shadow: 0 0 0 4px rgba(255,190,80,.8), 0 0 46px 14px rgba(255,70,30,.7), 0 10px 0 #7a1222, var(--shadow-soft); }
}

/* ---------- sections ---------- */
.section { padding: 72px 0 24px; scroll-margin-top: 70px; }
.section-head { text-align: center; margin-bottom: 34px; }
.eyebrow {
  display: inline-block; margin-bottom: 10px; padding: 4px 14px; border-radius: 999px;
  background: var(--orange); color: var(--ink); border: 3px solid var(--ink);
  font-family: var(--font-head); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(-2deg);
}
.section-title {
  font-size: clamp(2.3rem, 8vw, 3.8rem); color: var(--paper);
  text-shadow: 0 4px 0 var(--ink), 0 10px 22px rgba(0,0,0,.35);
}
.section-sub { color: #d9ecd4; max-width: 46ch; margin: 0 auto; font-size: 1.1rem; }

/* game cards */
.games-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }
.card {
  position: relative; background: var(--paper); color: var(--ink);
  border: 4px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 10px 0 var(--stone-dark), var(--shadow-soft);
  transition: transform .45s var(--bounce), box-shadow .3s;
}
.game-card { display: flex; flex-direction: column; overflow: hidden; }
.game-card:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 16px 0 var(--stone-dark), 0 30px 50px -14px rgba(0,0,0,.6); }
.game-card:nth-child(even):hover { transform: translateY(-8px) rotate(.6deg); }
.game-cover { position: relative; aspect-ratio: 16 / 9; background: var(--sand); border-bottom: 4px solid var(--ink); overflow: hidden; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--bounce); }
.game-card:hover .game-cover img { transform: scale(1.05); }
.game-status {
  position: absolute; bottom: 14px; left: 14px; padding: 4px 14px; border-radius: 999px;
  font-family: var(--font-head); font-size: 1rem; letter-spacing: .04em; border: 3px solid var(--ink);
  background: var(--green); color: var(--ink); box-shadow: 0 3px 0 rgba(0,0,0,.35);
}
.game-status.soon { background: var(--yellow); }
.game-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.game-body h3 { font-size: 2.1rem; margin: 0; }
.game-body p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 999px;
  font-size: .9rem; font-weight: 700; border: 2px solid currentColor; line-height: 1.4;
}
.badge svg { width: 18px; height: 18px; }
.badge.live { color: #1f6d1c; background: #def5d5; }
.badge.soon { color: #5d5a52; background: #efe7d2; }
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.badge.live .dot { background: #2fb52a; box-shadow: 0 0 0 3px rgba(47,181,42,.25); }
.game-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 6px; }

/* meet the dinos */
.dino-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 560px) { .dino-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 820px) { .dino-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
@media (min-width: 1100px) { .dino-grid { grid-template-columns: repeat(6, 1fr); } }
.dino-card {
  appearance: none; font: inherit; text-align: center; cursor: pointer; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 10px 14px; border-radius: 24px;
  -webkit-tap-highlight-color: transparent;
}
.dino-card:hover, .dino-card.cycling { transform: translateY(-6px) rotate(-1.5deg); }
.dino-card:nth-child(even):hover, .dino-card:nth-child(even).cycling { transform: translateY(-6px) rotate(1.5deg); }
.dino-card .pic { position: relative; width: 100%; max-width: 150px; aspect-ratio: 1; }
.dino-card .pic img.dimg { position: relative; width: 100%; border-radius: 50%; border: 4px solid var(--ink); background: var(--sand); }
.dino-card.cycling .pic img.dimg { animation: boing .5s var(--bounce); }
.dino-name { font-family: var(--font-head); font-size: clamp(1.05rem, 4.2vw, 1.25rem); line-height: 1.15; margin-top: 4px; hyphens: manual; }
.dino-card .mood {
  font-size: .82rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em;
  min-height: 1.4em;
}
.tier {
  display: inline-block; padding: 2px 12px; border-radius: 999px; color: #fff;
  font-family: var(--font-head); font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  background: var(--tier-common);
}
.tier.rare { background: var(--tier-rare); }
.tier.epic { background: var(--tier-epic); }
.tier.mythic { background: linear-gradient(90deg, #c4182f, #e8452a, #c4182f); }

.dino-card.mythic, .gallery-card.mythic {
  background: radial-gradient(circle at 50% 30%, #fff1dc, #ffe0c4 70%);
  border-color: #7a1222;
  animation: mythic-glow 2.6s ease-in-out infinite;
}
.dino-card.mythic .pic img.dimg, .gallery-card.mythic .moods img { border-color: #b21a2a; }
.mythic .pic .ring { position: absolute; inset: -24%; width: 148%; max-width: none; animation: spin 9s linear infinite; pointer-events: none; }
.sparkle { position: absolute; top: -12px; right: -10px; font-size: 1.6rem; line-height: 1; z-index: 2; animation: float 3s ease-in-out infinite; }

.center-cta { text-align: center; margin-top: 36px; }
.hint { text-align: center; color: #cfe6c8; font-size: .98rem; margin-top: -14px; margin-bottom: 26px; }

/* gallery page */
.gallery { display: grid; gap: 26px; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery-card { padding: 20px 18px 22px; }
.gallery-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.gallery-card h2 { font-size: 1.9rem; margin: 0; }
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; list-style: none; margin: 0; padding: 0; }
.moods li { text-align: center; }
.moods img { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ink); background: var(--sand); transition: transform .35s var(--bounce); }
.moods li:hover img { transform: scale(1.12) rotate(-5deg); }
.moods span { display: block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-top: 4px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.filter-bar button {
  font-family: var(--font-head); font-size: 1.05rem; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.08); color: var(--paper); border: 3px solid rgba(255,255,255,.25);
  transition: transform .3s var(--bounce);
}
.filter-bar button:hover { transform: translateY(-2px); }
.filter-bar button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--ink); }

/* follow + contact */
.follow-card, .contact-card { padding: 34px 22px; text-align: center; overflow: hidden; }
.follow-card h2, .contact-card h2 { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: .2em; }
.follow-card p, .contact-card p { color: var(--ink-soft); font-size: 1.15rem; max-width: 40ch; margin: 0 auto 22px; }
.split { display: grid; gap: 30px; }
@media (min-width: 860px) { .split { grid-template-columns: 1.2fr 1fr; } }
.peek { position: absolute; width: 110px; bottom: -26px; opacity: .95; pointer-events: none; }
.follow-card .peek { left: -18px; transform: rotate(14deg); }
.contact-card .peek { right: -18px; transform: rotate(-14deg); }
.follow-card .peek, .contact-card .peek { display: none; }
@media (min-width: 560px) { .follow-card .peek, .contact-card .peek { display: block; } }

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; list-style: none; margin: 0; padding: 0; }
.socials a {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px;
  background: var(--ink); color: var(--paper); border: 3px solid var(--ink);
  box-shadow: 0 5px 0 rgba(0,0,0,.35);
  transition: transform .35s var(--bounce), background .2s;
}
.socials a:hover { transform: translateY(-5px) rotate(-6deg) scale(1.06); background: var(--orange); color: var(--ink); }
.socials svg { width: 28px; height: 28px; }
.socials.small a { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); box-shadow: none; }
.socials.small a:hover { background: var(--yellow); color: var(--ink); }
.socials.small svg { width: 22px; height: 22px; }
.mail-link { font-size: clamp(1.3rem, 5vw, 1.7rem); }

/* ---------- legal / text pages ---------- */
.page-hero { padding: 54px 0 24px; text-align: center; }
.prose { padding: 34px 22px; max-width: 820px; margin: 0 auto; }
@media (min-width: 700px) { .prose { padding: 46px 52px; } }
.prose h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; }
.prose a { color: #b04d00; font-weight: 700; }
.prose a:hover { color: #7a3400; }
.updated { display: inline-block; font-size: .95rem; font-weight: 700; color: var(--ink-soft); background: #efe7d2; border-radius: 999px; padding: 2px 12px; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 50px 0; }
.lost .disc { width: min(280px, 70vw); margin: 0 auto 10px; border-radius: 50%; border: 6px solid var(--paper); box-shadow: 0 12px 0 rgba(0,0,0,.3); animation: float 4.8s ease-in-out infinite; }
.lost h1 { font-size: clamp(2.6rem, 10vw, 4.6rem); color: var(--yellow); text-shadow: 0 5px 0 var(--ink); margin-top: 20px; }
.lost p { font-size: 1.2rem; color: #d9ecd4; }

/* ---------- footer ---------- */
.site-footer { margin-top: 80px; background: var(--jungle-950); border-top: 6px solid var(--stone); padding: 36px 0 30px; position: relative; }
.site-footer::before { /* striped field edge */
  content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 12px;
  background: repeating-linear-gradient(90deg, var(--field-a) 0 40px, var(--field-b) 40px 80px);
  border-top: 3px solid var(--stone-dark);
}
.site-footer .wrap { display: grid; gap: 18px; justify-items: center; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.footer-links li + li::before { content: "·"; color: #8fb38a; margin-right: 6px; }
.footer-links a { color: var(--paper); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--yellow); text-decoration: underline; }
.copy { color: #a9c7a3; font-size: .95rem; margin: 0; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .parade { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .pdisc.dup { display: none; }
  .parade-row { width: auto; flex-wrap: nowrap; padding-inline: 16px; }
  .parade-row.rev { margin-left: 0; }
}

/* Pterax, the rarest: its own showcase row until the 6-column layout */
@media (max-width: 1099px) {
  .dino-card.mythic { grid-column: 1 / -1; padding-top: 26px; }
  .dino-card.mythic .pic { max-width: 180px; }
}

/* full-height layout: footer sits at the bottom on short pages, background never restarts */
html { background-color: var(--jungle-950); }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
.prose { text-align: left; }
.prose h1 { text-align: center; }
.prose > p:first-of-type { text-align: center; }
.lost { min-height: 0; padding: 70px 0 30px; }

/* ---------- Dinko, the main mascot ---------- */
.mascots { align-items: center; }
.mascot.hero-dinko { width: clamp(100px, 28vw, 180px); z-index: 2; }
.mascot.hero-dinko .float { animation: hop 2.6s ease-in-out infinite; }
.mascot.hero-dinko .disc {
  width: 100%; border: 5px solid var(--paper);
  box-shadow: 0 0 0 4px var(--ink), 0 10px 0 rgba(38,40,60,.45);
  filter: none; transform-origin: 50% 90%;
}
.wave {
  position: absolute; right: -6%; bottom: 8%; font-size: clamp(1.7rem, 7vw, 2.6rem); line-height: 1;
  transform-origin: 70% 80%; animation: wave 1.8s ease-in-out infinite;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.25));
}
.mascot.hero-dinko .bubble { left: 62%; right: auto; top: -10%; }
@keyframes hop {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  20% { transform: translateY(0) scale(1.04, .96) rotate(-3deg); }
  45% { transform: translateY(-16px) rotate(3deg); }
  70% { transform: translateY(0) scale(1.02, .98) rotate(1deg); }
}
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  10% { transform: rotate(22deg); } 20% { transform: rotate(-12deg); }
  30% { transform: rotate(22deg); } 40% { transform: rotate(-6deg); } 50% { transform: rotate(14deg); }
}

/* ---------- "don't leave!" moods ---------- */
body.dw-angry img[data-dino] { animation: shake .5s ease-in-out 2; }
body.dw-happy img[data-dino] { animation: boing .7s var(--bounce); }
.btn.is-soon svg { display: none; }

.socials-empty { font-weight: 700; color: var(--ink-soft); margin-top: -6px !important; }
.socials-empty[hidden], .socials[hidden] { display: none; }
.footer-links li { color: #cfe6c8; }

/* ---------- legal pages ---------- */
.prose h3 { font-family: var(--font-head); font-size: 1.25rem; margin: 1.2em 0 .3em; color: var(--ink); }
.prose .cz { margin-top: 2.2em; padding: 18px 20px; border-radius: 20px; background: #f3ead2; border: 3px dashed #cbbd99; }
.prose .cz h2 { margin-top: .2em; }
.prose code, .prose .ph { font-weight: 800; color: #9b2c1a; background: #ffe7d6; padding: 0 6px; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: .6em 0 1em; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 2px solid #e8dcbc; color: var(--ink-soft); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 800; }
.table-scroll { overflow-x: auto; }
/* Lilita One has no Czech háček letters (č, ě, ř...): Czech headings use bold Open Sans */
[lang="cs"] h1, [lang="cs"] h2, [lang="cs"] h3 { font-family: var(--font-body); font-weight: 800; letter-spacing: 0; }

/* tables become stacked cards on phones */
@media (max-width: 640px) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .prose tr { padding: 10px 0; border-bottom: 2px solid #e8dcbc; }
  .prose td { border: 0; padding: 2px 0; }
  .prose td:first-child { color: var(--ink); font-weight: 800; }
}

/* copy e-mail button */
.copy-email {
  font: 800 .85rem/1 var(--font-body); padding: 5px 10px; margin-left: 4px; border-radius: 999px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); vertical-align: middle;
  transition: transform .25s var(--bounce);
}
.copy-email:hover { transform: translateY(-1px) scale(1.05); }
.copy-email.done { background: var(--green); }
.copy-email[hidden] { display: none; }
.copy-row { margin: 14px 0 0 !important; }
.site-footer .copy-email { background: rgba(255,255,255,.1); color: var(--paper); border-color: rgba(255,255,255,.35); }
.site-footer .copy-email.done { background: var(--green); color: var(--ink); }

/* a picture that failed to load is hidden but keeps its space (set by js/main.js) */
img.img-missing { visibility: hidden !important; }
