body.wyl-page {
    --wyl-bg: #0a0a0a;
    --wyl-text: #fff;
    --wyl-muted: rgba(255, 255, 255, 0.78);
    --wyl-faint: rgba(255, 255, 255, 0.56);
    --wyl-line: #7c5cfa;
    --wyl-blue: #4f7df3;
    --wyl-red: #e53935;
    --wyl-gold: #e8b84a;
    --wyl-col: min(38rem, calc(100% - 2rem));
    --wyl-stage: min(58rem, calc(100% - 2rem));
    --wyl-radius: 8px;
    --wyl-book: url("/assets/new%20UI%20images/open-book-dark-theme.jpg");
    --wyl-paper: url("/assets/new%20UI%20images/black-paper-texture-2.jpg");
    --wyl-grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
    background: var(--wyl-bg);
    color: var(--wyl-text);
}

body.wyl-page.public-page {
    background: var(--wyl-bg);
}

body.wyl-page .public-app-shell {
    overflow-x: clip;
}

.wyl-page-snow.public-book-ambient-snow-surface {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

body.wyl-page.pref-disable-ambient-snow .wyl-page-snow,
body.wyl-page.pref-disable-ambient-snow .wyl-hero > .public-snow-canvas,
body.wyl-page.pref-disable-ambient-snow .wyl-section > .public-snow-canvas {
    display: none;
}

.wyl-hero,
.wyl-section {
    position: relative;
    z-index: 1;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wyl-hero > .public-snow-canvas,
.wyl-section > .public-snow-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.wyl-hero::before,
.wyl-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    background-image: var(--wyl-grain);
    background-size: 180px 180px;
    mix-blend-mode: soft-light;
    z-index: 0;
}

.wyl-hero-inner,
.wyl-stage,
.wyl-head,
.wyl-split-grid,
.wyl-rules,
.wyl-join-copy,
.wyl-actions {
    position: relative;
    z-index: 2;
    width: var(--wyl-col);
    box-sizing: border-box;
}

.wyl-split .wyl-head,
.wyl-split .wyl-split-grid,
.wyl-line .wyl-head,
.wyl-line .wyl-rules {
    width: min(64rem, calc(100% - 2.5rem));
}

.wyl-stage {
    width: var(--wyl-stage);
}

.wyl-hero {
    gap: 1.35rem;
    padding: 1.15rem 1rem 2rem;
}

.wyl-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.62) 0%, rgba(10, 10, 10, 0.92) 100%),
        #0a0a0a;
}

.wyl-stage {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--wyl-radius);
    background: #111;
}

.wyl-stage-frame,
.wyl-stage-slot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.wyl-stage-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: #fff;
    background:
        radial-gradient(ellipse 42% 36% at 50% 46%, rgba(124, 92, 250, 0.22), transparent 68%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0.78) 100%),
        center / cover no-repeat var(--wyl-book);
}

.wyl-stage-slot p {
    margin: 0;
    font-family: 'Gilda Display', 'Times New Roman', serif;
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
}

.wyl-stage-play {
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    color: #fff;
    background: var(--wyl-line);
    border-radius: 50%;
}

.wyl-stage-play svg {
    width: 1.15rem;
    height: 1.15rem;
    margin-left: 0.12rem;
}

.wyl-kicker {
    margin: 0 0 0.45rem;
    font-family: var(--font-ui, var(--font-brand));
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--wyl-faint);
}

.wyl-hero h1,
.wyl-section h2 {
    margin: 0;
    font-family: 'Gilda Display', 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.15;
}

.wyl-hero h1 {
    font-size: clamp(2.15rem, 6vw, 3.4rem);
}

.wyl-hero h1 em {
    font-style: italic;
    box-shadow: inset 0 -0.12em 0 var(--wyl-line);
}

.wyl-lead,
.wyl-section p,
.wyl-join-copy,
.wyl-split-foot {
    margin: 0;
    font-family: var(--font-body);
    line-height: 1.5;
    color: var(--wyl-muted);
}

.wyl-lead {
    margin-top: 0.75rem;
    font-size: 1.05rem;
}

.wyl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.1rem;
}

