/* Bilcan: deep indigo stage with colourful light, tactile game buttons.
   Big type on the projector, big tap targets on phones. */
:root {
  --bg: #100e3a;
  --bg-deep: #090826;
  --surface: #ffffff;
  --surface-2: #f2f3fb;
  --surface-3: #e7e9f6;
  --line: #dde1f0;
  --ink: #15183a;
  --ink-2: #5d6488;
  --on-dark: #ffffff;
  --on-dark-2: #c5c9f0;
  --glass: rgba(255, 255, 255, 0.075);
  --glass-2: rgba(255, 255, 255, 0.13);
  --glass-line: rgba(255, 255, 255, 0.14);
  --violet: #7c3aed;
  --accent: #ff6a3d;
  --sun: #ffc93c;
  --sun-grad: linear-gradient(180deg, #ffe07a 0%, #ffc23a 55%, #ffad1f 100%);
  --sun-edge: #c88200;
  --ok: #16a34a;
  --bad: #e11d48;
  --warn: #b45309;
  /* answer colours: all keep white text readable at large sizes */
  --c0: #e5482b;
  --c1: #0d9488;
  --c2: #7c3aed;
  --c3: #d97706;
  --c4: #2563eb;
  --c5: #db2777;
  /* word cloud colours on the dark stage */
  --w0: #ffa48a;
  --w1: #5eead4;
  --w2: #c4b5fd;
  --w3: #ffd65a;
  --w4: #93c5fd;
  --w5: #f9a8d4;
  --display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --radius: 18px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 24px 48px -18px rgba(4, 4, 30, 0.6), 0 3px 10px rgba(4, 4, 30, 0.18);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  color: var(--on-dark);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
/* coloured light + a faint dot grid, fixed behind everything */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background:
    radial-gradient(58vmax 46vmax at -6% -8%, rgba(124, 58, 237, 0.55), transparent 62%),
    radial-gradient(48vmax 40vmax at 106% -4%, rgba(37, 99, 235, 0.42), transparent 62%),
    radial-gradient(52vmax 44vmax at 104% 108%, rgba(219, 39, 119, 0.34), transparent 62%),
    radial-gradient(46vmax 38vmax at -6% 106%, rgba(13, 148, 136, 0.32), transparent 62%);
}
body::after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
#app { position: relative; z-index: 1; }

h1, h2, h3 { line-height: 1.15; font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
a { color: inherit; }
[hidden] { display: none !important; }

.spacer { flex: 1; }
.muted { opacity: 0.72; }
.small { font-size: 0.88rem; }

.ic { width: 1.2em; height: 1.2em; flex: none; display: block; }

/* ---------- buttons & inputs ---------- */

.btn {
  --b: var(--surface);
  --bt: var(--ink);
  --be: #c5cbe4;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.68em 1.15em;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  line-height: 1.1;
  color: var(--bt);
  background: var(--b);
  box-shadow: 0 4px 0 var(--be), 0 10px 22px -8px rgba(4, 4, 30, 0.5);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
}
.btn:hover { filter: brightness(1.05) saturate(1.05); }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--be), 0 4px 10px -6px rgba(4, 4, 30, 0.5); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.4); }
.btn.primary { --b: var(--sun-grad); --bt: #3b2400; --be: var(--sun-edge); }
.btn.danger { --b: linear-gradient(180deg, #ff5f7a, #e11d48); --bt: #fff; --be: #9f1239; }
.btn.ghost {
  --b: var(--glass-2);
  --bt: var(--on-dark);
  border: 1px solid var(--glass-line);
  box-shadow: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn.ghost:hover { --b: rgba(255, 255, 255, 0.2); filter: none; }
.btn.ghost:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.card .btn:not(.primary):not(.danger),
.modal .btn:not(.primary):not(.danger) { --b: var(--surface-2); --bt: var(--ink); --be: #d3d8ec; border: 0; box-shadow: 0 3px 0 var(--be); -webkit-backdrop-filter: none; backdrop-filter: none; }
.card .btn.ghost, .modal .btn.ghost { --be: transparent; box-shadow: none; }
.card .btn.ghost:hover, .modal .btn.ghost:hover { --b: var(--surface-3); }
.btn.big { font-size: 1.2rem; padding: 0.8em 1.5em; border-radius: 16px; }
.btn.big.primary { box-shadow: 0 5px 0 var(--be), 0 14px 30px -10px rgba(255, 176, 32, 0.6); }
.btn.small { font-size: 0.86rem; padding: 0.5em 0.85em; border-radius: 11px; }
.btn.block { width: 100%; }
.btn .ic { width: 1.15em; height: 1.15em; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.icon-btn .ic { width: 20px; height: 20px; }
.icon-btn:hover { background: rgba(120, 130, 180, 0.16); }
.icon-btn:disabled { opacity: 0.28; cursor: default; background: none; }
.icon-btn.danger:hover { background: rgba(225, 29, 72, 0.12); color: var(--bad); }
.card .icon-btn { color: var(--ink-2); }
.card .icon-btn:hover:not(:disabled) { color: var(--ink); }

/* round glass buttons for the projector bars */
.glass-btn {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  color: var(--on-dark);
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.15s;
}
.glass-btn:hover { background: var(--glass-2); }
.glass-btn .ic { width: 22px; height: 22px; }

input, textarea, select { font: inherit; }

.input, .pin-in, textarea, .opt-in {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 0.62em 0.85em;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input::placeholder, textarea::placeholder, .opt-in::placeholder { color: #9aa1bf; font-weight: 700; }
.input:focus, .pin-in:focus, textarea:focus, .opt-in:focus, select:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.16);
  background: #fff;
}
.input.big { font-size: 1.3rem; padding: 0.72em 0.85em; text-align: center; font-family: var(--display); font-weight: 600; }

select {
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.5em 2.2em 0.5em 0.95em;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6488' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.8em center / 14px;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
}
select:hover { background-color: var(--surface-3); }

.card {
  background: var(--surface);
  color: var(--ink);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* ---------- logo & generic screens ---------- */

.logo { display: inline-flex; align-items: center; gap: 0.28em; font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; color: #fff; white-space: nowrap; line-height: 1; }
.logo-mark { width: 1.45em; height: 1.45em; flex: none; margin-top: -0.12em; filter: drop-shadow(0 3px 8px rgba(255, 110, 60, 0.35)); }
.logo.big { font-size: clamp(3.4rem, 14vw, 5.6rem); }
.logo-can { background: linear-gradient(180deg, #ffb35c, #ff5f4a); -webkit-background-clip: text; background-clip: text; color: transparent; }

.screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 16px; }
.screen.center { align-items: center; justify-content: center; text-align: center; gap: 16px; }
.msg-icon {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 3.2rem;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--glass-line);
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.45);
}
.msg-icon .ic { width: 46px; height: 46px; }
.msg-text { font-family: var(--display); font-size: 1.45rem; font-weight: 600; margin: 0; max-width: 32ch; }
.msg .btn { margin-top: 6px; }
.msg-sub { margin: 0; max-width: 46ch; opacity: 0.82; line-height: 1.5; }
/* left open: "Uygulamaya devam ediyor musunuz?" (host.js · askIdle) */
.idle-box .modal-box h2 { font-size: 1.6rem; }
.idle-left { font-variant-numeric: tabular-nums; color: var(--ink); }
.idle-box .modal-actions .btn { min-width: 9.5em; justify-content: center; }

.spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--sun);
  animation: spin 0.9s linear infinite;
}

/* orb: an icon in a glowing circle (waiting screens) */
.orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 4rem;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05) 70%);
  border: 1px solid var(--glass-line);
  box-shadow: 0 0 70px rgba(124, 58, 237, 0.5), inset 0 -8px 24px rgba(0, 0, 0, 0.15);
}
.orb .ic { width: 52px; height: 52px; }
.orb.sun { color: var(--sun); }

/* home */
.home { position: relative; overflow: hidden; gap: 18px; }
.home .tagline { margin: -4px 0 10px; color: var(--on-dark-2); font-size: 1.2rem; font-weight: 700; }
.pin-in {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.22em;
  padding: 0.42em;
  background: var(--surface-2);
  border-color: transparent;
}
.pin-in::placeholder { letter-spacing: 0.02em; color: #a3a9c6; font-weight: 500; font-size: 0.62em; }

/* join card: dark glass inside a violet → blue → pink → gold frame */
.pin-card {
  position: relative;
  width: min(400px, 100%);
  display: grid;
  gap: 12px;
  padding: 22px 20px 16px;
  border: 2px solid transparent;
  border-radius: 30px;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(167, 139, 250, 0.35), transparent 60%) padding-box,
    linear-gradient(165deg, rgba(42, 34, 118, 0.94), rgba(18, 15, 62, 0.96)) padding-box,
    linear-gradient(135deg, #a78bfa 0%, #60a5fa 38%, #f472b6 70%, #ffc93c 100%) border-box;
  box-shadow: 0 0 0 6px rgba(167, 139, 250, 0.1), 0 0 70px -12px rgba(124, 58, 237, 0.65), 0 30px 60px -24px rgba(0, 0, 0, 0.8);
  text-align: center;
}
.pc-title { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: #fff; }
.pc-title .ic { width: 18px; height: 18px; color: var(--sun); }
.pin-card .pin-in {
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: #fff;
  caret-color: var(--sun);
  text-indent: 0.22em;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35);
}
.pin-card .pin-in::placeholder { color: rgba(255, 255, 255, 0.4); }
.pin-card .pin-in:focus { background: rgba(255, 255, 255, 0.1); border-color: var(--sun); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(255, 201, 60, 0.2); }
.pc-or { display: flex; align-items: center; gap: 12px; color: var(--on-dark-2); font-size: 0.85rem; font-weight: 800; }
.pc-or::before, .pc-or::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.16); }
.pin-card .btn.qr-btn { --b: rgba(255, 255, 255, 0.08); --bt: #fff; --be: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.2); }
.pin-card .btn.qr-btn:hover { --b: rgba(255, 255, 255, 0.14); filter: none; }
.pin-card .btn.qr-btn .ic { color: var(--sun); }
.pc-hint { margin: 2px 0 0; font-size: 0.82rem; font-weight: 700; color: var(--on-dark-2); }

/* end of a participant's game: who we are + join the next one */
.promo { width: 100%; max-width: 480px; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--glass-line); display: grid; justify-items: center; gap: 16px; text-align: center; }
.promo .logo { font-size: 2.6rem; }
.promo-text { margin: -4px 0 0; max-width: 34ch; color: var(--on-dark-2); font-weight: 700; line-height: 1.5; }
.promo-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.promo-feats li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: 0.82rem; font-weight: 800; color: #fff; }
.promo-feats .ic { width: 14px; height: 14px; color: var(--sun); }
.promo .pin-card { margin-top: 4px; }
.gone { padding-top: 40px; justify-content: flex-start; }
.gone .promo { margin-top: 10px; }
.teacher-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 6px;
  padding: 0.6em 1.1em;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  text-decoration: none;
  font-weight: 800;
  color: var(--on-dark-2);
  transition: background 0.15s, color 0.15s;
}
.teacher-link:hover { background: var(--glass-2); color: #fff; }

/* floating shapes behind the home screen */
.deco { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.deco i { position: absolute; display: block; border-radius: 28%; opacity: 0.9; animation: float 9s ease-in-out infinite; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.18), 0 14px 30px -10px rgba(0, 0, 0, 0.5); }
.deco i:nth-child(1) { width: 74px; height: 74px; left: 9%; top: 16%; background: var(--c0); transform: rotate(-14deg); }
.deco i:nth-child(2) { width: 54px; height: 54px; right: 12%; top: 12%; background: var(--c1); border-radius: 50%; animation-delay: -2s; }
.deco i:nth-child(3) { width: 62px; height: 62px; right: 8%; bottom: 18%; background: var(--c2); transform: rotate(18deg); animation-delay: -4s; }
.deco i:nth-child(4) { width: 44px; height: 44px; left: 13%; bottom: 14%; background: var(--c3); border-radius: 50%; animation-delay: -6s; }
.deco i:nth-child(5) { width: 30px; height: 30px; left: 26%; top: 8%; background: var(--c4); animation-delay: -3s; }
.deco i:nth-child(6) { width: 36px; height: 36px; right: 25%; bottom: 8%; background: var(--c5); border-radius: 50%; animation-delay: -5s; }

/* notices (ui.js · toast): a stack at the top, newest first; in the top layer where the browser can (popover) */
#toast {
  position: fixed;
  inset: auto;
  left: 50%;
  top: max(14px, env(safe-area-inset-top));
  transform: translateX(-50%);
  width: min(92vw, 520px);
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 100;
}
.toast {
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  background: rgba(14, 12, 52, 0.92);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: 23px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: toast-in 0.22s ease-out;
  transition: opacity 0.2s, transform 0.2s, margin-bottom 0.2s ease-out;
}
.toast .ic { width: 20px; height: 20px; flex: none; }
.toast.err { background: rgba(120, 12, 40, 0.95); border-color: rgba(255, 150, 170, 0.5); text-align: left; }
.toast.err .ic { color: #ffc2cf; }
.toast.out { opacity: 0; transform: translateY(-8px) scale(0.96); pointer-events: none; }
.toast.bump { animation: toast-bump 0.3s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(0.96); } }
@keyframes toast-bump { 40% { transform: scale(1.05); } }

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

dialog.modal {
  border: 0;
  padding: 0;
  border-radius: 26px;
  width: min(640px, 94vw);
  max-height: 90vh;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}
dialog.modal[open] { animation: pop-in 0.22s ease-out; }
dialog.modal::backdrop { background: rgba(6, 5, 28, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-box { padding: 26px; display: grid; gap: 10px; }
.modal-box h2 { margin: 0 0 4px; font-size: 1.45rem; }
.modal-box p { margin: 0; color: var(--ink-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.quick-in { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.92rem; font-weight: 500; resize: vertical; background: var(--surface-2); border-color: transparent; }

/* ---------- teacher panel & editor ---------- */

.page { max-width: 1120px; margin: 0 auto; padding: 18px 18px 110px; }
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 10px 12px 10px 16px;
}
.topbar h1 { margin: 0; font-size: 1.25rem; font-weight: 500; color: var(--on-dark-2); padding-left: 12px; border-left: 2px solid var(--glass-line); }
.topbar-logo { text-decoration: none; }
.topbar .logo { font-size: 1.5rem; }

.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px 12px 18px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(255, 201, 60, 0.22), rgba(255, 201, 60, 0.06));
  border: 1px solid rgba(255, 201, 60, 0.45);
}
.banner .ic { color: var(--sun); width: 22px; height: 22px; }

.section-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 4px 14px; }
.section-title h2 { margin: 0; font-size: 1.35rem; font-weight: 700; }
.section-title span { color: var(--on-dark-2); font-size: 0.95rem; }

/* account bar at the bottom of the panel */
.account { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; color: var(--on-dark-2); font-size: 0.92rem; }
.account > span { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; }
.account .ic { width: 16px; height: 16px; }

