:root {
  color-scheme: dark;
  --bg: #031345;
  --panel: rgba(5, 21, 67, .78);
  --panel-soft: rgba(8, 28, 79, .58);
  --text: #fff;
  --muted: rgba(226, 235, 255, .68);
  --line: rgba(255, 255, 255, .18);
  --accent: #66e2d5;
  --accent-rgb: 102, 226, 213;
  --tile-size: 158px;
  --selected-size: 218px;
  --shadow: 0 24px 70px rgba(0, 8, 42, .42);
}

body[data-active="tomato"] {
  --accent: #ff6257;
  --accent-rgb: 255, 98, 87;
}

body[data-active="barricade"] {
  --accent: #96c64f;
  --accent-rgb: 150, 198, 79;
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.launch-open { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.scene-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(var(--accent-rgb), .22), transparent 38%),
    linear-gradient(145deg, #082a85, #020a28);
  transition: background .5s ease;
}
.scene-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 12, 50, .97) 0%, rgba(2, 19, 67, .8) 36%, rgba(4, 22, 71, .52) 67%, rgba(1, 8, 32, .78) 100%),
    linear-gradient(180deg, rgba(1, 8, 33, .84) 0%, transparent 18%, rgba(1, 10, 42, .35) 55%, rgba(1, 7, 29, .95) 100%);
}
.featured-art {
  position: absolute;
  z-index: 1;
  top: 4%;
  right: -3%;
  width: min(64vw, 980px);
  height: 88%;
  overflow: hidden;
  opacity: .34;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 76% 84% at 72% 52%, #000 38%, rgba(0,0,0,.9) 58%, transparent 100%);
  transition: opacity .2s ease, transform .3s ease;
}
.featured-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
  filter: saturate(.72) contrast(1.03) brightness(.72);
}
body[data-active="tomato"] .featured-art { opacity: .41; }
body[data-active="barricade"] .featured-art { opacity: .31; }
.scene-background::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 60%);
}
.light-ribbon {
  position: absolute;
  width: 130vw;
  height: 32vh;
  left: -20vw;
  border: 1px solid rgba(108, 193, 255, .22);
  border-radius: 50%;
  transform: rotate(-9deg);
  box-shadow: 0 0 60px rgba(46, 128, 255, .09), inset 0 0 40px rgba(46, 128, 255, .05);
}
.ribbon-one { bottom: -20vh; }
.ribbon-two { bottom: -29vh; transform: rotate(-5deg); opacity: .6; }

.console-shell {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 76px minmax(0, 1fr) 52px;
}

