/* Morvanthe — one stylesheet. System fonts only, no external requests. */

:root {
  --mv-bg: #0d1014;
  --mv-bg2: #11151b;
  --mv-panel: #161b23;
  --mv-panel2: #1d242f;
  --mv-line: #2b3442;
  --mv-ink: #eef1f6;
  --mv-muted: #a6b0c0;
  --mv-sun: #ff62d4;
  --mv-sun-deep: #a8268a;
  --mv-sun-ink: #2a0022;
  --mv-care: #86b8ff;
  --mv-tangerine: #ff8a3d;
  --mv-cobalt: #5b95ff;
  --mv-lime: #9be15d;
  --mv-raspberry: #ff5c84;
  --mv-teal: #34d3c3;
  --mv-violet: #b08bff;
  --mv-electric: #4fc3ff;
  --mv-gold: #f5b83d;
  --mv-hue: var(--mv-sun);
  --mv-s1: 4px;
  --mv-s2: 8px;
  --mv-s3: 12px;
  --mv-s4: 16px;
  --mv-s5: 24px;
  --mv-s6: 32px;
  --mv-s7: 48px;
  --mv-s8: 64px;
  --mv-r1: 8px;
  --mv-r2: 14px;
  --mv-r3: 22px;
  --mv-display: "Avenir Next", "Futura", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --mv-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mv-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --mv-ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body.mv {
  margin: 0;
  background-color: var(--mv-bg);
  background-image:
    repeating-linear-gradient(30deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(150deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 34px);
  color: var(--mv-ink);
  font: 400 1rem/1.55 var(--mv-body);
  min-height: 100vh;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--mv-sun); text-underline-offset: 3px; }
a:hover { color: #ff9be4; }

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

h1, h2, h3 { font-family: var(--mv-display); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 var(--mv-s3); }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.95rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 var(--mv-s4); }

.mv-skip { position: absolute; left: -999px; top: 8px; background: var(--mv-sun); color: var(--mv-sun-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.mv-skip:focus { left: 8px; }

.mv-glyph { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.mv-small { font-size: .875rem; color: var(--mv-muted); }
.mv-kicker { font: 600 .78rem/1.3 var(--mv-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mv-hue); margin: 0 0 var(--mv-s2); }
.mv-lead { font-size: 1.125rem; color: #d5dbe5; max-width: 62ch; }

/* ---------- compliance strip and header ---------- */

.mv-strip {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 14px;
  padding: 6px var(--mv-s4);
  background: #07090c;
  border-bottom: 1px solid var(--mv-line);
  font: 600 .75rem/1.4 var(--mv-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mv-muted);
}
.mv-strip b { color: var(--mv-sun-ink); background: var(--mv-sun); padding: 0 6px; border-radius: 4px; }
.mv-strip span::before { content: "◆"; color: var(--mv-sun-deep); margin-right: 8px; font-size: .6rem; vertical-align: 1px; }

.mv-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--mv-s4);
  padding: var(--mv-s3) var(--mv-s5);
  background: rgba(13, 16, 20, .92);
  border-bottom: 1px solid var(--mv-line);
  backdrop-filter: blur(10px);
}
.mv-brand { display: flex; align-items: center; gap: 10px; color: var(--mv-ink); text-decoration: none; font: 800 1.25rem/1 var(--mv-display); letter-spacing: -.01em; }
.mv-brand:hover { color: var(--mv-ink); }
.mv-brand img { width: 40px; height: 40px; }

.mv-tabs { display: flex; justify-content: center; gap: 4px; }
.mv-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--mv-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: background-color .18s var(--mv-ease), color .18s var(--mv-ease);
}
.mv-tab:hover { color: var(--mv-ink); background: var(--mv-panel); }
.mv-tab.is-here { color: var(--mv-sun-ink); background: var(--mv-sun); }

.mv-hud { display: flex; align-items: center; gap: var(--mv-s2); }
.mv-purse {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--mv-line);
  border-radius: 12px;
  background: var(--mv-panel);
  color: var(--mv-ink);
  text-decoration: none;
}
.mv-purse .mv-glyph { grid-row: span 2; color: var(--mv-sun); }
.mv-purse b { font: 700 1.05rem/1.1 var(--mv-mono); }
.mv-purse small { font-size: .7rem; color: var(--mv-muted); line-height: 1.2; }

/* ---------- keys (buttons) ---------- */

.mv-key {
  --key: var(--mv-panel2);
  --key-edge: #0a0d11;
  --key-ink: var(--mv-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--key-edge);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 55%), var(--key);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px rgba(0, 0, 0, .35);
  color: var(--key-ink);
  font: 700 .98rem/1.2 var(--mv-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s var(--mv-ease), background-color .18s var(--mv-ease), box-shadow .18s var(--mv-ease);
}
.mv-key:hover { --key: #263040; color: var(--key-ink); }
.mv-key:active { transform: scale(.97); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 2px 6px rgba(0, 0, 0, .35); }
.mv-key:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.mv-key--lit, .mv-key--go { --key: var(--mv-sun); --key-edge: var(--mv-sun-deep); --key-ink: var(--mv-sun-ink); border-color: var(--mv-sun); }
.mv-key--lit:hover, .mv-key--go:hover { --key: #ff8fe0; }
.mv-key--go { width: 100%; border-radius: 16px; min-height: 56px; font-size: 1.15rem; font-family: var(--mv-display); }
.mv-key--ghost { --key: transparent; --key-edge: var(--mv-line); }
.mv-key--even { min-width: 120px; }
.mv-key--pause { --key: #1a2433; --key-edge: #0d1520; color: var(--mv-care); border-color: #2c3e58; }
.mv-key--pause .mv-glyph { stroke-width: 2.6; }
.mv-key--dir { width: 54px; height: 54px; padding: 0; font-size: 1.4rem; border-radius: 14px; }
.mv-key--dir.is-hint { --key: var(--mv-lime); --key-ink: #142200; --key-edge: #5d8f2c; border-color: var(--mv-lime); }

.mv-textkey { background: none; border: 0; padding: 0; color: var(--mv-sun); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- layout ---------- */

.mv-main { max-width: 1240px; margin: 0 auto; padding: var(--mv-s6) var(--mv-s5) var(--mv-s8); }

.mv-card {
  background: var(--mv-panel);
  border: 1px solid var(--mv-line);
  border-radius: var(--mv-r2);
  padding: var(--mv-s5);
  margin-bottom: var(--mv-s5);
}
.mv-card > :last-child { margin-bottom: 0; }

.mv-prose { max-width: 70ch; }
.mv-prose p, .mv-prose li { color: #dbe0e8; }
.mv-prose h2 { margin-top: var(--mv-s6); }
.mv-prose h2:first-child { margin-top: 0; }
.mv-prose ul, .mv-prose ol { padding-left: 1.3em; margin: 0 0 var(--mv-s4); }
.mv-prose li { margin-bottom: var(--mv-s2); }

.mv-pagehead { margin-bottom: var(--mv-s6); max-width: 820px; }
.mv-pagehead--care { --mv-hue: var(--mv-care); }

.mv-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--mv-s6); }
.mv-toc a { padding: 6px 12px; border: 1px solid var(--mv-line); border-radius: 999px; color: var(--mv-ink); text-decoration: none; font-size: .9rem; background: var(--mv-panel); }
.mv-toc a:hover { border-color: var(--mv-sun); }

/* ---------- home: the box ---------- */

.mv-home { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--mv-s7); align-items: start; }
.mv-home__intro { grid-column: 1 / -1; max-width: 780px; }

.mv-boxstage { display: grid; justify-items: center; gap: var(--mv-s5); }
.mv-scene { --size: min(340px, 78vw); width: var(--size); aspect-ratio: 1; perspective: 1100px; margin: var(--mv-s5) 0 var(--mv-s3); touch-action: pan-y; }
.mv-boxcube {
  --rx: -14deg;
  --ry: -20deg;
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--size) / -2)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .3s var(--mv-ease);
}
.mv-boxcube.is-dragging { transition: none; }
.mv-boxface {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #07090c;
  background: #07090c;
  backface-visibility: hidden;
}
.mv-boxface img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; display: block; }
.mv-boxface span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(7, 9, 12, .82);
  color: var(--mv-ink);
  font: 700 .85rem/1.2 var(--mv-display);
}
.mv-boxface--front { transform: rotateY(0deg) translateZ(calc(var(--size) / 2)); }
.mv-boxface--right { transform: rotateY(90deg) translateZ(calc(var(--size) / 2)); }
.mv-boxface--back { transform: rotateY(180deg) translateZ(calc(var(--size) / 2)); }
.mv-boxface--left { transform: rotateY(-90deg) translateZ(calc(var(--size) / 2)); }
.mv-boxface--top { transform: rotateX(90deg) translateZ(calc(var(--size) / 2)); }
.mv-boxface--bottom { transform: rotateX(-90deg) translateZ(calc(var(--size) / 2)); }