/* login */
.login { gap: 14px; }
.login-card { width: min(420px, 100%); display: grid; gap: 12px; text-align: left; }
.login-card h1 { margin: 0; font-size: 1.7rem; text-align: center; }
.login-card > p { margin: 0 0 4px; text-align: center; }
/* "open on phone" QR codes */
.qr-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 12px; }
.qr-card { margin: 0; display: grid; justify-items: center; gap: 10px; padding: 16px; border-radius: 20px; background: var(--surface-2); text-align: center; }
.qr-big { width: min(220px, 100%); aspect-ratio: 1; padding: 8px; border-radius: 16px; background: #fff; }
.qr-big svg { display: block; width: 100%; height: 100%; }
.qr-card figcaption { display: grid; gap: 2px; }
.qr-card b { font-family: var(--display); font-size: 1.15rem; }
.qr-card span { font-size: 0.88rem; color: var(--ink-2); }
.qr-card code { font-size: 0.85rem; color: var(--violet); font-weight: 700; }
.login-card > .login-msg { margin: 0; text-align: left; padding: 10px 14px; border-radius: 14px; background: #fff7e0; border: 1px solid #f5c451; color: #6b4300; font-size: 0.92rem; font-weight: 700; line-height: 1.4; }
.login-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.link-btn { border: 0; background: none; padding: 4px 2px; font: inherit; font-weight: 800; font-size: 0.92rem; color: var(--violet); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* install the app */
.install { display: grid; justify-items: center; gap: 8px; }
.install:empty { display: none; }
.ios-tip { display: flex; align-items: flex-start; gap: 8px; max-width: 360px; margin: 0; padding: 10px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--on-dark-2); font-size: 0.9rem; text-align: left; }
.ios-tip .ic { width: 18px; height: 18px; margin-top: 1px; }
.ios-tip b { color: #fff; }

/* student: own past games (home screen) */
.my-games { width: min(400px, 100%); text-align: left; }
.my-games h2 { margin: 4px 4px 8px; font-size: 1.05rem; font-weight: 700; color: var(--on-dark-2); }
.my-games ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.my-games li { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); }
.mg-rank { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; background: var(--glass-2); }
.mg-rank.m1 { background: linear-gradient(180deg, #ffe17a, #f5a300); color: #6b3f00; }
.mg-rank.m2 { background: linear-gradient(180deg, #f4f6fb, #aab4cc); color: #3b425c; }
.mg-rank.m3 { background: linear-gradient(180deg, #ffd2ad, #d07a3a); color: #5a2a07; }
.mg-title { flex: 1; min-width: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-title small { display: block; font-weight: 700; color: var(--on-dark-2); }
.my-games b { font-family: var(--display); font-weight: 700; }

/* teacher: game history */
.game-list { display: grid; gap: 12px; }
.game-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 16px 20px; }
.gr-date { display: grid; justify-items: center; min-width: 68px; padding: 8px 10px; border-radius: 16px; background: var(--surface-2); }
.gr-date b { font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.gr-date span { font-size: 0.85rem; color: var(--ink-2); }
.gr-main { min-width: 0; display: grid; gap: 6px; }
.gr-main h3 { margin: 0; font-size: 1.2rem; overflow-wrap: anywhere; }
.gr-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--ink-2); font-size: 0.9rem; }
.gr-meta span { display: inline-flex; align-items: center; gap: 5px; }
.gr-meta .ic { width: 15px; height: 15px; }
.gr-top { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gr-top li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--surface-2); font-size: 0.9rem; }
.gr-top li.r1 { background: #fff1c2; }
.gr-top b { font-family: var(--display); font-weight: 700; color: var(--ink-2); }
.gr-av { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.gr-actions { display: flex; align-items: center; gap: 6px; }
.empty-state { display: grid; justify-items: center; gap: 10px; padding: 40px 20px; text-align: center; }
.empty-state h2 { margin: 6px 0 0; }
.empty-state p { margin: 0; max-width: 44ch; color: var(--on-dark-2); }

.quiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.quiz-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: transform 0.18s, box-shadow 0.18s; }
.quiz-card:hover { transform: translateY(-3px); }
.qc-cover {
  position: relative;
  padding: 18px 20px 16px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--ca), var(--cb));
  overflow: hidden;
}
.qc-cover::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  right: -40px;
  top: -60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.qc-cover::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  right: 50px;
  top: -50px;
  border-radius: 30%;
  transform: rotate(20deg);
  background: rgba(255, 255, 255, 0.1);
}
.cover-0 { --ca: #8b5cf6; --cb: #4f46e5; }
.cover-1 { --ca: #fb7a4a; --cb: #e11d48; }
.cover-2 { --ca: #14b8a6; --cb: #2563eb; }
.cover-3 { --ca: #f59e0b; --cb: #ea580c; }
.cover-4 { --ca: #ec4899; --cb: #8b5cf6; }
.cover-5 { --ca: #22c55e; --cb: #0d9488; }
.qc-title { position: relative; z-index: 1; margin: 0; font-size: 1.3rem; font-weight: 600; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); overflow-wrap: anywhere; }
.qc-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.qc-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font-size: 0.84rem; font-weight: 800; }
.qc-chip .ic { width: 15px; height: 15px; }
.qc-body { padding: 14px 16px 16px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.qc-meta { font-size: 0.88rem; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.qc-meta > .ic { width: 15px; height: 15px; }
.qc-meta .icon-btn { width: 34px; height: 34px; margin-left: -2px; }
.qc-meta .icon-btn .ic { width: 18px; height: 18px; }
.qc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; }
.qc-actions .btn { flex: 1 1 auto; min-width: 0; padding-left: 0.7em; padding-right: 0.7em; gap: 0.4em; } /* Başlat, Ödev ver, Düzenle in one row */

.new-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 220px;
  border-radius: 24px;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: var(--on-dark-2);
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.new-card:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--sun); color: #fff; }
.new-card .plus { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--sun-grad); color: #3b2400; box-shadow: 0 4px 0 var(--sun-edge); }
.new-card .plus .ic { width: 28px; height: 28px; }

.empty { text-align: center; padding: 48px 16px; opacity: 0.8; }

.help { margin-top: 28px; padding: 22px 24px; }
.help h2 { margin: 0 0 14px; font-size: 1.3rem; }
.steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--surface-2); font-weight: 600; line-height: 1.4; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-weight: 600; color: #fff; background: var(--c); }
.help p { margin: 0; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); }

.title-in {
  flex: 1;
  min-width: 180px;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0.42em 0.75em;
  border-radius: 14px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.title-in:hover { background: rgba(255, 255, 255, 0.12); }
.title-in:focus { outline: none; border-color: var(--sun); background: rgba(255, 255, 255, 0.12); }
.save-status { display: inline-flex; align-items: center; gap: 6px; padding: 0.45em 0.9em; border-radius: 999px; background: var(--glass); color: var(--on-dark-2); font-size: 0.9rem; font-weight: 800; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.save-status .ic { width: 16px; height: 16px; stroke-width: 3; }
.save-status.ok { background: rgba(34, 197, 94, 0.2); color: #86efac; animation: flash 0.6s ease-out; }
.save-status.off { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.mini-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: currentColor; animation: spin 0.8s linear infinite; }

.q-list { display: grid; gap: 16px; }
.q-card { display: grid; gap: 12px; position: relative; padding: 20px 22px; }
.q-card::before { content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; width: 5px; border-radius: 0 6px 6px 0; background: var(--tc, var(--violet)); }
.q-card.t-quiz { --tc: var(--c2); }
.q-card.t-poll { --tc: var(--c4); }
.q-card.t-rating { --tc: var(--c3); }
.q-card.t-open { --tc: var(--c1); }
.q-card.has-err { box-shadow: var(--shadow-card), 0 0 0 3px rgba(245, 158, 11, 0.75); }
.q-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  background: var(--tc, var(--violet));
  box-shadow: 0 3px 0 color-mix(in srgb, var(--tc, var(--violet)) 70%, black);
}
.q-text-wrap { position: relative; }
.q-text-wrap .q-text-in { width: 100%; padding-bottom: 1.6em; }
.q-count { position: absolute; right: 30px; bottom: 9px; font-size: 0.78rem; font-weight: 800; color: #9aa1bf; pointer-events: none; }
.q-count.near { color: var(--warn); }
.q-text-in { font-family: var(--display); font-size: 1.2rem; font-weight: 600; line-height: 1.35; resize: vertical; min-height: 3.6em; field-sizing: content; background: var(--surface-2); border-color: transparent; }
.opts { display: grid; gap: 8px; justify-items: start; }
.opt-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.opt-row .letter, .tile .letter, .chosen .letter {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  color: #fff;
  background: var(--c);
}
.opt-row .letter { box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 70%, black); }
.opt-in { flex: 1; background: var(--surface-2); border-color: transparent; }
.ok-btn {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #fff;
  color: #b3b9d1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ok-btn .ic { width: 22px; height: 22px; stroke-width: 3; }
.ok-btn:hover { border-color: #86efac; color: var(--ok); }
.ok-btn.on { background: linear-gradient(180deg, #34d399, #16a34a); border-color: transparent; color: #fff; box-shadow: 0 3px 0 #11803a; }
.img-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.q-thumb { height: 76px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.card .btn.dashed:not(.primary):not(.danger) { --b: transparent; --bt: var(--ink-2); box-shadow: none; border: 2px dashed var(--line); }
.card .btn.dashed:not(.primary):not(.danger):hover { border-color: var(--violet); --bt: var(--violet); filter: none; }
.q-err { display: flex; align-items: center; gap: 6px; color: var(--warn); font-weight: 800; font-size: 0.92rem; }
.q-err:empty { display: none; }
.inline { display: inline-flex; align-items: center; gap: 8px; }
/* "add a question" box after the last question */
.add-card {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 18px 20px;
  border-radius: 24px;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}
.add-title { display: flex; align-items: center; gap: 14px; }
.add-title .plus { width: 48px; height: 48px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--sun-grad); color: #3b2400; box-shadow: 0 4px 0 var(--sun-edge); }
.add-title .plus .ic { width: 26px; height: 26px; }
.add-title b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.add-title span { color: var(--on-dark-2); font-size: 0.92rem; }
.add-types { display: flex; flex-wrap: wrap; gap: 8px; }
.add-more { display: flex; flex-wrap: wrap; gap: 8px; }
.add-txt { display: grid; text-align: left; line-height: 1.15; }
.add-txt small { font-size: 0.76rem; font-weight: 700; color: var(--on-dark-2); }

/* editor: kinds of questions on the left (sticky), the questions on the right */
.ed-grid { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 20px; align-items: start; }
.ed-side { position: sticky; top: 14px; margin-top: 0; max-height: calc(100vh - 28px); overflow-y: auto; justify-items: stretch; gap: 12px; padding: 16px 14px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, 0.05); scrollbar-width: thin; }
.ed-side .add-title { gap: 12px; }
.ed-side .add-title .plus { width: 40px; height: 40px; border-radius: 13px; }
.ed-side .add-title .plus .ic { width: 22px; height: 22px; }
.ed-side .add-title b { font-size: 1.15rem; }
.ed-side .add-title span { font-size: 0.82rem; }
.ed-side .add-types { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
.ed-side .add-btn { width: 100%; gap: 10px; padding: 7px 10px 7px 7px; }
.ed-side .add-btn .dot { width: 32px; height: 32px; flex: none; }
.add-sep { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-2); }
.add-sep::after { content: ''; flex: 1; height: 1px; background: var(--glass-line); }
.ed-side .add-more { flex-direction: column; gap: 6px; }
.ed-side .add-more .btn { width: 100%; justify-content: flex-start; padding: 0.6em 0.85em; font-size: 0.92rem; }
.q-empty { display: grid; justify-items: center; gap: 8px; padding: 46px 24px; border-radius: 24px; text-align: center; }
.q-empty-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--sun-grad); color: #3b2400; box-shadow: 0 4px 0 var(--sun-edge); margin-bottom: 4px; }
.q-empty-ic .ic { width: 28px; height: 28px; }
.q-empty b { font-family: var(--display); font-size: 1.45rem; font-weight: 700; }
.q-empty p { margin: 0 0 8px; max-width: 46ch; color: var(--on-dark-2); }
.q-empty-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@media (max-width: 900px) {
  .ed-grid { grid-template-columns: minmax(0, 1fr); }
  .ed-side { position: static; order: 2; max-height: none; overflow: visible; }
  .ed-side .add-types { flex-direction: row; flex-wrap: wrap; }
  .ed-side .add-btn { width: auto; }
  .ed-side .add-txt small { display: none; }
  .ed-side .add-more { flex-direction: row; flex-wrap: wrap; }
  .ed-side .add-more .btn { width: auto; }
}
.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55em 0.95em 0.55em 0.6em;
  border-radius: 14px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.add-btn:hover { background: var(--glass-2); }
.add-btn:active { transform: translateY(1px); }
.add-btn .dot { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--c); }
.add-btn .dot .ic { width: 17px; height: 17px; }

/* answer colours, shared by editor, projector and phones */
.c0 { --c: var(--c0); }
.c1 { --c: var(--c1); }
.c2 { --c: var(--c2); }
.c3 { --c: var(--c3); }
.c4 { --c: var(--c4); }
.c5 { --c: var(--c5); }

/* ---------- projector (host) ---------- */

.host {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vw, 22px);
  padding: clamp(14px, 2vw, 30px);
}
.host-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.count { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 900; font-size: clamp(1rem, 1.5vw, 1.3rem); padding: 0.5em 1em; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); }
.count:empty { display: none; }
.host-bar .hint { margin-left: 4px; }

.lobby-head { display: flex; align-items: center; gap: 10px; }
.lobby-head .logo { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.join-panel {
  align-self: center;
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 2.4vw, 34px);
  padding: clamp(14px, 1.8vw, 24px);
  padding-left: clamp(20px, 3vw, 42px);
  width: min(1100px, 100%);
}
.join-info { flex: 1; display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); flex-wrap: wrap; }
.join-col { display: grid; gap: 6px; }
.join-label { font-size: clamp(0.9rem, 1.2vw, 1.15rem); font-weight: 800; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; }
.join-url { display: inline-flex; align-items: center; gap: 0.35em; font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.6rem); color: var(--violet); }
.join-url .ic { width: 0.9em; height: 0.9em; }
.join-sep { width: 2px; align-self: stretch; background: var(--line); border-radius: 2px; }
.pin {
  font-family: var(--display);
  font-size: clamp(3.4rem, 8.4vw, 7.4rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.qr {
  flex: none;
  border-radius: 18px;
  padding: 8px;
  background: #fff;
  border: 2px solid var(--line);
  width: clamp(140px, 15vw, 220px);
  aspect-ratio: 1;
  align-self: center;
}
.qr svg { display: block; width: 100%; height: 100%; }
.lobby-title { text-align: center; font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2.2rem); font-weight: 600; }
/* The lobby is exactly the screen's height: the join card and the bars keep their size, only the names
   scroll, so "Başlat" / "Dersi başlat" never drops below the fold. The join card follows the height too
   (a laptop at 125 % shows ~700 px), so the address and the PIN stay on one line. */
.host-lobby { height: 100vh; height: 100dvh; min-height: 0; gap: clamp(10px, 1.6vh, 20px); padding-block: clamp(12px, 2.4vh, 30px); }
.host-lobby > * { flex-shrink: 0; }
.host-lobby .player-cloud { flex: 1 1 auto; min-height: 0; }
.host-lobby .join-panel { padding-block: clamp(10px, 2vh, 24px); }
.host-lobby .join-info { row-gap: 10px; }
.host-lobby .join-url { font-size: clamp(1.3rem, min(2.6vw, 4.6vh), 2.6rem); }
.host-lobby .pin { font-size: clamp(2.8rem, min(8.4vw, 12vh), 7.4rem); }
.host-lobby .qr { width: clamp(120px, min(15vw, 25vh), 220px); }
.host-lobby .lobby-title { line-height: 1.15; }
.lobby-dur { align-self: center; justify-content: center; }
@media (max-height: 520px) { .host-lobby { height: auto; min-height: 100dvh; } }
.lobby-wait { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 1.3rem; color: var(--on-dark-2); margin: 10px 0; }
.lobby-wait .dots { display: inline-flex; gap: 6px; }
.lobby-wait .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); animation: blink 1.2s infinite; }
.lobby-wait .dots i:nth-child(2) { animation-delay: 0.2s; }
.lobby-wait .dots i:nth-child(3) { animation-delay: 0.4s; }
.player-cloud {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-content: flex-start;
  overflow: auto;
  padding: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  border: 0;
  border-radius: 999px;
  padding: 0.3em 1.1em 0.3em 0.3em;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  cursor: pointer;
  box-shadow: 0 4px 0 #c5cbe4, 0 10px 24px -10px rgba(0, 0, 0, 0.5);
  animation: pop-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: background 0.15s, color 0.15s, opacity 0.2s;
}
.chip .av { width: 1.8em; height: 1.8em; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-size: 1.05em; }
.chip:hover { background: #ffe4e9; color: var(--bad); text-decoration: line-through; }
.chip.off { opacity: 0.45; }

.q-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.5em 1em;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  font-weight: 800;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
}
.badge .ic { width: 1.15em; height: 1.15em; }
.badge.num { font-family: var(--display); font-weight: 600; }
.badge.type { color: var(--sun); }
.badge.type span { color: #fff; }
.pin-badge { color: var(--on-dark-2); }
.q-text {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  border-radius: 26px;
  padding: clamp(16px, 2.2vw, 30px) clamp(18px, 3vw, 40px);
  text-align: center;
  font-size: clamp(1.6rem, 3.3vw, 3.1rem);
  font-weight: 600;
  box-shadow: var(--shadow-card);
  overflow-wrap: anywhere;
}
.q-text.small { font-size: clamp(1.15rem, 2.2vw, 2rem); padding: clamp(12px, 1.4vw, 18px) clamp(16px, 2vw, 28px); }
.q-text.long { font-size: clamp(1.3rem, 2.5vw, 2.4rem); line-height: 1.25; }
.q-text.xlong { font-size: clamp(1.1rem, 2vw, 1.85rem); line-height: 1.3; }
.q-text.small.long { font-size: clamp(1rem, 1.8vw, 1.6rem); }
.q-text.small.xlong { font-size: clamp(0.95rem, 1.5vw, 1.35rem); }
.q-mid { flex: 1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(12px, 2vw, 28px); min-height: 0; }
.timer {
  position: relative;
  width: clamp(96px, 10.5vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--sun) calc(var(--p, 1) * 360deg), rgba(255, 255, 255, 0.12) 0);
  box-shadow: 0 0 50px rgba(255, 201, 60, 0.28);
}
.timer::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #262266, var(--bg-deep)); }
.timer span { position: relative; font-family: var(--display); font-size: clamp(2.2rem, 4.2vw, 3.8rem); font-weight: 600; font-variant-numeric: tabular-nums; }
.timer.hurry { background: conic-gradient(#ff5470 calc(var(--p, 1) * 360deg), rgba(255, 255, 255, 0.12) 0); box-shadow: 0 0 60px rgba(255, 84, 112, 0.45); animation: throb 1s infinite; }
.q-img { justify-self: center; max-width: 100%; max-height: 44vh; border-radius: 20px; object-fit: contain; background: #fff; box-shadow: var(--shadow-card); }
.q-hint { justify-self: center; display: grid; justify-items: center; gap: 14px; text-align: center; }
.q-hint .orb { width: clamp(110px, 12vw, 170px); height: clamp(110px, 12vw, 170px); color: var(--sun); }
.q-hint .orb .ic { width: 45%; height: 45%; }
.q-hint span { font-size: clamp(1rem, 1.8vw, 1.6rem); font-weight: 800; color: var(--on-dark-2); }
.ans-count {
  display: grid;
  place-items: center;
  align-content: center;
  width: clamp(96px, 10.5vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-line);
}
.ans-count b { font-family: var(--display); font-size: clamp(2.2rem, 4.2vw, 3.8rem); font-weight: 600; line-height: 1; }
.ans-count span { color: var(--on-dark-2); font-size: clamp(0.85rem, 1.1vw, 1.05rem); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.3vw, 18px); }
.host-tiles.n5, .host-tiles.n6 { grid-template-columns: repeat(3, 1fr); }
.tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65em;
  min-height: clamp(68px, 11vh, 134px);
  padding: clamp(12px, 1.6vw, 22px) clamp(14px, 1.8vw, 26px);
  border: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 78%, white) 0%, var(--c) 46%, color-mix(in srgb, var(--c) 88%, black) 100%);
  color: #fff;
  font: inherit;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 2.1rem);
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 62%, black), 0 16px 30px -14px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  overflow-wrap: anywhere;
  transition: opacity 0.3s, transform 0.3s, filter 0.3s;
}
.tile .letter { width: 1.75em; height: 1.75em; border-radius: 0.5em; background: rgba(255, 255, 255, 0.95); color: var(--c); font-size: 0.85em; text-shadow: none; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15); }
.tile.dim { opacity: 0.28; filter: saturate(0.4); }
.tile.right { transform: scale(1.03); box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 62%, black), 0 0 0 5px #fff, 0 0 50px rgba(255, 255, 255, 0.35); }
.tile .mark { margin-left: auto; width: 1.6em; height: 1.6em; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ok); }
.tile .mark .ic { width: 70%; height: 70%; stroke-width: 3.2; }

.rev-body { flex: 1; display: flex; flex-direction: column; gap: clamp(14px, 2vw, 22px); min-height: 0; }
.loading { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 1.4rem; color: var(--on-dark-2); margin: auto; }
.loading .spinner { width: 34px; height: 34px; border-width: 4px; }
.bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(14px, 3vw, 52px);
  height: clamp(130px, 30vh, 400px);
  margin-top: auto;
  padding: 0 4%;
  border-bottom: 2px solid var(--glass-line);
}
.bar-col { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: clamp(64px, 10vw, 150px); height: 100%; }
.bar {
  width: 100%;
  flex: none;
  border-radius: 16px 16px 4px 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, white), var(--c) 40%, color-mix(in srgb, var(--c) 85%, black));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 30px color-mix(in srgb, var(--c) 40%, transparent);
  transform-origin: bottom;
  animation: grow 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bar-num { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.8vw, 2.6rem); margin-bottom: 6px; }
.bar-label {
  position: absolute;
  bottom: calc(-1 * clamp(42px, 4.6vw, 58px));
  width: clamp(34px, 3.4vw, 46px);
  height: clamp(34px, 3.4vw, 46px);
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  background: var(--c);
  color: #fff;
}
.bar-label .ic { position: absolute; right: -10px; top: -10px; width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: #fff; color: var(--ok); stroke-width: 3.4; }
.bar-col.dim { opacity: 0.38; filter: saturate(0.5); }
.type-quiz .rev-body .bars, .type-poll .rev-body .bars { margin-bottom: clamp(44px, 4.8vw, 62px); }
.host-rev .tile { min-height: clamp(50px, 8vh, 96px); padding-block: clamp(8px, 1.1vw, 16px); font-size: clamp(1rem, 1.8vw, 1.7rem); }
/* The question and result screens are exactly the screen's height (a laptop at 125 % shows ~700 px): the
   chart takes what is left, the answers keep their size, the bar with "Sıralama" / "Sonraki" stays in view.
   Anything taller (a long word cloud) scrolls inside the middle, never the page. */
.host-q, .host-rev, .host-intro, .host-lb { height: 100vh; height: 100dvh; min-height: 0; gap: clamp(8px, 1.7vh, 22px); padding-block: clamp(10px, 2.4vh, 30px); }
.host-q > *, .host-rev > *, .host-intro > *, .host-lb > * { flex-shrink: 0; }
.host-q .q-mid { flex: 1 1 auto; min-height: 0; }
.host-rev .rev-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; margin: -8px; padding: 8px; }
.host-rev .rev-body > * { flex-shrink: 0; }
.host-rev .rev-body > .bars { flex: 1 1 0; height: auto; min-height: 80px; max-height: clamp(130px, 30vh, 400px); }
@media (max-height: 820px) {
  .host-rev .tile { min-height: 46px; padding-block: 6px; font-size: clamp(0.95rem, 1.6vw, 1.4rem); }
  .host-rev .q-text.small { padding-block: 10px; }
  .host-q .timer, .host-q .ans-count { width: clamp(84px, 15vh, 160px); }
  .host-q .timer span, .host-q .ans-count b { font-size: clamp(1.9rem, 6vh, 3.8rem); }
  .host-q .q-hint .orb { width: clamp(80px, 14vh, 170px); height: clamp(80px, 14vh, 170px); }
  .host-q .tile { min-height: clamp(56px, 10vh, 134px); padding-block: clamp(8px, 1.4vh, 22px); }
}
.host-lb .board { min-height: 0; overflow-y: auto; padding: 4px; }
/* room on the right for the dock (participants, board, audio, hands, questions: 52 px + 12 px from the edge) */
.host-q, .host-rev, .host-intro, .host-lb, .host-info { padding-right: max(clamp(14px, 2vw, 30px), 78px); }
@media (max-height: 520px) { .host-q, .host-rev, .host-intro, .host-lb { height: auto; min-height: 100dvh; } }

