:root {
  --sea: #0d2b4a;
  --panel: rgba(10, 20, 40, 0.94);
  --text: #f0f4f8;
  --accent: #4fc3f7;
  --danger: #ef5350;
  --ok: #66bb6a;
  --muted: #90a4ae;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(ellipse at top, #143d66, var(--sea) 55%);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--accent); }
button, input, select {
  font: inherit;
  background: #1a3a5c;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 10px 14px;
}
button { cursor: pointer; }
button:hover { background: #245a8a; }
button.primary { background: var(--accent); color: #0a1520; font-weight: 700; border: none; }
button.danger { background: var(--danger); border: none; color: #fff; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.panel {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(8px);
}
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 0.92rem; }
.error { color: #ff8a80; margin-top: 8px; }

/* Lobby */
.lobby {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: grid;
  gap: 18px;
}
.lobby h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.auth-grid, .create-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: end;
}
.auth-grid label, .create-grid label { display: grid; gap: 6px; font-size: 0.9rem; }
.game-list { display: grid; gap: 10px; }
.game-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(79,195,247,0.2);
  color: var(--accent);
}
.link-panel { margin-top: 14px; }
.link-panel input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}

/* Play — side rails + board + bottom actions */
.play-body {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}
.play-shell {
  --play-actions-h: 76px;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(132px, 22vw) minmax(0, 1fr) minmax(132px, 24vw);
  /* Fixed action strip → board size stays stable */
  grid-template-rows: minmax(0, 1fr) var(--play-actions-h);
  grid-template-areas:
    "left board right"
    "actions actions actions";
}
.play-rail-left { grid-area: left; }
.play-board-wrap { grid-area: board; }
.play-rail-right { grid-area: right; }
.play-actions { grid-area: actions; }

