.pot-banner {
  background: transparent;
  box-shadow: inset 0 0 0 1px #3dd68c;
  border-radius: 12px;
  padding: 12px 16px;
}
.pot-banner p { margin: 0; line-height: 1.5; text-wrap: pretty; }
.pot-banner p:first-child { color: #3dd68c; font-weight: 650; }
.pot-banner p:last-child { color: #d5cce6; margin-top: 2px; }
.pot-board {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: center;
}
.pot-stage { position: relative; display: grid; place-items: center; min-height: 420px; }
.wheel-pointer {
  position: absolute; z-index: 4; top: 8px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 14px solid #f1ecf8;
}
.wheel {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
}
.wheel::before {
  content: "";
  position: absolute;
  inset: 23%;
  border-radius: 50%;
  background: #1b1428;
  z-index: 1;
}
.wheel.is-empty {
  background: radial-gradient(circle, transparent 61%, rgba(255, 255, 255, 0.08) 62% 77%, transparent 78%);
}
.wheel:not(.is-empty) { box-shadow: 0 0 32px rgba(255, 122, 20, 0.16); }
.wheel-face {
  position: absolute; z-index: 2; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 0.85rem; color: #1a1020;
  border: 2px solid #14101c; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.wheel-face[data-color="#ff7a14"] { background: #ff7a14; }
.wheel-face[data-color="#a855f7"] { background: #a855f7; }
.wheel-face[data-color="#3dd68c"] { background: #3dd68c; }
.wheel-face[data-color="#38bdf8"] { background: #38bdf8; }
.wheel-face[data-color="#fb7185"] { background: #fb7185; }
.wheel-face[data-color="#eab308"] { background: #eab308; }
.wheel-face[data-color="#22d3ee"] { background: #22d3ee; }
.wheel-face[data-color="#c084fc"] { background: #c084fc; }
.wheel-face[data-color="#84cc16"] { background: #84cc16; }
.wheel-face[data-color="#f97316"] { background: #f97316; }
.wheel-face[data-color="#818cf8"] { background: #818cf8; }
.wheel-face[data-color="#f43f5e"] { background: #f43f5e; }
.wheel-hub {
  position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 2px;
  pointer-events: none;
}
.wheel-hub strong { font-size: 2.4rem; font-weight: 800; line-height: 1; color: #f1ecf8; }
.pot-clock { color: #d5cce6; font-size: 0.95rem; font-weight: 650; }
.pot-flame { flex: none; }
.pot-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; align-self: stretch; }
.pot-side form, .pot-feed { width: 100%; }
.pot-side form { display: flex; flex-direction: column; gap: 10px; }
.pot-join {
  width: 100%; height: 48px; border: 0; border-radius: 10px;
  background: #ff7a14; color: #1a1020; font-weight: 800; font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.pot-join:focus-visible { outline: 2px solid #ff7a14; outline-offset: 2px; }
.pot-side .item-row { margin: 0; }
.pot-side .item-pick { flex: 1 1 0; min-height: 52px; min-width: 0; }
.pot-feed { display: flex; flex-direction: column; gap: 4px; max-height: 420px; overflow: auto; padding-right: 4px; }
.pot-player, .pot-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pot-player { min-height: 44px; }
.pot-player .avatar { width: 28px; height: 28px; font-size: 0.75rem; }
.pot-name {
  border-radius: 999px; padding: 3px 10px; color: #1a1020; font-size: 0.82rem; font-weight: 700;
  max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pot-name[data-color="#ff7a14"] { background: #ff7a14; }
.pot-name[data-color="#a855f7"] { background: #a855f7; }
.pot-name[data-color="#3dd68c"] { background: #3dd68c; }
.pot-name[data-color="#38bdf8"] { background: #38bdf8; }
.pot-name[data-color="#fb7185"] { background: #fb7185; }
.pot-name[data-color="#eab308"] { background: #eab308; }
.pot-name[data-color="#22d3ee"] { background: #22d3ee; }
.pot-name[data-color="#c084fc"] { background: #c084fc; }
.pot-name[data-color="#84cc16"] { background: #84cc16; }
.pot-name[data-color="#f97316"] { background: #f97316; }
.pot-name[data-color="#818cf8"] { background: #818cf8; }
.pot-name[data-color="#f43f5e"] { background: #f43f5e; }
.pot-value { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #f1ecf8; flex: none; }
.pot-value svg { width: 14px; height: 14px; }
.pot-item {
  margin: 0 0 12px; min-height: 52px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05);
}
.pot-item .item-plate { width: 36px; height: 36px; border-radius: 10px; }
.pot-item b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.pot-result { width: min(520px, calc(100% - 24px)); background: #14121c; text-align: center; }
.pot-result-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
.pot-result-hero h2 { margin: 0; color: #f1ecf8; font-size: 1.6rem; }
.pot-result-hero .pot-value { margin-left: 0; font-size: 1.35rem; }
.pot-result-row .pot-name { max-width: 120px; }
.pot-result-row .pot-value { margin-left: 0; }
.pot-result-items { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.pot-result-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 8px;
  min-height: 56px; padding: 8px 10px; border-radius: 14px; background: #1b1528;
}
.pot-result-row.is-win { box-shadow: inset 0 0 0 2px #ff7a14; }
.pot-result-row b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f1ecf8; }
.pot-result-row .item-plate { width: 40px; height: 40px; }
.pot-result .modal-actions { margin-top: 16px; }
.pot-history h2 { font-size: 1rem; margin: 0 0 8px; text-wrap: balance; }
@media (max-width: 900px) {
  .pot-board { grid-template-columns: 1fr; }
  .wheel { width: min(360px, 100%); }
  .pot-feed { max-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .wheel { box-shadow: none; }
}
.seed-bar {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  margin-top: -8px; padding: 8px 10px 8px 14px; border-radius: 16px; background: #1b1528;
}
.seed-link { display: inline-flex; align-items: center; gap: 6px; flex: none; color: #f1ecf8; font-weight: 700; }
.seed-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d5cce6; }
.slot-rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.slot {
  min-height: 108px; border-radius: 18px; background: #1b1528;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px;
}
.slot-mark { width: 42px; height: 42px; border-radius: 50%; background: #2c2640; }
.slot b, .slot small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot small { color: #d5cce6; }
.join-panel h2, .panel-head h2 { display: flex; align-items: center; gap: 8px; }
.join-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.wheel-stage .timer { position: absolute; top: 0; right: 0; }
.wheel-stage .seed-line { position: absolute; left: 0; bottom: 0; }
.particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pot-line, .roulette-viewport, .seed-line, .timer { position: relative; z-index: 1; }
.pot-line { display: flex; justify-content: space-between; align-items: baseline; }
.pot-line strong, .timer { font-size: 1.6rem; font-weight: 800; }
.roulette-viewport {
  position: relative; margin-top: 16px; height: 116px; overflow: hidden;
  border-radius: 18px; background: rgba(6, 4, 12, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.roulette-pointer {
  position: absolute; z-index: 2; left: 50%; top: 0; width: 0; height: 0;
  transform: translateX(-50%);
  border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 14px solid #fff;
  filter: drop-shadow(0 0 8px rgba(255, 122, 20, 0.8));
}
.roulette-strip { position: absolute; top: 18px; left: 0; height: 80px; display: flex; will-change: transform; }
.roulette-tile {
  height: 80px; flex: 0 0 auto; border-radius: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; color: #1a1020; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
.roulette-tile span { font-size: 0.78rem; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.join-panel form + form { margin-top: 8px; }
.confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
