.cs-app {
  --cs-bg: rgba(var(--dty-bg-alt-rgb, 12, 12, 13), 0.99);
  --cs-stage: #09090a;
  --cs-edge: rgba(255, 255, 255, 0.09);
  --cs-edge-hi: rgba(255, 255, 255, 0.2);
  --cs-ink: var(--dty-text, #f4f4f5);
  --cs-dim: rgba(var(--dty-text-rgb, 244, 244, 245), 0.55);
  --cs-gold: #fde68a;
  color: var(--cs-ink);
}
.cs-app *, .cs-app *::before, .cs-app *::after { box-sizing: border-box; }
.cs-app button { font-family: inherit; }
.cs-app button:focus-visible, .cs-app input:focus-visible + span { outline: 2px solid var(--dty-accent, #dc2626); outline-offset: 2px; }

.cs-nav { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--cs-edge); }
.cs-tabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cs-tabs::-webkit-scrollbar { display: none; }
.cs-tab {
  flex: none; height: 30px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px;
  border-radius: 9px; border: 1px solid transparent; background: none;
  font-size: 12px; font-weight: 600; color: var(--cs-dim); cursor: pointer; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.cs-tab:hover { color: var(--cs-ink); background: rgba(255, 255, 255, 0.05); }
.cs-tab.on { color: var(--cs-ink); background: rgba(255, 255, 255, 0.08); border-color: var(--cs-edge); }
.cs-tab b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 10.5px; background: rgba(255, 255, 255, 0.1); color: var(--cs-ink); }
.cs-tab b[data-n="0"] { display: none; }
.cs-sp { flex: 1; }

@keyframes cs-shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }

.cs-ico {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border-radius: 11px; border: 1px solid var(--cs-edge); background: rgba(255, 255, 255, 0.04);
  color: var(--cs-dim); font-size: 14px; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.cs-ico:hover { color: var(--cs-ink); background: rgba(255, 255, 255, 0.1); }

.cs-coin {
  display: inline-block; flex: none; width: 1em; height: 1em; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 32% 28%, #fde68a, #fbbf24 55%, #d97706);
  box-shadow: inset 0 0 0 0.09em rgba(120, 53, 15, 0.45);
}
.cs-coin::after { content: ''; position: absolute; inset: 26%; border-radius: 50%; border: 0.08em solid rgba(120, 53, 15, 0.5); }

.cs-main { padding: 20px 22px 26px; }

.cs-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cs-intro h2 { margin: 0; font-size: 22px; font-weight: 400; letter-spacing: -0.035em; }
.cs-intro p { margin: 4px 0 0; font-size: 13px; color: var(--cs-dim); max-width: 520px; }
.cs-intro-r { display: flex; gap: 8px; flex-wrap: wrap; }

.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cs-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 14px 14px;
  border-radius: 16px; border: 1px solid var(--cs-edge); background: rgba(255, 255, 255, 0.025);
  color: inherit; text-align: center; cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.cs-card:hover { border-color: var(--cs-edge-hi); background: rgba(255, 255, 255, 0.05); }
.cs-card:active { background: rgba(255, 255, 255, 0.07); }
.cs-card .cs-crate { width: 100%; max-width: 150px; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.cs-card:hover .cs-crate { transform: translateY(-3px) scale(1.04); }
.cs-card-n { margin-top: 6px; font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; }
.cs-card-p { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--cs-gold); font-variant-numeric: tabular-nums; }
.cs-card-t { display: flex; gap: 3px; margin-top: 4px; }
.cs-card-t span { width: 16px; height: 3px; border-radius: 2px; background: var(--rc); }

.cs-crate { position: relative; aspect-ratio: 6 / 5; }
.cs-crate svg { display: block; width: 100%; height: 100%; }
.cs-crate .cb { fill: var(--c2); }
.cs-crate .cl { fill: var(--c1); }
.cs-crate .ch { fill: #fff; opacity: 0.16; }
.cs-crate .cs { fill: rgba(0, 0, 0, 0.3); }
.cs-crate .cp { fill: rgba(0, 0, 0, 0.42); stroke: var(--c1); stroke-width: 2; }
.cs-crate .cg { stroke: rgba(0, 0, 0, 0.22); stroke-width: 2; fill: none; }
.cs-crate .cr { fill: rgba(255, 255, 255, 0.38); }
.cs-crate i { position: absolute; left: 50%; top: 64%; transform: translate(-50%, -50%); font-size: 22px; color: rgba(255, 255, 255, 0.94); }

.cs-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.cs-back {
  height: 34px; padding: 0 12px 0 10px; display: inline-flex; align-items: center; gap: 8px;
  border-radius: 10px; border: 1px solid var(--cs-edge); background: rgba(255, 255, 255, 0.04);
  color: var(--cs-dim); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.cs-back:hover { color: var(--cs-ink); background: rgba(255, 255, 255, 0.1); }
.cs-bar h2 { margin: 0; font-size: 21px; font-weight: 400; letter-spacing: -0.035em; }
.cs-bar-p { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--cs-gold); font-variant-numeric: tabular-nums; }

.cs-stage { position: relative; border: 1px solid var(--cs-edge); border-radius: 16px; background: var(--cs-stage); padding: 14px 0; overflow: hidden; }
.cs-reel { position: relative; overflow: hidden; height: 184px; padding: 6px 0; }
.cs-reel::before, .cs-reel::after { content: ''; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none; }
.cs-reel::before { left: 0; background: linear-gradient(90deg, var(--cs-stage), transparent); }
.cs-reel::after { right: 0; background: linear-gradient(270deg, var(--cs-stage), transparent); }
.cs-track { display: flex; gap: 6px; will-change: transform; transition: opacity 0.2s; }
.cs-track.fresh { animation: cs-fresh 0.25s ease both; }
@keyframes cs-fresh { from { opacity: 0; } }
.cs-ptr { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; z-index: 3; background: var(--dty-accent, #dc2626); pointer-events: none; }
.cs-ptr::before, .cs-ptr::after { content: ''; position: absolute; left: -6px; border-left: 7px solid transparent; border-right: 7px solid transparent; }
.cs-ptr::before { top: 0; border-top: 9px solid var(--dty-accent, #dc2626); }
.cs-ptr::after { bottom: 0; border-bottom: 9px solid var(--dty-accent, #dc2626); }
.cs-ptr { transition: opacity 0.3s; }
.cs-reel.done .cs-ptr { opacity: 0; }
.cs-reel.done .cs-tile:not(.win) { opacity: 0.25; }
.cs-reel.done .cs-tile.win { transform: scale(1.05); border-color: var(--rc); }
.cs-reel .cs-tile { transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s; }

.cs-tile {
  --tw: 148px;
  position: relative; flex: none; width: var(--tw); height: 172px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 8px 15px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.07); text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, color-mix(in srgb, var(--rc) 22%, transparent) 100%), #121316;
}
.cs-tile::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rc); }
.cs-art { flex: 1; width: 100%; display: grid; place-items: center; font-size: 46px; line-height: 1; color: var(--rt); min-height: 0; }
.cs-pct { font-weight: 800; letter-spacing: -0.04em; }
.cs-pct small { font-size: 0.5em; margin-left: 1px; letter-spacing: 0; }
.cs-aa { font-size: 0.95em; white-space: nowrap; }
.cs-tn { margin-top: 6px; max-width: 100%; font-size: 12.5px; font-weight: 650; line-height: 1.2; }
.cs-ty { margin-top: 3px; font-size: 10.5px; color: var(--cs-dim); }
.cs-tv { margin-top: 5px; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--cs-gold); font-variant-numeric: tabular-nums; }

.cs-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.cs-btn {
  height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 12px; border: 1px solid var(--cs-edge); background: rgba(255, 255, 255, 0.06);
  color: var(--cs-ink); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.cs-btn:hover:not([disabled]) { background: rgba(255, 255, 255, 0.11); border-color: var(--cs-edge-hi); }
.cs-btn:active:not([disabled]) { transform: scale(0.98); }
.cs-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.cs-btn--pri { background: var(--dty-accent, #dc2626); border-color: transparent; color: #fff; }
.cs-btn--pri:hover:not([disabled]) { background: var(--dty-accent-hover, var(--dty-accent, #dc2626)); border-color: transparent; }
.cs-btn--pri b { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 8px; background: rgba(0, 0, 0, 0.24); font-weight: 700; font-variant-numeric: tabular-nums; }
.cs-btn--sm { height: 34px; padding: 0 14px; font-size: 12.5px; border-radius: 10px; }
.cs-btn--arm { background: rgba(248, 113, 113, 0.16); border-color: rgba(248, 113, 113, 0.5); color: #fca5a5; }
.cs-btn .cs-coin { color: var(--cs-gold); }

.cs-fast { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--cs-dim); cursor: pointer; user-select: none; }
.cs-fast input { position: absolute; opacity: 0; pointer-events: none; }
.cs-fast span { position: relative; width: 38px; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, 0.12); transition: background 0.2s; }
.cs-fast span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1); }
.cs-fast input:checked + span { background: var(--dty-accent, #dc2626); }
.cs-fast input:checked + span::after { transform: translateX(16px); }

.cs-res {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 24px;
  margin-top: 16px; padding: 18px;
  border-radius: 16px; border: 1px solid color-mix(in srgb, var(--rc) 50%, transparent);
  background: color-mix(in srgb, var(--rc) 8%, #0e0e10);
  animation: cs-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cs-res::before { content: ''; position: absolute; left: 0; top: 0; height: 3px; background: var(--rc); animation: cs-sweep 0.8s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes cs-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes cs-sweep { from { width: 0; } to { width: 100%; } }
.cs-res-t { position: relative; }
.cs-res .cs-tile { --tw: 100%; width: 100%; height: 210px; animation: cs-pop 0.6s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.cs-res .cs-art { font-size: 66px; }
.cs-res .cs-tn { font-size: 14px; }
@keyframes cs-pop { from { opacity: 0; transform: scale(0.7) rotate(-4deg); } }
.cs-res-r { font-size: 13px; font-weight: 700; color: var(--rt); }
.cs-res-i h3 { margin: 4px 0 6px; font-size: 28px; font-weight: 750; letter-spacing: -0.025em; }
.cs-res-i p { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--cs-dim); }
.cs-res-i p .cs-coin { margin-left: 2px; }
.cs-res-i p b { color: var(--cs-gold); font-weight: 700; }
.cs-res-b { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cs-res-note { margin-top: 18px; font-size: 13.5px; font-weight: 600; color: #6ee7b7; }

.cs-burst { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.cs-burst span {
  position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); border-radius: 2px; background: var(--bc);
  animation: cs-b 1s cubic-bezier(0.15, 0.8, 0.3, 1) forwards;
}
@keyframes cs-b {
  from { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }
  to { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--r)) scale(0.5); }
}

.cs-sec { margin-top: 18px; }
.cs-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cs-sec-h h3 { margin: 0; font-size: 14px; font-weight: 400; letter-spacing: -0.035em; }
.cs-sec-h span { font-size: 12px; color: var(--cs-dim); }
.cs-recent { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.cs-recent::-webkit-scrollbar { display: none; }
.cs-mini {
  position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden;
  border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.07); font-size: 15px; color: var(--rt);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--rc) 22%, transparent)), #121316;
}
.cs-mini::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rc); }
.cs-mini .cs-aa { font-size: 0.9em; }
.cs-mini .cs-pct { font-size: 0.9em; }
.cs-none { font-size: 13px; color: var(--cs-dim); }

.cs-tier { margin-top: 18px; }
.cs-tier-h { display: flex; align-items: center; gap: 9px; }
.cs-tier-h i { width: 10px; height: 10px; border-radius: 3px; background: var(--rc); }
.cs-tier-h b { font-size: 13.5px; font-weight: 700; color: var(--rt); }
.cs-tier-h span { margin-left: auto; font-size: 12px; color: var(--cs-dim); font-variant-numeric: tabular-nums; }
.cs-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin-top: 10px; }
.cs-items .cs-tile { --tw: 100%; width: 100%; height: 150px; }
.cs-items .cs-art { font-size: 38px; }

.cs-inv-h { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cs-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-chip {
  height: 32px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px;
  border-radius: 99px; border: 1px solid var(--cs-edge); background: none;
  font-size: 12.5px; font-weight: 600; color: var(--cs-dim); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.cs-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--rc); }
.cs-chip:hover { color: var(--cs-ink); background: rgba(255, 255, 255, 0.05); }
.cs-chip.on { color: var(--cs-ink); background: rgba(255, 255, 255, 0.1); border-color: var(--cs-edge-hi); }
.cs-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; font-size: 13px; color: var(--cs-dim); }
.cs-stats b { color: var(--cs-ink); font-weight: 650; }
.cs-stats .cs-coin { vertical-align: -0.12em; margin-right: 4px; }
.cs-inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cs-slot { display: flex; flex-direction: column; gap: 6px; transition: opacity 0.2s, transform 0.2s; }
.cs-slot.out { opacity: 0; transform: scale(0.9); }
.cs-slot .cs-tile { --tw: 100%; width: 100%; height: 166px; }
.cs-sell {
  height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 10px; border: 1px solid var(--cs-edge); background: rgba(255, 255, 255, 0.05);
  color: var(--cs-gold); font-size: 12.5px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums;
  transition: background 0.15s, border-color 0.15s;
}
.cs-sell:hover { background: rgba(255, 255, 255, 0.11); border-color: var(--cs-edge-hi); }
.cs-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 16px; text-align: center; color: var(--cs-dim); }
.cs-empty i { font-size: 34px; opacity: 0.6; }
.cs-empty h3 { margin: 4px 0 0; font-size: 17px; color: var(--cs-ink); }
.cs-empty p { margin: 0 0 8px; font-size: 13px; max-width: 320px; }

html body .dty-game-item[data-dty-game="cases"] .dty-game-ico { position: relative; overflow: visible; }
html body .dty-game-item[data-dty-game="cases"] .dty-game-ico::after {
  content: ''; position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50%;
  background: #34d399; border: 2px solid #121214;
}
html body .dty-game-item[data-dty-game="cases"].seen .dty-game-ico::after { display: none; }

@media (max-width: 720px) {
  .cs-main { padding: 16px 14px 22px; }
  .cs-res { grid-template-columns: 1fr; gap: 16px; }
  .cs-res-t { max-width: 190px; width: 100%; margin: 0 auto; }
  .cs-res-i { text-align: center; }
  .cs-res-i p, .cs-res-b { justify-content: center; }
  .cs-fast { margin-left: 0; }
}
@media (max-width: 560px) {
  .cs-nav { gap: 8px; padding: 8px 12px; }
  .cs-ico { width: 34px; height: 34px; }
  .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cs-reel { height: 154px; }
  .cs-tile { --tw: 118px; height: 142px; }
  .cs-art { font-size: 36px; }
  .cs-tn { font-size: 11.5px; }
  .cs-act .cs-btn { flex: 1 1 100%; }
  .cs-btn--sm { flex: none; }
  .cs-res-b .cs-btn { flex: 1 1 100%; }
  .cs-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-inv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .cs-app *, .cs-app *::before, .cs-app *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
}

.cs-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 10px; font-size: 12px; color: var(--cs-dim); font-variant-numeric: tabular-nums; }
.cs-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cs-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--rc); }
.cs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.cs-row {
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 6px; min-width: 0;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.06); border-left: 3px solid var(--rc);
  background: rgba(255, 255, 255, 0.025);
}
.cs-rico { width: 28px; height: 28px; flex: none; display: grid; place-items: center; font-size: 14px; color: var(--rt); }
.cs-rico .cs-pct { font-size: 15px; }
.cs-rn { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-rv { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--cs-gold); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .cs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cs-row { padding-right: 8px; } .cs-rv { font-size: 10.5px; } }