.play-rail {
  padding: 10px;
  background: var(--panel);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.play-rail-left {
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.play-rail-left > .status-row,
.play-rail-left > .dice-display,
.play-rail-left > .players-row,
.play-rail-left > .session-meta,
.play-rail-left > .error {
  flex: 0 0 auto;
}
.session-meta {
  margin-top: 8px;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.play-rail-right {
  border-left: 1px solid rgba(255,255,255,0.1);
  min-width: 0;
}
.action-group-meta {
  margin-left: auto;
  border-right: none;
  border-left: 1px solid rgba(255,255,255,0.12);
  position: sticky;
  right: 0;
  background: var(--panel);
  z-index: 2;
}
.play-actions {
  box-sizing: border-box;
  height: var(--play-actions-h);
  max-height: var(--play-actions-h);
  min-height: var(--play-actions-h);
  padding: 6px 10px;
  padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
  background: var(--panel);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  z-index: 20;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.play-actions > .action-group,
.play-actions > .action-hint {
  flex: 0 0 auto;
}
.play-actions > .action-hint {
  align-self: center;
  margin-right: 8px;
}
.play-actions button {
  padding: 7px 11px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.action-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0 12px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.action-group:last-child {
  border-right: none;
}
.action-group-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  padding-left: 1px;
}
.action-group-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}
.action-hint {
  font-size: 0.82rem;
  color: var(--accent);
  background: rgba(79,195,247,0.12);
  border: 1px solid rgba(79,195,247,0.35);
  border-radius: 8px;
  padding: 6px 10px;
  white-space: nowrap;
  max-width: min(42vw, 420px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.play-board-wrap {
  overflow: hidden;
  padding: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0a1f33;
  min-width: 0;
  min-height: 0;
}
#board {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  touch-action: manipulation;
}
.play-rail .players-row {
  flex-direction: column;
  align-items: stretch;
  margin-top: 8px;
}
.play-rail .player-pill { width: 100%; }
.play-rail .dice-display { margin: 8px 0; justify-content: center; }
.play-rail .dice-roll { flex-wrap: wrap; justify-content: center; }
.play-rail .res-bar { flex-direction: column; }
.play-rail .res-chip {
  width: 100%;
  flex-direction: row;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}
.play-rail .res-chip .res-icon { font-size: 1.2rem; }
.play-rail-left .log-box {
  flex: 1 1 auto;
  min-height: 72px;
  max-height: none;
  margin-top: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.play-rail .hand-title { margin-top: 0; }

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
}
#status { line-height: 1.35; }

/* Phones / small tablets: use floating FAB less; prefer menu control */
@media (max-width: 900px) {
  .play-body .fullscreen-fab {
    display: none;
  }
  .play-rail .player-pill {
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
  }
  .play-rail .pill-meta {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .action-group-meta {
    margin-left: auto;
  }
}

/* Portrait phones: board on top, players + hand below — avoids clipped side rails */
@media (max-width: 900px) and (orientation: portrait) {
  .play-shell {
    --play-actions-h: 92px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(150px, 34vh) var(--play-actions-h);
    grid-template-areas:
      "board board"
      "left right"
      "actions actions";
  }
  .play-rail-left {
    border-right: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .play-rail-right {
    border-left: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .play-rail { padding: 8px; }
  .play-rail-left .log-box {
    min-height: 48px;
    max-height: 28vh;
  }
  .play-rail .die-face { width: 34px; height: 34px; }
  .play-rail .dice-sum { font-size: 1rem; }
  .play-actions { padding: 6px 8px; }
  .play-actions button { padding: 8px 10px; font-size: 0.88rem; }
  .action-group { padding: 0 8px; }
  .action-hint { max-width: 48vw; }
  .awards-box { font-size: 0.72rem; padding: 6px; }
}

/* Landscape phones: keep side layout, give players more width, hide bulky log */
@media (max-width: 960px) and (orientation: landscape) {
  .play-shell {
    --play-actions-h: 68px;
    grid-template-columns: minmax(152px, 28vw) minmax(0, 1fr) minmax(132px, 24vw);
    grid-template-rows: minmax(0, 1fr) var(--play-actions-h);
    grid-template-areas:
      "left board right"
      "actions actions actions";
  }
  .play-rail { padding: 6px 8px; }
  .play-rail-left .log-box {
    display: none;
  }
  .play-rail-left .session-meta {
    font-size: 0.7rem;
    margin-top: 4px;
  }
  .play-rail .players-row {
    margin-top: 4px;
    gap: 4px;
  }
  .play-rail .player-pill {
    padding: 3px 6px;
    font-size: 0.74rem;
  }
  .play-rail .pill-meta {
    font-size: 0.66rem;
  }
  .play-rail .pill-badges {
    font-size: 0.64rem;
    padding: 1px 4px;
  }
  .awards-box {
    margin-top: 4px;
    padding: 4px 6px;
    font-size: 0.68rem;
  }
  .status-row {
    font-size: 0.78rem;
    gap: 4px;
  }
  .play-actions {
    padding: 4px 6px;
  }
  .play-actions button {
    padding: 6px 9px;
    font-size: 0.84rem;
  }
  .action-group {
    padding: 0 8px;
  }
  .action-group-meta {
    /* Keep exit-fullscreen reachable at the trailing edge of the bottom menu */
    margin-left: auto;
    padding-left: 10px;
    padding-right: 6px;
  }
  .action-hint {
    max-width: 36vw;
    font-size: 0.76rem;
    padding: 4px 8px;
  }
  .dice-stats-btn {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
}
.dice-display {
  display: flex;
  align-items: center;
  min-height: 48px;
}
.dice-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.dice-row-main { min-width: 0; flex: 1; }
.dice-roll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
}
.dice-roll-empty {
  min-height: 40px;
  color: var(--muted);
  font-size: 0.85rem;
}
.dice-stats-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.roll-stats-pop {
  position: fixed;
  z-index: 320;
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: rgba(10, 20, 40, 0.96);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
}
.roll-stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.roll-stats-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1;
}
.roll-stats-meta {
  font-size: 0.82rem;
  margin-bottom: 6px;
}
.roll-stats-hint {
  font-size: 0.72rem;
  margin-top: 4px;
}
.roll-chart { display: block; }
.roll-bar-count {
  fill: #fff;
  font-size: 9px;
  font-weight: 700;
}
.roll-bar-label {
  fill: #90a4ae;
  font-size: 10px;
  font-weight: 600;
}
.die-face {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
  flex-shrink: 0;
}
.dice-sum {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  min-width: 2.2em;
}
.dice-display-lg {
  margin: 10px 0 14px;
}
.dice-display-lg .dice-sum { font-size: 1.8rem; }

.fullscreen-fab,
.side-fab,
.hud-toggle {
  position: fixed;
  z-index: 200;
  bottom: 16px;
  right: 16px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(10, 20, 40, 0.92);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.side-fab { right: auto; left: 16px; }
.hud-toggle {
  position: static;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: none;
}
body.is-fullscreen.spectate-body .spectate-shell {
  grid-template-columns: 1fr;
}
body.is-fullscreen.spectate-body .spectate-side {
  position: fixed;
  top: 12px;
  right: 12px;
  width: min(300px, 42vw);
  max-height: calc(100vh - 24px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  z-index: 150;
}
body.is-fullscreen.spectate-body.side-collapsed .spectate-side {
  display: none;
}
body.is-fullscreen.hud-collapsed .play-rail-left,
body.is-fullscreen.hud-collapsed .play-rail-right {
  display: none;
}
body.is-fullscreen.hud-collapsed .play-shell {
  grid-template-columns: 1fr;
  grid-template-areas:
    "board"
    "actions";
}
body.is-fullscreen .fullscreen-fab {
  bottom: 72px;
}

.awards-box {
  margin-top: 8px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem;
  line-height: 1.35;
}
.award-line { margin: 2px 0; }
.pill-meta { font-size: 0.75rem; opacity: 0.9; margin-top: 2px; }
.pill-badges {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  padding: 2px 6px;
}
.pill-badges-inline { font-size: 0.85em; }
@media (max-width: 960px) {
  .play-rail .pill-badges { display: none; }
}

.hand-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 8px 0 4px;
}
.res-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.res-chip {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.85rem;
  min-width: 68px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.res-chip .res-icon { font-size: 1.35rem; line-height: 1; }
.res-chip strong { font-size: 1.25rem; line-height: 1; }
.res-chip.has { border-color: var(--accent); background: rgba(79,195,247,0.18); }
.res-chip.res-wood { border-bottom: 3px solid #2e7d32; }
.res-chip.res-brick { border-bottom: 3px solid #e64a19; }
.res-chip.res-sheep { border-bottom: 3px solid #9ccc65; }
.res-chip.res-wheat { border-bottom: 3px solid #fbc02d; }
.res-chip.res-ore { border-bottom: 3px solid #90a4ae; }
.res-chip.res-dev {
  margin-top: 6px;
  align-items: flex-start;
  min-width: unset;
  width: 100%;
}
.trade-banner {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.45);
  font-size: 0.85rem;
}
.res-pick-row { gap: 10px !important; }
.res-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 72px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
}
.res-pick-icon { font-size: 1.4rem; }
.res-pick input { width: 56px; text-align: center; }
.trade-select-row label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  min-width: 140px;
}
.trade-select-row select { min-width: 160px; }
.phase { font-weight: 700; color: var(--accent); }
.log-box {
  max-height: 90px;
  overflow: auto;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.35;
}
.log-box > div {
  display: grid;
  grid-template-columns: 4.6em 1fr;
  gap: 6px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.log-box > div:last-child { border-bottom: none; }
.log-time {
  font-variant-numeric: tabular-nums;
  color: rgba(144, 164, 174, 0.85);
  white-space: nowrap;
}
.log-text { min-width: 0; word-break: break-word; }
.players-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.player-pill {
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.8rem;
  border: 2px solid transparent;
}
.player-pill.current { border-color: #fff; }
.player-pill.me { outline: 2px dashed var(--accent); }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  padding: 12px;
}
.modal {
  width: min(480px, 100%);
  background: var(--panel);
  border-radius: 14px 14px 10px 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.15);
}
.modal h3 { margin-bottom: 10px; }
.modal .row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }

/* Spectator */
.spectate-body { overflow: hidden; background: var(--sea); }
.spectate-shell {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 280px;
}
.spectate-board {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.spectate-board #board { width: 100%; height: 100%; max-height: 100vh; }
.spectate-side {
  background: var(--panel);
  padding: 14px;
  overflow: auto;
  border-left: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 800px) {
  .spectate-shell { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .spectate-side { max-height: 34vh; border-left: none; border-top: 1px solid rgba(255,255,255,0.12); }
}

.hex { stroke: #0a1520; stroke-width: 2.5; }
.number-circle { fill: #fff; stroke: #222; stroke-width: 1.5; }
.num-text { font-weight: 700; font-size: 18px; fill: #111; text-anchor: middle; dominant-baseline: middle; }
.num-text.red { fill: #c62828; }
.pip { fill: #333; }
.settlement-piece, .city-piece { cursor: pointer; }
.road-piece { pointer-events: none; }
.settlement, .city { cursor: pointer; }
.road { stroke-linecap: round; }
.vertex-hot { fill: rgba(255,255,255,0.35); stroke: #fff; stroke-width: 2; cursor: pointer; }
.vertex-hot:hover { fill: rgba(79,195,247,0.7); }
.vertex-hot.city-hot { fill: rgba(79,195,247,0.35); stroke: #4fc3f7; stroke-width: 3; }
.edge-hot { stroke: rgba(255,255,255,0.55); stroke-width: 8; cursor: pointer; }
.edge-hot:hover { stroke: var(--accent); }
.hex-hot {
  cursor: pointer;
  pointer-events: all;
}
.hex-hot:hover,
.hex-hot:active {
  fill: rgba(255, 235, 59, 0.5) !important;
}
.hex-blocked {
  cursor: not-allowed;
  pointer-events: all;
}
.robber { font-size: 22px; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }

/* Victory celebration */
.victory-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(20, 40, 70, 0.35), transparent 55%),
    rgba(4, 10, 22, 0.78);
  backdrop-filter: blur(3px);
  animation: victory-fade-in 0.45s ease-out;
}
.victory-overlay.hidden { display: none; }
.victory-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.victory-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  text-align: center;
  padding: 28px 22px 22px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(18, 36, 62, 0.96), rgba(8, 18, 34, 0.97));
  border: 1px solid rgba(255, 213, 79, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 60px rgba(0, 0, 0, 0.45);
  animation: victory-pop 0.55s cubic-bezier(0.2, 1.2, 0.3, 1);
}
.victory-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffd54f;
  margin-bottom: 8px;
}
.victory-winner {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 8px;
  color: #fff;
  text-shadow:
    0 0 24px color-mix(in srgb, var(--winner-color, #4fc3f7) 70%, transparent),
    0 4px 0 rgba(0, 0, 0, 0.25);
  animation: victory-pulse 1.8s ease-in-out infinite;
}
.victory-sub {
  font-size: 1.15rem;
  color: #ffe082;
  margin-bottom: 18px;
}
.victory-standings {
  list-style: none;
  display: grid;
  gap: 8px;
  text-align: left;
  margin: 0 0 14px;
}
.victory-row {
  display: grid;
  grid-template-columns: 2.2em 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.victory-row.is-winner {
  background: rgba(255, 213, 79, 0.14);
  border-color: rgba(255, 213, 79, 0.4);
}
.victory-place {
  font-weight: 800;
  color: #ffd54f;
  font-variant-numeric: tabular-nums;
}
.victory-who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  min-width: 0;
}
.victory-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.victory-meta {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}
.victory-duration { margin-bottom: 14px; font-size: 0.9rem; }
.victory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
@keyframes victory-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes victory-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes victory-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
