/* CAID ARCADE — game collection */
:root {
  --bg: #0d0a0c;
  --bg-soft: #141014;
  --panel: #181318;
  --panel-2: #211a1f;
  --ink: #f7efe1;
  --ink-soft: #d8cbbd;
  --muted: #9b8e84;
  --line: rgba(247, 239, 225, .13);
  --line-strong: rgba(247, 239, 225, .24);
  --amber: #f3a712;
  --amber-bright: #ffc94f;
  --amber-deep: #a66600;
  --tomato: #e4572e;
  --green: #7fb069;
  --cream: #f3e7d3;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Avenir Next Condensed", "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", "Menlo", monospace;
  --max: 1480px;
  --pad: clamp(20px, 4vw, 64px);
  --radius: 24px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::selection { background: var(--amber); color: var(--bg); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--amber); color: #1b1006; }

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(247, 239, 225, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 239, 225, .035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 80% 58% at 52% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 8%, rgba(243, 167, 18, .11), transparent 30%),
    radial-gradient(circle at 88% 28%, rgba(228, 87, 46, .08), transparent 33%),
    linear-gradient(180deg, #0d0a0c 0%, #110d10 58%, #0b090b 100%);
  pointer-events: none;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  opacity: .045;
  pointer-events: none;
  mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(13, 10, 12, .82);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(var(--max), 100% - var(--pad) * 2);
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; }
.brand-type { display: flex; flex-direction: column; line-height: .95; }
.brand-type strong {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .04em;
}
.brand-type span {
  margin-top: 5px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .28em;
}
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
.main-nav a {
  color: var(--ink-soft);
  font-size: 13px;
  transition: color .2s;
}
.main-nav a:hover { color: var(--ink); }
.main-nav .nav-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--amber);
  border-radius: 999px;
  color: var(--amber-bright);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s, color .2s, transform .2s;
}
.main-nav .nav-play:hover {
  background: var(--amber);
  color: #1a0e04;
  transform: translateY(-1px);
}

