/* Canime Chooser — standalone stream tool */

@import url('tokens.css');
@import url('components.css');

:root {
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(0, 255, 127, 0.08);
  --container: var(--canime-container-tool);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(139, 92, 246, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 30% at 100% 0%, rgba(0, 255, 127, 0.07), transparent 50%),
    linear-gradient(180deg, #000, #070708);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--neon); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.hidden { display: none !important; }

.accent-gradient-text {
  background: linear-gradient(135deg, var(--gold-soft), var(--neon), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Tool chrome */
.decide-shell { max-width: var(--container); margin: 0 auto; padding: 1rem 1rem 2.5rem; }
@media (min-width: 768px) { .decide-shell { padding: 1.25rem 1.5rem 3rem; } }

.decide-top {
  display: flex; flex-direction: column; gap: 1rem;
  padding-bottom: 1.25rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(245, 200, 66, 0.04) 0%, transparent 40%, rgba(0, 255, 127, 0.04) 100%);
  border-radius: var(--radius-md);
  padding: 1rem 1rem 1.25rem;
}
@media (min-width: 768px) {
  .decide-top { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}

.decide-top-brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.decide-logo-mark {
  flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 10px;
  display: grid; place-items: center; font-size: 0.625rem; font-weight: 900; color: #000;
  background: linear-gradient(135deg, var(--gold-soft), var(--neon-soft), var(--neon), var(--purple));
  box-shadow: 0 4px 16px rgba(0, 255, 127, 0.2), 0 0 20px rgba(245, 200, 66, 0.15);
}
.decide-brand { margin: 0; font-size: 1.0625rem; font-weight: 800; }
.decide-brand span { color: var(--neon); }
.decide-tagline { margin: 0.15rem 0 0; font-size: 0.8125rem; color: var(--text-dim); }

.decide-nav {
  display: flex; flex-wrap: nowrap; gap: 0.4rem; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 0.15rem;
}
.decide-nav::-webkit-scrollbar { display: none; }
.decide-nav a {
  flex-shrink: 0; padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.decide-nav a:hover { border-color: var(--border-subtle); color: var(--text); text-decoration: none; }
.decide-nav a.is-active { color: var(--text); border-color: rgba(0, 255, 127, 0.45); background: rgba(0, 255, 127, 0.08); }

.decide-foot { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--text-dim); }
.decide-foot a { font-weight: 600; }
.decide-canime-cta {
  display: inline-flex; align-items: center; margin-left: auto;
  padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid rgba(245, 200, 66, 0.4);
  background: linear-gradient(135deg, rgba(245, 200, 66, 0.12), rgba(0, 255, 127, 0.08));
  color: var(--gold-soft); font-size: 0.75rem; font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(245, 200, 66, 0.1);
}
.decide-canime-cta:hover { background: linear-gradient(135deg, rgba(245, 200, 66, 0.18), rgba(0, 255, 127, 0.12)); text-decoration: none; color: var(--gold-bright); }

.btn-primary, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.6875rem 1.25rem; border-radius: var(--radius-sm); font-family: var(--font);
  font-size: 0.8125rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s; border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--neon-soft), var(--neon)); color: #000; border-color: rgba(0, 255, 127, 0.5); box-shadow: 0 10px 28px rgba(0, 255, 127, 0.2); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.04); }
.btn-primary:disabled, .btn-outline:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.hub-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
}

.hub-select {
  appearance: none;
  -webkit-appearance: none;
}

.hub-select {
  padding-right: 2.25rem;
  background-color: rgba(0, 0, 0, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2339ff9f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  cursor: pointer;
  color-scheme: dark;
}

.hub-select:focus {
  outline: none;
  border-color: rgba(0, 255, 127, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 255, 127, 0.12);
}

.decide-code {
  padding: 0.1rem 0.35rem; border-radius: 4px; border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35); font-family: ui-monospace, monospace; font-size: 0.625rem; color: var(--neon-soft);
}

.copy-toast {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%) translateY(120%);
  z-index: 10001; padding: 0.65rem 1.1rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 700;
  color: #000; background: var(--neon); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease; pointer-events: none;
}
.copy-toast--visible { transform: translateX(-50%) translateY(0); }

