/* Wonderland Network - styles */
:root {
    --bg: #eaf5fc;
    --paper: #fffdf8;
    --ink: #1d1b2e;
    --mute: #55597a;
    --blue: #3a9ad9;
    --sky: #bfe3f7;
    --rose: #c9354b;
    --plum: #7a4fb0;
    --line: #1d1b2e;
    --shadow: #1d1b2e;
    --arg: rgba(58, 154, 217, .10);
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px)
}
@media (prefers-color-scheme:dark) {
    :root:not([data-theme="light"]) {
        --bg: #0e1226;
        --paper: #171c38;
        --ink: #f3efe6;
        --mute: #a4abd0;
        --blue: #6cbcf0;
        --sky: #24325f;
        --rose: #ff7088;
        --plum: #b691f0;
        --line: #6cbcf0;
        --shadow: #000;
        --arg: rgba(108, 188, 240, .07)
    }
}
:root[data-theme="dark"] {
    --bg: #0e1226;
    --paper: #171c38;
    --ink: #f3efe6;
    --mute: #a4abd0;
    --blue: #6cbcf0;
    --sky: #24325f;
    --rose: #ff7088;
    --plum: #b691f0;
    --line: #6cbcf0;
    --shadow: #000;
    --arg: rgba(108, 188, 240, .07)
}
html {
    scroll-padding-top: env(safe-area-inset-top, 0px);
    scroll-behavior: smooth
}
*,
*::before,
*::after {
    box-sizing: border-box
}
body {
    margin: 0;
    background-color: var(--bg);
    background-image: linear-gradient(45deg, var(--arg) 25%, transparent 25%, transparent 75%, var(--arg) 75%), linear-gradient(45deg, var(--arg) 25%, transparent 25%, transparent 75%, var(--arg) 75%);
    background-size: 56px 56px;
    background-position: 0 0, 28px 28px;
    color: var(--ink);
    font: 400 1rem/1.7 Figtree, system-ui, sans-serif;
    transition: background-color .3s, color .3s
}
h1,
h2,
h3 {
    font-family: Fraunces, Georgia, serif;
    line-height: 1.15;
    margin: 0
}
a {
    color: inherit
}
:focus-visible {
    outline: 3px solid var(--rose);
    outline-offset: 3px
}
.frame {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(12px, 3vw, 32px)
}
header.top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 20px 0
}
.brand {
    font: 700 1.35rem Fraunces, Georgia, serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px
}
nav {
    display: flex;
    gap: 8px;
    align-items: center
}
nav a,
.btn {
    font: 600 .95rem Figtree, sans-serif;
    text-decoration: none;
    padding: 8px 18px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    cursor: pointer;
    color: var(--ink);
    transition: transform .15s, box-shadow .15s
}
nav a:hover,
.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--shadow)
}
nav a[aria-current=page] {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink)
}
#theme {
    width: 42px;
    height: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 1.1rem
}
.hero {
    position: relative;
    border: 3px solid var(--line);
    border-radius: 6px;
    box-shadow: 8px 8px 0 var(--shadow);
    overflow: hidden;
    background: var(--sky)
}
.hero img {
    display: block;
    width: 100%;
    height: clamp(220px, 38vw, 420px);
    object-fit: cover;
    object-position: 78% 50%
}
.hero .cap {
    position: absolute;
    left: 0;
    bottom: 0;
    max-width: min(560px, 92%);
    background: var(--paper);
    border-top: 3px solid var(--line);
    border-right: 3px solid var(--line);
    padding: clamp(14px, 2.5vw, 28px)
}
.hero h1 {
    font-size: clamp(2rem, 6vw, 3.6rem);
    font-weight: 700
}
.hero p {
    margin: 8px 0 0;
    color: var(--mute)
}
.bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin: 44px 0 20px
}
.bar h2 {
    font-size: clamp(1.5rem, 3vw, 2rem)
}
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}
.chip {
    font: 600 .9rem Figtree, sans-serif;
    border: 2px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    padding: 5px 14px;
    border-radius: 999px;
    cursor: pointer
}
.chip[aria-pressed=true] {
    background: var(--rose);
    border-color: var(--rose);
    color: #fff
}
.grid {
    columns: 3 260px;
    column-gap: 18px
}
.tile {
    break-inside: avoid;
    margin: 0 0 18px;
    display: block;
    width: 100%;
    padding: 8px 8px 0;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    color: inherit;
    transition: transform .2s, box-shadow .2s
}
.tile:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--shadow)
}
.tile img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px
}
.tile span {
    display: block;
    padding: 8px 4px 10px;
    font: 600 .92rem Figtree, sans-serif
}
.tile small {
    color: var(--mute);
    font-weight: 400
}
.lb {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(10, 12, 28, .94);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(56px + env(safe-area-inset-top, 0px)) 12px calc(20px + env(safe-area-inset-bottom, 0px))
}
.lb.on {
    display: flex
}
.lb img {
    max-width: 100%;
    max-height: calc(100% - 64px);
    object-fit: contain;
    border: 3px solid #f3efe6;
    background: #fff
}
.lb p {
    color: #f3efe6;
    margin: 12px 0 0;
    text-align: center;
    font-weight: 600
}
.lb button {
    position: absolute;
    background: var(--paper);
    color: var(--ink);
    border: 2px solid var(--ink);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer
}
.lb .x {
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: 12px
}
.lb .pv {
    left: 10px;
    top: 50%
}
.lb .nx {
    right: 10px;
    top: 50%
}
#up {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--line);
    background: var(--rose);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--shadow);
    transition: transform .2s
}
#up:hover {
    transform: translate(-2px, -2px)
}
.card {
    background: var(--paper);
    border: 3px solid var(--line);
    border-radius: 6px;
    box-shadow: 6px 6px 0 var(--shadow);
    padding: clamp(18px, 3vw, 32px)
}
.prof {
    display: grid;
    grid-template-columns: minmax(0, 220px) 1fr;
    gap: 28px;
    align-items: center;
    margin-top: 8px
}
.prof img.av {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: 50% 22%;
    border: 3px solid var(--line);
    border-radius: 50%
}
.prof h1 {
    font-size: clamp(2rem, 5vw, 3rem)
}
.prof .sub {
    color: var(--plum);
    font-weight: 600;
    margin: 4px 0 12px
}
.two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 28px
}
.two h3 {
    font-size: 1.25rem;
    margin-bottom: 8px
}
.cast {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 20px
}
.cast figure {
    margin: 0
}
.cast img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid var(--line);
    border-radius: 4px;
    display: block
}
.cast figcaption {
    font-size: .85rem;
    color: var(--mute);
    margin-top: 4px
}
.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px
}
.links a {
    display: block;
    text-decoration: none;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: 6px;
    padding: 16px 18px;
    transition: transform .15s, box-shadow .15s
}
.links a:hover {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 var(--shadow)
}
.links b {
    font: 700 1.15rem Fraunces, Georgia, serif;
    display: block
}
.links span {
    color: var(--mute);
    font-size: .92rem;
    overflow-wrap: anywhere
}
.disc {
    margin-top: 16px;
    padding: 14px 18px;
    border: 2px dashed var(--line);
    border-radius: 6px;
    background: var(--paper)
}
footer {
    margin: 64px 0 32px;
    padding-top: 18px;
    border-top: 3px double var(--line);
    color: var(--mute);
    font-size: .9rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px
}
section.sec {
    margin-top: 48px
}
section.sec>h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 6px
}
.links a {
    display: flex;
    gap: 14px;
    align-items: center
}
.ic {
    width: 36px;
    height: 36px;
    flex: none;
    color: var(--rose)
}

