/* Tumbleweed Showdown: sun-baked cartoon frontier. Chunky ink outlines, parchment, wood and felt. */
:root {
  --ink: #3a2418;
  --ink-soft: #5a3a28;
  --sand: #f3d9a4;
  --parch: #f6e7c1;
  --parch-2: #efd9a8;
  --terra: #c8553d;
  --rust: #9c3d24;
  --cactus: #5b8c5a;
  --cactus-d: #3f6b3f;
  --sky: #7fc4c9;
  --gold: #f0a830;
  --gold-d: #c98314;
  --saddle: #7a4a2a;
  --wood: #8a5a36;
  --wood-d: #5e3a22;
  --rose: #d98a7a;
  --night: #2e3350;
  --felt: #3d6b4f;
  --blue-card: #3f7f8f;
  --green-card: #4f8a4a;
  --orange-card: #d9772b;
  --brown-card: #8a5634;
  --shadow: 0 4px 0 rgba(58, 36, 24, .35);
  --shadow-lg: 0 8px 0 rgba(58, 36, 24, .3), 0 18px 30px rgba(30, 15, 5, .35);
  --r: 14px;
  --display: 'Rye', 'Georgia', serif;
  --body: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --card-w: 92px;
  --card-h: 128px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; touch-action: manipulation; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; background: #d9a860; color: var(--ink); font-family: var(--body); font-size: 16px; -webkit-font-smoothing: antialiased; }
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
svg { display: block; }
.hidden { display: none !important; }
::selection { background: var(--gold); color: var(--ink); }

/* ------------------------------------------------------------ backgrounds */
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.scene svg { width: 100%; height: 100%; }
.scene.town svg, .scene.night svg { object-fit: cover; }
.screen { position: fixed; inset: 0; z-index: 2; display: flex; flex-direction: column; }

/* ------------------------------------------------------------ generic UI bits */
.btn {
  --bg: var(--terra); --fg: #fff6e4;
  position: relative; border: 3px solid var(--ink); background: var(--bg); color: var(--fg);
  border-radius: 12px; padding: 10px 18px 11px; font-weight: 600; letter-spacing: .02em; cursor: pointer;
  box-shadow: 0 4px 0 var(--ink); transition: transform .08s, box-shadow .08s, filter .15s; user-select: none; line-height: 1.1;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { filter: grayscale(.7) opacity(.6); cursor: not-allowed; transform: none; }
.btn.gold { --bg: var(--gold); --fg: var(--ink); }
.btn.green { --bg: var(--cactus); }
.btn.wood { --bg: var(--wood); }
.btn.ghost { --bg: var(--parch); --fg: var(--ink); }
.btn.small { padding: 6px 11px 7px; border-radius: 9px; font-size: 14px; box-shadow: 0 3px 0 var(--ink); }
.btn.big { font-family: var(--display); font-size: 22px; padding: 14px 26px 15px; letter-spacing: .03em; }
.btn .ico { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.btn.icon { padding: 7px; width: 42px; height: 42px; display: grid; place-items: center; }
.btn.icon .ico { margin: 0; width: 22px; height: 22px; }
.panel {
  background: var(--parch); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-lg);
  background-image: radial-gradient(circle at 20% 10%, rgba(255,255,255,.35), transparent 40%), radial-gradient(circle at 90% 90%, rgba(150,90,40,.12), transparent 50%);
}
.wood {
  background-color: var(--wood);
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 2px, transparent 2px 38px), repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 7px);
}
.title-font { font-family: var(--display); letter-spacing: .02em; }
input.field, select.field {
  border: 3px solid var(--ink); border-radius: 10px; padding: 9px 12px; background: #fffaf0; box-shadow: inset 0 3px 0 rgba(58,36,24,.12); outline: none; min-width: 0;
}
input.field:focus, select.field:focus { border-color: var(--rust); box-shadow: inset 0 3px 0 rgba(58,36,24,.12), 0 0 0 3px rgba(240,168,48,.5); }
label.lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--ink-soft); display: block; margin-bottom: 4px; }
.row { display: flex; gap: 10px; align-items: center; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; }
.muted { color: var(--ink-soft); opacity: .8; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 99px; background: var(--sand); white-space: nowrap; }
.tag.bot { background: var(--sky); }
.tag.off { background: #ccc; }
.tag.host { background: var(--gold); }
.chip-ico { width: 14px; height: 14px; display: inline-block; }

/* switch */
.switch { position: relative; width: 50px; height: 28px; flex: none; cursor: pointer; }
.switch input { opacity: 0; position: absolute; inset: 0; cursor: pointer; margin: 0; }
.switch i { position: absolute; inset: 0; border: 3px solid var(--ink); border-radius: 99px; background: #d7c29a; transition: background .2s; pointer-events: none; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); transition: transform .2s cubic-bezier(.5,1.8,.5,1); }
.switch input:checked + i { background: var(--cactus); }
.switch input:checked + i::after { transform: translateX(22px); }
.switch input:disabled + i { opacity: .6; }

/* segmented */
.seg { display: inline-flex; border: 3px solid var(--ink); border-radius: 11px; overflow: hidden; box-shadow: 0 3px 0 var(--ink); }
.seg button { border: 0; background: var(--parch); padding: 7px 10px; cursor: pointer; font-weight: 600; border-right: 2px solid var(--ink); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--gold); }
.seg button:disabled { cursor: default; }

/* tooltip */
.tip {
  position: fixed; z-index: 1000; pointer-events: none; max-width: 320px; padding: 12px 14px; font-size: 14px; line-height: 1.35;
  background: var(--parch); border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(6px) scale(.97); transition: opacity .12s, transform .12s;
}
.tip.on { opacity: 1; transform: none; }
.tip.cardtip { padding: 0; background: none; border: 0; box-shadow: none; max-width: none; transform: scale(.9); transform-origin: 50% 100%; transition: opacity .12s, transform .16s cubic-bezier(.3,1.5,.5,1); }
.tip.cardtip.on { transform: none; }
.tip.cardtip .card.lg { box-shadow: 0 8px 0 rgba(58,36,24,.45), 0 22px 40px rgba(20,10,0,.5); }
.tip.cardtip .note { margin-top: 8px !important; font-style: normal; font-weight: 700; opacity: 1; color: #fff4dc; text-shadow: 0 2px 0 var(--ink); }
.tip h4 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 18px; }
.tip ul { margin: 6px 0 0; padding-left: 18px; }
.tip li { margin: 2px 0; }
.tip .note { margin-top: 6px; font-size: 12px; font-style: italic; opacity: .8; }

/* toasts */
#toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 900; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--parch); padding: 10px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); animation: toastIn .3s cubic-bezier(.3,1.6,.5,1); }
.toast.err { background: var(--rust); }
@keyframes toastIn { from { transform: translateY(-20px) scale(.9); opacity: 0; } }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 500; background: rgba(40, 22, 10, .55); display: grid; place-items: center; padding: 16px; animation: fadeIn .2s; }
.modal { width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px 24px 24px; animation: popIn .28s cubic-bezier(.3,1.5,.5,1); }
.modal h2 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 0 0 14px; }
.modal .close { position: absolute; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { transform: scale(.85) translateY(20px); opacity: 0; } }

