:root {
  /* Box Slot Palette - Warm Loot Boxes */
  --clr-bg-deep: #140d0a;
  --clr-bg-mid: #1f140e;
  --clr-wood-dark: #2c1e16;
  --clr-wood-light: #4a3325;
  --clr-amber: #e6a12b;
  --clr-orange-glow: #f07c22;
  --clr-beige: #f5ebe1;
  --clr-text-main: #e8ded5;
  --clr-text-muted: #a69b91;
  
  /* Layout constraints */
  --max-width: 1320px;
  --game-width: 1200px;
  
  /* Spacing */
  --space-section-desktop: 120px;
  --space-section-tablet: 80px;
  --space-section-mobile: 60px;
  
  --pad-desktop: 32px;
  --pad-tablet: 24px;
  --pad-mobile: 16px;

  /* Components */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  
  --glass-bg: rgba(245, 235, 225, 0.03);
  --glass-border: rgba(230, 161, 43, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--clr-bg-deep);
  color: var(--clr-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 0%, var(--clr-bg-mid) 0%, var(--clr-bg-deep) 70%);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
}

.section {
  padding: var(--space-section-desktop) 0;
  position: relative;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--clr-beige);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

p {
  color: var(--clr-text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Glass Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(20, 13, 10, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}

.header.scrolled {
  background: rgba(20, 13, 10, 0.9);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-amber);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--clr-amber), var(--clr-orange-glow));
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(240, 124, 34, 0.4);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  position: relative;
  font-weight: 500;
  color: var(--clr-text-main);
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-amber);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--clr-beige);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-amber), var(--clr-orange-glow));
  color: var(--clr-bg-deep);
  box-shadow: 0 4px 15px rgba(240, 124, 34, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 124, 34, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--clr-beige);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(245, 235, 225, 0.08);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(230,161,43,0.1) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* Game Section */
.game-section {
  text-align: center;
}

.game-wrapper {
  max-width: var(--game-width);
  margin: 0 auto;
  background: var(--clr-wood-dark);
  border-radius: var(--radius-lg);
  padding: 8px;
  border: 1px solid rgba(230, 161, 43, 0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(230,161,43,0.05);
  position: relative;
  transition: transform 0.4s ease;
}

.game-wrapper:hover {
  transform: scale(1.01);
}

.game-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--clr-bg-deep);
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  position: relative;
}

.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Features Glass Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: rgba(245, 235, 225, 0.05);
  border-color: rgba(230, 161, 43, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(230, 161, 43, 0.1);
  color: var(--clr-amber);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

/* Legal & Text Pages */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(to bottom, var(--clr-bg-mid), var(--clr-bg-deep));
  border-bottom: 1px solid var(--glass-border);
}

.content-block {
  max-width: 800px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.content-block h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
  color: var(--clr-amber);
}

.content-block ul {
  list-style: disc;
  margin-left: 20px;
  color: var(--clr-text-muted);
  margin-bottom: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--clr-beige);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--clr-text-main);
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--clr-amber);
  background: rgba(230, 161, 43, 0.05);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 40px;
  background: var(--clr-bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 300px;
}

.footer-links h4 {
  color: var(--clr-amber);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--clr-amber);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(245, 235, 225, 0.05);
  color: var(--clr-text-muted);
  font-size: 0.9rem;
}