.disc {
    display: flex;
    gap: 14px;
    align-items: center
}
.disc .ic {
    color: var(--plum)
}
.view {
    display: flex;
    gap: 6px
}
.view .chip {
    padding: 5px 12px
}
.grid.mod {
    columns: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px
}
.grid.mod .tile {
    margin: 0
}
.grid.mod .tile img {
    aspect-ratio: 1;
    object-fit: cover;
    object-position: 50% 22%
}
.grid.mod .tile small {
    display: none
}
@media(max-width:640px) {
    .hero .cap {
        position: static;
        max-width: none;
        border-right: 0;
        border-top: 3px solid var(--line)
    }
    .hero img {
        height: clamp(180px, 52vw, 300px)
    }
    .grid.mod {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px
    }
}

@media(max-width:640px) {
    .prof {
        grid-template-columns: 1fr;
        text-align: center
    }
    .prof img.av {
        max-width: 200px;
        margin: 0 auto
    }
    .lb .pv,
    .lb .nx {
        top: auto;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px))
    }
}
@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important
    }
}

#prog {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, var(--blue), var(--plum), var(--rose));
    z-index: 60
}
.deco {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0
}
.deco b {
    position: absolute;
    font: 700 5rem Fraunces, Georgia, serif;
    color: var(--rose);
    opacity: .08;
    animation: fl 14s ease-in-out infinite
}
@keyframes fl {
    50% {
        transform: translateY(-26px) rotate(12deg)
    }
}
.slides {
    position: relative;
    height: clamp(220px, 38vw, 420px)
}
.slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s
}
.slides img.on {
    opacity: 1
}
.dots {
    position: absolute;
    right: 14px;
    top: 14px;
    display: flex;
    gap: 8px;
    z-index: 2
}
.dots button {
    width: 14px;
    height: 14px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--line);
    background: var(--paper);
    cursor: pointer
}
.dots button.on {
    background: var(--rose);
    border-color: var(--paper)
}
.ticker {
    margin-top: 30px;
    border: 3px solid var(--line);
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
    white-space: nowrap;
    border-radius: 4px
}
.tk {
    display: inline-flex;
    animation: tk 32s linear infinite;
    padding: 9px 0
}
.tk span {
    font: 700 .95rem Fraunces, Georgia, serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 0 26px
}
.tk span::first-letter {
    color: var(--rose)
}
@keyframes tk {
    to {
        transform: translateX(-50%)
    }
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 26px
}
.stat {
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: 6px;
    padding: 12px 10px;
    text-align: center;
    box-shadow: 4px 4px 0 var(--shadow)
}
.stat:nth-child(odd) {
    transform: rotate(-1deg)
}
.stat:nth-child(even) {
    transform: rotate(1deg)
}
.stat b {
    display: block;
    font: 700 clamp(1.5rem, 5vw, 2.4rem) Fraunces, Georgia, serif;
    color: var(--rose);
    line-height: 1.1
}
.stat span {
    font-size: .85rem;
    color: var(--mute)
}
.ph {
    position: relative;
    overflow: hidden;
    border-radius: 2px
}
.ph img {
    transition: transform .6s
}
.tile:hover .ph img {
    transform: scale(1.06)
}
.no {
    position: absolute;
    left: 8px;
    top: 8px;
    background: var(--ink);
    color: var(--paper);
    font: 600 .7rem Figtree, sans-serif;
    font-style: normal;
    letter-spacing: .08em;
    padding: 2px 9px;
    border-radius: 99px
}
.rv {
    transition: opacity .6s, transform .3s, box-shadow .2s
}
.rv:not(.in) {
    opacity: 0;
    transform: translateY(26px)
}
main {
    animation: fin .5s
}
@keyframes fin {
    from {
        opacity: 0;
        transform: translateY(12px)
    }
}
.prof img.av {
    box-shadow: 0 0 0 6px var(--paper), 0 0 0 9px var(--rose)
}
.cast figure {
    transition: transform .2s
}
.cast figure:hover {
    transform: rotate(-2deg) scale(1.04)
}
.card {
    position: relative
}
.card::after {
    content: "";
    position: absolute;
    right: 14px;
    top: -9px;
    width: 54px;
    height: 18px;
    background: var(--rose);
    opacity: .85;
    transform: rotate(4deg)
}
.suits {
    color: var(--rose);
    letter-spacing: .4em
}
footer {
    border-top-style: double
}
@media(max-width:640px) {
    .slides {
        height: clamp(180px, 52vw, 300px)
    }
    .tk span {
        font-size: .8rem
    }
}
@media(prefers-reduced-motion:reduce) {
    .tk,
    .deco b {
        animation: none
    }
}
.view {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: auto
}
.view .vb {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border-radius: 12px
}
.view .vb svg {
    display: block;
    width: 22px;
    height: 22px;
    flex: none
}
.vb .on {
    display: none
}
.vb[aria-pressed=true] .on {
    display: block
}
.vb[aria-pressed=true] .off {
    display: none
}
.vb:hover:not([aria-pressed=true]) {
    background: var(--sky)
}
@media(max-width:640px) {
    .bar .view {
        margin-left: 0
    }
}