.wyl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    background: transparent;
    font-family: var(--font-ui, var(--font-brand));
    font-size: 0.95rem;
    font-weight: 700;
}

.wyl-btn--primary {
    background: var(--wyl-line);
    border-color: var(--wyl-line);
}

.wyl-btn--gold {
    background: var(--wyl-gold);
    border-color: var(--wyl-gold);
    color: #111;
}

.wyl-btn:hover,
.wyl-btn:focus-visible {
    border-color: #fff;
}

.wyl-btn--primary:hover,
.wyl-btn--primary:focus-visible {
    background: #9170fc;
    border-color: #9170fc;
}

.wyl-btn--gold:hover,
.wyl-btn--gold:focus-visible {
    background: #f0c85c;
    border-color: #f0c85c;
    color: #111;
}

.wyl-section {
    margin: 0;
    padding: 2.25rem 1rem;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.88), rgba(10, 10, 10, 0.94)),
        center / cover no-repeat var(--wyl-paper);
}

.wyl-head {
    margin-bottom: 1.15rem;
}

.wyl-head h2 {
    font-size: clamp(1.65rem, 3.6vw, 2.15rem);
}

.wyl-split {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.wyl-split .wyl-head h2 {
    font-size: clamp(2rem, 4.4vw, 2.8rem);
}

.wyl-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 3rem;
}

.wyl-side p + p {
    margin-top: 0.3rem;
}

.wyl-side-label {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wyl-side--out {
    color: rgba(255, 255, 255, 0.58);
}

.wyl-side--out .wyl-side-label {
    color: var(--wyl-red);
}

.wyl-side--in {
    padding-left: 1.5rem;
    border-left: 2px solid var(--wyl-line);
}

.wyl-side--in .wyl-side-label {
    color: var(--wyl-line);
}

.wyl-split-foot {
    grid-column: 1 / -1;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.wyl-rules {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wyl-rule {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.7rem;
    align-items: start;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wyl-rule:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wyl-rule strong {
    display: block;
    margin: 0 0 0.12rem;
    font-family: var(--font-brand);
    font-size: 1.02rem;
    font-weight: 700;
}

.wyl-rule p {
    color: var(--wyl-muted);
}

.wyl-rule-mark {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
}

.wyl-rule-mark svg {
    width: 1.05rem;
    height: 1.05rem;
}

.wyl-line {
    overflow: hidden;
}

.wyl-rule--human { color: #f3efe6; }
.wyl-rule--keep { color: var(--wyl-line); }
.wyl-rule--talk { color: var(--wyl-blue); }
.wyl-rule--pay { color: var(--wyl-gold); }

.wyl-rule--human strong,
.wyl-rule--keep strong,
.wyl-rule--talk strong,
.wyl-rule--pay strong {
    color: inherit;
}

.wyl-banner {
    justify-content: center;
    overflow: hidden;
    min-height: 22rem;
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
    background: #0a0a0a;
}

.wyl-banner::before {
    opacity: 0.03;
}

.wyl-banner-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.wyl-join::before {
    opacity: 0;
}

.wyl-join-photo {
    position: absolute;
    top: 50%;
    right: 0;
    width: 52vw;
    height: 150vh;
    transform: translateY(-50%);
    background: 58% 48% / cover no-repeat var(--wyl-book);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 36%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 36%);
}

.wyl-join-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #0a0a0a 0%, #0a0a0a 28%, rgba(10, 10, 10, 0.6) 46%, rgba(10, 10, 10, 0.18) 66%, transparent 86%);
}

.wyl-banner-art--prize {
    background:
        linear-gradient(90deg, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.62) 36%, rgba(10, 10, 10, 0.18) 68%, rgba(10, 10, 10, 0.4) 100%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.18) 0%, rgba(10, 10, 10, 0.5) 100%),
        right center / cover no-repeat url("/assets/images/writers-competition-hero.webp");
}

.wyl-join {
    border-top: 1px solid rgba(124, 92, 250, 0.28);
}

.wyl-prize {
    border-top: 1px solid rgba(232, 184, 74, 0.32);
}

.wyl-prize .wyl-kicker {
    color: var(--wyl-gold);
}

.wyl-banner .wyl-head {
    margin-bottom: 0.7rem;
}

.wyl-banner .wyl-head h2 {
    font-size: clamp(1.85rem, 4vw, 2.55rem);
}

.wyl-join .wyl-actions,
.wyl-prize .wyl-actions {
    margin-top: 1.1rem;
}

body.theme-light.wyl-page {
    --wyl-bg: #fff;
    --wyl-text: #303030;
    --wyl-muted: #303030;
    --wyl-faint: rgba(48, 48, 48, 0.62);
    --wyl-book: url("/assets/new%20UI%20images/open-book-light-theme.jpg");
    --wyl-paper: url("/assets/new%20UI%20images/white-paper-texture.jpg");
    background: #fff;
    color: #303030;
}

body.theme-light.wyl-page .wyl-hero-bg {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, #fff 100%),
        #fff;
}

body.theme-light.wyl-page .wyl-stage {
    border-color: rgba(48, 48, 48, 0.16);
}

body.theme-light.wyl-page .wyl-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.92)),
        center / cover no-repeat var(--wyl-paper);
}


