:root {
  --bg: #101216;
  --panel: #191c22;
  --panel2: #22262e;
  --row: #0d0f13;
  --edge: #2b303a;
  --text: #eceef2;
  --dim: #8b93a3;
  --red: #ff2d55;
  --acc2: #ff6040;
  --purple: #b98cf7;
  --green: #30d17e;
  --line: #06c755;
  --line2: #05a648;
  --yellow: #ffcf4d;
  --blue: #4da3ff;
  --blue2: #2f7fd6;
  --grad: linear-gradient(135deg, var(--red), var(--acc2));
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
html,
body {
  min-height: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  background-image: radial-gradient(
    ellipse 100% 40% at 50% -5%,
    color-mix(in srgb, var(--red) 8%, transparent),
    transparent 60%
  );
}
#app {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.ico {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.12em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#board {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge);
  padding: 14px 16px;
}
.bd-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  color: var(--dim);
  background: var(--panel2);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
}
.bd-home .ico {
  width: 15px;
  height: 15px;
}
.chips .bd-home {
  margin-left: auto;
}
.chips .bd-home + .langsw {
  margin-left: 6px;
}
.an-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.an-lang .bd-home {
  margin-left: auto;
}
@media (hover: hover) and (pointer: fine) {
  .bd-home:hover {
    color: var(--text);
    border-color: var(--red);
  }
}
.acc-skip {
  text-align: center;
  margin-top: 6px;
}
.acc-skip button {
  font: inherit;
  font-size: 13px;
  color: var(--dim);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 6px;
}
#board::before {
  content: "";
  display: block;
  height: 3px;
  margin: -14px -16px 14px;
  background: linear-gradient(90deg, var(--red), var(--acc2));
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 17px;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
}
.brand:disabled {
  color: inherit;
  opacity: 1;
  cursor: default;
}
.brand .bmark {
  width: 44px;
  height: auto;
  flex: none;
}
.brand .ph {
  margin-left: auto;
  color: var(--dim);
  font-weight: 500;
  font-size: 12px;
  background: var(--panel2);
  border-radius: 999px;
  padding: 3px 12px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.chip {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--panel2);
  border-radius: 999px;
  padding: 3px 11px;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip .ico {
  width: 0.95em;
  height: 0.95em;
  opacity: 0.85;
  color: var(--chip-c, currentColor);
}
.chip b {
  color: var(--chip-c, var(--text));
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.chip.money {
  --chip-c: var(--yellow);
}
.chip.fans {
  --chip-c: var(--red);
}
.chip.rep {
  --chip-c: var(--blue);
}
.chip.sl {
  --chip-c: var(--purple);
}
.langsw {
  display: inline-flex;
  gap: 2px;
  background: var(--panel2);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 2px;
  font-family: var(--mono);
  font-size: 12px;
}
.chips .langsw {
  margin-left: auto;
}
.card .langsw {
  float: right;
  margin: -4px 0 0;
}
.langsw button {
  background: none;
  border: 0;
  color: var(--dim);
  padding: 2px 10px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  line-height: 1.6;
}
.langsw button:hover {
  color: var(--text);
}
.langsw button.on {
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
}
.langsw button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
#stage {
  flex: 1;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.card h2 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card h2 > .ico {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 9px;
  color: #fff;
  stroke-width: 2;
  background: linear-gradient(135deg, var(--g1, var(--red)), var(--g2, var(--acc2)));
}
.card.ev h2 > .ico {
  --g1: #3d7bff;
  --g2: #4dc3ff;
}
.card.race h2 > .ico {
  --g1: #8f5cf0;
  --g2: #c98cf7;
}
.card.gold h2 > .ico {
  --g1: #e8a020;
  --g2: #ffd45c;
  color: #3a2a00;
}
.flag {
  display: inline-block;
  filter: saturate(0.5) contrast(1.06) brightness(0.96);
}
.card h2 > .flag {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 16.5px;
  line-height: 1;
  background: var(--panel2);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.nodehead {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: -6px;
}
.nodehead b {
  color: var(--text);
  background: var(--panel2);
  border-radius: 999px;
  padding: 2px 12px;
  font-weight: 700;
}
.sub {
  color: var(--dim);
  font-size: 13px;
}
.hl {
  color: var(--yellow);
}
.good {
  color: var(--green);
}
.bad {
  color: var(--red);
}
.info {
  color: var(--blue);
}
.pur {
  color: var(--purple);
}
.btn {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  background: var(--panel2);
  border: 1px solid transparent;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 15px;
  margin-top: 9px;
  font-size: 14.5px;
  font-family: var(--sans);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.05s;
}
.card > .btn {
  margin-top: 15px;
}
.btn + .btn {
  margin-top: 10px;
}
.card > :first-child {
  margin-top: 0;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    border-color: var(--red);
    background: #262b34;
  }
}
.btn:active {
  transform: scale(0.985);
}
.btn small {
  display: block;
  color: var(--dim);
  font-size: 12px;
  margin-top: 3px;
}
.btn.primary {
  background: var(--grad);
  text-align: center;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--red) 30%, transparent);
}
.btn.primary small {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}
.modepick {
  margin-top: 15px;
  margin-bottom: 18px;
}
.modepick > label.fld {
  margin-top: 0;
}
.btn.legendcta {
  background: linear-gradient(135deg, #d4881a, #f0b93a);
  color: #2a1c00;
  box-shadow: 0 4px 16px color-mix(in srgb, #e8a020 30%, transparent);
}
.btn.legendcta small {
  color: rgba(42, 28, 0, 0.78);
}
.btn.line {
  background: linear-gradient(135deg, var(--line), var(--line2));
  text-align: center;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--line) 30%, transparent);
}
.btn.donate {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  text-align: center;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--blue) 28%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .btn.donate:hover {
    filter: brightness(1.06);
    border-color: transparent;
  }
}
@media (hover: hover) and (pointer: fine) {
  .btn.line:hover {
    filter: brightness(1.08);
    border-color: transparent;
  }
}
.btn.help {
  background: var(--panel2);
  border-color: var(--edge);
  text-align: center;
  font-weight: 700;
}
.btn.primary,
.btn.help {
  line-height: 1.65;
}
@media (hover: hover) and (pointer: fine) {
  .btn.primary:hover {
    filter: brightness(1.08);
    border-color: transparent;
  }
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
  filter: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn:disabled:hover {
    border-color: transparent;
    background: var(--panel2);
  }
  .btn.primary:disabled:hover {
    background: var(--grad);
  }
}
#statsPanel {
  padding: 4px 16px 18px;
}
.spgrid {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 16px 18px;
}
.srow {
  display: grid;
  grid-template-columns: 64px 1fr 56px;
  gap: 10px;
  align-items: center;
  padding: 5px 0;
}
.srow .nm {
  font-size: 12px;
  color: var(--dim);
}
.srow .val {
  font-family: var(--mono);
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 52px;
}
.bar {
  height: 9px;
  background: var(--row);
  border: 1px solid var(--edge);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), #7cc4ff);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 9px);
  mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 9px);
}
.bar em {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background: var(--purple);
  border-radius: 2px;
}
.srow.up .val {
  color: var(--green);
}
.dice-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 14px 0 18px;
}
.die {
  width: 54px;
  height: 54px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--panel2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--dim);
  position: relative;
}
.die.active {
  border-color: var(--yellow);
  color: var(--text);
  box-shadow: 0 0 16px color-mix(in srgb, var(--yellow) 25%, transparent);
  animation: pulse 1.2s infinite;
}
.die.six {
  color: var(--purple);
  border-color: var(--purple);
}
.die.done {
  opacity: 0.5;
}
.die .tgt {
  position: absolute;
  bottom: -18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  color: var(--green);
  font-family: var(--sans);
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 22px color-mix(in srgb, var(--yellow) 45%, transparent);
  }
}
.statbtns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}
.stat-btn {
  background: var(--panel2);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-size: 13.5px;
  font-family: var(--sans);
  transition:
    border-color 0.15s,
    transform 0.05s;
}
@media (hover: hover) and (pointer: fine) {
  .stat-btn:hover {
    border-color: var(--yellow);
  }
}
.stat-btn:active {
  border-color: var(--yellow);
  transform: scale(0.985);
}
.stat-btn .cv {
  font-family: var(--mono);
  color: var(--dim);
  font-size: 11px;
}
.stat-btn .focus {
  color: var(--yellow);
}
.stat-btn .focus .ico {
  width: 0.85em;
  height: 0.85em;
}
table.res {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
  margin-top: 12px;
}
table.res td,
table.res th {
  padding: 6px;
  border-bottom: 1px solid var(--edge);
  text-align: left;
  font-variant-numeric: tabular-nums;
}
table.res th {
  color: var(--dim);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
table.res tr.me td {
  color: #fff;
  font-weight: 700;
  background: color-mix(in srgb, var(--red) 8%, transparent);
}
table.res tr.gapr td {
  color: var(--dim);
  text-align: center;
  letter-spacing: 4px;
  padding: 2px 6px;
}
.poslabel {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 24px;
  background: var(--panel2);
  border-radius: 14px;
  padding: 5px 16px;
  margin: 8px 0 4px;
}
.poslabel.p1 {
  color: var(--yellow);
  background: color-mix(in srgb, var(--yellow) 10%, transparent);
}
.poslabel.pod {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, transparent);
}
.poslabel.dnf {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 10%, transparent);
}
.bggrid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.bgcard {
  background: var(--panel2);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  transition:
    border-color 0.15s,
    transform 0.05s;
}
@media (hover: hover) and (pointer: fine) {
  .bgcard:hover {
    border-color: var(--red);
  }
}
.bgcard:active {
  border-color: var(--red);
  transform: scale(0.99);
}
.bgcard b {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bgcard b .diff {
  margin-left: auto;
  flex: none;
}
.bgcard .diff {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  font-weight: 500;
}
.bgcard small {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.5;
  display: block;
  margin-top: 2px;
}
input.txt,
textarea.txt {
  width: 100%;
  background: var(--row);
  border: 1px solid var(--edge);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 13px;
  font-size: 15px;
  font-family: var(--mono);
  margin-top: 7px;
}
input.txt:focus,
textarea.txt:focus {
  outline: none;
  border-color: var(--red);
}
textarea.txt {
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
}
#fb-status:empty {
  display: none;
}
.seedwrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  background: var(--row);
  border: 1px solid var(--edge);
  border-radius: 10px;
  margin-top: 7px;
  padding-left: 13px;
}
.seedwrap:focus-within {
  border-color: var(--red);
}
.seedwrap .pre {
  flex: none;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--dim);
  user-select: none;
}
.seedwrap input.txt {
  flex: 1;
  min-width: 0;
  width: auto;
  margin-top: 0;
  padding-left: 1px;
  border: 0;
  border-radius: 0;
  background: none;
}
label.fld {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--dim);
}
.seedbox {
  font-family: var(--mono);
  background: var(--row);
  border: 1px dashed var(--edge);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13px;
  color: var(--purple);
  margin-top: 10px;
  word-break: break-all;
}
.cardbox {
  margin-top: 12px;
}
.cardbox > .sub {
  color: var(--dim);
  font-size: 12.5px;
}
.sharecard {
  margin: 10px 0 0;
  background: var(--row);
  border: 1px solid var(--edge);
  border-radius: 12px;
  overflow: hidden;
}
.sharecard img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--panel2);
}
.sharecard figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px 8px 13px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
}
.sharecard figcaption button {
  flex: none;
  background: var(--panel2);
  border: 1px solid var(--edge);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 15px;
  cursor: pointer;
}
.sharecard figcaption button:active {
  transform: scale(0.96);
}
@media (hover: hover) and (pointer: fine) {
  .sharecard figcaption button:hover {
    border-color: var(--red);
    background: #262b34;
  }
}
.brand,
.logo {
  --rl-ink: #fff;
  --rl-red: #e2564e;
}
.logo {
  display: block;
  clear: right;
  width: 100%;
  max-width: 168px;
  height: auto;
  margin: 2px 0 10px;
}
.news {
  position: relative;
  overflow: hidden;
  margin-top: 15px;
  border-radius: 14px;
  background: #0a0b0e;
  border: 1px solid var(--edge);
}
.news::before {
  content: "";
  position: absolute;
  inset: -60px -40px auto -40px;
  height: 150px;
  background: radial-gradient(
    ellipse 60% 100% at 30% 0%,
    color-mix(in srgb, var(--red) 38%, transparent),
    transparent 70%
  );
  pointer-events: none;
}
.news.shut::before {
  display: none;
}
.news-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  text-align: left;
  padding: 13px 14px 0;
  cursor: pointer;
}
.news.shut .news-bar {
  padding-bottom: 12px;
}
.news-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--red);
  flex: none;
}
.news-date {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  background: var(--panel2);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: auto;
}
.news-mini {
  display: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  flex: 1;
}
.news-hd em,
.news-mini em {
  font-style: normal;
  color: var(--red);
}
.news-chev {
  flex: none;
  width: 7px;
  height: 7px;
  margin: -3px 3px 0 0;
  border-right: 1.6px solid var(--dim);
  border-bottom: 1.6px solid var(--dim);
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.news.shut .news-chev {
  transform: rotate(-45deg);
  margin-top: 0;
}
.news-body {
  position: relative;
  padding: 0 14px 14px;
}
.news.shut .news-body,
.news.shut .news-date {
  display: none;
}
.news.shut .news-mini {
  display: block;
}
.news-hd {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 4px;
  text-wrap: balance;
}
.news-lede {
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.55;
  margin-top: 5px;
}
.news-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.news-chips span {
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 3px 10px;
}
@media (hover: hover) and (pointer: fine) {
  .news-bar:hover .news-chev {
    border-color: var(--text);
  }
}
.news-bar:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.help-sec {
  border-top: 1px solid var(--edge);
}
.help-sec:first-of-type {
  margin-top: 14px;
}
.help-sec > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px 13px 2px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.help-sec > summary::-webkit-details-marker {
  display: none;
}
.help-sec > summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border-right: 1.6px solid var(--dim);
  border-bottom: 1.6px solid var(--dim);
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.help-sec[open] > summary::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}
.help-sec > summary::marker {
  content: "";
}
.help-sec > summary .ico {
  color: var(--red);
  font-size: 17px;
}
.help-body {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.75;
  padding: 0 2px 15px;
}
.help-body b {
  color: var(--text);
  font-weight: 700;
}
@media (hover: hover) and (pointer: fine) {
  .help-sec > summary:hover::after {
    border-color: var(--text);
  }
}
.help-sec > summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  border-radius: 8px;
}
.cardbook-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  background: var(--panel2);
  border: 1px solid var(--edge);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  cursor: pointer;
  text-align: left;
}
.cardbook-pill .mono {
  margin-left: auto;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--dim);
  font-size: 12.5px;
}
@media (hover: hover) and (pointer: fine) {
  .cardbook-pill:hover {
    border-color: var(--red);
  }
}
.cb-cap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.cb-cap-label {
  flex: none;
  font-size: 12.5px;
  color: var(--dim);
}
.cb-cap-track {
  flex: 1;
  height: 8px;
  background: var(--row);
  border: 1px solid var(--edge);
  border-radius: 999px;
  overflow: hidden;
}
.cb-cap-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 999px;
}
.cb-cap-n {
  flex: none;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--text);
}
#staging-badge {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 60;
  background: var(--yellow);
  color: #1a1400;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 3px 8px;
}
.hist-day {
  margin: 12px 0 4px;
}
.hist-day-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.06em;
  margin: 10px 0 4px;
}
.cb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.cb-chip {
  font: inherit;
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 9px;
  border: 1px solid var(--edge);
  background: none;
  color: var(--dim);
  cursor: pointer;
  white-space: nowrap;
}
.cb-chip .n {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}
.cb-chip.sel {
  color: var(--text);
  border-color: var(--dim);
  background: rgba(255, 255, 255, 0.04);
}
@media (hover: hover) and (pointer: fine) {
  .cb-chip:hover {
    border-color: var(--dim);
  }
}
.cb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.cb-tile {
  cursor: pointer;
}
.cb-thumb {
  position: relative;
  aspect-ratio: 1;
  background: var(--row);
  border: 1px solid var(--edge);
  border-radius: 10px;
  overflow: hidden;
}
.cb-thumb canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.cb-thumb-fallback {
  background: repeating-linear-gradient(135deg, var(--row) 0 8px, var(--panel2) 8px 16px);
}
.cb-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(9, 10, 14, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--yellow);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
}
.cb-no {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(9, 10, 14, 0.72);
  border-radius: 4px;
  color: var(--dim);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  padding: 1px 5px;
}
.cb-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 17px;
}
.cb-title {
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--dim);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cb-empty .cb-thumb {
  border-style: dashed;
  background: none;
}
.cb-empty .cb-title {
  opacity: 0.6;
}
.cb-archive {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--edge);
}
.cb-grid-archive .cb-thumb,
.cb-grid-archive .cb-title {
  opacity: 0.55;
}
.cb-open-stage {
  margin-top: 10px;
  position: relative;
}
.cb-open-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--edge);
}
.cb-open-fallback {
  background: var(--row);
  border: 1px dashed var(--edge);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
}
.cb-fallback-t {
  font-weight: 700;
  font-size: 15px;
}
.cb-fallback-s {
  margin-top: 6px;
  color: var(--dim);
  font-size: 12.5px;
}
.cb-spec {
  margin-top: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
}
.cb-spec dt {
  color: var(--dim);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  align-self: center;
}
.cb-spec dd {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--text);
}
.cb-open-no {
  position: absolute;
  top: 8px;
  left: 8px;
}
.cf-list {
  margin-top: 12px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--edge);
  font-size: 13px;
  cursor: pointer;
}
.cf-row input {
  flex: none;
}
.end-xp:empty {
  display: none;
}
.end-xp {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.end-xp .xpline {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.end-xp .xpline .dim {
  color: var(--dim);
  font-weight: 500;
  margin-left: 6px;
}
.end-xp .lvup {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--yellow) 45%, var(--edge));
  background: color-mix(in srgb, var(--yellow) 10%, transparent);
  font-weight: 700;
  color: var(--text);
}
.finstats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.fs {
  background: var(--panel2);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}
