/* ═══════════════════════════════════════════════════════
   WORST ONBOARDING EVER 2 — Level Styles
   The wrapper is beautiful. The levels are terrible. That's the joke.
   Uses the game.css design tokens (--game-*, fonts).
   ═══════════════════════════════════════════════════════ */

/* ── Shared toast (reused by every level) ─────────────── */
.woe-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 100000;
  background: var(--game-surface);
  color: var(--game-text);
  border: 1px solid var(--game-border);
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.woe-toast-out { opacity: 0; transform: translateX(-50%) translateY(10px); }

/* transition-screen credit line (Denis etc.) */
#transition-level-credit {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--game-text-dim);
  opacity: 0.7;
}

/* Persistent community-credit badge — stays on screen the whole level the
   person suggested (L2 Denis), links to their LinkedIn. It carries
   data-valid-click so clicking through never counts as a rage click. */
.woe-credit-badge {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  max-width: 90vw;
  padding: 0.5rem 0.9rem;
  background: rgba(20, 20, 24, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--game-border);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1;
  color: var(--game-text-dim);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.woe-credit-badge strong { color: var(--game-text); font-weight: 600; margin-left: 0.3rem; }
.woe-credit-badge .woe-credit-arrow { color: var(--game-accent); margin-left: 0.3rem; }
.woe-credit-badge:hover {
  color: var(--game-text);
  border-color: var(--game-accent);
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  .woe-credit-badge { left: 50%; transform: translateX(-50%); bottom: 0.6rem; font-size: 0.72rem; padding: 0.4rem 0.75rem; }
  .woe-credit-badge:hover { transform: translateX(-50%) translateY(-1px); }
}

/* ═══ LEVEL 1: The Banner Avalanche ═══ */
.l1-app { min-height: 100%; background: var(--game-bg); }
.l1-appbar {
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem 1.5rem;
  background: var(--game-surface);
  border-bottom: 1px solid var(--game-border);
}
.l1-logo { font-family: var(--font-display); font-size: 1.3rem; color: var(--game-text); }
.l1-appnav { display: flex; gap: 1.25rem; }
.l1-appnav a { color: var(--game-text-dim); font-size: 0.9rem; cursor: pointer; }
.l1-appbody { padding: 2.5rem 1.5rem; }
.l1-appbody h2 { font-family: var(--font-display); font-size: 2rem; color: var(--game-text); margin-bottom: 0.5rem; }
.l1-appbody p { color: var(--game-text-dim); max-width: 460px; }

.l1-banners {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; flex-direction: column;
  z-index: 500;
}
.l1-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 1.1rem;
  background: linear-gradient(90deg, #2b2140, #23283f);
  border-bottom: 1px solid var(--game-border);
  color: var(--game-text);
  font-size: 0.9rem;
  transition: transform 0.3s ease, opacity 0.25s ease;
}
.l1-banner-in { animation: l1SlideIn 0.35s ease; }
@keyframes l1SlideIn { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.l1-banner-out { opacity: 0; transform: translateY(-8px); }
.l1-banner-text { flex: 1; }
.l1-banner-close {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border: none; border-radius: 6px;
  background: rgba(255, 255, 255, 0.08); color: var(--game-text);
  font-size: 1.15rem; line-height: 1; cursor: pointer;
}
.l1-banner-close:hover { background: rgba(255, 255, 255, 0.18); }
.l1-banner-special { background: var(--game-text); color: var(--game-bg); font-weight: 500; }
.l1-banner-special a { color: #b3261e; text-decoration: underline; cursor: pointer; font-weight: 700; }

.l1-prefs-panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 1000;
  width: min(90vw, 360px);
  padding: 1.5rem 1.75rem;
  background: var(--game-surface); border: 1px solid var(--game-border);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.l1-prefs-panel h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 1rem; color: var(--game-text); }
.l1-toggle-row { display: flex; align-items: center; gap: 0.7rem; color: var(--game-text); font-size: 0.95rem; cursor: pointer; }
.l1-toggle-row input { width: 18px; height: 18px; cursor: pointer; }

.l1-complete-btn {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 1000;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  padding: 0.9rem 2rem;
  background: var(--game-success); color: var(--game-bg);
  border: none; border-radius: 8px; cursor: pointer;
}
.l1-dismiss-ghost {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 1000; opacity: 0.35;
  color: var(--game-text-dim); font-size: 0.8rem;
  text-decoration: underline; cursor: pointer;
}
.l1-dismiss-ghost:hover { opacity: 0.7; }

@media (max-width: 640px) {
  .l1-appnav { display: none; }
  .l1-banner { font-size: 0.82rem; padding: 0.7rem 0.9rem; }
  .l1-appbody { padding: 1.5rem 1rem; }
}

/* ═══ LEVEL 2: The Unskippable Academy ═══ */
/* padding-bottom lifts the control bar clear of the fixed community-credit badge (bottom-left) */
.l2-player { display: flex; flex-direction: column; min-height: 100%; padding-bottom: 4.5rem; background: #000; }
.l2-screen {
  flex: 1; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding: 2rem; text-align: center; min-height: 320px;
  background: radial-gradient(ellipse at 50% 40%, #16161c, #000 72%);
}
.l2-badge {
  position: absolute; top: 1.25rem; left: 1.25rem;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--game-accent); border: 1px solid var(--game-border); border-radius: 100px; padding: 0.3rem 0.8rem;
}
.l2-video-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--game-text-dim); }
.l2-caption { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--game-text); max-width: 640px; }
.l2-buffer { display: flex; align-items: center; gap: 0.6rem; color: var(--game-text-dim); font-size: 0.95rem; margin-top: 0.5rem; }
.l2-spinner { width: 18px; height: 18px; border: 2px solid var(--game-border); border-top-color: var(--game-accent); border-radius: 50%; display: inline-block; animation: l2spin 0.8s linear infinite; }
@keyframes l2spin { to { transform: rotate(360deg); } }
.l2-controls { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1.1rem; background: var(--game-surface); border-top: 1px solid var(--game-border); }
.l2-ctrl-left { display: flex; gap: 0.5rem; }
.l2-ctrl { width: 38px; height: 34px; border: none; border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: var(--game-text); font-size: 0.9rem; cursor: pointer; }
.l2-ctrl:hover { background: rgba(255, 255, 255, 0.12); }
.l2-progress { flex: 1; height: 6px; background: var(--game-border); border-radius: 100px; overflow: hidden; }
.l2-progress-fill { height: 100%; width: 0; background: var(--game-accent); transition: width 0.6s ease; }
.l2-skip { flex-shrink: 0; font-family: var(--font-body); font-size: 0.82rem; padding: 0.55rem 1rem; background: transparent; color: var(--game-text-dim); border: 1px solid var(--game-border); border-radius: 6px; cursor: pointer; }
.l2-skip:hover { color: var(--game-text); }
.l2-watch-later { display: block; text-align: center; padding: 1rem; color: var(--game-text-dim); font-size: 0.85rem; text-decoration: underline; cursor: pointer; background: var(--game-bg); animation: l2fade 0.5s ease; }
@keyframes l2fade { from { opacity: 0; } to { opacity: 1; } }
.l2-done { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; min-height: 100%; padding: 3rem 2rem; text-align: center; }
.l2-done-emoji { font-size: 3.5rem; }
.l2-done h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--game-text); max-width: 560px; }
.l2-complete-btn { margin-top: 0.5rem; font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; padding: 0.9rem 2rem; background: var(--game-success); color: var(--game-bg); border: none; border-radius: 8px; cursor: pointer; }
@media (max-width: 640px) {
  .l2-caption { font-size: 1.4rem; }
  .l2-controls { flex-wrap: wrap; gap: 0.6rem; }
}

