/* ==========================================================================
   Variables
   ========================================================================== */

:root {
  /* Colors */
  --color-bg: #0f1310; /* deep, calm background */
  --color-bg-elevated: #181d18;
  --color-surface: #1f261f;
  --color-text: #f8f4ec;
  --color-text-muted: #c5bfae;

  --color-primary: #d9b26f; /* warm gold */
  --color-primary-soft: rgba(217, 178, 111, 0.16);
  --color-success: #80b68b;
  --color-warning: #e2b866;
  --color-danger: #d97171;

  --color-olive-dark: #1b2419;
  --color-olive: #374633;
  --color-olive-light: #6f7e64;

  --gray-50: #f8f6f1;
  --gray-100: #ede7dd;
  --gray-200: #d7d0c3;
  --gray-300: #b4ab9a;
  --gray-400: #928874;
  --gray-500: #726856;
  --gray-600: #4f4739;
  --gray-700: #373024;
  --gray-800: #241f18;
  --gray-900: #15120e;

  /* Typography */
  --font-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.0625rem; /* 17px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.375rem;  /* 22px */
  --font-size-2xl: 1.75rem;  /* 28px */
  --font-size-3xl: 2.25rem;  /* 36px */
  --font-size-4xl: 3rem;     /* 48px */

  --line-height-tight: 1.2;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing scale (0–96px) */
  --space-0: 0;
  --space-1: 0.125rem; /* 2px */
  --space-2: 0.25rem;  /* 4px */
  --space-3: 0.375rem; /* 6px */
  --space-4: 0.5rem;   /* 8px */
  --space-5: 0.625rem; /* 10px */
  --space-6: 0.75rem;  /* 12px */
  --space-8: 1rem;     /* 16px */
  --space-10: 1.25rem; /* 20px */
  --space-12: 1.5rem;  /* 24px */
  --space-16: 2rem;    /* 32px */
  --space-20: 2.5rem;  /* 40px */
  --space-24: 3rem;    /* 48px */
  --space-32: 4rem;    /* 64px */
  --space-40: 5rem;    /* 80px */
  --space-48: 6rem;    /* 96px */

  /* Radius */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows (soft, atmospheric) */
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.35);
  --shadow-subtle: 0 10px 24px rgba(4, 8, 6, 0.4);
  --shadow-gentle: 0 18px 45px rgba(0, 0, 0, 0.55);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease;
  --transition-slow: 320ms ease;

  /* Layout */
  --container-max-width: 1120px;
  --border-subtle: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Reset / Normalize
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ul,
ol,
fieldset,
legend,
pre {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  padding: 0;
}

textarea {
  resize: vertical;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove default anchor styles */
a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: none;
}

/* Prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  background: radial-gradient(circle at top, #23271f 0, #0f1310 52%, #050605 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  min-height: 60vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.2rem, 3vw + 1rem, 3.1rem);
  letter-spacing: 0.03em;
}

h2 {
  font-size: clamp(1.8rem, 2.5vw + 0.8rem, 2.4rem);
  letter-spacing: 0.03em;
}

h3 {
  font-size: clamp(1.5rem, 2vw + 0.4rem, 1.9rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

h1,
h2,
h3 {
  margin-bottom: var(--space-8);
}

h4,
h5,
h6 {
  margin-bottom: var(--space-6);
}

p {
  margin-bottom: var(--space-8);
  color: var(--color-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: 600;
  color: var(--color-text);
}

small {
  font-size: var(--font-size-sm);
}

code,
pre {
  font-family: var(--font-mono);
}

a {
  position: relative;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.08em;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 178, 111, 0.3), rgba(248, 244, 236, 0.9));
  transition: width var(--transition-base);
}

a:hover::after,
a:focus-visible::after {
  width: 100%;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: var(--space-16) 0;
}

::selection {
  background: rgba(217, 178, 111, 0.22);
  color: var(--color-text);
}

/* ==========================================================================
   Accessibility & Focus
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

:focus {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

/* Container */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

@media (min-width: 1200px) {
  .container {
    padding-left: var(--space-20);
    padding-right: var(--space-20);
  }
}

