/* Pourmancer — the website. The game's own look (src/client/styles/tokens.css): a candle-lit lab, dark glass with brass
   edges, jewel liquids, Fredoka. Mobile first; wide layouts from 760 px and 1040 px. */
@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'); }

:root {
  --bg: #140c12;
  --bg2: #1d111c;
  --plum: #2a1830;
  --ink: #1d1020;
  --text: #fff4e2;
  --muted: #d6c7df;
  --dim: #a993b3;
  --brass: #e7c06a;
  --brass-d: #8a5d1c;
  --glass: rgba(34, 20, 42, 0.8);
  --glass-hi: rgba(60, 38, 70, 0.84);
  --edge: rgba(255, 226, 170, 0.26);
  --ruby: #e3264c;
  --sapphire: #2f63ec;
  --emerald: #16b96b;
  --amber: #f3a518;
  --mine: #22cbbd;
  --theirs: #ec4693;
  --gold-a: #ffd85a;
  --gold-b: #e28a12;
  --blue-a: #6fb0ff;
  --blue-b: #2a4fd2;
  --font: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --wrap: 1180px;
  --gut: 16px;
  color-scheme: dark;
}
@media (min-width: 760px) { :root { --gut: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font: 500 17px/1.55 var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 170, 80, 0.07), transparent 70%),
    linear-gradient(rgba(20, 12, 18, 0.9), rgba(20, 12, 18, 0.9)),
    url(/img/tex-stone.webp);
  background-size: auto, auto, 420px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold-a); outline-offset: 3px; border-radius: 10px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold-a); color: var(--ink); padding: 8px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- buttons (the game's own) */
.btn {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  border: 2px solid var(--ink); border-radius: 16px; padding: 10px 20px;
  font: 700 18px/1.1 var(--font); color: #fff; text-decoration: none; text-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, var(--gold-a), var(--gold-b)); cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -4px 0 rgba(0, 0, 0, 0.25), 0 4px 0 var(--ink), 0 10px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 1px 0 var(--ink); }
.btn small { font-size: 13px; font-weight: 600; opacity: 0.92; letter-spacing: 0.01em; }
.btn-blue { background: linear-gradient(180deg, var(--blue-a), var(--blue-b)); }
.btn-sm { padding: 6px 14px; font-size: 15px; border-radius: 12px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 3px 0 var(--ink); }
.btn-xl { padding: 14px 34px 12px; font-size: 30px; border-radius: 22px; }
.btn-xl small { margin-top: 3px; }

.round {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid var(--edge); color: var(--text);
  background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 16px rgba(0, 0, 0, 0.35);
}
.round svg { width: 22px; height: 22px; }
.round:disabled { opacity: 0.35; cursor: default; }
.rail-nav { display: none; gap: 10px; }
@media (min-width: 760px) { .rail-nav { display: flex; } }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 14px;
  height: 64px; padding: 0 var(--gut); transition: background 0.25s, box-shadow 0.25s;
  background: linear-gradient(rgba(20, 12, 18, 0.7), rgba(20, 12, 18, 0));
}
.nav.solid { background: rgba(24, 14, 24, 0.94); box-shadow: 0 1px 0 var(--edge), 0 8px 24px rgba(0, 0, 0, 0.35); }
@supports (backdrop-filter: blur(8px)) { .nav.solid { background: rgba(24, 14, 24, 0.82); backdrop-filter: blur(10px); } }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.nav-brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1.5px var(--edge), 0 4px 10px rgba(0, 0, 0, 0.4); }
.nav-brand .nav-logo { width: auto; height: 42px; border-radius: 0; box-shadow: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
.nav-links { display: none; gap: 4px; margin: 0 auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15.5px; padding: 8px 11px; border-radius: 10px; }
.nav-links a:hover { color: var(--text); background: rgba(255, 226, 170, 0.08); }
.nav-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { display: flex; padding: 3px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--edge); }
.lang button { border: 0; background: none; cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--dim); padding: 5px 9px; border-radius: 9px; }
.lang button[aria-pressed="true"] { background: var(--brass); color: var(--ink); }
@media (max-width: 400px) { .nav-logo { display: none; } }
@media (min-width: 1100px) { .nav-links { display: flex; } .nav-end { margin-left: 0; } }

