/* DIGITAL SPACEPORT ARCADE — synthwave landing */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --pink: #ff2d95;
  --cyan: #00f0ff;
  --yellow: #ffe600;
  --green: #39ff14;
  --purple: #7b2dff;
  --bg: #0a0118;
}

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

body {
  background:
    radial-gradient(ellipse 120% 60% at 50% 8%, #2a0a4e 0%, transparent 60%),
    linear-gradient(180deg, #0a0118 0%, #150530 55%, #2a0a3e 78%, #1a0530 100%);
  color: #dfe9ff;
  font-family: 'Courier New', ui-monospace, monospace;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* whole-page faint scanlines for CRT mood */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 4px);
  z-index: 50;
  mix-blend-mode: multiply;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

/* ---------- SCENE (sun + grid) ---------- */
.scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.sun {
  position: absolute;
  left: 50%;
  top: 26vh;
  width: min(48vw, 380px);
  height: min(48vw, 380px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe600 0%, #ff8c1a 34%, #ff2d95 78%, #b4128c 100%);
  box-shadow: 0 0 80px rgba(255, 45, 149, 0.45), 0 0 200px rgba(255, 140, 26, 0.25);
  -webkit-mask-image:
    linear-gradient(to bottom, #000 0 50%, transparent 50%),
    repeating-linear-gradient(to bottom, #000 0 9px, transparent 9px 13px);
  mask-image:
    linear-gradient(to bottom, #000 0 50%, transparent 50%),
    repeating-linear-gradient(to bottom, #000 0 9px, transparent 9px 13px);
}

.floor {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 240vw;
  height: 46vh;
  transform: translateX(-50%) perspective(430px) rotateX(63deg);
  transform-origin: top center;
  background:
    repeating-linear-gradient(90deg, rgba(255, 45, 149, 0.5) 0 2px, transparent 2px 90px),
    repeating-linear-gradient(0deg, rgba(255, 45, 149, 0.5) 0 2px, transparent 2px 48px);
  animation: gridmove 1.5s linear infinite;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 26%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 26%);
}

@keyframes gridmove {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 48px, 0 48px; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 7vh 16px 4vh;
}

.port-id {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--green);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.8);
  margin-bottom: 22px;
}
.port-id .blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.title {
  line-height: 0.95;
  user-select: none;
}
.title span {
  display: block;
  font-weight: bold;
  letter-spacing: 10px;
}
.title .t1 {
  font-size: clamp(30px, 6vw, 64px);
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0,240,255,.9), 0 0 44px rgba(0,240,255,.5), 4px 4px 0 rgba(255,45,149,.55);
}
.title .t2 {
  font-size: clamp(40px, 8.4vw, 92px);
  color: var(--pink);
  text-shadow: 0 0 14px rgba(255,45,149,.95), 0 0 60px rgba(255,45,149,.55), 4px 4px 0 rgba(0,240,255,.45);
  animation: neonflick 5s infinite;
}
.title .t3 {
  font-size: clamp(30px, 6vw, 64px);
  color: var(--yellow);
  text-shadow: 0 0 12px rgba(255,230,0,.85), 0 0 44px rgba(255,230,0,.4), 4px 4px 0 rgba(123,45,255,.65);
}

@keyframes neonflick {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.6; }
  94% { opacity: 1; }
  96% { opacity: 0.75; }
  97% { opacity: 1; }
}

.sub {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 6px;
  color: #a89ad4;
  text-shadow: 0 0 6px rgba(10, 1, 24, 0.9), 0 0 14px rgba(10, 1, 24, 0.7);
}

.status-line {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cyan);
  min-height: 14px;
  text-shadow: 0 0 8px rgba(0,240,255,.5);
}

/* ---------- CABINETS ---------- */
.cabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 380px));
  gap: 28px;
  justify-content: center;
  padding: 5vh 20px 9vh;
}

.cab-card {
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(20, 8, 46, 0.92), rgba(10, 3, 26, 0.95));
  border: 2px solid #3a2a75;
  border-radius: 14px;
  padding: 14px 14px 18px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,.55), inset 0 0 24px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cab-card:hover, .cab-card:focus-visible {
  transform: translateY(-7px);
  border-color: var(--cyan);
  box-shadow: 0 18px 60px rgba(0, 240, 255, 0.25), 0 0 24px rgba(255, 45, 149, 0.35), inset 0 0 24px rgba(0,0,0,.5);
  outline: none;
}

.thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2a1a55;
  background: #05010f;
}
.thumb img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.thumb .sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,240,255,0.28) 50%, transparent 100%);
  transform: translateY(-100%);
  pointer-events: none;
}
.cab-card:hover .sweep { animation: sweep 1s linear infinite; }
@keyframes sweep {
  from { transform: translateY(-100%); }
  to   { transform: translateY(100%); }
}

.cab-card h2 {
  font-size: 19px;
  letter-spacing: 3px;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0,240,255,.6);
}
.cab-card .tag {
  font-size: 12px;
  color: #9b8cd4;
  letter-spacing: 1px;
  min-height: 30px;
}

.meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 2px;
  color: #6f5fae;
}
.meta .best b {
  color: var(--yellow);
  text-shadow: 0 0 8px rgba(255,230,0,.5);
  font-size: 13px;
}

.coin {
  margin-top: 4px;
  text-align: center;
  padding: 10px 0;
  border: 1px solid rgba(255, 230, 0, 0.5);
  border-radius: 6px;
  color: var(--yellow);
  letter-spacing: 4px;
  font-size: 13px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255,230,0,.55);
  transition: background .15s ease;
}
.cab-card:hover .coin { background: rgba(255, 230, 0, 0.1); }
.coin span { display: inline-block; transition: transform .15s ease; }
.cab-card:hover .coin span { transform: translateX(6px); }

/* ---------- TICKER ---------- */
.ticker {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 45, 149, 0.4);
  border-bottom: 1px solid rgba(255, 45, 149, 0.4);
  background: rgba(8, 2, 20, 0.85);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  padding: 8px 0;
  animation: tick 28s linear infinite;
  color: var(--pink);
  font-size: 12px;
  letter-spacing: 4px;
  text-shadow: 0 0 8px rgba(255,45,149,.5);
}
@keyframes tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- FOOTER ---------- */
.foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 26px 22px;
  font-size: 11px;
  letter-spacing: 2px;
  color: #5a4a9b;
}
.foot .sign b { color: var(--cyan); text-shadow: 0 0 8px rgba(0,240,255,.5); }

@media (max-width: 980px) {
  .cabs { grid-template-columns: minmax(260px, 420px); }
}
@media (max-width: 560px) {
  .title span { letter-spacing: 5px; }
  .sub { letter-spacing: 3px; }
}