/* Layout helpers */

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-16);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-16);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--color-text-muted);
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-16 { margin-top: var(--space-16); }
.mb-16 { margin-bottom: var(--space-16); }
.mt-24 { margin-top: var(--space-24); }
.mb-24 { margin-bottom: var(--space-24); }

.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.py-24 {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.section {
  padding-top: var(--space-40);
  padding-bottom: var(--space-40);
}

@media (min-width: 992px) {
  .section {
    padding-top: var(--space-48);
    padding-bottom: var(--space-48);
  }
}

/* Subtle gradient accents for separators / backgrounds */

.surface-gradient {
  background: radial-gradient(circle at top left, rgba(217, 178, 111, 0.16), transparent 60%),
              radial-gradient(circle at bottom right, rgba(104, 129, 96, 0.2), transparent 65%);
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    opacity var(--transition-fast);
  white-space: normal;
  line-height: 1.3;
}

.btn-primary {
  background: linear-gradient(135deg, #d9b26f, #f1dfb0);
  color: #1c1810;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
}

.btn-ghost {
  background: rgba(24, 28, 22, 0.9);
  border-color: rgba(248, 244, 236, 0.14);
  color: var(--color-text);
}

.btn-ghost:hover {
  background: rgba(37, 43, 35, 0.95);
  border-color: rgba(217, 178, 111, 0.6);
}

.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--color-text-muted);
}

.btn-quiet:hover {
  color: var(--color-primary);
}

.btn[disabled],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-icon {
  padding: 0.5rem;
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
}

/* Inputs & Form Elements */

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(17, 21, 18, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(197, 191, 174, 0.6);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  outline: none;
  border-color: rgba(217, 178, 111, 0.8);
  box-shadow: 0 0 0 1px rgba(217, 178, 111, 0.55), 0 14px 38px rgba(0, 0, 0, 0.55);
  background: rgba(20, 25, 21, 0.98);
}

.input[disabled],
.textarea[disabled],
.select[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

label {
  display: inline-block;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-group {
  margin-bottom: var(--space-12);
}

.form-helper {
  margin-top: var(--space-3);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.form-error {
  margin-top: var(--space-3);
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Cards */

.card {
  background: radial-gradient(circle at top left, rgba(217, 178, 111, 0.08), transparent 55%),
              linear-gradient(145deg, rgba(20, 24, 20, 0.95), rgba(12, 16, 13, 0.98));
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(18px);
}

@media (min-width: 768px) {
  .card {
    padding: var(--space-20);
  }
}

.card-header {
  margin-bottom: var(--space-12);
}

.card-title {
  margin-bottom: var(--space-4);
}

.card-meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.card-footer {
  margin-top: var(--space-12);
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-10);
}

@media (max-width: 768px) {
  .card-footer {
    gap: var(--space-8);
  }

  .card-footer .btn {
    width: 100%;
    text-align: center;
    padding: 0.55rem 1.2rem;
    font-size: var(--font-size-xs);
  }
}

@media (max-width: 480px) {
  .card-footer {
    gap: var(--space-6);
  }

  .card-footer .btn {
    padding: 0.48rem 1rem;
    font-size: var(--font-size-xs);
    letter-spacing: 0.12em;
  }
}

/* Tag / Pill element for e.g. themed evenings, poker nights */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(217, 178, 111, 0.38);
  background: rgba(17, 21, 18, 0.85);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Media / Imagery wrapper for soft edges */

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 2px);
  background: #0a0c09;
}

.media-frame img,
.media-frame picture,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.32) 100%);
  pointer-events: none;
}

/* Subtle overlay gradient for hero sections */

.hero-overlay {
  position: relative;
  isolation: isolate;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left, rgba(217, 178, 111, 0.2), transparent 55%),
    radial-gradient(circle at bottom right, rgba(26, 36, 26, 0.8), #050605);
}

/* Simple fade-in animation utility (respecting reduced motion) */

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 600ms var(--transition-slow) both;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-in-up {
    animation: none;
  }
}

/* Badges for non-gambling clarification / info */

.notice-soft {
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-md);
  background: rgba(21, 26, 22, 0.9);
  border: 1px solid rgba(217, 178, 111, 0.3);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  line-height: 1.5;
}

.notice-soft strong {
  color: var(--color-primary);
}
