/* ============================================================
   Casino frame — topbar, chat rail, lobby
   ============================================================ */
:root { --rail: 348px; --bar: 72px; --edge: 3px solid var(--ink-sink); }

/* The frame is a real grid: the rail is a column, not a fixed panel the page has
   to be padded around. Nothing can end up underneath it. */
body.app {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  grid-template-areas: 'bar bar' 'rail wins' 'rail main';
  grid-template-rows: auto auto 1fr;
  align-content: start;
  min-height: 100vh;
}
body.app > .bar { grid-area: bar; }
body.app > .wins { grid-area: wins; min-width: 0; }
body.app > main { grid-area: main; min-width: 0; }
body.app > .rail { grid-area: rail; }
body:not(:has(> .bar)) { padding-top: calc(var(--bar) + 34px); }
body.app[data-rail='closed'] { grid-template-columns: 0 minmax(0, 1fr); }
body.app[data-rail='closed'] > .rail { display: none; }

/* ---------------------------------------------- topbar ---- */
.bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 2vw, 1.4rem);
  min-height: 72px;
  padding-inline: clamp(.85rem, 2vw, 1.5rem);
  background: var(--ink-raise);
  border-bottom: var(--edge);
}
.bar .brand { margin-right: 0; }
.bar .brand b {
  font-family: var(--serif);
  font-size: 1.44rem;
  font-weight: 900;
  letter-spacing: .06em;
}
.bar__nav {
  display: flex;
  align-self: stretch;
  gap: 0;
  margin-right: auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  list-style: none;
  margin-block: 0;
  padding: 0;
}
.bar__nav::-webkit-scrollbar { display: none; }
.bar__nav li { flex: 0 0 auto; }
.bar__nav li { display: flex; }
.bar__nav a {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-family: var(--serif);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bone-70);
  border-bottom: 4px solid transparent;
  white-space: nowrap;
  transition: color .2s var(--step), background .2s var(--step);
}
.bar__nav a:hover { color: var(--bone); }
.bar__nav a[aria-current='page'] {
  color: var(--bone);
  background: var(--ink);
  border-bottom-color: var(--accent);
}

.purse-chip {
  display: flex;
  align-items: center;
  gap: .55rem;
  height: 42px;
  padding: 0 .8rem;
  background: var(--ink);
  border: 2px solid var(--ink-sink);
  border-radius: var(--r);
  white-space: nowrap;
}
.purse-chip b {
  font-family: var(--mono);
  font-size: .94rem;
  font-weight: 500;
  color: var(--bone);
  font-variant-numeric: lining-nums tabular-nums;
}
.purse-chip span { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: var(--bone-45); }

.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--ink-raise);
}
.who {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--bone);
  font-size: .8rem;
  padding: .2rem;
}
.who:hover { color: var(--gold); }
.who span { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar > .purse-chip, .bar > .icon-btn, .bar > .who { flex: 0 0 auto; }

.menu-pop {
  position: fixed;
  top: calc(var(--bar) - 6px);
  right: clamp(.85rem, 2vw, 1.5rem);
  z-index: 70;
  min-width: 210px;
  padding: .5rem;
  background: var(--ink-raise);
  border: 1px solid var(--line);
  display: grid;
  gap: .15rem;
}
.menu-pop a, .menu-pop button {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem .7rem;
  background: none;
  border: 0;
  text-align: left;
  font-size: .8rem;
  color: var(--bone-70);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--gold-08); color: var(--bone); }
.menu-pop b { color: var(--gold); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }

/* ---------------------------------------------- chat rail ---- */
.rail {
  position: sticky;
  top: var(--bar);
  z-index: 55;
  height: calc(100vh - var(--bar));
  display: flex;
  flex-direction: column;
  background: var(--ink-raise);
  border-right: var(--edge);
}

.rail__head {
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 38px;
  padding-inline: .9rem;
  background: var(--ink-sink);
}
.rail__head .label { margin-right: auto; font-size: .6rem; letter-spacing: .12em; }
.rail__online {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone-45);
}
.rail__online b { color: var(--bone); font-weight: 500; font-size: .72rem; }
.rail__online i {
  display: block;
  width: 9px; height: 9px;
  background: var(--accent);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--bone-45);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold-40); }

.notif-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 14px; height: 14px;
  padding: 0 3px;
  background: #b0302e;
  color: #fff;
  font-size: .55rem;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  border-radius: 7px;
  pointer-events: none;
}
.notif-dropdown {
  position: fixed;
  top: var(--bar);
  right: .75rem;
  width: min(340px, 92vw);
  max-height: 420px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  z-index: 9999;
  padding: .5rem;
}
.notif-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .25rem .35rem .5rem;
  border-bottom: 1px solid var(--gold-08);
  margin-bottom: .35rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--bone);
}
.notif-mark {
  background: none;
  border: none;
  color: var(--gold);
  font-size: .62rem;
  cursor: pointer;
  text-decoration: underline;
}
.notif-list { display: flex; flex-direction: column; gap: .25rem; }
.notif-item {
  padding: .4rem .45rem;
  border-radius: var(--r-sm);
  font-size: .72rem;
  line-height: 1.35;
}
.notif-item--unread {
  background: var(--gold-08);
  border-left: 2px solid var(--gold);
}
.notif-item b { display: block; color: var(--bone); font-size: .74rem; }
.notif-item p { margin: .15rem 0 0; color: var(--bone-65); }
.notif-time { font-size: .58rem; color: var(--bone-35); }

