/* Mortal Caps press kit. Look: the game's "comic sticker" UI on the review page's ink-purple ground; one accent (yellow), cyan only for focus.
   Radii: containers 16px, buttons 12px, chips 10px, caps round. Language: html.ru shows .ru and hides .en (default EN). */
:root {
  --ink: #17111e; --ink2: #1d1526; --panel: #241a2e; --panel2: #2f2340; --line: #3a2d48; --k: #0b0710;
  --text: #fff3da; --muted: #bdafc9; --yellow: #ffd02e; --yellow2: #ffe476; --focus: #34c6f2;
  --display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --body: "Rubik", "Segoe UI", system-ui, sans-serif;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --ease: cubic-bezier(.16, 1, .3, 1); --back: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.55 var(--body); overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 208, 46, .06) 1.3px, transparent 1.7px); background-size: 15px 15px; }
html.ru .en, html.ja .en, html:not(.ru) .ru, html:not(.ja) .ja, html.ja .nja { display: none !important; }
/* Japanese (27.11.2026): the game's own faces, cut to the characters on the page (vendor/fonts/ja.css, built by make_site.py) */
html.ja { --display: "Dela Gothic One", "MC Dela JA", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --body: "Rubik", "MC Rounded JA", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif; }
html.ja body { line-break: strict; }
html.ja .sh, html.ja h1, html.ja h3 { letter-spacing: 0; }
html.ja h1 { word-break: keep-all; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--yellow); color: var(--k); padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding-inline: var(--gut); }

/* top bar: transparent over the hero, solid ink once the hero scrolls away */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 18px;
  padding-inline: var(--gut); transition: background-color .3s, box-shadow .3s; }