/* ---------------------------------------------------------------- hero: U's key art, the logo, one action */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 100svh; padding: 76px 0 30px; }
.hero-stage { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.hero-art { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 12, 18, 0.72) 0%, rgba(20, 12, 18, 0.12) 24%, rgba(20, 12, 18, 0) 36%, rgba(20, 12, 18, 0.78) 52%, rgba(20, 12, 18, 0.9) 70%, rgba(20, 12, 18, 0.9) 100%);
}
.hero-drops i {
  position: absolute; left: var(--x); bottom: -30px; width: 12px; height: 16px; opacity: 0;
  border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85), var(--c) 45%);
  animation: rise var(--t) linear infinite; animation-delay: var(--d);
}
@keyframes rise {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  10% { opacity: 0.85; }
  80% { opacity: 0.6; }
  100% { transform: translateY(-92vh) translateX(18px) scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-drops { display: none; } }
.hero-copy { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--gut); }
.wordmark { display: flex; flex-direction: column; align-items: center; }
.wm-logo { width: min(84vw, 520px); filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55)); }
.wm-ribbon {
  margin-top: -4px; display: inline-block; padding: 5px 20px 6px; font-size: clamp(16px, 4.2vw, 21px); font-weight: 700; color: #3a2010;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: linear-gradient(#ffe9a6, #f2c25a); border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -3px 0 rgba(0, 0, 0, 0.15), 0 3px 0 var(--ink);
}
.hero-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 640px; }
.hero-tag { font-size: clamp(26px, 7.4vw, 40px); font-weight: 700; line-height: 1.08; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 0, 0, 0.6); }
.hero-pitch { color: var(--muted); font-size: 17px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 8px; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 9px; min-width: 156px; padding: 8px 14px 8px 12px; border-radius: 13px;
  color: var(--text); text-decoration: none; background: rgba(12, 6, 12, 0.82); border: 1.5px solid rgba(255, 244, 226, 0.32);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.store svg { width: 24px; height: 24px; flex: none; }
.store > span { display: flex; flex-direction: column; font-weight: 700; font-size: 17px; line-height: 1.1; text-align: left; }
.store small { font-size: 11.5px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.store[aria-disabled="true"] { cursor: default; opacity: 0.86; }
a.store:not([aria-disabled]):hover { border-color: var(--brass); }
@media (min-width: 760px) {
  .hero { min-height: min(100vh, 900px); padding-top: 88px; }
  .hero-art { object-position: 50% 42%; }
  .hero-scrim {
    background:
      radial-gradient(ellipse 46% 34% at 50% 18%, rgba(20, 12, 18, 0.55), transparent 70%),
      linear-gradient(180deg, rgba(20, 12, 18, 0.55) 0%, rgba(20, 12, 18, 0) 30%, rgba(20, 12, 18, 0) 52%, rgba(20, 12, 18, 0.82) 80%, rgba(20, 12, 18, 0.9) 100%);
  }
  .hero-actions { flex-direction: row; gap: 22px; }
  .stores { flex-direction: column; }
}
@media (min-width: 1040px) {
  .hero-bottom { max-width: 760px; }
  .hero-pitch { font-size: 19px; }
}

/* ---------------------------------------------------------------- the numbers: corked vials */
.stats { padding: 18px 0 8px; }
.stat-shelf { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 10px; position: relative; }
.sv { display: flex; flex-direction: column; align-items: center; width: min(110px, calc((100% - 20px) / 3)); text-align: center; }
.sv img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 8px; border-radius: 50%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5)); }
.sv b { font-size: 34px; line-height: 1; font-weight: 700; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45); }
.sv span:last-child { color: var(--muted); font-size: 14.5px; font-weight: 600; line-height: 1.25; margin-top: 2px; }
@media (min-width: 760px) {
  .stat-shelf { gap: 10px 34px; padding-bottom: 22px; }
  .stat-shelf::after { /* the plank they stand on */
    content: ''; position: absolute; left: 6%; right: 6%; top: 66px; height: 12px; z-index: -1; border-radius: 4px;
    background: linear-gradient(rgba(70, 40, 20, 0.35), rgba(30, 14, 8, 0.6)), url(/img/tex-wood.webp) center / 300px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 210, 150, 0.25);
  }
  .sv { width: 150px; }
  .sv img { width: 76px; height: 76px; }
}

