﻿@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Kanit:wght@300;400;600;700&display=swap');

:root {
  --bg: #f7f1e9;
  --bg-alt: #e8f3ff;
  --surface: #ffffff;
  --surface-soft: #f9fafc;
  --surface-dark: #1b2038;
  --text: #1a1c2b;
  --text-muted: #4a5169;
  --text-light: #f7f7fb;
  --accent: #00c2a8;
  --accent-2: #ff5f7a;
  --accent-3: #ffc857;
  --accent-4: #3b82f6;
  --shadow: 0 20px 40px rgba(12, 18, 55, 0.15);
  --shadow-soft: 0 12px 24px rgba(12, 18, 55, 0.12);
  --border: 1px solid rgba(26, 28, 43, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Kanit', 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 215, 160, 0.55), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(170, 235, 255, 0.55), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(255, 166, 212, 0.25), transparent 40%),
    linear-gradient(135deg, var(--bg), var(--bg-alt));
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  background: url(../assets/background.jpg);
  background-size: cover;
  background-position: center;
  z-index: -1;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  opacity: 0.15;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  line-height: 1.75;
  color: #2f3447;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 233, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bungee', 'Kanit', cursive;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: var(--text);
}

.logo-mark {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.logo-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.logo-text span:last-child {
  color: var(--accent-2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.site-nav a {
  padding: 8px 6px;
  border-radius: 999px;
  transition: var(--transition);
}

.site-nav a:hover {
  background: rgba(0, 194, 168, 0.14);
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
}

.age-banner {
  background: var(--surface-dark);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 10px 0;
}

.age-banner .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: center;
}

.age-pill {
  background: var(--accent-2);
  color: white;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.hero {
  padding: 80px 0 60px;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(0, 194, 168, 0.35), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  margin-bottom: 16px;
  color: var(--text);
}

.hero p {
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), var(--accent-4));
  color: white;
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.25);
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

#slots-spin,
#spin-button {
  background: linear-gradient(135deg, #ffe066 0%, #ff9f1c 35%, #ff4d6d 75%, #d7263d 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 230, 153, 0.35) inset,
    0 14px 30px rgba(255, 77, 109, 0.35),
    0 0 24px rgba(255, 195, 0, 0.4);
  animation: spinCtaPulse 1.8s ease-in-out infinite;
}

#slots-spin:hover,
#spin-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 0 0 1px rgba(255, 230, 153, 0.45) inset,
    0 18px 34px rgba(255, 77, 109, 0.42),
    0 0 30px rgba(255, 208, 92, 0.55);
}

#slots-spin:disabled,
#spin-button:disabled {
  animation: none;
  opacity: 0.75;
}

@keyframes spinCtaPulse {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }
  50% {
    filter: saturate(1.16) brightness(1.06);
  }
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--text);
  color: var(--text);
  box-shadow: none;
}

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 24px;
  color: var(--text);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  border: var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text);
}

.card img {
  border-radius: 10px;
}

.card p {
  margin: 0
}

.card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
}

.card .btn {
  align-self: flex-start;
}

.card .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 95, 122, 0.12);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.85rem;
  align-self: flex-start;
}

.highlight-panel {
  background: var(--surface-dark);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.highlight-panel img {
  border-radius: 10px;
}

.highlight-panel p {
  color: rgba(247, 247, 251, 0.92);
}

.highlight-panel .card {
  background: var(--surface);
  color: var(--text);
}

.highlight-panel .card p {
  color: var(--text-muted);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 194, 168, 0.18);
  color: var(--text);
  font-size: 0.85rem;
}

.highlight-panel .badge {
  background: rgba(0, 194, 168, 0.28);
  color: var(--text-light);
}