.mv-turnkeys { display: grid; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(2, 48px); gap: 6px; }
.mv-turnkeys .mv-key { width: 48px; height: 48px; min-height: 0; padding: 0; font-size: 1.2rem; border-radius: 14px; }
.mv-turnkeys [data-turn="up"] { grid-column: 2; grid-row: 1; }
.mv-turnkeys [data-turn="left"] { grid-column: 1; grid-row: 2; }
.mv-turnkeys [data-turn="down"] { grid-column: 2; grid-row: 2; }
.mv-turnkeys [data-turn="right"] { grid-column: 3; grid-row: 2; }

.mv-net { display: grid; grid-template-columns: repeat(4, 64px); grid-template-rows: repeat(3, 64px); gap: 4px; list-style: none; padding: 0; margin: 0; }
.mv-net li { display: block; }
.mv-net a { display: block; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid var(--mv-line); position: relative; transition: border-color .18s var(--mv-ease), transform .18s var(--mv-ease); }
.mv-net a:hover { transform: translateY(-2px); }
.mv-net a.is-on { border-color: var(--mv-sun); }
.mv-net img { width: 100%; height: 100%; object-fit: cover; object-position: center 72%; display: block; }
.mv-net .mv-net--top { grid-column: 2; grid-row: 1; }
.mv-net .mv-net--left { grid-column: 1; grid-row: 2; }
.mv-net .mv-net--front { grid-column: 2; grid-row: 2; }
.mv-net .mv-net--right { grid-column: 3; grid-row: 2; }
.mv-net .mv-net--back { grid-column: 4; grid-row: 2; }
.mv-net .mv-net--bottom { grid-column: 2; grid-row: 3; }
.mv-net__cap { font-size: .82rem; color: var(--mv-muted); text-align: center; margin: 0; }

.mv-facecard {
  --mv-hue: var(--mv-tangerine);
  position: relative;
  background: linear-gradient(160deg, var(--mv-panel2), var(--mv-panel) 60%);
  border: 1px solid var(--mv-line);
  border-top: 5px solid var(--mv-hue);
  border-radius: var(--mv-r3);
  padding: var(--mv-s6);
}
.mv-facecard__name { font: 800 clamp(1.8rem, 1.3rem + 2vw, 2.6rem)/1.05 var(--mv-display); margin: 0 0 var(--mv-s2); }
.mv-facecard__tag { color: var(--mv-hue); font-weight: 700; margin-bottom: var(--mv-s4); }
.mv-facecard__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--mv-s2) var(--mv-s5); margin: var(--mv-s5) 0; }
.mv-facecard__stats div { display: grid; gap: 4px; }
.mv-facecard__stats dt { font: 600 .72rem/1 var(--mv-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mv-muted); }
.mv-facecard__stats dd { margin: 0; }
.mv-facecard__acts { display: flex; flex-wrap: wrap; gap: var(--mv-s3); }

.mv-pips { display: inline-flex; gap: 4px; }
.mv-pips i { width: 12px; height: 12px; border-radius: 3px; background: var(--mv-line); transform: rotate(45deg) scale(.82); }
.mv-pips i.is-lit { background: var(--mv-hue); }

.mv-hue--tangerine { --mv-hue: var(--mv-tangerine); }
.mv-hue--cobalt { --mv-hue: var(--mv-cobalt); }
.mv-hue--lime { --mv-hue: var(--mv-lime); }
.mv-hue--raspberry { --mv-hue: var(--mv-raspberry); }
.mv-hue--teal { --mv-hue: var(--mv-teal); }
.mv-hue--violet { --mv-hue: var(--mv-violet); }
.mv-hue--electric { --mv-hue: var(--mv-electric); }
.mv-hue--gold { --mv-hue: var(--mv-gold); }

/* session strip */
.mv-session { margin: var(--mv-s7) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--mv-s5); }
.mv-cubies { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; }
.mv-cubies div { background: var(--mv-panel2); border: 1px solid var(--mv-line); border-radius: 12px; padding: 12px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35); }
.mv-cubies dt { font: 600 .7rem/1.2 var(--mv-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mv-muted); }
.mv-cubies dd { margin: 6px 0 0; font: 700 1.1rem/1.1 var(--mv-mono); }

