/* Online account + 3D online duel HUD (prefix od-). */
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #a5e1c655;
  background: #a5e1c612;
  font-size: 12px;
}
.account-chip b {
  color: #e8fff4;
}
.account-chip small {
  color: var(--muted);
}
.account-chip .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7de8c1;
  box-shadow: 0 0 8px #7de8c1;
}
.account-chip.offline .live-dot {
  background: #7d8799;
  box-shadow: none;
}

/* ---- Online dialog ---------------------------------------------------------------------- */
.online-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.online-grid section,
.online-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #ffffff05;
}
.online-grid h3,
.online-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.online-form label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 4px;
}
.online-form input,
.online-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #0e131b;
  color: var(--text);
}
.online-form .error {
  display: block;
  min-height: 16px;
  color: var(--danger);
  font-size: 12px;
  margin-top: 6px;
}
.online-form button[type="submit"] {
  margin-top: 14px;
}
.online-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 10px 0 4px;
}
.online-profile .stat {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--muted);
}
.online-profile .stat b {
  font-size: 20px;
  color: var(--text);
}
.online-deck-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0;
}
.online-deck-row select {
  flex: 1;
  min-width: 180px;
}
.online-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.online-modes button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px;
  text-align: left;
}
.online-modes button small {
  color: var(--muted);
  font-weight: 400;
}
.online-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #a5e1c612;
  border: 1px solid #a5e1c644;
  margin: 12px 0;
}
.online-status .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #7de8c1;
  border-right-color: transparent;
  border-radius: 50%;
  animation: od-spin 0.9s linear infinite;
}
@keyframes od-spin {
  to {
    transform: rotate(360deg);
  }
}
.online-code {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 26px;
  letter-spacing: 6px;
  color: #ffd38a;
}
.online-seats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.online-seats div {
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff07;
}
.online-seats small {
  display: block;
  color: var(--muted);
}
.online-note {
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 760px) {
  .online-grid,
  .online-modes {
    grid-template-columns: 1fr;
  }
}

/* ---- Duel HUD ----------------------------------------------------------------------------- */
#mode-hud .od-foe,
#mode-hud .od-me {
  position: absolute;
  width: 250px;
  padding: 12px 14px;
  font-size: 12px;
}
#mode-hud .od-foe {
  left: 24px;
  top: 18px;
}
#mode-hud .od-me {
  right: 24px;
  top: 18px;
}
.od-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 6px;
}
.od-glyph {
  color: var(--accent);
}
.od-nexus {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}
.od-bar {
  height: 9px;
  border-radius: 5px;
  background: #121c25;
  border: 1px solid #ffffff22;
  overflow: hidden;
}
.od-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #b0ebc6, #51af90);
  transition: width 0.4s;
}
.od-foe .od-bar i {
  background: linear-gradient(90deg, #efaea1, #c86769);
}
.od-energy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 6px 0 2px;
}
.od-crystals {
  display: flex;
  gap: 3px;
}
.od-crystals i {
  width: 9px;
  height: 13px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: #2a3342;
}
.od-crystals i.full {
  background: #9fd3ff;
  box-shadow: 0 0 6px #9fd3ff;
}
.od-me small,
.od-foe small {
  color: var(--muted);
}
#mode-hud .od-turn {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.od-turn .pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: #2a3342cc;
  border: 1px solid #ffffff22;
  font-size: 11px;
  letter-spacing: 1.6px;
}
.od-turn .pill.mine {
  background: #a5e1c6;
  color: #0f1a16;
  border-color: #a5e1c6;
}
.od-turn b {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 6px #000;
}
.od-turn b.urgent {
  color: var(--danger);
  animation: od-blink 0.8s steps(2) infinite;
}
@keyframes od-blink {
  to {
    opacity: 0.45;
  }
}
.od-turn small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
}
#mode-hud .od-log {
  position: absolute;
  right: 24px;
  top: 150px;
  width: 250px;
  padding: 10px 14px;
  font-size: 11px;
  max-height: 40vh;
  overflow: auto;
}
.od-log ol {
  margin: 8px 0 0;
  padding-left: 16px;
  color: var(--muted);
}
.od-log li {
  margin: 3px 0;
}
#mode-hud .od-hint {
  position: absolute;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  font-size: 13px;
  border-color: #ffd38a88;
}
#mode-hud .od-actions {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
}
#mode-hud .od-actions button {
  min-width: 150px;
}
.od-nudge {
  box-shadow: 0 0 0 3px #ffbc8966;
  animation: od-pulse 1.4s ease-in-out infinite;
}
@keyframes od-pulse {
  50% {
    box-shadow: 0 0 0 7px #ffbc8922;
  }
}

