@charset "utf-8";

/* ================================================================== *
 * kuya king - design tokens & component styles (ba08e9)
 * Palette: plum #DDA0DD / off-white #FAFAFA / deep navy #0E1621
 * Canvas: 320-430px mobile. All classes use the layer8e916- prefix.
 * Direction: centered identity bar, slide-up route panel,
 *            compact 5-role icon bar with dual-color corner icons,
 *            contrast inversion on active, short-distance hover lift.
 * ================================================================== */

:root {
  --layer8e916-plum: #DDA0DD;
  --layer8e916-plum-deep: #B57FBE;
  --layer8e916-plum-soft: rgba(221, 160, 221, 0.16);
  --layer8e916-plum-line: rgba(221, 160, 221, 0.28);
  --layer8e916-ink: #0E1621;
  --layer8e916-ink-2: #131D2C;
  --layer8e916-ink-3: #1B2A40;
  --layer8e916-ink-4: #243952;
  --layer8e916-cloud: #FAFAFA;
  --layer8e916-cloud-dim: rgba(250, 250, 250, 0.72);
  --layer8e916-cloud-mute: rgba(250, 250, 250, 0.52);
  --layer8e916-cloud-faint: rgba(250, 250, 250, 0.12);
  --layer8e916-gold: #F4D58A;
  --layer8e916-jade: #7FE0B5;
  --layer8e916-coral: #FF8E7A;
  --layer8e916-radius-sm: 8px;
  --layer8e916-radius-md: 14px;
  --layer8e916-radius-lg: 22px;
  --layer8e916-radius-pill: 999px;
  --layer8e916-shadow-soft: 0 6px 22px rgba(0, 0, 0, 0.35);
  --layer8e916-shadow-pop: 0 12px 36px rgba(0, 0, 0, 0.48);
  --layer8e916-shadow-plum: 0 8px 24px rgba(181, 127, 190, 0.32);
  --layer8e916-gap-xs: 6px;
  --layer8e916-gap-sm: 10px;
  --layer8e916-gap-md: 16px;
  --layer8e916-gap-lg: 24px;
  --layer8e916-gap-xl: 32px;
  --layer8e916-font: "Helvetica Neue", "Segoe UI", Roboto, system-ui, -apple-system, "Lato", "PingFang SC", sans-serif;
}

/* ------------------------------------------------------------------ *
 * Reset & base
 * ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--layer8e916-font);
  background: var(--layer8e916-ink);
  color: var(--layer8e916-cloud);
  line-height: 1.55;
  font-size: 14px;
  letter-spacing: 0.1px;
  overflow-x: hidden;
}

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

a {
  color: var(--layer8e916-plum);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover { color: var(--layer8e916-cloud); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

p { margin: 0 0 10px; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* Mobile canvas frame: keeps the 320-430px composition centered on wide screens */
.layer8e916-canvas {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(900px 460px at 50% -120px, rgba(181, 127, 190, 0.20), transparent 70%),
    radial-gradient(700px 380px at 100% 8%, rgba(127, 224, 181, 0.06), transparent 60%),
    var(--layer8e916-ink);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.55);
  padding-bottom: 84px; /* room for the fixed bottom nav */
}

@media (min-width: 481px) {
  body { background: #060B13; }
}

/* ------------------------------------------------------------------ *
 * Header - centered identity bar
 * ------------------------------------------------------------------ */
.layer8e916-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(14, 22, 33, 0.96) 0%, rgba(14, 22, 33, 0.88) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--layer8e916-plum-line);
}

.layer8e916-header-top {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: var(--layer8e916-gap-sm);
  padding: 8px 12px 6px;
}

.layer8e916-header-side {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--layer8e916-radius-sm);
  color: var(--layer8e916-cloud);
}

.layer8e916-header-side:hover { color: var(--layer8e916-plum); }

.layer8e916-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}

.layer8e916-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--layer8e916-plum);
  box-shadow: 0 4px 14px rgba(221, 160, 221, 0.45);
  background: var(--layer8e916-ink-3);
}

