@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Fredoka:wght@400;500;600;700&family=Quicksand:wght@500;600;700;800&display=swap');

:root {
  --bopli-espresso: #1B1510;
  --bopli-mocha: #2A211A;
  --bopli-mocha-soft: #34291F;
  --bopli-clementine: #FF8C42;
  --bopli-orange-dark: #E67C2A;
  --bopli-orange-light: #FFB380;
  --bopli-sky: #87CEEB;
  --bopli-sky-dark: #6DB5D8;
  --bopli-cream: #FDFBF7;
  --bopli-warm-gray: #8B7355;
  --bopli-warm-gray-light: #A89080;
  --bopli-star: #FFD95A;
  --bopli-heart: #FF6FAE;
  --bopli-purple: #7C5CFF;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 32px rgba(255, 140, 66, 0.28);
  --ease-bopli: cubic-bezier(0.34, 1.56, 0.64, 1);
  --bopli-page-gutter: clamp(32px, 4.6vw, 68px);
  --font-display: 'Fredoka One', 'Fredoka', sans-serif;
  --font-body: 'Quicksand', 'Fredoka', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body.bopli-page {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 140, 66, 0.08), transparent 25%),
    radial-gradient(circle at 88% 18%, rgba(135, 206, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #1B1510 0%, #120E0B 100%);
  color: var(--bopli-cream);
  font-family: var(--font-body);
  font-weight: 600;
  overflow-x: hidden;
}

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

button,
a {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--bopli-sky);
  outline-offset: 3px;
}

.bopli-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(253, 251, 247, 0.08);
  background: rgba(27, 21, 16, 0.82);
  backdrop-filter: blur(18px);
}

.bopli-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 12px 24px;
  max-width: 100%;
  min-width: 0;
}

.bopli-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 1;
}

.bopli-logo__face,
.bopli-mascot__face {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 35%;
  background: linear-gradient(180deg, var(--bopli-orange-light), var(--bopli-clementine));
  color: var(--bopli-espresso);
  font-family: var(--font-display);
  box-shadow: var(--shadow-glow);
}

.bopli-logo__face {
  width: 48px;
  height: 48px;
  font-size: 32px;
}

.bopli-logo__face::before,
.bopli-logo__face::after,
.bopli-mascot__face::before,
.bopli-mascot__face::after {
  position: absolute;
  border-radius: 999px;
  background: var(--bopli-espresso);
  content: "";
}

.bopli-logo__face::before,
.bopli-logo__face::after {
  top: 18px;
  width: 4px;
  height: 4px;
}

.bopli-logo__face::before {
  left: 16px;
}

.bopli-logo__face::after {
  right: 16px;
}

.bopli-logo__text strong {
  display: block;
  color: var(--bopli-cream);
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.bopli-logo__text span {
  display: block;
  margin-top: 3px;
  color: var(--bopli-warm-gray-light);
  font-size: 0.78rem;
  font-weight: 800;
}

.bopli-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bopli-nav a {
  min-height: 42px;
  border-radius: 999px;
  padding: 11px 14px;
  color: rgba(253, 251, 247, 0.84);
  font-size: 0.9rem;
  font-weight: 900;
}

.bopli-nav a:hover {
  background: rgba(253, 251, 247, 0.07);
  color: var(--bopli-cream);
}

.bopli-search {
  display: flex;
  align-items: center;
  width: min(24vw, 230px);
  min-height: 44px;
  border: 1px solid rgba(253, 251, 247, 0.12);
  border-radius: 999px;
  background: rgba(253, 251, 247, 0.06);
  padding: 0 14px;
  color: var(--bopli-warm-gray-light);
  font-weight: 900;
}

.bopli-header__mobile-actions {
  display: none;
  gap: 8px;
}

.bopli-icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(253, 251, 247, 0.12);
  border-radius: 16px;
  background: rgba(253, 251, 247, 0.06);
  color: var(--bopli-cream);
  font-weight: 900;
}

.bopli-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 48px;
  width: min(100%, 1180px);
  max-width: 100%;
  min-height: 520px;
  margin: 0 auto;
  padding: 88px var(--bopli-page-gutter) 72px;
}

.bopli-hero::before {
  position: absolute;
  inset: 20px 24px;
  z-index: -1;
  border: 1px solid rgba(253, 251, 247, 0.08);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 78% 26%, rgba(255, 140, 66, 0.22), transparent 28%),
    radial-gradient(circle at 28% 72%, rgba(135, 206, 235, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(42, 33, 26, 0.92), rgba(27, 21, 16, 0.96));
  box-shadow: var(--shadow-card);
  content: "";
}

