/* ==========================================================================
   Skeleton — design system (STYLE_GUIDE, sky -> blue)
   ========================================================================== */
:root{
  --sky:#0ea5e9; --blue:#0369a1; --blue-dark:#075985; --sky-soft:#e0f2fe;
  --teal:#0d9488; --teal-soft:#ccfbf1;
  --green:#059669; --green-soft:#d1fae5;
  --amber:#d97706; --amber-soft:#fef3c7;
  --red:#dc2626; --red-soft:#fee2e2;
  --gray-badge:#64748b; --gray-soft:#f1f5f9;
  --ink:#0f172a; --ink-2:#334155; --muted:#64748b; --muted-2:#94a3b8;
  --line:#e2e8f0; --line-2:#cbd5e1; --bg:#f8fafc; --bg-2:#f1f5f9;
  --radius:14px; --radius-lg:18px; --radius-sm:10px;
  --shadow-sm:0 1px 2px rgba(15,23,42,.06);
  --shadow:0 4px 12px -4px rgba(15,23,42,.12);
  --shadow-lg:0 12px 32px -16px rgba(15,23,42,.18);
  --brand-logo:url('/assets/img/logo.svg');
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body{font-family:'Inter',system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--ink);min-height:100dvh;line-height:1.5;overflow-x:hidden}
a{color:var(--blue);text-decoration:none}
a:hover{color:var(--blue-dark)}
img,svg{max-width:100%;height:auto;display:block}
i[class^="ri-"],i[class*=" ri-"]{font-style:normal;line-height:1;display:inline-flex;vertical-align:middle}
h1,h2,h3{letter-spacing:-.02em}

/* ---- Buttons ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 18px;border-radius:var(--radius-sm);font-size:14.5px;font-weight:600;border:1px solid transparent;cursor:pointer;transition:filter .15s,transform .05s,background .15s;font-family:inherit;white-space:nowrap}
.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.6;cursor:not-allowed}
.btn-primary{background:linear-gradient(135deg,var(--sky),var(--blue));color:#fff}
.btn-primary:hover{filter:brightness(1.05);color:#fff}
.btn-secondary{background:#fff;color:var(--ink-2);border-color:var(--line-2)}
.btn-secondary:hover{background:var(--bg-2);color:var(--ink)}
.btn-success{background:var(--green);color:#fff}
.btn-danger{background:var(--red);color:#fff}
.btn-warn{background:var(--amber);color:#fff}
.btn-ghost{background:transparent;color:var(--ink-2)}
.btn-ghost:hover{background:var(--bg-2)}
.btn-light{background:#fff;color:var(--blue)}
.btn.sm{padding:8px 13px;font-size:13px}
.btn.lg{padding:14px 24px;font-size:16px}
.btn-full{width:100%}
.icon-btn{width:40px;height:40px;border-radius:10px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;font-size:20px;cursor:pointer;color:var(--ink-2)}
.icon-btn:hover{background:var(--bg-2)}

/* ---- Cards ---- */
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow-sm)}
.card.lg{padding:26px;border-radius:var(--radius-lg)}
.card-title{font-size:16px;font-weight:700;margin-bottom:14px}

/* ---- Badges ---- */
.badge{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.6}
.badge.gray{background:var(--gray-soft);color:var(--gray-badge)}
.badge.blue{background:var(--sky-soft);color:var(--blue)}
.badge.teal{background:var(--teal-soft);color:var(--teal)}
.badge.green{background:var(--green-soft);color:var(--green)}
.badge.amber{background:var(--amber-soft);color:var(--amber)}
.badge.red{background:var(--red-soft);color:var(--red)}

/* ---- Forms ---- */
.form-group{margin-bottom:15px}
.form-group label{display:block;font-size:13px;font-weight:600;color:var(--ink-2);margin-bottom:6px}
input,select,textarea{width:100%;padding:11px 13px;border:1px solid var(--line-2);border-radius:var(--radius-sm);font-size:15px;font-family:inherit;color:var(--ink);background:#fff;transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--sky);box-shadow:0 0 0 3px var(--sky-soft)}
textarea{resize:vertical;min-height:84px}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hint{font-size:12px;color:var(--muted);margin-top:5px}
@media(max-width:520px){.field-row{grid-template-columns:1fr}}
/* Toggle switch — checkbox styled as a switch (use class="tgl" on a checkbox input) */
.tgl{appearance:none;-webkit-appearance:none;width:42px;height:24px;min-height:0;padding:0;border:none;border-radius:999px;background:var(--line-2);position:relative;cursor:pointer;transition:background .18s;flex:0 0 auto}
.tgl::after{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.3);transition:transform .18s}
.tgl:checked{background:linear-gradient(135deg,var(--sky),var(--blue))}
.tgl:checked::after{transform:translateX(18px)}
.tgl:focus{outline:none;box-shadow:none}
.tgl:focus-visible{box-shadow:0 0 0 3px var(--sky-soft)}

