:root {
  --bg: #0b1020;
  --bg2: #141b33;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-b: rgba(255, 255, 255, 0.14);
  --text: #f4f6ff;
  --muted: #a9b1d6;
  --accent: #39e6c8;
  --accent2: #ff4fa3;
  --a: #ff5a5f;
  --b: #2f9bff;
  --c: #ffb627;
  --d: #2ecc71;
  --good: #2ecc71;
  --bad: #ff5a5f;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 600 16px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before, body::after {
  content: ""; position: fixed; z-index: -1; width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(80px); opacity: .35; pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}
body::before { background: radial-gradient(circle, #3b2bff 0%, transparent 65%); top: -30vmax; left: -20vmax; }
body::after { background: radial-gradient(circle, #00c2a8 0%, transparent 65%); bottom: -35vmax; right: -25vmax; animation-delay: -11s; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; }
a { color: var(--accent); }
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 12px; background: var(--accent); color: #062019;
  font-weight: 800; letter-spacing: .01em; box-shadow: 0 4px 0 rgba(0,0,0,.35);
  transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.btn:disabled { opacity: .45; cursor: default; filter: none; transform: none; }
.btn.ghost { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--panel-b); }
.btn.pink { background: var(--accent2); color: #fff; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.small { padding: .45em .8em; font-size: .9em; border-radius: 9px; }
.btn.big { font-size: 1.3em; padding: .8em 2em; }

.logo { display: inline-flex; align-items: center; gap: .45em; font-weight: 900; font-size: 1.4rem; letter-spacing: -.02em; }
.logo .mark { width: 1.5em; height: 1.5em; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; transform: rotate(-8deg); }
.logo .mark i { border-radius: 4px; }
.logo .mark i:nth-child(1) { background: var(--a); }
.logo .mark i:nth-child(2) { background: var(--b); }
.logo .mark i:nth-child(3) { background: var(--c); }
.logo .mark i:nth-child(4) { background: var(--d); }
.logo b { color: var(--accent); }

.card { background: var(--panel); border: 1px solid var(--panel-b); border-radius: var(--radius); padding: 1.25rem; backdrop-filter: blur(10px); }
input.field, select.field, textarea.field {
  width: 100%; padding: .85em 1em; border-radius: 12px; border: 2px solid var(--panel-b);
  background: rgba(0,0,0,.25); outline: none; transition: border-color .15s;
}
input.field:focus, select.field:focus, textarea.field:focus { border-color: var(--accent); }
input.field.center { text-align: center; font-size: 1.4rem; font-weight: 800; letter-spacing: .08em; }
.err { color: #ffb3b5; min-height: 1.3em; font-size: .95em; margin: .5em 0 0; }
.muted { color: var(--muted); font-weight: 500; }

/* shapes & answer colours */
.shape { display: inline-block; width: 1.6em; height: 1.6em; flex: none; }
.shape svg { width: 100%; height: 100%; fill: #fff; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.ans-a { background: var(--a); }
.ans-b { background: var(--b); }
.ans-c { background: var(--c); }
.ans-d { background: var(--d); }

/* ----------------------------------------------------------------- top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.2rem; }
.topbar .right { display: flex; gap: .5rem; align-items: center; }
.conn { width: .7em; height: .7em; border-radius: 50%; background: var(--good); display: inline-block; }
.conn.off { background: var(--bad); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ----------------------------------------------------------------- player */
.player { min-height: 100dvh; display: flex; flex-direction: column; }
.player main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; text-align: center; }
.join-box { width: min(380px, 100%); display: grid; gap: .8rem; }
.join-box .logo { justify-content: center; font-size: 2.2rem; margin-bottom: 1rem; }
.status-big { font-size: clamp(1.6rem, 6vw, 2.6rem); font-weight: 900; margin: .3em 0; }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.player-foot { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; background: rgba(0,0,0,.35); font-weight: 800; }
.player-foot .score { background: var(--panel); padding: .3em .8em; border-radius: 99px; }

.answer-grid { width: 100%; height: 100%; flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; padding: .7rem; }
.answer-grid.two { grid-template-columns: 1fr 1fr; }
.answer-grid.three .abtn:last-child { grid-column: span 2; }
.abtn { border-radius: var(--radius); display: grid; place-items: center; box-shadow: inset 0 -6px 0 rgba(0,0,0,.2); min-height: 120px; transition: transform .08s; }
.abtn:active { transform: scale(.97); }
.abtn .shape { width: 34%; height: auto; max-width: 110px; aspect-ratio: 1; }

.result { width: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; }
.result.good { background: linear-gradient(160deg, #1b9e57, #13703f); }
.result.bad { background: linear-gradient(160deg, #c8373b, #8d1f24); }
.result.none { background: linear-gradient(160deg, #3a3f63, #23263f); }
.result .icon { font-size: 4rem; line-height: 1; }
.result .pts { background: rgba(0,0,0,.25); padding: .4em 1.1em; border-radius: 99px; font-size: 1.4rem; font-weight: 900; }
.result .streak { background: var(--c); color: #2a1a00; padding: .3em .9em; border-radius: 99px; font-weight: 900; }

/* ----------------------------------------------------------------- host */
.host { min-height: 100dvh; display: flex; flex-direction: column; }
.host main { flex: 1; display: flex; flex-direction: column; padding: 0 1.2rem 1.2rem; }
.wrap { width: min(1100px, 100%); margin: 0 auto; }

.quiz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.quiz-card { display: flex; flex-direction: column; gap: .6rem; }
.quiz-card h3 { margin: 0; font-size: 1.15rem; }
.quiz-card .actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: auto; }
.tag { display: inline-block; font-size: .75rem; padding: .15em .6em; border-radius: 99px; background: var(--panel-b); color: var(--muted); }

/* editor */
.editor { display: grid; grid-template-columns: 240px 1fr; gap: 1rem; margin-top: 1rem; }
.qnav { display: flex; flex-direction: column; gap: .5rem; max-height: 75vh; overflow: auto; padding-right: .3rem; }
.qnav .qitem { text-align: left; padding: .6rem .8rem; border-radius: 10px; background: var(--panel); border: 2px solid transparent; font-weight: 600; font-size: .9rem; display: flex; gap: .5rem; }
.qnav .qitem.active { border-color: var(--accent); }
.qnav .qitem span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qedit { display: grid; gap: .9rem; }
.qedit .row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: end; }
.qedit .row > label { flex: 1; min-width: 140px; display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); }
.ans-edit { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.ans-edit .ae { display: flex; align-items: center; gap: .6rem; padding: .6rem; border-radius: 12px; }
.ans-edit .ae input[type=text] { flex: 1; background: rgba(0,0,0,.18); border: 0; border-radius: 8px; padding: .6em .7em; outline: none; color: #fff; font-weight: 700; }
.ans-edit .ae input[type=text]::placeholder { color: rgba(255,255,255,.7); }
.ans-edit .ae .chk { width: 2em; height: 2em; border-radius: 50%; border: 3px solid #fff; background: transparent; flex: none; display: grid; place-items: center; font-weight: 900; color: transparent; }
.ans-edit .ae .chk.on { background: #fff; color: #1b9e57; }
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* game screens */
.stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; }
.lobby-head { display: flex; gap: 1.5rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.pinbox { background: #fff; color: var(--bg); border-radius: 18px; padding: .8rem 1.6rem; text-align: left; }
.pinbox small { display: block; font-weight: 700; color: #4a5070; }
.pinbox .pin { font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 900; letter-spacing: .06em; line-height: 1; }
.qr { width: 150px; height: 150px; background: #fff; border-radius: 14px; padding: 6px; }
.players { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; max-width: 1000px; }
.chip { background: var(--panel); border: 1px solid var(--panel-b); padding: .45em .9em; border-radius: 99px; font-weight: 800; animation: pop .25s ease-out; }
.chip:hover { background: var(--bad); text-decoration: line-through; cursor: pointer; }
.chip.off { opacity: .45; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.count-badge { font-size: 1.2rem; background: var(--panel); padding: .4em 1em; border-radius: 99px; }

.q-title { font-size: clamp(1.4rem, 3.4vw, 2.6rem); font-weight: 900; background: #fff; color: var(--bg); padding: .6em 1em; border-radius: 16px; max-width: 1100px; width: 100%; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.q-mid { display: grid; grid-template-columns: 120px 1fr 120px; align-items: center; width: 100%; max-width: 1100px; gap: 1rem; flex: 1; }
.q-img { max-height: 36vh; max-width: 100%; border-radius: 14px; justify-self: center; }
.q-img-ph { justify-self: center; }
.timer { --p: 1; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; font-weight: 900;
  background: conic-gradient(var(--accent2) calc(var(--p) * 360deg), rgba(255,255,255,.12) 0); position: relative; }
.timer::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg2); z-index: 0; }
.timer > * , .timer { z-index: 1; }
.timer span { position: relative; }
.answered-box { font-size: 2.2rem; font-weight: 900; }
.answered-box small { display: block; font-size: .9rem; color: var(--muted); }
.host-answers { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; width: 100%; max-width: 1100px; }
.host-answers .ha { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-radius: 14px; font-size: clamp(1rem, 2vw, 1.5rem); text-align: left; box-shadow: inset 0 -5px 0 rgba(0,0,0,.2); transition: opacity .3s; }
.host-answers .ha.dim { opacity: .3; }
.host-answers .ha .tick { margin-left: auto; font-size: 1.6em; }

.dist { display: flex; align-items: flex-end; justify-content: center; gap: 1.2rem; height: 32vh; width: 100%; max-width: 700px; }
.dist .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .4rem; }
.dist .bar { width: 100%; border-radius: 10px 10px 0 0; min-height: 6px; transition: height .7s cubic-bezier(.2,.9,.3,1.2); display: flex; align-items: flex-start; justify-content: center; padding-top: .3rem; }
.dist .col.dim .bar { opacity: .3; }
.dist .lbl { display: flex; align-items: center; gap: .3rem; font-size: 1.4rem; font-weight: 900; }

.getready .num { font-size: 1.1rem; color: var(--muted); }
.getready .big { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 900; max-width: 1000px; }
.bar-progress { width: min(600px, 80vw); height: 10px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; }
.bar-progress i { display: block; height: 100%; background: var(--accent); width: 0; }
.bar-progress i.run { animation: fill linear forwards; }
@keyframes fill { to { width: 100%; } }

.board { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: .6rem; }
.board .rowp { display: flex; align-items: center; gap: 1rem; background: var(--panel); border: 1px solid var(--panel-b); padding: .8rem 1.2rem; border-radius: 14px; font-size: 1.3rem; animation: slidein .45s backwards; }
.board .rowp .rk { width: 2em; font-weight: 900; color: var(--muted); }
.board .rowp .nm { flex: 1; text-align: left; font-weight: 800; }
.board .rowp .sc { font-weight: 900; }
.board .rowp .mv { font-size: .8em; width: 2.2em; }
.board .rowp .mv.up { color: var(--good); }
.board .rowp .mv.down { color: var(--bad); }
.board .rowp .st { font-size: .75em; background: var(--c); color: #2a1a00; padding: .1em .6em; border-radius: 99px; }
@keyframes slidein { from { transform: translateX(-40px); opacity: 0; } }

.podium { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; height: 55vh; width: 100%; max-width: 900px; }
.podium .pcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .5rem; }
.podium .pname { font-size: clamp(1.1rem, 2.6vw, 2rem); font-weight: 900; opacity: 0; animation: fadeup .6s forwards; word-break: break-word; }
.podium .pblock { width: 100%; border-radius: 14px 14px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 1rem; font-size: 3rem; font-weight: 900; transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.9,.3,1.1) backwards; }
.podium .pblock small { font-size: 1rem; font-weight: 800; opacity: .85; }
.podium .p1 .pblock { height: 75%; background: linear-gradient(#ffd04a, #e2a400); color: #3a2800; }
.podium .p2 .pblock { height: 55%; background: linear-gradient(#e6ecff, #a9b3d6); color: #1d2340; }
.podium .p3 .pblock { height: 40%; background: linear-gradient(#ffb07a, #c96a2c); color: #3a1800; }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes fadeup { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.host-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 1.2rem; background: rgba(0,0,0,.3); font-weight: 800; }

.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 10; padding: 1rem; }
.modal .card { width: min(520px, 100%); background: var(--bg2); }

@media (max-width: 760px) {
  .editor { grid-template-columns: 1fr; }
  .qnav { flex-direction: row; overflow-x: auto; max-height: none; }
  .qnav .qitem { min-width: 140px; }
  .ans-edit, .host-answers { grid-template-columns: 1fr; }
  .q-mid { grid-template-columns: 80px 1fr 80px; }
  .timer { width: 76px; height: 76px; font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ================================================================= web app (v2) */
.nav { display: flex; gap: .3rem; margin-right: auto; margin-left: 1rem; }
.navlink { color: var(--muted); text-decoration: none; padding: .45em .8em; border-radius: 9px; font-weight: 800; }
.navlink:hover { color: var(--text); background: var(--panel); }
.navlink.on { color: var(--text); background: var(--panel-b); }
a.btn { text-decoration: none; }
.avatar { gap: .45em; }
.av { width: 1.6em; height: 1.6em; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--accent2), #7b61ff); color: #fff; font-weight: 900; font-size: .85em; }
.av.big { width: 84px; height: 84px; font-size: 2.4rem; flex: none; }
.flash { background: rgba(57, 230, 200, .12); border: 1px solid rgba(57, 230, 200, .4); padding: .7em 1em; border-radius: 12px; }
.grow { flex: 1; }
.center { text-align: center; margin: 1.5rem 0; }
.toolbar.center { justify-content: center; }
.toolbar.sticky { position: sticky; top: 0; z-index: 3; background: rgba(11, 16, 32, .85); backdrop-filter: blur(10px); padding: .6rem 0; }
hr { border: 0; border-top: 1px solid var(--panel-b); margin: 1rem 0; width: 100%; }

.hero { text-align: center; padding: 1.5rem 0 1rem; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin: 0 0 .3rem; letter-spacing: -.02em; }
.searchbar { display: flex; gap: .5rem; max-width: 640px; margin: 1rem auto 0; }
.pill { background: var(--panel); color: var(--muted); padding: .45em 1em; border-radius: 99px; font-weight: 800; border: 1px solid var(--panel-b); }
.pill.on { background: var(--text); color: var(--bg); }

.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 1rem; }
.qcard { background: var(--panel); border: 1px solid var(--panel-b); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.qcard:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.3); }
.qcard > a { position: relative; display: block; }
.qcard a { color: inherit; text-decoration: none; }
.qcard h3 a:hover, .meta a:hover { text-decoration: underline; }
.cover { aspect-ratio: 16 / 9; width: 100%; background: var(--bg2); overflow: hidden; display: grid; place-items: center; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.gen { background: linear-gradient(135deg, hsl(var(--h1, 260) 75% 55%), hsl(var(--h2, 180) 70% 45%)); }
.cover.gen span { font-size: 3.5rem; font-weight: 900; color: rgba(255,255,255,.9); text-shadow: 0 4px 0 rgba(0,0,0,.2); }
.cover.big { border-radius: var(--radius); max-width: 460px; }
.cover.big.gen span { font-size: 6rem; }
.qcount { position: absolute; right: .5rem; bottom: .5rem; background: rgba(0,0,0,.65); padding: .2em .6em; border-radius: 8px; font-size: .8rem; }
.qbody { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.qbody h3 { margin: 0; font-size: 1.1rem; line-height: 1.25; }
.qbody .actions { display: flex; gap: .4rem; margin-top: auto; padding-top: .3rem; }
.meta { color: var(--muted); font-weight: 600; font-size: .9rem; }
.meta a { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; }
a.tag { text-decoration: none; }
.tag.pub { background: rgba(46, 204, 113, .2); color: #8ff0b8; }

.detail { display: grid; grid-template-columns: minmax(240px, 460px) 1fr; gap: 1.5rem; align-items: start; margin-top: 1rem; }
.detail h1 { margin: 0 0 .4rem; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.1; }
.detail-info { display: flex; flex-direction: column; gap: .8rem; }
.desc { white-space: pre-wrap; font-weight: 500; margin: 0; }
.btn.liked { color: var(--accent2); box-shadow: inset 0 0 0 1px var(--accent2); }
.qpreview { list-style: none; padding: 0; display: grid; gap: .6rem; counter-reset: q; }
.qpreview li { display: flex; gap: 1rem; align-items: center; background: var(--panel); border-radius: 12px; padding: .6rem; counter-increment: q; }
.qpreview li img, .qpreview li .ph { width: 96px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg2); }
.qpreview li .ph::after { content: counter(q); display: grid; place-items: center; height: 100%; font-size: 1.6rem; font-weight: 900; color: var(--muted); }

.profile { display: flex; gap: 1.2rem; align-items: center; margin: 1rem 0; }
.profile h1 { margin: 0; }
.auth { width: min(440px, 100%); margin: 2rem auto; display: grid; gap: .8rem; }
.auth h1 { margin: 0; }
.auth h3 { margin: .6rem 0 0; }
.empty { text-align: center; grid-column: 1 / -1; display: grid; gap: .6rem; justify-items: center; padding: 2rem; }

/* editor v2 */
.meta-edit { display: grid; grid-template-columns: 280px 1fr; gap: 1rem; margin-top: .5rem; }
.imgpick { display: grid; gap: .5rem; border: 2px dashed transparent; border-radius: 14px; padding: 4px; }
.imgpick.drop { border-color: var(--accent); }
.imgpick img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; background: rgba(0,0,0,.25); }
.imgpick .ph { height: 120px; border-radius: 10px; background: rgba(0,0,0,.2); display: grid; place-items: center; color: var(--muted); border: 2px dashed var(--panel-b); }
.qedit .imgpick { max-width: 420px; }
.addq { display: grid; gap: .35rem; margin-top: .4rem; }
.qnav .qitem .has-img { margin-left: auto; font-style: normal; }
.ans-edit .ae .chk.sq { border-radius: 8px; }
.qtext { font-size: 1.15rem; font-weight: 800; }

/* estimation / slider */
.slider-scale { display: flex; justify-content: space-between; width: 100%; font-weight: 800; gap: 1rem; }
.est-wrap { width: 100%; max-width: 1000px; display: grid; gap: .4rem; }
.est-track { position: relative; height: 140px; width: 100%; background: rgba(255,255,255,.06); border-radius: 14px; border-bottom: 4px solid rgba(255,255,255,.3); }
.est-track.small { height: 46px; }
.est-band { position: absolute; top: 0; bottom: 0; background: rgba(46, 204, 113, .28); border-left: 2px solid var(--good); border-right: 2px solid var(--good); }
.est-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px rgba(0,0,0,.35); animation: pop .4s backwards; }
.est-dot.in { background: var(--good); }
.est-answer { position: absolute; top: -10px; bottom: -4px; width: 4px; margin-left: -2px; background: var(--c); }
.est-answer span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--c); color: #2a1a00; padding: .1em .6em; border-radius: 8px; white-space: nowrap; font-weight: 900; }
.est-track.small .est-answer span { font-size: .8rem; }
.est-big { font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 900; color: var(--c); line-height: 1; }
.slider-prev { display: grid; gap: .3rem; padding-top: 1.4rem; }
.board.narrow { max-width: 520px; }
.board.narrow .rowp { font-size: 1.1rem; }
.hint { font-weight: 800; }

.est-player { width: min(520px, 100%); display: grid; gap: 1rem; padding: 1rem; }
.est-value { font-size: clamp(2.6rem, 12vw, 4rem); font-weight: 900; color: var(--c); }
.est-range { width: 100%; height: 44px; accent-color: var(--c); }
.multi-wrap { width: 100%; flex: 1; display: flex; flex-direction: column; }
.multi-wrap .hint { margin: .7rem 0 0; }
.multi-wrap .submit { margin: 0 .7rem .7rem; }
.abtn { position: relative; }
.abtn .pick-mark { position: absolute; top: .6rem; right: .6rem; width: 2.2rem; height: 2.2rem; border-radius: 8px; border: 3px solid #fff; display: grid; place-items: center; color: transparent; font-weight: 900; font-size: 1.3rem; }
.abtn.picked { box-shadow: inset 0 0 0 6px #fff, inset 0 -6px 0 rgba(0,0,0,.2); }
.abtn.picked .pick-mark { background: #fff; color: #111; }
.result.part { background: linear-gradient(160deg, #d08a12, #8f5a05); }

@media (max-width: 760px) {
  .nav { display: none; }
  .topbar { flex-wrap: wrap; }
  .detail, .meta-edit { grid-template-columns: 1fr; }
  .avatar span:last-child { display: none; }
}

/* ----------------------------------------------------------------- dropdowns */
select.field {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  cursor: pointer; font-weight: 700;
  padding-right: 2.6em;
  background-color: rgba(255, 255, 255, .06);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2339e6c8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"),
    linear-gradient(to right, transparent calc(100% - 2.3em), rgba(255, 255, 255, .06) calc(100% - 2.3em));
  background-repeat: no-repeat, no-repeat;
  background-position: right .8em center, 0 0;
  background-size: 1em, 100% 100%;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
select.field:hover { border-color: rgba(255, 255, 255, .3); background-color: rgba(255, 255, 255, .1); }
select.field:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(57, 230, 200, .18); }
select.field option { background: var(--bg2); color: var(--text); font-weight: 600; }
select.field option:checked { background: #23305a; }
select.field::-ms-expand { display: none; }
.qedit .row > label { font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: .72rem; }
.qedit .row > label > .field { text-transform: none; letter-spacing: 0; font-size: 1rem; }