.rail__log {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .42rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-18) transparent;
}
/* The design's chat is dense and inline: a coloured handle, then the line.
   Avatars would halve how many messages fit, and the point of the rail is volume. */
.msg { display: block; margin: 0; line-height: 1.45; }
.msg img, .msg .msg__dot, .msg__who, .msg__bal { display: none; }
.msg__name {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--handle, var(--accent));
  background: none;
  border: none;
  padding: 0;
  margin-right: .4rem;
  cursor: pointer;
}
.msg__name:hover { text-decoration: underline; }
.msg__name[data-role='owner']::after { content: ' ◆'; font-size: .6rem; color: var(--gold); }
.msg__name[data-role='mod']::after { content: ' ·'; }
.msg__at { display: none; }
.msg__body {
  display: inline;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--bone-65);
  overflow-wrap: anywhere;
}

.rail__typing { flex: 0 0 auto; min-height: 1.5rem; margin: 0; padding: .2rem .9rem; font-size: .72rem; font-style: italic; color: var(--bone-45); }
.rail__typing:empty::before { content: '\00a0'; }
.rail__form { border-top: var(--hair); padding: .75rem; display: grid; gap: .5rem; }
.rail__form textarea {
  width: 100%;
  min-height: 44px;
  max-height: 110px;
  resize: none;
  padding: .6rem .7rem;
  background: var(--ink-raise);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--bone);
  font-size: .82rem;
  line-height: 1.4;
  font-family: inherit;
}
.rail__form textarea:focus { outline: none; border-color: var(--gold-40); }
.rail__note { font-size: .7rem; color: var(--bone-45); text-align: center; padding: .4rem 0; }
.rail__note a { color: var(--gold); border-bottom: 1px solid var(--line); }


/* ---------------------------------------------- lobby ---- */
.lobby { padding: clamp(1.25rem, 3vw, 2.25rem) clamp(.85rem, 2vw, 1.5rem) 4rem; }
/* app.css gives free-standing sections editorial padding; inside the lobby the
   slabs set their own rhythm, so that would only open holes. */
.lobby section { padding-block: 0; }

.strip {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: var(--hair);
}
.strip > div:first-child { flex: 1 1 min(100%, 420px); }
.strip h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1; }
.strip > div:first-child p { margin: .5rem 0 0; font-size: .86rem; color: var(--bone-45); max-width: 44ch; }
.strip__stats { display: flex; gap: clamp(1.2rem, 3vw, 2.5rem); margin-left: auto; }
.strip__stats div { text-align: right; }
.strip__stats b {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
  font-variant-numeric: lining-nums tabular-nums;
}
.strip__stats span { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-45); }

.sect { margin-top: clamp(2rem, 4vw, 3rem); }
.sect__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.sect__head h2 { font-size: 1.5rem; }
.sect__head .label { margin-left: auto; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.6rem, 1.4vw, 1rem);
}
@media (min-width: 620px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Every game owns a colour. The art panel carries it; the plate below stays neutral
   so a row of tiles reads as one system rather than fourteen posters. */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink-raise);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
  transition: translate .18s var(--step), box-shadow .18s var(--step), border-color .18s;
}
.card:hover, .card:focus-visible {
  border-color: var(--accent);
  translate: -3px -3px;
  box-shadow: var(--drop);
}
.card__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, .14), transparent 68%),
    var(--tile, var(--ink-lift));
  border-bottom: 1px solid var(--line);
}
.card__art > i {
  width: 46%;
  max-width: 82px;
  aspect-ratio: 1;
  color: var(--bone);
  opacity: .92;
  transition: scale .3s var(--swing);
}
.card__art > i svg { width: 100%; height: 100%; }
.card:hover .card__art > i { scale: 1.08; }

.card__edge,
.card__live {
  position: absolute;
  top: .45rem; left: .45rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .45rem;
  border-radius: var(--r-pill);
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(10, 7, 25, .62);
  backdrop-filter: blur(4px);
  color: var(--bone-70);
}
.card__live { color: var(--bone); }
.card__live > i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.75); }
}
.card__name {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  padding: .6rem .7rem .7rem;
}
.card__name b {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--bone);
}
.card__name > span {
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bone-45);
}

