/* Rudderberry Games: "Cinema" (DESIGN.md). Dark, full-bleed, the games' art first; midnight and berry from the seal. */
@font-face {
  font-family: "Outfit";
  src: url("/assets/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("/assets/baskerville.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --tile: #14161d;
  --raised: #1d2029;
  --line: rgba(239, 232, 216, 0.1);
  --line-strong: rgba(239, 232, 216, 0.2);
  --text: #efe8d8;
  --soft: #b9b1a7;
  --faint: #8c857d;
  --cream: #efe8d8;
  --berry: #76223f;
  --berry-hi: #d27893;
  --olive: #a9bd8f;
  --display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --serif: "Libre Baskerville", Baskerville, Georgia, serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: max(20px, 4vw);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -0.015em; line-height: 1.06; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--berry-hi); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
svg { display: block; }
.pad { padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--tile); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.seal { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.mono { filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45)); }

/* ---------------------------------------------------------------- buttons, tags */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0;
  background: rgba(239, 232, 216, 0.1); text-decoration: none; font-weight: 650; font-size: 15px; cursor: pointer;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: rgba(239, 232, 216, 0.18); }
.btn:active { transform: scale(0.97); }
.btn.solid, .btn.primary { background: var(--cream); color: #161214; }
.btn.solid:hover, .btn.primary:hover { background: #fff; }
.btn.quiet, .btn.ghost { background: rgba(239, 232, 216, 0.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.big { min-height: 52px; padding: 0 26px; font-size: 16px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12.5px; line-height: 1; padding: 6px 10px; border-radius: 6px; background: rgba(239, 232, 216, 0.08); color: var(--soft); }
.devices { display: inline-flex; gap: 4px; color: var(--faint); }
.devices svg { width: 18px; height: 18px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--text); text-decoration: none; }
.more-link svg { width: 16px; height: 16px; transition: transform 0.18s var(--ease); }
.more-link:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- header, footer */
.top { position: sticky; top: 0; z-index: 20; padding-top: var(--safe-top); background: rgba(11, 12, 16, 0.82); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); transition: background 0.25s; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; max-width: none; }
.page-home .top { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(11, 12, 16, 0.85), rgba(11, 12, 16, 0)); -webkit-backdrop-filter: none; backdrop-filter: none; }
.page-home .top.scrolled, .top.scrolled { background: rgba(11, 12, 16, 0.88); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .name { font: 400 21px/1 var(--serif); letter-spacing: -0.01em; }
.brand .sub { font: 600 10.5px/18px var(--display); letter-spacing: 0.28em; text-transform: uppercase; color: var(--soft); padding-left: 12px; margin-left: 2px; border-left: 1px solid rgba(239, 232, 216, 0.25); }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a, .top nav button { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--soft); font-family: var(--display); font-weight: 500; font-size: 15px; background: none; border: 0; cursor: pointer; }
.top nav a:hover, .top nav button:hover, .top nav a[aria-current] { color: var(--text); }
.top nav .install { color: var(--berry-hi); }
@media (max-width: 640px) {
  .top-in { height: 60px; }
  .brand .name { font-size: 18px; }
  .brand .sub { padding-left: 10px; letter-spacing: 0.24em; }
  .brand img { height: 26px; width: auto; }
  .top nav a:not([href="/about/"]) { display: none; }
}

.foot { margin-top: 88px; border-top: 1px solid var(--line); padding: 26px 0 calc(30px + var(--safe-bottom)); color: var(--faint); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; max-width: none; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot nav a { color: var(--soft); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.stats-line { flex-basis: 100%; }
.stats-line button { background: none; border: 0; padding: 0; color: var(--soft); text-decoration: underline; cursor: pointer; }

/* ---------------------------------------------------------------- consent */
.consent { position: fixed; z-index: 40; left: 50%; bottom: calc(16px + var(--safe-bottom)); transform: translateX(-50%); width: min(540px, calc(100% - 32px)); padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(20, 22, 29, 0.92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9); }
.consent p { margin-bottom: 14px; color: var(--soft); font-size: 14.5px; }
.consent strong { color: var(--text); }
.consent a { color: var(--text); }
.consent div { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------------- home: the featured game */
.hero { position: relative; height: min(88vh, 860px); min-height: 540px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-art img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.9s var(--ease); }
@media (min-width: 900px) { .hero-art img { left: auto; right: 0; width: 84%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); } }
.hero-art img.next { opacity: 0; }
.hero-art::after { z-index: 1; }
.hero-copy > * { transition: opacity 0.2s var(--ease); }
.hero-copy.swap > * { opacity: 0; }
.hero-art::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(0deg, var(--bg) 1%, rgba(11, 12, 16, 0.6) 30%, rgba(11, 12, 16, 0) 60%),
  linear-gradient(90deg, rgba(11, 12, 16, 0.8), rgba(11, 12, 16, 0) 58%); }
.hero-copy { max-width: calc(600px + 2 * var(--pad)); padding-bottom: 28px; }
.kicker { color: var(--soft); font-size: 14px; margin-bottom: 10px; }
.hero h1 { font-size: clamp(46px, 7vw, 88px); }
.hero-text { margin: 14px 0 24px; color: var(--soft); font-size: 18px; max-width: 50ch; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.picker-wrap { display: flex; justify-content: flex-end; padding-bottom: 40px; }
.picker { display: flex; gap: 10px; }
.picker button { width: 112px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; opacity: 0.55; transition: opacity 0.2s, border-color 0.2s; }
.picker button { position: relative; }
.picker button img { width: 100%; height: 100%; object-fit: cover; }
.picker button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--cream); }
.picker button.ticking::after { animation: hero-tick 9s linear forwards; }
.hero.paused .picker button.ticking::after { animation-play-state: paused; }
@keyframes hero-tick { from { width: 0; } to { width: 100%; } }
.picker button[aria-pressed="true"], .picker button:hover, .picker button:focus-visible { opacity: 1; border-color: var(--cream); }
@media (min-width: 900px) {
  .picker-wrap { position: absolute; right: 0; bottom: 0; padding-bottom: 36px; }
  .hero-copy { padding-bottom: 36px; }
}
@media (max-width: 759px) {
  .hero { height: auto; min-height: 0; padding-top: calc(60px + var(--safe-top)); }
  .hero-art { position: relative; aspect-ratio: 16 / 11; margin-bottom: -28px; }
  .hero-art::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 12, 16, 0) 42%); }
  .hero h1 { font-size: 42px; }
  .hero-text { font-size: 16.5px; }
  .btns .btn { flex: 1 1 auto; }
  .picker-wrap { justify-content: stretch; padding-top: 18px; padding-bottom: 8px; }
  .picker { width: 100%; }
  .picker button { flex: 1; width: auto; }
}

