:root {
    color-scheme: dark;
    --bg: #0d1018;
    --panel: #1a2030;
    --panel2: #252c3d;
    --line: #343c4d;
    --text: #f5f7fa;
    --muted: #a9b2c3;
    --lime: #b4f57a;
    --coral: #ff8a70;
    --violet: #b7a5ff;
    --danger: #ff9e9e;
    font-family: Inter, "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
    font-synthesis: none
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: radial-gradient(circle at 94% 1%, #211e32 0, transparent 34rem), radial-gradient(circle at -10% 100%, #13211d 0, transparent 34rem), var(--bg);
    color: var(--text);
    min-height: 100vh
}

button,
input,
textarea,
select {
    font: inherit
}

button {
    cursor: pointer
}

button:disabled {
    cursor: not-allowed;
    opacity: .55
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

p {
    line-height: 1.7
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1 {
    font-size: clamp(2.2rem, 4vw, 3.75rem);
    line-height: 1.18;
    letter-spacing: -.04em
}

h2 {
    font-size: clamp(1.65rem, 2.3vw, 2.25rem);
    line-height: 1.25
}

h3 {
    font-size: 1.3rem
}

small,
.muted {
    color: var(--muted)
}

:focus-visible {
    outline: 3px solid var(--violet);
    outline-offset: 3px
}

.wrap {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto
}

.site-header {
    height: 76px;
    border-bottom: 1px solid #2c3340;
    background: rgba(13, 16, 24, .88);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 20
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 38px
}

.brand {
    font-size: 1.65rem;
    font-weight: 850;
    letter-spacing: -.07em;
    white-space: nowrap
}

.brand span {
    color: var(--lime)
}

.desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-left: 20px
}

.desktop-nav a {
    font-size: .96rem;
    color: var(--muted);
    height: 76px;
    display: grid;
    align-items: center;
    position: relative
}

.desktop-nav a.active {
    color: var(--text);
    font-weight: 700
}

.desktop-nav a.active:after {
    content: "";
    height: 3px;
    background: var(--lime);
    border-radius: 3px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0
}

.header-spacer {
    flex: 1
}

.header-search {
    width: 250px
}

.search-input,
.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel2);
    color: var(--text);
    padding: 13px 15px;
    min-height: 48px
}

.field textarea {
    min-height: 118px;
    resize: vertical
}

.field input::placeholder,
.field textarea::placeholder,
.search-input::placeholder {
    color: #8994a8
}

.mobile-menu {
    display: none
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel2);
    color: var(--text);
    font-weight: 700;
    transition: transform .15s, background .15s, border .15s;
    text-align: center
}

.btn:hover {
    transform: translateY(-2px);
    border-color: #75806c
}

.btn.primary {
    background: var(--lime);
    border-color: var(--lime);
    color: #14200d
}

.btn.primary:hover {
    background: #c8ffa0
}

.btn.coral {
    background: var(--coral);
    border-color: var(--coral);
    color: #2b160e
}

.btn.ghost {
    background: transparent
}

.btn.tiny {
    min-height: 38px;
    padding: 7px 13px;
    font-size: .9rem
}

.btn.wide {
    width: 100%
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel2);
    color: var(--text);
    font-size: 1.2rem
}

.mobile-panel {
    display: none;
    background: var(--panel);
    padding: 16px 24px;
    border-bottom: 1px solid var(--line)
}

.mobile-panel.open {
    display: flex;
    gap: 20px;
    flex-wrap: wrap
}

.mobile-panel a {
    padding: 8px 0
}

main {
    min-height: calc(100vh - 160px)
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px 0;
    margin-top: 90px;
    color: var(--muted);
    font-size: .9rem
}

.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 20px
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #2a3440;
    color: var(--lime);
    border-radius: 999px;
    padding: 8px 15px;
    font-size: .8rem;
    font-weight: 750;
    letter-spacing: .02em
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 58px;
    align-items: center;
    padding: 76px 0 42px;
    min-height: 450px
}

.hero h1 {
    margin: 20px 0 21px
}

.accent {
    color: var(--lime)
}

.hero p {
    font-size: 1.08rem;
    max-width: 540px;
    color: var(--muted)
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 29px
}

.hero-art {
    height: 370px;
    background: linear-gradient(155deg, #27374b, #172335 52%, #302342);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 12px;
    box-shadow: 0 20px 50px #0005;
    overflow: hidden
}

.hero-art img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 14px
}