.cards--live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .cards--live { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card__count {
  margin-left: .1rem;
  padding-left: .4rem;
  border-left: 1px solid var(--bone-35);
  font-weight: 500;
  letter-spacing: .1em;
}

.card__live--building {
  color: var(--gold-40, #c9a84c);
}
.card__live--building i {
  background: var(--gold-40, #c9a84c);
  animation: none;
}
.card--building {
  opacity: .55;
  pointer-events: none;
  cursor: default;
}

/* ---------------------------------------------- tables ---- */
.duo {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  margin-top: clamp(2rem, 4vw, 3rem);
}
.slab { border: var(--hair); }
.slab__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.1rem;
  border-bottom: var(--hair);
}
.slab__head .label { margin-right: auto; }

table.list { width: 100%; border-collapse: collapse; font-size: .8rem; }
table.list th {
  text-align: left;
  padding: .55rem 1.1rem;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-45);
  border-bottom: var(--hair);
}
table.list td {
  padding: .55rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--bone-70);
  font-variant-numeric: lining-nums tabular-nums;
}
table.list tr:last-child td { border-bottom: 0; }
table.list td.right, table.list th.right { text-align: right; }
table.list .win { color: var(--gold); }
table.list .lose { color: rgba(242, 239, 230, .35); }
table.list .who-cell { display: flex; align-items: center; gap: .5rem; }
table.list .who-cell img, table.list .who-cell i {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: .6rem;
  color: var(--gold);
  flex-shrink: 0;
}
.flash-in { animation: flashIn .5s var(--step) backwards; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-6px); background: var(--gold-08); } }

/* ---------------------------------------------- auth modal ---- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(8, 8, 8, .78);
  backdrop-filter: blur(5px);
  animation: fade .3s var(--step);
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  border-radius: var(--r);
  width: min(100%, 400px);
  max-height: 92vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--ink);
  border: 1px solid var(--line);
  animation: lift .4s var(--swing);
}
@keyframes lift { from { opacity: 0; transform: translateY(14px); } }
.sheet h2 { font-size: 1.8rem; margin-bottom: .35rem; }
.sheet > p { font-size: .82rem; color: var(--bone-45); margin-bottom: 1.4rem; }
.sheet form { display: grid; gap: .85rem; }
.sheet label { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-45); }
.sheet input {
  width: 100%;
  padding: .7rem .8rem;
  background: var(--ink-raise);
  border: 1px solid var(--line);
  color: var(--bone);
  font-size: .9rem;
}
.sheet input:focus { outline: none; border-color: var(--gold-40); }
.sheet .err { font-size: .78rem; color: var(--red); min-height: 1.2em; }
.swap { text-align: center; font-size: .78rem; color: var(--bone-45); margin-top: 1.1rem; }
.swap button {
  background: none;
  border: 0;
  color: var(--gold);
  cursor: pointer;
  font: inherit;
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.or {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 1.1rem 0;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-45);
}
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.skip-link {
  display: block;
  text-align: center;
  font-size: .7rem;
  color: var(--bone-30);
  text-decoration: none;
  margin-top: 1.5rem;
  padding-top: .5rem;
  border-top: 1px solid var(--line);
  opacity: .5;
  transition: opacity .2s;
}
.skip-link:hover { opacity: 1; }

.discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: .8rem;
  background: #5865F2;
  border: 0;
  color: #fff;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .25s;
}
.discord-btn:hover { filter: brightness(1.12); }
.discord-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------------------------------------------- responsive ---- */
@media (max-width: 1100px) {
  body.app,
  body.app[data-rail='closed'] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'bar' 'wins' 'main';
  }
  body.app > .rail,
  body.app[data-rail='closed'] > .rail {
    display: flex;
    position: fixed;
    top: var(--bar); right: 0; bottom: 0;
    width: min(var(--rail), 100vw);
    height: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .4s var(--swing), visibility 0s .4s;
  }
  body.app[data-rail='open'] > .rail { transform: none; visibility: visible; box-shadow: -20px 0 50px rgba(0, 0, 0, .5); transition: transform .4s var(--swing); }
}

@media (max-width: 640px) {
  :root { --rail: 100vw; --bar: 108px; }
  .bar { flex-wrap: wrap; gap: .35rem; min-height: 0; padding: .5rem .75rem 0; }
  .bar .brand b, .bar > .mute, .bar .who__name, .bar .who__lvl { display: none; }
  .bar > .purse-chip { margin-left: auto; height: 38px; }
  .bar__nav { order: 10; flex: 1 0 100%; height: 42px; margin: .5rem -.75rem 0; padding-inline: .25rem; border-top: 1px solid var(--line); }
  .bar__nav li { flex: 1 0 auto; }
  .bar__nav li:has(a[href='/account.html']), .bar__nav li:has(a[href='/fair.html']) { display: none; }
  .bar__nav a { flex: 1; justify-content: center; padding: 0 .6rem; font-size: .7rem; border-bottom-width: 3px; }
  .strip__stats {
    margin-left: 0;
    width: 100%;
    gap: 1.25rem 1.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .strip__stats div { text-align: left; }
  .strip__stats span { font-size: .55rem; letter-spacing: .12em; }
  .card__name { padding: .5rem .55rem .6rem; }
}

/* ---- player card ---- */
.who-link {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.who-link:hover .who-cell { color: var(--gold); }
.sheet--wide { width: min(100%, 520px); }
.who-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: var(--hair);
}
.who-head img, .who-head i {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-style: normal;
  color: var(--gold);
  font-family: var(--serif);
}
.who-head b { display: block; font-family: var(--serif); font-size: 1.3rem; }
.who-head span { font-size: .72rem; color: var(--bone-45); }
.sheet--wide dl { display: grid; gap: .1rem; margin: 0 0 1.25rem; }
.sheet--wide .fair__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: .8rem; }
.sheet--wide .fair__row dt { color: var(--bone-45); }
.sheet--wide .fair__row dd { margin: 0; }
.sheet--wide .num.win { color: var(--gold); }
.sheet--wide .num.lose { color: var(--red); }
.sheet--wide table.list th, .sheet--wide table.list td { padding-inline: 0; }