@media (min-width: 1100px) {
  .decide-layout { display: grid; grid-template-columns: 1fr minmax(18rem, 22rem); gap: 1.25rem; align-items: start; }
  .decide-side { position: sticky; top: 1rem; }
  .decide-drawer { margin-top: 0; }
  .decide-drawer + .decide-drawer { margin-top: 0.75rem; }
}
.decide-main {
  padding: 0;
  min-width: 0;
}

.decide-workspace {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.decide-stage-wrap {
  max-width: none;
  margin: 0;
  padding: 0;
}

.decide-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 420px) {
  .decide-stage-head {
    flex-wrap: wrap;
  }

  .decide-mode-select {
    width: 100%;
    max-width: none;
  }
}

.decide-head-title {
  margin: 0;
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.decide-stage-head .decide-mode-select,
#decide-mode {
  width: auto;
  min-width: 9rem;
  max-width: 11rem;
  flex-shrink: 0;
  margin-left: auto;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2339ff9f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  color-scheme: dark;
}

.decide-mode-select:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(0, 255, 127, 0.12);
}

.decide-catalog-status {
  margin: 0 0 0.875rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-dim);
  font-family: ui-monospace, monospace;
}

.decide-tips-line {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-dim);
  line-height: 1.5;
}

.decide-tips-line strong {
  color: var(--neon-soft);
  font-weight: 800;
}

.decide-stage {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(245, 200, 66, 0.18);
  background: linear-gradient(165deg, rgba(245, 200, 66, 0.03), rgba(10, 10, 10, 0.98) 35%, rgba(5, 5, 5, 0.99));
  box-shadow: var(--shadow-card), var(--shadow-glow), 0 0 48px rgba(245, 200, 66, 0.06);
}

.decide-phase {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  min-height: 1.5rem;
}

.decide-ai-insight {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  line-height: 1.5;
}

.decide-ai-insight--result {
  margin: 0.5rem 0 0;
  text-align: left;
  color: var(--neon-soft);
}

.decide-smart-block {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.decide-smart-title {
  margin: 0 0 0.625rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.decide-smart-badge {
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(0, 255, 127, 0.15);
  border: 1px solid var(--border-subtle);
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--neon);
}

.decide-clear-history {
  width: 100%;
  margin-top: 0.5rem;
}

.decide-result--chooser {
  border-color: rgba(0, 255, 127, 0.35);
  background: linear-gradient(165deg, rgba(8, 12, 10, 0.98), rgba(5, 8, 6, 0.99));
}

.decide-chooser-hero {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.decide-chooser-copy {
  flex: 1;
  min-width: 0;
}

.decide-chooser-bet {
  margin: 0.625rem 0 0;
  font-family: ui-monospace, monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--neon);
  letter-spacing: 0.02em;
}

.decide-chooser-reason {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 255, 127, 0.04);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--neon-soft);
}