/* ------------------------------------------------------------ title / browser */
#title { align-items: center; overflow-y: auto; }
.logo { margin-top: max(18px, 3vh); text-align: center; position: relative; user-select: none; }
.logo h1 {
  font-family: var(--display); font-weight: 400; margin: 0; line-height: .9; color: var(--gold);
  font-size: clamp(40px, 7.4vw, 96px); letter-spacing: .02em;
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink), 0 10px 18px rgba(40,20,5,.35);
}
.logo h1 span { display: block; color: #fff3d6; font-size: .62em; }
.logo .sub { margin-top: 12px; display: inline-block; background: var(--ink); color: var(--parch); padding: 6px 16px; border-radius: 99px; font-weight: 600; letter-spacing: .08em; font-size: 14px; text-transform: uppercase; }
.title-body { width: min(1060px, calc(100% - 32px)); display: grid; grid-template-columns: 340px 1fr; gap: 20px; margin: 26px 0 30px; align-items: start; }
.title-card { padding: 18px; }
.title-card h3, .browser h3 { font-family: var(--display); font-weight: 400; margin: 0 0 12px; font-size: 24px; }
.title-card .actions { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.title-card .actions .btn { width: 100%; }
.browser { padding: 18px; min-height: 340px; display: flex; flex-direction: column; }
.browser .list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; overflow-y: auto; max-height: 52vh; padding: 4px 4px 8px; }
.room-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 12px; background: #fff7e2; box-shadow: 0 3px 0 var(--ink); transition: transform .12s; }
.room-row:hover { transform: translateY(-2px) rotate(-.3deg); }
.room-row .nm { font-weight: 700; font-size: 18px; }
.room-row .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.room-row .btns { display: flex; gap: 8px; }
.empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--ink-soft); padding: 20px; }
.empty .tumbles { width: 90px; height: 90px; margin: 0 auto 10px; animation: roll 2.4s linear infinite; }
@keyframes roll { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.tumble-run { position: fixed; bottom: 7vh; left: -120px; width: 80px; height: 80px; z-index: 1; pointer-events: none; animation: tumbleRun 14s linear infinite; }
.tumble-run > div { width: 100%; height: 100%; animation: roll 1.1s linear infinite, hop 0.55s ease-in-out infinite alternate; }
@keyframes tumbleRun { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 240px)); } }
@keyframes hop { from { translate: 0 0; } to { translate: 0 -26px; } }
.topbar { position: fixed; top: 12px; right: 12px; z-index: 50; display: flex; gap: 8px; }
.footer-note { font-size: 12px; opacity: .75; margin-bottom: 16px; text-align: center; color: #fff5dc; text-shadow: 0 1px 0 var(--ink); }

/* expansion toggles */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.exp {
  display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 3px solid var(--ink); border-radius: 12px; background: #fff7e2; cursor: pointer;
  box-shadow: 0 3px 0 var(--ink); transition: transform .1s, background .15s;
}
.exp:hover { transform: translateY(-2px); }
.exp.on { background: #e9f3d6; }
.exp.base { cursor: default; background: var(--sand); }
.exp .nm { font-weight: 700; line-height: 1.1; }
.exp .bl { font-size: 12px; opacity: .8; line-height: 1.2; margin-top: 2px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 14px 0; }

/* ------------------------------------------------------------ room lobby */
#room { padding: 16px; gap: 14px; overflow-y: auto; }
.room-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; }
.room-head h2 { font-family: var(--display); font-weight: 400; margin: 0; font-size: 28px; }
.code-badge { font-family: var(--display); font-size: 22px; background: var(--ink); color: var(--gold); padding: 4px 14px; border-radius: 10px; letter-spacing: .15em; cursor: pointer; }
.room-body { display: grid; grid-template-columns: 1fr 360px; gap: 14px; flex: 1; min-height: 0; }
.seats { padding: 16px; }
.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.lseat { position: relative; padding: 12px 10px 10px; border: 3px solid var(--ink); border-radius: 14px; background: #fff7e2; text-align: center; box-shadow: 0 4px 0 var(--ink); animation: popIn .3s cubic-bezier(.3,1.5,.5,1); }
.lseat.emptyseat { background: transparent; border-style: dashed; box-shadow: none; opacity: .7; display: grid; place-items: center; min-height: 170px; animation: none; }
.lseat .face { width: 92px; height: 92px; margin: 0 auto 6px; border-radius: 50%; border: 3px solid var(--ink); background: var(--sky); overflow: hidden; }
.lseat .face svg { width: 100%; height: 100%; }
.lseat .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lseat .x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; padding: 4px; display: grid; place-items: center; }
.lseat .x .ico { width: 16px; height: 16px; margin: 0; }
.lseat select { margin-top: 6px; width: 100%; }
.side { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.chatbox { flex: 1; display: flex; flex-direction: column; min-height: 240px; padding: 12px; }
.chatlines { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 4px; font-size: 14px; }
.chatlines .sys { font-style: italic; opacity: .7; }
.chatlines b { color: var(--rust); }
.chatlines .spec b { color: var(--blue-card); }
.chatform { display: flex; gap: 8px; margin-top: 8px; }
.chatform input { flex: 1; }

/* ------------------------------------------------------------ game table */
#game { overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#game .scene { position: absolute; }
.felt { position: absolute; z-index: 1; pointer-events: none; transition: opacity .9s, left .5s cubic-bezier(.5,0,.3,1), width .5s cubic-bezier(.5,0,.3,1); }
.felt svg { width: 100%; height: 100%; overflow: visible; }
.felt.gone { opacity: 0; }
.seat {
  position: absolute; width: 190px; transform: translate(-50%, 0); z-index: 5; text-align: center; transition: left .6s cubic-bezier(.5,0,.3,1), top .6s cubic-bezier(.5,0,.3,1), filter .3s;
}
.seat .plate { position: relative; background: var(--parch); border: 3px solid var(--ink); border-radius: 16px; padding: 8px 8px 6px; box-shadow: var(--shadow); }
.seat.turn .plate { background: #fff1c2; box-shadow: 0 0 0 4px var(--gold), 0 0 26px 6px rgba(240,168,48,.7), var(--shadow); animation: turnGlow 1.6s ease-in-out infinite; }
@keyframes turnGlow { 50% { box-shadow: 0 0 0 4px var(--gold), 0 0 38px 10px rgba(240,168,48,.45), var(--shadow); } }
.seat .top { display: flex; gap: 8px; align-items: center; }
.seat .face { position: relative; width: 64px; height: 64px; flex: none; border-radius: 50%; border: 3px solid var(--ink); background: var(--sky); overflow: hidden; }
.seat .face svg { width: 100%; height: 100%; }
.seat .who { flex: 1; min-width: 0; text-align: left; }
.seat .nm { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
.seat .ch { font-size: 12px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; }
.lives { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 3px; }
.lives .b { width: 13px; height: 13px; }
.lives .b svg { width: 100%; height: 100%; }
.lives .b.lost { opacity: .28; filter: grayscale(1); }
.lives .b.justlost { animation: bulletLost .8s cubic-bezier(.3,.7,.4,1) both; }
.lives .b.justgained { animation: bulletGained .6s cubic-bezier(.3,1.8,.5,1) both; }
@keyframes bulletLost { 0% { opacity: 1; filter: none; transform: none; } 25% { transform: translateY(-9px) rotate(-40deg) scale(1.5); opacity: 1; filter: none; } 100% { opacity: .28; filter: grayscale(1); transform: none; } }
@keyframes bulletGained { from { transform: scale(0) rotate(-90deg); } 60% { transform: scale(1.6); } }
.role-badge { position: absolute; top: -12px; left: -12px; width: 38px; height: 38px; z-index: 3; cursor: help; filter: drop-shadow(0 2px 0 rgba(58,36,24,.5)); }
.role-badge svg { width: 100%; height: 100%; }
.seat .row2 { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; gap: 6px; font-size: 12px; font-weight: 600; }
.handmini { display: flex; align-items: center; height: 26px; }
.handmini .mb { width: 17px; height: 24px; margin-left: -9px; border: 2px solid var(--ink); border-radius: 3px; overflow: hidden; background: var(--rust); box-shadow: 1px 1px 0 rgba(0,0,0,.2); }
.handmini .mb:first-child { margin-left: 0; }
.handmini .mb svg { width: 100%; height: 100%; }
.handmini .n { margin-left: 5px; }
.distance { display: inline-flex; gap: 3px; align-items: center; padding: 1px 7px; border-radius: 99px; background: var(--sand); border: 2px solid var(--ink); }
.distance.inrange { background: #ffd2b8; }
.distance .ico { width: 13px; height: 13px; }
.gold-chip { display: inline-flex; gap: 3px; align-items: center; }
.gold-chip .ico { width: 15px; height: 15px; }
.gold-chip.nug b { font-weight: 700; min-width: 8px; }
.gold-chip.bump { animation: chipBump .5s cubic-bezier(.3,1.8,.5,1); }
.gold-chip.bump .ico { animation: nugSpin .5s ease-out; }
@keyframes chipBump { 40% { transform: scale(1.45); color: var(--gold-d); } }
@keyframes nugSpin { from { transform: rotate(-200deg) scale(1.4); } }
.nugget-fly { width: 30px; height: 30px; filter: drop-shadow(0 2px 0 rgba(58,36,24,.5)) drop-shadow(0 0 8px rgba(255,210,90,.9)); }
.nugget-fly svg { width: 100%; height: 100%; }
.seat .tcards { display: flex; justify-content: center; gap: 3px; margin-top: 6px; min-height: 0; flex-wrap: wrap; }
.seat .tcards .card.sm { --card-w: 34px; --card-h: 46px; }
.seat .tcards .card.sm .ttl, .seat .tcards .card.sm .band, .seat .tcards .card.sm .kind { display: none; }
.seat .tcards .card.sm .art { margin: 3px 2px 0; }
.seat .tcards .card.sm .foot { padding: 0 2px 2px; }
.compact .seat { width: 158px; }
.compact .seat .plate { padding: 6px 6px 5px; }
.compact .seat .face { width: 48px; height: 48px; }
.compact .seat .nm { font-size: 13.5px; }
.compact .seat .ch { font-size: 11px; }
.compact .seat .lives .b { width: 11px; height: 11px; }
.compact .seat .row2 { margin-top: 3px; }
.compact .seat .tcards { margin-top: 4px; }
.compact .seat .tcards .card.sm { --card-w: 28px; --card-h: 38px; }
.seat.dead { filter: grayscale(.85) brightness(.9); }
.seat.dead .plate { background: #d9ccb0; }
.seat.ghost { filter: saturate(.3) brightness(1.15) drop-shadow(0 0 10px rgba(180,220,255,.9)); opacity: .85; }
.tomb { position: absolute; left: 50%; bottom: 100%; width: 70px; height: 82px; transform: translate(-50%, 18px); z-index: 4; animation: tombDrop .7s cubic-bezier(.5,0,.6,1.6) both; }
.tomb svg { width: 100%; height: 100%; }
@keyframes tombDrop { from { transform: translate(-50%, -140px) rotate(-12deg); opacity: 0; } 70% { opacity: 1; } }
.bars { position: absolute; inset: 0; border-radius: 50%; background: repeating-linear-gradient(90deg, transparent 0 9px, #2b2b30 9px 13px); opacity: .85; z-index: 2; animation: barsDown .35s cubic-bezier(.5,0,.8,1.4); }
@keyframes barsDown { from { transform: translateY(-100%); } }
.seat.targetable { cursor: crosshair; z-index: 20; }
.seat.targetable .plate { box-shadow: 0 0 0 4px var(--terra), 0 0 24px 6px rgba(200,85,61,.6), var(--shadow); animation: targetPulse .9s ease-in-out infinite; }
.seat.targetable:hover .plate { transform: scale(1.06); background: #ffe3d6; }
@keyframes targetPulse { 50% { box-shadow: 0 0 0 6px var(--terra), 0 0 34px 10px rgba(200,85,61,.45), var(--shadow); } }
.seat.dim { filter: brightness(.7) saturate(.6); }
.crosshair { position: absolute; inset: -8px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.seat.targetable:hover .crosshair { opacity: 1; }
.thinking { position: absolute; top: -14px; right: -6px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 1px 8px; font-size: 18px; line-height: 16px; letter-spacing: 2px; z-index: 4; animation: bob .9s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.seat .offline { position: absolute; bottom: -10px; right: -6px; }

/* cards */
.card {
  --edge: var(--brown-card);
  position: relative; width: var(--card-w); height: var(--card-h); flex: none; border-radius: 10px; border: 3px solid var(--ink);
  background: var(--parch); box-shadow: 0 3px 0 rgba(58,36,24,.45); user-select: none; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .16s cubic-bezier(.3,1.4,.5,1), box-shadow .16s, filter .2s;
}
.card::before { content: ''; position: absolute; inset: 3px; border: 2px solid var(--edge); border-radius: 6px; pointer-events: none; opacity: .9; }
.card.blue { --edge: var(--blue-card); }
.card.green { --edge: var(--green-card); }
.card.orange { --edge: var(--orange-card); }
.card.black { --edge: #2b2b30; }
.card .ttl { position: relative; z-index: 1; margin: 7px 6px 0; min-height: 28px; display: grid; place-items: center; text-align: center; font-family: var(--display); font-size: 12.5px; line-height: 1; color: var(--ink); }
.card .ttl.long { font-size: 10.5px; }
.card .band { position: absolute; top: 0; left: 0; right: 0; height: 36px; background: var(--edge); opacity: .18; }
.card .art { flex: 1; margin: 0 5px; display: grid; place-items: center; min-height: 0; }
.card .art svg { width: 100%; height: 100%; }
.card .foot { display: flex; justify-content: space-between; align-items: center; padding: 0 7px 6px; font-weight: 700; font-size: 13px; }
.card .suit { display: inline-flex; align-items: center; gap: 1px; }
.card .suit .s { width: 13px; height: 13px; }
.card .suit.red { color: var(--terra); }
.card .kind { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.card .charges { position: absolute; top: 34px; right: 5px; display: flex; flex-direction: column; gap: 2px; z-index: 2; }
.card .charges i { width: 10px; height: 10px; border-radius: 50%; background: var(--orange-card); border: 2px solid var(--ink); }
.card .fresh { position: absolute; top: 34px; left: 5px; z-index: 2; font-size: 9px; font-weight: 700; background: var(--green-card); color: #fff; padding: 1px 4px; border-radius: 5px; border: 2px solid var(--ink); }
.card.back { background: var(--rust); }
.card.back::before { display: none; }
.card.back svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card.sm { --card-w: 46px; --card-h: 64px; border-width: 2px; border-radius: 6px; }
.card.sm::before { inset: 2px; border-width: 1.5px; border-radius: 4px; }
.card.sm .ttl { font-size: 7px; margin: 4px 3px 0; min-height: 14px; }
.card.sm .band { height: 18px; }
.card.sm .foot { font-size: 8px; padding: 0 3px 3px; }
.card.sm .suit .s { width: 8px; height: 8px; }
.card.sm .kind, .card.sm .fresh { display: none; }
.card.sm .charges { top: 17px; right: 2px; }
.card.sm .charges i { width: 6px; height: 6px; border-width: 1px; }
.card.lg { --card-w: 200px; --card-h: 280px; border-width: 4px; border-radius: 16px; height: auto; min-height: var(--card-h); }
.card.lg::before { inset: 5px; border-width: 3px; border-radius: 10px; }
.card.lg .ttl { font-size: 24px; margin: 14px 12px 0; min-height: 50px; }
.card.lg .band { height: 66px; }
.card.lg .art { flex: 0 0 116px; margin: 0 12px; }
.card.lg .text { margin: 6px 14px; font-size: 13.5px; line-height: 1.3; text-align: center; flex: 1; display: grid; place-items: center; }
.card.lg .foot { font-size: 18px; padding: 0 14px 10px; }
.card.lg .suit .s { width: 18px; height: 18px; }
.card.lg .kind { font-size: 11px; }
.card .text { display: none; }
.card.lg .text { display: grid; }
.card.playable { cursor: pointer; box-shadow: 0 0 0 3px var(--gold), 0 0 18px 4px rgba(240,168,48,.75), 0 3px 0 rgba(58,36,24,.45); }
.card.selected { transform: translateY(-26px) !important; box-shadow: 0 0 0 4px var(--terra), 0 0 22px 6px rgba(200,85,61,.7); }
.card.unplayable { filter: brightness(.82) saturate(.7); }
.card.char { --edge: var(--saddle); }
.card.char .art { margin: 0 8px; }
.card.char .life { display: flex; justify-content: center; gap: 1px; padding-bottom: 6px; }
.card.char .life svg { width: 12px; height: 12px; }
.card.event { --edge: var(--night); }
.card.eq { --edge: var(--gold-d); }

/* center of the table */
.center { position: absolute; left: var(--play-cx, 50%); top: var(--play-cy, 45%); transform: translate(-50%, -50%); transition: left .5s cubic-bezier(.5,0,.3,1); display: flex; gap: 18px; align-items: center; z-index: 3; }
.pile { position: relative; }
.center .count { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--parch); font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 99px; white-space: nowrap; z-index: 2; }
.pile.deck .card:nth-of-type(1) { position: absolute; top: -4px; left: -4px; }
.pile.deck .card:nth-of-type(2) { position: absolute; top: -2px; left: -2px; }
.center .lbl { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff4dc; text-shadow: 0 2px 0 var(--ink); white-space: nowrap; }
.pile.discard .card { position: absolute; top: 0; left: 0; }
.pile.discard { width: var(--card-w); height: var(--card-h); }
.pile.discard .slot { width: var(--card-w); height: var(--card-h); border: 3px dashed rgba(255,244,220,.5); border-radius: 10px; }
.event-slot { width: var(--card-w); height: var(--card-h); position: relative; }
.shop { display: flex; gap: 6px; padding: 8px; border-radius: 14px; background: rgba(58,36,24,.35); border: 3px solid rgba(58,36,24,.5); position: relative; }
.shop .lbl { top: -22px; }
.checkzone { position: absolute; left: var(--play-cx, 50%); top: var(--play-cy, 45%); transform: translate(-50%, -50%); z-index: 60; display: flex; gap: 14px; pointer-events: none; }

/* my dashboard */
.dash { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: minmax(250px, max-content) minmax(0, 1fr) 260px; align-items: end; gap: 8px; padding: 0 12px 10px; pointer-events: none; }
.dash > * { pointer-events: auto; }
.me { position: relative; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; max-width: 340px; transition: box-shadow .3s; }
.me-top { display: flex; gap: 10px; align-items: center; }
.me .tcards.mine { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 8px; border-top: 2px dashed rgba(58,36,24,.25); }
.me .tcards.mine:empty { display: none; }
.me .tcards.mine .card { animation: popIn .3s cubic-bezier(.3,1.5,.5,1); }
.me .tcards.mine .card.playable:hover { transform: translateY(-4px); }
.me.turn { box-shadow: 0 0 0 4px var(--gold), 0 0 30px 8px rgba(240,168,48,.6), var(--shadow-lg); }
.me .face { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--ink); background: var(--sky); overflow: hidden; flex: none; position: relative; }
.me .face svg { width: 100%; height: 100%; }
.me .info { min-width: 0; }
.me .nm { font-family: var(--display); font-size: 17px; line-height: 1; }
.me .ch { font-size: 13px; opacity: .8; cursor: help; margin-top: 2px; }
.me .lives .b { width: 16px; height: 16px; }
.me .rolecard { position: absolute; top: -40px; left: 10px; width: 54px; height: 54px; cursor: help; filter: drop-shadow(0 3px 0 rgba(58,36,24,.5)); transition: transform .2s; }
.me .rolecard:hover { transform: scale(1.15) rotate(-6deg); }
.hand { position: relative; height: 184px; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 4px; }
.hand .card { margin: 0 -14px; transform-origin: 50% 120%; }
@media (hover: hover) { .hand .card:hover { transform: translateY(-34px) scale(1.12) !important; z-index: 30; } }
.hand .card.raised { transform: translateY(-30px) scale(1.08) !important; z-index: 30; box-shadow: 0 0 0 4px var(--terra), 0 0 22px 6px rgba(200,85,61,.6); }
.hand .card.playable { animation: cardReady 2.4s ease-in-out infinite; }
@keyframes cardReady { 50% { box-shadow: 0 0 0 3px var(--gold), 0 0 26px 8px rgba(240,168,48,.55), 0 3px 0 rgba(58,36,24,.45); } }
.mytable { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.mytable .tcards { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.actbar { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.actbar .timer { height: 7px; border-radius: 99px; background: rgba(58,36,24,.3); overflow: hidden; border: 2px solid var(--ink); }
.actbar .timer i { display: block; height: 100%; background: var(--cactus); transform-origin: left; }
.actbar .timer.low i { background: var(--terra); }
.btn.endturn { font-size: 18px; padding: 11px 16px 12px 20px; }
.btn kbd { display: inline-block; margin-left: 8px; font: 700 11px var(--body); padding: 1px 6px; border: 2px solid var(--ink); border-radius: 5px; background: rgba(255,255,255,.45); vertical-align: 2px; }
.btn.endturn.nudge { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 4px 0 var(--ink), 0 0 0 0 rgba(240,168,48,.8); } 50% { box-shadow: 0 4px 0 var(--ink), 0 0 0 10px rgba(240,168,48,0); transform: translateY(-2px); } }

/* prompt banner */
.prompt {
  position: absolute; left: var(--play-cx, 50%); bottom: calc(var(--dash-h, 196px) + 10px); transform: translateX(-50%); z-index: 40; min-width: 320px; max-width: min(720px, calc(100% - 32px));
  padding: 12px 16px 14px; text-align: center; animation: promptIn .3s cubic-bezier(.3,1.6,.5,1);
}
@keyframes promptIn { from { transform: translate(-50%, 20px) scale(.9); opacity: 0; } }
.prompt .t { font-weight: 700; font-size: 17px; }
.prompt .btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.prompt .timer { height: 7px; border-radius: 99px; background: rgba(58,36,24,.2); margin-top: 10px; overflow: hidden; border: 2px solid var(--ink); }
.prompt .timer i { display: block; height: 100%; background: var(--cactus); transform-origin: left; }
.prompt .timer.low i { background: var(--terra); }
.prompt.urgent { border-color: var(--rust); background-color: #ffe9dc; animation: promptIn .3s cubic-bezier(.3,1.6,.5,1), urgent 1s ease-in-out .3s infinite; }
@keyframes urgent { 50% { box-shadow: 0 0 0 5px rgba(200,85,61,.55), var(--shadow-lg); } }
.prompt.targeting { padding: 9px 14px 10px; min-width: 260px; }
.prompt.targeting .btns { margin-top: 6px; }
.waitline { position: absolute; left: var(--play-cx, 50%); bottom: calc(var(--dash-h, 196px) + 4px); transform: translateX(-50%); z-index: 9; color: #fff4dc; font-weight: 600; text-shadow: 0 2px 0 var(--ink); background: rgba(58,36,24,.55); padding: 5px 14px; border-radius: 99px; white-space: nowrap; }

/* picker modal (store, poker, characters) */
.picker { width: auto; max-width: min(980px, 100%); text-align: center; }
.picker .items { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 12px 0 6px; }
.picker .item { cursor: pointer; transition: transform .15s; position: relative; }
.picker .item:hover { transform: translateY(-6px) rotate(-1deg); }
.picker .item.sel .card { box-shadow: 0 0 0 4px var(--terra), 0 0 22px 6px rgba(200,85,61,.6); }
.picker .item.optlabel { display: grid; place-items: center; width: 150px; height: 200px; border: 3px dashed var(--ink); border-radius: 14px; font-weight: 700; padding: 10px; background: #fff7e2; }
.picker .owner { font-size: 12px; font-weight: 700; margin-top: 4px; }

/* side drawer: log + chat */
.drawer { position: absolute; top: 12px; right: 12px; bottom: 214px; width: 300px; z-index: 30; display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: transform .3s cubic-bezier(.5,0,.3,1); }
.drawer.closed { transform: translateX(calc(100% + 20px)); }
.drawer .tabs { display: flex; border-bottom: 3px solid var(--ink); }
.drawer .tabs button { flex: 1; border: 0; background: var(--sand); padding: 8px; font-weight: 700; cursor: pointer; }
.drawer .tabs button.on { background: var(--parch); }
.drawer .tabs button + button { border-left: 3px solid var(--ink); }
.drawer .body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 12px; font-size: 13.5px; display: flex; flex-direction: column; gap: 5px; }
.drawer .chatform { padding: 8px; border-top: 3px solid var(--ink); margin: 0; }
.logline { line-height: 1.3; animation: logIn .35s ease-out; }
.logline.mine { color: var(--rust); }
@keyframes logIn { from { opacity: 0; transform: translateX(14px); } }
.logline.big { font-weight: 700; }
.logline.ev { background: rgba(46,51,80,.1); border-radius: 6px; padding: 3px 6px; }
.unread { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 99px; background: var(--terra); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--ink); }
.gtop { position: absolute; top: 12px; left: 12px; z-index: 30; display: flex; gap: 8px; align-items: center; }
.gtop .roundtag { background: var(--ink); color: var(--parch); padding: 6px 12px; border-radius: 99px; font-weight: 700; font-size: 13px; }

/* Crowley the narrator */
.crowley { position: absolute; left: 12px; bottom: 214px; z-index: 25; display: flex; align-items: flex-end; gap: 0; pointer-events: none; }
.crowley .bird { width: 96px; height: 96px; flex: none; transform-origin: 50% 100%; }
.crowley .bird.talk { animation: crowTalk .35s ease-in-out 3; }
@keyframes crowTalk { 50% { transform: rotate(-4deg) scale(1.04, .97); } }
.crowley .bubble { position: relative; max-width: 260px; margin-bottom: 64px; margin-left: -6px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 8px 12px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); opacity: 0; transform: scale(.6); transform-origin: 0 100%; transition: opacity .2s, transform .25s cubic-bezier(.3,1.6,.5,1); }
.crowley .bubble.on { opacity: 1; transform: none; }
.crowley .bubble::before { content: ''; position: absolute; left: -12px; bottom: 12px; border: 8px solid transparent; border-right: 12px solid var(--ink); }

/* floating fx */
.fly { position: fixed; z-index: 400; pointer-events: none; will-change: transform; }
.pop { position: fixed; z-index: 450; pointer-events: none; font-family: var(--display); font-size: 34px; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); white-space: nowrap; transform: translate(-50%, -50%); }
.pop.red { color: var(--terra); }
.pop.gold { color: var(--gold); }
.pop.green { color: #9ad07a; }
.pop.sm { font-size: 22px; }
.flash { position: fixed; inset: 0; z-index: 420; pointer-events: none; background: #fff6d0; }
.tracer { position: fixed; z-index: 410; height: 5px; border-radius: 3px; background: linear-gradient(90deg, rgba(255,240,180,0), #fff3b0 60%, #fff); box-shadow: 0 0 10px 2px rgba(255,200,80,.8); transform-origin: 0 50%; pointer-events: none; }
.burst { position: fixed; z-index: 430; pointer-events: none; transform: translate(-50%, -50%); }
.dust { position: fixed; z-index: 405; pointer-events: none; border-radius: 50%; background: #e8c890; border: 3px solid rgba(58,36,24,.35); }
.banner-turn { position: fixed; left: var(--play-cx, 50%); top: var(--play-cy, 40%); z-index: 440; transform: translate(-50%, -50%); pointer-events: none; text-align: center; }
.banner-turn .rib { font-family: var(--display); font-size: clamp(28px, 5vw, 56px); color: #fff5dc; background: var(--terra); border: 4px solid var(--ink); padding: 8px 40px 12px; border-radius: 10px; box-shadow: 0 6px 0 var(--ink); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; white-space: nowrap; }
.banner-turn .rib.you { background: var(--gold); color: #fff; }
.banner-turn .sub { margin-top: 8px; font-weight: 700; color: #fff5dc; text-shadow: 0 2px 0 var(--ink); }
.banner-turn.slide .rib { display: flex; align-items: center; gap: 16px; padding: 8px 34px 10px 10px; font-size: clamp(24px, 3.6vw, 44px); box-shadow: 0 6px 0 var(--ink), 0 18px 40px rgba(30,15,5,.45); }
.banner-turn.slide .rib::before, .banner-turn.slide .rib::after { content: ''; position: absolute; top: 14px; bottom: -10px; width: 30px; background: var(--rust); border: 4px solid var(--ink); z-index: -1; }
.banner-turn.slide .rib { position: relative; }
.banner-turn.slide .rib::before { left: -22px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); }
.banner-turn.slide .rib::after { right: -22px; clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); }
.banner-turn.slide .rib.you::before, .banner-turn.slide .rib.you::after { background: var(--gold-d); }
.banner-turn .bface { width: 74px; height: 74px; flex: none; border-radius: 50%; border: 4px solid var(--ink); background: var(--sky); overflow: hidden; }
.banner-turn .bface svg { width: 100%; height: 100%; }
.banner-turn .txt { text-align: left; }
.banner-turn .big { line-height: 1; }
.banner-turn.slide .sub { margin-top: 4px; font-family: var(--body); font-size: 15px; -webkit-text-stroke: 0; letter-spacing: .04em; color: #fff5dc; }
.shake { animation: shake .35s; }
@keyframes shake { 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-4px, 1px); } 80% { transform: translate(3px, 2px); } }
.bigcard-zone { position: fixed; left: var(--play-cx, 50%); top: var(--play-cy, 42%); transform: translate(-50%, -50%); z-index: 445; pointer-events: none; }
.cardsheet { position: fixed; inset: 0; z-index: 470; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px 16px calc(var(--dash-h, 200px) * .4); background: rgba(40,22,10,.45); animation: fadeIn .15s; }
.cardsheet .card.lg { animation: popIn .22s cubic-bezier(.3,1.5,.5,1); box-shadow: 0 8px 0 rgba(58,36,24,.45), 0 22px 40px rgba(20,10,0,.5); }
.cardsheet .acts { display: flex; flex-direction: column; gap: 8px; width: min(300px, 100%); }
.cardsheet .acts .btn { width: 100%; font-size: 17px; padding: 12px 16px 13px; }
.tip.touch { left: 50% !important; top: 46% !important; translate: -50% -50%; }
.aim { position: fixed; inset: 0; z-index: 15; pointer-events: none; opacity: 0; transition: opacity .15s; }
.aim.on { opacity: 1; }
.aim svg { width: 100%; height: 100%; }
.aim .l { stroke: #fff4dc; stroke-width: 4; stroke-dasharray: 3 11; stroke-linecap: round; filter: drop-shadow(0 2px 0 rgba(58,36,24,.7)); animation: aimMarch .5s linear infinite; }
.aim .r { fill: none; stroke: #fff4dc; stroke-width: 3; stroke-dasharray: 8 6; transform-box: fill-box; transform-origin: center; animation: roll 3s linear infinite; }
.aim .d { fill: var(--terra); stroke: var(--ink); stroke-width: 2; }
.aim.snap .l { stroke: #ffb38f; }
.aim.snap .r { stroke: var(--terra); stroke-width: 4; }
@keyframes aimMarch { to { stroke-dashoffset: -14; } }
.hover-card { position: fixed; z-index: 800; pointer-events: none; animation: popIn .15s ease-out; }

/* game over */
.over { position: absolute; inset: 0; z-index: 600; display: grid; place-items: center; background: rgba(20,14,30,.35); animation: fadeIn .5s; overflow-y: auto; padding: 20px; }
.over .panel { width: min(900px, 100%); padding: 22px; text-align: center; animation: popIn .5s cubic-bezier(.3,1.4,.5,1); }
.over h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 5vw, 50px); margin: 0; }
.over .why { font-size: 18px; margin: 6px 0 14px; }
.podium { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 10px 0 18px; }
.pod { width: 130px; padding: 10px 8px; border: 3px solid var(--ink); border-radius: 14px; background: #fff7e2; position: relative; }
.pod.win { background: #fff0b8; box-shadow: 0 0 0 4px var(--gold); }
.pod.win::after { content: ''; position: absolute; top: -18px; left: 50%; width: 32px; height: 22px; transform: translateX(-50%); }
.pod .face { width: 80px; height: 80px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--ink); overflow: hidden; background: var(--sky); }
.pod .face svg { width: 100%; height: 100%; }
.pod .nm { font-weight: 700; margin-top: 4px; }
.pod .rl { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; }
.pod .rl svg { width: 22px; height: 22px; }
.pod .st { font-size: 11px; opacity: .8; margin-top: 3px; }
.pod.dead .face { filter: grayscale(1); }
.confetti { position: fixed; top: -20px; width: 10px; height: 16px; z-index: 610; pointer-events: none; border: 2px solid var(--ink); border-radius: 2px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  :root { --card-w: 80px; --card-h: 112px; }
  .dash { grid-template-columns: minmax(210px, max-content) minmax(0, 1fr) 210px; }
  .me { max-width: 280px; }
  .seat { width: 160px; }
  .seat .face { width: 52px; height: 52px; }
  .drawer { width: 260px; }
}
@media (max-width: 1400px) and (min-width: 1101px) { .drawer { width: 270px; } }
@media (max-width: 860px) {
  .title-body { grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
  .logo { margin-top: 62px; }
  .logo .sub { font-size: 12px; padding: 5px 12px; }
  #room { padding: 10px; }
  #room > * { flex: none; }
  .room-body { grid-template-columns: minmax(0, 1fr); flex: none; }
  .room-head { gap: 8px; padding: 10px 12px; }
  .room-head h2 { font-size: 22px; flex: 1 1 100%; }
  .seats { padding: 12px; }
  .seats > .row { flex-wrap: wrap; }
  .seats > .row .btn.big { flex: 1 1 100%; order: 3; font-size: 20px; }
  .seat-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
  .lseat .face { width: 70px; height: 70px; }
  .chatbox { min-height: 260px; }
  .picker h2 { font-size: 22px !important; padding-right: 64px; }
  .picker .card.lg { --card-w: 160px; --card-h: 230px; }
  .picker .card.lg .ttl { font-size: 19px; min-height: 40px; }
  .picker .card.lg .art { flex-basis: 84px; }
  .modal { padding: 16px; }
  .over .panel { padding: 16px 12px; }
  .pod { width: 104px; padding: 8px 6px; }
  .pod .face { width: 60px; height: 60px; }
}

/* ------------------------------------------------------------ phones (html.phone: narrow or short screen; html.land: landscape) */
.phone { --card-w: 66px; --card-h: 92px; }
.phone .card .ttl { font-size: 10px; min-height: 22px; margin-top: 5px; }
.phone .card .foot { font-size: 11px; }
.phone .card .kind { display: none; }
.phone .card.lg { --card-w: 190px; --card-h: 266px; }
.phone .card.lg .ttl { font-size: 22px; min-height: 44px; margin-top: 12px; }
.phone .card.lg .foot { font-size: 16px; }
.phone .card.lg .kind { display: inline; }
.phone .gtop { top: 8px; left: 8px; gap: 6px; }
.phone .gtop .btn.icon { width: 38px; height: 38px; }
.phone .gtop .roundtag { font-size: 12px; padding: 5px 10px; }
.phone .crowley { display: none; }
.phone .seat { width: var(--seat-w, 118px); }
.phone .seat .plate { padding: 5px; border-radius: 12px; }
.phone .seat .top { gap: 5px; }
.phone .seat .face { width: 38px; height: 38px; border-width: 2px; }
.phone .seat .nm { font-size: 12.5px; }
.phone .seat .ch { display: none; }
.phone .seat .row2 { gap: 2px; font-size: 11px; margin-top: 3px; }
.phone .seat .distance { padding: 0 4px; }
.phone .handmini .mb:nth-child(n+3) { display: none; }
.phone .lives .b { width: 9px; height: 9px; }
.phone .seat .tcards { flex-wrap: nowrap; margin-top: 4px; gap: 0; }
.phone .seat .tcards .card.sm { --card-w: 26px; --card-h: 36px; }
.phone .seat .tcards .card.sm + .card.sm { margin-left: -5px; }
.phone .seat .tcards .card.sm .ttl { display: none; }
.phone .role-badge { width: 28px; height: 28px; top: -9px; left: -9px; }
.phone .tomb { width: 44px; height: 52px; transform: translate(-50%, 12px); }
.phone .center { gap: 10px; flex-wrap: wrap; justify-content: center; row-gap: 26px; width: 300px; transition: none; }
.phone .center .lbl { font-size: 10px; top: -18px; }
.phone .shop { gap: 4px; padding: 5px; }
.phone.land .center { flex-wrap: nowrap; width: auto; }
.phone .dash { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "me act" "hand hand"; padding: 0 6px calc(6px + env(safe-area-inset-bottom)); gap: 6px; align-items: end; }
.phone .me { grid-area: me; flex-direction: row; align-items: center; padding: 6px 8px; max-width: none; min-width: 0; gap: 8px; }
.phone .me-top { gap: 8px; flex: none; }
.phone .me .face { width: 52px; height: 52px; }
.phone .me .nm { font-size: 15px; }
.phone .me .ch { font-size: 11.5px; }
.phone .me .lives .b { width: 12px; height: 12px; }
.phone .me .rolecard { width: 34px; height: 34px; top: -14px; left: -8px; }
.phone .me .tcards.mine { flex-wrap: nowrap; overflow-x: auto; padding: 0 0 0 8px; border-top: 0; border-left: 2px dashed rgba(58,36,24,.25); min-width: 0; scrollbar-width: none; }
.phone .me .tcards.mine .card.sm { --card-w: 38px; --card-h: 53px; }
.phone .mytable { grid-area: act; }
.phone .actbar { flex-direction: column; align-items: stretch; gap: 5px; max-width: 150px; }
.phone .actbar .btn.small { font-size: 12px; padding: 5px 8px 6px; }
.phone .btn.endturn { font-size: 16px; padding: 12px 12px 13px; }
.phone .btn.endturn kbd { display: none; }
.phone .hand { grid-area: hand; height: 104px; padding-bottom: 0; }
.phone .prompt { min-width: 0; width: calc(100% - 16px); padding: 10px 12px 12px; }
.phone .prompt .t { font-size: 15.5px; }
.phone .prompt .btns .btn { flex: 1 1 auto; }
.phone .waitline { font-size: 13px; white-space: normal; text-align: center; max-width: calc(100% - 24px); }
.phone .drawer { top: 54px; left: 8px; right: 8px; width: auto; bottom: calc(var(--dash-h, 200px) + 8px); }
.phone .banner-turn.slide .rib { font-size: 26px; gap: 10px; padding: 6px 22px 8px 8px; }
.phone .banner-turn .bface { width: 48px; height: 48px; }
.phone .pop { font-size: 26px; }
.phone .pop.sm { font-size: 18px; }
.phone .checkzone .card.lg { --card-w: 130px; --card-h: 182px; }
.phone .checkzone .card.lg .text { display: none; }
.phone .checkzone .card.lg .ttl { font-size: 16px; min-height: 30px; }
.phone.land .hand { height: 96px; }
.phone.land .waitline { bottom: calc(var(--dash-h, 100px) + 20px); }
.phone.land .dash { grid-template-columns: minmax(0, 260px) minmax(0, 1fr) auto; grid-template-areas: "me hand act"; }
.phone.land .me .tcards.mine .card.sm { --card-w: 30px; --card-h: 42px; }
.phone.land .me .face { width: 44px; height: 44px; }
/* ------------------------------------------------------------ Honk Party accounts
   Verified (server-checked) names: gold #ffc53d with an ink outline and a seal, everywhere names appear.
   The name gate (sq-loader / hub sso.js) is restyled as frontier signage: chunky ink buttons, a wood plank for "Playing as". */
:root { --sq-gold: #ffc53d; }
.sq-verified, #app .sq-verified, .sq-me .sq-verified {
  color: var(--sq-gold) !important; font-weight: 700; white-space: nowrap; letter-spacing: .01em;
  text-shadow: -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink), 0 2px 0 var(--ink);
}
.sq-seal { width: .95em; height: .95em; vertical-align: -.12em; margin-right: .2em; display: inline-block; overflow: visible; }
.sq-seal path { fill: var(--sq-gold); stroke: var(--ink); stroke-width: 1.3; }
.sq-seal .sq-tick { fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nm .sq-verified { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.name-gate input.field { width: 100%; }
#title .sq-gate { gap: 10px; margin-top: 8px; font-family: var(--body); }
#title .sq-or { gap: 8px; font-size: 14px; opacity: 1; color: var(--ink-soft); }
#title .sq-or > span { opacity: 1; }
#title .sq-or > span:first-child { font-family: var(--display); font-size: 16px; color: var(--ink); margin-right: 2px; }
#title .sq-or > span:nth-of-type(2) { display: none; }
#title .sq-btn {
  all: unset; box-sizing: border-box; cursor: pointer; flex: 1 1 0; min-width: 96px; text-align: center;
  padding: 6px 11px 7px; border: 3px solid var(--ink); border-radius: 9px; font-weight: 600; font-size: 14px; line-height: 1.1;
  background: var(--wood); color: #fff6e4; box-shadow: 0 3px 0 var(--ink); transition: transform .08s, box-shadow .08s, filter .15s;
}
#title .sq-btn[data-sq="register"] { background: var(--parch); color: var(--ink); }
#title .sq-btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
#title .sq-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
#title .sq-btn:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
#title .sq-me {
  gap: 4px 10px; padding: 10px 12px; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink);
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 38px), linear-gradient(180deg, var(--wood) 0%, var(--wood-d) 100%);
}
#title .sq-me small { flex-basis: 100%; opacity: 1; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); }
#title .sq-me .sq-verified { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#title .sq-me .sq-btn { flex: 0 0 auto; min-width: 0; margin-left: auto; padding: 4px 9px 5px; font-size: 12.5px; background: var(--parch); color: var(--ink); opacity: 1; }
@media (max-width: 420px) {
  #title .sq-me .sq-verified { font-size: 19px; }
  #title .sq-me .sq-btn { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
