:root {
  --forest: #2d2e30;
  --forest-deep: #222325;
  --forest-soft: #48494c;
  --lime: #e8b126;
  --lime-dark: #c99713;
  --cream: #f1f2f4;
  --paper: #ffffff;
  --ink: #353639;
  --muted: #787a7f;
  --line: #e3e4e7;
  --gold: #e8b126;
  --red: #bc5748;
  --shadow: 0 14px 40px rgba(34, 53, 44, .075);
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--cream); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(197, 223, 70, .8); outline-offset: 2px; }
*[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { font-family: "Manrope", "DM Sans", sans-serif; }
.muted { color: var(--muted); line-height: 1.65; }
.eyebrow { display: block; margin-bottom: 8px; color: #829188; font-size: 10px; font-weight: 700; letter-spacing: .15em; line-height: 1.4; }
.eyebrow-light { color: #c8d7cd; }
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-lockup strong { display: block; color: var(--forest); font-size: 19px; font-weight: 800; letter-spacing: .14em; line-height: 1; }
.brand-lockup small { display: block; margin-top: 5px; color: #829188; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px 13px 13px 3px; background: var(--lime); color: var(--forest); font-family: "Manrope", sans-serif; font-size: 21px; font-weight: 800; transform: rotate(-3deg); }

/* Access */
.login-wrap { display: grid; grid-template-columns: minmax(380px, 520px) minmax(400px, 1fr); min-height: 100vh; padding: 36px; gap: 36px; }
.login-card { display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 420px; min-height: 650px; margin: auto; padding: 26px 10px; }
.login-card .brand-lockup { margin-bottom: 74px; }
.login-card .eyebrow:not(.brand-lockup .eyebrow) { margin-bottom: 14px; }
.login-card h1 { margin: 0 0 16px; color: var(--forest); font-size: clamp(38px, 5.2vw, 53px); letter-spacing: -.055em; line-height: 1.06; }
.login-card > p { max-width: 335px; margin-bottom: 31px; }
.form-stack { display: grid; gap: 16px; }
.form-stack label, .form-grid label, .field-label { display: grid; gap: 8px; color: #52645a; font-size: 12px; font-weight: 700; }
.form-stack input, .form-grid input, .form-grid textarea, .select-control { width: 100%; min-height: 47px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 500; }
.form-grid textarea { min-height: 72px; padding: 12px 14px; resize: vertical; }
.form-stack input::placeholder, .form-grid input::placeholder, .form-grid textarea::placeholder { color: #a2aaa4; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 11px; font-size: 13px; font-weight: 700; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { background: var(--forest); color: white; box-shadow: 0 7px 17px rgba(20, 63, 52, .16); }
.button-primary:hover:not(:disabled) { background: var(--forest-soft); box-shadow: 0 10px 20px rgba(20, 63, 52, .22); }
.button-lime { background: var(--lime); color: var(--forest-deep); }
.button-lime:hover:not(:disabled) { background: #d1e85d; }
.button-wide { width: 100%; min-height: 52px; margin-top: 5px; }
.button-small { min-height: 38px; padding: 0 14px; font-size: 11px; }
.form-error { min-height: 18px; margin: -5px 0 0; color: var(--red); font-size: 12px; }
.login-foot { display: flex; align-items: center; gap: 8px; margin-top: 34px; color: #879189; font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #7cae70; box-shadow: 0 0 0 4px #eaf2e6; }
.login-art { position: relative; display: grid; min-height: calc(100vh - 72px); overflow: hidden; place-items: center; border-radius: 30px; background: var(--forest); color: #fff; }
.login-art::before, .login-art::after { position: absolute; width: 62vw; height: 62vw; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; content: ""; }
.login-art::after { width: 44vw; height: 44vw; }
.art-orbit { position: absolute; border-radius: 50%; background: var(--lime); opacity: .92; }
.orbit-one { top: 17%; left: 18%; width: 14px; height: 14px; }
.orbit-two { right: 17%; bottom: 21%; width: 9px; height: 9px; background: #e4c360; }
.art-stamp { position: relative; display: grid; width: 240px; height: 240px; align-content: center; justify-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: var(--lime); font-size: 11px; font-weight: 600; letter-spacing: .21em; line-height: 1.65; text-align: center; transform: rotate(-9deg); }
.art-stamp b { margin-top: 5px; color: white; font-family: "Manrope", sans-serif; font-size: 23px; letter-spacing: .06em; line-height: 1.12; }
.art-caption { position: absolute; right: 32px; bottom: 26px; color: rgba(255,255,255,.62); font-size: 9px; font-weight: 700; letter-spacing: .17em; }

/* App shell */
.app-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 30px 19px 20px; border-right: 1px solid #e8e9e2; background: #fbfaf5; }
.sidebar .brand-lockup { padding: 0 9px 40px; }
.sidebar-label { padding: 0 12px 12px; color: #a0aaa2; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.main-nav { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: #65756b; font-size: 12px; font-weight: 600; text-align: left; transition: background .18s, color .18s; }
.nav-item:hover { background: #f0f2eb; color: var(--forest); }
.nav-item.is-active { background: var(--forest); color: #fff; box-shadow: 0 7px 16px rgba(20,63,52,.13); }
.nav-icon { display: grid; width: 20px; place-items: center; color: #8fa096; font-size: 18px; }
.nav-item.is-active .nav-icon { color: var(--lime); }
.sidebar-bottom { margin-top: auto; }
.help-card { margin: 0 2px 18px; padding: 16px 14px; border: 1px solid #edf0e8; border-radius: 14px; background: #f5f6ee; }
.help-icon { display: grid; width: 25px; height: 25px; margin-bottom: 11px; place-items: center; border-radius: 8px; background: var(--lime); color: var(--forest); }
.help-card strong { display: block; font-size: 11px; }
.help-card p { margin: 6px 0 0; color: #839087; font-size: 10px; line-height: 1.55; }
.profile-row { display: flex; align-items: center; gap: 9px; padding: 15px 7px 0; border-top: 1px solid var(--line); }
.avatar, .topbar-avatar { display: grid; flex: 0 0 auto; width: 33px; height: 33px; place-items: center; border-radius: 50%; background: #e2ebca; color: var(--forest); font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 800; }
.profile-info { display: grid; flex: 1; min-width: 0; gap: 3px; }
.profile-info strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
.profile-info small { color: #829087; font-size: 9px; }
.icon-button { display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 9px; background: transparent; color: #829087; font-size: 16px; }
.icon-button:hover { background: #eef1e9; color: var(--forest); }
.main-area { min-width: 0; padding: 25px clamp(22px, 4vw, 58px) 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; max-width: 1420px; margin: 0 auto 27px; padding: 0 0 19px; border-bottom: 1px solid #e3e6de; }
.topbar .eyebrow { margin-bottom: 4px; }
.topbar h1 { margin: 0; color: var(--forest); font-size: 21px; letter-spacing: -.035em; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #e5eadf; border-radius: 30px; background: rgba(255,255,255,.55); color: #6c7c70; font-size: 10px; font-weight: 700; }
.live-pill span { width: 6px; height: 6px; border-radius: 50%; background: #71ab61; }
.topbar-avatar { width: 32px; height: 32px; background: var(--forest); color: var(--lime); }
.mobile-menu { display: none; }
.view { display: none; max-width: 1420px; margin: 0 auto; }
.view.is-visible { display: block; animation: enter .28s ease both; }
@keyframes enter { from { opacity: .2; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.toast { position: fixed; z-index: 30; right: 26px; bottom: 24px; max-width: min(420px, calc(100vw - 36px)); padding: 13px 18px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: var(--forest); color: white; box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast-error { background: #863f33; }

/* Home */
.welcome-banner { position: relative; display: flex; min-height: 270px; overflow: hidden; border-radius: 21px; background: var(--forest); color: white; }
.welcome-copy { z-index: 1; align-self: center; padding: 34px 46px; }
.welcome-copy h2 { margin: 0 0 12px; font-size: clamp(29px, 4vw, 41px); letter-spacing: -.06em; line-height: 1.1; }
.welcome-copy h2 em { color: var(--lime); font-style: normal; }
.welcome-copy p { max-width: 390px; margin: 0 0 19px; color: #c3d0c7; font-size: 12px; line-height: 1.6; }
.welcome-copy .button { min-height: 41px; font-size: 11px; }
.welcome-graphic { position: absolute; top: 0; right: 2%; width: 44%; height: 100%; }
.graphic-sun { position: absolute; top: 37px; right: 27%; width: 80px; height: 80px; border-radius: 50%; background: var(--lime); }
.graphic-sun::after { position: absolute; inset: 15px; border: 1px solid rgba(20,63,52,.4); border-radius: 50%; content: ""; }
.graphic-block { position: absolute; bottom: 48px; width: 85px; background: #275f4d; transform: skewY(-13deg); }
.block-a { right: 43%; height: 111px; }
.block-b { right: 23%; height: 147px; background: #1f5344; }
.block-c { right: 3%; height: 82px; background: #366c58; }
.graphic-road { position: absolute; right: -3%; bottom: 26px; width: 108%; height: 22px; border-radius: 20px; background: #d2e174; transform: rotate(-8deg); }
.graphic-star { position: absolute; color: #e1c65b; font-size: 28px; }
.star-a { top: 73px; right: 8%; }
.star-b { top: 133px; right: 58%; color: var(--lime); font-size: 16px; }
.banner-tag { position: absolute; right: 23px; bottom: 15px; color: rgba(255,255,255,.5); font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 33px 0 16px; }
.section-heading h2 { margin: 0; color: var(--forest); font-size: 21px; letter-spacing: -.04em; }
.hint-pill { padding: 8px 11px; border: 1px solid #e5e9dd; border-radius: 30px; background: #f9f9f4; color: #7b887f; font-size: 10px; }
.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.activity-card { position: relative; min-height: 230px; overflow: hidden; padding: 19px 21px 20px; border: 1px solid #e9ebe4; border-radius: 18px; background: var(--paper); box-shadow: 0 5px 20px rgba(25,45,35,.025); }
.card-topline { display: flex; align-items: center; justify-content: space-between; }
.card-symbol { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; background: #eef5d3; color: var(--forest); font-size: 20px; }
.wheel-card .card-symbol { background: #fbf1d3; }
.card-index { color: #9ba59e; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.card-content { position: relative; z-index: 1; margin-top: 15px; }
.tag { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: 20px; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.tag-green { background: #eef5d4; color: #527044; }
.tag-yellow { background: #fbf1d3; color: #8c7135; }
.card-content h3 { margin: 10px 0 7px; color: var(--forest); font-size: 22px; letter-spacing: -.04em; line-height: 1.1; }
.card-content p { max-width: 290px; margin-bottom: 12px; color: #7a867d; font-size: 11px; line-height: 1.55; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--forest); font-size: 11px; font-weight: 700; }
.text-button span { margin-left: 6px; color: #82932e; }
.card-decoration { position: absolute; right: 20px; bottom: -17px; color: #e6edcb; font-family: "Manrope", sans-serif; font-weight: 800; }
.deco-quiz { font-size: 160px; line-height: 1; }
.deco-wheel { display: grid; width: 140px; height: 140px; place-items: center; border: 20px solid #faf5e4; border-radius: 50%; background: conic-gradient(var(--forest) 0 25%, var(--lime) 25% 50%, #c8834d 50% 75%, #73945c 75%); color: white; font-size: 30px; transform: rotate(14deg); }
.stats-strip { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 20px; align-items: center; margin: 22px 0 23px; padding: 17px 21px; border: 1px solid #e7e9e1; border-radius: 17px; background: #f0f1e9; }
.stats-intro .eyebrow { margin-bottom: 5px; }
.stats-intro strong { color: var(--forest); font-size: 13px; line-height: 1.35; }
.stat-item { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid #dfe4d8; }
.stat-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: #fffefa; color: var(--forest-soft); font-size: 17px; }
.stat-item strong { display: block; color: var(--forest); font-size: 17px; line-height: 1.05; }
.stat-item small { color: #859087; font-size: 9px; }

/* Activities */
.activity-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin: 8px 0 22px; }
.activity-heading h2 { margin: 0 0 7px; color: var(--forest); font-size: 29px; letter-spacing: -.055em; }
.activity-heading p { max-width: 610px; margin: 0; color: #77847b; font-size: 12px; line-height: 1.6; }
.activity-badge { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 9px 12px; border-radius: 30px; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.badge-green { background: #edf3dc; color: #5b7344; }
.badge-yellow { background: #f8efd7; color: #8e7438; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(230px, .8fr); gap: 18px; align-items: stretch; }
.game-panel, .aside-card, .wheel-results, .admin-card { border: 1px solid #e7eae1; border-radius: 17px; background: var(--paper); box-shadow: 0 7px 25px rgba(27,46,35,.035); }
.game-panel { min-height: 390px; padding: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-head .eyebrow { margin-bottom: 4px; }
.panel-head h3 { margin: 0; color: var(--forest); font-size: 17px; letter-spacing: -.035em; }
.mini-icon { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 11px; background: #edf3db; color: var(--forest); font-size: 17px; }
.selector-row { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 13px; margin: 21px 0 14px; }
.select-control { min-height: 42px; padding-right: 34px; color: var(--ink); font-size: 12px; }
.quiz-start { display: flex; align-items: center; gap: 21px; min-height: 220px; padding: 22px; border: 1px solid #edf0e8; border-radius: 15px; background: #fafbf7; }
.quiz-wheel-small { position: relative; flex: 0 0 169px; width: 169px; height: 169px; }
.quiz-wheel-small .wheel-rotator, .wheel-rotator { width: 100%; height: 100%; }
.quiz-wheel-small canvas { display: block; width: 100%; height: 100%; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 7px 19px rgba(18,50,39,.13); }
.mini-wheel-pointer { position: absolute; z-index: 2; top: -8px; left: 50%; color: #c27648; font-size: 22px; line-height: 1; transform: translateX(-50%); filter: drop-shadow(0 2px 2px rgba(0,0,0,.15)); }
.quiz-start-copy { display: grid; flex: 1; gap: 17px; }
.quiz-player-placeholder { display: flex; align-items: center; gap: 11px; }
.quiz-player-placeholder > div { display: grid; gap: 4px; }
.quiz-player-placeholder strong { color: var(--forest); font-size: 12px; }
.quiz-player-placeholder small { color: #859188; font-size: 10px; line-height: 1.45; }
.player-avatar { display: grid; flex: 0 0 auto; width: 35px; height: 35px; place-items: center; border-radius: 50%; background: #e7edd8; color: var(--forest); font-weight: 800; }
.quiz-start .button { width: fit-content; }
.quiz-round { padding-top: 17px; }
.respondent { display: flex; align-items: center; gap: 12px; margin: 9px 0 17px; padding: 13px 14px; border: 1px solid #ebefe4; border-radius: 13px; background: #fbfcf8; }
.respondent-avatar { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: var(--forest); color: var(--lime); font-family: "Manrope"; font-size: 16px; font-weight: 800; }
.respondent > div { display: grid; flex: 1; gap: 3px; }
.respondent .eyebrow { margin: 0; }
.respondent strong { color: var(--forest); font-size: 13px; }
.question-box { padding: 18px; border-radius: 14px; background: #f5f6ef; }
.question-number { color: #829087; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.question-box h3 { margin: 7px 0 15px; color: var(--forest); font-size: 18px; line-height: 1.35; }
.answer-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.answer-option { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 8px 10px; border: 1px solid #e5e9df; border-radius: 11px; background: var(--paper); color: #435449; text-align: left; transition: border .15s, background .15s, transform .15s; }
.answer-option:hover:not(:disabled) { border-color: #a7ba7c; transform: translateY(-1px); }
.option-letter { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: #f0f2e9; color: var(--forest); font-size: 10px; font-weight: 800; }
.option-copy { font-size: 10px; line-height: 1.4; }
.answer-option.is-correct { border-color: #82ad64; background: #eef6df; }
.answer-option.is-incorrect { border-color: #dfa29a; background: #fff0ed; }
.answer-feedback { margin-top: 13px; padding: 12px 14px; border-radius: 10px; }
.answer-feedback strong { display: block; font-size: 12px; }
.answer-feedback p { margin: 4px 0 0; font-size: 11px; line-height: 1.55; }
.feedback-good { background: #e9f3da; color: #456a39; }
.feedback-soft { background: #fbf1dc; color: #765f35; }
.quiz-round > .button { margin-top: 13px; }
.aside-card { display: flex; flex-direction: column; min-height: 390px; padding: 23px 20px; background: #eaf0dd; }
.aside-big-icon { display: grid; width: 43px; height: 43px; margin-bottom: 19px; place-items: center; border-radius: 14px; background: var(--lime); color: var(--forest); font-size: 24px; }
.aside-card .eyebrow { color: #778969; }
.steps-list { display: grid; gap: 17px; margin: 15px 0 auto; padding: 0; list-style: none; }
.steps-list li { display: flex; align-items: center; gap: 10px; color: #596a5b; font-size: 11px; line-height: 1.45; }
.steps-list li span { display: grid; flex: 0 0 23px; width: 23px; height: 23px; place-items: center; border: 1px solid #cbd5b8; border-radius: 50%; color: var(--forest); font-size: 9px; font-weight: 800; }
.aside-note { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(88,117,75,.16); color: #77856e; font-size: 10px; line-height: 1.55; }

/* Wheel */
.wheel-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .8fr); gap: 18px; align-items: stretch; }
.wheel-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 520px; padding: 24px; border: 1px solid #e7eae1; border-radius: 17px; background: var(--paper); box-shadow: 0 7px 25px rgba(27,46,35,.035); }
.wheel-shell { position: relative; width: min(100%, 430px); aspect-ratio: 1; }
.wheel-rotator { border-radius: 50%; transform: rotate(0); }
.wheel-shell canvas { display: block; width: 100%; height: 100%; border: 6px solid white; border-radius: 50%; box-shadow: 0 11px 32px rgba(25,48,37,.13); }
.wheel-pointer { position: absolute; z-index: 4; top: -13px; left: 50%; width: 0; height: 0; border-right: 18px solid transparent; border-bottom: 0; border-left: 18px solid transparent; border-top: 35px solid #c57848; filter: drop-shadow(0 3px 3px rgba(0,0,0,.16)); transform: translateX(-50%); }
.wheel-hub { position: absolute; top: 50%; left: 50%; display: grid; width: 56px; height: 56px; place-items: center; border: 5px solid white; border-radius: 50%; background: var(--forest); color: var(--lime); box-shadow: 0 2px 9px rgba(16,53,45,.25); font-family: "Manrope"; font-weight: 800; transform: translate(-50%,-50%); }
.wheel-controls { display: flex; align-items: end; justify-content: center; gap: 12px; width: min(100%, 430px); margin-top: 19px; }
.wheel-controls .field-label { flex: 1; max-width: 245px; }
.wheel-controls .select-control { background: #fbfcf8; }
.wheel-results { display: flex; flex-direction: column; min-height: 520px; padding: 23px; }
.spin-count { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; color: #89948d; font-size: 10px; }
.spin-count-value { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 12px; background: #f3f5ed; color: var(--forest); font-family: "Manrope"; font-size: 16px; font-weight: 800; }
.spin-results { display: grid; gap: 9px; }
.empty-spin { display: grid; min-height: 172px; align-content: center; justify-items: center; padding: 20px; border: 1px dashed #dce2d6; border-radius: 13px; background: #fbfcf8; text-align: center; }
.empty-spin span { display: grid; width: 37px; height: 37px; margin-bottom: 9px; place-items: center; border-radius: 50%; background: #edf3dd; color: #718344; font-size: 18px; }
.empty-spin p { max-width: 210px; margin: 0; color: #89938b; font-size: 10px; line-height: 1.5; }
.spin-result-row { display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 8px; min-height: 51px; padding: 7px 10px; border: 1px solid #e8ece4; border-radius: 12px; background: #fcfcf8; }
.spin-result-number { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; background: #edf1e6; color: #68786a; font-size: 10px; font-weight: 800; }
.spin-result-row strong { color: #435449; font-size: 11px; }
.spin-result-row small { color: #9ba49c; font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.spin-result-row.is-winner { border-color: #d9e7aa; background: #f1f6dd; }
.spin-result-row.is-winner .spin-result-number { background: var(--lime); color: var(--forest); }
.spin-result-row.is-winner strong { color: var(--forest); }
.spin-result-row.is-winner small { color: #6d823d; }
.winner-card { position: relative; display: grid; justify-items: center; gap: 5px; margin-top: 14px; padding: 17px; border: 1px solid #dce8b9; border-radius: 14px; background: #f2f7df; text-align: center; animation: enter .35s ease both; }
.winner-crown { color: #bf9540; font-size: 22px; }
.winner-card .eyebrow { margin: 0; color: #77884e; }
.winner-card strong { color: var(--forest); font-size: 20px; }
.winner-card small { color: #82916d; font-size: 10px; }
.rules-note { margin-top: auto; padding-top: 16px; color: #8b968d; font-size: 9px; line-height: 1.5; }

/* Administration */
.admin-tabs { display: flex; gap: 4px; width: fit-content; margin: 0 0 16px; padding: 4px; border: 1px solid #e6e9e0; border-radius: 12px; background: #eeefe8; }
.admin-tab { min-height: 34px; padding: 0 15px; border: 0; border-radius: 9px; background: transparent; color: #77847b; font-size: 11px; font-weight: 700; }
.admin-tab.is-active { background: #fffefa; color: var(--forest); box-shadow: 0 2px 6px rgba(35,55,43,.08); }
.admin-panel { display: none; }
.admin-panel.is-visible { display: block; }
.admin-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.admin-card { min-width: 0; padding: 20px; }
.admin-card > .muted { margin: 12px 0 16px; font-size: 11px; }
.upload-zone { display: flex; flex-direction: column; align-items: center; gap: 7px; min-height: 170px; padding: 16px; border: 1px dashed #d5dfc5; border-radius: 13px; background: #fafcf5; text-align: center; }
.upload-zone input[type=file] { width: 100%; max-width: 250px; color: #7d8a80; font-size: 10px; }
.upload-zone input[type=file]::file-selector-button { margin-right: 7px; padding: 7px 9px; border: 1px solid #dbe3cd; border-radius: 7px; background: white; color: var(--forest); font-size: 10px; font-weight: 700; cursor: pointer; }
.upload-icon { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: #eaf2cf; color: var(--forest); font-size: 18px; }
.upload-zone strong { color: var(--forest); font-size: 11px; }
.upload-zone small { color: #8c978e; font-size: 9px; }
.download-link { display: inline-flex; gap: 8px; margin-top: 13px; color: #547444; font-size: 10px; font-weight: 700; text-decoration: none; }
.download-link:hover { text-decoration: underline; }
.import-summary { margin-top: 11px; padding: 9px 11px; border-radius: 9px; background: #eef5dd; color: #55703e; font-size: 10px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-top: 16px; }
.form-grid label { gap: 6px; font-size: 10px; }
.form-grid input, .form-grid textarea, .form-grid .select-control { min-height: 39px; padding-left: 10px; font-size: 11px; }
.form-grid textarea { min-height: 68px; }
.full-field { grid-column: 1 / -1; }
.form-grid .button { min-height: 40px; justify-self: start; font-size: 11px; }
.privacy-note { margin: 13px 0 0; color: #8d988f; font-size: 9px; line-height: 1.55; }
.table-card { margin-top: 15px; padding: 19px 20px 10px; }
.table-card .panel-head { margin-bottom: 12px; }
.count-pill { display: inline-grid; min-width: 23px; height: 22px; margin-left: 5px; place-items: center; border-radius: 7px; background: #eef3df; color: #617747; font-family: "DM Sans"; font-size: 10px; vertical-align: 2px; }
.search-field { display: flex; align-items: center; gap: 5px; width: min(240px, 45%); padding: 0 10px; border: 1px solid #e6e9e1; border-radius: 9px; background: #fbfcf9; color: #849087; }
.search-field input { width: 100%; height: 34px; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 10px; }
.search-field input::placeholder { color: #9aa39b; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 8px; border-bottom: 1px solid #e8ebe3; color: #9aa49b; font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
td { padding: 11px 8px; border-bottom: 1px solid #f0f1ed; color: #435449; font-size: 10px; }
.muted-cell { color: #99a199; font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .05em; }
.plant-tag { display: inline-flex; padding: 5px 8px; border-radius: 20px; background: #f0f4e6; color: #65784c; font-size: 9px; }
.table-action { text-align: right; }
.quiet-action { padding: 5px 7px; border: 0; border-radius: 7px; background: transparent; color: #a06d5c; font-size: 9px; font-weight: 700; }
.quiet-action:hover { background: #fbefeb; }
.table-empty { padding: 18px 8px 8px; color: #8c968e; font-size: 10px; text-align: center; }
.question-admin-columns { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); }
.question-admin-list { display: grid; max-height: 610px; gap: 9px; overflow-y: auto; margin-top: 15px; padding-right: 4px; }
.question-admin-item { padding: 12px; border: 1px solid #e9ece5; border-radius: 11px; background: #fcfcf8; }
.question-admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.question-admin-item > strong { display: block; color: #435449; font-size: 11px; line-height: 1.45; }
.question-admin-item > small { display: block; margin-top: 5px; color: #75836f; font-size: 9px; line-height: 1.45; }
.privacy-footer { display: flex; align-items: center; gap: 8px; margin: 16px 1px 22px; color: #829087; font-size: 9px; }
.privacy-footer span { color: #899f55; font-size: 14px; }
.app-footer { display: flex; align-items: center; justify-content: space-between; max-width: 1420px; margin: 20px auto 0; padding: 17px 0 21px; border-top: 1px solid #e3e6de; color: #99a199; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.app-footer b { color: #93a83d; font-size: 13px; vertical-align: -1px; }

@media (max-width: 1020px) {
  .app-shell { grid-template-columns: 215px minmax(0,1fr); }
  .main-area { padding-right: 27px; padding-left: 27px; }
  .game-layout { grid-template-columns: minmax(0,1fr) 245px; }
  .game-panel { padding: 19px; }
  .quiz-start { padding: 15px; gap: 14px; }
  .quiz-wheel-small { flex-basis: 138px; width: 138px; height: 138px; }
  .wheel-layout { grid-template-columns: minmax(0,1fr) minmax(250px,.75fr); }
}
@media (max-width: 760px) {
  .login-wrap { grid-template-columns: 1fr; padding: 18px; }
  .login-card { min-height: auto; padding: 28px 7px; }
  .login-card .brand-lockup { margin-bottom: 48px; }
  .login-art { display: none; }
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 20; top: 0; left: 0; width: min(280px, 84vw); height: 100dvh; box-shadow: 16px 0 35px rgba(18,45,34,.14); transform: translateX(-105%); transition: transform .23s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .main-area { padding: 17px 17px 0; }
  .topbar { justify-content: flex-start; gap: 11px; margin-bottom: 18px; padding-bottom: 14px; }
  .mobile-menu { display: grid; flex: 0 0 auto; background: #eef0e8; }
  .topbar h1 { font-size: 17px; }
  .topbar .eyebrow { font-size: 8px; }
  .topbar-right { margin-left: auto; }
  .live-pill { display: none; }
  .welcome-banner { min-height: 248px; }
  .welcome-copy { padding: 26px 23px; }
  .welcome-copy h2 { font-size: 31px; }
  .welcome-copy p { max-width: 270px; font-size: 11px; }
  .welcome-graphic { right: -22%; width: 60%; opacity: .38; }
  .section-heading { align-items: start; gap: 12px; margin: 26px 0 14px; }
  .section-heading h2 { font-size: 19px; }
  .hint-pill { max-width: 135px; font-size: 8px; line-height: 1.4; }
  .activity-grid { grid-template-columns: 1fr; gap: 11px; }
  .activity-card { min-height: 207px; }
  .stats-strip { grid-template-columns: repeat(3,1fr); gap: 12px 8px; padding: 14px; }
  .stats-intro { grid-column: 1 / -1; }
  .stats-intro strong br { display: none; }
  .stat-item { gap: 7px; padding-left: 7px; }
  .stat-item:first-of-type { border-left: 0; padding-left: 0; }
  .stat-icon { width: 28px; height: 28px; font-size: 13px; }
  .stat-item strong { font-size: 14px; }
  .stat-item small { font-size: 8px; }
  .activity-heading { flex-direction: column; gap: 11px; margin-bottom: 17px; }
  .activity-heading h2 { font-size: 26px; }
  .activity-heading p { font-size: 11px; }
  .game-layout, .wheel-layout { grid-template-columns: 1fr; gap: 12px; }
  .game-panel { min-height: 0; padding: 17px; }
  .selector-row { grid-template-columns: 1fr; gap: 10px; margin: 16px 0 12px; }
  .quiz-start { flex-direction: column; align-items: stretch; min-height: 0; padding: 16px; }
  .quiz-wheel-small { align-self: center; width: min(48vw, 170px); height: min(48vw, 170px); }
  .quiz-start .button { width: 100%; }
  .answer-options { grid-template-columns: 1fr; }
  .aside-card { min-height: 0; padding: 18px; }
  .steps-list { gap: 11px; }
  .aside-note { margin-top: 15px; }
  .wheel-stage { min-height: 0; padding: 18px; }
  .wheel-shell { width: min(82vw, 355px); }
  .wheel-controls { align-items: stretch; flex-direction: column; }
  .wheel-controls .field-label { max-width: none; }
  .wheel-controls .button { width: 100%; }
  .wheel-results { min-height: 310px; padding: 18px; }
  .rules-note { margin-top: 20px; }
  .admin-columns, .question-admin-columns { grid-template-columns: 1fr; }
  .admin-card { padding: 16px; }
  .table-card { padding: 15px 12px 9px; }
  .search-field { width: 40%; }
  .table-card .panel-head h3 { font-size: 14px; }
  th, td { padding-right: 7px; padding-left: 7px; white-space: nowrap; }
  .app-footer { margin-top: 16px; padding: 14px 0 18px; font-size: 7px; }
}
@media (max-width: 390px) {
  .main-area { padding-right: 12px; padding-left: 12px; }
  .welcome-copy { padding-right: 16px; padding-left: 16px; }
  .welcome-copy h2 { font-size: 28px; }
  .activity-heading h2 { font-size: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .stats-strip { gap: 11px 4px; padding: 12px 8px; }
  .stat-item { gap: 5px; }
  .stat-item small { font-size: 7px; }
}

/* VITAA Soporte palette: charcoal, white, soft gray and golden yellow. */
:root {
  --forest: #2b2c2e;
  --forest-deep: #222325;
  --forest-soft: #45464a;
  --lime: #eab21c;
  --lime-dark: #c99508;
  --cream: #f1f2f4;
  --paper: #ffffff;
  --ink: #353639;
  --muted: #77797e;
  --line: #e1e2e5;
  --gold: #eab21c;
}
body { background: var(--cream); color: var(--ink); }
.login-art { background: #2b2c2e; }
.orbit-two { background: #eab21c; }
.graphic-star { background: transparent; color: #eab21c; }
.sidebar { border-right-color: #e3e4e7; background: #fff; }
.sidebar-label, .card-index { color: #929398; }
.nav-item { color: #68696d; }
.nav-item:hover, .icon-button:hover { background: #f0f1f3; color: var(--forest); }
.nav-item.is-active { background: #2b2c2e; }
.nav-icon { color: #96979b; }
.help-card { border-color: #eee3c6; background: #fffaf0; }
.help-icon, .card-symbol, .mini-icon, .upload-icon { background: #fff3d2; color: #745a12; }
.avatar { background: #fff0c4; color: #705609; }
.topbar-avatar { background: #eab21c; color: #2b2c2e; }
.status-dot { background: #eab21c; box-shadow: 0 0 0 4px #fff4d2; }
.button-lime:hover:not(:disabled) { background: #f4c94e; }
.icon-button { color: #96979b; }
.topbar {
  margin-top: -25px;
  padding: 14px 18px 13px;
  border: 0;
  border-bottom: 3px solid #eab21c;
  border-radius: 0 0 12px 12px;
  background: #2b2c2e;
}
.topbar h1 { color: #fff; }
.topbar .eyebrow { color: #eab21c; }
.live-pill { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.1); color: #f0f0f0; }
.live-pill span { background: #eab21c; }
.welcome-banner { background: #2b2c2e; }
.welcome-copy p { color: #d0d0d1; }
.graphic-block { background: #48494c; }
.block-b { background: #393a3d; }
.block-c { background: #5b5c60; }
.graphic-road { background: #eab21c; }
.graphic-star { background: transparent; }
.star-b { color: #f5d36f; }
.hint-pill { border-color: #e1e2e5; background: #fff; color: #77797e; }
.activity-card { border-color: #e3e4e7; background: #fff; }
.card-symbol { color: #705609; }
.wheel-card .card-symbol { background: #fff3d2; }
.tag-green, .tag-yellow, .badge-green, .badge-yellow {
  background: #fff3d2;
  color: #7a5e0e;
}
.card-content h3, .activity-heading h2, .section-heading h2 { color: #2b2c2e; }
.card-content p, .activity-heading p { color: #77797e; }
.text-button, .text-button span { color: #4d4e52; }
.card-decoration { color: #f4e5b7; }
.deco-wheel { border-color: #fff6df; background: conic-gradient(#2b2c2e 0 25%, #eab21c 25% 50%, #a0a1a4 50% 75%, #f2cc63 75%); }
.stats-strip { border-color: #e1e2e5; background: #e9eaed; }
.stat-icon { background: #fff; color: #55565a; }
.stat-item { border-left-color: #d8d9dd; }
.activity-badge { color: #765b09; }
.game-panel, .aside-card, .wheel-results, .admin-card, .wheel-stage { border-color: #e3e4e7; background: #fff; }
.quiz-start, .respondent, .empty-spin, .spin-result-row, .question-admin-item { border-color: #e5e6e9; background: #fafafb; }
.quiz-wheel-small canvas { box-shadow: 0 7px 19px rgba(34,35,37,.14); }
.mini-wheel-pointer, .wheel-pointer { color: #c38d08; border-top-color: #d89e0a; }
.player-avatar, .respondent-avatar { background: #2b2c2e; color: #eab21c; }
.question-box { background: #f1f2f4; }
.option-letter { background: #eceef0; color: #48494c; }
.answer-option { border-color: #e2e3e6; color: #444549; }
.answer-option:hover:not(:disabled) { border-color: #d2a122; }
.answer-option.is-correct { border-color: #d4a31c; background: #fff4d2; }
.feedback-good { background: #fff3d2; color: #755909; }
.feedback-soft { background: #fff3d2; color: #755909; }
.aside-card { background: #f1f2f4; }
.steps-list li { color: #55565a; }
.steps-list li span { border-color: #d4d5d8; color: #47484c; }
.aside-note { border-top-color: #dedfe2; color: #77797e; }
.wheel-shell canvas { box-shadow: 0 11px 32px rgba(34,35,37,.15); }
.wheel-hub { background: #2b2c2e; color: #eab21c; }
.spin-count-value, .spin-result-number { background: #f0f1f3; color: #55565a; }
.spin-result-row.is-winner { border-color: #ead797; background: #fff7df; }
.spin-result-row.is-winner .spin-result-number { background: #eab21c; color: #2b2c2e; }
.spin-result-row.is-winner strong, .spin-result-row.is-winner small { color: #74590b; }
.winner-card { border-color: #ead797; background: #fff7df; }
.winner-card .eyebrow, .winner-card strong, .winner-card small { color: #74590b; }
.admin-tabs { border-color: #e1e2e5; background: #e9eaed; }
.admin-tab { color: #77797e; }
.admin-tab.is-active { background: #fff; color: #2b2c2e; }
.upload-zone { border-color: #e6d69f; background: #fffdf7; }
.upload-zone input[type=file]::file-selector-button { border-color: #e5d8ae; color: #71570c; }
.download-link { color: #71570c; }
.import-summary, .count-pill, .plant-tag { border-color: #ead797; background: #fff5d7; color: #74590b; }
.search-field, .form-stack input, .form-grid input, .form-grid textarea, .select-control { border-color: #e1e2e5; background: #fff; }
.app-footer { border-top-color: #e1e2e5; color: #929398; }
.app-footer b, .privacy-footer span { color: #c99508; }
@media (max-width: 760px) {
  .topbar { margin: -17px -17px 18px; padding: 10px 12px 12px; border-radius: 0; }
  .mobile-menu { background: rgba(255,255,255,.12); color: #fff; }
  .mobile-menu:hover { background: rgba(255,255,255,.2); color: #fff; }
}
@media (max-width: 390px) {
  .topbar { margin-right: -12px; margin-left: -12px; }
}

/* New activities and question approval */
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.module-grid .admin-card { min-width: 0; padding: 20px; }
.module-grid .field-label { margin: 12px 0; }
.module-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 15px 0 4px; }
.button-secondary { border: 1px solid #e1e2e5; background: #f5f5f6; color: #4f5054; }
.module-result { min-height: 54px; margin-top: 15px; padding: 13px; border: 1px solid #e5e6e9; border-radius: 12px; background: #fafafb; font-size: 12px; line-height: 1.6; }
.module-result > strong { display: block; margin-bottom: 4px; color: #353639; }
.module-result p { margin: 0 0 7px; color: #77797e; }
.winner-list { color: #71570c; font-size: 11px; font-weight: 700; }
.module-history { margin-top: 15px; padding: 20px; }
.module-list { display: grid; gap: 9px; }
.module-list-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 14px; border: 1px solid #e5e6e9; border-radius: 11px; background: #fafafb; }
.module-list-row strong, .module-list-row small { display: block; }
.module-list-row strong { color: #353639; font-size: 12px; }
.module-list-row small { margin-top: 4px; color: #77797e; font-size: 10px; }
.module-list-row > small { text-align: right; }
.team-scores { margin-top: 13px; }
.team-scores > strong { display: block; margin-bottom: 10px; }
.team-score-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.team-score { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 12px; border: 1px solid #e5e6e9; border-radius: 10px; background: #fafafb; color: #57585c; font-size: 11px; }
.team-score strong { color: #292a2d; font-size: 17px; }
.team-score.is-turn { border-color: #e8c75f; background: #fff7df; }
.trivia-question { display: grid; gap: 8px; }
.trivia-question h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.45; }
.trivia-option { width: 100%; padding: 11px 13px; border: 1px solid #e2e3e6; border-radius: 10px; background: #fff; color: #444549; text-align: left; font-size: 12px; }
.trivia-option:hover:not(:disabled) { border-color: #d2a122; background: #fffaf0; }
.trivia-option.is-correct { border-color: #d4a31c; background: #fff4d2; }
.trivia-option.is-wrong { border-color: #bc5748; background: #fff0ed; }
.share-link-box { display: flex; align-items: end; gap: 9px; margin-top: 16px; padding: 12px; border: 1px solid #ead797; border-radius: 12px; background: #fffaf0; }
.share-link-box label { display: grid; flex: 1; gap: 7px; color: #71570c; font-size: 10px; font-weight: 700; }
.share-link-box input { min-width: 0; min-height: 40px; padding: 0 10px; border: 1px solid #ead797; border-radius: 9px; background: #fff; color: #55565a; font-size: 10px; }
.called-numbers { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.called-number { display: grid; min-width: 36px; height: 36px; padding: 0 7px; place-items: center; border: 1px solid #e5e6e9; border-radius: 50%; background: #f1f2f4; color: #4d4e52; font-size: 10px; font-weight: 800; }
.called-number.is-latest { border-color: #eab21c; background: #eab21c; color: #2b2c2e; transform: scale(1.08); }
.question-status-filters { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 13px; padding: 4px; border-radius: 11px; background: #e9eaed; }
.question-status-filters .admin-tab { min-height: 31px; padding: 0 10px; font-size: 10px; }
.question-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.question-actions .quiet-action { padding: 5px 8px; border: 1px solid #e1e2e5; border-radius: 7px; background: #fff; color: #55565a; font-size: 9px; }
.question-actions .action-approve { border-color: #ead797; background: #fff5d7; color: #74590b; }
.question-actions .action-delete { color: #9c483d; }
.questions-editor-card > .muted { margin: 10px 0; font-size: 11px; }
.bingo-page { min-height: 100vh; background: #f1f2f4; }
.bingo-shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 30px; }
.bingo-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 3px solid #eab21c; border-radius: 0 0 12px 12px; background: #2b2c2e; }
.bingo-header .brand-lockup strong { color: #fff; }
.bingo-header .brand-lockup small { color: #c6c6c8; }
.bingo-header .brand-mark { background: #eab21c; color: #2b2c2e; }
.bingo-hero { margin: 20px 0; padding: 27px; border-radius: 18px; background: #2b2c2e; color: #fff; }
.bingo-hero .eyebrow { color: #eab21c; }
.bingo-hero h1 { margin: 0 0 8px; font-size: clamp(26px, 5vw, 38px); letter-spacing: -.04em; }
.bingo-hero p { max-width: 650px; margin: 0; color: #d0d0d1; line-height: 1.6; }
.bingo-status { display: inline-flex; margin-top: 17px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); color: #f5d36f; font-size: 11px; font-weight: 700; }
.bingo-entry-card, .bingo-game, .called-section { padding: 20px; border: 1px solid #e3e4e7; border-radius: 16px; background: #fff; box-shadow: 0 7px 25px rgba(27,46,35,.035); }
.bingo-entry { max-width: 520px; margin: 0 auto; }
.bingo-entry-card h2, .bingo-topline h2 { margin: 0 0 7px; color: #2b2c2e; font-size: 22px; }
.bingo-entry-card > p { color: #77797e; font-size: 12px; line-height: 1.6; }
.bingo-entry-card .field-label { margin: 18px 0 12px; }
.bingo-game { display: grid; gap: 18px; }
.bingo-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.bingo-topline .eyebrow { color: #929398; }
.current-ball { display: grid; min-width: 92px; height: 83px; padding: 8px; place-items: center; border-radius: 14px; background: #2b2c2e; color: #fff; }
.current-ball span { color: #eab21c; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.current-ball strong { font-size: 26px; }
.bingo-board-wrap { width: min(100%, 620px); margin: 0 auto; }
.bingo-board { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 7px; }
.bingo-letter, .bingo-cell { display: grid; min-height: clamp(43px, 9vw, 70px); place-items: center; border-radius: 10px; }
.bingo-letter { min-height: 38px; background: #2b2c2e; color: #eab21c; font-family: "Manrope", sans-serif; font-size: 18px; font-weight: 800; }
.bingo-cell { appearance: none; padding: 0; border: 1px solid #e1e2e5; background: #f6f6f7; color: #353639; font-family: inherit; font-size: clamp(13px, 3vw, 18px); font-weight: 700; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent; transition: transform .14s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.bingo-cell:not(:disabled):active { transform: scale(.94); }
.bingo-cell:focus-visible { outline: 3px solid #9a7510; outline-offset: 2px; }
.bingo-cell:disabled { opacity: 1; cursor: default; }
.bingo-cell.is-marked { border-color: #e5bf4b; background: #fff3d2; color: #705609; box-shadow: inset 0 0 0 2px #f3d77e; }
.bingo-cell.is-called:not(.is-current):not(.is-marked) { border-color: #c6c9ce; background: #e7e9ec; color: #484b51; }
.bingo-cell.is-current { border-color: #858b94; background: #d5d9df; color: #34373c; box-shadow: 0 0 0 3px rgba(90,98,110,.16); animation: bingo-cell-pulse-gray 1s ease-in-out infinite alternate; }
.bingo-cell.is-free { background: #2b2c2e; color: #eab21c; font-size: 10px; letter-spacing: .04em; }
.bingo-marking-guide { padding: 17px; border: 1px solid #ead797; border-radius: 14px; background: #fffbef; }
.bingo-marking-guide h3 { margin: 4px 0 6px; color: #2b2c2e; font-size: 18px; }
.bingo-marking-guide > div:first-child > p { margin: 0; color: #6d6e72; font-size: 12px; line-height: 1.6; }
.bingo-progress-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; }
.bingo-progress-row strong { color: #2b2c2e; font-size: 13px; }
.bingo-player-state { padding: 5px 9px; border-radius: 999px; background: #edf6ef; color: #327044; font-size: 10px; font-weight: 800; }
.bingo-player-state.is-eliminated { background: #fbeceb; color: #9c483d; }
.bingo-progress-track { height: 10px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #ebe9e1; }
.bingo-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#eab21c,#f4d269); transition: width .25s ease; }
.bingo-mark-feedback { min-height: 18px; margin: 8px 0 0; color: #327044; font-size: 12px; font-weight: 700; }
.bingo-mark-feedback:empty { display: none; }
.bingo-mark-feedback[data-state="error"] { color: #a0443a; }
.bingo-pending-alert, .bingo-mark-ready { margin: 8px 0 0; padding: 9px 11px; border-radius: 10px; font-size: 11px; line-height: 1.45; }
.bingo-pending-alert { border: 1px solid #f0d3a5; background: #fff5e7; color: #80530c; }
.bingo-mark-ready { border: 1px solid #cfe3d3; background: #eff8f0; color: #327044; }
.called-section { padding: 16px; }
.called-section .panel-head { margin-bottom: 0; }
.called-section .panel-head h3 { margin: 0; color: #2b2c2e; font-size: 18px; }
.bingo-winners { padding: 15px; border: 1px solid #ead797; border-radius: 12px; background: #fff7df; color: #74590b; }
.bingo-winners strong { font-size: 18px; }
.bingo-winners p { margin: 5px 0 0; font-size: 12px; }
.bingo-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 15px 4px; border-top: 1px solid #e1e2e5; color: #929398; font-size: 9px; letter-spacing: .1em; }
.bingo-footer b { color: #c99508; }
@keyframes bingo-cell-pulse-gray { from { box-shadow: 0 0 0 2px rgba(90,98,110,.1); } to { box-shadow: 0 0 0 5px rgba(90,98,110,.24); } }
@media (max-width: 760px) {
  .module-grid { grid-template-columns: 1fr; }
  .module-grid .admin-card, .module-history { padding: 16px; }
  .module-list-row { align-items: start; flex-direction: column; gap: 6px; }
  .module-list-row > small { text-align: left; }
  .share-link-box { align-items: stretch; flex-direction: column; }
  .share-link-box .button { width: 100%; }
  .bingo-shell { width: min(100% - 20px, 720px); padding-top: 10px; }
  .bingo-hero { padding: 20px; }
  .bingo-marking-guide { padding: 14px; }
  .bingo-game { padding: 13px; }
  .bingo-board { gap: 4px; }
  .bingo-letter, .bingo-cell { border-radius: 7px; }
  .bingo-footer { flex-direction: column; }
}

/* Production interaction layer: QR room entry, sound, ball reveals, and accessible trivia controls */
.topbar-right { display: flex; align-items: center; gap: 10px; }
.sound-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.08); color: #f7f7f8; font-size: 10px; font-weight: 700; white-space: nowrap; }
.sound-toggle:hover { border-color: #eab21c; background: rgba(234,178,28,.15); }
.sound-toggle.is-muted { color: #d4d4d6; }
.question-list-controls { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(170px,.8fr); gap: 10px; align-items: end; margin-top: 12px; }
.question-list-controls .search-field, .question-list-controls .field-label { width: 100%; margin: 0; }
.question-list-controls .select-control { min-height: 40px; }
.trivia-summary { margin: 4px 0 10px; color: #77797e; font-size: 11px; }
.trivia-question .eyebrow { width: fit-content; margin: 0 0 3px; padding: 5px 8px; border-radius: 7px; background: #fff3d2; color: #74590b; letter-spacing: .08em; }
.bingo-share-copy { display: grid; align-content: center; gap: 9px; min-width: 0; }
.bingo-share-copy .module-actions { margin: 0; }
.bingo-share-copy > small { color: #77797e; font-size: 10px; line-height: 1.5; }
.bingo-qr-card { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 14px; border: 1px solid #e8d89e; border-radius: 14px; background: #fff; color: #2b2c2e; text-align: center; }
.bingo-qr-card strong { font-size: 12px; }
.bingo-qr-card small { max-width: 210px; color: #77797e; font-size: 9px; line-height: 1.45; }
#bingo-qr-code { display: grid; width: 232px; min-height: 232px; place-items: center; overflow: hidden; border-radius: 6px; background: #fff; }
#bingo-qr-code canvas, #bingo-qr-code img { width: 232px !important; height: 232px !important; max-width: 100%; image-rendering: pixelated; }
.bingo-host-card { overflow: hidden; }
.bingo-live-badge, .live-status-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 5px 9px; border: 1px solid #e1e2e5; border-radius: 999px; background: #f3f4f5; color: #626368; font-size: 9px; font-weight: 800; text-align: center; }
.live-status-badge.status-live { border-color: #e8c75f; background: #fff3d2; color: #74590b; }
.live-status-badge.status-completed { border-color: #dbcc9d; background: #fff8e5; color: #74590b; }
.bingo-ball-stage { position: relative; display: flex; align-items: center; gap: 18px; min-height: 145px; margin-top: 15px; padding: 16px 19px; overflow: hidden; border: 1px solid #393a3d; border-radius: 17px; background: radial-gradient(circle at 16% 5%, #4c4d50 0, #2b2c2e 36%, #202123 100%); color: #fff; perspective: 850px; transition: border-color .2s, box-shadow .2s; }
.bingo-ball-stage::before { position: absolute; z-index: 0; bottom: 12px; left: clamp(15px, 2vw, 20px); width: clamp(78px, 8vw, 105px); height: 13px; border-radius: 50%; background: rgba(0,0,0,.52); content: ""; filter: blur(8px); opacity: .34; transform: scale(.92); }
.bingo-ball-stage::after { position: absolute; right: -35px; bottom: -75px; width: 190px; height: 190px; border: 1px solid rgba(234,178,28,.19); border-radius: 50%; box-shadow: 0 0 0 18px rgba(234,178,28,.04), 0 0 0 40px rgba(234,178,28,.035); content: ""; pointer-events: none; }
.bingo-ball-disc { position: relative; z-index: 1; display: grid; flex: 0 0 108px; width: 108px; height: 108px; align-content: center; justify-items: center; overflow: hidden; border: 5px solid #fff1c1; border-radius: 50%; background: radial-gradient(circle at 31% 25%, #ffe28a 0, #eab21c 48%, #bd8b05 100%); box-shadow: inset -7px -9px 12px rgba(92,63,0,.21), inset 2px 3px 5px rgba(255,255,255,.68), 0 10px 20px rgba(0,0,0,.24); color: #26272a; transform-style: preserve-3d; will-change: transform; }
.bingo-ball-disc::before { position: absolute; inset: 3px; border: 1px solid rgba(255,255,255,.22); border-radius: inherit; background: radial-gradient(ellipse at 29% 12%, rgba(255,255,255,.83) 0, rgba(255,255,255,.28) 11%, transparent 34%), radial-gradient(ellipse at 68% 83%, rgba(87,53,0,.22), transparent 48%); content: ""; pointer-events: none; }
.bingo-ball-disc span, .bingo-ball-disc strong { position: relative; z-index: 1; text-shadow: 0 1px 0 rgba(255,255,255,.38); }
.bingo-ball-disc span { font-size: 15px; font-weight: 800; line-height: 1; }
.bingo-ball-disc strong { font-size: 39px; font-weight: 800; line-height: 1.05; }
.bingo-ball-copy { position: relative; z-index: 1; display: grid; gap: 7px; }
.bingo-ball-copy span { color: #f5d36f; font-family: "Manrope",sans-serif; font-size: clamp(16px,2vw,21px); font-weight: 800; }
.bingo-ball-copy small { max-width: 260px; color: #dedee0; font-size: 11px; line-height: 1.5; }
.bingo-ball-stage.is-drawing::before { animation: bingo-ball-shadow 1.45s ease-in-out both; }
.bingo-ball-stage.is-drawing .bingo-ball-disc { animation: bingo-ball-drop-spin 1.45s cubic-bezier(.2,.72,.25,1) both; }
.bingo-ball-stage.is-revealed .bingo-ball-disc { animation: bingo-ball-pop .52s cubic-bezier(.2,.9,.2,1.2); }
.bingo-ball-stage.is-winner { border-color: #eab21c; box-shadow: 0 0 0 3px rgba(234,178,28,.14), 0 13px 32px rgba(34,35,37,.12); }
.bingo-ball-stage.is-winner .bingo-ball-copy span { color: #ffe28a; }
.called-numbers .called-number { min-width: 42px; min-height: 38px; padding: 0 9px; border-radius: 12px; }
.called-numbers .called-number.is-latest { background: #eab21c; color: #2b2c2e; transform: translateY(-2px) scale(1.05); }
.winner-card.is-celebrating { animation: bingo-ball-pop .55s cubic-bezier(.2,.9,.2,1.2); }
.winner-celebration { display: block; margin-top: 8px; color: #80630e; font-size: 10px; font-weight: 800; }
.vitaa-confetti-layer { position: fixed; z-index: 10000; inset: 0; overflow: hidden; pointer-events: none; }
.vitaa-confetti-piece { position: absolute; top: -22px; left: var(--x); display: block; width: var(--width); height: var(--height); border-radius: 2px; background: var(--color); opacity: .96; animation: vitaa-confetti-fall var(--duration) cubic-bezier(.18,.68,.34,1) var(--delay) forwards; }
.vitaa-confetti-piece.is-ribbon { width: 5px; border-radius: 999px; }
.current-ball > div { display: flex; align-items: baseline; gap: 5px; }
.current-ball > div b { color: #f5d36f; font-size: 16px; }
.current-ball > div strong { font-size: 31px; }
.current-ball.is-new { animation: bingo-ball-pop .48s cubic-bezier(.2,.9,.2,1.2); }
.bingo-header-actions { display: flex; align-items: center; gap: 9px; }
.bingo-header .sound-toggle { border-color: rgba(255,255,255,.22); }
@keyframes bingo-ball-drop-spin {
  0% { opacity: .12; filter: blur(2px); transform: translate3d(0,-185px,0) rotateX(-65deg) rotateZ(-360deg) scale(.68); }
  34% { opacity: 1; filter: blur(0); transform: translate3d(0,18px,0) rotateX(360deg) rotateZ(420deg) scale(1.08); }
  48% { transform: translate3d(0,-30px,0) rotateX(520deg) rotateZ(590deg) scale(.97); }
  62% { transform: translate3d(0,12px,0) rotateX(700deg) rotateZ(760deg) scale(1.03); }
  75% { transform: translate3d(0,-8px,0) rotateX(850deg) rotateZ(910deg) scale(.99); }
  87% { transform: translate3d(0,4px,0) rotateX(970deg) rotateZ(1060deg) scale(1); }
  100% { opacity: 1; filter: blur(0); transform: translate3d(0,0,0) rotateX(1080deg) rotateZ(1200deg) scale(1); }
}
@keyframes bingo-ball-shadow {
  0% { opacity: .1; filter: blur(5px); transform: scale(.35); }
  34% { opacity: .48; filter: blur(11px); transform: scale(1.18); }
  48% { opacity: .24; transform: scale(.72); }
  62% { opacity: .43; transform: scale(1.06); }
  75% { opacity: .28; transform: scale(.84); }
  100% { opacity: .38; filter: blur(8px); transform: scale(1); }
}
@keyframes bingo-ball-pop { 0% { transform: scale(.64); opacity: .5; } 72% { transform: scale(1.13); opacity: 1; } 100% { transform: scale(1); } }
@keyframes bingo-mobile-ball-arrive {
  0% { opacity: .35; filter: blur(1px); transform: translate3d(0,-38px,0) rotateX(-45deg) rotateZ(-220deg) scale(.72); }
  38% { opacity: 1; filter: blur(0); transform: translate3d(0,8px,0) rotateX(330deg) rotateZ(200deg) scale(1.08); }
  58% { transform: translate3d(0,-7px,0) rotateX(500deg) rotateZ(310deg) scale(.97); }
  76% { transform: translate3d(0,3px,0) rotateX(650deg) rotateZ(420deg) scale(1.02); }
  100% { transform: translate3d(0,0,0) rotateX(720deg) rotateZ(540deg) scale(1); }
}
@keyframes vitaa-confetti-fall { 0% { transform: translate3d(0,-5vh,0) rotate(0deg); } 100% { transform: translate3d(var(--drift, 16px),110vh,0) rotate(var(--spin)); } }
@media (max-width: 760px) {
  .topbar-right { gap: 6px; }
  .topbar-right .sound-toggle { min-height: 34px; padding: 0 8px; font-size: 9px; }
  .question-list-controls { grid-template-columns: 1fr; }
  .share-link-box { display: grid; grid-template-columns: 1fr; }
  .bingo-qr-card { width: 100%; }
  .bingo-ball-stage { min-height: 125px; gap: 13px; padding: 13px; }
  .bingo-ball-disc { flex-basis: 88px; width: 88px; height: 88px; }
  .bingo-ball-disc strong { font-size: 32px; }
  .bingo-topline { align-items: flex-start; }
  .current-ball { display: flex; flex: 0 0 78px; flex-direction: column; align-items: center; gap: 5px; min-width: 78px; height: auto; padding: 0; overflow: visible; border-radius: 0; background: transparent; color: #2b2c2e; perspective: 650px; }
  .current-ball span { color: #77797e; font-size: 7px; line-height: 1; white-space: nowrap; }
  .current-ball > div { position: relative; display: grid; flex: 0 0 74px; width: 74px; height: 74px; align-content: center; justify-items: center; gap: 0; overflow: hidden; border: 4px solid #fff1c1; border-radius: 50%; background: radial-gradient(circle at 31% 24%, #ffe28a 0, #eab21c 48%, #bd8b05 100%); box-shadow: inset -6px -7px 10px rgba(92,63,0,.2), inset 2px 3px 5px rgba(255,255,255,.7), 0 7px 14px rgba(0,0,0,.22); transform-style: preserve-3d; will-change: transform; }
  .current-ball > div::before { position: absolute; inset: 2px; border: 1px solid rgba(255,255,255,.24); border-radius: inherit; background: radial-gradient(ellipse at 29% 12%, rgba(255,255,255,.84) 0, rgba(255,255,255,.25) 12%, transparent 35%), radial-gradient(ellipse at 68% 83%, rgba(87,53,0,.2), transparent 48%); content: ""; pointer-events: none; }
  .current-ball > div b, .current-ball > div strong { position: relative; z-index: 1; color: #26272a; text-shadow: 0 1px 0 rgba(255,255,255,.4); }
  .current-ball > div b { font-size: 13px; line-height: 1; }
  .current-ball > div strong { font-size: 27px; line-height: 1.05; }
  .current-ball.is-new { animation: none; }
  .current-ball.is-new > div { animation: bingo-mobile-ball-arrive .84s cubic-bezier(.17,.72,.22,1) both; }
  .bingo-header { align-items: flex-start; }
  .bingo-header-actions { flex-direction: column-reverse; align-items: flex-end; gap: 5px; }
  .bingo-header .live-pill { padding: 5px 7px; font-size: 8px; }
}
@media (max-width: 430px) {
  .topbar-right .live-pill { display: none; }
  .topbar-right .sound-toggle { max-width: 116px; overflow: hidden; text-overflow: ellipsis; }
  .bingo-ball-stage { align-items: center; }
  .bingo-ball-copy span { font-size: 15px; }
  .bingo-ball-copy small { font-size: 10px; }
  .bingo-topline { align-items: flex-start; }
  .bingo-board-wrap { width: 100%; }
  .bingo-cell { min-height: clamp(48px, 14vw, 60px); border-radius: 9px; font-size: clamp(15px, 4vw, 18px); }
  .bingo-board { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .vitaa-confetti-piece, .bingo-ball-disc, .current-ball.is-new, .current-ball.is-new > div, .winner-card.is-celebrating, .bingo-cell.is-current, .bingo-ball-stage.is-drawing::before { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  * { scroll-behavior: auto !important; }
}
