/* ============================================================================
   Medemj — original brand system (a Mongolian loved-classroom rival, not a clone)
   ----------------------------------------------------------------------------
   Identity: a polished *quiz *product* with its own look.
   - Display type: Unbounded (geometric, modern, Cyrillic) — the brand voice.
   - Body type: Nunito (friendly, curricular, Cryrillic-friendly).
   - Palette (an original "corporate-teal on warm paper" scheme):
       deep ink navy/green base, vermilion accent, amber + leaf green for answers.
   - Surfaces: warm paper admin screens; deep ink game screen.
   - Mechanics: chunky flat buttons with *hard offset shadows* (sticker feel),
     diamond logomark, big centered PIN, generous rounded corners.
   ========================================================================== */

:root {
  /* brand */
  --brand:      #0f8a6d;   /* teal-green — unique, not kahoot purple */
  --brand-ink:  #064a3a;
  --brand-deep: #06251d;   /* deep game background */
  --verm:       #e2483d;   /* vermilion accent (call-to-action) */
  --verm-ink:   #8f1f17;

  /* admin surfaces (warm paper) */
  --paper:      #f6f3ec;
  --card:       #fffdf8;
  --card-soft:  #f0ece2;
  --ink:        #1c2623;
  --ink-2:      #46524e;
  --muted:      #77827e;
  --line:       #e3ddd0;
  --line-strong:#cfc6b4;

  /* answers */
  --ans-a: #e2483d;
  --ans-b: #f2a41f;
  --ans-c: #1f8fce;
  --ans-d: #37a54e;

  --ok:  #1f9d55;
  --err: #c62828;
  --warn:#b26a00;

  --radius: 14px;
  --shdw: 0 5px 0 rgba(6, 37, 29, 0.16);   /* hard offset shadow (sticker) */
  --shdw-sm: 0 3px 0 rgba(6, 37, 29, 0.12);
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
}

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

