/* Tiger Social Online Casino — Midnight Jungle Vegas */

:root {
  --emerald-deep: #07261c;
  --emerald: #0e3b2c;
  --emerald-soft: #14523d;
  --gold: #f2b544;
  --gold-bright: #ffd57a;
  --amber: #e8742c;
  --cream: #f7efd8;
  --ink: #051b14;
  --card: #0b3325;
  --line: rgba(242, 181, 68, 0.18);
  --font-display: "Lilita One", "Arial Black", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(242, 181, 68, 0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(232, 116, 44, 0.08), transparent 60%),
    linear-gradient(180deg, var(--emerald-deep) 0%, var(--emerald) 55%, var(--emerald-deep) 100%);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

/* tiger stripe motif */
.stripes {
  position: relative;
}
.stripes::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent 0 34px,
    rgba(242, 181, 68, 0.05) 34px 42px,
    transparent 42px 90px,
    rgba(242, 181, 68, 0.03) 90px 96px
  );
  pointer-events: none;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(7, 38, 28, 0.82);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}
.brand:hover { color: var(--cream); }
.brand .mark { width: 38px; height: 38px; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: var(--gold);
  text-transform: uppercase;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 700;
  font-size: 0.92rem;
}
.badge-18 {
  border: 2px solid var(--amber);
  color: var(--amber);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.72rem;
  flex: none;
}

/* coin wallet chip */
.wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #123f2f, #0b2c21);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--gold-bright);
  white-space: nowrap;
}
.coin {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe6a6, var(--gold) 55%, #b97c1e);
  box-shadow: inset 0 0 0 2px rgba(185, 124, 30, 0.6), 0 0 8px rgba(242, 181, 68, 0.5);
  flex: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  text-transform: uppercase;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 45%, #d99427 100%);
  color: var(--ink);
  box-shadow: 0 6px 0 #9a6a16, 0 14px 30px rgba(242, 181, 68, 0.32);
}
.btn-gold:hover { filter: brightness(1.07); box-shadow: 0 6px 0 #9a6a16, 0 16px 38px rgba(242, 181, 68, 0.45); }
.btn-lg { font-size: 1.4rem; padding: 16px 42px; }
.btn-md { font-size: 1.05rem; padding: 12px 26px; }
.btn-ghost {
  background: transparent;
  border: 2px solid var(--line);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  mask-image: linear-gradient(180deg, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 28px;
  padding-top: 64px;
  padding-bottom: 72px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.04;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(5, 27, 20, 0.65), 0 12px 36px rgba(0, 0, 0, 0.5);
  animation: rise 0.7s ease both;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 4px 0 rgba(122, 80, 12, 0.55), 0 0 34px rgba(242, 181, 68, 0.55);
}
.hero .sub {
  margin-top: 16px;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--cream);
  opacity: 0.92;
  animation: rise 0.7s 0.08s ease both;
}
.hero .sub strong { color: var(--gold-bright); }
.hero .cta-row { margin-top: 28px; animation: rise 0.7s 0.16s ease both; }
.hero .mascot {
  justify-self: center;
  width: min(360px, 80%);
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.55));
  animation: float 5s ease-in-out infinite, rise 0.8s 0.1s ease both;
}
.disclaimer-inline {
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(247, 239, 216, 0.75);
  animation: rise 0.7s 0.22s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* fireflies */
.fireflies span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  filter: blur(1px);
  box-shadow: 0 0 12px 4px rgba(242, 181, 68, 0.55);
  opacity: 0.7;
  animation: fly 9s linear infinite;
}
@keyframes fly {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 0.8; }
  50% { transform: translate(36px, -52px); opacity: 0.5; }
  88% { opacity: 0.8; }
  100% { transform: translate(-14px, -104px); opacity: 0; }
}

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-head .rule {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: repeating-linear-gradient(-55deg, var(--gold) 0 14px, transparent 14px 24px);
  opacity: 0.5;
}

/* lobby grid */
.lobby {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.game-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(242, 181, 68, 0.35);
}
.game-card .cover {
  aspect-ratio: 3 / 2;
  background-size: cover;
  background-position: center;
  background-color: var(--emerald-soft);
}
.game-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 16px;
}
.game-card .meta h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.game-card .meta p {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(247, 239, 216, 0.65);
}

