:root {
  --appBg: #070b14;
  --panelBg: #0f172a;
  --panelBgAlt: rgba(30, 41, 59, 0.6);
  --border: rgba(51, 65, 85, 0.5);
  --textMain: #f8fafc;
  --textMuted: #94a3b8;
  --accent: #f59e0b;
  --accentGlow: rgba(245, 158, 11, 0.3);
}

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

/* Nugget art is decoration/game pieces — never draggable ghost images */
img {
  -webkit-user-drag: none;
  user-select: none;
}

body {
  background: var(--appBg);
  color: var(--textMain);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-image: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.08), transparent 60%);
}

.card {
  background: var(--panelBg);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}

.kicker {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.45;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.sub {
  color: var(--textMuted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.field-row { display: flex; gap: 0.75rem; }
.field-row .input-wrap { flex: 1; }
.field-row .zip-wrap { width: 42%; }

label {
  display: block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--textMuted);
  margin-bottom: 0.5rem;
}

.input-wrap { position: relative; margin-bottom: 1.25rem; }

.input-wrap .dollar {
  position: absolute;
  left: 1rem;
  top: 2.05rem;
  color: var(--textMuted);
  font-weight: 800;
  font-size: 1.25rem;
  pointer-events: none;
}

input {
  width: 100%;
  background: #1e293b;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  padding: 1rem;
  color: var(--textMain);
  font-size: 1.25rem;
  font-weight: 800;
  outline: none;
  transition: all 0.2s;
}

#amount { padding-left: 2.25rem; }

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accentGlow);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.region-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--panelBgAlt);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--textMuted);
  margin-bottom: 1.25rem;
}
.region-pill strong { color: var(--textMain); font-weight: 800; }
.region-pill .price { color: var(--accent); font-weight: 900; }

.result {
  background: var(--panelBgAlt);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.nugget-hero {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.25));
}

.count {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--accent);
  transition: all 0.2s;
  /* Keep giant numbers inside the card instead of overflowing sideways */
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.count-label {
  color: var(--textMuted);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

.breakdown {
  color: var(--textMuted);
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.75rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.breakdown strong { color: var(--textMain); font-weight: 800; }

.arcade-btn {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1c1307;
  border: none;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 30px -10px var(--accentGlow);
  transition: all 0.2s;
}
.arcade-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.arcade-btn:active { transform: scale(0.98); }
.arcade-btn.running {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  color: #fff;
}

.nugget-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  margin: 0 0 1.25rem;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  max-width: 100%;
  padding: 0.25rem;
}
.nugget-grid img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  animation: pop 0.25s ease-out both;
}
@keyframes pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.more-note {
  width: 100%;
  text-align: center;
  color: var(--textMuted);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.disclaimer {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--textMuted);
}

.disclaimer .icon { font-size: 0.9rem; line-height: 1.4; }
.disclaimer strong { color: var(--textMain); font-weight: 800; }

/* ---- "This site is not for you" callout (over $10,000,000) ---- */
.big-message {
  display: none;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(245, 158, 11, 0.14));
  border: 2px solid #f43f5e;
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
  box-shadow: 0 20px 50px -20px rgba(244, 63, 94, 0.6);
  animation: bigpop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.big-message.active { display: block; }
.big-message .bm-emoji { font-size: 2rem; line-height: 1; margin-bottom: 0.4rem; }
.big-message .bm-head {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--textMain);
  margin-bottom: 0.4rem;
}
.big-message .bm-sub {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--textSec, #cbd5e1);
}
.big-message .bm-sub strong { color: #fda4af; font-weight: 900; }
@keyframes bigpop {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
