/*
 * Wolf & Mafia website. Same comic-book kit as the app (src/styles/app.css):
 * night navy, crown gold, blood red, paper panels with ink outlines and
 * hard offset shadows. Plain CSS, self-hosted fonts, no external requests.
 */

/* ── Fonts ─────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Bangers';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/bangers-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations'),
    url('fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Caveat Variable';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/caveat-latin-wght-normal.woff2') format('woff2-variations'),
    url('fonts/caveat-latin-wght-normal.woff2') format('woff2');
}

/* Logo: Pirata One ("Wolf") and Limelight ("MAFIA"), same as the app. */
@font-face {
  font-family: 'WM Logo Wolf';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('fonts/pirata-one-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'WM Logo Mafia';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('fonts/limelight-latin-400-normal.woff2') format('woff2');
}

/* ── Tokens ────────────────────────────────────────────────────────────── */

:root {
  --night: #0a0f1e;
  --night-2: #151c30;
  --night-3: #232c45;
  --ink: #070a14;
  --paper: #f3efe8;
  --paper-2: #fffdf9;
  --text: #f3efe8;
  --text-muted: #a3a9bd;
  --accent: #e8b84a;
  --red: #d7263d;
  --red-ink: #8b0000;
  --blood: #8b0000;
  --green: #12995a;
  --blue: #2f6fed;
  --orange: #f07a12;
  --purple: #8b5cf6;
  --yellow: #facc15;
  --muted-ink: #4a5068;
  --body-ink: #3b4056;
  --edge: #3a4560;

  --font-body: 'Bricolage Grotesque Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat Variable', 'Bradley Hand', 'Comic Sans MS', cursive;
  --font-comic: 'Bangers', Impact, 'Arial Black', sans-serif;

  --line: 3px;
  --radius: 14px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --max: 1080px;
  --header-h: 64px;
  color-scheme: dark;
}

/* ── Base ──────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--night);
  /* Faint halftone, like cheap comic paper at night. */
  background-image: radial-gradient(rgb(232 184 74 / 0.06) 1px, transparent 1.5px);
  background-size: 14px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.panel :focus-visible {
  outline-color: var(--blue);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
}

.wrap--narrow {
  max-width: 760px;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
  /* Tilted tape strips and panel shadows must never cause sideways scroll. */
  overflow-x: hidden;
  overflow-x: clip;
}

/* ── Type ──────────────────────────────────────────────────────────────── */

.comic {
  font-family: var(--font-comic);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.h1,
.h2 {
  margin: 0;
  font-family: var(--font-comic);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.h1 {
  font-size: clamp(2.4rem, 9vw, 3.6rem);
}

.h2 {
  font-size: clamp(2rem, 7vw, 3rem);
}

.h3 {
  margin: 0 0 6px;
  font: 800 1.25rem/1.15 var(--font-body);
}

.kicker {
  margin: 0;
  font: 700 1.5rem/1.05 var(--font-hand);
  color: var(--accent);
}

.panel .kicker {
  color: #b4400c;
}

.kicker--red,
.panel .kicker--red {
  color: var(--red-ink);
}

.lead {
  margin: 0;
  font-size: 1.12rem;
  color: var(--text);
}

.muted {
  color: var(--text-muted);
}

.hand {
  font-family: var(--font-hand);
  font-weight: 700;
}

.section {
  position: relative;
  padding-block: 56px;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}

.section__head p:not(.kicker) {
  margin: 4px 0 0;
  max-width: 60ch;
  color: var(--text-muted);
}

/* ── Logo ──────────────────────────────────────────────────────────────── */

.logo {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.05em 0.22em;
  line-height: 1;
  font-size: clamp(3rem, 15vw, 6.2rem);
  font-weight: 400;
}

.logo__wolf,
.logo__mafia {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.04em 0.06em;
}

.logo__wolf {
  font-family: 'WM Logo Wolf', serif;
  font-size: 1.15em;
  background-image: linear-gradient(#ffffff 0 45%, #cfc6b8 55% 100%);
  filter: drop-shadow(0.045em 0.045em 0 #8b0000) drop-shadow(0.03em 0.03em 0 #070a14);
}

.logo__and {
  font: 700 0.55em Georgia, 'Times New Roman', serif;
  color: #e8b84a;
  -webkit-text-stroke: 0.07em #070a14;
  paint-order: stroke fill;
  text-shadow: 0.05em 0.05em 0 #070a14;
}

.logo__mafia {
  font-family: 'WM Logo Mafia', serif;
  background-image: linear-gradient(#ff4d5e 0 45%, #b5122a 55% 100%);
  filter: drop-shadow(0.045em 0.045em 0 #070a14) drop-shadow(0.03em 0.03em 0 #e8b84a);
}

.logo--sm {
  font-size: 1.3rem;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.25em;
}

/* ── Header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--night);
  padding-top: env(safe-area-inset-top);
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 4px;
  background: linear-gradient(to bottom, rgb(139 0 0 / 0.95), rgb(160 0 0 / 0.85) 50%, rgb(139 0 0 / 0.75));
  box-shadow: 0 2px 8px rgb(139 0 0 / 0.6), 0 1px 3px rgb(139 0 0 / 0.9);
  animation: blood-border 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes blood-border {
  0%,
  100% {
    opacity: 0.85;
    height: 3px;
  }
  50% {
    opacity: 1;
    height: 5px;
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-nav {
  display: none;
  gap: 4px;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
}

@media (max-width: 400px) {
  .brand .logo--sm {
    display: none;
  }
}

/* Language switch: a tiny segmented control. */
.lang {
  display: inline-flex;
  flex: none;
  border: 2.5px solid var(--edge);
  border-radius: 10px;
  overflow: hidden;
}

.lang button {
  min-width: 40px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: 800 0.85rem/1 var(--font-body);
  cursor: pointer;
}

.lang button + button {
  border-left: 2.5px solid var(--edge);
}

.lang button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--ink);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-shadow: var(--red);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 5px 5px 0 var(--btn-shadow);
  font: 800 1.05rem/1.1 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease);
}

.btn .icon {
  width: 22px;
  height: 22px;
}

@media (hover: hover) {
  .btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 6px 6px 0 var(--btn-shadow);
  }
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 1px 1px 0 var(--btn-shadow);
}

.btn--primary {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  --btn-shadow: var(--paper);
}

.btn--danger {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  --btn-shadow: var(--paper);
}

.btn--sm {
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.95rem;
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--btn-shadow);
}

.btn--block {
  display: flex;
  width: 100%;
}

.panel .btn {
  --btn-shadow: var(--ink);
}

/* Store buttons: two lines, logo left. */
.store {
  justify-content: flex-start;
  min-width: 210px;
  min-height: 64px;
  text-align: left;
}

.store .icon {
  width: 30px;
  height: 30px;
}

.store small {
  display: block;
  font: 600 0.78rem/1.1 var(--font-body);
  opacity: 0.8;
}

.store span {
  font-size: 1.15rem;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

@media (max-width: 480px) {
  .stores .store {
    width: 100%;
  }
}

/* ── Panel ─────────────────────────────────────────────────────────────── */

.panel {
  --panel-shadow: var(--red);
  position: relative;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--panel-shadow);
  color: var(--ink);
  padding: 20px;
  transform: rotate(var(--tilt, 0deg));
}

.panel p {
  color: var(--body-ink);
}

.panel a:not(.btn) {
  color: var(--red-ink);
}

.panel--ink {
  background: var(--night-2);
  color: var(--paper);
}

.panel--ink p {
  color: var(--text);
}

.panel--ink a:not(.btn) {
  color: var(--accent);
}

.shadow--red {
  --panel-shadow: var(--red);
}

.shadow--green {
  --panel-shadow: var(--green);
}

.shadow--blue {
  --panel-shadow: var(--blue);
}

.shadow--orange {
  --panel-shadow: var(--orange);
}

.shadow--paper {
  --panel-shadow: var(--paper);
}

.shadow--ink {
  --panel-shadow: var(--ink);
}

/* ── Stamp / sticker / tape ────────────────────────────────────────────── */

.stamp {
  --stamp-bg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 2px;
  border: 3px solid currentColor;
  border-radius: 10px;
  background: var(--stamp-bg);
  box-shadow: inset 0 0 0 2px var(--stamp-bg), inset 0 0 0 3.5px currentColor;
  font: 400 1.2rem/1 var(--font-comic);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(var(--tilt, -6deg));
}

.stamp--sm {
  padding: 3px 8px 1px;
  font-size: 0.9rem;
  border-width: 2.5px;
  border-radius: 8px;
}

.stamp--lg {
  padding: 8px 16px 4px;
  font-size: 1.7rem;
  border-width: 4px;
}

.stamp--float {
  position: absolute;
  right: 16px;
  top: -18px;
  z-index: 2;
}

.c-red {
  color: var(--red-ink);
}

.c-green {
  color: #0b7a47;
}

.c-blue {
  color: #1f56c9;
}

.c-purple {
  color: #6d3fd8;
}

.c-orange {
  color: #b45309;
}

.sticker {
  --sticker-bg: var(--accent);
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background: var(--sticker-bg);
  box-shadow: 3px 3px 0 var(--ink);
  font: 400 1.6rem/1 var(--font-comic);
  color: var(--ink);
  transform: rotate(var(--tilt, -8deg));
}

.sticker--red {
  --sticker-bg: var(--red);
  color: #fff;
}

.sticker--paper {
  --sticker-bg: var(--paper);
}

.tape {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 10px 0 6px;
  border-block: var(--line) solid var(--ink);
  background: var(--accent);
  color: var(--ink);
  transform: rotate(var(--tilt, -1.5deg));
  margin-inline: -8px;
}

.tape__track {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  font: 400 clamp(1.2rem, 4.6vw, 1.7rem) / 1 var(--font-comic);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tape__track span {
  display: inline-flex;
  align-items: center;
}

.tape__sep {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 0.7em 4px;
  background: var(--red);
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}

.tape--red {
  background: var(--red);
  color: #fff;
}

.tape--paper {
  background: var(--paper);
}

.tape-piece {
  position: absolute;
  z-index: 2;
  width: 84px;
  height: 26px;
  background: rgb(255 238 186 / 0.85);
  border-inline: 2px dashed rgb(13 16 32 / 0.25);
  box-shadow: 0 1px 0 rgb(13 16 32 / 0.2);
  pointer-events: none;
}

.tape-piece--top {
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
}

.tape-piece--tl {
  top: -6px;
  left: -16px;
  transform: rotate(-35deg);
}

.tape-piece--tr {
  top: -6px;
  right: -16px;
  transform: rotate(35deg);
}

/* ── Blood drips (same as the app's .blood-overlay) ────────────────────── */

.blood-overlay {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  height: calc(100% - var(--header-h));
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
}

.blood-overlay .drop {
  position: absolute;
  top: -30px;
  background: var(--blood);
  border-radius: 50%;
  animation-name: drip;
  animation-timing-function: cubic-bezier(1, 0, 0.91, 0.19);
  animation-iteration-count: infinite;
  filter: blur(1px) drop-shadow(0 0 3px rgb(139 0 0 / 0.8));
  box-shadow: inset 0 0 8px rgb(0 0 0 / 0.4), 0 0 4px rgb(139 0 0 / 0.6);
}

.blood-overlay .drop::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 30px solid var(--blood);
  top: -22px;
  filter: blur(0.5px);
  opacity: 0.9;
}

.blood-overlay .drop:nth-child(1) { left: 8%; width: 10px; height: 10px; animation-duration: 4s; animation-delay: 0s; }
.blood-overlay .drop:nth-child(1)::before { border-left-width: 5px; border-right-width: 5px; border-bottom-width: 15px; top: -12px; }
.blood-overlay .drop:nth-child(2) { left: 18%; width: 14px; height: 14px; animation-duration: 5s; animation-delay: 1s; }
.blood-overlay .drop:nth-child(2)::before { border-left-width: 7px; border-right-width: 7px; border-bottom-width: 21px; top: -16px; }
.blood-overlay .drop:nth-child(3) { left: 32%; width: 8px; height: 8px; animation-duration: 4.5s; animation-delay: 0.5s; }
.blood-overlay .drop:nth-child(3)::before { border-left-width: 4px; border-right-width: 4px; border-bottom-width: 12px; top: -10px; }
.blood-overlay .drop:nth-child(4) { left: 48%; width: 16px; height: 16px; animation-duration: 5.5s; animation-delay: 1.5s; }
.blood-overlay .drop:nth-child(4)::before { border-left-width: 8px; border-right-width: 8px; border-bottom-width: 24px; top: -18px; }
.blood-overlay .drop:nth-child(5) { left: 62%; width: 12px; height: 12px; animation-duration: 4.8s; animation-delay: 0.8s; }
.blood-overlay .drop:nth-child(5)::before { border-left-width: 6px; border-right-width: 6px; border-bottom-width: 18px; top: -14px; }
.blood-overlay .drop:nth-child(6) { left: 75%; width: 13px; height: 13px; animation-duration: 5.2s; animation-delay: 1.2s; }
.blood-overlay .drop:nth-child(6)::before { border-left-width: 6.5px; border-right-width: 6.5px; border-bottom-width: 19.5px; top: -15px; }
.blood-overlay .drop:nth-child(7) { left: 88%; width: 9px; height: 9px; animation-duration: 4.3s; animation-delay: 0.3s; }
.blood-overlay .drop:nth-child(7)::before { border-left-width: 4.5px; border-right-width: 4.5px; border-bottom-width: 13.5px; top: -11px; }

@keyframes drip {
  to {
    top: 100vh;
  }
}

/* Fewer drops on small phones so text stays readable. */
@media (max-width: 600px) {
  .blood-overlay .drop:nth-child(2),
  .blood-overlay .drop:nth-child(4),
  .blood-overlay .drop:nth-child(6) {
    display: none;
  }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 36px 0 44px;
  text-align: center;
}

.hero__art {
  width: clamp(150px, 38vw, 240px);
  height: auto;
  margin: 0 auto 6px;
  filter: drop-shadow(0 0 15px rgb(255 255 255 / 0.22));
}

.hero__sub {
  margin: 8px 0 0;
  font: 700 clamp(1.5rem, 5.5vw, 2rem) / 1.1 var(--font-hand);
  color: var(--text-muted);
}

.hero__lead {
  max-width: 40em;
  margin: 22px auto 0;
  font-size: 1.12rem;
}

.hero__stamp {
  margin-top: 14px;
  --tilt: -5deg;
  color: var(--red-ink);
}

.hero .stores {
  justify-content: center;
  margin-top: 26px;
}

.hero__note {
  margin: 14px 0 0;
  font: 700 1.25rem/1.2 var(--font-hand);
  color: var(--text-muted);
}

/* Join card on the home page (?config= / ?code=). */
.join-card {
  max-width: 460px;
  margin: 26px auto 10px;
  text-align: center;
}

.join-card .h3 {
  font-family: var(--font-comic);
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 10px 0 16px;
}

.chip {
  display: inline-block;
  padding: 4px 12px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 2px 2px 0 var(--ink);
}

.code-box {
  margin: 8px 0 18px;
  padding: 12px;
  border: var(--line) dashed var(--ink);
  border-radius: 12px;
  background: var(--paper-2);
  font: 700 1.1rem/1.3 ui-monospace, Menlo, Consolas, monospace;
  color: var(--ink);
  word-break: break-all;
}

/* ── Comic strip: how a game goes ──────────────────────────────────────── */

.strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 760px) {
  .strip {
    grid-template-columns: repeat(6, 1fr);
    gap: 28px 24px;
  }
  .strip > :nth-child(1) { grid-column: span 3; }
  .strip > :nth-child(2) { grid-column: span 3; }
  .strip > :nth-child(3) { grid-column: span 4; }
  .strip > :nth-child(4) { grid-column: span 2; }
  .strip > :nth-child(5) { grid-column: span 6; }
}

.frame {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.frame__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.frame__title {
  margin: 0;
  font: 400 1.7rem/1 var(--font-comic);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.frame p {
  margin: 0;
}

.frame ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--body-ink);
}

.frame li + li {
  margin-top: 4px;
}

.panel--ink ul {
  color: var(--text);
}

/* Speech bubble with a read-aloud line. */
.bubble {
  position: relative;
  margin: 6px 0 14px;
  padding: 12px 16px;
  border: var(--line) solid var(--ink);
  border-radius: 18px;
  background: var(--paper-2);
  color: var(--ink);
  font: 700 1.45rem/1.15 var(--font-hand);
}

.bubble::after {
  content: '';
  position: absolute;
  left: 28px;
  bottom: -16px;
  width: 22px;
  height: 22px;
  background: var(--paper-2);
  border-right: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
  transform: skewX(30deg) rotate(45deg);
}

.bubble small {
  display: block;
  margin-bottom: 2px;
  font: 800 0.72rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-ink);
}

