/* Leafy Games — CrazyGames-inspired layout, leaf-green theme */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=swap');

:root {
  --bg: #15171c;
  --bg-elevated: #1c1f27;
  --sidebar: #0f1115;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --leaf: #7cb342;
  --leaf-bright: #9ccc65;
  --leaf-deep: #558b2f;
  --leaf-soft: rgba(124, 179, 66, 0.15);
  --card-radius: 12px;
  --sidebar-w: 240px;
  --header-h: 56px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  user-select: none;
}

/* ===== Layout shell (CrazyGames-like) ===== */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow: hidden;
}

body.sidebar-open .sidebar {
  transform: translateX(0);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.55);
}

body.sidebar-open .sidebar-overlay {
  display: block;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.sidebar-brand span {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--leaf-bright);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.65rem 1.5rem;
  scrollbar-width: thin;
}

.nav-section-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.85rem 0.75rem 0.4rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--leaf-soft);
  color: var(--leaf-bright);
}

.nav-link .material-symbols-outlined {
  font-size: 1.35rem;
  color: inherit;
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sidebar-footer a {
  color: var(--leaf-bright);
}

.main-wrap {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  background: rgba(21, 23, 28, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.icon-btn:hover {
  background: var(--leaf-soft);
  color: var(--leaf-bright);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--leaf-bright);
}

.topbar-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.topbar-spacer {
  flex: 1;
}

.content {
  padding: 1rem 1rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-overlay {
    display: none;
  }

  .main-wrap {
    margin-left: var(--sidebar-w);
  }

  .topbar .icon-btn#sidebar-toggle,
  .topbar .topbar-brand {
    display: none;
  }

  .content {
    padding: 1.5rem 1.75rem 4rem;
  }
}

/* ===== Ad mount ===== */
.ad-slot {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0 1.25rem;
  min-height: 0;
}

/* ===== Section headings ===== */
.section {
  margin-bottom: 2rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.section-link {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--leaf);
  white-space: nowrap;
}

.section-link:hover {
  color: var(--leaf-bright);
}

/* ===== Game cards ===== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1200px) {
  .game-grid.featured-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.game-card {
  display: block;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 179, 66, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.game-card__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #22252e;
}

.game-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-card__thumb img {
  transform: scale(1.05);
}

.game-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--leaf);
  color: #0f1115;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.game-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 17, 21, 0.35);
  opacity: 0;
  transition: opacity 0.2s;
}

.game-card:hover .game-card__play {
  opacity: 1;
}

.game-card__play span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--leaf);
  color: #0f1115;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 6px 20px rgba(124, 179, 66, 0.45);
}

.game-card__meta {
  padding: 0.65rem 0.7rem 0.8rem;
}

.game-card__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card__info {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* Featured large cards */
/* Horizontal scroll with side arrows */
.h-scroll {
  position: relative;
}

.h-scroll__btn {
  display: inline-flex;
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 1px solid rgba(124, 179, 66, 0.35);
  border-radius: 50%;
  background: rgba(15, 17, 21, 0.88);
  color: var(--leaf-bright);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s, transform 0.1s;
  padding: 0;
}

.h-scroll__btn .material-symbols-outlined {
  font-size: 1.4rem;
}

.h-scroll__btn:hover:not(:disabled) {
  background: rgba(124, 179, 66, 0.2);
  border-color: var(--leaf);
}

.h-scroll__btn:active:not(:disabled) {
  transform: scale(0.96);
}

.h-scroll__btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.h-scroll__btn--prev {
  left: 0.15rem;
}

.h-scroll__btn--next {
  right: 0.15rem;
}

.h-scroll__track {
  scroll-padding-inline: 2rem;
}

@media (min-width: 768px) {
  .h-scroll__btn {
    width: 42px;
    height: 42px;
    margin-top: -21px;
  }

  .h-scroll__btn .material-symbols-outlined {
    font-size: 1.55rem;
  }

  .h-scroll__track {
    scroll-padding-inline: 2.5rem;
  }
}

.featured-scroll {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.featured-scroll::-webkit-scrollbar {
  display: none;
}

.featured-card {
  flex: 0 0 min(78vw, 280px);
  scroll-snap-align: start;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #22252e;
  border: 1px solid var(--border);
  transition: transform 0.18s, border-color 0.18s;
}

.featured-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 179, 66, 0.5);
}

@media (min-width: 1024px) {
  .featured-card {
    flex: 0 0 min(360px, 32%);
  }
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 17, 21, 0.92) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

.featured-card__overlay h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
}