.layer8e916-brand-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--layer8e916-cloud);
}

.layer8e916-brand-name strong { color: var(--layer8e916-plum); }

.layer8e916-header-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px 12px 10px;
}

.layer8e916-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--layer8e916-radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-align: center;
}

.layer8e916-btn--register {
  background: linear-gradient(135deg, var(--layer8e916-plum) 0%, var(--layer8e916-plum-deep) 100%);
  color: var(--layer8e916-ink);
  box-shadow: var(--layer8e916-shadow-plum);
}

.layer8e916-btn--login {
  background: transparent;
  color: var(--layer8e916-cloud);
  border: 1.5px solid var(--layer8e916-plum-line);
}

.layer8e916-btn--register:active,
.layer8e916-btn--login:active {
  transform: translateY(1px);
}

/* Hamburger / menu trigger */
.layer8e916-menu-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--layer8e916-radius-sm);
  border: 1px solid var(--layer8e916-plum-line);
  background: var(--layer8e916-ink-2);
  color: var(--layer8e916-cloud);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.layer8e916-menu-btn:hover { color: var(--layer8e916-plum); border-color: var(--layer8e916-plum); }

.layer8e916-menu-btn svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------------ *
 * Slide-up route panel + veil
 * ------------------------------------------------------------------ */
.layer8e916-route-veil {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 14, 0.66);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.layer8e916-route-veil--on {
  opacity: 1;
  visibility: visible;
}

.layer8e916-route-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--layer8e916-ink-3) 0%, var(--layer8e916-ink-2) 100%);
  border-top: 2px solid var(--layer8e916-plum);
  border-radius: 26px 26px 0 0;
  padding: 14px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 0.34s cubic-bezier(0.22, 0.96, 0.32, 1);
  box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.55);
  max-height: 78vh;
  overflow-y: auto;
}

.layer8e916-route-panel--open { transform: translateY(0); }

.layer8e916-route-handle {
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: var(--layer8e916-plum-line);
  margin: 0 auto 12px;
}

.layer8e916-route-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--layer8e916-plum);
  text-align: center;
  margin-bottom: 10px;
}

.layer8e916-route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.layer8e916-route-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--layer8e916-radius-md);
  background: rgba(250, 250, 250, 0.04);
  border: 1px solid var(--layer8e916-cloud-faint);
  color: var(--layer8e916-cloud);
  font-size: 13px;
  font-weight: 600;
  min-height: 48px;
  transition: transform 0.16s ease, border-color 0.2s ease, background 0.2s ease;
}

.layer8e916-route-link:hover,
.layer8e916-route-link:active {
  transform: translateY(-2px);
  border-color: var(--layer8e916-plum);
  background: var(--layer8e916-plum-soft);
  color: var(--layer8e916-cloud);
}

.layer8e916-route-link svg {
  width: 20px;
  height: 20px;
  color: var(--layer8e916-plum);
  flex-shrink: 0;
}

.layer8e916-route-promo {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(221, 160, 221, 0.25) 0%, rgba(221, 160, 221, 0.06) 100%);
  border-color: var(--layer8e916-plum);
}

.layer8e916-route-promo svg { color: var(--layer8e916-gold); }

.layer8e916-route-foot {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--layer8e916-cloud-mute);
}

/* ------------------------------------------------------------------ *
 * Banner carousel
 * ------------------------------------------------------------------ */
.layer8e916-banner {
  position: relative;
  margin: 12px 12px 0;
  border-radius: var(--layer8e916-radius-lg);
  overflow: hidden;
  box-shadow: var(--layer8e916-shadow-soft);
  border: 1px solid var(--layer8e916-plum-line);
}

.layer8e916-banner-track {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--layer8e916-ink-3);
}

.layer8e916-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  cursor: pointer;
}

.layer8e916-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layer8e916-banner-slide--active { opacity: 1; }