/* Answer flash: "a wolf" / "not a wolf". */
.answers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.answers .stamp {
  --stamp-bg: var(--paper-2);
}

/* ── Two ways to play ──────────────────────────────────────────────────── */

.modes {
  display: grid;
  gap: 30px;
}

@media (min-width: 760px) {
  .modes {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
}

.mode {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 26px;
}

.mode__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-4deg);
}

.mode__icon .icon {
  width: 30px;
  height: 30px;
}

.mode h3 {
  margin: 0;
  font: 400 2rem/1 var(--font-comic);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mode p {
  margin: 0;
}

/* Small mock of an app screen inside a panel. */
.mock {
  margin-top: auto;
  padding: 14px;
  border: var(--line) solid var(--ink);
  border-radius: 16px;
  background: var(--night);
  color: var(--text);
  text-align: center;
}

.mock .mock__label {
  margin: 0;
  font: 700 1.2rem/1 var(--font-hand);
  color: var(--accent);
}

.mock .mock__big {
  margin: 4px 0 10px;
  font: 400 2.1rem/1 var(--font-comic);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper);
}

.mock__btn {
  display: block;
  padding: 10px;
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  box-shadow: 3px 3px 0 var(--paper);
  font-weight: 800;
}

.qr {
  width: 112px;
  height: 112px;
  margin: 6px auto 10px;
  padding: 6px;
  border: var(--line) solid var(--ink);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

/* ── Characters ────────────────────────────────────────────────────────── */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter {
  min-height: 44px;
  padding: 0 16px;
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  background: var(--night-2);
  color: var(--text);
  font: 800 0.98rem/1 var(--font-body);
  cursor: pointer;
}

.filter[aria-pressed='true'] {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--paper);
}