.hero-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 14px;
    background: radial-gradient(circle at 74% 31%, #6e517a 0, transparent 24%), radial-gradient(circle at 25% 70%, #38776c 0, transparent 26%), linear-gradient(140deg, #1a2634, #302440);
    overflow: hidden
}

.hero-empty:before,
.hero-empty:after {
    content: "";
    position: absolute;
    border: 2px solid #b7a5ff66;
    border-radius: 50%;
    transform: rotate(-20deg)
}

.hero-empty:before {
    width: 70%;
    height: 36%
}

.hero-empty:after {
    width: 45%;
    height: 24%;
    border-color: #b4f57a99
}

.hero-empty strong {
    z-index: 1;
    font-size: 3.6rem;
    letter-spacing: -.07em;
    text-shadow: 0 8px 25px #0007
}

.hero-empty span {
    color: var(--lime)
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin: 42px 0 22px
}

.section-head h2 {
    margin: 0
}

.section-head a {
    color: var(--lime);
    font-weight: 700
}

.section-sub {
    color: var(--muted);
    margin: 7px 0 0
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px
}

.project-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    overflow: hidden;
    transition: transform .15s, border-color .15s;
    display: block
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: #607260
}

.card-image {
    height: 225px;
    position: relative;
    background: linear-gradient(135deg, #234a50, #4d396a)
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.card-image.no-image:after {
    content: "✦";
    position: absolute;
    font-size: 5rem;
    color: #e3d7ff;
    left: calc(50% - 2rem);
    top: calc(50% - 3rem)
}

.card-image .tag {
    position: absolute;
    top: 14px;
    left: 14px
}

.tag {
    display: inline-block;
    background: #35314b;
    color: #d8ccff;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 750;
    padding: 7px 12px
}

.card-body {
    padding: 19px
}

.card-body h3 {
    margin-bottom: 7px
}

.card-body p {
    font-size: .92rem;
    color: var(--muted);
    margin-bottom: 17px;
    min-height: 40px
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: .85rem
}

.filter-row {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin: 25px 0
}

.filter-row button {
    background: var(--panel);
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 15px;
    min-height: 42px
}

.filter-row button.selected {
    background: var(--lime);
    border-color: var(--lime);
    color: #14200d;
    font-weight: 800
}

.listing-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.listing-bar select {
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    color: var(--text)
}

.empty,
.notice {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    padding: 36px;
    text-align: center
}

.empty {
    color: var(--muted)
}

.notice.error {
    border-color: #78484d;
    color: #ffcbcb;
    background: #2b2029
}

.notice.success {
    border-color: #425c38;
    color: #d4ffbe;
    background: #1d2b22
}

.load-more {
    text-align: center;
    margin: 32px
}

.page-top {
    padding: 44px 0 24px
}

.crumb {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 27px
}

.crumb a:hover {
    color: var(--lime)
}

.detail-intro {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 26px
}

.detail-intro h1 {
    margin: 16px 0 10px
}

.detail-intro p {
    color: var(--muted);
    font-size: 1.06rem;
    margin-bottom: 9px
}

.detail-intro small {
    font-size: .9rem
}

.stage {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 20px;
    overflow: hidden
}

.stage-screen {
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #264e4f, #29254f);
    display: grid;
    place-items: center
}

.stage-screen img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    position: absolute;
    inset: 0
}

.stage-screen:after {
    content: "";
    position: absolute;
    inset: 0;
    background: #0003;
    pointer-events: none
}

.stage-screen iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    z-index: 2
}

.stage-start {
    z-index: 3;
    position: relative;
    padding: 22px 42px;
    background: #0d1018d9;
    border: 1px solid #ffffff80;
    border-radius: 16px;
    color: var(--lime);
    font-size: 1.2rem;
    font-weight: 800
}

.stage-screen.is-playing:after {
    display: none
}

.stage-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    gap: 10px
}

.detail-lower {
    display: grid;
    grid-template-columns: 1.4fr .85fr;
    gap: 24px;
    margin-top: 28px
}

.panel {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 18px;
    padding: 25px
}

.panel h2,
.panel h3 {
    margin-bottom: 16px
}

.panel p {
    color: var(--muted)
}