.intro { color: var(--faint); font-size: 15px; margin-top: 18px; }

/* ---------------------------------------------------------------- home: rows */
.row { margin-top: 44px; }
.row h2, .lower h2 { font-size: 22px; margin-bottom: 14px; }
.rail { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 380px); gap: 14px; overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.resume { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 10px; background: var(--tile); text-decoration: none; transition: background 0.2s; }
.resume:hover { background: var(--raised); }
.resume img { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.resume b { display: block; font: 600 18px/1.2 var(--display); }
.resume span { color: var(--soft); font-size: 13.5px; }
.resume .go { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: #161214; flex: none; }
.resume .go svg { width: 16px; height: 16px; }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
@media (max-width: 759px) {
  .tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); }
  .tiles::-webkit-scrollbar { display: none; }
  .tiles .card { scroll-snap-align: start; }
}
.card a { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--tile); text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.card a:hover { transform: scale(1.03); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9); z-index: 2; }
.card-art, .card-art img, .card-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-art video { opacity: 0; transition: opacity 0.4s var(--ease); }
.card-art video.on { opacity: 1; }
.card-over { position: absolute; inset: auto 0 0; padding: 44px 16px 14px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0)); }
.card-over h3 { font-size: 19px; line-height: 1.15; }
.card-over span { color: var(--soft); font-size: 13px; }
.card-over .played { display: block; color: var(--cream); opacity: 0.8; font-size: 12.5px; margin-top: 2px; }
.badge { position: absolute; top: 10px; left: 10px; font: 700 11px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: rgba(11, 12, 16, 0.8); }
.badge.new { color: var(--olive); }
.badge.updated { color: var(--berry-hi); }

