/* ==========================================================================
   LetsHangout — modern responsive theme (shared with YouPlay)
   Mobile-first. Breakpoints: 576 / 768 / 992 / 1200 / 1440
   RTL (Arabic) handled with logical properties + [dir=rtl] tweaks.
   ========================================================================== */

:root {
  --bg: #0b0b18;
  --bg-2: #10101f;
  --surface: #161629;
  --surface-2: #1e1e38;
  --surface-3: #282848;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #f3f3fa;
  --muted: #a4a4c4;
  --faint: #6d6d90;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --accent-3: #22d3ee;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gold: #fbbf24;
  --silver: #cbd5e1;
  --bronze: #f59e0b;
  --ok: #22c55e;
  --danger: #f43f5e;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-glow: 0 10px 30px -10px rgba(139, 92, 246, .55);
  --gutter: 16px;
  --header-h: 60px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Cairo", "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --text-strong: #fff;
  --header-bg: rgba(11, 11, 24, .78);
  --header-bg-scrolled: rgba(11, 11, 24, .92);
  --header-shadow: 0 8px 24px -16px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

/* ---------- Light theme ---------------------------------------------------- */
:root[data-theme="light"] {
  --bg: #f6f6fb;
  --bg-2: #ececf5;
  --surface: #ffffff;
  --surface-2: #f0eff8;
  --surface-3: #e4e2f2;
  --border: rgba(22, 22, 42, .10);
  --border-strong: rgba(22, 22, 42, .18);
  --text: #16162a;
  --text-strong: #0b0b18;
  --muted: #5b5b78;
  --faint: #7c7c98;
  --accent: #7c3aed;
  --accent-2: #db2777;
  --accent-3: #0891b2;
  --grad: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  --gold: #b45309;
  --silver: #64748b;
  --bronze: #c2410c;
  --ok: #16a34a;
  --danger: #e11d48;
  --shadow: 0 10px 30px -14px rgba(22, 22, 42, .25);
  --shadow-glow: 0 10px 26px -12px rgba(124, 58, 237, .45);
  --header-bg: rgba(255, 255, 255, .82);
  --header-bg-scrolled: rgba(255, 255, 255, .94);
  --header-shadow: 0 8px 24px -18px rgba(22, 22, 42, .35);
  color-scheme: light;
}
:root[data-theme="light"] body.yp-body {
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(124, 58, 237, .08), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(219, 39, 119, .06), transparent 60%),
    var(--bg);
}
:root[data-theme="olive"] {
  --bg: #636b2f;
  --bg-2: #4f5524;
  --surface: #545b27;
  --surface-2: #4a5021;
  --surface-3: #3f451c;
  --border: rgba(255, 255, 240, .12);
  --border-strong: rgba(255, 255, 240, .22);
  --text: #fbfbef;
  --text-strong: #fff;
  --muted: #e1e5c8;
  --faint: #c3c8a3;
  --accent: #d9692c;
  --accent-2: #b5452f;
  --accent-3: #f4d35e;
  --grad: linear-gradient(135deg, #b5452f 0%, #d9692c 100%);
  --gold: #f4d35e;
  --shadow: 0 10px 30px -12px rgba(30, 33, 12, .6);
  --shadow-glow: 0 10px 30px -10px rgba(217, 105, 44, .55);
  --header-bg: rgba(99, 107, 47, .85);
  --header-bg-scrolled: rgba(84, 91, 39, .95);
  --header-shadow: 0 8px 24px -16px rgba(30, 33, 12, .9);
  color-scheme: dark;
}
:root[data-theme="olive"] body.yp-body {
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(244, 211, 94, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(217, 105, 44, .10), transparent 60%),
    var(--bg);
}
:root[data-theme="olive"] ::selection { background: rgba(244, 211, 94, .45); color: #1e210c; }
:root[data-theme="olive"] .yp-menu.dropdown-menu > .active > a { background: rgba(244, 211, 94, .2); }
:root[data-theme="light"] .modal-backdrop.in { background: #16162a; opacity: .45; }
:root[data-theme="light"] .mfp-bg { background: #16162a; opacity: .85; }
:root[data-theme="light"] ::selection { background: rgba(124, 58, 237, .25); color: var(--text-strong); }

@media (min-width: 768px)  { :root { --gutter: 24px; --header-h: 68px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

/* ---------- Base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { height: auto; min-height: 100%; }
body.yp-body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(139, 92, 246, .14), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(236, 72, 153, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: 0;
}
[dir="rtl"] body.yp-body, .yp-lang-ar { font-family: var(--font-ar); }
img { max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: none; transition: color .2s var(--ease); }
a:hover, a:focus { color: var(--text-strong); text-decoration: none; }
h1, h2, h3, h4, h5 { color: var(--text); font-weight: 700; line-height: 1.25; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(139, 92, 246, .45); color: #fff; }

.yp-skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 2000; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: #fff; }
.yp-skip:focus { inset-inline-start: 8px; }

.yp-container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.yp-main { display: block; min-height: 60vh; padding-bottom: 24px; }
.yp-text-center { text-align: center; }

/* ---------- Buttons -------------------------------------------------------- */
.yp-btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--h); padding: 0 1.25em;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 14px/1 var(--font); letter-spacing: .02em; white-space: nowrap;
  color: var(--text-strong); background: var(--surface-2);
  cursor: pointer; user-select: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.yp-lang-ar .yp-btn { font-family: var(--font-ar); }
.yp-btn:hover, .yp-btn:focus { color: var(--text-strong); transform: translateY(-1px); }
.yp-btn:active { transform: translateY(0) scale(.98); }
.yp-btn--primary, .yp-btn--primary:hover, .yp-btn--primary:focus { color: #fff; }
.yp-btn--primary { background: var(--grad); box-shadow: var(--shadow-glow); }
.yp-btn--primary:hover { box-shadow: 0 14px 34px -10px rgba(236, 72, 153, .7); }
.yp-btn--ghost { background: transparent; border-color: var(--border-strong); }
.yp-btn--ghost:hover { background: var(--surface-2); border-color: var(--accent); }
.yp-btn--whatsapp { background: #25d366; color: #06290f; }
.yp-btn--whatsapp:hover { color: #06290f; background: #2ee874; }
.yp-btn--sm { --h: 36px; font-size: 13px; padding: 0 1em; }
.yp-btn--lg { --h: 52px; font-size: 16px; padding: 0 1.75em; }
.yp-btn--block { display: flex; width: 100%; }
@media (max-width: 575px) { .yp-btn--lg { --h: 46px; font-size: 15px; padding: 0 1.4em; } }

.yp-pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 600; }

/* ---------- Header -------------------------------------------------------- */
.yp-header {
  position: sticky; top: 0; z-index: 1030;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s var(--ease), background .25s;
}
.yp-header.is-scrolled { background: var(--header-bg-scrolled); box-shadow: var(--header-shadow); }
.yp-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.yp-logo { display: inline-flex; align-items: center; min-width: 0; font-weight: 700; font-size: 20px; }
.yp-logo img { display: block; max-height: 34px; width: auto; }
@media (min-width: 768px) { .yp-logo img { max-height: 40px; } }
.yp-logo p { margin: 0; }
.yp-logo__on-dark, .yp-logo__on-light { display: contents; }
.yp-logo__on-light { display: none; }
:root[data-theme="light"] .yp-logo__on-dark { display: none; }
:root[data-theme="light"] .yp-logo__on-light { display: contents; }
.yp-header__actions { display: flex; align-items: center; gap: 8px; }

.yp-icon-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; min-width: 40px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  font: 600 13px/1 var(--font); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.yp-lang-ar .yp-icon-btn { font-family: var(--font-ar); }
.yp-icon-btn:hover, .open > .yp-icon-btn { background: var(--surface-2); border-color: var(--border-strong); }
.yp-icon-btn--accent { background: var(--grad); border-color: transparent; color: #fff; }
.yp-icon-btn--accent:hover, .open > .yp-icon-btn--accent { background: var(--grad); filter: brightness(1.08); border-color: transparent; }
.yp-icon-btn__label { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .yp-icon-btn__label { display: none; } .yp-icon-btn { padding: 0; justify-content: center; } }
.yp-avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .22); font-size: 12px; }
@media (max-width: 420px) { .yp-icon-btn .yp-avatar { width: 40px; height: 40px; background: transparent; font-size: 14px; } }

/* Dropdown menus (Bootstrap 3 behaviour, new skin) */
.yp-dropdown { position: relative; }
.yp-menu.dropdown-menu {
  margin-top: 10px; padding: 8px; min-width: 200px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--text); font-size: 14px;
  inset-inline-end: 0; inset-inline-start: auto;
}
[dir="rtl"] .yp-menu.dropdown-menu-right { right: auto; left: 0; }
.yp-menu.dropdown-menu > li > a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); white-space: nowrap;
}
.yp-menu.dropdown-menu > li > a:hover, .yp-menu.dropdown-menu > li > a:focus { background: var(--surface-2); color: var(--text-strong); }
.yp-menu.dropdown-menu > .active > a, .yp-menu.dropdown-menu > .active > a:hover { background: rgba(139, 92, 246, .2); color: var(--text-strong); }
.yp-menu--form.dropdown-menu { width: 320px; padding: 20px; }
@media (max-width: 575px) {
  .yp-menu--form.dropdown-menu { position: fixed; top: calc(var(--header-h) + 4px); left: 12px; right: 12px; width: auto; margin: 0; }
}

/* Category chip bar */
.yp-catbar { border-top: 1px solid var(--border); }
.yp-chips {
  display: flex; gap: 8px; margin: 0; padding: 10px 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent 100%);
}
.yp-chips::-webkit-scrollbar { display: none; }
@media (min-width: 1200px) { .yp-chips { justify-content: center; -webkit-mask-image: none; mask-image: none; } }
.yp-chips li { flex: 0 0 auto; scroll-snap-align: start; }
.yp-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: all .2s var(--ease);
}
.yp-chip:hover, .yp-chip:focus { color: var(--text-strong); border-color: var(--border-strong); background: var(--surface-2); }
.yp-chip.is-active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: var(--shadow-glow); }

