:root {
  --bg: #0d0c12;
  --bg-2: #15131d;
  --bg-3: #1c1926;
  --ink: #f3efe6;
  --muted: #9d97ab;
  --line: #2a2635;
  --accent: #b4e33d;
  --accent-dk: #5f7d12;
  --lcd-0: #0f380f;
  --lcd-1: #306230;
  --lcd-2: #8bac0f;
  --lcd-3: #9bbc0f;
  --red: #d8392b;
  --red-lt: #ee5b45;
  --red-dk: #a3241a;
  --emboss: #4a0f0a;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --lcd-font: "VT323", ui-monospace, monospace;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent); }
img, svg { display: block; }

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(216, 57, 43, .22), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(180, 227, 61, .10), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg);
}

/* ---------- Header + ticker ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 18px 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--pixel);
  font-size: 15px;
  letter-spacing: .02em;
}
.logo span { transform: skewX(-8deg); }
.top-actions { display: flex; gap: 10px; }

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(10, 9, 14, .8);
  font-family: var(--pixel);
  font-size: 9px;
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  padding: 12px 0;
  animation: marquee 70s linear infinite;
}
.ticker-track span { padding: 0 18px; }
.ticker-track span::after { content: "◆"; margin-left: 36px; color: var(--red-lt); }
.ticker-track .live { color: var(--ink); }
.ticker-track .live::before { content: "● "; color: var(--red-lt); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 56px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 36px 32px 72px;
}
.console-col {
  position: sticky;
  top: 24px;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hint {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
kbd {
  display: inline-block;
  min-width: 20px;
  margin: 0 2px;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--bg-3);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .5), 0 0 0 1px var(--line);
  font-family: var(--sans);
  font-size: 10px;
  color: var(--ink);
  text-align: center;
}

/* ---------- The handheld ---------- */
.stage { position: relative; width: 340px; height: 640px; --s: 1; }
.stage-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 340px;
  height: 640px;
  transform: scale(var(--s));
  transform-origin: top left;
}