/* ---------------------------------------------------------------- section furniture */
section { position: relative; }
.how, .cards, .labs, .duel, .daily, .loot, .gallery, .faq, .games { padding: 64px 0; }
@media (min-width: 760px) { .how, .cards, .labs, .duel, .daily, .loot, .gallery, .faq, .games { padding: 88px 0; } }
/* an apothecary label */
.tag {
  display: inline-block; margin-bottom: 14px; padding: 6px 16px 5px; transform: rotate(-1.5deg);
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #4a2c14;
  background: linear-gradient(#fbefd2, #ead19a);
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
  box-shadow: inset 0 0 0 2px #c69a50, inset 0 0 0 4px #fbefd2, inset 0 0 0 5px rgba(140, 90, 30, 0.45);
}
.h2 {
  font-size: clamp(34px, 7.6vw, 58px); line-height: 1.02; letter-spacing: -0.005em; max-width: 18ch;
  color: #ffd36a; text-shadow: 0 3px 0 #4a2410, 0 10px 24px rgba(0, 0, 0, 0.4);
}
.h2.big { font-size: clamp(40px, 9vw, 70px); max-width: none; }
.h3big { font-size: clamp(26px, 5vw, 36px); color: var(--text); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45); }
.lead { margin-top: 16px; max-width: 60ch; color: var(--muted); font-size: 18px; }
.fine-print { color: var(--dim); font-size: 14.5px; }
.glass {
  background: linear-gradient(180deg, var(--glass-hi), var(--glass)); border: 1.5px solid var(--edge); border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 22px rgba(0, 0, 0, 0.35);
}
/* a shelf plank with corked vials between sections */
.plank { position: relative; height: 58px; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 calc(var(--gut) + 4%); display: flex; align-items: flex-end; justify-content: space-around; }
.plank::before {
  content: ''; position: absolute; left: var(--gut); right: var(--gut); bottom: 0; height: 13px; border-radius: 4px;
  background: linear-gradient(rgba(90, 50, 24, 0.25), rgba(30, 14, 8, 0.55)), url(/img/tex-wood.webp) center / 320px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.55), inset 0 2px 0 rgba(255, 210, 150, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.35);
}
.plank::after { /* brass brackets */
  content: ''; position: absolute; left: calc(var(--gut) + 10%); right: calc(var(--gut) + 10%); bottom: -14px; height: 14px;
  background: linear-gradient(90deg, #b88a3c 0 12px, transparent 12px calc(100% - 12px), #b88a3c calc(100% - 12px));
  clip-path: polygon(0 0, 12px 0, 12px 30%, 2px 100%, 0 100%, 0 0, 100% 0, 100% 100%, calc(100% - 2px) 100%, calc(100% - 12px) 30%, calc(100% - 12px) 0);
  opacity: 0.8;
}
.plank img { position: relative; width: 60px; height: 60px; margin-bottom: 9px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.5)); }
.plank img:nth-child(2n) { width: 50px; height: 50px; }
@media (max-width: 759px) { .plank img:nth-child(n + 4) { display: none; } }

