/* ==========================================================================
   Zoomie Calm — Global Stylesheet
   Theme: Zen, calm, meditation, puzzle
   Author: Zoomie Calm team
   ========================================================================== */

/* ----- CSS Reset / Base ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #2C3E50;
  background: #F5F7F5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas, iframe {
  display: block;
  max-width: 100%;
}

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

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

input, textarea, select {
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ----- Theme Tokens ----- */
:root {
  --color-primary: #5B7C99;
  --color-primary-soft: #B4D4E1;
  --color-secondary: #A8D5BA;
  --color-accent: #F4A6A0;
  --color-bg: #F5F7F5;
  --color-card: #FFFFFF;
  --color-text: #2C3E50;
  --color-text-soft: #6B7C8A;
  --color-text-muted: #95A5A6;
  --color-border: #E5ECEC;
  --color-divider: #EEF1F0;
  --color-success: #6FB98F;
  --color-warning: #E8B86D;
  --color-danger: #D08585;
  --gradient-hero: linear-gradient(135deg, #B4D4E1 0%, #D6E5C1 100%);
  --gradient-card: linear-gradient(160deg, #F0F7F1 0%, #E8F0F4 100%);
  --gradient-cta: linear-gradient(135deg, #5B7C99 0%, #A8D5BA 100%);
  --shadow-sm: 0 2px 6px rgba(91, 124, 153, 0.06);
  --shadow-md: 0 4px 16px rgba(91, 124, 153, 0.10);
  --shadow-lg: 0 8px 28px rgba(91, 124, 153, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --nav-height: 60px;
  --grid-cols: 2;
  --content-padding: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Layout Shell ----- */
.app {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

main {
  flex: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-bottom: 24px;
}

.container {
  width: 100%;
  padding: 0 var(--content-padding);
}

/* ----- Top Navigation ----- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.topnav__inner {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--content-padding);
  display: flex;
  align-items: center;
  gap: 10px;
}

.topnav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka One', cursive;
  font-size: 18px;
  color: var(--color-primary);
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

.topnav__brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.topnav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.topnav__brand-text small {
  font-family: 'Nunito', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: var(--color-text-soft);
  letter-spacing: 0.5px;
  margin-top: 2px;
  text-transform: uppercase;
}

.topnav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.topnav__pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-soft);
  transition: all var(--transition);
  white-space: nowrap;
}

.topnav__pill:hover {
  color: var(--color-primary);
  background: rgba(91, 124, 153, 0.08);
}

.topnav__pill.is-active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(91, 124, 153, 0.30);
}

.topnav__search {
  flex-shrink: 0;
  position: relative;
}

.topnav__search input {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(91, 124, 153, 0.10);
  border-radius: var(--radius-pill);
  padding: 0 12px 0 32px;
  font-size: 13px;
  color: var(--color-text);
  transition: all var(--transition);
  cursor: pointer;
}

.topnav__search input::placeholder {
  color: transparent;
}

.topnav__search::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B7C99' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  transform: translateY(-50%);
  pointer-events: none;
}

.topnav__search input:focus {
  width: 180px;
  cursor: text;
  background: rgba(91, 124, 153, 0.12);
  outline: none;
}

.topnav__search input:focus::placeholder {
  color: var(--color-text-muted);
}

@media (max-width: 539px) {
  .topnav__pill {
    padding: 6px 10px;
    font-size: 12px;
  }
  .topnav__search input:focus {
    width: 130px;
  }
  .topnav__brand-text small {
    display: none;
  }
  .topnav__brand {
    font-size: 16px;
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  background: var(--gradient-hero);
  padding: 36px 0 28px;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
  animation: floatBlob 18s ease-in-out infinite;
}

.hero::before {
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.6);
  top: -60px;
  left: -60px;
}

.hero::after {
  width: 200px;
  height: 200px;
  background: rgba(168, 213, 186, 0.5);
  bottom: -50px;
  right: -40px;
  animation-delay: -9s;
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--content-padding);
  max-width: 720px;
  margin: 0 auto;
}

.hero__title {
  font-family: 'Fredoka One', cursive;
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 10px;
  letter-spacing: 0.2px;
  line-height: 1.2;
  animation: fadeUp 0.8s ease both;
}

.hero__subtitle {
  font-size: 14px;
  color: var(--color-text-soft);
  margin-bottom: 18px;
  animation: fadeUp 0.8s 0.15s ease both;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-cta);
  color: #fff;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeUp 0.8s 0.30s ease both;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero__cta svg {
  width: 16px;
  height: 16px;
}

.hero__decor {
  position: absolute;
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
  animation: floatY 6s ease-in-out infinite;
}

.hero__decor--lotus {
  width: 60px;
  top: 24px;
  right: 24px;
}

.hero__decor--stone {
  width: 50px;
  bottom: 22px;
  left: 20px;
  animation-delay: -3s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -10px) scale(1.06); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes breathe {
  0%, 100% { transform: scale(0.92); }
  50% { transform: scale(1.08); }
}

@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

@keyframes floatLeaf {
  0% { transform: translate(0, -10px) rotate(0); }
  50% { transform: translate(20px, 10px) rotate(8deg); }
  100% { transform: translate(0, -10px) rotate(0); }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

/* ----- Section Headings ----- */
.section {
  padding: 28px 0 8px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 var(--content-padding);
  margin-bottom: 14px;
}

.section__title {
  font-family: 'Fredoka One', cursive;
  font-size: 18px;
  color: var(--color-text);
  letter-spacing: 0.2px;
}

.section__link {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section__link::after {
  content: "→";
  font-weight: 800;
  transition: transform var(--transition);
}

.section__link:hover::after {
  transform: translateX(3px);
}

/* ----- Category Pills (Filter) ----- */
.catpills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 var(--content-padding) 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.catpills::-webkit-scrollbar {
  display: none;
}

.catpill {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  color: var(--color-text-soft);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.catpill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.catpill.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(91, 124, 153, 0.25);
}

/* ----- Game Grid ----- */
.gamegrid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  gap: 14px;
  padding: 0 var(--content-padding);
}

.gamecard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  animation: fadeUp 0.6s ease both;
}

.gamecard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gamecard__cover {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gamecard__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gamecard:hover .gamecard__cover img {
  transform: scale(1.06);
}

.gamecard__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.gamecard__play {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition);
}

.gamecard:hover .gamecard__play {
  opacity: 1;
  transform: scale(1);
}

.gamecard__play::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 10px solid var(--color-primary);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}

.gamecard__body {
  padding: 10px 12px 12px;
}

.gamecard__title {
  font-family: 'Fredoka One', cursive;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gamecard__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--color-text-soft);
  font-weight: 600;
}

.gamecard__rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--color-warning);
}

.gamecard__rating::before {
  content: "★";
  font-size: 12px;
}

.gamecard__plays::before {
  content: "▶ ";
  color: var(--color-primary);
  font-size: 9px;
}

/* ----- List Toolbar ----- */
.listtoolbar {
  position: sticky;
  top: var(--nav-height);
  z-index: 20;
  background: rgba(245, 247, 245, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 10px var(--content-padding);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.listtoolbar__row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.listtoolbar__count {
  font-size: 12px;
  color: var(--color-text-soft);
  font-weight: 700;
  margin-left: auto;
}

.listtoolbar__sort {
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-soft);
}

.listtoolbar__sort:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* ----- Ad Slots ----- */
.adslot {
  margin: 20px var(--content-padding);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(180, 212, 225, 0.4) 0%, rgba(214, 229, 193, 0.4) 100%);
  border: 1px dashed rgba(91, 124, 153, 0.30);
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: center;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  position: relative;
}

.adslot::before {
  content: "AD";
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 9px;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.7);
  padding: 1px 6px;
  border-radius: 4px;
}

