/* ============================================================
   styles.css — Grand Auto Thief
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b0d12;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #e8eaf0;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

#game {
  position: fixed;
  inset: 0;
  display: block;
  cursor: crosshair;
}

/* ---------- overlay screens ---------- */
.screen {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: radial-gradient(ellipse at center, rgba(10,12,20,0.82), rgba(6,8,12,0.94));
  backdrop-filter: blur(3px);
}
.screen.active { display: flex; }

.panel {
  text-align: center;
  padding: 40px 46px;
  max-width: 560px;
  width: 92%;
  background: linear-gradient(160deg, rgba(24,28,40,0.95), rgba(12,15,22,0.97));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
}

.title {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  background: linear-gradient(180deg, #fff 10%, #ffd23e 55%, #ff7b2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(255,160,40,0.35);
  margin-bottom: 4px;
}
.title.small { font-size: 40px; }
.title.brand { font-size: 42px; letter-spacing: 3px; }
.title.dead {
  background: linear-gradient(180deg, #fff 10%, #ff5a4e 60%, #b00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title.busted {
  background: linear-gradient(180deg, #fff 10%, #6ab0ff 60%, #1a4f9e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: 15px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #9aa3b8;
  margin-bottom: 30px;
}

.menu-buttons { display: flex; flex-direction: column; gap: 12px; }

.btn {
  display: block;
  width: 100%;
  padding: 13px 18px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #10131a;
  background: linear-gradient(180deg, #ffe27a, #ffb347);
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.12s ease;
  box-shadow: 0 4px 0 #a86a12, 0 8px 20px rgba(0,0,0,0.4);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #a86a12; }
.btn-danger {
  background: linear-gradient(180deg, #ff7b6e, #d83b30);
  box-shadow: 0 4px 0 #7a1f18, 0 8px 20px rgba(0,0,0,0.4);
}
.btn-danger:hover { filter: brightness(1.1); }

.footnote { margin-top: 26px; font-size: 12px; color: #6d7688; letter-spacing: 0.5px; }

/* how to play */
.howto { text-align: left; font-size: 15px; line-height: 1.9; margin-bottom: 26px; color: #cdd4e2; }
.howto b { color: #ffd23e; }
.howto .gap { height: 12px; }
.howto div:not(.gap) { padding: 2px 0; }

/* credits */
.credits { margin-bottom: 30px; line-height: 1.8; }
.credit-line { font-size: 15px; color: #cdd4e2; }
.credit-line.dim { font-size: 13px; color: #7c8494; }
.credit-big { font-size: 30px; font-weight: 900; color: #ffd23e; margin: 10px 0 4px; letter-spacing: 1px; }

/* shop */
.shop-cash { font-size: 20px; font-weight: 800; color: #3fd06a; margin-bottom: 18px; }
#shop-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; max-height: 46vh; overflow-y: auto; }
.shop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}
.shop-info { text-align: left; }
.shop-name { font-weight: 800; font-size: 15px; }
.shop-desc { font-size: 12px; color: #8a93a6; margin-top: 2px; }
.btn-shop { width: auto; min-width: 96px; padding: 9px 14px; font-size: 14px; }

/* toast */
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(20,24,34,0.95);
  border: 1px solid rgba(255,210,62,0.4);
  color: #ffd23e;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