.decide-bet-range-block {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.decide-range-hint--inline {
  margin: -0.25rem 0 0.75rem;
}

.decide-chooser-thumb {
  flex-shrink: 0;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  object-fit: cover;
  background: var(--bg-deep);
}

.decide-highlight {
  color: var(--neon);
}

.reel-block {
  position: relative;
  margin-bottom: 0.75rem;
}

.reel-block--bet {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.reel-block-label {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.reel-stage {
  position: relative;
  overflow: hidden;
  height: 200px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.reel-stage--spinning {
  border-color: rgba(0, 255, 127, 0.45);
  box-shadow: inset 0 0 40px rgba(0, 255, 127, 0.06), 0 0 28px rgba(0, 255, 127, 0.12);
}

.reel-stage--spinning::before {
  animation: reel-edge-pulse 0.8s ease-in-out infinite alternate;
}

.reel-stage--landed {
  border-color: var(--neon);
  box-shadow: 0 0 36px rgba(0, 255, 127, 0.2);
}

@keyframes reel-edge-pulse {
  from { opacity: 0.75; }
  to { opacity: 1; }
}

.reel-stage--bet {
  height: 120px;
}

.reel-stage::before,
.reel-stage::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  z-index: 2;
  pointer-events: none;
}

.reel-stage::before {
  left: 0;
  background: linear-gradient(90deg, #0a0a0a 0%, transparent 100%);
}

.reel-stage::after {
  right: 0;
  background: linear-gradient(270deg, #0a0a0a 0%, transparent 100%);
}

.reel-stage--spinning .reel-card--center {
  filter: blur(var(--reel-motion-blur, 0));
}

.reel-track {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translate3d(0, -50%, 0);
  will-change: transform;
  backface-visibility: hidden;
}

.reel-stage--spinning .reel-track {
  transition: none;
}

.reel-stage--spinning .reel-card {
  transition: none;
}

.reel-pointer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  z-index: 5;
  filter: drop-shadow(0 2px 8px rgba(0, 255, 127, 0.45));
}

.reel-pointer--top {
  top: 0;
  border-bottom: 12px solid var(--neon);
}

.reel-pointer--bottom {
  bottom: 0;
  border-top: 12px solid var(--neon);
}

.reel-stage .reel-center-line {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--neon) 20%, var(--neon) 80%, transparent);
  opacity: 0.55;
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 255, 127, 0.5);
}

.reel-card {
  flex-shrink: 0;
  width: 156px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s, box-shadow 0.15s, opacity 0.15s, filter 0.15s;
}

.reel-card--adjacent {
  opacity: 0.82;
  transform: scale(0.96);
  filter: saturate(0.85);
}

.reel-card--far {
  opacity: 0.45;
  transform: scale(0.88);
  filter: saturate(0.5) blur(0.3px);
}

.reel-stage--bet .reel-card {
  width: 104px;
  height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.reel-card--center {
  border-color: rgba(0, 255, 127, 0.35);
  transform: scale(1.04);
}

.reel-card--landed {
  border-color: var(--neon);
  box-shadow: 0 0 0 2px rgba(0, 255, 127, 0.35), 0 12px 28px rgba(0, 255, 127, 0.12);
  animation: reel-land-pop 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes reel-land-pop {
  0% { transform: scale(1.02); }
  45% { transform: scale(1.1); }
  100% { transform: scale(1.06); }
}

.reel-thumb-wrap {
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0d0d0d, #1a1a1a);
}

.reel-thumb {
  background: #111;
}

.reel-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-thumb-fallback {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dim);
}

.reel-name {
  margin: 0;
  padding: 0.5rem 0.625rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reel-bet-val {
  font-family: ui-monospace, monospace;
  font-size: 1.25rem;
  font-weight: 800;
}

.reel-bet-unit {
  margin-top: 0.15rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--neon);
}

.decide-spin-cta {
  width: 100%;
  margin-top: 0.75rem;
  min-height: 3.25rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
}

.decide-spin-cta:not(:disabled):not(.decide-spin-cta--busy)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: cta-shine 4s ease-in-out infinite;
}

@keyframes cta-shine {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.decide-spin-cta--busy {
  opacity: 0.7;
  cursor: not-allowed;
}

.decide-hint {
  margin: 0.625rem 0 0;
  text-align: center;
  font-size: 0.6875rem;
  color: var(--text-dim);
}

.decide-hint kbd {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-family: ui-monospace, monospace;
  font-size: 0.625rem;
}

.decide-error {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f87171;
  line-height: 1.5;
}

/* Bonus hunt â€” futuristic HUD + board */
.decide-stage--hunt {
  border-color: rgba(0, 255, 127, 0.18);
}

@media (prefers-reduced-motion: no-preference) {
  .decide-stage--hunt-active {
    box-shadow: var(--shadow-card), 0 0 48px rgba(0, 255, 127, 0.08);
    animation: hunt-stage-pulse 2.4s ease-in-out infinite;
  }
}

@keyframes hunt-stage-pulse {
  0%, 100% { border-color: rgba(0, 255, 127, 0.18); }
  50% { border-color: rgba(0, 255, 127, 0.38); }
}

.hunt-hud {
  margin-bottom: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 255, 127, 0.2);
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.06), rgba(0, 0, 0, 0.4));
}

.hunt-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
}

.hunt-hud-label {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-soft);
}

.hunt-hud-count {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--neon);
}

.hunt-progress-track {
  display: flex;
  gap: 0.35rem;
}