/* feature trio */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature {
  background: rgba(11, 51, 37, 0.7);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.feature .ico { font-size: 1.9rem; }
.feature h3 {
  font-family: var(--font-display);
  margin: 10px 0 6px;
  font-size: 1.1rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.feature p { font-size: 0.94rem; opacity: 0.85; font-weight: 600; }

/* daily bonus band */
.daily {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 26px;
  align-items: center;
  background:
    radial-gradient(600px 300px at 110% 50%, rgba(242, 181, 68, 0.12), transparent 65%),
    linear-gradient(180deg, #0c3526, #0a2c1f);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  overflow: hidden;
}
.daily img { width: min(240px, 100%); border-radius: 14px; }
.daily h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-transform: uppercase;
}
.daily p { margin: 10px 0 18px; font-weight: 700; opacity: 0.9; }
#daily-state { font-size: 0.88rem; font-weight: 800; color: var(--gold-bright); margin-top: 10px; }

/* ---------- compliance footer ---------- */
.compliance {
  background: var(--ink);
  border-top: 2px solid var(--line);
  padding: 40px 0 28px;
  font-size: 0.86rem;
}
.compliance .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}
.compliance h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
  color: var(--gold);
}
.compliance p { opacity: 0.78; line-height: 1.55; font-weight: 600; }
.compliance ul { list-style: none; display: grid; gap: 8px; font-weight: 700; }
.compliance .legal-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(232, 116, 44, 0.1);
  border: 1px solid rgba(232, 116, 44, 0.4);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 26px;
  font-weight: 800;
}
.compliance .copyright {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 239, 216, 0.12);
  opacity: 0.55;
  font-weight: 600;
}

/* ---------- game page ---------- */
.game-shell {
  padding: 34px 0 70px;
}
.game-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.game-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.game-head .back { font-weight: 800; font-size: 0.92rem; }

.slot-machine {
  background:
    radial-gradient(700px 280px at 50% -20%, rgba(242, 181, 68, 0.14), transparent 70%),
    linear-gradient(180deg, #0d3a2a, #082519);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(14px, 3vw, 30px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.reels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(6px, 1.2vw, 12px);
  background: var(--ink);
  border-radius: 18px;
  padding: clamp(8px, 1.6vw, 16px);
  border: 1px solid rgba(242, 181, 68, 0.28);
}
.reel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #0c3122, #0a2a1d 50%, #0c3122);
  aspect-ratio: 1 / 3;
}
.reel .strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: grid;
  will-change: transform;
}
.reel .cell {
  height: var(--cell, 90px);
  display: grid;
  place-items: center;
  padding: 8%;
}
.reel .cell img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}
.reel.win-flash { animation: reel-glow 0.9s ease 2; }
@keyframes reel-glow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: inset 0 0 0 3px var(--gold), 0 0 24px rgba(242, 181, 68, 0.5); }
}

.controls {
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.bet-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(5, 27, 20, 0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 12px;
}
.bet-box .label { font-size: 0.72rem; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase; opacity: 0.7; }
.bet-box button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: var(--emerald-soft);
  color: var(--cream);
  font-weight: 900;
  font-size: 1.1rem;
}
.bet-box button:hover { background: #1a6a4f; }
#bet-value { font-weight: 900; min-width: 74px; text-align: center; color: var(--gold-bright); font-size: 1.05rem; }
.win-line {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.6px;
  color: var(--gold-bright);
  min-height: 1.6em;
  text-transform: uppercase;
}
.win-line.pop { animation: pop 0.5s ease; }
@keyframes pop {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* paytable */
.paytable {
  margin-top: 34px;
  background: rgba(11, 51, 37, 0.65);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
}
.paytable h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.paytable table { width: 100%; border-collapse: collapse; font-weight: 700; }
.paytable td, .paytable th {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(247, 239, 216, 0.1);
  text-align: left;
  font-size: 0.92rem;
}
.paytable th { color: var(--gold); font-size: 0.78rem; letter-spacing: 1.4px; text-transform: uppercase; }
.paytable img { width: 40px; height: 40px; object-fit: contain; }
.paytable .note { margin-top: 12px; font-size: 0.8rem; opacity: 0.7; font-weight: 600; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(120%);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--ink);
  font-weight: 900;
  border-radius: 999px;
  padding: 12px 26px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  z-index: 90;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* legal pages */
.legal-page { padding: 48px 0 80px; max-width: 820px; }
.legal-page h1 { font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; margin-bottom: 6px; }
.legal-page .updated { opacity: 0.6; font-weight: 700; font-size: 0.85rem; margin-bottom: 28px; }
.legal-page h2 { font-family: var(--font-display); font-size: 1.15rem; margin: 26px 0 8px; letter-spacing: 0.4px; }
.legal-page p, .legal-page li { line-height: 1.65; font-weight: 600; opacity: 0.9; margin-bottom: 10px; }
.legal-page ul { padding-left: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 44px; }
  .hero .mascot { order: -1; width: min(260px, 70%); }
  .hero .cta-row { display: flex; justify-content: center; }
  .nav { gap: 12px; font-size: 0.85rem; }
  .nav .nav-link { display: none; }
  .daily { grid-template-columns: 1fr; text-align: center; }
  .daily img { margin: 0 auto; }
  .compliance .grid { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr; justify-items: center; }
  .reel .cell { height: var(--cell, 64px); }
}

/* language switcher */
.lang-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; font-weight: 800; font-size: 0.8rem; letter-spacing: 1px; }
.lang-switch a, .lang-switch .current { display: inline-block; padding: 8px 10px; }
.lang-switch a { opacity: 0.65; }
.lang-switch a:hover { opacity: 1; }
.lang-switch .current { color: var(--gold-bright); opacity: 1; border-bottom: 2px solid var(--gold); }
