:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  --bg: #070b16;
  --panel: #0e1425;
  --line: #263b68;
  --text: #edf7ff;
  --muted: #a9b6cb;
  --dim: #72819f;
  --accent: #65d9ff;
  --accent-2: #c8d7ff;
  --glow: rgba(101, 217, 255, .18);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

button,
input { font: inherit; }

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  display: grid;
  height: 52px;
  grid-template-columns: 190px minmax(140px, 420px) 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 22, .96);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
}

.brand > span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--bg);
  background: var(--accent);
  box-shadow: 0 0 18px var(--glow);
}

.search input {
  width: 100%;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: #090f1d;
}

.account {
  justify-self: end;
  color: var(--muted);
  font: 12px ui-monospace, monospace;
}

.account__dot,
.status span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px var(--accent);
}

.app-shell {
  display: grid;
  height: calc(100% - 52px);
  grid-template-columns: 190px 1fr;
}

.sidebar {
  padding: 16px 10px;
  border-right: 1px solid var(--line);
  background: #090f1d;
}

.sidebar button {
  display: flex;
  width: 100%;
  height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.sidebar button:hover:not(:disabled),
.sidebar button.active {
  border-color: rgba(101, 217, 255, .28);
  color: var(--text);
  background: rgba(101, 217, 255, .1);
}

.sidebar button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.sidebar p {
  margin: 24px 12px 7px;
  color: var(--dim);
  font: 10px ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

main {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background:
    radial-gradient(circle at 72% 18%, rgba(101, 217, 255, .13), transparent 32%),
    linear-gradient(135deg, rgba(200, 215, 255, .035), transparent 46%),
    var(--bg);
}

.library {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 58px);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font: 11px ui-monospace, monospace;
  letter-spacing: .14em;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(220px, 42%) 1fr;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 42%), rgba(14, 20, 37, .92);
  box-shadow: 0 20px 60px rgba(1, 6, 18, .36), inset 0 1px 0 rgba(237, 247, 255, .04);
}

.game-card__art {
  position: relative;
  display: grid;
  min-height: 300px;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(rgba(101, 217, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 217, 255, .08) 1px, transparent 1px),
    radial-gradient(circle, rgba(101, 217, 255, .23), transparent 56%),
    #090f1d;
  background-size: 38px 38px, 38px 38px, auto, auto;
}

.game-card__art::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(101, 217, 255, .16);
  transform: rotate(8deg);
}

.orb {
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--text);
  background: rgba(7, 11, 22, .72);
  box-shadow: 0 0 48px rgba(101, 217, 255, .3), inset 0 0 28px rgba(101, 217, 255, .15);
  font-size: 54px;
}

.game-card__art > span {
  position: absolute;
  bottom: 28px;
  color: var(--accent-2);
  font: 700 18px ui-monospace, monospace;
  letter-spacing: .18em;
}

.game-card__content {
  align-self: center;
  padding: clamp(24px, 5vw, 54px);
}

.status {
  margin: 0 0 12px;
  color: var(--accent);
  font: 11px ui-monospace, monospace;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -.04em;
}

.game-card__content > p:not(.status) {
  max-width: 48ch;
  color: var(--muted);
  line-height: 1.6;
}

dl {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 24px 0;
}

dl div { display: grid; gap: 5px; }
dt { color: var(--dim); font: 10px ui-monospace, monospace; text-transform: uppercase; }
dd { margin: 0; color: var(--accent-2); font-size: 13px; }

.play {
  min-width: 140px;
  height: 42px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  color: #07111a;
  background: var(--accent);
  box-shadow: 0 0 22px var(--glow);
  cursor: pointer;
  font-weight: 800;
}

.play:hover {
  background: #9ae7ff;
  box-shadow: 0 0 30px rgba(101, 217, 255, .35);
  transform: translateY(-1px);
}

.player {
  height: 100%;
}

.player[hidden] { display: none; }

.player header {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 15px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.player header button {
  border: 0;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
}

.player__runtime {
  margin-left: auto;
  color: var(--dim);
  font: 10px ui-monospace, monospace;
}

.player iframe {
  display: block;
  width: 100%;
  height: calc(100% - 42px);
  border: 0;
  background: var(--bg);
}

@media (max-width: 680px) {
  .topbar { grid-template-columns: 1fr auto; }
  .search { display: none; }
  .app-shell { grid-template-columns: 58px 1fr; }
  .sidebar { padding-inline: 8px; }
  .sidebar button { justify-content: center; padding: 0; font-size: 0; }
  .sidebar button span { font-size: 17px; }
  .sidebar p { display: none; }
  .game-card { grid-template-columns: 1fr; }
  .game-card__art { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
}