body.theme-light.wyl-page .wyl-rule--human {
    color: #303030;
}

body.theme-light.wyl-page .wyl-banner {
    background: #fff;
}

body.theme-light.wyl-page .wyl-join-veil {
    background: linear-gradient(90deg, #fff 0%, #fff 28%, rgba(255, 255, 255, 0.68) 46%, rgba(255, 255, 255, 0.2) 66%, transparent 86%);
}

body.theme-light.wyl-page .wyl-banner-art--prize {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.7) 36%, rgba(255, 255, 255, 0.22) 70%, rgba(255, 255, 255, 0.4) 100%),
        right center / cover no-repeat url("/assets/images/writers-competition-hero.webp");
}

body.theme-light.wyl-page .wyl-btn {
    color: #303030;
    border-color: #303030;
}

body.theme-light.wyl-page .wyl-btn--primary {
    color: #fff;
}

body.theme-light.wyl-page .wyl-btn--gold {
    color: #111;
}

body.theme-light.wyl-page .wyl-side--out {
    color: rgba(48, 48, 48, 0.62);
}

body.theme-light.wyl-page .wyl-split-foot,
body.theme-light.wyl-page .wyl-rule p {
    color: #303030;
}

body.theme-light.wyl-page .wyl-rule,
body.theme-light.wyl-page .wyl-rule:last-child,
body.theme-light.wyl-page .wyl-split-foot {
    border-color: rgba(48, 48, 48, 0.16);
}

body.theme-light.wyl-page .wyl-rule-mark {
    background: rgba(48, 48, 48, 0.06);
}

@media (max-width: 720px) {
    .wyl-hero {
        gap: 1rem;
        padding: 0.75rem 0.75rem 1.5rem;
    }

    .wyl-section {
        padding: 1.75rem 0.75rem;
    }

    .wyl-split-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .wyl-side--in {
        padding-left: 0;
        padding-top: 0.85rem;
        border-left: 0;
        border-top: 2px solid var(--wyl-line);
    }

    .wyl-banner {
        min-height: 0;
        padding-top: 2.25rem;
        padding-bottom: 2.25rem;
    }

    .wyl-banner-art--prize {
        background-position: center top;
    }

    .wyl-join-photo {
        width: 100%;
        height: 120vh;
        background-position: 58% 38%;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 48%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 48%);
    }

    .wyl-join-veil {
        background: linear-gradient(180deg, #0a0a0a 0%, rgba(10, 10, 10, 0.75) 34%, rgba(10, 10, 10, 0.2) 100%);
    }

    .wyl-banner-art--prize {
        background:
            linear-gradient(180deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.5) 100%),
            center 28% / cover no-repeat url("/assets/images/writers-competition-hero.webp");
    }

    body.theme-light.wyl-page .wyl-join-veil {
        background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.82) 34%, rgba(255, 255, 255, 0.24) 100%);
    }

    body.theme-light.wyl-page .wyl-banner-art--prize {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.58) 100%),
            center 28% / cover no-repeat url("/assets/images/writers-competition-hero.webp");
    }
}