.layer8e916-banner-cta {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.layer8e916-banner-cta-text {
  background: linear-gradient(180deg, rgba(14, 22, 33, 0) 0%, rgba(14, 22, 33, 0.85) 100%);
  color: var(--layer8e916-cloud);
  padding: 18px 12px 4px;
  border-radius: 0 0 var(--layer8e916-radius-lg) var(--layer8e916-radius-lg);
  margin: -18px -12px -4px;
  flex: 1;
}

.layer8e916-banner-eyebrow {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--layer8e916-plum);
  color: var(--layer8e916-ink);
  padding: 3px 8px;
  border-radius: var(--layer8e916-radius-pill);
  font-weight: 800;
  margin-bottom: 6px;
}

.layer8e916-banner-title {
  font-size: 16px;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.layer8e916-banner-sub {
  font-size: 11px;
  color: var(--layer8e916-cloud-dim);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.layer8e916-banner-cta-btn {
  pointer-events: auto;
  background: var(--layer8e916-cloud);
  color: var(--layer8e916-ink);
  padding: 8px 14px;
  border-radius: var(--layer8e916-radius-pill);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.layer8e916-banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.layer8e916-banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(250, 250, 250, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.layer8e916-banner-dot--on {
  width: 18px;
  border-radius: 4px;
  background: var(--layer8e916-plum);
}

/* ------------------------------------------------------------------ *
 * Promo strip (secondary CTA row)
 * ------------------------------------------------------------------ */
.layer8e916-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px;
}

.layer8e916-strip-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  background: var(--layer8e916-ink-2);
  border: 1px solid var(--layer8e916-cloud-faint);
  border-radius: var(--layer8e916-radius-md);
  text-align: center;
  transition: transform 0.16s ease, border-color 0.2s ease;
}

.layer8e916-strip-tile:hover {
  transform: translateY(-2px);
  border-color: var(--layer8e916-plum);
}

.layer8e916-strip-tile svg {
  width: 22px;
  height: 22px;
  color: var(--layer8e916-plum);
}

.layer8e916-strip-tile b {
  font-size: 11px;
  color: var(--layer8e916-cloud);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.layer8e916-strip-tile span {
  font-size: 10px;
  color: var(--layer8e916-cloud-mute);
}

/* ------------------------------------------------------------------ *
 * Category quick-jump rail
 * ------------------------------------------------------------------ */
.layer8e916-rail-wrap { padding: 4px 0 4px; }

.layer8e916-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 12px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.layer8e916-rail::-webkit-scrollbar { display: none; }

.layer8e916-rail-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--layer8e916-radius-pill);
  background: var(--layer8e916-ink-2);
  border: 1px solid var(--layer8e916-cloud-faint);
  color: var(--layer8e916-cloud);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  min-height: 36px;
}

.layer8e916-rail-pill:hover,
.layer8e916-rail-pill:active {
  background: var(--layer8e916-plum);
  color: var(--layer8e916-ink);
  border-color: var(--layer8e916-plum);
}

.layer8e916-rail-pill svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ *
 * Section heading (used by every content block)
 * ------------------------------------------------------------------ */
.layer8e916-section {
  padding: 18px 12px 4px;
}

.layer8e916-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.layer8e916-section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--layer8e916-cloud);
  display: flex;
  align-items: center;
  gap: 8px;
}

.layer8e916-section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--layer8e916-plum) 0%, var(--layer8e916-plum-deep) 100%);
}

.layer8e916-section-link {
  font-size: 11px;
  color: var(--layer8e916-plum);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ *
 * Game zone (per category)
 * ------------------------------------------------------------------ */
.layer8e916-zone {
  scroll-margin-top: 72px;
  padding: 14px 12px 4px;
}

.layer8e916-zone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--layer8e916-radius-md);
  background: linear-gradient(135deg, rgba(221, 160, 221, 0.18) 0%, rgba(221, 160, 221, 0.02) 100%);
  border: 1px solid var(--layer8e916-plum-line);
}

.layer8e916-zone-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--layer8e916-cloud);
}

