/* Layout: das Tatami-Tablett aus dem Spiel steht als spielbares Objekt im Hero, darunter ruhige Bänder und ein indigofarbener Download-Block. */
@font-face { font-family: "Mochiy Pop One"; font-weight: 400; font-display: swap; src: url(fonts/mochiy-pop-one-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Zen Maru Gothic"; font-weight: 500; font-display: swap; src: url(fonts/zen-maru-gothic-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Zen Maru Gothic"; font-weight: 700; font-display: swap; src: url(fonts/zen-maru-gothic-latin-700-normal.woff2) format("woff2"); }
:root {
  --bg: #e4e9f8;
  --surface: #f6f7fd;
  --ink: #1b2472;
  --ink-soft: #464f8f;
  --line: #b9c2e6;
  --plate: #232f8f;
  --plate-edge: #161e66;
  --cushion: #f8c6d2;
  --cushion-peer: #fbd9e1;
  --cushion-given: #fff4d9;
  --cushion-given-peer: #fffaeb;
  --stitch: rgba(27, 36, 114, .28);
  --on-cushion: #1b2472;
  --sign: #ffd35c;
  --select: #ffd35c;
  --alarm: #b01c13;
  --alarm-sign: #ff8a7a;
  --primary: #232f8f;
  --on-primary: #ffffff;
  --on-plate: #ffffff;
  --on-plate-soft: #d5daf7;
  --cta: #ffd35c;
  --on-cta: #141a5c;
  --display: "Mochiy Pop One", "Zen Maru Gothic", ui-rounded, system-ui, sans-serif;
  --body: "Zen Maru Gothic", ui-rounded, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10153f;
    --surface: #1b2258;
    --ink: #eef0ff;
    --ink-soft: #b6bce6;
    --line: #3a4389;
    --plate: #2a3596;
    --plate-edge: #0b0f33;
    --cushion: #e6a8c0;
    --cushion-peer: #f0c0d2;
    --cushion-given: #efe3c4;
    --cushion-given-peer: #f8efd8;
    --stitch: rgba(27, 36, 114, .3);
    --on-cushion: #141a5c;
    --alarm: #ff8a7a;
    --primary: #ffd35c;
    --on-primary: #141a5c;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.55 var(--body); -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
img, video { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.download :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 40; }
.skip:focus { left: 16px; }

h1, h2 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 8.6vw, 66px); line-height: 1.06; }
h2 { font-size: clamp(27px, 5vw, 38px); line-height: 1.15; }
h3 { margin: 0; font-size: 19px; font-weight: 700; }
p { margin: 0; }

.top, .hero, .band, .download-inner, .foot, .lang-hint {
  width: 100%; max-width: 1120px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 22px/1 var(--display); }
