/* Puzzle-book look: cream paper, ink, one accent per game; game cards are page tabs. */
:root {
  --bg: #f7f1e8;
  --card: #fffaf2;
  --ink: #2b2118;
  --muted: #6b5b4b;
  --line: #e6d9c6;
  --brand: #c2562f;
  --gold: #e0a03a;
  --accent: #c2562f;
  --good: #2f7d4f;
  --bad: #c0392b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --display: 'Fraunces', Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: 36px; margin: 0 0 8px; }
h2 { font-size: 28px; margin: 48px 0 12px; }
h3 { font-size: 22px; margin: 24px 0 8px; }
.lede { color: var(--muted); font-size: 18px; margin: 0; max-width: 70ch; }
.muted { color: var(--muted); }
.fine { font-size: 14px; }

/* header / footer */
.site-head { border-bottom: 1px solid var(--line); background: var(--card); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 18px; }
.nav { display: flex; gap: 16px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--brand); }
.site-foot { margin-top: 64px; border-top: 1px solid var(--line); background: var(--card); color: var(--muted); }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; padding-top: 32px; padding-bottom: 48px; }
.site-foot p { margin: 0 0 8px; max-width: 70ch; }
.site-foot nav { display: flex; flex-direction: column; gap: 8px; }
.site-foot nav a { color: var(--muted); }

/* hub (home) */
.hub { padding-top: 32px; }
.hub-head { margin-bottom: 24px; }
.hub-head h1 { font-size: 48px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  position: relative; grid-column: span 2; grid-row: span 2; min-height: 560px; display: flex; flex-direction: column; justify-content: space-between;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--ink); isolation: isolate;
}

