/* Vector SVG Slot Cabinet Web Component */
dsx-reel-cabinet, dsx-dice-bench, dsx-scratch-folio, dsx-prize-wheel { display: block; }

.dsx-cabinet-shell {
  background: var(--dsx-cabinet);
  border: 3px solid var(--dsx-border);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--dsx-shadow);
  color: #f6f7f1;
  overflow: hidden;
  position: relative;
}
.dsx-cab-top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.85rem 1.15rem; background: #0e121c; border-bottom: 2px solid #2d3852;
}
.dsx-cab-title { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.dsx-cab-title strong { font-family: var(--dsx-font-display); font-size: 1.2rem; color: #ffffff; }
.dsx-cab-pill {
  padding: 0.2rem 0.55rem; border-radius: 4px; font-size: 0.76rem; font-weight: 700;
  background: #252e45; color: #e8edf7; border: 1px solid #3f4e73;
}
.dsx-cab-status { font-size: 0.9rem; font-weight: 700; color: #f5c25b; }

.dsx-cab-stage {
  position: relative; padding: 1rem; background: radial-gradient(circle at 50% 35%, #232c45 0%, #141926 75%);
}
.dsx-cab-svg {
  width: 100%; max-height: 490px; border-radius: 8px;
  border: 2px solid #3c4b70; background: #101521;
}
.dsx-bigwin-banner {
  position: absolute; inset: 1rem; border-radius: 8px;
  background: rgba(16, 21, 33, 0.88);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem;
  text-align: center; pointer-events: none;
  border: 3px solid #f2b844;
}
.dsx-bigwin-banner[hidden] { display: none; }
.dsx-bigwin-banner strong { font-family: var(--dsx-font-display); font-size: clamp(1.6rem, 4vw, 2.8rem); color: #f5c25b; }
.dsx-bigwin-banner span { font-size: 1.15rem; font-weight: 700; color: #ffffff; }

.dsx-cab-lock {
  position: absolute; inset: 0; z-index: 5;
  background: rgba(16, 21, 33, 0.94);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.dsx-cab-lock[hidden] { display: none; }
.dsx-lock-card {
  max-width: 500px; width: 100%; background: var(--dsx-surface); color: var(--dsx-ink);
  border: 2px solid var(--dsx-border); border-radius: var(--dsx-radius);
  box-shadow: 5px 5px 0 #000; padding: 1.5rem; text-align: center;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.dsx-lock-actions { display: flex; gap: 0.65rem; justify-content: center; flex-wrap: wrap; }

.dsx-cab-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 0.85rem; flex-wrap: wrap;
  padding: 0.95rem 1.15rem; background: #0e121c; border-top: 2px solid #2d3852;
}
.dsx-cab-readouts { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.dsx-readout {
  background: #1b2234; border: 1.5px solid #354364; border-radius: 6px;
  padding: 0.4rem 0.75rem; min-width: 112px;
}
.dsx-readout small { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #aeb8d0; }
.dsx-readout strong { font-size: 1.02rem; color: #ffffff; }
.dsx-readout.is-win strong { color: #f5c25b; }

.dsx-cab-buttons { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.dsx-cab-btn {
  min-height: 44px; padding: 0.48rem 0.9rem; border: 2px solid #495a82; border-radius: 6px;
  background: #1d263b; color: #f6f7f1; font-weight: 700; font-size: 0.88rem; cursor: pointer;
}
.dsx-cab-btn:hover:not(:disabled) { background: #2c3856; border-color: #f2b844; }
.dsx-cab-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dsx-cab-btn.is-active { background: #3b339e; border-color: #c2bdf5; }
.dsx-cab-spin {
  min-height: 48px; min-width: 122px; padding: 0.55rem 1.4rem;
  background: #4b6d14; color: #ffffff; border: 2px solid #e9f5d0; border-radius: 6px;
  font-size: 1rem; font-weight: 800; letter-spacing: 0.04em; cursor: pointer;
}
.dsx-cab-spin:hover:not(:disabled) { background: #3c580f; }
.dsx-cab-spin:disabled { opacity: 0.55; cursor: not-allowed; }

/* Dice & Scratch Tabletop Benches */
.dsx-bench-card {
  background: var(--dsx-cabinet); color: #f6f7f1; border: 3px solid var(--dsx-border);
  border-radius: 12px; box-shadow: 6px 6px 0 var(--dsx-shadow); padding: 1.5rem;
  position: relative; overflow: hidden;
}
.dsx-dice-scale {
  position: relative; height: 58px; border-radius: 8px; border: 2px solid #415278;
  background: #101521; margin: 1.25rem 0; overflow: hidden;
}
.dsx-dice-zone { position: absolute; top: 0; bottom: 0; background: rgba(101, 140, 34, 0.52); }
.dsx-dice-pin {
  position: absolute; top: 4px; bottom: 4px; width: 6px; border-radius: 3px;
  background: #f5c25b; transform: translateX(-50%); transition: left 0.25s ease;
}
.dsx-scratch-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem;
  max-width: 440px; margin: 1.25rem auto;
}
.dsx-scratch-tile {
  aspect-ratio: 1 / 1; border: 2.5px solid #4a5c87; border-radius: 10px;
  background: linear-gradient(135deg, #8c5a2b 0%, #c4843d 100%);
  color: #ffffff; font-weight: 800; font-size: 0.95rem; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  padding: 0.5rem; text-align: center;
}
.dsx-scratch-tile.is-revealed { background: #1d2538; border-color: #f2b844; cursor: default; }
.dsx-scratch-tile.is-match { background: #2c4a16; border-color: #c5f08b; }

/* Prize Wheel Canvas */
.dsx-wheel-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.dsx-wheel-stage { position: relative; display: inline-block; }
.dsx-wheel-pointer {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 24px solid var(--dsx-secondary); filter: drop-shadow(0 2px 0 #171d12);
}

/* Cookie Consent Banner & Modal */
.dsx-consent-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150;
  max-width: 980px; margin: 0 auto;
  background: var(--dsx-surface); color: var(--dsx-ink);
  border: 2.5px solid var(--dsx-border); border-radius: var(--dsx-radius);
  box-shadow: 5px 5px 0 var(--dsx-shadow); padding: 1.15rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.15rem; flex-wrap: wrap;
}
.dsx-consent-banner[hidden] { display: none; }
.dsx-consent-copy { flex: 1 1 360px; font-size: 0.9rem; }
.dsx-consent-copy strong { display: block; font-family: var(--dsx-font-display); font-size: 1.1rem; margin-bottom: 0.2rem; }
.dsx-consent-btns { display: flex; gap: 0.55rem; flex-wrap: wrap; }

.dsx-dialog-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(20, 25, 38, 0.72);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.dsx-dialog-backdrop[hidden] { display: none; }
.dsx-dialog-card {
  width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto;
  background: var(--dsx-surface); color: var(--dsx-ink);
  border: 2.5px solid var(--dsx-border); border-radius: var(--dsx-radius);
  box-shadow: 6px 6px 0 #0d111b; padding: 1.25rem;
}
.dsx-dialog-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding-bottom: 0.75rem; border-bottom: 2px solid var(--dsx-border); margin-bottom: 1rem;
}
.dsx-dialog-body { display: flex; flex-direction: column; gap: 0.9rem; }
.dsx-consent-row {
  padding: 0.85rem; border: 2px solid var(--dsx-border); border-radius: var(--dsx-radius-sm);
  background: var(--dsx-canvas); display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}

.dsx-toast-region {
  position: fixed; right: 1rem; top: 1rem; z-index: 220;
  display: flex; flex-direction: column; gap: 0.5rem; max-width: 340px; pointer-events: none;
}
.dsx-toast {
  background: var(--dsx-ink); color: #ffffff; border: 2px solid #f2b844;
  border-radius: var(--dsx-radius-sm); padding: 0.7rem 0.95rem; font-size: 0.88rem; font-weight: 600;
  box-shadow: 3px 3px 0 #000;
}