/* ---- Messages / spinner / skeleton ---- */
.msg{padding:11px 14px;border-radius:var(--radius-sm);font-size:13.5px;font-weight:500;display:flex;align-items:center;gap:8px}
.msg.err{background:var(--red-soft);color:#b91c1c}
.msg.ok{background:var(--green-soft);color:#047857}
.msg.info{background:var(--sky-soft);color:var(--blue)}
.msg.warn{background:var(--amber-soft);color:#b45309}
.spinner{width:16px;height:16px;border:2px solid rgba(0,0,0,.15);border-top-color:var(--blue);border-radius:50%;display:inline-block;animation:spin .7s linear infinite}
.spinner.white{border-color:rgba(255,255,255,.4);border-top-color:#fff}
@keyframes spin{to{transform:rotate(360deg)}}
.skeleton{background:linear-gradient(90deg,var(--bg-2) 25%,#e9eef5 50%,var(--bg-2) 75%);background-size:200% 100%;animation:sk 1.3s infinite;border-radius:8px}
@keyframes sk{to{background-position:-200% 0}}

/* ---- Stats ---- */
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:720px){.stats{grid-template-columns:repeat(4,1fr)}}
.stat{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;box-shadow:var(--shadow-sm)}
.stat .label{font-size:12.5px;color:var(--muted);font-weight:600;display:flex;align-items:center;gap:6px}
.stat .value{font-size:28px;font-weight:800;letter-spacing:-.02em;margin-top:4px}
.stat .meta{font-size:12px;color:var(--muted-2);margin-top:2px}
.stat.accent{background:linear-gradient(135deg,var(--sky),var(--blue));color:#fff;border:none}
.stat.accent .label,.stat.accent .meta{color:rgba(255,255,255,.85)}

/* ---- Tables ---- */
.table{width:100%;border-collapse:collapse;font-size:14px}
.table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:700;padding:10px 12px;border-bottom:1px solid var(--line)}
.table td{padding:11px 12px;border-bottom:1px solid var(--line)}
.table tr:hover td{background:var(--bg)}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:#fff}

/* ---- Layout utils ---- */
.mt-1{margin-top:6px}.mt-2{margin-top:10px}.mt-3{margin-top:16px}.mt-4{margin-top:24px}.mt-5{margin-top:32px}
.mb-2{margin-bottom:10px}.mb-3{margin-bottom:16px}.mb-4{margin-bottom:24px}
.row{display:flex;gap:10px;align-items:center}
.row.between{justify-content:space-between}
.row.wrap{flex-wrap:wrap}
.grow{flex:1}
.muted{color:var(--muted)}
.text-sm{font-size:13px}.text-xs{font-size:12px}
.center{text-align:center}
.split{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:900px){.split{grid-template-columns:1fr 1fr}}
.grid-3{display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:640px){.grid-3{grid-template-columns:repeat(2,1fr)}}
@media(min-width:980px){.grid-3{grid-template-columns:repeat(3,1fr)}}
.hide-mobile{display:none}
@media(min-width:1024px){.hide-mobile{display:block}.hide-desktop{display:none}}

/* ---- Admin shell ---- */
.admin-layout{min-height:100dvh}
.admin-sidebar{position:fixed;top:0;left:0;bottom:0;width:260px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:18px 14px;z-index:60;transform:translateX(-100%);transition:transform .2s}
.admin-sidebar.open{transform:translateX(0)}
.admin-brand{display:flex;align-items:center;gap:11px;padding:6px 8px 16px;border-bottom:1px solid var(--line);margin-bottom:12px}
.admin-brand .logo{width:40px;height:40px;border-radius:11px;background:linear-gradient(135deg,var(--sky),var(--blue));color:#fff;display:grid;place-items:center;font-size:22px;flex-shrink:0}
.admin-brand h1{font-size:15px;font-weight:800;line-height:1.2}
.admin-brand p{font-size:11.5px;color:var(--muted);font-weight:600}
.admin-sidebar>nav{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.admin-nav{list-style:none;display:flex;flex-direction:column;gap:3px;flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
.admin-nav .nav-section{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted-2);padding:14px 13px 5px}
.admin-nav a{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:10px;color:var(--ink-2);font-size:14.5px;font-weight:600}
.admin-nav a .icon{font-size:20px}
.admin-nav a:hover{background:var(--bg-2);color:var(--ink)}
.admin-nav a.active{background:var(--sky-soft);color:var(--blue)}
.admin-nav a .count{margin-left:auto;background:var(--red);color:#fff;font-size:11px;font-weight:700;border-radius:999px;padding:1px 7px}
.admin-user-card{border-top:1px solid var(--line);padding-top:14px;margin-top:8px}
.admin-user-card .name{font-size:14px;font-weight:700}
.admin-user-card .role{font-size:12px;color:var(--muted);text-transform:capitalize}
.admin-sidebar-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.4);z-index:55;display:none}
.admin-sidebar-backdrop.show{display:block}
.admin-main{padding:0;min-height:100dvh}
.admin-mobile-bar{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
.admin-header{padding:20px 16px 8px}
.admin-header h1{font-size:22px;font-weight:800}
.admin-header p{font-size:14px;color:var(--muted)}
.admin-content{padding:16px}
@media(min-width:1024px){
  body.admin{background:var(--bg-2)}
  .admin-sidebar{transform:none}
  .admin-main{margin-left:260px}
  .admin-mobile-bar{display:none}
  .admin-header{padding:26px 32px 10px}
  .admin-content{padding:12px 32px 48px}
  .admin-sidebar-backdrop{display:none !important}
}

/* ---- Public landing (ld-*) ---- */
.ld-wrap{max-width:1140px;margin:0 auto;padding:0 20px}
.ld-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.9);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.ld-header .ld-wrap{display:flex;align-items:center;justify-content:space-between;height:64px}
.ld-brand{display:flex;align-items:center;gap:11px;font-weight:800;font-size:17px;color:var(--ink)}
.ld-brand .logo{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,var(--sky),var(--blue));color:#fff;display:grid;place-items:center;font-size:22px}
.ld-brand small{display:block;font-size:10.5px;font-weight:600;color:var(--muted);letter-spacing:.04em}
.ld-nav-links{display:none;gap:24px;margin-right:10px}
.ld-nav-links a{color:var(--ink-2);font-weight:600;font-size:14.5px}
.ld-nav-links a:hover{color:var(--blue)}
@media(min-width:860px){.ld-nav-links{display:flex}}
@media(max-width:600px){.ld-header .ld-wrap{height:58px;padding:0 14px}.ld-brand small{display:none}.ld-brand{font-size:15px}}
.ld-hero{background:linear-gradient(160deg,var(--sky-soft) 0%,var(--sky-soft) 55%,#ffffff 100%);border-bottom:1px solid var(--line)}
.ld-hero .ld-wrap{display:grid;grid-template-columns:1fr;gap:34px;padding:48px 20px 52px;align-items:center}
@media(min-width:920px){.ld-hero .ld-wrap{grid-template-columns:1.05fr .95fr;padding:72px 20px 80px}}
.ld-pill{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--sky-soft);color:var(--blue);padding:7px 14px;border-radius:999px;font-size:13px;font-weight:700;box-shadow:var(--shadow-sm)}
.ld-hero h1{font-size:38px;line-height:1.08;font-weight:800;letter-spacing:-.025em;margin:16px 0 14px}
@media(min-width:920px){.ld-hero h1{font-size:52px}}
.ld-hero h1 .accent{background:linear-gradient(120deg,var(--sky),var(--blue));-webkit-background-clip:text;background-clip:text;color:transparent}
.ld-hero p.lead{font-size:17px;line-height:1.6;color:var(--ink-2);max-width:540px;margin-bottom:26px}
.ld-cta{display:flex;flex-wrap:wrap;gap:12px}
.ld-trust{display:flex;flex-wrap:wrap;gap:20px;margin-top:28px}
.ld-trust .item{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--ink-2)}
.ld-trust .item i{color:var(--green);font-size:19px}
.ld-hero-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:var(--shadow-lg)}
.ld-section{padding:60px 0}
.ld-section.alt{background:var(--bg);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ld-head{text-align:center;max-width:620px;margin:0 auto 40px}
.ld-head .eyebrow{font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--sky)}
.ld-head h2{font-size:29px;font-weight:800;margin:10px 0 12px}
.ld-head p{font-size:16px;color:var(--muted);line-height:1.6}
.ld-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:640px){.ld-grid{grid-template-columns:1fr 1fr}}
@media(min-width:980px){.ld-grid.cols-3{grid-template-columns:repeat(3,1fr)}.ld-grid.cols-4{grid-template-columns:repeat(4,1fr)}}
.ld-feature{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px 20px;transition:transform .15s,box-shadow .15s}
.ld-feature:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.ld-feature .ic{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;font-size:26px;margin-bottom:14px;background:var(--sky-soft);color:var(--blue)}
.ld-feature.teal .ic{background:var(--teal-soft);color:var(--teal)}
.ld-feature.green .ic{background:var(--green-soft);color:var(--green)}
.ld-feature.amber .ic{background:var(--amber-soft);color:var(--amber)}
.ld-feature h3{font-size:17px;font-weight:700;margin-bottom:6px}
.ld-feature p{font-size:14px;color:var(--muted);line-height:1.6}
.ld-banner{background:linear-gradient(135deg,var(--sky),var(--blue));border-radius:24px;padding:46px 28px;text-align:center;color:#fff;box-shadow:0 24px 56px -24px rgba(3,105,161,.6)}
.ld-banner h2{font-size:29px;font-weight:800;margin-bottom:10px}
.ld-banner p{font-size:16px;opacity:.92;margin-bottom:22px}
.ld-footer{background:var(--ink);color:#cbd5e1;padding:46px 0 26px}
.ld-footer .ld-wrap{display:grid;grid-template-columns:1fr;gap:28px}
@media(min-width:760px){.ld-footer .ld-wrap{grid-template-columns:1.4fr 1fr 1fr}}
.ld-footer .brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:800;font-size:17px;margin-bottom:12px}
.ld-footer .brand .logo{width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,var(--sky),var(--blue));display:grid;place-items:center;font-size:20px;color:#fff}
.ld-footer p{font-size:13.5px;line-height:1.7;color:#94a3b8}
.ld-footer h5{color:#fff;font-size:13px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;margin-bottom:12px}
.ld-footer a{color:#cbd5e1;font-size:14px;display:flex;align-items:center;gap:9px;padding:5px 0}
.ld-footer a:hover{color:#fff}
.ld-footer-bottom{border-top:1px solid #1e293b;margin-top:28px;padding-top:18px;text-align:center;font-size:13px;color:#64748b}

/* ---- Public app shell + tab bar ---- */
body.public{padding-top:64px;padding-bottom:calc(68px + env(safe-area-inset-bottom))}
@media(max-width:600px){body.public{padding-top:58px}}
.public-header{position:fixed;top:0;left:0;right:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.public-header .ld-wrap{display:flex;align-items:center;justify-content:space-between;height:64px}
@media(max-width:600px){.public-header .ld-wrap{height:58px;padding:0 14px}}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:grid;grid-template-columns:repeat(4,1fr);background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.tabbar.tabbar-5{grid-template-columns:repeat(5,1fr)}
.tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:9px 4px 8px;color:var(--muted);font-size:11px;font-weight:600}
.tabbar a i{font-size:22px}
.tabbar a.active{color:var(--blue)}
.tabbar a.book i{background:linear-gradient(135deg,var(--sky),var(--blue));color:#fff;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;margin-top:-22px;box-shadow:0 8px 18px -6px rgba(3,105,161,.6);font-size:22px}
@media(min-width:1024px){.tabbar{display:none}body.public{padding-bottom:0}}
.public-content{max-width:900px;margin:0 auto;padding:18px 16px 32px}

/* ---- Narrow page ---- */
.page-narrow{max-width:560px;margin:0 auto;padding:22px 16px 48px}
.page-narrow .topbar{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.page-narrow .topbar .logo{width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,var(--sky),var(--blue));color:#fff;display:grid;place-items:center;font-size:20px}
.page-narrow .topbar h1{font-size:18px;font-weight:800}
.page-narrow .topbar p{font-size:12px;color:var(--muted)}
.step-dot{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--blue);color:#fff;font-size:12px;font-weight:700}

/* ---- Bottom sheet ---- */
.sheet-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:200;display:none;align-items:flex-end;justify-content:center}
.sheet-backdrop.show{display:flex}
.sheet{background:#fff;width:100%;max-width:520px;border-radius:20px 20px 0 0;padding:20px;max-height:92dvh;overflow-y:auto;box-shadow:0 -10px 40px -10px rgba(0,0,0,.3);animation:sheetUp .22s}
@keyframes sheetUp{from{transform:translateY(40px);opacity:.5}to{transform:translateY(0);opacity:1}}
.sheet-handle{width:40px;height:4px;border-radius:2px;background:var(--line-2);margin:0 auto 14px}
@media(min-width:640px){.sheet-backdrop{align-items:center}.sheet{border-radius:18px}}

/* ---- Brand logo chips ---- */
.ld-brand .logo,.ld-footer .brand .logo,.admin-brand .logo,.page-narrow .topbar .logo,.public-header .ld-brand .logo{background:#fff var(--brand-logo) center/contain no-repeat !important;border:1px solid var(--line)}
.ld-brand .logo i,.ld-footer .brand .logo i,.admin-brand .logo i,.page-narrow .topbar .logo i{display:none}

/* ---- Misc components ---- */
.timeline{position:relative;padding-left:26px}
.timeline:before{content:"";position:absolute;left:9px;top:6px;bottom:6px;width:2px;background:var(--line)}
.timeline .tl-item{position:relative;padding-bottom:18px}
.timeline .tl-item:before{content:"";position:absolute;left:-21px;top:3px;width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid var(--sky)}
.timeline .tl-item.done:before{border-color:var(--green);background:var(--green)}
.timeline .tl-title{font-weight:700;font-size:14px}
.timeline .tl-meta{font-size:12px;color:var(--muted)}
.chip{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:12px;border:1px solid var(--line);background:#fff;font-size:13px;font-weight:600;cursor:pointer}
.chip.active{border-color:var(--sky);background:var(--sky-soft);color:var(--blue)}
.cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
@media(min-width:520px){.cat-grid{grid-template-columns:repeat(4,1fr)}}
.cat-tile{border:1px solid var(--line);border-radius:14px;padding:14px 8px;text-align:center;cursor:pointer;background:#fff;transition:.15s}
.cat-tile:hover{border-color:var(--sky)}
.cat-tile.active{border-color:var(--sky);background:var(--sky-soft)}
.cat-tile i{font-size:26px;color:var(--blue);display:block;margin-bottom:6px}
.cat-tile span{font-size:12px;font-weight:600;color:var(--ink-2)}
#map,.map{height:340px;border-radius:var(--radius);border:1px solid var(--line);z-index:1}
.empty{text-align:center;padding:46px 20px;color:var(--muted)}
.empty i{font-size:46px;color:var(--line-2);display:block;margin-bottom:12px}
.progressbar{height:6px;background:var(--bg-2);border-radius:999px;overflow:hidden}
.progressbar>span{display:block;height:100%;background:linear-gradient(135deg,var(--sky),var(--blue))}
.divider{height:1px;background:var(--line);margin:16px 0}
.avatar{width:40px;height:40px;border-radius:50%;background:var(--sky-soft);color:var(--blue);display:grid;place-items:center;font-weight:700;font-size:15px;flex-shrink:0}
.demo-banner{background:var(--amber);color:#fff;text-align:center;font-size:13px;font-weight:600;padding:7px 12px}
.readonly-banner{background:var(--red);color:#fff;text-align:center;font-size:13px;font-weight:600;padding:7px 12px}
.star-rate i{font-size:30px;color:var(--line-2);cursor:pointer}
.star-rate i.on{color:var(--amber)}
.kbd-link{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff;margin-bottom:10px}
.kbd-link i{font-size:22px;color:var(--blue)}

/* ==========================================================================
   Shared admin/list/detail components
   ========================================================================== */
.page-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.toolbar .search{flex:1;min-width:180px;position:relative}
.toolbar .search i{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted-2);font-size:18px}
.toolbar .search input{padding-left:38px}
.list-card{display:none}
.detail-rows{display:grid;grid-template-columns:1fr;gap:0}
.detail-rows .dr{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:14px}
.detail-rows .dr:last-child{border-bottom:none}
.detail-rows .dr .k{color:var(--muted);font-weight:600}
.detail-rows .dr .v{font-weight:600;text-align:right}
.kv-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:640px){.kv-grid{grid-template-columns:repeat(3,1fr)}}
.kv{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.kv .k{font-size:12px;color:var(--muted);font-weight:600}
.kv .v{font-size:16px;font-weight:700;margin-top:3px}
.tag-link{color:var(--blue);font-weight:600}
.pulse{animation:pulse 1.6s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(3,105,161,.5)}70%{box-shadow:0 0 0 12px rgba(3,105,161,0)}100%{box-shadow:0 0 0 0 rgba(3,105,161,0)}}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:16px;overflow-x:auto}
.tabs a{padding:10px 14px;font-size:14px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;white-space:nowrap}
.tabs a.active{color:var(--blue);border-bottom-color:var(--blue)}
.section-title{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:22px 0 10px}
.pill-row{display:flex;gap:8px;flex-wrap:wrap}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block}
.dot.green{background:var(--green)}.dot.amber{background:var(--amber)}.dot.red{background:var(--red)}.dot.gray{background:var(--gray-badge)}.dot.teal{background:var(--teal)}
.print-only{display:none}
.pagination{display:flex;gap:6px;justify-content:center;margin-top:18px}
.pagination a,.pagination span{padding:7px 12px;border:1px solid var(--line);border-radius:8px;font-size:13px;font-weight:600;color:var(--ink-2);background:#fff}
.pagination .active{background:var(--sky-soft);color:var(--blue);border-color:var(--sky)}
@media(max-width:680px){
  .hide-sm{display:none}
  .table-as-cards thead{display:none}
  .table-as-cards,.table-as-cards tbody,.table-as-cards tr,.table-as-cards td{display:block;width:100%}
  .table-as-cards tr{border:1px solid var(--line);border-radius:12px;margin-bottom:10px;padding:6px 12px;background:#fff}
  .table-as-cards td{border:none;padding:6px 0;display:flex;justify-content:space-between;gap:12px}
  .table-as-cards td:before{content:attr(data-label);font-weight:700;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.03em}
}
@media print{
  .no-print,.admin-sidebar,.admin-mobile-bar,.tabbar,.page-actions,.toolbar{display:none !important}
  .admin-main{margin-left:0 !important}
  .print-only{display:block}
  body{background:#fff}
  .card{box-shadow:none;border:1px solid #ddd}
}

/* ===== APP-SPECIFIC (Quizora) — everything below this marker is app-only ===== */

/* ---- Quizora: status pills (quiz/game/flag statuses) ---- */
.pill{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:20px;font-size:11.5px;font-weight:700;background:#eef2f7;color:#475569;white-space:nowrap}
.pill-published,.pill-active,.pill-open,.pill-correct{background:#dcfce7;color:#15803d}
.pill-draft,.pill-pending{background:#fef9c3;color:#a16207}
.pill-lobby,.pill-unlisted{background:#e0f2fe;color:#0369a1}
.pill-running,.pill-live{background:#dbeafe;color:#1d4ed8}
.pill-ended,.pill-closed,.pill-finished{background:#e2e8f0;color:#475569}
.pill-cancelled,.pill-kicked,.pill-wrong,.pill-actioned{background:#fee2e2;color:#b91c1c}
.pill-public{background:#ede9fe;color:#6d28d9}
.pill-private,.pill-dismissed{background:#f1f5f9;color:#64748b}
.pill-team{background:#fce7f3;color:#be185d}
.pill-assignment{background:#ffedd5;color:#c2410c}
.pill-practice{background:#ccfbf1;color:#0f766e}

/* ---- Quizora: right-align numeric table cells ---- */
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}

/* ---- Quizora: the four answer-slot colours + shapes (shared by host + player) ----
   Slot order is fixed: 0 red/triangle, 1 blue/diamond, 2 amber/circle, 3 green/square,
   4 violet/pentagon, 5 pink/star — colour AND shape together for colourblind safety. */
.slot-0{--slot:#e21b3c}.slot-1{--slot:#1368ce}.slot-2{--slot:#d89e00}.slot-3{--slot:#26890c}
.slot-4{--slot:#7c3aed}.slot-5{--slot:#db2777}

/* (Feature agents append their own sections below — host screen `.gm-*`,
   player app `.gp-*`, quiz editor `.qe-*`, public site under its own marker.) */

/* ---- library (.lib-) ---- */
.lib-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.lib-card{display:flex;flex-direction:column;gap:8px;text-decoration:none;color:inherit;min-width:0}
a.lib-card:hover{border-color:var(--sky);box-shadow:0 4px 14px rgba(14,165,233,.12)}
.lib-card-head{display:flex;align-items:flex-start;gap:8px;min-width:0}
.lib-card-head>i{font-size:20px;color:var(--sky);flex:none;margin-top:1px}
.lib-card-head strong{word-break:break-word}
.lib-card-head a{text-decoration:none;color:inherit;min-width:0;flex:1}
.lib-card-head a:hover strong{color:var(--blue)}
.lib-card-tags{display:flex;gap:6px;flex-wrap:wrap}
.lib-card-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-top:auto}
.lib-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lib-heart-form{margin-left:auto;flex:none}
.lib-heart{border:0;background:none;cursor:pointer;font-size:20px;line-height:1;color:var(--muted-2);padding:2px}
.lib-heart:hover{color:var(--red)}
.lib-heart.on{color:var(--red)}
.lib-tabs{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.lib-tab{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:10px;border:1px solid var(--line);background:#fff;font-size:13.5px;font-weight:600;color:var(--ink-2);text-decoration:none}
.lib-tab.on{background:var(--sky-soft);border-color:var(--sky);color:var(--blue)}
.lib-chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px;align-items:center}
.lib-chip{padding:5px 12px;border-radius:20px;border:1px solid var(--line);background:#fff;font-size:12.5px;font-weight:600;color:var(--ink-2);text-decoration:none;white-space:nowrap}
.lib-chip:hover{border-color:var(--sky)}
.lib-chip.on{background:var(--sky-soft);border-color:var(--sky);color:var(--blue)}
.lib-chip.alt{border-style:dashed}
.lib-chip-sep{width:1px;height:18px;background:var(--line);margin:0 4px}
.lib-rename{display:flex;align-items:center;gap:8px;min-width:0}
.lib-rename input{flex:1;min-width:120px;font-weight:600;padding:7px 10px}
.lib-rename .icon-btn{width:34px;height:34px;flex:none}

/* ================= Quizora public website ================= */
/* Layout shell (.site-*) + landing (.ld-*) — used only by the public marketing pages. */
.site{background:#fff}
.site .wrap{max-width:1160px;margin:0 auto;padding:0 20px}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px}
.site-brand{display:inline-flex;align-items:center;gap:10px;font-weight:800;font-size:18px;color:var(--ink);letter-spacing:-.02em}
.site-brand .logo{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,var(--sky),var(--blue));color:#fff;display:grid;place-items:center;font-size:18px}
.site-nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.site-nav a{color:var(--ink-2);font-size:14px;font-weight:600}
.site-nav a:hover{color:var(--blue)}
.site-nav .btn{font-size:13px}
.site-footer{background:#0f172a;margin-top:56px;padding:44px 0 28px;color:#94a3b8}
.site-footer .wrap{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:28px}
.site-footer a{display:block;color:#cbd5e1;font-size:14px;padding:4px 0}
.site-footer a:hover{color:#fff}
@media (max-width:760px){
  .site-header .wrap{flex-direction:column;align-items:flex-start;padding-top:10px;padding-bottom:10px}
  .site-nav{gap:12px}
  .site-footer .wrap{grid-template-columns:1fr}
}

/* ---- landing hero ---- */
.ld-hero{background:linear-gradient(160deg,var(--sky-soft) 0%,#fff 65%);padding:64px 0 48px;overflow:hidden}
.ld-hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:44px;align-items:center}
.ld-kicker{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);color:var(--blue);font-size:12.5px;font-weight:700;padding:6px 12px;border-radius:999px;text-transform:uppercase;letter-spacing:.04em}
.ld-h1{font-size:clamp(30px,4.4vw,48px);line-height:1.12;font-weight:800;color:var(--ink);margin:16px 0 14px}
.ld-sub{font-size:17px;color:var(--ink-2);max-width:540px;margin-bottom:22px}
.ld-pin{display:flex;align-items:center;gap:10px;background:#fff;border:2px solid var(--line-2);border-radius:16px;padding:8px 8px 8px 16px;max-width:520px;box-shadow:var(--shadow)}
.ld-pin:focus-within{border-color:var(--sky)}
.ld-pin-ico{font-size:22px;color:var(--blue)}
.ld-pin input{flex:1;min-width:0;border:none;outline:none;font:inherit;font-size:17px;font-weight:600;letter-spacing:.06em;color:var(--ink);background:transparent}
.ld-pin input::placeholder{font-weight:500;letter-spacing:0;color:var(--muted)}
.ld-hero-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:18px}
.ld-hero-note{font-size:13px;color:var(--muted)}
.ld-hero-card{display:flex;justify-content:center}
.ld-mock{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow-lg);padding:20px;width:100%;max-width:380px;transform:rotate(1.5deg)}
.ld-mock-q{font-weight:700;font-size:16.5px;margin-bottom:14px;color:var(--ink)}
.ld-mock-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ld-mock-opt{display:flex;align-items:center;gap:8px;background:var(--slot);color:#fff;font-weight:700;font-size:13.5px;border-radius:10px;padding:12px 10px}
.ld-mock-meta{display:flex;justify-content:space-between;margin-top:14px;color:var(--muted);font-size:13px}
.ld-mock-meta span{display:inline-flex;align-items:center;gap:5px}

/* ---- landing sections ---- */
.ld-section{padding:56px 0 8px}
.ld-alt{background:var(--bg);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding-bottom:48px;margin-top:40px}
.ld-h2{font-size:clamp(22px,3vw,30px);font-weight:800;color:var(--ink);margin-bottom:8px}
.ld-lead{color:var(--muted);font-size:15.5px;margin-bottom:26px}
.ld-grid{display:grid;gap:16px}
.ld-grid-3{grid-template-columns:repeat(3,1fr)}
.ld-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow-sm)}
.ld-card>i{font-size:26px;color:var(--blue);background:var(--sky-soft);width:48px;height:48px;border-radius:12px;display:grid;place-items:center;margin-bottom:12px}
.ld-card h3{font-size:16px;font-weight:700;margin-bottom:6px;color:var(--ink)}
.ld-card p{font-size:14px;color:var(--ink-2)}
.ld-steps{margin-top:26px}
.ld-step{position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px 22px 22px;text-align:left}
.ld-step-no{position:absolute;top:-14px;left:20px;width:28px;height:28px;border-radius:999px;background:linear-gradient(135deg,var(--sky),var(--blue));color:#fff;font-weight:800;font-size:14px;display:grid;place-items:center}
.ld-step>i{font-size:26px;color:var(--blue);margin-bottom:10px}
.ld-step h3{font-size:16px;font-weight:700;margin-bottom:6px}
.ld-step p{font-size:14px;color:var(--ink-2)}
.ld-cta{text-align:center;margin:52px 0 20px;padding:40px 24px;background:linear-gradient(160deg,var(--sky-soft),#fff);border:1px solid var(--line);border-radius:var(--radius-lg)}
.ld-cta-row{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:8px}
@media (max-width:900px){
  .ld-hero-grid{grid-template-columns:1fr}
  .ld-hero-card{display:none}
  .ld-grid-3{grid-template-columns:1fr}
  .ld-section{padding-top:40px}
}

/* ---- assignments/share (.as-) ---- */
.as-pin-box{text-align:center;background:linear-gradient(160deg,var(--sky-soft),#fff);border:1px solid var(--line);border-radius:var(--radius);padding:12px 22px;min-width:180px}
.as-pin{font-size:40px;font-weight:800;letter-spacing:.14em;color:var(--blue);line-height:1.15;font-variant-numeric:tabular-nums}
.as-pin-sm{font-weight:700;letter-spacing:.08em;color:var(--blue);font-variant-numeric:tabular-nums}
.as-share{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px;padding:10px 14px;background:var(--sky-soft);border:1px dashed var(--sky);border-radius:var(--radius-sm)}
.as-bar{height:8px;border-radius:99px;background:var(--line);overflow:hidden;min-width:90px;max-width:180px}
.as-bar span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--sky),var(--blue))}
/* public shared-quiz page */
.as-public{background:var(--bg,#f1f5f9);min-height:100vh}
.as-wrap{max-width:760px;margin:0 auto;padding:20px 16px 40px}
.as-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.as-brand{display:inline-flex;align-items:center;gap:9px;font-weight:800;font-size:18px;color:var(--ink);text-decoration:none}
.as-brand .logo{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,var(--sky),var(--blue));display:grid;place-items:center;color:#fff;font-size:17px}
.as-hero{padding:0;overflow:hidden}
.as-cover{display:block;width:100%;height:220px;object-fit:cover}
.as-cover-fallback{display:grid;place-items:center;background:linear-gradient(135deg,var(--sky),var(--blue));color:#fff;font-size:54px}
.as-hero-body{padding:20px 22px 24px}
.as-title{font-size:26px;font-weight:800;letter-spacing:-.02em;margin:8px 0 6px}
.as-desc{color:var(--ink-2);margin:0 0 12px;line-height:1.55}
.as-meta{display:flex;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:14px;margin-bottom:18px}
.as-meta i{color:var(--sky);margin-right:4px}
.as-actions{border-top:1px solid var(--line);padding-top:16px}
.as-practice-form{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.as-practice-form input{flex:1;min-width:170px;max-width:280px}
.as-join-note{display:flex;gap:8px;align-items:flex-start;background:var(--sky-soft);border-radius:var(--radius-sm);padding:11px 13px;font-size:14px;color:var(--ink-2)}
.as-join-note i{color:var(--blue);margin-top:1px}
.as-footer{text-align:center;color:var(--muted);font-size:13px;margin-top:22px}
.as-footer a{color:var(--muted)}
.as-unavailable{text-align:center;padding:44px 24px;margin-top:8vh}
.as-unavailable-icon{width:72px;height:72px;border-radius:20px;background:var(--sky-soft);color:var(--blue);display:grid;place-items:center;font-size:38px;margin:0 auto 16px}
.as-unavailable h1{font-size:24px;font-weight:800;margin:0 0 6px}
@media (max-width:560px){.as-pin{font-size:32px}.as-pin-box{width:100%}.as-cover{height:160px}}

/* ---- reports (.rp-) ---- */
.rp-filters{margin-bottom:16px}
.rp-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;align-items:end}
.rp-filter-grid label{display:flex;flex-direction:column;gap:4px;font-size:12.5px;font-weight:600;color:var(--muted)}
.rp-filter-actions{display:flex;gap:8px;align-items:end}
.rp-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:16px}
.rp-grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:900px){.rp-grid2{grid-template-columns:1fr}}
.rp-gamehead{margin-bottom:16px}
.rp-ellip{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.rp-face{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--sky-soft);font-size:18px;flex:0 0 auto}
.rp-face.sm{width:26px;height:26px;font-size:14px;vertical-align:middle}
.rp-face.lg{width:52px;height:52px;font-size:28px}
/* podium strip */
.rp-podium{display:flex;gap:10px;flex-wrap:wrap}
.rp-podium .rp-step{flex:1;min-width:130px;text-align:center;border:1px solid var(--line);border-radius:14px;padding:14px 10px;background:var(--bg);text-decoration:none;color:inherit}
.rp-podium .rp-step.first{border-color:#f59e0b;background:#fffbeb}
.rp-podium .rp-step.second{border-color:#94a3b8;background:#f8fafc}
.rp-podium .rp-step.third{border-color:#d97706;background:#fff7ed}
.rp-medal{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.rp-podium .rp-face{width:44px;height:44px;font-size:24px;margin:8px auto 6px;display:grid}
.rp-nick{font-weight:700;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rp-score{font-size:12.5px;color:var(--muted);font-weight:600;margin-top:2px}
/* call-outs + needs-help */
.rp-callout{border:1px solid var(--line);border-left:4px solid var(--line-2);border-radius:10px;padding:10px 12px;margin-bottom:10px}
.rp-callout.hard{border-left-color:#ef4444;background:#fef2f2}
.rp-callout.easy{border-left-color:#22c55e;background:#f0fdf4}
.rp-callout-top{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);display:flex;align-items:center;gap:5px}
.rp-callout-q{font-weight:600;font-size:14px;margin:4px 0 2px}
.rp-helprow{padding:8px 0;border-bottom:1px solid var(--line);text-decoration:none;color:inherit;gap:10px}
.rp-helprow:last-of-type{border-bottom:none}
/* per-question cards + distribution bars */
.rp-qcard{margin-bottom:14px}
.rp-qtop{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.rp-qnum{font-weight:800;color:var(--blue);font-size:14px}
.rp-qtext{font-weight:600;font-size:15px;margin-bottom:10px}
.rp-pctline{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.rp-details summary{cursor:pointer;font-size:13.5px;font-weight:600;color:var(--blue);display:flex;align-items:center;gap:6px;list-style:none}
.rp-details summary::-webkit-details-marker{display:none}
.rp-details[open] summary{margin-bottom:10px}
.rp-dist{padding-top:2px}
.rp-drow{display:grid;grid-template-columns:minmax(110px,1fr) 2fr 36px;gap:10px;align-items:center;padding:4px 0}
.rp-dlabel{display:flex;align-items:center;gap:6px;min-width:0;font-size:13.5px;font-weight:600}
.rp-slotdot{width:10px;height:10px;border-radius:3px;background:var(--slot,#cbd5e1);flex:0 0 auto}
.rp-ok{color:#16a34a}
.rp-bad{color:var(--muted-2)}
.rp-dbar{height:14px;background:var(--bg-2);border-radius:999px;overflow:hidden}
.rp-dbar>span{display:block;height:100%;border-radius:999px;background:var(--slot,var(--sky));min-width:2px}
.rp-dbar>span.ok{background:#22c55e}
.rp-dcount{font-size:13px;font-weight:700;text-align:right;font-variant-numeric:tabular-nums}
.rp-cloud{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}
.rp-word{background:var(--sky-soft);color:var(--blue);border-radius:999px;padding:3px 11px;font-weight:700;line-height:1.4}
.rp-word em{font-style:normal;font-weight:600;font-size:11px;color:var(--muted)}
/* analytics */
.rp-toprow{display:block;padding:8px 0;border-bottom:1px solid var(--line);text-decoration:none;color:inherit}
.rp-toprow:last-of-type{border-bottom:none}
.rp-toplabel{display:flex;justify-content:space-between;gap:10px;margin-bottom:5px;align-items:baseline}
.rp-donutwrap{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.rp-legend{flex:1;min-width:180px}
.rp-legrow{display:flex;align-items:center;gap:8px;font-size:13.5px;padding:4px 0}
@media(max-width:680px){.rp-drow{grid-template-columns:minmax(90px,1fr) 1.4fr 30px}}

/* ============================================================================
   HOST BIG-SCREEN (.gm-*) — full-viewport dark game stage
   ========================================================================== */
.gm-body{background:radial-gradient(1200px 800px at 50% -10%,#13294d 0%,#0b1220 60%,#070c17 100%);color:#e8eefc;min-height:100dvh;height:100dvh;overflow:hidden;display:flex;flex-direction:column;touch-action:manipulation}
.gm-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;background:rgba(8,14,28,.6);border-bottom:1px solid rgba(255,255,255,.08);backdrop-filter:blur(8px);flex-wrap:wrap}
.gm-top-left{display:flex;align-items:center;gap:12px;min-width:0}
.gm-brand{font-weight:800;font-size:17px;color:#fff;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.gm-brand i{color:var(--sky)}
.gm-quiz{color:#9fb4d6;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:34vw}
.gm-top-mid{display:flex;gap:8px;align-items:center}
.gm-chip{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);color:#dbe6fb;padding:6px 13px;border-radius:999px;font-size:14px;font-weight:600}
.gm-chip b{font-size:15px;color:#fff}
.gm-chip-timer{background:rgba(14,165,233,.18);border-color:rgba(14,165,233,.4)}
.gm-top-right{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.gm-btn{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.16);padding:9px 15px;border-radius:11px;font-weight:700;font-size:14px;cursor:pointer;font-family:inherit;transition:transform .08s,background .15s}
.gm-btn:hover{background:rgba(255,255,255,.18);color:#fff}
.gm-btn:active{transform:scale(.96)}
.gm-btn:disabled{opacity:.4;cursor:not-allowed}
.gm-btn-primary{background:linear-gradient(135deg,var(--sky),var(--blue));border-color:transparent;box-shadow:0 6px 18px -6px rgba(14,165,233,.7)}
.gm-btn-primary:hover{background:linear-gradient(135deg,#38bdf8,#0284c7)}
.gm-btn-danger{background:rgba(220,38,38,.2);border-color:rgba(248,113,113,.4)}
.gm-btn-ghost{background:transparent}
.gm-btn-lg{padding:14px 26px;font-size:17px;border-radius:14px}
.gm-main{flex:1;position:relative;overflow:hidden}
.gm-pane{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;padding:24px;gap:20px;animation:gmFade .35s ease}
.gm-pane.on{display:flex}
@keyframes gmFade{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.gm-lobby-top{display:flex;gap:28px;align-items:stretch;flex-wrap:wrap;justify-content:center}
.gm-join-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:22px;padding:26px 34px;display:flex;flex-direction:column;gap:6px;justify-content:center}
.gm-join-step{color:#9fb4d6;font-size:15px;display:flex;align-items:center;gap:8px;margin-top:8px}
.gm-join-step span{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--sky);color:#04121f;font-weight:800;font-size:13px}
.gm-join-url{font-size:26px;font-weight:800;color:#fff}
.gm-pin{display:flex;gap:8px;margin-top:4px}
.gm-pin b{font-size:44px;font-weight:900;letter-spacing:.04em;background:#fff;color:#0b1220;border-radius:12px;padding:6px 14px;min-width:52px;text-align:center;box-shadow:0 8px 20px -8px rgba(0,0,0,.6)}
.gm-qr-card{background:#fff;border-radius:22px;padding:18px;display:flex;flex-direction:column;align-items:center;gap:8px}
.gm-qr-card canvas{width:230px;height:230px;image-rendering:pixelated}
.gm-qr-hint{color:#0b1220;font-weight:700;font-size:14px;display:flex;align-items:center;gap:6px}
.gm-qr-fallback{color:#0b1220;font-size:13px;max-width:230px;text-align:center;word-break:break-all}
.gm-lobby-teams{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.gm-team-chip{padding:6px 16px;border-radius:999px;font-weight:800;color:#fff;background:var(--tc,#334155);box-shadow:0 4px 14px -6px var(--tc)}
.gm-lobby-count{font-size:20px;font-weight:800;color:#fff}
.gm-players{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;max-width:1100px;max-height:38vh;overflow-y:auto}
.gm-player{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:7px 15px 7px 9px;font-weight:700;font-size:16px;cursor:pointer;animation:gmPop .4s cubic-bezier(.2,1.4,.4,1)}
.gm-player:hover{background:rgba(220,38,38,.25);border-color:rgba(248,113,113,.5)}
.gm-player-ava{font-size:20px}
@keyframes gmPop{from{opacity:0;transform:scale(.5)}to{opacity:1;transform:none}}
.gm-lobby-hint{color:#7e93b8;font-size:13px}
.gm-intro{display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}
.gm-qnum{font-size:22px;font-weight:800;color:var(--sky);letter-spacing:.06em;text-transform:uppercase}
.gm-intro-text{font-size:clamp(28px,4.4vw,58px);font-weight:900;color:#fff;max-width:1100px;line-height:1.15}
.gm-dots{display:flex;gap:12px}
.gm-dot{width:16px;height:16px;border-radius:50%;background:var(--sky);animation:gmBounce 1s infinite}
.gm-dot:nth-child(2){animation-delay:.15s}.gm-dot:nth-child(3){animation-delay:.3s}
@keyframes gmBounce{0%,80%,100%{transform:scale(.5);opacity:.5}40%{transform:scale(1);opacity:1}}
.gm-q-head{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;max-width:1200px}
.gm-q-text{font-size:clamp(24px,3.6vw,46px);font-weight:800;color:#fff;text-align:center;line-height:1.2}
.gm-media{max-height:26vh;border-radius:16px;box-shadow:0 12px 30px -12px rgba(0,0,0,.7)}
.gm-ring{position:relative;width:96px;height:96px;flex-shrink:0}
.gm-ring svg{transform:rotate(-90deg)}
.gm-ring-arc{transition:stroke-dashoffset 1s linear;stroke:var(--sky)}
.gm-ring-num{position:absolute;inset:0;display:grid;place-items:center;font-size:34px;font-weight:900;color:#fff}
.gm-answered{color:#9fb4d6;font-weight:700;font-size:17px}
.gm-slots{display:grid;grid-template-columns:1fr 1fr;gap:16px;width:100%;max-width:1150px}
.gm-slot{display:flex;align-items:center;gap:16px;background:var(--slot,#334155);border-radius:16px;padding:20px 26px;font-size:clamp(18px,2.2vw,30px);font-weight:800;color:#fff;min-height:96px;box-shadow:0 10px 26px -12px rgba(0,0,0,.6)}
.gm-slot-glyph{font-size:30px;opacity:.95}
.gm-slots.single .gm-slot{grid-column:auto}
.gm-device{display:flex;flex-direction:column;align-items:center;gap:12px;color:#9fb4d6;font-size:20px;font-weight:700}
.gm-device-kbd{font-size:64px;color:var(--sky)}
.gm-scale{display:flex;align-items:center;gap:14px;width:min(680px,80vw);color:#cdd9f0;font-weight:700}
.gm-scale-bar{flex:1;height:12px;border-radius:999px;background:linear-gradient(90deg,var(--sky),var(--blue))}
.gm-bars{display:flex;flex-direction:column;gap:12px;width:100%;max-width:1000px}
.gm-bar-row{display:flex;align-items:center;gap:14px}
.gm-bar-glyph{width:44px;height:44px;border-radius:11px;display:grid;place-items:center;font-size:22px;color:#fff;background:var(--slot,#334155);flex-shrink:0}
.gm-bar-main{flex:1;min-width:0}
.gm-bar-label{font-weight:700;color:#e8eefc;margin-bottom:4px;display:flex;justify-content:space-between;gap:10px}
.gm-bar-track{height:34px;border-radius:9px;background:rgba(255,255,255,.08);overflow:hidden}
.gm-bar-fill{height:100%;border-radius:9px;background:var(--slot,#64748b);transition:width .7s cubic-bezier(.2,.8,.2,1);min-width:2px}
.gm-bar-count{font-variant-numeric:tabular-nums;color:#9fb4d6}
.gm-bar-row.correct .gm-bar-glyph{box-shadow:0 0 0 3px #22c55e,0 0 22px 2px rgba(34,197,94,.6)}
.gm-bar-row.correct .gm-bar-label{color:#4ade80}
.gm-bar-row.wrong{opacity:.5}
.gm-answers-list{display:flex;flex-direction:column;gap:8px;width:min(700px,90vw)}
.gm-answer-line{display:flex;justify-content:space-between;gap:12px;background:rgba(255,255,255,.07);border-radius:10px;padding:10px 16px;font-weight:600}
.gm-answer-line.correct{background:rgba(34,197,94,.18);color:#4ade80}
.gm-answer-mid{color:#9fb4d6}
.gm-hist{display:flex;flex-direction:column;gap:8px;width:min(760px,86vw)}
.gm-hist-bars{display:flex;align-items:flex-end;gap:6px;height:180px}
.gm-hist-col{flex:1;background:linear-gradient(180deg,var(--sky),var(--blue));border-radius:6px 6px 0 0;min-height:3px;transition:height .6s}
.gm-hist-marker{color:#4ade80;font-weight:800;text-align:center}
.gm-hist-axis{display:flex;justify-content:space-between;color:#9fb4d6;font-size:13px}
.gm-cloud{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;justify-content:center;max-width:1000px}
.gm-word{font-weight:800;color:#cdd9f0;line-height:1}
.gm-order-list{display:flex;flex-direction:column;gap:10px;width:min(680px,86vw)}
.gm-order-item{display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.07);border-radius:12px;padding:12px 16px;font-weight:700;color:#fff}
.gm-order-item b{color:var(--sky)}
.gm-order-note,.gm-subnote,.gm-order-text{color:#9fb4d6}
.gm-board{display:flex;flex-direction:column;gap:10px;width:min(760px,90vw)}
.gm-board-title{font-size:26px;font-weight:900;color:#fff;text-align:center;margin-bottom:6px}
.gm-board-row{display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.08);border-radius:13px;padding:13px 20px;animation:gmSlide .5s ease both}
.gm-board-row:nth-child(1){background:linear-gradient(90deg,rgba(251,191,36,.28),rgba(255,255,255,.06))}
.gm-board-rank{font-size:22px;font-weight:900;color:var(--sky);width:34px}
.gm-board-ava{font-size:24px}
.gm-board-name{flex:1;font-weight:800;font-size:19px;color:#fff}
.gm-board-score{font-weight:900;font-size:22px;color:#fff;font-variant-numeric:tabular-nums}
.gm-flame{color:#fb923c;font-weight:800;margin-left:6px}
@keyframes gmSlide{from{opacity:0;transform:translateX(-24px)}to{opacity:1;transform:none}}
.gm-teams{display:flex;flex-direction:column;gap:12px;width:min(760px,90vw)}
.gm-team-row{display:flex;align-items:center;gap:14px}
.gm-team-name{width:130px;font-weight:800;color:#fff}
.gm-team-track{flex:1;height:30px;border-radius:8px;background:rgba(255,255,255,.08);overflow:hidden}
.gm-team-track>span{display:block;height:100%;background:var(--tc,var(--sky));transition:width .8s}
.gm-podium{display:flex;flex-direction:column;align-items:center;gap:24px}
.gm-podium-title{font-size:clamp(30px,4vw,52px);font-weight:900;color:#fff}
.gm-pedestal{display:flex;align-items:flex-end;gap:16px;justify-content:center}
.gm-ped-block{display:flex;flex-direction:column;align-items:center;gap:8px;background:rgba(255,255,255,.08);border-radius:16px 16px 0 0;padding:16px 22px;animation:gmRise .7s cubic-bezier(.2,1.2,.3,1) both}
.gm-ped-block.p1{background:linear-gradient(180deg,rgba(251,191,36,.4),rgba(251,191,36,.1));height:230px}
.gm-ped-block.p2{background:linear-gradient(180deg,rgba(203,213,225,.4),rgba(203,213,225,.1));height:185px}
.gm-ped-block.p3{background:linear-gradient(180deg,rgba(217,119,6,.4),rgba(217,119,6,.1));height:150px}
@keyframes gmRise{from{opacity:0;transform:translateY(60px)}to{opacity:1;transform:none}}
.gm-ped-medal{font-size:40px}
.gm-ped-ava{font-size:36px}
.gm-ped-name{font-weight:800;font-size:20px;color:#fff}
.gm-ped-score{font-weight:900;color:#ffe08a}
.gm-podium-rest{display:flex;flex-direction:column;gap:6px;width:min(520px,86vw);margin-top:8px}
.gm-podium-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:8px}
.gm-pauseover{position:absolute;inset:0;background:rgba(7,12,23,.86);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;z-index:20;color:#fff}
.gm-pauseover i{font-size:70px;color:var(--sky)}
.gm-pauseover div{font-size:30px;font-weight:900}
.gm-pauseover span{color:#9fb4d6}
.gm-music{position:fixed;left:16px;bottom:16px;width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);color:#fff;font-size:20px;cursor:pointer;z-index:30}
.gm-music.on{background:var(--sky);color:#04121f}
.gm-reactions{position:fixed;right:20px;bottom:0;width:120px;height:60vh;pointer-events:none;overflow:hidden;z-index:25}
.gm-react{position:absolute;bottom:0;font-size:34px;animation:gmFloat 3s ease-out forwards}
@keyframes gmFloat{0%{transform:translateY(0) scale(.6);opacity:0}15%{opacity:1}100%{transform:translateY(-58vh) scale(1.2);opacity:0}}
.gm-toasts{position:fixed;top:70px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;gap:8px;z-index:40}
.gm-toast{background:rgba(220,38,38,.92);color:#fff;padding:10px 18px;border-radius:10px;font-weight:700;box-shadow:var(--shadow-lg);animation:gmFade .3s}
.gm-confetti{position:fixed;inset:0;pointer-events:none;z-index:15}
.gm-confetti i{position:absolute;top:-10px;width:10px;height:14px;border-radius:2px;animation:gmConf linear forwards}
@keyframes gmConf{to{transform:translateY(105vh) rotate(720deg);opacity:.9}}
@media (max-width:820px){
  .gm-slots{grid-template-columns:1fr}
  .gm-lobby-top{gap:16px}
  .gm-pin b{font-size:32px;min-width:40px}
  .gm-top-right .gm-btn span,.gm-quiz{display:none}
}

/* ============================================================================
   PLAYER APP (.gp-*) — mobile-first phone experience
   ========================================================================== */
.gp-body{background:linear-gradient(160deg,#0ea5e9 0%,#0369a1 55%,#075985 100%);min-height:100dvh;color:#fff;touch-action:manipulation;display:flex;flex-direction:column}
.gp-app,.gp-join-wrap{flex:1;display:flex;flex-direction:column;min-height:100dvh}
.gp-stage{flex:1;display:flex;flex-direction:column;padding:16px;max-width:560px;margin:0 auto;width:100%}
.gp-view,.gp-pane{flex:1;display:flex;flex-direction:column;animation:gmFade .3s ease}
.gp-center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px}
.gp-brand,.gp-brand-badge{display:flex;align-items:center;justify-content:center;gap:8px;font-weight:800;font-size:18px;padding:16px 0}
.gp-brand-name{font-weight:800}
.gp-spin{width:44px;height:44px;border:4px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:gpSpin .8s linear infinite}
@keyframes gpSpin{to{transform:rotate(360deg)}}
.gp-dim{color:rgba(255,255,255,.75)}
.gp-join{max-width:420px;margin:0 auto;width:100%;padding:24px 20px;display:flex;flex-direction:column;gap:16px;flex:1;justify-content:center}
.gp-h1{font-size:30px;font-weight:900;text-align:center}
.gp-join-form,.gp-nick-row{display:flex;flex-direction:column;gap:12px}.gp-pin-row{display:flex;flex-direction:row;gap:8px;justify-content:center}
.gp-label{font-weight:700;font-size:14px;color:rgba(255,255,255,.85)}
.gp-input,.gp-pin,.gp-nick,.gp-text{width:100%;padding:16px;border-radius:14px;border:none;font-size:20px;font-weight:700;text-align:center;background:#fff;color:#0b1220}
.gp-pin{font-size:30px;letter-spacing:.3em;font-weight:900}
.gp-input:focus,.gp-text:focus{outline:3px solid rgba(255,255,255,.6)}
.gp-btn,.gp-btn-primary,.gp-join-btn,.gp-btn-submit,.gp-submit{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:16px;border-radius:14px;border:none;font-size:18px;font-weight:800;cursor:pointer;font-family:inherit;background:#fff;color:var(--blue);box-shadow:0 8px 20px -8px rgba(0,0,0,.4);transition:transform .08s}
.gp-btn:active,.gp-btn-primary:active,.gp-join-btn:active,.gp-submit:active{transform:scale(.97)}
.gp-btn-primary,.gp-join-btn,.gp-btn-submit,.gp-submit{background:#04121f;color:#fff}
.gp-btn-light{background:rgba(255,255,255,.2);color:#fff}
.gp-btn-ghost{background:transparent;box-shadow:none;color:rgba(255,255,255,.85)}
.gp-dice{background:rgba(255,255,255,.2);color:#fff;box-shadow:none}
.gp-avatars{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.gp-avatar,.gp-big-ava{font-size:26px;width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.15);cursor:pointer;border:2px solid transparent}
.gp-avatar.sel{border-color:#fff;background:rgba(255,255,255,.3)}
.gp-big-ava,.gp-big-emoji{font-size:60px;background:none;width:auto;height:auto}
.gp-captcha{display:flex;justify-content:center}
.gp-flash,.gp-hint,.gp-note{text-align:center;font-size:14px;color:rgba(255,255,255,.9)}
.gp-flash{background:rgba(220,38,38,.35);border:1px solid rgba(255,255,255,.3);padding:10px 14px;border-radius:12px;font-weight:600}
.gp-alt-link,.gp-rejoin-avatar{text-align:center}
.gp-me{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.14);border-radius:14px;padding:10px 14px;margin-bottom:12px}
.gp-me-ava{font-size:24px}
.gp-me-nick{font-weight:800;flex:1}
.gp-me-score{font-weight:900;font-variant-numeric:tabular-nums}
.gp-me-team,.gp-team-pill{font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;background:var(--tc,rgba(255,255,255,.2))}
.gp-team-dot{width:12px;height:12px;border-radius:50%;background:var(--tc,#fff);display:inline-block}
.gp-getready{font-size:60px}
.gp-pcount,.gp-count{font-weight:800;font-size:18px}
.gp-pulse{animation:gpPulse 1.2s ease-in-out infinite}
@keyframes gpPulse{0%,100%{transform:scale(1);opacity:.85}50%{transform:scale(1.08);opacity:1}}
.gp-timer{height:10px;border-radius:999px;background:rgba(255,255,255,.25);overflow:hidden;margin-bottom:14px}
.gp-timer-fill{height:100%;background:#fff;transition:width 1s linear}
.gp-timer-s{text-align:center;font-weight:800;margin-bottom:8px}
.gp-qtext{font-size:20px;font-weight:800;text-align:center;margin-bottom:14px}
.gp-qmedia{border-radius:12px;margin:0 auto 14px;max-height:26vh}
.gp-slots{display:grid;grid-template-columns:1fr 1fr;gap:12px;flex:1;align-content:stretch}
.gp-slot{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--slot,#334155);border:none;border-radius:16px;padding:22px 14px;font-size:18px;font-weight:800;color:#fff;cursor:pointer;min-height:96px;font-family:inherit;box-shadow:0 6px 16px -8px rgba(0,0,0,.5);transition:transform .08s,opacity .2s}
.gp-slot:active{transform:scale(.96)}
.gp-slot.picked,.gp-slot.sel{outline:4px solid #fff;outline-offset:-4px}
.gp-slot.dim{opacity:.4}
.gp-slot-shape{font-size:26px}
.gp-slot-check{margin-left:auto;font-size:22px}
.gp-type-row,.gp-order,.gp-slider-wrap{display:flex;flex-direction:column;gap:12px;flex:1}
.gp-order-row{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.15);border-radius:12px;padding:12px 14px;font-weight:700}
.gp-order-n{font-weight:900;color:#cbe9ff}
.gp-order-arrows{margin-left:auto;display:flex;gap:6px}
.gp-arrow{background:rgba(255,255,255,.2);border:none;color:#fff;width:38px;height:38px;border-radius:10px;font-size:18px;cursor:pointer}
.gp-range{width:100%}
.gp-range-ends{display:flex;justify-content:space-between;font-weight:700;color:rgba(255,255,255,.85)}
.gp-bubble{text-align:center;font-size:34px;font-weight:900}
.gp-scoreline,.gp-correct-line{text-align:center}
.gp-burst,.gp-pop{font-size:64px;animation:gpPop .5s cubic-bezier(.2,1.5,.4,1)}
@keyframes gpPop{from{transform:scale(0)}to{transform:scale(1)}}
.gp-scoreline{font-size:30px;font-weight:900;margin-top:6px}
.gp-streak{color:#ffd76a;font-weight:800}
.gp-correct-line{background:rgba(255,255,255,.15);border-radius:12px;padding:12px;font-weight:700;margin-top:10px}
.gp-view.correct{background:rgba(34,197,94,.18)}
.gp-view.wrong{background:rgba(220,38,38,.14)}
.gp-pod,.gp-finish-grid{display:flex;flex-direction:column;align-items:center;gap:10px}
.gp-pod-medal{font-size:56px}
.gp-pod-nick,.gp-pod-ava{font-weight:800}
.gp-pod-row{display:flex;gap:10px;align-items:center;background:rgba(255,255,255,.12);padding:8px 14px;border-radius:10px;width:100%;max-width:360px}
.gp-finish-grid{background:rgba(255,255,255,.12);border-radius:16px;padding:18px;width:100%;max-width:360px;gap:6px}
.gp-finish-cell{display:flex;justify-content:space-between;width:100%;font-weight:700}
.gp-actions,.gp-share{display:flex;gap:10px;width:100%;max-width:360px;margin-top:8px}
.gp-next,.gp-leave{margin-top:auto}
.gp-react{display:flex;gap:8px;justify-content:center;padding:10px 0}
.gp-react-btn{background:rgba(255,255,255,.16);border:none;font-size:24px;width:48px;height:48px;border-radius:50%;cursor:pointer}
.gp-react-btn:active{transform:scale(.9)}
.gp-progress{height:8px;border-radius:999px;background:rgba(255,255,255,.25);overflow:hidden;margin-bottom:12px}
.gp-progress-bar{height:100%;background:#fff;transition:width .4s}
.gp-foot{text-align:center;padding:10px}

/* ============================================================================
   QUIZ EDITOR (.qe-*)
   ========================================================================== */
.qe-form{display:flex;flex-direction:column;gap:16px}
.qe-sec{border:1px solid var(--line);border-radius:var(--radius);padding:16px;background:#fff}
.qe-seclabel{font-weight:700;font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px}
.qe-typegrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.qe-type{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 8px;border:1.5px solid var(--line);border-radius:12px;cursor:pointer;text-align:center;font-size:13px;font-weight:600;background:#fff;transition:border-color .15s,background .15s}
.qe-type:hover{border-color:var(--sky)}
.qe-type.sel{border-color:var(--sky);background:var(--sky-soft);color:var(--blue-dark)}
.qe-type i{font-size:22px;color:var(--sky)}
.qe-qtext{width:100%;font-size:16px;font-weight:600;padding:12px;border:1px solid var(--line);border-radius:10px;resize:vertical}
.qe-optrow,.qe-ta-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.qe-optrow input[type=text],.qe-ta-row input[type=text]{flex:1;padding:11px 13px;border:1px solid var(--line);border-radius:10px;font-size:15px}
.qe-slot{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;color:#fff;font-size:16px;background:var(--slot,#64748b);flex-shrink:0}
.qe-correct,.qe-correct-single,.qe-correct-multi{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:13px;color:var(--muted);white-space:nowrap}
.qe-correct input{width:20px;height:20px}
.qe-hint-mcq,.qe-hint-multi,.qe-hint-poll,.qe-ordnum,.qe-note{font-size:12.5px;color:var(--muted)}
.qe-ta-add{background:var(--sky-soft);color:var(--blue-dark);border:none;padding:8px 14px;border-radius:9px;font-weight:700;cursor:pointer;font-size:13px}
.qe-qmeta{display:flex;gap:12px;flex-wrap:wrap}
.qe-qmeta>div{flex:1;min-width:130px}
.qe-cover,.qe-thumb{width:120px;height:80px;border-radius:10px;object-fit:cover;border:1px solid var(--line)}
.qe-thumb-empty{width:120px;height:80px;border-radius:10px;border:1.5px dashed var(--line-2);display:grid;place-items:center;color:var(--muted-2)}
.qe-drag{cursor:grab;color:var(--muted-2)}
.qe-qlist{display:flex;flex-direction:column;gap:10px}
.qe-qrow{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff}
.qe-qnum{font-weight:800;color:var(--sky);width:26px;text-align:center}
.qe-qbody{flex:1;min-width:0}
.qe-qbody .qe-qtext{border:none;padding:0;font-size:15px;font-weight:700;color:var(--ink)}
.qe-qactions{display:flex;gap:6px;flex-shrink:0}
.qe-tf{display:flex;gap:10px}
.qe-share{display:flex;align-items:center;gap:8px;background:var(--sky-soft);border-radius:10px;padding:10px 14px;margin-top:4px}
.qe-share-url{flex:1;font-family:ui-monospace,monospace;font-size:13px;color:var(--blue-dark);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:640px){.qe-typegrid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}}

/* [hidden] attribute must beat class-level display rules on game surfaces */
[hidden]{display:none!important}
/* player feedback (classes emitted by game-play.js renderReveal/renderSelfFeedback) */
.gp-h1.good{color:#bbf7d0}
.gp-h1.bad{color:#fecaca}
.gp-burst{font-size:52px;font-weight:900}
.gp-burst.ok{color:#4ade80}
.gp-burst.bad{color:#fca5a5}
.gp-timer-fill.low{background:#fca5a5}
.gp-slot.picked{outline:4px solid #fff;outline-offset:-4px}
/* PIN digit boxes (join screen) — a horizontal row of single-char inputs */
.gp-pin-digit{flex:1;min-width:0;width:100%;text-align:center;font-size:28px;font-weight:900;padding:16px 0;border-radius:12px;border:none;background:#fff;color:#0b1220}
.gp-pin-digit:focus{outline:3px solid rgba(255,255,255,.7)}
.gp-dice{gap:8px}