.filter b {
  font-weight: 800;
  opacity: 0.7;
  margin-left: 4px;
}

.roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) {
  .roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .roles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.role {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--team-shadow, var(--ink));
}

.role__text {
  min-width: 0;
}

.role__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  font: 800 1.05rem/1.2 var(--font-body);
}

.role__short {
  margin: 2px 0 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--body-ink);
}

.role__team {
  font: 700 1.05rem/1 var(--font-hand);
  color: var(--muted-ink);
}

.emblem {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: var(--line) solid var(--ink);
  border-radius: 50% 50% 46% 46% / 42% 42% 58% 58%;
  background: var(--team);
  color: var(--team-fg, #fff);
  box-shadow: 2px 2px 0 var(--ink);
}

.emblem .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.4;
}

.team--wolves { --team: var(--red); --team-fg: var(--ink); --team-shadow: var(--red); }
.team--village { --team: var(--green); --team-fg: #fff; --team-shadow: var(--green); }
.team--village-alt { --team: var(--blue); --team-fg: #fff; --team-shadow: var(--blue); }
.team--solo { --team: var(--orange); --team-fg: var(--ink); --team-shadow: var(--orange); }
.team--solo-alt { --team: var(--purple); --team-fg: #fff; --team-shadow: var(--purple); }

.roles-more {
  display: none;
  margin-top: 22px;
}

@media (max-width: 559px) {
  .roles--collapsed > li:nth-child(n + 9) {
    display: none;
  }
  .roles--collapsed + .roles-more {
    display: flex;
  }
}

.roles-note {
  margin: 22px 0 0;
  font: 700 1.3rem/1.25 var(--font-hand);
  color: var(--text-muted);
}

/* Interactions: a paper note with handwritten arrows. */
.combos {
  margin-top: 40px;
}

.combos ul {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .combos ul {
    grid-template-columns: 1fr 1fr;
    gap: 12px 28px;
  }
}

.combos li {
  position: relative;
  padding-left: 30px;
  color: var(--body-ink);
}

.combos li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border: 2.5px solid var(--ink);
  background: var(--red);
  transform: rotate(45deg);
}

.combos b {
  color: var(--ink);
}

/* ── Also in the box ───────────────────────────────────────────────────── */

.extras {
  display: grid;
  gap: 26px;
}

@media (min-width: 760px) {
  .extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.extra {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.extra p {
  margin: 0;
}

.extra .h3 {
  margin-bottom: 4px;
}

.extra__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--accent);
}

.extra__icon .icon {
  width: 24px;
  height: 24px;
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.langs li {
  padding: 2px 8px;
  border: 2px solid var(--edge);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

/* ── Free vs Pro ───────────────────────────────────────────────────────── */

.plans {
  display: grid;
  gap: 34px;
  align-items: stretch;
}

@media (min-width: 760px) {
  .plans {
    grid-template-columns: 1fr 1.15fr;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 28px;
}

.plan h3 {
  margin: 0;
  font: 400 2.2rem/1 var(--font-comic);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.plan li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 2px dashed rgb(11 17 32 / 0.25);
  color: var(--body-ink);
}

.panel--ink.plan li {
  border-top-color: rgb(241 245 249 / 0.2);
  color: var(--text);
}

.plan li b {
  color: inherit;
}

.panel .plan li b,
.plan.panel li b {
  color: var(--ink);
}

.panel--ink.plan li b {
  color: var(--paper);
}

.tick {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 2.5px solid currentColor;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.8rem;
  line-height: 1;
}

.tick::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: translateY(-1px) rotate(-45deg);
}

.tick--no::after {
  width: 10px;
  height: 0;
  border-left: 0;
  transform: none;
}

/* ── Download ──────────────────────────────────────────────────────────── */

.download {
  text-align: center;
}

.download .section__head {
  align-items: center;
}

.download .section__head p:not(.kicker) {
  margin-inline: auto;
}

/* ── Simple pages (privacy, bug report, join) ──────────────────────────── */

.page {
  padding-block: 40px 64px;
}

.page__head {
  margin-bottom: 28px;
}

.page__head p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.prose section h2 {
  margin: 0 0 8px;
  font: 400 1.6rem/1.05 var(--font-comic);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.prose p,
.prose li {
  color: var(--body-ink);
}

.prose p {
  margin: 0;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 10px;
}

.prose ul {
  margin: 0;
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 6px;
}

.prose strong {
  color: var(--ink);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

.center-card {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: var(--line) solid var(--night-3);
  background: var(--night);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer p {
  margin: 0;
}

.site-footer__credit {
  flex-basis: 100%;
  order: 1;
  font-size: 0.85rem;
}

.site-footer .site-footer__credit a {
  display: inline;
  min-height: 0;
}

/* ── Motion ────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .blood-overlay {
    display: none;
  }
  .site-header::after {
    animation: none;
    height: 4px;
  }
  .btn {
    transition: none;
  }
}

.prose p:empty {
  display: none;
}

/* ── Updates by sound (killer feature) ─────────────────────────────── */
.sound__panel { position: relative; }
.sound__demo { overflow: hidden; }
.sound__demo {
  display: flex; align-items: center; justify-content: center; gap: clamp(10px, 4vw, 34px);
  margin: 8px 0 22px; min-height: 150px;
}
.sound__phone {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 80px; border-radius: 10px;
  background: linear-gradient(180deg, #232c45, #151c30);
  border: 3px solid var(--ink, #070a14); box-shadow: 4px 4px 0 var(--ink, #070a14);
}
.sound__phone::before {
  content: ''; position: absolute; inset: 7px 5px 12px; border-radius: 4px;
  background: linear-gradient(180deg, #3a4f86, #1f2a4a);
}
.sound__phone > * { position: relative; }
.sound__phone span { width: 18px; height: 18px; border-radius: 50%; background: #2fa66b; border: 2px solid var(--ink, #070a14); animation: sound-ping 3s ease-out infinite; }
.sound__phone--dead span { background: linear-gradient(45deg, transparent 42%, #fff 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, #fff 42% 58%, transparent 58%), #d7263d; }
.sound__phone--narrator { width: 66px; height: 116px; box-shadow: 5px 5px 0 #d7263d, 0 0 28px rgba(232, 184, 74, 0.35); }
.sound__phone--narrator .icon { width: 30px; height: 30px; color: var(--accent, #e8b84a); }
.sound__players { display: grid; gap: 10px; }
.sound__players .sound__phone { width: 38px; height: 62px; }
.sound__players .sound__phone:nth-child(2) span { animation-delay: 0.15s; }
.sound__players .sound__phone:nth-child(3) span { animation-delay: 0.3s; }
.sound__waves { position: relative; width: clamp(70px, 22vw, 150px); height: 110px; }
.sound__waves i {
  position: absolute; left: -40px; top: 50%; width: 80px; height: 80px; margin-top: -40px;
  border-radius: 50%; border: 3px solid var(--accent, #e8b84a); border-left-color: transparent; border-bottom-color: transparent;
  transform: rotate(45deg) scale(0.4); opacity: 0;
  animation: sound-wave 3s ease-out infinite;
}
.sound__waves i:nth-child(2) { animation-delay: 0.35s; }
.sound__waves i:nth-child(3) { animation-delay: 0.7s; }
@keyframes sound-wave {
  0% { opacity: 0; transform: translateX(0) rotate(45deg) scale(0.4); }
  15% { opacity: 1; }
  70% { opacity: 0; transform: translateX(clamp(60px, 18vw, 130px)) rotate(45deg) scale(1.6); }
  100% { opacity: 0; }
}
@keyframes sound-ping { 0%, 55% { transform: scale(0.6); opacity: 0.35; } 65% { transform: scale(1.25); opacity: 1; } 80%, 100% { transform: scale(1); opacity: 1; } }
.sound__lead { font-size: 1.12rem; line-height: 1.5; margin: 0 0 14px; }
.sound__steps { margin: 0 0 14px; padding-left: 1.3em; display: grid; gap: 8px; }
.sound__steps b { color: var(--accent, #e8b84a); }
.sound__note { margin: 0; font-size: 0.92rem; opacity: 0.8; }
@media (prefers-reduced-motion: reduce) {
  .sound__waves i, .sound__phone span { animation: none; opacity: 1; }
  .sound__waves i { transform: rotate(45deg) scale(1); left: 10px; }
}

/* ── Liquid blood drips (same as the app: src/app/Blood.tsx, src/styles/blood.css) ── */
.site-header::after { display: none; }
.blood-overlay .drop { display: none; }
.wm-blood-drips {
  --blood-dark: #4e0006;
  --blood: #8f000d;
  --blood-bright: #c8141f;
  position: relative;
  width: 100%;
  height: 0;
  pointer-events: none;
}

.wm-blood-drips__liquid {
  position: absolute;
  inset: 0 0 auto 0;
  height: 90px;
}

.wm-blood-drips__band {
  position: absolute;
  inset: 0 -12px auto -12px;
  height: var(--band, 5px);
  background: linear-gradient(to bottom, var(--blood-dark), var(--blood) 60%, var(--blood-bright));
}

.wm-blood-drip {
  position: absolute;
  top: calc(var(--band, 5px) - 2px);
  width: var(--w);
  margin-left: calc(var(--w) / -2);
  animation-name: wm-blood-grow;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.wm-blood-drip__stem {
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: var(--len);
  border-radius: 0 0 50% 50%;
  background: linear-gradient(to right, var(--blood-dark), var(--blood) 45%, var(--blood-bright) 60%, var(--blood) 80%);
  transform-origin: top;
  transform: scaleY(var(--s, 0.3));
  animation: inherit;
  animation-name: wm-blood-stem;
}

.wm-blood-drip__bulb {
  position: absolute;
  top: calc(var(--w) / -2);
  left: 0;
  width: var(--w);
  height: calc(var(--w) * 1.15);
  border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
  background: radial-gradient(circle at 35% 35%, #ff6b6b 0 10%, var(--blood-bright) 22%, var(--blood) 55%, var(--blood-dark) 100%);
  animation: inherit;
  animation-name: wm-blood-bulb;
}

/* The drip grows slowly, lets a drop go at 72%, then pulls back. */
@keyframes wm-blood-stem {
  0% { transform: scaleY(0.2); }
  70% { transform: scaleY(1); }
  74% { transform: scaleY(0.62); }
  100% { transform: scaleY(0.2); }
}
@keyframes wm-blood-bulb {
  0% { transform: translateY(calc(var(--len) * 0.2)) scale(0.8); }
  70% { transform: translateY(var(--len)) scale(1.15); }
  74% { transform: translateY(calc(var(--len) * 0.62)) scale(0.85); }
  100% { transform: translateY(calc(var(--len) * 0.2)) scale(0.8); }
}
@keyframes wm-blood-grow { from { opacity: 1; } to { opacity: 1; } }

/* Falling drop: hidden at the tip until the release, then falls with gravity. */
.wm-blood-fall {
  position: absolute;
  top: calc(var(--band, 5px) - 2px);
  width: var(--w);
  height: calc(var(--w) * 1.4);
  margin-left: calc(var(--w) / -2);
  opacity: 0;
  animation-name: wm-blood-fall;
  animation-iteration-count: infinite;
}
.wm-blood-fall > span {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 38% 62%, #ff7070 0 9%, var(--blood-bright) 20%, var(--blood) 55%, var(--blood-dark) 100%);
  clip-path: polygon(50% 0, 100% 62%, 100% 100%, 0 100%, 0 62%);
}
.wm-blood-fall > span::before {
  content: '';
  position: absolute;
  inset: 22% 0 0 0;
  border-radius: 50%;
  background: inherit;
}
@keyframes wm-blood-fall {
  0%, 71% { opacity: 0; transform: translateY(var(--len)); animation-timing-function: linear; }
  72% { opacity: 1; transform: translateY(var(--len)); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  100% { opacity: 0.9; transform: translateY(var(--fall, 105vh)); }
}

@media (prefers-reduced-motion: reduce) {
  .wm-blood-drip,
  .wm-blood-drip__stem,
  .wm-blood-drip__bulb { animation: none; }
  .wm-blood-drip__stem { transform: scaleY(0.7); }
  .wm-blood-drip__bulb { transform: translateY(calc(var(--len) * 0.7)); }
  .wm-blood-fall { display: none; }
}

/* ── Support page: FAQ ─────────────────────────────────────────────── */
.faqs { display: grid; gap: 14px; }
.faq { padding: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 800; font-size: 1.08rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: var(--ink); border: 2.5px solid var(--ink); font: 900 1.1rem/1 system-ui;
  transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0; padding: 0 20px 20px; line-height: 1.55; }