.slot-cart {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: 184px;
  height: 120px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(#cfcdd6, #a9a6b3);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(0, 0, 0, .15);
  clip-path: polygon(0 0, 88% 0, 100% 16%, 100% 100%, 0 100%);
  opacity: 0;
  transform: translate(-50%, -170px);
  transition: transform .5s cubic-bezier(.3, 1.35, .5, 1), opacity .2s;
}
.slot-cart.in { opacity: 1; transform: translate(-50%, 0); }
.slot-cart.out { transition: transform .22s ease-in, opacity .22s .1s; }
.slot-ridges {
  position: absolute;
  inset: 8px 14px auto;
  height: 12px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 6px);
  border-radius: 2px;
}
.slot-label {
  position: absolute;
  inset: 26px 14px 0;
  border-radius: 4px 4px 0 0;
  background: var(--c, #555);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .18);
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.slot-title {
  font-family: var(--pixel);
  font-size: 9px;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .6);
  white-space: nowrap;
}

.console {
  position: absolute;
  top: 56px;
  left: 0;
  z-index: 1;
  width: 340px;
  height: 584px;
  padding: 0 20px;
  border-radius: 22px 22px 58px 58px;
  background:
    radial-gradient(160px 100px at 20% 0%, rgba(255, 255, 255, .18), transparent 70%),
    linear-gradient(165deg, var(--red-lt), var(--red) 38%, var(--red-dk));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .28),
    inset 0 -7px 0 rgba(0, 0, 0, .22),
    inset 3px 0 0 rgba(255, 255, 255, .06),
    0 34px 70px rgba(0, 0, 0, .65),
    0 0 0 1px rgba(0, 0, 0, .45);
}
.console-top {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.seam {
  position: absolute;
  left: -20px;
  right: -20px;
  top: 16px;
  height: 2px;
  background: rgba(0, 0, 0, .22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18);
}
.model {
  position: relative;
  margin-top: 30px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 6px;
  letter-spacing: .2em;
  color: rgba(60, 10, 6, .7);
}

.bezel {
  position: relative;
  margin-top: 4px;
  padding: 10px 26px 20px;
  border-radius: 10px 10px 30px 30px;
  background: linear-gradient(#2c2a35, #22202a);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .15);
}
.bezel-text {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 6.5px;
  letter-spacing: .2em;
  color: #9f99ae;
  white-space: nowrap;
}
.bezel-text i { flex: 1; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.bezel-text i:last-child { background: linear-gradient(270deg, var(--red-lt), transparent); }
.led {
  position: absolute;
  left: 9px;
  top: 110px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b1512;
  transition: background .2s, box-shadow .2s;
}
.led.on { background: #ff4033; box-shadow: 0 0 8px 2px rgba(255, 64, 51, .7); }
.led-label {
  position: absolute;
  left: 4px;
  top: 124px;
  font-size: 4.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #8a8497;
}

.screen {
  position: relative;
  width: 248px;
  height: 224px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--lcd-3);
  color: var(--lcd-0);
  box-shadow: inset 0 0 0 2px rgba(15, 56, 15, .35), inset 0 0 26px rgba(15, 56, 15, .35);
  font-family: var(--lcd-font);
  font-size: 20px;
  line-height: 1;
  cursor: default;
  user-select: none;
}
.screen.off { background: #7d8f32; }
.screen.off .screen-inner { opacity: 0; }
.screen.flash { animation: flash .35s steps(3); }
@keyframes flash { 0%, 100% { filter: none; } 50% { filter: brightness(1.35) contrast(.6); } }
.screen-inner { position: absolute; inset: 0; padding: 10px 10px 8px; }
.screen-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(15, 56, 15, .08) 1px, transparent 1px) 0 0 / 3px 3px,
    linear-gradient(90deg, rgba(15, 56, 15, .08) 1px, transparent 1px) 0 0 / 3px 3px,
    linear-gradient(155deg, rgba(255, 255, 255, .16), transparent 40%);
}
.screen svg { color: var(--lcd-0); --icon-light: var(--lcd-2); }
.px-l { fill: var(--icon-light, #fff); }

/* screen: boot */
.v-boot { height: 100%; display: grid; place-items: center; }
.boot-logo {
  font-family: var(--pixel);
  font-size: 15px;
  letter-spacing: .02em;
  animation: drop 1.6s steps(16) both;
}
.boot-logo small { display: block; margin-top: 10px; font-family: var(--lcd-font); font-size: 16px; text-align: center; }
.v-boot.quick .boot-logo { animation-duration: .45s; animation-timing-function: steps(5); }
@keyframes drop { from { transform: translateY(-120px); } to { transform: none; } }

/* screen: menu */
.v-menu { height: 100%; display: flex; flex-direction: column; }
.m-head, .m-foot {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  color: var(--lcd-1);
}
.m-head { padding-bottom: 4px; border-bottom: 2px solid var(--lcd-1); }
.m-foot { padding-top: 4px; border-top: 2px solid var(--lcd-1); margin-top: auto; }
.m-list { list-style: none; margin: 4px 0; padding: 0; }
.m-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 22px;
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}
.m-list li span { overflow: hidden; text-overflow: ellipsis; }
.m-list li em { margin-left: auto; font-style: normal; font-size: 15px; }
.m-list li.sel { background: var(--lcd-0); color: var(--lcd-3); }
.m-list li.sel svg { color: var(--lcd-3); --icon-light: var(--lcd-2); }
.m-list li.sel::before { content: "▶"; font-size: 12px; margin-right: -4px; }
.m-empty { padding: 30px 6px; text-align: center; color: var(--lcd-1); }

/* screen: card */
.v-card { height: 100%; display: flex; flex-direction: column; }
.c-top { display: flex; gap: 10px; align-items: center; }
.c-title { font-family: var(--pixel); font-size: 11px; line-height: 1.35; }
.c-by { margin-top: 4px; font-size: 17px; color: var(--lcd-1); }
.c-blurb { margin: 10px 0 0; font-size: 18px; line-height: 1.05; }
.c-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.c-meta span { padding: 1px 5px 0; border: 2px solid var(--lcd-1); font-size: 15px; }
.c-play { margin-top: auto; text-align: center; font-family: var(--pixel); font-size: 9px; padding: 8px 0 2px; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* screen: playing */
.v-play { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.v-play .p-title { font-family: var(--pixel); font-size: 10px; line-height: 1.4; }
.bar { width: 80%; height: 12px; border: 2px solid var(--lcd-0); padding: 2px; }
.bar i { display: block; height: 100%; background: var(--lcd-0); animation: load .9s steps(10) forwards; }
@keyframes load { from { width: 0; } to { width: 100%; } }
.v-play a { color: var(--lcd-0); }
.v-play .small { font-size: 17px; color: var(--lcd-1); }

/* controls */
.brand { margin: 14px 4px 0; }
.brand b {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 15px;
  font-weight: 400;
  color: var(--emboss);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .22);
  transform: skewX(-9deg);
}
.brand span {
  display: block;
  margin-top: 6px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .24em;
  color: rgba(74, 15, 10, .8);
}

.pad { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding: 0 4px 0 6px; }
.dpad {
  display: grid;
  grid-template-columns: repeat(3, 32px);
  grid-template-rows: repeat(3, 32px);
  grid-template-areas: ". up ." "left mid right" ". down .";
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .35));
}
.d { border: 0; padding: 0; background: #1e1c23; position: relative; }
.d.up { grid-area: up; border-radius: 5px 5px 0 0; }
.d.down { grid-area: down; border-radius: 0 0 5px 5px; }
.d.left { grid-area: left; border-radius: 5px 0 0 5px; }
.d.right { grid-area: right; border-radius: 0 5px 5px 0; }
.d.mid { grid-area: mid; background: radial-gradient(circle, #141217 30%, #1e1c23 32%); }
.d::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border: 5px solid transparent;
}
.d.up::after { border-bottom-color: #3a3742; margin-top: 7px; }
.d.down::after { border-top-color: #3a3742; margin-bottom: 7px; }
.d.left::after { border-right-color: #3a3742; margin-left: 7px; }
.d.right::after { border-left-color: #3a3742; margin-right: 7px; }
.d.mid::after { display: none; }
.d:active, .d.pressed { background: #121015; }

.ab { position: relative; width: 124px; height: 96px; transform: rotate(-24deg); margin-right: 2px; }
.ab-btn { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ab-btn.b { left: 0; top: 36px; }
.ab-btn.a { right: 0; top: 4px; }
.ab-btn button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a3a4d, #2a1f2d 60%);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .45), inset 0 -2px 0 rgba(0, 0, 0, .3);
}
.ab-btn button:active, .ab-btn button.pressed { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .45); }
.ab-btn span, .pill span { font-family: var(--pixel); font-size: 8px; color: var(--emboss); }

.pills { display: flex; justify-content: center; gap: 22px; margin-top: 20px; padding-right: 40px; }
.pill { display: flex; flex-direction: column; align-items: center; gap: 7px; transform: rotate(-24deg); }
.pill button {
  width: 46px;
  height: 13px;
  border: 0;
  border-radius: 8px;
  background: #3b3742;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .4), inset 0 0 0 2px rgba(0, 0, 0, .25);
}
.pill button:active, .pill button.pressed { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.pill span { font-size: 6px; letter-spacing: .05em; }

.speaker {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 62px;
  height: 50px;
  background-image: radial-gradient(circle, rgba(0, 0, 0, .45) 2.3px, transparent 2.8px);
  background-size: 10px 10px;
  transform: rotate(-24deg);
}

.signature {
  position: absolute;
  left: 30px;
  bottom: 22px;
  font-family: var(--sans);
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgba(74, 15, 10, .55);
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .14);
}
.signature:hover { color: rgba(74, 15, 10, .9); }

/* ---------- Intro + feed ---------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: stretch;
}
.kicker, .label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--pixel);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--accent);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-lt); box-shadow: 0 0 10px var(--red-lt); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
h1 {
  margin: 18px 0 0;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.02;
  letter-spacing: -.025em;
  font-weight: 700;
  max-width: 14ch;
  text-wrap: balance;
}
.sub { margin: 16px 0 0; max-width: 46ch; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.feed-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(21, 19, 29, .75);
}
.feed {
  position: relative;
  flex: 1;
  min-height: 200px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent);
}
.feed-track { position: absolute; inset: 0 0 auto; list-style: none; margin: 0; padding: 0; animation: feed 36s linear infinite; }
.feed:hover .feed-track { animation-play-state: paused; }
.feed-track li { padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 1.35; }
.feed-track time { display: block; margin-bottom: 4px; font-family: var(--pixel); font-size: 7px; color: var(--muted); }
.feed-track b { color: var(--accent); font-weight: 500; }
@keyframes feed { to { transform: translateY(-50%); } }

/* ---------- Shelf ---------- */
.shelf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 52px 0 22px;
}
.count { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--pixel);
  font-size: 8px;
  color: var(--muted);
}
.chips button:hover { color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--accent); color: #11160a; box-shadow: none; }

.shelf {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 30px 22px;
}
.cart-item { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.cart {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 5.6;
  padding: 0;
  border: 0;
  background: linear-gradient(#d3d1da, #aeabb8);
  clip-path: polygon(0 0, 84% 0, 100% 9%, 100% 100%, 0 100%);
  border-radius: 6px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), inset 0 -4px 0 rgba(0, 0, 0, .18);
  transition: transform .18s ease, filter .18s ease;
  text-align: left;
}
.cart-item:hover .cart, .cart:focus-visible { transform: translateY(-6px) rotate(-1.2deg); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .55)); }
.cart:focus-visible { outline: none; }
.cart:focus-visible .cart-label { outline: 3px solid var(--accent); outline-offset: 3px; }
.cart-ridges {
  position: absolute;
  top: 7%;
  left: 9%;
  right: 20%;
  height: 7%;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 7px);
  border-radius: 2px;
}
.cart-label {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 20%;
  bottom: 15%;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 5px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .22), transparent 45%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 4px),
    var(--c);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .18);
  overflow: hidden;
}
.cart-icon { color: rgba(0, 0, 0, .72); --icon-light: #fff; }
.cart-title {
  margin-top: auto;
  font-family: var(--pixel);
  font-size: 9px;
  line-height: 1.35;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .55);
  word-break: break-word;
}
.cart-tags { display: flex; gap: 4px; margin-top: 6px; }
.cart-tags b {
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .35);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
}
.cart-arrow {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: rgba(0, 0, 0, .3);
}
.badge {
  position: absolute;
  top: 24%;
  right: 13%;
  padding: 3px 5px;
  border-radius: 3px;
  font-family: var(--pixel);
  font-size: 7px;
  line-height: 1;
}
.badge.new { background: var(--accent); color: #11160a; animation: pulse 1.6s ease-in-out infinite; }
.badge.hot { background: #11101a; color: var(--accent); }
.badge.soon { background: #11101a; color: #ffd166; animation: pulse 1.6s ease-in-out infinite; }
.cart-item.is-current .cart-label { outline: 3px solid var(--accent); outline-offset: 3px; }
.cart-item.is-cursor:not(.is-current) .cart-label { outline: 2px dashed rgba(180, 227, 61, .6); outline-offset: 3px; }

.cart-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.cart-meta .by { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-link {
  flex: none;
  font-family: var(--pixel);
  font-size: 8px;
  text-decoration: none;
  color: var(--accent);
  padding: 6px 0;
}
.play-link:hover { text-decoration: underline; }

.cart.flying { position: fixed; z-index: 60; pointer-events: none; transition: none; }

/* ---------- Buttons, dialog, toast, footer ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #11160a;
  box-shadow: 0 4px 0 var(--accent-dk);
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  transition: transform .06s, box-shadow .06s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-dk); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px #3a3546; }
.btn.ghost:active { transform: translateY(1px); }
.btn.small { padding: 10px 12px; font-size: 8px; }
.btn.big { padding: 16px 18px; font-size: 11px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.dlg {
  width: min(440px, calc(100% - 32px));
  padding: 26px;
  border: 1px solid #332e42;
  border-radius: 16px;
  background: var(--bg-2);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.dlg::backdrop { background: rgba(5, 5, 10, .72); backdrop-filter: blur(4px); }
.dlg h3 { margin: 0; font-family: var(--pixel); font-size: 13px; font-weight: 400; color: var(--accent); }
.dlg p { color: var(--muted); font-size: 15px; }
.dlg label { display: block; margin-top: 14px; font-size: 13px; font-weight: 500; }
.dlg label small { color: var(--muted); font-weight: 400; }
.dlg input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #383246;
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.dlg input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.dlg .err { min-height: 1.4em; margin: 10px 0 0; color: #ff7a6b; font-size: 13px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.dlg .fine { margin: 16px 0 0; font-size: 12px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #11160a;
  font-family: var(--pixel);
  font-size: 9px;
  line-height: 1.5;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.foot {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 32px 48px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.foot p { margin: 0 0 6px; }
.foot b { color: var(--ink); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .intro { grid-template-columns: 1fr; }
  .feed { min-height: 150px; }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 36px; padding: 24px 16px 56px; }
  .console-col { position: static; }
  .top { padding: 14px 16px; }
  .foot { padding: 24px 16px 40px; }
  h1 { max-width: 18ch; }
}
@media (max-width: 560px) {
  .logo { font-size: 12px; gap: 8px; }
  .logo img { width: 22px; height: 22px; }
  #soundBtn { display: none; }
  .hint { display: none; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .cart-title { font-size: 8px; }
  .cart-label { padding: 8px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .shelf-head { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .feed-track, .dot, .badge.new, .badge.soon, .blink { animation: none; }
  .ticker { overflow-x: auto; }
  .feed { overflow-y: auto; }
  .feed-track { position: static; }
  .cart, .slot-cart { transition: none; }
}