.lower { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; margin-top: 60px; }
@media (max-width: 900px) { .lower { grid-template-columns: 1fr; gap: 40px; } }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--soft); }
.feed time { color: var(--faint); font-size: 14px; }
.feed a { text-decoration: none; }
.feed a:hover { color: var(--text); }
.feed b { color: var(--text); font-weight: 650; }
.studio p { color: var(--soft); font-size: 17px; margin-bottom: 12px; max-width: 48ch; }
.studio a { color: var(--text); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- game page */
.game-top { padding-top: 16px; }
.stage { position: relative; aspect-ratio: 16 / 9; max-height: 78vh; width: 100%; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.stage-cover, .stage-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(20deg, rgba(11, 12, 16, 0.8) 0%, rgba(11, 12, 16, 0.1) 40%, rgba(11, 12, 16, 0) 60%); }
.stage-play { position: absolute; left: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 28px 0 22px; border: 0; border-radius: 10px; background: var(--cream); color: #161214; font: 700 17px/1 var(--body); text-decoration: none; cursor: pointer; transition: background 0.18s, transform 0.18s; }
.stage-play svg { width: 20px; height: 20px; }
.stage-play small { font-weight: 500; font-size: 13px; color: #5d5558; }
.stage-play:hover { background: #fff; transform: translateY(-1px); }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.stage.playing { cursor: auto; }
.stage.playing .stage-cover, .stage.playing .stage-play { display: none; }
.stage:fullscreen { max-height: none; border-radius: 0; }
.stage-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 20px 0 0; }
.stage-bar > .icon { width: 56px; height: 56px; border-radius: 14px; }
.stage-title { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.stage-title h1 { font-size: clamp(28px, 3.6vw, 40px); }
.stage-meta { display: flex; align-items: center; gap: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 759px) {
  .game-top { padding-top: 10px; }
  .stage { aspect-ratio: 4 / 5; max-height: 64vh; }
  .stage-play, .stage-cover::after { display: none; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 0; padding: 0 10px; font-size: 14px; }
}

.game-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; margin-top: 44px; }
@media (max-width: 979px) { .game-body { grid-template-columns: 1fr; gap: 40px; } }
.game-body article { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.game-body article h2 { font-size: 22px; margin-top: 24px; }
.game-body article > p { color: var(--soft); font-size: 16.5px; }
.lede { color: var(--text) !important; font-size: 19px !important; line-height: 1.5; }
.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.control { background: var(--tile); border-radius: 10px; padding: 16px 18px; }
.control h3 { font: 650 12px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.control ul { margin: 0; padding: 0 0 0 18px; color: var(--soft); font-size: 15px; display: grid; gap: 4px; }
.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.shots img { height: 300px; width: auto; border-radius: 10px; scroll-snap-align: start; flex: none; }
@media (max-width: 759px) { .shots img { height: 240px; } }
.updates { list-style: none; margin: 0; padding: 0; }
.updates li { display: grid; grid-template-columns: 90px 1fr; gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.updates time { color: var(--faint); font-size: 14px; }
.updates b { font-weight: 650; }
.updates p { color: var(--soft); font-size: 15.5px; }
.game-body aside { align-self: start; position: sticky; top: 92px; display: flex; flex-direction: column; gap: 12px; }
.game-body aside h2 { font-size: 20px; }
@media (max-width: 979px) { .game-body aside { position: static; } }

/* compact game rows: the page's other games, the sheets */
.minis { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini a { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 10px; background: var(--tile); text-decoration: none; transition: background 0.2s; }
.mini a:hover { background: var(--raised); }
.mini .icon { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.mini-text { display: flex; flex-direction: column; min-width: 0; }
.mini-text b { font: 600 17px/1.25 var(--display); display: flex; align-items: center; gap: 8px; }
.mini-text > span { color: var(--soft); font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-go { margin-left: auto; color: var(--faint); flex: none; }
.mini-go svg { width: 18px; height: 18px; }
.mini .mark { font: 650 11px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 6px; border-radius: 5px; background: rgba(239, 232, 216, 0.08); color: var(--faint); }
.mini .mark.new { color: var(--olive); }

.sticky-play { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; padding: 12px var(--pad) calc(12px + var(--safe-bottom)); background: linear-gradient(0deg, var(--bg) 55%, rgba(11, 12, 16, 0)); display: flex; justify-content: center; }
.sticky-play .btn { width: min(480px, 100%); }
@media (min-width: 900px) and (pointer: fine) { .sticky-play { display: none !important; } }
@media (max-width: 899px), (pointer: coarse) { .page-game .foot { padding-bottom: calc(110px + var(--safe-bottom)); } }

/* ---------------------------------------------------------------- about, privacy */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 14px; padding-top: 40px; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.prose h2 { font-size: 21px; margin-top: 22px; }
.prose p, .prose td { color: var(--soft); font-size: 16.5px; }
.prose a { color: var(--text); text-underline-offset: 3px; }
.prose .minis a { color: inherit; }
.prose-mark { margin-bottom: 4px; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th { text-align: left; color: var(--faint); font-weight: 500; font-size: 13px; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.prose code { font-size: 13.5px; color: var(--text); background: rgba(239, 232, 216, 0.08); padding: 2px 6px; border-radius: 5px; white-space: nowrap; }

/* ---------------------------------------------------------------- the player (phones and tablets) */
.player { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; flex-direction: column; }
.player-bar { flex: none; display: flex; align-items: center; gap: 8px; height: calc(48px + var(--safe-top)); padding: var(--safe-top) max(6px, env(safe-area-inset-right)) 0 max(6px, env(safe-area-inset-left)); background: var(--bg); border-bottom: 1px solid var(--line); }
.player-bar button { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-weight: 650; font-size: 15px; }
.player-bar button:active { background: rgba(239, 232, 216, 0.1); }
.player-bar .back svg { width: 22px; height: 22px; }
.player-bar .games { margin-left: auto; }
.player-bar .games svg { width: 18px; height: 18px; }
.player-name { display: flex; align-items: center; gap: 8px; min-width: 0; font: 600 16px/1 var(--display); }
.player-name img { width: 26px; height: 26px; border-radius: 7px; }
.player-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player iframe { flex: 1; width: 100%; border: 0; background: #000; }
.player-tab { display: none; position: absolute; left: env(safe-area-inset-left); top: 50%; transform: translateY(-50%); z-index: 2; width: 32px; height: 64px; padding: 0 0 0 3px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 12px 12px 0; background: rgba(11, 12, 16, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; }
.player-tab img { width: auto; height: 18px; }
@media (orientation: landscape) and (max-height: 520px) {
  .player-bar { display: none; }
  .player-tab { display: grid; place-items: center; }
}

/* ---------------------------------------------------------------- sheets (other games, after a game, menu) */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.22s var(--ease); }
.sheet-wrap.open { opacity: 1; }
.sheet { width: min(540px, 100%); max-height: min(86vh, 760px); overflow-y: auto; background: var(--tile); border-radius: 18px 18px 0 0; padding: 10px 18px calc(22px + var(--safe-bottom)); transform: translateY(24px); transition: transform 0.26s var(--ease); box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.8); }
.sheet-wrap.open .sheet { transform: none; }
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 12px; }
@media (min-width: 700px) {
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 18px; padding-bottom: 22px; }
  .sheet::before { display: none; }
}
.sheet .mini a { background: var(--raised); }
.sheet .mini a:hover { background: #262a35; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 6px 0 16px; }
.sheet-head h2 { font-size: 22px; }
.sheet-head p { color: var(--soft); font-size: 15px; margin-top: 6px; }
.sheet-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(239, 232, 216, 0.08); cursor: pointer; display: grid; place-items: center; font-size: 22px; line-height: 1; }
.sheet .minis { margin-bottom: 16px; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sheet-actions .btn { flex: 1 1 auto; }
.menu-list { display: grid; gap: 8px; margin-bottom: 4px; }
.menu-list .btn { justify-content: flex-start; width: 100%; min-height: 52px; }

.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translate(-50%, 12px); padding: 12px 18px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line-strong); font-weight: 650; font-size: 14.5px; opacity: 0; transition: opacity 0.2s, transform 0.2s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

body.locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .card a:hover { transform: none; }
  .card-art video { display: none; }
}
