/* =====================================================================
   betGTA: motion & interaction (loaded after style.css)
   ===================================================================== */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.2, 1.5, .4, 1); }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .15s var(--ease), box-shadow .2s var(--ease), filter .2s, background-color .2s, color .2s, border-color .2s; }
.btn::after { /* light sweep on hover */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .55s var(--ease);
}
.btn:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.btn:not(:disabled):hover::after { transform: translateX(120%); }
.btn:not(:disabled):active { transform: translateY(1px) scale(.96); filter: brightness(.95); box-shadow: 0 1px 4px rgba(0, 0, 0, .5); transition-duration: .06s; }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn.pink:not(:disabled):hover { box-shadow: 0 6px 22px rgba(255, 45, 149, .55); }
.btn.yes:not(:disabled):hover { box-shadow: 0 6px 22px rgba(25, 227, 196, .5); }
.btn.no:not(:disabled):hover { box-shadow: 0 6px 22px rgba(255, 77, 109, .5); }
.btn.ghost:not(:disabled):hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.btn.pink { background-size: 200% 100%; background-image: linear-gradient(90deg, var(--pink), var(--orange), var(--pink)); animation: sheen 6s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }

/* ---------- inputs ---------- */
.input { transition: border-color .2s, box-shadow .25s var(--ease), background-color .2s; }
.input:hover { border-color: rgba(255, 255, 255, .28); background: rgba(0, 0, 0, .5); }
.input:focus { outline: none; border-color: var(--pink); background: rgba(20, 4, 24, .7); box-shadow: 0 0 0 3px rgba(255, 45, 149, .25), 0 0 18px rgba(255, 45, 149, .2); }
select.input { cursor: pointer; }

/* ---------- tabs: sliding underline ---------- */
.tab { position: relative; border-bottom-color: transparent !important; transition: color .2s, background-color .2s; }
.tab::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: 0; height: 3px; background: #fff; transform: scaleX(0); transition: transform .3s var(--ease), background-color .3s; }
.tab:hover::after { transform: scaleX(.45); background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.tab.on::after { transform: scaleX(1); background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .6); }
.tab:active { transform: translateY(1px); }

