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

:root {
  --lava-1: #ff5722;
  --lava-2: #c1272d;
  --lava-3: #ffb347;
  --corp-1: #3b4d61;
  --corp-2: #1e2a3a;
  --corp-3: #7a8aa3;
  --ink: #16181d;
  --paper: #fdf6ee;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.bg-split {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg,
    var(--lava-1) 0%,
    var(--lava-3) 35%,
    var(--paper) 50%,
    var(--corp-3) 65%,
    var(--corp-2) 100%);
  opacity: 0.30;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
header h1 .vs {
  font-weight: 300;
  opacity: 0.65;
  font-style: italic;
}
.subtitle {
  text-align: center;
  margin-top: 10px;
  font-size: 1.05rem;
  opacity: 0.78;
  font-style: italic;
}

.card {
  background: white;
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
}

.meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  font-weight: 600;
  margin-bottom: 18px;
}

.headline {
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  line-height: 1.45;
  text-align: center;
  padding: 28px 16px;
  background: #fafafa;
  border-radius: 12px;
  border: 1px dashed rgba(0,0,0,0.10);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.buttons {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.btn {
  flex: 1 1 0;
  min-width: 140px;
  padding: 18px 18px;
  font-size: 1.15rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, filter 0.15s ease;
  color: white;
  letter-spacing: 0.02em;
}
.btn:active { transform: translateY(2px); }
.btn:hover { filter: brightness(1.08); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; filter: grayscale(0.3); }

.btn.lava {
  background: linear-gradient(135deg, var(--lava-1), var(--lava-2));
}
.btn.layoffs {
  background: linear-gradient(135deg, var(--corp-1), var(--corp-2));
}
.btn.next, .btn.restart {
  background: var(--ink);
  margin-top: 8px;
}
.btn.copy {
  background: linear-gradient(135deg, #2a8c5f, #1b5a3d);
}

.result {
  margin-top: 22px;
  padding: 18px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}
.result.correct { background: #e9f7ef; border-color: #b6e3c8; }
.result.wrong   { background: #fdecec; border-color: #f3b8b8; }
.verdict {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.source {
  font-size: 0.98rem;
  opacity: 0.85;
  margin-bottom: 6px;
}

.hidden { display: none !important; }

#final h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 10px;
}
#final p {
  text-align: center;
  margin-bottom: 14px;
  opacity: 0.85;
}
#share-text {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  font-family: inherit;
  font-size: 0.95rem;
  resize: none;
  background: #fafafa;
  margin-bottom: 8px;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 20px;
}
footer .tiny { font-size: 0.75rem; opacity: 0.7; margin-top: 6px; }

.difficulty {
  margin-top: 10px;
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.85;
}
.joke {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(0,0,0,0.05);
  border: 1px dashed rgba(0,0,0,0.2);
  font-size: 0.9rem;
  line-height: 1.45;
}
.joke p { margin: 0 0 6px 0; }
.joke p:last-child { margin-bottom: 0; opacity: 0.85; }
