:root {
  --bg: #1b0f1c;
  --bg2: #2a1630;
  --panel: rgba(255, 240, 215, 0.06);
  --line: rgba(224, 176, 76, 0.25);
  --gold: #e0b04c;
  --gold2: #f5d27a;
  --parch: #f3e3c0;
  --ink: #3a2416;
  --text: #f6ecd9;
  --muted: #bfa98f;
  --dharma: #2f9a62;
  --dharma-d: #1d5f3d;
  --adharma: #c0413b;
  --adharma-d: #6e1f1c;
  --radius: 14px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--bg); }
body {
  background: radial-gradient(1200px 600px at 50% -200px, #4a2140 0%, transparent 70%),
    linear-gradient(180deg, var(--bg2), var(--bg) 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.45 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
#app main { max-width: 520px; margin: 0 auto; padding: 14px 14px calc(28px + env(safe-area-inset-bottom)); }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
em { font-style: normal; color: var(--muted); font-size: 0.85em; }

.title, .h2, .h3, .bigcode, .rtitle, .announce h2 { font-family: Cinzel, Georgia, serif; letter-spacing: 0.02em; }
.title { font-size: 40px; margin: 4px 0 0; text-align: center; color: var(--gold2); text-shadow: 0 2px 18px rgba(224, 176, 76, 0.35); }
.tagline { text-align: center; color: var(--muted); margin: 0 0 22px; }
.crest { text-align: center; font-size: 46px; color: var(--gold); margin-top: 26px; filter: drop-shadow(0 0 14px rgba(224,176,76,.45)); }
.h2 { font-size: 18px; margin: 0 0 10px; color: var(--gold2); display: flex; justify-content: space-between; align-items: baseline; }
.h3 { font-size: 17px; margin: 0 0 6px; color: var(--gold2); }
.lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 6px; display: block; }
.muted { color: var(--muted); }
.center { text-align: center; }
.fine { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; }
.warn { color: #ff9b8f; font-weight: 600; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 12px 0; backdrop-filter: blur(4px); }
.input { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--text); font-size: 16px; outline: none; }
.input:focus { border-color: var(--gold); }
.input.code { text-transform: uppercase; letter-spacing: 0.3em; font-weight: 700; text-align: center; }
.row { display: flex; gap: 8px; }
.row .input { flex: 1; }
.btn { display: block; width: 100%; margin-top: 10px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.07); font-weight: 600; }
.row .btn { width: auto; margin-top: 0; padding: 0 22px; }
.btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #2b1608; border: none; box-shadow: 0 4px 18px rgba(224,176,76,.25); }
.btn.ghost { background: transparent; }
.link { background: none; border: none; color: var(--gold); padding: 6px 2px; font-weight: 500; display: block; margin: 8px auto 0; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 16px 0 10px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.topbar { display: flex; justify-content: space-between; align-items: center; }
.topbar .link { margin: 0; }
.tb-right { display: flex; gap: 10px; align-items: center; }
.roomtag { font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
.rolebtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px 3px 3px; background: rgba(0,0,0,.25); font-weight: 600; font-size: 13px; }

.bigcode { text-align: center; font-size: 54px; font-weight: 800; letter-spacing: 0.18em; color: var(--gold2); margin: 0 0 4px; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; border-bottom: 1px solid rgba(224,176,76,.12); }
.plist li:last-child { border-bottom: none; }
.plist li.off { opacity: 0.5; }
.x { background: none; border: none; color: var(--muted); font-size: 16px; padding: 4px 8px; }

/* boards */
.boards { margin-top: 10px; }
.board { border-radius: var(--radius); padding: 10px 12px 12px; margin-bottom: 8px; }
.board.dharma { background: linear-gradient(180deg, rgba(47,154,98,.22), rgba(29,95,61,.16)); border: 1px solid rgba(47,154,98,.45); }
.board.adharma { background: linear-gradient(180deg, rgba(192,65,59,.22), rgba(110,31,28,.16)); border: 1px solid rgba(192,65,59,.45); }
.bhead { display: flex; justify-content: space-between; font-family: Cinzel, Georgia, serif; font-size: 13px; margin-bottom: 8px; }
.slots { display: grid; gap: 6px; }
.slots.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.slots.six { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.slot { position: relative; aspect-ratio: 4 / 5; min-width: 0; border-radius: 8px; border: 1px dashed rgba(246,236,217,.25); display: flex; align-items: center; justify-content: center; font-size: 22px; background: rgba(0,0,0,.18); }
.slot small { font-size: 8px; overflow-wrap: anywhere; color: var(--muted); text-align: center; line-height: 1.1; padding: 0 2px; text-transform: uppercase; letter-spacing: .04em; }
.slot.haspower small { color: var(--gold2); }
.slot.filled { border-style: solid; animation: pop .45s ease; }
.slot.filled.d { background: linear-gradient(160deg, #3fbf7e, var(--dharma-d)); border-color: #6fe0a6; }
.slot.filled.a { background: linear-gradient(160deg, #e0544d, var(--adharma-d)); border-color: #ff8f86; }
.slot .veto { position: absolute; top: 2px; right: 4px; font-style: normal; font-size: 10px; color: var(--gold2); }
.bnote { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); }
.meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 2px 4px; }
.die { display: inline-block; width: 18px; text-align: center; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* action */
.action { border-color: rgba(224,176,76,.55); box-shadow: 0 0 0 1px rgba(224,176,76,.12), 0 8px 30px rgba(0,0,0,.25); }
.status { margin: 0 0 10px; }
.picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pick { padding: 12px 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.22); font-weight: 600; }
.pick.sel { border-color: var(--gold2); background: rgba(224,176,76,.22); }
.votes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 8px; }
.vote { padding: 16px 8px; border-radius: 14px; font-family: Cinzel, Georgia, serif; font-size: 19px; font-weight: 800; border: 2px solid transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vote small { font-family: Inter, system-ui, sans-serif; font-size: 11px; font-weight: 500; opacity: .8; }
.vote.yes { background: linear-gradient(180deg, #3fbf7e, var(--dharma-d)); }
.vote.no { background: linear-gradient(180deg, #e0544d, var(--adharma-d)); }
.vote.sel { border-color: var(--gold2); box-shadow: 0 0 0 3px rgba(245,210,122,.3); }
.decrees { display: flex; gap: 10px; justify-content: center; margin: 4px 0 6px; }
.decree { position: relative; flex: 1; max-width: 120px; aspect-ratio: 3 / 4; border-radius: 12px; border: 2px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-family: Cinzel, Georgia, serif; font-weight: 800; color: var(--ink);
  background: linear-gradient(160deg, var(--parch), #d9c08f); box-shadow: inset 0 0 0 4px rgba(0,0,0,.06), 0 6px 16px rgba(0,0,0,.3); }
.decree .seal { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; }
.decree.d .seal { background: radial-gradient(circle at 35% 30%, #59d394, var(--dharma-d)); }
.decree.a .seal { background: radial-gradient(circle at 35% 30%, #f26a62, var(--adharma-d)); }
.decree.d { color: var(--dharma-d); }
.decree.a { color: var(--adharma-d); }
.decree.sel { border-color: #111; transform: translateY(-4px) rotate(-2deg); opacity: .55; }
.discard-mark { position: absolute; bottom: 8px; font-family: Inter, sans-serif; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: #111; color: #fff; padding: 2px 6px; border-radius: 4px; }

/* players */
.players { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.chip { padding: 9px 10px; border-radius: 10px; background: rgba(0,0,0,.22); border: 1px solid rgba(224,176,76,.14); min-height: 56px; }
.chip.me { border-color: rgba(224,176,76,.5); }
.chip.dead { opacity: .45; }
.chip.dead .pname { text-decoration: line-through; }
.chip.off .pname::after { content: ' ●'; color: #888; font-size: 10px; }
.pname { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tag { font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 999px; background: rgba(255,255,255,.08); }
.tag.gold { background: rgba(224,176,76,.25); color: var(--gold2); }
.tag.ok { background: rgba(47,154,98,.25); }
.tag.dim { opacity: .7; }
.tag.yes, .tag.good { background: rgba(47,154,98,.35); }
.tag.no, .tag.evil { background: rgba(192,65,59,.4); }
.legend { font-size: 11px; color: var(--muted); margin: 10px 0 0; }

.logtoggle { background: none; border: none; color: var(--gold2); font-family: Cinzel, Georgia, serif; padding: 0; font-size: 14px; }
.log { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); max-height: 260px; overflow: auto; }
.log li { margin-bottom: 4px; }

.over { text-align: center; }
.over .crest { margin-top: 4px; }
.over.good .h3 { color: #7ee2ab; }
.over.evil .h3 { color: #ff8f86; }
.youres { font-weight: 600; }

/* overlays */
.modal-bg { position: fixed; inset: 0; background: rgba(10,5,10,.78); display: flex; align-items: flex-end; justify-content: center; z-index: 20; animation: fade .2s; }
.modal { width: 100%; max-width: 520px; max-height: 88vh; overflow: auto; background: linear-gradient(180deg, #34193a, #1f1021); border: 1px solid var(--line); border-radius: 20px 20px 0 0; padding: 20px 16px calc(18px + env(safe-area-inset-bottom)); animation: up .25s ease; }
@media (min-width: 600px) { .modal-bg { align-items: center; } .modal { border-radius: 20px; } }
.rules p, .rules li { font-size: 14px; }
.rules ol, .rules ul { padding-left: 20px; }
.rolecard { text-align: center; border-radius: 16px; padding: 20px 14px; margin-bottom: 14px; }
.rolecard.pandava { background: linear-gradient(160deg, rgba(47,154,98,.45), rgba(29,95,61,.25)); border: 1px solid #4fc58a; }
.rolecard.kaurava { background: linear-gradient(160deg, rgba(192,65,59,.5), rgba(110,31,28,.3)); border: 1px solid #e06a63; }
.ricon { font-size: 52px; }
.rtitle { font-size: 34px; margin: 0; color: #fff; }
.rteam { margin: 2px 0 10px; color: var(--gold2); font-weight: 600; }
.rgoal { margin: 0; font-size: 14px; }
.know { padding-left: 18px; margin-top: 4px; }

.announce { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(10,5,10,.65); animation: fade .2s; padding: 20px; }
.abox { max-width: 380px; width: 100%; text-align: center; border-radius: 18px; padding: 26px 18px 16px; background: linear-gradient(160deg, #3b1d41, #1f1021); border: 1px solid var(--gold); animation: up .3s ease; }
.announce.good .abox { border-color: #4fc58a; background: linear-gradient(160deg, #1f5e3f, #142a1f); }
.announce.evil .abox { border-color: #e06a63; background: linear-gradient(160deg, #6a221f, #2a1010); }
.abox h2 { margin: 0 0 8px; font-size: 26px; color: var(--gold2); }
.abox p { margin: 0 0 12px; font-size: 15px; }
.abox small { color: var(--muted); font-size: 11px; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #111; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 40; max-width: 90vw; border: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

.picon { font-size: 20px; opacity: .8; }
.plegend { margin: 8px 0 0; font-size: 11.5px; color: var(--gold2); }
.bnote { margin-top: 4px; }

.subtitle { text-align: center; font-family: Cinzel, Georgia, serif; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; margin: 0 0 14px; }

/* avatars & profile */
.avwrap { display: inline-flex; flex: none; width: 44px; height: 44px; }
.avwrap .av { width: 100%; height: 100%; display: block; }
.avwrap.sm { width: 38px; height: 38px; }
.avwrap.xs { width: 30px; height: 30px; }
.avwrap.chipav { width: 40px; height: 40px; }
.avq { width: 100%; height: 100%; border-radius: 50%; border: 2px dashed var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.title.sm { font-size: 26px; margin: 10px 0 4px; }
.input.code.big { font-size: 30px; padding: 14px; letter-spacing: .4em; }
.btn.dice { width: auto; margin-top: 0; padding: 0 16px; font-size: 20px; }
.avgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.avpick { background: rgba(0,0,0,.22); border: 2px solid transparent; border-radius: 14px; padding: 8px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.avpick .av { width: 72px; height: 72px; }
.avpick span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.avpick.sel { border-color: var(--gold2); background: rgba(224,176,76,.18); }
.avpick.sel span { color: var(--gold2); font-weight: 600; }
.avpick.taken { opacity: .35; }
.h3.mt { margin-top: 14px; }
.btn.sticky { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 5; }
.codebox { margin: 6px 0 4px; }
.small { font-size: 12px; }
.link.inline { display: inline; margin: 0; padding: 4px 6px; font-size: 13px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.plist li { gap: 8px; }
.chip { display: flex; gap: 8px; align-items: flex-start; }
.chipbody { min-width: 0; flex: 1; }
.pick { display: flex; align-items: center; gap: 8px; justify-content: flex-start; text-align: left; }
.pick span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sharerow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sharerow .btn { margin-top: 4px; text-align: center; text-decoration: none; font-size: 14px; }
.btn.wa { background: #25d366; color: #06301a; border: none; font-weight: 700; }
.eyebtn { border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; background: rgba(0,0,0,.25); font-size: 12.5px; font-weight: 600; }
.eyebtn.on { border-color: var(--gold); color: var(--gold2); }
.mission { margin: 4px 0 4px; color: #fff; opacity: .8; }

/* Raja / Mantri seats — kept visually separate from team tags */
.thrones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.seat { border-radius: 12px; padding: 8px 10px; background: rgba(0,0,0,.25); }
.seat.raja { border: 2px solid var(--gold); box-shadow: inset 0 0 18px rgba(224,176,76,.15); }
.seat.mantri { border: 2px solid #5aa9e6; box-shadow: inset 0 0 18px rgba(90,169,230,.15); }
.seattitle { font-family: Cinzel, Georgia, serif; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.seat.raja .seattitle { color: var(--gold2); }
.seat.mantri .seattitle { color: #9fd0f5; }
.seatwho { display: flex; align-items: center; gap: 8px; margin-top: 4px; min-height: 38px; min-width: 0; }
.seatwho b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.raja { border: 2px solid var(--gold); }
.chip.mantri { border: 2px solid #5aa9e6; }
.seatav { position: relative; flex: none; display: inline-flex; }
.seatbadge { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; }
.seatbadge.raja { background: var(--gold); }
.seatbadge.mantri { background: #5aa9e6; }
.tag.good, .tag.evil { border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; font-size: 9.5px; }
.chip.me:not(.raja):not(.mantri) { border: 1px dashed rgba(255,255,255,.45); }

/* ===== compact game layout: everything on one screen ===== */
main.game.compact { padding-top: 8px; }
main.game.has-sheet { padding-bottom: 46vh; }
.game.compact .topbar { min-height: 34px; }
.statusbar { margin: 8px 0; padding: 9px 12px; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.3; }
.statusbar.mine { border-color: var(--gold2); background: rgba(224,176,76,.16); }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 2px; }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .3; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.card.court { padding: 10px; margin: 8px 0; }
.courthead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.courthead .h2 { margin: 0; font-size: 16px; }
.thrones { gap: 6px; margin-bottom: 8px; }
.seat { display: flex; align-items: center; gap: 6px; padding: 5px 8px; min-width: 0; }
.seat .seattitle { font-size: 10px; flex: none; }
.seat b { font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .avwrap.xs { width: 24px; height: 24px; }

.game.compact .players { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.game.compact .chip { flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 6px 4px; min-height: 0; }
.game.compact .chip .avwrap.chipav { width: 38px; height: 38px; }
.game.compact .pname { font-size: 12.5px; max-width: 100%; }
.game.compact .chip .sub { font-size: 10px; color: var(--muted); }
.game.compact .tags { justify-content: center; margin-top: 0; gap: 3px; }
.game.compact .tag { font-size: 9.5px; padding: 1px 5px; }
.game.compact .chip.dead .pname { text-decoration: line-through; }
.votemark { position: absolute; left: -5px; top: -4px; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 9px; background: #2a1a2e; border: 1px solid var(--line); font-style: normal; font-size: 11px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.votemark.done { background: var(--dharma); color: #fff; border-color: #6fe0a6; }
.votemark .dots i { width: 3px; height: 3px; }

.game.compact .boards { margin-top: 0; }
.game.compact .board { padding: 7px 10px 8px; margin-bottom: 6px; }
.game.compact .bhead { margin-bottom: 5px; font-size: 12px; }
.game.compact .slot { aspect-ratio: auto; height: 40px; font-size: 18px; }
.game.compact .picon { font-size: 16px; }
.game.compact .plegend { margin-top: 5px; font-size: 11px; }
.game.compact .bnote { font-size: 11px; margin-top: 3px; }
.game.compact .meta { font-size: 11.5px; }
.bnote.warn { color: #ff9b8f; }

/* bottom sheet for your turn (vote, choose, discard, powers) */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; max-width: 520px; margin: 0 auto; max-height: 72vh; overflow: auto;
  background: linear-gradient(180deg, #3a1c40, #1f1021); border: 1px solid var(--gold); border-bottom: none; border-radius: 20px 20px 0 0;
  padding: 0 14px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.5); animation: up .25s ease; }
.sheethandle { display: block; width: 100%; background: none; border: none; color: var(--gold2); font-size: 12px; padding: 8px 0 6px; }
.sheet.min .sheetbody { display: none; }
.sheet.min { padding-bottom: calc(6px + env(safe-area-inset-bottom)); }

/* vote results popup */
.abox.wide { max-width: 440px; }
.votegrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 4px 0 12px; }
.vg { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; background: rgba(0,0,0,.25); }
.vg span { font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg b { font-size: 11px; padding: 1px 8px; border-radius: 999px; }
.vg.y b { background: var(--dharma); }
.vg.n b { background: var(--adharma); }

.game.compact .chip { padding: 5px 4px 4px; }
.game.compact .chip .avwrap.chipav { width: 34px; height: 34px; }

/* ===== centred pop-ups ===== */
.modal-bg { align-items: center !important; padding: 16px; }
.modal { border-radius: 20px !important; max-height: 86vh; padding-bottom: 18px; animation: pop2 .22s ease; }
#sheetroot .sheetbg { position: fixed; inset: 0; z-index: 14; background: rgba(10,5,10,.55); }
#sheetroot .sheet { position: fixed; z-index: 15; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 24px); max-width: 480px; max-height: 86vh; overflow: auto;
  bottom: auto; right: auto; margin: 0; border: 1px solid var(--gold); border-radius: 20px; padding: 16px 14px 8px; animation: pop2c .22s ease; }
#sheetroot .sheethandle { padding: 10px 0 4px; color: var(--muted); }
#sheetroot .sheetpill { display: none; position: fixed; z-index: 15; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom));
  padding: 12px 20px; border-radius: 999px; border: none; font-weight: 700; color: #2b1608; background: linear-gradient(180deg, var(--gold2), var(--gold)); box-shadow: 0 6px 24px rgba(0,0,0,.5); }
#sheetroot.min .sheet, #sheetroot.min .sheetbg { display: none; }
#sheetroot.min .sheetpill { display: block; }
@keyframes pop2 { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop2c { from { transform: translate(-50%, -50%) scale(.94); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
.avpick { padding: 8px 4px; }