html, body { height: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo, .btn, .section-title, .form-label, .pin-label, .q-num, .medal, .plan-name, .demo-label {
  font-family: var(--display);
}

a { color: var(--brand); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------- layout */
.wrap { max-width: 820px; margin: 0 auto; padding: 20px 18px 70px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

.topbar { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 22px; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo .mark {
  width: 38px; height: 38px; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.logo .mark svg { width: 100%; height: 100%; }
.logo .accent { color: var(--brand); }

/* ------------------------------------------------------------------- cards */
.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 18px;
  box-shadow: var(--shdw-sm);
  animation: rise 0.35s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------- hero */
.hero {
  background: var(--brand-deep);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shdw);
  padding: 40px 34px 34px;
  margin-bottom: 22px;
  position: relative; overflow: hidden;
}
.hero::after { /* subtle depth texture */
  content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.10), transparent 70%);
}
.hero .eyebrow {
  display: inline-block; background: rgba(255,255,255,0.14);
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 6px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -0.5px; }
.hero h1 .accent { color: #ffd166; }
.hero p { color: rgba(255,255,255,0.85); font-size: 16px; margin-top: 14px; max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.4px; color: #fff;
}

/* ------------------------------------------------------------------- buttons */
.btn {
  font-family: var(--display);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px; cursor: pointer;
  padding: 14px 22px; font-size: 15px; font-weight: 700; letter-spacing: 0.2px;
  box-shadow: var(--shdw-sm); color: #fff; background: var(--brand-ink);
  transition: transform 0.06s ease, box-shadow 0.06s ease, filter 0.1s;
  user-select: none; text-decoration: none;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 rgba(6,37,29,0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: var(--shdw-sm); }

.btn-primary { background: var(--brand); }
.btn-verm { background: var(--verm); color: #fff; }
.btn-light { background: #fff; color: var(--brand); border: 2px solid var(--line-strong); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: none; border: 2px solid var(--brand); }
.btn-danger { background: #fff; color: var(--err); border: 2px solid var(--err); box-shadow: none; }
.btn-dark { background: rgba(255,255,255,0.12); color: #fff; border: 2px solid rgba(255,255,255,0.25); box-shadow: none; }

.btn-lg { padding: 17px 28px; font-size: 17px; }
.btn-block { width: 100%; }

/* gated (locked) buttons — the psychology upsell */
.btn.gated {
  opacity: 0.45; cursor: not-allowed;
  filter: grayscale(0.6);
  border: 2px dashed var(--line-strong); color: var(--muted);
  box-shadow: none; position: relative;
}
.btn.gated:hover { filter: grayscale(0.6); }
.lock-tag {
  position: absolute; top: -12px; right: 10px;
  background: var(--brand-ink); color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 99px; letter-spacing: 0.5px; text-transform: uppercase;
}

/* ------------------------------------------------------------------- inputs */
.input, textarea.input, select.input {
  width: 100%; padding: 14px 15px;
  border: 2px solid var(--line-strong); border-radius: 10px;
  background: #fff; color: var(--ink);
  font-family: var(--body); font-size: 16px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,138,109,0.18); }
.input::placeholder { color: #b7b09f; }
textarea.input { resize: vertical; min-height: 64px; }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted); margin: 0 0 7px 2px;
}

/* big PIN input (homepage join) */
.pin-input {
  text-align: center; font-family: var(--display) !important;
  font-size: 40px !important; font-weight: 800; letter-spacing: 22px !important;
  padding-left: 20px !important; text-transform: uppercase;
}

/* ------------------------------------------------------------------- sections */
.section-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.section-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.form-hint { color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.45; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: var(--ink); margin-top: 4px; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--brand); cursor: pointer; }
.recover-note { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--brand-ink); background: var(--card-soft); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; animation: rise 0.2s ease both; }
.pin-chosen {
  text-align: center; font-family: var(--display); font-weight: 800; font-size: 22px;
  color: var(--brand-ink); background: var(--card-soft); border: 2px dashed var(--line-strong);
  border-radius: 10px; padding: 10px; margin: 4px 0 14px; letter-spacing: 2px;
}
.hide { display: none !important; }
.muted { opacity: 0.55; }

/* ------------------------------------------------------------------ PIN lobby */
.pin-label { display: block; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.pin-box { display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; }
.pin-digit {
  width: 66px; height: 84px; background: var(--card);
  border: 3px solid var(--line-strong); border-radius: 12px;
  box-shadow: var(--shdw-sm);
  font-weight: 800; font-size: 46px; color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  animation: pop 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.player-count { color: var(--ink-2); font-size: 15px; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.dot-breathe { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: 0.3; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.2); } }

.demo-label {
  display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--warn);
  background: rgba(242,164,31,0.12); padding: 4px 10px; border-radius: 6px;
}

/* ------------------------------------------------------------------ boards */
.board, .live-list { display: flex; flex-direction: column; gap: 8px; }
.live-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; background: var(--card-soft);
  border: 2px solid var(--line); border-radius: 10px;
}
.live-row .score { font-weight: 800; font-size: 18px; color: var(--brand); }

/* podium */
.podium { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 20px; }

/* rank 1 — ceremony banner */
.podium-winner {
  text-align: center; background: #fff; color: var(--ink);
  border: 3px solid #ffd700; border-radius: 18px;
  padding: 24px 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  animation: rise 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.pw-flag {
  display: inline-block; background: #ffd700; color: #5b4400;
  font-family: var(--display); font-weight: 800; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; border-radius: 999px;
  padding: 5px 14px; margin-bottom: 10px;
}
.pw-rank {
  width: 88px; height: 88px; margin: 4px auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 44px; color: #6a4d00;
  background: radial-gradient(circle at 35% 28%, #ffe9a0, #ffd700 60%, #e0b400);
  border: 4px solid #fff; box-shadow: 0 6px 0 rgba(0,0,0,0.18);
}
.pw-name { font-family: var(--display); font-weight: 800; font-size: 22px; word-break: break-word; }
.pw-pts { color: var(--muted); font-weight: 700; margin-top: 2px; }

/* ranks 2-3 — podium cards */
.podium-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.podium-card {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: #fff; color: var(--ink); border-radius: 14px; padding: 18px 12px;
  border-top: 6px solid #c6ced8; box-shadow: 0 8px 20px rgba(0,0,0,0.22);
  animation: rise 0.4s ease 0.08s both; word-break: break-word;
}
.podium-card.place-2 { border-top-color: #c6ced8; }
.podium-card.place-3 { border-top-color: #e08a52; }
.pc-rank {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 21px; color: #fff;
  margin-bottom: 4px;
}
.place-2 .pc-rank { background: #9aa7b6; }
.place-3 .pc-rank { background: #d27945; }
.pc-name { font-family: var(--display); font-weight: 700; font-size: 15px; text-align: center; }
.pc-pts { font-weight: 800; font-size: 17px; color: var(--brand); }

/* ranks 4+ — compact ranked list */
.podium-list { display: flex; flex-direction: column; gap: 6px; }
.podium-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.93); color: var(--ink);
  border-radius: 10px; padding: 10px 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  animation: rise 0.35s ease both; word-break: break-word;
}
.podium-item:nth-child(n+4) { animation-delay: 0.14s; }
.pi-rank {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-soft); color: var(--muted);
  font-family: var(--display); font-weight: 800; font-size: 13px;
}
.pi-name { font-weight: 700; flex: 1; }
.pi-pts { font-family: var(--display); font-weight: 800; color: var(--brand); }

/* solo winner on a real game: center the banner */
.podium-solo { justify-content: center; }
@media (max-width: 520px) {
  .podium-duo { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ quiz builder */
.q-row {
  background: var(--card-soft); border: 2px solid var(--line);
  border-radius: 12px; padding: 18px; margin-bottom: 14px; animation: rise 0.25s ease both;
}
.q-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.q-num {
  font-weight: 800; font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  background: var(--brand); color: #fff; border-radius: 6px; padding: 5px 10px;
}
.q-del { background: none; border: none; color: var(--muted); font-size: 16px; cursor: pointer; padding: 2px 6px; }
.q-del:hover { color: var(--err); }
.choices-grid { display: grid; gap: 8px; margin-top: 10px; }
.choice-row { display: flex; align-items: center; gap: 10px; }
.choice-row .letter {
  width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 15px; color: #fff; flex-shrink: 0;
}
.choice-row[data-correct="1"] { outline: 3px solid var(--ok); outline-offset: 2px; border-radius: 8px; }
.choice-row[data-correct="1"] input { border-color: var(--ok); }
.letter-a { background: var(--ans-a); }
.letter-b { background: var(--ans-b); }
.letter-c { background: var(--ans-c); }
.letter-d { background: var(--ans-d); }
.time-pick { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.time-pick label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.time-pick select.input { width: auto; padding: 8px 12px; }

/* ================================================================== GAME SURFACES (deep ink) */
.game-body { background: var(--brand-deep); color: #fff; }
.game-body .wrap { max-width: 760px; }
.game-body .card { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.16); box-shadow: none; }
.game-body .section-title { color: #fff; }
.game-body .small { color: rgba(255,255,255,0.65); }
.game-body .logo { color: #fff; }
.game-body .logo .accent { color: #ffd166; }
.game-body .live-row { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); color: #fff; }
.game-body .live-row .score { color: #ffd166; }
.game-body .podium-row,
.game-body .podium-winner,
.game-body .podium-card,
.game-body .podium-item { animation-delay: 0s; }

/* timer bar */
#timer-bar-wrap { height: 12px; background: rgba(255,255,255,0.18); border-radius: 99px; overflow: hidden; margin: 14px 0 22px; }
#timer-bar { height: 100%; width: 100%; background: #ffd166; border-radius: 99px; }

/* player question */
#view-question { text-align: center; }
#q-count, #q-pts { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.6); }
#q-prompt {
  font-family: var(--display);
  font-size: clamp(22px, 5vw, 30px); font-weight: 800; line-height: 1.25;
  min-height: 2.2em; margin: 0 0 20px;
}
/* question image on live player/host screens */
.q-qimg { margin: 0 0 14px; }
.q-img-live {
  display: block; max-width: 100%; max-height: 36vh; width: auto; height: auto;
  margin: 0 auto; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.host-screen .q-img-live, #screen-live .q-img-live { max-height: 30vh; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.answers .btn {
  min-height: 90px; font-size: 16px; font-weight: 800; color: #fff;
  border-radius: 12px; box-shadow: 0 6px 0 rgba(0,0,0,0.25);
  justify-content: flex-start; text-align: left; padding: 12px 16px;
}
.answers .btn .letter {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 16px; color: #fff;
  margin-right: 12px; flex-shrink: 0;
}
@media (max-width: 480px) { .answers { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- paywall / upsell */
.pay-box { text-align: center; background: rgba(255,255,255,0.07); border: 2px solid rgba(255,255,255,0.16); border-radius: 12px; padding: 22px; margin-top: 12px; }
.pay-line { margin: 6px 0; color: rgba(255,255,255,0.85); font-size: 15px; }
.pay-line b { color: #fff; }
.pay-ref { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: 4px; color: #ffd166; margin: 10px 0; }
.copy-btn { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 13px; text-decoration: underline; }
.copy-btn:hover { color: #fff; }
.pay-note { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 12px; }

/* teachers' plan comparison (the psychology table) */
.plan-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.plan-table th, .plan-table td { padding: 12px 10px; text-align: left; border-bottom: 2px solid var(--line); font-size: 15px; vertical-align: top; }
.plan-table th { font-family: var(--display); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.plan-table td.plan-col { font-family: var(--display); font-weight: 800; }
.plan-table .yes { color: var(--ok); font-weight: 800; }
.plan-table .no { color: var(--muted); }
.plan-col-free { color: var(--brand); }
.plan-col-pro { color: var(--verm); }

/* ------------------------------------------------------------------ CTA band */
.cta-band {
  margin-top: 26px; background: linear-gradient(120deg, var(--brand-ink), #083a2e);
  color: #fff; border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: var(--shdw);
}
.cta-band h2 { font-family: var(--display); font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 18px; }

/* ------------------------------------------------------------------ demo end CTA */
.demo-signup { text-align: center; }
.demo-signup .small-note { color: rgba(255,255,255,0.6); font-size: 12px; margin-top: 10px; }
.game-body .demo-signup input { text-align: left; }
.game-body .demo-signup .input { background: #fff; border-color: #fff; color: var(--ink); }

/* ------------------------------------------------------------------ toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--brand-ink); color: #fff; padding: 13px 24px; border-radius: 10px;
  box-shadow: var(--shdw); font-weight: 700; font-size: 15px;
  opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 60;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ------------------------------------------------------------------ misc */
.center { text-align: center; }
.hidden { display: none !important; }
.mt { margin-top: 14px; }
.mt-lg { margin-top: 24px; }
.small { font-size: 13px; color: var(--muted); }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25); border-top-color: #fff;
  animation: spin 0.8s linear infinite; margin: 14px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
.confetti i { position: absolute; top: -14px; width: 10px; height: 14px; border-radius: 2px; animation: fall 3s linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: 0.5; } }

.screen { display: none; }
.screen.active { display: block; animation: rise 0.3s ease both; }

.quiz-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; background: var(--card-soft);
  border: 2px solid var(--line); border-radius: 10px; margin-bottom: 8px;
}
.quiz-item .qmeta { font-size: 13px; color: var(--muted); }
.quiz-item .qtitle { font-weight: 800; font-size: 15px; }

.saved-empty { color: var(--muted); font-size: 14px; padding: 6px 0; }

/* ---- question image in the builder ---- */
.q-img {
  position: relative; margin: 8px 0 4px; border-radius: 10px; overflow: hidden;
  background: var(--card-soft); border: 2px dashed var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  min-height: 90px; max-height: 190px;
}
.q-img img { max-width: 100%; max-height: 190px; display: block; }
.q-img .q-img-placeholder { color: var(--muted); font-size: 13px; padding: 22px 12px; text-align: center; }
.q-img-actions {
  display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px;
}
.q-img-actions .btn { font-size: 13px; padding: 7px 12px; }
.q-img .q-img-remove {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  background: rgba(0,0,0,0.6); color: #fff; border: 0; border-radius: 999px;
  width: 28px; height: 28px; cursor: pointer; font-size: 14px; line-height: 1;
}

/* public quiz badge in dashboard list */
.badge-public {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  background: var(--brand); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 800; vertical-align: 2px;
}
.quiz-item .quiz-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.quiz-item .quiz-actions .btn { font-size: 13px; padding: 8px 14px; }
.quiz-item .btn-danger-ghost { background: none; border: 2px solid var(--verm); color: var(--verm); }

/* preview modal */
#preview-postbody { text-align: left; margin-top: 10px; }
.prev-q {
  color: var(--paper); font-family: var(--display); font-weight: 800; font-size: 22px;
  line-height: 1.4; margin-bottom: 14px; word-break: break-word;
}
.prev-img { max-width: 100%; max-height: 260px; border-radius: 12px; margin: 0 auto 14px; object-fit: contain; }
.prev-answers { display: grid; gap: 10px; }
.prev-answers .btn { justify-content: flex-start; text-align: left; width: 100%; min-height: 54px; color: #fff; font-size: 15px; font-weight: 800; padding: 10px 16px; }
.prev-answers .btn.correct { outline: 3px solid #37a54e; }
.prev-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* community / public section in dashboard */
.pub-empty { color: var(--muted); font-size: 14px; padding: 6px 0; }
.pub-source { font-size: 12px; color: var(--muted); }

@media (max-width: 520px) {
  .wrap { padding: 14px 12px 50px; }
  .pin-digit { width: 54px; height: 70px; font-size: 38px; }
  .hero { padding: 28px 22px; }
}