.game-shell {
  background: var(--surface-dark);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.game-shell p,
.game-shell .game-message {
  color: rgba(247, 247, 251, 0.95);
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-tile {
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.game-controls button {
  background: var(--surface);
  color: var(--text);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.game-controls button:hover {
  transform: translateY(-2px);
}

.game-controls button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.stake-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 10px;
}

.stake-label {
  font-size: 0.88rem;
  color: rgba(247, 247, 251, 0.9);
  padding-left: 4px;
}

.stake-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.stake-btn:hover {
  transform: translateY(-1px);
}

.game-controls .stake-btn {
  padding: 0;
  font-weight: 700;
}

.game-controls .stake-btn:hover {
  transform: translateY(-1px);
}

.stake-value {
  min-width: 52px;
  text-align: center;
  font-weight: 700;
  color: var(--text-light);
}

.game-message {
  margin-top: 18px;
  font-weight: 600;
  color: var(--accent-3);
}

.history-panel {
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 16px;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.history-clear {
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.history-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
}

.history-time {
  color: rgba(247, 247, 251, 0.82);
  font-size: 0.84rem;
}

.history-text {
  color: rgba(247, 247, 251, 0.95);
  font-size: 0.93rem;
}

.history-chip {
  font-weight: 700;
  color: var(--accent-3);
}

.history-empty {
  color: rgba(247, 247, 251, 0.82);
  font-size: 0.92rem;
}

.slot-machine {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.reel {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  height: 120px;
  min-height: 120px;
  display: block;
  position: relative;
  overflow: hidden;
}

.reel-track {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  will-change: transform;
}

.reel-item {
  height: 120px;
  display: grid;
  place-items: center;
  flex: 0 0 120px;
}

.symbol {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  transition: var(--transition);
}

.symbol img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 17px;
}

.symbol-lotus {
  background: linear-gradient(135deg, rgba(255, 139, 167, 0.36), rgba(255, 79, 130, 0.36));
}

.symbol-elephant {
  background: linear-gradient(135deg, rgba(106, 156, 255, 0.36), rgba(59, 130, 246, 0.36));
}

.symbol-orchid {
  background: linear-gradient(135deg, rgba(255, 186, 8, 0.36), rgba(244, 140, 6, 0.36));
}

.symbol-phoenix {
  background: linear-gradient(135deg, rgba(64, 201, 255, 0.36), rgba(0, 194, 168, 0.36));
}

.symbol-temple {
  background: linear-gradient(135deg, rgba(181, 23, 158, 0.36), rgba(114, 9, 183, 0.36));
}

.reel.is-spinning {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 22px rgba(255, 200, 87, 0.25);
}

.reel.is-spinning .reel-track {
  filter: blur(0.6px);
}

.spin-zone {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr);
  gap: 24px;
  align-items: center;
}

.wheel-wrap {
  display: grid;
  place-items: center;
  position: relative;
}

.wheel {
  width: 320px;
  height: 320px;
  --label-radius: 106px;
  border-radius: 50%;
  background: conic-gradient(
    #00c2a8 0deg 45deg,
    #ffc857 45deg 90deg,
    #ff5f7a 90deg 135deg,
    #3b82f6 135deg 180deg,
    #8ecae6 180deg 225deg,
    #ff9f1c 225deg 270deg,
    #06d6a0 270deg 315deg,
    #fb8500 315deg 360deg
  );
  border: 10px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.25);
  transition: transform 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.wheel-center {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff3c4 0%, #ffbf47 38%, #ff7a00 100%);
  display: grid;
  place-items: center;
  color: #2f1200;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.2),
    0 16px 28px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(255, 191, 71, 0.55);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wheel-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 36px;
  background: linear-gradient(180deg, #ffd9e2 0%, #ff5f7a 55%, #d83359 100%);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
  z-index: 4;
}

.wheel-pointer::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #ffe3ea 42%, #ff6f87 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.wheel-pointer::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  text-align: center;
  transform: translate(-50%, -50%)
    rotate(calc(var(--angle) + 22.5deg))
    translate(0, calc(-1 * var(--label-radius)))
    rotate(calc(-1 * (var(--angle) + 22.5deg)));
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.blackjack-table {
  display: grid;
  gap: 20px;
}

.hand {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.card-item {
  width: 80px;
  height: 120px;
  perspective: 800px;
  font-weight: 700;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
}

.card-item.is-hidden .card-inner {
  transform: rotateY(180deg);
}

.card-item.is-flipping .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.card-front {
  background: var(--surface);
  color: var(--text);
}

.card-back {
  background: linear-gradient(135deg, #1b2038, #3b82f6);
  color: var(--text-light);
  transform: rotateY(180deg);
  align-items: center;
  justify-content: center;
  letter-spacing: 2px;
}

.card-item.red .card-front {
  color: #d62828;
}

.table-row {
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
  border-radius: var(--radius-sm);
}

.review-card {
  border-left: 4px solid var(--accent);
}

.stars {
  color: var(--accent-3);
  font-size: 1.1rem;
}

.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.ach-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  border: var(--border);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
}

.ach-status {
  font-weight: 700;
  color: var(--accent-2);
}

.ach-status.unlocked {
  color: var(--accent);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(26, 28, 43, 0.2);
  font-family: inherit;
  font-size: 1rem;
}

.form-grid textarea {
  min-height: 140px;
  resize: vertical;
}

.site-footer {
  background: var(--surface-dark);
  color: var(--text-light);
  padding: 20px 0 20px;
  margin-top: 60px;
}

.site-footer p {
  color: rgba(247, 247, 251, 0.9);
}

.site-footer h3,
.site-footer h4 {
  color: var(--text-light);
}

.footer-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-light);
}

.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.site-footer a {
  color: rgba(247, 247, 251, 0.95);
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(247, 247, 251, 0.15);
  margin-top: 24px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: 74px;
    right: 5vw;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

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

@media (max-width: 700px) {
  .hero-card {
    padding: 28px;
  }

  .spin-zone {
    grid-template-columns: 1fr;
  }

  .wheel {
    width: 260px;
    height: 260px;
    --label-radius: 82px;
  }
}