.hunt-progress-seg {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.hunt-progress-seg--active {
  background: rgba(0, 255, 127, 0.35);
  box-shadow: 0 0 12px rgba(0, 255, 127, 0.35);
  animation: hunt-seg-pulse 0.9s ease-in-out infinite;
}

.hunt-progress-seg--done {
  background: linear-gradient(90deg, var(--neon-soft), var(--neon));
  box-shadow: 0 0 10px rgba(0, 255, 127, 0.4);
}

@keyframes hunt-seg-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.hunt-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 255, 127, 0.45);
  background: linear-gradient(180deg, rgba(0, 255, 127, 0.12), rgba(0, 255, 127, 0.04));
  box-shadow: 0 0 28px rgba(0, 255, 127, 0.15);
  animation: hunt-lock-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hunt-lock-in {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.hunt-lock-tag {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hunt-lock-bet {
  font-family: ui-monospace, monospace;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--neon);
  text-shadow: 0 0 20px rgba(0, 255, 127, 0.45);
}

.hunt-board {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.hunt-board--n1,
.hunt-board--n2 { grid-template-columns: 1fr; }
.hunt-board--n3,
.hunt-board--n4 { grid-template-columns: repeat(2, 1fr); }
.hunt-board--n5,
.hunt-board--n6 { grid-template-columns: repeat(2, 1fr); }
.hunt-board--n7,
.hunt-board--n8,
.hunt-board--n9,
.hunt-board--n10,
.hunt-board--n11,
.hunt-board--n12 { grid-template-columns: repeat(3, 1fr); }

@media (min-width: 640px) {
  .hunt-board--n5,
  .hunt-board--n6 { grid-template-columns: repeat(3, 1fr); }
}

.hunt-slot {
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem 2.5rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 4.25rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(8, 8, 8, 0.85);
  overflow: hidden;
}

.hunt-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(0, 255, 127, 0.06) 50%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none;
}

.hunt-slot--pending::before {
  animation: hunt-slot-scan 2.2s ease-in-out infinite;
}

@keyframes hunt-slot-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hunt-slot--pending {
  border-style: dashed;
  border-color: rgba(0, 255, 127, 0.2);
  opacity: 0.85;
}

.hunt-slot--locked {
  border-color: rgba(0, 255, 127, 0.4);
  background: linear-gradient(145deg, rgba(0, 255, 127, 0.08), rgba(5, 5, 5, 0.95));
  box-shadow: 0 0 20px rgba(0, 255, 127, 0.1);
  animation: hunt-slot-lock 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hunt-slot-lock {
  from { opacity: 0.4; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.hunt-slot-rank {
  font-family: ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-dim);
}

.hunt-slot--locked .hunt-slot-rank {
  color: var(--neon);
}

.hunt-slot-thumb {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(0, 255, 127, 0.25);
}

.hunt-slot-thumb-fallback {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--neon-soft);
  background: rgba(0, 255, 127, 0.08);
  border: 1px solid rgba(0, 255, 127, 0.2);
}

.hunt-slot-body {
  min-width: 0;
}

.hunt-slot-placeholder {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hunt-slot-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hunt-slot-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.625rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hunt-slot-bet {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--neon);
  white-space: nowrap;
}

.decide-result--hunt {
  border-color: rgba(0, 255, 127, 0.35);
  background: linear-gradient(165deg, rgba(8, 14, 10, 0.98), rgba(4, 6, 5, 0.99));
}

.hunt-complete-hero {
  text-align: center;
}

.hunt-complete-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hunt-stat-pill {
  min-width: 8rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 255, 127, 0.25);
  background: rgba(0, 255, 127, 0.05);
}

.hunt-stat-pill-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hunt-stat-pill-value {
  display: block;
  margin-top: 0.25rem;
  font-family: ui-monospace, monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--neon);
}

.decide-result {
  margin-top: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--decide-panel);
  box-shadow: var(--shadow-glow);
}

.decide-result-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.decide-result-label {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon);
}

.decide-result-title {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.decide-result-sub {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.decide-result-stats {
  text-align: right;
}

.decide-result-spent {
  margin: 0;
  font-family: ui-monospace, monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--neon);
}

.decide-result-left {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neon-soft);
}

.decide-result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

@media (min-width: 540px) {
  .decide-result-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .decide-result-actions .btn-primary,
  .decide-result-actions .btn-outline {
    flex: 1;
    min-width: 10rem;
  }
}

.decide-reset-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
}

