/* HachaMeccha REVERSI website. Colours follow the game UI: paper cards with a navy rim,
   gold and blue chunky buttons, a sky backdrop and the green board. */
:root {
  --ink: #1d3a4e;
  --ink-2: #3a5a6e;
  --muted: #5f7d8f;
  --sky: #a9defa;
  --sky-2: #e6f6ff;
  --paper: #ffffff;
  --line: #d6e8f1;
  --gold: #ffd23f;
  --gold-2: #ffe982;
  --blue: #2f8cff;
  --blue-2: #66adff;
  --red: #ef3b43;
  --red-2: #ff7d6e;
  --board: #1f9a63;
  --board-2: #157a4c;
  --stone: #efe6cf;
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --outline: 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink),
    2.2px 2.2px 0 var(--ink), -2.2px 2.2px 0 var(--ink), 2.2px -2.2px 0 var(--ink), -2.2px -2.2px 0 var(--ink);
  --pop: 0 6px 0 var(--ink);
  --wrap: 1180px;
}
html[data-lang="ko"] { --font: "M PLUS Rounded 1c", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; }
html[data-lang="zh_CN"] { --font: "Noto Sans SC", "M PLUS Rounded 1c", "PingFang SC", "Microsoft YaHei", sans-serif; }
html[data-lang="zh_TW"] { --font: "Noto Sans TC", "M PLUS Rounded 1c", "PingFang TC", "Microsoft JhengHei", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink);
  background: var(--sky-2);
  line-height: 1.7;
  overflow-x: hidden;
}
/* Soft clouds drifting behind every section. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 14% at 12% 22%, rgba(255,255,255,.95), transparent 70%),
    radial-gradient(30% 12% at 82% 34%, rgba(255,255,255,.9), transparent 70%),
    radial-gradient(42% 15% at 30% 74%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(34% 13% at 90% 86%, rgba(255,255,255,.9), transparent 70%),
    linear-gradient(180deg, #bfe8ff 0%, #e6f6ff 55%, #f4fbff 100%);
}
img { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.3; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.center { text-align: center; }

/* Headings drawn like the in-game titles: white letters, navy rim. */
.section-title {
  margin: 0 0 22px;
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 900;
  color: #fff;
  letter-spacing: .01em;
  text-shadow: var(--outline), 0 8px 0 rgba(29,58,78,.22);
  text-wrap: balance;
  word-break: auto-phrase;
}
.title-line { display: block; }
.lead { max-width: 760px; margin: 0 auto 34px; font-size: 17px; color: var(--ink-2); }
.lead.center { margin-inline: auto; }

/* Buttons */
.btn {
  --face: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--face);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); filter: brightness(1.04); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn:focus-visible, .shot:focus-visible, .orb-button:focus-visible, .cell:focus-visible, .lang-toggle:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-gold { --face: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, #f5b81b); }
.btn-blue { --face: linear-gradient(180deg, var(--blue-2), var(--blue) 60%, #1f6fdb); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.18); }
.btn-red { --face: linear-gradient(180deg, var(--red-2), var(--red) 65%); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.18); }
.btn-small { padding: 9px 18px; font-size: 15px; box-shadow: 0 4px 0 var(--ink); }
.btn-small img { width: 26px; height: 26px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--ink); filter: grayscale(.4); }

/* Header */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 40;
  width: min(var(--wrap), 100% - 24px);
  margin: 12px auto -78px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 8px 6px 14px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 5px 0 rgba(29,58,78,.85);
}
.brand { display: block; line-height: 0; flex: none; }
.brand img { height: 46px; width: auto; transition: transform .2s; }
.brand:hover img { transform: rotate(-4deg) scale(1.05); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a, .footer-nav a { color: var(--ink); text-decoration: none; font-weight: 800; padding: 8px 16px; border-radius: 999px; }
.main-nav a:hover { background: #e6f4fb; }
.main-nav a[aria-current="page"] { background: var(--gold); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.lang-menu { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: 2px solid var(--ink); border-radius: 999px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 800; cursor: pointer;
}
.lang-toggle svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 10px);
  margin: 0; padding: 6px; list-style: none; min-width: 210px; max-height: 70vh; overflow: auto;
  background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--pop);
}
.lang-list a { display: block; padding: 8px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; }
.lang-list a:hover { background: #e6f4fb; }
.lang-list a[aria-current="true"] { background: var(--gold); }

/* Hero */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: grid;
  place-items: center;
  padding: 120px 20px 110px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: -3%;
  z-index: -2;
  background-size: cover; background-position: center;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1.04);
  transition: transform .4s ease-out;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 42% at 50% 46%, rgba(255,255,255,.55), rgba(255,255,255,0) 72%),
    linear-gradient(180deg, rgba(230,246,255,0) 70%, var(--sky-2) 100%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 14px; }
