/* Tizomer Dynamic Visual Enhancements + Live Ecosystem */
:root {
  --glow-1: rgba(88,166,255,0.35);
  --glow-2: rgba(0,212,170,0.28);
  --glow-3: rgba(165,200,255,0.22);
}

/* Animated ambient background */
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 10% 20%, rgba(88,166,255,0.12), transparent 60%),
    radial-gradient(500px 350px at 90% 10%, rgba(0,212,170,0.10), transparent 60%),
    radial-gradient(700px 500px at 50% 90%, rgba(121,184,255,0.10), transparent 60%);
  filter: blur(20px);
  animation: ambientShift 18s ease-in-out infinite alternate;
}
@keyframes ambientShift {
  0% { transform: translate3d(0,0,0) scale(1); opacity: .9; }
  50% { transform: translate3d(-2%, 1%, 0) scale(1.05); opacity: 1; }
  100% { transform: translate3d(2%, -2%, 0) scale(1.08); opacity: .95; }
}

#tz-particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .7; }

.hero h1, .game-header h1, h1 { text-shadow: 0 0 30px rgba(88,166,255,0.18); }
.hero .accent, .highlight, .brand-accent {
  background: linear-gradient(90deg, #58a6ff, #79b8ff, #00d4aa, #58a6ff);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { 0%{background-position:0% 50%} 100%{background-position:300% 50%} }

.card, .service-card, .feature-card, .game-card, .solution-card, .tool-card, .question-card, .nexus-panel, .ranking, .paytable {
  backdrop-filter: blur(6px);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.card:hover, .service-card:hover, .feature-card:hover, .game-card:hover, .solution-card:hover, .tool-card:hover, .question-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(88,166,255,.12), 0 0 30px rgba(88,166,255,.08);
  border-color: rgba(88,166,255,.25);
}

.btn, button.btn, .cta, a.btn { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .25s ease, filter .25s ease; }
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.18) 50%, transparent 80%); transform: translateX(-120%); transition: transform .6s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(88,166,255,.25); filter: brightness(1.05); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }

input, select, textarea { transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(88,166,255,.5) !important; box-shadow: 0 0 0 3px rgba(88,166,255,.15), 0 0 20px rgba(88,166,255,.08); }

.board .card, .memory-card, .tile { transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, background .3s ease; }
.board .card:hover { box-shadow: 0 0 18px rgba(0,212,170,.25); }
.card.flipped, .card.matched { box-shadow: 0 0 20px rgba(0,212,170,.25); }

.tz-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.tz-reveal.tz-visible { opacity: 1; transform: translateY(0); }

.bonus, .badge, .tag, .pill { animation: softPulse 2.8s ease-in-out infinite; }
@keyframes softPulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(88,166,255,0);} 50%{ box-shadow: 0 0 0 6px rgba(88,166,255,.08);} }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0d1117; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#2a3142,#3d4455); border-radius: 999px; border: 2px solid #0d1117; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg,#58a6ff,#00d4aa); }

canvas, #board, #game { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 20px 50px rgba(0,0,0,.5), 0 0 40px rgba(88,166,255,.08); border-radius: 12px; }
.nexus-panel { border-color: rgba(0,212,170,.25) !important; box-shadow: inset 0 0 30px rgba(0,212,170,.04), 0 8px 24px rgba(0,0,0,.25); }
header, .site-header, nav { backdrop-filter: saturate(140%) blur(8px); }

/* Live Ecosystem section */
.tz-live-section { padding: 48px 0; position: relative; }
.tz-live-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.tz-live-head { display:flex; flex-wrap:wrap; gap:16px; align-items:flex-end; justify-content:space-between; margin-bottom:18px; }
.tz-live-head h2 { margin:0 0 6px; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.tz-live-head p { margin:0; }
.tz-live-links { display:flex; gap:10px; flex-wrap:wrap; }
.tz-live-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:14px; margin-bottom:14px; }
.tz-live-card { background: rgba(22,27,34,.72); border:1px solid rgba(88,166,255,.18); border-radius:16px; padding:16px; box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 0 30px rgba(88,166,255,.03); }
.tz-live-card h3 { margin:0 0 10px; font-size:1rem; }
.tz-stats { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; }
.tz-stat { background: rgba(13,17,23,.6); border:1px solid rgba(255,255,255,.06); border-radius:12px; padding:10px; text-align:center; }
.tz-stat strong { display:block; font-size:1.4rem; color:#58a6ff; line-height:1.1; }
.tz-stat span { font-size:.8rem; color:#9aa7bd; }
.tz-ol, .tz-ul { margin:0; padding-left:18px; display:grid; gap:6px; }
.tz-ul { list-style:none; padding-left:0; }
.tz-ol li, .tz-ul li { color:#e6edf3; font-size:.95rem; }
.tz-feed-card { margin-top:2px; }
.tz-feed { display:grid; gap:8px; max-height:220px; overflow:auto; }
.tz-feed-item { background: rgba(13,17,23,.55); border:1px solid rgba(255,255,255,.06); border-radius:10px; padding:8px 10px; font-size:.92rem; color:#e6edf3; animation: tzFadeIn .35s ease; }
.tz-feed-win { border-color: rgba(0,212,170,.35); background: rgba(0,212,170,.08); }
@keyframes tzFadeIn { from{opacity:0; transform:translateY(4px)} to{opacity:1; transform:translateY(0)} }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  body::after { animation: none; }
}