/* ═══ LEVEL 3: The Checklist of Doom ═══ */
.l3-screen { min-height: 100%; background: var(--game-bg); display: flex; flex-direction: column; align-items: center; }
.l3-appbar { align-self: stretch; padding: 1rem 1.5rem; background: var(--game-surface); border-bottom: 1px solid var(--game-border); }
.l3-logo { font-family: var(--font-display); font-size: 1.3rem; color: var(--game-text); }
.l3-widget {
  margin-top: 3rem; width: min(92vw, 460px);
  background: var(--game-surface); border: 1px solid var(--game-border);
  border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); overflow: visible;
}
.l3-widget-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--game-border); position: relative; }
.l3-widget-title h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--game-text); }
.l3-progress { font-size: 0.85rem; color: var(--game-text-dim); margin-top: 0.25rem; }
.l3-head-right { display: flex; align-items: center; gap: 0.6rem; }
.l3-ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.l3-ring-label { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--game-text-dim); }
.l3-ring { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--game-accent); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-variant-numeric: tabular-nums; color: var(--game-text); }
.l3-menu-btn { width: 30px; height: 30px; border: none; border-radius: 6px; background: transparent; color: var(--game-text-dim); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.l3-menu-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--game-text); }
.l3-pulse { animation: l3pulse 0.6s ease 3; }
@keyframes l3pulse { 50% { background: var(--game-accent); color: #fff; transform: scale(1.15); } }
.l3-menu-pop { position: absolute; top: 3.4rem; right: 1rem; z-index: 20; background: var(--game-bg); border: 1px solid var(--game-border); border-radius: 8px; padding: 0.35rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }
.l3-menu-pop button { display: block; width: 100%; text-align: left; white-space: nowrap; padding: 0.5rem 0.8rem; background: transparent; border: none; color: var(--game-text); font-family: var(--font-body); font-size: 0.85rem; border-radius: 6px; cursor: pointer; }
.l3-menu-pop button:hover { background: rgba(255, 255, 255, 0.08); }
.l3-list { list-style: none; padding: 0.5rem; max-height: 320px; overflow-y: auto; }
.l3-check-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.8rem; border-radius: 8px; cursor: pointer; color: var(--game-text); font-size: 0.9rem; }
.l3-check-item:hover { background: rgba(255, 255, 255, 0.04); }
.l3-check-box { width: 20px; height: 20px; flex-shrink: 0; border: 2px solid var(--game-border); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.l3-checked .l3-check-box { background: var(--game-success); border-color: var(--game-success); color: var(--game-bg); animation: l3tick 0.3s ease; }
.l3-checked .l3-check-label { color: var(--game-text-dim); text-decoration: line-through; }
@keyframes l3tick { 0% { transform: scale(0.5); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.l3-item-in { animation: l3itemin 0.35s ease; }
@keyframes l3itemin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.l3-skip-setup { margin-top: 1.25rem; color: var(--game-text-dim); font-size: 0.85rem; text-decoration: underline; cursor: pointer; animation: l2fade 0.5s ease; }
.l3-skip-setup:hover { color: var(--game-text); }
@media (max-width: 640px) { .l3-widget { margin-top: 1.5rem; } }

/* ═══ LEVEL 4: The NPS Ambush ═══ */
.l4-app { min-height: 100%; background: var(--game-bg); }
.l4-appbar { padding: 1rem 1.5rem; background: var(--game-surface); border-bottom: 1px solid var(--game-border); }
.l4-logo { font-family: var(--font-display); font-size: 1.3rem; color: var(--game-text); }
.l4-form-area { max-width: 440px; margin: 4rem auto 0; padding: 0 1.5rem; text-align: center; }
.l4-form-area h2 { font-family: var(--font-display); font-size: 2rem; color: var(--game-text); margin-bottom: 0.5rem; }
.l4-form-sub { color: var(--game-text-dim); margin-bottom: 1.75rem; }
.l4-input { width: 100%; padding: 0.9rem 1rem; font-size: 1rem; font-family: var(--font-body); background: var(--game-surface); color: var(--game-text); border: 1px solid var(--game-border); border-radius: 8px; outline: none; margin-bottom: 1rem; }
.l4-input:focus { border-color: var(--game-accent); }
.l4-create-btn { width: 100%; padding: 0.9rem; font-size: 0.95rem; font-weight: 500; font-family: var(--font-body); background: var(--game-accent); color: #fff; border: none; border-radius: 8px; cursor: pointer; }
.l4-modal-overlay { position: absolute; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(4, 4, 6, 0.72); backdrop-filter: blur(3px); }
.l4-modal { position: relative; width: min(92vw, 460px); background: var(--game-surface); border: 1px solid var(--game-border); border-radius: 16px; padding: 2rem 1.75rem 1.5rem; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); animation: l4pop 0.3s ease; }
@keyframes l4pop { from { opacity: 0; transform: scale(0.94) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.l4-modal-close { position: absolute; top: 0.9rem; right: 0.9rem; width: 30px; height: 30px; border: none; border-radius: 6px; background: transparent; color: var(--game-text-dim); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.l4-modal-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--game-text); }
.l4-modal-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--game-text); margin-bottom: 1.25rem; padding-right: 1.5rem; line-height: 1.3; }
.l4-nps { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.l4-nps-btn { width: 40px; height: 40px; border: 1px solid var(--game-border); border-radius: 8px; background: var(--game-bg); color: var(--game-text); font-family: var(--font-body); font-size: 0.9rem; cursor: pointer; transition: transform 0.15s ease; }
.l4-nps-btn:hover { border-color: var(--game-accent); color: var(--game-accent); }
.l4-why { width: 100%; min-height: 110px; resize: none; padding: 0.8rem; font-family: var(--font-body); font-size: 0.9rem; background: var(--game-bg); color: var(--game-text); border: 1px solid var(--game-border); border-radius: 8px; outline: none; }
.l4-why:focus { border-color: var(--game-accent); }
.l4-why-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.8rem; }
.l4-counter { font-variant-numeric: tabular-nums; font-size: 0.9rem; color: var(--game-accent); }
.l4-why-submit { padding: 0.6rem 1.4rem; font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; background: var(--game-accent); color: #fff; border: none; border-radius: 8px; cursor: pointer; }
.l4-why-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.l4-loading { display: flex; align-items: center; gap: 0.6rem; color: var(--game-text-dim); font-size: 0.9rem; }
.l4-never { display: inline-block; margin-top: 1.25rem; color: var(--game-text-dim); font-size: 0.75rem; opacity: 0.5; text-decoration: underline; cursor: pointer; }
.l4-never:hover { opacity: 0.9; }
@media (max-width: 640px) { .l4-form-area { margin-top: 2rem; } .l4-nps-btn { width: 34px; height: 34px; } }

/* ═══ LEVEL 5: The Copilot From Hell ═══ */
.l5-dash { position: relative; min-height: 100%; background: var(--game-bg); overflow: hidden; }
.l5-appbar { display: flex; align-items: baseline; gap: 0.75rem; padding: 1rem 1.5rem; background: var(--game-surface); border-bottom: 1px solid var(--game-border); }
.l5-logo { font-family: var(--font-display); font-size: 1.3rem; color: var(--game-text); }
.l5-dash-sub { color: var(--game-text-dim); font-size: 0.85rem; }
.l5-dash-body { display: flex; flex-wrap: wrap; gap: 1rem; padding: 2rem 1.5rem; }
.l5-card { flex: 1; min-width: 150px; padding: 1.25rem; background: var(--game-surface); border: 1px solid var(--game-border); border-radius: 12px; }
.l5-card h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--game-text-dim); margin-bottom: 0.5rem; }
.l5-card p { font-family: var(--font-display); font-size: 2rem; color: var(--game-text); }
.l5-artifacts { position: absolute; inset: 0; pointer-events: none; z-index: 1500; }
.l5-artifact { position: absolute; pointer-events: auto; display: flex; align-items: center; gap: 0.75rem; max-width: 340px; padding: 0.7rem 0.9rem; border-radius: 10px; font-size: 0.85rem; color: var(--game-text); background: var(--game-surface); border: 1px solid var(--game-border); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55); animation: l5pop 0.25s ease; }
@keyframes l5pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.l5-art-text { flex: 1; }
.l5-art-banner { border-left: 3px solid #7a5cff; }
.l5-art-video { border-left: 3px solid var(--game-accent); }
.l5-art-checklist { border-left: 3px solid var(--game-success); }
.l5-art-modal { border-left: 3px solid #ffc24d; }
.l5-artifact-close { flex-shrink: 0; width: 24px; height: 24px; border: none; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: var(--game-text); font-size: 1rem; line-height: 1; cursor: pointer; }
.l5-artifact-close:hover { background: rgba(255, 255, 255, 0.18); }
.l5-cursor { position: absolute; left: 40%; top: 40%; z-index: 2500; pointer-events: none; transition: left 1.6s cubic-bezier(.4, 0, .2, 1), top 1.6s cubic-bezier(.4, 0, .2, 1); }
.l5-cursor::before { content: ''; display: block; width: 0; height: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; transform: rotate(-42deg); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)); }
.l5-cursor-tag { position: absolute; top: 12px; left: 6px; background: var(--game-accent); color: #fff; font-size: 0.6rem; padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.l5-chat { position: absolute; bottom: 1.25rem; right: 1.25rem; z-index: 2000; width: min(92vw, 340px); background: var(--game-surface); border: 1px solid var(--game-border); border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; overflow: hidden; }
.l5-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--game-border); }
.l5-chat-title { font-size: 0.85rem; font-weight: 500; color: var(--game-text); }
.l5-disable { flex-shrink: 0; padding: 0.4rem 0.7rem; font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; background: var(--game-success); color: var(--game-bg); border: none; border-radius: 6px; cursor: pointer; }
.l5-chat-log { max-height: 200px; overflow-y: auto; padding: 0.8rem; display: flex; flex-direction: column; gap: 0.5rem; }
.l5-msg { max-width: 85%; padding: 0.5rem 0.75rem; border-radius: 10px; font-size: 0.82rem; line-height: 1.35; }
.l5-msg-bot { align-self: flex-start; background: var(--game-bg); color: var(--game-text); border: 1px solid var(--game-border); }
.l5-msg-user { align-self: flex-end; background: var(--game-accent); color: #fff; }
.l5-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 0.8rem 0.6rem; }
.l5-chip { padding: 0.4rem 0.7rem; font-family: var(--font-body); font-size: 0.75rem; background: transparent; color: var(--game-text); border: 1px solid var(--game-border); border-radius: 100px; cursor: pointer; }
.l5-chip:hover { border-color: var(--game-accent); color: var(--game-accent); }
.l5-chat-input { display: flex; gap: 0.4rem; padding: 0.7rem 0.8rem; border-top: 1px solid var(--game-border); }
.l5-chat-input input { flex: 1; padding: 0.5rem 0.7rem; font-family: var(--font-body); font-size: 0.82rem; background: var(--game-bg); color: var(--game-text); border: 1px solid var(--game-border); border-radius: 8px; outline: none; }
.l5-chat-input input:focus { border-color: var(--game-accent); }
.l5-send { padding: 0.5rem 0.9rem; font-family: var(--font-body); font-size: 0.8rem; background: var(--game-accent); color: #fff; border: none; border-radius: 8px; cursor: pointer; }
@media (max-width: 640px) {
  .l5-chat { left: 1rem; right: 1rem; bottom: 1rem; width: auto; }
  .l5-artifact { max-width: 88vw; }
}
