/* Lab Period — a tribute to Flash games, mods, and custom maps.
   One stylesheet, no build step. Dark only, like the portals we grew up on. */

:root {
  --bg: #0b0d12;
  --bg-deep: #07080c;
  --panel: #12151d;
  --panel-2: #171b25;
  --panel-3: #1f2532;
  --line: rgba(255, 255, 255, .06);
  --line-2: rgba(255, 255, 255, .11);
  --line-3: rgba(255, 255, 255, .18);
  --text: #eef1f6;
  --text-2: #b0b8c6;
  --text-3: #7a8394;
  --red: #ff3b36;
  --red-2: #e0262d;
  --amber: #ffb627;
  --gold: #ffc940;
  --link: #8bcdff;
  --green: #4ade80;
  --violet: #9d93ff;

  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1240px;
  --frame: 10px;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-px: "Silkscreen", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 15px/1.5 var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 8% -12%, rgba(255, 59, 54, .11), transparent 62%),
    radial-gradient(900px 520px at 96% -6%, rgba(90, 130, 255, .11), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before { /* film grain */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }
p { margin: 0; }
code, kbd, pre { font-family: var(--font-mono); }
::selection { background: rgba(255, 59, 54, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.i { width: 1.15em; height: 1.15em; flex: none; }
.px { font-family: var(--font-px); font-size: 8px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; background: var(--amber); color: #2a1600; border-radius: 8px; font-weight: 700; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  font: 700 14.5px/1 var(--font-body);
  letter-spacing: .005em;
  white-space: nowrap;
  transition: transform .15s var(--ease), filter .15s, background .2s, border-color .2s, box-shadow .2s;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 9px; }
.btn-xl { height: 58px; padding: 0 30px; font-size: 18px; border-radius: 14px; gap: 10px; }
.btn-xl .i { width: 20px; height: 20px; }

/* The play button: a 2005-style glossy pill, split highlight and all. */
.btn-play {
  color: #3b1c00;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  background: linear-gradient(180deg, #ffe08a 0%, #ffbf3a 49%, #ffa412 51%, #ff9100 100%);
  border-color: #c66a00;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 6px rgba(190, 80, 0, .35), 0 8px 24px -8px rgba(255, 150, 20, .55);
}
.btn-play:hover { filter: brightness(1.06) saturate(1.05); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 6px rgba(190, 80, 0, .35), 0 12px 30px -8px rgba(255, 150, 20, .7); }
.btn-play:active { transform: translateY(1px); filter: brightness(.97); }
.btn-play code { font: 700 14.5px var(--font-mono); }

.btn-gloss {
  color: var(--text);
  background: linear-gradient(180deg, #3b4356 0%, #2a3140 49%, #222835 51%, #262c3a 100%);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-gloss:hover { filter: brightness(1.15); }

.btn-ghost { color: var(--text-2); border-color: var(--line-2); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-3); background: rgba(255, 255, 255, .05); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(10, 12, 16, .45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.icon-btn .i { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ masthead */

.masthead { padding-top: 22px; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .45)) drop-shadow(0 0 16px rgba(255, 59, 54, .16)); transition: transform .35s var(--ease); }
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-4deg); }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.wordmark {
  font: 800 34px/0.9 var(--font-display);
  font-variation-settings: "wdth" 92, "opsz" 96;
  letter-spacing: -.035em;
  background: linear-gradient(180deg, #ffffff 30%, #c8d0de 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35));
}
.wordmark-dot { color: var(--red); -webkit-text-fill-color: var(--red); }
.brand-tag { font: 500 13px/1.2 var(--font-body); color: var(--text-2); letter-spacing: .005em; }
.brand-sm { gap: 10px; }
.brand-sm .brand-mark { width: 31px; height: 31px; }
.brand-sm .wordmark { font-size: 26px; }

.masthead-tools { display: flex; align-items: center; gap: 10px; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  width: 340px;
  padding: 0 4px 0 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25);
  transition: border-color .2s, background .2s;
}
.search:focus-within { border-color: rgba(255, 182, 39, .55); background: rgba(255, 255, 255, .05); }
.search > .i { color: var(--text-3); width: 17px; height: 17px; }
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font: 500 14px var(--font-body);
}
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { filter: invert(.6); }
.random .i { width: 17px; height: 17px; }

/* ------------------------------------------------------------------ the timeline (main navigation) */

.timeline {
  position: relative;
  display: flex;
  margin-top: 18px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #161a23, #11141b);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 16px 40px -24px rgba(0, 0, 0, .9);
}
.tl-layer {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 152px;
  padding: 0 14px;
  border-right: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .025);
  color: var(--text-3);
  font: 600 12.5px var(--font-body);
}
.tl-layer .i { width: 15px; height: 15px; color: var(--violet); }
.tl-layer span { margin-right: auto; color: var(--text-2); }
.tl-dot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--text-3); }
.tl-dot:first-of-type { background: var(--text-3); }