.mv-plan { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--mv-s3) 0; }
.mv-plan .mv-key { min-height: 40px; padding: 8px 14px; }
.mv-plan .mv-key.is-on { --key: var(--mv-care); --key-ink: #08172b; --key-edge: #4c7fc4; border-color: var(--mv-care); }

/* rules of the box */
.mv-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--mv-s4); margin: var(--mv-s6) 0 var(--mv-s7); list-style: none; padding: 0; }
.mv-rules li { background: var(--mv-panel); border: 1px solid var(--mv-line); border-radius: var(--mv-r2); padding: var(--mv-s5); }
.mv-rules .mv-glyph { width: 28px; height: 28px; color: var(--mv-sun); margin-bottom: var(--mv-s3); }
.mv-rules h3 { font-size: 1.05rem; }
.mv-rules p { margin: 0; color: #cfd6e1; font-size: .95rem; }

.mv-strip2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--mv-s6); align-items: center; margin: var(--mv-s7) 0; padding: var(--mv-s6); border-radius: var(--mv-r3); background: #eef0f6; color: #1b1838; }
.mv-strip2 h2 { color: #1b1838; }
.mv-strip2 p { color: #3a3858; }
.mv-strip2 a.mv-key { --key: #1b1838; --key-ink: #fff; --key-edge: #000; border-color: #1b1838; }
.mv-strip2__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.mv-strip2__list a { display: block; color: #1b1838; text-decoration: none; font-weight: 700; font-size: .9rem; }
.mv-strip2__list img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 6px; border: 2px solid #1b1838; }

.mv-faq { margin: var(--mv-s7) 0; }
.mv-faq details { background: var(--mv-panel); border: 1px solid var(--mv-line); border-radius: 12px; padding: var(--mv-s4) var(--mv-s5); margin-bottom: 8px; }
.mv-faq summary { cursor: pointer; font-weight: 700; }
.mv-faq details p { margin: var(--mv-s3) 0 0; color: #d3d9e3; }

.mv-reads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--mv-s4); list-style: none; padding: 0; margin: var(--mv-s4) 0 0; }
.mv-reads a { display: block; height: 100%; padding: var(--mv-s5); border-radius: var(--mv-r2); background: var(--mv-panel); border: 1px solid var(--mv-line); color: var(--mv-ink); text-decoration: none; transition: border-color .18s var(--mv-ease); }
.mv-reads a:hover { border-color: var(--mv-sun); color: var(--mv-ink); }
.mv-reads b { display: block; font-family: var(--mv-display); font-size: 1.05rem; margin-bottom: 6px; }
.mv-reads small { color: var(--mv-muted); font-size: .9rem; }

/* ---------- faces index ---------- */

.mv-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--mv-s5); list-style: none; padding: 0; margin: 0 0 var(--mv-s7); }
.mv-shelf li { display: flex; }
.mv-tilecard { display: grid; grid-template-rows: auto 1fr; width: 100%; background: var(--mv-panel); border: 1px solid var(--mv-line); border-radius: var(--mv-r3); overflow: hidden; }
.mv-tilecard__art { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 5px solid var(--mv-hue); }
.mv-tilecard__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; display: block; transition: transform .25s var(--mv-ease); }
.mv-tilecard:hover .mv-tilecard__art img { transform: scale(1.03); }
.mv-tilecard__body { padding: var(--mv-s5); display: flex; flex-direction: column; gap: var(--mv-s2); }
.mv-tilecard__body h2, .mv-tilecard__body h3 { font-size: 1.4rem; margin: 0; }
.mv-tilecard__body h2 a, .mv-tilecard__body h3 a { color: var(--mv-ink); text-decoration: none; }
.mv-tilecard__body p { color: #cfd6e1; margin: 0; }
.mv-tilecard__meta { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 4px 0; }
.mv-tilecard__meta li { font: 600 .74rem/1 var(--mv-mono); padding: 6px 8px; border-radius: 6px; background: var(--mv-panel2); color: var(--mv-muted); }
.mv-tilecard__body .mv-key { margin-top: auto; align-self: flex-start; }

/* ---------- game page ---------- */

.mv--play .mv-main { max-width: 1320px; }
.mv-play__head { margin-bottom: var(--mv-s5); }
.mv-play__head h1 { margin-bottom: 6px; }
.mv-play__tag { color: var(--mv-muted); margin: 0; }
.mv-play__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: var(--mv-s5); align-items: start; }