/* ---------------------------------------------------------------- how to play + the mini shelf */
.how-grid { display: grid; gap: 40px; align-items: start; }
.steps { margin-top: 26px; display: grid; gap: 18px; counter-reset: s; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-n {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  font-weight: 700; font-size: 22px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 40%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000));
  border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink), 0 8px 14px rgba(0, 0, 0, 0.35);
}
.steps h3 { font-size: 23px; margin-top: 2px; }
.steps p { color: var(--muted); margin-top: 4px; }
.toy { margin: 0; justify-self: center; width: 100%; max-width: 440px; }
.toy-frame {
  position: relative; border-radius: 26px; overflow: hidden; touch-action: manipulation;
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 4px rgba(231, 192, 106, 0.55), 0 0 0 6px var(--ink), 0 24px 50px rgba(0, 0, 0, 0.55);
  background: #1a1016;
}
#toy { display: block; width: 100%; height: auto; aspect-ratio: 360 / 460; }
.toy-hit { position: absolute; inset: 0; pointer-events: none; }
.toy-hit button {
  position: absolute; pointer-events: auto; border: 0; background: transparent; cursor: pointer; border-radius: 12px; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.toy-hit button:focus-visible { outline: 3px solid var(--gold-a); outline-offset: 0; }
.toy-msg {
  position: absolute; left: 50%; top: 45.5%; transform: translate(-50%, -50%); width: max-content; max-width: 88%;
  padding: 5px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; text-align: center; line-height: 1.3;
  background: rgba(20, 10, 20, 0.86); border: 1px solid var(--edge); pointer-events: none; opacity: 0; transition: opacity 0.2s;
}
.toy-msg.on { opacity: 1; }
.toy-win {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px; text-align: center; background: radial-gradient(circle at 50% 40%, rgba(60, 30, 60, 0.82), rgba(16, 8, 16, 0.94));
}
.toy-win[hidden] { display: none; }
.toy-win-t { font-size: 34px; font-weight: 700; color: var(--gold-a); text-shadow: 0 3px 0 #3a1a10; }
.toy-win p:not(.toy-win-t) { color: var(--muted); max-width: 30ch; }
.toy-win-b { display: flex; gap: 12px; margin-top: 8px; }
.toy figcaption { margin-top: 18px; color: var(--dim); font-size: 15px; text-align: center; }
@media (min-width: 1040px) {
  .how-grid { grid-template-columns: 1fr 440px; gap: 64px; align-items: center; }
}

/* ---------------------------------------------------------------- the rules */
.rules { padding: 8px 0 72px; }
.rules .h3big { text-align: center; margin: 0 auto 28px; max-width: 24ch; }
.rule-list { display: grid; gap: 14px; }
.rule {
  display: grid; grid-template-columns: 64px 1fr; gap: 4px 16px; align-items: start; padding: 18px;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass)); border: 1.5px solid var(--edge); border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 22px rgba(0, 0, 0, 0.3);
}
.rule img { grid-row: span 2; width: 64px; height: 64px; object-fit: contain; border-radius: 14px; }
.rule img.rule-ico { object-fit: contain; border-radius: 0; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4)); }
.rule h3 { font-size: 20px; }
.rule p { color: var(--muted); font-size: 15.5px; }
@media (min-width: 760px) { .rule-list { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 1100px) {
  .rule-list { grid-template-columns: repeat(4, 1fr); }
  .rule { grid-template-columns: 1fr; text-align: left; }
  .rule img { grid-row: auto; width: 76px; height: 76px; margin-bottom: 8px; }
}

/* ---------------------------------------------------------------- cards: spotlight + the forty */
.card-board { margin-top: 34px; display: grid; gap: 22px; }
.spot {
  --rc: #cdbdd8; position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 16px;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass)); border: 1.5px solid var(--edge); border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 26px rgba(0, 0, 0, 0.35);
}
.spot[data-r="1"], .card-grid [data-r="1"], .rar-key [data-r="1"] { --rc: #6fb0ff; }
.spot[data-r="2"], .card-grid [data-r="2"], .rar-key [data-r="2"] { --rc: #c08cff; }
.spot[data-r="3"], .card-grid [data-r="3"], .rar-key [data-r="3"] { --rc: #ffd85a; }
.spot-card { position: relative; }
.spot-card img { width: 112px; height: 112px; border-radius: 18px; border: 3px solid var(--rc); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45); background: #130c1a; }
.pip {
  position: absolute; top: -7px; left: -7px; min-width: 30px; height: 34px; padding: 0 4px; display: grid; place-items: center;
  font-weight: 700; font-size: 17px; color: #fff; text-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.5);
  background: radial-gradient(circle at 40% 30%, #c7a3ff, #8a4fe0 60%, #5a2aa8); border: 2px solid var(--ink);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; box-shadow: 0 2px 0 var(--ink);
}
.spot-meta { color: var(--dim); font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.spot-rar { color: var(--rc); }
.spot h3 { font-size: 26px; margin: 4px 0 6px; }
.spot-desc { color: var(--muted); font-size: 16px; }
.spot-from { margin-top: 8px; font-size: 14.5px; color: var(--dim); }
.spot-from b { color: var(--brass); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips button {
  cursor: pointer; padding: 7px 13px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--muted);
  background: rgba(0, 0, 0, 0.3); border: 1.5px solid var(--edge);
}
.chips button small { color: var(--dim); font-weight: 600; }
.chips button[aria-pressed="true"] { color: var(--ink); background: linear-gradient(var(--gold-a), var(--gold-b)); border-color: var(--ink); }
.chips button[aria-pressed="true"] small { color: rgba(29, 16, 32, 0.7); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.card-grid li[hidden] { display: none; }
.card-grid button {
  --rc: #cdbdd8; position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer;
  padding: 0; border: 0; background: none; text-align: center;
}
.card-grid img { width: 100%; aspect-ratio: 1; border-radius: 14px; border: 2.5px solid color-mix(in srgb, var(--rc) 75%, #000); background: #130c1a; transition: transform 0.12s, box-shadow 0.12s; }
.card-grid .pip { top: -5px; left: -5px; min-width: 22px; height: 25px; font-size: 13px; }
.card-grid b { max-width: 100%; font-size: 12.5px; font-weight: 600; line-height: 1.15; color: var(--muted); overflow-wrap: anywhere; hyphens: manual; }
.card-grid .d { display: none; }
.card-grid button:hover img { transform: translateY(-2px); }
.card-grid button[aria-pressed="true"] img { border-color: var(--rc); box-shadow: 0 0 0 3px var(--gold-a), 0 6px 14px rgba(0, 0, 0, 0.45); }
.card-grid button[aria-pressed="true"] b { color: var(--text); }
.rar-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: var(--dim); font-size: 14.5px; font-weight: 600; }
.rar-key li { --rc: #cdbdd8; display: flex; align-items: center; gap: 8px; }
.rar-key li::before { content: ''; width: 14px; height: 14px; border-radius: 4px; border: 2.5px solid var(--rc); }
@media (min-width: 760px) {
  .spot { grid-template-columns: 170px 1fr; gap: 24px; padding: 22px; }
  .spot-card img { width: 170px; height: 170px; border-radius: 24px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 12px; }
}
@media (min-width: 1040px) {
  .card-board { grid-template-columns: 330px 1fr; gap: 34px; align-items: start; }
  .spot { position: sticky; top: 90px; grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 28px 24px; }
  .spot-card img { width: 210px; height: 210px; }
  .spot .pip { top: -9px; left: -9px; min-width: 38px; height: 44px; font-size: 22px; }
}

/* ---------------------------------------------------------------- labs and the Adventure */
.labs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.lab-list {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 330px); column-gap: 16px; margin-top: 30px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gut) 18px; scroll-padding: 0 var(--gut);
  scrollbar-width: thin; scrollbar-color: rgba(231, 192, 106, 0.4) transparent; overscroll-behavior-x: contain;
}
@media (min-width: 1244px) { .lab-list { padding-left: calc((100vw - var(--wrap)) / 2); padding-right: calc((100vw - var(--wrap)) / 2); scroll-padding: 0 calc((100vw - var(--wrap)) / 2); } }
.lab {
  scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass)); border: 1.5px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 24px rgba(0, 0, 0, 0.35);
}
.lab-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--lt); }
.lab-art img { width: 100%; height: 100%; object-fit: cover; }
.lab-n, .lab-tr {
  position: absolute; top: 10px; padding: 4px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  background: rgba(16, 8, 16, 0.82); border: 1px solid var(--edge);
}
.lab-n { left: 10px; color: var(--text); }
.lab-tr { right: 10px; display: flex; align-items: center; gap: 4px; color: var(--gold-a); }
.lab-tr svg { width: 15px; height: 15px; }
.lab-copy { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lab-copy h3 { font-size: 24px; color: var(--l2); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45); }
.lab-copy > p { color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.lab-k { margin-top: 6px; color: var(--dim) !important; font-size: 12.5px !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.lab-cards { display: flex; flex-wrap: wrap; gap: 6px; }
.lab-cards li { display: flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); font-size: 13.5px; font-weight: 600; }
.lab-cards img { width: 28px; height: 28px; border-radius: 50%; }
.lab-boss { margin-top: auto; padding-top: 12px; display: flex; gap: 12px; align-items: center; border-top: 1px dashed rgba(255, 226, 170, 0.2); }
.lab-boss img { width: 58px; height: 58px; flex: none; }
.lab-boss p { display: flex; flex-direction: column; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.lab-boss small { color: var(--theirs); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.lab-boss b { font-size: 16.5px; color: var(--text); }
.adv-grid { display: grid; gap: 40px; margin-top: 56px; align-items: center; }
.adv-facts { margin-top: 22px; display: grid; gap: 14px; }
.adv-facts li { display: flex; gap: 14px; align-items: baseline; }
.adv-facts b { flex: none; width: 64px; text-align: right; font-size: 30px; line-height: 1; color: var(--gold-a); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45); }
.adv-facts strong { color: var(--text); font-weight: 700; }
.adv-facts li > span { color: var(--muted); }
.adv-fair { margin-top: 22px; display: inline-block; padding: 10px 16px; border-radius: 14px; font-weight: 600; color: #b9f5d8; background: rgba(22, 185, 107, 0.12); border: 1px solid rgba(78, 240, 168, 0.35); }
@media (min-width: 1040px) { .adv-grid { grid-template-columns: 1fr 470px; gap: 56px; } }

/* the twelve bosses */
.boss-wall { margin: 0; padding: 20px; border-radius: 24px; background: linear-gradient(180deg, var(--glass-hi), var(--glass)); border: 1.5px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 26px rgba(0, 0, 0, 0.35); }
.boss-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
.boss-grid li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--muted); }
.boss-grid img { width: 84px; height: 84px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5)); }
.boss-wall figcaption { margin-top: 16px; text-align: center; color: var(--dim); font-size: 14.5px; }
@media (min-width: 520px) { .boss-grid { grid-template-columns: repeat(4, 1fr); } }

/* a painted face-off: your creatures (teal) against a live rival's (rose) */
.vs-art { position: relative; margin: 0; width: 100%; max-width: 520px; justify-self: center; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; border: 1.5px solid var(--edge); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5); background: #1a1020; }
.vs-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55) saturate(0.9); }
.vs-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 18, 0) 40%, rgba(20, 12, 18, 0.75)); }
.vs-u { position: absolute; z-index: 1; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.55)); }
.vs-a1 { left: 3%; bottom: 7%; width: 40%; }
.vs-a2 { left: 31%; bottom: 5%; width: 18%; }
.vs-b1 { right: 4%; bottom: 8%; width: 32%; transform: scaleX(-1); }
.vs-b2 { right: 6%; top: 16%; width: 24%; transform: scaleX(-1); }
.vs-badge {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) rotate(-6deg); z-index: 2; padding: 6px 14px 4px;
  font-size: 30px; font-weight: 700; color: #fff; border-radius: 14px; border: 2px solid var(--ink);
  background: linear-gradient(var(--theirs), #a8205e); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); box-shadow: 0 4px 0 var(--ink), 0 12px 22px rgba(0, 0, 0, 0.45);
}
.vs-tag { position: absolute; top: 12px; z-index: 2; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: #fff; border: 1.5px solid var(--ink); }
.vs-you { left: 12px; background: linear-gradient(#3fe0d0, #13998f); }
.vs-them { right: 12px; background: linear-gradient(#ff6aa8, #c0236c); }

/* ---------------------------------------------------------------- online */
.duel-grid { display: grid; gap: 44px; align-items: center; }
.duel-list { margin-top: 26px; display: grid; gap: 18px; }
.duel-list li { display: flex; gap: 16px; align-items: flex-start; }
.ico { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.45)); }
.duel-list h3 { font-size: 21px; }
.duel-list p { color: var(--muted); margin-top: 3px; font-size: 16px; }
@media (min-width: 1040px) { .duel-grid { grid-template-columns: 1fr 470px; gap: 56px; } }

/* ---------------------------------------------------------------- daily things */
.daily-grid { display: grid; gap: 40px; }
.daily-list { margin-top: 26px; display: grid; gap: 16px; }
.daily-list li { display: flex; gap: 16px; align-items: flex-start; }
.daily-list img { width: 58px; height: 58px; flex: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45)); }
.daily-list h3 { font-size: 21px; }
.daily-list p { color: var(--muted); margin-top: 3px; font-size: 16px; }
.how-grid > *, .adv-grid > *, .duel-grid > *, .daily-grid > *, .faq-grid > *, .card-board > * { min-width: 0; }
.events { padding: 22px; border-radius: 22px; background: linear-gradient(180deg, var(--glass-hi), var(--glass)); border: 1.5px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 26px rgba(0, 0, 0, 0.35); align-self: start; }
.events-t { font-size: 22px; margin-bottom: 16px; }
.ev-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
.ev-list li > * { min-width: 0; overflow-wrap: break-word; }
.ev-list li { display: grid; grid-template-columns: 46px 1fr; column-gap: 10px; align-items: center; }
.ev-list img { grid-row: span 2; width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 0 0 1.5px var(--edge); }
.ev-list b { font-size: 15.5px; line-height: 1.2; }
.ev-list span { color: var(--dim); font-size: 13px; line-height: 1.3; }
.events .fine-print { margin-top: 16px; }
@media (min-width: 1040px) { .daily-grid { grid-template-columns: 1fr 460px; gap: 56px; align-items: start; } .events { margin-top: 64px; } }

/* ---------------------------------------------------------------- rewards */
.flasks { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 30px; }
.flasks li { display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 700; color: var(--muted); }
.flasks img { width: 70px; height: 70px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }
.loot-lead { max-width: 64ch; }
.loot-grid { display: grid; gap: 14px; margin-top: 28px; }
.loot-grid li { padding: 18px 20px; border-radius: 18px; background: linear-gradient(180deg, var(--glass-hi), var(--glass)); border: 1.5px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 22px rgba(0, 0, 0, 0.3); }
.loot-grid li { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: start; }
.loot-grid img { width: 52px; height: 52px; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.45)); }
.loot-grid li p { grid-column: 1 / -1; margin-top: 8px; }
.loot-grid h3 { font-size: 20px; color: var(--gold-a); align-self: center; }
.loot-grid p { color: var(--muted); margin-top: 4px; font-size: 15.5px; }
.fair { margin-top: 26px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; color: #c9f7e1; background: rgba(22, 185, 107, 0.1); border: 1px solid rgba(78, 240, 168, 0.32); }
.fair svg { width: 28px; height: 28px; flex: none; color: var(--emerald); }
@media (min-width: 760px) {
  .flasks { gap: 10px 30px; }
  .flasks img { width: 110px; height: 110px; }
  .loot-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) { .loot-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------------------- gallery */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.gallery-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 280px); column-gap: 18px; margin-top: 30px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gut) 20px; scroll-padding: 0 var(--gut);
  scrollbar-width: thin; scrollbar-color: rgba(231, 192, 106, 0.4) transparent; overscroll-behavior-x: contain;
}
@media (min-width: 1244px) { .gallery-strip { padding-left: calc((100vw - var(--wrap)) / 2); padding-right: calc((100vw - var(--wrap)) / 2); scroll-padding: 0 calc((100vw - var(--wrap)) / 2); } }
.gallery-strip li { scroll-snap-align: start; }
.gallery-strip img { width: 100%; border-radius: 22px; border: 5px solid #120a12; box-shadow: 0 0 0 1.5px rgba(255, 226, 170, 0.28), 0 16px 34px rgba(0, 0, 0, 0.5); background: #1a1016; }

/* ---------------------------------------------------------------- FAQ */
.faq-grid { display: grid; gap: 28px; margin-top: 30px; }
.faq-list { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: linear-gradient(180deg, var(--glass-hi), var(--glass)); border: 1.5px solid var(--edge); }
.faq summary { cursor: pointer; list-style: none; padding: 15px 52px 15px 18px; font-weight: 600; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 14px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--brass);
  -webkit-mask: 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='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
  mask: 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='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 18px 16px; color: var(--muted); }
.faq-help { padding: 24px; border-radius: 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; background: linear-gradient(180deg, rgba(34, 203, 189, 0.16), var(--glass)); border: 1.5px solid rgba(34, 203, 189, 0.35); align-self: start; }
.faq-help img { width: 110px; height: 110px; margin: -6px 0 2px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)); }
.faq-help h3 { font-size: 24px; }
.faq-help p { color: var(--muted); }
.btn-mail { margin-top: 8px; }
.btn-mail small { font-size: 12.5px; }
@media (min-width: 1040px) { .faq-grid { grid-template-columns: 1fr 320px; gap: 36px; } }