.tl-track { position: relative; flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tl-track::-webkit-scrollbar { display: none; }
.tl-inner { position: relative; width: max-content; min-width: 100%; }
.tl-ruler {
  position: relative;
  height: 19px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-2);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px calc(var(--frame) * 5)) calc(var(--frame) * 4) 100% / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .10) 0 1px, transparent 1px var(--frame)) 0 100% / 100% 4px no-repeat;
}
.tl-ruler span {
  position: absolute;
  top: 3px;
  left: calc((var(--f) - 1) * var(--frame) + 3px);
  font: 8px/1 var(--font-px);
  color: var(--text-3);
}
.tl-frames {
  position: relative;
  display: flex;
  height: 42px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px var(--frame)),
    repeating-linear-gradient(90deg, transparent 0 calc(var(--frame) * 4), rgba(255, 255, 255, .025) calc(var(--frame) * 4) calc(var(--frame) * 5));
}
.tl-frame {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 20px 0 26px;
  font: 600 13.5px var(--font-body);
  color: var(--text-2);
  white-space: nowrap;
  border-right: 1px solid var(--line);
  transition: color .2s, background .2s;
}
.tl-frame::before { /* a blank keyframe: hollow dot */
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: .55;
  transition: background .2s, opacity .2s;
}
.tl-frame:hover { color: var(--text); background: rgba(255, 255, 255, .035); }
.tl-frame.is-active { /* a motion tween span */
  color: #fff;
  background: linear-gradient(180deg, rgba(157, 147, 255, .24), rgba(157, 147, 255, .12));
  box-shadow: inset 0 1px 0 rgba(200, 195, 255, .2);
}
.tl-frame.is-active::before { background: #fff; border-color: #fff; opacity: 1; }
.tl-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  transform: translateX(var(--x, -40px));
  transition: transform .45s var(--ease);
  pointer-events: none;
}
.tl-playhead::before {
  content: "";
  position: absolute;
  top: 2px;
  left: -6px;
  width: 12px;
  height: 15px;
  border-radius: 3px 3px 2px 2px;
  background: linear-gradient(180deg, #ff6b5f, var(--red-2));
  clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
}
.tl-playhead i {
  position: absolute;
  top: 15px;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 59, 54, .7);
}

/* ------------------------------------------------------------------ featured carousel */

