/* ============================================================
   GET A JOB — Styles
   happystoner5420 Games | R-Rated Dark Humor Sandbox Sim
   Photo-real UI — no emojis, all SVG
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0a0a0a;
  --surface:    #141414;
  --surface2:   #1c1c1c;
  --border:     #2a2a2a;
  --border2:    #3a3a3a;
  --text:       #e8e0d0;
  --text-muted: #888;
  --accent:     #c8a245;
  --accent2:    #e05a1e;
  --green:      #2ea84c;
  --red:        #d93030;
  --blue:       #2e6bd9;
  --yellow:     #d9b02e;
  --radius:     6px;
  --shadow:     0 4px 24px rgba(0,0,0,0.7);
  --font-head:  'Oswald', sans-serif;
  --font-body:  'Open Sans', sans-serif;
}

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
  user-select: none;
}

/* ── Layout Wrappers ──────────────────────────────────────── */
#app {
  width: 100vw; height: 100vh;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}

#hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid var(--border2);
  display: none;
  /* expose actual rendered height as a variable via min-height */
  min-height: 44px;
}
/* multi-hud sits fixed directly below the solo HUD bar */
#multi-hud {
  position: fixed; top: 44px; left: 0; right: 0;
  z-index: 195; width: 100%;
  background: rgba(10,10,10,0.98);
}
.hud-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 14px; flex-wrap: wrap;
}
.hud-item {
  font-family: var(--font-head); font-size: 13px;
  padding: 3px 10px; border-radius: 3px;
  background: var(--surface2); border: 1px solid var(--border);
  letter-spacing: 0.5px;
}
.hud-cash   { color: var(--accent); }
.hud-time   { color: #aaa; }
.hud-hunger { color: var(--green); }
.hud-drunk  { color: var(--yellow); }
.hud-job    { color: #9ad; flex: 1; }
.hud-danger { color: var(--red) !important; animation: pulse-red 0.8s infinite; }
.hud-warning{ color: var(--yellow) !important; }
.hud-btn {
  font-family: var(--font-head); font-size: 12px; letter-spacing: 1px;
  padding: 4px 12px; background: var(--surface2); color: var(--text);
  border: 1px solid var(--border2); border-radius: 3px; cursor: pointer;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s;
}
.hud-btn:hover { background: var(--border2); border-color: var(--accent); }
.hud-save-btn { color: var(--green); border-color: #1a5a1a; }
.hud-save-btn:hover { border-color: var(--green); }
.hud-menu-btn { color: var(--accent2); border-color: var(--accent2); }

#game-root {
  flex: 1; position: relative; overflow-y: auto; overflow-x: hidden;
  padding-top: 44px; /* solo HUD height */
  transition: transform 0.1s ease, filter 0.1s ease;
}
/* when multi-hud is present, game-root needs extra top room */
body.multi-active #game-root {
  padding-top: 110px; /* 44px solo HUD + 66px multi-hud bar */
}

/* ── Toast Notifications ──────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 20px; right: 20px;
  display: flex; flex-direction: column; gap: 8px; z-index: 9999;
  pointer-events: none;
}
.toast {
  padding: 10px 18px; border-radius: var(--radius);
  font-size: 13px; font-family: var(--font-body);
  max-width: 340px; border-left: 4px solid;
  background: rgba(20,20,20,0.97);
  box-shadow: var(--shadow);
  animation: slideIn 0.25s ease, fadeOut 0.4s ease 2.8s forwards;
}
.toast-info    { border-color: var(--blue); color: #9ad; }
.toast-money   { border-color: var(--accent); color: var(--accent); }
.toast-food    { border-color: var(--green); color: var(--green); }
.toast-success { border-color: var(--green); color: var(--green); }
.toast-warning { border-color: var(--yellow); color: var(--yellow); }
.toast-error   { border-color: var(--red); color: var(--red); }
.toast-dark    { border-color: #555; color: #bbb; }
.toast-work    { border-color: #7a5; color: #9c7; }

/* ── Main Menu ────────────────────────────────────────────── */
.main-menu {
  width: 100vw; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  background: var(--bg);
  position: relative; overflow-y: auto;
  padding: 30px 16px 24px;
  box-sizing: border-box;
}
.main-menu-bg {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at 50% 60%, #1a1000 0%, #0a0a0a 70%);
  pointer-events: none;
}
.main-menu-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(200,162,69,0.4), 2px 4px 0 #000;
  position: relative; z-index: 1; text-align: center;
  line-height: 1.1; margin-bottom: 6px;
}
.main-menu-subtitle {
  font-family: var(--font-body); color: var(--text-muted);
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  position: relative; z-index: 1; margin-bottom: 24px;
}
.menu-buttons {
  display: flex; flex-direction: column; gap: 8px;
  position: relative; z-index: 1; width: 100%; max-width: 300px;
}
.menu-btn {
  font-family: var(--font-head); font-size: 15px; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 600;
  padding: 9px 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
  color: var(--text); border: 1px solid var(--border2);
  border-radius: var(--radius); cursor: pointer;
  transition: all 0.2s; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.menu-btn:hover {
  background: linear-gradient(135deg, #252015 0%, #2a2010 100%);
  border-color: var(--accent); color: var(--accent);
  box-shadow: 0 4px 20px rgba(200,162,69,0.15);
  transform: translateY(-1px);
}
.menu-btn-primary {
  background: linear-gradient(135deg, #2a1d0a 0%, #3a2810 100%);
  border-color: var(--accent); color: var(--accent);
}
.menu-btn-primary:hover {
  background: linear-gradient(135deg, #3a2a10 0%, #4a3318 100%);
  box-shadow: 0 4px 24px rgba(200,162,69,0.3);
}
.menu-btn-exit { color: var(--red); border-color: #5a2020; }
.menu-btn-exit:hover { border-color: var(--red); background: #1a0a0a; }
.menu-credits-label {
  font-family: var(--font-body); color: #555; font-size: 11px;
  text-align: center; margin-top: 18px; letter-spacing: 1px;
  text-transform: uppercase; position: relative; z-index: 1;
}

/* ── Scene Containers ─────────────────────────────────────── */
.scene {
  min-height: calc(100vh - 44px);
  display: flex; flex-direction: column;
  background: var(--bg);
}
.scene-bg {
  width: 100%; height: 280px; object-fit: cover;
  object-position: center center;
  filter: brightness(0.55) saturate(0.8);
  display: block;
  border-bottom: 3px solid var(--border2);
  flex-shrink: 0;
}
.scene-content {
  flex: 1; padding: 20px 24px;
  max-width: 960px; width: 100%; margin: 0 auto;
}
.scene-header {
  font-family: var(--font-head); font-size: 28px; font-weight: 700;
  color: var(--accent); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 4px;
}
.scene-npc-line {
  font-style: italic; color: var(--text-muted); font-size: 13px;
  margin-bottom: 20px; padding: 8px 14px;
  background: var(--surface); border-left: 3px solid var(--accent2);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ── Panel / Cards ────────────────────────────────────────── */
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px;
}
.panel-title {
  font-family: var(--font-head); font-size: 16px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.panel-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid var(--border);
}
.panel-row:last-child { border-bottom: none; }
.panel-label { color: var(--text-muted); font-size: 13px; }
.panel-value { font-weight: 600; font-size: 14px; }
.val-green { color: var(--green); }
.val-red   { color: var(--red); }
.val-gold  { color: var(--accent); }

/* ── Grids ────────────────────────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px; margin-bottom: 20px;
}
.shop-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 12px; cursor: pointer;
  transition: all 0.18s; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.shop-item:hover {
  border-color: var(--accent); background: var(--surface2);
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,162,69,0.1);
}
.shop-item-name {
  font-family: var(--font-head); font-size: 14px; color: var(--text);
  letter-spacing: 0.5px;
}
.shop-item-price {
  font-size: 16px; font-weight: 700; color: var(--accent);
}
.shop-item-desc {
  font-size: 11px; color: var(--text-muted); line-height: 1.4;
}
.shop-item-svg { width: 64px; height: 64px; }

/* ── Action Buttons ───────────────────────────────────────── */
.btn {
  font-family: var(--font-head); font-size: 15px; letter-spacing: 1px;
  text-transform: uppercase; padding: 10px 22px;
  border-radius: var(--radius); border: 1px solid var(--border2);
  cursor: pointer; background: var(--surface2); color: var(--text);
  transition: all 0.18s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: #2a1d0a; border-color: var(--accent); color: var(--accent); }
.btn-primary:hover { background: #3a2810; box-shadow: 0 0 12px rgba(200,162,69,0.2); }
.btn-danger { background: #1a0a0a; border-color: #5a2020; color: var(--red); }
.btn-danger:hover { border-color: var(--red); box-shadow: 0 0 12px rgba(217,48,48,0.2); }
.btn-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.btn-success { background: #0a1a0a; border-color: #1a5a1a; color: var(--green); }
.btn-success:hover { border-color: var(--green); box-shadow: 0 0 12px rgba(46,168,76,0.2); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ── Dialogs / Modals ─────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.82);
  display: flex; align-items: center; justify-content: center;
}
.modal {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 8px; padding: 28px 32px;
  max-width: 580px; width: 90%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.8);
  max-height: 80vh; overflow-y: auto;
}
.modal-title {
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  border-bottom: 1px solid var(--border2); padding-bottom: 10px;
}
.modal-body { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 20px; }
.modal-body p { margin-bottom: 10px; }
.modal-body strong { color: var(--accent); }
.modal-npc-portrait {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 2px solid var(--border2);
  float: right; margin: 0 0 12px 16px;
  filter: brightness(0.8) saturate(0.9);
}

/* Interview dialog — multiple choice */
.interview-q {
  font-size: 16px; color: var(--text);
  background: var(--surface2); border-left: 4px solid var(--accent);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 18px; line-height: 1.6;
}
.interview-counter {
  font-size: 12px; color: var(--text-muted); margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 1px;
}
.interview-choices {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px;
}
.interview-choice {
  padding: 13px 18px;
  background: #111; border: 2px solid var(--border2); color: var(--text);
  border-radius: var(--radius); cursor: pointer; font-size: 14px;
  font-family: var(--font-body); line-height: 1.5; text-align: left;
  transition: all 0.15s;
}
.interview-choice:hover {
  border-color: var(--accent); background: #1a1408; color: var(--accent);
  transform: translateX(4px);
}
.interview-choice.selected {
  border-color: var(--accent); background: #1a1408; color: var(--accent);
}
.interview-choice.correct {
  border-color: var(--green); background: #0a180a; color: var(--green);
  pointer-events: none;
}
.interview-choice.wrong {
  border-color: var(--red); background: #180a0a; color: var(--red);
  pointer-events: none;
}
.interview-choice.neutral-disabled {
  opacity: 0.35; pointer-events: none;
}
.interview-choice-letter {
  display: inline-block; width: 22px; height: 22px; border-radius: 50%;
  background: var(--border2); color: var(--text-muted);
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  text-align: center; line-height: 22px; margin-right: 10px;
  vertical-align: middle; flex-shrink: 0;
}
.interview-feedback {
  padding: 10px 14px; border-radius: var(--radius); font-size: 13px;
  margin-bottom: 14px; border-left: 3px solid;
  animation: slideIn 0.2s ease;
}
.interview-feedback.good { border-color: var(--green); color: var(--green); background: #0a180a; }
.interview-feedback.bad  { border-color: var(--red);   color: var(--red);   background: #180a0a; }
.interview-feedback.okay { border-color: var(--yellow);color: var(--yellow);background: #18180a; }

/* ── Input Fields ─────────────────────────────────────────── */
.field-group { margin-bottom: 14px; }
.field-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); margin-bottom: 5px;
}
.field-input {
  width: 100%; padding: 9px 12px;
  background: #111; border: 1px solid var(--border2); color: var(--text);
  font-family: var(--font-body); font-size: 14px; border-radius: var(--radius);
  outline: none; transition: border-color 0.15s;
}
.field-input:focus { border-color: var(--accent); }

/* ── World Map ────────────────────────────────────────────── */
.world-map {
  min-height: calc(100vh - 44px);
  background: #060606;
  padding: 16px 16px 30px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start;
}
.world-map-title {
  font-family: var(--font-head); font-size: 18px; letter-spacing: 4px;
  color: #3a3a3a; text-transform: uppercase; margin-bottom: 16px;
}
.map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 1100px;
}
@media (max-width: 860px) {
  .map-grid { grid-template-columns: repeat(2, 1fr); }
}
.map-location {
  background: var(--surface); border: 2px solid #222;
  border-radius: 10px; overflow: hidden; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 18px rgba(0,0,0,0.6);
  display: flex; flex-direction: column;
}
.map-location:hover {
  border-color: var(--accent); transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(200,162,69,0.22);
}
.map-location:active { transform: scale(0.97); }
.map-location-img {
  width: 100%; height: 160px; object-fit: cover;
  filter: brightness(0.65) saturate(0.85);
  display: block; transition: filter 0.2s;
  flex-shrink: 0;
}
.map-location:hover .map-location-img { filter: brightness(0.9) saturate(1.1); }
.map-location-info {
  padding: 11px 14px 13px;
  background: var(--surface);
}
.map-location-label {
  font-family: var(--font-head); font-size: 16px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text);
  margin-bottom: 3px;
}
.map-location-sub {
  font-size: 11px; color: var(--text-muted); line-height: 1.3;
}

/* ── Sleep overlay ────────────────────────────────────────── */
#sleep-overlay {
  position: fixed; inset: 0; z-index: 8000;
  background: #000; opacity: 0; pointer-events: none;
}

/* ── Player Home ──────────────────────────────────────────── */
.home-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .home-panels { grid-template-columns: 1fr; } }

/* ── ATM Withdraw Grid ────────────────────────────────────── */
.atm-withdraw-grid {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px;
}
.atm-quick-btn {
  font-family: var(--font-head); font-size: 16px; font-weight: 600;
  padding: 12px 20px; letter-spacing: 1px;
  min-width: 130px; text-align: center;
}

/* ── Stock Table ──────────────────────────────────────────── */
.stock-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  margin-bottom: 16px;
}
.stock-table th {
  text-align: left; padding: 8px 10px;
  background: var(--surface2); color: var(--text-muted);
  font-family: var(--font-head); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; border-bottom: 1px solid var(--border);
}
.stock-table td {
  padding: 8px 10px; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.stock-table tr:last-child td { border-bottom: none; }
.stock-table tr:hover td { background: var(--surface2); }
.st-up { color: var(--green); }
.st-dn { color: var(--red); }

/* ── Credit Score Bar ─────────────────────────────────────── */
.credit-bar-wrap { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin: 6px 0; }
.credit-bar { height: 100%; border-radius: 4px; transition: width 0.4s; }

/* ── Drunk Overlay ────────────────────────────────────────── */
#drunk-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 500;
  opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(80,0,0,0.35) 100%);
}

/* ── Finger SVG / flip-off animation ─────────────────────── */
#finger-flash {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0);
  z-index: 2000; transition: transform 0.15s;
  pointer-events: none; width: 120px; height: 160px;
}
#finger-flash.show { transform: translate(-50%,-50%) scale(1.2); }

/* ── Death Screen ─────────────────────────────────────────── */
.death-screen {
  position: fixed; inset: 0; z-index: 5000;
  background: #000; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 40px;
}
.death-title {
  font-family: var(--font-head); font-size: 72px; font-weight: 700;
  color: var(--red); letter-spacing: 6px; margin-bottom: 20px;
  text-shadow: 0 0 40px rgba(217,48,48,0.5);
}
.death-reason { font-size: 18px; color: #aaa; margin-bottom: 40px; max-width: 500px; }
.death-stats { font-size: 14px; color: #666; margin-bottom: 40px; line-height: 2; }

/* ── How to Play ──────────────────────────────────────────── */
.how-to-play {
  max-width: 720px; margin: 0 auto; padding: 40px 24px;
}
.htp-section { margin-bottom: 28px; }
.htp-section h3 {
  font-family: var(--font-head); font-size: 18px; color: var(--accent);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px;
  border-bottom: 1px solid var(--border); padding-bottom: 6px;
}
.htp-section p, .htp-section li {
  font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 6px;
}
.htp-section ul { padding-left: 18px; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes slideIn {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes fingerPop {
  0%   { transform: translate(-50%,-50%) scale(0) rotate(-20deg); }
  60%  { transform: translate(-50%,-50%) scale(1.3) rotate(5deg); }
  100% { transform: translate(-50%,-50%) scale(1.2) rotate(0deg); }
}
@keyframes zzz-fade {
  0%   { opacity: 0; transform: translate(-50%,-60%); }
  30%  { opacity: 1; transform: translate(-50%,-50%); }
  80%  { opacity: 1; transform: translate(-50%,-50%); }
  100% { opacity: 0; transform: translate(-50%,-40%); }
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ── Name Entry ───────────────────────────────────────────── */
.name-entry-wrap {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.name-entry-wrap input {
  flex: 1; min-width: 180px;
  padding: 12px 16px; font-size: 18px;
  background: #111; border: 2px solid var(--border2); color: var(--text);
  border-radius: var(--radius); outline: none; font-family: var(--font-body);
  transition: border-color 0.15s;
}
.name-entry-wrap input:focus { border-color: var(--accent); }

/* ── Credits page ─────────────────────────────────────────── */
.credits-page {
  max-width: 600px; margin: 60px auto; text-align: center; padding: 40px 24px;
}
.credits-page h1 {
  font-family: var(--font-head); font-size: 36px; color: var(--accent);
  letter-spacing: 4px; text-transform: uppercase; margin-bottom: 30px;
}
.credits-studio {
  font-family: var(--font-head); font-size: 24px; color: var(--text);
  letter-spacing: 2px; margin-bottom: 10px;
}
.credits-tagline { color: var(--text-muted); margin-bottom: 40px; }
.credits-block { margin-bottom: 24px; }
.credits-role { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }
.credits-name { font-family: var(--font-head); font-size: 20px; color: var(--accent); }

/* ── Interview Result ─────────────────────────────────────── */
.result-hired   { color: var(--green); font-size: 28px; font-family: var(--font-head); letter-spacing: 2px; margin-bottom: 14px; }
.result-rejected{ color: var(--red);   font-size: 28px; font-family: var(--font-head); letter-spacing: 2px; margin-bottom: 14px; }
.result-reason  { font-size: 14px; line-height: 1.8; color: var(--text); margin-bottom: 16px; }
.result-stats   { font-size: 12px; color: var(--text-muted); line-height: 2; }

/* ── Credit Cards ─────────────────────────────────────────── */

/* Mailbox pending panel */
.cc-mailbox-panel {
  border-color: var(--accent) !important;
}

/* Status badges */
.cc-status-badge {
  display: inline-block; padding: 4px 12px;
  border-radius: 3px; font-size: 12px; font-family: var(--font-head);
  letter-spacing: 1px; text-transform: uppercase;
}
.cc-status-pending { background: #1a1400; color: var(--accent); border: 1px solid var(--accent); }
.cc-status-owned   { background: #0a180a; color: var(--green);  border: 1px solid var(--green); }
.cc-status-locked  { background: #1a0a0a; color: #555;          border: 1px solid #333; }

/* Owned cards list */
.cc-cards-list {
  display: flex; flex-direction: column; gap: 20px;
}
.cc-card-item {
  display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap;
  padding: 16px; background: var(--surface2); border-radius: 8px;
  border: 1px solid var(--border);
}
.cc-card-visual { flex-shrink: 0; }
.cc-card-details { flex: 1; min-width: 220px; }
.cc-card-name {
  font-family: var(--font-head); font-size: 20px; color: var(--text);
  letter-spacing: 1px; margin-bottom: 3px;
}
.cc-card-number {
  font-family: monospace; font-size: 13px; color: var(--text-muted);
  letter-spacing: 2px; margin-bottom: 14px;
}
.cc-stats-row {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px;
}
.cc-stat {
  display: flex; flex-direction: column; gap: 2px;
}
.cc-stat-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: #555;
}
.cc-stat-val {
  font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--text);
}
.cc-util-bar-wrap {
  height: 6px; background: var(--border); border-radius: 3px; overflow: hidden;
  margin-bottom: 4px; width: 100%; max-width: 280px;
}
.cc-util-bar { height: 100%; border-radius: 3px; transition: width 0.3s; }

/* Apply grid */
.cc-apply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.cc-apply-card {
  background: var(--surface2); border: 2px solid var(--border);
  border-radius: 10px; padding: 18px 16px; text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.cc-apply-card:hover {
  transform: translateY(-3px);
}
.cc-apply-name {
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  letter-spacing: 1px; margin-bottom: 4px;
}
.cc-apply-limit {
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  color: var(--accent); margin-bottom: 8px;
}
.cc-apply-perks {
  font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px;
}
.cc-apply-btn {
  width: 100%; font-size: 14px; padding: 10px;
}

/* ── Misc ─────────────────────────────────────────────────── */
.sep { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.text-muted { color: var(--text-muted); font-size: 13px; }
.text-gold  { color: var(--accent); }
.text-red   { color: var(--red); }
.text-green { color: var(--green); }
.fw-bold    { font-weight: 700; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.flex-row { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ── Multiplayer HUD bar ──────────────────────────────────── */
.multi-hud-bar {
  display: flex; align-items: stretch; gap: 0;
  background: var(--surface); border-bottom: 1px solid var(--border2);
  font-family: var(--font-head); font-size: 12px;
  min-height: 62px; flex-wrap: wrap;
}
.multi-hud-player {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  gap: 3px; padding: 6px 12px;
  border-right: 1px solid var(--border); transition: background 0.3s;
  min-width: 130px;
}
.multi-hud-active { background: rgba(200,162,69,0.07); border-top: 2px solid var(--accent); }
.multi-hud-name {
  color: var(--accent); font-size: 13px; letter-spacing: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 130px; display: block;
}
.multi-hud-nw     { color: var(--green); font-size: 14px; }
.multi-hud-pct    { color: var(--text-muted); font-size: 10px; }
.multi-nw-bar-wrap { width: 100%; height: 4px; background: var(--border2); border-radius: 2px; }
.multi-nw-bar      { height: 4px; background: var(--green); border-radius: 2px; transition: width 0.5s ease; }
.multi-nw-bar-p2   { background: #7c5cd8; }
.multi-hud-center {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 6px 18px; border-left: 1px solid var(--border);
  border-right: 1px solid var(--border); min-width: 110px; flex-shrink: 0;
}
.multi-hud-turn-badge {
  font-family: var(--font-head); font-size: 11px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1px; text-align: center;
  border: 1px solid var(--accent); border-radius: 4px;
  padding: 3px 10px; line-height: 1.4;
  /* let it grow as wide as it needs — bar is fixed-position full width */
  display: flex; align-items: center; gap: 0; flex-wrap: nowrap;
  white-space: nowrap; max-width: none;
}
.mhud-turn-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 120px; flex-shrink: 1;
}
.mhud-turn-suffix { white-space: nowrap; flex-shrink: 0; }
.multi-hud-mode-label { font-size: 10px; color: var(--text-muted); text-align: center; }

/* ── CPU Block Overlay ────────────────────────────────────── */
#cpu-block-overlay {
  position: fixed; inset: 0; z-index: 9995;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 40px;
  pointer-events: none; /* allows scene to be seen — only the click guard blocks input */
}
.cpu-block-inner {
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: 8px; padding: 14px 28px; text-align: center;
  pointer-events: none;
}
.cpu-block-name {
  font-family: var(--font-head); font-size: 20px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 3px; margin-bottom: 4px;
}
.cpu-block-label {
  font-size: 13px; color: var(--text-muted); letter-spacing: 0.5px;
  min-height: 18px;
}
.cpu-block-dots { color: var(--accent2); font-size: 22px; letter-spacing: 4px; margin-top: 2px; }
.cpu-block-dots span { animation: dot-pulse 1.2s infinite; }
.cpu-block-dots span:nth-child(2) { animation-delay: 0.2s; }
.cpu-block-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-pulse { 0%,80%,100% { opacity:0.2; } 40% { opacity:1; } }

/* ── Win Screen ───────────────────────────────────────────── */
.win-screen {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; padding: 40px 20px;
  background: var(--bg); text-align: center;
}
.win-title {
  font-family: var(--font-head); font-size: 46px; color: var(--accent);
  letter-spacing: 4px; text-transform: uppercase; margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(200,162,69,0.3);
}
.win-subtitle { font-size: 15px; color: var(--text-muted); margin-bottom: 30px; max-width: 500px; }
.win-stats { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.win-stat-block {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 8px; padding: 20px 28px; min-width: 150px;
}
.win-stat-winner { border-color: var(--accent); }
.win-stat-loser  { opacity: 0.55; }
.win-stat-name   { font-family: var(--font-head); font-size: 20px; color: var(--text); margin: 6px 0; }
.win-stat-nw     { font-size: 26px; color: var(--green); font-family: var(--font-head); }
.win-stat-label  { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.win-stat-week   { font-size: 12px; color: #555; margin-top: 6px; }

/* ── Mode badge on menu buttons ──────────────────────────── */
.menu-btn-mode-hs  { border-color: #7c5cd8; color: #b89ef0; }
.menu-btn-mode-hs:hover  { background: rgba(124,92,216,0.1); border-color: #a88ef8; }
.menu-btn-mode-cpu { border-color: var(--accent2); color: var(--accent2); }
.menu-btn-mode-cpu:hover { background: rgba(224,90,30,0.1); border-color: var(--accent2); }