.top.solid { background: rgba(23, 17, 30, .94); box-shadow: 0 2px 0 var(--k), 0 4px 0 var(--line); }
@supports (backdrop-filter: blur(8px)) { .top.solid { background: rgba(23, 17, 30, .82); backdrop-filter: blur(10px); } }
.top-logo { flex: none; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.top.solid .top-logo { opacity: 1; transform: none; pointer-events: auto; }
.top-logo img { height: 38px; width: auto; }
.top-links { display: flex; gap: 4px 20px; margin-left: auto; font-weight: 600; font-size: 14.5px; }
.top-links a { text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.top-links a:hover { color: var(--text); border-color: var(--yellow); }
.lang { display: flex; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; flex: none; background: var(--ink2); }
.lang button { font: 700 13px var(--body); color: var(--muted); background: none; border: 0; padding: 6px 10px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--yellow); color: var(--k); }
.top .btn { flex: none; }
@media (max-width: 1080px) { .top-links { display: none; } .lang { margin-left: auto; } }
@media (max-width: 560px) { .top .btn .lbl { display: none; } .top .btn { padding: 9px 12px; } }

/* buttons and chips: stickers with a hard ink shadow that press in */
.btn { --sh: 4px 5px 0 var(--k); display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; text-decoration: none; cursor: pointer;
  font: 400 15px/1 var(--display); letter-spacing: .01em; color: var(--k); background: var(--yellow);
  border: 3px solid var(--k); border-radius: 12px; padding: 13px 18px; box-shadow: var(--sh);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .2s; }
.btn small { font: 600 12.5px var(--body); opacity: .72; }
.btn .ph { font-size: 19px; }
.btn:hover { transform: translate(-1px, -2px); box-shadow: 6px 8px 0 var(--k); background: var(--yellow2); }
.btn:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--k); transition-duration: .06s; }
.btn-ghost { background: var(--text); }
.btn-ghost:hover { background: #fff; }
.top .btn { font-size: 13px; padding: 9px 13px; border-width: 2px; box-shadow: 3px 4px 0 var(--k); }
.chip { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; white-space: nowrap; cursor: pointer;
  font: 600 13.5px/1.2 var(--body); color: var(--text); background: var(--panel2); border: 2px solid var(--line); border-radius: 10px; padding: 7px 11px;
  transition: border-color .2s, background-color .2s, transform .15s var(--ease); }
.chip small { font-weight: 500; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.chip .ph { font-size: 16px; color: var(--yellow); }
.chip:hover { border-color: var(--yellow); background: #382a4c; }
.chip:active { transform: translateY(1px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* hero */
.hero { position: relative; min-height: min(94dvh, 920px); display: grid; align-items: center; padding: 96px var(--gut) 72px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(23, 17, 30, .94) 0%, rgba(23, 17, 30, .78) 34%, rgba(23, 17, 30, .18) 66%, rgba(23, 17, 30, .05) 100%),
              linear-gradient(0deg, var(--ink) 0%, rgba(23, 17, 30, 0) 28%); }
.hero-in { max-width: 1240px; width: 100%; margin: 0 auto; display: grid; gap: 18px; justify-items: start; }
.hero-logo { width: min(470px, 82vw); height: auto; transform: rotate(-3deg); filter: drop-shadow(6px 8px 0 rgba(11, 7, 16, .85)); margin-bottom: 6px; }
.hero h1 { margin: 0; font: 400 clamp(30px, 4.6vw, 56px)/1.05 var(--display); color: var(--yellow); text-shadow: 3px 4px 0 var(--k); text-wrap: balance; max-width: 15ch; }
.hero-sub { margin: 0; font-size: clamp(17px, 1.6vw, 20px); max-width: 34ch; color: var(--text); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
@media (max-width: 760px) {
  .hero { align-items: end; min-height: min(100dvh, 760px); }
  .hero::after { background: linear-gradient(0deg, var(--ink) 4%, rgba(23, 17, 30, .86) 46%, rgba(23, 17, 30, .25) 100%); }
}
@media (prefers-reduced-motion: no-preference) {   /* .js is set in <head> before paint, so this never waits for site.js */
  .js .hero-logo { animation: pop .7s var(--back) both; }
  .js .hero h1 { animation: up .6s var(--ease) .18s both; }
  .js .hero-sub { animation: up .6s var(--ease) .28s both; }
  .js .ctas { animation: up .6s var(--ease) .38s both; }
}
@keyframes pop { from { opacity: 0; transform: rotate(-9deg) scale(.6); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* sections */
.sec { position: relative; padding-block: clamp(52px, 8vw, 96px) 0; scroll-margin-top: 72px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; margin-bottom: 14px; }
.sh { display: inline-block; margin: 0 0 0 4px; font: 400 clamp(24px, 3.2vw, 38px)/1.1 var(--display); color: var(--k); background: var(--yellow);
  padding: .16em .55em .22em; border: 3px solid var(--k); border-radius: 12px; box-shadow: 0 0 0 4px var(--text), 7px 9px 0 4px var(--k);
  transform: rotate(-1.6deg); }
.sec:nth-of-type(even) .sh { transform: rotate(1.2deg); }
.note { margin: 18px 0 26px; color: var(--muted); max-width: 70ch; }
.note b { color: var(--text); font-weight: 600; }
.js .rv { opacity: 0; transform: translateY(22px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } }

/* fact sheet */
.facts-side { position: sticky; top: 88px; }
.facts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 30px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.tile { background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px 13px; min-width: 0; }
.tile.wide { grid-column: 1 / -1; }
.tile dt { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.tile dd { margin: 2px 0 0; font-weight: 600; font-size: 16.5px; overflow-wrap: anywhere; }
.tile dd a { text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.tile.hot { background: var(--yellow); border-color: var(--k); color: var(--k); box-shadow: 4px 5px 0 var(--k); }
.tile.hot dt { color: rgba(11, 7, 16, .7); }
.tile.hot dd { font: 400 22px/1.15 var(--display); }
.tiles-dl { margin-top: 14px; }
.ftext { display: grid; gap: 14px; }
.oneline { margin: 0; font-size: clamp(19px, 1.9vw, 23px); line-height: 1.45; font-weight: 500; }
.ftext h3 { margin: 14px 0 0; font: 400 20px var(--display); color: var(--yellow); }
.ftext p { margin: 0; max-width: 68ch; }
.feats { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feats li { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: start; background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 12px; font-size: 15px; line-height: 1.45; }
.feats li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.feats img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(2px 3px 0 var(--k)); }
.feats b { display: block; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.feats span { color: var(--muted); }
.closing { font: 400 18px var(--display); color: var(--yellow); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr; } .facts-side { position: static; } }
@media (max-width: 600px) { .feats { grid-template-columns: 1fr; } }

/* trailer */
.player { position: relative; aspect-ratio: 16 / 9; border: 3px solid var(--k); border-radius: 16px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 3px var(--line), 10px 12px 0 var(--k); margin-top: 30px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: end start; padding: clamp(14px, 3.5%, 34px); }
.play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.play:hover img { transform: scale(1.025); filter: brightness(1.06); }
.play-btn { position: relative; width: clamp(64px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--k); border: 4px solid var(--k); box-shadow: 0 0 0 5px var(--text), 6px 8px 0 5px var(--k);
  font-size: clamp(28px, 4vw, 46px); transition: transform .25s var(--back); }
.play:hover .play-btn { transform: scale(1.08) rotate(-4deg); }
.play:focus-visible .play-btn { outline: 3px solid var(--focus); outline-offset: 8px; }
.under { margin-top: 26px; }

/* screenshots: one big tile and twelve small ones (4 columns, 4 rows) */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.shot { position: relative; margin: 0; min-width: 0; }
.shot.big { grid-column: span 2; grid-row: span 2; }
.zoom { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; border: 3px solid var(--k); border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 2px var(--line); transition: transform .3s var(--ease), box-shadow .3s; background: var(--k); }
.zoom img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.zoom:hover { transform: translate(-2px, -3px); box-shadow: 0 0 0 2px var(--yellow), 6px 8px 0 2px var(--k); }
.zoom:hover img { transform: scale(1.03); }
.zoom:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shot .dl { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--yellow); color: var(--k); border: 2px solid var(--k); box-shadow: 2px 3px 0 var(--k); font-size: 19px;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s var(--ease); }
.shot:hover .dl, .shot .dl:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .shot .dl { opacity: 1; transform: none; } }
@media (max-width: 860px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shot.big { grid-row: span 1; } }

/* loops */
.loops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.loop { background: var(--panel); border: 2px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.loop video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--k); }
.loop-meta { padding: 11px 12px 13px; display: grid; gap: 9px; align-content: start; }
.loop-meta .t { font-weight: 600; }
@media (max-width: 960px) { .loops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .loops { grid-template-columns: 1fr; } }

/* caps: a sticker stage with slow rays; hover or tap flips a cap to its series back */
.stage { position: relative; isolation: isolate; overflow: hidden; border: 3px solid var(--k); border-radius: 16px; background: var(--panel);
  box-shadow: 0 0 0 3px var(--line); padding: clamp(26px, 4vw, 46px) clamp(14px, 3vw, 36px); }
.stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; z-index: -1;
  background: repeating-conic-gradient(rgba(255, 208, 46, .075) 0 6deg, transparent 6deg 15deg); }
@media (prefers-reduced-motion: no-preference) { .stage::before { animation: spin 90s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.caps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 30px); }
.cap { display: grid; justify-items: center; gap: 10px; text-align: center; min-width: 0; }
.flip { all: unset; display: block; width: 100%; max-width: 190px; aspect-ratio: 1; perspective: 900px; cursor: pointer; border-radius: 50%; transform: rotate(var(--r, 0deg)); }
.flip:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
.flip-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .75s var(--back); }
.flip img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 0 0 4px var(--text), 0 0 0 7px var(--k), 6px 9px 0 7px rgba(11, 7, 16, .85); }
.flip .back { transform: rotateY(180deg); }
@media (hover: hover) { .cap:hover .flip-in { transform: rotateY(180deg); } }
.cap.flipped .flip-in { transform: rotateY(180deg); }
@media (hover: hover) { .cap.flipped:hover .flip-in { transform: none; } }
.cap-name { font-weight: 700; line-height: 1.25; margin-top: 8px; }
.cap-name small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
@media (max-width: 960px) { .caps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.poster { margin: 22px 0 0; display: grid; gap: 12px; }
.poster .zoom img { aspect-ratio: auto; height: auto; }
.poster figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); }

/* logo and key art */
.art { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.art figure { margin: 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.art figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.art figcaption .t { font-weight: 600; }
.checker .zoom, .zoom.chk { background: repeating-conic-gradient(#3a2d48 0 25%, #2a2034 0 50%) 0 0 / 24px 24px; }
.checker .zoom img { object-fit: contain; padding: 6% 9%; }
@media (max-width: 760px) { .art { grid-template-columns: 1fr; } }

/* Steam images: justified rows, each figure as wide as its aspect ratio */
.rows { display: flex; flex-wrap: wrap; gap: 18px 16px; }
.rows::after { content: ""; flex: 1e4 1 0; }
.rows figure { flex: var(--a) 1 calc(var(--a) * 200px); max-width: var(--mw); margin: 0; display: grid; gap: 9px; align-content: start; min-width: 0; }
.rows .zoom img { aspect-ratio: var(--a); height: auto; object-fit: contain; }
.rows figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .rows figure { flex-basis: 100%; } }

/* contact */
.contact-card { margin-top: 30px; display: grid; align-items: start; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; }
.mailbox { background: var(--yellow); color: var(--k); border: 3px solid var(--k); border-radius: 16px; box-shadow: 0 0 0 4px var(--text), 9px 11px 0 4px var(--k);
  padding: clamp(20px, 3vw, 32px); display: grid; gap: 12px; align-content: start; transform: rotate(-.6deg); }
.mailbox .lbl { font-weight: 700; font-size: 14px; opacity: .75; }
.mail { font: 400 clamp(17px, 3.1vw, 34px)/1.2 var(--display); color: var(--k); text-decoration: none; }
.mail:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.mailbox p { margin: 0; max-width: 46ch; }
.mailbox .row { display: flex; flex-wrap: wrap; gap: 10px; }
.mailbox .chip { background: var(--k); color: var(--text); border-color: var(--k); }
.mailbox .chip:hover { background: #2a1f37; }
.socials { display: grid; gap: 10px; align-content: start; }
.soc { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; text-decoration: none; background: var(--panel); border: 2px solid var(--line);
  border-radius: 16px; padding: 10px 14px; transition: border-color .2s, transform .2s var(--ease); }
.soc:hover { border-color: var(--yellow); transform: translateX(3px); }
.soc .ph { font-size: 26px; color: var(--yellow); justify-self: center; }
.soc b { display: block; font-weight: 700; }
.soc span { color: var(--muted); font-size: 14px; }
.soc .go { font-size: 18px; color: var(--muted); }
.terms { margin: 28px 0 0; color: var(--muted); }
@media (max-width: 820px) { .contact-card { grid-template-columns: 1fr; } }
footer { position: relative; z-index: 1; margin-top: clamp(56px, 8vw, 96px); padding: 26px var(--gut) 34px; border-top: 2px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* lightbox */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 8, 17, .96); color: var(--text); }
.lb::backdrop { background: rgba(12, 8, 17, .9); }
.lb[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-fig { margin: 0; min-height: 0; display: grid; place-items: center; padding: 58px max(64px, var(--gut)) 10px; }
.lb-fig img { max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 10px; }
.lb-fig img.alpha { background: repeating-conic-gradient(#3a2d48 0 25%, #2a2034 0 50%) 0 0 / 24px 24px; }
.lb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding: 12px var(--gut) max(18px, env(safe-area-inset-bottom, 0px)); }
.lb-cap { font-weight: 600; }
.lb-n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--line);
  background: var(--panel2); color: var(--text); font-size: 22px; cursor: pointer; }
.lb-btn:hover { border-color: var(--yellow); }
.lb-close { top: 10px; right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-fig { padding: 62px 8px 8px; } .lb-prev, .lb-next { top: auto; bottom: 74px; transform: none; } }