/* ---------- shared text ---------- */
.eyebrow, .section-kicker, .game-kicker, .coming-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); }
.eyebrow-slash { color: var(--line-strong); }
.eyebrow-index { margin-left: 6px; color: var(--amber); }
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(127, 176, 105, .12);
}
.section-kicker { color: var(--amber); }
.heading-dot { color: var(--tomato); }

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s;
}
.button-primary {
  background: var(--amber);
  color: #1a0f04;
  box-shadow: 0 5px 0 var(--amber-deep);
}
.button-primary:hover { background: var(--amber-bright); transform: translateY(-2px); box-shadow: 0 7px 0 var(--amber-deep); }
.button-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--amber-deep); }
.button-ghost {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}
.button-ghost:hover { border-color: var(--amber); color: var(--amber-bright); transform: translateY(-2px); }
.button-quiet {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}
.button-quiet:hover { border-color: var(--ink); color: var(--ink); }
.button-arrow { font-size: 16px; line-height: 1; }
a:focus-visible, button:focus-visible, .cabinet-screen:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 4px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 152px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  left: 54%;
  top: 10%;
  width: 48vw;
  height: 48vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 167, 18, .16), transparent 67%);
  filter: blur(8px);
  pointer-events: none;
}
.hero-inner {
  width: min(var(--max), 100% - var(--pad) * 2);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
  align-items: center;
  gap: clamp(36px, 6vw, 100px);
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  margin: 28px 0 26px;
  font-family: var(--display);
  font-size: clamp(72px, 9vw, 136px);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.075em;
  text-wrap: balance;
}
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em {
  color: var(--amber);
  font-style: normal;
  text-shadow: 0 6px 0 rgba(89, 51, 0, .55);
}
.hero-lede {
  max-width: 520px;
  margin: 0 0 34px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.95;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-metrics {
  display: flex;
  gap: clamp(26px, 4vw, 58px);
  margin: 54px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero-metrics div { display: grid; gap: 2px; }
.hero-metrics dt {
  color: var(--ink);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}
.hero-metrics dd { margin: 0; color: var(--muted); font-size: 11px; }

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 20px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 90%;
  aspect-ratio: 1;
  border: 1px dashed rgba(247, 239, 225, .14);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.orbit { position: absolute; border: 1px solid rgba(243, 167, 18, .12); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 112%; height: 78%; transform: rotate(34deg); }
.orbit-two { width: 76%; height: 112%; transform: rotate(-28deg); border-color: rgba(228, 87, 46, .12); }
.cabinet-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 650px);
  transform: rotate(1.1deg);
  transition: transform .45s var(--ease);
}
.cabinet-wrap:hover { transform: rotate(0deg) translateY(-5px); }
.cabinet {
  position: relative;
  padding: 11px;
  border: 1px solid rgba(247, 239, 225, .22);
  border-radius: 20px;
  background: linear-gradient(145deg, #241a1e, #120e11 70%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 6px rgba(9, 7, 8, .7);
}
.cabinet-head, .cabinet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .13em;
}
.cabinet-head { min-height: 26px; }
.cabinet-foot { min-height: 34px; color: var(--ink-soft); }
.cabinet-dots { display: inline-flex; gap: 4px; }
.cabinet-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); opacity: .5; }
.cabinet-dots i:first-child { opacity: 1; }
.cabinet-screen {
  position: relative;
  display: block;
  overflow: hidden;
  border: 5px solid #080607;
  border-radius: 11px;
  background: #080607;
  aspect-ratio: 16 / 9;
}
.cabinet-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .5s;
}
.cabinet-screen:hover img { transform: scale(1.025); filter: brightness(1.04); }
.screen-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(5, 3, 4, .65) 100%);
  pointer-events: none;
}
.screen-play {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(247, 239, 225, .35);
  border-radius: 6px;
  background: rgba(10, 7, 8, .7);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  backdrop-filter: blur(8px);
}
.screen-play b { color: var(--amber-bright); font-size: 14px; }
.screen-caption {
  position: absolute;
  right: 16px;
  bottom: 20px;
  color: rgba(247, 239, 225, .56);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .16em;
}
.floating-note {
  position: absolute;
  right: -12px;
  bottom: -28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 116px;
  padding: 12px 15px;
  border-radius: 8px;
  background: var(--cream);
  color: #21140c;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
  transform: rotate(-4deg);
  transition: transform .3s var(--ease);
}
.cabinet-wrap:hover .floating-note { transform: rotate(1deg) translateY(-4px); }
.floating-note span { font-family: var(--mono); font-size: 8px; letter-spacing: .14em; color: #8d5d00; }
.floating-note strong { font-size: 17px; line-height: 1.2; }

/* ---------- marquee ---------- */
.marquee {
  position: relative;
  width: 100%;
  margin-left: 0;
  overflow: hidden;
  transform: rotate(-1.2deg);
  background: var(--amber);
  color: #1a0e04;
  border-top: 1px solid rgba(255, 255, 255, .18);
  border-bottom: 1px solid rgba(0, 0, 0, .25);
}
.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 26px;
  padding: 12px 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  animation: marquee 28s linear infinite;
}
.marquee-track i { font-size: 12px; font-style: normal; opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section {
  width: min(var(--max), 100% - var(--pad) * 2);
  margin: 0 auto;
  padding: clamp(90px, 11vw, 150px) 0;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}
.section-heading h2, .about-intro h2, .play-banner h2 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.06em;
}
.section-heading h2 { font-size: clamp(55px, 7.4vw, 104px); }
.section-heading p { margin: 0 0 6px; color: var(--muted); font-size: 13px; line-height: 1.9; text-align: right; }

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(340px, .77fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}
.game-media {
  position: relative;
  display: block;
  min-height: 380px;
  overflow: hidden;
  background: #201a19;
}
.game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .5s;
}
.game-media:hover img { transform: scale(1.035); filter: brightness(1.06) saturate(1.04); }
.game-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 3, 4, .6));
  pointer-events: none;
}
.game-index {
  position: absolute;
  left: 22px;
  bottom: 0;
  z-index: 1;
  color: rgba(247, 239, 225, .1);
  font-family: var(--display);
  font-size: clamp(100px, 11vw, 170px);
  font-weight: 900;
  line-height: .78;
  letter-spacing: -.09em;
  -webkit-text-stroke: 1px rgba(247, 239, 225, .28);
}
.media-play {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(247, 239, 225, .35);
  border-radius: 7px;
  background: rgba(12, 8, 10, .78);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s;
}
.game-media:hover .media-play { background: var(--amber); border-color: var(--amber); color: #1a0e04; }
.media-play b { color: var(--amber-bright); font-size: 15px; }
.game-media:hover .media-play b { color: #1a0e04; }
.game-info { display: flex; flex-direction: column; padding: clamp(28px, 3.6vw, 48px); }
.game-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.game-kicker { color: var(--amber); }
.game-heading h3 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(44px, 4.5vw, 66px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.06em;
}
.game-en { margin: 6px 0 0; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .18em; }
.availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 7px 9px;
  border: 1px solid rgba(127, 176, 105, .4);
  border-radius: 999px;
  color: #b7dd9f;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
}
.availability i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.game-desc { margin: 27px 0 22px; color: var(--ink-soft); font-size: 14px; line-height: 1.85; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 26px; padding: 0; list-style: none; }
.tags li {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
}
.game-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: auto; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.game-meta div { display: grid; gap: 3px; padding: 13px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.game-meta span { color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.game-meta strong { color: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 500; }
.game-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.game-actions .button { min-height: 47px; padding: 0 16px; }

.coming-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; margin-top: 14px; }
.coming-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 22px 26px;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(24, 19, 24, .45);
}
.coming-no { color: rgba(247, 239, 225, .16); font-family: var(--display); font-size: 46px; font-weight: 900; letter-spacing: -.08em; line-height: 1; }
.coming-kicker { color: var(--amber); font-size: 8px; }
.coming-card strong { display: block; margin-top: 5px; font-size: 20px; }
.coming-card p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.coming-mark { margin-left: auto; color: var(--line-strong); font-size: 32px; font-weight: 300; }
.coming-card-copy { display: block; padding: 25px 28px; background: transparent; }
.coming-card-copy p { margin-top: 9px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }

/* ---------- about ---------- */
.about {
  width: 100%;
  max-width: none;
  margin-top: 10px;
  padding: clamp(80px, 9vw, 130px) var(--pad);
  background: var(--cream);
  color: #21150d;
}
.about-grid {
  width: min(1350px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(50px, 9vw, 140px);
  align-items: start;
}
.about .section-kicker { color: #9c6100; }
.about-intro h2 { margin-top: 16px; font-size: clamp(48px, 4.6vw, 64px); line-height: .98; }
.about-intro h2 em { white-space: nowrap; }
.about-intro h2 em { color: #c3542d; font-style: normal; }
.about-intro p { max-width: 390px; margin: 28px 0 0; color: #624c3c; font-size: 14px; line-height: 1.95; }
.about-cards { display: grid; gap: 12px; }
.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 16px;
  padding: 23px 24px;
  border: 1px solid rgba(33, 21, 13, .16);
  border-radius: 13px;
  background: rgba(255, 250, 240, .52);
}
.feature-no { position: absolute; top: 19px; right: 20px; color: rgba(33, 21, 13, .34); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.feature-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(33, 21, 13, .22);
  border-radius: 50%;
  color: #9c6100;
  font-size: 20px;
}
.feature-card h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.feature-card p { max-width: 520px; margin: 5px 0 0; color: #745b49; font-size: 12px; line-height: 1.8; }

/* ---------- final banner ---------- */
.play-banner {
  width: min(var(--max), 100% - var(--pad) * 2);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  border-radius: 20px;
  background: var(--amber);
  color: #1c1005;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  margin-top: clamp(80px, 9vw, 130px);
  margin-bottom: clamp(80px, 9vw, 130px);
}
.play-banner .section-kicker { color: #7b4c00; }
.play-banner h2 { font-size: clamp(48px, 6.3vw, 90px); }
.play-banner h2 em { color: #8d3c1d; font-style: normal; }
.banner-button {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  flex: none;
  min-width: 190px;
  min-height: 110px;
  padding: 18px 24px;
  border: 1px solid #1c1005;
  border-radius: 12px;
  background: #1c1005;
  color: var(--cream);
  transition: transform .2s var(--ease), background .2s;
}
.banner-button:hover { transform: translateY(-4px) rotate(-1deg); background: #311a08; }
.banner-button span:first-child { font-family: var(--display); font-size: 27px; font-weight: 900; line-height: 1; }
.banner-button span:nth-child(2) { color: var(--amber-bright); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; }
.banner-button b { position: absolute; align-self: flex-end; color: var(--amber-bright); font-size: 20px; }

/* ---------- footer ---------- */
.site-footer {
  width: min(var(--max), 100% - var(--pad) * 2);
  margin: 0 auto;
  padding: 24px 0 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .04em;
}
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 10px; letter-spacing: .12em; }
.footer-brand img { width: 30px; height: 30px; }
.site-footer p { margin: 0; flex: 1; }
.footer-links { display: flex; align-items: center; gap: 18px; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--amber-bright); }

/* ---------- gallery ---------- */
.gallery-dialog {
  width: min(980px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #141014;
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .7);
}
.gallery-dialog::backdrop { background: rgba(4, 2, 4, .82); backdrop-filter: blur(8px); }
.gallery-shell { padding: 15px; }
.gallery-head, .gallery-foot { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--muted); }
.gallery-head { padding-bottom: 12px; }
.gallery-close, .gallery-nav { border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.gallery-close { width: 30px; height: 30px; border-radius: 50%; }
.gallery-close:hover, .gallery-nav:hover { border-color: var(--amber); color: var(--amber); }
.gallery-frame { position: relative; overflow: hidden; border-radius: 9px; background: #080607; }
.gallery-frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(10, 7, 8, .7); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-foot { padding-top: 12px; }
#galleryCount { color: var(--amber); }

/* ---------- reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); gap: 28px; }
  .hero h1 { font-size: clamp(70px, 9.7vw, 120px); }
  .game-card { grid-template-columns: 1.05fr .95fr; }
  .game-info { padding: 30px; }
}
@media (max-width: 920px) {
  .hero { padding-top: 132px; }
  .hero-inner { grid-template-columns: 1fr; gap: 62px; }
  .hero-copy { max-width: 690px; }
  .hero h1 { font-size: clamp(74px, 13.5vw, 128px); }
  .hero-visual { width: min(720px, 100%); margin: 0 auto; padding: 10px 20px 35px; }
  .game-card { grid-template-columns: 1fr; }
  .game-media { min-height: 0; aspect-ratio: 16 / 8.5; }
  .game-info { min-height: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .about-intro p { max-width: 620px; }
  .about-cards { grid-template-columns: repeat(3, 1fr); }
  .feature-card { display: block; padding: 20px; }
  .feature-icon { margin-bottom: 20px; width: 36px; height: 36px; font-size: 17px; }
  .feature-card h3 { font-size: 16px; }
}
@media (max-width: 680px) {
  :root { --pad: 18px; }
  .header-inner { height: 70px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-type strong { font-size: 16px; }
  .brand-type span { font-size: 7px; }
  .main-nav { gap: 15px; }
  .main-nav > a:not(.nav-play):not(.nav-account) { display: none; }
  .main-nav .nav-account { padding: 8px 12px; font-size: 9px; }
  .main-nav .nav-play { padding: 9px 13px; font-size: 9px; }
  .hero { padding: 118px 0 85px; }
  .eyebrow { font-size: 9px; gap: 7px; }
  .eyebrow-index { display: none; }
  .hero h1 { margin-top: 23px; font-size: clamp(56px, 17vw, 94px); line-height: .88; }
  .hero-lede { font-size: 14px; line-height: 1.85; margin-bottom: 26px; }
  .hero-actions .button { flex: 1 1 auto; min-height: 49px; font-size: 10px; }
  .hero-metrics { margin-top: 38px; gap: 20px; }
  .hero-metrics dt { font-size: 23px; }
  .hero-metrics dd { font-size: 9px; }
  .hero-visual { padding: 5px 4px 34px; }
  .cabinet { padding: 8px; border-radius: 14px; }
  .cabinet-head { min-height: 20px; font-size: 7px; }
  .cabinet-foot { min-height: 26px; font-size: 7px; }
  .cabinet-screen { border-width: 3px; }
  .screen-play { left: 10px; bottom: 10px; padding: 7px 8px; font-size: 7px; }
  .screen-caption { display: none; }
  .floating-note { right: 4px; bottom: -18px; min-width: 92px; padding: 8px 10px; }
  .floating-note strong { font-size: 14px; }
  .floating-note span { font-size: 6px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading h2 { font-size: 56px; }
  .section-heading p { margin-top: 16px; text-align: left; font-size: 12px; }
  .game-card { border-radius: 16px; }
  .game-media { aspect-ratio: 16 / 10; }
  .game-index { font-size: 94px; left: 14px; }
  .media-play { right: 14px; bottom: 14px; font-size: 8px; }
  .game-info { padding: 24px 20px 22px; }
  .game-heading h3 { font-size: 46px; }
  .availability { font-size: 8px; padding: 6px 8px; }
  .game-desc { margin: 22px 0 18px; font-size: 13px; }
  .game-meta { grid-template-columns: repeat(2, 1fr); }
  .game-actions .button { flex: 1; }
  .coming-grid { grid-template-columns: 1fr; }
  .coming-card { min-height: 94px; padding: 16px 18px; }
  .coming-card-copy { display: block; }
  .about { padding-top: 68px; padding-bottom: 72px; }
  .about-intro h2 { font-size: 48px; }
  .about-intro h2 em { white-space: normal; }
  .about-cards { grid-template-columns: 1fr; }
  .feature-card { display: grid; grid-template-columns: 40px 1fr; column-gap: 13px; padding: 18px; }
  .feature-icon { grid-row: span 2; margin: 0; width: 34px; height: 34px; }
  .feature-card h3 { margin-top: 1px; }
  .feature-card p { font-size: 11px; }
  .play-banner { display: block; padding: 30px 24px 25px; margin-top: 80px; margin-bottom: 80px; border-radius: 14px; }
  .play-banner h2 { font-size: 53px; }
  .banner-button { position: relative; width: 100%; min-height: 78px; margin-top: 26px; }
  .banner-button b { right: 20px; top: 24px; }
  .site-footer { flex-wrap: wrap; padding-bottom: 28px; }
  .site-footer p { order: 3; flex: 1 0 100%; line-height: 1.7; }
  .footer-links { margin-left: auto; gap: 12px; }
  .gallery-shell { padding: 9px; }
  .gallery-head { padding-bottom: 8px; font-size: 7px; }
  .gallery-foot { font-size: 7px; }
  .gallery-nav { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.not-found { min-height: 100svh; width: min(900px, calc(100% - 40px)); margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.not-found > .brand { margin-bottom: 70px; }
.not-found h1 { margin: 16px 0 24px; font-family: var(--display); font-size: clamp(64px, 12vw, 150px); font-weight: 900; line-height: .85; letter-spacing: -.07em; }
.not-found h1 em { color: var(--amber); font-style: normal; }
.not-found p { margin: 0 0 28px; color: var(--muted); font-size: 14px; }

@media (max-width: 380px) {
  .hero h1 { font-size: 52px; }
}

@media (max-width: 380px) {
  .about-intro h2 { font-size: 42px; }
}

/* ================================================================== */
/* v2 — sharing shelf                                                  */
/* ================================================================== */
.hero h1 { font-size: clamp(64px, 7.4vw, 108px); line-height: .88; }
.main-nav .nav-account {
  padding: 10px 16px;
  border: 1px solid rgba(255,247,230,.24);
  border-radius: 999px;
  color: var(--ink) !important;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: border-color .2s, background .2s, color .2s;
}
.main-nav .nav-account:hover { border-color: var(--amber); background: rgba(243,167,18,.10); color: var(--amber-bright) !important; }
.main-nav .nav-account.is-signed-in { border-color: rgba(243,167,18,.46); color: var(--amber-bright) !important; }

.nav-share {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
}
.nav-share:hover { color: var(--amber-bright); }

.hero-stack {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  min-height: 490px;
}
.stack-card {
  color: var(--ink);
}
.stack-main {
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 3;
  display: block;
  width: 84%;
  padding: 9px;
  border: 1px solid rgba(247, 239, 225, .24);
  border-radius: 17px;
  background: linear-gradient(145deg, #251b1f, #120e11 70%);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .56), 0 0 0 5px rgba(9, 7, 8, .72);
  transform: translateY(-50%) rotate(1deg);
  transition: transform .4s var(--ease);
}
.stack-main:hover { transform: translateY(-52%) rotate(0deg); }
.stack-main > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 4px solid #080607;
  border-radius: 9px;
}
.stack-top {
  position: absolute;
  top: 19px;
  left: 19px;
  right: 19px;
  display: flex;
  justify-content: space-between;
  color: rgba(247, 239, 225, .66);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .15em;
  text-shadow: 0 1px 5px #000;
}
.stack-top span:last-child { color: var(--amber-bright); }
.stack-shade {
  position: absolute;
  inset: 9px 9px auto;
  height: calc(100% - 72px);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(5, 3, 4, .2), transparent 28%, transparent 68%, rgba(5, 3, 4, .72));
  pointer-events: none;
}
.stack-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 7px 3px; }
.stack-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  pointer-events: none;
}
.stack-copy small { color: var(--amber); font-family: var(--mono); font-size: 7px; letter-spacing: .13em; }
.stack-copy strong { overflow: hidden; font-family: var(--display); font-size: 21px; font-weight: 900; line-height: 1.1; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.stack-copy em { overflow: hidden; color: var(--ink-soft); font-family: var(--mono); font-size: 7px; font-style: normal; letter-spacing: .1em; text-overflow: ellipsis; white-space: nowrap; }
.stack-play {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(247, 239, 225, .34);
  border-radius: 5px;
  background: rgba(9, 6, 8, .55);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  backdrop-filter: blur(7px);
}
.stack-play b { color: var(--amber-bright); font-size: 13px; }
.stack-back {
  position: absolute;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(150deg, #20171b, #120e11);
  color: rgba(247, 239, 225, .22);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .16em;
}
.stack-back-a { left: 0; top: 1%; width: 64%; min-height: 315px; z-index: 1; transform: rotate(-5deg); }
.stack-back-b { left: 7%; bottom: 0; width: 58%; min-height: 270px; z-index: 2; transform: rotate(3deg); }
.stack-back img { width: 100%; height: 100%; object-fit: cover; opacity: .34; filter: saturate(.7) brightness(.55); }
.stack-back.is-ghost img { opacity: .22; filter: blur(1px) saturate(.55) brightness(.5); }
.stack-back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(13, 10, 12, .28), rgba(13, 10, 12, .8)); pointer-events: none; }
.stack-back span { position: absolute; bottom: 15px; z-index: 1; }

/* shelf controls */
.shelf-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .04em;
}
.filter-chip:hover { color: var(--ink); }
.filter-chip.is-active { border-color: var(--line-2); background: rgba(247, 239, 225, .06); color: var(--ink); }
.filter-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.game-search {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 190px;
  border-bottom: 1px solid var(--line-2);
  color: var(--muted);
  font-family: var(--mono);
}
.game-search span { font-size: 16px; }
.game-search input {
  width: 100%;
  min-height: 31px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
}
.game-search input::placeholder { color: #756960; }

/* dynamic game shelf */
.shelf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.shelf-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .16);
  transition: transform .3s var(--ease), border-color .3s;
}
.shelf-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.shelf-card.is-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(270px, .86fr);
}
.shelf-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0b090b;
}
.shelf-card.is-featured .shelf-media { height: 100%; min-height: 370px; aspect-ratio: auto; }
.shelf-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.shelf-card:hover .shelf-media img { transform: scale(1.035); filter: brightness(1.05); }
.shelf-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 3, 4, .5)); pointer-events: none; }
.shelf-index {
  position: absolute;
  left: 16px;
  bottom: -5px;
  z-index: 1;
  color: rgba(247, 239, 225, .13);
  font-family: var(--display);
  font-size: 86px;
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.08em;
  -webkit-text-stroke: 1px rgba(247, 239, 225, .25);
}
.shelf-card.is-featured .shelf-index { font-size: 126px; }
.shelf-badge {
  position: absolute;
  top: 13px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(127, 176, 105, .38);
  border-radius: 999px;
  background: rgba(9, 7, 9, .58);
  color: #c7e5b4;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  backdrop-filter: blur(5px);
}
.shelf-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.shelf-open {
  position: absolute;
  right: 14px;
  bottom: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(247, 239, 225, .35);
  border-radius: 5px;
  background: rgba(10, 7, 8, .7);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  backdrop-filter: blur(6px);
}
.shelf-open b { color: var(--amber-bright); font-size: 12px; }
.shelf-info { display: flex; flex: 1; flex-direction: column; padding: 22px 23px; }
.shelf-card.is-featured .shelf-info { padding: 30px 32px; }
.shelf-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.game-heading h3, .shelf-heading h3, .shelf-info h3 { margin: 7px 0 0; font-family: var(--display); font-size: 34px; font-weight: 900; line-height: .94; letter-spacing: -.06em; }
.shelf-card.is-featured .shelf-heading h3 { font-size: clamp(48px, 4.5vw, 66px); }
.shelf-info .game-desc { margin: 18px 0 17px; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.shelf-card.is-featured .shelf-info .game-desc { margin-top: 24px; font-size: 14px; }
.shelf-info .tags { margin-bottom: 17px; }
.shelf-info .tags li { font-size: 8px; }
.shelf-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .04em; }
.shelf-meta span + span::before { content: "·"; margin-right: 12px; color: #5d514b; }
.shelf-info .game-actions { margin-top: 17px; }
.shelf-info .game-actions .button { min-height: 42px; padding: 0 13px; font-size: 9px; }
.shelf-empty { grid-column: 1 / -1; padding: 55px 20px; border: 1px dashed var(--line-2); border-radius: 14px; color: var(--muted); font-size: 12px; text-align: center; }
.shelf-coming {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: 22px;
  border: 1px dashed var(--line-2);
  border-radius: 17px;
  background: rgba(24, 19, 24, .35);
  color: var(--muted);
}
.shelf-coming span { font-family: var(--mono); font-size: 8px; letter-spacing: .14em; }
.shelf-coming strong { max-width: 200px; margin-top: 30px; color: var(--soft); font-family: var(--display); font-size: 28px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.shelf-coming em { align-self: flex-end; color: var(--amber); font-size: 30px; font-style: normal; }
.shelf-underbar { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .06em; }
.shelf-note { color: #6e625b; }

/* P2P panel */
.p2p-section { padding-top: 0; }
.p2p-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 80px);
  padding: clamp(30px, 5vw, 62px);
  overflow: hidden;
  border: 1px solid rgba(243, 167, 18, .22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 30%, rgba(243, 167, 18, .12), transparent 42%),
    linear-gradient(135deg, #1b1518, #121014 72%);
}
.p2p-panel::before { content: ""; position: absolute; left: -18%; bottom: -70%; width: 52%; aspect-ratio: 1; border: 1px dashed rgba(243, 167, 18, .16); border-radius: 50%; pointer-events: none; }
.p2p-copy { position: relative; z-index: 1; }
.p2p-copy h2 { max-width: 670px; margin: 14px 0 18px; font-family: var(--display); font-size: clamp(36px, 3.8vw, 50px); font-weight: 900; line-height: .98; letter-spacing: -.055em; }
.p2p-copy > p { max-width: 540px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.p2p-games { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.p2p-game {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--soft);
  font-size: 10px;
  transition: border-color .2s, color .2s;
}
.p2p-game:hover { border-color: var(--amber); color: var(--amber-2); }
.p2p-game img { width: 32px; height: 22px; border-radius: 3px; object-fit: cover; }
.p2p-game span { color: var(--amber); font-family: var(--mono); font-size: 7px; letter-spacing: .08em; }
.p2p-empty { color: var(--muted); font-family: var(--mono); font-size: 8px; }
.p2p-diagram { position: relative; display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 260px; padding: 20px 0 30px; }
.p2p-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 120px;
  min-height: 90px;
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(247, 239, 225, .04);
}
.p2p-node span { color: var(--muted); font-family: var(--mono); font-size: 7px; letter-spacing: .1em; }
.p2p-node strong { color: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }
.p2p-node i { position: absolute; right: 12px; bottom: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.p2p-link { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100px; color: var(--amber); font-family: var(--mono); font-size: 7px; letter-spacing: .1em; text-align: center; }
.p2p-link div { position: relative; width: 100%; border-top: 1px dashed rgba(243, 167, 18, .55); }
.p2p-link div::after { content: "↔"; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); color: var(--amber-bright); font-size: 17px; }
.p2p-link small { color: var(--muted); font-size: 6px; }
.p2p-domain { position: absolute; bottom: 0; color: #685b53; font-family: var(--mono); font-size: 7px; letter-spacing: .1em; }

.footer-admin { color: var(--muted); font-size: 8px; }
.footer-admin:hover { color: var(--amber-bright); }

@media (max-width: 1180px) {
  .hero h1 { font-size: clamp(58px, 7.6vw, 98px); }
  .hero-stack { min-height: 430px; }
  .stack-main { width: 88%; }
  .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf-card.is-featured { grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr); }
  .p2p-diagram { transform: scale(.9); }
}
@media (max-width: 920px) {
  .hero h1 { font-size: clamp(60px, 10.5vw, 100px); }
  .hero-stack { width: min(680px, 100%); min-height: 440px; margin: 0 auto; }
  .stack-main { width: 82%; }
  .shelf-card.is-featured { display: flex; }
  .shelf-card.is-featured .shelf-media { min-height: 0; aspect-ratio: 16 / 8.5; }
  .shelf-card.is-featured .shelf-heading h3 { font-size: 48px; }
  .p2p-panel { grid-template-columns: 1fr; }
  .p2p-diagram { min-height: 210px; transform: none; }
  .p2p-copy h2 { max-width: none; }
}
@media (max-width: 680px) {
  .hero h1 { font-size: clamp(46px, 14.2vw, 76px); }
  .hero-stack { min-height: 330px; }
  .stack-main { width: 84%; padding: 6px; border-radius: 12px; }
  .stack-main > img { border-width: 3px; }
  .stack-top { top: 12px; left: 12px; right: 12px; font-size: 6px; }
  .stack-caption { padding: 8px 4px 2px; }
  .stack-copy strong { font-size: 16px; }
  .stack-copy small, .stack-copy em { font-size: 6px; }
  .stack-play { padding: 6px 7px; font-size: 6px; }
  .stack-play b { font-size: 10px; }
  .stack-back-a { min-height: 200px; }
  .stack-back-b { min-height: 170px; }
  .floating-note { right: 5px; bottom: -20px; }
  .shelf-controls { display: block; padding-bottom: 12px; }
  .filter-chips { gap: 2px; }
  .filter-chip { min-height: 31px; padding: 0 9px; font-size: 8px; }
  .game-search { width: 100%; margin-top: 12px; }
  .shelf-grid { grid-template-columns: 1fr; }
  .shelf-card.is-featured { grid-column: auto; }
  .shelf-card.is-featured .shelf-media, .shelf-media { min-height: 0; aspect-ratio: 16 / 9; }
  .shelf-index { font-size: 76px; left: 13px; }
  .shelf-card.is-featured .shelf-index { font-size: 92px; }
  .shelf-info, .shelf-card.is-featured .shelf-info { padding: 20px; }
  .shelf-card.is-featured .shelf-heading h3 { font-size: 43px; }
  .shelf-info .game-desc { font-size: 12px; }
  .shelf-underbar { display: block; line-height: 1.9; }
  .shelf-note { display: block; margin-top: 2px; }
  .p2p-panel { padding: 26px 20px; border-radius: 15px; }
  .p2p-copy h2 { font-size: 38px; }
  .p2p-diagram { min-height: 170px; gap: 8px; }
  .p2p-node { width: 96px; min-height: 72px; padding: 12px; }
  .p2p-node strong { font-size: 10px; }
  .p2p-link { width: 64px; font-size: 6px; }
  .p2p-domain { font-size: 6px; }
  .about-intro h2 { font-size: 48px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 46px; }
  .stack-main { width: 88%; }
  .stack-copy strong { font-size: 17px; }
  .p2p-diagram { transform: scale(.9); }
}

/* dynamic extras */
.portal-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(20, 16, 20, .94);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .04em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .2s, transform .2s;
  backdrop-filter: blur(10px);
}
.portal-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.stack-main.stack-empty-card {
  display: grid;
  align-content: end;
  min-height: 380px;
  background: linear-gradient(145deg, #20171b, #100d10);
  border-style: dashed;
}
.stack-main.stack-empty-card .stack-copy { position: relative; left: auto; bottom: auto; padding: 24px; }
.stack-main.stack-empty-card .stack-copy strong { font-size: 26px; }
@media (max-width: 680px) {
  .stack-main.stack-empty-card { min-height: 240px; }
  .stack-main.stack-empty-card .stack-copy { padding: 18px; }
}
