/* Original implementation of the operator's observed reference structure.
   All artwork and palette values belong to the current game. */
.experience-stage { position: relative; isolation: isolate; }
.wiki-nav__panel { background: var(--color-surface); }
.game-backdrop { position: absolute; inset: 0 0 auto; height: clamp(360px,46vw,660px); overflow: hidden; z-index: -1; pointer-events: none; background: var(--color-canvas); }
.game-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.game-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,color-mix(in srgb,var(--color-canvas) 70%,transparent),color-mix(in srgb,var(--color-canvas) 78%,transparent) 66%,var(--color-canvas)),linear-gradient(120deg,color-mix(in srgb,var(--color-accent) 22%,transparent),transparent); }
.main-content .home-composition > .home-hero--backdrop { padding: 12px 28px 32px; border: 0; border-radius: 0; background: none; overflow: visible; box-shadow: none; isolation: auto; }
.home-hero--backdrop::before { display: none; }
.home-hero--backdrop .home-hero-copy { text-align: center; }
.home-hero--backdrop h1 { margin: 20px 0 28px; overflow-wrap: anywhere; }
.home-hero-badge { display: inline-block; margin: 0 0 0 10px; padding: 4px 10px; border: 1px solid var(--ref-border); border-radius: 999px; background: var(--ref-muted); color: var(--color-muted-ink); font-size: 12px; font-weight: 600; }
.home-hero--backdrop .home-hero-visual { width: min(100%,700px); aspect-ratio: 16 / 9; max-height: 400px; margin: 0 auto; padding: 0; border: 1px solid var(--ref-border); border-radius: 12px; transform: none; background: var(--color-canvas); box-shadow: none; }
.home-hero--backdrop .home-hero-visual > img { width: 100%; height: 100%; object-fit: contain; }
.home-hero--backdrop .home-hero-visual img { border-radius: 0; }
body[data-video-presentation='howtofish-v1'] .home-hero--backdrop .factory-video__trigger { border: 0; border-radius: 0; }
.home-hero--backdrop > .lede { margin: 28px -12px 0; font-size: 18px; line-height: 1.85; text-align: center; }
.home-hero--backdrop .home-actions { justify-content: center; }
.home-hero--backdrop .home-stats { border-top: 0; margin-top: 16px; padding-top: 0; }
.side-codes,.side-play { width: 268px; max-width: 100%; margin: 16px auto 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--ref-border); }
.side-codes { background: var(--color-surface); }
.side-codes > header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 14px 4px; }
.side-codes h2,.side-play h2 { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.4; letter-spacing: normal; }
.side-codes__date { font-size: 9px; font-weight: 500; line-height: 1.4; border: 1px solid var(--ref-border); border-radius: 999px; padding: 2px 6px; color: var(--color-muted-ink); background: var(--ref-muted); }
.code-list { margin: 0; padding: 0 16px; list-style: none; }
.code-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--ref-border); }
.code-row:last-child { border-bottom: 0; }
.code-row code { display: block; line-height: 1.4; padding: 0; color: var(--color-ink); background: none; border: 0; font-size: 13px; font-weight: 600; letter-spacing: .025em; overflow-wrap: anywhere; user-select: all; }
.code-row p { margin: 3px 0; font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--color-muted-ink); overflow-wrap: anywhere; }
.side-codes .code-row p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.code-status { display: block; line-height: 1.4; color: var(--color-muted-ink); font-size: 10px; }
.code-source { margin-inline-start: 8px; font-size: 12px; overflow-wrap: anywhere; }
.code-copy { display: grid; place-items: center; width: 28px; height: 32px; flex-shrink: 0; padding: 0; color: var(--color-muted-ink); border: 1px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; }
.code-copy svg { width: 16px; height: 16px; }
.code-copy:hover { background: var(--ref-muted); color: var(--color-ink); }
.code-copy[data-copy-state='copied'] svg { display: none; }
.code-copy[data-copy-state='copied']::before { content: '✓'; font-size: 20px; }
.code-feedback { margin: 0; padding-inline: 16px; font-size: 12px; overflow-wrap: anywhere; }
.code-feedback:empty { display: none; }
.side-codes .code-feedback[data-copy-state='copied'] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wiki-codes-link { display: block; margin-top: 8px; padding: 10px 14px; border-top: 1px solid var(--ref-border); color: var(--color-ink); font-size: 13px; font-weight: 600; }
.wiki-codes-link:hover { background: var(--ref-muted); }
.side-codes__all { display: block; padding: 10px 14px; margin-top: 0; border-top: 1px solid var(--ref-border); text-align: center; color: var(--color-ink); font-size: 12px; font-weight: 600; }
.side-play { position: relative; isolation: isolate; background: var(--color-surface); border-color: var(--ref-border); }
.side-play__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.side-play::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg,color-mix(in srgb,var(--color-canvas) 68%,transparent),color-mix(in srgb,var(--color-canvas) 30%,transparent)); z-index: -1; }
.side-play__content { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: 170px; padding: 16px 14px; }
.side-play__label { display: inline-block; border-radius: 999px; padding: 2px 6px; margin: 0 0 8px; background: var(--color-surface); color: var(--color-muted-ink); font-size: 9px; font-weight: 500; }
.side-play__content > p:not(.side-play__label) { font-size: 12px; font-weight: 400; line-height: 1.5; margin: 6px 0 10px; }
.side-play__button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; min-height: 32px; border: 1px solid var(--ref-border); border-radius: 999px; background: var(--color-ink); color: var(--color-canvas); font-size: 11px; font-weight: 600; text-align: center; }
.page-title-hero { position: relative; isolation: isolate; padding: clamp(36px,6vw,88px) 24px; }
.page-title-hero > .game-backdrop { height: 100%; }
.page-title-hero__inner { max-width: 980px; margin: auto; }
.page-title-hero .breadcrumbs { margin: 0 0 24px; }
.page-title-hero__category { display: inline-block; border: 1px solid color-mix(in srgb,var(--color-accent) 45%,transparent); border-radius: 999px; padding: 8px 16px; margin: 0 0 20px; background: color-mix(in srgb,var(--color-accent) 12%,transparent); color: var(--color-accent); font-weight: 750; }
.page-title-hero h1 { margin: 0; font-size: clamp(32px,4.5vw,56px); line-height: 1.12; overflow-wrap: anywhere; }
.page-title-hero .lede { margin: 24px 0 0; font-size: 19px; line-height: 1.75; max-width: none; }
.page-title-hero__meta { display: inline-block; padding: 8px 12px; border: 1px solid var(--ref-border); border-radius: 6px; background: var(--color-canvas); margin: 24px 0 0; color: var(--color-muted-ink); font-size: 14px; }
.main-content .article-reader > .article-title-anchor { display: none; }
.codes-directory { border: 1px solid var(--ref-border); border-radius: 12px; padding: 24px 16px; margin-block: 24px; background: var(--color-surface); }
.codes-directory h2 { padding-inline: 16px; }
.mobile-game-extras { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 40px; align-items: start; }
.mobile-game-extras > :is(.side-codes,.side-play) { width: 100%; margin: 0; }
@media (max-width: 767px) {
  .mobile-game-extras { grid-template-columns: 1fr; }
  .main-content .home-composition > .home-hero--backdrop { padding: 8px 0 16px; }
  .home-hero--backdrop h1 { margin-block: 18px 24px; }
  .home-hero--backdrop > .lede { margin: 20px 0 0; text-align: left; font-size: 16px; }
  .game-backdrop { height: 460px; }
  .page-title-hero { padding: 32px 20px; }
  .page-title-hero .lede { font-size: 16px; }
  .side-codes,.side-play { width: 100%; }
}