.console-topbar {
  padding: 0 clamp(24px, 4.6vw, 76px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(0, 7, 32, .38), transparent);
}
.console-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}
.console-brand > span:last-child { display: grid; line-height: 1; }
.console-brand b { font-size: 14px; letter-spacing: .13em; }
.console-brand small { margin-top: 4px; color: #87c8ff; font-size: 7px; font-weight: 800; letter-spacing: .34em; }
.console-mark {
  width: 39px;
  height: 39px;
  display: grid;
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  place-content: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.45);
  transform: rotate(45deg);
}
.console-mark i { display: block; background: #fff; }
.console-mark i:nth-child(1) { border-radius: 50%; }
.console-mark i:nth-child(2) { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.console-mark i:nth-child(3) { background: transparent; border: 2px solid #fff; }
.console-mark i:nth-child(4) { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

.console-nav {
  justify-self: start;
  display: flex;
  align-self: stretch;
  gap: 6px;
}
.nav-item {
  position: relative;
  min-width: 72px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  cursor: pointer;
}
.nav-item::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
}
.nav-item:hover, .nav-item.active { color: #fff; }
.nav-item.active::after { background: #fff; box-shadow: 0 0 14px rgba(255,255,255,.6); }

.console-status {
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 11px;
}
.online-pill { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.online-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7af59d;
  box-shadow: 0 0 12px #7af59d;
}
#clock { min-width: 38px; font-variant-numeric: tabular-nums; font-weight: 700; }
.round-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  cursor: pointer;
}
.round-button:hover { background: rgba(255,255,255,.16); }
.round-button svg { width: 17px; height: 17px; }
.profile-chip { display: flex; align-items: center; gap: 8px; }
.profile-chip i {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(145deg, #57c7ff, #1557db);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
}
.profile-chip b { font-size: 10px; }

.home-stage {
  min-width: 0;
  min-height: 0;
  padding: 0 clamp(24px, 5.8vw, 94px) 20px;
  display: grid;
  grid-template-rows: 42px 55px 258px minmax(180px, 1fr);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.32) transparent;
}
.welcome-line {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,.9);
  font-size: 11px;
}
.welcome-line small { color: rgba(255,255,255,.5); font-size: 9px; }
.rail-heading {
  height: 55px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.section-kicker {
  display: block;
  margin-bottom: 2px;
  color: rgba(255,255,255,.53);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.rail-heading h1 { margin: 0; font-size: 25px; line-height: 1; font-weight: 500; }
.rail-counter { color: rgba(255,255,255,.5); font-size: 10px; }
.rail-counter b { color: #fff; font-size: 15px; }

.rail-viewport {
  min-width: 0;
  height: 258px;
  overflow: hidden;
}
.game-rail {
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 8px 20px 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  touch-action: pan-x;
}
.game-rail::-webkit-scrollbar { display: none; }
.game-card {
  position: relative;
  flex: 0 0 var(--tile-size);
  width: var(--tile-size);
  scroll-snap-align: start;
  transition: width .09s cubic-bezier(.2,.8,.2,1), flex-basis .09s cubic-bezier(.2,.8,.2,1), transform .09s ease;
}
.game-card.selected {
  flex-basis: var(--selected-size);
  width: var(--selected-size);
  z-index: 2;
}
.tile-button {
  position: relative;
  width: var(--tile-size);
  height: var(--tile-size);
  padding: 0;
  display: block;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 3px;
  background: #08123b;
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
  cursor: pointer;
  transition: width .09s cubic-bezier(.2,.8,.2,1), height .09s cubic-bezier(.2,.8,.2,1), border-color .06s ease, box-shadow .08s ease;
}
.game-card.selected .tile-button {
  width: var(--selected-size);
  height: var(--selected-size);
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .88), 0 22px 52px rgba(0, 7, 40, .52), 0 0 30px rgba(var(--accent-rgb), .28);
}
.tile-button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .15s ease, filter .1s ease;
}
.game-card:not(.selected) .tile-button img { filter: brightness(.72) saturate(.82); }
.game-card.selected .tile-button img { transform: scale(1.035); }
.game-card[data-game="barricade"] .tile-button img { object-position: center; }
.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(2,7,25,.15) 48%, rgba(1,5,21,.9) 100%);
}
.tile-logo {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 15px;
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  text-align: left;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.65));
}
.tile-logo > i {
  grid-row: 1 / 3;
  align-self: center;
  width: 28px;
  height: 28px;
  border: 3px solid #fff;
  transform: rotate(45deg);
}
.sprout-logo > i::after {
  content: "";
  display: block;
  width: 8px;
  height: 15px;
  margin: 4px auto;
  border-radius: 50% 50% 45% 45%;
  background: var(--accent);
}
.tomato-logo > i {
  border: 0;
  border-radius: 50%;
  background: #ff574d;
  box-shadow: inset -5px -6px 0 rgba(123,21,20,.35);
  transform: none;
}
.tomato-logo > i::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 8px;
  margin: -4px 0 0 7px;
  background: #81dc68;
  clip-path: polygon(50% 0, 64% 38%, 100% 25%, 73% 57%, 100% 85%, 59% 72%, 43% 100%, 40% 68%, 0 78%, 25% 52%, 0 30%, 39% 37%);
}
.barricade-logo > i {
  border: 0;
  border-radius: 2px;
  background: var(--accent);
  clip-path: polygon(0 100%,0 35%,19% 35%,19% 0,38% 0,38% 35%,62% 35%,62% 0,81% 0,81% 35%,100% 35%,100% 100%);
  transform: none;
}
.tile-logo b { align-self: end; font-size: 15px; line-height: 1.1; }
.tile-logo small { margin-top: 3px; color: rgba(255,255,255,.7); font-size: 8px; }
.tile-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255,255,255,.14);
}
.tile-progress i { display: block; height: 100%; background: var(--accent); }
.tile-caption {
  display: block;
  max-width: var(--selected-size);
  padding-top: 8px;
  overflow: hidden;
  color: rgba(255,255,255,.88);
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(-5px);
  transition: .2s ease .05s;
}
.game-card.selected .tile-caption { opacity: 1; transform: translateY(0); }