.decide-reset-btn:hover {
  color: var(--text);
}

.decide-drawer {
  margin-top: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(0, 255, 127, 0.03), var(--bg-card) 55%);
  overflow: hidden;
}

.decide-drawer[open] {
  border-color: rgba(0, 255, 127, 0.22);
}

.decide-drawer--ai {
  border-color: rgba(245, 200, 66, 0.25);
  background: linear-gradient(165deg, rgba(245, 200, 66, 0.04), var(--bg-card) 55%);
}

.decide-drawer--ai[open] {
  border-color: rgba(245, 200, 66, 0.32);
}

.decide-drawer--ai summary .decide-smart-badge {
  margin-left: auto;
  color: var(--gold);
  border-color: rgba(245, 200, 66, 0.35);
  background: rgba(245, 200, 66, 0.1);
}

.decide-assistant-mount {
  padding: 0;
}

.decide-assistant-mount .hub-assistant--sidebar {
  margin: 0;
}

.decide-assistant-mount .hub-assistant-panel--sidebar {
  border: none;
  box-shadow: none;
  background: transparent;
}

.decide-drawer summary {
  cursor: pointer;
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.decide-drawer summary::-webkit-details-marker {
  display: none;
}

.decide-drawer summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.35rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s;
}

.decide-drawer[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--neon-soft);
}

.decide-drawer[open] summary {
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.decide-pool-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 255, 127, 0.12);
  border: 1px solid var(--border-subtle);
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--neon);
}

.decide-drawer-body {
  padding: 1rem;
}

.decide-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.decide-chip {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.decide-chip:hover {
  border-color: var(--border-subtle);
  color: var(--text);
}

.decide-chip--active {
  border-color: var(--neon);
  background: rgba(0, 255, 127, 0.1);
  color: var(--neon);
  font-weight: 700;
}

.decide-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.625rem;
  margin-bottom: 0.625rem;
}

.decide-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.decide-field input,
.decide-field select,
.decide-pool-search {
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--bg-deep);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.decide-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2339ff9f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  cursor: pointer;
  color-scheme: dark;
  text-overflow: ellipsis;
}

#decide-provider {
  max-width: 100%;
}

.decide-field select option {
  background: #0d0d0d;
  color: var(--text);
}

.decide-field input:focus,
.decide-field select:focus,
.decide-pool-search:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 2px rgba(0, 255, 127, 0.1);
}

.decide-sc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.625rem;
}

.decide-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}

.decide-check input {
  accent-color: var(--neon);
}

.decide-range-hint {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-dim);
  line-height: 1.5;
}

.decide-pool-search {
  width: 100%;
  margin-bottom: 0.75rem;
}

.decide-pool-table {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.decide-pool-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.decide-pool-grid th,
.decide-pool-grid td {
  padding: 0.5rem 0.625rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.decide-pool-grid th {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg-elevated);
}

.decide-pool-grid tr:last-child td {
  border-bottom: none;
}

.decide-pool-name {
  font-weight: 700;
  max-width: 14rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.decide-pool-bets {
  font-family: ui-monospace, monospace;
  font-size: 0.6875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.decide-pool-empty {
  padding: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.decide-pool-more {
  width: 100%;
  margin-top: 0.75rem;
}

.decide-vol {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vol-high {
  color: var(--pink);
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.vol-medium {
  color: var(--gold);
  background: rgba(0, 255, 127, 0.1);
  border: 1px solid rgba(0, 255, 127, 0.22);
}

.vol-low {
  color: var(--neon);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.decide-confetti {
  position: fixed;
  top: -20px;
  width: 8px;
  height: 8px;
  z-index: 9999;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .reel-card--landed {
    animation: none;
  }
}
.hunt-roi-panel {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.hunt-roi-summary {
  margin: 0.75rem 0;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 255, 127, 0.06);
  border: 1px solid rgba(0, 255, 127, 0.15);
}

.hunt-roi-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.hunt-roi-line--dim {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.hunt-roi-net--win { color: var(--neon); }
.hunt-roi-net--loss { color: var(--pink); }

.hunt-roi-save { width: 100%; margin-top: 0.5rem; }

.hunt-roi-history {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hunt-roi-history-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hunt-roi-empty {
  font-size: 0.75rem;
  color: var(--text-dim);
}

