@font-face {
  font-family: "Miyuki Text";
  src: url("assets/miyuki-text.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1e2a50;
  --muted: #4f5e7d;
  --blue: #2758bd;
  --paper: #fcfbff;
  --line: #dde6f8;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --spring: cubic-bezier(.22, .7, .25, 1);
  --header-height: 76px;
  font-family: "Miyuki Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); background: var(--paper); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #375ee1; outline-offset: 4px; }
::selection { color: #1a2e64; background: #d8e7ff; }

.shell { width: min(1184px, calc(100% - 100px)); margin-inline: auto; }
.symbol-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.skip-link {
  position: fixed; z-index: 20; inset: 10px auto auto 10px; transform: translateY(-150%);
  border-radius: 12px; padding: 10px 16px; background: #fff; font-weight: 700;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky; z-index: 10; top: 0;
  background: #f8fafff2; border-bottom: 1px solid #e3eaf8;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.header-inner {
  min-height: var(--header-height); display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 20px;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.wordmark-icon {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 14px; color: white; font-size: 22px;
  background: linear-gradient(145deg, #45c6ff 2%, #4b78f6 78%);
  box-shadow: inset 0 0 0 1px #ffffff65, 0 4px 0 #2864c9, 0 8px 17px #356ddc28;
  transform: rotate(-7deg); transition: transform .35s var(--spring);
}
.wordmark:hover .wordmark-icon { transform: rotate(5deg); }
.wordmark-type { display: grid; gap: 4px; white-space: nowrap; }
.wordmark-type strong { font-size: 16px; font-weight: 850; line-height: 1; letter-spacing: .015em; }
.wordmark-type small { font: 700 9px/1.1 var(--mono); letter-spacing: .16em; color: #53658e; }
.site-nav { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 100px; border: 1px solid #e5eaf7; background: #fff9; }
.site-nav a {
  display: grid; min-height: 40px; place-items: center; padding: 0 17px;
  color: #546283; font-size: 13px; font-weight: 650; border-radius: 100px;
  white-space: nowrap; transition: color .2s, background-color .2s;
}
.site-nav a:hover, .site-nav a[aria-current] { color: #2455af; background: #e8efff; }
.header-link {
  min-height: 42px; display: inline-flex; gap: 8px; align-items: center; justify-self: end;
  padding: 0 16px; border: 1px solid #d8e5ff; border-radius: 100px;
  color: var(--blue); font-size: 14px; font-weight: 800; background: #fff;
  transition: background-color .2s, border-color .2s;
}
.header-link:hover { background: #edf4ff; border-color: #b3ccfa; }

.hero {
  position: relative; overflow: clip; isolation: isolate;
  background: radial-gradient(ellipse at 77% 41%, #e3dcff 0%, #eaf0ff00 44%),
    radial-gradient(ellipse at 82% 92%, #e7f7ff 0%, #e7f7ff00 49%),
    linear-gradient(123deg, #f4f8ff 6%, #edf3ff 55%, #edf2ff 100%);
}
.hero-grid-paper {
  position: absolute; inset: 0; pointer-events: none; z-index: -2;
  background: radial-gradient(circle, #6c9be95e 1px, transparent 1.2px) 0 0 / 22px 22px;
  mask-image: radial-gradient(ellipse at 78% 45%, #000 0%, #0006 58%, #0000 85%);
}
.snow-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-inner {
  position: relative; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center;
  min-height: 600px; padding-block: 24px 79px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-kicker, .section-label {
  width: fit-content; display: inline-flex; align-items: center; gap: 8px;
  color: #345bad; font: 750 11px/1.3 var(--mono); letter-spacing: .14em; white-space: nowrap;
}
.hero-kicker {
  padding: 8px 12px; border: 1px solid #dbe6fb; border-radius: 999px;
  background: #ffffffc9; box-shadow: 0 4px 12px #445e9d08;
}
.hero-kicker .icon { color: #4e81f5; font-size: 13px; }
.hero h1 {
  margin-block: 17px 20px; font-size: clamp(56px, 6.2vw, 91px); line-height: 1.095;
  letter-spacing: -.077em; font-weight: 900;
}
.hero h1 > span { display: block; white-space: nowrap; }
.hero-accent {
  color: #245bc5;
  background: linear-gradient(106deg, #245fc7 2%, #3964d8 41%, #6650c8 85%);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-period { -webkit-text-fill-color: #7666d6; }
.hero-copy p { max-width: 420px; color: var(--muted); font-size: clamp(15px, 1.32vw, 18px); line-height: 1.88; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px;
  padding: 0 19px; border-radius: 100px; border: 1px solid transparent;
  font-size: 14px; font-weight: 750; line-height: 1.2; white-space: nowrap;
  transition: transform .28s var(--spring), background-color .2s, border-color .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button .icon { font-size: 16px; }
.button-primary {
  color: #fff; background: linear-gradient(105deg, #235bce, #4b52cc);
  border-color: #3e5cd9; box-shadow: 0 3px 0 #253f9e, 0 8px 17px #2f60cc32;
}
.button-primary:hover { box-shadow: 0 5px 0 #253f9e, 0 11px 18px #2f60cc37; }
.button-outline { color: #35579f; background: #ffffffd9; border-color: #d3dff7; }
.button-outline:hover { background: #fff; border-color: #a7bdea; }
.hero-actions .button { min-height: 51px; padding-inline: 21px; }
.hero-scroll {
  position: absolute; z-index: 2; left: 0; bottom: 53px;
  display: inline-flex; gap: 9px; align-items: center; min-height: 44px;
  color: #50679c; font: 700 10px/1 var(--mono); letter-spacing: .12em;
}
.hero-scroll span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #c7d6f2; border-radius: 50%; background: #fff7; }
.hero-scroll .icon { transition: transform .25s var(--spring); }
.hero-scroll:hover .icon { transform: translateY(2px); }
.hero-edge { position: absolute; bottom: -1px; left: 0; width: 100%; height: 45px; pointer-events: none; }

.hero-visual { position: relative; aspect-ratio: 1.29; min-width: 0; isolation: isolate; }
.stage-halo {
  position: absolute; inset: 6% 2% 7% 5%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 48% 47%, #ffffffdc 7%, #e0edff9c 43%, #c8dcff61 56%, #d6ddff00 73%);
}
.stage-orbit { position: absolute; inset: 8% 0 auto; width: 100%; color: #79a5f08f; pointer-events: none; }
.stage-island, .stage-logo, .stage-decor { position: absolute; pointer-events: none; }
.stage-island {
  z-index: 1; width: 106%; left: -3%; bottom: 8%;
  transform: translate3d(calc(var(--art-x, 0px) * .5), calc(var(--art-y, 0px) * .5), 0);
  filter: drop-shadow(0 23px 15px #577ec92c);
}
.stage-island img { width: 100%; }
.stage-logo {
  z-index: 2; width: 69%; left: 13%; top: 13%;
  transform: translate3d(var(--art-x, 0px), var(--art-y, 0px), 0);
  filter: drop-shadow(0 13px 10px #3258b341);
}
.stage-logo img {
  width: 100%; -webkit-mask: url("assets/miyuki-logo-mask.png") center / 100% 100%;
  mask: url("assets/miyuki-logo-mask.png") center / 100% 100%; mask-mode: luminance;
  animation: logo-drift 6.5s ease-in-out infinite;
}
.stage-decor {
  z-index: 3; inset: 0;
  transform: translate3d(calc(var(--art-x, 0px) * 1.6), calc(var(--art-y, 0px) * 1.6), 0);
}
.stage-tag {
  position: absolute; z-index: 3; right: 1%; top: 8%; transform: rotate(6deg);
  display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 100px;
  background: #ffffffbc; color: #4c5f9b; border: 1px solid #fff;
  font-size: 11px; font-weight: 750; letter-spacing: .08em; box-shadow: 0 5px 13px #4d62b216;
}
.stage-tag i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #8582eb; box-shadow: 0 0 0 3px #dad8ff; }
.stage-sticker {
  position: absolute; display: grid; place-items: center;
  filter: drop-shadow(0 2px 0 white) drop-shadow(0 -1px 0 white) drop-shadow(0 6px 6px #4453b626);
  animation: sticker-drift 5s ease-in-out infinite alternate;
}
.sticker-pink { color: #f497c3; left: 5%; top: 18%; font-size: clamp(21px, 3.7vw, 56px); --twist: -12deg; }
.sticker-blue { color: #6ab7f4; right: 11%; top: 24%; font-size: clamp(23px, 3.6vw, 52px); --twist: 16deg; animation-delay: -2s; }
.sticker-lilac { color: #b8a1f4; right: 1%; top: 49%; font-size: clamp(16px, 2.3vw, 33px); --twist: 14deg; animation-delay: -3s; }
.sticker-small { color: #73b9f7; left: 24%; top: 6%; font-size: clamp(12px, 1.4vw, 22px); --twist: -9deg; animation-delay: -1s; }
.snow-control {
  position: absolute; z-index: 4; right: 3%; bottom: -2%;
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 11px;
  border-radius: 100px; border: 1px solid #dbe5fb; background: #fffffff0;
  color: #4c5e90; font-size: 11px; font-weight: 750; box-shadow: 0 5px 17px #4b5b9e13;
  transition: border-color .2s, box-shadow .2s;
}
.snow-control:hover { border-color: #a8bde9; box-shadow: 0 7px 17px #4b5b9e23; }
.snow-control > .icon { color: #4d79df; font-size: 14px; }
.switch-track { width: 26px; height: 15px; position: relative; display: block; border-radius: 20px; background: #6a7899; }
.switch-track::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; background: #fff; border-radius: 50%; transition: transform .25s var(--spring); }
.snow-control[aria-pressed="true"] .switch-track { background: #4669d8; }
.snow-control[aria-pressed="true"] .switch-track::after { transform: translateX(11px); }
.motion-paused .stage-logo img, .motion-paused .stage-sticker { animation-play-state: paused; }

.games-section { padding-block: 62px 89px; }
.section-heading { text-align: center; }
.section-label .icon { font-size: 16px; color: #527be5; }
.section-heading .section-label {
  padding: 6px 12px; background: #eef2ff; border: 1px solid #e0e6fb; border-radius: 100px;
}
.section-heading h2, .studio-copy h2 {
  margin-top: 11px; font-size: clamp(37px, 4vw, 55px); line-height: 1.17; font-weight: 900; letter-spacing: -.063em;
}
.section-heading p { margin-top: 13px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 34px; }
.game-card {
  --card-bg: #fff7ef; --card-light: #fff0df; --card-line: #f0dfd1; --card-ink: #82482b;
  display: flex; flex-direction: column; position: relative; min-width: 0; padding: 11px;
  background: linear-gradient(180deg, #fff 47%, var(--card-bg)); border: 1px solid var(--card-line); border-radius: 29px;
  box-shadow: 0 10px 30px #3b3d6810, 0 2px 5px #3b3d6809;
  transition: box-shadow .4s var(--spring), transform .4s var(--spring);
}
.game-card:nth-child(2) { --enter-delay: .09s; }
.game-stock { --card-bg: #f1fbf5; --card-light: #e0f4e8; --card-line: #d8ebe0; --card-ink: #23654a; }
.game-card:focus-within { box-shadow: 0 15px 45px #3b3d681c; }
@media (hover: hover) and (pointer: fine) {
  .game-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px #3b3d681e; }
}
.game-cover { position: relative; border-radius: 19px; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 9; background: var(--card-light); }
.game-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(var(--cover-x, 0px), var(--cover-y, 0px), 0) scale(var(--cover-scale, 1));
  transition: transform .6s var(--spring);
}
.game-cover::after {
  content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), #ffffff31, #fff0 55%);
  opacity: 0; transition: opacity .35s;
}
.game-card[data-hover] .game-cover::after { opacity: 1; }
.game-status {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  border-radius: 100px; border: 1px solid #fff9; color: #225c47; background: #f5fff6f3;
  font-size: 11px; font-weight: 800; box-shadow: 0 2px 9px #1c294326;
}
.game-status i { width: 7px; height: 7px; border-radius: 50%; background: #429b73; box-shadow: 0 0 0 2px #d4f1e1; }
.game-body { display: flex; flex-direction: column; flex: 1; padding: 22px 15px 13px; }
.game-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.game-number { margin-right: 5px; font: 800 12px/1 var(--mono); color: var(--card-ink); }
.game-genre { padding: 4px 8px; border-radius: 100px; background: var(--card-light); color: var(--card-ink); font-size: 11px; font-weight: 700; }
.game-body h3 { margin-top: 10px; font-size: clamp(22px, 2.5vw, 34px); font-weight: 850; line-height: 1.34; letter-spacing: -.045em; }
.game-subtitle { font-size: .72em; letter-spacing: -.025em; white-space: nowrap; }
.game-body p { margin-top: 10px; margin-bottom: 19px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.game-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.game-actions .button { min-height: 44px; padding-inline: 14px; font-size: 13px; }
.game-primary { color: #fff; background: var(--ink); }
.game-primary:hover { background: #385295; }
.game-details { color: var(--card-ink); background: #fff9; border-color: var(--card-line); }
.game-details:hover { background: var(--card-light); }

.studio-section { padding-bottom: 74px; }
.studio-panel {
  display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; position: relative; isolation: isolate;
  border-radius: 36px; border: 1px solid #dee6fc; overflow: clip; padding: 54px 61px;
  background: radial-gradient(ellipse at 86% 70%, #e6dcff 0%, #ecf0ff00 52%), linear-gradient(120deg, #f1f8ff, #e9eeff);
}
.studio-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(#91a6ed29 1px, transparent 1px), linear-gradient(90deg, #91a6ed29 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 35%, #000 90%);
}
.studio-copy h2 { margin-top: 12px; margin-bottom: 17px; }
.studio-copy h2 span { color: #4058c1; }
.studio-copy p { color: var(--muted); max-width: 385px; font-size: 15px; line-height: 1.85; }
.studio-copy p + p { margin-top: 9px; }
.studio-link { margin-top: 23px; }
.studio-art { position: relative; min-height: 290px; align-self: stretch; display: grid; place-items: center; }
.postcard { width: min(72%, 258px); aspect-ratio: .92; border-radius: 24px; grid-area: 1 / 1; }
.postcard-back { background: #b9c9ff; border: 2px solid #aabcf9; transform: rotate(-13deg) translate(-10px, 8px); box-shadow: 0 14px 21px #586ecb24; }
.postcard-front {
  position: relative; background: #fffefa; border: 2px solid #fff; color: #314fad;
  transform: rotate(9deg); box-shadow: 0 12px 28px #4b60b52b; padding: 17px 19px 16px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.postcard-top, .postcard-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #526aab; }
.postcard-top span { font: 700 10px/1 var(--mono); letter-spacing: .13em; }
.postcard-top .icon { font-size: 19px; color: #6c9ced; }
.postcard-front strong { font-family: "Miyuki Text", system-ui, sans-serif; font-size: clamp(46px, 5.7vw, 83px); line-height: .85; letter-spacing: -.08em; font-weight: 900; }
.postcard-front strong span { color: #9a69ca; }
.postcard-bottom span { font-size: 10px; font-weight: 700; white-space: nowrap; }
.postcard-bottom i { width: 51%; height: 9px; background: repeating-linear-gradient(90deg, #7793e0 0 2px, #fff0 2px 4px, #7793e0 4px 5px, #fff0 5px 8px); opacity: .72; }
.postcard-star, .postcard-pad, .postcard-snow { position: absolute; display: grid; place-items: center; }
.postcard-star { left: 9%; top: 10%; color: #f69bc9; font-size: clamp(28px, 4vw, 53px); transform: rotate(-12deg); filter: drop-shadow(0 3px 0 #fff); }
.postcard-snow { right: 10%; top: 5%; font-size: clamp(19px, 2.7vw, 38px); color: #679dec; transform: rotate(12deg); }
.postcard-pad {
  right: 8%; bottom: 11%; width: 80px; height: 62px; border-radius: 22px;
  color: #426bc9; background: #d7edff; border: 3px solid #fff;
  box-shadow: 0 5px 0 #7c9ce7, 0 9px 12px #4555a036; font-size: 32px; transform: rotate(-13deg);
}

.site-footer { border-top: 1px solid #e7eafa; background: #f4f6ff; }
.footer-inner { min-height: 105px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.footer-inner p { color: #586483; font-size: 12px; }
.back-top { min-height: 44px; justify-self: end; display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 13px; font-weight: 700; }
.back-top .icon { transform: rotate(180deg); }
.back-top:hover { text-decoration: underline; }

.game-dialog {
  width: min(760px, calc(100% - 34px)); max-width: none; max-height: min(87vh, 780px); max-height: min(87dvh, 780px);
  padding: 0; border: 1px solid #d9e1fa; border-radius: 26px; color: var(--ink); background: #fff;
  overscroll-behavior: contain; box-shadow: 0 25px 85px #11225551;
}
.game-dialog[open] { animation: reveal-up .32s var(--spring); }
.game-dialog::backdrop { background: #15265591; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog-sheet { position: relative; }
.dialog-close { position: absolute; right: 15px; top: 15px; }
.dialog-close button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #e1e8fd; border-radius: 50%; color: #3155aa; background: #f2f6ff; }
.dialog-close button:hover { background: #e5edff; }
.dialog-content { padding: 31px 28px 33px; }
.dialog-content h2 { padding-right: 32px; margin-block: 8px 12px; font-size: clamp(24px, 4vw, 38px); font-weight: 850; line-height: 1.24; letter-spacing: -.04em; }
.dialog-content p { color: var(--muted); font-size: 15px; line-height: 1.82; }
.dialog-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 20px; }
.dialog-gallery img { width: 100%; border-radius: 13px; background: #e8efff; }
.dialog-gallery figcaption { padding-top: 6px; color: var(--muted); font-size: 12px; }

@keyframes logo-drift {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-10px) rotate(-2deg); }
}
@keyframes sticker-drift {
  from { transform: translateY(2px) rotate(var(--twist)); }
  to { transform: translateY(-8px) rotate(calc(var(--twist) + 9deg)); }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-kicker, .hero h1, .hero-copy p, .hero-actions, .hero-visual, .reveal.is-visible {
  animation: reveal-up .7s var(--spring) var(--enter-delay, 0s) backwards;
}
.reveal-waiting { opacity: 0; }
.hero h1 { --enter-delay: .06s; }
.hero-copy p { --enter-delay: .13s; }
.hero-actions { --enter-delay: .2s; }
.hero-visual { --enter-delay: .09s; }

@media (max-width: 1060px) {
  .shell { width: calc(100% - 72px); }
  .hero-inner { min-height: 530px; }
  .hero h1 { font-size: clamp(50px, 6.65vw, 72px); }
  .studio-panel { padding-inline: 42px; }
}

@media (max-width: 760px) {
  :root { --header-height: 66px; }
  .shell { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: auto auto; justify-content: space-between; gap: 8px; }
  .header-link { display: none; }
  .wordmark { gap: 7px; }
  .wordmark-icon { width: 34px; height: 34px; font-size: 18px; border-radius: 11px; }
  .wordmark-type strong { font-size: 13px; }
  .wordmark-type small { font-size: 7px; letter-spacing: .11em; }
  .site-nav { padding: 2px; }
  .site-nav a { min-height: 40px; padding-inline: 8px; font-size: 12px; }
  .hero-inner { grid-template-columns: 1fr; justify-items: center; min-height: 0; padding-block: 43px 56px; gap: 20px; }
  .hero-copy { text-align: center; }
  .hero-kicker { padding: 7px 11px; font-size: 10px; }
  .hero h1 { font-size: clamp(48px, 10.75vw, 72px); margin-block: 12px 14px; }
  .hero h1 > span { letter-spacing: -.062em; }
  .hero-copy p { margin-inline: auto; max-width: 340px; font-size: 14px; line-height: 1.8; }
  .hero-actions { justify-content: center; margin-top: 17px; gap: 8px; }
  .hero-actions .button { min-height: 46px; padding-inline: 15px; font-size: 13px; }
  .hero-visual { width: min(100%, 490px); aspect-ratio: 1.44; }
  .stage-logo { top: 9%; }
  .stage-tag { top: 3%; right: 0; padding: 5px 8px; font-size: 9px; }
  .stage-island { bottom: 4%; }
  .stage-orbit { top: 2%; }
  .snow-control { min-height: 44px; bottom: -7%; right: 1%; }
  .hero-scroll { display: none; }
  .hero-edge { height: 30px; }
  .games-section { padding-block: 41px 55px; }
  .section-heading h2, .studio-copy h2 { font-size: clamp(34px, 7.7vw, 47px); }
  .section-heading p { font-size: 14px; }
  .game-grid { gap: 15px; margin-top: 24px; }
  .game-card { border-radius: 23px; padding: 8px; }
  .game-cover { border-radius: 15px; }
  .game-body { padding: 16px 10px 10px; }
  .game-actions .button { padding-inline: 11px; }
  .studio-section { padding-bottom: 44px; }
  .studio-panel { padding: 33px 25px; border-radius: 27px; }
  .studio-art { min-height: 210px; }
  .postcard-front { padding: 13px 12px; }
  .postcard-pad { width: 57px; height: 47px; border-radius: 17px; font-size: 24px; }
  .footer-inner { min-height: 83px; gap: 9px; }
}

@media (max-width: 570px) {
  .game-grid, .studio-panel { grid-template-columns: 1fr; }
  .game-status { top: 8px; right: 8px; }
  .game-body h3 { font-size: clamp(24px, 6.5vw, 32px); }
  .game-body p { margin-bottom: 14px; }
  .studio-copy p { font-size: 14px; }
  .studio-panel { gap: 21px; }
  .studio-panel::before { mask-image: linear-gradient(180deg, transparent 28%, #000 87%); }
  .studio-art { margin-top: 4px; min-height: 250px; }
  .postcard { width: min(64%, 206px); }
  .postcard-front strong { font-size: clamp(54px, 16vw, 72px); }
  .postcard-pad { right: 9%; }
  .footer-inner { grid-template-columns: 1fr auto; padding-block: 15px; }
  .footer-inner p { grid-row: 2; grid-column: 1 / -1; }
  .footer-inner .back-top { grid-area: 1 / 2; }
  .dialog-content { padding: 24px 17px 26px; }
  .dialog-close { top: 10px; right: 10px; }
  .dialog-content h2 { padding-right: 39px; }
  .dialog-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 355px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { gap: 6px; }
  .wordmark { gap: 5px; }
  .wordmark-icon { width: 32px; height: 32px; }
  .wordmark-type strong { font-size: 12px; }
  .wordmark-type small { letter-spacing: .04em; }
  .site-nav a { padding-inline: 5px; font-size: 11px; }
  .hero-copy p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-waiting { opacity: 1; }
  .snow-control { display: none !important; }
  .stage-logo img { transform: rotate(-4deg); }
}

@media (forced-colors: active) {
  .hero-accent, .hero-period { color: CanvasText; -webkit-text-fill-color: currentColor; }
}
