:root {
  --color-ink: #0a0a0a;
  --color-paper: #fafafa;
  --color-muted: #5a5a5a;
  --color-red: #c41e3a;
  --color-red-hover: #a01830;
  --color-red-soft: #e8d4d8;
  /* Barlow Condensed for sleek mechanical readout */
  --font-flap: 'Barlow Condensed', sans-serif;
  /* Same family as .board / tile wells — one “enclosure” */
  --machine-base: #030303;
  --machine-mid: #070707;
  --machine-edge: #0c0c0c;
}

html {
  background: var(--machine-base);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(ellipse 95% 70% at 50% 42%, var(--machine-edge) 0%, transparent 55%),
    linear-gradient(180deg, var(--machine-mid) 0%, var(--machine-base) 38%, #020202 100%);
}

/* Screensaver / kiosk: shell is transparent so body gradient reads as one surface */
.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.app-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 12px;
  background: transparent;
}

.board-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-header {
  position: absolute;
  top: 16px;
  right: 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  z-index: 100;
}

.logo-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fff;
  margin: 0;
  opacity: 1;
}

.logo-flap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #020202;
  border-radius: 4px;
  border: 1px solid #1a1a1a;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.9);
  color: #e31837;
  font-family: var(--font-flap);
  font-size: 14px;
  line-height: 1;
  position: relative;
  opacity: 1;
  border: 1px solid #333; /* Brighter border to catch the eye */
  box-shadow: 0 0 10px rgba(227, 24, 55, 0.2);
}

.logo-flap::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #000;
  transform: translateY(-50%);
}

.header-cta-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.header-cta-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.header-cta-btn:hover {
  background: rgba(255, 255, 255, 1);
  color: #000;
  border-color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .app-header {
    top: 12px;
    right: 12px;
  }
  .logo-text {
    font-size: 0.9rem;
  }
}