.bopli-eyebrow,
.bopli-section__eyebrow {
  margin: 0 0 12px;
  color: var(--bopli-clementine);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bopli-hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--bopli-cream);
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.bopli-title {
  margin: 0;
  color: var(--bopli-cream);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.bopli-subtitle {
  margin: 8px 0 0;
  color: rgba(253, 251, 247, 0.82);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.bopli-kicker {
  margin: 0 0 6px;
  color: var(--bopli-clementine);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bopli-hero h1 span {
  color: var(--bopli-clementine);
}

.bopli-hero__copy {
  max-width: 520px;
  margin: 20px 0 0;
  color: rgba(253, 251, 247, 0.86);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.55;
}

.bopli-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.bopli-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.bopli-btn--primary {
  background: linear-gradient(180deg, #FFB380 0%, #FF8C42 48%, #E67C2A 100%);
  color: #1B1510;
  box-shadow: 0 12px 24px rgba(255, 140, 66, 0.28);
}

.bopli-btn--secondary {
  border: 1px solid rgba(253, 251, 247, 0.12);
  background: rgba(253, 251, 247, 0.06);
  color: var(--bopli-cream);
}

.bopli-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bopli-mascot-card {
  position: relative;
  width: min(100%, 380px);
  min-height: 390px;
  border: 1px solid rgba(253, 251, 247, 0.11);
  border-radius: 44px;
  background:
    radial-gradient(circle at 70% 14%, rgba(255, 217, 90, 0.36), transparent 25%),
    radial-gradient(circle at 18% 85%, rgba(135, 206, 235, 0.22), transparent 32%),
    linear-gradient(160deg, rgba(253, 251, 247, 0.08), rgba(42, 33, 26, 0.78));
  box-shadow: 0 28px 45px rgba(0, 0, 0, 0.45);
  animation: bopliFloat 4s ease-in-out infinite;
}

.bopli-mascot__face {
  position: absolute;
  top: 68px;
  left: 50%;
  width: 178px;
  height: 178px;
  transform: translateX(-50%);
  font-size: 9rem;
}

.bopli-mascot__face::before,
.bopli-mascot__face::after {
  top: 67px;
  width: 12px;
  height: 12px;
}

.bopli-mascot__face::before {
  left: 58px;
}

.bopli-mascot__face::after {
  right: 58px;
}

.bopli-mascot__smile {
  position: absolute;
  top: 120px;
  left: 50%;
  width: 62px;
  height: 30px;
  border-bottom: 8px solid var(--bopli-espresso);
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.bopli-mascot-card::before,
.bopli-mascot-card::after {
  position: absolute;
  border-radius: 999px;
  content: "";
}

.bopli-mascot-card::before {
  right: 52px;
  bottom: 84px;
  width: 76px;
  height: 76px;
  background: var(--bopli-sky);
}

.bopli-mascot-card::after {
  bottom: 64px;
  left: 54px;
  width: 94px;
  height: 94px;
  background: var(--bopli-heart);
  opacity: 0.82;
}

.bopli-spark {
  position: absolute;
  font-size: 1.5rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.bopli-spark--one {
  top: 36px;
  right: 52px;
}

.bopli-spark--two {
  right: 30px;
  bottom: 136px;
}

.bopli-spark--three {
  bottom: 40px;
  left: 80px;
}

@keyframes bopliFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.bopli-categories {
  display: flex;
  gap: 12px;
  width: min(100%, 1180px);
  max-width: 100%;
  margin: 0 auto 42px;
  overflow-x: auto;
  padding: 0 var(--bopli-page-gutter) 8px;
  scrollbar-width: none;
}

.bopli-categories::-webkit-scrollbar {
  display: none;
}

.bopli-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(253, 251, 247, 0.1);
  border-radius: 999px;
  background: rgba(253, 251, 247, 0.055);
  color: var(--bopli-cream);
  padding: 12px 18px;
  font-weight: 900;
}

.bopli-chip.is-active,
.bopli-chip:hover {
  border-color: rgba(255, 140, 66, 0.52);
  background: rgba(255, 140, 66, 0.16);
  color: var(--bopli-orange-light);
}

.bopli-section {
  width: min(100%, 1180px);
  max-width: 100%;
  margin: 0 auto 54px;
  padding: 0 var(--bopli-page-gutter);
}

.bopli-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.bopli-section__eyebrow {
  margin-bottom: 4px;
  font-size: 0.78rem;
}

.bopli-section h2 {
  margin: 0;
  color: var(--bopli-cream);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.bopli-section__header a {
  min-height: 42px;
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(253, 251, 247, 0.07);
  color: var(--bopli-orange-light);
  font-weight: 900;
}

.bopli-featured-grid,
.bopli-games-grid {
  display: grid;
  gap: 18px;
}

.bopli-featured-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bopli-games-grid {
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
}

.bopli-game-card {
  overflow: hidden;
  border: 1px solid rgba(253, 251, 247, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(42, 33, 26, 0.94), rgba(27, 21, 16, 0.96));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.bopli-game-card:hover,
.bopli-game-card:focus-within {
  border-color: rgba(255, 140, 66, 0.42);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38), 0 0 24px rgba(255, 140, 66, 0.16);
  transform: translateY(-5px);
}

.bopli-game-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 140, 66, 0.18), transparent 36%),
    linear-gradient(135deg, #2A211A, #1B1510);
}

.bopli-game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.bopli-game-card:hover img {
  transform: scale(1.05);
}

.bopli-game-card__pill {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  border: 1px solid rgba(253, 251, 247, 0.12);
  border-radius: 999px;
  background: rgba(27, 21, 16, 0.72);
  backdrop-filter: blur(10px);
  color: var(--bopli-cream);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 6px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bopli-game-card__play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFB380, #FF8C42);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  color: #1B1510;
  font-weight: 900;
}

.bopli-game-card__body {
  padding: 12px 13px 14px;
}

.bopli-game-card__body h3 {
  display: -webkit-box;
  min-height: 2.26em;
  margin: 0 0 4px;
  overflow: hidden;
  color: var(--bopli-cream);
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bopli-game-card__body p {
  margin: 0;
  color: var(--bopli-warm-gray-light);
  font-size: 0.78rem;
  font-weight: 900;
}

.bopli-ad-wrap {
  width: min(100%, 1180px);
  max-width: 100%;
  margin: 0 auto 42px;
  padding: 0 var(--bopli-page-gutter);
}

.bopli-feed-ad {
  width: min(100%, 1180px);
  margin: 22px auto;
}

.bopli-ad-zone {
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 18px;
  border: 1px dashed rgba(253, 251, 247, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(253, 251, 247, 0.07);
  color: var(--bopli-warm-gray-light);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
}

.bopli-ad-zone.is-configured {
  min-height: auto;
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.bopli-ad-label {
  display: block;
  margin-bottom: 3px;
  color: rgba(253, 251, 247, 0.58);
  font-size: 0.66rem;
  text-transform: uppercase;
}

#bopli-ad-mobile-sticky {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 80;
  transform: translateX(-50%);
  width: min(320px, calc(100vw - 24px)) !important;
}

#bopli-ad-mobile-sticky.is-placeholder,
#bopli-ad-mobile-sticky:empty {
  display: none;
}

.bopli-footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  width: min(100%, 1180px);
  max-width: 100%;
  margin: 80px auto 0;
  border-top: 1px solid rgba(253, 251, 247, 0.1);
  padding: 34px var(--bopli-page-gutter) 44px;
  color: var(--bopli-warm-gray-light);
}

.bopli-footer h4,
.bopli-footer__brand strong {
  color: var(--bopli-cream);
  font-family: var(--font-display);
}

.bopli-footer__brand strong {
  display: block;
  font-size: 2rem;
}

.bopli-footer p {
  max-width: 420px;
  margin: 8px 0 0;
  line-height: 1.55;
}

.bopli-footer h4 {
  margin: 0 0 12px;
}

.bopli-footer a {
  display: block;
  margin-bottom: 8px;
  color: var(--bopli-warm-gray-light);
  font-weight: 800;
}

.bopli-footer a:hover {
  color: var(--bopli-clementine);
}

.bopli-panel {
  border: 1px solid rgba(253, 251, 247, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(42, 33, 26, 0.94), rgba(27, 21, 16, 0.96));
  box-shadow: var(--shadow-card);
}

@media (max-width: 980px) {
  :root {
    --bopli-page-gutter: 24px;
  }

  .bopli-nav,
  .bopli-search {
    display: none;
  }

  .bopli-header__mobile-actions {
    display: flex;
  }

  .bopli-hero {
    grid-template-columns: 1fr;
    padding: 48px 24px 36px;
    text-align: center;
  }

  .bopli-hero__content {
    min-width: 0;
  }

  .bopli-hero::before {
    inset: 8px;
  }

  .bopli-hero__copy {
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
    font-size: 1rem;
  }

  .bopli-hero__actions {
    align-items: center;
    justify-content: center;
  }

  .bopli-mascot-card {
    width: min(78vw, 280px);
    min-height: 288px;
  }

  .bopli-mascot__face {
    top: 48px;
    width: 132px;
    height: 132px;
    font-size: 6.5rem;
  }

  .bopli-mascot__face::before,
  .bopli-mascot__face::after {
    top: 50px;
    width: 9px;
    height: 9px;
  }

  .bopli-mascot__face::before {
    left: 43px;
  }

  .bopli-mascot__face::after {
    right: 43px;
  }

  .bopli-mascot__smile {
    top: 88px;
    width: 48px;
  }

  .bopli-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .bopli-header__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, auto) 1fr auto;
    gap: 10px;
    padding: 10px 16px;
  }

  .bopli-header__mobile-actions {
    position: absolute;
    top: 50%;
    right: 16px;
    justify-self: end;
    transform: translateY(-50%);
  }

  .bopli-icon-button {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .bopli-logo__text span {
    display: none;
  }

  .bopli-section__header {
    align-items: start;
    flex-direction: column;
  }

  .bopli-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  :root {
    --bopli-page-gutter: 16px;
  }

  .bopli-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .bopli-game-card {
    border-radius: 18px;
  }

  .bopli-hero h1 {
    font-size: clamp(2.25rem, 10.5vw, 3rem);
    line-height: 0.98;
  }

  .bopli-hero__actions {
    flex-direction: column;
  }

  .bopli-btn {
    width: min(100%, 230px);
  }

  .bopli-hero h1 span {
    display: block;
  }

  .bopli-awaits {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