.layer8e916-zone-title svg {
  width: 20px;
  height: 20px;
  color: var(--layer8e916-plum);
}

.layer8e916-zone-tag {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--layer8e916-plum);
  font-weight: 800;
}

.layer8e916-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (min-width: 360px) {
  .layer8e916-grid { gap: 10px; }
}

@media (min-width: 400px) {
  .layer8e916-grid { grid-template-columns: repeat(5, 1fr); }
}

.layer8e916-game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: transparent;
  border-radius: var(--layer8e916-radius-md);
  transition: transform 0.18s ease;
  cursor: pointer;
  text-align: center;
}

.layer8e916-game-card:hover,
.layer8e916-game-card:active,
.layer8e916-game-card.layer8e916-touched {
  transform: translateY(-3px);
}

.layer8e916-game-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--layer8e916-radius-md);
  overflow: hidden;
  background: var(--layer8e916-ink-3);
  border: 1px solid var(--layer8e916-cloud-faint);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.layer8e916-game-card:hover .layer8e916-game-thumb,
.layer8e916-game-card.layer8e916-touched .layer8e916-game-thumb {
  border-color: var(--layer8e916-plum);
  box-shadow: 0 6px 16px rgba(221, 160, 221, 0.28);
}

.layer8e916-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layer8e916-game-name {
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--layer8e916-cloud-dim);
  font-weight: 600;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
}

/* ------------------------------------------------------------------ *
 * Content modules (Game Tricks, Mobile App, Features, Winners, ...)
 * ------------------------------------------------------------------ */
.layer8e916-module {
  margin: 18px 12px 0;
  padding: 16px;
  border-radius: var(--layer8e916-radius-lg);
  background: linear-gradient(180deg, var(--layer8e916-ink-2) 0%, var(--layer8e916-ink) 100%);
  border: 1px solid var(--layer8e916-cloud-faint);
  box-shadow: var(--layer8e916-shadow-soft);
}

.layer8e916-module-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--layer8e916-plum);
  font-weight: 800;
  margin-bottom: 4px;
}

.layer8e916-module-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--layer8e916-cloud);
}

.layer8e916-module p {
  font-size: 13px;
  color: var(--layer8e916-cloud-dim);
}

/* Trick steps grid */
.layer8e916-tricks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.layer8e916-trick {
  padding: 12px;
  border-radius: var(--layer8e916-radius-md);
  background: rgba(221, 160, 221, 0.08);
  border: 1px solid var(--layer8e916-plum-line);
  position: relative;
  overflow: hidden;
}

.layer8e916-trick-num {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 24px;
  font-weight: 800;
  color: rgba(221, 160, 221, 0.28);
  line-height: 1;
}

.layer8e916-trick b {
  display: block;
  font-size: 13px;
  color: var(--layer8e916-cloud);
  margin-bottom: 4px;
  padding-right: 24px;
}

.layer8e916-trick span {
  font-size: 11.5px;
  color: var(--layer8e916-cloud-mute);
  line-height: 1.4;
}

/* App download block */
.layer8e916-app {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--layer8e916-radius-md);
  background: rgba(127, 224, 181, 0.08);
  border: 1px solid rgba(127, 224, 181, 0.3);
}

.layer8e916-app-icon {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--layer8e916-plum-line);
  background: var(--layer8e916-ink-3);
}

.layer8e916-app-meta b {
  display: block;
  font-size: 14px;
  color: var(--layer8e916-cloud);
  margin-bottom: 4px;
}

.layer8e916-app-meta p {
  font-size: 11.5px;
  color: var(--layer8e916-cloud-mute);
  margin: 0 0 8px;
}

.layer8e916-app-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--layer8e916-plum);
  color: var(--layer8e916-ink);
  padding: 7px 14px;
  border-radius: var(--layer8e916-radius-pill);
  font-size: 12px;
  font-weight: 800;
}

.layer8e916-app-cta:hover { color: var(--layer8e916-ink); opacity: 0.9; }