/* ---- the win moment ---- */
.hype {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.confetti i { position: absolute; left: 50%; top: 50%; display: block; }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }
.strike {
  border-radius: var(--r);
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: .5rem;
  padding: clamp(1.1rem, 4vw, 1.8rem) clamp(1.8rem, 7vw, 3.2rem);
  background: rgba(13, 13, 13, .92);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  animation: struck .42s var(--swing) both;
}
.strike.is-going { animation: unstruck .32s var(--step) both; }
@keyframes struck { from { opacity: 0; transform: scale(.86); } }
@keyframes unstruck { to { opacity: 0; transform: translateY(-10px) scale(.98); } }
.strike__mult {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 11vw, 5rem);
  font-weight: 600;
  line-height: .9;
  color: var(--gold);
  font-variant-numeric: lining-nums tabular-nums;
}
.strike__rule { width: 54px; height: 1px; background: var(--gold-40); }
.strike__paid {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bone-70);
}
.strike--big { border-color: var(--gold); }
.strike--big .strike__mult { text-shadow: 0 0 28px rgba(232, 184, 75, .45); }
.strike__crown {
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.strike__best {
  font-size: .6rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #141414;
  background: var(--gold);
  border-radius: 999px;
  padding: .2rem .7rem;
}
.strike--huge .strike__mult { text-shadow: 0 0 40px rgba(232, 184, 75, .6); }
.strike--legendary {
  border-color: var(--bone);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px var(--gold), 0 0 70px rgba(232, 184, 75, .35);
}
.strike--legendary .strike__crown { color: var(--bone); }
.strike--legendary .strike__mult {
  color: var(--bone);
  text-shadow: 0 0 52px rgba(242, 239, 230, .7);
}
.strike__halo {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: min(78vw, 420px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: halo 2.4s var(--step) both;
}
@keyframes halo {
  from { opacity: 0; transform: scale(.5); }
  35% { opacity: 1; }
  to { opacity: 0; transform: scale(1.25); }
}

/* ---- toasts ---- */
.toasts {
  position: fixed;
  left: 50%;
  translate: -50% 0;
  bottom: clamp(.75rem, 2vw, 1.25rem);
  z-index: 85;
  display: grid;
  gap: .5rem;
  width: min(82vw, 268px);
}
.tray-note {
  border-radius: var(--r-sm);
  display: grid;
  gap: .2rem;
  padding: .65rem .8rem;
  background: var(--ink-sink);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  cursor: pointer;
  animation: slidein .34s var(--swing) both;
}
.tray-note.is-going { animation: slideout .3s var(--step) both; }
@keyframes slidein { from { opacity: 0; transform: translateX(-14px); } }
@keyframes slideout { to { opacity: 0; transform: translateX(-10px); } }
.tray-note b { font-size: .78rem; color: var(--bone); }
.tray-note span { font-size: .72rem; color: var(--bone-45); line-height: 1.4; }
.tray-note--win { border-left-color: var(--gold); }
.tray-note--lose { border-left-color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  .strike, .tray-note { animation-duration: .2s; }
  .strike__halo { display: none; }
  @keyframes struck { from { opacity: 0; } }
  @keyframes slidein { from { opacity: 0; } }
}

/* ---- standing ---- */
.tier { display: grid; gap: .5rem; }
.tier__bar {
  height: 3px;
  background: rgba(232, 184, 75, .16);
  overflow: hidden;
}
.tier__bar i {
  display: block;
  height: 100%;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .8s var(--swing);
}
.tier__note { margin: 0; font-size: .72rem; color: var(--bone-45); }
.strike__streak {
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  border-top: 1px solid var(--line);
  padding-top: .45rem;
  margin-top: .1rem;
}
.strike__streak.is-hot { color: #FF7A3D; text-shadow: 0 0 14px rgba(255, 122, 61, .6); }
.strike .strike__mult { animation: multPunch .6s var(--swing) both; }
@keyframes multPunch { 0% { transform: scale(2.4); opacity: 0; } 45% { transform: scale(.92); opacity: 1; } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }
.strike__paid { font-size: .95rem; letter-spacing: .12em; color: var(--bone); font-variant-numeric: tabular-nums; }
.strike__paid.is-landed { color: var(--gold); animation: paidLand .45s var(--swing); }
@keyframes paidLand { 40% { transform: scale(1.25); } }
.strike--big .strike__mult, .strike--huge .strike__mult { animation: multPunch .6s var(--swing) both, multGlow 1.1s ease-in-out .6s infinite alternate; }
@keyframes multGlow { to { filter: brightness(1.35) drop-shadow(0 0 18px rgba(255, 194, 77, .7)); } }
.strike--legendary .strike__mult { animation: multPunch .7s var(--swing) both, rainbow 1.6s linear .7s infinite; }
@keyframes rainbow { to { filter: hue-rotate(360deg) brightness(1.3); } }
.strike--nice { border-color: var(--gold-40); }
.hype__flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255, 214, 120, .95), rgba(255, 194, 77, .35) 45%, transparent 75%); pointer-events: none; }
.confetti .coin {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF3C4, var(--gold) 45%, var(--gold-deep) 80%);
  box-shadow: inset 0 0 0 2px rgba(120, 70, 0, .45), 0 2px 6px rgba(0, 0, 0, .35);
}
.coinburst { position: absolute; inset: 0; overflow: hidden; pointer-events: none; perspective: 900px; z-index: 2; }
.coin3d { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; will-change: transform; }
.coin3d b { position: absolute; inset: 0; border-radius: 50%; }
.coin3d__rim { background: var(--gold-deep); box-shadow: inset 0 0 0 1px rgba(90, 50, 0, .5); }
.coin3d__face {
  backface-visibility: hidden;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 800;
  color: rgba(120, 70, 0, .75);
  background: radial-gradient(circle at 35% 30%, #FFF6D0, var(--gold) 45%, var(--gold-deep) 85%);
  box-shadow: inset 0 0 0 2px rgba(120, 70, 0, .45), inset 0 0 0 4px rgba(255, 240, 190, .35);
}
.coinburst__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160px;
  height: 160px;
  margin: -80px 0 0 -80px;
  border-radius: 50%;
  border: 4px solid rgba(255, 214, 120, .9);
  box-shadow: 0 0 40px rgba(255, 194, 77, .8), inset 0 0 30px rgba(255, 194, 77, .6);
}
@media (prefers-reduced-motion: reduce) {
  .strike .strike__mult, .strike__paid.is-landed { animation: none; }
  .coinburst { display: none; }
}


