/* ============ OLD SPARKY — styles ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #06070a;
  font-family: "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

#game {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  cursor: default;
}

.hidden { display: none !important; }

/* ============ Generic buttons ============ */
.btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  color: #e8e6e0;
  background: linear-gradient(180deg, #3a3f4a, #23272f);
  box-shadow: 0 2px 0 #12141a, inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.06s, filter 0.12s, box-shadow 0.12s;
  letter-spacing: 0.5px;
}
.btn:hover { filter: brightness(1.18); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #12141a; }
.btn.primary {
  background: linear-gradient(180deg, #c0392b, #8e2418);
  box-shadow: 0 2px 0 #4a120c, inset 0 1px 0 rgba(255,255,255,0.25), 0 0 18px rgba(255,60,20,0.35);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.btn.danger { color: #ffb3a0; }
.btn.big {
  font-size: 1.15rem;
  padding: 14px 42px;
  font-weight: 700;
}
.btn.small { font-size: 0.82rem; padding: 7px 14px; }
.btn.menu {
  font-size: 1.05rem;
  padding: 13px 30px;
  width: 100%;
  text-align: center;
}

/* ============ Overlays & menus ============ */
.overlay {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(8,10,14,0.55), rgba(4,5,8,0.88));
  z-index: 30;
  backdrop-filter: blur(1.5px);
}
.menu-card {
  background: linear-gradient(180deg, rgba(28,31,39,0.97), rgba(16,18,24,0.98));
  border: 1px solid #4a4238;
  border-radius: 12px;
  padding: 34px 46px;
  width: min(460px, 92vw);
  text-align: center;
  box-shadow: 0 12px 60px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.06), 0 0 40px rgba(255,80,10,0.08);
  max-height: 92vh;
  overflow-y: auto;
}
.menu-card.wide { width: min(620px, 94vw); }
.title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: #ffd9a0;
  text-shadow: 0 0 18px rgba(255,120,20,0.8), 0 0 60px rgba(255,60,10,0.5), 0 3px 0 #5a1d08;
  animation: titleflicker 4s infinite;
}
@keyframes titleflicker {
  0%, 100% { text-shadow: 0 0 18px rgba(255,120,20,0.8), 0 0 60px rgba(255,60,10,0.5), 0 3px 0 #5a1d08; }
  8%  { text-shadow: 0 0 6px rgba(255,120,20,0.4), 0 0 20px rgba(255,60,10,0.25), 0 3px 0 #5a1d08; }
  10% { text-shadow: 0 0 22px rgba(255,120,20,0.9), 0 0 70px rgba(255,60,10,0.6), 0 3px 0 #5a1d08; }
  12% { text-shadow: 0 0 16px rgba(255,120,20,0.7), 0 0 55px rgba(255,60,10,0.45), 0 3px 0 #5a1d08; }
  50% { text-shadow: 0 0 18px rgba(255,120,20,0.8), 0 0 60px rgba(255,60,10,0.5), 0 3px 0 #5a1d08; }
}
.subtitle {
  font-size: 1.05rem; letter-spacing: 4px;
  color: #b9b3a6; text-transform: uppercase; margin-top: 2px;
}
.tagline { font-style: italic; color: #7d7668; margin: 10px 0 22px; font-size: 0.95rem; }
.menu-buttons { display: flex; flex-direction: column; gap: 11px; }
.disclaimer { margin-top: 22px; font-size: 0.74rem; color: #6d675c; }
.menu-h2 {
  font-family: Georgia, serif; color: #ffd9a0; letter-spacing: 3px;
  margin-bottom: 16px; font-size: 1.7rem; text-shadow: 0 0 12px rgba(255,120,20,0.6);
}
.howto-list { text-align: left; color: #cfc9bd; line-height: 1.65; font-size: 0.95rem; margin: 8px 0 18px; padding-left: 22px; }
.howto-list b { color: #ffd9a0; }
.howto-note { color: #8d877a; font-size: 0.85rem; margin-bottom: 20px; }
.red { color: #ff6a4d; }
.credits-main { font-size: 1.9rem; color: #ffd9a0; font-family: Georgia, serif; margin: 4px 0 2px; }
.credits-sub { color: #8d877a; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; }
.credits-line { color: #cfc9bd; margin: 8px 0; font-size: 0.92rem; }
.credits-hr { border: none; border-top: 1px solid #4a4238; margin: 16px 0; }
.warn-title { color: #ff6a4d; text-shadow: 0 0 14px rgba(255,40,20,0.6); }
.warn-text { color: #d8d2c4; line-height: 1.6; margin-bottom: 14px; font-size: 0.98rem; }

/* ============ HUD ============ */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.hud-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(8,9,12,0.92), rgba(8,9,12,0.55) 70%, transparent);
  color: #ddd6c8;
  pointer-events: auto;
}
.hud-title { font-weight: 800; letter-spacing: 2px; color: #ffd9a0; text-shadow: 0 0 10px rgba(255,110,20,0.5); font-size: 1.02rem; }
.hud-sub { font-weight: 400; color: #7d7668; font-size: 0.8rem; letter-spacing: 1px; margin-left: 8px; }
.hud-stat { font-size: 0.88rem; color: #c9c2b4; background: rgba(0,0,0,0.35); padding: 4px 10px; border-radius: 20px; border: 1px solid #3a352c; }
.hud-right { margin-left: auto; display: flex; gap: 8px; }

/* Crime card — shows what the convict did */
#crime-card {
  position: absolute; top: 54px; left: 50%; transform: translateX(-50%);
  background: rgba(10,10,12,0.85);
  border: 1px solid #5a4030;
  border-left: 4px solid #c0392b;
  padding: 10px 20px;
  min-width: 340px; max-width: 640px;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
  animation: cardin 0.4s ease;
}
@keyframes cardin { from { opacity: 0; transform: translateX(-50%) translateY(-12px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.cc-line1 { font-size: 1.05rem; font-weight: 800; color: #ffd9a0; letter-spacing: 1px; }
.cc-line2 { font-size: 0.9rem; color: #e8e2d4; margin-top: 3px; }
.cc-line3 { font-size: 0.78rem; color: #c0392b; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; font-weight: 700; }

/* ============ Banner (announcements) ============ */
#banner {
  position: fixed; top: 30%; left: 50%; transform: translateX(-50%);
  max-width: 78vw;
  background: rgba(8,8,10,0.88);
  border: 1px solid #6a5030;
  border-radius: 8px;
  padding: 16px 30px;
  text-align: center;
  color: #f0ead9;
  font-size: 1.18rem;
  line-height: 1.55;
  box-shadow: 0 10px 40px rgba(0,0,0,0.7), inset 0 0 30px rgba(255,120,20,0.05);
  z-index: 20;
  pointer-events: none;
  white-space: pre-line;
  animation: cardin 0.35s ease;
}
#banner .b-crime { color: #ffb37a; font-weight: 700; }
#banner .b-line { display: block; }
#banner .b-sentence { color: #ff6a4d; font-weight: 800; letter-spacing: 1px; }

/* ============ Prompt bar ============ */
#prompt-bar {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 25;
  pointer-events: none;
}
.prompt-inner {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: linear-gradient(180deg, rgba(16,18,24,0.92), rgba(10,11,15,0.94));
  border: 1px solid #4a4238;
  border-radius: 12px;
  padding: 16px 28px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.7);
  pointer-events: auto;
}
#prompt-title { font-size: 1.15rem; font-weight: 800; color: #ffd9a0; letter-spacing: 1px; text-align: center; }
#prompt-sub { font-size: 0.82rem; color: #9a9384; text-align: center; max-width: 460px; }
#prompt-btn { pointer-events: auto; }
#prompt-btn.pulse { animation: pulse 1.1s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 2px 0 #4a120c, inset 0 1px 0 rgba(255,255,255,0.25), 0 0 10px rgba(255,60,20,0.4); }
  50% { box-shadow: 0 2px 0 #4a120c, inset 0 1px 0 rgba(255,255,255,0.25), 0 0 34px rgba(255,60,20,0.95); }
}
