/* Party Crawlers - the player's controller (a phone, a tablet, a laptop). Built for one thumb: choices are big, actions sit at the bottom. */
html { font-size: 16px; }
/* Bigger screens (tablets, laptops): everything is sized in rem, so the whole controller scales up instead of sitting small in the middle. */
@media (min-width: 700px) and (min-height: 700px) { html { font-size: 20px; } }
@media (min-width: 1000px) and (min-height: 950px) { html { font-size: 24px; } }
body { overflow: hidden; overscroll-behavior: none; }
#app { height: 100vh; height: 100dvh; max-width: 30rem; margin: 0 auto; display: flex; flex-direction: column; }
.boot { margin: auto; color: var(--dim); }
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.brand { padding: 1.3rem 1rem .5rem; text-align: center; }
.brand h1 { font-size: 1.65rem; color: var(--gold); text-transform: uppercase; text-shadow: 0 .15rem 0 #7a4a00; }
/* The title mark (DJ.mark): the name on one line down to the narrowest device, and the logo in the same space once there is one. */
.brand h1.mark { font-size: clamp(1.25rem, 7vw, 1.65rem); line-height: 2.2rem; }
.brand h1.mark.pic { height: 3.1rem; line-height: 3.1rem; text-shadow: none; font-size: 1rem; }
.brand h1.mark.pic.full { height: 9rem; line-height: 9rem; }
/* The launch screen: John's concept of 4 Dec 2026. The logo over the brand's dark green, three gold dots. */
.boot.launch { position: fixed; inset: 0; margin: 0; padding: 0 1.5rem 12vh; background: radial-gradient(ellipse at 50% 42%, #1a5a37 0%, #0f3a24 45%, #081c12 100%); }
.boot.launch .mark.pic { width: min(78vw, 21rem); height: auto; }
.boot.launch .mark.pic img { width: 100%; height: auto; }
.boot.launch .mark:not(.pic) { font-family: var(--display); font-size: 1.8rem; color: var(--brand-mint); text-transform: uppercase; letter-spacing: .06em; }
.brand.small h1 { font-size: 1.35rem; }
.brand em { color: var(--red); font-style: normal; }
.brand p { color: var(--dim); margin: .35rem 0 0; font-size: .88rem; }

.list { flex: 1; min-height: 0; overflow-y: auto; padding: .5rem 1rem 1rem; display: flex; flex-direction: column; gap: .6rem;
  -webkit-overflow-scrolling: touch; }
.dock { padding: .7rem 1rem calc(.9rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: .6rem;
  background: linear-gradient(transparent, var(--bg) 28%); }
.row { display: flex; gap: .6rem; }
.row > * { flex: 1; }

input { font: inherit; font-size: 1.1rem; padding: .8rem 1rem; border-radius: .9rem; border: 2px solid var(--line);
  background: var(--bg2); color: var(--ink); min-width: 0; width: 100%; outline: none; }
input:focus { border-color: var(--gold); }
#code { font-family: var(--display); font-size: 1.5rem; letter-spacing: .28em; text-align: center; text-transform: uppercase; flex: 0 0 8.2rem; padding: .6rem .4rem; }

button.primary { background: linear-gradient(#ffe08a, #f0a92e); color: #2a1a00; font-weight: 800; font-size: 1.08rem; border-radius: .9rem;
  padding: .95rem 1rem; box-shadow: 0 .25rem 0 #9a6200; }
button.primary:active { transform: translateY(.15rem); box-shadow: 0 .1rem 0 #9a6200; }
button.ghost { background: var(--panel2); border-radius: .9rem; padding: .85rem 1rem; font-weight: 600; }
button.ghost.sel, button.primary.sel { outline: 3px solid var(--ink); }
/* need, greed or pass (v0.9.0): three across, each with a word on what it means */
.lootpick button { flex: 1 1 0; min-width: 0; padding: .7rem .3rem; font-size: 1.05rem; }
.lootpick button small { display: block; font-size: .66rem; font-weight: 500; opacity: .8; margin-top: .12rem; white-space: nowrap; }
button.greed { background: linear-gradient(#e8ecf2, #9aa3b5); color: #1a1d26; font-weight: 800; border-radius: .9rem; box-shadow: 0 .25rem 0 #596075; }
button.greed:active { transform: translateY(.15rem); box-shadow: 0 .1rem 0 #596075; }
button.greed.sel { outline: 3px solid var(--ink); }
.die.big.greed { background: #c3c9d6; }
button.wide { width: 100%; }
button.danger { color: var(--red); padding: .9rem; margin-top: 1rem; }
button.sq { flex: 0 0 3.4rem; background: var(--panel2); border-radius: .9rem; font-size: 1.4rem; }
button.mini { background: var(--panel2); border-radius: .6rem; padding: .45rem .75rem; font-size: .82rem; font-weight: 700; white-space: nowrap; }
button.mini.go { background: var(--green); color: #05321a; }
button.mini.bad { color: var(--red); }
button.link { color: var(--dim); text-decoration: underline; font-size: .82rem; padding: .4rem; }

.card { display: flex; align-items: center; gap: .9rem; background: var(--panel); border: 2px solid var(--line); border-radius: 1rem;
  padding: .8rem .9rem; text-align: left; width: 100%; cursor: pointer; }
.card.hero .spr { font-size: 2.5rem; flex: none; margin: 0 .35rem; }
.card.sel { border-color: var(--gold); background: var(--panel2); }
.card .big { font-size: 2rem; }
.ci { flex: 1; min-width: 0; }
.ci b { display: block; font-size: 1.08rem; }
.ci small { color: var(--dim); display: block; margin-bottom: .3rem; font-size: .8rem; }
.ci .bar { height: .4rem; }
.card.add { justify-content: center; border-style: dashed; color: var(--dim); font-weight: 700; padding: 1rem; }
.restore { display: flex; flex-direction: column; gap: .5rem; }
.restore input { flex: 1; min-width: 0; text-align: center; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; }
.restore .ghost { flex: 0 0 auto; }
.note.where { text-align: center; margin-top: .5rem; }
.cardbtns { display: flex; flex-direction: column; gap: .35rem; flex: none; }
.keybox { display: flex; align-items: center; justify-content: space-between; gap: .8rem; background: var(--panel2); border: 1px dashed var(--gold);
  border-radius: .8rem; padding: .6rem .9rem; margin: .5rem 0 .2rem; }
.keybox small { color: var(--dim); font-size: .78rem; }
.keybox b { color: var(--gold); font-size: 1.25rem; letter-spacing: .14em; font-family: ui-monospace, Menlo, Consolas, monospace; user-select: all; -webkit-user-select: all; }
.err { color: var(--red); margin: 0; text-align: center; font-weight: 600; font-size: .9rem; }
.note { color: var(--dim); font-size: .82rem; margin: .3rem 0; line-height: 1.35; }
/* the character wipe (v0.9.1): said once, on the hero list */
.wiped { background: var(--panel2); border: 1px solid var(--gold); border-radius: .8rem; padding: .7rem .8rem; margin-bottom: .5rem; font-size: .9rem; line-height: 1.4; }
.wiped b { color: var(--gold); }
.wiped .mini { margin-left: .3rem; }
.note.center { text-align: center; margin: .3rem 0; padding: 0; }
.hostlink { color: var(--dim); font-size: .8rem; text-align: center; display: none; }
/* the front door (v0.9.1): join a game, or start one */
.gate .list { gap: .5rem; }
.gatecard { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: .85rem .9rem .9rem; }
.gatecard h2 { font-size: 1.05rem; color: var(--gold); display: flex; align-items: center; gap: .5rem; text-transform: uppercase; }
.gatecard h2 i { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--gold); color: #2a1a00; font-style: normal; font-size: .85rem;
  display: grid; place-items: center; font-family: var(--body); font-weight: 800; letter-spacing: 0; }
.gatecard p { margin: .35rem 0 .65rem; color: var(--ink); opacity: .85; font-size: .9rem; line-height: 1.35; }
.gatecard p.err { color: var(--red); opacity: 1; }
.gatecard .row .primary { flex: 1; }
.gatecard small { display: block; color: var(--dim); font-size: .74rem; margin-top: .5rem; text-align: center; }
.gatecard.join { border-color: var(--gold); box-shadow: 0 0 1.6rem -.9rem var(--gold); }
.startlink { display: block; text-align: center; text-decoration: none; background: var(--panel2); color: var(--ink); border: 2px solid var(--gold); border-radius: .9rem;
  padding: .8rem 1rem; font-weight: 800; font-size: 1.05rem; }
.startlink:active { transform: translateY(.1rem); }
.gateor { display: flex; align-items: center; gap: .7rem; color: var(--dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; }
.gateor::before, .gateor::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gate .gateart { margin: .6rem auto 0; font-size: 2rem; opacity: .8; }
.dock .ver { color: var(--dim); font-size: .7rem; text-align: center; opacity: .7; }
.roomchip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
  padding: .3rem .8rem; border: 1px solid var(--line); border-radius: .7rem; color: var(--dim); font-size: .72rem; }
.roomchip b { color: var(--gold); font-size: 1.15rem; letter-spacing: .12em; }
.roomchip small { font-size: .62rem; text-decoration: underline; }
.gateart { margin: auto; display: grid; grid-template-columns: repeat(4, auto); gap: .2rem .5rem; justify-content: center; font-size: 2.6rem; opacity: .9; }
@media (min-width: 700px) { .hostlink { display: block; } }

/* ---- character creator ---- */
.clsgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.cls { background: var(--panel); border: 2px solid var(--line); border-radius: .8rem; padding: .5rem .1rem; display: flex; flex-direction: column;
  align-items: center; gap: .05rem; }
.cls .emoji { font-size: 1.7rem; line-height: 1.2; }
.cls .spr { font-size: 2rem; margin: 0 auto .15rem; }
.restore .card .spr { font-size: 2rem; flex: none; margin: 0 .3rem; }
.choice .oi .spr { font-size: 1em; }
.choice .oi img.mon { display: block; }
.cls b { font-size: .72rem; }
.cls small { font-size: .6rem; color: var(--dim); }
.cls.sel { border-color: var(--gold); background: var(--panel2); }
.clsinfo { background: var(--panel); border-radius: 1rem; padding: .9rem; }
.ch { display: flex; gap: 1rem; align-items: center; }
.ch .spr { font-size: 3rem; flex: none; margin: 0 .5rem; }
.ch h2 { font-size: 1.35rem; color: var(--gold); }
.ch p { margin: .2rem 0 0; color: var(--dim); font-size: .88rem; line-height: 1.3; }
.statrow { display: flex; gap: .4rem; flex-wrap: wrap; margin: .7rem 0; }
.statrow span { background: var(--bg2); border-radius: 99px; padding: .25rem .7rem; font-size: .82rem; font-weight: 700; }
h4 { margin: .9rem 0 .4rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-family: var(--body); }
h4 small { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: .4rem; }

.abil { display: flex; gap: .7rem; align-items: center; background: var(--bg2); border-radius: .8rem; padding: .55rem .7rem; margin-bottom: .35rem; }
.abil .ai { font-size: 1.5rem; flex: none; }
.abil > div { flex: 1; min-width: 0; }
.abil b { display: block; font-size: .95rem; }
.abil small { color: var(--dim); font-size: .78rem; line-height: 1.25; display: block; }
.abil.locked { opacity: .45; }
.abil.item { outline: 1px solid var(--purple); }
.tag { font-size: .68rem; background: var(--panel2); border-radius: 99px; padding: .15rem .5rem; white-space: nowrap; flex: none; }
.tag.on { background: var(--green); color: #05321a; font-weight: 700; }

.item { display: flex; gap: .7rem; align-items: center; background: var(--slab); border-radius: .8rem; padding: .55rem .7rem; margin-bottom: .35rem;
  border-left: 4px solid currentColor; }
.item .ii { font-size: 1.7rem; flex: none; }
.item .it { flex: 1; min-width: 0; }
.item b { display: block; }
.item small { color: var(--dim); font-size: .76rem; display: block; text-transform: capitalize; }
.item small.ab { text-transform: none; color: var(--ink); opacity: .8; margin-top: .15rem; }
.item small.ab b { display: inline; }
.acts { display: flex; gap: .3rem; flex: none; }

/* ---- character sheet / paper doll ---- */
.bar-top { display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem; }
.bar-top b { flex: 1; font-size: 1.15rem; }
.bar-top span { color: var(--dim); font-size: .82rem; }
.bar-top .ghost { padding: .5rem .8rem; flex: none; }
.doll { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: .5rem; align-items: center; border-radius: 1.2rem; padding: .8rem;
  background: radial-gradient(circle at 50% 45%, var(--panel2), var(--panel)); }
.dcol { display: flex; flex-direction: column; gap: .5rem; }
.slotb { background: var(--slab); border: 2px solid var(--line); border-radius: .8rem; padding: .45rem .2rem; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .1rem; min-height: 4.3rem; color: var(--ink); }
.slotb .emoji { font-size: 1.5rem; line-height: 1.2; }
.slotb small { font-size: .62rem; line-height: 1.1; text-align: center; }
.slotb.none { border-style: dashed; }
.slotb.none .emoji { opacity: .25; filter: grayscale(1); }
.slotb.none small { color: var(--dim); }
.slotb.r-common { color: var(--common); border-color: currentColor; }
.slotb.r-uncommon { color: var(--uncommon); border-color: currentColor; }
.slotb.r-rare { color: var(--rare); border-color: currentColor; }
.slotb.r-epic { color: var(--epic); border-color: currentColor; }
.slotb.r-legendary { color: var(--legendary); border-color: currentColor; }
.dmid { text-align: center; }
.dmid .spr { font-size: 5rem; margin: .7rem 0 .9rem; }
.dmid small { display: block; color: var(--dim); text-transform: uppercase; letter-spacing: .15em; font-size: .68rem; }
.xprow { margin-top: .2rem; }
.xprow small { color: var(--dim); font-size: .76rem; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.65); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.sheetup { background: var(--panel); width: 100%; max-width: 30rem; border-radius: 1.2rem 1.2rem 0 0; max-height: 75vh; overflow-y: auto;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); animation: rise .25s; }
.sheetup h3 { margin-bottom: .7rem; }

/* ---- in a game ---- */
.mebar { display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; background: var(--panel); border-bottom: 3px solid var(--pc); }
.mebar .spr { font-size: 2rem; flex: none; margin: 0 .35rem; }
.mi { flex: 1; min-width: 0; }
.mi b { display: block; }
.mi small { color: var(--dim); font-size: .78rem; }
.mi .bar { margin: .2rem 0; }
.rc { font-family: var(--display); color: var(--gold); letter-spacing: .15em; text-align: right; font-size: .95rem; }
.rc small { display: block; color: var(--ink); letter-spacing: 0; font-family: var(--body); font-size: .85rem; min-height: 1.1em; }
#ptimer { height: .35rem; background: rgba(0,0,0,.5); visibility: hidden; flex: none; }
#ptimer i { display: block; height: 100%; background: var(--gold); transition: width .12s linear; }
#ptimer.hurry i { background: var(--red); }
.body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; padding: .8rem 1rem 0; }
.body > .dock { margin: auto -1rem 0; position: sticky; bottom: 0; padding-top: 1.2rem; }
.prompt { font-size: 1.2rem; text-align: center; margin: .2rem 0 .8rem; color: var(--gold); }
.prompt em { color: var(--red); font-style: normal; font-size: .75em; margin-left: .4rem; }
.center { text-align: center; margin: auto 0; padding: 1rem 0; }
.center h2 { font-size: 1.55rem; margin: .4rem 0; }
.center p { color: var(--dim); margin: .3rem 0; line-height: 1.4; }
.bigspr .spr { font-size: 5.5rem; margin: .6rem 0 1.1rem; }
/* you lock in (play.js lockBox): your hero spins in as on the big screen, with a ring and sparks in your class's colours */
.bigspr { position: relative; }
.bigspr.lk .spr { animation: lkpop .7s cubic-bezier(.2, 1.3, .4, 1) var(--lk, 0ms) both; }
.bigspr.lk.lk-law .spr { animation: lkflip .85s cubic-bezier(.2, .8, .3, 1) var(--lk, 0ms) both; }
.bigspr.lk.lk-cha .spr { animation: lktumble .9s cubic-bezier(.3, 1.2, .4, 1) var(--lk, 0ms) both; }
.bigspr.lk::before, .bigspr.lk::after { content: ''; position: absolute; left: 50%; top: calc(50% - .25rem); border-radius: 50%; pointer-events: none; }
.bigspr.lk::before { width: 7rem; height: 7rem; margin: -3.5rem 0 0 -3.5rem; border: .3rem solid var(--k1, #ffc94d); box-shadow: 0 0 1.4rem var(--k1, #ffc94d), inset 0 0 1.2rem var(--k2, #fff);
  animation: lkring .8s ease-out var(--lk, 0ms) both; }
.bigspr.lk::after { width: .5rem; height: .5rem; margin: -.25rem 0 0 -.25rem; background: transparent;
  box-shadow: 4.6rem 0 0 var(--k2, #fff), -4.6rem 0 0 var(--k2, #fff), 0 4.6rem 0 var(--k1, #ffc94d), 0 -4.6rem 0 var(--k1, #ffc94d),
    3.3rem 3.3rem 0 var(--k1, #ffc94d), -3.3rem -3.3rem 0 var(--k1, #ffc94d), 3.3rem -3.3rem 0 var(--k2, #fff), -3.3rem 3.3rem 0 var(--k2, #fff);
  animation: lksparks .95s ease-out var(--lk, 0ms) both; }
.bigspr.lk.lk-law::after { animation-name: lksparks-law; }
.bigspr.lk.lk-cha::after { animation-name: lksparks-cha; }
.bigspr.lk.lk-evil .spr { filter: drop-shadow(0 0 .7rem #e23c3c); }
.bigspr.lk.lk-good .spr { filter: drop-shadow(0 0 .8rem #ffe08a); }
@keyframes lkring { 0% { transform: scale(.15); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes lksparks { 0% { transform: scale(.1) rotate(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: scale(1.35) rotate(200deg); opacity: 0; } }
@keyframes lksparks-law { 0% { transform: scale(.1); opacity: 1; } 70% { opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes lksparks-cha { 0% { transform: scale(.1) rotate(0); opacity: 1; } 40% { transform: scale(1.1) rotate(-260deg); } 70% { transform: scale(.8) rotate(-180deg); opacity: 1; } 100% { transform: scale(1.5) rotate(-520deg); opacity: 0; } }
html.nofx .bigspr.lk .spr, html.nofx .bigspr.lk::before, html.nofx .bigspr.lk::after { animation: none; display: revert; }
html.nofx .bigspr.lk::before, html.nofx .bigspr.lk::after { display: none; }
.bigemoji { font-size: 4.5rem; line-height: 1.15; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; margin-top: .8rem; }

.choices { display: flex; flex-direction: column; gap: .6rem; padding-bottom: .4rem; }
.choice { display: flex; gap: .9rem; align-items: center; background: var(--panel); border: 2px solid var(--line); border-radius: 1rem;
  padding: .85rem .9rem; text-align: left; width: 100%; min-height: 4.3rem; transition: transform .08s; }
.choice:active { transform: scale(.98); }
.choice .oi { font-size: 2rem; flex: none; }
.choice > div { flex: 1; min-width: 0; }
.choice b { display: block; font-size: 1.05rem; }
.choice small { display: block; color: var(--dim); font-size: .8rem; line-height: 1.3; }
.choice.sel { border-color: var(--gold); background: var(--panel2); box-shadow: 0 0 0 2px var(--gold) inset; }
.choice.secret { border-color: var(--purple); background: linear-gradient(120deg, #3a2466, var(--panel)); }
.found { color: var(--purple) !important; font-weight: 700; }
.choice.won { border-color: var(--gold); }
.choice.lost { opacity: .35; }
.choice.item { border-color: var(--purple); }
.choice .tg { color: var(--gold); margin-top: .15rem; }
.choice .rare { color: var(--purple); }
.choice.downed { opacity: .75; }
.choice .bar { margin: .25rem 0 .15rem; }
.fxc { background: var(--bg2); border-radius: .4rem; padding: 0 .25rem; margin-left: .15rem; font-size: .75rem; white-space: nowrap; }
.toggle { background: var(--panel2); border-radius: 99px; padding: .65rem 1rem; font-size: .85rem; width: 100%; color: var(--dim); }
.toggle.on { color: var(--ink); }
.autobar { display: block; width: 100%; background: #2b2440; border: 1px solid var(--gold); color: var(--ink); border-radius: .8rem; padding: .55rem .8rem;
  font-size: .85rem; line-height: 1.3; text-align: center; margin-bottom: .6rem; }
.autobar b { color: var(--gold); }
.autobar.stone { background: #34353c; border-color: #c3c6cf; }
.autobar.stone b { color: #fff; }

.evt { display: flex; gap: .9rem; background: var(--panel); border-radius: 1rem; padding: .9rem; margin-bottom: .8rem; align-items: center; }
.evt .emoji { font-size: 2.6rem; }
.evt p { margin: .2rem 0 0; color: var(--dim); font-size: .9rem; line-height: 1.35; }
.evt.secret { outline: 2px solid var(--purple); }
.outcome { background: var(--panel2); border-radius: 1rem; padding: .9rem; border-left: 5px solid var(--green); }
.outcome.bad { border-left-color: var(--red); }
.outcome p { margin: .4rem 0; line-height: 1.4; }
.outcome .chips { justify-content: flex-start; margin-top: .4rem; }
.rollline { display: flex; gap: .7rem; align-items: center; color: var(--dim); font-size: .9rem; }
.die { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; background: var(--ink); color: #222; font-family: var(--display);
  font-size: 1.3rem; font-weight: 700; border-radius: .5rem; transform: rotate(-6deg); flex: none; }
.die.ok { background: var(--green); }
.die.no { background: var(--red); color: #fff; }
.die.big { width: 5rem; height: 5rem; font-size: 2.6rem; margin: .6rem auto; display: grid; }

/* ---- xp to the next level ---- */
.xpline { display: flex; align-items: center; gap: .5rem; margin-top: .2rem; }
.xpline .bar { flex: 1; height: .34rem; margin: 0; }
.xpline small { flex: none; font-size: .68rem; color: var(--dim); white-space: nowrap; }
.xpline em { color: var(--gold); font-style: normal; font-weight: 800; }
.xpbig { max-width: 17rem; margin: .9rem auto 0; }
.xpbig .xpline { flex-direction: column; align-items: stretch; gap: .35rem; }
.xpbig .bar { height: .6rem; flex: none; }
.xpbig small { font-size: .82rem; text-align: center; }

/* ---- turn order ---- */
.order { margin: -.3rem 0 .7rem; text-align: center; }
.order > small { display: block; color: var(--dim); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .4rem; }
.order > small b { color: var(--gold); }
.ocs { display: flex; flex-wrap: wrap; justify-content: center; gap: .32rem; }
.oc { position: relative; flex: none; display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; overflow: hidden;
  background: #2a2233; box-shadow: 0 0 0 2px var(--pc, #b0413e); }
.oc img { width: 100% !important; height: 100% !important; display: block; }
.oc.enemy img { width: 78% !important; height: 78% !important; object-fit: contain; }
.oc.me { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.oc.done { opacity: .35; }
.oc.now { transform: scale(1.22); box-shadow: 0 0 0 3px var(--gold); opacity: 1; margin: 0 .2rem; }
.oc.down { filter: grayscale(1) brightness(.6); opacity: .45; }

/* ---- battle log ---- */
.blog { display: flex; flex-direction: column; gap: .3rem; }
.blog.keep { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 1rem; }
.lgr { margin: .55rem 0 .05rem; }
.lgr:first-child { margin-top: 0; }
.lg { display: flex; gap: .6rem; align-items: center; background: var(--panel); border-radius: .7rem; padding: .42rem .6rem;
  border-left: 4px solid transparent; }
.lg p { margin: 0; font-size: .86rem; line-height: 1.3; flex: 1; min-width: 0; }
.lgm { flex: none; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; font-size: 1.05rem; }
.lgm img { width: 100% !important; height: 100% !important; object-fit: contain; border-radius: 50%; }
.lg.mine { border-left-color: var(--gold); background: var(--panel2); }
.lg.hurt { border-left-color: var(--red); }
.lg.good { border-left-color: var(--green); }
.lg.now { outline: 2px solid var(--gold); background: var(--panel2); }
.lg.now p { font-size: 1rem; font-weight: 600; }
.lt { display: inline-block; margin-left: .4rem; padding: 0 .45rem; border-radius: 99px; background: var(--bg2); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.lt.hurt { background: var(--red); color: #fff; }
.lt.good { background: var(--green); color: #05321a; }
.lt.miss { color: var(--dim); }
.recap { margin: 1rem 0 .4rem; display: flex; flex-direction: column; gap: .3rem; }
.recap h4 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 .1rem; }
.recap .lg p { font-size: .8rem; }
.logsheet { display: flex; flex-direction: column; overflow: hidden; max-height: 84vh; }
.logsheet .ghost { margin-top: .7rem; flex: none; }
.who { display: flex !important; gap: .3rem; flex-wrap: wrap; margin-top: .4rem; }
.who .dot { font-size: .8rem; }
.dot img.face { width: 100%; height: 100%; border-radius: 50%; vertical-align: top; }
.line { text-align: left; background: var(--panel); border-radius: .8rem; padding: .5rem .8rem; color: var(--ink) !important; font-size: .9rem; }
.src { text-transform: uppercase; letter-spacing: .2em; }
.res { padding-bottom: 1rem; }
.res h2 { font-size: 2.2rem; text-align: center; color: var(--gold); text-transform: uppercase; }
.res.lose h2 { color: var(--red); }
.res > p { text-align: center; }
.lvup { color: var(--gold); font-style: normal; font-weight: 800; }

#toast { position: fixed; left: 50%; bottom: 6rem; transform: translateX(-50%); background: var(--ink); color: #222; padding: .6rem 1.1rem;
  border-radius: 99px; font-weight: 700; z-index: 99; max-width: 90vw; text-align: center; font-size: .9rem; }
#oops { position: fixed; left: .6rem; right: .6rem; bottom: .6rem; z-index: 200; background: #3a1016; border: 2px solid var(--red); border-radius: .9rem;
  padding: .7rem .8rem; display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; }
#oops span { color: var(--dim); font-size: .7rem; word-break: break-word; max-height: 5.5rem; overflow: auto; }
#oops button { background: var(--red); color: #fff; font-weight: 800; border-radius: .6rem; padding: .6rem; }
#offline { position: fixed; top: 0; left: 0; right: 0; background: var(--red); color: #fff; text-align: center; padding: .2rem .6rem;
  font-size: .85rem; font-weight: 700; z-index: 98; display: flex; align-items: center; justify-content: center; gap: .7rem; }
#offline[hidden] { display: none; }
#offline button { font: inherit; font-size: .8rem; color: #fff; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.6); border-radius: 99px; padding: .05rem .7rem; }

/* ================================================================ v0.05 */
/* ---- your dice ---- */
#roll { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1.2rem;
  background: radial-gradient(circle at 50% 42%, rgba(52,38,96,.985), rgba(8,6,18,.99)); }
#roll[hidden] { display: none; }
#roll.oh { background: radial-gradient(circle at 50% 42%, rgba(150,96,10,.985), rgba(20,8,30,.99)); }
.rollbox { text-align: center; width: 100%; max-width: 24rem; }
.rollbox > small { display: block; color: var(--dim); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; }
.rollbox h2 { font-size: 1.5rem; margin: .25rem 0 1rem; color: var(--gold); }
.rdice { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; align-items: center; min-height: 9.5rem; }
#roll.one .d20v { font-size: 9rem; }
#roll.many .d20v { font-size: 4.2rem; }
.rres { display: block; min-height: 2.6rem; margin-top: .9rem; font-family: var(--display); font-size: 1.7rem; letter-spacing: .04em; opacity: 0; transform: scale(.6); }
#roll.landed .rres { opacity: 1; transform: none; transition: opacity .15s, transform .28s cubic-bezier(.2,2.2,.4,1); }
.rres.crit { color: var(--gold); text-shadow: 0 0 1.2rem rgba(255,210,90,.75); font-size: 2rem; }
.rres.good { color: var(--green); }
.rres.fail { color: #ff8a7a; }
.rres.miss { color: var(--dim); }
.rres.ok { color: var(--ink); }
.rtext { color: var(--ink); line-height: 1.4; min-height: 3.2em; margin: .5rem 0 0; opacity: 0; }
#roll.landed .rtext { opacity: .92; transition: opacity .3s .15s; }
.rhint { display: block; margin-top: 1rem; color: var(--dim); font-size: .7rem; opacity: .6; }
#roll.oh .rres { font-size: 2.7rem; color: #fff3c4; text-shadow: 0 0 1.6rem #ffb300; animation: ohpulse .5s ease-in-out infinite alternate; }
@keyframes ohpulse { to { transform: scale(1.08) rotate(-2deg); } }

/* ---- log: the roll, and the newest line waits for the dice ---- */
.lgd { display: inline-block; margin-left: .4rem; color: var(--dim); font-size: .72rem; font-weight: 600; white-space: nowrap; }
.lgd.oh { color: var(--gold); }
.lg.oh { border-left-color: var(--gold); background: linear-gradient(100deg, #5a3d05, var(--panel2)); }
.lg.hold p { animation: lghold var(--w, 600ms) steps(1, end) both; }
@keyframes lghold { from { opacity: .08; } to { opacity: 1; } }

/* ---- the hand: what kind of move, who it hits, how the roll works ---- */
.tray { display: block; width: 100%; background: var(--bg2); border: 1px dashed var(--line); border-radius: .8rem; padding: .5rem .7rem; margin-bottom: .6rem; text-align: left; color: var(--ink); }
.tray small { display: block; color: var(--dim); font-size: .78rem; }
.tray small b { color: var(--gold); }
.tray span { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; margin-top: .3rem; }
.tray i { font-style: normal; font-size: 1.15rem; opacity: .28; filter: grayscale(1); }
.tray i.in { opacity: 1; filter: none; }
.tray em { margin-left: auto; font-style: normal; color: var(--gold); font-size: .78rem; font-weight: 700; }
.choice.ab { align-items: flex-start; border-left-width: 6px; }
.choice.ab .oi { margin-top: .15rem; }
.choice.ab.k-attack { border-left-color: #e2604e; }
.choice.ab.k-hex { border-left-color: var(--purple); }
.choice.ab.k-heal { border-left-color: var(--green); }
.choice.ab.k-shield { border-left-color: #5fb4f0; }
.choice.ab.k-buff { border-left-color: var(--gold); }
.kchips { display: flex; flex-wrap: wrap; gap: .3rem; margin: .25rem 0 .3rem; }
.kchips i { font-style: normal; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--bg2); border-radius: 99px; padding: .12rem .5rem; color: var(--dim); }
.kchips i.k { color: #1a1326; background: var(--ink); }
.k-attack .kchips i.k { background: #f08a78; }
.k-hex .kchips i.k { background: #c7a4ff; }
.k-heal .kchips i.k { background: var(--green); }
.k-shield .kchips i.k { background: #8ccbf7; }
.k-buff .kchips i.k { background: var(--gold); }
.kchips i.it { color: var(--purple); }
.choice.ab small { color: var(--ink); opacity: .88; font-size: .84rem; }
.choice.ab small.rl { color: var(--dim); opacity: 1; font-size: .72rem; margin-top: .25rem; }
.tag b.in { color: var(--green); }
.choice b.tierb { display: inline; font-size: inherit; color: var(--gold); }
.res .outbar { margin: .7rem 0 0; }

/* ---- sheet: what you are wearing, slot by slot ---- */
.wlist { display: flex; flex-direction: column; gap: .3rem; }
.wrow { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; background: var(--slab); border-radius: .8rem; padding: .45rem .7rem;
  border-left: 4px solid var(--line); color: var(--ink); }
.wrow .emoji { font-size: 1.45rem; flex: none; width: 1.8rem; text-align: center; }
.wrow .ws { flex: 0 0 4.6rem; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.wrow .wn { flex: 1; min-width: 0; }
.wrow .wn b { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrow .wn small { display: block; color: var(--dim); font-size: .72rem; }
.wrow > i { font-style: normal; color: var(--dim); }
.wrow.none .emoji { opacity: .25; filter: grayscale(1); }
.wrow.none .wn b { color: var(--dim); font-weight: 400; }
.wrow.r-common { border-left-color: var(--common); } .wrow.r-uncommon { border-left-color: var(--uncommon); } .wrow.r-rare { border-left-color: var(--rare); }
.wrow.r-epic { border-left-color: var(--epic); } .wrow.r-legendary { border-left-color: var(--legendary); }
.wrow.r-uncommon .wn b { color: var(--uncommon); } .wrow.r-rare .wn b { color: var(--rare); } .wrow.r-epic .wn b { color: var(--epic); } .wrow.r-legendary .wn b { color: var(--legendary); }
.tag.bad { background: var(--red); color: #fff; font-weight: 700; }
.gone .item { opacity: .55; }
.gone .item b { text-decoration: line-through; }

/* ---- menu, out of the dungeon ---- */
.menub { flex: none; width: 2.5rem; height: 2.5rem; border-radius: .7rem; background: var(--panel2); color: var(--ink); font-size: 1.25rem; }
.sheetup.menu { display: flex; flex-direction: column; gap: .5rem; }
.sheetup.menu h3 { margin-bottom: .2rem; }
.sheetup.menu .ghost { text-align: left; }
a.ghost { display: block; background: var(--panel2); border-radius: .9rem; padding: .85rem 1rem; font-weight: 600; color: var(--ink); text-decoration: none; }
button.ghost.bad { color: var(--red); }
.sheetup > .ghost.wide { margin-top: .6rem; }
.outbar { background: #3a1620; border: 1px solid #a8485a; color: #ffd9de; border-radius: .8rem; padding: .55rem .8rem; font-size: .84rem; line-height: 1.35; margin-bottom: .7rem; }
.dock a.ver { display: block; color: var(--gold); font-size: .74rem; text-align: center; opacity: .9; text-decoration: none; margin-top: .2rem; }
.dock small.ver { display: block; margin-top: .25rem; line-height: 1.3; }
.die.big.in { animation: diein .7s cubic-bezier(.2,1.8,.4,1); }
@keyframes diein { from { transform: rotate(-380deg) scale(.2); opacity: 0; } }

/* ---- the cut-in beside your dice ---- */
#roll .rdice .cutin { font-size: 5.2rem; margin: 0 -.5rem 0 -.8rem; align-self: flex-end; }
#roll .rcut { display: flex; justify-content: center; margin-bottom: .2rem; }
#roll .rcut .cutin { font-size: 5rem; }

/* ---- v0.6.0: class stats, key ring, tiers, tokens ---- */
.cls .stt { margin: .2rem auto 0; font-size: .52rem; }
.item small.offs { text-transform: none; color: var(--red); opacity: .9; margin-top: .15rem; }
.fit { font-size: .85rem; margin: .1rem 0 .5rem; padding: .4rem .7rem; border-radius: .7rem; line-height: 1.3; }
.fit.yes { background: rgba(95,220,138,.14); color: var(--green); }
.fit.no { background: rgba(255,93,93,.12); color: #ff9a9a; }
.tokrow { display: flex; gap: .7rem; align-items: center; background: var(--bg2); border-radius: .8rem; padding: .55rem .7rem; margin-bottom: .35rem;
  border-left: 4px solid var(--gold); }
.tokrow.piece { border-left-color: var(--purple); }
.tokrow > .emoji { font-size: 1.7rem; flex: none; }
.tokrow > div { flex: 1; min-width: 0; }
.tokrow b { display: block; }
.tokrow small { display: block; color: var(--dim); font-size: .76rem; line-height: 1.3; }
.tokrow small.opens { color: var(--gold); font-weight: 700; }
.tokrow.piece small.opens { color: var(--purple); }
.choice .warn { color: var(--red); font-style: normal; font-weight: 700; white-space: nowrap; }
.choice .stt { font-size: .62rem; }
.lkh { margin-top: 1.1rem; }
.lkrow { display: flex; gap: .7rem; align-items: center; border: 1px dashed var(--line); border-radius: .8rem; padding: .5rem .7rem; margin-bottom: .35rem; opacity: .8; }
.lkrow > .emoji { font-size: 1.5rem; flex: none; filter: grayscale(.6); }
.lkrow > div { flex: 1; min-width: 0; }
.lkrow b { display: block; font-size: .95rem; }
.lkrow small { display: block; color: var(--dim); font-size: .76rem; line-height: 1.3; }
.lkrow .stt { font-size: .6rem; }
.tokenp .bigemoji { filter: drop-shadow(0 0 1.2rem var(--gold)); }
.tokenp.piece .bigemoji { filter: drop-shadow(0 0 1.2rem var(--purple)); }
.tokenp .opens { color: var(--gold); font-size: 1.05rem; }
.tokenp.piece .opens { color: var(--purple); }

/* v0.6.1: ability rarities, cooldowns and the ult; the dice; forms; the boss's offer */
.abil .arar { display: block; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); margin: .1rem 0; }
.abil.ar-uncommon { box-shadow: inset 3px 0 0 var(--uncommon); }
.abil.ar-uncommon .arar { color: var(--uncommon); }
.abil.ar-rare { box-shadow: inset 3px 0 0 var(--rare); }
.abil.ar-rare .arar { color: var(--rare); }
.abil.ar-ultimate { box-shadow: inset 3px 0 0 var(--gold); outline: 1px solid var(--gold); }
.abil.ar-ultimate .arar { color: var(--gold); }
.choice.ab.ar-uncommon { border-left: 5px solid var(--uncommon); }
.choice.ab.ar-rare { border-left: 5px solid var(--rare); }
.choice.ab.ult { border-color: var(--gold); box-shadow: 0 0 1.2rem -.4rem var(--gold); }
.kchips i.rar { color: var(--dim); }
.ar-uncommon .kchips i.rar { color: var(--uncommon); }
.ar-rare .kchips i.rar { color: var(--rare); }
.kchips i.cdc { color: #ffd9a0; }
.kchips i.ultc { color: #1a1326; background: var(--gold); }
.tray i.cool { opacity: .55; filter: grayscale(1); outline: 1px dashed var(--line); border-radius: .3rem; }
.rolls { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .6rem; }
.rollr { display: flex; gap: .7rem; align-items: center; background: var(--bg2); border-radius: .8rem; padding: .5rem .7rem; border-left: 4px solid var(--line); }
.rollr .d20v { font-size: 2.7rem; flex: none; }
.rollr > div { flex: 1; min-width: 0; }
.rollr b { display: block; font-size: 1rem; }
.rollr small { display: block; color: var(--dim); font-size: .76rem; line-height: 1.25; }
.rollr.rr-uncommon { border-left-color: var(--uncommon); }
.rollr.rr-uncommon b { color: var(--uncommon); }
.rollr.rr-rare { border-left-color: var(--rare); }
.rollr.rr-rare b { color: var(--rare); }
.rollr.rr-legendary { border-left-color: var(--legendary); box-shadow: 0 0 1.2rem -.5rem var(--legendary); }
.rollr.rr-legendary b { color: var(--legendary); }
.rollr.evil b { color: #ff7a8a; }
.rolls.staged .rollr { opacity: 0; animation: rollin .45s ease-out forwards; animation-delay: calc(.35s + var(--i) * .75s); }
@keyframes rollin { from { opacity: 0; transform: translateY(.8rem) scale(.96); } to { opacity: 1; transform: none; } }
html.nofx .rolls.staged .rollr { animation: none; opacity: 1; }
.revhero { text-align: center; margin: .2rem 0 .8rem; }
.revhero .spr { font-size: 5rem; margin: .4rem 0 .6rem; }
.revhero h2 { margin: 0; font-size: 1.3rem; }
.revhero small { color: var(--dim); }
.fullname { text-align: center; color: var(--gold); font-weight: 700; margin: .3rem 0 0; font-size: .95rem; }
.formbox { display: flex; gap: .7rem; align-items: center; background: var(--bg2); border: 1px solid var(--purple); border-radius: .8rem; padding: .6rem .7rem; margin-bottom: .35rem; }
.formbox .emoji { font-size: 1.9rem; flex: none; }
.formbox b { display: block; }
.formbox small { display: block; color: var(--dim); font-size: .78rem; line-height: 1.25; }
.outbar.evil { background: #2a1238; border-color: #8a4fd0; color: #ecd9ff; }

/* ==== v0.6.2 ==== */
.who .dot { font-size: 1.35rem; }                 /* vote heads were too small to recognise */
.who { gap: .4rem; }
/* emotes */
.menub.emob { margin-right: -.35rem; }
.emogrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.emobtn { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .6rem .2rem; border-radius: .9rem; background: var(--panel2); color: var(--ink); }
.emobtn img.emoi { width: 2.4rem; height: 2.4rem; }
.emobtn small { font-size: .72rem; font-weight: 700; }
.emobtn:active { transform: scale(.94); }
#emotes { top: 3.9rem; font-size: .9rem; }
/* something to do while you wait */
.waitbox { margin: .8rem 0; padding: .7rem .8rem; border-radius: 1rem; background: var(--bg2); border: 1px dashed var(--line); text-align: left; }
.fidrow { display: flex; align-items: center; gap: .9rem; }
.fid { flex: none; width: 4.2rem; height: 4.2rem; border-radius: 1rem; background: var(--panel); display: grid; place-items: center; }
.fid .d20v { font-size: 3.2rem; }
.fid:active { transform: scale(.94); }
.fidrow b { display: block; font-size: .95rem; }
.fidrow small { display: block; color: var(--dim); font-size: .78rem; }
.waitbox .tip { margin: .6rem 0 0; color: var(--dim); font-size: .8rem; line-height: 1.35; }
.sboard { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: .7rem; }
.sb { margin-bottom: .35rem; }
.sb .sbn { display: block; font-size: .74rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb small { display: block; color: var(--dim); font-size: .68rem; }
.sb.me .sbn { color: var(--gold); }
.sb.down { opacity: .5; }
/* the rules of a room; this dive's condition on a dungeon option */
.rules { display: flex; flex-direction: column; gap: .3rem; margin: .1rem 0 .6rem; font-size: .8rem; line-height: 1.3; }
.rules .rulec { display: block; border-radius: .6rem; padding: .3rem .6rem; font-weight: 500; }
.choice small.ocond { color: var(--ink); background: rgba(0,0,0,.3); border-radius: .5rem; padding: .2rem .45rem; margin: .25rem 0; }
.choice small.ocond b { display: inline; font-size: inherit; color: var(--gold); }
.choice small.ocond.nm { background: rgba(120,10,20,.5); }
.choice small.ocond.nm b { color: #ff9a9a; }
.lkrow.hid b { letter-spacing: .18em; }
.choice small.vart { color: var(--gold); }
/* an event: your own d20, then everybody's */
.myroll { display: flex; align-items: center; gap: .8rem; padding: .2rem 0 .6rem; }
.myroll .d20v { font-size: 3.6rem; flex: none; }
.myroll b { display: block; font-size: 1.05rem; }
.myroll small { display: block; color: var(--dim); font-size: .82rem; }
.myroll.ok b { color: var(--green); }
.myroll.no b { color: #ff9a9a; }
.orolls { display: flex; flex-wrap: wrap; gap: .3rem; margin: .2rem 0 .3rem; }
.orl { font-size: .74rem; padding: .12rem .5rem; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line); }
.orl.ok { border-color: var(--green); }
.orl.no { opacity: .7; }
.orl.me { box-shadow: 0 0 0 2px var(--gold); }
/* the four stats: the class's own is ringed */
.statrow.four { margin-top: -.35rem; }
.statrow .st4 { display: inline-flex; align-items: center; gap: .35rem; }
.statrow .st4.main { box-shadow: 0 0 0 2px var(--gold) inset; }
.statrow .st4 .stt { font-size: .64rem; }
.res .bigspr { text-align: center; }


/* ---- v0.7.0: the first minute: how hard a class is, a one-tap start, the long read behind a button ---- */
.ease { display: inline-block; font-style: normal; font-size: .55rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .08rem .4rem; border-radius: 1rem; margin-top: .2rem; color: #14101c; background: #9aa0ae; }
.ease.e1 { background: #5fdc8a; } .ease.e2 { background: #ffc94d; } .ease.e3 { background: #ff7b6b; }
.easeline .ease { font-size: .68rem; margin: 0 .3rem 0 0; }
button.quick { display: block; margin: .5rem 0; padding: .8rem .6rem; font-size: 1.1rem; }
button.quick small { display: block; font-size: .7rem; font-weight: 400; opacity: .85; margin-top: .15rem; }
.clsinfo .ghost.wide { margin: .6rem 0 .2rem; }

/* an epic or legendary find: rare on purpose, so the device makes something of it too */
.wonder { text-align: center; font-family: var(--display); font-size: 1.2rem; letter-spacing: .1em; margin: .2rem 0 .6rem; animation: wonderpulse 1.2s ease-in-out infinite; }
.wonder.r-epic { color: var(--epic); text-shadow: 0 0 .8rem var(--epic); }
.wonder.r-legendary { color: var(--legendary); text-shadow: 0 0 1rem var(--legendary); }
.wonder + .item { animation: wonderglow 1.6s ease-in-out infinite; }
@keyframes wonderpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes wonderglow { 0%, 100% { box-shadow: 0 0 .4rem 0 currentColor; } 50% { box-shadow: 0 0 1.6rem .2rem currentColor; } }
html.nofx .wonder, html.nofx .wonder + .item { animation: none; }

/* v0.9.3: the job screen, the ending screen, and the goal under your name */
.goalbar { flex: none; padding: .3rem .9rem; font-size: .8rem; line-height: 1.3; background: #1a1426; border-bottom: 1px solid var(--line); color: var(--dim); }
.goalbar b { color: #ffc45c; font-weight: 600; }
.jobd { display: flex; flex-direction: column; gap: .6rem; padding: .2rem .1rem 1rem; }
.jobd .jhead { display: flex; gap: .8rem; align-items: center; }
.jobd .jhead .jface { font-size: 2rem; }
.jobd .jhead b { display: block; font-size: 1.1rem; line-height: 1.2; }
.jobd .jhead small { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #ffc45c; margin-top: .15rem; }
.jobd .jask { font-size: 1.05rem; }
.jobd .jrows { font-size: .95rem; }
.jobd .jrows > div { grid-template-columns: 6.4em 1fr; }
.jobd .jstamp { font-size: 1.5rem; margin: .2rem 0 .4rem; }

/* ============ v0.10.0 "Nobody waits" ============ */
/* (115) text size: a setting on the device menu. Everything on the page is sized in rem, so the whole screen follows. */
html.t1 { font-size: 18px; } html.t2 { font-size: 20px; }
@media (min-width: 700px) and (min-height: 700px) { html.t1 { font-size: 22.5px; } html.t2 { font-size: 25px; } }
@media (min-width: 1000px) and (min-height: 950px) { html.t1 { font-size: 27px; } html.t2 { font-size: 30px; } }

/* (109) a look for each class's device: its two colours frame your bar, your hand and the prompt. */
.screen.room { --k1: #ffc94d; --k2: #ffffff; }
.screen.room .mebar { border-bottom: 3px solid var(--k1); border-image: linear-gradient(90deg, var(--k1), var(--k2), var(--k1)) 1; box-shadow: inset 0 -.9rem 1.1rem -1rem var(--k1); }
.screen.room .mebar .mi > b { color: var(--k2); text-shadow: 0 0 .7rem var(--k1); }
.screen.room h2.prompt { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--k1) 22%, transparent), transparent); border-radius: .6rem; padding: .15rem 0; }
.screen.room .choices.hand .choice.ab { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k1) 35%, transparent); }
.screen.room .order .oc.me { box-shadow: 0 0 0 2px var(--k1), 0 0 .6rem var(--k1); }

/* (89) the private card: on top of whatever screen this is, on this device only */
.pcard { flex: none; background: #1d1630; border: 2px solid #b98bff; border-radius: 1rem; padding: .65rem .8rem .75rem; margin-bottom: .8rem; box-shadow: 0 0 1.4rem -.5rem #b98bff; display: flex; flex-direction: column; gap: .5rem; }
.pcard .pch { display: flex; align-items: center; gap: .55rem; }
.pcard .pch .emoji { font-size: 1.5rem; }
.pcard .pch b { flex: 1; font-size: 1.05rem; line-height: 1.2; }
.pcard .pch small { color: #cdb4ff; font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.pcard p { margin: 0; font-size: .92rem; line-height: 1.35; }
.pcard .row { display: flex; gap: .6rem; }
.pcard .row button { flex: 1 1 0; min-width: 0; }
.pcard .pcn { color: var(--dim); font-size: .74rem; line-height: 1.3; }
.pcbar { display: block; height: .32rem; border-radius: 1rem; background: rgba(255, 255, 255, .12); overflow: hidden; }
.pcbar > i { display: block; height: 100%; width: 100%; background: #b98bff; transform-origin: left; animation: pcbar linear forwards; }
@keyframes pcbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.swapcmp { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.swapcmp > div { min-width: 0; background: rgba(0, 0, 0, .25); border-radius: .7rem; padding: .4rem .45rem; }
.swapcmp > div.new { outline: 1px solid var(--gold); }
.swapcmp > div > small { display: block; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: .25rem; }
.swapcmp .item { padding: 0; background: none; border: 0; gap: .4rem; align-items: flex-start; }
.swapcmp .item .ii { font-size: 1.4rem; }
.swapcmp .item b { font-size: .9rem; }
.swapcmp .item small { font-size: .72rem; }
.holdb { position: relative; overflow: hidden; width: 100%; padding: 1rem; border-radius: .9rem; background: var(--panel2); color: var(--ink); font-weight: 800; font-size: 1.05rem;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.holdb > i { position: absolute; inset: 0; background: linear-gradient(90deg, #f783ac, #ffc94d); transform: scaleX(0); transform-origin: left; }
.holdb > span { position: relative; }
.holdb.holding > i { animation: holdfill 3s linear forwards; }
.holdb.holding { color: #2a1a00; }
@keyframes holdfill { to { transform: scaleX(1); } }

/* (89, 125) this dive's secret */
.secretb { flex: none; background: #171226; border: 1px dashed #b98bff; border-radius: .9rem; padding: .6rem .75rem; margin: .5rem 0 .7rem; }
.secretb > small { display: block; color: #cdb4ff; font-size: .7rem; line-height: 1.35; }
.secretb > small:first-child { letter-spacing: .07em; text-transform: uppercase; margin-bottom: .35rem; }
.secretb > div { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .35rem; }
.secretb > div .emoji { font-size: 1.8rem; }
.secretb b { display: block; font-size: 1.05rem; }
.secretb p { margin: .15rem 0 0; font-size: .92rem; line-height: 1.35; }
.secretb.done.ok { border-style: solid; border-color: var(--green); }
.secretb.done.no { border-style: solid; border-color: var(--line); opacity: .9; }
.goalbar { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.hushb { margin-left: auto; flex: none; background: #2b2147; border: 1px solid #b98bff; border-radius: .6rem; padding: .1rem .5rem; font-size: .95rem; }
.sizel { margin: .1rem 0 0; font-size: .92rem; line-height: 1.35; color: var(--ink); opacity: .9; }

/* (113) a ghost's panel */
.ghostp { display: flex; flex-direction: column; gap: .55rem; margin-bottom: .4rem; }
.ghostp h2 { text-align: center; margin: .2rem 0 0; }
.gbox { background: var(--bg2); border: 1px solid var(--line); border-radius: .9rem; padding: .55rem .7rem; display: flex; flex-direction: column; gap: .45rem; }
.gbox small { color: var(--dim); font-size: .8rem; line-height: 1.35; }
.gbox .row { display: flex; gap: .6rem; }
.gbox .row button { flex: 1 1 0; min-width: 0; padding: .7rem .4rem; }
.gbox b.good { color: var(--green); } .gbox b.bad { color: var(--red); }
.gheck { display: flex; flex-wrap: wrap; gap: .4rem; flex: none; }
.body > .gheck { margin: .5rem 0 0; }

/* (125) the cheer meter, while the round plays back */
.dock.cheerd { gap: .35rem; }
.cheerb { width: 100%; padding: .8rem; border-radius: .9rem; background: linear-gradient(#ffe08a, #f0a92e); color: #2a1a00; font-weight: 800; font-size: 1.1rem; }
.cheerb.done { background: var(--panel2); color: var(--dim); }
.cheerb.full { background: linear-gradient(#ff9a5c, #e23c3c); color: #fff; }
.cheerm { height: .55rem; border-radius: 1rem; background: rgba(255, 255, 255, .12); overflow: hidden; }
.cheerm > i { display: block; height: 100%; background: linear-gradient(90deg, #ffc94d, #ff7a2b); transition: width .25s; }
.cheerm.full > i { background: linear-gradient(90deg, #ff7a2b, #e23c3c); }
.cheerd small { color: var(--dim); font-size: .74rem; text-align: center; }

/* (125) the focus tap */
.focusv { display: flex; flex-direction: column; gap: .7rem; margin-top: .4rem; }
.fbar { position: relative; height: 3rem; border-radius: .8rem; background: var(--bg2); border: 2px solid var(--line); overflow: hidden; }
.fbar .gold { position: absolute; top: 0; bottom: 0; left: 39%; width: 22%; background: linear-gradient(#ffe08a, #f0a92e); opacity: .9; }
.fbar .bull { position: absolute; top: 0; bottom: 0; left: 46.5%; width: 7%; background: #e23c3c; }
.fbar .mark { position: absolute; top: -.2rem; bottom: -.2rem; left: 0; width: .5rem; margin-left: -.25rem; border-radius: .3rem; background: #fff; box-shadow: 0 0 .5rem #fff;
  animation: fsweep linear infinite alternate; }
@keyframes fsweep { from { left: 0; } to { left: 100%; } }
.ftap { padding: 1.3rem 1rem; font-size: 1.2rem; }
.focusv .link { align-self: center; }

/* (104) the class kit, above your hand */
.kit { flex: none; border: 1px solid var(--k1); border-radius: .9rem; padding: .5rem .65rem; margin-bottom: .7rem; background: color-mix(in srgb, var(--k1) 9%, var(--bg2)); display: flex; flex-direction: column; gap: .4rem; }
.kith { display: flex; align-items: center; gap: .5rem; }
.kith .emoji { font-size: 1.25rem; }
.kith b { font-size: .98rem; }
.kith small { flex: 1; color: var(--dim); font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; }
.kit .note { margin: 0; }
.kopts { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.kopts small, .kit small.kon { color: var(--dim); font-size: .78rem; line-height: 1.3; }
.kopts small.good { color: var(--green); } .kopts small.bad { color: var(--red); }
.kit button.mini { white-space: normal; text-align: left; }
.kit button.mini.on { background: var(--k1); color: #1a1205; }
.kit button.mini:disabled { opacity: .45; }
.pips { display: inline-flex; gap: .25rem; margin-right: .2rem; }
.pips i { width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid var(--k1); }
.pips i.on { background: var(--k1); }
.rhy { display: flex; align-items: center; gap: .8rem; }
.rhy .pulse { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--k1); animation: rhypulse linear infinite; }
@keyframes rhypulse { 0% { transform: scale(1.25); opacity: 1; } 35% { transform: scale(.55); opacity: .45; } 80% { transform: scale(.7); opacity: .6; } 100% { transform: scale(1.25); opacity: 1; } }
.rhy button { flex: 1; padding: .8rem; }
.rhy button small { display: block; font-size: .7rem; font-weight: 500; }
.triage { display: grid; gap: .3rem; }
.triage > div { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: .5rem; align-items: center; font-size: .82rem; }
.triage > div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.triage > div small { color: var(--dim); font-size: .72rem; white-space: nowrap; }
.triage > div.low span { color: #ffb86b; font-weight: 700; }
.triage > div.down span, .triage > div.down small { color: var(--red); font-weight: 700; }
.outbar.tog { background: #2b2410; border-color: var(--gold); color: #ffeab0; }
.choice.ab.tog { border-color: var(--gold); box-shadow: 0 0 1.2rem -.4rem var(--gold); }

/* (102) the hero's log */
.hlog { display: grid; gap: .25rem; margin: .3rem 0 .5rem; }
.hlog > div { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: .5rem; align-items: center; padding: .3rem .55rem; background: var(--bg2); border-radius: .55rem; font-size: .86rem; }
.hlog b { font-variant-numeric: tabular-nums; }
.hlog b small { color: var(--dim); font-weight: 500; }
/* v0.10.1 "On air": waiting for a streamer to let you in, and the name the big screen shows instead of yours */
.waitcard h2 { justify-content: center; }
.waithero { display: flex; flex-direction: column; align-items: center; gap: .3rem; margin: .4rem 0 .2rem; }
.waithero .spr { transform: scale(1.4); margin: .6rem 0; }
.waitcard p { text-align: center; }
.waitcard p.dim { opacity: .6; font-size: .8rem; }
.waitcard button.ghost { width: 100%; }
.mebar small.shownas { display: block; color: var(--gold); font-size: .7rem; }

/* v0.11.0: the die picker on the hero's sheet (dieBox in play.js) */
.dpick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.dopt { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .6rem .3rem .5rem; border-radius: 12px;
  background: var(--panel); border: 2px solid var(--line); color: var(--ink); }
.dopt .d20v { font-size: 2.6rem; }
.dopt small { font-size: .72rem; line-height: 1.2; text-align: center; color: var(--dim); }
.dopt.on { border-color: var(--gold); background: var(--panel2); }
.dopt.on small { color: var(--ink); }
.dmine { display: grid; gap: .35rem; margin-top: .7rem; }
.dmine > small { color: var(--dim); font-size: .75rem; }
.dsw { display: flex; flex-wrap: wrap; gap: .55rem; }
.dsw .dsc { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2px solid var(--line); padding: 0; }
.dsw .dsc.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold); }
.dfin { padding: .35rem .8rem; border-radius: 99px; background: var(--panel); border: 2px solid var(--line); color: var(--ink); font-size: .85rem; }
.dfin.on { border-color: var(--gold); background: var(--panel2); }

/* v0.11.0 (215): the class frame and badge on the device (shared parts in common.css). The frame rings the whole room
   screen at two screen pixels to a picture pixel, under the modals (50); the badge is pinned to the hero's picture. */
.screen.room.framed { position: relative; padding: var(--frw); }
.screen.room.framed::after { z-index: 45; }
.screen.room.framed .mebar { padding-left: .45rem; padding-right: .45rem; gap: .6rem; }     /* the frame is the margin now: the name keeps its old width */
.screen.room.framed .mebar .spr { margin-left: 0; }
.mebar .mepic { position: relative; flex: none; margin-right: .55rem; }
.mebar .cbadge { position: absolute; right: -.9rem; bottom: -.5rem; font-size: .95rem; }

/* v0.11.0 (215): the hero's two class moves, on top of the emotes. Class colours; a bar drains across a move that is
   waiting (from where it was, --f, so a redraw does not restart it). */
.flavrow { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .8rem; }
.flavb { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .75rem .5rem;
  border-radius: 1rem; background: color-mix(in srgb, var(--k1) 22%, var(--panel2)); border: 2px solid var(--k1); color: var(--ink); }
.flavb .emoji { font-size: 1.9rem; line-height: 1; }
.flavb img.emoi { width: 2.4rem; height: 2.4rem; }
.flavb small { font-size: .95rem; font-weight: 800; }
.flavb:active { transform: scale(.95); }
.flavb.wait { opacity: .55; filter: grayscale(.6); }
.flavb .cd { position: absolute; left: 0; right: 0; bottom: 0; height: .3rem; background: var(--k1); transform-origin: left; animation: flavcd linear forwards; }
@keyframes flavcd { from { transform: scaleX(var(--f, 1)); } to { transform: scaleX(0); } }
html.nofx .flavb .cd { animation: none; transform: scaleX(var(--f, 1)); }