/* ---------- chips & phone controls ---------- */
.chip { transition: transform .15s var(--spring), background-color .2s, border-color .2s; }
.chip:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .4); transform: translateY(-2px); }
.chip:active { transform: scale(.92); }
.phone .bigside button { transition: transform .15s var(--spring), background-color .2s, color .2s, box-shadow .2s; }
.phone .bigside button:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .14); }
.phone .bigside button:active { transform: scale(.95); }
.phone .bigside button.on { animation: pop .3s var(--spring); }
.phone .bigside button.on.y { background: var(--yes); box-shadow: 0 0 20px rgba(25, 227, 196, .5); }
.phone .bigside button.on.n { background: var(--no); box-shadow: 0 0 20px rgba(255, 77, 109, .5); }
.phone .x { transition: transform .2s var(--ease), background-color .2s; }
.phone .x:hover { transform: rotate(90deg); background: #222; }
@keyframes pop { 40% { transform: scale(1.08); } }

/* ---------- stream cards ---------- */
.scard { transition: transform .2s var(--ease), box-shadow .2s, border-color .2s, background-color .2s; }
.scard:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); border-color: rgba(255, 255, 255, .25); }
.scard:active { transform: scale(.98); }
.scard.enter { animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* LIVE badges breathe */
.badge.live { animation: livepulse 1.8s ease-in-out infinite; }
@keyframes livepulse { 50% { box-shadow: 0 0 0 4px rgba(224, 38, 44, .25), 0 0 12px rgba(224, 38, 44, .6); } }

/* ---------- market (mission) cards ---------- */
.mcard { transition: transform .2s var(--ease), box-shadow .25s, border-color .25s; }
.mcard:hover { transform: translateX(-3px); border-color: color-mix(in srgb, var(--accent, #fff) 45%, transparent); box-shadow: 0 8px 26px rgba(0, 0, 0, .45), -4px 0 18px color-mix(in srgb, var(--accent, #fff) 30%, transparent); }
.mcard.enter { animation: slidein .5s var(--ease) both; }
@keyframes slidein { from { opacity: 0; transform: translateX(28px) skewX(-4deg); } }
.mcard.flashpool { animation: poolflash .9s var(--ease); }
@keyframes poolflash { 25% { box-shadow: 0 0 0 2px var(--cash), 0 0 26px rgba(126, 224, 122, .45); } }
.mcard .lbl { transition: letter-spacing .25s var(--ease), text-shadow .25s; }
.mcard:hover .lbl { letter-spacing: 2px; text-shadow: 2px 2px 0 #000, 0 0 16px var(--accent); }
.mcard.paused::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(255, 210, 63, .05) 12px 24px); background-size: 34px 34px; animation: stripes 1.2s linear infinite; }
@keyframes stripes { to { background-position: 34px 0; } }
.mcard.pending .verdict b, .mcard.disputed .verdict b { display: inline-block; animation: stamp .5s var(--spring) both; }
@keyframes stamp { from { transform: scale(2.4) rotate(-8deg); opacity: 0; } }

/* timer bar: moved every frame by app.js, warms up near the end */
.timer i { position: relative; box-shadow: 0 0 8px var(--accent, var(--pink)); transition: background-color .4s, box-shadow .4s; }
.timer i::after { content: ''; position: absolute; right: -1px; top: -2px; width: 5px; height: 7px; border-radius: 3px; background: #fff; box-shadow: 0 0 8px #fff; }
.timer.hot i { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.timer.crit i { background: var(--red); box-shadow: 0 0 12px var(--red); animation: critblink .5s steps(2) infinite; }
.mcard .foot .left { transition: color .3s; font-variant-numeric: tabular-nums; }
.mcard:has(.timer.crit) .foot .left { color: var(--no); font-weight: 600; }
@keyframes critblink { 50% { opacity: .45; } }

/* ---------- panels, grids, tables ---------- */
.view.on .grid > * { animation: rise .45s var(--ease) both; }
.view.on .grid > *:nth-child(2) { animation-delay: .06s; }
.view.on .grid > *:nth-child(3) { animation-delay: .12s; }
.view.on .grid > *:nth-child(4) { animation-delay: .18s; }
.view.on .grid > *:nth-child(5) { animation-delay: .24s; }
.view.on .grid > *:nth-child(n+6) { animation-delay: .3s; }
.panel { transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.bcard:hover, .stat:hover { border-color: rgba(255, 255, 255, .22); box-shadow: 0 12px 34px rgba(0, 0, 0, .5); transform: translateY(-2px); }
.table tr { transition: background-color .15s; }
.view.on .h1 { animation: titlein .55s var(--spring) both; }
@keyframes titlein { from { opacity: 0; transform: skew(-6deg) translateX(-30px); letter-spacing: 8px; } }

/* ---------- header ---------- */
.logo { transition: transform .25s var(--spring); }
.logo:hover { transform: skew(-8deg) scale(1.05) rotate(-1deg); }
.logo .ico { transition: transform .5s var(--spring); }
.logo:hover .ico { transform: skew(8deg) rotate(-20deg) scale(1.1); }
.logo .w { background-size: 100% 200%; animation: logoglow 4s ease-in-out infinite alternate; }
@keyframes logoglow { to { background-position: 0 100%; } }
.star { transition: background-color .3s, filter .3s; }
.cash { font-variant-numeric: tabular-nums; }

/* ---------- modal & toasts ---------- */
.modal.on { animation: fadebg .25s ease both; }
@keyframes fadebg { from { background: rgba(0, 0, 0, 0); } }
.toast { animation: toastin .35s var(--spring) both; }
@keyframes toastin { from { opacity: 0; transform: translateX(40px) scale(.95); } }

/* ---------- ticker ---------- */
.ticker .it b { display: inline-block; transition: transform .2s; }
.ticker .it:hover b { transform: scale(1.1); }

.phone .est { gap: 14px; align-items: center; }
.phone .est span { white-space: nowrap; }
.phone .est b { text-align: right; transition: color .2s; }

/* ---------- respect reduced-motion settings ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
