:root {
  color-scheme: dark;
  --page: #111319;
  --panel: #1b1e26;
  --text: #f4f3ef;
  --muted: #aeb0b9;
  --line: #32343d;
  --gold: #ffc172;
  --display: "Bahnschrift", "Aptos Display", "Arial Black", sans-serif;
  font: 16px/1.55 "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--page);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.container { width: min(1248px, calc(100% - clamp(32px, 8.5vw, 144px))); margin-inline: auto; }
.skip { position: fixed; inset: 8px auto auto 8px; z-index: 5; background: var(--gold); color: #18150f; padding: 10px 16px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.masthead { border-bottom: 1px solid #2a2c34; }
.mast-inner, .nav-links, .brand, .creator, .hero-actions, .primary-action, .preview-action,
.library-heading, .platform, .footer, .footer a, .domain, .feature-label, .viewer-head { display: flex; align-items: center; }
.mast-inner { height: 76px; justify-content: space-between; }
.brand { gap: 3px; font: 800 italic 25px/1 var(--display); letter-spacing: -.075em; }
.brand-light { font-weight: 400; letter-spacing: -.06em; }
.brand-mark {
  display: inline-block; position: relative; flex: none; width: 29px; height: 24px; margin-right: 11px;
  border: 6px solid var(--gold); border-radius: 2px 13px 13px 2px; transform: skewX(-12deg);
}
.brand-mark::after { content: ""; position: absolute; left: -8px; top: 4px; width: 11px; height: 4px; background: var(--page); }
.nav-links { gap: 27px; font-size: 14px; font-weight: 600; }
.nav-library { padding: 10px 0; }
.creator { gap: 9px; padding: 5px 13px 5px 5px; border: 1px solid #3c3e47; border-radius: 30px; }
.creator img { width: 29px; height: 29px; border-radius: 50%; }
.arrow { display: inline-block; width: 16px; height: 12px; position: relative; flex: none; }
.arrow::before, .arrow::after { position: absolute; content: ""; }
.arrow::before { left: 1px; top: 5px; width: 13px; height: 2px; background: currentColor; }
.arrow::after { right: 1px; top: 2px; width: 7px; height: 7px; box-sizing: border-box; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); }
.up-right { transform: rotate(-45deg) scale(.78); }
.upwards { transform: rotate(-90deg) scale(.8); }
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  margin-top: 28px; background: #262435; border-radius: 16px; min-height: clamp(376px, 33vw, 458px);
}
.hero::after { content: ""; position: absolute; inset: 0; border: 1px solid #ffffff22; border-radius: inherit; pointer-events: none; z-index: 1; }
.world { position: absolute; inset: 0 0 0 15%; z-index: -2; }
.world img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 68%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #211f2d 1%, #252332fb 17%, #252332e5 29%, #2523328a 43%, #2523320a 64%, transparent 78%),
              linear-gradient(0deg, #211e3144, transparent 22%);
}
.hero-info { padding: 38px 0 42px clamp(30px, 4.25vw, 65px); width: min(50%, 510px); }
.feature-label { gap: 9px; color: #ffcc86; font-size: 13px; font-weight: 700; letter-spacing: .11em; }
.spark { background: currentColor; width: 15px; height: 15px; clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%); }
.hero h1 { margin: 18px 0 18px -5px; }
.title-art { width: clamp(240px, 23.5vw, 336px); height: auto; filter: drop-shadow(0 4px 6px #1312218c); }
.synopsis { max-width: 21em; color: #ece9eb; font-size: 15px; line-height: 1.8; text-wrap: pretty; }
.hero-actions { gap: 19px; margin-top: 23px; flex-wrap: wrap; }
.primary-action, .preview-action { font-size: 14px; font-weight: 700; height: 44px; gap: 10px; justify-content: center; white-space: nowrap; }
.primary-action { width: max-content; padding: 0 18px; border-radius: 7px; background: var(--gold); color: #281d13; }
.preview-action { color: #f8f6f7; }
.frame-icon { position: relative; width: 17px; height: 14px; border: 1.5px solid; border-radius: 3px; overflow: hidden; }
.frame-icon::before { content: ""; position: absolute; width: 4px; height: 4px; background: currentColor; border-radius: 50%; top: 2px; left: 2px; }
.frame-icon::after { content: ""; position: absolute; width: 10px; height: 10px; border: 1.5px solid; transform: rotate(45deg); right: -2px; bottom: -7px; }
.library { margin-top: 32px; scroll-margin-top: 18px; }
.library:focus { outline: none; }
.library-heading { justify-content: space-between; margin-bottom: 18px; }
.library h2 { font-size: clamp(23px, 2.1vw, 30px); line-height: 1.3; letter-spacing: -.04em; }
.platform { gap: 7px; color: var(--muted); font: 500 13px/1 var(--display); }
.window-icon { display: inline-block; width: 13px; height: 13px; background: conic-gradient(from 90deg, currentColor 0 100%); mask: linear-gradient(90deg,#000 44%,transparent 44% 56%,#000 56%), linear-gradient(#000 44%,transparent 44% 56%,#000 56%); mask-composite: intersect; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.game-card { position: relative; overflow: hidden; display: flex; min-width: 0; min-height: 147px; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.thumbnail { align-self: stretch; width: 39%; flex: none; min-height: 100%; overflow: hidden; background: #2e3544; }
.thumbnail img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; }
.game-info { min-width: 0; padding: 16px 5px 16px clamp(14px, 2vw, 28px); }
.version { color: #bfc2cd; font: 600 12px/1.15 var(--display); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.game-info h3 { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.25; margin: 6px 0; letter-spacing: -.04em; }
.game-info .latin-title { font-family: var(--display); font-weight: 800; letter-spacing: -.045em; }
.game-info p { color: var(--muted); font-size: 13px; }
.game-info p span { color: #82858e; margin-inline: 2px; }
.card-arrow { display: grid; place-items: center; flex: none; width: 32px; height: 32px; margin: 0 16px 0 auto; color: #d7d8dd; border: 1px solid #41444e; border-radius: 50%; }
.footer { justify-content: space-between; border-top: 1px solid #2b2d36; margin-top: 37px; min-height: 73px; color: #a4a6b2; font-size: 12px; }
.domain { font: 600 12px/1 var(--display); letter-spacing: .11em; }
.domain .brand-mark { width: 15px; height: 13px; margin-right: 9px; border-width: 3px; border-color: #92949f; }
.domain .brand-mark::after { left: -4px; width: 5px; top: 2px; height: 2px; }
.footer a { gap: 6px; padding-block: 12px; }
.viewer { width: min(1080px, calc(100% - 32px)); padding: 0; border: 1px solid #494b58; border-radius: 12px; background: var(--page); color: var(--text); }
.viewer::backdrop { background: #08090edb; }
html:has(.viewer[open]) { overflow: hidden; }
.viewer-head { justify-content: space-between; padding: 7px 10px 7px 18px; }
.viewer h2 { font-size: 15px; }
.viewer h2 span { color: #797c87; margin-inline: 4px; }
.viewer button { border: 0; border-radius: 5px; background: transparent; color: var(--text); font-size: 25px; width: 40px; height: 40px; cursor: pointer; }
.viewer button:focus-visible { outline-offset: -3px; }
.viewer-image { width: 100%; height: auto; max-height: calc(90dvh - 60px); object-fit: contain; }
@media (hover: hover) {
  .nav-links a:hover, .footer a:hover, .preview-action:hover { color: var(--gold); }
  .primary-action:hover { background: #ffd39a; }
  .game-card:hover { border-color: #8a7965; background: #22252d; }
  .game-card:hover .card-arrow { color: #241c14; background: var(--gold); border-color: var(--gold); }
  .viewer button:hover { background: #31343e; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .game-card, .card-arrow, .primary-action { transition: background-color .16s ease, border-color .16s ease; }
  .thumbnail img { transition: transform .28s ease; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .game-card:hover .thumbnail img { transform: scale(1.035); }
}
@media (min-width: 661px) and (max-width: 900px) {
  .thumbnail { width: 34%; }
  .game-card { min-height: 120px; }
  .card-arrow { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; margin: 0; border: 0; }
  .game-info { padding-left: 13px; }
  .hero-info { width: 55%; }
}
@media (max-width: 660px) {
  .container { width: calc(100% - 32px); }
  .mast-inner { height: 61px; }
  .brand { font-size: 21px; }
  .brand-mark { width: 25px; height: 20px; border-width: 5px; margin-right: 7px; }
  .brand-mark::after { top: 3px; height: 3px; }
  .nav-links { gap: 14px; font-size: 12px; }
  .creator { gap: 5px; padding: 3px 7px 3px 3px; }
  .creator img { width: 24px; height: 24px; }
  .creator .arrow { width: 14px; }
  .hero { margin-top: 16px; min-height: 0; align-items: end; border-radius: 12px; background: #242231; }
  .world { inset: 0 0 auto; height: clamp(230px, 59vw, 335px); }
  .world img { object-position: 50% 62%; }
  .hero::before { background: linear-gradient(0deg,#242231 0%,#242231 32%,#242231e8 44%,#24223147 64%,transparent 80%); }
  .hero-info { width: 100%; padding: clamp(133px, 34vw, 190px) 20px 21px; }
  .feature-label { width: max-content; padding: 3px 8px; border-radius: 4px; font-size: 12px; color: #ffda9f; background: #242231cf; }
  .hero h1 { margin: 6px 0 6px -3px; }
  .title-art { width: 198px; }
  .synopsis { max-width: 28em; font-size: 14px; line-height: 1.65; }
  .hero-actions { gap: 18px; margin-top: 15px; }
  .primary-action, .preview-action { font-size: 13px; height: 42px; }
  .primary-action { padding-inline: 14px; }
  .library { margin-top: 25px; }
  .library-heading { margin-bottom: 13px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .game-card { min-height: 101px; border-radius: 9px; }
  .thumbnail { width: 33%; }
  .game-info { padding: 10px 3px 10px 14px; }
  .game-info h3 { font-size: 21px; margin: 2px 0 4px; }
  .game-info p { font-size: 12px; }
  .card-arrow { margin-right: 11px; width: 27px; height: 27px; }
  .footer { margin-top: 24px; min-height: 60px; }
}
@media (max-width: 360px) {
  .nav-links { gap: 9px; }
  .hero-info { padding-inline: 16px; }
  .hero-actions { gap: 12px; }
  .game-info { padding-left: 10px; }
  .card-arrow { width: 22px; height: 22px; margin-right: 7px; }
}