.adslot--leaderboard { min-height: 90px; }
.adslot--rectangle { min-height: 250px; }
.adslot--halfpage { min-height: 300px; }
.adslot--mobile-leaderboard { min-height: 100px; }

.adslot--sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  z-index: 100;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--color-border);
  background: #fff;
  min-height: 60px;
  max-height: 90px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(0);
  transition: transform var(--transition);
}

.adslot--sticky.is-collapsed {
  transform: translateY(calc(100% - 32px));
}

.adslot__label {
  font-size: 10px;
  font-weight: 800;
  color: var(--color-text-muted);
  background: rgba(91, 124, 153, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.adslot__close {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(91, 124, 153, 0.12);
  color: var(--color-text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.adslot__close:hover {
  background: rgba(91, 124, 153, 0.25);
}

.adslot__placeholder {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 700;
  letter-spacing: 0.3px;
}

body.has-sticky-ad {
  padding-bottom: 80px;
}

/* ----- Footer ----- */
.footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 28px var(--content-padding) 24px;
  margin-top: 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.footer__brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.footer__tagline {
  font-size: 12px;
  color: var(--color-text-soft);
  line-height: 1.5;
}

.footer__col h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 12px;
  color: var(--color-text);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__col a {
  font-size: 12px;
  color: var(--color-text-soft);
  font-weight: 600;
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--color-primary);
}

.footer__bottom {
  max-width: 720px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--color-divider);
  text-align: center;
  font-size: 11px;
  color: var(--color-text-muted);
}

@media (max-width: 539px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .footer__brand {
    justify-content: center;
  }
}

/* ----- Play Page (iframe) ----- */
.play {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--nav-height) - 90px);
  background: linear-gradient(180deg, #F5F7F5 0%, #E8F0F4 100%);
  display: flex;
  flex-direction: column;
}

.play__head {
  padding: 16px var(--content-padding) 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.play__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  padding: 6px 10px;
  background: rgba(91, 124, 153, 0.08);
  border-radius: var(--radius-pill);
}

.play__back::before {
  content: "←";
  font-weight: 800;
}

.play__title {
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  color: var(--color-text);
}

.play__framewrap {
  flex: 1;
  margin: 0 var(--content-padding);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  min-height: 480px;
}

.play__frame {
  width: 100%;
  height: 70vh;
  min-height: 480px;
  border: 0;
  display: block;
}

.play__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(245, 247, 245, 0.92);
  z-index: 5;
  transition: opacity 0.4s ease;
}