/* Phosphor icons */
svg.i,
svg.hi,
svg.ci,
svg.brand-i,
svg.ic {
    fill: currentColor;
    flex: none
}
.brand-i {
    width: 30px;
    height: 30px;
    color: var(--rose)
}
.hi {
    width: .85em;
    height: .85em;
    margin-right: .45em;
    vertical-align: -.1em;
    color: var(--rose)
}
.ci {
    width: 1em;
    height: 1em;
    margin-right: .35em;
    vertical-align: -.15em;
    color: var(--plum)
}
#theme svg {
    width: 20px;
    height: 20px
}
#up svg {
    width: 26px;
    height: 26px
}
#up .u,
#up[data-dir=up] .d {
    display: none
}
#up[data-dir=up] .u {
    display: block
}
.lb button svg {
    width: 22px;
    height: 22px;
    pointer-events: none
}
.stat svg {
    display: block;
    width: 26px;
    height: 26px;
    margin: 0 auto 4px;
    color: var(--plum)
}

/* centered icon buttons */
#up,
.lb button {
    display: grid;
    place-items: center;
    padding: 0;
    line-height: 0
}
#up svg,
.lb button svg,
#theme svg {
    display: block
}
.view .chip {
    width: 40px;
    height: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    line-height: 0
}
.view .chip svg {
    width: 20px;
    height: 20px;
    display: block
}

/* Credits */
.credits {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 12px
}
.credits li {
    display: flex;
    gap: 14px;
    align-items: center;
    padding-top: 12px;
    border-top: 2px dashed var(--line)
}
.credits li:first-child {
    border-top: 0;
    padding-top: 0
}
.credits .ic {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 50%;
    color: var(--rose);
    background: var(--bg)
}
.credits .ic svg {
    width: 20px;
    height: 20px;
    display: block
}
.credits .role {
    display: block;
    font-size: .85rem;
    color: var(--mute)
}
.credits a {
    font-weight: 600;
    text-underline-offset: 3px;
    overflow-wrap: anywhere
}
.credits a:hover {
    color: var(--rose)
}
footer {
    margin-bottom: 84px
}