:root { --gold: #e4c596; --muted: #aebbc3; --edge: #d7e0e626; }
body { font-family: "Segoe UI", Arial, system-ui, sans-serif; }
a { text-decoration: none; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 22px; }
.section-top h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 500; margin: 6px 0 0; }
.overline { color: var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; }
.season-updates { width: min(calc(100% - 40px), 1200px); padding: 44px 0 64px; }
.update-card { border-radius: 0; border: 0; background: #121d26; }
.update-copy h2 { font-family: "Segoe UI", Arial, system-ui, sans-serif; }
.update-action { text-decoration: none; padding: 10px 0; border-bottom: 1px solid #e4c59670; }
.season-nav { display: flex; justify-content: center; gap: 32px; padding: 20px; border-bottom: 1px solid var(--edge); }
.season-nav a { color: #bac7ce; font-size: .9rem; }
.season-nav a:hover { color: var(--gold); }
.gallery { width: min(calc(100% - 40px), 1200px); display: block; padding: 0 0 70px; }
.gallery-heading { display: flex; align-items: center; gap: 16px; }
.gallery-heading h2 { font-size: 1.6rem; font-weight: 500; margin: 6px 0 0; }
.gallery-heading p { margin: 0; }
.gallery-tools { display: flex; align-items: center; gap: 10px; }
.gallery-tools button { width: 44px; height: 44px; border: 1px solid var(--edge); background: transparent; font-size: 1.4rem; }
.gallery-tools button:hover { border-color: var(--gold); color: var(--gold); }
.gallery-stage { background: #04090d; aspect-ratio: 16/9; position: relative; touch-action: pan-y; }
.gallery-stage figure { margin: 0; width: 100%; height: 100%; }
.gallery-stage img { width: 100%; height: 100%; object-fit: contain; }
.gallery-stage figcaption { position: absolute; left: 24px; bottom: 20px; font-size: .9rem; color: #fff; text-shadow: 0 1px 6px black; }
.gallery-counter { color: var(--muted); font-size: .85rem; min-width: 38px; }
.gallery-thumbs { display: flex; overflow-x: auto; gap: 10px; padding: 16px 0 4px; scrollbar-width: thin; }
.gallery-thumbs button { border: 1px solid transparent; padding: 3px; background: transparent; flex: 0 0 108px; opacity: .5; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.preview-footer { text-align: center; color: #7f959f; font-size: .8rem; padding: 24px 20px; border-top: 1px solid var(--edge); }
.class-section { width: min(calc(100% - 40px), 1160px); padding-top: 42px; }
.class-intro { padding: 20px 0 28px; }
.class-section h1 { font-weight: 500; font-size: clamp(2.25rem, 5vw, 4rem); margin: 20px 0 12px; }
.back-link { font-size: .85rem; color: var(--muted); }
.video-poster { position: relative; width: 100%; border: 0; padding: 0; display: block; background: #101c24; color: white; overflow: hidden; cursor: pointer; }
.video-poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#071018d9,transparent 50%); pointer-events: none; }
.video-poster:hover img { transform: scale(1.025); }
.poster-main { aspect-ratio: 16/7; }
.poster-main img { object-position: center 40%; }
.play-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border: 1px solid #f3e3c3ba; border-radius: 50%; background: #08121b80; display: grid; place-items: center; z-index: 1; backdrop-filter: blur(6px); }
.play-ring::before { content: ""; margin-left: 4px; border-left: 14px solid #f5e8cf; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.poster-label { position: absolute; bottom: 24px; left: 28px; z-index: 1; text-align: left; font-size: .95rem; letter-spacing: .02em; }
.poster-label small { display: block; font-size: .75rem; color: #e4c596; margin-bottom: 6px; letter-spacing: .1em; text-transform: uppercase; }
.class-skills { display: block; border-top: 1px solid var(--edge); margin-top: 48px; padding-top: 30px; }
.branch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.branch { min-width: 0; position: relative; isolation: isolate; }
.branch-background { position: absolute; inset: -12px -12px 0; z-index: -1; overflow: hidden; pointer-events: none; }
.branch-background img { width: 100%; height: 100%; object-fit: cover; filter: blur(8px); opacity: .25; }
.guide-ambient { position: relative; }
.guide-background { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.guide-background img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: blur(8px); transform: scale(1.04); opacity: .4; }
.guide-background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,#080f161a,#080f167a 90%); }
.guide-ambient main { position: relative; z-index: 1; isolation: auto; }
.guide-ambient header { background: none; }
.branch .video-poster { aspect-ratio: 16/10; }
.branch .video-poster img { object-position: center 28%; }
.branch-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.branch-meta h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 500; margin: 6px 0; }
.branch-meta h3 span { font-size: .6em; color: #92a6b1; font-weight: 400; margin-left: 8px; }
.branch .branch-description { color: var(--muted); margin: 8px 0 20px; font-size: .9rem; }
.branch-actions { display: flex; align-items: center; gap: 22px; padding: 0 0 26px; border-bottom: 1px solid var(--edge); }
.guide-button { display: inline-flex; gap: 26px; align-items: center; color: #17212a; background: #ddc29a; border: 1px solid #ddc29a; padding: 12px 18px; font-weight: 600; font-size: .85rem; }
.guide-button:hover { background: #eddbba; }
.watch-button { border: 0; padding: 10px 0; color: #c2cdd2; background: transparent; font-size: .85rem; }
.watch-button:hover { color: var(--gold); }
.video-dialog { padding: 14px; width: min(94vw,1120px); max-width: none; border: 1px solid var(--edge); color: #e6ecef; background: #0b151d; }
.video-dialog::backdrop { background: #02080deb; }
.video-dialog .dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 12px; }
.video-dialog .dialog-heading p { margin: 0; color: #c6d1d6; font-size: .9rem; }
.video-dialog button { border: 1px solid var(--edge); background: transparent; padding: 8px 14px; }
.video-dialog iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; margin: 0; }
:focus-visible { outline: 2px solid #e4c596; outline-offset: 4px; }
html { scroll-padding-top: 24px; }
html:has(dialog[open]) { overflow: hidden; }
@media(max-width:650px) {
  .branch-grid { grid-template-columns: 1fr; gap: 32px; }
  .poster-main { aspect-ratio: 16/10; }
  .play-ring { width: 50px; height: 50px; }
  .poster-label { left: 18px; bottom: 18px; }
  .section-top { align-items: center; gap: 12px; }
  .gallery-heading h2 { font-size: 1.2rem; }
  .gallery-tools { gap: 6px; }
  .gallery-tools button { width: 36px; height: 36px; }
  .gallery-thumbs button { flex-basis: 78px; }
  .gallery-stage figcaption { left: 12px; bottom: 12px; font-size: .8rem; }
  .class-section { padding-top: 24px; }
  .season-nav { gap: 22px; }
}
@media(prefers-reduced-motion:reduce) { .video-poster img { transition: none; } }