.brand img { border-radius: 22%; }
.top-links { display: flex; gap: 4px; }
.top-links a { min-height: 44px; min-width: 44px; display: grid; place-items: center; padding-inline: 10px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.top-links a[aria-current] { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.lang-hint { padding-block: 0 8px; font-size: 15px; font-weight: 700; }

.hero { display: grid; gap: 24px; padding-block: 8px 44px; grid-template-columns: minmax(0, 1fr); }
.hero-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.eyebrow { font-weight: 700; color: var(--ink-soft); }
.lead { font-size: clamp(17px, 2.2vw, 20px); max-width: 34em; }
.cta, .alt-links { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  min-height: 52px; padding: 11px 20px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-direction: column;
  text-align: center; text-decoration: none; font-weight: 700; line-height: 1.2;
  border: 1.5px solid var(--line); background: var(--surface);
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-size: 19px; box-shadow: 0 4px 0 var(--plate-edge); }
.btn small { font-size: 14px; font-weight: 500; }
.btn.on-dark { background: transparent; border-color: var(--on-plate-soft); color: var(--on-plate); }
.btn.on-dark:hover { border-color: #fff; }
.cta-note { font-size: 15px; color: var(--ink-soft); }

.hero-game { container-type: inline-size; display: flex; flex-direction: column; gap: 8px; width: min(100%, 460px); margin-inline: auto; min-width: 0; scroll-margin-top: 10px; }
.try { font-size: 15px; font-weight: 700; }
.board {
  display: grid; --gap: clamp(17px, 5.4cqi, 28px);
  grid-template-columns: repeat(3, minmax(0, 1fr) var(--gap)) minmax(0, 1fr);
  aspect-ratio: 1; padding: 2.6cqi; border-radius: 5cqi;
  background: var(--plate); box-shadow: 0 6px 0 var(--plate-edge);
  align-items: center; justify-items: center;
}
.boardrow { display: contents; }
.cell {
  position: relative; width: 100%; aspect-ratio: 1; padding: 0; border: 0; container-type: inline-size;
  border-radius: 20%; background: var(--cushion); color: var(--on-cushion);
  box-shadow: inset 0 -.45cqi 0 rgba(27, 36, 114, .18); user-select: none; -webkit-user-select: none;
}
.cell::before { content: ""; position: absolute; inset: 6%; border-radius: 16%; border: 1.5px dashed var(--stitch); pointer-events: none; }
.cell.given { background: var(--cushion-given); }
.cell.given::before { border-style: solid; }
.cell.peer { background: var(--cushion-peer); }
.cell.given.peer { background: var(--cushion-given-peer); }
.cell.selected { z-index: 2; box-shadow: 0 0 0 4px var(--select), 0 0 0 6px var(--plate-edge); }
.cell:focus-visible { outline: 3px solid #fff; outline-offset: 5px; z-index: 3; }
.cell.bad::before { inset: 3%; border: 3px dashed #c21d14; }
.cell svg.cat, .cushion svg.cat { position: absolute; inset: 6% 6% 3%; width: 88%; height: 91%; overflow: visible; }
.num {
  position: absolute; left: 6%; top: 6%; width: 1.45em; height: 1.45em; border-radius: 50%;
  display: grid; place-items: center; background: var(--on-cushion); color: #fff;
  font: 400 max(10px, 14cqw)/1 var(--display);
}
.cell.given .num { background: transparent; color: var(--on-cushion); box-shadow: inset 0 0 0 1.5px var(--on-cushion); }
.sign { display: block; width: var(--gap); height: var(--gap); position: relative; z-index: 1; pointer-events: none; }
.sign svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--sign); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.sign.lt svg { transform: rotate(180deg); }
.sign.dn svg { transform: rotate(90deg); }
.sign.up svg { transform: rotate(-90deg); }
.sign.bad svg { stroke: var(--alarm-sign); stroke-width: 5; }
.msg { min-height: 44px; display: flex; align-items: center; font-weight: 700; font-size: 15px; line-height: 1.35; }
.msg.bad { color: var(--alarm); }
.msg.bad::before { content: "!"; flex: none; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; display: grid; place-items: center; background: var(--alarm); color: var(--bg); }
.palette { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pick {
  min-width: 0; min-height: 88px; padding: 4px 1px 5px; border-radius: 16px; border: 2px solid transparent;
  background: var(--cushion); color: var(--on-cushion);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.pick:hover, .pick.current { border-color: var(--on-cushion); }
.pick svg.cat { width: 100%; max-width: 62px; height: 52px; overflow: visible; }
.pick .name { font-size: 13px; line-height: 1.1; font-weight: 700; white-space: nowrap; }
.pick .n { font: 400 13px/1 var(--display); }
.cat .eyes { animation: blink 7s infinite; transform-box: fill-box; transform-origin: center; }
.pop svg.cat { animation: pop .24s cubic-bezier(.2, 1.5, .4, 1); transform-origin: 50% 94%; }
.hiss svg.cat { animation: hiss .34s; }
.board.purr svg.cat { animation: purr .7s ease-in-out both; animation-delay: var(--d, 0s); transform-origin: 50% 94%; }
@keyframes pop { from { transform: scale(.55); } to { transform: scale(1); } }
@keyframes hiss { 25% { transform: translateX(-4%); } 50% { transform: translateX(4%); } 75% { transform: translateX(-2%); } }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.08); } }
@keyframes purr { 40% { transform: translateY(-13%) scale(1.06); } }

.band { padding-block: 34px; display: flex; flex-direction: column; gap: 20px; }
.rule-grid, .level-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.rule-grid article, .level-grid article { display: grid; gap: 8px; align-content: start; min-width: 0; }
.fig { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; min-height: 104px; border-radius: 18px; background: var(--plate); box-shadow: 0 4px 0 var(--plate-edge); --gap: 20px; }
.cushion { position: relative; display: block; width: 70px; height: 70px; flex: none; border-radius: 20%; background: var(--cushion); }
.cushion.given { background: var(--cushion-given); }
.cushion.bad { outline: 3px dashed #c21d14; outline-offset: -5px; }

.cast-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.cast-row li { display: grid; justify-items: center; gap: 2px; text-align: center; min-width: 0; }
.cast-row svg { width: 100%; max-width: 132px; height: auto; aspect-ratio: 1; overflow: visible; padding: 8%; border-radius: 20%; background: var(--cushion); }
.cast-row b { font-size: 16px; }
.cast-row span { font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cast-note, .promise { max-width: 44em; }

.mini { display: grid; gap: 3px; padding: 8px; width: 112px; aspect-ratio: 1; border-radius: 14px; background: var(--plate); box-shadow: 0 3px 0 var(--plate-edge); }
.mini i { display: block; border-radius: 22%; background: var(--cushion); }
.mini i.g { background: var(--cushion-given); }

.trailer video { width: 100%; border-radius: 18px; background: var(--plate-edge); }
@media (max-width: 599px) { .trailer video { max-width: 340px; margin-inline: auto; aspect-ratio: 9 / 16; } }
@media (min-width: 600px) { .trailer video { aspect-ratio: 16 / 9; } }

.shot-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.shot-row figure { margin: 0; flex: 0 0 min(66vw, 300px); scroll-snap-align: start; display: grid; gap: 8px; align-content: start; font-size: 15px; font-weight: 700; }
.shot-row img { border-radius: 20px; box-shadow: 0 0 0 1.5px var(--line); background: var(--surface); }

.download { background: var(--plate); color: var(--on-plate); margin-top: 26px; scroll-margin-top: 0; }
.download-inner { padding-block: 40px; display: flex; flex-direction: column; gap: 18px; }
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.dl-list a { width: 100%; background: var(--cta); border-color: var(--cta); color: var(--on-cta); box-shadow: 0 4px 0 var(--plate-edge); font-size: 18px; }
.install { font-size: 16px; }
.install summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.install p { margin-top: 8px; max-width: 46em; }

.foot { padding-block: 22px 96px; font-size: 15px; color: var(--ink-soft); display: grid; gap: 4px; }
.foot p:first-child { line-height: 2; }

.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--surface); box-shadow: 0 -1.5px 0 var(--line);
}
.sticky .btn { width: min(100%, 460px); }

.legal-page main { width: 100%; max-width: 760px; margin-inline: auto; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 44px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 12px; }
.legal-page h1 { font-size: clamp(30px, 6vw, 42px); }
.legal-page h2 { font-size: 23px; margin-top: 12px; }
.legal-page p { overflow-wrap: anywhere; }

@media (min-width: 600px) {
  .dl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cast-row { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; }
}
@media (min-width: 760px) {
  .rule-grid, .level-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
  .shot-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; overflow: visible; }
  .shot-row figure { flex: none; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 18px 56px; }
  .hero-game { margin-inline: auto 0; }
  .dl-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