.hero-title { margin: 0; line-height: 0; }
.hero-logo {
  width: min(760px, 88vw); height: auto;
  filter: drop-shadow(0 10px 18px rgba(29,58,78,.35));
  animation: logo-in .9s cubic-bezier(.2,1.5,.4,1) both, bob 5s ease-in-out 1s infinite;
  cursor: pointer;
}
.hero-logo.is-bonk { animation: bonk .5s cubic-bezier(.3,1.6,.5,1); }
.tagline {
  margin: -6px 0 0;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 900; color: #fff;
  text-shadow: var(--outline), 0 6px 0 rgba(29,58,78,.25);
}
.status-pill {
  margin: 0;
  padding: 4px 16px;
  font-size: 14px; font-weight: 800;
  background: rgba(255,255,255,.92);
  border: 2px solid var(--ink); border-radius: 999px;
}
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.hero-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.float-disc {
  position: absolute; left: var(--x); top: var(--y);
  width: calc(86px * var(--s)); aspect-ratio: 1;
  pointer-events: auto; cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--r));
  animation: drift 6s ease-in-out var(--d) infinite alternate;
  filter: drop-shadow(0 10px 8px rgba(29,58,78,.28));
  -webkit-tap-highlight-color: transparent;
}
.float-disc img { width: 100%; height: 100%; display: block; user-select: none; }
.float-disc:hover img { transform: scale(1.08); transition: transform .15s; }
.poke-hint {
  position: absolute; z-index: 1; left: 50%; bottom: 26px; transform: translateX(-50%);
  margin: 0; padding: 6px 16px; font-size: 14px; font-weight: 800; white-space: nowrap;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink);
  animation: hint 2.4s ease-in-out infinite;
}
.flip-counter {
  position: absolute; right: max(16px, calc(50% - 590px)); top: 96px; z-index: 2;
  margin: 0; padding: 6px 14px; font-weight: 900; font-size: 15px;
  background: var(--gold); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink);
}
.flip-counter b { font-size: 20px; }
.flip-counter.is-bump { animation: bump .3s ease; }

/* About */
.about { padding: 70px 0 90px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 54px; align-items: center; }
.about-text p { font-size: 17px; line-height: 1.95; color: var(--ink-2); margin: 0 0 14px; }
.video-frame {
  margin: 0; aspect-ratio: 16 / 9; overflow: hidden;
  border: 4px solid var(--ink); border-radius: 26px; background: #0d1f2b;
  box-shadow: 0 8px 0 var(--ink), 0 30px 60px -30px rgba(29,58,78,.6);
}
.about .video-frame { transform: rotate(1.2deg); }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.ghost-row { display: flex; gap: 16px; margin-top: 22px; }
.poke-ghost { width: 76px; height: auto; cursor: pointer; animation: idle 3.2s ease-in-out infinite; transform-origin: 50% 100%; -webkit-tap-highlight-color: transparent; user-select: none; }
.poke-ghost:nth-child(2) { animation-delay: -.8s; }
.poke-ghost:nth-child(3) { animation-delay: -1.6s; }
.poke-ghost:nth-child(4) { animation-delay: -2.4s; }
.poke-ghost:hover { filter: brightness(1.05); }
.poke-ghost.is-hop { animation: hop .7s cubic-bezier(.3,1.4,.5,1); }

