:root {
  --paper: #f6eddc;
  --ink: #12100e;
  --muted: #4a3f35;
  --accent: #d44f24;
  --accent-2: #1e6d58;
  --tile: #f2e5cf;
  --tile-on: #f7b733;
  --line: #2a231d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Newsreader", Georgia, serif;
  color: var(--ink);
  background: radial-gradient(circle at 12% 8%, #fff7e8, transparent 28%),
              radial-gradient(circle at 90% 80%, #ffd4a7, transparent 34%),
              linear-gradient(140deg, #f4e9d7, #ead7bb 40%, #f0e0c8);
  position: relative;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  width: 38vmax;
  height: 38vmax;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(42px);
  opacity: 0.2;
}

.orb-a {
  top: -10vmax;
  right: -8vmax;
  background: #d44f24;
}

.orb-b {
  bottom: -14vmax;
  left: -10vmax;
  background: #1e6d58;
}

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.25rem 1.25rem;
  animation: fade-rise 700ms ease-out both;
}

.kicker {
  font-family: "IBM Plex Mono", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--accent-2);
  margin: 0 0 0.7rem;
}

h1 {
  margin: 0;
  font-family: "Anton", Impact, sans-serif;
  letter-spacing: 0.02em;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 0.98;
}

.lede {
  max-width: 72ch;
  margin-top: 1rem;
  font-size: 1.08rem;
}

.disclaimer {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  background: color-mix(in srgb, var(--paper) 85%, white 15%);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.16);
}

#bingo-panel {
  grid-column: 1 / -1;
}

h2 {
  margin: 0 0 0.5rem;
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

p {
  margin: 0.4rem 0 0.8rem;
}

label,
.score-wrap span {
  display: block;
  margin: 0.4rem 0;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

textarea,
input[type="range"] {
  width: 100%;
}

textarea {
  resize: vertical;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem;
  font-size: 1rem;
  background: #fff9ef;
  font-family: "Newsreader", Georgia, serif;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#fog-level-value {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-weight: 600;
}

.btn {
  margin: 0.7rem 0 0.9rem;
  padding: 0.62rem 0.95rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(0);
}

.btn-alt {
  background: var(--accent-2);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.7rem 0 0.9rem;
}
.btn-row .btn {
  margin: 0;
}

.score-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0.3rem 0;
}

#score-value {
  font-family: "Anton", Impact, sans-serif;
  font-size: 2rem;
}

.bingo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.bingo-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.bingo-cell {
  min-height: 4.5rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.77rem;
  line-height: 1.22;
  background: var(--tile);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

.bingo-cell:hover {
  transform: scale(1.02);
}

.bingo-cell.on {
  background: var(--tile-on);
}

.site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: fade-rise 520ms ease-out forwards;
}

.reveal:nth-child(1) { animation-delay: 120ms; }
.reveal:nth-child(2) { animation-delay: 200ms; }
.reveal:nth-child(3) { animation-delay: 280ms; }

@keyframes fade-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  #bingo-panel {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .bingo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bingo-cell {
    min-height: 4rem;
  }
}


/* SYMBIS callout */
.symbis-cta {
  max-width: 1080px;
  margin: 0.5rem auto 0;
  padding: 0 1.25rem;
}
.symbis-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.4rem 1.6rem;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.symbis-link:hover,
.symbis-link:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.22);
  background: var(--accent);
  outline: none;
}
.symbis-kicker {
  font-family: "IBM Plex Mono", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--tile-on);
}
.symbis-title {
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  letter-spacing: 0.02em;
  line-height: 1;
}
.symbis-sub {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--paper) 80%, var(--tile-on) 20%);
}