.external-links {
    display: flex;
    gap: 20px;
    margin-top: 18px
}

.external-links a {
    color: var(--violet)
}

.pk-callout {
    background: linear-gradient(115deg, #e87366, #ff947b);
    color: #281713;
    border-radius: 17px;
    padding: 25px;
    display: block
}

.pk-callout h3 {
    font-size: 1.65rem;
    margin: 0 0 6px
}

.pk-callout p {
    color: #422a24;
    margin: 0
}

.duel-list {
    margin-top: 20px;
    display: grid;
    gap: 10px
}

.duel-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    background: var(--panel2);
    padding: 15px;
    border-radius: 12px
}

.duel-list a:hover {
    border-color: var(--coral)
}

.full-main {
    width: 100%;
    height: calc(100vh - 76px);
    padding: 12px
}

.full-main .stage {
    height: 100%;
    display: flex;
    flex-direction: column
}

.full-main .stage-screen {
    aspect-ratio: auto;
    flex: 1
}

.full-main .stage-toolbar {
    flex: none
}

.duel-head {
    padding: 52px 0 24px
}

.duel-head h1 {
    margin: 15px 0
}

.duel-head p {
    color: var(--muted)
}

.duel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    position: relative
}

.duel-grid:after {
    content: "VS";
    position: absolute;
    left: 50%;
    top: 36%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 16px;
    color: var(--lime);
    font-weight: 900
}

.duel-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    padding: 13px
}

.duel-card .card-image {
    height: 280px;
    border-radius: 12px;
    overflow: hidden
}

.duel-card .card-body {
    padding: 18px 10px 10px
}

.duel-card h2 {
    margin: 0 0 8px
}

.duel-card p {
    color: var(--muted);
    min-height: 53px
}

.duel-card .actions {
    display: flex;
    gap: 12px;
    margin-top: 23px
}

.duel-card .actions .btn {
    flex: 1
}

.duel-card .badge {
    margin-top: 14px;
    color: var(--muted)
}

.result {
    margin-top: 18px
}

.result-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px
}

.result-bar {
    height: 15px;
    border-radius: 999px;
    background: var(--lime);
    overflow: hidden
}

.result-bar span {
    height: 100%;
    background: var(--violet);
    display: block
}

.duel-idea {
    margin-top: 28px
}

.duel-idea h3 {
    color: var(--violet)
}

.form-layout {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 22px
}

.steps {
    display: flex;
    gap: 18px;
    margin: 26px 0 32px
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted)
}

.step b {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: var(--panel2)
}

.step.active {
    color: var(--lime)
}

.step.active b {
    background: var(--lime);
    color: #14200d
}

.field {
    margin: 20px 0
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700
}

.field .hint {
    color: var(--muted);
    font-size: .83rem;
    margin: 6px 0
}

.dropzone {
    border: 2px dashed #5c5687;
    background: #191e2c;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    display: block;
    cursor: pointer
}

.dropzone input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px
}

.dropzone strong {
    display: block;
    margin: 7px 0
}

.dropzone .upload-icon {
    font-size: 2.2rem;
    color: var(--violet)
}

.dropzone small {
    display: block
}

.dropzone.has-file {
    border-color: var(--lime)
}

.optional {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel2);
    padding: 15px 18px;
    margin: 18px 0
}

.optional summary {
    cursor: pointer;
    font-weight: 750
}

.rights {
    display: flex;
    align-items: start;
    gap: 10px;
    margin: 22px 0;
    color: var(--muted);
    font-size: .9rem
}

.rights input {
    margin-top: 4px
}

.form-error {
    font-size: .9rem;
    color: var(--danger);
    margin-top: 5px
}

.guide-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--line)
}

.guide-item:last-child {
    border: 0
}

.guide-item strong {
    color: var(--lime)
}

.guide-item p {
    font-size: .9rem;
    margin: 7px 0 0
}

.form-submit {
    width: 100%;
    margin-top: 10px
}

.status-banner {
    padding: 24px;
    background: #263529;
    border: 1px solid #466044;
    border-radius: 15px;
    margin: 18px 0
}

.status-banner h2 {
    margin: 0 0 8px
}

.status-banner p {
    margin: 0;
    color: #c5d7c2
}

.timeline {
    list-style: none;
    margin: 35px 0;
    padding: 0
}

.timeline li {
    position: relative;
    padding: 0 0 31px 47px;
    color: var(--muted)
}