/* ---------- Hero / promo banners ----------------------------------------- */
.yp-hero { padding-top: 16px; }
@media (min-width: 768px) { .yp-hero { padding-top: 24px; } }
.yp-hero__frame {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.yp-hero__img, .yp-hero__img img { display: block; width: 100%; }
.yp-hero__img img { height: auto; min-height: 160px; object-fit: cover; transition: transform 1.2s var(--ease); }
.yp-hero--lg .yp-hero__img img { max-height: 620px; }
.yp-hero--md .yp-hero__img img { max-height: 420px; }
.yp-hero__frame:hover .yp-hero__img img { transform: scale(1.03); }
.yp-hero__shade { position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, rgba(11, 11, 24, .85), transparent); pointer-events: none; z-index: 1; }
.yp-hero__cta {
  position: absolute; inset-inline: 0; bottom: 16px; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px;
}
@media (min-width: 768px) { .yp-hero__cta { bottom: 28px; } }
.yp-hero .sharebtnretret, .yp-badge-ok {
  display: inline-grid !important; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ok); color: #fff; box-shadow: 0 6px 18px -6px rgba(34, 197, 94, .8);
}
.yp-hero .sharebtnretret:empty { display: none !important; }

/* ---------- Sections & rails --------------------------------------------- */
.yp-section { padding-top: 28px; }
@media (min-width: 992px) { .yp-section { padding-top: 40px; } }
.yp-section--flush { padding-top: 0; margin-bottom: 24px; }
.yp-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.yp-section__title { position: relative; font-size: 19px; padding-inline-start: 14px; }
.yp-section__title::before { content: ""; position: absolute; inset-inline-start: 0; top: 15%; bottom: 15%; width: 4px; border-radius: 4px; background: var(--grad); }
@media (min-width: 768px) { .yp-section__title { font-size: 22px; } }
.yp-section__tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.yp-link-more { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 600; }
.yp-link-more:hover { color: var(--text-strong); background: var(--surface); }
[dir="rtl"] .yp-link-more .fa, [dir="rtl"] .yp-link-more svg,
[dir="rtl"] .yp-mini__go { transform: scaleX(-1); }

.yp-rail-btn {
  display: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; transition: background .2s, opacity .2s;
}
.yp-rail-btn:hover:not(:disabled) { background: var(--surface-2); border-color: var(--border-strong); }
.yp-rail-btn:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (min-width: 768px) { .yp-rail-btn { display: inline-grid; place-items: center; } }
[dir="rtl"] .yp-rail-btn .fa, [dir="rtl"] .yp-rail-btn svg { transform: scaleX(-1); }

.yp-rail {
  --cols: 2.25;
  --gap: 12px;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--gap) * (var(--cols) - 1))) / var(--cols));
  gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 0;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 4px 0 12px;
}
.yp-rail::-webkit-scrollbar { display: none; }
.yp-rail > * { scroll-snap-align: start; min-width: 0; }
@media (min-width: 576px)  { .yp-rail { --cols: 3.2; } }
@media (min-width: 768px)  { .yp-rail { --cols: 4; --gap: 16px; } }
@media (min-width: 1200px) { .yp-rail { --cols: 5; --gap: 18px; } }
@media (min-width: 1440px) { .yp-rail { --cols: 6; } }
.yp-rail--wide { --cols: 1.25; }
@media (min-width: 576px)  { .yp-rail--wide { --cols: 2.1; } }
@media (min-width: 992px)  { .yp-rail--wide { --cols: 3; } }
@media (min-width: 1440px) { .yp-rail--wide { --cols: 4; } }

/* Game card */
.yp-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.yp-card:hover, .yp-card:focus-visible { transform: translateY(-4px); border-color: rgba(139, 92, 246, .5); box-shadow: var(--shadow-glow); }
.yp-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.yp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.yp-card:hover .yp-card__media img { transform: scale(1.07); }
.yp-card__body { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.yp-card__title { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.yp-card__play { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); color: var(--text-strong); font-size: 11px; transition: background .2s; }
.yp-card:hover .yp-card__play { background: var(--grad); }
@media (min-width: 768px) { .yp-card__title { font-size: 14.5px; } .yp-card__body { padding: 12px 14px; } }

/* ---------- Page scaffolding -------------------------------------------- */
.yp-page { padding-top: 24px; padding-bottom: 16px; }
@media (min-width: 992px) { .yp-page { padding-top: 36px; } }
.yp-page--narrow { max-width: 860px; }
.yp-page--auth { max-width: 460px; padding-top: 48px; }
.yp-page__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.yp-page__title { font-size: 24px; }
@media (min-width: 768px) { .yp-page__title { font-size: 30px; } }

.yp-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px)  { .yp-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; } }
@media (min-width: 1200px) { .yp-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.yp-layout__main { min-width: 0; display: grid; gap: 24px; align-content: start; }
.yp-layout__side { min-width: 0; }
@media (min-width: 992px) { .yp-layout__side .yp-panel { position: sticky; top: calc(var(--header-h) + 72px); } }

.yp-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 576px)  { .yp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px)  { .yp-grid { gap: 16px; } }
@media (min-width: 1200px) { .yp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

.yp-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
@media (min-width: 768px) { .yp-panel { padding: 26px; } }
.yp-panel__title { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 16px; }
.yp-panel__title .fa, .yp-panel__title svg { color: var(--accent-2); }

.yp-empty { display: grid; justify-items: center; gap: 12px; padding: 56px 20px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--muted); }
.yp-empty > .fa, .yp-empty > svg { font-size: 40px; color: var(--faint); }