.play__loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play__loader {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(91, 124, 153, 0.18);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

.play__loading-text {
  font-size: 13px;
  color: var(--color-text-soft);
  font-weight: 700;
  animation: pulseGlow 1.6s ease-in-out infinite;
}

/* ----- Detail Page ----- */
.detail {
  padding: 18px var(--content-padding) 0;
}

.detail__bread {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-soft);
  font-weight: 600;
  margin-bottom: 14px;
}

.detail__bread a:hover {
  color: var(--color-primary);
}

.detail__bread span {
  color: var(--color-text-muted);
}

.detail__hero {
  position: relative;
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.detail__hero::before, .detail__hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.3;
  pointer-events: none;
}

.detail__hero::before {
  width: 180px;
  height: 180px;
  background: var(--color-primary-soft);
  top: -50px;
  left: -50px;
}

.detail__hero::after {
  width: 160px;
  height: 160px;
  background: var(--color-secondary);
  bottom: -50px;
  right: -50px;
}

.detail__icon {
  position: relative;
  z-index: 2;
  width: 110px;
  height: 110px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
  margin-bottom: 14px;
  overflow: hidden;
}

.detail__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail__name {
  position: relative;
  z-index: 2;
  font-family: 'Fredoka One', cursive;
  font-size: 22px;
  color: var(--color-text);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.detail__sub {
  position: relative;
  z-index: 2;
  font-size: 13px;
  color: var(--color-text-soft);
  font-weight: 600;
  margin-bottom: 12px;
}

.detail__stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--color-text-soft);
  font-weight: 700;
  margin-bottom: 18px;
}

.detail__stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.detail__stat--rating { color: var(--color-warning); }
.detail__stat--rating::before { content: "★"; }

.detail__play {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-cta);
  color: #fff;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(91, 124, 153, 0.35);
  transition: all var(--transition);
}

.detail__play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 124, 153, 0.45);
}

.detail__play::before {
  content: "▶";
  font-size: 11px;
}

