/* -----------------------------------------------------------------
 * Pawnbet — custom CSS. Tailwind CDN handles utilities.
 * Black background, emerald-green CTA, big rounded borders.
 * Animations chosen: tilt + shimmer.
 * ----------------------------------------------------------------- */

:root {
  --accent: #22c55e;        /* emerald green CTA */
  --accent-2: #16a34a;      /* deeper green for gradients / ledges */
  --accent-soft: rgba(34, 197, 94, 0.14);
  --bg: #050706;            /* near-black with a faint green cast */
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(34, 197, 94, 0.22);
  --text: #f2f7f3;
  --muted: rgba(242, 247, 243, 0.62);
}

body { background: var(--bg); }

/* Big rounded borders motif used across panels */
.panel {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 1.75rem;
}
.panel-strong {
  background: var(--surface-2);
  border: 2px solid var(--line);
  border-radius: 2rem;
}

/* ----- Prose readability (Tailwind CDN has no typography plugin) ----- */
.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; }
.prose h2, .prose-invert h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 0.75rem; line-height: 1.3; }
.prose h3, .prose-invert h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.prose p, .prose-invert p { margin: 0.75rem 0; }
.prose ul, .prose-invert ul { list-style: disc; padding-left: 1.25rem; margin: 0.75rem 0; }
.prose ol, .prose-invert ol { list-style: decimal; padding-left: 1.25rem; margin: 0.75rem 0; }
.prose li, .prose-invert li { margin: 0.25rem 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.9rem; }
.prose th, .prose td, .prose-invert th, .prose-invert td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th, .prose-invert th { background: var(--accent-soft); font-weight: 600; }
.prose details, .prose-invert details { border: 2px solid var(--line); border-radius: 1rem; padding: 0.5rem 1rem; margin: 0.6rem 0; background: var(--surface); }
.prose summary, .prose-invert summary { cursor: pointer; font-weight: 600; padding: 0.35rem 0; }

html { scroll-behavior: smooth; }

/* ----- 3D nav buttons (always present) ----- */
.btn-3d {
  --btn-face: var(--accent);
  --btn-ledge: var(--accent-2);
  --btn-ink: #042009;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1.05rem;
  border-radius: 0.9rem;
  font-weight: 700; line-height: 1;
  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.08); }
.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);
}
/* Ghost variant for the sidebar / quiet links */
.btn-3d-ghost {
  --btn-face: var(--surface-2);
  --btn-ledge: rgba(34,197,94,0.35);
  --btn-ink: var(--text);
}

/* ----- Responsible-gambling quiz ----- */
.rg-quiz { background: var(--surface); border: 2px solid var(--line); border-radius: 1.75rem; padding: 1.5rem; }
.rg-quiz fieldset { border: 0; padding: 0; }
.rg-quiz label { cursor: pointer; }

/* =================================================================
 * ANIMATIONS — chosen: tilt + shimmer
 * ================================================================= */

/* tilt — subtle 3D card lift on hover (used on poster cards) */
.tilt { transition: transform 0.3s ease, box-shadow 0.3s ease; transform-style: preserve-3d; }
.tilt:hover {
  transform: perspective(900px) rotateX(3deg) rotateY(-3deg) translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(34, 197, 94, 0.35);
}

/* shimmer — sweeping light across accent text */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.shimmer {
  background: linear-gradient(110deg, var(--accent) 0%, #eafff0 50%, var(--accent) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ----- Poster-ratio game cards (slots / shows) ----- */
.game-card { position: relative; border-radius: 1.25rem; overflow: hidden; aspect-ratio: 2 / 3; border: 2px solid var(--line); background: var(--surface); }
.game-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.game-card:hover img { transform: scale(1.06); }
.game-card .badge {
  position: absolute; top: 0.6rem; left: 0.6rem;
  background: var(--accent); color: #042009; font-size: 0.65rem; font-weight: 800;
  padding: 0.15rem 0.55rem; border-radius: 999px;
}
.game-card .meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.75rem; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

/* ----- Poster-ratio live dealer cards with popovers ----- */
.poster-card {
  position: relative; border-radius: 1.5rem; overflow: hidden;
  aspect-ratio: 2 / 3; border: 2px solid var(--line); background: var(--surface);
  display: block;
}
.poster-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.poster-card:hover img, .poster-card:focus-within img { transform: scale(1.05); }
.poster-card .poster-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.85rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
/* Popover panel revealed on hover / focus */
.poster-popover {
  position: absolute; inset: 0;
  background: rgba(5, 7, 6, 0.92); backdrop-filter: blur(6px);
  border-radius: 1.4rem;
  padding: 1rem; display: flex; flex-direction: column; justify-content: center; gap: 0.4rem;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.poster-card:hover .poster-popover,
.poster-card:focus-within .poster-popover { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ----- Left casino sidebar ----- */
.casino-sidebar a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.85rem; border-radius: 0.9rem;
  color: var(--muted); font-weight: 600; font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.casino-sidebar a:hover { background: var(--accent-soft); color: var(--text); }

/* ----- Support fake form ----- */
.support-form input, .support-form select, .support-form textarea {
  width: 100%; background: var(--surface-2); border: 2px solid var(--line);
  border-radius: 0.9rem; padding: 0.7rem 0.9rem; color: var(--text);
}
.support-form input::placeholder, .support-form textarea::placeholder { color: var(--muted); }
.support-form input:focus, .support-form select:focus, .support-form textarea:focus {
  outline: none; border-color: var(--accent);
}

/* ----- Rating bars (reviews) ----- */
.rating-bar { height: 0.6rem; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rating-bar > span { display: block; height: 100%; background: var(--accent); }

/* CTA banner gradient helper */
.cta-grad { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