/* Popular list (sidebar) */
.yp-mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.yp-mini { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); transition: background .2s; }
.yp-mini:hover { background: var(--surface-2); }
.yp-mini__img { flex-shrink: 0; width: 64px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.yp-mini__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yp-mini__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yp-mini__go { color: var(--faint); }
@media (min-width: 576px) and (max-width: 991px) { .yp-mini-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Game details ------------------------------------------------- */
.yp-shot { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); border: 1px solid var(--border); }
.yp-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.yp-shot:hover img { transform: scale(1.05); }
.yp-shot__icon { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(11, 11, 24, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 18px; border: 1px solid var(--border-strong); transition: background .2s; }
.yp-shot:hover .yp-shot__icon { background: var(--accent); }

.yp-prose { color: #d4d4e6; font-size: 15px; line-height: 1.75; }
.yp-prose p:last-child { margin-bottom: 0; }
.yp-prose img { border-radius: var(--radius-sm); }

.yp-share { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.yp-share__label { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.yp-share__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Leaderboard */
.yp-board__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.yp-board__head .yp-panel__title { margin: 0; }
.yp-board__me { display: grid; justify-items: end; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--surface-2); line-height: 1.2; }
.yp-board__me small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.yp-board__me strong { font-size: 20px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.yp-podium { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; }
.yp-podium__item { display: grid; justify-items: center; gap: 6px; padding: 16px 6px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); text-align: center; min-width: 0; }
.yp-podium__item--first { padding-top: 24px; padding-bottom: 22px; background: linear-gradient(180deg, rgba(251, 191, 36, .16), var(--surface-2)); border-color: rgba(251, 191, 36, .35); }
.yp-podium__avatar { position: relative; width: 56px; height: 56px; }
.yp-podium__item--first .yp-podium__avatar { width: 72px; height: 72px; }
.yp-podium__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--silver); background: var(--surface-3); }
.yp-podium__item--first .yp-podium__avatar img { border-color: var(--gold); }
.yp-podium__item--third .yp-podium__avatar img { border-color: var(--bronze); }
.yp-podium__avatar b { position: absolute; bottom: -4px; inset-inline-end: -4px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; color: #111; background: var(--silver); }
.yp-podium__item--first .yp-podium__avatar b { background: var(--gold); }
.yp-podium__item--third .yp-podium__avatar b { background: var(--bronze); }
.yp-podium__name { max-width: 100%; font-size: 12px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yp-podium__score { font-size: 16px; font-weight: 700; }
@media (min-width: 576px) { .yp-podium { gap: 14px; } .yp-podium__name { font-size: 13px; } }

.yp-ranks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.yp-ranks:not(.active) .yp-rank:nth-child(n+4) { display: none; }
.yp-rank { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); }
.yp-rank__pos { width: 26px; text-align: center; color: var(--faint); font-weight: 700; }
.yp-rank__avatar img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; background: var(--surface-3); }
.yp-rank__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.yp-rank__score { font-weight: 700; }

.yp-challenge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(139, 92, 246, .15), rgba(236, 72, 153, .12)); border: 1px solid rgba(139, 92, 246, .3); font-weight: 600; }
.yp-challenge .fa, .yp-challenge > span svg { color: var(--gold); }

/* ---------- Forms --------------------------------------------------------- */
.yp-form { display: grid; gap: 14px; }
.yp-form__title { font-size: 18px; margin-bottom: 2px; }
.yp-form__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0; font-size: 13px; }
.yp-form__links a { color: var(--muted); }
.yp-form__links a:hover { color: var(--accent-3); }
.yp-form__actions { display: flex; justify-content: flex-end; margin-top: 6px; }
@media (max-width: 575px) { .yp-form__actions .yp-btn { width: 100%; } }
.yp-form-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 576px) { .yp-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .yp-field--full { grid-column: 1 / -1; } }

.yp-field { display: grid; gap: 6px; margin: 0; font-weight: 400; }
.yp-field__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.yp-field .required { color: var(--accent-2); }
.yp-input,
.yp-form input[type=text], .yp-form input[type=password], .yp-form input[type=email], .yp-form input[type=tel], .yp-form textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--bg-2); color: var(--text);
  font: 400 16px/1.4 var(--font); /* 16px stops iOS zoom-on-focus */
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.yp-lang-ar .yp-input { font-family: var(--font-ar); }
.yp-input::placeholder { color: var(--faint); }
.yp-input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px rgba(139, 92, 246, .2); }
.yp-input.error { border-color: var(--danger); }
.yp-input--static { display: flex; align-items: center; background: var(--surface-2); border-style: dashed; font-weight: 600; }
.yp-form .error:not(input) { display: block; color: #fda4af; font-size: 12.5px; font-weight: 500; margin: 2px 0 0; }

.yp-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 400; color: var(--muted); cursor: pointer; margin: 0; }
.yp-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

.yp-file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.yp-file-row__preview img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-strong); display: block; }
.yp-file { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; font-weight: 400; }
.yp-file input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.yp-file__name { color: var(--muted); font-size: 13px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.yp-auth__icon { justify-self: center; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--grad); font-size: 22px; box-shadow: var(--shadow-glow); }

/* ---------- Profile hero ------------------------------------------------ */
.yp-profile-hero { padding: 28px 0 0; }
.yp-profile-hero__inner { display: flex; align-items: center; gap: 18px; }
.yp-profile-hero__inner > div { min-width: 0; }
.yp-profile-hero__avatar { flex-shrink: 0; width: 84px; height: 84px; border-radius: 50%; padding: 3px; background: var(--grad); box-shadow: var(--shadow-glow); }
.yp-profile-hero__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); display: block; background: var(--surface-2); }
.yp-profile-hero__hello { margin: 0; color: var(--muted); }
.yp-profile-hero__name { font-size: 26px; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 768px) { .yp-profile-hero__avatar { width: 108px; height: 108px; } .yp-profile-hero__name { font-size: 34px; } }

