:root {
  color-scheme: light;
  --paper: #fce6ef;
  --ink: #743952;
  --muted: #876476;
  --line: #eec5d5;
  --white: #fffafd;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 176px; }
body { margin: 0; background: var(--paper); color: var(--ink); -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
svg { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
a:focus-visible, button:focus-visible { outline: 4px solid #963e68; outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -90px; z-index: 10; padding: 16px; background: white; }
.skip-link:focus { top: 8px; }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); padding-top: env(safe-area-inset-top); border-bottom: 1px solid #edc6d64d; }
.header-inner { max-width: 1180px; min-height: 88px; margin: auto; display: flex; align-items: center; position: relative; gap: 18px; padding: 14px 28px 10px; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 18px; }
.home-button { width: 56px; height: 56px; color: #ad4775; background: #fffafd; border: 2px solid white; box-shadow: 0 4px 0 #eeb4cd; }
.home-button svg { width: 30px; height: 30px; stroke-width: 2.1; }
.park-name { font-size: 1.8rem; font-weight: 800; letter-spacing: .07em; line-height: 1.35; color: #a1466f; text-shadow: 0 2px white; }
.brand-spark { display: inline-block; color: #d59637; font-size: 1.5rem; margin-left: 14px; }
.parent-controls { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.parent-link, .standalone-button { color: #a86d87; }
.parent-link svg, .standalone-button svg { width: 24px; height: 24px; }
.selected-picture { position: absolute; left: 50%; transform: translateX(-50%); width: 68px; height: 50px; overflow: hidden; border: 3px solid white; border-radius: 17px; }
.category-nav { max-width: 1180px; margin: auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; padding: 5px 28px 18px; }
.theme-games { --accent: #9b5e20; --badge: #ffe1a9; --section: #fff6e6; --edge: #f4d4a0; }
.theme-stories { --accent: #397564; --badge: #cceadf; --section: #f0faf6; --edge: #bcdccd; }
.theme-cartoons { --accent: #9d4d79; --badge: #f4d0e5; --section: #fff3fa; --edge: #e6bdd2; }
.category-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border: 2px solid #ffffffdb; border-radius: 19px; color: var(--accent); background: var(--badge); box-shadow: 0 3px 0 var(--edge); font-size: 1.0625rem; font-weight: 750; }
.category-button svg { width: 25px; height: 25px; }
.page { width: 100%; max-width: 1180px; margin: auto; padding: 20px 28px 42px; }
.category-section { scroll-margin-top: 0; padding: 24px; margin-bottom: 32px; border: 2px solid #ffffffec; border-radius: 32px; background: var(--section); box-shadow: 0 5px 0 #eec5d579; }
.section-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 21px; }
.section-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--accent); border-radius: 16px; background: var(--badge); box-shadow: inset 0 0 0 2px #ffffffb3; transform: rotate(-5deg); }
.section-heading h1, .section-heading h2 { font-size: 1.55rem; font-weight: 800; letter-spacing: .08em; color: var(--accent); line-height: 1.5; }
.section-decoration { color: var(--edge); margin-left: auto; font-size: 1.6rem; white-space: nowrap; letter-spacing: .15em; }
.picture-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.pair-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.series-section + .series-section { margin-top: 30px; padding-top: 26px; border-top: 2px dashed var(--edge); }
.series-title { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: var(--accent); font-size: 1.15rem; font-weight: 800; line-height: 1.5; }
.series-title::before { content: ""; width: 8px; height: 22px; border-radius: 5px; background: #dda1c0; flex-shrink: 0; }
.picture-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 5px solid white; border-radius: 25px; background: white; box-shadow: 0 4px 0 var(--edge, #eeb8ce); transition: transform .15s ease, box-shadow .15s ease; }
.cover { width: 100%; aspect-ratio: 4 / 3; position: relative; overflow: hidden; border-radius: 19px 19px 12px 12px; background: #fff9fc; }
.show-card .cover { aspect-ratio: 16 / 9; }
.show-card img, .contain-card img { object-fit: contain; }
.card-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 9px; min-height: 59px; font-size: 1.25rem; line-height: 1.55; font-weight: 750; color: var(--ink); }
.card-mark { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; color: var(--accent, #b66688); background: var(--section,#fff1f6); border-radius: 50%; font-size: 1rem; }
.card-mark svg { width: 18px; height: 18px; fill: currentColor; stroke-width: 1; }
.picture-card:active, .category-button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge,#eeb8ce); }
.collection-entry { max-width: 620px; margin: auto; }
.watching { --paper: #e8eee7; --ink: #344c44; --muted: #596e64; --line: #c4d2c7; --white: #f5f7f1; }
.watching .site-header { border-color: #c4d2c780; }
.watching .home-button { color: #476557; background: #f5f7f1; box-shadow: 0 4px 0 #c2d0c4; border-color: #f5f7f1; }
.watching .parent-link { color: #667c6d; }
.watching .icon-button:hover { background: #d6e2d7; }
.watching :is(a, button, select, summary):focus-visible { outline-color: #48695b; }
.watch-page { max-width: 1050px; }
.watch-title { color: var(--ink); font-size: clamp(1.2rem, 3vw, 1.8rem); line-height: 1.5; margin: 0 0 18px; }
.video-stage { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: #18271f; box-shadow: 0 4px 0 #c2d0c4; }
.video-frame { width: 100%; height: 100%; border: 0; display: block; }
.watch-panel { display: grid; gap: 14px; padding-top: 20px; }
.episode-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.episode-step { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 56px; padding: 10px 22px; border: 2px solid #f5f7f1; border-radius: 18px; background: #d6e2d7; color: #344c44; box-shadow: 0 3px 0 #b9cdbf; font-size: 1.0625rem; font-weight: 750; }
.episode-step:disabled { opacity: .4; cursor: default; box-shadow: none; }
.episode-step:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 #b9cdbf; }
.episode-position { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.watch-tools { display: flex; align-items: center; justify-content: center; gap: 12px; }
.viewer-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 18px; border: 1px solid #bccfc1; border-radius: 14px; background: #f1f5ee; color: #405d4e; font-weight: 700; }
.viewer-button svg { width: 22px; height: 22px; }
.watch-home { display: none; }
.episode-picker { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 52px; padding: 10px 14px; border: 1px solid #b7c9bd; border-radius: 16px; background: #f5f7f1; color: var(--ink); font-size: 1rem; text-align: left; }
.episode-picker > span:first-of-type { flex: none; font-weight: 700; }
.episode-picker svg { width: 22px; height: 22px; }
.picker-current { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.playback-help summary:focus-visible { outline: 3px solid #48695b; outline-offset: 3px; }
.picker-open { overflow: hidden; }
.episode-dialog { width: min(520px, calc(100% - 28px)); max-height: min(680px, calc(100dvh - 32px)); margin: auto; padding: 0; overflow: hidden; border: 1px solid #b7c9bd; border-radius: 22px; background: #f5f7f1; color: #344c44; box-shadow: 0 20px 70px #12251b40; }
.episode-dialog[open] { display: flex; flex-direction: column; }
.episode-dialog::backdrop { background: #16251dc0; }
.picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid #d3ded4; flex: none; }
.picker-heading h2 { font-size: 1.0625rem; line-height: 1.5; }
.picker-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: #e4ece2; color: #405d4e; }
.picker-close svg { width: 21px; height: 21px; }
.picker-list { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 8px; }
.episode-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 12px; border: 0; border-radius: 10px; background: transparent; color: #344c44; text-align: left; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.episode-choice + .episode-choice { margin-top: 2px; }
.episode-choice[aria-current="true"] { background: #dce9de; font-weight: 700; }
.choice-mark { flex: none; color: #426b52; }
.picker-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-top: 1px solid #d3ded4; flex: none; }
.picker-pagination button { min-height: 44px; padding: 8px 12px; border: 1px solid #c4d2c7; border-radius: 12px; background: #e4ece2; color: #405d4e; font-size: .9375rem; }
.picker-pagination button:disabled { opacity: .4; cursor: default; }
.picker-pagination > span { color: #596e64; font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.episode-dialog button:focus-visible { outline: 2px solid #48695b; outline-offset: -3px; }
.playback-help { margin-top: 26px; color: var(--muted); line-height: 1.9; font-size: .9375rem; }
.playback-help summary { width: fit-content; cursor: pointer; padding: 8px 4px; }
.playback-help p { margin-top: 8px; }
.playback-help a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width:599px) {
  .watch-page { padding: 14px 12px 30px; }
  .watch-title { margin-bottom: 12px; }
  .video-stage { border-radius: 14px; }
  .episode-controls { gap: 6px; }
  .episode-step { gap: 3px; min-height: 54px; padding: 10px 12px; font-size: 1rem; }
  .episode-step svg { width: 22px; height: 22px; }
  .episode-position { font-size: .875rem; }
}
/* The site viewer includes navigation; the third-party iframe stays untouched. */
.watch-expanded { overflow: hidden; background: #192820; }
.watch-expanded .site-header, .watch-expanded .watch-title, .watch-expanded .playback-help, .watch-expanded .picker-current { display: none; }
.watch-expanded .watch-shell { position: fixed; inset: 0; z-index: 8; width: 100%; height: 100dvh; display: grid; grid-template-rows: minmax(0,1fr) auto; background: #192820; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.watch-expanded .video-stage { height: 100%; min-height: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.watch-expanded .watch-panel { grid-template-columns: minmax(0,1fr) auto; padding: 8px 12px; gap: 8px; background: #243a30; }
.watch-expanded .episode-controls { grid-column: 1 / -1; }
.watch-expanded .episode-position { color: #d3dfd5; }
.watch-expanded .episode-step, .watch-expanded .viewer-button, .watch-expanded .episode-picker { color: #edf3eb; background: #395346; border: 1px solid #60796b; min-height: 48px; box-shadow: none; }
.watch-expanded .watch-home { display: inline-flex; padding-inline: 12px; }
.watch-expanded .watch-tools { gap: 8px; justify-content: flex-start; }
.watch-expanded .episode-picker { width: auto; border-radius: 14px; }
.watch-expanded :is(a, button):focus-visible { outline-color: #dbecde; }
.watch-expanded .episode-dialog button:focus-visible { outline-color: #48695b; }
@media (orientation: landscape) {
  .watch-expanded .watch-panel { grid-template-columns: minmax(0,1fr) auto auto; gap: 16px; }
  .watch-expanded .episode-controls { grid-column: auto; }
}
@media (orientation: landscape) and (max-height:600px) and (max-width:700px) {
  .watch-expanded .watch-panel { gap: 8px; padding-inline: 8px; }
  .watch-expanded .episode-controls { gap: 6px; }
  .watch-expanded .episode-step, .watch-expanded .viewer-button, .watch-expanded .episode-picker { padding: 8px; gap: 4px; font-size: .875rem; }
  .watch-expanded .episode-step svg { width: 20px; height: 20px; }
  .watch-expanded .episode-position { font-size: .8125rem; }
}
.play-layout { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.play-layout .site-header { position: relative; flex: none; }
.play-area { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.game-frame { border: 0; width: 100%; flex: 1; min-height: 0; display: block; background: var(--white); }
.image-fallback { object-fit: contain; padding: 16px; background: var(--white); }
.empty-page { max-width: 600px; padding-top: 40px; }
.parent-page { max-width: 850px; padding-top: 26px; }
.parent-page h1 { font-size: 2rem; line-height: 1.5; }
.parent-page .lead { margin-top: 12px; font-size: 1.0625rem; line-height: 1.9; color: var(--muted); }
.parent-section { margin-top: 32px; }
.parent-section h2 { font-size: 1.3125rem; line-height: 1.6; margin-bottom: 12px; }
.parent-section p, .parent-section li { font-size: 1rem; line-height: 1.9; }
.parent-section p + p { margin-top: 12px; }
.parent-section a { color: #883657; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.access-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.access-item h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.access-item p { color: var(--muted); }
.parent-meta { font-size: .875rem !important; color: var(--muted); }
.parent-footer { margin: 32px 0 12px; }
@media (hover:hover) {
  .picture-card:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--edge,#eeb8ce); }
  .icon-button:hover { background: #fff4f9; }
  .category-button:hover { filter: brightness(1.025); }
}
@media (max-width:999px) {
  .picture-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .category-section { padding: 20px; }
}
@media (max-width:599px) {
  html { scroll-padding-top: 151px; }
  .header-inner { min-height: 74px; gap: 11px; padding: 10px 17px 7px; }
  .home-button { width: 46px; height: 46px; border-radius: 15px; }
  .home-button svg { width: 26px; height: 26px; }
  .park-name { font-size: 1.2rem; letter-spacing: .025em; }
  .brand-spark { display: none; }
  .parent-controls { gap: 0; }
  .parent-link, .standalone-button { width: 44px; height: 44px; }
  .selected-picture { width: 58px; height: 44px; border-radius: 14px; }
  .category-nav { gap: 8px; padding: 4px 17px 15px; }
  .category-button { min-height: 47px; border-radius: 15px; gap: 5px; font-size: .9375rem; }
  .category-button svg { width: 21px; height: 21px; }
  .page { padding: 14px 12px 30px; }
  .category-section { padding: 16px 12px 19px; border-radius: 27px; margin-bottom: 25px; }
  .section-heading { gap: 10px; margin-bottom: 17px; }
  .section-icon { width: 42px; height: 42px; border-radius: 14px; }
  .section-heading h1, .section-heading h2 { font-size: 1.35rem; }
  .section-decoration { font-size: 1.15rem; }
  .picture-grid { grid-template-columns: 1fr; gap: 20px; }
  .series-section + .series-section { margin-top: 26px; padding-top: 22px; }
  .series-title { margin-bottom: 14px; font-size: 1.0625rem; }
  .card-caption { font-size: 1.1875rem; min-height: 56px; padding: 10px 10px 7px; }
  .parent-page { padding: 24px 20px; }
  .parent-page h1 { font-size: 1.75rem; }
}
@media (max-width:359px) {
  .header-inner { gap: 7px; padding-inline: 12px; }
  .park-name { font-size: 1.05rem; }
  .category-nav { padding-inline: 12px; gap: 6px; }
  .category-button { gap: 4px; font-size: .875rem; }
  .category-button svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