/* Features list */
.layer8e916-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.layer8e916-feature {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: var(--layer8e916-radius-md);
  background: var(--layer8e916-ink-3);
  border: 1px solid var(--layer8e916-cloud-faint);
}

.layer8e916-feature-ico {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--layer8e916-plum-soft);
  color: var(--layer8e916-plum);
}

.layer8e916-feature-ico svg { width: 18px; height: 18px; }

.layer8e916-feature b {
  font-size: 13px;
  color: var(--layer8e916-cloud);
}

.layer8e916-feature span {
  font-size: 11.5px;
  color: var(--layer8e916-cloud-mute);
  line-height: 1.4;
}

/* Latest winners ticker */
.layer8e916-winners {
  margin-top: 12px;
  overflow: hidden;
  border-radius: var(--layer8e916-radius-md);
  background: var(--layer8e916-ink-3);
  border: 1px solid var(--layer8e916-cloud-faint);
  padding: 8px;
}

.layer8e916-winners-track {
  display: flex;
  gap: 8px;
  transition: transform 0.6s ease;
}

.layer8e916-winner {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--layer8e916-radius-sm);
  background: rgba(244, 213, 138, 0.08);
  border: 1px solid rgba(244, 213, 138, 0.22);
  min-width: 180px;
}

.layer8e916-winner-ava {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--layer8e916-gold), var(--layer8e916-coral));
  color: var(--layer8e916-ink);
  font-weight: 800;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.layer8e916-winner-meta b {
  display: block;
  font-size: 11.5px;
  color: var(--layer8e916-cloud);
}

.layer8e916-winner-meta span {
  font-size: 10.5px;
  color: var(--layer8e916-gold);
  font-weight: 700;
}

/* Category highlights */
.layer8e916-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.layer8e916-highlight {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: var(--layer8e916-radius-md);
  background: var(--layer8e916-ink-3);
  border: 1px solid var(--layer8e916-cloud-faint);
}

.layer8e916-highlight-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--layer8e916-plum-soft);
  color: var(--layer8e916-plum);
}

.layer8e916-highlight-badge svg { width: 22px; height: 22px; }

.layer8e916-highlight-meta b {
  display: block;
  font-size: 13.5px;
  color: var(--layer8e916-cloud);
  margin-bottom: 2px;
}

.layer8e916-highlight-meta span {
  font-size: 11.5px;
  color: var(--layer8e916-cloud-mute);
  line-height: 1.35;
}

.layer8e916-highlight-arrow {
  color: var(--layer8e916-plum);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

/* RTP analysis */
.layer8e916-rtp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.layer8e916-rtp-card {
  padding: 12px;
  border-radius: var(--layer8e916-radius-md);
  background: var(--layer8e916-ink-3);
  border: 1px solid var(--layer8e916-cloud-faint);
}

.layer8e916-rtp-card b {
  display: block;
  font-size: 11px;
  color: var(--layer8e916-cloud-mute);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.layer8e916-rtp-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--layer8e916-jade);
  margin-bottom: 6px;
}

.layer8e916-rtp-bar {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: rgba(127, 224, 181, 0.18);
  overflow: hidden;
  margin-bottom: 6px;
}

.layer8e916-rtp-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--layer8e916-jade), var(--layer8e916-plum));
}

.layer8e916-rtp-card span {
  font-size: 11px;
  color: var(--layer8e916-cloud-dim);
  line-height: 1.4;
}

/* FAQ accordion */
.layer8e916-faq {
  margin-top: 10px;
  border-radius: var(--layer8e916-radius-md);
  background: var(--layer8e916-ink-3);
  border: 1px solid var(--layer8e916-cloud-faint);
  overflow: hidden;
}

.layer8e916-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--layer8e916-cloud);
  min-height: 44px;
}

.layer8e916-faq-q-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--layer8e916-plum);
  transition: transform 0.25s ease;
}

.layer8e916-faq--open .layer8e916-faq-q-ico { transform: rotate(45deg); }