/* ---------------------------------------------------------------- closing call */
.close { padding: 80px 0 90px; text-align: center; background: radial-gradient(ellipse 50% 60% at 50% 55%, rgba(255, 170, 80, 0.14), transparent 70%); }
.close-inner { display: flex; flex-direction: column; align-items: center; }
.close-icon { width: 120px; height: 120px; border-radius: 30px; margin-bottom: 18px; box-shadow: 0 0 0 2px var(--edge), 0 16px 34px rgba(0, 0, 0, 0.5); }
.close .h2 { margin: 0 auto; max-width: none; }
.close .lead { margin: 14px auto 28px; }

/* ---------------------------------------------------------------- more games */
.game-list { display: grid; gap: 20px; margin-top: 32px; }
.game-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: linear-gradient(180deg, var(--glass-hi), var(--glass)); border: 1.5px solid var(--edge); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }
.game-art { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.game-card:hover .game-art img { transform: scale(1.04); }
.game-plaque { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-head { display: flex; align-items: center; gap: 12px; }
.game-icon { width: 52px; height: 52px; border-radius: 14px; flex: none; box-shadow: 0 0 0 1.5px var(--edge); }
.game-name { font-size: 22px; line-height: 1.1; }
.game-name .amp { color: var(--brass); }
.game-sub { display: block; font-size: 13.5px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.game-line { color: var(--muted); font-size: 15.5px; }
.game-get { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.game-stores { display: flex; flex-wrap: wrap; gap: 8px; }
.game-stores .store { min-width: 0; padding: 6px 12px 6px 10px; }
.game-stores .store > span { font-size: 15px; }
.game-site { font-size: 14px; color: var(--dim); text-decoration: none; }
.game-site b { color: var(--brass); font-weight: 600; }
.game-site:hover b { text-decoration: underline; }
@media (min-width: 760px) { .game-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .game-list { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------------------- footer */
.foot { padding: 34px 0 calc(34px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--edge); background: rgba(10, 5, 10, 0.6); }
.foot-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.foot nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--text); text-decoration: underline; }
.fine { color: var(--dim); font-size: 14px; max-width: 60ch; }
@media (min-width: 900px) { .foot-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: left; } .fine { flex-basis: 100%; max-width: none; } }
