/* ═══════════════════════════════════════════════════
   SlotDrop — Premium polish (shared across all pages)
   Loaded after inline styles so it can refine them.
   ═══════════════════════════════════════════════════ */

/* ── Global refinement ── */
html { scroll-behavior: smooth; }
::selection { background: rgba(0,255,136,.25); color: #fff; }
:focus-visible { outline: 2px solid #00ff88; outline-offset: 2px; border-radius: 6px; }

/* Slim premium scrollbar (desktop) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b141d; }
::-webkit-scrollbar-thumb { background: #1f3044; border-radius: 8px; border: 2px solid #0b141d; }
::-webkit-scrollbar-thumb:hover { background: #2a4058; }

/* Gradient headline treatment */
main h1 {
  background: linear-gradient(100deg, #e8f0f8 20%, #00ff88 65%, #00c6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Card dealing animation (applied by premium.js) ── */
.sd-deal {
  animation: sdDeal .45s cubic-bezier(.2,.85,.3,1.05) backwards;
}
@keyframes sdDeal {
  from { opacity: 0; transform: translateY(-30px) rotate(-7deg) scale(.8); filter: brightness(1.6); }
  60%  { filter: brightness(1.15); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* Poker calculator: pop when a slot receives a card */
.card-slot.selected .card-display { animation: sdPop .3s cubic-bezier(.3,1.6,.5,1) backwards; }
@keyframes sdPop {
  from { transform: scale(.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Subtle lift on hover — pointer devices only */
@media (hover:hover) {
  .card:hover, .pk-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.5); transition: transform .2s, box-shadow .2s; }
  .drill-btn:hover:not(:disabled) { filter: brightness(1.12); }
  .pk-lock-btn:hover:not(:disabled) { filter: brightness(1.1); box-shadow: 0 4px 18px rgba(0,255,136,.35); }
}
.card, .pk-card { transition: transform .2s, box-shadow .2s; }

/* ── Verdict / feedback reveal ── */
.verdict.show, .drill-feedback.show, .pk-drill-fb.show, .result-area.show {
  animation: sdRise .38s cubic-bezier(.2,.8,.3,1) backwards;
}
@keyframes sdRise {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* ── XP bar shimmer ── */
.xp-bar-fill, .pct-bar-fill, .h-xp-fill { position: relative; overflow: hidden; }
.xp-bar-fill::after, .pct-bar-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sdShine 2.8s ease-in-out infinite;
}
@keyframes sdShine { 55% { transform: translateX(100%); } 100% { transform: translateX(100%); } }

/* ── Streak flame pulse (added by premium.js at 3+) ── */
.sd-streak-hot { animation: sdFlame .8s ease-in-out infinite; display: inline-block; }
@keyframes sdFlame {
  0%,100% { transform: scale(1); text-shadow: 0 0 6px rgba(255,159,67,.6); }
  50%     { transform: scale(1.18); text-shadow: 0 0 14px rgba(255,159,67,.9); }
}

/* ── Floating "STREAK" banner ── */
.sd-streak-banner {
  position: fixed; left: 50%; top: 38%; transform: translate(-50%,-50%) scale(.7);
  padding: 12px 28px; border-radius: 16px; z-index: 10001; pointer-events: none;
  background: linear-gradient(135deg, rgba(17,29,40,.95), rgba(31,48,68,.95));
  border: 1.5px solid #ffd700; color: #ffd700;
  font-weight: 900; font-size: 22px; letter-spacing: .06em; text-align: center;
  box-shadow: 0 8px 40px rgba(255,215,0,.25);
  animation: sdBanner 1.6s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes sdBanner {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(.7); }
  15%  { opacity: 1; transform: translate(-50%,-50%) scale(1.05); }
  25%  { transform: translate(-50%,-50%) scale(1); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,-62%) scale(1); }
}

/* ── Confetti canvas ── */
#sd-confetti {
  position: fixed; inset: 0; z-index: 10000; pointer-events: none;
}

/* ── Mute button ── */
#sd-mute {
  position: fixed; right: 14px; bottom: 86px; z-index: 9000;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(17,29,40,.9); border: 1.5px solid #1f3044;
  color: #e8f0f8; font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  transition: transform .15s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
#sd-mute:hover { border-color: #00ff88; }
#sd-mute:active { transform: scale(.9); }

/* ── Button press micro-interaction (site-wide, safe classes) ── */
.rank-btn, .suit-btn, .tool-tab, .mode-btn, .new-hand-btn, .zone-reset, .reset {
  transition: transform .12s, filter .15s, background .2s, color .2s, border-color .2s;
}
.rank-btn:active, .suit-btn:active, .new-hand-btn:active, .zone-reset:active, .reset:active { transform: scale(.93); }

/* ── XP float: richer arc ── */
.xp-float { text-shadow: 0 0 12px rgba(0,255,136,.8); font-weight: 900 !important; }

/* ═══════════════════════════════════════════════════
   V2 DESIGN LAYER — ambient depth, glass, fluid type
   ═══════════════════════════════════════════════════ */

/* ── Seamless page transitions (View Transitions API, Chrome/Edge) ── */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* ── Ambient aurora background (injected by premium.js) ── */
html { background: #0b141d; }
body { background: transparent !important; }
.sd-ambient { position: fixed; inset: -20%; z-index: -1; pointer-events: none; overflow: hidden; }
.sd-ambient i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .14; will-change: transform; }
.sd-ambient .a { width: 55vw; height: 55vw; min-width:320px; min-height:320px; left: -12%; top: -14%; background: #00ff88; animation: sdDrift1 26s ease-in-out infinite alternate; }
.sd-ambient .b { width: 48vw; height: 48vw; min-width:280px; min-height:280px; right: -10%; bottom: -12%; background: #00c6ff; animation: sdDrift2 32s ease-in-out infinite alternate; }
.sd-ambient .c { width: 30vw; height: 30vw; left: 40%; top: 55%; background: #a29bfe; opacity: .07; animation: sdDrift1 38s ease-in-out infinite alternate-reverse; }
@keyframes sdDrift1 { to { transform: translate(9vw, 7vh) scale(1.15); } }
@keyframes sdDrift2 { to { transform: translate(-8vw, -6vh) scale(1.08); } }
/* film grain for texture */
.sd-ambient::after {
  content: ''; position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

/* ── Glassmorphism on the main panels (all pages) ── */
.table, .poker-table,
.panel,                    /* roulette + safer-play */
.roulette-container,       /* slots reel (index + slotdrop) */
.contact-form,             /* contact */
.reg-box {                 /* register modals */
  background: linear-gradient(165deg, rgba(17,29,40,.82), rgba(11,20,29,.9));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255,255,255,.07);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.05);
}
.help-item {
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .2s, border-color .2s;
}
@media (hover:hover) { .help-item:hover { transform: translateY(-3px); border-color: rgba(0,255,136,.4); } }
.tool-tabs, .mode-switch {
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,.08);
}
.seo-section, .donate-section, .verdict {
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal-box, .levelup-box {
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06), 0 0 60px -20px rgba(0,255,136,.25);
}

/* ── Fluid, balanced typography ── */
h1 { text-wrap: balance; }
h2, h3 { text-wrap: balance; }
main h1 { font-size: clamp(24px, 4.6vw, 40px); letter-spacing: -.02em; }
.wrap h1 { font-size: clamp(22px, 4.2vw, 34px); letter-spacing: -.02em; }
.subtitle { text-wrap: pretty; }

/* ── Luminous primary CTAs with shine sweep (all pages) ── */
.affiliate-btn, .bonus-btn, .pk-lock-btn, .levelup-cta-real, .cta .p,
.spin-btn, .reg-btn-primary {
  position: relative; overflow: hidden;
  background-image: linear-gradient(135deg, #00ff88 0%, #00e07c 55%, #00c6ff 140%);
  box-shadow: 0 8px 28px -8px rgba(0,255,136,.55), inset 0 1px 0 rgba(255,255,255,.35);
}
.affiliate-btn::after, .bonus-btn::after, .pk-lock-btn::after, .levelup-cta-real::after, .cta .p::after,
.spin-btn::after, .reg-btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .6s ease;
  pointer-events: none;
}
@media (hover:hover) {
  .affiliate-btn:hover::after, .bonus-btn:hover::after, .pk-lock-btn:hover:not(:disabled)::after,
  .levelup-cta-real:hover::after, .cta .p:hover::after,
  .spin-btn:hover:not(:disabled)::after, .reg-btn-primary:hover::after { transform: translateX(120%); }
}
/* contact page: submit button already has its own sweep — just add the glow */
.submit-btn { box-shadow: 0 8px 28px -8px rgba(0,255,136,.55), inset 0 1px 0 rgba(255,255,255,.35); }
/* the header bonus button was green-on-green after the gradient — force dark text
   (!important: the page rule uses the same specificity and cache states vary) */
.bonus-btn, .bonus-btn:hover, .bonus-btn:focus-visible {
  color: #0b141d !important;
  border-color: transparent !important;
  text-shadow: none !important;
}

/* ═══ ENGAGEMENT: quests button, panel, streak flame ═══ */
#sd-quests {
  position: fixed; right: 14px; bottom: calc(138px + env(safe-area-inset-bottom, 0px)); z-index: 9000;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(17,29,40,.9); border: 1.5px solid #1f3044;
  font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  transition: transform .15s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
#sd-quests:hover { border-color: #00ff88; }
#sd-quests:active { transform: scale(.9); }
#sd-quests.sd-q-ready { border-color: #ffd700; animation: sdChestPulse 1.6s ease-in-out infinite; }
@keyframes sdChestPulse {
  0%,100% { box-shadow: 0 4px 16px rgba(0,0,0,.4), 0 0 0 0 rgba(255,215,0,.5); }
  50%     { box-shadow: 0 4px 16px rgba(0,0,0,.4), 0 0 0 9px rgba(255,215,0,0); }
}
#sd-qpanel {
  position: fixed; right: 12px; bottom: calc(190px + env(safe-area-inset-bottom, 0px)); z-index: 9001;
  width: min(340px, calc(100vw - 24px));
  background: linear-gradient(165deg, rgba(17,29,40,.97), rgba(11,20,29,.98));
  border: 1px solid rgba(255,255,255,.09); border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.7);
  opacity: 0; transform: translateY(12px) scale(.97); pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.8,.3,1);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #e8f0f8;
}
#sd-qpanel.open { opacity: 1; transform: none; pointer-events: auto; }
.sd-q-head { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 15px; }
.sd-q-streak { margin-left: auto; font-size: 12px; font-weight: 800; color: #ff9f43; }
.sd-q-close { background: none; border: none; color: #7a98b8; font-size: 14px; cursor: pointer; padding: 4px; }
.sd-q-sub { font-size: 12px; color: #7a98b8; margin: 4px 0 12px; }
.sd-q-sub b { color: #00ff88; }
.sd-q-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px;
  text-decoration: none; color: inherit; margin-bottom: 6px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
  transition: border-color .2s;
}
.sd-q-row:hover { border-color: rgba(0,255,136,.35); }
.sd-q-row.done { opacity: .75; }
.sd-q-ico { font-size: 18px; flex-shrink: 0; }
.sd-q-mid { flex: 1; min-width: 0; }
.sd-q-label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 4px; }
.sd-q-track { display: block; height: 5px; background: rgba(255,255,255,.08); border-radius: 5px; overflow: hidden; }
.sd-q-fill { display: block; height: 100%; background: linear-gradient(90deg, #00c96e, #00ff88); border-radius: 5px; transition: width .4s; }
.sd-q-row.done .sd-q-fill { background: linear-gradient(90deg, #00ff88, #00c6ff); }
.sd-q-check { font-size: 13px; font-weight: 900; color: #00ff88; flex-shrink: 0; }
.sd-q-chest {
  margin-top: 10px; padding: 12px; border-radius: 12px; text-align: center;
  font-size: 13px; font-weight: 800; color: #7a98b8;
  background: rgba(255,255,255,.03); border: 1.5px dashed rgba(255,255,255,.15);
  width: 100%; font-family: inherit;
}
.sd-q-chest.ready {
  cursor: pointer; color: #0b141d; border: none;
  background: linear-gradient(135deg, #ffd700, #ff9f43);
  box-shadow: 0 8px 24px -8px rgba(255,215,0,.6);
  animation: sdChestPulse 1.6s ease-in-out infinite;
}
.sd-q-chest.ready:active { transform: scale(.97); }
.sd-q-chest.claimed { border-style: solid; color: #ffd700; }
#sd-flame {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(255,159,67,.12); border: 1px solid rgba(255,159,67,.4);
  border-radius: 20px; padding: 4px 10px; margin-right: 10px;
  font-size: 13px; font-weight: 900; color: #ff9f43; cursor: pointer;
  font-family: inherit; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
#sd-flame b { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  #sd-quests.sd-q-ready, .sd-q-chest.ready { animation: none !important; }
}

/* ── Mobile nav: fade hint so users know it scrolls ── */
@media (max-width: 639px) {
  .site-nav {
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent 99%);
    mask-image: linear-gradient(90deg, #000 86%, transparent 99%);
  }
  .nav-link { font-size: 13px; padding: 0 10px; flex-shrink: 0; }
}

/* ── Active tab glow breathing ── */
.tool-tab.active, .mode-btn.active { animation: sdBreath 3.2s ease-in-out infinite; }
@keyframes sdBreath {
  0%,100% { box-shadow: 0 2px 12px rgba(0,255,136,.35); }
  50%     { box-shadow: 0 2px 22px rgba(0,255,136,.6); }
}

/* ── Scroll progress bar ── */
#sd-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9999;
  background: linear-gradient(90deg, #00ff88, #00c6ff);
  box-shadow: 0 0 10px rgba(0,255,136,.6);
  transition: width .08s linear;
}

/* ── Scroll reveal (tagged by premium.js) ── */
[data-sdr] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1); }
[data-sdr].sd-in { opacity: 1; transform: none; }

/* ── 3D tilt support ── */
.card, .pk-card { transform-style: preserve-3d; }

/* ═══════════════════════════════════════════════════
   V3 — APPLE-GRADE LAYER
   Rendering quality, physics, materials, invisible details
   ═══════════════════════════════════════════════════ */

/* ── Rendering: crisp type, native dark controls ── */
html { color-scheme: dark; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
main h1, .wrap h1 { letter-spacing: -.032em; }
h2, h3 { letter-spacing: -.018em; }
.drill-stats b, .pk-drill-stats b, .pk-guess-val, .xp-points, .lb-xp, .ds-score { font-variant-numeric: tabular-nums; }

/* ── Retina hairline borders (0.5px like iOS) ── */
@media (min-resolution: 2dppx) {
  .table, .poker-table, .panel, .contact-form, .roulette-container,
  .tool-tabs, .mode-switch, .verdict, .seo-section, .reg-box { border-width: .5px; }
}

/* ── Spring physics on press (Apple's bounce) ── */
.drill-btn, .pk-lock-btn, .affiliate-btn, .spin-btn, .bonus-btn, .reg-btn-primary,
.new-hand-btn, .mode-btn, .tool-tab, .rank-btn, .suit-btn, .drill-chip, .ds-share-btn {
  transition-timing-function: cubic-bezier(.34,1.56,.64,1);
}
.affiliate-btn:active, .spin-btn:active, .bonus-btn:active, .reg-btn-primary:active { transform: scale(.96); }

/* ── Cursor spotlight on glass panels (coords set by premium.js) ── */
.table, .poker-table, .panel, .contact-form, .roulette-container { position: relative; }
.sd-spot::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 1;
  background: radial-gradient(460px circle at var(--mx,50%) var(--my,50%), rgba(0,255,136,.06), transparent 65%);
  opacity: 0; transition: opacity .35s ease;
}
.sd-spot:hover::before { opacity: 1; }

/* ── Scroll-driven parallax on the aurora (cutting-edge CSS) ── */
@supports (animation-timeline: scroll()) {
  .sd-ambient { animation: sdPar linear both; animation-timeline: scroll(); }
}
@keyframes sdPar { from { transform: translateY(0); } to { transform: translateY(-7%); } }

/* ── Magnetic CTAs (transform set by premium.js) ── */
.sd-mag { transition: transform .3s cubic-bezier(.34,1.56,.64,1); will-change: transform; }

/* ── iPhone safe areas ── */
#sd-mute {
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  right: calc(14px + env(safe-area-inset-right, 0px));
}
.sd-streak-banner { top: calc(38% + env(safe-area-inset-top, 0px)); }

/* ── Performance: lazy-render long editorial sections ── */
.seo-section { content-visibility: auto; contain-intrinsic-size: auto 600px; }

/* ── Respect reduced transparency (accessibility) ── */
@media (prefers-reduced-transparency: reduce) {
  .table, .poker-table, .panel, .contact-form, .roulette-container, .reg-box,
  .tool-tabs, .mode-switch, .modal-box, .levelup-box {
    background: #111d28; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}

/* ── Accessibility: honour reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sd-deal, .verdict.show, .drill-feedback.show, .pk-drill-fb.show, .result-area.show,
  .card-slot.selected .card-display, .sd-streak-hot, .sd-streak-banner,
  .sd-ambient i, .tool-tab.active, .mode-btn.active { animation: none !important; }
  .xp-bar-fill::after, .pct-bar-fill::after { animation: none !important; content: none; }
  .card, .pk-card { transition: none; }
  [data-sdr] { opacity: 1; transform: none; transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .sd-ambient { animation: none !important; }
  .sd-spot::before { display: none; }
  .sd-mag { transition: none; }
}

/* ═══════════════════════════════════════════════════
   V4 — PRODUCT-GRADE LAYER
   Sticky glass header, living gradients, 3D card flips
   ═══════════════════════════════════════════════════ */

/* ── Glass header (app feel) ──
   Main pages already have a fixed header — we only add the glass,
   never touch their positioning (it broke the layout). */
body > header {
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(11,20,29,.72);
}
.wrap > header {
  position: sticky; top: 0; z-index: 600;
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(11,20,29,.72);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* ── Rotating luminous rim on verdicts & modals ── */
@property --sda { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.verdict, .modal-box, .levelup-box { position: relative; }
@supports (background: conic-gradient(from 0deg, red, blue)) {
  .verdict::before, .levelup-box::before {
    content: ''; position: absolute; inset: -1.5px; z-index: -1;
    border-radius: inherit;
    background: conic-gradient(from var(--sda), rgba(0,255,136,.5), transparent 30%, transparent 65%, rgba(0,198,255,.4), rgba(0,255,136,.5));
    animation: sdSpin 5s linear infinite;
    filter: blur(1px);
  }
}
@keyframes sdSpin { to { --sda: 360deg; } }

/* ── Living gradient headlines ── */
main h1, .wrap h1 {
  background-size: 190% auto;
  animation: sdHue 8s ease-in-out infinite alternate;
}
@keyframes sdHue { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ── 3D flip on card deal ── */
.hand-row, .pk-cards-line, #drill-dealer-hand, #drill-player-hand { perspective: 800px; }
.sd-deal { animation: sdDeal3d .55s cubic-bezier(.2,.85,.3,1.04) backwards; }
@keyframes sdDeal3d {
  from { opacity: 0; transform: translateY(-26px) rotateY(85deg) scale(.85); filter: brightness(1.5); }
  55%  { opacity: 1; filter: brightness(1.1); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ── Tech dot-grid texture (top of page) ── */
.sd-ambient::before {
  content: ''; position: absolute; inset: 0 0 55% 0; opacity: .05;
  background-image: radial-gradient(rgba(232,240,248,.9) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}

/* ── Focus glow on inputs & slider ── */
.field input:focus, .field textarea:focus, .contact-form input:focus, .contact-form textarea:focus {
  border-color: #00ff88 !important;
  box-shadow: 0 0 0 3px rgba(0,255,136,.22);
  outline: none;
}
.pk-slider:focus-visible { box-shadow: 0 0 0 4px rgba(0,255,136,.25); border-radius: 8px; outline: none; }

/* ── Success feedback breathing glow ── */
.drill-feedback.show.good, .pk-drill-fb.show.good, .pk-drill-fb.show.gold { animation: sdRise .38s cubic-bezier(.2,.8,.3,1) backwards, sdBreath 2.8s ease-in-out .5s infinite; }

/* reduced motion for V4 */
@media (prefers-reduced-motion: reduce) {
  .verdict::before, .levelup-box::before { animation: none !important; }
  main h1, .wrap h1 { animation: none !important; }
  .sd-deal { animation: none !important; }
  .drill-feedback.show.good, .pk-drill-fb.show.good, .pk-drill-fb.show.gold { animation: none !important; }
}