/* Hand fan */
#mode-hud .od-hand {
  position: absolute;
  left: 50%;
  bottom: -14px;
  height: 230px;
  width: min(900px, 70vw);
  transform: translateX(-50%);
  pointer-events: none;
}
.od-card {
  --w: 150px;
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--w);
  height: 210px;
  margin-left: calc(var(--w) / -2);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  text-align: left;
  border-radius: 12px;
  border: 2px solid #ffffff22;
  background: linear-gradient(170deg, #1e2735, #0f141c);
  box-shadow: 0 10px 30px #000a;
  overflow: hidden;
  transform-origin: 50% 130%;
  transform: translateX(calc(var(--i) * min(60px, 7vw))) rotate(calc(var(--i) * 4deg))
    translateY(calc(var(--i) * var(--i) * 4px));
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0.92;
}
.od-card.playable {
  border-color: var(--faction);
  box-shadow:
    0 0 14px color-mix(in srgb, var(--faction) 55%, transparent),
    0 10px 30px #000a;
  opacity: 1;
}
.od-card:hover,
.od-card:focus-visible,
.od-card.selected {
  transform: translateX(calc(var(--i) * min(60px, 7vw))) translateY(-40px) scale(1.12);
  z-index: 3;
  opacity: 1;
}
.od-card.selected {
  border-color: #ffd38a;
  box-shadow: 0 0 24px #ffd38a99;
}
.od-card img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
}
.od-card strong {
  padding: 4px 8px 0;
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.od-card .od-type {
  padding: 0 8px;
  color: var(--faction);
  font-size: 9px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.od-card .od-text {
  padding: 2px 8px;
  color: #b7c2d0;
  font-size: 9.5px;
  line-height: 1.25;
  overflow: hidden;
  flex: 1;
}
.od-inactive {
  display: block;
  color: #ff8e9e;
  font-style: normal;
}
.od-cost {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #9fd3ff;
  color: #0a1620;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 8px #000a;
}
.od-stats {
  display: flex;
  justify-content: space-between;
  padding: 0 8px 6px;
  font-size: 12px;
}
.od-stats b:first-child {
  color: #ffd38a;
}
.od-stats b:last-child {
  color: #a5e1c6;
}
.od-play {
  position: absolute;
  inset: auto 0 0;
  padding: 5px;
  text-align: center;
  background: #ffd38a;
  color: #1a1408;
  font-size: 11px;
  font-weight: 600;
}
.od-card.rarity-legendary,
.od-card.rarity-mythic {
  border-image: linear-gradient(135deg, #ffd38a, #ff8654) 1;
}

/* Floating card preview (cast / detail) */
.od-cast {
  position: absolute;
  right: 300px;
  top: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(-10px) scale(0.9);
  transition:
    opacity 0.25s,
    transform 0.25s;
  pointer-events: none;
}
.od-cast.show {
  opacity: 1;
  transform: none;
}
.od-cast.mine {
  right: auto;
  left: 300px;
}
.od-cast:not(.show) {
  visibility: hidden;
}
/* Beats #mode-hud button { pointer-events: auto } from game.css. */
#mode-hud .od-cast button,
.od-cast .od-card {
  pointer-events: none;
  position: static;
  margin: 0;
  transform: none;
  width: 170px;
  height: 236px;
  pointer-events: none;
}
.od-cast-by {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 2px 6px #000;
}

.od-banner {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #fff;
  text-shadow:
    0 4px 20px #000,
    0 0 40px #ffbc8988;
  opacity: 0;
  transition:
    opacity 0.3s,
    transform 0.3s;
  pointer-events: none;
}
.od-banner.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.od-banner.mine {
  color: #d6fff0;
}
.od-banner.foe {
  color: #ffd1cc;
}

/* Unit badges over the board */
.od-badges {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.od-badge {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #0b1118d8;
  border: 1px solid #ffffff22;
  font-size: 11px;
  white-space: nowrap;
}
.od-badge b {
  color: #ffd38a;
}
.od-badge span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.5px;
}
.od-badge.ready {
  border-color: #a5e1c6;
  box-shadow: 0 0 8px #a5e1c666;
}
.od-badge[hidden] {
  display: none;
}
#canvas3d.od-pointer {
  cursor: pointer;
}
/* The toast sits over the hand fan; it is never interactive. */
#toast {
  pointer-events: none;
}

/* Overlays: ready check, connection, result */
.od-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #090d16a0;
  backdrop-filter: blur(4px);
  pointer-events: auto;
  z-index: 8;
}
.od-overlay[hidden] {
  display: none;
}
.od-overlay .panel {
  width: min(560px, calc(100% - 32px));
  padding: 30px 34px;
}
.od-overlay h2 {
  font-size: 30px;
  margin: 6px 0 10px;
  letter-spacing: -0.8px;
}
.od-overlay h2.win {
  color: #ffd38a;
}
.od-overlay p {
  color: #aeb8c7;
  font-size: 13px;
}
.od-ready-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: grid;
  gap: 6px;
}
.od-ready-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: #ffffff08;
  border-radius: 8px;
}
.od-result .panel {
  background: linear-gradient(145deg, #1a2634f4, #0e1620f2);
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}
.od-rewards {
  display: flex;
  gap: 16px;
  font-size: 14px;
}
.od-won b {
  color: #ffd38a;
}
button.danger {
  border-color: #ff8e9e66;
  color: #ffc5cd;
}
.pill.danger {
  background: #ff8e9e22;
  color: #ffc5cd;
  border: 1px solid #ff8e9e66;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
}

@media (max-width: 900px) {
  #mode-hud .od-log {
    display: none;
  }
  #mode-hud .od-foe,
  #mode-hud .od-me {
    width: 190px;
    padding: 8px 10px;
    font-size: 11px;
  }
  #mode-hud .od-actions {
    bottom: 16px;
    right: 12px;
  }
  #mode-hud .od-actions button {
    min-width: 110px;
    padding: 8px 10px;
  }
  .od-card {
    --w: 112px;
    height: 160px;
  }
  .od-card img {
    height: 60px;
  }
  .od-card .od-text {
    display: none;
  }
  #mode-hud .od-hand {
    height: 180px;
    width: 92vw;
  }
  .od-cast,
  .od-cast.mine {
    right: 12px;
    left: auto;
    top: auto;
    bottom: 200px;
  }
  .od-banner {
    font-size: 28px;
  }
}