.cs-up-stage { display: grid; grid-template-columns: minmax(0, 1fr) 214px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--cs-edge); border-radius: 16px; background: var(--cs-stage); }
.cs-up-slot { position: relative; width: 100%; min-height: 170px; display: flex; align-items: center; justify-content: center; border-radius: 14px; border: 1px solid transparent; }
.cs-up-empty { flex-direction: column; gap: 12px; padding: 16px; border: 1px dashed var(--cs-edge-hi); background: rgba(255, 255, 255, 0.02); color: var(--cs-dim); font-size: 13px; font-weight: 600; text-align: center; }
.cs-up-empty i { font-size: 30px; opacity: 0.5; }
.cs-up-slot .cs-tile { --tw: 100%; width: 100%; max-width: 150px; height: 168px; transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease, border-color 0.4s; }
.cs-up-slot .cs-art { font-size: 46px; }
.cs-up-slot.pop .cs-tile { animation: cs-pop 0.45s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.cs-up-slot.gone .cs-tile, .cs-up-slot.lost .cs-tile { opacity: 0.28; filter: grayscale(1); transform: scale(0.94); }
.cs-up-slot.won .cs-tile { transform: scale(1.06); border-color: var(--rc); }

.cs-dial { position: relative; width: 214px; height: 214px; margin: 0 auto; --rc: var(--dty-accent, #dc2626); }
.cs-dial svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cs-dial-in { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }
.cs-dial-bg { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 10; transition: stroke 0.3s; }
.cs-dial-win { fill: none; stroke: var(--rc); stroke-width: 10; transition: stroke-dasharray 0.6s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.35s; }
.cs-dial-ptr { fill: #fff; }
.cs-dial.run .cs-dial-bg { stroke: rgba(255, 255, 255, 0.16); }
.cs-dial.win svg { animation: cs-ring 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.cs-dial.lose { animation: cs-shake 0.45s ease; }
.cs-dial.lose .cs-dial-win { stroke: #f87171; }
.cs-dial.lose .cs-dial-ptr { fill: #f87171; }
@keyframes cs-ring { 40% { transform: scale(1.06); } }
.cs-dial-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; pointer-events: none; }
.cs-dial-c b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cs-dial-c span { font-size: 12px; font-weight: 600; color: var(--cs-dim); }
.cs-dial-c em { min-height: 18px; margin-top: 4px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--cs-gold); font-variant-numeric: tabular-nums; }
.cs-dial.win .cs-dial-c b { color: #6ee7b7; }
.cs-dial.lose .cs-dial-c b { color: #f87171; }
#cs-up-pick.off, #cs-ct-pick.off { display: none; }

.cs-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.cs-lp { min-width: 0; }
.cs-clist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; align-content: start; max-height: 224px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent; }
.cs-clist .cs-none { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 0; }
.cs-ct-stage + #cs-act + #cs-ct-pick .cs-clist { max-height: 188px; }
.cs-row.cs-pick { cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.cs-row.cs-pick:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--cs-edge-hi); border-left-color: var(--rc); }
.cs-row.cs-pick.sel { background: color-mix(in srgb, var(--rc) 16%, transparent); border-color: var(--rc); }
.cs-row.cs-pick.dis { opacity: 0.4; cursor: not-allowed; }
.cs-row.cs-pick.dis:hover { background: rgba(255, 255, 255, 0.025); border-color: rgba(255, 255, 255, 0.06); border-left-color: var(--rc); }
.cs-rch { flex: none; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cs-rch.hi { color: #6ee7b7; }
.cs-rch.mid { color: var(--cs-gold); }
.cs-rch.lo { color: #fca5a5; }

.cs-res--slim { grid-template-columns: 1fr; }
.cs-res--lost { border-color: rgba(248, 113, 113, 0.45); background: color-mix(in srgb, #f87171 7%, #0e0e10); }
.cs-res--lost::before { background: #f87171; }
.cs-res--lost .cs-res-r { color: #f87171; }

.cs-ct-stage { display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: center; gap: 18px; padding: 14px; border: 1px solid var(--cs-edge); border-radius: 16px; background: var(--cs-stage); }
.cs-ct-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cs-ct-slot {
  position: relative; min-width: 0; height: 80px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 6px 4px;
  border-radius: 12px; border: 1px dashed var(--cs-edge-hi); background: rgba(255, 255, 255, 0.02);
  color: var(--cs-dim); font: inherit;
  transition: transform 0.6s cubic-bezier(0.55, 0, 0.9, 0.4), opacity 0.5s ease, border-color 0.15s;
}
.cs-ct-slot b { font-size: 17px; font-weight: 700; opacity: 0.35; }
.cs-ct-slot.f { border-style: solid; border-color: rgba(255, 255, 255, 0.07); background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--rc) 22%, transparent)), #121316; color: var(--rt); cursor: pointer; }
.cs-ct-slot.f::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rc); }
.cs-ct-slot.f:hover { border-color: var(--rc); }
.cs-ct-slot.new { animation: cs-pop 0.35s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.cs-ct-art { font-size: 24px; line-height: 1; }
.cs-ct-art .cs-pct { font-size: 1em; }
.cs-ct-nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; font-weight: 650; color: var(--cs-ink); }
.cs-ct-stage.merge .cs-ct-slot { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(0.2); opacity: 0; pointer-events: none; }

.cs-ct-out { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cs-ct-core { position: relative; width: 120px; height: 140px; display: grid; place-items: center; border-radius: 16px; border: 1px dashed var(--cs-edge-hi); background: rgba(255, 255, 255, 0.02); transition: border-color 0.3s, background 0.3s; }
.cs-ct-core .cs-tile { --tw: 100%; width: 100%; height: 100%; }
.cs-ct-core .cs-art { font-size: 40px; }
.cs-ct-q { font-size: 42px; color: var(--cs-dim); opacity: 0.4; }
.cs-ct-core.run { border-style: solid; border-color: var(--dty-accent, #dc2626); }
.cs-ct-core.hit { animation: cs-hit 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.cs-ct-core.done { border-style: solid; border-color: var(--rc); }
.cs-ct-core.done .cs-tile { animation: cs-pop 0.6s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
@keyframes cs-hit { 40% { transform: scale(1.08); } }

.cs-ct-odds { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.cs-ct-ot { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--cs-dim); }
.cs-ct-hint { font-size: 12.5px; line-height: 1.45; color: var(--cs-dim); }
.cs-ct-od { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--cs-edge); border-left: 3px solid var(--rc); background: rgba(255, 255, 255, 0.03); font-size: 12.5px; }
.cs-ct-od span { flex: 1; font-weight: 650; color: var(--rt); }
.cs-ct-od b { font-variant-numeric: tabular-nums; }
.cs-ct-iv { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; color: var(--cs-dim); }
.cs-ct-iv b { color: var(--cs-gold); font-variant-numeric: tabular-nums; }
.cs-ct-chips { margin-bottom: 14px; }

@media (max-width: 720px) {
  .cs-up-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
  .cs-up-stage .cs-dial { order: 3; grid-column: 1 / -1; width: 200px; height: 200px; }
  .cs-up-slot { min-height: 150px; }
  .cs-up-slot .cs-tile { height: 148px; }
  .cs-up-slot .cs-art { font-size: 38px; }
  .cs-lists { grid-template-columns: 1fr; }
  .cs-clist { max-height: 200px; }
  .cs-ct-stage { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  .cs-ct-core { width: 110px; height: 128px; }
}
@media (max-width: 560px) {
  .cs-ct-slots { gap: 6px; }
  .cs-ct-slot { height: 60px; gap: 3px; padding: 4px 2px; }
  .cs-ct-nm { display: none; }
  .cs-ct-art { font-size: 20px; }
  .cs-ct-slot b { font-size: 14px; }
  .cs-clist { grid-template-columns: 1fr; }
}
