/* Bearo — Northern Commander palette.
 * Deep navy ground, frost-blue accents, gold-amber CTA.
 * Tailwind via CDN handles utilities; this file owns
 * design tokens, animations (float + shimmer), prose,
 * 3D button menu, hero borders, slot cards, RG quiz.
 */

:root {
  --bg:        #07182f;
  --bg-2:      #0b2447;
  --surface:   rgba(255, 255, 255, 0.05);
  --surface-2: rgba(173, 216, 230, 0.08);
  --border:    rgba(135, 206, 235, 0.20);
  --frost:     #a9d6ff;
  --ice:       #7ec8e3;
  --steel:     #4a7ba8;
  --accent:    #f0b432;   /* commander gold */
  --accent-2:  #d4881f;
  --text:      #eaf3ff;
  --muted:     rgba(234, 243, 255, 0.65);
  --danger:    #ef4444;
  --win:       #34d399;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(126, 200, 227, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(240, 180, 50, 0.06), transparent 60%),
    linear-gradient(180deg, #050e1f 0%, var(--bg) 30%, var(--bg-2) 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Bordered hero ---------- */
.hero-frame {
  border: 2px solid var(--border);
  border-radius: 1.5rem;
  background:
    linear-gradient(140deg, rgba(126, 200, 227, 0.08), rgba(7, 24, 47, 0.4) 60%),
    var(--bg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 30px 80px -30px rgba(126, 200, 227, 0.25),
    0 8px 40px -10px rgba(0, 0, 0, 0.5);
  position: relative;
}
.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent);
  opacity: 0.7;
}
.hero-frame::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 1.5rem; }
.hero-frame::after  { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 1.5rem; }

/* ---------- 3D button main menu ---------- */
.btn3d {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: 0.85rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--text);
  background: linear-gradient(180deg, #133b66 0%, #0b2447 60%, #08213f 100%);
  border: 1px solid rgba(126, 200, 227, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -2px 0 rgba(0, 0, 0, 0.45),
    0 6px 0 #061731,
    0 8px 12px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
  position: relative;
  top: 0;
}
.btn3d:hover { filter: brightness(1.15); }
.btn3d:active {
  top: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 2px 0 #061731,
    0 3px 6px rgba(0, 0, 0, 0.45);
}
.btn3d--gold {
  color: #1c1102;
  background: linear-gradient(180deg, #ffd35e 0%, #f0b432 55%, #c9821b 100%);
  border-color: rgba(255, 200, 80, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(125, 70, 5, 0.5),
    0 6px 0 #6e4609,
    0 8px 14px rgba(240, 180, 50, 0.35);
}
.btn3d--gold:active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 0 #6e4609,
    0 3px 8px rgba(240, 180, 50, 0.35);
}

/* ---------- Card surfaces ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
}
.panel-strong {
  background: linear-gradient(180deg, rgba(126,200,227,0.06), rgba(7,24,47,0.5));
  border: 1px solid var(--border);
  border-radius: 1.25rem;
}

/* ---------- Slot cards ---------- */
.slot-card {
  position: relative;
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(160deg, #0e2a4e, #07182f);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.slot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px rgba(126, 200, 227, 0.4);
}
.slot-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.slot-card:hover img { transform: scale(1.06); }
.slot-card .meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.5rem 0.65rem 0.55rem;
  background: linear-gradient(180deg, rgba(7, 24, 47, 0) 0%, rgba(7, 24, 47, 0.85) 60%);
}
.slot-card h3 { font-size: 0.85rem; font-weight: 700; line-height: 1.2; margin: 0; }
.slot-card p  { font-size: 0.7rem; opacity: 0.75; margin: 0.1rem 0 0; }
.slot-card .badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: var(--accent); color: #1c1102;
  font-size: 0.6rem; font-weight: 800;
  padding: 0.15rem 0.5rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.slot-card .badge--live {
  background: var(--ice);
  color: #07182f;
}
.slot-card .badge--show {
  background: #a78bfa;
  color: #1a0b3a;
}

/* ---------- Prose ---------- */
.prose, .prose-invert { line-height: 1.7; color: var(--text); }
.prose h1, .prose-invert h1 { font-size: 2.25rem; font-weight: 800; margin: 1rem 0 1.25rem; line-height: 1.2; color: #fff; }
.prose h2, .prose-invert h2 { font-size: 1.6rem; font-weight: 700; margin: 2rem 0 0.75rem; line-height: 1.3; color: var(--frost); border-bottom: 1px solid var(--border); padding-bottom: 0.35rem; }
.prose h3, .prose-invert h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--ice); }
.prose p, .prose-invert p { margin: 0.8rem 0; }
.prose ul, .prose-invert ul { list-style: disc; padding-left: 1.4rem; margin: 0.8rem 0; }
.prose ol, .prose-invert ol { list-style: decimal; padding-left: 1.4rem; margin: 0.8rem 0; }
.prose li, .prose-invert li { margin: 0.3rem 0; }
.prose a, .prose-invert a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong, .prose-invert strong { font-weight: 700; color: #fff; }
.prose table, .prose-invert table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
.prose th, .prose td, .prose-invert th, .prose-invert td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th, .prose-invert th { background: rgba(126, 200, 227, 0.08); font-weight: 700; color: var(--frost); }
.prose details { background: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 0.6rem 1rem; margin: 0.5rem 0; }
.prose details summary { cursor: pointer; font-weight: 600; color: var(--frost); }
.prose img { border-radius: 0.85rem; border: 1px solid var(--border); }

/* ---------- Generic tables (homepage) ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tbl th, .tbl td { padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--border); text-align: left; }
.tbl th { background: rgba(126, 200, 227, 0.08); color: var(--frost); font-weight: 700; }

/* ---------- Responsible-gambling quiz ---------- */
.rg-quiz {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
}
.rg-quiz fieldset { border: 0; padding: 0; }
.rg-quiz label { cursor: pointer; user-select: none; }

/* ---------- Big winner overlay ---------- */
.big-winner { position: relative; border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--border); }
.big-winner__overlay {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(7, 24, 47, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.95rem;
}

/* ---------- Tabs (deposit / withdrawals) ---------- */
.tab-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 0.6rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
}
.tab-btn.is-active {
  background: var(--accent);
  color: #1c1102;
  border-color: var(--accent);
}

/* ---------- Animations: FLOAT + SHIMMER ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.float { animation: float 5s ease-in-out infinite; }
.float-slow { animation: float 8s ease-in-out infinite; }

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-text {
  background: linear-gradient(110deg, var(--frost) 0%, #ffffff 45%, var(--accent) 55%, var(--frost) 100%);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shimmer-bar {
  position: relative;
  overflow: hidden;
}
.shimmer-bar::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 3.5s linear infinite;
  pointer-events: none;
}

/* ---------- Flying banner ---------- */
#flying-banner.show { display: block !important; }

/* ---------- Misc utilities ---------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice);
}

/* Smaller screens — give 3D buttons breathing room */
@media (max-width: 768px) {
  .btn3d { padding: 0.55rem 0.8rem; font-size: 0.82rem; }
}