.layer8e916-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 14px;
  font-size: 12.5px;
  color: var(--layer8e916-cloud-dim);
}

.layer8e916-faq--open .layer8e916-faq-a {
  max-height: 220px;
  padding-bottom: 14px;
}

/* Inline CTA banner inside content modules */
.layer8e916-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--layer8e916-radius-md);
  background: linear-gradient(135deg, var(--layer8e916-plum) 0%, var(--layer8e916-plum-deep) 100%);
  color: var(--layer8e916-ink);
}

.layer8e916-inline-cta b {
  font-size: 13px;
  font-weight: 800;
  display: block;
}

.layer8e916-inline-cta span {
  font-size: 11px;
  color: rgba(14, 22, 33, 0.72);
}

.layer8e916-inline-cta-btn {
  background: var(--layer8e916-ink);
  color: var(--layer8e916-cloud);
  padding: 8px 14px;
  border-radius: var(--layer8e916-radius-pill);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.layer8e916-inline-cta-btn:hover { color: var(--layer8e916-plum); }

/* Body content link style (the 3 mandatory internal links) */
.layer8e916-body-link {
  color: var(--layer8e916-plum);
  font-weight: 700;
  border-bottom: 1px dashed rgba(221, 160, 221, 0.6);
}

.layer8e916-body-link:hover { color: var(--layer8e916-cloud); border-bottom-color: var(--layer8e916-cloud); }

/* ------------------------------------------------------------------ *
 * Extended footer (homepage-specific)
 * ------------------------------------------------------------------ */
.layer8e916-ext-foot {
  margin: 22px 12px 0;
  padding: 16px;
  border-radius: var(--layer8e916-radius-lg);
  background: var(--layer8e916-ink-2);
  border: 1px solid var(--layer8e916-cloud-faint);
}

.layer8e916-ext-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--layer8e916-cloud-faint);
  margin-bottom: 12px;
}

.layer8e916-ext-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--layer8e916-plum);
}

.layer8e916-ext-brand b {
  font-size: 14px;
  color: var(--layer8e916-cloud);
}

.layer8e916-ext-brand span {
  font-size: 11px;
  color: var(--layer8e916-cloud-mute);
}

.layer8e916-ext-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.layer8e916-ext-col h4 {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--layer8e916-plum);
  margin-bottom: 8px;
}

.layer8e916-ext-col li {
  margin-bottom: 6px;
}

.layer8e916-ext-col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--layer8e916-cloud-dim);
}

.layer8e916-ext-col a:hover { color: var(--layer8e916-cloud); }

.layer8e916-ext-col a svg { width: 13px; height: 13px; color: var(--layer8e916-plum); }

.layer8e916-ext-promo {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.layer8e916-ext-promo a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: var(--layer8e916-radius-md);
  background: var(--layer8e916-plum-soft);
  border: 1px solid var(--layer8e916-plum-line);
  color: var(--layer8e916-cloud);
  font-size: 11.5px;
  font-weight: 700;
  min-height: 44px;
}

.layer8e916-ext-promo a svg { width: 14px; height: 14px; color: var(--layer8e916-gold); }

.layer8e916-ext-disclaimer {
  grid-column: 1 / -1;
  font-size: 10.5px;
  color: var(--layer8e916-cloud-mute);
  line-height: 1.5;
  padding: 10px;
  border-radius: var(--layer8e916-radius-sm);
  background: rgba(250, 250, 250, 0.03);
  border: 1px dashed var(--layer8e916-cloud-faint);
  margin-top: 4px;
}

/* ------------------------------------------------------------------ *
 * Common slim footer (copyright only - shared across pages)
 * ------------------------------------------------------------------ */
.layer8e916-foot {
  padding: 18px 16px 24px;
  text-align: center;
  font-size: 11px;
  color: var(--layer8e916-cloud-mute);
  line-height: 1.6;
}

.layer8e916-foot b { color: var(--layer8e916-cloud); }

.layer8e916-foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.layer8e916-foot-links a {
  font-size: 11px;
  color: var(--layer8e916-cloud-dim);
}