.rating-rev { flex: 1; display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; padding: 0 clamp(8px, 4vw, 60px); }
.avg-box { text-align: center; padding: clamp(18px, 2.4vw, 34px) clamp(24px, 3vw, 46px); }
.avg-num { font-family: var(--display); font-size: clamp(4.4rem, 10vw, 9rem); font-weight: 600; line-height: 1; color: var(--sun); text-shadow: 0 0 40px rgba(255, 201, 60, 0.45); }
.avg-max { font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--on-dark-2); }
.avg-box .muted { margin-top: 6px; }
.stars { position: relative; display: inline-block; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: 0.08em; line-height: 1.2; }
.stars::before { content: '★★★★★'; color: rgba(255, 255, 255, 0.18); }
.stars::after { content: '★★★★★'; color: var(--sun); position: absolute; inset: 0 auto 0 0; width: var(--fill); overflow: hidden; white-space: nowrap; }
.dist { display: grid; gap: 12px; }
.dist-row { display: grid; grid-template-columns: 4em 1fr 3em; gap: 14px; align-items: center; font-size: clamp(1rem, 1.8vw, 1.4rem); font-weight: 900; }
.dist-k { color: var(--on-dark-2); }
.dist-n { font-family: var(--display); font-weight: 600; }
.dist-bar { height: 30px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); overflow: hidden; }
.dist-bar i { display: block; height: 100%; border-radius: 999px; background: var(--sun-grad); transform-origin: left; animation: grow-x 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* typed answer (write) on the board: the right answer, then everyone's answers grouped */
.write-rev { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: clamp(10px, 1.6vw, 18px); width: min(1100px, 100%); margin: 0 auto; }
.wr-right { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: clamp(12px, 1.6vw, 18px) clamp(16px, 2vw, 26px); border-radius: 20px; background: linear-gradient(90deg, rgba(22, 163, 74, 0.35), rgba(22, 163, 74, 0.12)); border: 1px solid rgba(74, 222, 128, 0.45); }
.wr-right span { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; color: #bbf7d0; font-size: clamp(0.95rem, 1.4vw, 1.15rem); }
.wr-right span .ic { width: 1.2em; height: 1.2em; stroke-width: 3; }
.wr-right b { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.1; }
.wr-list { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 8px; padding-right: 4px; }
.wr-row { display: grid; grid-template-columns: auto minmax(8em, 1.2fr) 2fr auto auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line); font-size: clamp(1rem, 1.7vw, 1.35rem); font-weight: 900; animation: rise 0.35s ease-out both; }
.wr-row.ok { background: rgba(22, 163, 74, 0.2); border-color: rgba(74, 222, 128, 0.4); }
.wr-mark { width: 1.7em; height: 1.7em; display: grid; place-items: center; border-radius: 50%; background: rgba(225, 29, 72, 0.85); }
.wr-row.ok .wr-mark { background: var(--ok); }
.wr-mark .ic { width: 1em; height: 1em; stroke-width: 3.4; }
.wr-t { overflow-wrap: anywhere; }
.wr-bar { height: 0.9em; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.wr-bar i { display: block; height: 100%; border-radius: 999px; background: #fb7185; transform-origin: left; animation: grow-x 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.wr-row.ok .wr-bar i { background: #4ade80; }
.wr-n { min-width: 1.6em; text-align: right; font-family: var(--display); }
.wr-accept { font-size: 0.78rem; }
.wr-more { margin: 0; color: var(--on-dark-2); font-weight: 800; }
.p-mine { background: rgba(255, 255, 255, 0.16); border-radius: 14px; padding: 8px 14px; overflow-wrap: anywhere; }

/* Sıralama on the board: the right order, how many put each item in its place */
.order-tiles .tile { min-height: clamp(54px, 8vh, 100px); font-size: clamp(1.05rem, 2vw, 1.8rem); }
.order-rev { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: clamp(10px, 1.4vw, 16px); width: min(1100px, 100%); margin: 0 auto; }
.or-head { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 700; color: #bbf7d0; }
.or-head .ic { width: 1.2em; height: 1.2em; }
.or-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(8px, 1.1vw, 12px); }
.or-row { display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(90px, 1fr) auto; align-items: center; gap: clamp(10px, 1.4vw, 18px); padding: clamp(8px, 1.1vw, 14px) clamp(12px, 1.6vw, 20px); border-radius: 18px; background: rgba(22, 163, 74, 0.16); border: 1px solid rgba(74, 222, 128, 0.38); font-size: clamp(1.1rem, 2vw, 1.75rem); font-weight: 900; animation: rise 0.4s ease-out both; }
.or-n { width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: 50%; background: var(--ok); color: #fff; font-family: var(--display); }
.or-t { overflow-wrap: anywhere; }
.or-bar { height: 0.8em; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.or-bar i { display: block; height: 100%; border-radius: 999px; background: #4ade80; transform-origin: left; animation: grow-x 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.or-p { display: grid; justify-items: end; line-height: 1; }
.or-p b { font-family: var(--display); }
.or-p small { font-size: 0.55em; font-weight: 800; color: var(--on-dark-2); }

/* Sıralama / Eşleştirme while open: the items need the room, the middle hint stays small */
.host-q.type-order .q-hint .orb, .host-q.type-match .q-hint .orb { display: none; }

/* Eşleştirme on the board: left side numbered, right side as tiles; after: the right pairs */
.match-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(14px, 2vw, 28px); align-items: start; }
.mb-left { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(8px, 1vw, 12px); }
.mb-left li { display: flex; align-items: center; gap: 12px; min-height: clamp(50px, 7vh, 86px); padding: 8px 16px 8px 10px; border-radius: 18px; background: var(--surface); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.8rem); box-shadow: var(--shadow-card); overflow-wrap: anywhere; }
.mb-n { width: 1.7em; height: 1.7em; flex: none; display: grid; place-items: center; border-radius: 0.5em; background: var(--violet); color: #fff; font-size: 0.85em; }
.mb-right { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1vw, 12px); }
.mb-right .tile { min-height: clamp(50px, 7vh, 86px); font-size: clamp(1rem, 1.8vw, 1.6rem); }
.mr-row .or-t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.mr-link { display: inline-grid; place-items: center; color: #86efac; }
.mr-link .ic { width: 0.9em; height: 0.9em; }

/* Eşleştirme in the editor */
.match-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.match-row .opt-in { flex: 1; min-width: 0; }
.match-n { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--c5); color: #fff; font-weight: 900; font-size: 0.9rem; }
.match-link { color: var(--ink-2); display: grid; place-items: center; }
.match-link .ic { width: 18px; height: 18px; }

/* Eşleştirme on phones: a row per left-hand item, tap its match from below */
.mt-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.mt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.mt-left { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 10px 6px 6px; border: 0; border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-family: var(--display); font-weight: 600; font-size: 0.98rem; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.mt-left .ord-n { width: 28px; height: 28px; border-radius: 9px; background: var(--surface-3); font-size: 0.85rem; }
.mt-row.active .mt-left { box-shadow: 0 0 0 3px var(--sun); }
.mt-row.active .mt-left .ord-n { background: var(--sun); color: #3b2400; }
.mt-slot { display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 6px 10px; border: 0; border-radius: 14px; font: inherit; font-family: var(--display); font-weight: 600; font-size: 0.98rem; text-align: left; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, white), var(--c)); box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 62%, black); overflow-wrap: anywhere; cursor: pointer; animation: pop-in 0.2s ease-out; }
.mt-slot .ic { width: 16px; height: 16px; margin-left: auto; flex: none; opacity: 0.8; }
.mt-slot.empty { justify-content: center; background: rgba(255, 255, 255, 0.05); border: 2px dashed rgba(255, 255, 255, 0.22); box-shadow: none; color: var(--on-dark-2); animation: none; }
.mt-row.active .mt-slot.empty { border-color: var(--sun); color: #ffe7a3; }
.chosen-order.match { list-style: none; padding-left: 16px; }
.ord-right.match li .ord-n .ic { width: 16px; height: 16px; stroke-width: 3; }

/* Sıralama on phones: tap the items into the numbered places */
.p-order { display: grid; gap: 12px; }
.ord-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ord-slots > li:not(.ord-slot) { display: grid; }
.ord-slot { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 12px 8px 8px; border: 0; border-radius: 16px; font: inherit; font-family: var(--display); font-weight: 600; font-size: 1.05rem; text-align: left; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, white), var(--c)); box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 62%, black); cursor: pointer; overflow-wrap: anywhere; animation: pop-in 0.2s ease-out; }
.ord-slot .ic { width: 18px; height: 18px; margin-left: auto; flex: none; opacity: 0.8; }
.ord-slot.empty { background: rgba(255, 255, 255, 0.05); border: 2px dashed rgba(255, 255, 255, 0.22); box-shadow: none; color: var(--on-dark-2); cursor: default; animation: none; }
.ord-slot.next { border-color: var(--sun); color: #ffe7a3; }
.ord-n { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 11px; background: rgba(255, 255, 255, 0.95); color: var(--ink); font-family: var(--display); font-weight: 700; }
.ord-slot.empty .ord-n { background: rgba(255, 255, 255, 0.12); color: var(--on-dark-2); }
.ord-slot.next .ord-n { background: var(--sun); color: #3b2400; }
.ord-t { flex: 1; min-width: 0; }
.ord-pool { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ord-pool .tile { min-height: 62px; padding: 10px 12px; font-size: 1rem; border-radius: 16px; }
.ord-actions { display: flex; justify-content: center; }
.chosen-order { margin: 0; padding: 12px 16px 12px 36px; border-radius: 16px; background: #fff; color: var(--ink); text-align: left; font-weight: 800; box-shadow: 0 4px 0 #c5cbe4; }
.chosen-order li { margin: 2px 0; }
.p-order-res { width: 100%; display: grid; gap: 8px; }
.ord-score { font-weight: 900; }
.ord-right { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.ord-right li { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: 7px 10px; border-radius: 14px; background: rgba(0, 0, 0, 0.18); font-weight: 800; }
.ord-right li .ord-n { width: 28px; height: 28px; border-radius: 9px; font-size: 0.9rem; }
.ord-right li.ok .ord-n { background: #dcfce7; color: #14532d; }
.ord-right li.bad .ord-n { background: #ffe4e6; color: #9f1239; }
.ord-right li small { grid-column: 2; font-size: 0.8rem; font-weight: 800; opacity: 0.85; }

/* info screen on the board: a slide */
.info-slide { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: clamp(14px, 2.2vw, 28px); padding: clamp(22px, 3.4vw, 56px) clamp(24px, 4.2vw, 68px); border-radius: 30px; color: var(--ink); position: relative; overflow: hidden; }
.info-slide::before { content: ''; position: absolute; inset: 0 0 auto; height: 8px; background: linear-gradient(90deg, var(--violet), #60a5fa, #f472b6, var(--sun)); }
.info-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; }
.info-title.long { font-size: clamp(1.6rem, 3.2vw, 2.9rem); }
.info-title.xlong { font-size: clamp(1.35rem, 2.5vw, 2.2rem); }
.host-info:not(.has-body):not(.has-media) .info-slide { justify-content: center; align-items: center; text-align: center; }
.info-main { flex: 1; min-height: 0; display: grid; gap: clamp(18px, 3vw, 46px); align-items: center; }
.host-info.has-body.has-media .info-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.info-body { max-height: 100%; overflow-y: auto; font-size: clamp(1.15rem, 2.1vw, 1.95rem); font-weight: 700; line-height: 1.45; color: #2b3054; overflow-wrap: anywhere; }
.info-body.long { font-size: clamp(1.05rem, 1.7vw, 1.55rem); }
.info-body.xlong { font-size: clamp(0.98rem, 1.35vw, 1.25rem); }
.host-info.has-body:not(.has-media) .info-body { max-width: 64ch; }
.info-body p, .p-info-body p { margin: 0 0 0.6em; }
.info-body ul, .p-info-body ul { margin: 0 0 0.6em; padding-left: 1.3em; }
.info-body li, .p-info-body li { margin: 0.25em 0; }
.info-body li::marker, .p-info-body li::marker { color: var(--violet); }
.info-media { min-height: 0; display: grid; place-items: center; }
.info-media img { max-width: 100%; max-height: min(58vh, 100%); border-radius: 20px; object-fit: contain; box-shadow: 0 14px 34px -18px rgba(20, 24, 58, 0.55); }
.info-media.video { width: 100%; }
.info-media iframe { width: min(100%, calc(58vh * 16 / 9)); aspect-ratio: 16 / 9; border: 0; border-radius: 20px; background: #000; }
.host-info:not(.has-body) .info-media img { max-height: 62vh; }
@media (max-width: 860px) {
  .host-info.has-body.has-media .info-main { grid-template-columns: minmax(0, 1fr); }
}

/* a slide of a presentation on the board: the picture as big as the screen allows */
/* The screen is split in a stage and the bar; the picture fills the stage and keeps its shape (4:3, 16:9 …)
   whatever its own size, so it never runs off the screen. */
.host-slide { height: 100vh; height: 100dvh; min-height: 0; gap: 10px; padding: clamp(8px, 1.2vw, 16px); overflow: hidden; }
.slide-stage { position: relative; flex: 1; min-height: 0; margin-right: 66px; } /* room for the strip on the right (counter, pen, board …) */
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)); }
.slide-bar { opacity: 0.55; transition: opacity 0.2s; }
.slide-bar:hover, .slide-bar:focus-within { opacity: 1; }
.p-slide-n { padding: 3px 12px; border-radius: 999px; background: var(--glass-2); font-weight: 900; font-size: 0.85rem; }

/* "Sunum ekle (PDF)" window */
.sl-progress { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.sl-bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.sl-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--violet); transition: width 0.3s; }
.sl-progress .spinner { width: 20px; height: 20px; border-width: 3px; border-color: var(--surface-3); border-top-color: var(--violet); }
.sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 52vh; overflow-y: auto; }
.sl-grid:empty { display: none; }
.sl-item { position: relative; display: grid; gap: 6px; padding: 6px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.sl-item.on { border-color: var(--violet); background: #faf8ff; }
.sl-item input { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; accent-color: var(--violet); }
.sl-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 8px; background: var(--surface-2); }
.sl-cap { display: flex; gap: 6px; align-items: baseline; font-size: 0.8rem; font-weight: 800; color: var(--ink-2); overflow: hidden; }
.sl-cap b { flex: none; color: var(--violet); }
.sl-where { display: flex; align-items: center; gap: 12px; }
/* Test PDF'inden soru kes: question pictures, bigger so they can be read */
.sl-modal.qc .sl-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.sl-modal.qc .sl-item img { aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line); }
.sl-item.unsure:not(.on) img { opacity: 0.55; }
.sl-modal .form-msg.note { background: var(--surface-2); color: var(--ink-2) !important; border-color: var(--line); }

/* info screen on phones */
.p-info { display: flex; flex-direction: column; gap: 14px; }
.p-q-text.p-info-card { text-align: left; padding: 26px 18px 16px; }
.p-info-card h2 { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.2; }
.p-info-body { max-height: 56vh; overflow-y: auto; font-family: 'Nunito', system-ui, sans-serif; font-size: 1rem; font-weight: 700; line-height: 1.5; color: #2b3054; }
.p-info-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; color: var(--on-dark-2); font-weight: 800; text-align: center; }
/* a full-screen slide on the phone (a question cut from a test PDF, a presentation page): its picture */
.p-pic { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.p-pic-img { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: center; cursor: zoom-in; }
/* the picture and the presenter's ink over it: the box is exactly the picture */
.p-pic-box { position: relative; display: inline-block; max-width: 100%; vertical-align: top; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.7); }
.p-pic-box img { display: block; max-width: 100%; width: auto; height: auto; max-height: 70vh; max-height: 70dvh; }
.p-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.p-ink path.hl { stroke-opacity: 0.45; }
/* a question's picture over its answers: small, so the answers stay in view; a tap shows it big */
.p-q-pic { margin: 2px 0 10px; }
.p-q-pic .p-pic-box { border-radius: 12px; }
.p-q-pic .p-pic-box img { max-height: 24vh; max-height: 24dvh; }
.p-info .p-q-pic .p-pic-box img { max-height: 40vh; max-height: 40dvh; }
/* a picture's big view: a modal <dialog> (answers.js · zoomBox) covering the whole screen */
.p-zoom { position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; border: 0; color: #fff; overflow: auto; overscroll-behavior: contain; padding: calc(max(10px, env(safe-area-inset-top)) + 44px) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); background: rgba(4, 3, 20, 0.96); }
.p-zoom[open] { display: grid; place-items: center; }
.p-zoom::backdrop { background: transparent; }
.p-zoom .p-pic-box { border-radius: 8px; box-shadow: none; }
.p-zoom .p-pic-box img { max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
.p-zoom-x { position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--glass-line); border-radius: 999px; background: rgba(20, 18, 70, 0.9); color: #fff; font: inherit; font-weight: 900; }
.p-info-foot .ic { width: 20px; height: 20px; flex: none; }

/* info screen in the editor */
.info-edit .q-text-wrap { width: 100%; align-self: stretch; }
.info-body-in { width: 100%; min-height: 7em; padding-bottom: 1.6em; resize: vertical; field-sizing: content; font-size: 1rem; font-weight: 600; line-height: 1.5; background: var(--surface-2); border-color: transparent; }

/* typed answer in the editor */
.write-lbl { display: grid; gap: 2px; margin: 0; }
.write-lbl b { color: var(--ink); }
.write-lbl span { font-size: 0.86rem; color: var(--ink-2); }
.write-edit .opt-row .letter .ic { width: 18px; height: 18px; stroke-width: 3; }

/* typed answer in the results page */
.write-chart { display: grid; gap: 10px; }
.wc-accept { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 8px 12px; border-radius: 12px; background: #dcfce7; color: #14532d; font-size: 0.9rem; }
.wc-accept .ic { width: 16px; height: 16px; stroke-width: 3; }

.cloud {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 0.15em 0.65em;
  padding: 2vw 3vw;
  font-size: clamp(14px, 1.6vw, 22px);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-line);
}
.word {
  border: 0;
  background: none;
  font: inherit;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  color: var(--w);
  text-shadow: 0 0 24px color-mix(in srgb, var(--w) 40%, transparent);
  animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.word:hover { text-decoration: line-through; opacity: 0.7; }
.word sup { font-size: 0.42em; opacity: 0.75; margin-left: 0.1em; }
.w0 { --w: var(--w0); }
.w1 { --w: var(--w1); }
.w2 { --w: var(--w2); }
.w3 { --w: var(--w3); }
.w4 { --w: var(--w4); }
.w5 { --w: var(--w5); }

.lb-title { display: flex; align-items: center; justify-content: center; gap: 0.35em; font-size: clamp(2.1rem, 4.2vw, 3.6rem); margin: 0.05em 0; }
.lb-title .ic { color: var(--sun); width: 0.9em; height: 0.9em; }
.board { list-style: none; padding: 0; margin: 0 auto; width: min(920px, 100%); display: grid; gap: 12px; flex: 1; align-content: start; }
.board li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 22px 10px 12px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  font-weight: 800;
  box-shadow: 0 5px 0 #c5cbe4, 0 16px 30px -16px rgba(0, 0, 0, 0.6);
  animation: slide-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.board li.r1 { background: linear-gradient(90deg, #fff6d6, #ffe38a); box-shadow: 0 5px 0 #e2b23a, 0 0 40px rgba(255, 201, 60, 0.35); }
.board .rk { flex: none; width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: 0.6em; font-family: var(--display); font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.board li.r1 .rk { background: linear-gradient(180deg, #ffd84d, #f4a300); color: #4a2c00; }
.board li.r2 .rk { background: linear-gradient(180deg, #eef1f8, #b8c0d4); color: #333a52; }
.board li.r3 .rk { background: linear-gradient(180deg, #ffcfa6, #d8823f); color: #4a2405; }
.board .av { width: 1.8em; height: 1.8em; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-size: 1.1em; }
.board li.r1 .av { background: #fff; }
.board .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 0.4em; }
.fire { display: inline-flex; align-items: center; gap: 2px; color: #ea580c; font-size: 0.75em; }
.fire .ic { width: 1em; height: 1em; fill: #fb923c; }
.board .gain { padding: 0.2em 0.7em; border-radius: 999px; background: #dcfce7; color: #166534; font-weight: 900; font-size: 0.72em; }
.board .sc { font-family: var(--display); font-weight: 600; min-width: 4em; text-align: right; font-variant-numeric: tabular-nums; }

.podium { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: clamp(12px, 2vw, 30px); padding-top: 20px; }
.pod { display: flex; flex-direction: column; align-items: center; width: clamp(120px, 19vw, 260px); animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; text-align: center; }
.pod-3 { animation-delay: 0.1s; }
.pod-2 { animation-delay: 0.5s; }
.pod-1 { animation-delay: 0.9s; }
.pod-crown { color: var(--sun); width: clamp(40px, 4.4vw, 64px); height: clamp(40px, 4.4vw, 64px); margin-bottom: -6px; filter: drop-shadow(0 0 16px rgba(255, 201, 60, 0.6)); }
.pod-crown .ic { width: 100%; height: 100%; }
.pod-av {
  width: clamp(80px, 8.5vw, 130px);
  height: clamp(80px, 8.5vw, 130px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  background: radial-gradient(circle at 50% 30%, #fff, #e8ebf7);
  box-shadow: 0 0 0 5px var(--ring, #fff), 0 16px 30px -10px rgba(0, 0, 0, 0.6);
  margin-bottom: 12px;
}
.pod-1 .pod-av { --ring: #ffc93c; }
.pod-2 .pod-av { --ring: #c9d0e2; }
.pod-3 .pod-av { --ring: #e3955a; }
.pod-name { font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 2.1vw, 1.9rem); overflow-wrap: anywhere; }
.pod-score { color: var(--on-dark-2); font-weight: 800; font-size: clamp(0.95rem, 1.4vw, 1.25rem); }
.pod-block {
  position: relative;
  width: 100%;
  margin-top: 12px;
  display: grid;
  place-items: start center;
  padding-top: 0.25em;
  border-radius: 20px 20px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.8rem, 5.4vw, 5rem);
  overflow: hidden;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -20px 40px rgba(0, 0, 0, 0.12);
}
.pod-block::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%); transform: translateX(-100%); animation: shine 3s 1.8s ease-in-out infinite; }
.pod-1 .pod-block { height: 32vh; background: linear-gradient(180deg, #ffe17a, #f5a300); color: #6b3f00; }
.pod-2 .pod-block { height: 24vh; background: linear-gradient(180deg, #f4f6fb, #b6bfd5); color: #3b425c; }
.pod-3 .pod-block { height: 17vh; background: linear-gradient(180deg, #ffd2ad, #d07a3a); color: #5a2a07; }
.thanks { flex: 1; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.4rem); }
.thanks p { margin: 0; }
.host-end .lb-title { font-size: clamp(1.6rem, 3vw, 2.6rem); }

/* ---------- phone (player) ---------- */

.join { gap: 14px; }
.join .pin-chip { padding: 0.4em 1.1em; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-weight: 800; color: var(--on-dark-2); }
.join .pin-chip b { color: #fff; font-family: var(--display); font-weight: 600; letter-spacing: 0.06em; }
.join-card { width: min(430px, 100%); display: grid; gap: 14px; text-align: left; }
.join-card h2 { margin: 0; font-size: 1.5rem; text-align: center; }
.join-card p { margin: 0; }
.join-card .pick { font-weight: 800; color: var(--ink-2); font-size: 0.9rem; }
.av-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.av-btn {
  aspect-ratio: 1;
  font-size: clamp(1.4rem, 6vw, 1.8rem);
  border: 0;
  border-radius: 14px;
  background: var(--surface-2);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.av-btn:hover { background: var(--surface-3); }
.av-btn.on { background: #f1eaff; transform: scale(1.1); box-shadow: 0 0 0 3px var(--violet), 0 8px 18px -6px rgba(124, 58, 237, 0.6); }

.screen.player { padding: 0; }
.p-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: max(10px, env(safe-area-inset-top)) 12px 0;
  padding: 7px 8px 7px 7px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-weight: 800;
}
.p-av { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-size: 1.35rem; flex: none; }
.p-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-score { display: inline-flex; align-items: center; gap: 5px; background: var(--sun-grad); color: #3b2400; border-radius: 999px; padding: 0.35em 0.95em; font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: 0 3px 0 var(--sun-edge); }
.p-score .ic { width: 1em; height: 1em; }
/* the participant's own way out (player.js · leave) */
.p-exit { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 13px 0 10px; border: 1px solid var(--glass-line); border-radius: 999px; background: var(--glass); color: #fff; font: inherit; font-weight: 900; font-size: 0.85rem; cursor: pointer; }
.p-exit .ic { width: 19px; height: 19px; }
.p-exit:hover, .p-exit:focus-visible { background: rgba(244, 63, 94, 0.28); }
.p-main { flex: 1; display: flex; flex-direction: column; padding: 14px 14px max(16px, env(safe-area-inset-bottom)); }

.p-wait { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.p-wait h2 { margin: 0; font-size: 1.7rem; }
.p-wait p { margin: 0; max-width: 30ch; }
.big-emoji { font-size: 5rem; line-height: 1.1; }
.p-wait .orb.av-orb { width: 140px; height: 140px; font-size: 5rem; background: radial-gradient(circle at 50% 30%, #fff, #e6e8f8); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.16), 0 0 80px rgba(124, 58, 237, 0.6); }
.bob { animation: bob 1.8s ease-in-out infinite; }
.pop { animation: pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.pulse-ring { position: relative; }
.pulse-ring::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid rgba(74, 222, 128, 0.6); animation: ring 1.8s ease-out infinite; }
.orb.ok-orb { background: radial-gradient(circle at 50% 30%, #4ade80, #16a34a); color: #fff; border: 0; box-shadow: 0 0 70px rgba(34, 197, 94, 0.55); }
.orb.ok-orb .ic { stroke-width: 3; }
.chosen {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border-radius: 16px;
  background: var(--c);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 62%, black);
}
.chosen .letter { background: #fff; color: var(--c); }
.chosen.plain { background: #fff; color: var(--ink); padding: 10px 18px; box-shadow: 0 4px 0 #c5cbe4; }

.p-q { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.p-timer { height: 10px; border-radius: 999px; background: var(--glass-2); overflow: hidden; }
.p-timer i { display: block; height: 100%; width: 100%; border-radius: 999px; background: var(--sun-grad); box-shadow: 0 0 14px rgba(255, 201, 60, 0.6); transition: width 0.2s linear; }
/* question card on the phone: thin gradient frame (violet → blue → pink), soft lilac inside */
.p-q-text {
  position: relative;
  margin-top: 12px;
  padding: 22px 18px 16px;
  border: 3px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f2ff 100%) padding-box,
    linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #f472b6 100%) border-box;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: 0 0 0 5px rgba(167, 139, 250, 0.12), 0 18px 40px -18px rgba(124, 58, 237, 0.7);
}
.p-q-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -60%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 4px 12px -4px rgba(79, 70, 229, 0.8);
}
.p-q-badge .ic { width: 14px; height: 14px; color: var(--sun); }
.p-q-text.long { font-size: 1.05rem; line-height: 1.3; }
.p-q-text.xlong { font-size: 0.95rem; line-height: 1.3; padding: 20px 14px 12px; }
.p-tiles { flex: 1; grid-auto-rows: 1fr; gap: 12px; padding-bottom: 6px; }
.p-tiles.n2, .p-tiles.n3 { grid-template-columns: 1fr; }
.p-tiles .tile { flex-direction: column; justify-content: center; text-align: center; font-size: 1.2rem; min-height: 86px; cursor: pointer; }
.p-tiles .tile:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 62%, black), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.p-tiles .tile .letter { font-size: 1.05rem; }

.p-rating, .p-open { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.star-row { display: flex; justify-content: center; gap: 4px; }
.star {
  border: 0;
  background: none;
  font-size: clamp(2.7rem, 14vw, 4.2rem);
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0 2px;
  transition: transform 0.15s, color 0.15s, text-shadow 0.15s;
}
.star.on { color: var(--sun); transform: scale(1.12); text-shadow: 0 0 22px rgba(255, 201, 60, 0.7); }
.num-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.num { height: 60px; border: 1px solid var(--glass-line); border-radius: 16px; background: var(--glass); color: #fff; font: inherit; font-family: var(--display); font-size: 1.4rem; font-weight: 600; cursor: pointer; transition: transform 0.12s, background 0.15s; }
.num.on { background: var(--sun-grad); color: #3b2400; border-color: transparent; box-shadow: 0 4px 0 var(--sun-edge); transform: translateY(-2px); }

.p-result {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  border-radius: 30px;
  padding: 28px 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.p-result::before { content: ''; position: absolute; width: 140%; aspect-ratio: 1; top: -70%; left: -20%; background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 60%); pointer-events: none; }
.p-result > * { position: relative; }
.p-result.good { background: linear-gradient(170deg, #34d399, #16a34a 60%, #0f7a3a); }
.p-result.bad { background: linear-gradient(170deg, #fb7185, #e11d48 60%, #a10f35); }
.p-result.late { background: linear-gradient(170deg, #7c86a8, #4a5375 60%, #343b58); }
.p-result h2 { margin: 0; font-size: 2.3rem; }
.p-result p { margin: 0; }
.res-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--rc, var(--ok));
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.2), 0 16px 30px -10px rgba(0, 0, 0, 0.45);
  animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.res-icon .ic { width: 64px; height: 64px; stroke-width: 3.2; }
.p-result.bad .res-icon { --rc: var(--bad); }
.p-result.late .res-icon { --rc: #4a5375; }
.gain-pill { background: #fff; color: #15803d; border-radius: 999px; padding: 0.2em 1.1em; font-family: var(--display); font-size: 1.8rem; font-weight: 600; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.15); animation: pop-in 0.5s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.streak { display: inline-flex; align-items: center; gap: 6px; padding: 0.35em 0.9em; border-radius: 999px; background: rgba(0, 0, 0, 0.18); font-weight: 900; font-size: 1.05rem; }
.streak .ic { color: #fdba74; fill: #fb923c; }
.correct { background: rgba(0, 0, 0, 0.2); border-radius: 14px; padding: 10px 16px; }
.cheer { opacity: 0.92; }
.rank { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.rank span { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.85em; opacity: 0.85; }

.p-thanks { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; text-align: center; }
.p-thanks h2, .p-thanks p { margin: 0; }
.p-thanks h2 { font-size: 1.8rem; }
.p-thanks .avg-num { font-size: 5.4rem; }
.p-thanks .avg-num small { font-size: 1.6rem; color: var(--on-dark-2); text-shadow: none; }
.mini-bars { display: grid; gap: 9px; text-align: left; }
.mini {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
}
.mini.mine { border-color: var(--sun); box-shadow: 0 0 0 2px var(--sun); }
.mini-l { font-weight: 800; overflow-wrap: anywhere; }
.mini-n { font-family: var(--display); font-weight: 600; }
.mini-bar { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.mini-bar i { display: block; height: 100%; border-radius: 999px; background: var(--c); transform-origin: left; animation: grow-x 0.7s ease-out both; }

.p-rank, .p-end { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.p-rank p, .p-end p, .p-end h2 { margin: 0; }
.p-end h2 { font-size: 2rem; }
.rank-big { font-family: var(--display); font-size: 7rem; font-weight: 600; line-height: 1; background: var(--sun-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255, 201, 60, 0.45)); }
.score-big { font-family: var(--display); font-size: 2.1rem; font-weight: 600; }
.medal {
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 4.4rem;
  font-weight: 600;
  background: var(--mg, linear-gradient(180deg, #a78bfa, #6d28d9));
  color: var(--mt, #fff);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.16), 0 0 70px var(--mglow, rgba(124, 58, 237, 0.6)), inset 0 3px 0 rgba(255, 255, 255, 0.5);
  animation: pop-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 8px;
}
.medal .ic { width: 56px; height: 56px; }
.medal.m1 { --mg: linear-gradient(180deg, #ffe17a, #f5a300); --mt: #6b3f00; --mglow: rgba(255, 201, 60, 0.6); }
.medal.m2 { --mg: linear-gradient(180deg, #f4f6fb, #aab4cc); --mt: #3b425c; --mglow: rgba(200, 210, 235, 0.5); }
.medal.m3 { --mg: linear-gradient(180deg, #ffd2ad, #d07a3a); --mt: #5a2a07; --mglow: rgba(230, 140, 80, 0.5); }
.mini-top { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; gap: 8px; }
.mini-top li { display: flex; gap: 10px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); }
.mini-top li.me { background: rgba(255, 201, 60, 0.16); border-color: var(--sun); box-shadow: 0 0 0 1px var(--sun), 0 0 24px rgba(255, 201, 60, 0.25); }
.mini-top li.gap { justify-content: center; padding: 0; background: none; border: 0; color: var(--on-dark-2); font-weight: 900; letter-spacing: 0.3em; line-height: 0.6; }
.mini-top .mt-av { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.mt-rk { flex: none; min-width: 30px; height: 30px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; background: var(--glass-2); }
.mt-rk.r1 { background: linear-gradient(180deg, #ffe17a, #f5a300); color: #6b3f00; }
.mt-rk.r2 { background: linear-gradient(180deg, #f4f6fb, #aab4cc); color: #3b425c; }
.mt-rk.r3 { background: linear-gradient(180deg, #ffd2ad, #d07a3a); color: #5a2a07; }
.mt-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-weight: 800; }
.mini-top b { margin-left: auto; font-family: var(--display); font-weight: 600; }

/* end of game on the phone: ranking + every question with the student's answer */
.p-end { justify-content: flex-start; padding: 14px 0 28px; }
.end-sec { width: 100%; max-width: 480px; margin-top: 22px; text-align: left; }
.end-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; font-size: 1.25rem; }
.end-sec h3 > .ic { color: var(--sun); }
.rv-score { margin-left: auto; padding: 0.25em 0.8em; border-radius: 999px; background: var(--glass-2); font-family: 'Nunito', sans-serif; font-size: 0.85rem; font-weight: 900; }
.me-line { margin: 10px 4px 0; text-align: center; color: var(--on-dark-2); font-weight: 800; }
.review { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rv { padding: 12px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line); border-left: 5px solid var(--rv, rgba(255, 255, 255, 0.25)); }
.rv.good { --rv: #22c55e; }
.rv.bad { --rv: #f43f5e; }
.rv.skip { --rv: #94a3b8; }
.rv-head { display: flex; align-items: flex-start; gap: 10px; }
.rv-n { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 0.9rem; background: var(--glass-2); }
.rv-q { flex: 1; min-width: 0; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.rv-mark { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--rv); color: #fff; }
.rv-mark .ic { width: 16px; height: 16px; stroke-width: 3.2; }
.rv-line { margin-top: 8px; padding-left: 36px; display: grid; gap: 1px; font-weight: 700; overflow-wrap: anywhere; }
.rv-line small { color: var(--on-dark-2); font-size: 0.74rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; }
.rv-line.right { color: #86efac; }
.end-sec .loading { font-size: 1rem; margin: 10px auto; }
.end-sec .loading .spinner { width: 22px; height: 22px; border-width: 3px; }

/* ---------- text review (doc): editor ---------- */

.doc-edit { gap: 10px; }
.doc-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.sec-list { display: grid; gap: 10px; width: 100%; }
.sec-row { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 10px; border-radius: 16px; background: var(--surface-2); }
.sec-n { flex: none; width: 30px; height: 30px; margin-top: 4px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #fff; background: var(--c0); }
.sec-fields { flex: 1; min-width: 0; display: grid; gap: 6px; }
.sec-fields .sec-h { background: #fff; font-family: var(--display); font-weight: 700; }
.sec-tools { display: grid; grid-template-columns: repeat(5, 32px); gap: 2px; flex: none; }
.sec-tools .icon-btn { width: 32px; height: 32px; }
.sec-tools .icon-btn .ic { width: 17px; height: 17px; }
.drop { display: grid; justify-items: center; gap: 4px; padding: 22px 16px; border: 2px dashed #c9c2f5; border-radius: 18px; background: #f7f5ff; text-align: center; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.drop:hover, .drop.over { background: #efeaff; border-color: var(--violet); }
.drop-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--violet); color: #fff; margin-bottom: 4px; }
.drop-ic .ic { width: 24px; height: 24px; }
.drop b { font-family: var(--display); font-size: 1.1rem; color: var(--ink); }
.drop span { font-size: 0.88rem; color: var(--ink-2); }
.drop-busy { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; color: var(--ink-2); }
.drop-busy .spinner { width: 22px; height: 22px; border-width: 3px; border-color: var(--surface-3); border-top-color: var(--violet); }
.or-line { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; color: var(--ink-2); font-size: 0.85rem; font-weight: 800; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* "Dosyadan soru ekle" window */
.fq .modal-box { gap: 12px; padding-bottom: 0; }
.fq .modal-actions { position: sticky; bottom: 0; z-index: 2; margin: 4px -26px 0; padding: 14px 26px 20px; background: var(--surface); border-top: 1px solid var(--line); }
.fq-src-box { display: grid; gap: 8px; }
.fq-src-box .drop { padding: 18px 16px; }
.fq-paste-btn { justify-self: center; }
.fq-paste { display: grid; gap: 8px; }
.fq-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.fq-source { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 12px; border-radius: 16px; background: #f7f5ff; border: 1px solid #e4defd; }
.fq-source .btn { margin-left: auto; }
.fq-src-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--violet); color: #fff; }
.fq-src-ic .ic { width: 21px; height: 21px; }
.fq-src-name { flex: 1 1 180px; min-width: 0; display: grid; }
.fq-src-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fq-src-name small { color: var(--ink-2); font-weight: 800; }
.fq-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface-2); }
.fq-tab { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 6px; min-height: 46px; padding: 6px 8px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 0.86rem; font-weight: 900; line-height: 1.15; color: var(--ink-2); cursor: pointer; text-align: center; }
.fq-tab .ic { width: 17px; height: 17px; flex: none; }
.fq-tab:hover { background: var(--surface-3); }
.fq-tab[aria-selected="true"] { background: #fff; color: var(--violet); box-shadow: 0 2px 8px rgba(20, 24, 58, 0.14); }
.fq-tab .n { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--ink); font-size: 0.74rem; }
.fq-tab[aria-selected="true"] .n { background: #ede9fe; color: var(--violet); }
.fq-tab .n.soon { background: #fef3c7; color: #b45309; }
.fq-tab.soon:not([aria-selected="true"]) { color: #8a90ad; }
.fq-panel { display: grid; gap: 10px; min-height: 180px; align-content: start; }
.fq-empty { display: grid; justify-items: center; gap: 6px; padding: 26px 16px; text-align: center; border-radius: 18px; background: var(--surface-2); }
.fq-empty-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #fff; color: var(--violet); box-shadow: 0 2px 8px rgba(20, 24, 58, 0.1); }
.fq-empty-ic .ic { width: 24px; height: 24px; }
.fq-empty b { font-family: var(--display); font-size: 1.1rem; }
.fq-empty p { max-width: 58ch; font-size: 0.88rem; }
.fq-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; color: var(--ink-2); font-size: 0.92rem; }
.fq-bar b { color: var(--ink); }
.fq-bar-btns { display: flex; gap: 6px; }
.note.warn .ic { color: var(--warn); }
.note.draft { background: #fff7e6; color: #7c4a03 !important; border: 1px solid #fde3a7; }
.note.draft .ic { color: #d97706; }
.note.draft b { color: #7c4a03; }
.fq-list { display: grid; gap: 8px; }
.fq-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line); background: #fff; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.fq-item:hover { border-color: #c9c2f5; }
.fq-item.on { border-color: var(--violet); background: #faf8ff; }
.fq-item input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--violet); }
.fq-body { flex: 1; min-width: 0; display: grid; gap: 7px; }
.fq-q { margin: 0; color: var(--ink) !important; font-weight: 800; line-height: 1.35; }
.fq-num { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-right: 8px; padding: 0 6px; border-radius: 8px; background: var(--surface-3); color: var(--ink-2); font-size: 0.8rem; font-weight: 900; vertical-align: 1px; }
.fq-opts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 8px; }
.fq-opt { display: flex; align-items: center; gap: 7px; padding: 4px 8px 4px 4px; border-radius: 10px; background: var(--surface-2); font-size: 0.88rem; color: var(--ink-2); }
.fq-opt > span:nth-child(2) { flex: 1; min-width: 0; }
.fq-opt.ok { background: #dcfce7; color: #14532d; font-weight: 900; }
.fq-opt .ic { width: 16px; height: 16px; flex: none; color: var(--ok); stroke-width: 3; }
.fq-l { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--c); color: #fff; font-size: 0.74rem; font-weight: 900; }
.fq-miss { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--warn) !important; font-size: 0.84rem; font-weight: 800; }
.fq-miss .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.fq-tag { justify-self: start; padding: 2px 9px; border-radius: 999px; background: #fef3c7; color: #b45309; font-size: 0.74rem; font-weight: 900; }
.fq-from { margin: 0; font-size: 0.8rem; color: var(--ink-2); }
.fq-steps { list-style: none; counter-reset: fq; margin: 0; padding: 0; display: grid; gap: 10px; }
.fq-steps > li { counter-increment: fq; position: relative; display: grid; gap: 9px; padding: 14px 14px 14px 54px; border-radius: 16px; background: var(--surface-2); }
.fq-steps > li::before { content: counter(fq); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--violet); color: #fff; font-family: var(--display); font-weight: 700; }
.fq-steps > li > b { font-family: var(--display); font-size: 1.05rem; line-height: 1.6; }
.fq-steps .seg { background: #fff; }
.fq-steps .seg-btn[aria-pressed="true"] { background: var(--violet); color: #fff; }
.fq-opts-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.fq-opts-row > div, .fq-field { display: grid; gap: 4px; }
.fq-lbl { font-size: 0.8rem; font-weight: 900; color: var(--ink-2); }
.fq-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.fq-check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--violet); }
.fq-check span { display: grid; }
.fq-check small { color: var(--ink-2); font-weight: 700; }
.fq-check.off { cursor: default; opacity: 0.7; }
.fq-details summary { cursor: pointer; font-size: 0.86rem; font-weight: 900; color: var(--violet); }
.fq-prompt { margin-top: 8px; width: 100%; font-size: 0.8rem; }

/* "Yapay zekâ ile hazırla" (aibridge.js) and its button in the editor */
.btn.ai-btn { --b: linear-gradient(135deg, #7c3aed, #db2777); --bt: #fff; --be: #5b21b6; }
.btn.ai-btn .ic { width: 1.15em; height: 1.15em; }
.aib-head { display: flex; align-items: flex-start; gap: 12px; }
.aib-head h2 { margin: 0 0 4px; }
.aib-head p { margin: 0; }
.aib-head-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; }
.aib-head-ic .ic { width: 24px; height: 24px; }
.aib-ask { font-size: 1.08rem; font-weight: 800; }
.aib-sites .btn { flex: 1 1 130px; }
.aib-answer { width: 100%; font-size: 0.85rem; }
.fq-tag.aib-tag { background: #ede9fe; color: var(--violet); }
.fq-tag.aib-tag.info { background: #dbeafe; color: #1d4ed8; }
.aib-info { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--ink-2); font-weight: 700; font-size: 0.9rem; }
.aib-note { margin: -2px 0 0; }
.aib-file { padding: 8px 10px; border-radius: 12px; background: #fff; }
.aib-file .ic { width: 18px; height: 18px; color: var(--violet); }
.aib-file .spinner { width: 18px; height: 18px; border-width: 3px; }
.aib-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.aib-kind { display: inline-flex; align-items: center; gap: 5px; padding: 0.42em 0.85em; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font: inherit; font-weight: 800; font-size: 0.86rem; cursor: pointer; }
.aib-kind .ic { width: 15px; height: 15px; }
.aib-kind[aria-pressed="true"] { border-color: var(--violet); background: #f3efff; color: var(--violet); }
.aib-eq { color: var(--violet); font-weight: 900; }
.aib-accept { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.aib-accept b { color: var(--ink); }
.fq-tag.aib-tag.t-order, .fq-tag.aib-tag.t-match, .fq-tag.aib-tag.t-write { background: #dcfce7; color: #15803d; }
.fq-tag.aib-tag.t-open, .fq-tag.aib-tag.t-poll { background: #fef3c7; color: #b45309; }
.fq-soon { display: flex; gap: 16px; padding: 18px; border-radius: 18px; border: 2px dashed #e5c97a; background: linear-gradient(180deg, #fffbeb, #fff7e0); }
.fq-soon-ic { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--sun-grad); color: #3b2400; box-shadow: 0 4px 0 var(--sun-edge); }
.fq-soon-ic .ic { width: 26px; height: 26px; }
.fq-soon-body { display: grid; gap: 8px; justify-items: start; }
.fq-soon-body b { font-family: var(--display); font-size: 1.15rem; }
@media (max-width: 640px) {
  .fq-tabs { grid-template-columns: 1fr 1fr; }
  .fq-steps > li { padding-left: 14px; padding-top: 48px; }
  .fq-soon { flex-direction: column; }
}
@media (max-width: 480px) {
  .fq .modal-box { padding: 20px 16px 0; }
  .fq .modal-actions { margin: 4px -16px 0; padding: 12px 16px 16px; }
  .fq-opts { grid-template-columns: 1fr; }
  .fq-item { padding: 10px; gap: 10px; }
  .fq-tab { font-size: 0.8rem; }
}
.sec-fields .sec-t { width: 100%; background: #fff; border: 2px solid transparent; border-radius: 12px; padding: 0.55em 0.8em; font-weight: 600; font-size: 0.95rem; line-height: 1.45; resize: vertical; field-sizing: content; min-height: 3.2em; max-height: 14em; }

/* ---------- text review (doc): board ---------- */

.host-doc { position: relative; height: 100vh; height: 100dvh; min-height: 0; }
.sec-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; flex: none; }
.sec-tabs::-webkit-scrollbar { display: none; }
.sec-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 6px;
  border-radius: 14px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  color: var(--on-dark-2);
  font: inherit;
  font-weight: 800;
  font-size: clamp(0.85rem, 1.05vw, 1rem);
  cursor: pointer;
  max-width: 260px;
  transition: background 0.15s, color 0.15s;
}
.sec-tab:hover { background: var(--glass-2); color: #fff; }
.st-i { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--display); background: var(--glass-2); }
.st-h { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-n { flex: none; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 0.8em; background: var(--glass-2); color: var(--on-dark-2); }
.sec-tab.has .st-n { background: var(--sun); color: #3b2400; }
.sec-tab.on { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.5); }
.sec-tab.on .st-i { background: var(--violet); color: #fff; }

.doc-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.7fr); gap: clamp(12px, 1.6vw, 22px); }
.doc-card { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding: clamp(16px, 1.8vw, 26px); border-top: 6px solid var(--violet); }
.doc-no { font-size: 0.85rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); }
.doc-card h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 2.4vw, 2.3rem); font-weight: 700; }
.doc-body { white-space: pre-wrap; font-size: clamp(0.98rem, 1.3vw, 1.3rem); line-height: 1.55; font-weight: 600; color: #2b3054; overflow-wrap: anywhere; }

.cm-area { position: relative; min-height: 0; overflow: auto; padding: 2px 4px 12px 2px; }
.cm-wall { columns: 3 230px; column-gap: 14px; }
.cm-card {
  break-inside: avoid;
  margin: 0 0 14px;
  padding: 12px 14px 14px;
  border-radius: 18px;
  border-top: 5px solid var(--c);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.7);
  cursor: zoom-in;
  animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.cm-card header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cm-av { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-size: 1rem; }
.cm-card header b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c); font-weight: 900; }
.cm-card p { margin: 0; font-size: clamp(1rem, 1.25vw, 1.25rem); font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.cm-hide { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: #a3a9c6; cursor: pointer; opacity: 0; transition: opacity 0.15s, background 0.15s; }
.cm-hide .ic { width: 18px; height: 18px; }
.cm-card:hover .cm-hide { opacity: 1; }
.cm-hide:hover { background: #ffe4e9; color: var(--bad); }
.cm-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; color: var(--on-dark-2); border: 2px dashed var(--glass-line); border-radius: 24px; }
.cm-empty p { margin: 0; font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 700; color: #fff; }
.cm-empty .orb { color: var(--sun); }

.cm-focus { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 4vw; background: rgba(6, 5, 28, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in 0.2s ease-out; cursor: zoom-out; }
.cm-big { width: min(1000px, 100%); padding: clamp(24px, 3vw, 44px); border-radius: 30px; border-top: 10px solid var(--c); background: #fff; color: var(--ink); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); animation: pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.cm-big header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: clamp(1.1rem, 1.8vw, 1.6rem); }
.cm-big .cm-av { width: 52px; height: 52px; font-size: 1.6rem; }
.cm-big header b { color: var(--c); font-weight: 900; }
.cm-sec { margin-left: auto; padding: 0.3em 0.9em; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 0.75em; font-weight: 800; }
.cm-big p { margin: 0; font-family: var(--display); font-size: clamp(1.6rem, 3.2vw, 3rem); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.cm-big footer { margin-top: 18px; color: #a3a9c6; font-size: 0.9rem; font-weight: 700; }

/* ---------- text review (doc): phone ---------- */

.p-doc { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.sec-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px 4px; }
.sec-chips::-webkit-scrollbar { display: none; }
.sec-chip { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--on-dark-2); font: inherit; font-weight: 800; font-size: 0.9rem; cursor: pointer; }
.sec-chip.on { background: #fff; color: var(--ink); border-color: #fff; }
.sec-chip.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgba(255, 201, 60, 0.3); animation: blink 1.4s infinite; }
.sc-n { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: none; place-items: center; font-size: 0.72rem; background: var(--ok); color: #fff; }
.sec-chip.done .sc-n { display: grid; }
.p-q-text.p-doc-card { text-align: left; padding-top: 24px; }
.p-q-text.p-doc-card .p-q-badge span { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.doc-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; font-size: 1.25rem; }
.doc-h .doc-no { padding: 2px 8px; border-radius: 8px; background: #ede9fe; font-size: 0.75rem; letter-spacing: 0.04em; }
.live-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #fff3c4; color: #7a4b00; font-family: 'Nunito', sans-serif; font-size: 0.72rem; font-weight: 900; }
.live-tag .ic { width: 13px; height: 13px; }
.doc-t { white-space: pre-wrap; max-height: 34vh; overflow: auto; font-family: 'Nunito', sans-serif; font-size: 0.98rem; font-weight: 700; line-height: 1.5; color: #2b3054; }
.cm-form { display: grid; gap: 10px; }
.cm-box { position: relative; }
.cm-in { font-family: 'Nunito', sans-serif; font-size: 1.02rem; line-height: 1.4; resize: none; padding-bottom: 1.7em; }
.cm-count { position: absolute; right: 12px; bottom: 8px; font-size: 0.75rem; font-weight: 800; color: #9aa1bf; }
.my-cm-box h4 { margin: 4px 4px 8px; font-size: 0.95rem; color: var(--on-dark-2); }
.my-cm { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.my-cm li { display: flex; align-items: flex-start; gap: 8px; padding: 10px 6px 10px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); }
.my-cm p { flex: 1; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.my-cm .icon-btn { width: 32px; height: 32px; color: var(--on-dark-2); }
/* whole document first (phone) */
.sec-view { display: flex; flex-direction: column; gap: 12px; }
.sec-chip.doc-chip { color: #fff; border-color: rgba(255, 201, 60, 0.5); }
.sec-chip.doc-chip .ic { width: 15px; height: 15px; color: var(--sun); }
.sec-chip.doc-chip.on { color: var(--ink); }
.sec-chip.doc-chip.on .ic { color: var(--violet); }
.doc-whole { display: flex; flex-direction: column; gap: 12px; }
.dw-head { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.dw-head > .ic { width: 28px; height: 28px; color: var(--sun); }
.dw-head b { display: block; font-family: var(--display); font-size: 1.2rem; line-height: 1.2; }
.dw-head span { font-size: 0.82rem; color: var(--on-dark-2); }
.dw-pages { display: grid; gap: 10px; }
.dw-pages img { display: block; width: 100%; height: auto; border-radius: 10px; background: #fff; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.7); }
.dw-flow { padding: 18px 16px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.7); }
.dw-flow h4 { margin: 14px 0 4px; padding-bottom: 3px; border-bottom: 2px solid #e4def9; font-family: var(--display); font-size: 1rem; color: var(--violet); text-transform: uppercase; letter-spacing: 0.04em; }
.dw-flow h4:first-child { margin-top: 0; }
.dw-flow p { margin: 0; white-space: pre-wrap; font-size: 0.92rem; font-weight: 600; line-height: 1.45; color: #2b3054; }
.dw-hint { margin: 2px 4px 0; text-align: center; color: var(--on-dark-2); font-size: 0.9rem; font-weight: 700; }

/* whole document first (board) */
.doc-main.whole { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); }
.doc-pages { display: grid; gap: 14px; }
.doc-pages img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.doc-flow h3 { margin: 16px 0 4px; font-size: 1.15em; color: var(--violet); }
.doc-flow h3:first-child { margin-top: 0; }
.doc-flow p { margin: 0; white-space: pre-wrap; }

/* teacher: "show the whole document first" */
.full-toggle { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 14px; background: #f6f3ff; border: 1px solid #e4def9; cursor: pointer; }
.full-toggle input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--violet); flex: none; }
.full-toggle > span:not(.page-thumbs) { flex: 1; display: grid; gap: 2px; }
.full-toggle b { font-weight: 900; }
.full-toggle small { color: var(--ink-2); font-weight: 700; line-height: 1.35; }
/* Oyun ayarları in the editor's side column */
.play-set { display: grid; gap: 8px; }
/* results: what to teach again, who may need help */
.res-follow .card-head h2, .hw-roster .card-head h2 { display: inline-flex; align-items: center; gap: 8px; }
.follow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.follow-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.follow-list .fl-t { flex: 1; min-width: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.follow-list .fl-pct { flex: none; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.follow-list .fl-pct.bad { color: var(--bad); }
.follow-list .av { flex: none; }
/* the phone's name box and its 🎲 (a ready-made name, nick.js) */
.name-row { display: flex; gap: 8px; }
.name-row .input { flex: 1; min-width: 0; }
.name-dice { flex: none; padding: 0 16px; font-size: 1.5rem; }
.lobby-play { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: -6px; }
.play-toggle { padding: 10px 12px; background: rgba(255, 255, 255, 0.06); border-color: var(--glass-line); color: #fff; }
.play-toggle:has(input:checked) { background: rgba(124, 58, 237, 0.28); border-color: rgba(167, 139, 250, 0.6); }
.play-toggle small { font-size: 0.8rem; color: var(--on-dark-2); }
.page-thumbs { display: flex; gap: 6px; flex: none; }
.page-thumbs img { height: 64px; border-radius: 4px; border: 1px solid var(--line); background: #fff; }

/* QR scan button and camera view */
.card .btn.qr-btn:not(.primary) { --b: #f1eaff; --bt: var(--violet); --be: #d6c8fb; }
.qr-btn .ic { width: 1.3em; height: 1.3em; }
.qr-scan { position: fixed; inset: 0; z-index: 120; background: #000; display: grid; place-items: center; overflow: hidden; }
.qr-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qr-frame { position: relative; width: min(70vw, 300px); aspect-ratio: 1; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.45); border-radius: 24px; }
.qr-frame i { position: absolute; width: 44px; height: 44px; border: 5px solid var(--sun); }
.qr-frame i:nth-child(1) { left: -2px; top: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 24px; }
.qr-frame i:nth-child(2) { right: -2px; top: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 24px; }
.qr-frame i:nth-child(3) { left: -2px; bottom: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 24px; }
.qr-frame i:nth-child(4) { right: -2px; bottom: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 24px; }
.qr-top { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--display); font-size: 1.2rem; }
.qr-top b { flex: 1; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.qr-msg { position: absolute; left: 16px; right: 16px; bottom: max(28px, env(safe-area-inset-bottom)); margin: 0; padding: 12px 16px; border-radius: 16px; background: rgba(14, 12, 52, 0.85); color: #fff; text-align: center; font-weight: 800; }
.qr-scan.err .qr-frame { display: none; }
.qr-scan.err .qr-msg { top: 50%; bottom: auto; transform: translateY(-50%); }

.rv-cms { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.rv-cms li { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); font-weight: 700; }
.rv-cms b { display: block; font-size: 0.75rem; color: var(--sun); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- panel: top bar, account menu ---------- */

.card, dialog.modal { color-scheme: light; }
.panel-top { position: relative; z-index: 20; }
.tabs { display: flex; gap: 4px; margin-left: 6px; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 0.55em 0.95em; border-radius: 12px; color: var(--on-dark-2); text-decoration: none; font-weight: 800; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.tab .ic { width: 18px; height: 18px; }
.tab:hover { background: var(--glass); color: #fff; }
.tab.on { background: rgba(255, 255, 255, 0.15); color: #fff; box-shadow: inset 0 0 0 1px var(--glass-line); }
.tab.on .ic { color: var(--sun); }

.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--c, linear-gradient(180deg, #8b5cf6, #6d28d9)); color: #fff; font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; line-height: 1; padding-top: 2px; }
.avatar.big { width: 44px; height: 44px; font-size: 1.05rem; }
.avatar.xl { width: 64px; height: 64px; font-size: 1.5rem; }
.avatar.sq { width: 46px; height: 46px; border-radius: 14px; font-size: 1.1rem; }
.avatar.sq.big { width: 58px; height: 58px; border-radius: 18px; font-size: 1.35rem; }

.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass-2); color: #fff; font: inherit; font-weight: 800; cursor: pointer; max-width: 240px; }
.acct-btn:hover { background: rgba(255, 255, 255, 0.2); }
.acct-btn > .ic { width: 16px; height: 16px; opacity: 0.8; }
.acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: min(310px, 92vw); padding: 8px; display: grid; gap: 2px; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 70px rgba(4, 4, 30, 0.55); animation: fade-in 0.15s ease-out; }
.acct-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.acct-head > div { min-width: 0; display: grid; gap: 1px; }
.acct-head b { font-size: 1.02rem; overflow-wrap: anywhere; }
.acct-head span { font-size: 0.85rem; color: var(--ink-2); overflow-wrap: anywhere; }
.acct-head small { font-size: 0.8rem; font-weight: 900; color: var(--violet); }
.acct-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; font-weight: 800; text-align: left; text-decoration: none; cursor: pointer; }
.acct-item:hover { background: var(--surface-2); }
.acct-item .ic { width: 18px; height: 18px; color: var(--ink-2); }
.acct-item.danger, .acct-item.danger .ic { color: var(--bad); }
.acct-pop .install { justify-items: stretch; gap: 2px; }
.acct-pop .ios-tip { max-width: none; margin: 2px 4px; background: var(--surface-2); border: 0; color: var(--ink-2); font-size: 0.82rem; }
.acct-pop .ios-tip b { color: var(--ink); }

.lic-chip { display: inline-flex; align-items: center; gap: 6px; padding: 0.45em 0.85em; border-radius: 999px; font-size: 0.86rem; font-weight: 900; text-decoration: none; white-space: nowrap; }
.lic-chip .ic { width: 16px; height: 16px; }
.lic-chip.soon { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.45); }
.lic-chip.expired, .lic-chip.off, .lic-chip.none { background: rgba(225, 29, 72, 0.22); color: #fda4af; border: 1px solid rgba(251, 113, 133, 0.45); }

.lic-banner .lb-text { flex: 1; min-width: 220px; }
.lic-banner.expired, .lic-banner.off, .lic-banner.none { background: linear-gradient(90deg, rgba(225, 29, 72, 0.3), rgba(225, 29, 72, 0.08)); border-color: rgba(251, 113, 133, 0.5); }
.lic-banner.expired > .ic, .lic-banner.off > .ic { color: #fda4af; }
.lic-banner .contact-mini { order: 5; flex-basis: 100%; padding-left: 34px; color: var(--on-dark-2); }
.lic-banner .contact-lines { justify-content: flex-start; }

.section-title .st-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; align-self: center; }

/* contact details */
.contact-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; font-weight: 800; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines .ic { width: 16px; height: 16px; color: var(--sun); }
.card .contact-lines, .modal .contact-lines, .login-msg .contact-lines { justify-content: flex-start; }
.card .contact-lines a, .modal .contact-lines a, .login-msg .contact-lines a { color: var(--violet); }
.card .contact-lines .ic, .modal .contact-lines .ic, .login-msg .contact-lines .ic { color: var(--violet); }
.contact-box { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); margin-top: 12px; }
.contact-box p, .contact-mini p { margin: 0; }
.contact-mini { display: grid; gap: 4px; margin-top: 8px; }

.legal-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 10px; font-size: 0.82rem; font-weight: 700; color: var(--on-dark-2); opacity: 0.85; }
.legal-foot a { color: inherit; }

/* ---------- forms ---------- */

.stack { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; text-align: left; }
.field-label { font-size: 0.86rem; font-weight: 900; color: var(--ink-2); }
.field-hint { font-size: 0.8rem; font-weight: 700; color: var(--ink-2); opacity: 0.85; }
.field-err { font-size: 0.82rem; font-weight: 800; color: var(--bad); }
.field.bad .input { border-color: #fda4af; }
.field.bad .field-hint { display: none; }
textarea.input { resize: vertical; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid .span2 { grid-column: 1 / -1; }
.form-msg { margin: 0; padding: 10px 14px; border-radius: 14px; background: #ffe4e6; border: 1px solid #fecdd3; color: #9f1239 !important; font-weight: 800; font-size: 0.92rem; }
dialog.modal.wide { width: min(760px, 94vw); }
.modal-box { overflow-wrap: anywhere; }
.note { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2) !important; font-size: 0.86rem; font-weight: 700; }
.note .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--violet); }

.pw-box { position: relative; display: block; }
.pw-box .input { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--ink-2); cursor: pointer; }
.pw-eye:hover { background: var(--surface-2); color: var(--ink); }
.pw-eye .ic { width: 20px; height: 20px; }
.pw-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; font-weight: 800; color: var(--ink-2); }
.pw-rules li { display: inline-flex; align-items: center; gap: 6px; }
.pw-rules .ic { width: 17px; height: 17px; padding: 3px; border-radius: 50%; stroke-width: 3.4; background: var(--surface-3); color: transparent; transition: background 0.15s; }
.pw-rules li.ok { color: var(--ok); }
.pw-rules li.ok .ic { background: var(--ok); color: #fff; }

.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.seg-btn { display: inline-flex; align-items: center; gap: 7px; padding: 0.55em 1.1em; border: 0; border-radius: 11px; background: none; font: inherit; font-weight: 900; color: var(--ink-2); cursor: pointer; }
.seg-btn .ic { width: 17px; height: 17px; }
.seg-btn[aria-pressed="true"] { background: #fff; color: var(--violet); box-shadow: 0 2px 8px rgba(20, 24, 58, 0.14); }
.quick-periods { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -4px; }
.quick-periods > span { font-size: 0.85rem; font-weight: 900; color: var(--ink-2); margin-right: 2px; }

.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0.5em 0.95em; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--on-dark-2); font: inherit; font-size: 0.9rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.chip-btn:hover { background: var(--glass-2); color: #fff; }
.chip-btn[aria-pressed="true"] { background: var(--sun-grad); border-color: transparent; color: #3b2400; }
.chip-btn .n { min-width: 20px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-size: 0.76rem; text-align: center; }
.chip-btn[aria-pressed="true"] .n { background: rgba(59, 36, 0, 0.14); }
.modal .chip-btn { background: var(--surface-2); border-color: transparent; color: var(--ink); font-size: 0.85rem; padding: 0.42em 0.85em; }
.modal .chip-btn:hover { background: var(--surface-3); }

/* ---------- sign-in ---------- */

.login-badge { justify-self: center; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(180deg, #8b5cf6, #6d28d9); color: #fff; box-shadow: 0 4px 0 #4c1d95, 0 12px 24px -10px rgba(109, 40, 217, 0.7); }
.login-badge .ic { width: 28px; height: 28px; }
.login-card > .login-msg.ok { background: #dcfce7; border-color: #86efac; color: #14532d; }
.login-card .pw-rules { margin-top: -2px; }
.login-contact { width: min(420px, 100%); display: grid; gap: 6px; padding: 14px 18px; text-align: center; color: var(--on-dark-2); }
.login-contact p { margin: 0; font-weight: 700; }
.login-contact b { color: #fff; }

.welcome-lic { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.welcome-lic > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.welcome-lic span { font-size: 0.76rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- badges ---------- */

.state { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 900; white-space: nowrap; }
.state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state.active { background: #dcfce7; color: #15803d; }
.state.soon { background: #fef3c7; color: #b45309; }
.state.expired { background: #ffe4e6; color: #be123c; }
.state.off, .state.none { background: #e2e8f0; color: #475569; }
.type-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #ede9fe; color: #6d28d9; font-family: 'Nunito', system-ui, sans-serif; font-size: 0.76rem; font-weight: 900; line-height: 1.2; }
.type-badge .ic { width: 13px; height: 13px; }
.type-badge.kisi { background: #e0f2fe; color: #0369a1; }
.role-badge { display: inline-flex; padding: 2px 9px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); font-size: 0.76rem; font-weight: 900; }
.role-badge.owner { background: #ede9fe; color: #6d28d9; }
.role-badge.super { background: #fff1c2; color: #8a5a00; }

/* ---------- cards used by the panel pages ---------- */

.card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.card-head h2 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.seat-count { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 0.85rem; font-weight: 900; }
.seat-count .ic { width: 15px; height: 15px; }
.seat-count.full { background: #fef3c7; color: #b45309; }
.seat-count.over { background: #ffe4e6; color: #be123c; }

.u-list { list-style: none; margin: 0; padding: 0; display: grid; }
.u-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--line); }
.u-row:first-child { border-top: 0; padding-top: 2px; }
.u-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.u-main b small { font-weight: 700; color: var(--ink-2); }
.u-main > span { font-size: 0.88rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.u-status { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; font-weight: 800; color: var(--ink-2); }
.u-status .ic { width: 13px; height: 13px; }
.u-status.wait { color: #b45309; }
.u-actions { display: flex; gap: 2px; flex: none; }
.users-card > .note { margin-top: 12px; }

.lic-big { display: grid; gap: 2px; margin-bottom: 12px; }
.lic-big b { font-family: var(--display); font-size: 2.3rem; font-weight: 700; line-height: 1.05; }
.lic-big b small { font-family: 'Nunito', system-ui, sans-serif; font-size: 1rem; font-weight: 800; color: var(--ink-2); }
.lic-big span { color: var(--ink-2); font-weight: 700; }
.lic-card.expired .lic-big b, .lic-card.off .lic-big b { color: var(--bad); }
.lic-bar { height: 10px; margin-bottom: 14px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.lic-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #34d399, #16a34a); }
.lic-card.soon .lic-bar i { background: linear-gradient(90deg, #fcd34d, #f59e0b); }
.lic-card.expired .lic-bar i, .lic-card.off .lic-bar i { background: linear-gradient(90deg, #fb7185, #e11d48); }
.lic-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.lic-actions-label { margin-right: 2px; font-weight: 900; color: var(--ink-2); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 0; }
.facts > div { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.facts dt { font-size: 0.76rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-weight: 900; overflow-wrap: anywhere; }
.facts dd a { color: var(--violet); }
.facts.list { grid-template-columns: 1fr; gap: 0; }
.facts.list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-radius: 0; border-top: 1px solid var(--line); background: none; }
.facts.list > div:first-child { border-top: 0; }
.facts.list dd { margin: 0; text-align: right; }

/* ---------- super administrator ---------- */

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (min-width: 1040px) { .stat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.stat { display: grid; justify-items: start; align-content: start; gap: 2px; padding: 16px 18px; border: 0; font: inherit; text-align: left; cursor: default; }
.stat:disabled { opacity: 1; color: var(--ink); }
.stat.click { cursor: pointer; transition: transform 0.15s; }
.stat.click:hover { transform: translateY(-2px); }
.stat b { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1.1; }
.stat > span:not(.stat-ic) { font-weight: 900; }
.stat small { font-size: 0.82rem; font-weight: 700; color: var(--ink-2); }
.stat-ic { width: 36px; height: 36px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 12px; background: #ede9fe; color: #6d28d9; }
.stat-ic .ic { width: 20px; height: 20px; }
.stat-ic.active { background: #dcfce7; color: #15803d; }
.stat-ic.soon { background: #fef3c7; color: #b45309; }
.stat-ic.expired { background: #ffe4e6; color: #be123c; }

.admin-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.search-box { position: relative; flex: 1; min-width: 240px; max-width: 440px; }
.search-box > .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #9aa1bf; pointer-events: none; }
.search-in { padding-left: 44px; border-radius: 999px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }

.org-list { display: grid; gap: 10px; }
.org-act { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-weight: 700; font-size: 0.8rem; }
.org-act .ic { width: 14px; height: 14px; }
.list-note { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; color: var(--on-dark-2); font-size: 0.82rem; font-weight: 700; }
.list-note .ic { width: 16px; height: 16px; flex: none; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 16px 0 4px; }
.pager .chip-btn:disabled { opacity: 0.35; cursor: default; }
.pager-n { min-width: 40px; justify-content: center; }
.pager-info { margin-right: 6px; color: var(--on-dark-2); font-weight: 800; font-size: 0.85rem; }
.pager-gap { color: var(--on-dark-2); font-weight: 900; padding: 0 2px; }
.card .pager .chip-btn { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }
.card .pager .chip-btn:hover { background: var(--surface-3); color: var(--ink); }
.card .pager .chip-btn[aria-pressed="true"] { background: var(--sun-grad); border-color: transparent; color: #3b2400; }
.card .pager-info, .card .pager-gap { color: var(--ink-2); }
.u-note { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; color: var(--ink-2); font-size: 0.8rem; font-weight: 700; }
.u-note .ic { width: 15px; height: 15px; }
.u-games { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: #ede9fe; color: var(--violet); font-size: 0.75rem; font-weight: 900; }
.u-games .ic { width: 12px; height: 12px; }
.u-games.none { background: var(--surface-2); color: var(--ink-2); font-weight: 800; }
.org-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto auto; align-items: center; gap: 18px; padding: 14px 18px; text-decoration: none; transition: transform 0.15s; }
.org-row:hover { transform: translateY(-2px); }
.org-main { min-width: 0; display: grid; gap: 3px; }
.org-main h3 { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 1.15rem; overflow-wrap: anywhere; }
.org-main span { font-size: 0.9rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-col { min-width: 92px; display: grid; justify-items: end; gap: 3px; text-align: right; }
.org-col b { display: inline-flex; align-items: center; gap: 5px; font-family: var(--display); font-size: 1.1rem; font-weight: 700; }
.org-col b .ic { width: 16px; height: 16px; color: var(--ink-2); }
.org-col b.over { color: var(--bad); }
.org-col small { font-size: 0.82rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.org-go { width: 20px; height: 20px; color: var(--ink-2); }

.back-link { display: inline-flex; align-items: center; gap: 6px; margin: 0 4px 12px; color: var(--on-dark-2); text-decoration: none; font-weight: 800; }
.back-link:hover { color: #fff; }
.back-link .ic { width: 18px; height: 18px; }
.org-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 16px 18px; margin-bottom: 18px; }
.org-title { min-width: 0; }
.org-title h1 { margin: 0 0 6px; font-size: 1.6rem; font-weight: 700; overflow-wrap: anywhere; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.col { min-width: 0; display: grid; gap: 18px; }
.org-note { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; }
.org-note b { font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; color: #92400e; }
.org-note p { margin: 4px 0 0; white-space: pre-wrap; font-weight: 700; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.log li { display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: 0.9rem; font-weight: 700; }
.log time { white-space: nowrap; color: var(--ink-2); }
/* one organisation: super administrator (admin.js · adminOrg) and the organisation administrator (myaccount.js · orgView) */
.org-page .contact-box { margin-top: 10px; }
.org-page .org-head { margin-bottom: 12px; }
.org-sum { display: grid; grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.sum-tile { min-width: 0; display: grid; align-content: start; gap: 2px; padding: 11px 14px; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.sum-l { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.sum-tile > b { font-family: var(--display); font-size: 1.35rem; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.sum-tile > b small { font-family: 'Nunito', system-ui, sans-serif; font-size: 0.85rem; font-weight: 800; color: var(--ink-2); }
.sum-tile > small { color: var(--ink-2); font-weight: 700; font-size: 0.78rem; }
.sum-tile.over > b { color: var(--bad); }
.sum-bar { display: block; height: 6px; margin: 4px 0 2px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.sum-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #34d399, #16a34a); }
.sum-tile.lic.soon .sum-bar > i { background: linear-gradient(90deg, #fcd34d, #f59e0b); }
.sum-tile.lic.expired .sum-bar > i, .sum-tile.lic.off .sum-bar > i { background: linear-gradient(90deg, #fb7185, #e11d48); }
.sum-tile.lic.expired > b, .sum-tile.lic.off > b { color: var(--bad); }
.org-grid2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.org-grid2 .col { gap: 12px; }
.card.slim { padding: 14px 16px; border-radius: 20px; }
.card.slim .card-head { margin-bottom: 8px; }
.card.slim .card-head h2 { display: inline-flex; align-items: center; gap: 7px; font-size: 1.02rem; }
.card.slim .card-head h2 .ic { width: 18px; height: 18px; color: var(--violet); }
.card.slim .facts.list > div { padding: 6px 0; font-size: 0.9rem; }
.card.slim .facts.list dt { font-size: 0.7rem; }
.card.slim .log li { font-size: 0.82rem; }
.slim-sub { margin: -2px 0 10px; color: var(--ink-2); font-weight: 800; font-size: 0.88rem; }
.slim-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.slim-l { margin-right: 2px; font-size: 0.78rem; font-weight: 900; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.04em; }
.card .slim-row .chip-btn { background: var(--surface-2); border-color: var(--line); color: var(--ink); padding: 0.4em 0.8em; font-size: 0.85rem; }
.card .slim-row .chip-btn:hover { background: var(--surface-3); }
.log-more { margin-top: 8px; }
.log-more summary { cursor: pointer; color: var(--violet); font-weight: 900; font-size: 0.85rem; }
.log-more .log { margin-top: 8px; }
.org-grid2.one { grid-template-columns: 1fr; }
.org-grid2.one .col.side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.danger-row { display: flex; justify-content: flex-end; margin-top: 14px; }
.danger-link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; border: 0; background: none; color: #fda4af; font: inherit; font-weight: 800; font-size: 0.85rem; cursor: pointer; opacity: 0.8; }
.danger-link:hover { opacity: 1; text-decoration: underline; }
.danger-link .ic { width: 15px; height: 15px; }
@media (max-width: 1000px) { .org-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .org-grid2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .org-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } .org-sum .sum-tile.lic, .org-sum .sum-tile:last-child { grid-column: span 2; } }
.danger-zone { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; background: #fff6f7; box-shadow: none; border: 2px solid #fecdd3; }
.danger-zone > div { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.danger-zone span { font-size: 0.9rem; color: var(--ink-2); }

/* sign-in details shown once */
.cred { display: grid; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--surface-2); }
.cred-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.cred-row:first-child { border-top: 0; }
.cred-label { font-size: 0.82rem; font-weight: 900; color: var(--ink-2); }
.cred-val { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.98rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.cred-val.pw { font-size: 1.3rem; letter-spacing: 0.06em; color: var(--violet); }
.cred-send { display: flex; flex-wrap: wrap; gap: 8px; }
.modal .btn.wa:not(.primary) { --b: linear-gradient(180deg, #34d399, #16a34a); --bt: #fff; --be: #11803a; }

/* ---------- my account ---------- */

.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; align-items: start; }
.profile-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.profile-top p { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; }
.profile-top .ic { width: 16px; height: 16px; }
.name-row { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 10px; }
.name-row .field { flex: 1; }
.pw-card { display: grid; gap: 12px; }
.form-end { display: flex; justify-content: flex-end; }
.help-mini ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-weight: 700; font-size: 0.9rem; color: var(--ink-2); }
.help-mini .ic { display: inline; width: 15px; height: 15px; vertical-align: -2px; }

/* ---------- privacy page ---------- */

.legal { max-width: 820px; margin: 0 auto; padding: 18px 16px 60px; }
.legal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.legal-card { padding: 28px clamp(18px, 4vw, 40px); line-height: 1.6; }
.legal-card h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 4vw, 2rem); }
.legal-card h2 { margin: 24px 0 6px; font-size: 1.15rem; }
.legal-card p, .legal-card li { font-weight: 600; color: #2b3056; }
.legal-card p { margin: 0 0 8px; }
.legal-card ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- two-answer questions (Evet / Hayır …) ---------- */

.pair-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; margin-bottom: 2px; }
.pair-label { margin-right: 2px; font-size: 0.85rem; font-weight: 900; color: var(--ink-2); }
.pair-chip { padding: 0.38em 0.8em; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 0.85rem; font-weight: 800; cursor: pointer; }
.pair-chip:hover { border-color: var(--violet); color: var(--violet); }
.pair-chip.on { background: #ede9fe; border-color: var(--violet); color: #5b21b6; }

.tile .letter .ic, .chosen .letter .ic, .opt-row .letter .ic { width: 66%; height: 66%; }
.tiles.pair .tile { flex-direction: column; justify-content: center; text-align: center; }
.tiles.pair .tile .letter { font-size: 1.1em; }
.host-q .tiles.pair .tile { min-height: clamp(110px, 22vh, 260px); font-size: clamp(1.5rem, 3vw, 2.8rem); }
.p-tiles.pair .tile { min-height: 150px; font-size: 1.4rem; }
.bar-num small { display: block; font-family: 'Nunito', system-ui, sans-serif; font-size: 0.48em; font-weight: 800; opacity: 0.85; }

.pair-chart { width: 100%; display: grid; gap: clamp(12px, 1.6vw, 22px); }
.pc-bar { display: flex; gap: 3px; height: clamp(54px, 8vh, 96px); border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.pc-bar.empty { display: grid; place-items: center; color: var(--on-dark-2); font-weight: 800; }
.pc-bar:not(.empty) { animation: wipe 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.pc-seg { min-width: 58px; display: grid; place-items: center; background: var(--c); color: #fff; font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 2.2rem); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.pc-seg.dim { opacity: 0.45; }
.pc-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pc-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); }
.pc-ic { grid-row: span 2; width: 2.4em; height: 2.4em; display: grid; place-items: center; border-radius: 0.7em; background: var(--c); color: #fff; }
.pc-ic .ic { width: 60%; height: 60%; }
.pc-t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.8rem); font-weight: 600; overflow-wrap: anywhere; }
.pc-item b { grid-row: span 2; grid-column: 3; font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 3rem); font-weight: 700; }
.pc-item small { color: var(--on-dark-2); font-weight: 800; }
.host-rev .pair-chart { margin-bottom: 6px; }
.ok-tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; background: #dcfce7; color: #15803d; font-family: 'Nunito', system-ui, sans-serif; font-size: 0.72rem; font-weight: 900; line-height: 1.3; }
.ok-tag .ic { width: 12px; height: 12px; stroke-width: 3.4; }
.card .pc-bar { height: 46px; border-radius: 12px; background: var(--surface-3); }
.card .pc-bar.empty { color: var(--ink-2); font-size: 0.9rem; }
.card .pc-seg { font-size: 1.15rem; }
.card .pc-item { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border-color: transparent; }
.card .pc-item { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: none; row-gap: 1px; }
.card .pc-ic { grid-row: span 3; }
.card .pc-t { font-size: 1.05rem; overflow-wrap: normal; }
.card .pc-item b { grid-row: auto; grid-column: 2; font-size: 1.35rem; line-height: 1.1; }
.card .pc-item small { color: var(--ink-2); }

/* ---------- horizontal bar charts (results page) ---------- */

.hbars { display: grid; gap: 9px; }
.hb-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(90px, 1.3fr) auto; align-items: center; gap: 10px; }
.hb-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--c, var(--violet)); color: #fff; font-family: var(--display); font-size: 0.85rem; font-weight: 600; }
.hb-mark .ic { width: 62%; height: 62%; }
.hb-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.95rem; font-weight: 800; overflow-wrap: anywhere; }
.hb-track { height: 14px; border-radius: 0 4px 4px 0; background: var(--surface-2); overflow: hidden; }
.hb-track i { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--c, var(--violet)); }
.hb-row.dim .hb-track i, .hb-row.dim .hb-mark { opacity: 0.4; }
.hb-val { min-width: 66px; display: flex; justify-content: flex-end; align-items: baseline; gap: 6px; }
.hb-val b { font-family: var(--display); font-size: 1.1rem; font-weight: 700; }
.hb-val small { font-size: 0.82rem; font-weight: 800; color: var(--ink-2); }
.hbars.one .hb-mark { background: var(--surface-3); color: var(--ink-2); }
.hbars.clamp .hb-row { grid-template-columns: auto minmax(0, 1.5fr) minmax(70px, 1fr) auto; }
.hbars.clamp .hb-label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.9rem; }
.rating-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; }
.rc-avg { display: grid; justify-items: center; padding: 14px 18px; border-radius: 18px; background: #fff7e0; }
.rc-avg b { font-family: var(--display); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.rc-avg span { font-weight: 900; color: var(--ink-2); }
.rc-avg small { font-weight: 800; color: var(--ink-2); }

/* ---------- results page ---------- */

.res-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 18px 20px; margin-bottom: 18px; }
.res-title { flex: 1; min-width: 240px; }
.res-kicker { font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sun); }
.res-title h1 { margin: 2px 0 4px; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; overflow-wrap: anywhere; }
.res-title p { margin: 0; font-weight: 700; color: var(--on-dark-2); }
.res-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.stat-grid.res-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.res-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 26px; }
.rq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.rq-card { display: grid; align-content: start; gap: 12px; break-inside: avoid; }
.rq-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rq-num { padding: 3px 10px; border-radius: 10px; background: var(--ink); color: #fff; font-family: var(--display); font-size: 0.9rem; font-weight: 600; }
.rq-type { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 0.8rem; font-weight: 900; }
.rq-type .ic { width: 14px; height: 14px; }
.rq-card h3 { margin: 0; font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.rq-foot { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.85rem; font-weight: 800; color: var(--ink-2); }
.rank-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.rank-table th { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.74rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.rank-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); font-weight: 800; }
.rank-table th:last-child, .rank-table td:last-child { text-align: right; }
.rank-table tr:last-child td { border-bottom: 0; }
.rank-table .rk { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 9px; background: var(--surface-2); font-family: var(--display); }
.rank-table .top1 .rk { background: linear-gradient(180deg, #ffe17a, #f5a300); color: #6b3f00; }
.rank-table .top2 .rk { background: linear-gradient(180deg, #f4f6fb, #aab4cc); color: #3b425c; }
.rank-table .top3 .rk { background: linear-gradient(180deg, #ffd2ad, #d07a3a); color: #5a2a07; }
.rank-table .av { margin-right: 8px; }
.print-foot { display: none; }

@media (max-width: 860px) {
  .res-two { grid-template-columns: 1fr; }
  .rating-chart { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hb-row { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 4px; }
  .hb-track { grid-column: 1 / -1; order: 5; }
  .pc-legend { grid-template-columns: 1fr; }
  .p-tiles.pair .tile { min-height: 130px; }
}
@media print {
  body { background: #fff !important; color: #111; }
  body::before, body::after { display: none; }
  .panel-top, .back-link, .res-actions, #toast { display: none !important; }
  .page { max-width: none; padding: 0; }
  .res-head { padding: 0 0 8px; background: none; border: 0; color: #111; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .res-title p, .section-title span { color: #444; }
  .res-kicker { color: #6d28d9; }
  .section-title h2 { color: #111; }
  .card { box-shadow: none; border: 1px solid #d7dbe8; break-inside: avoid; }
  .results * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-foot { display: block; margin-top: 16px; font-size: 0.8rem; color: #555; }
  .stat-grid.res-stats { grid-template-columns: repeat(5, 1fr); }
  .rq-grid, .res-two { grid-template-columns: 1fr 1fr; }
}

/* ---------- invite and QR posters ---------- */


.lobby-guide { width: min(1000px, 100%); margin: auto auto 0; padding: clamp(12px, 1.4vw, 20px) clamp(14px, 1.8vw, 24px); display: grid; gap: 12px; }
.lg-head { display: grid; gap: 4px; text-align: center; }
.lg-head b { font-family: var(--display); font-size: clamp(1.15rem, 1.8vw, 1.6rem); font-weight: 700; }
.lg-head span { color: var(--on-dark-2); font-size: clamp(0.92rem, 1.2vw, 1.1rem); font-weight: 700; }
.lg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lg-step { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); text-align: left; }
.lg-n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--sun-grad); color: #3b2400; font-family: var(--display); font-weight: 700; }
.lg-ic { flex: none; padding-top: 3px; color: var(--sun); }
.lg-ic .ic { width: 22px; height: 22px; }
.lg-step b { display: block; font-family: var(--display); font-size: clamp(1rem, 1.4vw, 1.25rem); font-weight: 700; overflow-wrap: anywhere; }
.lg-step div span { display: block; color: var(--on-dark-2); font-size: clamp(0.85rem, 1.05vw, 1rem); font-weight: 700; line-height: 1.35; }
@media (max-height: 780px) {
  .host-lobby .lobby-wait { display: none; }
  .host-lobby .lg-head span { display: none; }
  .host-lobby .lobby-guide { gap: 8px; }
}
@media (max-height: 860px) {
  .lg-step div span { display: none; }
  .lg-step { align-items: center; padding: 10px 12px; }
  .lg-ic { padding-top: 0; }
}

.share-box { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; padding: 14px; border-radius: 18px; background: var(--surface-2); }
.share-box .qr-big { width: 170px; }
.share-info { min-width: 0; display: grid; gap: 2px; }
.share-info .join-label { font-size: 0.76rem; }
.share-pin { margin-bottom: 8px; font-family: var(--display); font-size: 2.4rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.1; }
.share-info code { color: var(--violet); font-size: 0.9rem; font-weight: 700; overflow-wrap: anywhere; }

.bad-code .logo { font-size: 2.6rem; margin-bottom: 6px; }
.bad-code .muted { max-width: 34ch; margin: 0; }
.bad-code .muted b { color: #fff; }
.bad-code .pin-card { width: min(380px, 100%); margin-top: 6px; }
.orb.bad-orb { color: #fb7185; }

.print-sheet { display: none; }

@media (max-width: 860px) {
  .lg-steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .share-box { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body.print-mode { background: #fff !important; }
  body.print-mode::before, body.print-mode::after { display: none !important; }
  body.print-mode > :not(.print-sheet) { display: none !important; }
  body.print-mode .print-sheet { display: block; color: #15183a; }
  .print-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-sheet .logo { color: #15183a; }
  .print-sheet .ps-qr svg { display: block; width: 100%; height: 100%; }
  .ps-poster { height: 268mm; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6mm; text-align: center; }
  .ps-poster .logo.big { font-size: 20mm; }
  .ps-poster h1 { max-width: 175mm; margin: 0; font-family: var(--display); font-size: 12mm; line-height: 1.15; }
  .ps-lead { margin: 0; font-size: 7mm; font-weight: 800; }
  .ps-poster .ps-qr { width: 118mm; height: 118mm; }
  .ps-or { margin: 0; font-size: 6mm; font-weight: 700; color: #3b4064; }
  .ps-pin { font-family: var(--display); font-size: 24mm; font-weight: 700; letter-spacing: 2mm; line-height: 1; }
  .ps-foot { margin: 0; font-size: 4.5mm; font-weight: 700; color: #5d6488; }
  body.print-mode .print-sheet.cards { display: grid; grid-template-columns: 1fr 1fr; }
  .ps-card { height: 90mm; padding: 4mm; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5mm; border: 0.4mm dashed #9aa1bf; text-align: center; break-inside: avoid; }
  .ps-card-head { max-width: 86mm; display: flex; align-items: center; gap: 3mm; font-size: 4.2mm; }
  .ps-card-head .logo { font-size: 6mm; }
  .ps-card-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ps-card .ps-qr { width: 48mm; height: 48mm; }
  .ps-card p { margin: 0; font-size: 3.6mm; font-weight: 700; color: #3b4064; }
  .ps-card .ps-pin { font-size: 11mm; letter-spacing: 1mm; }
}

/* ---------- home page (landing) ---------- */

.landing { max-width: 1160px; margin: 0 auto; padding: 14px 18px 40px; }
.l-nav { position: sticky; top: 10px; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 16px; margin-bottom: 6px; }
.l-nav .logo { font-size: 1.5rem; }
.l-links { display: flex; gap: 2px; margin-left: auto; }
.l-links a { padding: 0.5em 0.8em; border-radius: 12px; color: var(--on-dark-2); font-weight: 800; text-decoration: none; transition: background 0.15s, color 0.15s; }
.l-links a:hover { background: var(--glass); color: #fff; }
.btn.wa { --b: linear-gradient(180deg, #34d399, #16a34a); --bt: #fff; --be: #11803a; }

.l-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); align-items: center; gap: clamp(24px, 4vw, 60px); padding: clamp(24px, 5vw, 70px) 0 clamp(20px, 4vw, 50px); }
.l-kicker { display: inline-block; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun); }
.l-hero h1 { margin: 10px 0 14px; font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.l-hl { background: linear-gradient(90deg, #ffd23f, #ff7a45 60%, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-lead { max-width: 58ch; margin: 0 0 22px; color: var(--on-dark-2); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.6; }
.l-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.l-badges { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--on-dark-2); font-size: 0.92rem; font-weight: 800; }
.l-badges li { display: inline-flex; align-items: center; gap: 6px; }
.l-badges .ic { width: 18px; height: 18px; color: #4ade80; stroke-width: 3; }
.l-join { display: grid; justify-items: center; gap: 16px; }
.l-join .pin-card { width: 100%; max-width: 420px; }

.l-sec { padding: clamp(44px, 6vw, 84px) 0 0; scroll-margin-top: 84px; }
.l-head { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.l-head h2 { margin: 8px 0 10px; font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.1; }
.l-head p { margin: 0; color: var(--on-dark-2); font-size: 1.05rem; line-height: 1.55; }

.l-show { display: grid; grid-template-columns: minmax(0, 1.6fr) auto minmax(0, 0.8fr); align-items: center; gap: clamp(16px, 3vw, 36px); }
.mk-screen { display: grid; gap: 14px; padding: 18px; border-radius: 22px; background: linear-gradient(180deg, #1b1858, #120f42); border: 1px solid var(--glass-line); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8); }
.mk-top { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 900; }
.mk-top span { padding: 4px 10px; border-radius: 999px; background: var(--glass-2); }
.mk-top i { flex: 1; }
.mk-q { padding: 14px 18px; border-radius: 16px; background: #fff; color: var(--ink); text-align: center; font-family: var(--display); font-size: clamp(1rem, 1.8vw, 1.4rem); font-weight: 700; }
.mk-mid { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.mk-timer { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; border: 5px solid var(--sun); font-family: var(--display); font-size: 1.2rem; font-weight: 800; }
.mk-count { display: grid; justify-items: center; font-size: 0.75rem; font-weight: 800; color: var(--on-dark-2); }
.mk-count b { font-family: var(--display); font-size: 1.4rem; color: #fff; }
.mk-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-tile, .mk-pair { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 78%, white), var(--c) 50%, color-mix(in srgb, var(--c) 88%, black)); box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 62%, black); font-family: var(--display); font-weight: 700; }
.mk-tile { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; font-size: clamp(0.95rem, 1.5vw, 1.2rem); }
.mk-tile span { width: 28px; height: 28px; display: grid; place-items: center; flex: none; border-radius: 9px; background: #fff; color: var(--c); font-size: 0.9rem; }
.mk-phone { position: relative; width: 210px; display: grid; gap: 10px; padding: 34px 12px 16px; border-radius: 34px; background: #0b0a2a; border: 8px solid #26234f; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.85); }
.mk-notch { position: absolute; top: 10px; left: 50%; width: 64px; height: 8px; margin-left: -32px; border-radius: 999px; background: #26234f; }
.mk-ph-top { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; font-weight: 900; }
.mk-ph-top b { padding: 2px 8px; border-radius: 999px; background: var(--sun-grad); color: #3b2400; }
.mk-ph-q { padding: 10px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 0.8rem; font-weight: 800; line-height: 1.35; text-align: center; }
.mk-pair { display: grid; justify-items: center; gap: 6px; padding: 18px 10px; border-radius: 16px; }
.mk-pair .ic { width: 30px; height: 30px; padding: 5px; border-radius: 9px; background: #fff; color: var(--c); }
.mk-result { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: var(--shadow-card); }
.mk-result > b { font-family: var(--display); font-size: 1.15rem; }
.mk-bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 0.85rem; font-weight: 800; }
.mk-bar i { grid-column: 1 / -1; order: 3; height: 12px; border-radius: 0 4px 4px 0; background: var(--c); }
.mk-bar em { font-family: var(--display); font-style: normal; }

.l-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.l-type { display: grid; align-content: start; gap: 8px; padding: 22px; transition: transform 0.18s; }
.l-type:hover { transform: translateY(-3px); }
.l-type-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--c); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 65%, black); }
.l-type-ic .ic { width: 26px; height: 26px; }
.l-type h3 { margin: 6px 0 0; font-size: 1.3rem; font-weight: 700; }
.l-type p { margin: 0; color: var(--ink-2); font-weight: 700; line-height: 1.5; }

.l-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.l-steps li { position: relative; display: grid; align-content: start; gap: 8px; padding: 22px 20px; }
.l-step-n { position: absolute; top: 14px; right: 18px; font-family: var(--display); font-size: 2.6rem; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, 0.13); }
.l-step-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--sun-grad); color: #3b2400; box-shadow: 0 4px 0 var(--sun-edge); }
.l-step-ic .ic { width: 24px; height: 24px; }
.l-steps h3 { margin: 6px 0 0; font-size: 1.2rem; font-weight: 700; }
.l-steps p { margin: 0; color: var(--on-dark-2); font-size: 0.95rem; font-weight: 700; line-height: 1.5; }

.l-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.l-feat { display: flex; align-items: flex-start; gap: 14px; padding: 18px 4px; border-top: 1px solid var(--glass-line); }
.l-feat-ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--glass-2); border: 1px solid var(--glass-line); color: var(--sun); }
.l-feat-ic .ic { width: 22px; height: 22px; }
.l-feat h3 { margin: 2px 0 4px; font-size: 1.1rem; font-weight: 700; }
.l-feat p { margin: 0; color: var(--on-dark-2); font-size: 0.95rem; font-weight: 700; line-height: 1.5; }

.l-aud { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.l-aud-item { display: grid; align-content: start; gap: 6px; padding: 18px; }
.l-aud-item .ic { width: 26px; height: 26px; color: var(--sun); }
.l-aud-item b { font-family: var(--display); font-size: 1.1rem; font-weight: 700; }
.l-aud-item span { color: var(--on-dark-2); font-size: 0.92rem; font-weight: 700; line-height: 1.45; }

.l-plans { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.l-plan { display: grid; align-content: start; gap: 8px; padding: 26px; }
.l-plan-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(180deg, #8b5cf6, #6d28d9); color: #fff; box-shadow: 0 4px 0 #4c1d95; }
.l-plan-ic.c1 { background: linear-gradient(180deg, #2dd4bf, #0d9488); box-shadow: 0 4px 0 #115e59; }
.l-plan-ic .ic { width: 28px; height: 28px; }
.l-plan h3 { margin: 6px 0 0; font-size: 1.45rem; font-weight: 700; }
.l-plan > p { margin: 0; color: var(--ink-2); font-weight: 700; }
.l-plan ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.l-plan li { display: flex; align-items: flex-start; gap: 8px; font-weight: 800; }
.l-plan li .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--ok); stroke-width: 3; }
.l-contact-slot { max-width: 900px; margin: 22px auto 0; text-align: center; }
.l-contact { display: grid; justify-items: center; gap: 12px; padding: 22px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); text-align: center; }
.l-contact b { font-family: var(--display); font-size: 1.3rem; }
.l-contact p { margin: 0; color: var(--on-dark-2); font-weight: 700; }
.l-contact-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.l-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.l-faq details { padding: 0; }
.l-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; font-family: var(--display); font-size: 1.12rem; font-weight: 700; list-style: none; cursor: pointer; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary .ic { flex: none; width: 20px; height: 20px; color: var(--ink-2); transition: transform 0.2s; }
.l-faq details[open] summary .ic { transform: rotate(180deg); }
.l-faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); font-weight: 700; line-height: 1.6; }

.l-final { margin-top: clamp(50px, 7vw, 90px); padding: clamp(28px, 4vw, 48px); display: grid; justify-items: center; gap: 12px; text-align: center; background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(219, 39, 119, 0.25)); }
.l-final h2 { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
.l-final p { margin: 0 0 8px; color: var(--on-dark-2); font-weight: 700; }

.l-foot { margin-top: 40px; padding: 26px 4px 10px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 30px; border-top: 1px solid var(--glass-line); color: var(--on-dark-2); }
.l-foot > div { flex: 1; min-width: 240px; }
.l-foot p { max-width: 40ch; margin: 8px 0 0; font-weight: 700; }
.l-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 800; }
.l-foot nav a { color: inherit; }
.l-maker { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 14px 0 0; border-top: 1px solid var(--glass-line); font-weight: 700; }
.l-maker-name b { color: #fff; letter-spacing: 0.06em; }
.l-maker a { display: inline-flex; align-items: center; gap: 6px; color: inherit; font-weight: 800; text-decoration: none; }
.l-maker a:hover { color: #fff; text-decoration: underline; }
.l-maker .ic { width: 16px; height: 16px; color: var(--sun); }
.l-foot small { flex-basis: 100%; font-weight: 700; opacity: 0.8; }

@media (max-width: 1000px) {
  .l-links { display: none; }
  .l-nav .btn { margin-left: auto; }
  .l-types, .l-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-aud { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .l-show { grid-template-columns: minmax(0, 1fr) auto; }
  .mk-result { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .l-nav { top: 6px; }
  .l-hero { grid-template-columns: 1fr; padding-top: 14px; }
  .l-join { order: -1; }
  .l-hero-text { text-align: center; }
  .l-lead { margin-inline: auto; }
  .l-cta, .l-badges { justify-content: center; }
  .l-types, .l-steps, .l-feats, .l-plans { grid-template-columns: 1fr; }
  .l-aud { grid-template-columns: 1fr 1fr; }
  .l-show { grid-template-columns: 1fr; justify-items: center; }
  .mk-screen { width: 100%; }
}

/* ---------- information requests ---------- */

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 0.9rem; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--violet); }
.consent a { color: var(--violet); font-weight: 800; }
.n-badge { min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--glass-2); color: #fff; font-size: 0.76rem; font-weight: 900; line-height: 1; }
.n-badge.on { background: #e11d48; color: #fff; }
.lead-banner { text-decoration: none; color: inherit; }
.lead-banner .btn { pointer-events: none; }
.lead-list { display: grid; gap: 12px; }
.lead { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 20px; }
.lead.done { opacity: 0.78; }
.lead-main { flex: 1; min-width: 260px; display: grid; gap: 6px; }
.lead-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lead-head h3 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.lead-head time { font-size: 0.85rem; font-weight: 700; color: var(--ink-2); }
.lead-contact { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lead-contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--violet); font-weight: 800; text-decoration: none; }
.lead-contact a:hover { text-decoration: underline; }
.lead-contact .ic { width: 16px; height: 16px; }
.lead-note { margin: 2px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--ink); font-weight: 700; white-space: pre-wrap; overflow-wrap: anywhere; }
.lead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card .btn.wa:not(.primary) { --b: linear-gradient(180deg, #34d399, #16a34a); --bt: #fff; --be: #11803a; }

/* ---------- question pictures and videos ---------- */

.media-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 16px; background: var(--surface-2); }
.media-item .q-thumb { height: 64px; max-width: 120px; object-fit: cover; }
.media-info { display: grid; gap: 1px; min-width: 0; }
.media-info b { font-size: 0.9rem; }
.media-info span { font-size: 0.8rem; font-weight: 700; color: var(--ink-2); }
.vid-thumb { position: relative; flex: none; width: 114px; height: 64px; border-radius: 12px; overflow: hidden; background: #000; }
.vid-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vid-thumb .ic { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 6px; border-radius: 50%; background: rgba(225, 29, 72, 0.92); color: #fff; }
.vid-preview:empty { display: none; }
.vid-preview img { display: block; width: min(320px, 100%); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 6px 18px rgba(20, 24, 58, 0.18); }

.host-intro .q-text { margin-bottom: 0; }
.video-box { flex: 1; min-height: 0; display: grid; place-items: center; }
.video-box iframe { width: min(100%, calc((100vh - 260px) * 16 / 9)); aspect-ratio: 16 / 9; border: 0; border-radius: 20px; background: #000; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85); }
.p-intro-q { max-width: 32ch; margin: 4px auto 0; padding: 12px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line); font-weight: 800; line-height: 1.4; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .host-doc { height: auto; }
  .doc-main { grid-template-columns: 1fr; }
  .doc-card { max-height: 40vh; }
  .join-panel { flex-direction: column; align-items: center; text-align: center; }
  .join-info { justify-content: center; }
  .join-sep { display: none; }
}

@media (max-width: 720px) {
  .q-mid { grid-template-columns: auto 1fr; }
  .q-mid .ans-count { display: none; }
  .rating-rev { grid-template-columns: 1fr; }
  .host-tiles.n5, .host-tiles.n6 { grid-template-columns: 1fr 1fr; }
  .host-bar .hint { display: none; }
  .topbar h1 { display: none; }
  .topbar { padding: 10px; gap: 8px; }
  .topbar .btn { padding: 0.55em 0.8em; font-size: 0.92rem; }
  .add-btn { padding: 0.45em 0.7em 0.45em 0.45em; font-size: 0.9rem; }
  .sec-row { flex-wrap: wrap; }
  .sec-fields { flex-basis: calc(100% - 40px); }
  .sec-tools { margin-left: 38px; }
  .deco i { scale: 0.6; }
  .deco i:nth-child(3), .deco i:nth-child(4), .deco i:nth-child(6) { display: none; }
  .deco i:nth-child(1) { left: -14px; top: 3%; }
  .deco i:nth-child(2) { right: -10px; top: 1.5%; }
  .deco i:nth-child(5) { left: auto; right: 10%; top: auto; bottom: 4%; }
  .game-row { grid-template-columns: auto 1fr; }
  .gr-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .account { justify-content: center; }
  .panel-top .tabs { order: 5; flex-basis: 100%; margin: 2px 0 0; overflow-x: auto; scrollbar-width: none; }
  .tab { padding: 0.5em 0.65em; font-size: 0.95rem; gap: 5px; }
  .stat { padding: 12px 14px; }
  .acct-name, .acct-btn > .ic { display: none; }
  .acct-btn { padding: 3px; }
  .lic-chip { font-size: 0.78rem; }
  .form-grid { grid-template-columns: 1fr; }
  .cred-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cred-label { grid-column: 1 / -1; margin-bottom: -6px; }
  .org-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; }
  .org-row .seats, .org-row .wide, .org-go { display: none; }
  .org-head .btn { width: 100%; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 1.6rem; }
}

/* ---------- motion ---------- */

@keyframes pop-in { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes slide-in { from { transform: translateY(22px); opacity: 0; } }
@keyframes rise { from { transform: translateY(70px); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes flash { from { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); } to { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }
@keyframes blink { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } }
@keyframes throb { 50% { transform: scale(1.05); } }
@keyframes ring { from { transform: scale(1); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@keyframes shine { 0% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }

/* ---------- raised hands and Soru-cevap ---------- */

/* phone: ✋ and 💬 in the top bar */
.p-tools { display: inline-flex; gap: 6px; margin-right: 6px; }
.p-tool { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--glass-line); border-radius: 50%; background: var(--glass); color: #fff; cursor: pointer; }
.p-tool .ic { width: 21px; height: 21px; }
.p-tool.on { background: var(--sun-grad); color: #3b2400; border-color: transparent; box-shadow: 0 0 0 4px rgba(255, 201, 60, 0.3); animation: pop-in 0.25s ease-out; }
.p-tool-n { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--bad); color: #fff; font-size: 0.7rem; font-weight: 900; }

/* phone: the Soru-cevap sheet */
dialog.qa-sheet { width: min(560px, 96vw); }
.qa-sheet .modal-box { padding: 18px; gap: 10px; }
.qa-head { display: flex; align-items: center; justify-content: space-between; }
.qa-head h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.qa-head h2 .ic { width: 22px; height: 22px; color: var(--violet); }
.qa-form { display: grid; gap: 8px; }
.qa-form textarea { resize: none; }
.qa-form-row { display: flex; align-items: center; gap: 10px; }
.qa-anon { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 800; color: var(--ink-2); }
.qa-anon input { width: 18px; height: 18px; accent-color: var(--violet); }
.qa-left { margin-left: auto; font-size: 0.78rem; color: var(--ink-2); font-weight: 800; }
.qa-items { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; max-height: 46vh; overflow-y: auto; }
.qa-item { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--surface-2); }
.qa-item.mine { background: #f3efff; }
.qa-item.done { opacity: 0.6; }
.qa-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.qa-body p { margin: 0; color: var(--ink) !important; font-weight: 800; overflow-wrap: anywhere; }
.qa-body small { color: var(--ink-2); font-weight: 700; }
.qa-like { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font: inherit; font-weight: 900; cursor: pointer; }
.qa-like .ic { width: 17px; height: 17px; }
.qa-like.on { background: var(--violet); border-color: var(--violet); color: #fff; }
.qa-empty { padding: 14px; text-align: center; color: var(--ink-2); font-weight: 800; }

/* board: counters on the right edge */
.board-dock { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 40; display: grid; gap: 10px; }
.dock-btn { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--glass-line); border-radius: 18px; background: rgba(20, 18, 70, 0.75); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7); }
.dock-btn .ic { width: 26px; height: 26px; }
.dock-btn:hover, .dock-btn.on { background: rgba(124, 58, 237, 0.85); }
.dock-btn.off { opacity: 0.55; }
.dock-btn.bump { animation: bump 0.6s ease-out; }
/* participants in right now, on top of the dock (interact.js); "/ 14" when some have left */
.dock-crowd { width: 52px; display: grid; justify-items: center; gap: 1px; padding: 7px 0 6px; border-radius: 18px; background: rgba(20, 18, 70, 0.75); border: 1px solid var(--glass-line); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7); cursor: default; }
.dock-crowd .ic { width: 20px; height: 20px; color: var(--sun); }
.dock-crowd b { font-family: var(--display); font-size: 1.2rem; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.dock-crowd small { font-size: 0.68rem; font-weight: 800; color: var(--on-dark-2); line-height: 1; }
.dock-n { position: absolute; top: -6px; left: -6px; min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--sun-grad); color: #3b2400; font-size: 0.85rem; font-weight: 900; box-shadow: 0 2px 0 var(--sun-edge); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.22) rotate(-8deg); } 60% { transform: scale(0.95) rotate(4deg); } 100% { transform: scale(1); } }

/* board: the side panel */
.board-panel { position: fixed; top: 12px; right: 76px; bottom: 12px; z-index: 41; width: min(420px, calc(100vw - 100px)); display: flex; flex-direction: column; border-radius: 24px; background: rgba(16, 14, 58, 0.96); border: 1px solid var(--glass-line); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8); overflow: hidden; animation: pop-in 0.2s ease-out; }
.bp-head { display: flex; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid var(--glass-line); }
.bp-tabs { flex: 1; display: flex; gap: 4px; }
.bp-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 0; border-radius: 12px; background: none; color: var(--on-dark-2); font: inherit; font-weight: 900; cursor: pointer; }
.bp-tab .ic { width: 18px; height: 18px; }
.bp-tab.on { background: rgba(255, 255, 255, 0.12); color: #fff; }
.bp-tab .n { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 0.78rem; text-align: center; }
.bp-body { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 10px; padding: 12px; }
.bp-switch { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--glass); cursor: pointer; }
.bp-switch input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--sun); flex: none; }
.bp-switch span { display: grid; }
.bp-switch small { color: var(--on-dark-2); font-weight: 700; }
.bp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bp-hand { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--glass); animation: rise 0.3s ease-out; }
.bp-k { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--sun); color: #3b2400; font-weight: 900; }
.bp-av { font-size: 1.5rem; }
.bp-name { flex: 1; min-width: 0; display: grid; }
.bp-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-name small { color: var(--on-dark-2); font-weight: 700; }
.bp-empty { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px; border-radius: 14px; background: var(--glass); color: var(--on-dark-2); font-weight: 800; }
.bp-empty .ic { width: 22px; height: 22px; flex: none; }
.bp-q { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); animation: rise 0.3s ease-out; }
.bp-q p { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.bp-q.done, .bp-q.hide { opacity: 0.6; }
.bp-q-meta { display: flex; align-items: center; gap: 10px; }
.bp-q-meta small { color: var(--on-dark-2); font-weight: 700; }
.bp-likes { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; color: #c4b5fd; }
.bp-likes .ic { width: 16px; height: 16px; }
.bp-q-tools { margin-left: auto; display: flex; gap: 2px; }
.board-panel .icon-btn { color: var(--on-dark-2); }
.board-panel .icon-btn:hover { background: var(--glass-2); color: #fff; }
.board-panel .icon-btn.ok { color: #4ade80; }
.bp-more summary { cursor: pointer; color: var(--on-dark-2); font-weight: 900; padding: 4px 2px; }
.bp-more .bp-list { margin-top: 8px; }

/* board: one question large */
.qa-focus { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 5vw; background: rgba(6, 5, 28, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.qa-focus-card { width: min(1100px, 100%); display: grid; gap: clamp(14px, 2vw, 24px); padding: clamp(24px, 4vw, 56px); border-radius: 30px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); animation: pop-in 0.25s ease-out; }
.qf-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--violet); font-weight: 900; font-size: clamp(1rem, 1.5vw, 1.3rem); }
.qf-kicker .ic { width: 1.3em; height: 1.3em; }
.qf-text { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 3.6rem); line-height: 1.2; overflow-wrap: anywhere; }
.qf-meta { display: flex; align-items: center; gap: 18px; color: var(--ink-2); font-weight: 900; font-size: clamp(1rem, 1.6vw, 1.4rem); }
.qf-meta .bp-likes { color: var(--violet); }
.qf-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.qa-focus .btn.ghost { --b: var(--surface-2); --bt: var(--ink); border: 0; }

/* results: participants' questions */
.qa-card { margin-top: 18px; }
.qa-card h2 { display: inline-flex; align-items: center; gap: 8px; }
.qa-res { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qa-res li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.qa-res li p { margin: 0; font-weight: 800; color: var(--ink); }
.qa-res li small { grid-column: 2; color: var(--ink-2); font-weight: 700; }
.qa-res-likes { grid-row: span 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #ede9fe; color: var(--violet); font-weight: 900; }
.qa-res-likes .ic { width: 15px; height: 15px; }
@media print { .board-dock, .board-panel, .qa-focus { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* "Bilcan güncellendi" during a live game (update.js) */
.update-note { position: fixed; left: 12px; bottom: 12px; z-index: 60; padding: 8px 14px; border: 1px solid var(--glass-line); border-radius: 999px; background: rgba(20, 18, 70, 0.9); color: #fff; font: inherit; font-size: 0.85rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7); }
.update-note:hover { background: var(--violet); }

/* "Çık" menu during a game */
.exit-help { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.exit-help li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.exit-help b { color: var(--ink); }
.exit-help span { color: var(--ink-2); font-size: 0.9rem; font-weight: 700; }

/* ---------- Canlı tahta (tahta.js) ---------- */
.wb-page { position: relative; flex: none; aspect-ratio: 1 / var(--ar, 0.5625); background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.75); }
.wb-page.loading { background: #fff linear-gradient(90deg, #f2f3fb 25%, #e7e9f6 50%, #f2f3fb 75%) 0 0 / 200% 100%; animation: wb-load 1.2s linear infinite; }
@keyframes wb-load { to { background-position: -200% 0; } }
.wb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.wb-ink { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.wb-ink path.hl { stroke-opacity: 0.4; mix-blend-mode: multiply; }
.wb-ring { fill: rgba(225, 29, 72, 0.08); stroke: #e11d48; stroke-width: 6; stroke-dasharray: 18 14; visibility: hidden; pointer-events: none; }

/* presenter: full screen over the game, the dock (hands, questions) stays above it */
.wb { position: fixed; inset: 0; z-index: 35; display: grid; grid-template-rows: 1fr auto; background: #0b0a2c; color: #fff; animation: fade-in 0.15s ease-out; }
.wb-stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 12px 76px 6px 12px; overflow: hidden; }
.wb .wb-ink { cursor: crosshair; }
.wb[data-tool='eraser'] .wb-ink { cursor: none; }
.wb[data-tool='eraser'] .wb-ring { visibility: visible; }
.wb-live { position: absolute; left: 16px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: rgba(20, 18, 70, 0.82); color: var(--on-dark-2); font-size: 0.78rem; font-weight: 800; pointer-events: none; }
.wb-live i { width: 8px; height: 8px; border-radius: 50%; background: #f43f5e; box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.25); }
.wb-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding: 8px 76px 12px 12px; }
.wb-grp { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--glass-line); }
.wb-tb { min-width: 44px; height: 44px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; background: transparent; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.wb-tb .ic { width: 23px; height: 23px; }
.wb-tb:hover:not(:disabled) { background: var(--glass-2); }
.wb-tb.on { background: var(--sun-grad); color: #3b2400; }
.wb-tb:disabled { opacity: 0.35; cursor: default; }
.wb-tb.wide { padding: 0 12px 0 8px; }
.wb-no { min-width: 58px; text-align: center; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--on-dark-2); }
.wb-swatch { width: 32px; height: 32px; margin: 2px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.25); background: var(--c); cursor: pointer; }
.wb-swatch.on { border-color: #fff; box-shadow: 0 0 0 3px var(--violet); }
.wb-size { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.wb-size i { width: var(--d); height: var(--d); border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); }
.wb-size.on { background: var(--glass-2); box-shadow: inset 0 0 0 2px var(--sun); }
.wb-close { height: 52px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid var(--glass-line); border-radius: 16px; background: rgba(225, 29, 72, 0.85); color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.wb-close .ic { width: 22px; height: 22px; }
.wb-close:hover { background: #e11d48; }
.wb-menu { position: absolute; bottom: calc(100% + 6px); left: 12px; z-index: 3; width: min(330px, 92vw); display: grid; gap: 2px; padding: 8px; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); animation: pop-in 0.15s ease-out; }
.wb-menu hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--line); }

/* Fotoğraf (kamera.js): the computer's camera and the crop window */
dialog.modal.cam .modal-box, dialog.modal.crop .modal-box { gap: 12px; }
.cam-view { position: relative; display: grid; place-items: center; min-height: 240px; border-radius: 16px; overflow: hidden; background: #05041a; }
.cam-video { display: block; width: 100%; max-height: min(60vh, 540px); object-fit: contain; background: #000; }
.cam-msg { position: absolute; left: 16px; right: 16px; bottom: 16px; margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(6, 5, 28, 0.88); color: #fff !important; text-align: center; font-weight: 800; }
.cam-row { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink-2); }
.cam-row .ic { width: 20px; height: 20px; flex: none; }
.cam-pick { flex: 1; min-width: 0; }
.crop-area { display: grid; place-items: center; min-height: 200px; padding: 16px; border-radius: 16px; background: #05041a; }
.crop-wait { display: flex; align-items: center; gap: 10px; margin: 0; color: #fff !important; font-weight: 800; }
.crop-frame { position: relative; line-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.crop-frame canvas { display: block; max-width: 100%; max-height: min(54vh, 520px); width: auto; height: auto; }
.crop-shade { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.crop-hole { position: absolute; box-shadow: 0 0 0 9999px rgba(4, 3, 20, 0.62); }
.crop-box { position: absolute; border: 2px solid #fff; outline: 1px solid rgba(0, 0, 0, 0.35); cursor: move; touch-action: none; }
.crop-h { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--violet); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); }
.crop-h::after { content: ''; position: absolute; inset: -12px; } /* a bigger target for a finger */
.crop-h.nw { left: -12px; top: -12px; cursor: nwse-resize; }
.crop-h.ne { right: -12px; top: -12px; cursor: nesw-resize; }
.crop-h.sw { left: -12px; bottom: -12px; cursor: nesw-resize; }
.crop-h.se { right: -12px; bottom: -12px; cursor: nwse-resize; }
.crop-hint { margin: 0; text-align: center; }
.crop-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wb-mi { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 14px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.wb-mi:hover { background: var(--surface-2); }
.wb-mi .ic { width: 24px; height: 24px; flex: none; color: var(--violet); }
.wb-mi span { display: grid; }
.wb-mi b { font-weight: 900; }
.wb-mi small { color: var(--ink-2); font-weight: 700; }
.wb-mi.danger, .wb-mi.danger .ic { color: var(--bad); }
.wb-help ul { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 4px; color: var(--ink-2); font-weight: 700; }
.wb-help b { color: var(--ink); }

/* Kalem: writing over the screen itself (kalem.js); the ink sits over the game, under the dock and the board */
.pen-ink { position: fixed; inset: 0; z-index: 2; width: 100%; height: 100%; display: block; pointer-events: none; }
.pen-ink path.hl { stroke-opacity: 0.45; }
.pen-ring { fill: rgba(225, 29, 72, 0.1); stroke: #e11d48; stroke-width: 2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; visibility: hidden; }
body.pen-eraser .pen-ring { visibility: visible; }
body.pen-on #app { cursor: crosshair; -webkit-user-select: none; user-select: none; }
body.pen-on #app, body.pen-on #app * { touch-action: none; }
body.pen-eraser #app { cursor: none; }
body.pen-on #app :is(button, a[href], input, select, textarea, label, summary, [role='button']) { cursor: pointer; }
body.pen-on #app iframe { pointer-events: none; } /* a video under the pen is drawn on, not played */
.pen-bar { position: fixed; left: 12px; top: 50%; transform: translateY(-50%); z-index: 34; display: flex; flex-direction: column; align-items: center; gap: 8px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 8px; border-radius: 22px; background: rgba(20, 18, 70, 0.92); border: 1px solid var(--glass-line); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fade-in 0.15s ease-out; }
.pen-grp { display: grid; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--glass-line); }
.pen-sw { display: grid; grid-template-columns: repeat(2, 24px); grid-auto-rows: 24px; align-content: start; gap: 7px; min-height: 121px; padding: 2px 0; } /* 4 rows: 7 pen colours or 4 highlighter ones */
.pen-sw.off, .pen-sz.off { visibility: hidden; }
.pen-bar .wb-swatch { width: 24px; height: 24px; margin: 0; border-width: 2px; }
.pen-bar .wb-swatch.on { box-shadow: 0 0 0 2px var(--violet); }
.pen-sz { display: grid; gap: 2px; }
.pen-bar .wb-size { width: 44px; height: 30px; }
.pen-close { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--glass-line); border-radius: 14px; background: rgba(225, 29, 72, 0.85); color: #fff; cursor: pointer; }
.pen-close .ic { width: 22px; height: 22px; }
.pen-close:hover { background: #e11d48; }
@media print { .pen-ink, .pen-bar { display: none !important; } }

/* participant: the board over the phone screen */
.wbp { position: fixed; inset: 0; z-index: 30; display: grid; grid-template-rows: auto 1fr; background: #0d0b30; color: #fff; animation: fade-in 0.15s ease-out; }
.wbp-top { display: flex; align-items: center; gap: 6px; padding: max(8px, env(safe-area-inset-top)) 10px 8px; background: rgba(20, 18, 70, 0.95); border-bottom: 1px solid var(--glass-line); }
.wbp-title { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.wbp-title .ic { width: 20px; height: 20px; color: var(--sun); }
.wbp-no { padding: 2px 9px; border-radius: 999px; background: var(--glass-2); font-size: 0.8rem; font-weight: 900; }
.wbp-no:empty { display: none; }
.wbp-btn { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; border: 1px solid var(--glass-line); border-radius: 12px; background: var(--glass); color: #fff; font: inherit; font-weight: 800; font-size: 0.85rem; cursor: pointer; }
.wbp-btn .ic { width: 20px; height: 20px; }
.wbp-btn:disabled { opacity: 0.35; }
.wbp-btn.wbp-exit { background: rgba(244, 63, 94, 0.16); border-color: rgba(244, 63, 94, 0.4); color: #fecdd3; }
/* a narrow upright phone: the "Çık" button takes the place of the title's word */
@media (orientation: portrait) and (max-width: 480px) { .wbp-title > span, .wbp-follow > span { display: none; } }
.wbp-scroll { overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.wbp-pad { min-height: 100%; display: flex; flex-direction: column; align-items: safe center; justify-content: safe center; gap: 14px; padding: 10px; box-sizing: border-box; }
.wbp-hint { margin: 0; max-width: 300px; text-align: center; color: var(--on-dark-2); font-size: 0.85rem; font-weight: 700; }
.wbp-hint .ic { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }
@media (orientation: landscape) { .wbp-hint { display: none; } }
.wbp .wb-ink { touch-action: auto; pointer-events: none; }
.wbp-pill { position: fixed; right: 12px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 0; border-radius: 999px; background: var(--sun-grad); color: #3b2400; font: inherit; font-weight: 900; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7); cursor: pointer; animation: pop-in 0.2s ease-out; }
.wbp-pill .ic { width: 20px; height: 20px; }
body.wbp-on { overflow: hidden; }
@media print { .wb, .wbp, .wbp-pill { display: none !important; } }

/* ---------- Sesli ders (ses.js) ---------- */
.dock-btn.rec { box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.55), 0 10px 24px -12px rgba(0, 0, 0, 0.7); }
/* quick switches under the audio button on the board's edge: on = coloured, off = grey with one diagonal line */
.vq { display: grid; gap: 4px; padding: 5px; border-radius: 20px; background: rgba(20, 18, 70, 0.6); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7); }
.vq-btn { position: relative; width: 52px; display: grid; justify-items: center; gap: 3px; padding: 5px 0 4px; border: 0; border-radius: 14px; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.vq-btn:hover { background: rgba(255, 255, 255, 0.07); }
.vq-ic { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.12); transition: background 0.15s; }
.vq-ic .ic { width: 22px; height: 22px; }
.vq-btn small { font-size: 0.6rem; font-weight: 900; color: var(--on-dark-2); white-space: nowrap; }
.vq-btn.on .vq-ic { background: #16a34a; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.35); }
.vq-btn.on small { color: #bbf7d0; }
.vq-btn.wait .vq-ic { background: var(--sun-grad); color: #3b2400; animation: vq-pulse 1.4s ease-out infinite; }
.vq-btn.wait small { color: #fde68a; }
.vq-btn.off .vq-ic { background: #4b5563; color: #d1d5db; }
.vq-btn.off .vq-ic::after { content: ''; position: absolute; left: 50%; top: 50%; width: 32px; height: 3px; border-radius: 2px; background: #f3f4f6; box-shadow: 0 0 0 1.5px #4b5563; transform: translate(-50%, -50%) rotate(-45deg); }
.vq-btn.off small { color: #9ca3af; }
.vq-btn .dock-n { top: -3px; left: 0; min-width: 20px; height: 20px; font-size: 0.75rem; }
@keyframes vq-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 201, 60, 0.65); } 100% { box-shadow: 0 0 0 9px rgba(255, 201, 60, 0); } }
.dock-live { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: #f43f5e; box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.3); animation: vc-blink 1.6s ease-in-out infinite; }
@keyframes vc-blink { 50% { opacity: 0.35; } }
.bp-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 10px; border-radius: 12px; background: rgba(244, 63, 94, 0.14); color: #fecdd3; font-size: 0.85rem; font-weight: 800; }
.bp-note .ic { width: 18px; height: 18px; flex: none; }
.vc-panel { position: fixed; top: 12px; right: 76px; z-index: 41; width: min(380px, calc(100vw - 100px)); max-height: calc(100vh - 24px); overflow: auto; border-radius: 24px; background: #110f3d; border: 1px solid var(--glass-line); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8); color: #fff; animation: pop-in 0.2s ease-out; }
.vc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 6px 18px; }
.vc-head h2 { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 1.25rem; }
.vc-head h2 .ic { width: 22px; height: 22px; color: #fb7185; }
.vc-body { display: grid; gap: 12px; padding: 6px 18px 18px; }
.vc-body p { margin: 0; color: var(--on-dark-2); font-weight: 700; font-size: 0.92rem; }
.vc-warn { display: flex; gap: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 201, 60, 0.12); color: #fde68a !important; }
.vc-warn .ic { width: 20px; height: 20px; flex: none; }
.vc-status { display: flex; align-items: center; gap: 8px; color: var(--on-dark-2); font-weight: 800; }
.vc-status b { color: #fff; }
.vc-status span:last-child { margin-left: auto; font-size: 0.85rem; }
.vc-dot { width: 10px; height: 10px; border-radius: 50%; background: #f43f5e; box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.3); animation: vc-blink 1.6s ease-in-out infinite; }
.vc-dot.warn { background: var(--sun); box-shadow: 0 0 0 3px rgba(255, 201, 60, 0.3); }
.vc-mic { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--glass-line); border-radius: 18px; background: var(--glass); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: box-shadow 0.15s; }
.vc-mic .ic { width: 30px; height: 30px; flex: none; padding: 8px; box-sizing: content-box; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.vc-mic span { display: grid; }
.vc-mic small { color: var(--on-dark-2); font-weight: 700; }
.vc-mic.on .ic { background: #16a34a; }
.vc-mic.talk { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.55); }
.vc-sub { margin: 4px 0 0; font-size: 0.95rem; color: var(--on-dark-2); }
.vc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vc-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--glass); }
.vc-list li.talk { box-shadow: inset 0 0 0 2px rgba(74, 222, 128, 0.7); }
.vc-list li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-who { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.vc-who small { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 800; color: var(--on-dark-2); }
.vc-who small .ic { width: 13px; height: 13px; flex: none; }
.vc-list li.pv-mic .vc-who small { color: #4ade80; }
.vc-list li.pv-mute .vc-who small { color: #fcd34d; }
.vc-list li.pv-off .vc-who small { color: #fda4af; }
.vc-list li.pv-taken { background: rgba(244, 63, 94, 0.1); }
.vc-list li.pv-taken .vc-who small { color: #fda4af; }
.vc-wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.vc-wave i { width: 3px; height: 100%; border-radius: 2px; background: #4ade80; animation: vc-wave 0.8s ease-in-out infinite; }
.vc-wave i:nth-child(2) { animation-delay: 0.15s; }
.vc-wave i:nth-child(3) { animation-delay: 0.3s; }
@keyframes vc-wave { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.vc-empty { font-size: 0.85rem !important; }
.vc-end { margin-top: 4px; }

/* participant: the bar at the bottom (above the board, which is z 30) */
.vc-bar { position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 32; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 20px; background: rgba(20, 18, 70, 0.96); border: 1px solid var(--glass-line); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8); color: #fff; animation: pop-in 0.2s ease-out; }
.vc-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(244, 63, 94, 0.2); color: #fb7185; }
.vc-ic .ic { width: 22px; height: 22px; }
.vc-ic.pulse { animation: vc-blink 1.6s ease-in-out infinite; }
.vc-ic.talk { background: rgba(74, 222, 128, 0.2); color: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.35); }
.vc-txt { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.vc-txt b { font-size: 0.95rem; }
.vc-txt small { color: var(--on-dark-2); font-weight: 700; font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-mbtn { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--sun-grad); color: #3b2400; cursor: pointer; box-shadow: 0 0 0 4px rgba(255, 201, 60, 0.3); }
.vc-mbtn .ic { width: 24px; height: 24px; }
.vc-mbtn.on { background: #16a34a; color: #fff; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.35); }
.vc-x { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--on-dark-2); cursor: pointer; }
.vc-x .ic { width: 20px; height: 20px; }
body.vc-on .screen.player { padding-bottom: 86px; }
body.vc-on .wbp-pill { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 74px); }
body.vc-on .wbp-scroll { padding-bottom: 76px; }
.vc-mic.share.on .ic { background: #2563eb; }
.vc-mic.share.on { box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.55); }
.vc-tip { margin: -4px 0 0 !important; font-size: 0.82rem !important; color: var(--on-dark-2); }

/* participant: the presenter's shared screen (above the board, below the bar) */
.vc-screen { position: fixed; inset: 0; z-index: 31; display: grid; grid-template-rows: auto 1fr; background: #05041a; color: #fff; animation: fade-in 0.15s ease-out; }
.vcs-video { display: block; width: 100%; max-height: calc(100dvh - 90px); object-fit: contain; background: #000; border-radius: 6px; }
.vc-screen.zoomed .vcs-video { flex: none; max-height: none; height: auto; }
.vcs-pill { right: auto; left: 12px; }

/* participant: ✋ and 💬 floating over the board and the shared screen, which cover the top bar (interact.js) */
.p-fab { display: none; }
body.wbp-on .p-fab, body.vcs-on .p-fab { position: fixed; right: 12px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 33; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
body.vc-on .p-fab { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 74px); }
.p-fab-btn { position: relative; height: 48px; min-width: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 16px 0 13px; border: 1px solid var(--glass-line); border-radius: 999px; background: rgba(20, 18, 70, 0.94); color: #fff; font: inherit; font-weight: 900; font-size: 0.92rem; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8); cursor: pointer; animation: pop-in 0.2s ease-out; }
.p-fab-btn .ic { width: 22px; height: 22px; }
.p-fab-btn.qa { width: 48px; padding: 0; }
.p-fab-btn.on { background: var(--sun-grad); color: #3b2400; border-color: transparent; box-shadow: 0 0 0 4px rgba(255, 201, 60, 0.3), 0 12px 30px -10px rgba(0, 0, 0, 0.8); }
@media print { .p-fab { display: none !important; } }

/* A phone turned sideways: no band on top. A 16:9 page leaves empty strips on both sides, so the buttons
   live there: the audio on the left, zoom / full screen / hide and ✋ 💬 on the right. The page (fitted to
   the height in tahta.js, which reads these paddings) gets the whole height. Same for the shared screen. */
@media (orientation: landscape) and (max-height: 560px) {
  .wbp, .vc-screen { grid-template-rows: minmax(0, 1fr); }
  .wbp-top { position: absolute; top: 0; right: 0; bottom: 0; z-index: 2; width: 50px; flex-direction: column; align-items: center; gap: 6px; padding: max(6px, env(safe-area-inset-top)) 0 6px; margin-right: env(safe-area-inset-right); background: none; border: 0; pointer-events: none; }
  .wbp-top > * { pointer-events: auto; }
  .wbp-top .spacer, .wbp-title { display: none; }
  .wbp-no { position: fixed; left: max(6px, env(safe-area-inset-left)); bottom: 54px; width: 44px; padding: 3px 0; text-align: center; font-size: 0.7rem; }
  .wbp-top .wbp-exit { position: fixed; left: calc(5px + env(safe-area-inset-left)); bottom: max(6px, env(safe-area-inset-bottom)); }
  .wbp-btn { width: 40px; min-width: 0; height: 40px; padding: 0; border-radius: 12px; background: rgba(20, 18, 70, 0.9); }
  .wbp-btn .ic { width: 20px; height: 20px; }
  .wbp-btn.wide > span { display: none; }
  .wbp-scroll { padding-inline: calc(54px + env(safe-area-inset-left)) calc(54px + env(safe-area-inset-right)); }
  .wbp-pad { padding: 4px 0; gap: 4px; }
  .vcs-video { max-height: calc(100dvh - 8px); }
  body.vc-on .wbp-scroll { padding-bottom: 0; }
  body.wbp-on .p-fab, body.vcs-on .p-fab, body.vc-on .p-fab { right: calc(5px + env(safe-area-inset-right)); bottom: max(6px, env(safe-area-inset-bottom)); gap: 6px; }
  .p-fab-btn { width: 40px; height: 40px; min-width: 0; padding: 0; }
  .p-fab-btn > span:not(.p-tool-n) { display: none; }
  /* the audio bar becomes a column in the left strip */
  body.wbp-on .vc-bar, body.vcs-on .vc-bar { top: max(6px, env(safe-area-inset-top)); bottom: auto; left: calc(4px + env(safe-area-inset-left)); right: auto; width: 46px; max-width: none; flex-direction: column; gap: 6px; padding: 6px 0; border-radius: 16px; box-shadow: none; }
  body.wbp-on .vc-bar .vc-txt, body.vcs-on .vc-bar .vc-txt { display: none; }
  body.wbp-on .vc-bar .vc-ic, body.vcs-on .vc-bar .vc-ic { width: 32px; height: 32px; }
  body.wbp-on .vc-bar .vc-ic .ic, body.vcs-on .vc-bar .vc-ic .ic { width: 18px; height: 18px; }
  body.wbp-on .vc-bar .btn.small, body.vcs-on .vc-bar .btn.small { width: 40px; padding: 0.4em 0.1em; font-size: 0.66rem; line-height: 1.1; white-space: normal; text-align: center; box-shadow: 0 2px 0 var(--sun-edge); }
  body.wbp-on .vc-bar .vc-mbtn, body.vcs-on .vc-bar .vc-mbtn { width: 36px; height: 36px; box-shadow: none; }
  body.wbp-on .vc-bar .vc-mbtn .ic, body.vcs-on .vc-bar .vc-mbtn .ic { width: 18px; height: 18px; }
  body.wbp-on .vc-bar .vc-x, body.vcs-on .vc-bar .vc-x { width: 30px; height: 30px; }
  .wbp-pill { bottom: 8px; padding: 7px 12px; }
}

/* ---------- Online Ders (host.js · ders.js) ---------- */
.btn.ders-btn { --b: linear-gradient(180deg, #8b5cf6, #6d28d9); --bt: #fff; --be: #4c1d95; }
.cover-ders { --ca: #6d28d9; --cb: #0e7490; }
.q-empty-ders { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--glass-line); color: var(--on-dark-2); font-weight: 800; }
.ders-side { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 12px; padding: 12px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #7c3aed, #0e7490); color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 4px 0 #3b1d7a, 0 12px 24px -12px rgba(0, 0, 0, 0.6); transition: transform 0.1s, filter 0.15s; }
.ders-side:hover { filter: brightness(1.08); }
.ders-side:active { transform: translateY(2px); }
.ders-side .dot { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 11px; background: rgba(255, 255, 255, 0.2); }
.ders-side .dot .ic { width: 20px; height: 20px; }
.ders-side .add-txt small { color: rgba(255, 255, 255, 0.85); }
.ders-tag { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(124, 58, 237, 0.85); font-size: 0.6em; vertical-align: middle; }
.ders-tag .ic { width: 1em; height: 1em; }
.ders-dur { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); }
.ders-dur > span { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; color: var(--on-dark-2); font-weight: 800; font-size: 0.85rem; }
.ders-dur > span .ic { width: 16px; height: 16px; }
.ders-dur .seg-btn { color: var(--on-dark-2); padding: 0.45em 0.8em; }
.ders-dur .seg-btn.on { background: #fff; color: var(--violet); }

/* the lesson clock: small and quiet; amber in the last minutes, red when over */
.ders-clock { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--glass-line); border-radius: 999px; background: rgba(20, 18, 70, 0.6); color: var(--on-dark-2); font: inherit; font-weight: 800; font-size: 0.9rem; font-variant-numeric: tabular-nums; cursor: pointer; opacity: 0.75; transition: opacity 0.2s, background 0.3s, color 0.3s; }
.ders-clock:hover { opacity: 1; }
.ders-clock .ic { width: 16px; height: 16px; }
.ders-clock-d { font-size: 0.75rem; font-weight: 700; opacity: 0.8; }
.ders-clock-d:empty { display: none; }
.ders-clock[data-state='warn'] { background: rgba(245, 158, 11, 0.22); color: #fde68a; border-color: rgba(245, 158, 11, 0.5); opacity: 0.95; }
.ders-clock[data-state='over'] { background: rgba(225, 29, 72, 0.25); color: #fecdd3; border-color: rgba(244, 63, 94, 0.55); opacity: 0.95; }
body.clock-off .ders-clock .ders-clock-t, body.clock-off .ders-clock .ders-clock-d { display: none; }
body.clock-off .ders-clock { padding: 5px 7px; opacity: 0.45; }
.wb-corner { position: absolute; top: 10px; right: 76px; z-index: 2; display: flex; gap: 8px; }

/* board zoom */
.wb-stage.zoomed { display: block; overflow: auto; overscroll-behavior: contain; }
.wb-stage.zoomed .wb-page { margin: 0 auto; }
.wb-zno { min-width: 58px; font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.wbp-follow { background: var(--sun-grad); color: #3b2400; border-color: transparent; }

/* the lesson screen behind the board */
.host-ders { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; min-height: 100vh; padding: 16px 84px 16px 20px; box-sizing: border-box; }
.ders-main { display: grid; align-content: center; justify-items: center; gap: 14px; text-align: center; }
.ders-title { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.ders-sub { margin: 0; max-width: 60ch; color: var(--on-dark-2); font-weight: 700; }
.ders-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; width: min(860px, 100%); margin-top: 8px; }
.ders-tile { display: grid; justify-items: center; gap: 6px; padding: 20px 14px; border: 1px solid var(--glass-line); border-radius: 22px; background: var(--glass); color: #fff; font: inherit; cursor: pointer; transition: background 0.15s, transform 0.1s; }
.ders-tile:hover { background: var(--glass-2); }
.ders-tile:active { transform: translateY(2px); }
.ders-tile b { font-family: var(--display); font-size: 1.2rem; }
.ders-tile small { color: var(--on-dark-2); font-weight: 700; }
.ders-tile-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(124, 58, 237, 0.85); }
.ders-tile-ic .ic { width: 28px; height: 28px; }
.ders-tile.main { background: var(--sun-grad); color: #3b2400; border-color: transparent; box-shadow: 0 5px 0 var(--sun-edge); }
.ders-tile.main small { color: #5c3b00; }
.ders-tile.main .ders-tile-ic { background: rgba(59, 36, 0, 0.12); }
.ders-people-box { width: min(860px, 100%); padding: 14px 16px; border-radius: 20px; text-align: left; }
.ders-people-box h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.05rem; }
.ders-people-box h2 .ic { width: 20px; height: 20px; }
.ders-n { min-width: 26px; padding: 1px 8px; border-radius: 999px; background: var(--glass-2); text-align: center; font-size: 0.9rem; }
.ders-people { justify-content: flex-start; }
.ders-qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.ders-q { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 800; text-align: left; cursor: pointer; }
.ders-q:hover { background: var(--surface-3); }
.ders-q .ic { width: 20px; height: 20px; flex: none; color: var(--violet); }
.ders-q span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ders-q-n { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--violet); color: #fff; font-size: 0.85rem; }
.ders-sum { font-size: 1.1rem !important; color: var(--on-dark-2); }
.ders-att { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; }
.ders-att li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); }
.ders-att .av { font-size: 1.3rem; }
.ders-att small { color: var(--on-dark-2); font-weight: 700; }
.gr-ders { color: #c4b5fd; font-weight: 900; }
@media (max-width: 700px) { .host-ders { padding: 12px 70px 12px 12px; } .wb-corner { right: 70px; } }
@media print { .vc-panel, .vc-bar, .vc-screen { display: none !important; } }

/* ---------- Ödev modu (odev.js: panel, hwplay.js: phone) ---------- */
.qc-actions .btn.hw-btn { --b: rgba(255, 201, 60, 0.16); --bt: #ffe7a3; --be: rgba(200, 130, 0, 0.6); border-color: rgba(255, 201, 60, 0.45); }
.hw-when { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.hw-notes { list-style: none; margin: 2px 0 0; padding: 12px 14px; display: grid; gap: 8px; border-radius: 14px; background: var(--surface-2); }
.hw-notes li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; font-size: 0.9rem; font-weight: 700; color: var(--ink-2); }
.hw-notes .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }
.hw-share-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.hw-share-row .qr-big { width: 150px; box-shadow: 0 0 0 1px var(--line); }
.hw-share-info { display: grid; gap: 2px; }
.hw-share-info b { font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
.hw-share-info .hw-code { font-size: 1.9rem; letter-spacing: 0.08em; color: var(--violet); line-height: 1.1; margin-bottom: 4px; }
.hw-url { margin-top: 6px; font-size: 0.82rem; font-weight: 700; color: var(--violet); overflow-wrap: anywhere; }
.hw-msg { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink); font: 700 0.88rem/1.5 'Nunito', system-ui, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.hw-share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.hw-chip { display: inline-flex; align-items: center; gap: 5px; padding: 0.18em 0.7em; border-radius: 999px; font-size: 0.8rem; font-weight: 900; vertical-align: middle; }
.hw-chip .ic { width: 14px; height: 14px; }
.hw-chip.open { background: rgba(52, 211, 153, 0.18); color: #6ee7b7; }
.hw-chip.done { background: rgba(255, 255, 255, 0.12); color: var(--on-dark-2); }
.hw-label { display: inline-block; margin-left: 10px; padding: 0.1em 0.6em; border-radius: 8px; background: rgba(255, 201, 60, 0.18); color: var(--sun); font-size: 0.7em; font-weight: 900; vertical-align: middle; }
.hw-row .gr-date span { text-transform: none; }
.hw-live { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: rgba(124, 58, 237, 0.2); border: 1px solid rgba(196, 181, 253, 0.3); color: var(--on-dark-2); font-weight: 700; }
.hw-live .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #c4b5fd; }
.hw-roster { margin-bottom: 18px; }
.hw-table td { vertical-align: middle; }
.hw-table tr.going td { color: var(--ink-2); }
.hw-st { display: inline-flex; align-items: center; gap: 5px; font-size: 0.88rem; }
.hw-st .ic { width: 15px; height: 15px; }
.hw-st.ok { color: var(--ok); }
.hw-twice { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; padding: 0.1em 0.5em; border-radius: 8px; background: #fff1d6; color: var(--warn); font-size: 0.74rem; font-weight: 900; cursor: help; }
.hw-twice .ic { width: 13px; height: 13px; }

/* the phone */
.hw-join { gap: 12px; }
.hw-intro { width: min(430px, 100%); display: grid; gap: 6px; justify-items: center; text-align: center; }
.hw-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 0.3em 0.9em; border-radius: 999px; background: rgba(255, 201, 60, 0.16); color: var(--sun); font-weight: 900; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.hw-kicker .ic { width: 16px; height: 16px; }
.hw-intro h1 { margin: 0; font-size: 1.7rem; line-height: 1.15; overflow-wrap: anywhere; }
.hw-meta { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; color: var(--on-dark-2); font-weight: 800; font-size: 0.92rem; }
.hw-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hw-meta .ic { width: 16px; height: 16px; }
.hw-hint { color: var(--ink-2); font-size: 0.88rem; font-weight: 700; }
.hw-progress { height: 6px; margin: 0 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.hw-progress i { display: block; height: 100%; border-radius: inherit; background: var(--sun-grad); transition: width 0.4s ease; }
.hw-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.hw-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hw-next { margin-top: auto; }
.hw-q { gap: 12px; }
.hw-skip { align-self: center; margin-top: 4px; color: var(--on-dark-2); font-weight: 800; }
.hw-res { gap: 14px; }
.hw-res .hw-next { margin-top: 10px; width: min(360px, 100%); --b: #fff; --bt: var(--ink); }
.p-result.plain { background: linear-gradient(170deg, #8b5cf6, #6d28d9 60%, #4c1d95); }
.hw-slide { gap: 12px; }
.hw-doc .hw-pg { width: 100%; border-radius: 12px; background: #fff; }
.hw-sec { padding: 14px 16px; color: var(--ink); font-weight: 700; line-height: 1.5; }
.hw-sec h3 { margin: 0 0 6px; font-size: 1.05rem; }
.hw-end .hw-hint { color: var(--on-dark-2); text-align: center; max-width: 36ch; }
@media (max-width: 560px) {
  .hw-share-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hw-when { grid-template-columns: 1fr 1fr; }
}

/* ---------- Cevap anahtarı: questions cut from a test PDF (format.js · applyAnswerKey) ---------- */
.lt-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 4px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 0.86rem; font-weight: 700; }
.lt-note .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--violet); }
.key-in { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.95rem; line-height: 1.5; resize: vertical; min-height: 110px; }
.key-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.key-sum { margin: 0; font-weight: 800; color: var(--ink-2); }
.key-sum.ok { color: var(--ok); }
.key-sum.warn { color: var(--warn); }
.key-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; max-height: 190px; overflow-y: auto; padding-bottom: 2px; }
.key-grid li { display: grid; justify-items: center; padding: 3px 0; border-radius: 8px; background: var(--surface-2); line-height: 1.1; }
.key-grid small { font-size: 0.68rem; font-weight: 800; color: var(--ink-2); }
.key-grid b { font-family: var(--display); font-size: 1rem; color: var(--violet); }
.key-grid li.miss { background: #fff1d6; }
.key-grid li.miss b { color: var(--warn); }
/* the board: the picture big, the clock, the count and the letters beside it */
.host-letters .lt-main { flex: 1 1 auto; min-height: 0; display: flex; gap: clamp(12px, 2vw, 28px); }
.lt-stage { margin-right: 0; }
.lt-side { width: clamp(110px, 11vw, 170px); flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 2vh, 22px); }
.lt-letters { width: 100%; display: grid; gap: 8px; }
.lt-letters .tile { min-height: 0; height: clamp(38px, 6.5vh, 64px); justify-content: center; padding: 0; font-size: clamp(1.2rem, 2vw, 1.9rem); }
.host-rev .rev-body > .lt-rev { flex: 1 1 auto; min-height: clamp(240px, 52vh, 900px); display: flex; gap: clamp(12px, 2vw, 28px); }
.lt-rev .lt-stage { flex: 1 1 0; min-width: 0; }
.lt-rev .bars { flex: 0 0 auto; width: clamp(260px, 32%, 520px); height: auto; margin-top: 0; align-self: stretch; gap: clamp(6px, 1vw, 16px); }
.lt-rev .bar-col { width: auto; flex: 1 1 0; min-width: 0; }
.lt-rev .bar-num { font-size: clamp(1.1rem, 1.8vw, 1.9rem); }
/* the phone: the picture is the question, the letters in one row under it */
.p-q.letters { gap: 10px; }
.p-lt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-lt-top .p-q-badge { position: static; transform: none; }
.p-lt-hint { display: inline-flex; align-items: center; gap: 5px; color: var(--on-dark-2); font-size: 0.82rem; font-weight: 800; }
.p-lt-hint .ic { width: 15px; height: 15px; }
.p-lt-pic .p-pic-box img, .p-q.letters .p-q-pic .p-pic-box img { max-height: 56vh; max-height: 56dvh; }
.p-tiles.p-letters { flex: none; grid-template-columns: repeat(5, 1fr); grid-auto-rows: auto; gap: 8px; }
.p-tiles.p-letters.n4 { grid-template-columns: repeat(4, 1fr); }
.p-tiles.p-letters .tile { min-height: 64px; padding: 0; font-size: 1.9rem; }
.p-tiles.p-letters .tile .letter { width: auto; height: auto; background: none; color: #fff; box-shadow: none; font-size: 1.9rem; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