.utility-tile {
  position: relative;
  flex: 0 0 var(--tile-size);
  width: var(--tile-size);
  height: var(--tile-size);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 3px;
  background: linear-gradient(145deg, rgba(255,255,255,.2), rgba(36,94,211,.4));
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  cursor: pointer;
}
.utility-tile:hover { border-color: #fff; background: linear-gradient(145deg, rgba(255,255,255,.28), rgba(36,94,211,.52)); }
.utility-art { position: absolute; inset: 0; }
.utility-art i { position: absolute; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); font-style: normal; }
.utility-art i:nth-child(1) { width: 46px; height: 46px; top: 24px; left: 23px; font-size: 24px; transform: rotate(-10deg); }
.utility-art i:nth-child(2) { right: 26px; top: 23px; border: 0; font-size: 24px; transform: rotate(10deg); }
.utility-art i:nth-child(3) { width: 34px; height: 34px; top: 70px; right: 35px; border-radius: 50%; }
.utility-tile b, .utility-tile small { position: relative; z-index: 1; text-align: left; }
.utility-tile b { font-size: 12px; }
.utility-tile small { margin-top: 5px; color: rgba(255,255,255,.62); font-size: 7px; line-height: 1.45; }

.selected-game {
  min-height: 180px;
  padding: 14px 0 25px;
  display: grid;
  grid-template-columns: minmax(230px, .7fr) minmax(560px, 1.3fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: end;
  animation: detailIn .36s ease both;
}
@keyframes detailIn { from { opacity: .45; transform: translateY(7px); } }
.launch-corner {
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.game-category {
  display: block;
  margin: 0;
  color: rgba(var(--accent-rgb), .95);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
}
.compact-info {
  width: min(760px, 100%);
  justify-self: end;
  padding: 15px 18px 14px;
  border-top: 1px solid rgba(255,255,255,.3);
  background: linear-gradient(100deg, rgba(2,15,54,.18), rgba(3,19,65,.78));
  backdrop-filter: blur(9px);
}
.compact-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.game-location { display: flex; align-items: baseline; gap: 8px; }
.game-location small { color: rgba(255,255,255,.46); font-size: 7px; }
.game-location b { font-size: 10px; font-weight: 500; }
.compact-info h2 {
  margin: 5px 0 0;
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1;
  letter-spacing: -.05em;
  text-shadow: 0 3px 18px rgba(0,0,0,.35);
}
.compact-info h2 em { color: var(--accent); font-style: normal; font-weight: 350; }
.compact-info > p {
  margin: 8px 0 10px;
  overflow: hidden;
  color: rgba(238,244,255,.74);
  font-size: 9px;
  line-height: 1.55;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.game-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.game-tags span {
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(3,17,58,.28);
  color: rgba(255,255,255,.75);
  font-size: 7px;
}
.compact-lower {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.primary-action {
  min-width: 150px;
  height: 42px;
  padding: 0 18px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 2px;
  background: rgba(255,255,255,.96);
  color: #081641;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.primary-action:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.primary-action b { font-size: 10px; }
.controller-key {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0e2776;
  color: #fff;
  font-size: 15px;
  line-height: 1;
}
.control-note { color: rgba(255,255,255,.56); font-size: 8px; }
.quick-stats {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
}
.quick-stats > span {
  min-width: 82px;
  padding: 1px 12px 0;
  display: grid;
  gap: 3px;
  border-left: 1px solid rgba(255,255,255,.18);
}
.quick-stats small { color: rgba(255,255,255,.48); font-size: 6px; }
.quick-stats b { color: rgba(255,255,255,.92); font-size: 11px; white-space: nowrap; }

.console-footer {
  padding: 0 clamp(24px, 4.6vw, 76px);
  display: flex;
  align-items: center;
  gap: 22px;
  border-top: 1px solid rgba(255,255,255,.11);
  background: rgba(0, 7, 30, .42);
  color: rgba(255,255,255,.66);
  font-size: 8px;
}
.console-footer > span { display: flex; align-items: center; gap: 6px; }
.key-icon {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  color: #fff;
  font-style: normal;
  font-size: 11px;
}
.cross { border-color: #77bfff; color: #77bfff; }
.circle { border-color: #ff8f9b; color: #ff8f9b; }
.arrow-icon {
  min-width: 31px;
  padding: 2px 4px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 3px;
  color: #fff;
  font-style: normal;
  letter-spacing: 3px;
}
.footer-brand { margin-left: auto; letter-spacing: .09em; }

/* Full-screen game launcher */
.launcher {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: 66px 1fr;
  background: #020719;
  animation: launcherIn .3s cubic-bezier(.2,.8,.2,1) both;
}
.launcher[hidden] { display: none; }
@keyframes launcherIn { from { opacity: 0; transform: scale(.985); } }
.launcher-bar {
  min-width: 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(90deg, #061a58, #05123e);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
.back-button {
  height: 40px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 3px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.74);
  font-size: 9px;
  cursor: pointer;
}
.back-button:hover { color: #fff; background: rgba(255,255,255,.14); }
.back-button svg { width: 17px; height: 17px; }
.launcher-title { min-width: 190px; display: flex; align-items: center; gap: 10px; }
.launcher-title > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: #66e2d5;
}
.launcher-title > span::after { content: ""; width: 12px; height: 12px; border: 3px solid #0a3f46; transform: rotate(45deg); }
.launcher-title > span.tomato { background: #ff6257; border-radius: 50%; }
.launcher-title > span.tomato::after { border: 0; border-radius: 50%; background: #8d1b1b; transform: none; }
.launcher-title > span.barricade { background: #96c64f; }
.launcher-title > span.barricade::after { border: 0; background: #23330d; clip-path: polygon(0 100%,0 35%,22% 35%,22% 0,42% 0,42% 35%,62% 35%,62% 0,82% 0,82% 35%,100% 35%,100% 100%); transform: none; }
.launcher-title div { min-width: 0; display: grid; gap: 2px; }
.launcher-title small { color: rgba(255,255,255,.55); font-size: 7px; }
.launcher-title b { overflow: hidden; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.game-switcher {
  justify-self: center;
  display: flex;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 3px;
  background: rgba(0,0,0,.13);
}
.game-switcher button {
  height: 32px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.55);
  font-size: 8px;
  cursor: pointer;
}
.game-switcher button.active { background: rgba(255,255,255,.14); color: #fff; }
.game-switcher span { width: 8px; height: 8px; border-radius: 50%; }
.sprout-dot { background: #66e2d5; }
.tomato-dot { background: #ff6257; }
.barricade-dot { background: #96c64f; }
.launcher-actions { display: flex; align-items: center; gap: 7px; }
.current-controls { margin-right: 5px; color: rgba(255,255,255,.55); font-size: 8px; white-space: nowrap; }
.launcher-actions button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 3px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.64);
  cursor: pointer;
}
.launcher-actions button:hover { color: #fff; background: rgba(255,255,255,.13); }
.launcher-actions svg { width: 17px; height: 17px; }
.exit-fullscreen { display: none; }
:fullscreen .enter-fullscreen { display: none; }
:fullscreen .exit-fullscreen { display: block; }
.game-frame-wrap { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #07102e; }
#gameFrame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #07102e;
  opacity: 0;
  transition: opacity .32s ease;
}
#gameFrame.ready { opacity: 1; }
.loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #0b328d, #020719 65%);
  transition: opacity .28s ease, visibility .28s ease;
}
.loading.hidden { opacity: 0; visibility: hidden; }
.loading b { margin-top: 20px; font-size: 13px; }
.loading small { margin-top: 7px; color: rgba(255,255,255,.55); font-size: 8px; }
.loading-pixel { height: 28px; display: flex; align-items: flex-end; gap: 5px; }
.loading-pixel i { width: 7px; height: 12px; background: #66e2d5; animation: bounce .7s ease-in-out infinite alternate; }
.loading-pixel i:nth-child(2) { height: 24px; background: #96c64f; animation-delay: -.35s; }
.loading-pixel i:nth-child(3) { height: 17px; background: #ff6257; animation-delay: -.6s; }
@keyframes bounce { to { transform: translateY(-9px); filter: brightness(1.3); } }

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 26px;
  min-width: 270px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 3px;
  background: rgba(5, 20, 63, .96);
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  opacity: 0;
  transform: translate(-50%, 80px);
  pointer-events: none;
  transition: .3s ease;
}
.toast.show { opacity: 1; transform: translate(-50%,0); }
.toast > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(98,226,213,.16);
  color: #66e2d5;
  font-size: 10px;
}
.toast div { display: grid; gap: 3px; }
.toast b { font-size: 9px; }
.toast small { color: rgba(255,255,255,.58); font-size: 7px; }

@media (max-width: 1120px) {
  .console-topbar { gap: 24px; }
  .online-pill, .profile-chip b { display: none; }
  .selected-game { grid-template-columns: 200px minmax(520px,1fr); gap: 34px; }
  .compact-info { width: min(660px,100%); }
  .launcher-bar { grid-template-columns: auto 1fr auto; }
  .launcher-title { display: none; }
  .game-switcher { justify-self: start; }
  .current-controls { display: none; }
}

@media (max-width: 820px) {
  :root { --tile-size: 142px; --selected-size: 190px; }
  .console-shell { grid-template-rows: 66px minmax(0,1fr) 48px; }
  .console-topbar { padding: 0 22px; grid-template-columns: auto 1fr; }
  .console-nav { display: none; }
  .console-status { justify-self: end; gap: 10px; }
  .featured-art { top: 16%; right: -35%; width: 105vw; height: 72%; opacity: .2; }
  .online-pill { display: none; }
  .home-stage { padding: 0 22px 16px; grid-template-rows: 38px 49px 228px auto; }
  .welcome-line { height: 38px; }
  .rail-heading { height: 49px; }
  .rail-viewport { height: 228px; margin-right: -22px; }
  .game-rail { padding-top: 15px; padding-right: 22px; }
  .selected-game { grid-template-columns: 1fr; min-height: 0; padding: 8px 0 16px; gap: 14px; }
  .compact-info { order: 1; width: 100%; }
  .launch-corner { order: 2; }
  .compact-info h2 { font-size: clamp(27px, 6vw, 38px); }
  .console-footer { padding: 0 22px; gap: 15px; }
  .footer-brand { display: none !important; }
  .launcher { grid-template-rows: 58px 1fr; }
  .launcher-bar { padding: 0 8px; gap: 8px; }
  .back-button { width: 40px; padding: 0; justify-content: center; }
  .back-button span { display: none; }
  .game-switcher { justify-self: center; }
  .game-switcher button { padding: 0 9px; }
  .game-switcher button b { display: none; }
  .launcher-actions #reloadButton, .launcher-actions #newWindowButton { display: none; }
}

@media (max-width: 520px) {
  :root { --tile-size: 122px; --selected-size: 164px; }
  .console-shell { grid-template-rows: 60px minmax(0,1fr) 45px; }
  .console-topbar { padding: 0 15px; }
  .console-mark { width: 33px; height: 33px; grid-template-columns: repeat(2,7px); grid-template-rows: repeat(2,7px); }
  .console-brand b { font-size: 11px; }
  .console-brand small { font-size: 6px; }
  #clock, .profile-chip { display: none; }
  .featured-art { top: 22%; right: -22%; width: 140vw; height: 64%; opacity: .14; }
  .home-stage { padding: 0 15px 10px; grid-template-rows: 32px 43px 199px auto; }
  .welcome-line { height: 32px; }
  .welcome-line small { display: none; }
  .rail-heading { height: 43px; }
  .rail-heading h1 { font-size: 21px; }
  .rail-viewport { height: 199px; margin-right: -15px; }
  .game-rail { gap: 10px; padding: 12px 15px 16px 2px; }
  .tile-logo { left: 9px; right: 9px; bottom: 11px; grid-template-columns: 22px 1fr; gap: 6px; }
  .tile-logo > i { width: 21px; height: 21px; border-width: 2px; }
  .tile-logo b { font-size: 11px; }
  .tile-logo small { font-size: 6px; }
  .tile-caption { padding-top: 6px; font-size: 8px; }
  .utility-tile { padding: 11px; }
  .utility-tile small { display: none; }
  .selected-game { padding: 7px 0 12px; gap: 11px; }
  .compact-info { padding: 10px 12px; }
  .game-category { margin-bottom: 5px; font-size: 7px; }
  .game-location small { display: none; }
  .compact-info h2 { margin-top: 4px; font-size: 25px; }
  .compact-info > p { margin: 6px 0 8px; font-size: 8px; }
  .compact-lower { display: grid; gap: 8px; }
  .game-tags { gap: 5px; }
  .game-tags span { padding: 4px 7px; font-size: 7px; }
  .quick-stats { width: 100%; }
  .quick-stats > span { flex: 1; min-width: 0; padding-left: 9px; }
  .primary-action { min-width: 140px; height: 38px; }
  .control-note { font-size: 7px; }
  .console-footer { padding: 0 15px; gap: 12px; }
  .console-footer > span:nth-child(3) { display: none; }
  .launcher-bar { grid-template-columns: auto 1fr auto; }
  .game-switcher { padding: 2px; }
  .game-switcher button { width: 30px; padding: 0; justify-content: center; }
  .launcher-actions #fullscreenButton { width: 34px; }
}

@media (max-height: 700px) and (min-width: 821px) {
  :root { --tile-size: 135px; --selected-size: 180px; }
  .console-shell { grid-template-rows: 64px minmax(0,1fr) 44px; }
  .welcome-line { height: 30px; }
  .rail-heading { height: 42px; }
  .rail-viewport { height: 215px; }
  .home-stage { grid-template-rows: 30px 42px 215px minmax(145px,1fr); }
  .selected-game { min-height: 0; padding: 6px 0 14px; }
  .compact-info h2 { font-size: 30px; }
  .compact-info > p { margin: 6px 0 8px; }
}

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