.feature {
  margin-top: 24px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
}
.feature-stage { position: relative; height: clamp(380px, 38vw, 480px); overflow: hidden; isolation: isolate; } /* clips the slow zoom on each slide's art */
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-art { width: 100%; height: 100%; object-fit: cover; object-position: 65% 45%; transform: scale(1.06); transition: transform 9s linear; }
.slide.is-active .slide-art { transform: scale(1); }
.slide-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, .94) 0%, rgba(7, 9, 13, .82) 26%, rgba(7, 9, 13, .35) 52%, rgba(7, 9, 13, 0) 72%),
    linear-gradient(0deg, rgba(7, 9, 13, .55) 0%, rgba(7, 9, 13, 0) 35%);
}
.slide-copy {
  position: absolute;
  left: clamp(22px, 4vw, 52px);
  top: 50%;
  width: min(520px, 46%);
  transform: translateY(-50%);
}
.slide.is-active .slide-copy > * { animation: rise .7s var(--ease) both; }
.slide.is-active .slide-copy > :nth-child(2) { animation-delay: .06s; }
.slide.is-active .slide-copy > :nth-child(3) { animation-delay: .12s; }
.slide.is-active .slide-copy > :nth-child(4) { animation-delay: .18s; }
.slide.is-active .slide-copy > :nth-child(5) { animation-delay: .22s; }
.slide.is-active .slide-copy > :nth-child(6) { animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.kicker { display: flex; align-items: center; gap: 10px; color: var(--text-2); font: 600 12px var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.kicker .px { padding: 5px 7px 4px; border-radius: 4px; background: var(--red); color: #fff; letter-spacing: .06em; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset; }
.kicker-sep { width: 14px; height: 1px; background: var(--line-3); }
.slide-title {
  margin: 14px 0 8px;
  font: 800 clamp(36px, 4.6vw, 62px)/.95 var(--font-display);
  font-variation-settings: "wdth" 88, "opsz" 96;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .45);
}
.slide-tag { font: 600 18px/1.35 var(--font-display); color: #ffd98a; }
.slide-blurb { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 1.6; max-width: 46ch; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 13px; }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts .i { width: 15px; height: 15px; color: var(--text-3); }
.slide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.slide-stats { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--text-2); }
.feature-nav { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 8px; z-index: 2; }

.feature-rail { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; border-top: 1px solid var(--line-2); background: #0f1218; }
.rail-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: none;
  text-align: left;
  color: var(--text-2);
  transition: background .2s, color .2s;
}
.rail-item:last-child { border-right: 0; }
.rail-item:hover { background: rgba(255, 255, 255, .03); color: var(--text); }
.rail-item.is-active { background: rgba(255, 255, 255, .045); color: var(--text); }
.rail-item img { width: 56px; height: 42px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); opacity: .75; transition: opacity .2s; }
.rail-item.is-active img, .rail-item:hover img { opacity: 1; }
.rail-text { display: flex; flex-direction: column; min-width: 0; }
.rail-title { font: 600 13px/1.25 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-genre { font-size: 11.5px; color: var(--text-3); }
.rail-progress { position: absolute; left: 0; right: 0; top: -1px; height: 2px; }
.rail-progress i { position: relative; display: block; width: 0; height: 100%; background: var(--red); box-shadow: 0 0 8px rgba(255, 59, 54, .7); }
.rail-item.is-active .rail-progress i { animation: sweep var(--dur, 8s) linear forwards; }
.feature.is-paused .rail-item.is-active .rail-progress i { animation-play-state: paused; }
.feature.is-static .rail-item.is-active .rail-progress i { animation: none; width: 100%; }
@keyframes sweep { to { width: 100%; } }

/* ------------------------------------------------------------------ layout + sections */

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; margin-top: 34px; align-items: start; }
.section + .section { margin-top: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { display: flex; align-items: center; gap: 10px; font: 800 23px/1.1 var(--font-display); letter-spacing: -.02em; }
.section-head h2 .i { color: var(--red); width: 20px; height: 20px; }
.more { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.more:hover { color: var(--amber); }
.more .i { width: 15px; height: 15px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.grid-wide { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

/* ------------------------------------------------------------------ game cards */

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card-link:hover, .card-link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 182, 39, .5);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 182, 39, .14), 0 0 40px -12px rgba(255, 150, 20, .25);
}
.card-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0d1016; }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card-link:hover .card-art img { transform: scale(1.05); }
.card-art::after { /* glossy sweep */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .22) 50%, transparent 62%);
  transform: translateX(-110%);
  transition: transform .9s var(--ease);
  pointer-events: none;
}
.card-link:hover .card-art::after { transform: translateX(110%); }
.card-art-fallback { display: grid; place-items: center; height: 100%; font: 800 28px var(--font-display); color: var(--text-3); }
.card-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  font: 700 13px var(--font-body);
  color: #3b1c00;
  background: linear-gradient(180deg, #ffe08a 0%, #ffbf3a 49%, #ffa412 51%, #ff9100 100%);
  border: 1px solid #c66a00;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 16px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s, transform .3s var(--ease);
}
.card-play .i { width: 13px; height: 13px; }
.card-link:hover .card-play, .card-link:focus-visible .card-play { opacity: 1; transform: none; }

/* the "NEW!" starburst sticker */
.ribbon {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  font: 700 8px/1 var(--font-px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .02em;
  background: radial-gradient(circle at 50% 35%, #ff6b5f, var(--red-2) 70%);
  clip-path: polygon(50% 0%, 59% 13%, 74% 5%, 75% 21%, 91% 21%, 85% 36%, 100% 44%, 88% 55%, 97% 69%, 81% 72%, 82% 88%, 67% 83%, 59% 98%, 50% 86%, 41% 98%, 33% 83%, 18% 88%, 19% 72%, 3% 69%, 12% 55%, 0% 44%, 15% 36%, 9% 21%, 25% 21%, 26% 5%, 41% 13%);
  transform: rotate(-12deg);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5));
  transition: transform .4s var(--ease);
}
.card-link:hover .ribbon { transform: rotate(4deg) scale(1.06); }