.mv-board {
  position: relative;
  min-height: 520px;
  border-radius: var(--mv-r3);
  border: 1px solid var(--mv-line);
  background-color: #0a0c10;
  background-size: cover;
  background-position: center;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
.mv-board::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(10, 12, 16, .35), rgba(10, 12, 16, .88)); }
.mv-board--quarter-turn { background-image: url("../art/stage/quarter-turn.webp"); }
.mv-board--three-faces { background-image: url("../art/stage/three-faces.webp"); }
.mv-board--tilt-and-fuse { background-image: url("../art/stage/tilt-and-fuse.webp"); }
.mv-board--low-seven { background-image: url("../art/stage/low-seven.webp"); }
.mv-board--suit-sprint { background-image: url("../art/stage/suit-sprint.webp"); }
.mv-board--rise-and-slide { background-image: url("../art/stage/rise-and-slide.webp"); }
.mv-board__mount { position: relative; display: grid; place-items: center; align-content: center; gap: var(--mv-s4); padding: var(--mv-s6) var(--mv-s4) var(--mv-s4); }
.mv-board__verdict {
  position: relative;
  margin: 0;
  padding: var(--mv-s4) var(--mv-s5);
  background: rgba(7, 9, 12, .86);
  border-top: 1px solid var(--mv-line);
  font-weight: 700;
  min-height: 3.4em;
}
.mv-board__verdict.is-over { color: var(--mv-lime); }
.mv-board__verdict.is-under, .mv-board__verdict.is-level { color: #ffd08a; }
.mv-board__verdict.is-flat { color: var(--mv-muted); }
.mv-face__readout { margin: 0; text-align: center; font: 600 .92rem/1.4 var(--mv-mono); color: #dfe5ee; background: rgba(7, 9, 12, .72); padding: 8px 14px; border-radius: 10px; max-width: 560px; }

.mv-deck { background: var(--mv-panel); border: 1px solid var(--mv-line); border-radius: var(--mv-r3); padding: var(--mv-s5); display: grid; gap: var(--mv-s4); position: sticky; top: 92px; }
.mv-deck__block { display: grid; gap: var(--mv-s2); }
.mv-deck__label { margin: 0; font: 600 .74rem/1.3 var(--mv-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--mv-muted); }
.mv-deck__row { display: flex; gap: 8px; flex-wrap: wrap; }
.mv-stakes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mv-stakes:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
.mv-stake { min-height: 44px; border-radius: 999px; border: 1px solid var(--mv-line); background: var(--mv-panel2); color: var(--mv-ink); font: 700 1rem/1 var(--mv-mono); cursor: pointer; transition: transform .12s var(--mv-ease), background-color .18s var(--mv-ease); }
.mv-stake:active { transform: scale(.95); }
.mv-stake.is-on { background: var(--mv-hue); color: #0d1014; border-color: var(--mv-hue); }
.mv-stake:disabled { opacity: .55; cursor: not-allowed; }
.mv-suitpick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mv-suitkey { min-height: 44px; border-radius: 10px; border: 1px solid var(--mv-line); background: var(--mv-panel2); color: var(--mv-ink); font: 700 .95rem/1 var(--mv-body); cursor: pointer; }
.mv-suitkey span { font-size: 1.1rem; }
.mv-suitkey[data-suit="h"] span, .mv-suitkey[data-suit="d"] span { color: var(--mv-raspberry); }
.mv-suitkey.is-on { border-color: var(--mv-hue); box-shadow: inset 0 0 0 2px var(--mv-hue); }
.mv-tiltpad__keys { display: grid; grid-template-columns: repeat(3, 54px); grid-template-rows: repeat(2, 54px); gap: 6px; justify-content: center; }
.mv-tiltpad__keys [data-tilt="up"] { grid-column: 2; grid-row: 1; }
.mv-tiltpad__keys [data-tilt="left"] { grid-column: 1; grid-row: 2; }
.mv-tiltpad__keys [data-tilt="down"] { grid-column: 2; grid-row: 2; }
.mv-tiltpad__keys [data-tilt="right"] { grid-column: 3; grid-row: 2; }
.mv-breaknote { margin: 0; padding: 10px 12px; border-radius: 10px; background: #172437; color: var(--mv-care); font-size: .9rem; }
.mv-tally { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.mv-tally div { background: var(--mv-bg2); border-radius: 10px; padding: 8px 10px; }
.mv-tally dt { font: 600 .68rem/1.2 var(--mv-mono); text-transform: uppercase; color: var(--mv-muted); letter-spacing: .05em; }
.mv-tally dd { margin: 2px 0 0; font: 700 1rem/1.2 var(--mv-mono); }
.mv-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.mv-log li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; font-size: .82rem; padding: 6px 8px; border-radius: 8px; background: var(--mv-bg2); color: var(--mv-muted); }
.mv-log li b { font-family: var(--mv-mono); color: var(--mv-ink); }
.mv-log li em { font: 700 .82rem/1 var(--mv-mono); font-style: normal; }
.mv-log li.is-over em { color: var(--mv-lime); }
.mv-log li.is-part em { color: #ffd08a; }
.mv-log__empty { display: block !important; }

/* Quarter Turn */
.mv-face { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(380px, 80vw); aspect-ratio: 1; padding: 12px; background: rgba(7, 9, 12, .7); border-radius: 22px; border: 2px solid rgba(255, 255, 255, .08); overflow: hidden; }
.mv-face__cell { position: relative; border-radius: 14px; background: rgba(255, 255, 255, .05); display: grid; place-items: center; transition: transform .26s var(--mv-ease), opacity .2s var(--mv-ease); }
.mv-face__cell img { width: 88%; height: 88%; object-fit: contain; }
.mv-face__cell.is-hit { background: rgba(255, 98, 212, .16); box-shadow: inset 0 0 0 2px rgba(255, 98, 212, .7); }
.mv-face.is-rolling .mv-face__cell { opacity: .25; transform: scale(.92); }
.mv-face__cell.is-twist.is-slide-right { transform: translateX(calc(100% + 8px)); }
.mv-face__cell.is-twist.is-slide-left { transform: translateX(calc(-100% - 8px)); }
.mv-face__cell.is-twist.is-slide-down { transform: translateY(calc(100% + 8px)); }
.mv-face__cell.is-twist.is-slide-up { transform: translateY(calc(-100% - 8px)); }
.mv-face__lines { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); pointer-events: none; }
.mv-face__line { stroke-width: .07; stroke-linecap: round; }
.mv-face__line.is-first { stroke: var(--mv-sun); }
.mv-face__line.is-second { stroke: var(--mv-lime); }

/* Three Faces */
.mv-cube { width: min(440px, 88vw); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
.mv-cube__plate { stroke: #07090c; stroke-width: .06; }
.mv-cube__face--T .mv-cube__plate { fill: #e9edf5; }
.mv-cube__face--L .mv-cube__plate { fill: #b9c3d4; }
.mv-cube__face--R .mv-cube__plate { fill: #8e9ab0; }
.mv-cube__cell { fill: rgba(255, 255, 255, .55); stroke: rgba(7, 9, 12, .25); stroke-width: .02; transition: fill .2s var(--mv-ease); }
.mv-cube__cell.is-hit { fill: #ffb3ea; }
.mv-cube image { transition: opacity .2s var(--mv-ease); }
.mv-cube.is-rolling image { opacity: .15; }
.mv-cube__run { fill: none; stroke: var(--mv-cobalt); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }

/* Tilt & Fuse */
.mv-tray { display: grid; gap: 8px; width: min(380px, 82vw); padding: 12px; border-radius: 20px; background: linear-gradient(145deg, #c9d0da, #8a94a3); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 18px 30px rgba(0, 0, 0, .5); transition: transform .18s var(--mv-ease); }
.mv-tray__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mv-tray.is-tilt-left { transform: perspective(700px) rotateY(-7deg); }
.mv-tray.is-tilt-right { transform: perspective(700px) rotateY(7deg); }
.mv-tray.is-tilt-up { transform: perspective(700px) rotateX(7deg); }
.mv-tray.is-tilt-down { transform: perspective(700px) rotateX(-7deg); }
.mv-tile { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; font: 800 clamp(1.1rem, .8rem + 1.6vw, 1.8rem)/1 var(--mv-display); color: #0d1014; border-bottom: 5px solid rgba(0, 0, 0, .28); background: #f2f4f8; }
.mv-tile--1 { background: #f4f1e8; }
.mv-tile--2 { background: #ffe9a3; }
.mv-tile--4 { background: #ffc96b; }
.mv-tile--8 { background: #ff9a4d; color: #fff; }
.mv-tile--16 { background: #ff5c84; color: #fff; }
.mv-tile--32 { background: #b08bff; color: #fff; }
.mv-tile--64, .mv-tile--128 { background: #34d3c3; color: #06221f; }
.mv-tile.is-fused { animation: mv-pop .24s var(--mv-ease); box-shadow: 0 0 0 3px #fff; }
.mv-tile.is-fresh { animation: mv-fade .22s var(--mv-ease); }

/* cards */
.mv-felt { display: grid; gap: var(--mv-s4); justify-items: center; }
.mv-hand { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.mv-card-face {
  position: relative;
  width: 82px;
  height: 116px;
  border-radius: 10px;
  border: 1px solid #c8ced8;
  border-bottom: 5px solid #b4bbc7;
  background: #fbfbfd;
  color: #12151b;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 6px 8px;
  font: 800 1.3rem/1 var(--mv-display);
  text-align: left;
}
button.mv-card-face { cursor: pointer; transition: transform .16s var(--mv-ease); }
.mv-card-face--h, .mv-card-face--d { color: #d0234f; }
.mv-card-face__s { font-size: 2.6rem; align-self: center; justify-self: center; }
.mv-card-face.is-marked { transform: translateY(14px); opacity: .55; }
.mv-card-face.is-marked::after { content: "out"; position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font: 700 .7rem/1 var(--mv-mono); text-transform: uppercase; color: var(--mv-sun); }
.mv-card-face.is-dealt { animation: mv-deal .24s var(--mv-ease); }

.mv-track { display: grid; gap: 8px; width: min(640px, 92vw); }
.mv-track__side { display: grid; grid-template-columns: 50px repeat(6, 1fr) 50px; gap: 6px; padding: 0 0 4px; }
.mv-track__setback { grid-column: auto; height: 62px; border-radius: 8px; background: repeating-linear-gradient(45deg, #1f3a52 0 6px, #24445f 6px 12px); border: 1px solid #3a5b78; display: grid; place-items: center; font: 700 .8rem/1 var(--mv-mono); color: #9fc2df; }
.mv-track__setback:first-child { grid-column: 2; }
.mv-track__setback.is-open { background: transparent; border: 0; }
.mv-track__setback .mv-card-face { width: 44px; height: 62px; font-size: .8rem; padding: 3px 4px; border-bottom-width: 3px; }
.mv-track__setback .mv-card-face__s { font-size: 1.3rem; }
.mv-lane { position: relative; display: grid; grid-template-columns: 50px repeat(6, 1fr) 50px; gap: 6px; height: 66px; align-items: center; }
.mv-lane__stop { display: grid; place-items: center; height: 100%; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px dashed rgba(255, 255, 255, .14); }
.mv-lane__stop.is-start { background: rgba(255, 255, 255, .03); }
.mv-lane__stop.is-finish { background: repeating-conic-gradient(#e9edf5 0 25%, #12151b 0 50%) 0 0 / 12px 12px; opacity: .6; }
.mv-lane__ace { width: 44px; height: 62px; font-size: .85rem; padding: 3px 4px; border-bottom-width: 3px; animation: mv-fade .2s var(--mv-ease); }
.mv-lane__ace .mv-card-face__s { font-size: 1.3rem; }
.mv-lane.is-first .mv-lane__ace { box-shadow: 0 0 0 3px var(--mv-sun); }
.mv-track__flip { min-height: 120px; display: grid; place-items: center; }

/* Rise & Slide */
.mv-tower { position: relative; width: min(420px, 84vw); aspect-ratio: 1; margin-left: 28px; }
.mv-tower__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); gap: 4px; width: 100%; height: 100%; }
.mv-tower__sq { border-radius: 8px; display: flex; align-items: flex-start; justify-content: flex-start; padding: 4px 6px; font: 700 .75rem/1 var(--mv-mono); color: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .06); }
.mv-tower__sq--band0 { background: rgba(80, 90, 110, .55); }
.mv-tower__sq--band1 { background: rgba(110, 80, 170, .5); }
.mv-tower__sq--band2 { background: rgba(150, 100, 230, .55); }
.mv-tower__sq--band3 { background: rgba(255, 216, 74, .55); color: #1b1600; }
.mv-tower__sq.is-here { box-shadow: inset 0 0 0 2px #fff; }
.mv-tower__paths { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mv-tower__rail { stroke: #e8c46a; stroke-width: .05; stroke-linecap: round; }
.mv-tower__rung { stroke: #e8c46a; stroke-width: .035; }
.mv-tower__chute { fill: none; stroke: #e0875a; stroke-width: .16; stroke-linecap: round; opacity: .85; }
.mv-tower__pawn {
  --col: -0.75;
  --row: 0;
  position: absolute;
  width: calc(100% / 6 * .5);
  height: calc(100% / 6 * .5);
  left: calc(100% / 6 * var(--col) + 100% / 6 * .25);
  bottom: calc(100% / 6 * var(--row) + 100% / 6 * .25);
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #fff6c4, var(--mv-sun) 45%, #b58d0e);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .5);
  transition: left .24s var(--mv-ease), bottom .24s var(--mv-ease);
}
.mv-diebar { display: flex; align-items: center; gap: var(--mv-s4); }
.mv-die { width: 56px; height: 56px; border-radius: 12px; background: #fbfbfd; border-bottom: 5px solid #b9c0cc; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 8px; flex: none; transition: transform .2s var(--mv-ease); }
.mv-die i { width: 9px; height: 9px; border-radius: 50%; background: #12151b; place-self: center; }
.mv-die.is-rolling { transform: rotate(30deg) scale(.92); }
.mv-die--1 i { grid-area: 2 / 2; }
.mv-die--2 i:nth-child(1) { grid-area: 1 / 1; } .mv-die--2 i:nth-child(2) { grid-area: 3 / 3; }
.mv-die--3 i:nth-child(1) { grid-area: 1 / 1; } .mv-die--3 i:nth-child(2) { grid-area: 2 / 2; } .mv-die--3 i:nth-child(3) { grid-area: 3 / 3; }
.mv-die--4 i:nth-child(1) { grid-area: 1 / 1; } .mv-die--4 i:nth-child(2) { grid-area: 1 / 3; } .mv-die--4 i:nth-child(3) { grid-area: 3 / 1; } .mv-die--4 i:nth-child(4) { grid-area: 3 / 3; }
.mv-die--5 i:nth-child(1) { grid-area: 1 / 1; } .mv-die--5 i:nth-child(2) { grid-area: 1 / 3; } .mv-die--5 i:nth-child(3) { grid-area: 2 / 2; } .mv-die--5 i:nth-child(4) { grid-area: 3 / 1; } .mv-die--5 i:nth-child(5) { grid-area: 3 / 3; }
.mv-die--6 i:nth-child(1) { grid-area: 1 / 1; } .mv-die--6 i:nth-child(2) { grid-area: 2 / 1; } .mv-die--6 i:nth-child(3) { grid-area: 3 / 1; } .mv-die--6 i:nth-child(4) { grid-area: 1 / 3; } .mv-die--6 i:nth-child(5) { grid-area: 2 / 3; } .mv-die--6 i:nth-child(6) { grid-area: 3 / 3; }

/* manual under the game */
.mv-manual { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--mv-s5); margin-top: var(--mv-s6); }
.mv-manual .mv-card--rules { grid-row: span 2; }
.mv-steps { padding-left: 1.4em; margin: 0 0 var(--mv-s4); }
.mv-steps li { margin-bottom: var(--mv-s2); color: #d7dde7; }
.mv-jumps { columns: 2; padding-left: 1.2em; margin: 0; color: #d7dde7; }
.mv-pays { width: 100%; border-collapse: collapse; font-size: .95rem; }
.mv-pays caption { text-align: left; font-weight: 700; padding-bottom: 8px; color: var(--mv-muted); font-size: .85rem; }
.mv-pays th, .mv-pays td { padding: 8px 10px; border-bottom: 1px solid var(--mv-line); text-align: left; vertical-align: middle; }
.mv-pays thead th { font: 600 .72rem/1.2 var(--mv-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--mv-muted); }
.mv-pays tbody th { font-weight: 600; }
.mv-pays tbody th span { margin-left: 8px; }
.mv-pays td small, .mv-pays th small { display: block; color: var(--mv-muted); font-size: .76rem; font-weight: 400; }
.mv-pays td { font-family: var(--mv-mono); }
.mv-pays--wide { display: block; overflow-x: auto; }
.mv-sym { width: 36px; height: 36px; vertical-align: middle; }
.mv-facts { display: grid; gap: 6px; margin: 0 0 var(--mv-s4); }
.mv-facts div { display: grid; grid-template-columns: 9em 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--mv-line); }
.mv-facts dt { color: var(--mv-muted); font-size: .9rem; }
.mv-facts dd { margin: 0; }
.mv-about { margin-top: var(--mv-s6); }

.mv-rail { margin-top: var(--mv-s6); }
.mv-rail__head { font: 600 .78rem/1 var(--mv-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mv-muted); }
.mv-rail ul { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--mv-s3); list-style: none; padding: 0; margin: 0; }
.mv-rail a { display: grid; gap: 4px; color: var(--mv-ink); text-decoration: none; font-weight: 700; font-size: .92rem; }
.mv-rail img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--mv-line); }
.mv-rail small { color: var(--mv-muted); font-weight: 400; }

/* ---------- reel slots ---------- */

.mv-machines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mv-s5); align-items: stretch; margin: var(--mv-s7) 0; }
.mv-machines__head { grid-column: 1 / -1; max-width: 760px; }
.mv-machinecard { display: grid; grid-template-columns: 230px minmax(0, 1fr); background: linear-gradient(160deg, var(--mv-panel2), var(--mv-panel) 70%); border: 1px solid var(--mv-line); border-left: 5px solid var(--mv-hue); border-radius: var(--mv-r3); overflow: hidden; }
.mv-machinecard__art img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; object-position: center top; display: block; }
.mv-machinecard__body { padding: var(--mv-s5); display: flex; flex-direction: column; gap: 4px; }
.mv-machinecard__body h3 { font-size: 1.6rem; margin: 0; }
.mv-machinecard__body p { margin: 0 0 6px; color: #cfd6e1; font-size: .95rem; }
.mv-machinecard__body .mv-facecard__acts { margin-top: auto; }
.mv-shelf--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mv-linelist { columns: 4; padding-left: 1.6em; margin: 0 0 var(--mv-s4); font: .85rem/1.6 var(--mv-mono); color: #d7dde7; }

.mv-machine { position: relative; display: grid; justify-items: center; gap: var(--mv-s3); }
.mv-machine__window {
  --cell: clamp(52px, 8.4vw, 96px);
  position: relative;
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, #05070a, #10151d 50%, #05070a);
  border: 2px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .8), 0 18px 34px rgba(0, 0, 0, .5);
}
.mv-machine--hexacore .mv-machine__window { --cell: clamp(46px, 7.2vw, 82px); }
.mv-reel {
  position: relative;
  width: var(--cell);
  height: calc(var(--cell) * var(--rows));
  margin-top: calc(var(--cell) * var(--offset));
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .07) 50%, rgba(255, 255, 255, .02));
}
.mv-machine--hexacore .mv-reel { align-self: start; }
.mv-reel__strip { display: flex; flex-direction: column; will-change: transform; transition-property: transform; transition-timing-function: cubic-bezier(.15, .85, .25, 1.02); }
.mv-reel__cell { position: relative; flex: none; width: var(--cell); height: var(--cell); display: grid; place-items: center; border-radius: 12px; }
.mv-reel__cell img { width: 84%; height: 84%; object-fit: contain; }
.mv-reel__cell.is-hit { background: rgba(255, 98, 212, .16); box-shadow: inset 0 0 0 2px rgba(255, 98, 212, .75); }
.mv-reel__pip { position: absolute; right: 4px; bottom: 4px; padding: 2px 6px; border-radius: 6px; background: var(--mv-sun); color: var(--mv-sun-ink); font: 800 .78rem/1.1 var(--mv-mono); }
.mv-machine__lines { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); pointer-events: none; overflow: visible; }
.mv-machine__line { fill: none; stroke: var(--mv-sun); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.mv-machine__banner { margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--mv-hue); color: #06111a; font: 800 .95rem/1.2 var(--mv-display); }
.mv-machine.is-bonus .mv-machine__window { border-color: var(--mv-hue); box-shadow: inset 0 0 40px rgba(0, 0, 0, .8), 0 0 0 3px var(--mv-hue); }
.mv-board--glassworks { background-image: url("../art/stage/glassworks.webp"); }
.mv-board--hexacore { background-image: url("../art/stage/hexacore.webp"); }

/* ---------- stickers ---------- */

.mv-rankcard { display: grid; grid-template-columns: auto 1fr; gap: var(--mv-s5); align-items: center; }
.mv-rankcube { width: 96px; height: 96px; }
.mv-meter { height: 14px; border-radius: 99px; background: var(--mv-bg2); overflow: hidden; margin: var(--mv-s2) 0; }
.mv-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mv-sun), var(--mv-tangerine)); transform-origin: left; }
.mv-stickerbook { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--mv-s3); list-style: none; padding: 0; margin: 0; }
.mv-stickerbook li { position: relative; padding: var(--mv-s4); border-radius: 14px; border: 2px dashed var(--mv-line); color: var(--mv-muted); min-height: 128px; }
.mv-stickerbook li b { display: block; color: var(--mv-ink); font-family: var(--mv-display); margin-bottom: 4px; }
.mv-stickerbook li small { font-size: .82rem; }
.mv-stickerbook li.is-got { border-style: solid; border-color: var(--mv-sun); background: linear-gradient(150deg, rgba(255, 98, 212, .14), transparent 70%); }
.mv-stickerbook li.is-got::after { content: "✓"; position: absolute; top: 10px; right: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--mv-sun); color: var(--mv-sun-ink); font-weight: 800; }
.mv-gamestats { width: 100%; border-collapse: collapse; }
.mv-gamestats th, .mv-gamestats td { padding: 8px 10px; border-bottom: 1px solid var(--mv-line); text-align: left; }
.mv-gamestats td { font-family: var(--mv-mono); }
.mv-tablewrap { overflow-x: auto; }

/* ---------- play well ---------- */

.mv-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mv-s4); margin: var(--mv-s4) 0; }
.mv-tool { background: var(--mv-bg2); border: 1px solid var(--mv-line); border-radius: var(--mv-r2); padding: var(--mv-s5); --mv-hue: var(--mv-care); }
.mv-tool h3 { display: flex; align-items: center; gap: 8px; color: var(--mv-care); }
.mv-tool select { margin-left: 6px; min-height: 40px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--mv-line); background: var(--mv-panel2); color: var(--mv-ink); font: inherit; }
.mv-tool__keys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--mv-s3); }
.mv-tool__keys .mv-key { min-height: 40px; padding: 8px 12px; font-size: .9rem; }
.mv-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.mv-switch input { width: 22px; height: 22px; accent-color: var(--mv-care); }
.mv-quiz fieldset { border: 1px solid var(--mv-line); border-radius: 12px; padding: var(--mv-s3) var(--mv-s4); margin: 0 0 var(--mv-s2); }
.mv-quiz legend { padding: 0 6px; font-weight: 600; }
.mv-quiz label { display: inline-flex; align-items: center; gap: 6px; margin: 6px 14px 0 0; font-size: .95rem; }
.mv-quiz input { accent-color: var(--mv-care); width: 18px; height: 18px; }
.mv-quiz__out { margin-top: var(--mv-s4); padding: var(--mv-s4); border-radius: 12px; background: #172437; color: #dce9ff; }
.mv-quiz__out:empty { display: none; }
.mv-help { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mv-s3); }
.mv-help li { background: var(--mv-bg2); border-radius: 12px; padding: var(--mv-s4); border: 1px solid var(--mv-line); }

/* ---------- forms ---------- */

.mv-form { display: grid; gap: var(--mv-s4); max-width: 640px; }
.mv-form label { display: grid; gap: 6px; font-weight: 600; }
.mv-form input, .mv-form textarea, .mv-form select { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--mv-line); background: var(--mv-bg2); color: var(--mv-ink); font: inherit; }
.mv-form textarea { min-height: 160px; resize: vertical; }
.mv-form .mv-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mv-notice { padding: var(--mv-s4); border-radius: 12px; margin-bottom: var(--mv-s4); }
.mv-notice--ok { background: rgba(155, 225, 93, .14); border: 1px solid var(--mv-lime); }
.mv-notice--bad { background: rgba(255, 92, 132, .12); border: 1px solid var(--mv-raspberry); }

/* ---------- footer ---------- */

.mv-foot { background: #07090c; border-top: 1px solid var(--mv-line); padding: var(--mv-s7) var(--mv-s5) var(--mv-s5); color: var(--mv-muted); font-size: .92rem; }
.mv-foot > div { max-width: 1240px; margin-left: auto; margin-right: auto; }
.mv-foot__notice { border: 1px solid #4a2140; background: rgba(255, 98, 212, .06); border-radius: var(--mv-r2); padding: var(--mv-s4) var(--mv-s5); margin-bottom: var(--mv-s6); color: #ecdbe7; }
.mv-foot__notice p:last-child { margin: 0; }
.mv-foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); gap: var(--mv-s5); }
.mv-foot__head { font: 700 .76rem/1.2 var(--mv-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mv-ink); }
.mv-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mv-foot a { color: #d7dde7; }
.mv-foot a:hover { color: var(--mv-sun); }
.mv-foot__base { border-top: 1px solid var(--mv-line); margin-top: var(--mv-s6); padding-top: var(--mv-s4); font-size: .85rem; }
.mv-foot__base p { margin: 0 0 6px; }

/* ---------- overlays ---------- */

.mv-gate, .mv-layer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: var(--mv-s4); background: rgba(5, 6, 9, .86); backdrop-filter: blur(6px); }
.mv-gate[hidden], .mv-layer[hidden], .mv-consent[hidden] { display: none; }
.mv-sheet { width: min(520px, 100%); background: var(--mv-panel); border: 1px solid var(--mv-line); border-top: 5px solid var(--mv-sun); border-radius: var(--mv-r3); padding: var(--mv-s6); animation: mv-rise .22s var(--mv-ease); max-height: calc(100vh - 32px); overflow: auto; }
.mv-sheet img { display: block; margin-bottom: var(--mv-s3); }
.mv-sheet__title { font: 800 1.4rem/1.2 var(--mv-display); margin-bottom: var(--mv-s3); }
.mv-sheet__keys { display: flex; flex-wrap: wrap; gap: var(--mv-s2); margin: var(--mv-s4) 0; }
.mv-sheet__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: var(--mv-s4) 0; }
#mv-pause .mv-sheet { border-top-color: var(--mv-care); }
.mv-gated body { overflow: hidden; }

.mv-consent { position: fixed; left: var(--mv-s4); right: var(--mv-s4); bottom: var(--mv-s4); z-index: 50; max-width: 620px; margin-left: auto; background: var(--mv-panel); border: 1px solid var(--mv-line); border-radius: var(--mv-r2); padding: var(--mv-s5); box-shadow: 0 20px 40px rgba(0, 0, 0, .5); animation: mv-rise .22s var(--mv-ease); }
.mv-consent__title { font-weight: 800; font-family: var(--mv-display); font-size: 1.1rem; margin-bottom: 6px; }
.mv-consent p { font-size: .92rem; }
.mv-consent__keys { display: flex; gap: var(--mv-s2); }

.mv-toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; margin: 0; max-width: min(560px, calc(100vw - 32px)); background: var(--mv-ink); color: var(--mv-bg); font-weight: 700; padding: 12px 18px; border-radius: 12px; transition: opacity .2s var(--mv-ease), transform .2s var(--mv-ease); }
.mv-toast.is-up { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Outside the Box: dot-paper skin ---------- */

.mv--outside .mv-main { background: #edeef4; color: #1b1838; border-radius: 0 0 28px 28px; max-width: none; padding-left: max(var(--mv-s5), calc((100vw - 1240px) / 2)); padding-right: max(var(--mv-s5), calc((100vw - 1240px) / 2)); background-image: radial-gradient(#c5c7d8 1.2px, transparent 1.4px); background-size: 22px 22px; }
.mv--outside .mv-main a:not(.mv-key) { color: #c2410c; }
.mv--outside .mv-main h1, .mv--outside .mv-main h2, .mv--outside .mv-main h3 { color: #1b1838; }
.mv--outside .mv-main p, .mv--outside .mv-main li, .mv--outside .mv-main dd { color: #2e2b4d; }
.mv--outside .mv-kicker { color: #c2410c; }
.mv--outside .mv-lead { color: #34315a; }
.mv--outside .mv-main .mv-key { --key: #fff; --key-edge: #1b1838; --key-ink: #1b1838; border-color: #1b1838; }
.mv--outside .mv-main .mv-key--lit { --key: #ff6a3d; --key-edge: #a83511; --key-ink: #fff; border-color: #ff6a3d; }
.mv--outside .mv-small { color: #55527a; }
.mv-crumbs2 { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--mv-s5); font: 600 .8rem/1.2 var(--mv-mono); }
.mv-crumbs2 a { padding: 6px 10px; border-radius: 8px; background: #fff; border: 1.5px solid #1b1838; text-decoration: none; }
.mv-crumbs2 a[aria-current] { background: #1b1838; color: #fff !important; }
.mv-outhero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--mv-s6); align-items: center; margin-bottom: var(--mv-s6); }
.mv-outhero img { border-radius: 20px; border: 2.5px solid #1b1838; box-shadow: 8px 8px 0 #ff6a3d; }
.mv-sorter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 var(--mv-s5); padding: var(--mv-s4); border-radius: 16px; background: #fff; border: 2px solid #1b1838; }
.mv-sorter p { margin: 0 8px 0 0; font-weight: 700; }
.mv-chip { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 2px solid #1b1838; background: #fff; color: #1b1838; font: 700 .9rem/1 var(--mv-body); cursor: pointer; }
.mv-chip.is-on { background: #1b1838; color: #fff; }
.mv-labels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mv-s5); list-style: none; padding: 0; margin: 0 0 var(--mv-s7); }
.mv-labels > li { display: flex; }
.mv-label { display: grid; grid-template-columns: 180px minmax(0, 1fr); width: 100%; background: #fff; border: 2.5px solid #1b1838; border-radius: 18px; overflow: hidden; transition: opacity .2s var(--mv-ease), transform .2s var(--mv-ease); }
.mv-label.is-faded { opacity: .35; }
.mv-label__art { display: block; border-right: 2.5px solid #1b1838; }
.mv-label__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mv-label__body { padding: var(--mv-s4) var(--mv-s5); display: flex; flex-direction: column; gap: 6px; }
.mv-label__no { font: 700 .75rem/1 var(--mv-mono); color: #c2410c !important; margin: 0; letter-spacing: .08em; }
.mv-label__body h3 { margin: 0; font-size: 1.3rem; }
.mv-label__body h3 a { color: #1b1838 !important; text-decoration: none; }
.mv-label__body p { margin: 0; font-size: .95rem; }
.mv-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 6px 0; }
.mv-specs div { background: #f2f1f8; border-radius: 8px; padding: 6px 8px; }
.mv-specs dt { font: 700 .66rem/1.2 var(--mv-mono); text-transform: uppercase; color: #6b6890; }
.mv-specs dd { margin: 2px 0 0; font-weight: 700; font-size: .86rem; color: #1b1838 !important; }
.mv-label__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.mv-label__acts .mv-key { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.mv-sitting { margin: 0 0 var(--mv-s7); padding: var(--mv-s5); border-radius: 18px; background: #1b1838; color: #fff; }
.mv-sitting h2, .mv-sitting p, .mv-sitting li { color: #fff !important; }
.mv-sitting label { font-weight: 700; }
.mv-sitting select { min-height: 40px; margin: 0 8px; padding: 6px 10px; border-radius: 8px; font: inherit; }
.mv-sitting ol { margin: var(--mv-s3) 0 0; padding-left: 1.3em; }
.mv-paper { background: #fff; border: 2.5px solid #1b1838; border-radius: 18px; padding: var(--mv-s5); margin-bottom: var(--mv-s5); }
.mv-paper > :last-child { margin-bottom: 0; }
.mv-review { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--mv-s5); align-items: start; }
.mv-review__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--mv-s6); align-items: center; margin-bottom: var(--mv-s6); }
.mv-review__head img { border-radius: 20px; border: 2.5px solid #1b1838; box-shadow: -8px 8px 0 #34d3c3; }
.mv-facts--paper div { border-bottom-color: #d9d8e6; }
.mv-facts--paper dt { color: #6b6890; }
.mv-score { font: 800 1.1rem/1 var(--mv-display); color: #1b1838; }
.mv-score b { color: #c2410c; font-size: 1.4rem; }

/* ---------- motion ---------- */

@keyframes mv-rise { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes mv-pop { from { transform: scale(.9); } to { transform: scale(1); } }
@keyframes mv-fade { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
@keyframes mv-deal { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }

.mv-calm *, .mv-calm *::before, .mv-calm *::after { animation: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.mv-resting .mv-key--go { opacity: .5; }

/* ---------- small screens ---------- */

@media (max-width: 1080px) {
  .mv-top { grid-template-columns: auto 1fr; }
  .mv-tabs { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--mv-s5) * -1); padding: 0 var(--mv-s5); }
  .mv-hud { justify-self: end; }
  .mv-rules, .mv-reads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-play__grid { grid-template-columns: minmax(0, 1fr); }
  .mv-deck { position: static; }
  .mv-rail ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mv-machinecard { grid-template-columns: 170px minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .mv-home, .mv-session, .mv-strip2, .mv-manual, .mv-outhero, .mv-review, .mv-review__head { grid-template-columns: minmax(0, 1fr); }
  .mv-manual .mv-card--rules { grid-row: auto; }
  .mv-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-labels { grid-template-columns: minmax(0, 1fr); }
  .mv-machines, .mv-shelf--two { grid-template-columns: minmax(0, 1fr); }
  .mv-linelist { columns: 2; }
  .mv-tools, .mv-help { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .mv-main { padding: var(--mv-s5) var(--mv-s4) var(--mv-s7); }
  .mv-top { padding: var(--mv-s2) var(--mv-s4); gap: var(--mv-s2); }
  .mv-tabs { margin: 0 calc(var(--mv-s4) * -1); padding: 0 var(--mv-s4); }
  .mv-tab { padding: 8px 10px; font-size: .88rem; }
  .mv-brand span { display: none; }
  .mv-purse small { display: none; }
  .mv-key--pause span { display: none; }
  .mv-strip { font-size: .66rem; gap: 2px 10px; }
  .mv-shelf, .mv-rules, .mv-reads, .mv-foot__cols { grid-template-columns: minmax(0, 1fr); }
  .mv-cubies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-strip2__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-facecard { padding: var(--mv-s5); }
  .mv-board { min-height: 440px; }
  .mv-card-face { width: 56px; height: 82px; font-size: 1rem; padding: 4px 5px; }
  .mv-card-face__s { font-size: 1.7rem; }
  .mv-label { grid-template-columns: minmax(0, 1fr); }
  .mv-machinecard { grid-template-columns: minmax(0, 1fr); }
  .mv-machinecard__art img { min-height: 0; aspect-ratio: 4 / 3; }
  .mv-machine__window { gap: 4px; padding: 8px; --cell: calc((100vw - 92px) / 5); }
  .mv-machine--hexacore .mv-machine__window { --cell: calc((100vw - 92px) / 5); }
  .mv-machine__lines { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
  .mv-label__art { border-right: 0; border-bottom: 2.5px solid #1b1838; aspect-ratio: 4 / 3; }
  .mv-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-rail ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-facts div { grid-template-columns: 7.5em 1fr; }
  .mv-track__side, .mv-lane { grid-template-columns: 30px repeat(6, 1fr) 30px; gap: 3px; }
  .mv-track__setback:first-child { grid-column: 2; }
  .mv-lane { height: 48px; }
  .mv-lane__ace, .mv-track__setback .mv-card-face { width: 30px; height: 44px; font-size: .62rem; padding: 2px 3px; }
  .mv-lane__ace .mv-card-face__s, .mv-track__setback .mv-card-face__s { font-size: .95rem; }
  .mv-track__setback { height: 46px; }
  .mv-consent__keys .mv-key { flex: 1; }
}
