:root {
  --primary: #2563eb;
  --bg-dark: #050505;
  --text: #ffffff;
  --panel: #121212;
  --panel-border: #2a2a2a;
}
* {
  box-sizing: border-box;
}
body {
  background: radial-gradient(circle at 20% 20%, #171717 0, var(--bg-dark) 55%);
  color: var(--text);
  font-family: 'Courier New', monospace;
  margin: 0;
  min-height: 100vh;
  touch-action: manipulation;
}
.game-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 76px 16px 24px;
}
.screen {
  width: min(620px, 100%);
}
.hidden {
  display: none !important;
}
/* 3DIMLI Dialog (dark variant) — matches Ui/components/Dialog.tsx DialogContent */
.card {
  background: hsl(240 10% 3.9%);
  color: hsl(0 0% 98%);
  border: 1px solid hsl(240 3.7% 15.9%);
  border-radius: 0.5rem;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.5),
    0 4px 6px -4px rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  max-width: 32rem;
  margin: 0 auto;
  text-align: left;
}
.card h1,
.card h2 {
  margin: 0;
  color: hsl(0 0% 98%);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: none;
  text-shadow: none;
}
.card p {
  margin: 0;
  color: hsl(240 5% 64.9%);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}
.card .result-line {
  color: hsl(0 0% 98%);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}
.card button {
  justify-self: end;
  margin-top: 0.5rem;
}
/* Matches 3DIMLI ExploreButton (dark variant) */
button {
  background: transparent;
  color: #d4d4d4;
  border: 1px solid #404040;
  border-radius: 9999px;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.35);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.15s ease;
}
button:hover {
  background-color: #262626;
  color: #f5f5f5;
  border-color: #525252;
  transform: translateY(-1px);
}
button:active {
  transform: translateY(0);
  filter: brightness(0.95);
}
.hud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-bottom: 12px;
  padding: 14px;
}
.card-lite {
  border: 2px solid var(--panel-border);
  border-radius: 12px;
  background: #101010;
}
.hud div {
  font-size: 0.95rem;
}
.hud span {
  color: var(--primary);
  font-weight: 700;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.slot {
  position: relative;
  min-height: 100px;
  border: 2px solid var(--panel-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
  overflow: hidden;
  isolation: isolate;
}
.slot-number {
  position: absolute;
  right: 6px;
  top: 6px;
  font-size: 0.75rem;
  opacity: 0.7;
  z-index: 2;
}
.fraud {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: -78px;
  border-radius: 10px;
  padding: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  color: #0c0c0c;
  transform: translateY(18px);
  transition:
    transform 150ms ease-out,
    bottom 160ms ease-out;
}
.slot.active .fraud {
  bottom: 7px;
  transform: translateY(0);
}
.fraud.stolen-card {
  background: #38bdf8;
}
.fraud.fake-id {
  background: #ffbf69;
}
.fraud.chargeback {
  background: #ff7b7b;
}
.fraud.bot-attack {
  background: #93c5fd;
}
.slot.hit {
  outline: 3px solid var(--primary);
}
.slot.missed {
  outline: #ff6464 solid 3px;
}
.result-line {
  font-size: 1.1rem;
}
@media (max-width: 600px) {
  .game-shell {
    align-items: center;
    padding: 72px 16px;
  }
  .screen {
    width: min(420px, 100%);
  }
  .slot {
    min-height: clamp(88px, 25vw, 108px);
  }
  .fraud {
    font-size: 0.74rem;
    padding: 7px;
  }
}
