:root {
  color-scheme: dark;
  --canvas: #262626;
  --cream: #fff4de;
  --ink: #181418;
  --cherry: #c40034;
  --metal: #444044;
  --max: 72rem;
  font-family: "Trebuchet MS", system-ui, sans-serif;
  color: var(--cream);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 50% 0, #343231 0, #262626 68%); }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #ffdb53; outline-offset: 4px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 3; padding: .7rem 1rem; background: #161616; color: white; }
[hidden] { display: none !important; }
.masthead {
  background-color: #302f2f;
  background-image: url(skyline.webp), linear-gradient(#363434, #2c2b2c);
  background-repeat: repeat-x, no-repeat;
  background-position: center bottom;
  background-size: auto 4.45rem, cover;
  border-bottom: 4px solid #13121b;
}
.mast-inner { max-width: var(--max); margin: auto; min-height: 10rem; padding: 1.1rem 1rem 4.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { width: 49%; max-width: 34rem; }
.brand img { width: 100%; height: auto; }
nav { display: flex; justify-content: end; gap: .4rem; }
nav a { display: block; min-width: 0; }
nav img { width: clamp(5.8rem, 11vw, 9.45rem); height: auto; }
nav a:hover, .live:hover, .news-card a:hover { transform: translateY(-2px); filter: brightness(1.06); }
.home { max-width: var(--max); margin: 0 auto; padding: .5rem 1.25rem 2.5rem; }
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .6rem; padding: 0 .7rem; scroll-margin-top: .5rem; }
.game { display: block; min-width: 0; filter: drop-shadow(0 3px 0 #151515); }
.game img { width: 100%; height: 100%; }
.live, nav a, .news-card a { transition: transform 120ms ease-out, filter 120ms ease-out; }
.shelf { margin-top: 1.6rem; padding: 0 .5rem .9rem; background: linear-gradient(90deg,#101011 0%,#55444b 1%,#282629 2%,#242324 98%,#51454b 99%,#141415 100%); border-bottom: 5px ridge #645b5f; box-shadow: 0 4px #111; }
.shelf-bar { position: relative; display: flex; justify-content: space-between; align-items: end; gap: .75rem; margin: 0 -.5rem; padding: 0 1rem .55rem; background: linear-gradient(transparent 0 55%,#cec3bd 56% 58%,#5a5557 59%,#3b373a 90%,#1a181b 91%); border-bottom: 3px solid #121014; }
.shelf-bar h2 { width: 42%; max-width: 25rem; margin: 0; }
.shelf-bar h2 img { width: 100%; height: auto; }
.filters { display: flex; gap: .3rem; align-items: end; }
button { font: inherit; }
.bevel {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.7rem; padding: .45rem 1rem;
  font-weight: 900; color: var(--cream); background: linear-gradient(#777076, #49444a 72%, #39353b);
  border: 2px solid #141215; border-radius: .55rem; box-shadow: inset 0 2px #dfd4cc,inset 2px 0 #a8a0a4,inset 0 -4px #373138, 0 3px #121014;
  text-shadow: 0 1px 1px #222; text-decoration: none;
}
.filters button { min-width: 5rem; cursor: pointer; }
.filters button:hover { filter: brightness(1.12); }
.bevel[aria-pressed="true"], .bevel.sign, .bevel.play { background: linear-gradient(#ed164e,#d10037 48%,#bc002c); box-shadow: inset 0 2px #ffacb6, inset 2px 0 #ff5873, inset 0 -4px #890322,0 3px #160d10; }
.posts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .55rem; padding: .8rem .9rem .4rem; }
.studio { --edge: #ffca19; --light: #fff5a1; --shade: #b17b00; }
.dinosaur { --edge: #81c824; --light: #d7fa7a; --shade: #4b810c; }
.racing { --edge: #eb1741; --light: #ffa0a3; --shade: #97062d; }
.news-card { min-width: 0; filter: drop-shadow(0 3px 0 #121012); }
.news-card a {
  position: relative; display: block; height: 100%; padding: .65rem .65rem 1.1rem; color: #181315;
  text-decoration: none; background: var(--edge); border: 2px solid #151414; border-radius: .9rem;
  box-shadow: inset 0 3px var(--light),inset 3px 0 var(--light),inset 0 -5px var(--shade);
}
.card-inside { display: grid; grid-template-columns: 35% 1fr; overflow: hidden; height: 100%; min-height: 6.4rem; background: var(--cream); border: 2px solid #362e2b; border-radius: .3rem; }
.card-inside img { width: 100%; height: 100%; object-fit: cover; }
.card-copy { display: flex; flex-direction: column; align-items: start; padding: .45rem .55rem; gap: .25rem; }
.category, .byline { font-size: .77rem; font-weight: 750; }
.card-copy strong { font-size: clamp(.98rem,1.4vw,1.25rem); line-height: 1.09; letter-spacing: -.025em; }
.card-copy time { margin-top: auto; font-size: .8rem; }
.vents { position: absolute; left: 10%; bottom: .28rem; width: 1.7rem; height: .49rem; background: repeating-linear-gradient(90deg,var(--shade) 0 3px,transparent 3px 5px); }
.empty { padding: 1rem; margin: 0; }
.account-layout { width: min(100%,32rem); margin: 2rem auto 0; padding: 0 1rem 2rem; }
.panel { padding: 1.5rem; background: linear-gradient(150deg,#353236,#2c2a2c); border: .42rem ridge #968e91; border-radius: .7rem; box-shadow: 0 4px #141214; }
.panel h1 { font-size: clamp(1.35rem,4vw,1.9rem); display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: 0 0 1.4rem; padding: 0 0 .7rem; border-bottom: .2rem solid #dc244e; }
.panel h1 span { color: #ffce24; text-shadow: 1px 2px #a06310; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.panel label { display: block; font-weight: 800; margin: .9rem 0 .35rem; }
.panel input { width: 100%; height: 2.75rem; border-radius: .3rem; border: 2px solid #171417; background: var(--cream); opacity: 1; }
.sign { width: 100%; margin: 1.5rem 0 .6rem; font-size: 1.25rem; }
.panel #account-note { margin: .6rem 0 0; line-height: 1.5; text-align: center; }
#account-note strong { display: inline-block; margin-bottom: .3rem; }
.arcade-art { width: 100%; height: auto; margin: .45rem auto 0; }
.article-layout { width: min(100%,48rem); padding: 2rem 1rem 4rem; margin: auto; }
.back { display: inline-block; margin: 0 0 1rem; }
.story { background: #fff5df; color: var(--ink); border: .6rem solid var(--edge); border-radius: .7rem; padding: clamp(1.2rem,5vw,2.5rem); box-shadow: 0 4px var(--shade),0 7px #111; }
.byline { display: flex; justify-content: space-between; gap: 1rem; }
.story h1 { font-size: clamp(1.8rem,5vw,3rem); line-height: 1.04; margin: .7rem 0 1.5rem; }
.story p { font-size: 1.07rem; line-height: 1.6; }
@media (max-width: 48rem) {
  .mast-inner { min-height: 9rem; padding-bottom: 4rem; }
  .home { padding-inline: .65rem; }
  .games { padding: 0; }
  .shelf { margin-top: 1.15rem; }
  .shelf-bar { padding-inline: .4rem; }
  .filters button { min-width: 3.5rem; padding-inline: .65rem; }
  .posts { grid-template-columns: repeat(2,minmax(0,1fr)); padding-inline: .3rem; }
}
@media (max-width: 36rem) {
  .masthead { background-size: auto 3rem,cover; }
  .mast-inner { flex-direction: column; gap: .55rem; padding: .8rem .6rem 2.8rem; min-height: 0; }
  .brand { width: min(90%,25rem); }
  nav { gap: .35rem; }
  nav img { width: clamp(5.3rem,25vw,8rem); }
  .games { grid-template-columns: 1fr 1fr; }
  .live { grid-column: 1 / -1; }
  .shelf-bar { align-items: start; flex-direction: column; gap: .5rem; }
  .shelf-bar h2 { width: 14rem; max-width: 90%; }
  .filters { width: 100%; }
  .filters button { flex: 1; }
  .posts { grid-template-columns: 1fr; }
  .card-inside { grid-template-columns: 6.2rem 1fr; min-height: 5.3rem; }
  .card-inside img { max-height: 6rem; }
  .card-copy strong { font-size: 1.15rem; }
  .account-layout { margin-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