.detail__section {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.detail__h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail__h2::before {
  content: "";
  width: 4px;
  height: 14px;
  background: var(--gradient-cta);
  border-radius: 2px;
}

.detail__desc {
  font-size: 13px;
  color: var(--color-text-soft);
  line-height: 1.65;
  margin-bottom: 8px;
}

.detail__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-soft);
  line-height: 1.55;
}

.detail__list li::before {
  content: "○";
  color: var(--color-primary);
  font-weight: 800;
  margin-top: 1px;
  flex-shrink: 0;
}

.detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail__tag {
  padding: 5px 10px;
  background: rgba(91, 124, 153, 0.10);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.detail__comments {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail__comment {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-divider);
}

.detail__comment:last-child {
  border-bottom: 0;
}

.detail__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}

.detail__comment-body {
  flex: 1;
}

.detail__comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.detail__comment-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text);
}

.detail__comment-stars {
  color: var(--color-warning);
  font-size: 12px;
  letter-spacing: 1px;
}

.detail__comment-date {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-left: auto;
}

.detail__comment-text {
  font-size: 12px;
  color: var(--color-text-soft);
  line-height: 1.55;
}

/* ----- Static pages (privacy/terms/contact/404) ----- */
.static {
  padding: 24px var(--content-padding);
  max-width: 720px;
  margin: 0 auto;
}

.static__title {
  font-family: 'Fredoka One', cursive;
  font-size: 24px;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.static__sub {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.static__h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  color: var(--color-text);
  margin: 22px 0 8px;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.static__h2::before {
  content: "";
  width: 4px;
  height: 14px;
  background: var(--gradient-cta);
  border-radius: 2px;
}

.static__p {
  font-size: 13px;
  color: var(--color-text-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}

.static__p a {
  color: var(--color-primary);
  font-weight: 700;
}

.static__list {
  margin: 10px 0 16px 0;
  padding-left: 18px;
  list-style: disc;
}

.static__list li {
  font-size: 13px;
  color: var(--color-text-soft);
  line-height: 1.7;
  margin-bottom: 4px;
}

.static__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.static__form label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
}

.static__form input,
.static__form textarea {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  color: var(--color-text);
  transition: border-color var(--transition);
}

.static__form input:focus,
.static__form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91, 124, 153, 0.10);
}

.static__form textarea {
  min-height: 110px;
  resize: vertical;
}

.static__form button {
  background: var(--gradient-cta);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 13px;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.static__form button:hover {
  transform: translateY(-2px);
}

.static__form__note {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* ----- 404 ----- */
.notfound {
  text-align: center;
  padding: 60px 20px 40px;
}

.notfound__big {
  font-family: 'Fredoka One', cursive;
  font-size: 80px;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.notfound__title {
  font-family: 'Fredoka One', cursive;
  font-size: 22px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.notfound__desc {
  font-size: 13px;
  color: var(--color-text-soft);
  margin-bottom: 22px;
}

.notfound__home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-cta);
  color: #fff;
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

/* ----- Misc Utility ----- */
.spacer-sm { height: 12px; }
.spacer-md { height: 20px; }
.spacer-lg { height: 32px; }

.center { text-align: center; }
.mt-md { margin-top: 16px; }
.mb-md { margin-bottom: 16px; }

.text-muted { color: var(--color-text-muted); }
.text-soft { color: var(--color-text-soft); }

/* ----- Toast / Banner ----- */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(44, 62, 80, 0.95);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  z-index: 200;
  opacity: 0;
  transition: all var(--transition);
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ----- Cookie Banner ----- */
.cookiebanner {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-soft);
  line-height: 1.55;
  transform: translateY(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookiebanner.is-hidden {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}

.cookiebanner__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookiebanner__btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  margin-left: auto;
}

.cookiebanner__btn--accept {
  background: var(--color-primary);
  color: #fff;
}

.cookiebanner__btn--decline {
  background: rgba(91, 124, 153, 0.10);
  color: var(--color-text-soft);
}

.cookiebanner a {
  color: var(--color-primary);
  font-weight: 700;
}

/* ----- Empty / No Results ----- */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.empty::before {
  content: "🕊";
  display: block;
  font-size: 36px;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* ----- Print ----- */
@media print {
  .topnav, .footer, .adslot, .cookiebanner { display: none !important; }
  body { background: #fff; }
}

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