:root {
  --ink: #080a17;
  --ink-soft: #101329;
  --paper: #f7f8ff;
  --muted: #a9afc7;
  --lime: #c8ff3d;
  --lime-dark: #9fd50d;
  --coral: #ff5e68;
  --cyan: #38ddf2;
  --violet: #8753ff;
  --line: rgba(163, 144, 255, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[v-cloak] { display: none !important; }
a { color: inherit; text-decoration: none; }
form { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.site-shell { min-height: 100vh; overflow: hidden; position: relative; background: radial-gradient(circle at 72% 25%, #10184b 0, #080a17 32%, #050610 66%); }
.site-shell::before {
  content: ""; position: absolute; inset: 500px -15% auto 36%; height: 550px; transform: perspective(420px) rotateX(62deg);
  background-image: linear-gradient(rgba(95, 68, 227, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(95, 68, 227, .15) 1px, transparent 1px);
  background-size: 58px 58px; mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent); pointer-events: none;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .22; pointer-events: none; }
.glow-one { width: 340px; height: 340px; background: var(--violet); top: 80px; right: 12%; }
.glow-two { width: 190px; height: 190px; background: var(--lime); top: 470px; left: -130px; }

.site-header, .hero-section, .flow-section, .roles-section, .site-footer { width: min(1360px, calc(100% - 80px)); margin-inline: auto; position: relative; z-index: 2; }
.site-header { height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand { display: inline-flex; align-items: center; position: relative; border: 0; background: transparent; color: #fff; font-size: 32px; font-weight: 850; letter-spacing: -1.8px; cursor: pointer; padding: 0; }
.brand span { color: var(--lime); }
.brand i { width: 26px; height: 26px; margin-left: 9px; position: relative; display: block; }
.brand i::before, .brand i::after { content: ""; position: absolute; left: 9px; width: 7px; height: 17px; border-radius: 8px; transform-origin: bottom; }
.brand i::before { background: var(--lime); top: -1px; transform: rotate(43deg); }
.brand i::after { background: var(--violet); top: 13px; transform: rotate(132deg); }
.site-header nav { display: flex; align-items: center; gap: 42px; }
.site-header nav a, .site-header nav button { color: #ccd0df; text-decoration: none; border: 0; background: none; cursor: pointer; font-size: 15px; transition: color .2s ease; }
.site-header nav a:hover, .site-header nav button:hover { color: #fff; }

.button { min-height: 60px; border-radius: 14px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; border: 1px solid transparent; font-weight: 750; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-primary { background: var(--lime); color: #090b13; box-shadow: 0 14px 34px rgba(181, 255, 0, .18); }
.button-primary:hover:not(:disabled) { background: #d6ff6e; box-shadow: 0 18px 44px rgba(181, 255, 0, .26); }
.button-outline { background: rgba(12, 14, 30, .4); border-color: rgba(139, 95, 246, .72); }
.button-outline:hover { border-color: var(--violet); background: rgba(99, 65, 190, .17); }
.button-ghost { background: transparent; border-color: rgba(157, 165, 191, .25); }
.button-secondary { background: rgba(135, 83, 255, .16); border-color: var(--violet); }
.button-light { background: #fff; color: var(--ink); }
.button-link { background: transparent; padding-inline: 4px; box-shadow: none; color: #cfd3e5; }
.button.compact { min-height: 48px; padding-inline: 20px; border-radius: 11px; gap: 12px; }
.text-button { border: 0; background: transparent; color: #b4bad0; cursor: pointer; padding: 10px; }

.hero-section { min-height: 690px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 44px; padding: 48px 0 78px; }
.hero-copy { padding-left: 4px; }
.overline { margin: 0 0 20px; color: #a991ff; font-size: 12px; font-weight: 850; letter-spacing: .26em; }
.lime-text { color: var(--lime); }
.hero-copy h1 { margin: 0; max-width: 670px; font-size: clamp(58px, 5.35vw, 88px); line-height: .96; letter-spacing: -.062em; font-weight: 850; }
.hero-copy h1 em { display: block; color: var(--lime); font-style: normal; }
.hero-lead { max-width: 590px; margin: 32px 0 0; color: #bec3d8; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.5; letter-spacing: -.02em; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.hero-actions .button-primary { min-width: 225px; }
.ticket-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #8070d9; border-radius: 50%; font-size: 28px; color: var(--cyan); }
.trust-line { display: flex; gap: 14px; align-items: center; margin-top: 38px; color: #858da7; font-size: 12px; }
.trust-line p { margin: 0; line-height: 1.4; }.trust-line strong { color: #d9dcea; }
.mini-avatars { display: flex; }.mini-avatars i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-left: -6px; border: 2px solid var(--ink); background: var(--violet); color: white; font-style: normal; font-size: 14px; font-weight: 800; }.mini-avatars i:first-child { margin: 0; background: var(--coral); }.mini-avatars i:last-child { background: var(--cyan); color: #081018; }

.hero-demo { position: relative; min-height: 570px; }
.hero-demo::after { content: ""; position: absolute; left: 12%; right: -10%; bottom: 22px; height: 80px; border-radius: 50%; background: #47349f; filter: blur(60px); opacity: .3; }
.orbit { position: absolute; border: 1px dashed rgba(93, 76, 243, .7); border-radius: 50%; pointer-events: none; }
.orbit-a { width: 730px; height: 340px; top: 100px; left: -12px; transform: rotate(9deg); }
.orbit-b { width: 560px; height: 520px; top: 16px; left: 120px; transform: rotate(-23deg); border-color: rgba(56, 221, 242, .28); }
.live-badge { position: absolute; top: 12px; right: 48px; z-index: 5; height: 48px; display: flex; align-items: center; padding: 0 20px; border: 1px solid #8a4aff; border-radius: 28px; background: rgba(9, 10, 25, .82); box-shadow: 0 0 26px rgba(135, 83, 255, .24); font-size: 13px; font-weight: 800; }
.live-badge i, .live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 8px rgba(255, 94, 104, .12), 0 0 18px var(--coral); margin-right: 12px; animation: pulse 1.7s ease-in-out infinite; }
.live-badge span { color: #c5c9d9; font-weight: 500; margin-left: 6px; }
.question-card { position: absolute; width: min(440px, 64%); height: 245px; top: 70px; left: 74px; padding: 26px; border: 1px solid #927bff; border-radius: 22px; background: linear-gradient(145deg, rgba(17, 19, 56, .93), rgba(7, 9, 27, .96)); box-shadow: inset 0 0 28px rgba(91, 70, 190, .16), 0 26px 60px rgba(0, 0, 0, .3); z-index: 3; }
.question-card-head { display: flex; justify-content: space-between; color: #a991ff; font-size: 12px; letter-spacing: .18em; }.question-card-head b { font-size: 24px; font-weight: 400; }
.mini-progress { display: flex; gap: 7px; margin-top: 14px; }.mini-progress i { width: 55px; height: 5px; border-radius: 4px; background: #2f295e; }.mini-progress i:first-child { background: var(--lime); }
.question-mark { display: block; text-align: center; font-size: 72px; margin-top: 2px; text-shadow: 0 0 22px rgba(255,255,255,.25); }
.fake-line { display: block; width: 58%; height: 10px; border-radius: 8px; background: #29284f; margin: 10px auto 0; }.fake-line.wide { width: 76%; }
.code-card { position: absolute; right: 2px; top: 125px; width: 208px; height: 170px; z-index: 4; padding: 24px 20px; text-align: left; border: 1px solid var(--lime); border-radius: 20px; background: linear-gradient(145deg, rgba(16, 30, 39, .96), rgba(8, 12, 24, .96)); cursor: pointer; transform: rotate(1.5deg); box-shadow: 0 20px 50px rgba(0,0,0,.34), 0 0 30px rgba(200,255,61,.08); }
.code-card:hover { transform: rotate(0) translateY(-4px); }.code-card span { color: var(--lime); font-size: 14px; letter-spacing: .18em; font-weight: 800; }.code-card strong { display: block; font-size: 36px; letter-spacing: .05em; margin: 16px 0 10px; }.code-card small { color: #9ba3bb; }
.answer-preview-grid { position: absolute; left: 72px; top: 330px; width: 420px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; z-index: 4; }
.preview-answer { height: 98px; display: grid; place-items: center; border-radius: 15px; border: 1px solid currentColor; font-size: 48px; font-weight: 350; box-shadow: inset 0 0 30px rgba(255,255,255,.04), 0 10px 28px rgba(0,0,0,.2); }
.coral { --accent: var(--coral); color: #fff; background: linear-gradient(135deg, rgba(255,94,104,.95), rgba(170,38,67,.75)); }
.cyan { --accent: var(--cyan); color: #fff; background: linear-gradient(135deg, rgba(42,200,235,.95), rgba(35,87,167,.75)); }
.violet { --accent: var(--violet); color: #fff; background: linear-gradient(135deg, rgba(132,71,255,.96), rgba(82,36,177,.78)); }
.lime { --accent: var(--lime); color: #fff; background: linear-gradient(135deg, rgba(164,209,38,.96), rgba(67,118,31,.82)); }
.ranking-card { position: absolute; width: 260px; right: -14px; bottom: 22px; padding: 18px 16px; z-index: 5; border: 1px solid #8d76f4; border-radius: 18px; background: rgba(14, 17, 51, .92); backdrop-filter: blur(12px); transform: rotate(2deg); }
.ranking-card > div { display: grid; grid-template-columns: 16px 28px 1fr 44px; gap: 8px; align-items: center; margin: 8px 0; font-size: 14px; }.ranking-card b { color: #b7bdd0; }.ranking-card i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; background: var(--violet); }.ranking-card > div:nth-child(2) i { background: var(--cyan); color: var(--ink); }.ranking-card > div:nth-child(3) i { background: var(--coral); }.ranking-card span { height: 6px; border-radius: 4px; background: #25274b; overflow: hidden; }.ranking-card span em { display: block; height: 100%; border-radius: inherit; background: var(--lime); }.ranking-card strong { text-align: right; }

.flow-section { padding: 130px 0 140px; }
.section-heading { max-width: 760px; }.section-heading h2, .roles-copy h2 { font-size: clamp(42px, 5vw, 70px); line-height: 1.02; letter-spacing: -.05em; margin: 0; }.section-heading > p:last-child { color: #aeb4c9; max-width: 620px; font-size: 18px; line-height: 1.6; }
.flow-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 58px; }
.flow-list article { min-height: 330px; padding: 30px; position: relative; overflow: hidden; border: 1px solid rgba(136, 118, 237, .28); border-radius: 24px; background: linear-gradient(145deg, rgba(20, 23, 55, .78), rgba(8, 10, 25, .92)); transition: transform .25s ease, border-color .25s ease; }.flow-list article:hover { transform: translateY(-6px); border-color: rgba(200,255,61,.54); }.flow-list article > span { color: #737b99; font-size: 12px; letter-spacing: .18em; }.flow-icon { width: 82px; height: 82px; margin: 42px 0 34px; border-radius: 24px; display: grid; place-items: center; background: rgba(200,255,61,.09); color: var(--lime); font-size: 35px; }.flow-list article:nth-child(2) .flow-icon { background: rgba(56,221,242,.1); color: var(--cyan); }.flow-list article:nth-child(3) .flow-icon { background: rgba(135,83,255,.12); color: #ae8cff; }.flow-list h3 { margin: 0 0 12px; font-size: 27px; }.flow-list p { margin: 0; color: #a9afc3; line-height: 1.65; }

.roles-section { padding: 100px 0 150px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }.roles-copy h2 em { color: var(--lime); font-style: normal; }.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }.role-card { min-height: 300px; padding: 32px; text-align: left; border-radius: 24px; border: 1px solid; cursor: pointer; transition: transform .25s ease; }.role-card:hover { transform: translateY(-6px) rotate(-.4deg); }.role-card > span { font-size: 14px; letter-spacing: .2em; font-weight: 850; }.role-card h3 { margin: 80px 0 16px; font-size: 25px; line-height: 1.2; }.role-card p { color: #c4c8d7; }.host-role { background: linear-gradient(145deg, #3e268d, #17122f); border-color: #855cff; }.player-role { background: linear-gradient(145deg, #1b4e58, #101d25); border-color: #38ddf2; }
.site-footer { min-height: 130px; border-top: 1px solid rgba(162,151,224,.18); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; color: #8289a2; font-size: 13px; }.footer-brand { font-size: 23px; cursor: default; }.site-footer .text-button { justify-self: end; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(2, 3, 10, .78); backdrop-filter: blur(14px); animation: fadeIn .25s ease both; }
.join-modal { width: min(470px, 100%); position: relative; padding: 44px; border: 1px solid #7359e3; border-radius: 26px; background: radial-gradient(circle at 100% 0, rgba(126,77,244,.2), transparent 36%), #0f1227; box-shadow: 0 40px 110px rgba(0,0,0,.5), 0 0 50px rgba(96,67,221,.16); animation: modalIn .35s cubic-bezier(.2,.9,.2,1) both; }.modal-close { position: absolute; right: 18px; top: 14px; width: 38px; height: 38px; border: 0; background: transparent; color: #aeb4c8; cursor: pointer; font-size: 30px; }.modal-spark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 30px; background: rgba(200,255,61,.1); color: var(--lime); font-size: 30px; }.join-modal h2 { margin: 0; font-size: 43px; letter-spacing: -.04em; }.join-modal > p:not(.overline) { color: #aeb4c9; line-height: 1.55; }.join-modal form { display: grid; gap: 10px; margin-top: 28px; }.join-modal label { color: #d8dbea; font-size: 12px; font-weight: 750; margin-top: 8px; }.join-modal input { height: 58px; border: 1px solid #353a5d; border-radius: 12px; padding: 0 16px; background: #090b19; color: #fff; }.join-modal #game-code { font-size: 25px; font-weight: 800; letter-spacing: .14em; }.modal-submit { width: 100%; margin-top: 16px; }.join-modal > small { display: block; text-align: center; color: #737b98; margin-top: 20px; }

/* Shared app chrome */
.app-shell { min-height: 100vh; background: #080a17; color: #fff; }.app-header { height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 30px; border-bottom: 1px solid rgba(155,143,224,.18); background: rgba(8,10,23,.94); }.app-header .brand { font-size: 24px; }.app-label { color: #b7bdd0; font-size: 13px; font-weight: 700; }.app-status { justify-self: end; display: flex; align-items: center; color: #8e96af; font-size: 12px; }.app-status i { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; margin-right: 8px; box-shadow: 0 0 10px var(--lime); }

/* Editor */
.editor-layout { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 290px 1fr; background: #0b0d1b; }.editor-sidebar { padding: 24px 16px; border-right: 1px solid rgba(155,143,224,.18); background: #090b17; }.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 18px; color: #a9afc1; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.icon-button { width: 32px; height: 32px; border: 1px solid #424765; background: #13162a; border-radius: 9px; cursor: pointer; }.question-thumb { width: 100%; display: grid; grid-template-columns: 28px 1fr; gap: 5px 10px; text-align: left; margin-bottom: 8px; padding: 14px; border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; }.question-thumb:hover { background: #111426; }.question-thumb.active { border-color: #7051eb; background: rgba(111,79,232,.13); }.question-thumb > span { grid-row: 1/3; color: #737b96; font-size: 14px; }.question-thumb strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.question-thumb small { color: #777f9a; font-size: 14px; }.add-question { width: 100%; height: 44px; margin-top: 14px; border: 1px dashed #3d4264; border-radius: 11px; background: transparent; color: #9fa6bd; cursor: pointer; }.editor-canvas { padding: 38px clamp(30px, 5vw, 76px) 70px; }.editor-topline { display: flex; justify-content: space-between; align-items: center; gap: 28px; max-width: 1120px; margin: auto; }.editor-topline h1 { margin: 0; font-size: 29px; }.editor-topline .overline { margin-bottom: 8px; }.editor-actions { display: flex; align-items: center; gap: 10px; }.saved-dot { color: #858da8; font-size: 14px; margin-right: 10px; }.saved-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--lime); }.question-editor-card { max-width: 1120px; margin: 36px auto 0; padding: clamp(26px, 4vw, 54px); border: 1px solid #2b2f50; border-radius: 24px; background: radial-gradient(circle at 50% 0, rgba(76,58,162,.14), transparent 50%), #101225; }.editor-field-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: #9ca4bd; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }.field-tools { display: flex; gap: 8px; }.field-tools span { padding: 7px 10px; border: 1px solid #343857; border-radius: 8px; }.question-editor-card textarea { width: 100%; min-height: 115px; resize: vertical; border: 1px solid #3a3f65; border-radius: 15px; padding: 22px; background: #090b18; color: #fff; font-size: clamp(22px, 3vw, 36px); line-height: 1.2; font-weight: 750; text-align: center; }.editor-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }.editor-answer { min-height: 110px; display: grid; grid-template-columns: 48px 1fr 24px; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; cursor: text; }.editor-answer .answer-symbol { font-size: 33px; }.editor-answer input:not([type="radio"]) { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.38); background: transparent; color: #fff; padding: 10px 4px; font-weight: 700; }.editor-answer input[type="radio"] { accent-color: var(--lime); width: 20px; height: 20px; }

/* Lobby */
.lobby-screen, .results-screen { min-height: calc(100vh - 76px); position: relative; display: grid; place-items: center; overflow: hidden; padding: 50px 24px; background: radial-gradient(circle at 50% 38%, #161c58, #080a17 58%); }.lobby-orbit { position: absolute; width: 680px; height: 680px; border: 1px dashed rgba(111,84,255,.35); border-radius: 50%; }.orbit-one { transform: rotate(24deg) scaleY(.55); }.orbit-two { transform: rotate(-34deg) scaleY(.42); border-color: rgba(56,221,242,.18); }.lobby-card { width: min(720px, 100%); position: relative; z-index: 2; text-align: center; }.live-pill { width: max-content; margin: 0 auto 38px; padding: 10px 16px; border: 1px solid rgba(200,255,61,.4); border-radius: 30px; color: #dbeeb0; font-size: 14px; letter-spacing: .17em; }.live-pill i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: var(--lime); box-shadow: 0 0 12px var(--lime); }.lobby-card h1 { font-size: clamp(45px, 6vw, 78px); line-height: 1; margin: 0; letter-spacing: -.055em; }.lobby-copy { max-width: 590px; margin: 22px auto 0; color: #adb4cc; font-size: 18px; line-height: 1.55; }.room-code { display: block; width: min(410px, 100%); margin: 38px auto 28px; padding: 22px; border: 1px solid var(--lime); border-radius: 20px; background: rgba(12,17,33,.82); cursor: pointer; box-shadow: 0 0 40px rgba(200,255,61,.08); }.room-code span { color: var(--lime); font-size: 14px; font-weight: 800; letter-spacing: .18em; }.room-code strong { display: block; margin: 8px 0 2px; font-size: 52px; letter-spacing: .08em; }.room-code small { color: #7f879f; }.participant-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }.participant { display: flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px; border: 1px solid #303553; border-radius: 24px; background: #111426; color: #c7cbd9; font-size: 14px; }.participant b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--violet); }.avatar-2 b { background: var(--cyan); color: #071018; }.avatar-3 b { background: var(--coral); }.avatar-4 b { background: #f5b851; color: #211605; }.avatar-5 b { background: #de81ed; }.participant.more { padding-left: 12px; color: var(--lime); }.lobby-start { margin: 34px auto 12px; min-width: 230px; }.lobby-card > .text-button { display: block; margin: auto; }

/* Live game */
.game-screen { min-height: calc(100vh - 76px); position: relative; padding: 28px clamp(22px, 5vw, 76px) 26px; background: radial-gradient(circle at 50% 10%, color-mix(in srgb, var(--accent) 22%, #10132b), #080a17 56%); }.game-topbar { display: grid; grid-template-columns: 180px 1fr 58px; align-items: center; gap: 24px; color: #aeb4c8; font-size: 12px; }.game-progress { height: 6px; background: #262a47; border-radius: 5px; overflow: hidden; }.game-progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width 1s linear; }.timer { width: 48px; height: 48px; display: grid; place-items: center; justify-self: end; border: 1px solid var(--accent); border-radius: 50%; color: #fff; font-size: 19px; }.game-question { max-width: 1100px; text-align: center; margin: 38px auto 32px; }.game-question .overline { color: var(--accent); }.game-question h1 { margin: 0; font-size: clamp(36px, 4.6vw, 66px); line-height: 1.08; letter-spacing: -.045em; }.game-grid { width: min(1080px, 100%); margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.game-answer { min-height: 132px; position: relative; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px; padding: 22px 26px; border: 2px solid transparent; border-radius: 18px; text-align: left; cursor: pointer; transition: transform .2s ease, opacity .2s ease, border-color .2s ease; }.game-answer:disabled { opacity: 1; cursor: default; }.game-answer:not(:disabled):hover { transform: translateY(-3px) scale(1.006); }.game-answer.selected { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.2); }.game-answer.correct { border-color: var(--lime); box-shadow: 0 0 25px rgba(200,255,61,.25); }.game-answer.wrong { border-color: #fff; filter: grayscale(.3); }.game-answer.dimmed { opacity: .34; filter: grayscale(.65); }.game-answer .answer-symbol { font-size: 40px; }.game-answer > strong { font-size: clamp(17px, 2vw, 24px); }.result-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); }.response-count { min-width: 110px; display: grid; grid-template-columns: 1fr 34px; align-items: center; gap: 8px; font-size: 14px; }.response-count::before { content: ""; grid-column: 1; grid-row: 1; width: 100%; height: 7px; border-radius: 4px; background: rgba(255,255,255,.2); }.response-count i { grid-column: 1; grid-row: 1; height: 7px; max-width: 100%; border-radius: 4px; background: #fff; z-index: 1; transition: width .5s ease; }.response-count { color: white; }.game-footer { width: min(1080px, 100%); margin: 24px auto 0; display: flex; justify-content: space-between; align-items: center; color: #aeb4c8; font-size: 12px; }.game-footer > span { display: flex; align-items: center; }.live-dot { display: inline-block; flex: 0 0 auto; }

/* Results */
.results-screen { background: radial-gradient(circle at 50% 38%, #2f1b72, #090a18 58%); }.results-card { width: min(800px, 100%); position: relative; z-index: 2; text-align: center; }.results-card h1 { margin: 0; font-size: clamp(48px, 7vw, 86px); letter-spacing: -.06em; }.results-card > p:not(.overline) { color: #b5bbcf; }.podium { height: 310px; margin: 44px auto 22px; display: flex; align-items: end; justify-content: center; gap: 12px; }.podium-place { width: 180px; min-height: 190px; position: relative; padding: 0 14px 20px; display: flex; flex-direction: column; align-items: center; justify-content: end; border: 1px solid rgba(255,255,255,.28); border-radius: 20px 20px 8px 8px; background: linear-gradient(to top, rgba(112,79,232,.38), rgba(31,27,67,.78)); }.podium-place.first { min-height: 280px; border-color: var(--lime); background: linear-gradient(to top, rgba(125,174,21,.38), rgba(31,37,54,.8)); }.podium-place.third { min-height: 150px; }.podium-place > span { position: absolute; top: -34px; width: 70px; height: 70px; display: grid; place-items: center; border: 4px solid #0f1123; border-radius: 50%; background: var(--violet); font-size: 25px; font-weight: 850; }.podium-place.first > span { background: var(--lime); color: var(--ink); }.podium-place.third > span { background: var(--coral); }.podium-place b { font-size: 18px; margin-bottom: 7px; }.podium-place strong { color: var(--lime); font-size: 13px; }.podium-place > i { position: absolute; bottom: 10px; font-style: normal; font-size: 70px; color: rgba(255,255,255,.08); font-weight: 900; }.results-actions { display: flex; justify-content: center; gap: 12px; }.confetti { position: absolute; width: 8px; height: 24px; top: 18%; left: 20%; background: var(--lime); box-shadow: 160px 80px var(--cyan), 430px -30px var(--coral), 690px 150px var(--violet), 890px 10px var(--lime), 340px 390px var(--cyan); transform: rotate(28deg); }.confetti-two { left: 10%; top: 42%; transform: rotate(-36deg); }

@keyframes pulse { 50% { opacity: .45; transform: scale(.85); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }

@media (max-width: 1080px) {
  .site-header, .hero-section, .flow-section, .roles-section, .site-footer { width: min(100% - 40px, 920px); }
  .site-header nav { display: none; }
  .hero-section { grid-template-columns: 1fr; padding-top: 70px; }.hero-copy { text-align: center; }.hero-copy h1, .hero-lead { margin-inline: auto; }.hero-actions, .trust-line { justify-content: center; }.hero-demo { width: min(720px, 100%); margin: 40px auto 0; }.flow-section { padding-top: 80px; }.roles-section { grid-template-columns: 1fr; }.roles-copy { text-align: center; }
  .editor-layout { grid-template-columns: 230px 1fr; }.editor-topline { align-items: flex-start; }.saved-dot { display: none; }
}

@media (max-width: 760px) {
  .site-header, .hero-section, .flow-section, .roles-section, .site-footer { width: min(100% - 28px, 620px); }
  .site-header { height: 90px; }.brand { font-size: 25px; }.header-action { min-height: 46px; padding-inline: 15px; font-size: 12px; }
  .hero-section { min-height: auto; padding: 54px 0 70px; }.hero-copy h1 { font-size: clamp(48px, 14.5vw, 70px); }.hero-lead { font-size: 17px; }.hero-actions { flex-direction: column; gap: 10px; }.hero-actions .button { width: 100%; }.trust-line { margin-top: 26px; }
  .hero-demo { min-height: 500px; transform: scale(.94); transform-origin: top center; margin-bottom: -20px; }.question-card { left: 0; width: 72%; }.code-card { right: 0; width: 165px; }.answer-preview-grid { left: 0; width: 68%; }.ranking-card { right: 0; width: 210px; }.live-badge { right: 0; }.orbit-a { width: 110%; }
  .flow-list, .role-cards { grid-template-columns: 1fr; }.flow-list article { min-height: 260px; }.flow-icon { margin: 30px 0 24px; }.roles-section { gap: 40px; }.role-card { min-height: 250px; }.role-card h3 { margin-top: 55px; }.site-footer { grid-template-columns: 1fr auto; }.site-footer > p { display: none; }
  .join-modal { padding: 34px 24px; }.join-modal h2 { font-size: 36px; }
  .app-header { padding: 0 16px; grid-template-columns: 1fr auto; }.app-header .app-label { display: none; }.app-header .brand { font-size: 21px; }
  .editor-layout { display: block; }.editor-sidebar { display: none; }.editor-canvas { padding: 24px 14px 50px; }.editor-topline { display: block; }.editor-actions { margin-top: 20px; flex-wrap: wrap; }.editor-actions .button-primary { flex: 1; }.question-editor-card { padding: 18px; }.editor-answers { grid-template-columns: 1fr; }.editor-answer { min-height: 86px; }
  .game-screen { padding-inline: 14px; }.game-topbar { grid-template-columns: 120px 1fr 48px; gap: 12px; }.game-question { margin: 32px auto 24px; }.game-grid { grid-template-columns: 1fr; }.game-answer { min-height: 94px; padding: 14px; grid-template-columns: 45px 1fr auto; }.game-answer .answer-symbol { font-size: 28px; }.response-count { min-width: 78px; }.game-footer { gap: 12px; }.game-footer > span { max-width: 130px; }.game-footer .button { font-size: 14px; padding-inline: 14px; }
  .podium { height: 260px; gap: 6px; }.podium-place { width: 31%; min-height: 150px; }.podium-place.first { min-height: 220px; }.podium-place.third { min-height: 120px; }.podium-place > span { width: 56px; height: 56px; top: -28px; }.results-actions { flex-direction: column; }.results-actions .button { width: 100%; }
}

@media (max-width: 480px) {
  .header-action { display: none; }.site-header { justify-content: center; }.hero-demo { min-height: 420px; transform: scale(.78); width: 124%; margin-left: -12%; margin-bottom: -90px; }.flow-section { padding-top: 90px; }.question-card { width: 76%; }.code-card { width: 155px; }.room-code strong { font-size: 40px; }.participant-row { max-width: 330px; margin-inline: auto; }
  .game-answer { grid-template-columns: 36px 1fr auto; }.response-count { display: none; }.game-question h1 { font-size: 33px; }.game-screen { padding-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Advanced creator */
.creator-welcome { min-height: calc(100vh - 76px); padding: 58px clamp(24px, 6vw, 90px) 80px; background: radial-gradient(circle at 50% 0, rgba(106,73,232,.2), transparent 36%), #080a17; }
.creator-welcome-head { max-width: 780px; margin: 0 auto 46px; text-align: center; }
.creator-back { border: 0; background: transparent; color: #aab0c5; cursor: pointer; font-size: 13px; padding: 10px; }
.creator-welcome-head .creator-back { position: absolute; left: clamp(16px, 5vw, 70px); top: 102px; }
.creator-kicker { display: block; color: var(--lime); font-size: 14px; font-weight: 850; letter-spacing: .24em; margin-bottom: 18px; }
.creator-welcome h1 { margin: 0; font-size: clamp(44px, 5.4vw, 72px); letter-spacing: -.055em; line-height: 1; }
.creator-welcome-head > p { max-width: 650px; margin: 20px auto 0; color: #aeb4c9; font-size: 17px; line-height: 1.6; }
.template-grid { max-width: 1180px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.template-card { --template-accent: var(--violet); min-height: 278px; position: relative; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; overflow: hidden; border: 1px solid rgba(145,126,242,.27); border-radius: 23px; background: linear-gradient(145deg, rgba(24,27,62,.96), rgba(10,12,29,.98)); cursor: pointer; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.template-card::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; top: -85px; right: -60px; background: var(--template-accent); opacity: .16; filter: blur(8px); }
.template-card:hover { transform: translateY(-5px); border-color: var(--template-accent); box-shadow: 0 22px 60px rgba(0,0,0,.27); }
.blank-template { grid-row: span 2; min-height: 574px; background: radial-gradient(circle at 50% 30%, rgba(200,255,61,.12), transparent 38%), linear-gradient(150deg, #141829, #0b0d1c); border-style: dashed; border-color: rgba(200,255,61,.38); justify-content: center; }
.template-icon { width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-items: center; margin-bottom: 38px; border-radius: 18px; background: color-mix(in srgb, var(--template-accent) 13%, transparent); color: var(--template-accent); font-size: 28px; font-weight: 700; }
.blank-template .template-icon { width: 90px; height: 90px; margin-bottom: 52px; border-radius: 28px; color: var(--lime); background: rgba(200,255,61,.1); font-size: 44px; }
.template-card small { color: var(--template-accent); font-size: 14px; font-weight: 850; letter-spacing: .2em; }
.blank-template small { color: var(--lime); }
.template-card h2 { margin: 8px 0 10px; font-size: 25px; letter-spacing: -.03em; }
.blank-template h2 { font-size: 34px; }
.template-card p { margin: 0; color: #9da4bc; font-size: 13px; line-height: 1.55; }
.template-card footer { display: flex; gap: 7px; margin-top: auto; padding-top: 22px; }
.template-card footer span { padding: 6px 9px; border-radius: 7px; background: rgba(255,255,255,.055); color: #aab1c7; font-size: 12px; }
.blank-template > b { margin-top: 34px; color: var(--lime); font-size: 13px; }
.continue-draft { display: block; margin: 30px auto 0; padding: 11px 18px; border: 0; background: transparent; color: #9ba3bb; cursor: pointer; }

.creator-shell { min-height: calc(100vh - 76px); background: #0a0c18; }
.creator-toolbar { min-height: 78px; display: grid; grid-template-columns: 145px minmax(220px, 1fr) auto; align-items: center; gap: 22px; padding: 10px 22px; border-bottom: 1px solid #242842; background: #0d0f1e; position: sticky; top: 0; z-index: 20; }
.creator-title-wrap { max-width: 520px; display: grid; gap: 3px; }
.creator-title-wrap label { color: #717a96; font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.creator-title-wrap input { width: 100%; border: 0; border-bottom: 1px solid transparent; background: transparent; color: #f6f7fb; padding: 5px 0; font-size: 19px; font-weight: 750; }
.creator-title-wrap input:hover, .creator-title-wrap input:focus { border-bottom-color: #4a4f74; }
.creator-toolbar-actions { display: flex; align-items: center; justify-content: end; gap: 8px; }
.creator-tool-btn { height: 42px; padding: 0 14px; border: 1px solid #313651; border-radius: 10px; background: #121525; color: #c6cada; cursor: pointer; font-size: 14px; font-weight: 700; }
.creator-validation { margin-right: 8px; color: var(--lime); font-size: 14px; }.creator-validation::before { content: "✓"; margin-right: 6px; }.creator-validation.has-errors { color: #ff8990; }.creator-validation.has-errors::before { content: "!"; }
.creator-workspace { min-height: calc(100vh - 154px); display: grid; grid-template-columns: 268px minmax(500px, 1fr) 250px; }
.creator-list, .creator-settings { background: #0b0d19; }
.creator-list { border-right: 1px solid #232740; padding: 16px 12px; position: sticky; top: 78px; height: calc(100vh - 78px); display: flex; flex-direction: column; }
.creator-list-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 7px 14px; color: #8991aa; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.creator-list-head button { width: 31px; height: 31px; border: 1px solid #3b4060; border-radius: 8px; background: #15182a; cursor: pointer; }
.creator-items { flex: 1; overflow-y: auto; padding-right: 3px; }
.creator-item { width: 100%; min-height: 67px; margin-bottom: 7px; display: grid; grid-template-columns: 25px 30px 1fr 18px; gap: 7px; align-items: center; padding: 9px; text-align: left; border: 1px solid transparent; border-radius: 11px; background: transparent; cursor: pointer; }
.creator-item:hover { background: #121525; }.creator-item.active { border-color: #714ce4; background: rgba(109,72,227,.13); }.creator-item.invalid:not(.active) { border-color: rgba(255,94,104,.15); }
.creator-item-number { color: #626b87; font-size: 12px; }.creator-item > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(135,83,255,.13); color: #a990ff; font-style: normal; font-size: 12px; font-weight: 800; }.creator-item > span:nth-child(3) { min-width: 0; }.creator-item strong, .creator-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.creator-item strong { color: #e6e8f0; font-size: 14px; }.creator-item small { color: #747d98; margin-top: 4px; font-size: 12px; }.invalid-dot { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,94,104,.15); color: #ff7078; font-size: 14px; }
.creator-add { height: 44px; margin-top: 10px; flex: 0 0 auto; border: 1px dashed #414664; border-radius: 10px; background: transparent; color: #aab0c3; cursor: pointer; font-size: 14px; }
.creator-main { min-width: 0; padding: 24px clamp(20px, 3vw, 46px) 80px; background: radial-gradient(circle at 50% 0, rgba(71,55,158,.1), transparent 34%), #10121f; }
.question-commandbar { max-width: 960px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.question-kind { display: flex; align-items: center; gap: 11px; }.question-kind > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(135,83,255,.16); color: #aa8fff; font-style: normal; font-weight: 800; }.question-kind small, .question-kind strong { display: block; }.question-kind small { color: #777f99; font-size: 12px; letter-spacing: .14em; }.question-kind strong { font-size: 13px; margin-top: 3px; }
.question-commands { display: flex; gap: 6px; }.question-commands button { height: 34px; padding: 0 10px; border: 1px solid #303552; border-radius: 8px; background: #131625; color: #aeb4c8; cursor: pointer; font-size: 12px; }.question-commands .danger { color: #ff8990; }
.creator-form-card { max-width: 960px; margin: auto; padding: clamp(22px, 3vw, 38px); border: 1px solid #292e4b; border-radius: 20px; background: #111425; box-shadow: 0 20px 60px rgba(0,0,0,.15); }
.creator-field { display: grid; gap: 8px; }.creator-field > span, .answer-config-row > span { color: #9aa2ba; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.creator-field > span { display: flex; justify-content: space-between; }.creator-field em { color: #67708d; font-style: normal; font-weight: 500; }.creator-field textarea { width: 100%; resize: vertical; border: 1px solid #3a3f61; border-radius: 13px; padding: 18px; background: #090b17; color: white; line-height: 1.35; }.question-prompt textarea { min-height: 94px; text-align: center; font-size: clamp(21px, 2.8vw, 34px); font-weight: 750; }
.answer-config-row { margin: 28px 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }.answer-config-row small { color: #747d98; font-size: 12px; }.switch-label { display: flex; align-items: center; gap: 7px; color: #9fa6bc; font-size: 12px; }.switch-label input { accent-color: var(--lime); }
.creator-answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.creator-answer-row { min-height: 76px; position: relative; display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 12px; }.creator-answer-row > span { font-size: 24px; }.creator-answer-row input { width: 100%; min-width: 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.32); background: transparent; color: white; padding: 9px 2px; font-size: 12px; font-weight: 700; }.correct-toggle { width: 25px; height: 25px; border: 2px solid rgba(255,255,255,.72); border-radius: 50%; background: transparent; color: transparent; cursor: pointer; }.correct-toggle.active { background: white; color: #12131f; }.remove-answer { position: absolute; right: 2px; top: 1px; border: 0; background: transparent; color: rgba(255,255,255,.6); cursor: pointer; }.inline-add { margin-top: 12px; padding: 9px 13px; border: 1px dashed #454a69; border-radius: 8px; background: transparent; color: #aeb4c7; cursor: pointer; font-size: 12px; }
.amber { background: linear-gradient(135deg, #d98928, #8b4e18); }.pink { background: linear-gradient(135deg, #df51b9, #832267); }
.accepted-answers label { display: grid; grid-template-columns: 28px 1fr 30px; gap: 10px; align-items: center; margin-bottom: 8px; }.accepted-answers label > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: rgba(200,255,61,.12); color: var(--lime); font-size: 14px; }.accepted-answers input, .puzzle-editor input, .numeric-grid input, .numeric-grid select, .quiz-settings-panel input, .quiz-settings-panel select, .quiz-settings-panel textarea { height: 45px; border: 1px solid #353a59; border-radius: 9px; background: #090b18; color: white; padding: 0 12px; }.accepted-answers button, .puzzle-editor button { height: 30px; border: 1px solid #353a59; border-radius: 7px; background: #141728; color: #aeb4c7; cursor: pointer; }
.puzzle-editor label { display: grid; grid-template-columns: 24px 28px 1fr 30px 30px; align-items: center; gap: 8px; margin-bottom: 8px; }.puzzle-editor label > b { color: #59627f; cursor: grab; }.puzzle-editor label > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: rgba(56,221,242,.12); color: var(--cyan); font-size: 14px; }.puzzle-editor button:disabled { opacity: .3; }
.numeric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }.numeric-grid label { display: grid; gap: 7px; color: #929bb4; font-size: 12px; }.numeric-grid input, .numeric-grid select { width: 100%; }.slider-demo { width: 100%; margin: 34px 0 12px; accent-color: var(--lime); }
.image-dropzone { min-height: 270px; position: relative; display: grid; place-items: center; border: 1px dashed #4d5272; border-radius: 15px; background: #090b17 center/cover no-repeat; overflow: hidden; cursor: pointer; }.image-dropzone::after { content: ""; position: absolute; inset: 0; background: rgba(8,10,23,.3); }.image-dropzone input { position: absolute; opacity: 0; pointer-events: none; }.image-dropzone > span { position: relative; z-index: 2; padding: 11px 15px; border-radius: 9px; background: rgba(8,10,23,.82); color: #c7cbda; font-size: 14px; }.pin-target { position: absolute; z-index: 3; width: 42px; height: 42px; transform: translate(-50%,-50%); border: 2px solid white; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 10px rgba(255,94,104,.18); font-size: 19px; }.pin-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }.pin-controls label { display: grid; grid-template-columns: 70px 1fr; align-items: center; color: #8d95ae; font-size: 12px; }.pin-controls input { accent-color: var(--coral); }
.text-response-editor { min-height: 250px; display: grid; place-items: center; align-content: center; text-align: center; border: 1px dashed #393e5d; border-radius: 15px; margin-top: 28px; background: radial-gradient(circle, rgba(135,83,255,.12), transparent 55%); }.response-illustration { color: #bba8ff; font-size: clamp(34px,5vw,64px); font-weight: 850; }.text-response-editor h3 { margin: 18px 0 8px; font-size: 16px; }.text-response-editor p { max-width: 450px; margin: 0; color: #858da7; font-size: 14px; }
.brainstorm-editor { margin-top: 18px; }.checkbox-field { display: flex !important; grid-column: span 2; flex-direction: row !important; align-items: center; gap: 9px !important; padding: 0 12px; border: 1px solid #353a59; border-radius: 9px; }.checkbox-field input { width: 17px; height: 17px; accent-color: var(--lime); }.idea-stack { display: flex; gap: 10px; margin-top: 25px; }.idea-stack span { flex: 1; min-height: 90px; display: grid; place-items: center; border: 1px solid #373c59; border-radius: 12px; background: #0c0e1c; color: #8d95ac; font-size: 14px; }.idea-stack span:last-child { flex: 0 0 90px; border-style: dashed; color: var(--lime); font-size: 22px; }
.scale-editor { margin-top: 18px; }.scale-numbers { display: flex; justify-content: center; gap: 7px; margin-top: 28px; }.scale-numbers span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #4b5071; border-radius: 9px; background: #0c0e1b; color: #c8ccda; font-size: 14px; }
.slide-copy { margin-top: 26px; }.slide-copy textarea { min-height: 170px; text-align: left; font-size: 16px; font-weight: 500; }
.creator-preview-head { max-width: 960px; margin: 32px auto 12px; display: flex; justify-content: space-between; align-items: center; }.creator-preview-head small, .creator-preview-head strong { display: block; }.creator-preview-head small { color: #6f7893; font-size: 12px; letter-spacing: .13em; }.creator-preview-head strong { margin-top: 4px; font-size: 14px; }.preview-switch { display: flex; padding: 3px; border-radius: 9px; background: #090b17; }.preview-switch button { height: 30px; border: 0; border-radius: 7px; padding: 0 10px; background: transparent; color: #747d97; font-size: 12px; cursor: pointer; }.preview-switch button.active { background: #292d48; color: white; }
.question-preview { max-width: 960px; min-height: 390px; margin: auto; padding: 22px 26px 28px; overflow: hidden; border: 1px solid #33385a; border-radius: 18px; background: radial-gradient(circle at 50% 0, #2f1b74, #10132a 56%, #090b18); transition: max-width .25s ease, border-radius .25s ease; }.question-preview.mobile { max-width: 360px; min-height: 560px; border-radius: 32px; padding-inline: 18px; }.preview-top { display: flex; justify-content: space-between; color: #b8bfda; font-size: 12px; letter-spacing: .14em; }.preview-top b { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #9e89ff; border-radius: 50%; font-size: 14px; }.question-preview > h3 { max-width: 780px; margin: 24px auto 28px; text-align: center; font-size: clamp(20px, 3vw, 32px); line-height: 1.2; }.question-preview.mobile > h3 { font-size: 22px; }.preview-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.mobile .preview-answers { grid-template-columns: 1fr; }.preview-answers > span { min-height: 70px; display: flex; align-items: center; gap: 14px; border-radius: 10px; padding: 12px; font-size: 14px; font-weight: 700; }.preview-answers i { font-size: 25px; font-style: normal; }.preview-text-input { max-width: 600px; height: 58px; display: flex; align-items: center; justify-content: space-between; margin: 70px auto 0; padding-left: 18px; border: 1px solid #4a5072; border-radius: 10px; background: white; color: #777; font-size: 14px; }.preview-text-input button { align-self: stretch; border: 0; border-radius: 0 9px 9px 0; padding: 0 20px; background: var(--lime); color: var(--ink); font-weight: 800; }.preview-puzzle { max-width: 650px; margin: auto; display: grid; gap: 8px; }.preview-puzzle span { height: 50px; display: flex; align-items: center; gap: 15px; padding: 0 15px; border-radius: 9px; background: white; color: #151728; font-size: 14px; }.preview-puzzle b { color: #9ca1b0; }.preview-slider { max-width: 700px; margin: 70px auto 0; text-align: center; }.preview-slider strong { display: block; margin-bottom: 18px; font-size: 30px; }.preview-slider input { width: 100%; accent-color: var(--lime); }.preview-slider > div, .preview-scale > div { display: flex; justify-content: space-between; color: #aeb4c8; font-size: 12px; }.preview-media { height: 160px; max-width: 530px; position: relative; margin: -14px auto 18px; border-radius: 12px; background: center/cover; }.preview-media i { position: absolute; transform: translate(-50%,-50%); color: white; font-size: 25px; font-style: normal; text-shadow: 0 2px 12px #000; }.preview-idea { max-width: 400px; margin: 70px auto; text-align: center; }.preview-idea span { min-height: 90px; display: grid; place-items: center; border: 1px dashed #7870ae; border-radius: 12px; color: var(--lime); }.preview-idea small { display: block; margin-top: 12px; color: #858ca4; }.preview-scale { margin: 70px auto 0; max-width: 760px; }.preview-scale section { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }.preview-scale section span { flex: 1; max-width: 55px; height: 50px; display: grid; place-items: center; border: 1px solid #7662d0; border-radius: 9px; background: rgba(135,83,255,.16); font-size: 14px; }.preview-slide-copy { max-width: 650px; margin: 50px auto; text-align: center; color: #c1c6d7; font-size: 17px; line-height: 1.6; }.preview-empty-image { min-height: 180px; display: grid; place-items: center; border: 1px dashed #565c7e; border-radius: 12px; color: #848ca7; font-size: 14px; }
.creator-settings { border-left: 1px solid #232740; padding: 16px; position: sticky; top: 78px; height: calc(100vh - 78px); overflow-y: auto; }.creator-settings h3 { margin: 25px 0 15px; color: #c9cdda; font-size: 14px; }.settings-toggle { width: 100%; height: 42px; display: grid; grid-template-columns: 24px 1fr 18px; align-items: center; text-align: left; border: 1px solid #323753; border-radius: 10px; background: #121525; color: #bfc4d4; cursor: pointer; font-size: 14px; }.settings-toggle b { color: var(--lime); }.quiz-settings-panel { display: grid; gap: 10px; margin-top: 10px; padding: 12px; border: 1px solid #292d47; border-radius: 10px; background: #0f1220; }.quiz-settings-panel label { display: grid; gap: 5px; color: #858da7; font-size: 12px; }.quiz-settings-panel textarea { min-height: 70px; padding: 10px; resize: vertical; }.settings-field { display: grid; gap: 7px; margin-bottom: 14px; color: #858da8; font-size: 12px; }.settings-field select { height: 41px; border: 1px solid #353a56; border-radius: 8px; padding: 0 9px; background: #111421; color: #e3e5ec; font-size: 14px; }.settings-summary { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 25px; padding: 15px; border: 1px solid #2b304a; border-radius: 10px; background: #0f1120; font-size: 12px; }.settings-summary span { color: #767f99; }.settings-summary strong { color: #c2c6d4; text-align: right; }.settings-summary .valid { color: var(--lime); }.invalid-text { color: #ff7a82 !important; }.creator-tip { margin-top: 16px; padding: 15px; border-radius: 11px; background: rgba(56,221,242,.07); border: 1px solid rgba(56,221,242,.16); }.creator-tip b { color: var(--cyan); font-size: 12px; }.creator-tip p { margin: 7px 0 0; color: #929ab1; font-size: 12px; line-height: 1.55; }
.type-picker-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 22px; background: rgba(3,4,11,.8); backdrop-filter: blur(12px); }.type-picker { width: min(970px, 100%); max-height: calc(100vh - 44px); overflow-y: auto; position: relative; padding: 34px; border: 1px solid #5849a5; border-radius: 23px; background: #0f1222; box-shadow: 0 40px 100px rgba(0,0,0,.5); }.type-picker-close { position: absolute; right: 18px; top: 12px; border: 0; background: transparent; color: #9ea5bb; font-size: 30px; cursor: pointer; }.type-picker h2 { margin: 0 0 25px; font-size: 36px; letter-spacing: -.04em; }.type-group { margin-top: 20px; }.type-group h3 { color: #7f879f; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }.type-group > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }.type-group button { min-height: 74px; display: grid; grid-template-columns: 42px 1fr 20px; gap: 11px; align-items: center; padding: 12px; text-align: left; border: 1px solid #2f3450; border-radius: 11px; background: #131626; cursor: pointer; }.type-group button:hover { border-color: #8061f3; background: #191a31; }.type-group button > i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(135,83,255,.13); color: #aa90ff; font-style: normal; font-weight: 800; }.type-group button strong, .type-group button small { display: block; }.type-group button strong { color: #e5e7ef; font-size: 14px; }.type-group button small { color: #7e879f; margin-top: 4px; font-size: 12px; line-height: 1.3; }.type-group button > b { color: var(--lime); }.creator-toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 12px 18px; border: 1px solid rgba(200,255,61,.32); border-radius: 11px; background: #151825; color: #e8eaf1; box-shadow: 0 16px 50px rgba(0,0,0,.4); font-size: 14px; animation: modalIn .25s ease both; }

@media (max-width: 1180px) {
  .creator-workspace { grid-template-columns: 230px minmax(450px, 1fr); }.creator-settings { position: static; grid-column: 1 / -1; height: auto; border: 1px solid #232740; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.creator-settings > h3 { grid-column: 1 / -1; }.settings-toggle, .quiz-settings-panel { grid-column: 1 / -1; }.settings-summary, .creator-tip { margin-top: 0; }
  .template-grid { grid-template-columns: 1fr 1fr; }.blank-template { grid-row: auto; min-height: 278px; justify-content: flex-start; }.blank-template .template-icon { width: 62px; height: 62px; margin-bottom: 38px; border-radius: 18px; font-size: 30px; }.blank-template h2 { font-size: 25px; }.blank-template > b { display: none; }
}

@media (max-width: 800px) {
  .creator-welcome { padding-inline: 16px; }.creator-welcome-head .creator-back { position: static; display: block; margin: 0 auto 28px; }.template-grid { grid-template-columns: 1fr; }.template-card, .blank-template { min-height: 250px; }
  .creator-toolbar { position: static; grid-template-columns: 1fr auto; }.creator-toolbar > .creator-back { display: none; }.creator-title-wrap { grid-column: 1; }.creator-toolbar-actions { grid-column: 1 / -1; justify-content: stretch; }.creator-toolbar-actions .creator-validation { margin-right: auto; }.creator-workspace { display: block; }.creator-list { position: static; height: auto; max-height: 230px; border-bottom: 1px solid #232740; }.creator-items { display: flex; overflow-x: auto; }.creator-item { min-width: 210px; }.creator-main { padding: 20px 12px 55px; }.creator-settings { display: block; position: static; height: auto; }.creator-answer-grid { grid-template-columns: 1fr; }.numeric-grid { grid-template-columns: 1fr 1fr; }.type-group > div { grid-template-columns: 1fr 1fr; }.question-preview { min-height: 340px; }.creator-preview-head { align-items: flex-end; }
}

@media (max-width: 520px) {
  .creator-toolbar-actions .creator-validation { display: none; }.creator-tool-btn { padding-inline: 9px; }.creator-toolbar-actions .button { flex: 1; }.question-commandbar { align-items: flex-start; }.question-commands { flex-wrap: wrap; justify-content: end; }.creator-form-card { padding: 17px; }.question-prompt textarea { font-size: 22px; }.numeric-grid, .type-group > div { grid-template-columns: 1fr; }.checkbox-field { grid-column: auto; min-height: 45px; }.preview-answers { grid-template-columns: 1fr; }.type-picker { padding: 26px 16px; }.type-picker h2 { font-size: 29px; }.scale-numbers, .preview-scale section { flex-wrap: wrap; }.question-preview.mobile { max-width: 100%; min-height: 500px; border-radius: 22px; }.creator-preview-head strong { max-width: 210px; }.creator-settings { padding-bottom: 40px; }
}

/* Authentication and quiz library */
.auth-screen { min-height: 100vh; display: grid; place-items: center; position: relative; padding: 90px 22px; overflow: hidden; background: radial-gradient(circle at 70% 20%, #2c1b6c 0, #0c0e24 36%, #060710 72%); }
.auth-screen::before { content: ""; position: absolute; width: 680px; height: 680px; border: 1px dashed rgba(56,221,242,.22); border-radius: 50%; transform: rotate(-20deg); }
.library-back { position: absolute; z-index: 2; left: 30px; top: 28px; border: 0; background: transparent; color: #aeb5cc; cursor: pointer; }
.auth-card { width: min(610px, 100%); position: relative; z-index: 1; padding: clamp(34px,6vw,68px); text-align: center; border: 1px solid rgba(137,107,255,.55); border-radius: 30px; background: rgba(12,14,34,.9); box-shadow: 0 40px 100px rgba(0,0,0,.42); backdrop-filter: blur(18px); }
.auth-mark { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 25px; border-radius: 21px; background: rgba(200,255,61,.1); color: var(--lime); font-size: 34px; }
.auth-card h1 { margin: 0; font-size: clamp(40px,6vw,66px); line-height: .98; letter-spacing: -.055em; }.auth-card h1 em { color: var(--lime); font-style: normal; }.auth-card > p:not(.overline) { max-width: 450px; margin: 24px auto 30px; color: #aeb5ca; line-height: 1.6; }.auth-card > small { display: block; margin-top: 22px; color: #717a96; line-height: 1.5; }.google-button { min-height: 44px; display: flex; justify-content: center; }.auth-loading { display: block; color: #aeb5ca; }.setup-note { display: grid; gap: 8px; padding: 16px; border: 1px solid rgba(255,184,74,.3); border-radius: 12px; color: #d9b06f; background: rgba(255,184,74,.06); font-size: 12px; }.setup-note span { color: #9ca4bb; }.demo-workspace { width: 100%; margin-top: 14px; min-height: 48px; }
.library-shell { min-height: 100vh; background: #0a0c17; color: #f5f7ff; }
.library-header { height: 76px; display: grid; grid-template-columns: 260px minmax(250px,620px) 1fr; gap: 24px; align-items: center; padding: 0 28px; border-bottom: 1px solid #24283d; background: #0d0f1c; }.library-header .brand { font-size: 24px; }.library-search { height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 13px; border: 1px solid #2f344d; border-radius: 11px; background: #111421; color: #77809a; font-size: 12px; }.library-search span { flex: 1; }.library-search kbd { padding: 4px 7px; border: 1px solid #3b4059; border-radius: 5px; font-size: 12px; }.library-account { justify-self: end; display: grid; grid-template-columns: 35px auto auto; align-items: center; gap: 10px; }.library-account > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: var(--violet); font-weight: 800; }.library-account b,.library-account small { display: block; }.library-account b { font-size: 14px; }.library-account small { margin-top: 3px; color: #737c96; font-size: 12px; }.library-account button { border: 0; background: transparent; color: #969eb5; cursor: pointer; font-size: 14px; }
.library-notice { position: fixed; z-index: 80; right: 24px; top: 90px; max-width: 430px; padding: 13px 16px; text-align: left; border: 1px solid rgba(200,255,61,.35); border-radius: 10px; background: #171a28; color: #dde1ed; box-shadow: 0 15px 45px rgba(0,0,0,.35); cursor: pointer; }
.library-layout { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 272px 1fr; }.library-sidebar { padding: 20px 14px; border-right: 1px solid #24283d; background: #0d0f1c; }.library-create { width: 100%; height: 45px; border: 0; border-radius: 11px; background: var(--lime); color: #0a0c17; cursor: pointer; font-size: 14px; font-weight: 850; }.library-root,.library-shared { width: 100%; height: 42px; margin-top: 14px; padding: 0 12px; text-align: left; border: 0; border-radius: 9px; background: transparent; color: #9ba3ba; cursor: pointer; font-size: 14px; }.library-root.active,.library-root:hover,.library-shared:hover { background: #171a2b; color: white; }.library-section-title { display: flex; justify-content: space-between; align-items: center; margin: 25px 8px 9px; color: #5f6883; font-size: 12px; font-weight: 850; letter-spacing: .16em; }.library-section-title button { border: 0; background: transparent; color: #9da5ba; cursor: pointer; font-size: 16px; }.library-tree-row { width: 100%; min-height: 38px; display: grid; grid-template-columns: 15px 18px minmax(0,1fr) auto; gap: 6px; align-items: center; border: 0; border-radius: 8px; background: transparent; color: #929bb3; cursor: pointer; text-align: left; font-size: 14px; }.library-tree-row:hover,.library-tree-row.active { background: #191c2d; color: white; }.library-tree-row > span { padding: 6px 0; color: #65708c; }.library-tree-row i { color: #9074f5; font-style: normal; }.library-tree-row b { overflow: hidden; text-overflow: ellipsis; font-weight: 650; white-space: nowrap; }.library-tree-row small { margin-right: 6px; color: var(--cyan); font-size: 12px; }.library-shared { border-top: 1px solid #23273b; border-radius: 0; margin-top: 20px; padding-top: 12px; height: 54px; }
.library-content { min-width: 0; position: relative; padding: clamp(24px,4vw,50px); background: radial-gradient(circle at 70% 0, rgba(92,65,187,.08), transparent 35%), #0a0c17; }.library-titlebar { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 38px; }.library-titlebar > div:last-child { display: flex; gap: 8px; }.library-titlebar p { margin: 0 0 8px; color: #66708b; font-size: 12px; }.library-titlebar h1 { margin: 0; font-size: clamp(32px,4vw,48px); letter-spacing: -.04em; }.library-titlebar > div > span { display: block; margin-top: 9px; color: #7d86a0; font-size: 14px; }.folder-grid { display: grid; grid-template-columns: repeat(3,minmax(190px,1fr)); gap: 12px; margin-bottom: 38px; }.folder-card { min-height: 92px; display: grid; grid-template-columns: 1fr 30px; align-items: center; padding: 13px 10px 13px 16px; border: 1px solid #292e45; border-radius: 13px; background: #111421; transition: border-color .2s,transform .2s; }.folder-card:hover { transform: translateY(-2px); border-color: #6652b6; }.folder-open { display: flex; gap: 12px; align-items: center; min-width: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }.folder-open > i { color: #a086ff; font-size: 28px; font-style: normal; }.folder-open b,.folder-open small { display: block; }.folder-open b { overflow: hidden; text-overflow: ellipsis; color: #e7e9f1; font-size: 14px; white-space: nowrap; }.folder-open small { margin-top: 6px; color: #6f7891; font-size: 12px; }.card-menu { border: 0; background: transparent; color: #6e7791; cursor: pointer; }.quiz-list-head,.quiz-row { display: grid; grid-template-columns: minmax(260px,1fr) 150px 100px 85px; align-items: center; gap: 14px; }.quiz-list-head { padding: 0 15px 10px; color: #646d86; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }.quiz-list-head b { color: #aeb5c8; }.quiz-row { min-height: 76px; grid-template-columns: 48px minmax(210px,1fr) 150px 100px 85px; padding: 10px 15px; border-top: 1px solid #22263a; }.quiz-row:hover { background: #10131f; }.quiz-thumb { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg,#6a42d7,#2b2260); color: var(--lime); font-size: 23px; font-weight: 850; }.quiz-row b,.quiz-row small { display: block; }.quiz-row b { font-size: 14px; }.quiz-row small,.quiz-row time { margin-top: 5px; color: #707991; font-size: 12px; }.quiz-row time { margin: 0; }.quiz-row > button { border: 0; background: transparent; color: #9d87ef; cursor: pointer; font-size: 12px; }.permission-badge { width: max-content; padding: 5px 8px; border-radius: 6px; background: rgba(56,221,242,.08); color: var(--cyan); font-size: 12px; text-transform: uppercase; }.permission-badge.owner { background: rgba(200,255,61,.08); color: var(--lime); }.permission-badge.viewer { color: #a5acc0; background: #1a1d2b; }.library-empty { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px dashed #30354e; border-radius: 14px; color: #79829b; }.library-empty strong { color: #d9dce6; font-size: 17px; }.library-empty .button { margin-top: 10px; }.floating-new { position: fixed; right: 30px; bottom: 30px; width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--lime); color: #0a0c17; box-shadow: 0 16px 40px rgba(200,255,61,.2); cursor: pointer; font-size: 27px; }
.library-dialog { width: min(500px,100%); position: relative; padding: 38px; border: 1px solid #6150b6; border-radius: 22px; background: #111424; }.library-dialog h2 { margin: 0; font-size: 30px; }.library-dialog > p:not(.overline) { color: #929bb3; font-size: 12px; line-height: 1.5; }.library-dialog label { display: grid; gap: 7px; margin-top: 20px; color: #a7aec1; font-size: 14px; }.library-dialog input,.library-dialog select { width: 100%; height: 51px; border: 1px solid #383d59; border-radius: 10px; padding: 0 13px; background: #090b17; color: white; }.library-dialog .button { width: 100%; margin-top: 20px; }.library-dialog > small { display: block; margin-top: 15px; color: #737c94; font-size: 12px; line-height: 1.5; }
@media (max-width: 960px) { .library-header { grid-template-columns: 190px 1fr auto; }.library-account > div { display: none; }.library-layout { grid-template-columns: 220px 1fr; }.folder-grid { grid-template-columns: 1fr 1fr; }.quiz-list-head { display: none; }.quiz-row { grid-template-columns: 48px 1fr 80px; }.quiz-row time,.quiz-row .permission-badge { display: none; } }
@media (max-width: 680px) { .library-header { grid-template-columns: 1fr auto; padding-inline: 17px; }.library-search { display: none; }.library-layout { display: block; }.library-sidebar { border-right: 0; border-bottom: 1px solid #24283d; }.library-tree,.library-shared,.library-section-title { display: none; }.library-content { padding: 25px 16px 90px; }.library-titlebar { align-items: flex-start; }.library-titlebar > div:last-child .button:first-child { display: none; }.folder-grid { grid-template-columns: 1fr; }.quiz-row { padding-inline: 5px; }.auth-card { padding: 38px 23px; }.library-back { left: 18px; }.library-dialog { padding: 32px 22px; } }

/* CodeIgniter + Vue compatibility layer */
.flash { position: fixed; z-index: 150; top: 18px; left: 50%; transform: translateX(-50%); padding: 12px 18px; border-radius: 10px; background: #24141c; color: #ff9fa5; border: 1px solid rgba(255,94,104,.35); }
.form-error { color: #ff8990; font-size: 14px; line-height: 1.5; }
.library-create { display: flex; align-items: center; justify-content: center; }
.library-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #dce0eb; font-size: 12px; }
.library-search input::placeholder { color: #77809a; }
.library-tree-wrap { position: relative; }
.library-tree-actions { position: absolute; right: 5px; top: 6px; display: none; gap: 2px; padding-left: 8px; background: linear-gradient(90deg,transparent,#191c2d 30%); }
.library-tree-wrap:hover .library-tree-actions { display: flex; }
.library-tree-actions button { width: 24px; height: 24px; border: 0; background: transparent; color: #a990ff; cursor: pointer; }
.library-shared.active { background: #171a2b; color: white; }
.quiz-row-actions { display: flex; align-items: center; gap: 7px; }
.quiz-row-actions a,.quiz-row-actions button { border: 0; background: transparent; color: #a990ff; cursor: pointer; font-size: 12px; padding: 4px 0; }
.creator-shell.readonly input,.creator-shell.readonly textarea,.creator-shell.readonly select { pointer-events: none; opacity: .82; }
.creator-settings textarea { width: 100%; border: 1px solid #353a56; border-radius: 8px; padding: 10px; resize: vertical; background: #111421; color: #e3e5ec; }
.accepted-field { margin-top: 28px; }
.accepted-field input { height: 48px; border: 1px solid #353a59; border-radius: 9px; padding: 0 13px; background: #090b18; color: white; }
.special-editor { min-height: 250px; margin-top: 28px; display: grid; place-items: center; align-content: center; text-align: center; border: 1px dashed #454a69; border-radius: 14px; color: #8b93ab; }
.special-editor i { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 20px; background: rgba(135,83,255,.13); color: #aa90ff; font-size: 30px; font-style: normal; }
.special-editor b { margin-top: 18px; color: #e6e8ef; }.special-editor p { max-width: 430px; line-height: 1.6; }
.player-join-card form { display: grid; gap: 12px; }.player-join-card form input { height: 56px; border: 1px solid #3a3f5d; border-radius: 11px; padding: 0 15px; background: #090b17; color: white; text-align: center; font-size: 18px; }
.waiting-orb { width: 68px; height: 68px; margin: 50px auto 0; border-radius: 50%; background: var(--lime); box-shadow: 0 0 45px rgba(200,255,61,.35); animation: pulse 1.7s ease-in-out infinite; }
.compact-leaderboard { width: min(620px,100%); margin: 36px auto; display: grid; gap: 8px; }
.compact-leaderboard > div { min-height: 54px; display: grid; grid-template-columns: 24px 36px 1fr auto; gap: 10px; align-items: center; padding: 8px 14px; border: 1px solid #343957; border-radius: 11px; background: rgba(17,20,38,.8); text-align: left; }
.compact-leaderboard i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--violet); font-style: normal; font-weight: 800; }.compact-leaderboard strong { color: var(--lime); }
.live-text-answer { width: min(720px,100%); margin: 45px auto 0; display: flex; align-items: center; gap: 12px; }.live-text-answer input:not([type=range]) { flex: 1; height: 60px; border: 1px solid #4a5072; border-radius: 12px; padding: 0 16px; background: white; color: #151728; }.live-text-answer input[type=range] { flex: 1; accent-color: var(--lime); }.live-text-answer > b { min-width: 60px; font-size: 30px; color: var(--lime); }
.multi-submit { display: flex; margin: 22px auto 0; }.answer-sent { color: var(--lime); }.slide-live { width: min(720px,100%); margin: 55px auto; padding: 50px; text-align: center; border: 1px dashed #5b527e; border-radius: 18px; color: #c4c9da; }
.results-card h2 { color: #bdc3d7; font-size: 18px; }.results-card > h1 + p { font-size: 18px; color: #aeb5c9; }
.live-pin-board { position: relative; width: min(820px, 92vw); aspect-ratio: 16 / 9; margin: 24px auto; display: block; overflow: hidden; border: 3px solid white; border-radius: 8px; background-color: #111421; background-position: center; background-size: contain; background-repeat: no-repeat; cursor: crosshair; }
.live-pin-board span { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 8px 12px; border-radius: 6px; background: rgba(8,10,23,.88); color: white; white-space: nowrap; }
.slide-live img { display: block; max-width: 100%; max-height: 45vh; margin: 0 auto 22px; object-fit: contain; }
.host-live-media { width: min(720px, 90vw); min-height: 220px; margin: 0 auto 20px; border-radius: 8px; background-position: center; background-size: contain; background-repeat: no-repeat; }
.host-response-placeholder { min-height: 180px; display: grid; place-items: center; align-content: center; color: #a9afc7; }
.host-response-placeholder strong { color: var(--lime); font-size: 54px; }
.report-summary { width: min(620px, 100%); margin: 20px auto; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #343957; border-bottom: 1px solid #343957; }
.report-summary div { padding: 18px; display: grid; gap: 5px; }
.report-summary strong { color: var(--lime); font-size: 24px; }
.report-summary span { color: #a9afc7; font-size: 14px; }
.app-status.status-fallback i { background: #ffb84d; }
.app-status.status-reconnecting i, .app-status.status-connecting i { background: #38ddf2; animation: pulse 1.4s ease-in-out infinite; }
.app-status.status-offline i { background: #ff5e68; }

@media (max-width: 680px) {
  .quiz-row { grid-template-columns: 44px 1fr auto; }.quiz-row > time,.quiz-row > .permission-badge { display: none; }
  .quiz-row-actions { flex-direction: column; align-items: flex-end; }.creator-validation { display: none; }
  .game-topbar { grid-template-columns: 1fr 48px; }.game-topbar .game-progress { grid-row: 2; grid-column: 1 / -1; }.game-grid { grid-template-columns: 1fr; }
  .live-text-answer { flex-wrap: wrap; }.live-text-answer .button { width: 100%; }
}

/* Creator workflow: autosave, validation and synchronized preview */
.creator-tool-btn.icon-only { width: 42px; padding: 0; font-size: 19px; }
.creator-tool-btn:disabled { opacity: .38; cursor: not-allowed; }
.creator-item[draggable="true"] { cursor: grab; }
.creator-item[draggable="true"]:active { cursor: grabbing; }
.inline-validation-error { width: 100%; margin: 10px 0 0; padding: 10px 12px; border: 1px solid rgba(255,94,104,.45); border-radius: 7px; background: rgba(255,94,104,.08); color: #ffc5c9; text-align: left; cursor: pointer; }
.apply-all-time { width: 100%; min-height: 34px; margin: -6px 0 12px; border: 1px solid #353a56; border-radius: 7px; background: transparent; color: #b9bfd3; cursor: pointer; }
.host-preview { max-width: 960px; min-height: 250px; margin: 0 auto 12px; padding: 22px 26px; display: grid; grid-template-rows: auto 1fr auto; border: 1px solid #343954; border-radius: 8px; background: #111421; }
.host-preview > small { color: var(--lime); font-weight: 800; letter-spacing: .08em; }
.host-preview h3 { align-self: center; margin: 22px auto; max-width: 760px; color: #f7f8ff; font-size: 30px; text-align: center; }
.host-preview-media { width: min(520px, 100%); min-height: 180px; margin: 0 auto 20px; border-radius: 8px; background-position: center; background-size: cover; }
.host-preview footer { display: flex; justify-content: space-between; color: #a9afc7; }
.question-preview.dual { max-width: 420px; min-height: 520px; border-width: 6px; border-color: #272b42; }
.validation-summary { position: relative; width: min(680px, 100%); max-height: min(760px, 90vh); overflow: auto; padding: 34px; border: 1px solid #3a405f; border-radius: 8px; background: #0d0f1c; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.validation-summary h2 { margin: 8px 0; font-size: 30px; }
.validation-summary > p:not(.overline) { color: #a9afc7; }
.validation-list { margin-top: 22px; display: grid; gap: 8px; }
.validation-list button { min-height: 66px; padding: 12px 14px; display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; border: 1px solid #303550; border-radius: 7px; background: #111421; color: #f7f8ff; text-align: left; cursor: pointer; }
.validation-list button:hover { border-color: #8753ff; background: #15182a; }
.validation-list span { color: #8e96b2; font-size: 14px; text-transform: uppercase; }
.validation-list b { color: var(--lime); font-size: 12px; }
.quiz-settings-panel .switch-label { min-height: 34px; display: flex; align-items: center; gap: 9px; }
.pin-controls { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.creator-tool-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.creator-tools-dialog { position: relative; width: min(900px, 100%); max-height: min(820px, 92vh); overflow: auto; padding: 28px; border: 1px solid #3a405f; border-radius: 8px; background: #0d0f1c; }
.creator-tools-tabs { display: flex; gap: 4px; margin-bottom: 26px; border-bottom: 1px solid #292e47; }
.creator-tools-tabs button { min-height: 42px; padding: 0 18px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #9da5bf; cursor: pointer; }
.creator-tools-tabs button.active { border-bottom-color: var(--lime); color: white; }
.creator-tool-panel { display: grid; gap: 16px; }
.creator-tool-panel h2 { margin: 0; font-size: 30px; }
.creator-tool-panel > p { margin: 0; color: #a9afc7; }
.creator-tool-panel label { display: grid; gap: 7px; color: #b9bfd3; font-size: 12px; }
.creator-tool-panel input, .creator-tool-panel textarea { width: 100%; border: 1px solid #363b58; border-radius: 7px; padding: 12px; background: #090b17; color: white; }
.import-drop { min-height: 130px; place-items: center; border: 1px dashed #555d82; cursor: pointer; }
.import-drop input { display: none; }
.import-stats { display: flex; justify-content: space-between; padding: 14px; background: #15182a; }
.bank-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.bank-results, .generated-results { display: grid; gap: 8px; max-height: 390px; overflow: auto; }
.bank-results article, .generated-results article { min-height: 72px; padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; border: 1px solid #303550; border-radius: 7px; background: #111421; }
.bank-results span, .generated-results span { grid-column: 1 / -1; color: #8f97b3; font-size: 14px; }
.bank-results button, .generated-results button { border: 0; background: transparent; color: var(--lime); cursor: pointer; }

@media (min-width: 900px) {
  .creator-main:has(.question-preview.dual) .host-preview,
  .creator-main:has(.question-preview.dual) .question-preview.dual { display: inline-grid; width: calc(50% - 8px); vertical-align: top; }
  .creator-main:has(.question-preview.dual) .host-preview { margin-right: 12px; min-height: 520px; }
}

@media (max-width: 800px) {
  .creator-toolbar-actions .icon-only, .creator-toolbar-actions .button-secondary { display: none; }
  .validation-list button { grid-template-columns: 1fr; }
}