/* the live footer: who is on the table and what it is doing right now */
.card__state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .4rem;
  padding-top: .4rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card__state b { color: var(--bone); font-weight: 500; }
.card__state > span { color: var(--accent); }

/* the committed seed, visible while you bet */
.seed-chip {
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 42px;
  padding: 0 .75rem;
  background: var(--ink);
  border: 2px solid var(--ink-sink);
  border-radius: var(--r);
  white-space: nowrap;
}
.seed-chip::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--accent);
}
.seed-chip span {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone-45);
}
.seed-chip b { font-family: var(--mono); font-size: .72rem; font-weight: 500; color: var(--bone-70); }
.seed-chip:hover { border-color: var(--accent); }

.veil--hello { z-index: 95; background: rgba(22, 6, 10, .86); }
.veil--hello.is-leaving { animation: hello-out .32s var(--step) forwards; }
@keyframes hello-out { to { opacity: 0; } }
.hello {
  width: min(100%, 500px);
  max-height: 94vh;
  overflow-y: auto;
  padding: clamp(1.75rem, 6vw, 2.75rem);
  background: var(--ink);
  border: 2px solid var(--ink-sink);
  border-radius: var(--r);
  box-shadow: var(--drop);
  animation: lift .55s var(--swing);
}
.hello__eyebrow {
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bone-70);
  margin-bottom: 1rem;
}
.hello__title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  font-weight: 800;
  font-stretch: 85%;
  line-height: .94;
  letter-spacing: -.02em;
  margin-bottom: 2rem;
}
.hello__title em { font-style: normal; color: var(--gold); }
.hello__purse { display: grid; gap: .3rem; margin-bottom: 1.5rem; }
.hello__label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-70); }
.hello__purse p { display: flex; align-items: baseline; gap: .5rem; margin: 0; }
.hello__figure {
  font-family: var(--mono);
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
  transition: color .4s var(--step);
}
.is-landed .hello__figure { color: var(--gold); }
.hello__unit { font-family: var(--serif); font-weight: 800; font-size: .9rem; color: var(--gold); }
.hello__stamp {
  display: grid;
  gap: .3rem;
  justify-items: start;
  margin: 0 0 1.75rem;
  padding: .8rem 1rem;
  border: 3px solid var(--gold);
  border-radius: var(--r);
  background: var(--gold-08);
  box-shadow: var(--drop);
  opacity: 0;
  transform: rotate(-1.5deg);
}
.is-landed .hello__stamp { animation: slam .42s var(--swing) forwards; }
@keyframes slam {
  from { opacity: 0; transform: rotate(-9deg) scale(1.7); }
  60% { opacity: 1; transform: rotate(-1deg) scale(.97); }
  to { opacity: 1; transform: rotate(-1.5deg); }
}
.hello__stamp strong {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.35rem;
  font-stretch: 80%;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.hello__stamp span { font-size: .86rem; color: var(--bone); }
.hello__go { width: 100%; }
.hello__go:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.nod {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--ink);
  pointer-events: none;
  animation: nod-out .6s var(--step) 1.1s forwards;
}
.nod p {
  display: grid;
  gap: .2rem;
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  font-stretch: 85%;
  line-height: .95;
  letter-spacing: -.02em;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  animation: nod-in .7s var(--swing) both;
}
.nod span { font-size: clamp(1rem, 3vw, 1.3rem); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-70); font-family: var(--mono); font-weight: 500; }
.nod em { font-style: normal; font-size: clamp(2.6rem, 11vw, 5.5rem); color: var(--gold); }
.nod small { display: block; max-width: 34ch; margin: 1rem auto 0; font-family: var(--sans); font-size: clamp(.95rem, 2.4vw, 1.1rem); font-weight: 400; font-stretch: 100%; line-height: 1.45; letter-spacing: 0; color: var(--bone-70); }
.nod--long { animation-delay: 2.2s; }
@keyframes nod-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes nod-out { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  .nod p { animation: none; }
  .hello, .is-landed .hello__stamp { animation: none; opacity: 1; }
}

