/* The table every game is played on: ground, type, controls, chrome, the
   player pucks, card stock, toasts, banners and sheets.

   Anything only one game draws belongs in games/<id>/<id>.css. */

:root {
  /* ground */
  --ink:      #0b040d;
  --plum:     #2c1230;
  --glow:     #6c1f4e;
  --panel:    #ffffff0d;
  --panel-hi: #ffffff1a;
  /* ink on ground */
  --cream:    #f3ece2;
  --dim:      #ffffff73;
  --faint:    #ffffff40;
  /* accents */
  --gold:     #ffc02e;
  --hot:      #ff5a4a;
  --hot-lo:   #cf2418;
  --money:    #2f8f58;
  --money-hi: #35a065;
  --good:     #2ad38a;
  /* card geometry. The fan maths in app.js assumes these. */
  --cardw:    86px;
  --cardh:    124px;
  --radius:   14px;
  --tap:      44px;
  font-family: Archivo, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: hidden; }

body {
  margin: 0;
  color: var(--cream);
  min-height: 100dvh;
  display: flex; flex-direction: column;
  line-height: 1.45;
  overscroll-behavior-y: none;
  background:
    repeating-linear-gradient(38deg, #ffffff08 0 1px, transparent 1px 4px),
    radial-gradient(78% 36% at 50% 42%, var(--glow) 0%, #6c1f4e00 62%),
    radial-gradient(120% 80% at 50% 12%, var(--plum) 0%, #17091a 46%, var(--ink) 100%);
  background-attachment: fixed;
}

/* The display face carries the whole look; everything heavy is uppercase
   and slightly skewed, with a hard outline so it survives on any colour. */
.display {
  font-family: "Archivo Black", Archivo, sans-serif; font-weight: 400;
  text-transform: uppercase; letter-spacing: .02em;
}
.shout {
  font-family: "Archivo Black", Archivo, sans-serif; font-weight: 400;
  text-transform: uppercase; transform: skewX(-8deg);
  -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill;
  text-shadow: 0 3px 0 #00000099;
}

/* ── controls ─────────────────────────────────────────── */

button {
  font: inherit; font-family: "Archivo Black", Archivo, sans-serif; font-weight: 400;
  text-transform: uppercase; letter-spacing: .04em;
  border: 2px solid #ffffff2b;
  background: linear-gradient(180deg, #3e3e4a, #24242c);
  color: var(--cream);
  border-radius: 999px; padding: .55rem 1.05rem;
  min-height: var(--tap); cursor: pointer;
  box-shadow: inset 0 2px 0 #ffffff2e, 0 5px 0 #121218, 0 10px 18px #00000080;
}
button:active:not(:disabled) { transform: translateY(4px); box-shadow: inset 0 2px 0 #ffffff2e, 0 1px 0 #121218; }
button:disabled { opacity: .4; box-shadow: none; cursor: default; }
button.primary {
  background: linear-gradient(180deg, #ff8a4a, #e8531f); color: #fff; border-color: #0000004d;
  box-shadow: inset 0 2px 0 #ffffff70, 0 5px 0 #96300f, 0 10px 18px #00000080;
}
button.primary:active:not(:disabled) { box-shadow: inset 0 2px 0 #ffffff70, 0 1px 0 #96300f; }
button.danger {
  background: linear-gradient(180deg, var(--hot), var(--hot-lo)); color: #fff; border-color: #0000004d;
  box-shadow: inset 0 2px 0 #ffffff73, 0 5px 0 #8a1109, 0 10px 18px #00000080;
}
button.danger:active:not(:disabled) { box-shadow: inset 0 2px 0 #ffffff73, 0 1px 0 #8a1109; }
button.ghost {
  background: #ffffff12; color: #ffffffd9; border-color: #ffffff2b;
  box-shadow: none;
}
button.ghost:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
button.wide { width: 100%; }

input {
  font: inherit; font-weight: 700; background: #00000047; color: var(--cream);
  border: 2px solid #ffffff2b; border-radius: 13px;
  padding: .75rem .9rem; width: 100%; min-height: var(--tap);
}
input::placeholder { color: #ffffff59; font-weight: 500; }

.muted { color: var(--dim); }
.tiny  { font-size: .78rem; }
.err   { color: #ff9a8c; font-size: .82rem; min-height: 1.1rem; font-weight: 700; }

/* ── join ─────────────────────────────────────────────── */

#join {
  margin: auto; width: min(26rem, 100%);
  padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: .7rem;
}
#join h1 {
  font-family: "Archivo Black", Archivo, sans-serif; font-weight: 400;
  font-size: 2.9rem; margin: 0; line-height: .95; color: var(--gold);
  text-transform: uppercase; transform: skewX(-8deg);
  -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill;
  text-shadow: 0 4px 0 #00000099;
}
#join .tag { color: var(--dim); margin: .55rem 0 .8rem; font-size: .95rem; font-weight: 600; }

/* the game picker: one row per game this server hosts */
#picker { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .3rem; }
.gamepick {
  display: flex; align-items: center; gap: .7rem; text-align: left;
  padding: .6rem .7rem; min-height: 62px; width: 100%;
  background: var(--panel); color: var(--cream);
  border: 1px solid var(--panel-hi); box-shadow: none;
  text-transform: none; letter-spacing: normal;
}
.gamepick[aria-pressed="true"] {
  border-color: var(--gold); background: #ffc02e1a;
  box-shadow: 0 0 0 1px var(--gold), 0 0 22px #ffc02e33;
}
.gamepick .gicon {
  width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto;
  display: grid; place-items: center; color: var(--gold);
  background: #ffffff12; border: 1px solid var(--panel-hi);
}
.gamepick[aria-pressed="true"] .gicon { background: #ffc02e21; }
.gamepick .gtext { min-width: 0; }
.gamepick .gname {
  font-family: "Archivo Black", Archivo, sans-serif; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .03em;
}
.gamepick .gtag { font-size: .74rem; color: var(--dim); font-weight: 600; line-height: 1.25; }
.gamepick .gplayers {
  margin-left: auto; flex: 0 0 auto; font-size: .64rem; font-weight: 900;
  color: var(--faint); letter-spacing: .06em;
}
.howto {
  background: var(--panel); border: 1px solid var(--panel-hi);
  border-radius: var(--radius); padding: .9rem 1rem; margin-top: .4rem;
}
.howto h2 {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--faint); margin: 0 0 .55rem; font-weight: 900;
}
.howto ol { margin: 0; padding-left: 1.1rem; color: #ffffffbf; font-size: .88rem; }
.howto li { margin-bottom: .35rem; }

/* ── chrome ───────────────────────────────────────────── */

#game { display: none; flex: 1; flex-direction: column; min-height: 100dvh; }

header {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, #1c0d20f2, #17091ad9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ffffff14;
  padding: calc(.6rem + env(safe-area-inset-top)) .85rem .6rem;
  display: flex; align-items: center; gap: .55rem;
}
.turn {
  font-family: "Archivo Black", Archivo, sans-serif; font-weight: 400;
  font-size: 1rem; text-transform: uppercase; letter-spacing: .02em;
}
.turn.you { color: var(--gold); }
.pips { display: flex; gap: .25rem; align-items: center; }
.pip { width: 9px; height: 9px; border-radius: 50%; background: #ffffff2b; }
.pip.on { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
header .right { margin-left: auto; display: flex; align-items: center; gap: .45rem; }
.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #00000047; border: 1px solid #ffffff24;
  border-radius: 999px; padding: .25rem .6rem; font-size: .72rem; font-weight: 800;
  color: var(--dim); white-space: nowrap; letter-spacing: .04em;
}
.iconbtn {
  min-height: 40px; width: 40px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 1rem;
  box-shadow: none; border-color: #ffffff2e; background: #ffffff1a;
}

main { flex: 1; padding: .7rem .85rem 0; display: flex; flex-direction: column; gap: .6rem; }

.sectionlabel {
  display: flex; align-items: center; gap: .5rem;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--faint); margin: .25rem 0 0; font-weight: 900;
}
.sectionlabel::after { content: ""; flex: 1; height: 1px; background: #ffffff1a; }

/* ── the table: deck and the last card played ─────────── */

#table { display: flex; align-items: center; justify-content: center; gap: 1.6rem; padding: .3rem 0 .1rem; }
#table .slot { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
#table .cap { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.deckstack { position: relative; width: 60px; height: 84px; }
.deckstack i {
  position: absolute; inset: 0; border-radius: 10px; border: 3px solid #ffffffe6;
  background: linear-gradient(150deg, #3c1b35, #1d0c1c); box-shadow: 0 5px 12px #0009;
}
.deckstack i:nth-child(1) { transform: translate(4px, 4px) rotate(4deg); }
.deckstack i:nth-child(2) { transform: translate(2px, 2px) rotate(2deg); }
.deckstack i:nth-child(3) { display: grid; place-items: center; }
/* The card back carries the game's monogram, set per game as --back. */
.deckstack i:nth-child(3)::after {
  content: var(--back, ""); font-family: "Archivo Black", Archivo, sans-serif;
  font-size: .82rem; color: #23101f; letter-spacing: -.02em;
  width: 38px; height: 38px; border-radius: 50%; background: #f6ecd8;
  display: grid; place-items: center; transform: rotate(-14deg);
}
#table .mini { transform: rotate(-7deg); }

/* ── players ──────────────────────────────────────────── */

#opponents { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }

.puck {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  width: 5.6rem; padding: 0; background: none; border: none; box-shadow: none;
  min-height: 0; text-transform: none; letter-spacing: normal;
}
.puck:active { transform: none; }
.puck.off { opacity: .55; }
.puck .av {
  position: relative; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Archivo Black", Archivo, sans-serif; font-size: 1.1rem; color: #fff;
  background: linear-gradient(160deg, hsl(var(--ah) 72% 60%), hsl(var(--ah) 68% 38%));
  box-shadow: inset 0 2px 0 #ffffff59, inset 0 -6px 10px #0000004d, 0 4px 10px #0009;
}
.puck.active .av { box-shadow: inset 0 2px 0 #ffffff59, 0 0 0 3px var(--gold), 0 0 18px #ffc02e59; }
.puck .count {
  position: absolute; right: -6px; bottom: -4px;
  background: #14070f; border: 2px solid #ffffff47; border-radius: 999px;
  padding: 0 .32rem; font-size: .66rem; font-weight: 900; color: #ffffffbf;
}
.puck.active .count { border-color: var(--gold); color: var(--gold); }
.puck .pname {
  font-family: "Archivo Black", Archivo, sans-serif; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .03em; color: #ffffffd1;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.puck.active .pname { color: var(--gold); }
.puck .bars { display: flex; gap: .18rem; }
.puck .bars i { width: 15px; height: 5px; border-radius: 2px; background: #ffffff29; }
.puck .bars i.f { background: hsl(var(--h) 86% 52%); }
.puck .bars i.d { background: hsl(var(--h) 86% 52%); box-shadow: 0 0 0 1.5px var(--gold); }
.puck .sub { font-size: .63rem; font-weight: 800; color: var(--faint); letter-spacing: .03em; }
.puck .sub.win { color: var(--good); }

/* your own table */
#myboard { display: flex; flex-direction: column; gap: .5rem; }

.empty { color: var(--faint); font-size: .8rem; font-style: italic; }

/* ── log ──────────────────────────────────────────────── */

#logbox { background: var(--panel); border: 1px solid var(--panel-hi); border-radius: var(--radius); overflow: hidden; }
#logbox summary {
  list-style: none; cursor: pointer; padding: .5rem .75rem;
  font-size: .68rem; color: var(--faint); display: flex; align-items: center; gap: .4rem;
  min-height: 38px; text-transform: uppercase; letter-spacing: .14em; font-weight: 900;
}
#logbox summary::-webkit-details-marker { display: none; }
.chev { margin-left: auto; display: flex; transition: transform .15s ease; }
#logbox[open] .chev { transform: rotate(180deg); }
#log { padding: 0 .75rem .6rem; font-size: .78rem; color: var(--dim);
       max-height: 8rem; overflow-y: auto; display: flex; flex-direction: column-reverse; gap: .2rem; }

/* ── hand ─────────────────────────────────────────────── */

footer {
  position: sticky; bottom: 0; z-index: 20; margin-top: auto;
  background: linear-gradient(180deg, #0b040d00, #0b040de0 22%, var(--ink));
  padding-bottom: env(safe-area-inset-bottom);
}
#actionbar {
  display: none; gap: .45rem; padding: .6rem .85rem;
  overflow-x: auto; scrollbar-width: none;
}
#actionbar::-webkit-scrollbar { display: none; }
#actionbar.show { display: flex; }
#actionbar button { flex: 0 0 auto; font-size: .8rem; padding: .5rem .9rem; min-height: 46px; }

.handhead {
  display: flex; align-items: center; gap: .5rem;
  padding: .3rem .85rem .1rem; font-size: .66rem; color: var(--faint);
  text-transform: uppercase; letter-spacing: .16em; font-weight: 900;
}
.handhead .over { color: #ff9a8c; letter-spacing: .04em; }

/* The fan: app.js sets --rot, --ty and the overlap per card. */
#hand {
  display: flex; align-items: flex-end; overflow-x: auto; scrollbar-width: none;
  padding: 1.6rem 1.25rem 1rem; min-height: calc(var(--cardh) + 3rem);
}
#hand::-webkit-scrollbar { display: none; }

/* ── cards ────────────────────────────────────────────── */

.card {
  --h: 24;
  flex: 0 0 auto; width: var(--cardw); height: var(--cardh);
  padding: 6px; border: 3px solid #fff; border-radius: 12px;
  background: linear-gradient(165deg, hsl(var(--h) 86% 58%), hsl(var(--h) 86% 44%));
  color: #fff; text-align: left; text-transform: none; letter-spacing: normal;
  display: flex; flex-direction: column; cursor: pointer;
  box-shadow: 0 8px 16px #0000008c;
  transform-origin: 50% 100%;
  transform: rotate(var(--rot, 0deg)) translateY(var(--ty, 0px));
  transition: transform .12s ease, box-shadow .12s ease;
  min-height: 0; overflow: hidden;
}
.card.sel {
  z-index: 5;
  transform: rotate(var(--rot, 0deg)) translateY(calc(var(--ty, 0px) - 22px)) scale(1.07);
  box-shadow: 0 0 0 4px var(--gold), 0 16px 30px #000000a6, 0 0 34px #ffc02e66;
}
.card:active:not(:disabled) { transform: rotate(var(--rot, 0deg)) translateY(calc(var(--ty, 0px) - 6px)); }
.card.sel:active { transform: rotate(var(--rot, 0deg)) translateY(calc(var(--ty, 0px) - 22px)) scale(1.07); }
.card.dim { filter: saturate(.5) brightness(.72); }

/* card variants */
.card.money  { background: linear-gradient(165deg, var(--money-hi), #14512f); }
.card.action { background: linear-gradient(165deg, #3a3a44, #1b1b21); }

.card .ctop { display: flex; align-items: center; gap: .25rem; }
.card .cval { font-family: "Archivo Black", Archivo, sans-serif; font-size: .7rem; }
.card .ctag {
  margin-left: auto; font-size: .52rem; font-weight: 900; letter-spacing: .08em;
  text-transform: uppercase; color: #ffffffb3;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card .cmid { flex: 1 1 auto; display: grid; place-items: center; min-height: 0; overflow: hidden; }
/* A white plate with the icon in the card's own colour. Without an explicit
   colour the icon would inherit the card's white text and vanish. */
.card .plate {
  width: 40px; height: 40px; border-radius: 50%; background: #fffffff2;
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--h) 86% 36%);
  box-shadow: 0 2px 0 #00000033;
}
.card .plate.pair { width: auto; height: 34px; padding: 0 .35rem; border-radius: 999px; gap: .15rem; }
.card .bignum { font-family: "Archivo Black", Archivo, sans-serif; font-size: 2.1rem; line-height: 1; text-shadow: 0 3px 0 #00000059; }
.card .cname {
  font-family: "Archivo Black", Archivo, sans-serif; font-size: .62rem;
  text-transform: uppercase; letter-spacing: .03em; text-align: center;
  line-height: 1.15; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.card .cblurb {
  font-size: .5rem; font-weight: 600; line-height: 1.25; text-align: center;
  color: #ffffffc4; margin-top: .15rem; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* a non-interactive miniature, for the table and the payment tray */
.mini {
  --h: 24; width: 46px; height: 66px; flex: 0 0 auto;
  padding: 3px; border: 2px solid #ffffffe6; border-radius: 8px;
  background: linear-gradient(165deg, hsl(var(--h) 86% 58%), hsl(var(--h) 86% 44%));
  color: #fff; display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 5px 12px #00000080;
}
.mini.money  { background: linear-gradient(165deg, var(--money-hi), #14512f); }
.mini.action { background: linear-gradient(165deg, #3a3a44, #1b1b21); }
.mini .mglyph {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .1rem;
  font-family: "Archivo Black", Archivo, sans-serif; font-size: .8rem; color: #fff;
}
.mini .mname {
  font-family: "Archivo Black", Archivo, sans-serif; font-size: .45rem;
  text-transform: uppercase; text-align: center; line-height: 1.1;
  width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── toasts ───────────────────────────────────────────── */

/* What just happened, said out loud. The move list keeps the full history;
   this is only for things that land on somebody. */
#toasts {
  position: fixed; left: 0; right: 0;
  top: calc(env(safe-area-inset-top) + 3.7rem);
  z-index: 30; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: 0 .85rem;
}
.toast {
  pointer-events: auto; width: 100%; max-width: 32rem;
  background: linear-gradient(180deg, #33223df2, #1d1224f2);
  border: 1px solid #ffffff2e; border-radius: 12px;
  padding: .55rem .8rem; font-size: .82rem; font-weight: 700;
  color: var(--cream); box-shadow: 0 10px 24px #000000a6;
  display: flex; align-items: center; gap: .5rem;
  animation: toastin .2s ease both;
}
.toast svg { flex: 0 0 auto; color: var(--gold); }
.toast.out { opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; }
@keyframes toastin { from { opacity: 0; transform: translateY(-8px); } }

/* ── banner / prompts ─────────────────────────────────── */

.banner {
  border-radius: var(--radius); padding: .75rem .85rem; font-size: .88rem;
  background: #ffffff14; border: 1px solid var(--panel-hi);
  display: flex; flex-direction: column; gap: .55rem;
}
.banner.hot { background: #ff5a4a24; border-color: #ff5a4a5c; }
.banner.win {
  background: linear-gradient(180deg, #ffc02e2e, #ffc02e0f);
  border-color: #ffc02e6b; align-items: center; text-align: center;
}
.setrow {
  display: flex; align-items: center; gap: .7rem;
  padding-top: .55rem; border-top: 1px solid #ffffff1a;
}
.setrow .pt { font-weight: 800; font-size: .9rem; }
.setrow .ps { font-size: .75rem; color: var(--dim); line-height: 1.35; }
.setrow .toggle { margin-left: auto; flex: 0 0 auto; min-width: 4.6rem; }

.banner .bhead {
  font-family: "Archivo Black", Archivo, sans-serif; font-size: 1.15rem;
  text-transform: uppercase; line-height: 1.1;
}
.banner.win .bhead { font-size: 1.8rem; color: var(--gold); transform: skewX(-8deg); }

/* ── sheets ───────────────────────────────────────────── */

#scrim { position: fixed; inset: 0; background: #06020bbd; z-index: 40; display: none; align-items: flex-end; justify-content: center; }
#scrim.show { display: flex; }
#sheet {
  background: linear-gradient(180deg, #241a2c, #140b18);
  color: var(--cream);
  border: 1px solid #ffffff24; border-bottom: none;
  border-radius: 22px 22px 0 0; width: min(30rem, 100%);
  max-height: 88dvh; display: flex; flex-direction: column;
  box-shadow: 0 -14px 40px #000000a6;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheethead {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem .6rem; border-bottom: 1px solid #ffffff1a;
}
.sheethead h2 {
  margin: 0; font-family: "Archivo Black", Archivo, sans-serif; font-weight: 400;
  font-size: 1rem; text-transform: uppercase; letter-spacing: .02em;
}
.sheetbody { padding: .85rem 1rem 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; color: #ffffffd1; }
.sheetbody p { margin: .2rem 0; }
.grab { width: 2.4rem; height: .28rem; border-radius: 999px; background: #ffffff2e; margin: .5rem auto -.2rem; }

/* countdown for a prompt that expires */
.clock { display: flex; align-items: center; gap: .5rem; }
.clock .track { flex: 1; height: 6px; border-radius: 3px; background: #ffffff1a; overflow: hidden; }
.clock .track i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--hot)); }
.clock .secs { font-family: "Archivo Black", Archivo, sans-serif; font-size: .8rem; color: var(--hot); min-width: 1.6rem; text-align: right; }

/* running total against what is owed */
.meter { display: flex; flex-direction: column; gap: .35rem; }
.meter .track { height: 12px; border-radius: 6px; background: #ffffff14; overflow: hidden; }
.meter .track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--money-hi), var(--good)); }
.meter .track i.over { background: linear-gradient(90deg, #e8a11f, var(--hot)); }
.meter .read { display: flex; font-size: .75rem; font-weight: 800; }
.meter .read .l { color: var(--good); }
.meter .read .r { margin-left: auto; color: var(--faint); }
.meter .read .r.over { color: #ff9a8c; }

.pick {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  text-align: left; padding: .55rem .7rem; min-height: 54px;
  background: #ffffff0f; border: 2px solid #ffffff1f; border-radius: 13px;
  color: var(--cream); text-transform: none; letter-spacing: normal;
  font-family: Archivo, sans-serif; box-shadow: none;
}
.pick:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.pick .pt { font-weight: 800; font-size: .9rem; }
.pick .ps { font-size: .75rem; color: var(--dim); font-weight: 500; }
.pick .pv { margin-left: auto; color: var(--good); font-weight: 900; font-size: .84rem; font-variant-numeric: tabular-nums; }
.pick.sel { border-color: var(--gold); background: #ffc02e26; }
.pick.sel .pv { color: var(--gold); }
.pick .danger { color: #ff9a8c; font-size: .74rem; font-weight: 700; }
.swatch { width: .8rem; height: 2rem; border-radius: 4px; background: hsl(var(--h) 86% 52%); flex: 0 0 auto; border: 1px solid #ffffff3d; }
.picon {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; color: #fff;
  background: hsl(var(--h) 86% 46%); border: 1px solid #ffffff3d;
}
.picon.plain { background: #ffffff14; color: var(--dim); border-color: #ffffff24; }

.rulesec h3 {
  font-size: .7rem; margin: .8rem 0 .2rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--gold); font-weight: 900;
}
.rulerow { display: flex; align-items: baseline; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid #ffffff14; font-size: .84rem; }
.rulerow b { min-width: 7.5rem; font-weight: 800; display: flex; align-items: center; gap: .4rem; }
.rulerow span { color: var(--dim); }
table.rent { width: 100%; border-collapse: collapse; font-size: .82rem; }
table.rent th, table.rent td { text-align: left; padding: .32rem .2rem; border-bottom: 1px solid #ffffff14; }
table.rent td { vertical-align: middle; }
table.rent td svg { vertical-align: -.2em; margin-right: .35rem; }
table.rent th { color: var(--faint); font-weight: 900; font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; }
table.rent td.n { font-weight: 800; font-variant-numeric: tabular-nums; }

@media (min-width: 34rem) {
  main { max-width: 34rem; width: 100%; margin: 0 auto; }
  footer > * { max-width: 34rem; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card.sel, .card:active { transition: none; }
  .toast { animation: none; }
  .toast.out { transition: none; }
}