.fs b {
  display: block;
  font-family: var(--mono);
  font-size: 20px;
  color: var(--yellow);
}
.fs span {
  font-size: 11px;
  color: var(--dim);
}
.bio p {
  margin: 10px 0;
  color: var(--text);
}
.timeline {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  margin-top: 12px;
}
.timeline div {
  padding: 4px 0;
  border-bottom: 1px solid var(--edge);
}
.evline {
  margin: 8px 0;
}
.gain {
  font-family: var(--mono);
  font-size: 13px;
}
#foot {
  padding: 14px 16px 28px;
  text-align: center;
  color: var(--dim);
  font-size: 11px;
  font-family: var(--mono);
}
.foot-legal {
  margin-top: 4px;
}
.foot-legal a {
  color: var(--dim);
  text-decoration: none;
}
.foot-legal a:hover {
  text-decoration: underline;
}
.foot-legal span {
  margin: 0 6px;
}
.fade {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadein 0.35s ease;
}
@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
html.reduce-motion * {
  animation: none !important;
  transition: none !important;
}
.card.ev.gpcard {
  --gp-accent: #8b93a3;
  --gp-accent2: #c3cad6;
  --gp-ink: #14171d;
  --gp-tint: rgba(255, 255, 255, 0.08);
  --gp-flag: linear-gradient(180deg, #6b7280 0 33.34%, #d1d5db 33.34% 66.67%, #9ca3af 66.67%);
  --gp-motif: none;
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--gp-accent) 50%, transparent);
  background-color: var(--panel);
  background-image:
    radial-gradient(120% 90% at 88% 0%, color-mix(in srgb, var(--gp-accent) 14%, transparent), transparent 58%),
    radial-gradient(90% 80% at 0% 100%, var(--gp-tint), transparent 62%), var(--gp-motif);
  background-repeat: no-repeat, no-repeat, repeat;
  background-size:
    auto,
    auto,
    54px 54px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.32),
    0 0 0 1px color-mix(in srgb, var(--gp-accent) 16%, transparent),
    0 14px 44px color-mix(in srgb, var(--gp-accent) 13%, transparent);
}
.card.ev.gpcard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  z-index: 2;
  background: var(--gp-flag);
}
.gpscene {
  position: relative;
  margin: -18px -18px 14px;
  min-height: 144px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}