@media (max-width: 560px) {
  .veil--hello { place-items: end stretch; padding: 0; }
  .hello { width: 100%; max-height: 96vh; border-width: 2px 0 0; box-shadow: none; border-radius: var(--r) var(--r) 0 0; }
  .hello__title { margin-bottom: 1.5rem; }
}

.lvl {
  --badge: url('/assets/img/levels/base.svg');
  display: inline-grid;
  place-items: center;
  width: 2.8em;
  height: 1.75em;
  margin-right: .6em;
  font: 700 .62rem/1 var(--mono);
  font-style: normal;
  letter-spacing: -.03em;
  color: #E9E6DF;
  background: var(--badge) center / 100% 100% no-repeat;
  vertical-align: middle;
}
.lvl[data-frame='bronze'] { --badge: url('/assets/img/levels/bronze.svg'); color: #2B1507; }
.lvl[data-frame='silver'] { --badge: url('/assets/img/levels/silver.svg'); color: #1C2027; }
.lvl[data-frame='gold'] { --badge: url('/assets/img/levels/gold.svg'); color: #2A1B00; }
.lvl[data-frame='ruby'] { --badge: url('/assets/img/levels/ruby.svg'); color: #FFF4F0; text-shadow: 0 1px 0 #5A0716; }
.lvl[data-frame='diamond'] { --badge: url('/assets/img/levels/diamond.svg'); color: #06303A; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.msg__flair { margin-left: .3em; font-size: .72rem; }
.msg--rain { margin: .3rem 0; padding: .35rem .5rem; border-left: 3px solid var(--gold); background: var(--gold-08); }
.msg--rain b { font: 600 .72rem var(--mono); color: var(--gold); }
.msg--rain .msg__by { font-size: .72rem; opacity: .8; }
.rail__pin { flex: none; padding: 0 .6rem; }
.rail__pin .msg--rain { margin: .4rem 0 0; }
.who-head [data-frame='bronze'] { border: 2px solid #C08457; }
.who-head [data-frame='silver'] { border: 2px solid #C9CED6; }
.who-head [data-frame='gold'] { border: 2px solid var(--gold); }
.who-head [data-frame='ruby'] { border: 3px solid #E0526B; }
.who-head [data-frame='diamond'] { border: 3px solid #9FE6F5; }
.who-head b .lvl { font-size: .7rem; }


/* ---------------------------------------------- games menu (under GAMES) ---- */
.gm {
  position: fixed;
  z-index: 80;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.25rem;
  width: min(560px, calc(100vw - 16px));
  padding: 1rem 1.1rem 1.1rem;
  background: color-mix(in srgb, var(--ink-raise) 94%, transparent);

  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: var(--drop);
  animation: railIn .18s var(--step);
}
.gm__col { display: grid; align-content: start; gap: 2px; }
.gm__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.gm__label { font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-45); padding: 0 .55rem .45rem; }
.gm__game {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .55rem;
  font-size: .82rem; color: var(--bone-70);
  border-radius: var(--r);
  transition: background .15s, color .15s;
}
.gm__game:hover, .gm__game:focus-visible { background: var(--accent-08); color: var(--bone); }
.gm__ico { width: 20px; height: 20px; flex-shrink: 0; opacity: .7; }
.gm__ico svg { width: 100%; height: 100%; }
.gm__name { margin-right: auto; white-space: nowrap; }
.gm__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
@media (max-width: 560px) {
  .gm { grid-template-columns: 1fr; left: 8px !important; }
}

/* ---------------------------------------------- deposit button on the purse ---- */
.purse-chip__add {
  display: grid; place-items: center;
  width: 24px; height: 24px; margin-right: -.35rem;
  border-radius: var(--r); background: var(--gold); color: var(--ink);
  font: 700 1rem/1 var(--mono);
  transition: transform .15s, background .15s;
}
.purse-chip__add:hover { transform: scale(1.08); background: var(--gold); }
.tray-note.is-link { cursor: pointer; }

/* ---------------------------------------------- live wins ticker ---- */
.wins {
  display: flex; align-items: center; gap: .8rem;
  height: 34px; padding-left: .9rem;
  background: rgba(0, 0, 0, .22);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.wins[hidden] { display: none; }
.wins__label {
  flex: none; display: flex; align-items: center; gap: .4rem;
  font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.wins__label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1.8s ease-in-out infinite; }
.wins__view { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.wins__track { display: flex; gap: 2.2rem; width: max-content; will-change: transform; }
.wins__item { white-space: nowrap; font-size: .78rem; color: var(--bone-70); }
.wins__item b { color: var(--bone); font-weight: 500; }
.wins__item i { font-style: normal; font-family: var(--mono); color: var(--gold); }
.wins__item.is-big i { color: var(--gold); }

/* ---------------------------------------------- supporter gem, level bar ---- */
.gem { font-style: normal; color: var(--gold); margin-right: .25rem; font-size: .8em; }
.who__name { display: inline-flex; align-items: center; max-width: 11ch; overflow: hidden; white-space: nowrap; }
.who__lvl { display: grid; gap: 3px; min-width: 46px; }
.who__lvl b { font-size: .64rem; color: var(--gold); letter-spacing: .06em; line-height: 1; }
.who__xp { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.who__xp > i { display: block; height: 100%; background: var(--gold); transition: width .8s var(--step); }

/* ---------------------------------------------- big win cards in chat ---- */
.msg--win {
  margin: .4rem 0; padding: .5rem .6rem; display: grid; gap: .25rem;
  background: var(--gold-08);
  border: 1px solid var(--gold-40); border-radius: var(--r);
}
.msg--win.is-huge { border-color: var(--gold); box-shadow: var(--drop); }
.msg--win__row { display: flex; align-items: baseline; gap: .45rem; font-size: .8rem; color: var(--bone-70); }
.msg--win__row b { font-size: 1.1rem; color: var(--gold); }
.msg--win__row strong { margin-left: auto; color: var(--gold); }

/* ---------------------------------------------- level up moment ---- */
.lvlup {
  position: fixed; left: 50%; top: calc(var(--bar) + 1rem); translate: -50% 0; z-index: 120;
  display: grid; justify-items: center; gap: .3rem; padding: 1rem 1.8rem 1.1rem;
  max-width: calc(100vw - 2rem);
  background: var(--ink-raise);
  border: 1px solid var(--gold); border-radius: var(--r);
  box-shadow: var(--drop);
  animation: lvlIn .55s cubic-bezier(.2, 1.4, .4, 1);
}
.lvlup.is-going { opacity: 0; transition: opacity .45s; }
.lvlup__crown { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.lvlup__n { font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; color: var(--gold); }
.lvlup__sub { color: var(--bone-70); font-size: .85rem; }
.lvlup__got { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; max-width: 320px; }
.lvlup__got span { width: 100%; text-align: center; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-45); }
.lvlup__got em { font-style: normal; padding: .2rem .55rem; border: 1px solid var(--gold-40); border-radius: var(--r); font-size: .78rem; }
.lvlup__go { font-size: .8rem; color: var(--gold); }
@keyframes lvlIn { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .lvlup { animation: none; } }

/* ---------------------------------------------- games under maintenance ---- */
[data-game].is-locked { filter: grayscale(1); opacity: .45; }
[data-game].is-locked:hover { opacity: .6; }
.gm__game.is-locked::after { content: 'maintenance'; margin-left: auto; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bone-45); }

/* ============================================================ engagement */
/* badge rarity colours, used everywhere a badge shows */
.badge--common { --b: var(--bone-45); }
.badge--rare { --b: var(--bone); }
.badge--epic { --b: var(--live); }
.badge--legendary { --b: var(--gold); }

/* chat: featured badge, supporter name, mentions */
.msg__badge { font: 600 .6rem/1 var(--mono); font-style: normal; margin-left: .25rem; padding: .12rem .25rem; color: var(--b, var(--bone-45)); border: 1px solid currentColor; border-radius: var(--r); vertical-align: 1px; }
.msg__nm.is-supporter { color: var(--gold); }
.msg.is-mention { background: var(--gold-08); box-shadow: inset 3px 0 0 var(--gold); border-radius: 4px; }

/* reactions: counts always, picker on hover */
.react { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin-left: .35rem; vertical-align: middle; }
.react__counts { display: inline-flex; gap: .25rem; }
.react__pill { display: inline-flex; align-items: center; gap: .2rem; padding: 0 .35rem; height: 20px; font-size: .72rem; color: var(--bone); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.react__pill b { font-weight: 500; font-size: .66rem; color: var(--bone-70); }
.react__pick { display: none; gap: .1rem; padding: 1px 4px; background: var(--ink-raise); border: 1px solid var(--line); border-radius: var(--r); }
.react__pick button { background: none; border: 0; cursor: pointer; font-size: .85rem; padding: 0 2px; transition: transform .1s; }
.react__pick button:hover { transform: scale(1.3); }
.msg:hover .react__pick, .msg--win:hover .react__pick { display: inline-flex; }
@media (hover: none) { .react__pick { display: inline-flex; opacity: .55; } }

/* badge plaque */
.lvlup--badge { border-color: var(--b); box-shadow: var(--drop); }
.lvlup--badge .lvlup__crown { color: var(--b); }
.lvlup__glyph { display: inline-grid; place-items: center; min-width: 4.2rem; padding: .6rem .8rem; font: 700 clamp(1.6rem, 5vw, 2.4rem)/1 var(--mono); color: var(--b, var(--gold)); border: 2px solid currentColor; border-radius: var(--r); box-shadow: var(--drop); }
.lvlup__name { font-family: var(--serif); font-size: 1.5rem; }

/* profile showcase */
.show { display: grid; gap: .9rem; margin: .9rem 0 1.1rem; }
.show__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.show__tile { display: grid; gap: .15rem; padding: .6rem .7rem; background: rgba(0, 0, 0, .18); border: 1px solid var(--line); border-radius: var(--r); }
.show__tile span { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-45); }
.show__tile b { font-size: 1.15rem; color: var(--gold); }
.show__tile small { font-size: .72rem; color: var(--bone-70); }
.show__label { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-45); }
.show__grid { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .55rem .25rem .4rem; border: 1px solid color-mix(in srgb, var(--b) 55%, transparent); border-radius: var(--r); background: color-mix(in srgb, var(--b) 10%, transparent); }
.badge i { font: 600 .66rem/1 var(--mono); font-style: normal; color: var(--b); }
.badge small { font-size: .74rem; color: var(--bone); }
.badge--legendary { box-shadow: none; }
@media (max-width: 560px) { .show__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* missions button + drawer */
.mis-btn { position: relative; font-size: 1rem; }
.mis-btn__n { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 3px; border-radius: var(--r); background: var(--gold); color: var(--on-accent); font: 700 .62rem/16px var(--mono); }
.mis-btn__n[hidden] { display: none; }
.mis__sheet { width: min(460px, calc(100vw - 2rem)); max-height: 86vh; overflow: auto; }
.mis__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.mis__head h3 { margin: 0; }
.mis__body { display: grid; gap: .55rem; }
.mis__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .8rem; align-items: center; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--r); }
.mis__row.is-ready { border-color: var(--gold); background: var(--gold-08); }
.mis__row.is-done { opacity: .6; }
.mis__what { display: flex; justify-content: space-between; gap: .6rem; font-size: .84rem; }
.mis__what span { color: var(--bone-45); }
.mis__bar { grid-column: 1; display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mis__bar > i { display: block; height: 100%; background: var(--gold); }
.mis__row > .btn, .mis__got { grid-column: 2; grid-row: 1 / span 2; }
.mis__got { color: var(--gold); font-size: 1.1rem; }
.mis__chest { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .8rem .9rem; border: 1px dashed var(--line); border-radius: var(--r); }
.mis__chest.is-ready { border: 1px solid var(--gold); background: var(--gold-08); }
.mis__chest-ico { display: grid; place-items: center; min-width: 3rem; height: 3rem; font: 700 .9rem var(--mono); color: var(--gold); border: 1px solid var(--gold-40); border-radius: var(--r); }
.mis__chest b { display: block; }
.mis__chest span { font-size: .78rem; color: var(--bone-70); }


/* race strip in the rail */
.race-strip { display: flex; align-items: center; gap: .5rem; margin: .5rem .6rem 0; padding: .45rem .65rem; font-size: .76rem; color: var(--bone-70); text-decoration: none; background: var(--gold-08); border: 1px solid var(--gold-40); border-radius: var(--r); }
.race-strip[hidden] { display: none; }
.race-strip b { color: var(--gold); }
.race-strip i { margin-left: auto; font-style: normal; color: var(--bone-45); }
.race-strip__t { color: var(--gold); }

/* early access */
[data-game].is-early:not(.is-locked) { position: relative; }
.gm__game.is-early::after { content: 'early'; margin-left: auto; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.gm__game.is-early.is-locked::after { content: '◆ supporters'; color: var(--gold); }
[data-game].is-early.is-locked { filter: grayscale(.6); opacity: .6; }

/* share a win from the result line */
.banner__share { margin-left: .4rem; padding: .1rem .55rem; font: inherit; font-size: .74rem; color: var(--gold); background: var(--gold-08); border: 1px solid var(--gold-40); border-radius: var(--r); cursor: pointer; }

/* home race board */
.race-head { display: flex; align-items: center; gap: .4rem; margin-bottom: .6rem; }
.race-tab { padding: .3rem .7rem; font: inherit; font-size: .74rem; color: var(--bone-70); background: none; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.race-tab.is-on { color: var(--on-accent); background: var(--gold); border-color: var(--gold); }
.race-head__left { margin-left: auto; font-size: .72rem; color: var(--bone-45); }
.row--top1 .who, .race .row--top1 .rank, .race .row--top2 .rank, .race .row--top3 .rank { color: var(--gold); }
.race-gap { margin: .5rem 0 0; font-size: .78rem; color: var(--gold); }
.mis__body .btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
@media (max-width: 1520px) { .bar .seed-chip { display: none !important; } }