.card-body { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: 14px 16px 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font: 600 10.5px/1 var(--font-body);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-2);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
}
.chip .i { width: 12px; height: 12px; }
.chip-co { color: #a6ecc0; background: rgba(74, 222, 128, .08); border-color: rgba(74, 222, 128, .22); }
.card-title { margin-top: 3px; font: 750 19.5px/1.15 var(--font-display); letter-spacing: -.018em; }
.card-blurb { color: var(--text-2); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 11px; border-top: 1px dashed var(--line-2); color: var(--text-3); font-size: 12px; min-height: 34px; }

.stars { position: relative; display: inline-flex; line-height: 0; }
.stars svg { width: 14px; height: 14px; }
.stars-track, .stars-fill { display: flex; gap: 2px; }
.stars-track { color: rgba(255, 255, 255, .14); }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--gold); filter: drop-shadow(0 0 4px rgba(255, 201, 64, .35)); }
.stars-sm svg { width: 12px; height: 12px; }
.plays { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.plays .i { width: 11px; height: 11px; }

/* ------------------------------------------------------------------ sidebar boxes */

.col-side { display: flex; flex-direction: column; gap: 20px; }
.box { border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line-2); }
.box-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  font: 700 12px/1.2 var(--font-body);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(180deg, #252c3a 0%, #1d2330 49%, #191e29 51%, #171b25 100%);
  border-bottom: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.box-head .i { width: 16px; height: 16px; color: var(--red); }
.box-body { padding: 12px 14px 14px; }

.rows { list-style: none; margin: 0; padding: 0; }
.row a { display: flex; align-items: center; gap: 11px; padding: 7px 6px; border-radius: 9px; transition: background .2s; }
.row a:hover { background: rgba(255, 255, 255, .045); }
.row-rank { flex: none; width: 18px; font: 16px/1 var(--font-px); color: var(--text-3); text-align: center; }
.row:nth-child(1) .row-rank { color: var(--gold); text-shadow: 0 0 10px rgba(255, 201, 64, .4); }
.row:nth-child(2) .row-rank { color: #d9dfe8; }
.row:nth-child(3) .row-rank { color: #e0a06b; }
.row-art { flex: none; width: 56px; height: 42px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row-title { font: 600 14px/1.2 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gotd { display: block; }
.gotd img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); transition: transform .4s var(--ease); }
.gotd:hover img { transform: scale(1.02); }
.gotd-title { display: block; margin-top: 12px; font: 800 20px/1.15 var(--font-display); letter-spacing: -.02em; }
.gotd-tag { display: block; margin-top: 4px; color: var(--text-2); font-size: 13.5px; }

/* the 300×250 ad slot, and the house ad that fills it until a real one does */
.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad-label { color: var(--text-3); letter-spacing: .08em; }
.ad-300x250 { position: relative; width: 300px; max-width: 100%; height: 250px; overflow: hidden; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-2); }
.house { position: relative; display: block; height: 100%; color: #fff; }
.house img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.house:hover img { transform: scale(1.05); }
.house::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 9, 13, .95) 0%, rgba(7, 9, 13, .7) 38%, rgba(7, 9, 13, 0) 68%); }
.house-copy { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.house-kicker { padding: 4px 6px 3px; border-radius: 4px; background: var(--red); color: #fff; }
.house-title { margin-top: 4px; font: 800 23px/1.05 var(--font-display); letter-spacing: -.025em; }
.house-tag { color: rgba(255, 255, 255, .78); font-size: 12.5px; line-height: 1.4; }
.house-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  margin-top: 8px;
  padding: 0 12px;
  border-radius: 999px;
  font: 700 12.5px var(--font-body);
  color: #3b1c00;
  background: linear-gradient(180deg, #ffe08a 0%, #ffbf3a 49%, #ffa412 51%, #ff9100 100%);
  border: 1px solid #c66a00;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.house-cta .i { width: 12px; height: 12px; }

.news + .news { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.news time { color: var(--red); }
.news h3 { margin: 7px 0 5px; font: 700 15px/1.3 var(--font-body); }
.news p { color: var(--text-2); font-size: 13px; line-height: 1.55; }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  transition: border-color .2s, background .2s;
}
.mini:hover { border-color: rgba(255, 182, 39, .45); background: var(--panel-2); }
.mini img { width: 64px; height: 48px; border-radius: 7px; object-fit: cover; }
.mini b { display: block; font: 600 14px/1.2 var(--font-body); }
.mini span { font-size: 12px; color: var(--text-3); }

.box-empty { padding: 6px 4px 4px; color: var(--text-2); font-size: 13px; line-height: 1.55; }
.box-empty b { color: var(--text); }

/* better with friends */
.friends { display: grid; gap: 12px; }
.friend {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 18px 12px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(74, 222, 128, .06), rgba(74, 222, 128, .015)), var(--panel);
  border: 1px solid rgba(74, 222, 128, .18);
  transition: border-color .25s, transform .3s var(--ease);
}
.friend:hover { border-color: rgba(74, 222, 128, .45); transform: translateY(-2px); }
.friend img { flex: none; width: 120px; height: 90px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.friend-text { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; }
.friend > .i { flex: none; width: 20px; height: 20px; color: var(--text-3); transition: transform .3s var(--ease), color .2s; }
.friend:hover > .i { color: #a6ecc0; transform: translateX(3px); }
.friend-title { font: 750 18px/1.15 var(--font-display); letter-spacing: -.015em; }
.friend-players { display: inline-flex; align-items: center; gap: 6px; color: #a6ecc0; font-size: 12.5px; font-weight: 600; }
.friend-players .i { width: 14px; height: 14px; }
.friend-how { color: var(--text-2); font-size: 13.5px; line-height: 1.5; }

/* genre tiles */
.genre-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.genre-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  height: 92px;
  padding: 14px 16px;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--g1, #3a3f5c), var(--g2, #1b1e2c));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.genre-tile::before { /* frame grid */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px var(--frame));
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.genre-tile:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 14px 30px -14px var(--g1); }
.genre-name { position: relative; font: 800 20px/1 var(--font-display); letter-spacing: -.02em; }
.genre-count { position: relative; color: rgba(255, 255, 255, .7); }
.genre-strategy { --g1: #4b5bd6; --g2: #1d2350; }
.genre-arcade { --g1: #e2508a; --g2: #4a1631; }
.genre-idle { --g1: #1ea89a; --g2: #0f3a3b; }
.genre-multiplayer { --g1: #2fa85d; --g2: #123a24; }
.genre-roguelike { --g1: #8a52d6; --g2: #2c1748; }
.genre-action { --g1: #e0533a; --g2: #4a1810; }
.genre-puzzle { --g1: #d9a12a; --g2: #4a3510; }

/* ------------------------------------------------------------------ game page */

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 12px; font-size: 13px; color: var(--text-3); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--amber); }
.game-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.game-head h1 { font: 800 clamp(34px, 4.4vw, 52px)/1 var(--font-display); font-variation-settings: "wdth" 90, "opsz" 96; letter-spacing: -.035em; }
.game-tag { margin-top: 9px; color: var(--text-2); font-size: 16.5px; }
.game-score { display: flex; align-items: center; gap: 13px; flex: none; }
.score-big { font: 800 44px/1 var(--font-display); color: var(--gold); letter-spacing: -.03em; text-shadow: 0 0 24px rgba(255, 201, 64, .25); }
.score-side { display: flex; flex-direction: column; gap: 6px; }
.score-side .stars svg { width: 17px; height: 17px; }
.score-sub { font-size: 12.5px; color: var(--text-3); }

.stage-wrap {
  position: relative;
  z-index: 6;
  border-radius: 16px;
  overflow: hidden;
  background: #05070a;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .5);
}
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 150px); min-height: 520px; background: #000; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.stage:fullscreen { max-height: none; min-height: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.stage:-webkit-full-screen { max-height: none; min-height: 0; width: 100vw; height: 100vh; }

.splash { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: #07090d; transition: opacity .5s, visibility .5s; }
.splash.is-gone { opacity: 0; visibility: hidden; }
.splash-bg { position: absolute; inset: -30px; width: calc(100% + 60px); max-width: none; height: calc(100% + 60px); object-fit: cover; filter: blur(18px) brightness(.62) saturate(1.3); }
.splash::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, .55)); pointer-events: none; }
.splash-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 20px; text-align: center; }
.splash-capsule { width: min(420px, 58vw); height: auto; max-height: calc(100% - 140px); border-radius: 14px; box-shadow: 0 24px 70px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .14); }
.splash-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; color: rgba(255, 255, 255, .72); font-size: 13px; }
.splash-meta span + span::before { content: "·"; margin-right: 16px; color: rgba(255, 255, 255, .4); }
.splash-invite { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #a6ecc0; background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .3); }
.splash-warn { font-size: 13px; color: #ffd98a; }

.preloader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: #07090d; transition: opacity .45s, visibility .45s; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader-mark { width: 44px; height: 44px; animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.preloader-title { font: 800 22px var(--font-display); letter-spacing: -.02em; }
.preloader-bar { width: min(300px, 70%); height: 12px; padding: 2px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .45); }
.preloader-bar i { display: block; height: 100%; width: 0; border-radius: 1px; background: linear-gradient(180deg, #fff, #c9d1de); transition: width .25s linear; }
.preloader-pct { color: var(--text-2); }

.stage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 9px 12px; background: linear-gradient(180deg, #161a23, #11141b); border-top: 1px solid var(--line-2); }
.stage-tools { display: flex; flex-wrap: wrap; gap: 4px; }

/* Play mode: once a game starts it gets the whole browser window, the way it would running on its own, with this bar
   on top. The iframe is only restyled, never moved, so leaving and re-entering play mode never reloads the game. */
.play-id { display: none; }
body.is-playing { overflow: hidden; }
.stage-wrap.is-playing { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; border: 0; border-radius: 0; box-shadow: none; }
.stage-wrap.is-playing .stage { order: 2; flex: 1; width: 100%; height: auto; min-height: 0; max-height: none; aspect-ratio: auto; }
.stage-wrap.is-playing .stage-bar { order: 1; flex-wrap: nowrap; gap: 12px; padding: 5px 10px; padding-top: max(5px, env(safe-area-inset-top)); border-top: 0; border-bottom: 1px solid var(--line-2); }
.is-playing .play-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.play-mark { width: 26px; height: 26px; flex: none; }
.play-title { overflow: hidden; font: 800 17px/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; text-overflow: ellipsis; }
.is-playing .stage-tools { flex-wrap: nowrap; margin-left: auto; }
.is-playing .tool { height: 32px; padding: 0 10px; }
.is-playing [data-lights], .is-playing .rate-label { display: none; }
.is-playing .rate-stars button { width: 26px; height: 26px; }
@media (max-width: 1060px) { .is-playing .stage-tools .tool span { display: none; } }
@media (max-width: 560px) { .is-playing [data-share], .is-playing .rate { display: none; } }
.tool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: none;
  color: var(--text-2);
  font: 600 13px var(--font-body);
  transition: background .2s, color .2s, border-color .2s;
}
.tool .i { width: 16px; height: 16px; }
.tool:hover { color: var(--text); background: rgba(255, 255, 255, .05); border-color: var(--line); }
.tool[data-fav][aria-pressed="true"] { color: #ff6b6b; }
.tool[data-lights][aria-pressed="true"] { color: var(--amber); }
.rate { display: flex; align-items: center; gap: 10px; padding-right: 4px; }
.rate-label { font-size: 13px; color: var(--text-2); min-width: 7.5em; text-align: right; }
.rate-stars { display: flex; }
.rate-stars button { width: 30px; height: 30px; padding: 3px; border: 0; background: none; color: rgba(255, 255, 255, .18); transition: color .12s, transform .15s var(--ease); }
.rate-stars button svg { width: 100%; height: 100%; }
.rate-stars button.is-on { color: var(--gold); filter: drop-shadow(0 0 6px rgba(255, 201, 64, .45)); }
.rate-stars button:hover { transform: scale(1.15); }

.lights-veil { position: fixed; inset: 0; z-index: 5; background: rgba(2, 3, 5, .9); opacity: 0; pointer-events: none; transition: opacity .45s; }
body.lights-off .lights-veil { opacity: 1; pointer-events: auto; }

.layout-game { margin-top: 28px; }
.panel { padding: 24px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-2); }
.panel + .panel { margin-top: 20px; }
.panel-quiet { background: transparent; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 800 21px/1.1 var(--font-display); letter-spacing: -.02em; }
.panel-head .i { width: 19px; height: 19px; color: var(--red); }
.prose p { margin: 0 0 14px; max-width: 72ch; color: #cdd3dd; font-size: 15.5px; line-height: 1.72; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: #fff; font-weight: 700; }
.prose em { color: #ffd98a; font-style: normal; }
.prose code { padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .07); font-size: .9em; }
.prose h2 { margin: 34px 0 12px; font: 800 26px/1.1 var(--font-display); letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose-lg p { font-size: 16.5px; }

.features { display: grid; gap: 11px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px dashed var(--line-2); list-style: none; }
.features li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.features li::before { /* a keyframe */
  content: "";
  position: absolute;
  left: 5px;
  top: .5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 59, 54, .18);
}

.controls { display: grid; margin: 0; }
.control { display: grid; grid-template-columns: minmax(170px, 40%) 1fr; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.control:last-child { border-bottom: 0; }
.control dt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.control dd { margin: 0; color: var(--text-2); font-size: 14.5px; }
kbd {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 2px 9px;
  border-radius: 7px;
  font: 600 12.5px/1.2 var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg, #2c3343, #1f2531);
  border: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 3px solid rgba(0, 0, 0, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
}
.kbd-sep { color: var(--text-3); margin: 0 2px; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.shot { position: relative; aspect-ratio: 16 / 10; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: #000; cursor: zoom-in; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; opacity: .92; }
.shot:hover img { transform: scale(1.04); opacity: 1; }
.credits { color: var(--text-3); font-size: 13.5px; line-height: 1.65; }

.details { margin: 0; }
.details div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 13.5px; }
.details div:last-child { border-bottom: 0; }
.details dt { color: var(--text-3); }
.details dd { margin: 0; text-align: right; color: var(--text); }
.details a { color: var(--link); }
.details a:hover { text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { padding: 5px 10px; border-radius: 999px; font-size: 12px; color: var(--text-2); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); transition: color .2s, border-color .2s; }
.tag:hover { color: var(--text); border-color: var(--line-3); }

.lightbox { width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 14px; background: #000; overflow: visible; box-shadow: 0 40px 120px rgba(0, 0, 0, .9); }
.lightbox::backdrop { background: rgba(2, 3, 5, .88); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 92vh; object-fit: contain; border-radius: 14px; }
.lightbox .icon-btn { position: absolute; z-index: 1; }
.lb-close { top: -14px; right: -14px; }
.lb-prev { left: 12px; top: 50%; margin-top: -20px; }
.lb-next { right: 12px; top: 50%; margin-top: -20px; }

/* ------------------------------------------------------------------ list page */

.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 34px 0 18px; }
.list-head h1 { margin-top: 10px; font: 800 clamp(32px, 4vw, 46px)/1 var(--font-display); letter-spacing: -.035em; }
.list-count { margin-top: 8px; color: var(--text-3); font-size: 14px; }
.list-count a { color: var(--link); }
.sorter { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-3); }
.sorter select {
  height: 38px;
  padding: 0 34px 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  color: var(--text);
  font: 600 13.5px var(--font-body);
  appearance: none;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23aab2c1' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center / 15px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; font: 600 13.5px var(--font-body); color: var(--text-2); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); transition: all .2s; }
.fchip span { font-size: 11.5px; color: var(--text-3); }
.fchip:hover { color: var(--text); border-color: var(--line-3); }
.fchip.is-active { color: #fff; background: rgba(255, 59, 54, .16); border-color: rgba(255, 59, 54, .5); }
.fchip.is-active span { color: #ffb3b0; }
.empty { padding: 70px 20px; text-align: center; color: var(--text-2); }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 14px; color: var(--text-3); }
.empty h2 { font: 800 24px var(--font-display); color: var(--text); margin-bottom: 8px; }
.empty a { color: var(--link); }

/* ------------------------------------------------------------------ about */

.about-hero { position: relative; margin-top: 24px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); }
.about-hero img { width: 100%; height: clamp(320px, 36vw, 460px); object-fit: cover; object-position: 70% 50%; }
.about-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 9, 13, .92), rgba(7, 9, 13, .6) 35%, transparent 65%); }
.about-hero-copy { position: absolute; z-index: 1; left: clamp(22px, 4vw, 52px); top: 50%; transform: translateY(-50%); max-width: 460px; }
.about-hero h1 { margin: 14px 0 12px; font: 800 clamp(36px, 4.8vw, 60px)/.95 var(--font-display); font-variation-settings: "wdth" 88, "opsz" 96; letter-spacing: -.035em; }
.about-hero p:not(.kicker) { color: #ffd98a; font: 600 18px var(--font-display); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; margin-top: 40px; align-items: start; }
.rules { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.rules li { position: relative; padding-left: 26px; color: #cdd3dd; font-size: 16px; line-height: 1.6; }
.rules li::before { content: ""; position: absolute; left: 5px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(255, 59, 54, .18); }
.box-code pre { margin: 0; padding: 18px; overflow-x: auto; font-size: 12.5px; line-height: 1.7; color: #d7dce5; background: #0c0e13; }
.box-code .c { color: #6b7385; }
.box-code .k { color: #7cc0ff; }
.box-code .s { color: #ffb86b; }

/* ------------------------------------------------------------------ 404: the missing plug-in */

.plugin-missing { display: flex; flex-direction: column; align-items: center; padding: 70px 0 30px; text-align: center; }
.plugin-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(440px, 100%);
  height: 230px;
  margin-bottom: 34px;
  color: #4a4a4a;
  background: linear-gradient(180deg, #e9e9e9, #d4d4d4);
  border: 1px solid #a8a8a8;
  box-shadow: inset 0 0 0 1px #f8f8f8, 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.plugin-icon { width: 76px; height: 76px; color: #8d8d8d; filter: drop-shadow(0 1px 0 #fff); }
.plugin-line { max-width: 30ch; font: 500 13px/1.45 Verdana, Tahoma, var(--font-body); color: #3a3a3a; }
.plugin-missing h1 { font: 800 clamp(34px, 5vw, 52px)/1 var(--font-display); letter-spacing: -.035em; }
.plugin-missing > p { margin-top: 12px; color: var(--text-2); max-width: 46ch; }
.plugin-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px !important; }

/* ------------------------------------------------------------------ footer */

.site-foot { margin-top: 80px; padding: 46px 0 28px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .35) 30%), var(--bg-deep); border-top: 1px solid var(--line-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin-top: 12px; color: var(--text-2); font-size: 14px; }
.foot-brand .foot-note { margin-top: 6px; color: var(--text-3); font-size: 13px; text-wrap: pretty; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col h4 { margin-bottom: 4px; font: 700 11.5px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.foot-col a { color: var(--text-2); font-size: 14px; }
.foot-col a:hover { color: var(--amber); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; }
.stop { color: #ff6b65; font-size: 12px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: rgba(24, 28, 38, .95);
  border: 1px solid var(--line-3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  transform: translate(-50%, 0);
  animation: toast .3s var(--ease);
}
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1060px) {
  .layout, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .col-side { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; }
  .search { width: 260px; }
}

@media (max-width: 820px) {
  .masthead-row { flex-wrap: wrap; gap: 16px; }
  .masthead-tools { width: 100%; }
  .search { flex: 1; width: auto; }
  .tl-layer { display: none; }
  .feature-stage { height: 520px; }
  .slide-shade { background: linear-gradient(0deg, rgba(7, 9, 13, .96) 0%, rgba(7, 9, 13, .82) 42%, rgba(7, 9, 13, .1) 75%); }
  .slide-art { object-position: 60% 30%; }
  .slide-copy { top: auto; bottom: 22px; right: 22px; width: auto; transform: none; }
  .slide-blurb { display: none; }
  .feature-nav { top: 16px; bottom: auto; right: 16px; }
  .feature-rail { overflow-x: auto; scrollbar-width: none; }
  .rail-item { padding: 10px; }
  .rail-text { display: none; }
  .game-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .stage { aspect-ratio: auto; height: min(78svh, 640px); min-height: 0; max-height: none; }
  .rate-label { display: none; }
  .control { grid-template-columns: 1fr; gap: 6px; }
  .list-head { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .wordmark { font-size: 29px; }
  .brand-mark { width: 36px; height: 36px; }
  .random span { display: none; }
  .tool span { display: none; }
  .tool { padding: 0 10px; }
  .grid, .grid-wide { grid-template-columns: 1fr; }
  .panel { padding: 20px 18px; }
  .splash-capsule { width: min(300px, 70vw); }
  .btn-xl { height: 52px; font-size: 16.5px; }
  .about-hero::after { background: linear-gradient(0deg, rgba(7, 9, 13, .95), rgba(7, 9, 13, .5) 60%, transparent); }
  .about-hero-copy { top: auto; bottom: 22px; transform: none; right: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