.layer8e916-foot-links a:hover { color: var(--layer8e916-plum); }

/* ------------------------------------------------------------------ *
 * Mobile bottom nav (5 roles, compact, dual-color corner icons)
 * ------------------------------------------------------------------ */
.layer8e916-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(19, 29, 44, 0.96) 0%, rgba(14, 22, 33, 0.99) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--layer8e916-plum-line);
  box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.45);
}

.layer8e916-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px 4px;
  color: var(--layer8e916-cloud-mute);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-align: center;
  min-height: 50px;
  border-radius: var(--layer8e916-radius-sm);
  transition: color 0.2s ease, transform 0.18s ease;
}

.layer8e916-nav-item:hover { color: var(--layer8e916-cloud); }

.layer8e916-nav-item:active { transform: translateY(-1px); }

/* Dual-color corner icon = square frame with a diagonal accent in the corner */
.layer8e916-nav-ico {
  position: relative;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.layer8e916-nav-ico::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9px;
  border: 1.5px solid currentColor;
  opacity: 0.5;
}

/* Plum diagonal corner accent */
.layer8e916-nav-ico::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-top-right-radius: 9px;
  border-bottom-left-radius: 9px;
  background: var(--layer8e916-plum);
  box-shadow: 0 0 0 1.5px var(--layer8e916-ink);
}

.layer8e916-nav-ico svg {
  position: relative;
  width: 18px;
  height: 18px;
  z-index: 1;
}

/* Active state = contrast inversion */
.layer8e916-nav-item--active {
  color: var(--layer8e916-ink);
  background: linear-gradient(135deg, var(--layer8e916-plum) 0%, var(--layer8e916-plum-deep) 100%);
  box-shadow: 0 4px 12px rgba(221, 160, 221, 0.36);
}

.layer8e916-nav-item--active .layer8e916-nav-ico::before {
  border-color: var(--layer8e916-ink);
  opacity: 0.6;
}

.layer8e916-nav-item--active .layer8e916-nav-ico::after {
  background: var(--layer8e916-gold);
  box-shadow: 0 0 0 1.5px var(--layer8e916-plum-deep);
}

/* Promo nav items get a gold corner accent */
.layer8e916-nav-item--promo .layer8e916-nav-ico::after {
  background: var(--layer8e916-gold);
}

.layer8e916-nav-label {
  position: relative;
  line-height: 1;
}

/* ------------------------------------------------------------------ *
 * Floating buttons (back-to-top, support)
 * ------------------------------------------------------------------ */
.layer8e916-floats {
  position: fixed;
  right: 12px;
  bottom: 78px;
  z-index: 65;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layer8e916-float-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--layer8e916-plum) 0%, var(--layer8e916-plum-deep) 100%);
  color: var(--layer8e916-ink);
  box-shadow: var(--layer8e916-shadow-plum);
  transition: transform 0.18s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.layer8e916-float-btn:hover { color: var(--layer8e916-ink); transform: translateY(-2px); }

.layer8e916-float-btn svg { width: 20px; height: 20px; }

.layer8e916-to-top {
  opacity: 0;
  visibility: hidden;
  background: var(--layer8e916-ink-3);
  color: var(--layer8e916-cloud);
  border: 1px solid var(--layer8e916-plum-line);
  box-shadow: var(--layer8e916-shadow-soft);
}

.layer8e916-to-top--show { opacity: 1; visibility: visible; }

.layer8e916-to-top:hover { color: var(--layer8e916-plum); }

/* ------------------------------------------------------------------ *
 * Utility
 * ------------------------------------------------------------------ */
.layer8e916-no-scroll { overflow: hidden; }

.layer8e916-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.layer8e916-prose {
  font-size: 13px;
  color: var(--layer8e916-cloud-dim);
  line-height: 1.65;
}

.layer8e916-prose p { margin-bottom: 10px; }

.layer8e916-prose b { color: var(--layer8e916-cloud); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
