/* Core tokens & reset */
:root {
  --yp-bg: #fff9f2;
  --yp-bg-card: #ffffff;
  --yp-purple: #8a4fff;
  --yp-purple-dark: #6b2fd4;
  --yp-purple-soft: #ede5ff;
  --yp-yellow: #ffd700;
  --yp-yellow-dark: #e6c200;
  --yp-black: #1a1a1a;
  --yp-text: #1f1f1f;
  --yp-text-muted: #6b7280;
  --yp-border: rgba(0, 0, 0, 0.06);
  --yp-radius-sm: 14px;
  --yp-radius: 24px;
  --yp-radius-lg: 32px;
  --yp-shadow: 0 8px 32px rgba(138, 79, 255, 0.12);
  --yp-shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
  --yp-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --yp-shell: min(100% - 32px, 480px);
  --yp-nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--yp-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--yp-text);
  background: var(--yp-bg);
  min-height: 100dvh;
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-x: none;
}

img, svg, video, iframe { display: block; max-width: 100%; height: auto; }

a { color: var(--yp-purple); text-decoration: none; }

button, input { font: inherit; }

#main-content,
.yp-home,
.yp-detail-page,
.yp-prose,
.yp-cat-hub,
.yp-cat-grid-view,
.yp-play-page {
  max-width: 100%;
  overflow-x: clip;
}

.yp-shell {
  width: var(--yp-shell);
  max-width: 100%;
  margin-inline: auto;
}

.yp-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yp-purple);
  margin: 0 0 8px;
}

.yp-disclosure {
  font-size: 12px;
  color: var(--yp-text-muted);
  margin: 0 0 12px;
}

.yp-error { color: #dc2626; padding: 24px; }

.yp-no-scroll {
  overflow: hidden;
  overscroll-behavior: none;
}

.yp-has-bottomnav { padding-bottom: calc(var(--yp-nav-h) + 16px); }

.yp-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--yp-yellow);
  color: var(--yp-black);
  border-radius: 8px;
  font-weight: 700;
}
.yp-skip:focus { left: 8px; }