/* Features */
.features { padding: 90px 0; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.55) 20%, rgba(255,255,255,.55) 80%, rgba(255,255,255,0)); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: var(--paper); border: 3px solid var(--ink); border-radius: 24px; overflow: hidden;
  box-shadow: 0 7px 0 var(--ink);
  transition: transform .2s ease;
}
.feature-card:nth-child(odd):hover { transform: translateY(-5px) rotate(-.8deg); }
.feature-card:nth-child(even):hover { transform: translateY(-5px) rotate(.8deg); }
.feature-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--ink); }
.feature-card h3 { margin: 16px 20px 6px; font-size: 21px; font-weight: 900; }
.feature-card p { margin: 0 20px 22px; font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.charge-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); margin-top: 34px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 26px; overflow: hidden; box-shadow: 0 8px 0 var(--ink);
}
.charge-shot { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-right: 3px solid var(--ink); }
.charge-body { padding: 26px 30px 28px; align-self: center; }
.charge-body h3 { margin: 0 0 8px; font-size: 26px; font-weight: 900; }
.charge-body p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.85; color: var(--ink-2); text-wrap: pretty; word-break: auto-phrase; }
.charge-pad { display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; background: var(--sky-2); border: 2px dashed #9cc7dd; border-radius: 22px; }
.charge-button {
  position: relative; flex: none; width: 92px; height: 92px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.charge-button:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; }
.charge-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-track { fill: #fff; stroke: #cfe3ee; stroke-width: 8; }
.ring-fill { fill: none; stroke: var(--gold); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); }
.charge-button img { position: absolute; left: 16%; top: 16%; width: 68%; height: 68%; filter: drop-shadow(0 4px 2px rgba(0,0,0,.3)); pointer-events: none; transition: transform .15s; }
.charge-button.is-holding img { transform: scale(.92); }
.charge-button.is-full .ring-fill { stroke: #ffb800; filter: drop-shadow(0 0 5px #ffd23f); }
.charge-button.is-full img { animation: buzz .09s linear infinite; filter: drop-shadow(0 0 8px #ffd23f) drop-shadow(0 4px 2px rgba(0,0,0,.3)); }
.charge-button.is-gone img { opacity: 0; }
.charge-copy strong { display: block; font-size: 17px; font-weight: 900; }
.charge-copy span { display: block; font-size: 14px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; word-break: auto-phrase; }

/* Special orbs */
.specials {
  padding: 90px 0 100px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.18) 1.5px, transparent 0) 0 0 / 26px 26px,
    linear-gradient(160deg, #47a9ff, #2a6fdc 70%, #2457c4);
  color: #fff;
  border-block: 4px solid var(--ink);
}
.specials .lead { color: #eaf5ff; }
.orb-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.orb-card {
  position: relative; flex: 0 1 252px;
  background: var(--paper); color: var(--ink); text-align: center;
  border: 3px solid var(--ink); border-radius: 22px; padding: 16px 14px 20px;
  box-shadow: 0 6px 0 var(--ink);
}
.orb-button {
  width: 116px; height: 116px; padding: 6px; margin: -4px auto 0; display: block;
  border: 0; border-radius: 50%; background: radial-gradient(circle, #eaf6ff 0 55%, transparent 70%);
  cursor: pointer; transition: transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.orb-button img { width: 100%; height: 100%; display: block; user-select: none; }
.orb-button:hover { transform: scale(1.08) rotate(-10deg); }
.orb-button.is-launch img { animation: orb-launch .9s cubic-bezier(.3,.7,.4,1); }
.orb-card h3 { margin: 6px 0 6px; font-size: 18px; font-weight: 900; }
.orb-card p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }

/* Mini game */
.play {
  padding: 90px 0 80px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0,0,0,.08) 2px, transparent 0) 0 0 / 56px 56px,
    linear-gradient(0deg, rgba(0,0,0,.08) 2px, transparent 0) 0 0 / 56px 56px,
    radial-gradient(80% 60% at 50% 40%, #2ab877, var(--board) 60%, var(--board-2));
  border-bottom: 4px solid var(--ink);
}
.play .lead { color: #eafff3; }
.arena { position: relative; width: min(100%, 520px); margin: 0 auto; display: grid; user-select: none; -webkit-user-select: none; }
.aim-back, .aim-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.aim-back { z-index: 1; }
.aim-layer { z-index: 3; }
.launcher { position: relative; height: var(--band, clamp(84px, 22vw, 124px)); }
.launcher.is-you { cursor: grab; touch-action: none; -webkit-touch-callout: none; }
.launcher.is-you.is-dragging { cursor: grabbing; }
.player-ghost {
  position: absolute; z-index: 2; left: 50%; top: var(--ghost-y, 50%); width: var(--ghost, 84px); height: auto;
  translate: -50% -50%; transform-origin: 50% 100%; pointer-events: none; transition: filter .2s;
}
.player-ghost.is-hop { animation: hop .7s cubic-bezier(.3,1.4,.5,1); }
.player-ghost.is-shake { animation: shake .5s linear; }
.launcher.is-turn .player-ghost { filter: drop-shadow(0 0 7px rgba(255,236,140,.95)) drop-shadow(0 0 2px #fff); }
.score-pill, .stock-badge { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; }
.is-cpu .score-pill, .is-you .stock-badge { left: 0; }
.is-cpu .stock-badge, .is-you .score-pill { right: 0; }
.score-pill {
  display: flex; align-items: center; gap: 7px; max-width: calc(50% - var(--ghost, 84px) * .55 - 6px); padding: 6px 14px 6px 8px;
  color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink);
  outline: 4px solid transparent; outline-offset: 2px; transition: outline-color .2s;
}
.launcher.is-turn .score-pill { outline-color: var(--gold); }
.score-pill img { width: 24px; height: 24px; flex: none; }
.player-name { min-width: 0; font-size: 13px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.player-score { margin-left: auto; padding-left: 4px; font-size: 26px; line-height: 1; font-weight: 900; }
.stock-badge {
  display: flex; align-items: center; gap: 4px; padding: 3px 8px 3px 3px;
  background: var(--ink); border: 3px solid var(--gold); border-radius: 16px; box-shadow: 0 4px 0 rgba(12,40,28,.45);
  transition: opacity .2s, filter .2s;
}
.stock-badge img { width: 40px; height: 40px; }
.stock-badge b { padding: 0 7px; font-size: 15px; font-weight: 900; color: var(--ink); background: #fff; border-radius: 9px; }
.stock-badge.is-locked img { filter: grayscale(1) brightness(.75); }
.stock-badge.is-locked::after {
  content: ""; position: absolute; left: 25px; top: 25px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper) center / 13px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%231d3a4e' d='M4 7V5a4 4 0 0 1 8 0v2h1v8H3V7zm2 0h4V5a2 2 0 0 0-4 0z'/%3E%3C/svg%3E");
  border: 2px solid var(--ink);
}
.stock-badge.is-armed { animation: pulse 1s ease-in-out infinite; box-shadow: 0 0 0 4px rgba(255,224,120,.55), 0 4px 0 rgba(12,40,28,.45); }
.stock-badge.is-empty { opacity: .45; filter: grayscale(.8); }
.is-you .stock-badge { cursor: pointer; }
.stock-badge.is-hop { animation: bump .4s ease; }
.pull-hint { animation: pull-hint 1.3s ease-in-out infinite; }
.fly { position: absolute; z-index: 6; left: 0; top: 0; pointer-events: none; }
.fly img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; filter: drop-shadow(0 10px 5px rgba(0,0,0,.35)); }
.fly svg { position: absolute; z-index: 0; left: 50%; top: 50%; width: 1px; height: 1px; overflow: visible; }
.fly .aura, .comet::before {
  content: ""; position: absolute; z-index: 0; top: 50%; right: 50%; width: 330%; height: 150%;
  translate: 0 -50%; transform-origin: 100% 50%; rotate: var(--a, 0deg); border-radius: 50%;
  background: radial-gradient(58% 46% at 100% 50%, rgba(255,250,214,.95), rgba(255,196,40,.75) 40%, rgba(255,122,9,.25) 72%, transparent);
}
.comet { position: absolute; z-index: 6; left: 0; top: 0; pointer-events: none; }
.comet img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 6px #ffe68a); }
.board-frame {
  position: relative;
  padding: 16px;
  background: linear-gradient(180deg, #f6efdc, var(--stone));
  border: 4px solid var(--ink); border-radius: 20px;
  box-shadow: 0 9px 0 var(--ink), inset 0 -6px 0 rgba(0,0,0,.08);
}
.board-frame::before, .board-frame::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3b0, #e4b23c 60%, #a87816); border: 2px solid var(--ink);
  top: 5px; left: 5px;
}
.board-frame::after { left: auto; right: 5px; }
.board {
  position: relative;
  display: grid; grid-template-columns: repeat(8, 1fr);
  aspect-ratio: 1;
  background: var(--board);
  border: 3px solid #0c4d32; border-radius: 6px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.08);
}
.cell {
  position: relative; padding: 0; margin: 0;
  background: transparent; border: 1px solid rgba(0,0,0,.2);
  cursor: default; -webkit-tap-highlight-color: transparent;
}
.cell.is-legal { cursor: pointer; }
.cell.is-legal::after {
  content: ""; position: absolute; inset: 36%; border-radius: 50%;
  background: rgba(255,255,255,.78); box-shadow: 0 0 0 5px rgba(255,255,255,.22), 0 0 14px rgba(255,255,255,.6);
  animation: legal 1.3s ease-in-out infinite;
}
.cell.is-target::before { content: ""; position: absolute; inset: 2px; border: 3px solid #ffd057; border-radius: 6px; box-shadow: 0 0 12px rgba(255,208,87,.8); }
.cell.is-target.is-bad::before { border-color: #ff5363; box-shadow: 0 0 12px rgba(255,83,99,.7); }
.cell.is-legal:hover::after { inset: 22%; }
.cell .disc { position: absolute; inset: 7%; pointer-events: none; }
.cell .disc img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }
.cell.is-last:not(.is-target)::before { content: ""; position: absolute; inset: 4px; border: 2px dashed rgba(255,255,255,.6); border-radius: 4px; }
.play-bar { display: grid; justify-items: center; gap: 12px; margin: 22px auto 0; text-align: center; }
.play-status { margin: 0; font-size: 19px; font-weight: 900; text-shadow: 0 2px 0 rgba(0,0,0,.25); min-height: 1.7em; text-wrap: balance; word-break: auto-phrase; }
.play-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.super-button[aria-pressed="true"] { outline: 4px solid #fff3b0; outline-offset: 2px; animation: pulse 1s ease-in-out infinite; }
.super-button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; filter: grayscale(.5); transform: none; box-shadow: 0 4px 0 var(--ink); }
.super-lock { min-height: 1.6em; margin: 10px auto 0; text-align: center; font-size: 14px; font-weight: 800; color: #fff3b0; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.super-lock.is-bump { animation: bump .3s ease; }
.play-rules { text-align: center; margin: 14px 0 0; font-size: 14px; color: rgba(255,255,255,.85); }
.pop-text {
  position: absolute; z-index: 5; left: 50%; top: 50%; pointer-events: none; white-space: nowrap;
  font-size: clamp(22px, 4vw, 40px); font-weight: 900; color: #ffe073; letter-spacing: .03em;
  text-shadow: var(--outline), 0 5px 0 rgba(0,0,0,.25);
  animation: pop-text 1.1s cubic-bezier(.2,1.4,.4,1) forwards;
}
.spark {
  position: absolute; z-index: 4; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--c, #ffe073); pointer-events: none;
  animation: spark var(--t, .6s) cubic-bezier(.2,.8,.3,1) forwards;
}
.shockwave {
  position: absolute; z-index: 4; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  border: 4px solid var(--c, #ffd060); pointer-events: none; animation: shock .55s ease-out forwards;
}

/* Gallery */
.gallery { padding: 90px 0 40px; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.shot {
  display: block; padding: 0; margin: 0; text-align: left; font: inherit; color: var(--ink); cursor: zoom-in;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 6px 0 var(--ink);
  transition: transform .2s;
}
.shot:hover { transform: translateY(-4px) rotate(-.6deg); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--ink); }
.shot span { display: block; padding: 10px 14px 12px; font-weight: 800; font-size: 14.5px; }
.media-note { color: var(--muted); font-size: 14px; margin-top: 18px; }
.lightbox { padding: 0; border: 0; background: transparent; width: min(1400px, 94vw); max-width: none; max-height: none; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 30, 45, .84); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; width: 100%; height: auto; max-height: 84vh; object-fit: contain; border: 4px solid #fff; border-radius: 16px; background: #000; }
.lightbox figcaption { margin-top: 10px; color: #fff; text-align: center; font-weight: 800; }
.lightbox button {
  position: absolute; width: 50px; height: 50px; border-radius: 50%;
  border: 3px solid var(--ink); background: #fff; color: var(--ink); font-size: 30px; line-height: 1; font-weight: 900; cursor: pointer; box-shadow: 0 4px 0 var(--ink);
}
.lb-close { top: -18px; right: -12px; }
.lb-prev { left: -22px; top: calc(50% - 40px); }
.lb-next { right: -22px; top: calc(50% - 40px); }

/* Press call to action */
.press-cta { padding: 60px 0 110px; }
.press-cta-inner {
  display: flex; align-items: center; gap: 28px; padding: 26px 34px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 0 8px 0 var(--ink);
}
.press-cta-inner img { width: 108px; height: auto; flex: none; animation: idle 3.2s ease-in-out infinite; }
.press-cta-inner h2 { margin: 0 0 4px; font-size: 26px; font-weight: 900; }
.press-cta-inner p { margin: 0; color: var(--ink-2); }
.press-cta-inner .btn { margin-left: auto; flex: none; }

/* Footer */
.site-footer {
  position: relative; margin-top: 30px; padding: 70px 24px 36px; text-align: center;
  background: var(--ink); color: #cfe3ee;
}
.ghost-parade { position: absolute; left: 50%; top: -52px; transform: translateX(-50%); display: flex; gap: 18px; }
.ghost-parade .poke-ghost { width: 70px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.footer-nav a { white-space: nowrap; }
.footer-nav a { color: #fff; }
.footer-nav a:hover { background: rgba(255,255,255,.12); }
.copyright { margin: 12px 0 0; font-size: 13px; }

/* Press kit */
.press-hero { position: relative; overflow: hidden; isolation: isolate; padding: 128px 0 70px; }
.press-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(230,246,255,.55), rgba(230,246,255,.82) 70%, var(--sky-2));
}
.press-hero-inner { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 40px; align-items: center; }
.press-logo { width: 100%; height: auto; filter: drop-shadow(0 10px 16px rgba(29,58,78,.3)); animation: logo-in .9s cubic-bezier(.2,1.5,.4,1) both; }
.press-hero .section-title { margin-bottom: 8px; font-size: clamp(36px, 5vw, 60px); }
.press-lead { margin: 0 0 22px; font-size: 18px; color: var(--ink-2); }
.btn-download span { display: grid; text-align: left; }
.btn-download small { font-size: 12.5px; font-weight: 800; opacity: .75; }
.btn-download svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.press-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; padding: 30px 0 100px; }
.factsheet {
  position: sticky; top: 96px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; padding: 22px 22px 18px; box-shadow: 0 6px 0 var(--ink);
}
.factsheet h2 { margin: 0 0 8px; font-size: 21px; font-weight: 900; }
.factsheet dl { margin: 0; }
.factsheet dl div { padding: 10px 0; border-top: 2px dashed var(--line); }
.factsheet dt { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.factsheet dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.alt-title { font-size: 13px; color: var(--muted); }
.press-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.press-toc a { font-size: 13px; padding: 4px 11px; border-radius: 999px; background: #e6f4fb; color: var(--ink); font-weight: 800; text-decoration: none; }
.press-toc a:hover { background: var(--gold); }
.press-block {
  scroll-margin-top: 100px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 22px;
  padding: 26px 28px; margin-bottom: 26px; box-shadow: 0 6px 0 var(--ink);
}
.press-block h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 24px; font-weight: 900; }
.press-block h2::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink);
  background: radial-gradient(circle at 35% 30%, #5a6672, #12161d 70%);
}
.press-block:nth-of-type(4n+2) h2::before { background: radial-gradient(circle at 35% 30%, #fff, #c8cdd0 70%); }
.press-block:nth-of-type(4n+3) h2::before { background: radial-gradient(circle at 35% 30%, #ff8d8d, #d6252e 70%); }
.press-block:nth-of-type(4n) h2::before { background: radial-gradient(circle at 35% 30%, #8fd0ff, #1c84d4 70%); }
.press-block p { margin: 0 0 12px; line-height: 1.95; color: var(--ink-2); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 30px; font-weight: 700; }
.feature-list li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3b0, var(--gold) 60%, #d8a018); border: 2px solid var(--ink);
}
.orb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.orb-list li { display: flex; gap: 12px; align-items: flex-start; }
.orb-list img { width: 56px; height: 56px; flex: none; }
.orb-list h3 { margin: 2px 0 2px; font-size: 16px; font-weight: 900; }
.orb-list p { margin: 0; font-size: 14px; line-height: 1.7; }
.press-block .video-frame { margin-bottom: 18px; border-radius: 18px; box-shadow: 0 6px 0 var(--ink); }
.asset-grid { display: grid; gap: 18px; }
.asset-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.asset-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.asset { margin: 0; display: flex; flex-direction: column; background: #f6fbfe; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; }
.asset-thumb { display: block; aspect-ratio: 16 / 9; background: #dcedf6; }
.asset-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.asset-thumb:hover img { transform: scale(1.03); }
.asset.is-transparent .asset-thumb {
  background-color: #fff;
  background-image: conic-gradient(#e9f0f4 25%, transparent 0 50%, #e9f0f4 0 75%, transparent 0);
  background-size: 22px 22px;
}
.asset.is-transparent .asset-thumb img { object-fit: contain; padding: 14px; }
.asset.is-small .asset-thumb { aspect-ratio: 1; }
.asset figcaption { display: grid; gap: 2px; padding: 10px 14px 14px; }
.asset-name { font-weight: 800; font-size: 14px; line-height: 1.45; }
.asset-meta { font-size: 12px; font-weight: 700; color: var(--muted); }
.asset-dl {
  justify-self: start; margin-top: 8px; padding: 5px 14px;
  color: #fff; background: var(--blue); border: 2px solid var(--ink); border-radius: 999px;
  font-size: 13px; font-weight: 800; text-decoration: none; box-shadow: 0 3px 0 var(--ink);
}
.asset-dl:hover { filter: brightness(1.08); }

/* Contact */
.contact-hero { padding-bottom: 46px; }
.contact-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.contact-ghost { width: 150px; }
.contact-pending {
  display: inline-block; margin: 0; padding: 8px 18px; font-weight: 800;
  background: var(--gold); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink);
}
.contact-layout { padding: 10px 0 100px; }
.contact-types { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.contact-type { padding: 20px 20px 22px; background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); }
.contact-type img { display: block; width: 44px; height: 44px; margin-bottom: 8px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.25)); }
.contact-type h2 { margin: 0 0 6px; font-size: 19px; font-weight: 900; }
.contact-type p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.contact-columns { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.contact-columns.is-pending { grid-template-columns: 1fr; }
.contact-columns .press-block { margin: 0; }
.contact-side { display: grid; gap: 26px; align-items: start; }
.is-pending .contact-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-bug ol { display: grid; gap: 6px; margin: 0; padding-left: 1.5em; font-weight: 700; }
.contact-press { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.contact-press p { flex: 1 1 240px; margin: 0; }
.contact-to { font-weight: 700; }
.type-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.type-chips legend { margin-bottom: 6px; padding: 0; font-weight: 800; }
.type-chips label { position: relative; }
.type-chips input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.type-chips span { display: inline-block; padding: 6px 14px; font-size: 14px; font-weight: 800; background: #fff; border: 2px solid var(--ink); border-radius: 999px; }
.type-chips input:checked + span { background: var(--gold); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.type-chips input:focus-visible + span { outline: 4px solid var(--blue); outline-offset: 2px; }
.contact-form .field { display: grid; gap: 6px; margin-top: 16px; font-weight: 800; }
.contact-form input[type="text"], .contact-form textarea {
  width: 100%; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--ink);
  background: #f8fcff; border: 3px solid var(--ink); border-radius: 14px;
}
.contact-form textarea { min-height: 170px; line-height: 1.6; resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 4px solid var(--gold); outline-offset: 2px; }
.contact-form textarea[aria-invalid="true"] { border-color: var(--red); }
.contact-form .btn { margin-top: 18px; }
.contact-form .form-note { margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* Scroll reveal (only when the script is running). */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.2,1.2,.3,1); transition-delay: calc(var(--i, 0) * 70ms); }

@keyframes logo-in { from { opacity: 0; transform: scale(.6) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes bonk { 0% { transform: scale(1); } 30% { transform: scale(1.08, .9) rotate(-3deg); } 60% { transform: scale(.96, 1.05) rotate(2deg); } 100% { transform: none; } }
@keyframes drift { from { translate: 0 -10px; } to { translate: 6px 12px; } }
@keyframes hint { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }
@keyframes bump { 50% { transform: scale(1.18); } }
@keyframes idle { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, .97); } }
@keyframes hop { 0% { transform: none; } 20% { transform: scale(1.12, .85); } 50% { transform: translateY(-30px) scale(.92, 1.1); } 80% { transform: scale(1.08, .9); } 100% { transform: none; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px) rotate(-4deg); } 40% { transform: translateX(6px) rotate(4deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes orb-launch { 0% { transform: none; } 18% { transform: scale(1.15, .8); } 45% { transform: translateY(-120px) rotate(320deg) scale(.7); } 75% { transform: translateY(6px) scale(1.15, .85); } 100% { transform: none; } }
@keyframes legal { 0%, 100% { transform: scale(.8); opacity: .65; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes pulse { 50% { transform: scale(1.04); } }
@keyframes pull-hint { 0%, 100% { transform: translateY(-3px); opacity: 1; } 50% { transform: translateY(7px); opacity: .55; } }
@keyframes buzz { 0%, 100% { translate: 0 0; } 25% { translate: 1px -1px; } 50% { translate: -1px 1px; } 75% { translate: 1px 1px; } }
@keyframes pop-text { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 20% { transform: translate(-50%, -60%) scale(1.15); opacity: 1; } 70% { transform: translate(-50%, -80%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -110%) scale(.95); opacity: 0; } }
@keyframes spark { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
@keyframes shock { from { transform: scale(.4); opacity: 1; } to { transform: scale(var(--k, 6)); opacity: 0; } }

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .charge-card { grid-template-columns: 1fr; }
  .charge-shot { height: auto; border-right: 0; border-bottom: 3px solid var(--ink); }
  .contact-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-columns, .is-pending .contact-side { grid-template-columns: 1fr; }
  .press-layout { grid-template-columns: 1fr; }
  .factsheet { position: static; }
  .press-hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .btn-download span { text-align: center; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { gap: 6px; padding: 5px 6px 5px 10px; margin-bottom: -70px; }
  .brand img { height: 36px; }
  .main-nav a { padding: 7px 9px; font-size: 14px; }
  .main-nav .nav-home { display: none; }
  .lang-toggle span { display: none; }
  .lang-toggle { padding: 7px 9px; }
  .hero { padding: 104px 16px 100px; min-height: 640px; }
  .float-disc:nth-child(n+9) { display: none; }
  .float-disc { width: calc(60px * var(--s)); }
  .poke-hint { white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 32px); }
  .feature-grid { grid-template-columns: 1fr; }
  .orb-card { flex-basis: calc(50% - 10px); }
  .orb-button { width: 96px; height: 96px; }
  .press-cta-inner { flex-direction: column; text-align: center; padding: 24px; }
  .press-cta-inner .btn { margin: 0; }
  .press-block { padding: 20px 18px; }
  .orb-list { grid-template-columns: 1fr; }
  .asset-grid.cols-2 { grid-template-columns: 1fr; }
  .asset-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-frame { padding: 10px; }
  .score-pill { gap: 5px; padding: 4px 9px 4px 5px; border-radius: 13px; }
  .score-pill img { width: 18px; height: 18px; }
  .player-name { font-size: 11.5px; }
  .player-score { font-size: 20px; }
  .stock-badge { padding: 2px 6px 2px 2px; border-radius: 13px; }
  .stock-badge img { width: 30px; height: 30px; }
  .stock-badge b { padding: 0 5px; font-size: 13px; }
  .stock-badge.is-locked::after { left: 18px; top: 18px; width: 17px; height: 17px; background-size: 11px; }
  .charge-body { padding: 20px 18px 22px; }
  .charge-body h3 { font-size: 22px; }
  .contact-hero-inner { gap: 14px; }
  .contact-ghost { width: 72px; }
  .contact-types { grid-template-columns: 1fr; }
  .lb-prev { left: 4px; } .lb-next { right: 4px; } .lb-close { right: 4px; }
  .ghost-parade .poke-ghost { width: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