.featured-card__overlay p {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--leaf-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Horizontal game row */
.h-row {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.h-row::-webkit-scrollbar {
  display: none;
}

.h-row .game-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .h-row .game-card {
    flex-basis: 160px;
  }
}

/* Collection tiles (mood boards) */
.mood-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .mood-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .mood-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mood-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 140px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #1c1f27, #252a35);
  transition: transform 0.18s, border-color 0.18s;
}

.mood-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 179, 66, 0.4);
}

.mood-tile h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.mood-tile p {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.4;
}

.mood-tile--a {
  background: linear-gradient(135deg, #1a2e1a, #243528);
}
.mood-tile--b {
  background: linear-gradient(135deg, #1a2430, #243040);
}
.mood-tile--c {
  background: linear-gradient(135deg, #2a2218, #352e20);
}
.mood-tile--d {
  background: linear-gradient(135deg, #221a2e, #2e2438);
}
.mood-tile--e {
  background: linear-gradient(135deg, #1a2828, #243434);
}
.mood-tile--f {
  background: linear-gradient(135deg, #2a1a1a, #352424);
}

/* SEO / about block on home */
.seo-block {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.seo-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--leaf-bright);
}

.seo-block h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

.seo-block p,
.seo-block li {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 0.65rem;
}

.seo-block ul {
  padding-left: 1.2rem;
  margin: 0 0 0.5rem;
}

.site-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a:hover {
  color: var(--leaf-bright);
}

/* ===== Detail page ===== */
.detail-hero {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .detail-hero {
    grid-template-columns: 220px 1fr;
    align-items: center;
  }
}

.detail-cover {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.detail-info h1 {
  margin: 0 0 0.4rem;
  font-size: 1.75rem;
  font-weight: 900;
}

.detail-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--leaf-bright);
  margin-bottom: 0.75rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  background: var(--leaf);
  color: #0f1115;
  font-weight: 900;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--leaf-bright);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover {
  border-color: var(--leaf);
  color: var(--leaf-bright);
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.panel h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 900;
}

.panel p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ===== Static pages ===== */
.page-shell {
  max-width: 720px;
}

.prose h2 {
  color: var(--leaf-bright);
  font-size: 1.1rem;
  margin: 1.75rem 0 0.65rem;
  font-weight: 900;
}

.prose p,
.prose li {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.prose ul {
  padding-left: 1.25rem;
  margin: 0 0 0.5rem;
}

.prose a {
  color: var(--leaf-bright);
  font-weight: 700;
}

.prose a:hover {
  text-decoration: underline;
}

.page-title {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--leaf-bright);
}

.page-lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== Play page (unique stage layout) ===== */
.play-body {
  margin: 0;
  background: #07090c;
  overflow: hidden;
}

.play-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(124, 179, 66, 0.16), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(85, 139, 47, 0.12), transparent 45%),
    linear-gradient(180deg, #0b0e13 0%, #12161d 45%, #0a0c10 100%);
}

.play-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
  background: rgba(12, 15, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(124, 179, 66, 0.18);
}

.play-toolbar__left,
.play-toolbar__right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.play-toolbar__right {
  justify-content: flex-end;
}

.play-toolbar__center {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  max-width: min(420px, 52vw);
}

.play-brand {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-weight: 900;
  color: var(--leaf-bright);
  font-size: 0.95rem;
}

.play-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.play-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 40px;
  height: 40px;
  padding: 0 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8ebe6;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  text-decoration: none;
  font-family: inherit;
}

.play-chip:hover {
  background: rgba(124, 179, 66, 0.14);
  border-color: rgba(124, 179, 66, 0.4);
  color: var(--leaf-bright);
}

.play-chip:active {
  transform: scale(0.97);
}

.play-chip .material-symbols-outlined {
  font-size: 1.25rem;
}

.play-chip--accent {
  background: linear-gradient(135deg, #7cb342, #558b2f);
  border-color: transparent;
  color: #0f1115;
}

.play-chip--accent:hover {
  background: linear-gradient(135deg, #9ccc65, #7cb342);
  color: #0f1115;
  border-color: transparent;
}

.play-chip__label {
  display: none;
}

.play-cover {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid rgba(156, 204, 101, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.play-heading {
  min-width: 0;
}

.play-kicker {
  display: block;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.play-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  color: #f4f6f3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.play-stage {
  position: relative;
  min-height: 0;
  padding: 0.65rem 0.75rem;
  display: flex;
}

.play-stage:fullscreen,
.play-stage:-webkit-full-screen {
  padding: 0;
  background: #000;
}

.play-stage:fullscreen .play-frame,
.play-stage:-webkit-full-screen .play-frame {
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.play-stage__glow {
  pointer-events: none;
  position: absolute;
  inset: 10% 15%;
  background: radial-gradient(circle, rgba(124, 179, 66, 0.12), transparent 65%);
  filter: blur(30px);
}

.play-frame {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #050607;
  border: 1px solid rgba(124, 179, 66, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(124, 179, 66, 0.08);
}

.play-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #000;
}

.play-boot {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(124, 179, 66, 0.15), transparent 50%),
    #0c1016;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.play-boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-boot__orbit {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px dashed rgba(124, 179, 66, 0.35);
  animation: play-orbit 8s linear infinite;
}

.play-boot__cover {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  border: 2px solid rgba(156, 204, 101, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.1rem;
  animation: play-float 2.4s ease-in-out infinite;
}

.play-boot__title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 900;
  color: #f3f5f1;
  max-width: 16rem;
}

.play-boot__sub {
  position: relative;
  z-index: 1;
  margin: 0 0 1.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8b9388;
  max-width: 18rem;
  line-height: 1.45;
}

.play-boot__bar {
  position: relative;
  z-index: 1;
  width: min(220px, 70%);
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.play-boot__bar i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, #558b2f, #7cb342, #9ccc65);
  animation: play-boot-bar 1.1s ease-in-out infinite;
}

.play-boot__error {
  font-weight: 700;
  color: #c4cdc0;
  line-height: 1.6;
}

.play-boot__error a {
  color: var(--leaf-bright);
  font-weight: 900;
}

.play-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 10, 13, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  font-weight: 700;
  color: #7d8679;
}

.play-rail__tag {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(124, 179, 66, 0.14);
  color: var(--leaf-bright);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.play-rail__tip {
  display: none;
  text-align: center;
  flex: 1;
}

.play-rail__link {
  color: #a8b3a4;
  text-decoration: none;
  white-space: nowrap;
}

.play-rail__link:hover {
  color: var(--leaf-bright);
}

@keyframes play-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes play-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes play-boot-bar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(300%);
  }
}

@media (min-width: 640px) {
  .play-chip__label {
    display: inline;
  }

  .play-brand {
    display: inline-flex;
  }

  .play-toolbar {
    padding: 0.75rem 1.15rem;
  }

  .play-stage {
    padding: 0.85rem 1.15rem;
  }

  .play-title {
    font-size: 1.05rem;
  }

  .play-rail__tip {
    display: block;
  }
}

@media (min-width: 1024px) {
  .play-frame {
    border-radius: 22px;
  }

  .play-cover {
    width: 44px;
    height: 44px;
  }
}

/* ===== Loading overlay ===== */
html.is-loading,
body.is-loading {
  overflow: hidden;
}

/* Loading interstitial (card splash) */
.site-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(124, 179, 66, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(85, 139, 47, 0.12) 0%, transparent 50%),
    #0c0e12;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.site-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loading__card {
  width: min(340px, 100%);
  text-align: center;
  padding: 2rem 1.5rem 1.65rem;
  border-radius: 20px;
  background: linear-gradient(160deg, #1c1f27 0%, #151820 100%);
  border: 1px solid rgba(124, 179, 66, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(124, 179, 66, 0.12);
  animation: loading-card-in 0.45s ease both;
}

.site-loading__badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0f1115;
  background: var(--leaf);
}

.site-loading__logo-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 1.1rem;
}

.site-loading__pulse {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: rgba(124, 179, 66, 0.35);
  animation: loading-pulse-ring 1.4s ease-out infinite;
}

.site-loading__logo {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 20px;
  border: 2px solid rgba(156, 204, 101, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.site-loading__brand {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--leaf-bright);
}

.site-loading__hint {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
}

.site-loading__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.site-loading__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  animation: loading-dot 1s ease-in-out infinite;
}

.site-loading__dots span:nth-child(2) {
  animation-delay: 0.15s;
  background: var(--leaf-bright);
}

.site-loading__dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.site-loading__progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.site-loading__progress i {
  display: block;
  height: 100%;
  width: 35%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--leaf-deep), var(--leaf), var(--leaf-bright));
  animation: loading-progress 1.15s ease-in-out infinite;
}

@keyframes loading-card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loading-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@keyframes loading-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@keyframes loading-progress {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

/* Skeleton */
.skel {
  background: linear-gradient(90deg, #22252e 25%, #2c303c 50%, #22252e 75%);
  background-size: 200% 100%;
  animation: skel 1.2s ease-in-out infinite;
  border-radius: 12px;
}

@keyframes skel {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #333842;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--leaf-deep);
}