.feature-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.feature-top { padding: 24px; background: linear-gradient(rgba(0, 0, 0, 0.35), transparent); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.kicker { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.feature-name { font-family: var(--display); font-size: 36px; font-weight: 700; color: #fff; text-decoration: none; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.feature-name:hover { color: #fff; text-decoration: underline; }
.teaser { margin: 16px; padding: 24px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); --accent: var(--c); }
.teaser-q { font-family: var(--display); font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.teaser-form { display: flex; gap: 8px; }
.teaser-form .answer { flex: 1; min-width: 0; }
.teaser-out { min-height: 24px; margin-top: 12px; }
.teaser-out p { margin: 4px 0; }
.t-miss { color: var(--bad); font-weight: 600; }
.t-rare { color: var(--muted); font-size: 14px; }
.t-depth { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font-size: 12px; text-align: center; }
.t-depth span { padding: 4px 0; border-radius: 8px; background: var(--bg); color: var(--muted); }
.t-depth span.on { background: var(--c); color: #fff; font-weight: 600; }
.teaser-cta { display: none; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.teaser-cta .btn { text-decoration: none; display: inline-flex; align-items: center; }
.teaser.done .teaser-cta, .done .teaser-cta { display: flex; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card-art { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 4px solid var(--c); }
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.card:hover .card-art img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 16px; }
.card-body b { font-family: var(--display); font-size: 18px; }
.card-line { color: var(--muted); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); }


/* game page */
.crumbs { display: flex; gap: 8px; padding-top: 16px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.play { padding-top: 16px; }
.play-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.play-tab { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); font-size: 32px; }
.game-frame {
  position: relative; overflow: hidden; min-height: 420px; padding: 24px;
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.game-frame:has(.kr-stage), .game-frame:has(.sq-stage), .game-frame:has(.ob-stage), .game-frame:has(.py-stage) { padding: 0; border-top: 0; }
.rp-fs {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  z-index: 9999 !important;
  border-radius: 0 !important;
}
body.rp-fs-lock { overflow: hidden; }
@media (min-width: 760px) {
  .rp-fs .kr-card, .rp-fs .sq-card, .rp-fs .ob-card,
  .rp-fs .kr-hero-box, .rp-fs .sq-hero-box, .rp-fs .ob-hero-box, .rp-fs .py-hero-box,
  .rp-fs .kr-end-card, .rp-fs .sq-end-card, .rp-fs .ob-end-card, .rp-fs .py-end-card {
    max-width: 680px;
    padding: 22px 26px;
  }
  .rp-fs .kr-prompt, .rp-fs .sq-prompt, .rp-fs .ob-prompt { font-size: 29px; }
  .rp-fs .kr-input, .rp-fs .sq-input, .rp-fs .ob-input { min-height: 50px; font-size: 18px; }
  .rp-fs .py-board-wrap { max-width: 820px; gap: 14px; }
  .rp-fs .py-board { max-width: 760px; height: min(56vh, 430px); }
  .rp-fs .py-tile { min-width: 148px; height: 68px; font-size: 22px; }
  .rp-fs .py-elbl { font-size: 14px; padding: 3px 10px; }
  .rp-fs .py-rule { font-size: 15px; padding: 7px 18px; }
  .rp-fs .fm-clue-card { width: min(740px, calc(100% - 32px)); padding: 14px 18px; }
  .rp-fs .fm-fact { font-size: 18px; }
  .rp-fs .fm-reveal-card { width: min(700px, calc(100% - 32px)); padding: 16px 20px; }
}
.rp-modal {
  position: fixed; inset: 0; z-index: 10020; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(15, 23, 42, 0.78);
}
.rp-modal-box {
  width: 100%; max-width: 620px; background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 28px 64px rgba(2, 6, 23, 0.52);
}
.rp-hint-box { max-width: 440px; }
.rp-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 18px; }
.rp-x {
  appearance: none; cursor: pointer; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; width: 34px; height: 34px; font: inherit; font-weight: 700;
}
.rp-share-img { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 14px 36px rgba(2, 6, 23, 0.36); margin-bottom: 14px; }

.rp-share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rp-sbtn {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 6px 14px; border-radius: 10px; text-decoration: none;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); font: inherit; font-size: 14px; font-weight: 700;
}
.rp-sbtn:hover { border-color: var(--ink); color: var(--ink); }
.rp-sbtn-pri { background: var(--brand); color: #ffffff; border-color: var(--brand); }
.rp-sbtn-pri:hover { color: #ffffff; filter: brightness(0.92); }
.rp-share-note, .rp-hint-copy { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.rp-hint-copy { margin: 0 0 14px; color: var(--ink); }
.rp-arch { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 12px; }
.rp-arch-lbl { font-size: 12px; font-weight: 700; color: #e2e8f0; width: 100%; }
.rp-arch-btn {
  appearance: none; cursor: pointer; padding: 4px 10px; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 700;
  background: #1e293b; color: #f8fafc; border: 1px solid #475569;
}
.rp-arch-btn:hover { background: #334155; border-color: #fde047; color: #fde047; }
.more-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.more-all { font-size: 14px; font-weight: 700; text-decoration: none; }
.more-all:hover { text-decoration: underline; }
.game-frame .center { text-align: center; }
.game-frame[aria-busy='true'] { cursor: progress; }
.rp-error { color: var(--bad); font-weight: 600; text-align: center; }
.engage { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.engage .msg { color: var(--muted); font-size: 14px; }
.more h2 { margin-top: 32px; }

/* shared game widgets */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; min-height: 44px;
  padding: 8px 24px; border-radius: var(--radius); background: var(--accent); color: #fff; transition: filter 0.12s, transform 0.06s;
}
.btn:hover { filter: brightness(0.9); }
.btn:active { transform: translateY(1px); }
.btn.secondary, .btn-ghost {
  appearance: none; cursor: pointer; font: inherit; font-weight: 600; min-height: 44px; padding: 8px 16px;
  border-radius: var(--radius); background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.btn.secondary:hover, .btn-ghost:hover { border-color: var(--ink); }
.btn-ghost[aria-pressed='true'] { color: var(--brand); border-color: var(--brand); }
.btn:disabled, .btn.secondary:disabled { opacity: 0.5; cursor: default; }
input.answer, .c-form input, .c-form textarea {
  width: 100%; font: inherit; font-size: 18px; padding: 8px 16px; min-height: 44px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; color: var(--ink); outline: none;
}
input.answer:focus, .c-form input:focus, .c-form textarea:focus { border-color: var(--accent); }

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.stats { display: flex; gap: 24px; justify-content: center; margin: 12px 0; }
.stats div { text-align: center; }
.stats b { display: block; font-family: var(--display); font-size: 22px; }
.stats span { font-size: 12px; color: var(--muted); }
.shake { animation: shake 0.35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.hidden { display: none !important; }

/* article */
.prose { padding-top: 16px; }
.prose > * { max-width: 70ch; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 4px 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 12px 0; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-size: 14px; color: var(--muted); }
.doc { padding-top: 32px; }

/* faq */
.faq details { max-width: 70ch; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 8px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 8px 0 0; }

/* comments */
.comments { margin-top: 48px; }
.comments > * { max-width: 70ch; }
.c-form { display: grid; gap: 8px; }
.c-form textarea { min-height: 96px; resize: vertical; }
.contact { margin-top: 24px; max-width: 70ch; }
.contact select { font: inherit; min-height: 44px; padding: 8px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink); }
.c-form [data-gf-reply-cancel] { display: none; }
.c-form[data-gf-replying] [data-gf-reply-cancel] { display: inline-block; }
.c-list { margin-top: 16px; }
.c-list[data-gf-empty]::before { content: 'No notes yet. Post your best score or the rarest answer you found.'; color: var(--muted); }
.c-item { padding: 12px 0; border-top: 1px solid var(--line); }
.c-item[data-gf-owner] { background: var(--card); border-left: 4px solid var(--brand); padding-left: 12px; }
.c-meta { display: flex; gap: 8px; font-size: 14px; color: var(--muted); }
.c-meta b { color: var(--ink); }
.c-owner { display: none; color: var(--brand); font-weight: 600; }
[data-gf-owner] > .c-meta .c-owner { display: inline; }
.c-text { margin: 4px 0; }
.c-reply { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; font-size: 14px; }
.c-replies { margin-left: 24px; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }

  .game-frame { padding: 16px; margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .shelf { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bento { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature { grid-column: span 2; grid-row: auto; min-height: 0; }
  .feature-top { padding: 16px 16px 180px; }
  .tag:nth-child(n+2) { display: none; }
  .feature-name { font-size: 28px; }
  .teaser { margin: 0 8px 8px; padding: 16px; }
  .teaser-q { font-size: 18px; }
  .hub-head h1 { font-size: 30px; }
  .card-body { padding: 8px 12px 12px; }
  .card-body b { font-size: 16px; }
  .card-line { display: none; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .site-head .wrap { min-height: 0; padding-top: 8px; gap: 4px; }
  .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; }
  .play-tab { display: none; }
  .play-head { margin-bottom: 12px; }
  .lede { font-size: 16px; }
  input.answer { font-size: 16px; min-width: 0; }
  .prose table { display: block; overflow-x: auto; max-width: 100%; }
}

/* krillion-unlimited */
.kr-stage {
  --kr-deep: #091c30;
  --kr-mid: #102a45;
  --kr-line: #1e4976;
  --kr-pink: #db2777;
  --kr-ice: #bae6fd;
  --kr-gold: #fde047;
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background: var(--kr-deep);
  color: #ffffff;
  user-select: none;
}
.kr-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.kr-hud-top {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.kr-hud-top > * { pointer-events: auto; }
.kr-badge {
  background: var(--kr-deep);
  border: 2px solid var(--kr-line);
  border-radius: 10px;
  padding: 6px 12px;
  min-width: 84px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.kr-badge small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--kr-ice);
  font-weight: 700;
}
.kr-badge b {
  font-family: var(--display);
  font-size: 20px;
  color: #ffffff;
}
.kr-mid-pill {
  background: var(--kr-deep);
  border: 2px solid var(--kr-line);
  border-radius: 10px;
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--kr-ice);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.kr-dots { display: flex; gap: 5px; }
.kr-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--kr-line);
}
.kr-dots i.now { background: var(--kr-pink); box-shadow: 0 0 8px var(--kr-pink); }
.kr-dots i.z0 { background: var(--kr-ice); }
.kr-dots i.z1 { background: #0369a1; }
.kr-dots i.z2 { background: var(--accent); }
.kr-dots i.z3 { background: #6d28d9; }
.kr-dots i.z4 { background: var(--kr-gold); }

.kr-dots i.miss { background: var(--muted); }
.kr-hud-actions { display: flex; gap: 6px; }
.kr-icon-btn {
  appearance: none;
  cursor: pointer;
  background: var(--kr-deep);
  color: #ffffff;
  border: 2px solid var(--kr-line);
  border-radius: 10px;
  min-height: 38px;
  padding: 4px 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.kr-icon-btn:hover { border-color: var(--kr-ice); }

.kr-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 66px 56px 18px 18px;
}
.kr-play-overlay { align-items: flex-end; padding-bottom: 22px; }
.kr-hero-box {
  width: 100%;
  max-width: 470px;
  text-align: center;
  background: rgba(9, 28, 48, 0.9);
  border: 2px solid var(--kr-line);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.kr-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--kr-ice);
}
.kr-brand-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.05;
}
.kr-brand-title span { color: var(--kr-gold); }
.kr-sub { margin: 8px 0 16px; font-size: 14px; color: var(--kr-ice); }
.kr-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.kr-tab {
  appearance: none;
  cursor: pointer;
  background: var(--kr-mid);
  color: var(--kr-ice);
  border: 2px solid var(--kr-line);
  border-radius: 10px;
  padding: 8px 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.kr-tab.on {
  background: #0369a1;
  border-color: var(--kr-ice);
  color: #ffffff;
}
.kr-cta {
  appearance: none;
  cursor: pointer;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--kr-pink);
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 0 #831843;
  transition: transform 0.08s, filter 0.12s;
}
.kr-cta:hover { filter: brightness(1.08); }
.kr-cta:active { transform: translateY(2px); }
.kr-cta-sm { width: auto; padding: 0 22px; font-size: 14px; min-height: 44px; }
.kr-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--kr-line);
}
.kr-stats-bar b { display: block; font-family: var(--display); font-size: 20px; color: #ffffff; }
.kr-stats-bar span { font-size: 12px; color: var(--kr-ice); text-transform: uppercase; letter-spacing: 0.04em; }

.kr-card {
  width: 100%;
  max-width: 560px;
  background: var(--kr-deep);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 16px 18px 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.52);
}
.kr-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--kr-ice);
  margin-bottom: 8px;
}

.kr-score-tag { color: #ffffff; }
.kr-timer { height: 7px; background: var(--kr-mid); border-radius: 99px; overflow: hidden; }
.kr-timer div { height: 100%; width: 100%; background: var(--kr-ice); transition: width 0.2s linear, background-color 0.2s; }
.kr-timer div.warn { background: var(--kr-gold); }
.kr-timer div.crit { background: var(--bad); }
.kr-prompt {
  font-family: var(--display);
  font-size: clamp(19px, 3.6vw, 26px);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 14px 0 12px;
  line-height: 1.25;
}
.kr-form { display: flex; gap: 8px; }
.kr-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 2px solid var(--kr-line);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}
.kr-input:focus { border-color: var(--kr-pink); }
.kr-submit {
  appearance: none;
  cursor: pointer;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--kr-pink);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.kr-submit:hover { filter: brightness(1.08); }
.kr-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 8px;
}
.kr-skip {
  appearance: none;
  cursor: pointer;
  background: var(--kr-mid);
  color: #ffffff;
  border: 1px solid var(--kr-line);
  border-radius: 8px;
  padding: 5px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}
.kr-skip:hover { border-color: var(--kr-ice); }
.kr-hint { font-size: 12px; color: var(--kr-ice); }
.kr-feedback {
  min-height: 38px;
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--kr-gold);
}
.kr-feedback small { display: block; font-weight: 500; font-size: 12px; color: var(--kr-ice); margin-top: 2px; }
.kr-zones {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.kr-zones span {
  padding: 5px 2px;
  border-radius: 6px;
  opacity: 0.45;
  transition: opacity 0.2s, transform 0.2s;
}
.kr-zones span:nth-child(1) { background: var(--kr-line); color: #ffffff; }
.kr-zones span:nth-child(2) { background: #0369a1; color: #ffffff; }
.kr-zones span:nth-child(3) { background: var(--accent); color: #ffffff; }
.kr-zones span:nth-child(4) { background: #6d28d9; color: #ffffff; }
.kr-zones span:nth-child(5) { background: var(--kr-pink); color: #ffffff; }
.kr-zones span.on { opacity: 1; transform: scale(1.06); box-shadow: 0 0 12px rgba(253, 224, 71, 0.65); }

.kr-end-overlay { padding: 60px 16px 16px; }
.kr-end-card {
  width: 100%;
  max-width: 560px;
  max-height: 100%;
  overflow-y: auto;
  background: var(--kr-deep);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.kr-end-title { margin: 2px 0 6px; font-family: var(--display); font-size: 24px; color: #ffffff; }
.kr-log {
  text-align: left;
  margin: 12px 0;
  padding-left: 20px;
  max-height: 210px;
  overflow-y: auto;
  font-size: 13px;
  color: #ffffff;
}
.kr-log li { margin: 7px 0; }
.kr-log .z { font-weight: 700; color: var(--kr-gold); }
.kr-log small { display: block; color: var(--kr-ice); }
.kr-end-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.kr-sec-btn {
  appearance: none;
  cursor: pointer;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--kr-mid);
  color: #ffffff;
  border: 2px solid var(--kr-line);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}
.kr-sec-btn:hover { border-color: var(--kr-ice); }
@media (max-width: 600px) {
  .kr-stage { height: 540px; }
  .kr-overlay { padding: 64px 42px 14px 10px; }
  .kr-hero-box { padding: 16px 14px; }
  .kr-card { padding: 12px 12px 10px; }
  .kr-badge { padding: 5px 8px; min-width: 66px; }
  .kr-badge b { font-size: 16px; }
}

/* kabloom-unlimited */
.kb-hero { font-size: 3.5rem; margin-top: 10px; }
.kb-layout { display: grid; grid-template-columns: 120px 1fr; gap: 18px; }
@media (max-width: 560px) { .kb-layout { grid-template-columns: 70px 1fr; gap: 10px; } }
.kb-mountain {
  background: linear-gradient(var(--card), color-mix(in srgb, var(--accent) 25%, var(--card))); border-radius: 12px; padding: 8px 6px; position: relative;
  display: flex; flex-direction: column; align-items: center;
}
.kb-face { font-size: 2.2rem; transition: transform 0.2s; }
.kb-ledges { list-style: none; margin: 6px 0 0; padding: 0; width: 100%; display: flex; flex-direction: column-reverse; gap: 6px; }
.kb-ledges li { height: 28px; border-radius: 8px; background: var(--line); display: grid; place-items: center; font-size: 0.8rem; color: var(--ink); }
.kb-ledges li.done { background: var(--accent); color: #fff; font-weight: 700; }
.kb-ledges li.here::after { content: '🧗'; }
.kb-lava { position: relative; height: 22px; background: var(--bg); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.kb-lava div { height: 100%; background: linear-gradient(90deg, var(--gold), var(--accent)); transition: width 0.25s linear; }
.kb-lava span { position: absolute; right: 10px; top: 0; line-height: 22px; font-size: 0.8rem; font-weight: 800; }
.kb-prompt { font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 800; margin: 18px 0 14px; }
.kb-feedback { min-height: 30px; margin-top: 10px; font-weight: 700; }
.kb-used { display: flex; flex-wrap: wrap; gap: 6px; }
.kb-used span { font-size: 0.8rem; padding: 2px 8px; border-radius: 99px; background: var(--bg); text-decoration: line-through; color: var(--muted); }
.kb-log li { margin: 6px 0; }
.kb-log small { color: var(--muted); }
.rumble { animation: rumble 0.12s infinite; }
@keyframes rumble { 50% { transform: translate(1px, -1px) rotate(-0.4deg); } }


/* wonderhop-unlimited */
.wh-hero { font-size: 3.5rem; margin-top: 10px; }
.wh-layout { display: grid; grid-template-columns: 90px 1fr; gap: 16px; }
@media (max-width: 560px) { .wh-layout { grid-template-columns: 56px 1fr; gap: 10px; } }
.wh-sky {
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 40%, var(--card)) 60%, var(--card)); border-radius: 12px; position: relative; min-height: 340px;
}
.wh-sky span { position: absolute; top: 6px; left: 0; right: 0; text-align: center; color: #fff; font-size: 0.75rem; font-weight: 700; }
.wh-balloon { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); font-size: 2.2rem; transition: bottom 0.8s ease; }
.wh-timer { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.wh-timer div { height: 100%; background: var(--accent); transition: width 0.25s linear; }
.wh-prompt { font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 800; margin: 18px 0 14px; }
.wh-feedback { min-height: 28px; margin-top: 10px; font-weight: 700; }
.wh-board { list-style: none; padding: 0; margin: 6px 0 0; }
.wh-board li { position: relative; padding: 5px 10px; margin: 4px 0; border-radius: 8px; background: var(--bg); overflow: hidden; font-size: 0.92rem; }
.wh-board li i { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--accent) 20%, var(--card)); z-index: 0; }
.wh-board li b, .wh-board li em { position: relative; z-index: 1; }
.wh-board li em { float: right; font-style: normal; color: var(--muted); }
.wh-board li.me { outline: 2px solid var(--accent); }
.wh-log li { margin: 6px 0; }

/* perceptle-unlimited */
.pc-hero { font-size: 3.5rem; margin-top: 10px; }
.pc-task { margin: 12px 0 2px; }
.pc-hint { margin: 0 0 8px; min-height: 1.6em; }
.pc-stage { background: var(--bg); border-radius: 12px; overflow: hidden; touch-action: none; }
.pc-stage canvas { display: block; width: 100%; height: 300px; }
.pc-controls { margin-top: 10px; justify-content: center; min-height: 50px; }
.pc-controls input { max-width: 160px; }
.pc-result { min-height: 30px; text-align: center; font-weight: 700; margin-top: 8px; }
.pc-grade { font-size: 4rem; font-weight: 900; color: var(--accent); line-height: 1; margin-top: 10px; }
.pc-breakdown { list-style: none; padding: 0; max-width: 420px; margin: 10px auto; }
.pc-breakdown li { display: flex; justify-content: space-between; padding: 6px 10px; border-bottom: 1px solid var(--line); }

/* peakle-unlimited */
.pk-hero { font-size: 3.5rem; margin-top: 10px; }
.pk-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0 10px; }
.pk-list .pill { cursor: pointer; font: inherit; font-size: 0.85rem; }
.pk-layout { display: grid; grid-template-columns: 100px 1fr; gap: 16px; }
@media (max-width: 560px) { .pk-layout { grid-template-columns: 60px 1fr; gap: 10px; } }

.pk-mtn { position: relative; min-height: 340px; border-radius: 12px; background: linear-gradient(color-mix(in srgb, var(--accent) 15%, var(--card)), var(--card) 40%); overflow: hidden; }
.pk-mtn::before {
  content: ''; position: absolute; inset: 15% 0 0; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 70%, var(--card)), var(--accent));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.pk-alt { position: absolute; top: 4px; left: 0; right: 0; text-align: center; font-size: 0.75rem; font-weight: 800; z-index: 1; }
.pk-climber { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); font-size: 1.8rem; transition: bottom 0.6s ease; z-index: 1; }
.pk-floor { font-size: 1.15rem; font-weight: 700; margin: 16px 0 12px; }
.pk-feedback { min-height: 28px; margin-top: 10px; font-weight: 700; }
.pk-path { padding-left: 22px; font-size: 0.95rem; }
.pk-path li { margin: 3px 0; }
.pk-path .bad { color: var(--bad); }

/* squillion-unlimited */
.sq-stage {
  --sq-bark: #231811;
  --sq-mid: #332318;
  --sq-line: #8c5a2b;
  --sq-leaf: #86efac;
  --sq-gold: #fde047;
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background: var(--sq-bark);
  color: #ffffff;
  user-select: none;
}
.sq-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.sq-hud-top {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.sq-hud-top > * { pointer-events: auto; }
.sq-badge {
  background: var(--sq-bark);
  border: 2px solid var(--sq-line);
  border-radius: 10px;
  padding: 6px 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}
.sq-badge small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sq-gold);
  font-weight: 700;
}
.sq-badge b { font-family: var(--display); font-size: 18px; color: #ffffff; }
.sq-tide-num { color: #bae6fd; margin-left: 6px; font-size: 15px; }
.sq-mid-pill {
  background: var(--sq-bark);
  border: 2px solid var(--sq-line);
  border-radius: 10px;
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}
.sq-dry-tag { color: var(--sq-leaf); }
.sq-hud-actions { display: flex; gap: 6px; }
.sq-icon-btn {
  appearance: none;
  cursor: pointer;
  background: var(--sq-bark);
  color: #ffffff;
  border: 2px solid var(--sq-line);
  border-radius: 10px;
  min-height: 38px;
  padding: 4px 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.sq-icon-btn:hover { border-color: var(--sq-gold); }

.sq-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 66px 56px 18px 18px;
}
.sq-play-overlay { align-items: flex-end; padding-bottom: 20px; }
.sq-hero-box {

  width: 100%;
  max-width: 470px;
  text-align: center;
  background: rgba(35, 24, 17, 0.92);
  border: 2px solid var(--sq-line);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.sq-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--sq-gold);
}
.sq-brand-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(27px, 5vw, 37px);
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.05;
}
.sq-brand-title span { color: var(--sq-leaf); }
.sq-sub { margin: 8px 0 16px; font-size: 14px; color: var(--sq-gold); }
.sq-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.sq-tab {
  appearance: none;
  cursor: pointer;
  background: var(--sq-mid);
  color: var(--sq-gold);
  border: 2px solid var(--sq-line);
  border-radius: 10px;
  padding: 8px 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.sq-tab.on {
  background: var(--accent);
  border-color: var(--sq-leaf);
  color: #ffffff;
}
.sq-cta {
  appearance: none;
  cursor: pointer;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 0 #14532d;
  transition: transform 0.08s, filter 0.12s;
}
.sq-cta:hover { filter: brightness(1.08); }
.sq-cta:active { transform: translateY(2px); }
.sq-cta-sm { width: auto; padding: 0 22px; font-size: 14px; min-height: 44px; }
.sq-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--sq-line);
}
.sq-stats-bar b { display: block; font-family: var(--display); font-size: 20px; color: #ffffff; }
.sq-stats-bar span { font-size: 12px; color: var(--sq-gold); text-transform: uppercase; letter-spacing: 0.04em; }

.sq-card {
  width: 100%;
  max-width: 560px;
  background: var(--sq-bark);
  border: 2px solid var(--sq-line);
  border-radius: 16px;
  padding: 14px 18px 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s;
}
.sq-card.sq-danger { border-color: var(--bad); box-shadow: 0 0 24px rgba(185, 28, 28, 0.55); }
.sq-prompt {
  font-family: var(--display);
  font-size: clamp(19px, 3.6vw, 25px);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 2px 0 12px;
  line-height: 1.25;
}
.sq-form { display: flex; gap: 8px; }
.sq-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 2px solid var(--sq-line);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}
.sq-input:focus { border-color: var(--accent); }
.sq-submit {
  appearance: none;
  cursor: pointer;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);

  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.sq-submit:hover { filter: brightness(1.08); }
.sq-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 8px;
}
.sq-skip {
  appearance: none;
  cursor: pointer;
  background: var(--sq-mid);
  color: #ffffff;
  border: 1px solid var(--sq-line);
  border-radius: 8px;
  padding: 5px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}
.sq-skip:hover { border-color: var(--sq-gold); }
.sq-hint { font-size: 12px; color: var(--sq-gold); }
.sq-feedback {
  min-height: 28px;
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--sq-gold);
}
.sq-tiers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.sq-tiers span {
  padding: 5px 2px;
  border-radius: 6px;
  opacity: 0.45;
  transition: opacity 0.2s, transform 0.2s;
}
.sq-tiers span:nth-child(1) { background: var(--sq-mid); color: #ffffff; }
.sq-tiers span:nth-child(2) { background: var(--sq-line); color: #ffffff; }
.sq-tiers span:nth-child(3) { background: var(--accent); color: #ffffff; }
.sq-tiers span:nth-child(4) { background: #14532d; color: #ffffff; }
.sq-tiers span:nth-child(5) { background: #b45309; color: #ffffff; }
.sq-tiers span.lit { opacity: 1; transform: scale(1.06); box-shadow: 0 0 12px rgba(253, 224, 71, 0.65); }

.sq-end-overlay { padding: 60px 16px 16px; }
.sq-end-card {
  width: 100%;
  max-width: 560px;
  max-height: 100%;
  overflow-y: auto;
  background: var(--sq-bark);
  border: 2px solid var(--sq-line);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.sq-end-title { margin: 2px 0 6px; font-family: var(--display); font-size: 23px; color: #ffffff; }
.sq-log {
  text-align: left;
  margin: 12px 0;
  padding-left: 20px;
  max-height: 205px;
  overflow-y: auto;
  font-size: 13px;
  color: #ffffff;
}
.sq-log li { margin: 7px 0; }
.sq-log b { color: var(--sq-gold); }
.sq-log small { display: block; color: var(--sq-leaf); }
.sq-end-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.sq-sec-btn {
  appearance: none;
  cursor: pointer;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--sq-mid);
  color: #ffffff;
  border: 2px solid var(--sq-line);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}
.sq-sec-btn:hover { border-color: var(--sq-gold); }
@media (max-width: 600px) {
  .sq-stage { height: 540px; }
  .sq-overlay { padding: 64px 42px 14px 10px; }
  .sq-hero-box { padding: 16px 14px; }
  .sq-card { padding: 12px 12px 10px; }
  .sq-badge { padding: 5px 8px; }
  .sq-badge b { font-size: 15px; }
}

/* orbitle-unlimited */
.ob-stage {
  --ob-void: #0d0b21;
  --ob-mid: #1a163a;
  --ob-line: #4338ca;
  --ob-coral: #c2410c;

  --ob-cyan: #bae6fd;
  --ob-gold: #fde047;
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background: var(--ob-void);
  color: #ffffff;
  user-select: none;
}
.ob-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.ob-hud-top {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.ob-hud-top > * { pointer-events: auto; }
.ob-badge {
  background: var(--ob-void);
  border: 2px solid var(--ob-line);
  border-radius: 10px;
  padding: 6px 12px;
  min-width: 96px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.ob-badge small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ob-cyan);
  font-weight: 700;
}
.ob-badge b { font-family: var(--display); font-size: 19px; color: #ffffff; }
.ob-mid-pill {
  background: var(--ob-void);
  border: 2px solid var(--ob-line);
  border-radius: 10px;
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ob-cyan);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.ob-combo-tag { color: var(--ob-gold); }
.ob-dots { display: flex; gap: 5px; }
.ob-dots i { display: block; width: 10px; height: 10px; border-radius: 3px; background: var(--ob-mid); border: 1px solid var(--ob-line); }
.ob-dots i.now { background: var(--ob-coral); box-shadow: 0 0 8px var(--ob-coral); }
.ob-dots i.z0 { background: var(--ob-cyan); }
.ob-dots i.z1 { background: var(--accent); }
.ob-dots i.z2 { background: var(--ob-line); }
.ob-dots i.z3 { background: var(--ob-coral); }
.ob-dots i.z4 { background: var(--ob-gold); }
.ob-dots i.miss { background: var(--muted); }
.ob-hud-actions { display: flex; gap: 6px; }
.ob-icon-btn {
  appearance: none;
  cursor: pointer;
  background: var(--ob-void);
  color: #ffffff;
  border: 2px solid var(--ob-line);
  border-radius: 10px;
  min-height: 38px;
  padding: 4px 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.ob-icon-btn:hover { border-color: var(--ob-gold); }

.ob-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 66px 56px 18px 18px;
}
.ob-play-overlay { align-items: flex-end; padding-bottom: 20px; }
.ob-hero-box {
  width: 100%;
  max-width: 470px;
  text-align: center;
  background: rgba(13, 11, 33, 0.9);
  border: 2px solid var(--ob-line);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.52);
}
.ob-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--ob-gold);
}
.ob-brand-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.05;
}

.ob-brand-title span { color: var(--ob-cyan); }
.ob-sub { margin: 8px 0 16px; font-size: 14px; color: var(--ob-cyan); }
.ob-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.ob-tab {
  appearance: none;
  cursor: pointer;
  background: var(--ob-mid);
  color: var(--ob-cyan);
  border: 2px solid var(--ob-line);
  border-radius: 10px;
  padding: 8px 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.ob-tab.on { background: var(--ob-line); border-color: var(--ob-cyan); color: #ffffff; }
.ob-cta {
  appearance: none;
  cursor: pointer;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--ob-coral);
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 0 #9a3412;
  transition: transform 0.08s, filter 0.12s;
}
.ob-cta:hover { filter: brightness(1.08); }
.ob-cta:active { transform: translateY(2px); }
.ob-cta-sm { width: auto; padding: 0 22px; font-size: 14px; min-height: 44px; }
.ob-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ob-line);
}
.ob-stats-bar b { display: block; font-family: var(--display); font-size: 19px; color: #ffffff; }
.ob-stats-bar span { font-size: 12px; color: var(--ob-cyan); text-transform: uppercase; letter-spacing: 0.04em; }

.ob-card {
  width: 100%;
  max-width: 560px;
  background: var(--ob-void);
  border: 2px solid var(--ob-line);
  border-radius: 16px;
  padding: 15px 18px 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.56);
}
.ob-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ob-gold);
  margin-bottom: 8px;
}
.ob-score-tag { color: #ffffff; }
.ob-timer { height: 7px; background: var(--ob-mid); border-radius: 99px; overflow: hidden; }
.ob-timer div { height: 100%; width: 100%; background: var(--ob-cyan); transition: width 0.2s linear, background-color 0.2s; }
.ob-timer div.warn { background: var(--ob-gold); }
.ob-timer div.crit { background: var(--bad); }
.ob-prompt {
  font-family: var(--display);
  font-size: clamp(19px, 3.6vw, 25px);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 12px 0 11px;
  line-height: 1.25;
}
.ob-form { display: flex; gap: 8px; }
.ob-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 2px solid var(--ob-line);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}
.ob-input:focus { border-color: var(--ob-coral); }
.ob-submit {
  appearance: none;
  cursor: pointer;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--ob-coral);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ob-submit:hover { filter: brightness(1.08); }
.ob-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 8px;
}
.ob-skip {
  appearance: none;
  cursor: pointer;
  background: var(--ob-mid);
  color: #ffffff;
  border: 1px solid var(--ob-line);
  border-radius: 8px;
  padding: 5px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}
.ob-skip:hover { border-color: var(--ob-gold); }
.ob-hint { font-size: 12px; color: var(--ob-cyan); }
.ob-feedback {
  min-height: 36px;
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ob-gold);
}
.ob-feedback small { display: block; font-weight: 500; font-size: 12px; color: var(--ob-cyan); margin-top: 2px; }
.ob-tiers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.ob-tiers span {
  padding: 5px 2px;
  border-radius: 6px;
  opacity: 0.45;
  transition: opacity 0.2s, transform 0.2s;
}
.ob-tiers span:nth-child(1) { background: var(--ob-mid); color: #ffffff; }
.ob-tiers span:nth-child(2) { background: #0369a1; color: #ffffff; }
.ob-tiers span:nth-child(3) { background: var(--ob-line); color: #ffffff; }
.ob-tiers span:nth-child(4) { background: var(--ob-coral); color: #ffffff; }
.ob-tiers span:nth-child(5) { background: #b45309; color: #ffffff; }
.ob-tiers span.lit { opacity: 1; transform: scale(1.06); box-shadow: 0 0 12px rgba(253, 224, 71, 0.7); }

.ob-end-overlay { padding: 60px 16px 16px; }
.ob-end-card {
  width: 100%;
  max-width: 560px;
  max-height: 100%;
  overflow-y: auto;
  background: var(--ob-void);
  border: 2px solid var(--ob-line);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.56);
}
.ob-end-title { margin: 2px 0 6px; font-family: var(--display); font-size: 24px; color: #ffffff; }
.ob-log {
  text-align: left;
  margin: 12px 0;
  padding-left: 20px;
  max-height: 205px;
  overflow-y: auto;
  font-size: 13px;
  color: #ffffff;
}
.ob-log li { margin: 7px 0; }
.ob-log b { color: var(--ob-gold); }
.ob-log small { display: block; color: var(--ob-cyan); }
.ob-end-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.ob-sec-btn {
  appearance: none;
  cursor: pointer;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--ob-mid);
  color: #ffffff;
  border: 2px solid var(--ob-line);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}
.ob-sec-btn:hover { border-color: var(--ob-gold); }
@media (max-width: 600px) {
  .ob-stage { height: 540px; }
  .ob-overlay { padding: 64px 42px 14px 10px; }
  .ob-hero-box { padding: 16px 14px; }
  .ob-card { padding: 12px 12px 10px; }
  .ob-badge { padding: 5px 8px; min-width: 72px; }
  .ob-badge b { font-size: 15px; }
}

/* pyralinks-unlimited */
.py-stage {
  --py-sky: #1a2238;
  --py-panel: #1f172b;

  --py-line: #b45309;
  --py-gold: #fde047;
  --py-mint: #10b981;
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background: linear-gradient(180deg, #17253b 0%, #2d3b59 42%, #9a5b4a 78%, #78350f 100%);
  color: #ffffff;
  user-select: none;
}
.py-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.py-hud-top {
  position: absolute; top: 12px; left: 14px; right: 14px; z-index: 6;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; pointer-events: none;
}
.py-hud-top > * { pointer-events: auto; }
.py-badge, .py-mid-pill {
  background: var(--py-panel); border: 2px solid var(--py-line); border-radius: 10px;
  padding: 6px 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.py-badge small { display: block; font-size: 12px; letter-spacing: 0.08em; color: var(--py-gold); font-weight: 700; }
.py-badge b { font-family: var(--display); font-size: 18px; color: #ffffff; }
.py-mid-pill { display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 700; color: #ffffff; }
.py-tries { color: var(--py-gold); }
.py-hud-actions { display: flex; gap: 6px; }
.py-icon-btn {
  appearance: none; cursor: pointer; background: var(--py-panel); color: #ffffff;
  border: 2px solid var(--py-line); border-radius: 10px; min-height: 38px; padding: 4px 11px;
  font: inherit; font-size: 13px; font-weight: 700;
}
.py-icon-btn:hover { border-color: var(--py-gold); }

.py-overlay {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center; padding: 66px 16px 16px;
}
.py-hero-box {
  width: 100%; max-width: 480px; text-align: center;
  background: rgba(31, 23, 43, 0.92); border: 2px solid var(--py-line);
  border-radius: 16px; padding: 22px 20px 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.py-kicker { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.12em; font-weight: 700; color: var(--py-gold); }
.py-brand-title { margin: 0; font-family: var(--display); font-size: clamp(27px, 5vw, 37px); color: #ffffff; line-height: 1.05; }
.py-brand-title span { color: var(--py-gold); }
.py-sub { margin: 8px 0 14px; font-size: 14px; color: #fef3c7; }
.py-mode-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.py-tab {
  appearance: none; cursor: pointer; background: #2e2240; color: #fef3c7;
  border: 2px solid var(--py-line); border-radius: 10px; padding: 8px 4px;
  font: inherit; font-size: 12px; font-weight: 700;
}
.py-tab.on { background: var(--py-line); border-color: var(--py-gold); color: #ffffff; }
.py-cta {
  appearance: none; cursor: pointer; width: 100%; min-height: 46px; border: 0; border-radius: 12px;
  background: #15803d; color: #ffffff; font: inherit; font-size: 15px; font-weight: 800; letter-spacing: 0.06em;
  box-shadow: 0 5px 0 #14532d; transition: transform 0.08s, filter 0.12s;
}
.py-cta:hover { filter: brightness(1.08); }

.py-cta:active { transform: translateY(2px); }
.py-cta-sm { width: auto; padding: 0 22px; font-size: 14px; min-height: 44px; }
.py-stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--py-line);
}
.py-stats-bar b { display: block; font-family: var(--display); font-size: 20px; color: #ffffff; }
.py-stats-bar span { font-size: 12px; color: var(--py-gold); text-transform: uppercase; }

.py-board-wrap {
  width: 100%; max-width: 600px; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.py-rule {
  margin: 0; padding: 5px 14px; border-radius: 999px; background: var(--py-panel);
  border: 1px solid var(--py-line); font-size: 13px; font-weight: 600; color: #fef3c7; text-align: center;
}
.py-board {
  position: relative; width: 100%; max-width: 560px; height: 320px;
}
.py-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.py-edge {
  stroke: #fbbf24; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 8 6;
  cursor: pointer; transition: stroke 0.2s, stroke-width 0.2s;
}
.py-edge.marked { stroke: #38bdf8; stroke-dasharray: none; stroke-width: 6; }
.py-edge.ok { stroke: var(--py-mint); stroke-dasharray: none; stroke-width: 7; filter: drop-shadow(0 0 6px #10b981); }
.py-edge.bad { stroke: #ef4444; stroke-dasharray: none; stroke-width: 7; }
.py-edge-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.py-elbl {
  position: absolute; transform: translate(-50%, -50%);
  padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: var(--py-panel); color: #ffffff; border: 2px solid var(--py-line);
  white-space: nowrap; pointer-events: auto; cursor: pointer;
}
.py-elbl.ok { background: #14532d; border-color: var(--py-mint); color: #ffffff; }
.py-elbl.bad { background: #7f1d1d; border-color: #ef4444; color: #ffffff; }
.py-elbl.marked { background: #0c4a6e; border-color: #38bdf8; color: #ffffff; }
.py-tiles { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.py-tile {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto;
  min-width: 112px; height: 56px; padding: 0 12px;
  border-radius: 12px; border: 3px solid var(--py-line);
  background: #fef3c7; color: #1c1917;
  font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: 0.04em;
  box-shadow: 0 6px 0 #92400e, 0 10px 20px rgba(0, 0, 0, 0.35);
  cursor: grab; transition: transform 0.14s, border-color 0.14s, box-shadow 0.14s;
}
.py-tile:hover { transform: translate(-50%, -54%); }
.py-tile.sel {
  border-color: var(--py-gold); background: #ffffff;
  transform: translate(-50%, -56%) scale(1.06);
  box-shadow: 0 0 0 4px rgba(253, 224, 71, 0.55), 0 8px 20px rgba(0, 0, 0, 0.45);
}
.py-tile.pinned { border-color: var(--py-mint); background: #dcfce7; }
.py-feedback {
  min-height: 24px; font-size: 14px; font-weight: 700; color: var(--py-gold);

  background: var(--py-panel); padding: 2px 12px; border-radius: 8px;
}
.py-feedback:empty { display: none; }
.py-controls { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.py-sec-btn {
  appearance: none; cursor: pointer; min-height: 44px; padding: 0 16px; border-radius: 10px;
  background: var(--py-panel); color: #ffffff; border: 2px solid var(--py-line);
  font: inherit; font-size: 14px; font-weight: 700;
}
.py-sec-btn:hover { border-color: var(--py-gold); }

.py-end-card {
  width: 100%; max-width: 520px; max-height: 100%; overflow-y: auto;
  background: var(--py-panel); border: 2px solid var(--py-line); border-radius: 16px;
  padding: 18px 20px; text-align: center; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.py-end-title { margin: 2px 0 6px; font-family: var(--display); font-size: 24px; color: #ffffff; }
.py-sol-list {
  list-style: none; padding: 0; margin: 12px 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
  font-size: 13px; text-align: left;
}
.py-sol-list li {
  background: #2e2240; border: 1px solid var(--py-line); border-radius: 8px; padding: 6px 10px; color: #ffffff;
}
.py-sol-list b { color: var(--py-gold); }
.py-end-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 600px) {
  .py-stage { height: 550px; }
  .py-board { height: 290px; }
  .py-tile { min-width: 88px; height: 48px; font-size: 15px; padding: 0 8px; }
  .py-mode-tabs { grid-template-columns: repeat(2, 1fr); }
  .py-sol-list { grid-template-columns: 1fr; }
}

/* factmap-unlimited */
.fm-stage {
  position: relative; height: 580px; border-radius: 16px; overflow: hidden;
  background: #082f49; color: #f8fafc; user-select: none; touch-action: none;
  border: 2px solid #155e75; box-shadow: 0 18px 44px rgba(8, 47, 73, 0.35);
}
.fm-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.fm-canvas.drag { cursor: grabbing; }
.fm-hud {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 6;
  display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none;
}
.fm-pill, .fm-mid-pill {
  pointer-events: auto; background: rgba(7, 25, 42, 0.88); border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 12px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
}
.fm-lbl { color: #fde047; font-weight: 800; letter-spacing: 0.06em; font-size: 12px; }
.fm-val { color: #ffffff; font-size: 14px; }
.fm-sep { color: #94a3b8; }
.fm-hud-actions { display: flex; gap: 6px; pointer-events: auto; }
.fm-icon-btn {
  appearance: none; cursor: pointer; min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 10px; border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(7, 25, 42, 0.88); color: #f8fafc; font: inherit; font-size: 13px; font-weight: 700;
}
.fm-icon-btn:hover { background: #0f3b5c; }
.fm-overlay {

  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  padding: 64px 16px 16px; background: rgba(6, 20, 36, 0.72);
}
.fm-hero-box, .fm-end-card {
  width: 100%; max-width: 500px; background: rgba(9, 28, 46, 0.96);
  border: 2px solid rgba(250, 204, 21, 0.45); border-radius: 18px; padding: 22px 20px; text-align: center;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.55);
}
.fm-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: #fde047; }
.fm-brand-title { margin: 0 0 8px; font-family: var(--display); font-size: 34px; line-height: 1.05; color: #ffffff; }
.fm-brand-title span { color: #38bdf8; }
.fm-sub { margin: 0 auto 14px; max-width: 40ch; font-size: 14px; color: #cbd5e1; }
.fm-mode-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.fm-tab {
  appearance: none; cursor: pointer; padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700;
  background: #102a43; color: #e2e8f0; border: 1px solid #335c7d;
}
.fm-tab.on { background: #0369a1; color: #ffffff; border-color: #7dd3fc; }
.fm-cta {
  appearance: none; cursor: pointer; border: 0; border-radius: 12px; padding: 12px 24px;
  background: #c2410c; color: #ffffff; font: inherit; font-size: 15px; font-weight: 800; letter-spacing: 0.03em;
  box-shadow: 0 4px 0 #7c2d12;
}
.fm-cta:hover:not(:disabled) { background: #9a3412; }
.fm-cta:disabled { opacity: 0.55; cursor: default; box-shadow: none; }
.fm-cta-sm { padding: 10px 18px; font-size: 14px; }
.fm-sec-btn {
  appearance: none; cursor: pointer; border-radius: 12px; padding: 10px 15px;
  background: rgba(9, 28, 46, 0.92); color: #f8fafc; border: 1px solid rgba(125, 211, 252, 0.45);
  font: inherit; font-size: 13px; font-weight: 700;
}
.fm-sec-btn:hover { background: #0f3b5c; }
.fm-stats-bar { display: flex; justify-content: center; gap: 22px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(148, 163, 184, 0.25); }
.fm-stats-bar b { display: block; font-size: 20px; color: #fde047; }
.fm-stats-bar span { font-size: 12px; color: #cbd5e1; }
.fm-play-ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.fm-clue-card {
  position: absolute; top: 58px; left: 50%; transform: translateX(-50%); width: min(640px, calc(100% - 24px));
  background: rgba(7, 25, 42, 0.92); border: 1px solid rgba(250, 204, 21, 0.42); border-radius: 14px;
  padding: 10px 14px; pointer-events: auto; box-shadow: 0 10px 28px rgba(2, 6, 23, 0.45);
}
.fm-clue-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; }
.fm-cat { background: #0369a1; color: #ffffff; font-weight: 800; padding: 2px 9px; border-radius: 999px; letter-spacing: 0.05em; }
.fm-scope { color: #fde047; font-weight: 700; }
.fm-fact { margin: 0; font-size: 15px; line-height: 1.38; color: #ffffff; font-weight: 600; }

.fm-hint-line { margin: 6px 0 0; font-size: 13px; color: #fde047; font-weight: 600; }
.fm-zoom-box {
  position: absolute; right: 12px; bottom: 72px; display: flex; flex-direction: column; gap: 6px; pointer-events: auto;
}
.fm-zbtn {
  appearance: none; cursor: pointer; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(7, 25, 42, 0.92); color: #ffffff; border: 1px solid rgba(125, 211, 252, 0.4);
  font: inherit; font-size: 18px; font-weight: 800;
}
.fm-zbtn:hover { background: #0f3b5c; }
.fm-bottom-bar {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; gap: 8px; align-items: center; pointer-events: auto; max-width: calc(100% - 24px);
}
.fm-reveal-card {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(620px, calc(100% - 24px));
  background: rgba(7, 25, 42, 0.96); border: 2px solid #10b981; border-radius: 14px; padding: 12px 14px;
  pointer-events: auto; box-shadow: 0 14px 36px rgba(2, 6, 23, 0.55);
}
.fm-rev-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.fm-tier { display: inline-block; background: #047857; color: #ffffff; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 6px; margin-right: 6px; }
.fm-place { font-size: 16px; color: #ffffff; }
.fm-rev-pts { text-align: right; }
.fm-rev-pts b { display: block; font-size: 18px; color: #fde047; }
.fm-rev-pts span { font-size: 12px; color: #cbd5e1; }
.fm-story { margin: 0 0 10px; font-size: 13px; color: #e2e8f0; line-height: 1.4; }
.fm-end-title { margin: 4px 0 8px; font-family: var(--display); font-size: 32px; color: #ffffff; }
.fm-log-list { list-style: none; margin: 12px 0 14px; padding: 0; max-height: 168px; overflow-y: auto; text-align: left; }
.fm-log-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-bottom: 1px solid rgba(148, 163, 184, 0.2); font-size: 13px; }
.fm-log-list b { color: #fde047; white-space: nowrap; }
.fm-end-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) {
  .fm-stage { height: 540px; }
  .fm-brand-title { font-size: 28px; }
  .fm-fact { font-size: 14px; }
  .fm-zoom-box { bottom: 76px; }
}

/* noillirk-unlimited */
.nl-stage {
  position: relative; height: 560px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #0c4a6e 0%, #0284c7 48%, #f59e0b 100%);
  color: #ffffff; border: 2px solid #0369a1; box-shadow: 0 18px 44px rgba(12, 74, 110, 0.32);
}
.nl-sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.nl-cloud { position: absolute; width: 150px; height: 44px; border-radius: 99px; background: rgba(255, 255, 255, 0.24); }
.nl-cloud.c1 { top: 22%; left: 10%; }
.nl-cloud.c2 { top: 56%; right: 12%; width: 190px; }
.nl-balloon {
  position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%);

  font-size: 64px; transition: bottom 0.55s cubic-bezier(0.22, 1, 0.36, 1); filter: drop-shadow(0 12px 18px rgba(2, 6, 23, 0.35));
}
.nl-hud {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 6;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.nl-pill, .nl-mid-pill {
  background: rgba(15, 23, 42, 0.86); border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
}
.nl-lbl { color: #fde047; font-weight: 800; font-size: 12px; letter-spacing: 0.06em; }
.nl-actions { display: flex; gap: 6px; }
.nl-ibtn {
  appearance: none; cursor: pointer; min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 23, 42, 0.86); color: #ffffff; font: inherit; font-size: 13px; font-weight: 700;
}
.nl-overlay {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  padding: 60px 16px 16px; background: rgba(15, 23, 42, 0.42);
}
.nl-box, .nl-card {
  width: 100%; max-width: 520px; background: rgba(15, 23, 42, 0.94);
  border: 2px solid rgba(253, 224, 71, 0.45); border-radius: 18px; padding: 20px; text-align: center;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.52);
}
.nl-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: #fde047; }
.nl-title { margin: 0 0 8px; font-family: var(--display); font-size: 34px; line-height: 1.05; color: #ffffff; }
.nl-title span { color: #fde047; }
.nl-sub { margin: 0 auto 14px; max-width: 42ch; font-size: 14px; color: #e2e8f0; }
.nl-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.nl-tab {
  appearance: none; cursor: pointer; padding: 7px 13px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700;
  background: #1e293b; color: #e2e8f0; border: 1px solid #475569;
}
.nl-tab.on { background: #0369a1; color: #ffffff; border-color: #7dd3fc; }
.nl-cta {
  appearance: none; cursor: pointer; border: 0; border-radius: 12px; padding: 12px 22px;
  background: #c2410c; color: #ffffff; font: inherit; font-size: 15px; font-weight: 800; box-shadow: 0 4px 0 #7c2d12;
}
.nl-cta:hover { background: #9a3412; }
.nl-cta-sm { padding: 10px 18px; font-size: 14px; }
.nl-sec {
  appearance: none; cursor: pointer; border-radius: 10px; padding: 9px 14px;
  background: #1e293b; color: #f8fafc; border: 1px solid #475569; font: inherit; font-size: 13px; font-weight: 700;
}
.nl-stats { display: flex; justify-content: center; gap: 22px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(148, 163, 184, 0.25); }
.nl-stats b { display: block; font-size: 20px; color: #fde047; }
.nl-stats span { font-size: 12px; color: #cbd5e1; }
.nl-bar-wrap { height: 7px; background: #1e293b; border-radius: 99px; overflow: hidden; margin-bottom: 14px; }

.nl-bar { height: 100%; width: 100%; background: #38bdf8; transition: width 0.25s linear; }
.nl-prompt { margin: 0 0 14px; font-family: var(--display); font-size: 25px; line-height: 1.2; color: #ffffff; }
.nl-form { display: flex; gap: 8px; }
.nl-input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 10px 14px; border-radius: 12px; border: 2px solid #475569; background: #ffffff; color: #0f172a; }
.nl-foot { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 12px; }
.nl-tip { font-size: 12px; color: #cbd5e1; }
.nl-fb { min-height: 24px; margin-top: 10px; font-size: 14px; font-weight: 700; color: #fde047; }
.nl-end-h { margin: 4px 0 8px; font-family: var(--display); font-size: 32px; color: #ffffff; }
.nl-log { list-style: none; margin: 12px 0; padding: 0; max-height: 150px; overflow-y: auto; text-align: left; }
.nl-log li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 6px; border-bottom: 1px solid rgba(148, 163, 184, 0.2); font-size: 13px; }
.nl-log b { color: #fde047; }
.nl-end-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
@media (min-width: 760px) { .rp-fs .nl-card { max-width: 680px; padding: 26px; } .rp-fs .nl-prompt { font-size: 30px; } }
@media (max-width: 640px) { .nl-stage { height: 530px; } .nl-title { font-size: 28px; } .nl-prompt { font-size: 21px; } }