/* ---- Collection & deck builder (oc-) ------------------------------------------------------ */
dialog:has(.oc-layout) {
  width: min(1320px, 96vw);
  max-width: 1320px;
}
.oc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.oc-tabs {
  display: flex;
  gap: 6px;
}
.oc-tabs button span {
  color: var(--muted);
  margin-left: 6px;
  font-size: 11px;
}
.oc-tabs button[aria-selected="true"] {
  background: var(--accent);
  color: #1a1408;
  border-color: var(--accent);
}
.oc-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0;
}
.oc-filters input,
.oc-filters select {
  width: auto;
  min-width: 140px;
  flex: 1;
}
.oc-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}
.oc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 8px;
  max-height: 52vh;
  overflow: auto;
  padding: 2px;
}
.oc-card {
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #ffffff1a;
  background: #0f141c;
}
.oc-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.oc-card strong {
  padding: 5px 7px 0;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oc-card small {
  padding: 0 7px 6px;
  color: var(--faction);
  font-size: 9.5px;
}
.oc-card.selected {
  border-color: var(--faction);
  box-shadow: 0 0 12px color-mix(in srgb, var(--faction) 50%, transparent);
}
.oc-card.missing img {
  filter: grayscale(1) brightness(0.45);
}
.oc-cost {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #9fd3ff;
  color: #0a1620;
  font-weight: 700;
  font-size: 11px;
}
.oc-cost.small {
  position: static;
  width: 20px;
  height: 20px;
  font-size: 10px;
}
.oc-qty,
.oc-used {
  position: absolute;
  right: 5px;
  top: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #0b1118d8;
  font-size: 10px;
}
.oc-used.full {
  background: #a5e1c6;
  color: #0f1a16;
}
.oc-detail {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #ffffff05;
  max-height: 52vh;
  overflow: auto;
}
.oc-art {
  width: 100%;
  border-radius: 10px;
  display: block;
  margin-bottom: 10px;
}
.oc-detail h3 {
  margin: 0 0 6px;
}
.oc-meta {
  color: var(--muted);
  font-size: 12px;
}
.oc-keywords span {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffffff10;
  font-size: 11px;
}
.oc-deck-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
}
.oc-decks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.oc-deck.invalid {
  border-color: #ff8e9e66;
}
.oc-deck h3 {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.oc-deck .pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffffff12;
  font-size: 10px;
  font-weight: 400;
}
.oc-deck .pill.mine {
  background: #a5e1c6;
  color: #0f1a16;
}
.oc-editor-head {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.oc-counter {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ff8e9e66;
  font-size: 13px;
}
.oc-counter.ok {
  border-color: #a5e1c6;
}
.oc-counter b {
  font-size: 18px;
}
.oc-curve {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  height: 64px;
  margin: 12px 0 4px;
}
.oc-curve div {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.oc-curve i {
  display: block;
  width: 70%;
  background: linear-gradient(#9fd3ff, #3f7fb5);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}
.oc-curve b {
  position: absolute;
  top: 0;
  font-size: 10px;
  color: var(--text);
}
.oc-problems {
  list-style: none;
  padding: 0;
  margin: 6px 0 8px;
  font-size: 12px;
  color: var(--danger);
}
.oc-problems .ok {
  color: #a5e1c6;
}
.oc-chosen {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #ffffff05;
  max-height: 52vh;
  overflow: auto;
}
.oc-chosen h3 {
  margin: 0 0 8px;
  font-size: 14px;
}
.oc-chosen-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
}
.oc-chosen-row .grow {
  flex: 1;
}
.oc-chosen-row button {
  padding: 2px 9px;
}
@media (max-width: 760px) {
  .oc-split,
  .oc-editor-head {
    grid-template-columns: 1fr;
  }
  .oc-grid,
  .oc-detail,
  .oc-chosen {
    max-height: none;
  }
}

/* ---- Third-party (CC0) polish: Kenney frames, Mechanized Magic gems/backs/icons ------------ */
#mode-hud .panel,
.online-card,
.oc-detail,
.oc-chosen,
.od-overlay .panel {
  border: 10px solid transparent;
  border-image: url("/assets/third-party/kenney-ui/panel-border-012.png") 16 / 10px round;
  background-clip: padding-box;
}
dialog {
  border: 14px solid transparent;
  border-image: url("/assets/third-party/kenney-ui/panel-border-028.png") 16 / 14px round;
  background-clip: padding-box;
}
.od-gem {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px #000c);
  pointer-events: none;
}
.oc-card .od-gem {
  right: auto;
  left: 6px;
  top: auto;
  bottom: 30px;
  width: 20px;
  height: 20px;
}
.od-keys {
  display: flex;
  gap: 3px;
  padding: 0 7px;
}
.od-keys img,
.od-badge img,
.oc-keywords img {
  width: 14px;
  height: 14px;
  vertical-align: -3px;
}
.od-badge img {
  width: 13px;
  height: 13px;
}
.od-foe-hand {
  display: flex;
  gap: 2px;
  margin-top: 6px;
  height: 26px;
}
.od-foe-hand img {
  width: 18px;
  height: 26px;
  border-radius: 2px;
  object-fit: cover;
  margin-left: -6px;
  box-shadow: 0 1px 3px #000a;
}
.od-foe-hand img:first-child {
  margin-left: 0;
}
.od-card .od-text {
  position: relative;
}

/* Compact player panels: the board's outer places must stay clickable. */
#mode-hud .od-foe,
#mode-hud .od-me {
  padding: 8px 12px;
  border-width: 8px;
  border-image-width: 8px;
}
#mode-hud .od-foe {
  padding-right: 96px;
}
.od-foe-hand {
  position: absolute;
  right: 10px;
  top: 8px;
  height: 20px;
  margin: 0;
}
.od-foe-hand img {
  width: 14px;
  height: 20px;
  margin-left: -5px;
}

/* ---- Profile screen (pf-) ---------------------------------------------------------------- */
dialog:has(.pf-layout) {
  width: min(1100px, 96vw);
  max-width: 1100px;
}
.pf-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.pf-avatar {
  width: 96px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--accent);
  flex: none;
}
.pf-avatar-empty {
  display: grid;
  place-items: center;
  font-size: 40px;
  color: var(--accent);
  background: #ffffff08;
}
.pf-exp {
  position: relative;
  height: 18px;
  border-radius: 9px;
  background: #121c25;
  border: 1px solid #ffffff22;
  overflow: hidden;
  margin-top: 8px;
  max-width: 460px;
}
.pf-exp i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #9fd3ff, #3f7fb5);
}
.pf-exp span {
  position: absolute;
  inset: 0;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 2px #000;
}
.pf-grid section {
  min-width: 0;
}
.pf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.pf-table th,
.pf-table td {
  text-align: left;
  padding: 5px 6px;
  border-bottom: 1px solid #ffffff12;
}
.pf-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
}
.pf-win {
  color: #a5e1c6;
}
.pf-loss {
  color: var(--danger);
}
.pf-rewards {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
}
.pf-rewards li {
  padding: 4px 0;
  border-bottom: 1px solid #ffffff12;
}