/* ---------- Modals (Bootstrap 3) ---------------------------------------- */
.modal-backdrop.in { opacity: .7; background: #05050d; }
.yp-modal .modal-dialog { margin: 72px auto 24px; padding: 0 16px; width: auto; max-width: 400px; }
.yp-modal .modal-content { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.yp-modal .modal-header { display: flex; align-items: center; justify-content: space-between; flex-direction: row-reverse; padding: 18px 20px 6px; border: 0; }
.yp-modal .modal-header::before, .yp-modal .modal-header::after { display: none; }
.yp-modal .modal-title { font-size: 19px; font-weight: 700; }
.yp-modal .close { float: none; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--text); opacity: 1; text-shadow: none; font-size: 22px; line-height: 1; }
.yp-modal .close:hover { background: var(--surface-3); color: var(--text-strong); }
.yp-modal .modal-body { padding: 14px 20px 22px; }
.yp-modal--alert .modal-header { justify-content: flex-start; }
.yp-modal--alert .modal-body { text-align: center; font-size: 15px; }
.yp-modal--alert .modal-body p { margin: 0; }
.yp-modal--alert .success_message:not(:empty)::before,
.yp-modal--alert .error_message:not(:empty)::before,
.yp-modal--alert .warning_message:not(:empty)::before { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; font-weight: 700; font-size: 24px; }
.yp-modal--alert .success_message:not(:empty)::before { content: "\2713"; background: rgba(34, 197, 94, .18); color: var(--ok); }
.yp-modal--alert .error_message:not(:empty)::before   { content: "!"; background: rgba(244, 63, 94, .18); color: var(--danger); }
.yp-modal--alert .warning_message:not(:empty)::before { content: "!"; background: rgba(251, 191, 36, .18); color: var(--gold); }
.yp-modal--alert .success_message, .yp-modal--alert .error_message, .yp-modal--alert .warning_message { display: block; }
@media (max-width: 575px) {
  .yp-modal.fade .modal-dialog { transform: translateY(24px); }
  .yp-modal.in .modal-dialog { transform: none; }
}

/* ---------- Footer -------------------------------------------------------- */
.yp-footer { margin-top: 48px; padding: 40px 0 calc(24px + env(safe-area-inset-bottom)); background: var(--bg-2); border-top: 1px solid var(--border); color: var(--muted); }
.yp-footer__grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .yp-footer__grid { grid-template-columns: 1.4fr 1.6fr 1fr; gap: 40px; } }
.yp-footer__tag { margin: 14px 0 16px; max-width: 360px; font-size: 14px; }
.yp-footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 14px; }
.yp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.yp-footer__col:nth-child(2) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.yp-footer ul a { color: var(--muted); font-size: 14px; }
.yp-footer ul a:hover { color: var(--text-strong); }
.yp-social { display: flex; gap: 10px; }
.yp-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: background .2s, transform .2s; }
.yp-social a:hover { background: var(--grad); transform: translateY(-2px); border-color: transparent; }
.yp-footer__copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; text-align: center; color: var(--faint); }
.yp-footer__copy p { margin: 0; }
.yp-footer__copy a { color: var(--muted); }

/* ---------- Theme toggle + install buttons ------------------------------- */
.yp-theme-btn { padding: 0; justify-content: center; width: 40px; }
.yp-theme-btn .yp-theme-btn__sun, .yp-theme-btn .yp-theme-btn__leaf { display: none; }
:root[data-theme="light"] .yp-theme-btn .yp-theme-btn__sun { display: inline-block; }
:root[data-theme="olive"] .yp-theme-btn .yp-theme-btn__leaf { display: inline-block; }
:root[data-theme="light"] .yp-theme-btn .yp-theme-btn__moon,
:root[data-theme="olive"] .yp-theme-btn .yp-theme-btn__moon { display: none; }
.yp-install-btn { border-color: var(--border-strong); }
.yp-install-btn[hidden] { display: none; }
.yp-install-btn:hover { border-color: var(--accent); }
@media (max-width: 575px) { .yp-install-btn .yp-icon-btn__label { display: none; } .yp-install-btn { padding: 0; width: 40px; justify-content: center; } }
@media (max-width: 360px) { .yp-header__actions { gap: 6px; } .yp-header__actions .yp-icon-btn { min-width: 36px; width: 36px; height: 36px; } }
.yp-install-steps { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 10px; color: var(--muted); }
.yp-install-steps b { color: var(--text); }

/* ---------- Third-party tweaks ------------------------------------------ */
.mfp-bg { background: #05050d; opacity: .92; }
.mfp-figure figure img { border-radius: 12px; }
.sharethis-inline-share-buttons { min-height: 0; }

/* ---------- Motion preferences ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.yp-board__empty { margin: 0 0 4px; padding: 18px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); }

/* Install help: show the steps for the visitor's OS */
#yp-install-help .yp-install-steps--android { display: none; }
#yp-install-help[data-os="android"] .yp-install-steps--ios { display: none; }
#yp-install-help[data-os="android"] .yp-install-steps--android { display: grid; }

/* ==========================================================================
   LetsHangout additions: sections nav, video / image / channel cards,
   video player page, static pages
   ========================================================================== */

/* Chip rows: centre when they fit, scroll from the start when they overflow */
@media (min-width: 1200px) { .yp-chips { justify-content: flex-start; } }
.yp-chips > li:first-child { margin-inline-start: auto; }
.yp-chips > li:last-child  { margin-inline-end: auto; }
.yp-chips--sections { padding-bottom: 8px; }
.yp-chips--sub { padding-top: 0; }
.yp-chip--sub { height: 32px; padding: 0 14px; font-size: 12.5px; background: transparent; }
.yp-chip--sub.is-active { background: var(--surface-2); color: var(--text-strong); border-color: var(--accent); box-shadow: none; }

/* Card variants */
.yp-card__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--faint); font-size: 34px; background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); }
.yp-card__badge {
  position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(11, 11, 24, .55); color: #fff; font-size: 15px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .25);
  opacity: .9; transition: background .2s, transform .25s var(--ease);
}
.yp-card:hover .yp-card__badge { background: var(--accent); transform: scale(1.08); }
.yp-card--images .yp-card__badge, .yp-card--image .yp-card__badge { opacity: 0; }
.yp-card--image:hover .yp-card__badge, .yp-card--image:focus-within .yp-card__badge { opacity: 1; }

