:root {
  color-scheme: dark;
  --ink: #0b080d;
  --panel: #171219;
  --paper: #f3ead9;
  --gold: #e9a943;
  --red: #e73826;
  --purple: #9f43ce;
  --blue: #24b8ff;
  --green: #6cc66f;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background:
    radial-gradient(circle at 50% 0%, rgba(231, 56, 38, 0.28), transparent 34rem),
    linear-gradient(135deg, #120911 0%, #09070b 45%, #160e13 100%);
  color: var(--paper);
  overflow-x: hidden;
}

.shell {
  width: min(100vw, 1620px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(10px, 2vw, 24px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: center;
}

.game-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(233, 169, 67, 0.75);
  background: #050406;
  box-shadow:
    0 0 0 6px #100c12,
    0 18px 70px rgba(0, 0, 0, 0.55),
    inset 0 0 32px rgba(231, 56, 38, 0.22);
  overflow: hidden;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.crt {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 50%, rgba(0, 0, 0, 0.1) 50%),
    radial-gradient(circle at center, transparent 55%, rgba(0, 0, 0, 0.32));
  background-size: 100% 4px, 100% 100%;
  mix-blend-mode: soft-light;
}

.cabinet-panel {
  align-self: stretch;
  border: 2px solid rgba(231, 56, 38, 0.8);
  background: rgba(15, 12, 16, 0.86);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: inset 0 0 24px rgba(159, 67, 206, 0.16);
}

.label {
  color: var(--red);
  text-transform: uppercase;
  margin: 0 0 12px;
}

dl,
p {
  margin: 0;
  line-height: 1.5;
}

dt {
  color: var(--gold);
  margin-top: 12px;
}

dd {
  margin: 4px 0 0;
  color: #d8c7b7;
}

.pickup-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pickup-legend li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: center;
  color: #d8c7b7;
  line-height: 1.25;
}

.pickup-legend b {
  color: var(--paper);
  font-weight: 700;
}

.pickup-icon {
  width: 34px;
  height: 34px;
  background-image: url("assets/items/pickup-items-v1-normalized.png");
  background-repeat: no-repeat;
  background-size: 500% 100%;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 5px rgba(233, 169, 67, 0.35));
}

.pickup-icon.grease {
  background-position: 0% 0;
}

.pickup-icon.towel {
  background-position: 25% 0;
}

.pickup-icon.espresso {
  background-position: 50% 0;
}

.pickup-icon.clippers {
  background-position: 75% 0;
}

.pickup-icon.life {
  background-position: 100% 0;
}

.pickup-icon.ryan {
  background-image: url("assets/items/ryan-cam-drop-v1.png");
  background-size: contain;
  background-position: center;
}

kbd {
  display: inline-block;
  min-width: 1.8em;
  padding: 1px 5px;
  border: 1px solid rgba(243, 234, 217, 0.35);
  background: #09070b;
  color: var(--blue);
  text-align: center;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
    align-items: start;
    justify-items: center;
  }

  .game-frame {
    box-sizing: content-box;
    width: 640px;
    height: 360px;
    max-width: 100%;
  }

  @media (max-width: 680px) {
    .game-frame {
      width: 320px;
      height: 180px;
    }
  }

  .cabinet-panel {
    width: 100%;
    min-height: 0;
  }
}
