/* -----------------------------------------------------------------
 * Shikaka — custom CSS
 * Jungle-detective / Ace Ventura adventure vibe.
 * Tailwind (CDN) handles utilities; this holds the theme tokens,
 * the 2 chosen animations (float + shimmer), 3D nav buttons,
 * game popovers, prose readability and component polish.
 * ----------------------------------------------------------------- */

:root {
  --bg:        #0a1f14;   /* deep jungle night */
  --bg-2:      #0e2a1b;   /* raised jungle surface */
  --accent:    #f59e0b;   /* safari amber CTA */
  --accent-2:  #ea580c;   /* sunset orange (gradient pair) */
  --leaf:      #1f9d55;   /* foliage green */
  --leaf-deep: #14532d;
  --sand:      #e7d4a8;   /* khaki / sand */
  --text:      #f6f3e9;   /* warm parchment */
  --muted:     rgba(246,243,233,0.66);
  --surface:   rgba(231,212,168,0.06);
  --surface-2: rgba(231,212,168,0.12);
  --line:      rgba(231,212,168,0.16);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); }

/* subtle jungle texture behind the page */
.jungle-bg {
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 12% -8%, rgba(31,157,85,0.20), transparent 60%),
    radial-gradient(800px 500px at 95% 0%, rgba(245,158,11,0.14), transparent 55%),
    radial-gradient(700px 700px at 50% 120%, rgba(20,83,45,0.45), transparent 60%);
  background-attachment: fixed;
}

.text-accent { color: var(--accent); }
.bg-accent { background: var(--accent); }
.font-display { font-family: "Georgia", "Times New Roman", serif; letter-spacing: -0.01em; }

/* ----- 3D nav buttons (header inner-page links) ----- */
.btn-3d {
  --btn-face: var(--accent);
  --btn-ledge: var(--accent-2);
  --btn-ink: #1a1206;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-weight: 800; line-height: 1; font-size: 0.85rem;
  color: var(--btn-ink);
  background: var(--btn-face);
  box-shadow: 0 4px 0 0 var(--btn-ledge), 0 6px 12px -4px rgba(0,0,0,0.6);
  transform: translateY(0);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
  text-decoration: none;
}
.btn-3d:hover { filter: brightness(1.06); }
.btn-3d:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 0 var(--btn-ledge), 0 2px 4px -2px rgba(0,0,0,0.5);
}
.btn-3d--ghost {
  --btn-face: var(--bg-2);
  --btn-ledge: var(--leaf-deep);
  --btn-ink: var(--text);
  border: 1px solid var(--line);
}

/* ----- Pills / chips ----- */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.8rem; font-weight: 600; color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.chip:hover { background: var(--surface-2); border-color: var(--accent); }
.chip.is-active { background: var(--accent); color: #1a1206; border-color: var(--accent); }

/* ----- Cards ----- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

/* ============================================================
 * ANIMATIONS — two chosen: float + shimmer
 * ============================================================ */

/* float — gentle bob for hero panel / badges */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.float { animation: float 5s ease-in-out infinite; }
.float-slow { animation: float 7s ease-in-out infinite; }

/* shimmer — light sweep across the bonus headline */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(110deg, var(--accent) 0%, #fff7e6 45%, var(--accent) 90%);
  background-size: 200% 100%;
  animation: shimmer 3.5s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .float, .float-slow, .shimmer { animation: none; }
}

/* ----- Game grid cards + popovers ----- */
.game-card {
  position: relative;
  border-radius: 1rem;
  overflow: visible;
}
.game-card__thumb {
  position: relative; border-radius: 1rem; overflow: hidden; aspect-ratio: 1;
  background: linear-gradient(160deg, var(--leaf-deep), var(--bg));
  border: 1px solid var(--line);
}
.game-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.game-card:hover .game-card__thumb img { transform: scale(1.06); }
.game-card .badge {
  position: absolute; top: 0.5rem; left: 0.5rem; z-index: 2;
  background: var(--accent); color: #1a1206; font-size: 0.62rem; font-weight: 800;
  padding: 0.18rem 0.55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em;
}
.game-card__title { font-weight: 700; font-size: 0.9rem; margin-top: 0.5rem; }
.game-card__prov { font-size: 0.75rem; color: var(--muted); }

/* Popover: hidden by default, toggled with .is-open via JS */
.game-pop {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(6px);
  width: min(15rem, 80vw); z-index: 30;
  background: var(--bg-2); border: 1px solid var(--accent);
  border-radius: 1rem; padding: 0.9rem 1rem;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.8);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.game-pop.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.game-pop::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--accent);
}
.game-pop__desc { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.6rem; line-height: 1.5; }
.game-pop__stats { display: flex; gap: 0.75rem; font-size: 0.72rem; margin-bottom: 0.7rem; }
.game-pop__stats dt { color: var(--muted); }
.game-pop__stats dd { font-weight: 700; }
.game-pop__play {
  display: block; text-align: center; background: var(--accent); color: #1a1206;
  font-weight: 800; font-size: 0.8rem; padding: 0.5rem; border-radius: 0.6rem; text-decoration: none;
}

/* ----- Responsible-gaming block ----- */
.rg-disclaimer {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 1rem; padding: 1.25rem 1.5rem;
}

/* ----- Lucide icon sizing helper ----- */
.lucide { width: 1.5rem; height: 1.5rem; stroke-width: 1.75; }
.icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem; border-radius: 999px;
  background: var(--surface-2); color: var(--accent); border: 1px solid var(--line);
}

/* ----- Prose (Tailwind CDN has no typography plugin) ----- */
.prose { line-height: 1.75; color: var(--text); }
.prose h1 { font-size: 2.25rem; font-weight: 800; margin: 1rem 0 1.25rem; line-height: 1.15; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--text); }
.prose h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.prose p { margin: 0.85rem 0; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin: 0.85rem 0; }
.prose ol { list-style: decimal; padding-left: 1.3rem; margin: 0.85rem 0; }
.prose li { margin: 0.3rem 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.9rem; }
.prose th, .prose td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface); font-weight: 600; }
.prose details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0.9rem; padding: 0.85rem 1.1rem; margin: 0.75rem 0;
}
.prose summary { cursor: pointer; font-weight: 600; }

/* generic details accordion used outside prose too */
.acc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0.9rem; padding: 0.85rem 1.1rem; margin: 0.6rem 0;
}
.acc summary { cursor: pointer; font-weight: 600; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; float: right; color: var(--accent); font-weight: 800; }
.acc[open] summary::after { content: '–'; }

/* ----- Modal (promotions popups) ----- */
.modal { position: fixed; inset: 0; z-index: 60; display: none; }
.modal.is-open { display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(3px); }
.modal__panel {
  position: relative; z-index: 1; width: min(34rem, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--accent); border-radius: 1.25rem; padding: 1.75rem;
}