/* Image card: square, opens lightbox, WhatsApp share bubble */
.yp-card--image .yp-card__media { aspect-ratio: 1 / 1; }
.yp-card__share {
  position: absolute; inset-inline-end: 8px; bottom: 8px; z-index: 2;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #25d366; color: #06290f; font-size: 18px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6);
  transition: transform .2s var(--ease);
}
.yp-card__share:hover, .yp-card__share:focus { color: #06290f; transform: scale(1.08); }

/* Channel card */
.yp-card--channel .yp-card__media { aspect-ratio: 16 / 10; }

/* Image grids are denser */
.yp-grid--images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 576px)  { .yp-grid--images { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .yp-grid--images { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Channels strip above a video grid */
.yp-channel-bar { display: flex; align-items: center; gap: 12px; margin: -4px 0 20px; min-width: 0; }
.yp-channel-bar__label { flex-shrink: 0; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.yp-channel-bar .yp-chips { flex: 1; min-width: 0; padding: 4px 0; }
.yp-channel-bar .yp-chips > li:first-child { margin-inline-start: 0; }

/* Video player page */
.yp-player-page { padding-top: 16px; }
@media (min-width: 992px) { .yp-player-page { padding-top: 28px; } }
.yp-player { max-width: 1100px; margin-inline: auto; }
.yp-player__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-lg); background: #000; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.yp-player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yp-player__meta { max-width: 1100px; margin: 18px auto 0; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; }
.yp-player__meta > div:first-child { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.yp-player__meta .yp-page__title { font-size: 20px; }
@media (min-width: 768px) { .yp-player__meta .yp-page__title { font-size: 26px; } }
.yp-player__desc { max-width: 1100px; margin: 18px auto 0; }
a.yp-pill:hover { color: var(--text-strong); border-color: var(--accent); }

/* Static pages */
.yp-prose h3 { font-size: 17px; margin: 1.4em 0 .6em; }
.yp-prose ol, .yp-prose ul { padding-inline-start: 1.3em; margin: 0 0 1em; display: grid; gap: 6px; }
:root[data-theme="light"] .yp-prose { color: var(--text); }

/* Footer: brand + up to 3 section columns + links */
@media (min-width: 768px)  { .yp-footer__grid--lh { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .yp-footer__grid--lh { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); } }
.yp-footer__grid--lh .yp-footer__col ul { grid-template-columns: minmax(0, 1fr); }
.yp-footer__about { text-align: start; color: var(--muted); }
.yp-footer__about p { margin: 0 0 .6em; }
.yp-footer__about p:empty { display: none; }

/* ==========================================================================
   Emerald theme — deep green with brushed-copper accents
   ========================================================================== */
:root[data-theme="emerald"] {
  --bg: #08261f;
  --bg-2: #0a2e25;
  --surface: #0e3a2f;
  --surface-2: #134638;
  --surface-3: #1a5444;
  --border: rgba(224, 176, 138, .14);
  --border-strong: rgba(224, 176, 138, .28);
  --text: #f4ebdf;
  --text-strong: #fffaf3;
  --muted: #cdbba5;
  --faint: #9c8b76;
  --accent: #c8875a;
  --accent-2: #e0b08a;
  --accent-3: #f0cfa8;
  --copper: linear-gradient(115deg, #8f5a37 0%, #c8875a 22%, #ecc39c 45%, #b8794d 62%, #d9a479 80%, #8f5a37 100%);
  --grad: var(--copper);
  --gold: #e8c28f;
  --silver: #d8d2c8;
  --bronze: #b8794d;
  --ok: #4ade80;
  --shadow: 0 12px 30px -12px rgba(0, 0, 0, .65);
  --shadow-glow: 0 10px 28px -12px rgba(200, 135, 90, .6);
  --header-bg: rgba(8, 38, 31, .82);
  --header-bg-scrolled: rgba(8, 38, 31, .95);
  --header-shadow: 0 8px 24px -16px rgba(0, 0, 0, .9);
  color-scheme: dark;
}
:root[data-theme="emerald"] body.yp-body {
  background:
    radial-gradient(1100px 600px at 100% -10%, rgba(26, 120, 92, .35), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(200, 135, 90, .10), transparent 60%),
    var(--bg);
}
:root[data-theme="emerald"] ::selection { background: rgba(224, 176, 138, .4); color: #08261f; }
/* Copper (brushed-metal) elements carry dark green text, like the mockup */
:root[data-theme="emerald"] .yp-btn--primary,
:root[data-theme="emerald"] .yp-btn--primary:hover,
:root[data-theme="emerald"] .yp-btn--primary:focus,
:root[data-theme="emerald"] .yp-chip.is-active,
:root[data-theme="emerald"] .yp-icon-btn--accent,
:root[data-theme="emerald"] .yp-auth__icon { color: #0a2e25; background-size: 200% 100%; }
:root[data-theme="emerald"] .yp-btn--primary:hover { background-position: 100% 0; box-shadow: 0 14px 34px -10px rgba(224, 176, 138, .55); }
:root[data-theme="emerald"] .yp-avatar { background: rgba(10, 46, 37, .25); }
:root[data-theme="emerald"] .yp-card { border-radius: 20px; }
:root[data-theme="emerald"] .yp-card:hover { border-color: rgba(224, 176, 138, .55); }
:root[data-theme="emerald"] .yp-card:hover .yp-card__play,
:root[data-theme="emerald"] .yp-social a:hover { color: #0a2e25; }
:root[data-theme="emerald"] .yp-card__play { background: var(--surface-3); color: var(--accent-2); }
:root[data-theme="emerald"] .yp-hero__frame { border-color: rgba(224, 176, 138, .3); }
:root[data-theme="emerald"] .yp-hero__shade { background: linear-gradient(to top, rgba(8, 38, 31, .9), transparent); }
:root[data-theme="emerald"] .yp-panel { background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
:root[data-theme="emerald"] .yp-section__title { color: var(--accent-3); }
:root[data-theme="emerald"] .yp-board__me strong { background: var(--copper); -webkit-background-clip: text; background-clip: text; }
:root[data-theme="emerald"] .yp-challenge { background: linear-gradient(135deg, rgba(200, 135, 90, .16), rgba(26, 120, 92, .18)); border-color: rgba(224, 176, 138, .3); }
:root[data-theme="emerald"] .yp-input:focus { box-shadow: 0 0 0 4px rgba(200, 135, 90, .22); }
:root[data-theme="emerald"] .yp-menu.dropdown-menu > .active > a { background: rgba(200, 135, 90, .2); }
:root[data-theme="emerald"] .modal-backdrop.in { background: #03120e; }

/* Theme button: gem icon for emerald */
.yp-theme-btn .yp-theme-btn__gem { display: none; }
:root[data-theme="emerald"] .yp-theme-btn .yp-theme-btn__gem { display: inline-block; color: var(--accent-2); }
:root[data-theme="emerald"] .yp-theme-btn .yp-theme-btn__moon { display: none; }

/* ==========================================================================
   Kids theme + layout — cream & orange pastels, doodle outlines, big rounded
   tiles, toy buttons, friendly rounded font, larger tap targets, no sidebar.
   Select with ?theme=kids (or ?theme=5) or the theme button.
   ========================================================================== */
:root[data-theme="kids"] {
  --bg: #f7e9d0;
  --bg-2: #f3dfbd;
  --surface: #fffaf0;
  --surface-2: #fdeed2;
  --surface-3: #fadcaa;
  --ink: #6b4423;                       /* doodle outline colour */
  --border: rgba(var(--kid-shadow-rgb), .28);
  --border-strong: rgba(var(--kid-shadow-rgb), .55);
  --text: #5a3a1e;
  --text-strong: #3f2711;
  --muted: #8a6a4a;
  --faint: #b39575;
  --accent: #f5962e;
  --accent-2: #f7b733;
  --accent-3: #6ab06a;
  --grad: linear-gradient(135deg, #ffb24a 0%, #f5962e 100%);
  --gold: #f2a900;
  --silver: #a8b7c8;
  --bronze: #e08a3c;
  --ok: #58b05c;
  --danger: #ef6b6b;
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 32px;
  --shadow: 0 6px 0 rgba(var(--kid-shadow-rgb), .14);
  --shadow-glow: 0 5px 0 var(--ink);
  --font: "Baloo 2", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-bg: rgba(255, 246, 228, .92);
  --header-bg-scrolled: rgba(255, 246, 228, .97);
  --header-shadow: 0 4px 0 rgba(var(--kid-shadow-rgb), .12);
  /* kids palette tokens (overridden per data-kids-color below) */
  --kid-shadow-rgb: 107, 68, 35;
  --kid-tint-1: #ffe1b8;
  --kid-tint-2: #fff1c7;
  --kid-tint-3: #e2f3d9;
  --kid-tint-4: #dcecfb;
  --kid-band: #ffe3b0;
  --kid-bubble: #fff;
  --kid-bubble-line: #f2b24a;
  --kid-input-bg: #fff;
  --kid-backdrop: #3f2711;
  --kid-on-accent: #fff;
  --kid-dot-1: rgba(245, 150, 46, .13);
  --kid-dot-2: rgba(106, 176, 106, .10);
  --kid-tile: #ffd99a;
  --kid-tile-orange: #ffcf8f;
  --kid-tile-yellow: #ffe98f;
  --kid-tile-green: #c9ebb8;
  --kid-tile-blue: #c4e1fa;
  --kid-tile-pink: #ffd0dc;
  color-scheme: light;
}

/* Kids colour palettes: same kids layout, the theme button cycles
   kids (cream) -> dark -> light -> olive -> emerald via html[data-kids-color]. */
:root[data-theme="kids"][data-kids-color="dark"] {
  --bg: #12122a; --bg-2: #171734; --surface: #1e1e3f; --surface-2: #26264d; --surface-3: #30305c;
  --ink: #8b7fe0; --kid-shadow-rgb: 0, 0, 0;
  --border: rgba(185, 168, 255, .22); --border-strong: rgba(185, 168, 255, .45);
  --text: #f3f3fa; --text-strong: #fff; --muted: #b8b8d8; --faint: #7d7da0;
  --accent: #a78bfa; --accent-2: #f472b6; --accent-3: #34d399;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%); --gold: #fbbf24;
  --header-bg: rgba(18, 18, 42, .92); --header-bg-scrolled: rgba(18, 18, 42, .97);
  --kid-tint-1: #3a2d5c; --kid-tint-2: #4a3560; --kid-tint-3: #1f4a46; --kid-tint-4: #253f66;
  --kid-band: #2a2a55; --kid-bubble: #2a2a50; --kid-bubble-line: #a78bfa; --kid-input-bg: #161630;
  --kid-backdrop: #000; --kid-on-accent: #fff;
  --kid-dot-1: rgba(167, 139, 250, .14); --kid-dot-2: rgba(52, 211, 153, .10);
  --kid-tile: #6d5bd0; --kid-tile-orange: #c2683a; --kid-tile-yellow: #b8902a;
  --kid-tile-green: #3f8f5f; --kid-tile-blue: #3d6fb0; --kid-tile-pink: #b24f80;
  color-scheme: dark;
}
:root[data-theme="kids"][data-kids-color="light"] {
  --bg: #f6f6fb; --bg-2: #ececf5; --surface: #fff; --surface-2: #f0eff8; --surface-3: #e4e2f2;
  --ink: #4c3d8f; --kid-shadow-rgb: 76, 61, 143;
  --border: rgba(76, 61, 143, .25); --border-strong: rgba(76, 61, 143, .5);
  --text: #2a2550; --text-strong: #16162a; --muted: #5b5b78; --faint: #8a8aa6;
  --accent: #7c3aed; --accent-2: #db2777; --accent-3: #0891b2;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%); --gold: #d97706;
  --header-bg: rgba(255, 255, 255, .92); --header-bg-scrolled: rgba(255, 255, 255, .97);
  --kid-tint-1: #ece4ff; --kid-tint-2: #ffe4f1; --kid-tint-3: #dcf5ee; --kid-tint-4: #dcecfb;
  --kid-band: #ece4ff; --kid-bubble: #fff; --kid-bubble-line: #a78bfa; --kid-input-bg: #fff;
  --kid-backdrop: #16162a; --kid-on-accent: #fff;
  --kid-dot-1: rgba(124, 58, 237, .10); --kid-dot-2: rgba(219, 39, 119, .08);
  --kid-tile: #e3d7ff; --kid-tile-orange: #ffd8c2; --kid-tile-yellow: #fff0b3;
  --kid-tile-green: #cdeedd; --kid-tile-blue: #cfe4fb; --kid-tile-pink: #ffd3e6;
  color-scheme: light;
}
:root[data-theme="kids"][data-kids-color="olive"] {
  --bg: #636b2f; --bg-2: #4f5524; --surface: #545b27; --surface-2: #4a5021; --surface-3: #3f451c;
  --ink: #2b2f12; --kid-shadow-rgb: 30, 33, 12;
  --border: rgba(255, 255, 240, .18); --border-strong: rgba(255, 255, 240, .35);
  --text: #fbfbef; --text-strong: #fff; --muted: #e1e5c8; --faint: #c3c8a3;
  --accent: #d9692c; --accent-2: #f4d35e; --accent-3: #8fbf4a;
  --grad: linear-gradient(135deg, #e07a3a 0%, #b5452f 100%); --gold: #f4d35e;
  --header-bg: rgba(99, 107, 47, .92); --header-bg-scrolled: rgba(84, 91, 39, .97);
  --kid-tint-1: #7b5a2c; --kid-tint-2: #7a7a2a; --kid-tint-3: #4c6a2c; --kid-tint-4: #3f5a5a;
  --kid-band: #4f5524; --kid-bubble: #4a5021; --kid-bubble-line: #f4d35e; --kid-input-bg: #3f451c;
  --kid-backdrop: #1e210c; --kid-on-accent: #fff;
  --kid-dot-1: rgba(244, 211, 94, .12); --kid-dot-2: rgba(255, 255, 240, .06);
  --kid-tile: #8a8a3a; --kid-tile-orange: #c7743a; --kid-tile-yellow: #c9a93a;
  --kid-tile-green: #6f9a3a; --kid-tile-blue: #4f7f8a; --kid-tile-pink: #b0605a;
  color-scheme: dark;
}
:root[data-theme="kids"][data-kids-color="emerald"] {
  --bg: #08261f; --bg-2: #0a2e25; --surface: #0e3a2f; --surface-2: #134638; --surface-3: #1a5444;
  --ink: #c8875a; --kid-shadow-rgb: 0, 0, 0;
  --border: rgba(224, 176, 138, .2); --border-strong: rgba(224, 176, 138, .4);
  --text: #f4ebdf; --text-strong: #fffaf3; --muted: #cdbba5; --faint: #9c8b76;
  --accent: #c8875a; --accent-2: #e0b08a; --accent-3: #4ade80;
  --grad: linear-gradient(115deg, #8f5a37 0%, #c8875a 30%, #ecc39c 55%, #b8794d 80%); --gold: #e8c28f;
  --header-bg: rgba(8, 38, 31, .92); --header-bg-scrolled: rgba(8, 38, 31, .97);
  --kid-tint-1: #4a3a2a; --kid-tint-2: #2a5040; --kid-tint-3: #1d5e4a; --kid-tint-4: #1f4a56;
  --kid-band: #134638; --kid-bubble: #134638; --kid-bubble-line: #e0b08a; --kid-input-bg: #0a2e25;
  --kid-backdrop: #03120e; --kid-on-accent: #0a2e25;
  --kid-dot-1: rgba(224, 176, 138, .10); --kid-dot-2: rgba(74, 222, 128, .07);
  --kid-tile: #1f6a54; --kid-tile-orange: #9a6440; --kid-tile-yellow: #9a8a4a;
  --kid-tile-green: #2f7a52; --kid-tile-blue: #2a6a7a; --kid-tile-pink: #8a4a5a;
  color-scheme: dark;
}
/* Dark kids palettes use the white logo artwork */
:root[data-theme="kids"]:is([data-kids-color="dark"], [data-kids-color="olive"], [data-kids-color="emerald"]) .yp-logo__on-dark { display: contents; }
:root[data-theme="kids"]:is([data-kids-color="dark"], [data-kids-color="olive"], [data-kids-color="emerald"]) .yp-logo__on-light { display: none; }
:root[data-theme="kids"] body.yp-body {
  font-size: 16px;
  background:
    radial-gradient(var(--kid-dot-1) 2.5px, transparent 3px) 0 0 / 34px 34px,
    radial-gradient(var(--kid-dot-2) 2.5px, transparent 3px) 17px 17px / 34px 34px,
    var(--bg);
}
:root[data-theme="kids"] ::selection { background: rgba(247, 183, 51, .45); color: var(--text-strong); }
:root[data-theme="kids"] .yp-logo__on-dark { display: none; }
:root[data-theme="kids"] .yp-logo__on-light { display: contents; }
:root[data-theme="kids"] .modal-backdrop.in { background: var(--kid-backdrop); opacity: .45; }
:root[data-theme="kids"] .mfp-bg { background: var(--kid-backdrop); opacity: .85; }
:root[data-theme="kids"] h1, :root[data-theme="kids"] h2, :root[data-theme="kids"] h3 { font-weight: 800; letter-spacing: .01em; }

/* Header + category chips: chunky, colourful pills */
:root[data-theme="kids"] .yp-header { border-bottom: 3px solid var(--ink); }
:root[data-theme="kids"] .yp-icon-btn { border: 2px solid var(--ink); background: var(--surface); font-weight: 700; }
:root[data-theme="kids"] .yp-icon-btn--accent { background: var(--grad); color: var(--kid-on-accent); }
:root[data-theme="kids"] .yp-catbar { border-top: 2px dashed var(--border-strong); }
:root[data-theme="kids"] .yp-chip {
  height: 42px; padding: 0 18px; font-size: 15px; font-weight: 700; color: var(--text);
  border: 2px solid var(--ink); background: var(--surface); box-shadow: 0 3px 0 var(--ink);
}
:root[data-theme="kids"] .yp-chip:hover { background: var(--kid-tint-2); transform: translateY(-1px) rotate(-1.5deg); }
:root[data-theme="kids"] .yp-chip.is-active { color: var(--kid-on-accent); background: var(--grad); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
:root[data-theme="kids"] .yp-chips > li:nth-child(4n+2) .yp-chip:not(.is-active) { background: var(--kid-tint-2); }
:root[data-theme="kids"] .yp-chips > li:nth-child(4n+3) .yp-chip:not(.is-active) { background: var(--kid-tint-3); }
:root[data-theme="kids"] .yp-chips > li:nth-child(4n+4) .yp-chip:not(.is-active) { background: var(--kid-tint-4); }
:root[data-theme="kids"] .yp-chip--sub { height: 36px; font-size: 14px; }

/* Toy buttons: outlined, pressed-down effect */
:root[data-theme="kids"] .yp-btn { border: 2.5px solid var(--ink); font-weight: 800; font-size: 15px; box-shadow: 0 4px 0 var(--ink); }
:root[data-theme="kids"] .yp-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
:root[data-theme="kids"] .yp-btn--primary { color: var(--kid-on-accent); text-shadow: 0 1px 0 rgba(var(--kid-shadow-rgb), .35); }
:root[data-theme="kids"] .yp-btn--primary:hover { box-shadow: 0 5px 0 var(--ink); }
:root[data-theme="kids"] .yp-btn--ghost { background: var(--surface); }
:root[data-theme="kids"] .yp-btn--lg { --h: 58px; font-size: 19px; }

/* Hero: thick rounded frame, softer shade */
:root[data-theme="kids"] .yp-hero__frame { border: 3px solid var(--ink); box-shadow: 0 8px 0 rgba(var(--kid-shadow-rgb), .18); }
:root[data-theme="kids"] .yp-hero__shade { background: linear-gradient(to top, rgba(var(--kid-shadow-rgb), .45), transparent); }

/* Section titles as sticker labels */
:root[data-theme="kids"] .yp-section__title {
  display: inline-block; padding: 4px 18px; font-size: 21px; color: var(--text-strong);
  background: var(--surface); border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink);
}
:root[data-theme="kids"] .yp-section__title::before { display: none; }
:root[data-theme="kids"] .yp-section:nth-of-type(4n+1) .yp-section__title { background: var(--kid-tint-1); }
:root[data-theme="kids"] .yp-section:nth-of-type(4n+2) .yp-section__title { background: var(--kid-tint-2); }
:root[data-theme="kids"] .yp-section:nth-of-type(4n+3) .yp-section__title { background: var(--kid-tint-3); }
:root[data-theme="kids"] .yp-section:nth-of-type(4n+4) .yp-section__title { background: var(--kid-tint-4); }
:root[data-theme="kids"] .yp-link-more { font-size: 15px; font-weight: 700; color: var(--text); background: var(--surface); border: 2px solid var(--border-strong); }
:root[data-theme="kids"] .yp-rail-btn { width: 42px; height: 42px; border: 2px solid var(--ink); }

/* Bigger tiles: fewer per row, doodle outline, pastel name labels */
:root[data-theme="kids"] .yp-rail { --cols: 1.7; --gap: 14px; padding: 6px 2px 16px; }
@media (min-width: 576px)  { :root[data-theme="kids"] .yp-rail { --cols: 2.6; } }
@media (min-width: 768px)  { :root[data-theme="kids"] .yp-rail { --cols: 3.4; --gap: 18px; } }
@media (min-width: 1200px) { :root[data-theme="kids"] .yp-rail { --cols: 4.2; --gap: 22px; } }
@media (min-width: 1440px) { :root[data-theme="kids"] .yp-rail { --cols: 5; } }
:root[data-theme="kids"] .yp-grid { gap: 14px; }
@media (min-width: 768px)  { :root[data-theme="kids"] .yp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1200px) { :root[data-theme="kids"] .yp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
:root[data-theme="kids"] .yp-card { border: 2.5px solid var(--ink); border-radius: 26px; box-shadow: 0 5px 0 rgba(var(--kid-shadow-rgb), .22); background: var(--surface); }
:root[data-theme="kids"] .yp-card__media { margin: 8px 8px 0; border-radius: 18px; border: 2px solid rgba(var(--kid-shadow-rgb), .25); }
:root[data-theme="kids"] .yp-card--image .yp-card__media { margin: 8px; }
:root[data-theme="kids"] .yp-card:hover, :root[data-theme="kids"] .yp-card:focus-visible {
  transform: translateY(-4px) rotate(-1.2deg); border-color: var(--ink); box-shadow: 0 9px 0 rgba(var(--kid-shadow-rgb), .22);
}
:root[data-theme="kids"] .yp-rail > .yp-card:nth-child(even):hover,
:root[data-theme="kids"] .yp-grid > .yp-card:nth-child(even):hover { transform: translateY(-4px) rotate(1.2deg); }
:root[data-theme="kids"] .yp-card__body { padding: 10px 12px 12px; }
:root[data-theme="kids"] .yp-card__title { font-size: 16px; font-weight: 700; text-align: center; min-height: 2.6em; display: -webkit-box; align-content: center; }
:root[data-theme="kids"] .yp-card__play { width: 34px; height: 34px; color: var(--kid-on-accent); background: var(--accent); border: 2px solid var(--ink); font-size: 12px; }
:root[data-theme="kids"] :is(.yp-rail, .yp-grid) > .yp-card:nth-child(4n+2) .yp-card__play { background: var(--accent-2); }
:root[data-theme="kids"] :is(.yp-rail, .yp-grid) > .yp-card:nth-child(4n+3) .yp-card__play { background: var(--accent-3); }
:root[data-theme="kids"] :is(.yp-rail, .yp-grid) > .yp-card:nth-child(4n+4) .yp-card__play { background: #6aa6dc; }
:root[data-theme="kids"] .yp-card__badge { width: 54px; height: 54px; font-size: 19px; background: var(--accent); border: 2.5px solid #fff; }
:root[data-theme="kids"] .yp-card__share { border: 2px solid var(--ink); }

/* Simpler kids layout: one column, no "Popular" sidebar */
:root[data-theme="kids"] .yp-layout { grid-template-columns: minmax(0, 1fr); }
:root[data-theme="kids"] .yp-layout__side { display: none; }
:root[data-theme="kids"] .yp-page__title { font-size: 30px; }
@media (min-width: 768px) { :root[data-theme="kids"] .yp-page__title { font-size: 38px; } }
:root[data-theme="kids"] .yp-pill { font-size: 14px; color: var(--text); border: 2px solid var(--ink); background: var(--kid-tint-2); }

/* Panels, forms, player, footer */
:root[data-theme="kids"] .yp-panel { border: 2.5px solid var(--ink); box-shadow: 0 6px 0 rgba(var(--kid-shadow-rgb), .16); }
:root[data-theme="kids"] .yp-prose { color: var(--text); font-size: 16.5px; }
:root[data-theme="kids"] .yp-input, :root[data-theme="kids"] .yp-form input[type=text], :root[data-theme="kids"] .yp-form input[type=password],
:root[data-theme="kids"] .yp-form input[type=email], :root[data-theme="kids"] .yp-form textarea { border: 2px solid var(--border-strong); background: var(--kid-input-bg); color: var(--text); }
:root[data-theme="kids"] .yp-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245, 150, 46, .25); }
:root[data-theme="kids"] .yp-menu.dropdown-menu, :root[data-theme="kids"] .yp-modal .modal-content { border: 2.5px solid var(--ink); box-shadow: 0 6px 0 rgba(var(--kid-shadow-rgb), .2); }
:root[data-theme="kids"] .yp-menu.dropdown-menu > .active > a { background: var(--kid-tint-2); }
:root[data-theme="kids"] .yp-player__frame { border: 3px solid var(--ink); }
:root[data-theme="kids"] .yp-empty { border: 3px dashed var(--border-strong); background: var(--surface); }
:root[data-theme="kids"] .yp-podium__item, :root[data-theme="kids"] .yp-rank { border: 2px solid var(--border-strong); }
:root[data-theme="kids"] .yp-challenge { background: var(--kid-tint-2); border: 2.5px solid var(--ink); }
:root[data-theme="kids"] .yp-footer { background: var(--surface-2); border-top: 3px solid var(--ink); color: var(--muted); }
:root[data-theme="kids"] .yp-footer h4 { color: var(--text-strong); font-size: 16px; }
:root[data-theme="kids"] .yp-footer ul a { font-size: 15px; }
:root[data-theme="kids"] .yp-social a { border: 2px solid var(--ink); }

/* Colour button icon in kids mode follows the kids palette */
.yp-theme-btn .yp-theme-btn__kids { display: none; }
:root[data-theme="kids"] .yp-theme-btn > * { display: none; } /* <i> or the <svg> Font Awesome swaps in */
:root[data-theme="kids"]:not([data-kids-color]) .yp-theme-btn .yp-theme-btn__kids,
:root[data-theme="kids"][data-kids-color="kids"] .yp-theme-btn .yp-theme-btn__kids { display: inline-block; color: var(--accent); }
:root[data-theme="kids"][data-kids-color="dark"] .yp-theme-btn .yp-theme-btn__moon,
:root[data-theme="kids"][data-kids-color="light"] .yp-theme-btn .yp-theme-btn__sun,
:root[data-theme="kids"][data-kids-color="olive"] .yp-theme-btn .yp-theme-btn__leaf { display: inline-block; }
:root[data-theme="kids"][data-kids-color="emerald"] .yp-theme-btn .yp-theme-btn__gem { display: inline-block; color: var(--accent-2); }

/* Kids / Adult mode button: shows the mode it switches to */
.yp-mode-btn > span { display: inline-flex; align-items: center; gap: 8px; }
.yp-mode-btn .yp-mode-btn__to-adult { display: none; }
:root[data-theme="kids"] .yp-mode-btn .yp-mode-btn__to-kids { display: none; }
:root[data-theme="kids"] .yp-mode-btn .yp-mode-btn__to-adult { display: inline-flex; }
.yp-mode-btn .fa-child { color: var(--accent-2); }
@media (max-width: 575px) { .yp-mode-btn .yp-icon-btn__label { display: none; } .yp-mode-btn { padding: 0; width: 40px; justify-content: center; } }

/* ---------- Kids home layout (welcome/kids.php) ------------------------- */
.yp-kids { padding-top: 18px; }
.yp-kids-hello {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 20px 18px 18px; border-radius: 34px; background-color: var(--surface);
  border: 3px solid var(--ink, #6b4423); box-shadow: 0 8px 0 rgba(var(--kid-shadow-rgb), .18);
  background-image: linear-gradient(to top, var(--kid-band) 0, var(--kid-band) 22%, transparent 22%);
}
@media (min-width: 768px) { .yp-kids-hello { padding: 28px 34px; gap: 24px; } }
.yp-kids-hello__left { min-width: 0; display: grid; gap: 10px; justify-items: start; }
.yp-kids-clock { display: grid; gap: 4px; line-height: 1; }
.yp-kids-clock__time { font: 800 52px/1 var(--font); color: var(--text-strong); letter-spacing: .02em; }
@media (min-width: 768px) { .yp-kids-clock__time { font-size: 72px; } }
.yp-kids-clock__date { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 18px; font-weight: 700; }
.yp-kids-clock__date b { padding: 3px 14px; border-radius: 999px; background: var(--accent); color: var(--kid-on-accent); font-weight: 800; }
.yp-kids-bubble {
  position: relative; margin: 6px 0 0; padding: 8px 18px; max-width: 360px;
  font-size: 17px; font-weight: 800; color: var(--text-strong); background: var(--kid-bubble);
  border: 2.5px solid var(--kid-bubble-line); border-radius: 22px;
}
.yp-kids-bubble::after { content: ""; position: absolute; inset-inline-end: -12px; top: 50%; width: 16px; height: 16px; background: var(--kid-bubble); border: 2.5px solid var(--kid-bubble-line); border-left: 0; border-bottom: 0; transform: translateY(-50%) rotate(45deg); }
[dir="rtl"] .yp-kids-bubble::after { transform: translateY(-50%) rotate(-135deg); }
.yp-kids-left { margin: 0; font-weight: 700; color: var(--muted); }
.yp-kids-left .fa, .yp-kids-left svg { color: var(--gold); }
.yp-kids-parade { display: flex; gap: 6px; margin-top: 2px; }
.yp-kids-parade__chick { display: grid; justify-items: center; animation: yp-hop 1.6s var(--d, 0s) ease-in-out infinite; }
.yp-kids-parade__chick em { font: 700 13px/1 var(--font); color: var(--muted); font-style: normal; }
.yp-kids-hello__mascot { align-self: end; animation: yp-bob 3s ease-in-out infinite; }
.yp-chick--big { width: 110px; height: 110px; }
@media (min-width: 576px) { .yp-chick--big { width: 150px; height: 150px; } }
@media (min-width: 992px) { .yp-chick--big { width: 190px; height: 190px; } }
@media (max-width: 400px) { .yp-kids-parade .yp-chick { width: 36px; height: 36px; } .yp-kids-clock__time { font-size: 44px; } }
@keyframes yp-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes yp-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }

/* App-icon style activity tiles */
.yp-kids-tiles { display: grid; gap: 16px 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 26px; }
@media (max-width: 380px) { .yp-kids-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .yp-kids-tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 18px; } }
.yp-kids-tile { display: grid; justify-items: center; gap: 8px; text-align: center; -webkit-tap-highlight-color: transparent; }
.yp-kids-tile__icon {
  display: grid; place-items: center; width: 100%; max-width: 104px; aspect-ratio: 1 / 1;
  font-size: clamp(30px, 9vw, 52px); line-height: 1; border-radius: 28%;
  border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); background: var(--kid-tile);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.yp-kids-tile--orange .yp-kids-tile__icon { background: var(--kid-tile-orange); }
.yp-kids-tile--yellow .yp-kids-tile__icon { background: var(--kid-tile-yellow); }
.yp-kids-tile--green  .yp-kids-tile__icon { background: var(--kid-tile-green); }
.yp-kids-tile--blue   .yp-kids-tile__icon { background: var(--kid-tile-blue); }
.yp-kids-tile--pink   .yp-kids-tile__icon { background: var(--kid-tile-pink); }
.yp-kids-tile:hover .yp-kids-tile__icon, .yp-kids-tile:focus-visible .yp-kids-tile__icon { transform: translateY(-4px) rotate(-4deg); }
.yp-kids-tile:active .yp-kids-tile__icon { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.yp-kids-tile__label { font: 800 15px/1.2 var(--font); color: var(--text); }
@media (min-width: 768px) { .yp-kids-tile__label { font-size: 17px; } }
