/* FreeSlots888 — public lobby (inspired layout, original assets) */
:root {
  --bg: #0c0604;
  --bg2: #160c08;
  --ink: #ff4d9a;
  --ink-dim: #c93472;
  --gold: #d4a24a;
  --gold-border: #c8843a;
  --text: #ff6aad;
  --muted: #a85a7a;
  --card: rgba(255, 255, 255, 0.04);
  --radius: 6px;
  --font: "Trebuchet MS", "Segoe UI", Tahoma, Geneva, sans-serif;
  --display: "Century Gothic", "Trebuchet MS", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(180, 40, 80, 0.35), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(80, 20, 40, 0.25), transparent 40%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 24px,
      rgba(255, 60, 120, 0.03) 24px,
      rgba(255, 60, 120, 0.03) 25px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 24px,
      rgba(255, 60, 120, 0.03) 24px,
      rgba(255, 60, 120, 0.03) 25px
    );
  text-align: center;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: #ff8ec0; }

.site-header {
  padding: 36px 16px 12px;
}
.brand { display: inline-block; }
.brand-text {
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ff5fa8;
  text-shadow: 0 0 24px rgba(255, 60, 130, 0.45);
}
.brand-logo {
  max-width: min(390px, 90vw);
  height: auto;
  vertical-align: bottom;
}

.site-main { padding: 0 12px 32px; max-width: 1100px; margin: 0 auto; }

.gamelist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
  margin: 8px auto 20px;
}
.game-thumb {
  display: block;
  width: 100px;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.game-thumb.featured {
  width: 210px;
}
.game-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 100 / 188;
  object-fit: cover;
  border-radius: 4px;
  background: var(--card);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}
.game-thumb.featured img {
  aspect-ratio: 210 / 196;
}
.game-thumb:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.08);
}
.game-thumb .caption {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goldbutton {
  display: inline-block;
  text-decoration: none;
  color: #fec;
  background-color: rgba(230, 162, 94, 0.12);
  border: 3px solid var(--gold-border);
  border-radius: 4px;
  padding: 10px 25px;
  font: 1.15em var(--display);
  cursor: pointer;
  margin: 12px 0 18px;
}
.goldbutton:hover {
  color: #ffe;
  background-color: rgba(230, 162, 94, 0.28);
  border-color: #ea6;
}

#more-games { display: none; }
#more-games.open { display: flex; }

.description {
  margin: 18px auto 20px;
  max-width: 42em;
}
.description h1 {
  margin: 0 0 0.4em;
  font: bold 1.05em var(--font);
  color: var(--ink);
}
.description p {
  margin: 0 0 0.6em;
  font-size: 0.85em;
  line-height: 1.45;
  color: var(--muted);
}

.site-footer {
  padding: 8px 16px 28px;
}
.endlinks {
  font-size: 0.82em;
  color: var(--ink-dim);
  margin-bottom: 10px;
}
.endlinks a { color: var(--ink); margin: 0 2px; }
.copyright {
  font-size: 0.65em;
  color: var(--ink-dim);
  margin: 0;
}

/* Game play page */
.game-page {
  text-align: left;
  max-width: 1080px;
  margin: 0 auto;
}
.game-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 8px;
}
.home-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #262626;
  color: #ddd;
  font-size: 1.2rem;
}
.home-chevron:hover { background: #3a3a3a; color: #fff; }
.game-stage {
  position: relative;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  min-height: 520px;
  aspect-ratio: 16 / 10;
}
.game-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.launch-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(10,4,6,0.55), rgba(10,4,6,0.85)),
    center / cover no-repeat var(--launch-thumb);
  z-index: 2;
}
.launch-screen h1 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.launch-screen.hidden { display: none; }
.game-meta {
  margin-top: 16px;
  padding: 12px 4px 24px;
  color: var(--muted);
  font-size: 0.88em;
  line-height: 1.5;
}
.game-meta h2 {
  color: var(--ink);
  font-size: 1.1em;
  margin: 0 0 8px;
}

.page-content {
  text-align: left;
  max-width: 46em;
  margin: 12px auto 40px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.92em;
  line-height: 1.55;
}
.page-content h1 {
  color: var(--ink);
  font-size: 1.35em;
  margin: 0 0 12px;
}

.empty-state {
  padding: 40px 16px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .game-thumb { width: 88px; }
  .game-thumb.featured { width: 160px; }
  .game-stage { min-height: 360px; }
}