.gpsvg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.gpbg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gpscene h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 46px 16px 10px;
  background: linear-gradient(180deg, transparent, rgba(9, 10, 14, 0.72) 46%, rgba(9, 10, 14, 0.93));
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.card.ev.gpcard h2 > .ico {
  --g1: var(--gp-accent);
  --g2: var(--gp-accent2);
  color: var(--gp-ink);
}
.gpmeta {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.gptag,
.gploc {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 1px;
  border-radius: 999px;
  padding: 1px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gptag {
  flex: none;
  font-weight: 700;
  color: var(--gp-ink);
  background: linear-gradient(135deg, var(--gp-accent), var(--gp-accent2));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.gploc {
  min-width: 0;
  color: color-mix(in srgb, var(--gp-accent) 32%, #fff);
  background: rgba(9, 10, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.card.ev.gpcard .btn {
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--gp-accent) 40%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .card.ev.gpcard .btn:hover {
    border-color: var(--gp-accent);
    background: color-mix(in srgb, var(--gp-accent) 12%, var(--panel2));
  }
}
@media (max-width: 480px) {
  .gpscene {
    min-height: 118px;
  }
  .gpscene h2 {
    padding-top: 34px;
    font-size: 14.5px;
  }
  .gptag,
  .gploc {
    font-size: 10px;
    letter-spacing: 0;
    padding: 1px 8px;
  }
}
.card.ev.gp-dutch {
  --gp-accent: #ff7a18;
  --gp-accent2: #ffc24d;
  --gp-ink: #2a1400;
  --gp-tint: rgba(33, 70, 139, 0.2);
  --gp-flag: linear-gradient(180deg, #c8202f 0 33.34%, #fbfcfe 33.34% 66.67%, #2554a8 66.67%);
  --gp-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54' viewBox='0 0 54 54'%3E%3Cg fill='none' stroke='%23ff7a18' stroke-opacity='.055' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M27 44V29'/%3E%3Cpath d='M19 24c0-6 4-11 8-14 4 3 8 8 8 14-5 4-11 4-16 0z'/%3E%3Cpath d='M27 37c-5 0-9-3-10-7'/%3E%3C/g%3E%3C/svg%3E");
}
.card.ev.gp-monza .gpscene {
  background: linear-gradient(180deg, #8a1422 0 46%, #2a1520 46% 54%, #140b12 54%);
}
.card.ev.gp-monza {
  --gp-accent: #d0202f;
  --gp-accent2: #ffbe55;
  --gp-ink: #2a0507;
  --gp-tint: rgba(0, 149, 79, 0.16);
  --gp-flag: linear-gradient(90deg, #00954f 0 33.34%, #fbfcfe 33.34% 66.67%, #d0202f 66.67%);
  --gp-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54' viewBox='0 0 54 54'%3E%3Cg fill='none' stroke='%23d0202f' stroke-opacity='.055' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M15 40c4-14 8-22 12-26 4 4 8 12 12 26'/%3E%3Cpath d='M20 30c4 3 10 3 14 0'/%3E%3Cpath d='M27 14v-4'/%3E%3C/g%3E%3C/svg%3E");
}
.dutchmill {
  transform-box: view-box;
  transform-origin: 100px 58px;
  animation: dutchmill 14s linear infinite;
}
@keyframes dutchmill {
  to {
    transform: rotate(360deg);
  }
}
.mzcar {
  transform-box: view-box;
  animation: mzcar var(--mz-car, 3s) linear infinite;
}
@keyframes mzcar {
  0% {
    transform: translateX(0);
  }
  62.5% {
    transform: translateX(600px);
  }
  62.501% {
    transform: translateX(-360px);
  }
  100% {
    transform: translateX(0);
  }
}
.mzsmoke {
  transform-box: fill-box;
  animation: mzsmoke 7s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
@keyframes mzsmoke {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  to {
    transform: translate(-4px, -22px) scale(1.22);
    opacity: 0.45;
  }
}
.mzflare {
  transform-box: fill-box;
  transform-origin: center;
  animation: mzflare 3.4s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
@keyframes mzflare {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.12);
  }
}
.thx:not(.go) .thx-stage * {
  animation: none;
}
.thx {
  background: var(--row);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 14px;
  margin-top: 15px;
}
.thx-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.thx-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: var(--yellow);
  border: 1px solid color-mix(in srgb, var(--yellow) 45%, transparent);
  border-radius: 20px;
  padding: 1px 8px;
}
.thx-stage {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #101018;
}
.thx-pit {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.pit-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.po-lamp {
  fill: #3f3f52;
  animation:
    po-lamp-on 0.16s ease var(--d) forwards,
    po-lamp-off 0.14s linear 1.75s forwards;
}
.po-halo {
  fill: #ff2f2f;
  opacity: 0;
  animation:
    po-halo-on 0.16s ease var(--d) forwards,
    po-halo-off 0.14s linear 1.75s forwards;
}
@keyframes po-lamp-on {
  to {
    fill: #ff2f2f;
  }
}
@keyframes po-lamp-off {
  from {
    fill: #ff2f2f;
  }
  to {
    fill: #3f3f52;
  }
}
@keyframes po-halo-on {
  to {
    opacity: 0.42;
  }
}
@keyframes po-halo-off {
  from {
    opacity: 0.42;
  }
  to {
    opacity: 0;
  }
}
.po-car {
  animation: po-car 1.2s cubic-bezier(0.45, 0, 0.85, 0.35) 1.85s forwards;
}
@keyframes po-car {
  to {
    transform: translateX(1100px);
  }
}
.po-wheel {
  transform-box: fill-box;
  transform-origin: center;
  animation: po-wheel 1.2s cubic-bezier(0.45, 0, 0.85, 0.35) 1.85s forwards;
}
@keyframes po-wheel {
  to {
    transform: rotate(1440deg);
  }
}
.thx-scene {
  position: relative;
  background: #101018;
  padding-top: 10px;
  animation: thx-reveal 0.55s ease 2.85s backwards;
}
@keyframes thx-reveal {
  from {
    opacity: 0;
  }
}
.thx-kerb {
  height: 6px;
  background: repeating-linear-gradient(90deg, #d8262e 0 4%, #e9edf3 4% 8%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}
.thx-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 8px;
  padding: 16px 10px 6px;
  background: linear-gradient(180deg, transparent 0 14%, #161a22 14% 94%, transparent 94%);
}
.thx-n {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 2.7;
  padding: 0 8px;
  font-family: var(--sans);
  font-size: clamp(10px, 2.9vw, 12px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #141922;
  background: #39414f;
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 9px 22px -7px rgba(232, 40, 50, 0.6);
  width: 100%;
  max-width: 200px;
  justify-self: center;
}
.thx-n::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 1px;
  background: linear-gradient(180deg, #d8e1ee 0%, #c3cddd 46%, #a9b5c7 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.thx-n::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -4px;
  height: 4px;
  border-radius: 2px;
  background: #ff2f38;
  box-shadow:
    0 0 6px 1px rgba(255, 47, 56, 0.9),
    0 0 20px 6px rgba(255, 47, 56, 0.42);
}
.thx-n i {
  position: relative;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-style: normal;
  animation: thx-in 0.45s ease backwards;
}
@keyframes thx-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.thx-roll {
  padding: 16px 10px 24px;
  overflow: hidden;
  background: linear-gradient(180deg, transparent 0 12%, #161a22 12% 74%, transparent 74%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.thx-wall.roll {
  display: flex;
  gap: 0;
  width: max-content;
  padding: 0;
  background: none;
  animation: thx-roll linear infinite;
}
.thx-wall.roll .thx-n {
  width: 122px;
  max-width: none;
  flex: none;
  margin-right: 8px;
}
.thx-wall.roll .thx-n i {
  animation: none;
}
.thx-wall.roll > span {
  display: flex;
  gap: 0;
}
@keyframes thx-roll {
  to {
    transform: translateX(-50%);
  }
}
.thx-n.thx-more {
  color: #9aa3b4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.thx-n.thx-more::before {
  background: linear-gradient(180deg, #2b3240, #222833);
  box-shadow: none;
}
.thx-n.thx-more::after {
  background: #4a5464;
  box-shadow: none;
}
.thx-road {
  position: relative;
  margin-top: 8px;
  height: 42px;
  background: linear-gradient(180deg, rgba(232, 40, 50, 0.16), transparent 42%), #15181e;
}
.thx-road::before,
.thx-road::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #d72730;
}
.thx-road::before {
  top: 8px;
}
.thx-road::after {
  top: 18px;
}
.thx-msg {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--dim);
}
.thx-msg b {
  color: var(--text);
  display: block;
}
.thx .btn.donate {
  margin-top: 12px;
}
.thx-fine {
  margin-top: 8px;
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--dim) 62%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .thx-roll {
    overflow-x: auto;
  }
  .thx-wall.roll > span[aria-hidden] {
    display: none;
  }
}
.grp {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.card > .grp:first-of-type {
  margin-top: 14px;
}
.grp > * {
  margin-top: 0;
}
.grp-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1px solid var(--edge);
  padding-bottom: 8px;
}
.grp-lat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.grp-zh {
  font-size: 12px;
  color: var(--dim);
}
.cred {
  position: relative;
  margin-top: 12px;
  background: linear-gradient(180deg, var(--panel2) 0%, var(--row) 100%);
  border: 1px solid var(--edge);
  border-radius: 14px;
  overflow: hidden;
}
.cred-flip {
  perspective: 1400px;
  margin-top: 12px;
}
.cred-flip .cred {
  margin-top: 0;
}
.cred-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cred-flip.flipped .cred-inner {
  transform: rotateY(180deg);
}
.cred-front,
.cred-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.cred-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  gap: 6px;
}
.cred-back-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cred-back-zh {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}
.cred-back-head .cred-flip-btn {
  margin-left: auto;
}
.cred-flip-btn {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.cred-flip-btn .ico {
  width: 13px;
  height: 13px;
}
.rc-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}
.rc-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 2px 8px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.3);
}
.rc-date,
.rc-stat {
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}
.rc-stat .ico {
  margin: 0 2px 0 6px;
}
.rc-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.rc-empty {
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 0;
}
.cred-back-more {
  align-self: flex-end;
  font: inherit;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cred.sheen::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.05) 46%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.05) 54%,
    transparent 60%
  );
  transform: translateX(-60%);
  animation: credSheen 1.8s cubic-bezier(0.3, 0.6, 0.3, 1) 0.35s 1 forwards;
}
@keyframes credSheen {
  to {
    transform: translateX(60%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cred.sheen::after {
    animation: none;
    display: none;
  }
  .cred-inner {
    transition: none;
  }
}
.cred.empty {
  border-style: dashed;
}
.cred-top {
  display: flex;
  gap: 12px;
  padding: 14px 14px 12px;
}
.portrait {
  width: 52px;
  height: 64px;
  flex: none;
  padding: 0;
  font: inherit;
  cursor: default;
  border: 1px solid var(--edge);
  border-radius: 6px;
  background: var(--row);
  display: grid;
  place-items: center;
  color: var(--dim);
}
.portrait .ico {
  width: 26px;
  height: 26px;
}
button.portrait {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
button.portrait .edit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.55);
  padding: 1px 0;
}
button.portrait[aria-expanded="true"] {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}
.avpop {
  margin-top: 8px;
}
.avpop .avbox {
  margin-top: 0;
}
.avbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.avclose {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--edge);
  background: var(--row);
  color: var(--dim);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.avclose .ico {
  width: 12px;
  height: 12px;
}
.grp-sub {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}
.grp-sub .grp-lat {
  font-size: 10px;
}
.cred-id {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.cred-name {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cred-name.muted {
  color: var(--dim);
  font-weight: 500;
}
.cred-mail {
  font-size: 11.5px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kv {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 5px;
}
.kv > div {
  display: flex;
  flex-direction: column;
}
.kv .k {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.kv .v {
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.kv .v.muted {
  color: var(--dim);
}
.cred-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px dashed var(--edge);
  background: rgba(0, 0, 0, 0.2);
}
.barcode {
  flex: 1;
  height: 18px;
  min-width: 30px;
  background: repeating-linear-gradient(
    90deg,
    var(--dim) 0 1px,
    transparent 1px 3px,
    var(--dim) 3px 5px,
    transparent 5px 6px,
    var(--dim) 6px 7px,
    transparent 7px 10px,
    var(--dim) 10px 12px,
    transparent 12px 13px
  );
  opacity: 0.55;
}
.barcode.off {
  opacity: 0.15;
}
.pill {
  display: inline-flex;
  align-items: center;
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 9px;
  border: 1px solid var(--edge);
  color: var(--dim);
  white-space: nowrap;
}
.pill.on {
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 40%, var(--edge));
}
.cred[class*="tier-"]::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--metal2), var(--metal) 45%, #fff6 55%, var(--metal) 66%, var(--metal2));
}
.cred.tier-bronze {
  --metal: #c07a4c;
  --metal2: #8a5433;
  background: linear-gradient(135deg, #3a2718 0%, #7a5330 38%, #2c1d12 55%, #6a4828 100%);
}
.cred.tier-silver {
  --metal: #b6c0cf;
  --metal2: #79839a;
  background: linear-gradient(135deg, #2e343d 0%, #8b96a6 38%, #262b33 55%, #7d8899 100%);
}
.cred.tier-titanium {
  --metal: #9aa3c9;
  --metal2: #4e5680;
  background: linear-gradient(135deg, #262a3f 0%, #7d86b3 38%, #1f2236 55%, #6c74a5 100%);
}
.cred.tier-gold {
  --metal: #e0b453;
  --metal2: #a67c2b;
  background: linear-gradient(135deg, #3f3210 0%, #c9a33f 38%, #302608 55%, #b48f2a 100%);
  box-shadow:
    0 0 0 1px rgba(224, 180, 83, 0.55),
    0 0 22px rgba(224, 180, 83, 0.32);
}
.cred[class*="tier-"] .cred-mail,
.cred[class*="tier-"] .kv .k {
  color: rgba(255, 255, 255, 0.72);
}
.cred[class*="tier-"] .kv .v {
  color: #fff;
}
.cred[class*="tier-"] .cred-strip {
  background: rgba(0, 0, 0, 0.42);
  border-top-color: rgba(255, 255, 255, 0.18);
}
.cred[class*="tier-"] .barcode {
  opacity: 0.8;
}
.cred[class*="tier-"] .portrait {
  background: rgba(0, 0, 0, 0.45);
  border-color: color-mix(in srgb, var(--metal) 55%, transparent);
}
.cred[class*="tier-"] .pill {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
}
.cred[class*="tier-"] .pill.on {
  color: var(--green);
}
.cred-lv {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 10px;
  padding: 4px 14px 10px;
}
.lv-txt {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
}
.lv-txt small {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.8;
  margin-left: 5px;
}
.lv-track {
  height: 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.lv-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), #fff);
  border-radius: 4px;
}
.lv-num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pp-chip {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 3px 10px 3px 8px;
  font-variant-numeric: tabular-nums;
}
.pp-chip .ico {
  color: var(--yellow);
}
.pp-chip small {
  font-family: var(--sans);
  font-weight: 500;
  opacity: 0.75;
}
.helm {
  display: inline-block;
  vertical-align: middle;
  --hl-base: #7a8390;
  --hl-accent: #f4f6fa;
  --hl-visor: #0e1116;
  --hl-edge: rgba(0, 0, 0, 0.4);
}
.helm svg {
  width: 100%;
  height: 100%;
  display: block;
}
.helm.helm-sm {
  width: 20px;
  height: 20px;
}
.helm.helm-md {
  width: 30px;
  height: 30px;
}
.helm.helm-lg {
  width: 40px;
  height: 40px;
}
.hc-red {
  --hl-base: #c62b2b;
}
.hc-blue {
  --hl-base: #2f6fd0;
}
.hc-yellow {
  --hl-base: #e6b422;
  --hl-accent: #2b2410;
}
.hc-green {
  --hl-base: #2fa866;
}
.hc-orange {
  --hl-base: #f06a2a;
}
.hc-purple {
  --hl-base: #7d5fd6;
}
.hc-white {
  --hl-base: #e8ecf1;
  --hl-accent: #39424d;
}
.hc-black {
  --hl-base: #23262d;
  --hl-accent: #e8ecf1;
  --hl-edge: rgba(255, 255, 255, 0.35);
}
.helm.hp-stripe {
  --hl-p1: var(--hl-accent);
}
.helm.hp-duo {
  --hl-p2: var(--hl-accent);
}
.helm.hp-chequer {
  --hl-p3: var(--hl-accent);
}
.helm.hp-silverline {
  --hl-line: #d6dde6;
}
.helm.hp-titanline {
  --hl-line: #aeb6e0;
}
.helm.hp-goldline {
  --hl-line: #f0c860;
}
.helm.hp-legend {
  --hl-line: var(--red);
  --hl-star: var(--red);
}
.portrait .helm {
  color: inherit;
}
.avbox {
  margin-top: 10px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 12px;
  background: var(--panel2);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sw {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--hl-base);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  padding: 0;
}
.sw.sel {
  border-color: var(--text);
}
.patterns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pat {
  position: relative;
  background: var(--row);
  border: 1px solid var(--edge);
  border-radius: 9px;
  padding: 6px 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--dim);
}
.pat.sel {
  border-color: var(--red);
}
.pat[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.pat[disabled]::after {
  content: attr(data-lv);
  position: absolute;
  right: 4px;
  bottom: 2px;
  font-family: var(--mono);
  font-size: 8.5px;
}
.pat > .ico {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 11px;
  height: 11px;
}
.qlist {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qlist::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: var(--edge);
}
.qlist .q {
  position: relative;
  padding: 11px 12px 12px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--panel2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.q-dot {
  position: absolute;
  left: -32px;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--edge);
  background: var(--panel);
  display: grid;
  place-items: center;
  color: transparent;
}
.q-dot .ico {
  width: 12px;
  height: 12px;
  stroke-width: 2.6;
}
.q.done {
  border-color: color-mix(in srgb, var(--green) 26%, var(--edge));
}
.q.done .q-dot {
  border-color: var(--green);
  color: var(--green);
  background: color-mix(in srgb, var(--green) 14%, var(--panel));
}
.q-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.q-title {
  font-size: 14px;
  font-weight: 700;
}
.q-state {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--dim);
  white-space: nowrap;
}
.q.done .q-state {
  color: var(--green);
}
.q-desc {
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.6;
}
.q .btn.line {
  width: 100%;
}
.q .fld {
  margin-top: 2px;
}
.pack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--panel2);
}
.pack + .pack {
  margin-top: 8px;
}
.pack .nm {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  min-width: 0;
}
.pack .meta {
  font-size: 11px;
  font-weight: 400;
  color: var(--dim);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.tierchip {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--edge);
  color: var(--dim);
}
.tierchip.t200 {
  color: var(--blue);
  border-color: color-mix(in srgb, var(--blue) 40%, var(--edge));
}
.tierchip.t300 {
  color: var(--yellow);
  border-color: color-mix(in srgb, var(--yellow) 40%, var(--edge));
}
.pack .act {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.pack .price {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pack .price.good {
  color: var(--green);
  font-size: 12px;
}
.pack .price.dim {
  color: var(--dim);
  font-size: 12px;
  font-family: var(--sans);
  font-weight: 500;
}
.pack .btn {
  width: auto;
  margin-top: 0;
  padding: 4px 10px;
  font-size: 11.5px;
  border-radius: 8px;
}
.pack .btn.pp {
  color: var(--yellow);
}
.pack.owned {
  border-color: color-mix(in srgb, var(--green) 30%, var(--edge));
}
.pack.incart {
  border-color: var(--red);
}
.cart {
  margin-top: 10px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--row);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cart .ln {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.cart .ln b {
  color: var(--text);
}
.cart .ln.total {
  border-top: 1px dashed var(--edge);
  padding-top: 7px;
  margin-top: 3px;
  font-size: 14px;
}
.cart .ln.total b {
  font-family: var(--mono);
  font-size: 16px;
}
.cart .save {
  color: var(--green);
  font-weight: 700;
}
.cart .btn {
  margin-top: 6px;
}
.ladder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 2px;
}
.ladder span {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 0;
  border-radius: 6px;
  border: 1px solid var(--edge);
  color: var(--dim);
  white-space: nowrap;
}
.ladder span.on {
  color: var(--text);
  border-color: var(--red);
  background: color-mix(in srgb, var(--red) 12%, transparent);
}
.q-mode {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  color: var(--dim);
  margin: 2px 0 8px;
}
.q-mode .q-mode-tail {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.qlist .q-mode-inline {
  list-style: none;
  margin: 6px 0 -2px;
  padding: 0;
  border: 0;
  background: none;
  display: flex;
  flex-direction: row;
}
.q-more {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.q-more[hidden] {
  display: none;
}
.q-toggle {
  margin-top: 8px;
  width: 100%;
  font: inherit;
  font-size: 12.5px;
  color: var(--dim);
  background: none;
  border: 1px dashed var(--edge);
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.q-toggle:hover {
  border-color: var(--red);
  color: var(--text);
}
.qlist .q.q-simple {
  padding: 9px 12px;
  gap: 0;
}
.qlist .q.q-stage {
  border-style: dashed;
}
.wheel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--panel2);
}
.wheel-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wheel-title {
  font-size: 14px;
  font-weight: 700;
  margin-right: auto;
}
.wheel-tickets {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 2px 8px;
}
.wheel-x2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: #111;
  background: var(--yellow);
  border-radius: 999px;
  padding: 2px 7px;
}
.wheel-track {
  border-radius: 10px;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(48, 209, 126, 0.08), transparent 70%), var(--row);
  overflow: hidden;
}
.wheel-svg {
  width: 100%;
  height: auto;
  display: block;
}
.wt-seg {
  transition: filter 0.3s;
}
.wt-seg.lit {
  filter: brightness(1.6) drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}
.wt-lbl {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  fill: #fff;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.55);
  stroke-width: 2px;
}
.wt-lamp {
  fill: #3f3f52;
}
.wt-halo {
  fill: #ff2f2f;
  opacity: 0;
}
.wt-go .wt-lamp {
  animation:
    po-lamp-on 0.16s ease var(--d) forwards,
    po-lamp-off 0.14s linear 1.5s forwards;
}
.wt-go .wt-halo {
  animation:
    po-halo-on 0.16s ease var(--d) forwards,
    po-halo-off 0.14s linear 1.5s forwards;
}
.wheel-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wheel-btn {
  width: auto;
}
.wheel-result {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-basis: 100%;
}
.wheel-result.tier-rare {
  color: var(--blue);
}
.wheel-result.tier-epic {
  color: var(--yellow);
}
.wheel-today {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.wt-chip {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 6px;
  padding: 2px 7px;
  background: #2b303a;
}
.wt-chip.tier-good {
  background: #1f5f43;
}
.wt-chip.tier-rare {
  background: #1e4f8a;
}
.wt-chip.tier-epic {
  background: #8a6a1d;
}
.rlm-title {
  font-size: 18px;
  font-weight: 800;
}
.rlm-text {
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.6;
}
.rlm-skip {
  font: inherit;
  font-size: 13px;
  color: var(--dim);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 6px;
}
.wheel-modal,
.rl-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 9, 12, 0.72);
  animation: wm-fade 0.25s ease both;
}
.wm-card {
  width: min(320px, 100%);
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 22px 20px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: wm-pop 0.45s cubic-bezier(0.2, 1.2, 0.3, 1) both;
}
.wheel-modal.tier-good .wm-card {
  border-color: #1f5f43;
}
.wheel-modal.tier-rare .wm-card {
  border-color: #1e4f8a;
  box-shadow:
    0 0 0 1px #1e4f8a,
    0 24px 60px rgba(0, 0, 0, 0.55);
}
.wheel-modal.tier-epic .wm-card {
  border-color: var(--yellow);
  box-shadow:
    0 0 24px rgba(255, 207, 77, 0.35),
    0 24px 60px rgba(0, 0, 0, 0.55);
}
.wm-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.wm-icon {
  width: 72px;
  height: 72px;
}
.wm-big {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}
.wheel-modal.tier-rare .wm-big {
  color: var(--blue);
}
.wheel-modal.tier-epic .wm-big {
  color: var(--yellow);
}
.wm-sub {
  font-size: 13px;
  color: var(--dim);
}
.wm-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: #111;
  background: var(--yellow);
  border-radius: 999px;
  padding: 2px 8px;
}
.wm-tag.warn {
  background: var(--panel2);
  color: var(--dim);
  border: 1px solid var(--edge);
}
.wm-btn {
  width: 100%;
  margin-top: 8px;
}
@keyframes wm-fade {
  from {
    opacity: 0;
  }
}
@keyframes wm-pop {
  from {
    transform: translateY(18px) scale(0.92);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wheel-modal,
  .wm-card {
    animation: none;
  }
}
.ppshop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ppcard {
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--panel2);
  padding: 10px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.ppcard .ppn {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ppcard .ppn .ico {
  color: var(--yellow);
}
.ppcard .ppb {
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}
.ppcard .ppb.dim {
  color: var(--dim);
  font-weight: 400;
}
.ppcard .ppp {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.ppcard .btn {
  width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  font-size: 12.5px;
}
.lg-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.cardbook-pill .helm {
  flex: none;
}
.field {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.field input.txt {
  flex: 1;
  min-width: 0;
  margin-top: 0;
}
.field > .btn {
  flex: none;
  width: auto;
  margin-top: 0;
  padding: 0 14px;
}
.row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--panel2);
  color: var(--text);
  font-size: 14px;
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
}
.row .txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.row .txt small {
  display: block;
  color: var(--dim);
  font-size: 11.5px;
  font-weight: 400;
  margin-top: 2px;
}
.row .tail {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.row > .ico:last-child {
  flex: none;
  color: var(--dim);
}
@media (hover: hover) and (pointer: fine) {
  .row:hover {
    border-color: var(--red);
  }
}
.row.danger {
  border-color: color-mix(in srgb, var(--red) 26%, var(--edge));
  color: color-mix(in srgb, var(--red) 78%, var(--text));
}
.row.danger .txt small {
  color: color-mix(in srgb, var(--red) 55%, var(--dim));
}
.row.note {
  background: none;
  border-style: dashed;
  cursor: default;
}
.row.center {
  justify-content: center;
  color: var(--dim);
}
.row.note.center {
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .row.note:hover {
    border-color: var(--edge);
  }
  .row.note.center:hover {
    border-color: var(--red);
  }
}
.plan {
  margin-top: 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--panel2);
}
.plan:first-child {
  margin-top: 0;
}
.plan-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.plan .ico {
  flex: none;
  color: var(--dim);
  margin-top: 2px;
}
.plan .body {
  flex: 1;
  min-width: 0;
}
.plan .nm {
  font-size: 14px;
  font-weight: 700;
}
.plan .price {
  flex: none;
  text-align: right;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.plan-status {
  font-size: 13px;
}