.timeline li:before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--panel2);
    border: 2px solid var(--line)
}

.timeline li:not(:last-child):after {
    content: "";
    position: absolute;
    left: 24px;
    top: 25px;
    width: 1px;
    height: calc(100% - 25px);
    background: var(--line)
}

.timeline li.done:before {
    background: var(--lime);
    border-color: var(--lime)
}

.timeline li.done,
.timeline li.current {
    color: var(--text)
}

.timeline li.current:before {
    border-color: var(--lime);
    box-shadow: 0 0 0 4px #b4f57a22
}

.timeline li strong {
    display: block
}

.timeline li span {
    font-size: .9rem
}

.status-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 22px
}

.verify-box {
    max-width: 690px;
    margin: 70px auto
}

.verify-box h1 {
    font-size: 2.5rem
}

.report-modal {
    position: fixed;
    inset: 0;
    background: #000b;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 20px
}

.report-modal .panel {
    width: min(490px, 100%)
}

.report-modal .field {
    margin: 15px 0
}

@media(max-width:950px) {

    .desktop-nav,
    .header-search {
        display: none
    }

    .mobile-menu {
        display: block
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .hero-art {
        max-width: 680px
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .detail-lower,
    .form-layout,
    .status-layout {
        grid-template-columns: 1fr
    }

    .duel-grid {
        gap: 22px
    }

    .duel-grid:after {
        top: 30%
    }
}

@media(max-width:680px) {
    .wrap {
        width: min(100% - 36px, 560px)
    }

    .site-header {
        height: 64px
    }

    .header-inner {
        gap: 12px
    }

    .brand {
        font-size: 1.38rem
    }

    .header-actions {
        margin-left: auto
    }

    .header-actions .btn {
        padding: 9px 12px;
        font-size: .84rem;
        min-height: 40px
    }

    .site-footer .wrap {
        flex-direction: column
    }

    .hero {
        padding: 42px 0 12px;
        min-height: 0
    }

    .hero h1 {
        font-size: 2.28rem
    }

    .hero p {
        font-size: .95rem
    }

    .hero-actions {
        flex-wrap: wrap
    }

    .hero-actions .btn {
        flex: 1
    }

    .hero-art {
        height: 240px
    }

    .hero-empty strong {
        font-size: 2.2rem
    }

    .section-head {
        margin: 36px 0 16px
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 15px
    }

    .card-image {
        height: 220px
    }

    .page-top {
        padding: 27px 0 18px
    }

    .detail-intro {
        display: block
    }

    .detail-intro h1 {
        font-size: 2.6rem
    }

    .detail-intro>.btn {
        margin-top: 17px
    }

    .stage-screen {
        aspect-ratio: 4/3
    }

    .stage-start {
        font-size: 1rem;
        padding: 15px 21px
    }

    .stage-toolbar {
        padding: 12px;
        flex-wrap: wrap
    }

    .stage-toolbar .btn {
        flex: 1
    }

    .detail-lower {
        gap: 16px
    }

    .duel-head {
        padding: 30px 0 15px
    }

    .duel-head h1 {
        font-size: 2.25rem
    }

    .duel-grid {
        grid-template-columns: 1fr;
        gap: 26px
    }

    .duel-grid:after {
        top: 50%;
        padding: 7px 12px
    }

    .duel-card .card-image {
        height: 220px
    }

    .duel-card .actions {
        gap: 8px
    }

    .duel-card .actions .btn {
        font-size: .85rem;
        padding: 9px
    }

    .result-labels {
        font-size: .85rem
    }

    .steps {
        font-size: .8rem;
        justify-content: space-between;
        gap: 4px
    }

    .step {
        gap: 4px
    }

    .step b {
        width: 26px;
        height: 26px
    }

    .panel {
        padding: 19px
    }

    .form-layout {
        gap: 16px
    }

    .full-main {
        height: calc(100vh - 64px)
    }

    .full-main .stage-screen {
        aspect-ratio: auto
    }

    .full-main .stage-toolbar {
        flex-wrap: nowrap
    }

    .full-main .stage-toolbar .btn {
        flex: none
    }
}

.hero-empty {
    background: #1a2634 url('hero-visual.png') center/cover no-repeat
}

.hero-empty:before,
.hero-empty:after {
    display: none
}