:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
    --font-mono: "SF Mono", "Consolas", "Liberation Mono", monospace;
    --page-bg: #090a0c;
    --panel-bg: rgba(16, 18, 22, 0.88);
    --panel-bg-strong: rgba(22, 25, 31, 0.96);
    --line: rgba(255, 255, 255, 0.14);
    --text: #f2f4f7;
    --muted: #aeb7c4;
    --fire: #ff4000;
    --wave: #008cc0;
    --gold: #cad700;
    --leaf: #009800;
    --void: #8000ff;
    --radius: 8px;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 12%, rgba(128, 0, 255, 0.22), transparent 28rem),
        radial-gradient(circle at 88% 4%, rgba(0, 140, 192, 0.16), transparent 24rem),
        linear-gradient(180deg, #0b0c10 0%, var(--page-bg) 48%, #07080a 100%);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 84%);
}

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

img {
    max-width: 100%;
}

.en,
.ko {
    display: inline;
}

body.lang-ko .en,
body.lang-en .ko {
    display: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 72px;
    padding: 0.85rem max(1rem, calc((100vw - var(--max-width)) / 2));
    background: rgba(9, 10, 12, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    width: 100%;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: max-content;
    font-weight: 700;
}

.brand-link img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.top-nav {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    gap: 0.35rem;
    min-width: 0;
}

.top-nav a,
.language-toggle,
.primary-action,
.secondary-action {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.8rem;
    font: inherit;
    font-weight: 700;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.top-nav a:hover,
.language-toggle:hover,
.primary-action:hover,
.secondary-action:hover {
    border-color: var(--wave);
    background: rgba(0, 140, 192, 0.18);
    transform: translateY(-1px);
}

.muted-link {
    color: var(--muted);
}

.language-toggle {
    cursor: pointer;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
    align-items: center;
    gap: 3rem;
    max-width: var(--max-width);
    width: 100%;
    min-height: min(760px, calc(100vh - 150px));
    margin: 0 auto;
    padding: 3.4rem 1rem 4rem;
}

.hero-art {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
}

.hero-render-image {
    position: absolute;
    z-index: 1;
    width: min(94%, 430px);
    opacity: 1;
    object-fit: contain;
    filter:
        brightness(1.06)
        saturate(1.12)
        contrast(1.02)
        drop-shadow(0 24px 54px rgba(0, 0, 0, 0.54))
        drop-shadow(0 0 18px rgba(255, 64, 0, 0.13))
        drop-shadow(0 0 24px rgba(0, 140, 192, 0.16))
        drop-shadow(0 0 18px rgba(0, 152, 0, 0.12))
        drop-shadow(0 0 18px rgba(128, 0, 255, 0.15));
    transform: translateY(-0.85rem);
}

.anniversary-mark {
    position: relative;
    z-index: 2;
    display: block;
    font-size: 9.2rem;
    line-height: 0.9;
    font-weight: 900;
    font-family: var(--font-mono);
    color: transparent;
    background: linear-gradient(180deg, var(--fire), var(--gold) 30%, var(--leaf) 52%, var(--wave) 73%, var(--void));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 38px rgba(128, 0, 255, 0.34);
    opacity: 0.9;
}

.suit-strip {
    position: absolute;
    bottom: 1.8rem;
    z-index: 3;
    display: flex;
    gap: 0.75rem;
}

.suit-pip {
    width: 48px;
    height: 64px;
    border-radius: var(--radius);
    background: var(--panel-bg-strong);
    border: 2px solid currentColor;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.suit-pip:nth-child(1) { transform: rotate(-14deg) translateY(4px); }
.suit-pip:nth-child(2) { transform: rotate(-7deg) translateY(-2px); }
.suit-pip:nth-child(3) { transform: rotate(0deg) translateY(-6px); }
.suit-pip:nth-child(4) { transform: rotate(7deg) translateY(-2px); }
.suit-pip:nth-child(5) { transform: rotate(14deg) translateY(4px); }

.hero-copy {
    max-width: 680px;
    min-width: 0;
}

.eyebrow,
.section-kicker,
.card-label,
.info-value {
    margin: 0;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0;
}

.eyebrow {
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 800;
}

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

h1 {
    margin-bottom: 1.3rem;
    font-size: 3.8rem;
    line-height: 1.04;
    letter-spacing: 0;
}

body.lang-en h1 {
    font-size: 3.15rem;
    white-space: nowrap;
}

.hero-lede {
    margin-bottom: 2rem;
    color: #d9e0ea;
    font-size: 1.16rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.primary-action {
    border-color: var(--gold);
    background: rgba(202, 215, 0, 0.14);
}

.secondary-action {
    color: var(--muted);
}

.content-band {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.section-shell {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 4.5rem 1rem;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(240px, 0.75fr) minmax(320px, 1.25fr);
    gap: 2.5rem;
}

.origin-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(320px, 1.28fr);
    gap: 2.5rem;
    align-items: start;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 1.8rem;
}

.year-section .section-shell {
    padding-block: 2.8rem;
}

.year-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
    cursor: pointer;
}

.year-summary::-webkit-details-marker {
    display: none;
}

.year-summary:hover .year-toggle {
    border-color: var(--void);
    background: rgba(128, 0, 255, 0.18);
}

.year-summary:focus-visible {
    outline: 2px solid var(--void);
    outline-offset: 6px;
}

.year-summary-copy {
    display: block;
    max-width: 760px;
    min-width: 0;
}

.year-title {
    display: block;
    margin-top: 0;
    margin-bottom: 0;
    color: var(--void);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: 0;
}

.year-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(128, 0, 255, 0.48);
    border-radius: var(--radius);
    background: rgba(128, 0, 255, 0.12);
    color: var(--text);
    font-weight: 800;
}

.year-toggle::after {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-0.1rem);
    transition: transform 180ms ease;
}

.year-disclosure[open] .year-toggle::after {
    transform: rotate(225deg) translate(-0.1rem, -0.1rem);
}

.year-disclosure .when-open,
.year-disclosure[open] .when-closed {
    display: none;
}

.year-disclosure[open] .when-open {
    display: inline;
}

.year-feature-grid {
    margin-top: 1.8rem;
}

.year-disclosure:not([open]) > .year-feature-grid {
    display: none;
}

.score-rule-card code {
    color: #f8f1a0;
    font-family: var(--font-mono);
    font-size: 0.92em;
}

.section-kicker {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

h2 {
    margin-bottom: 0.9rem;
    font-size: 2.1rem;
    line-height: 1.16;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
    line-height: 1.25;
}

.host-letter {
    margin: 0;
    padding: 1.6rem;
    border-left: 4px solid var(--fire);
    background: var(--panel-bg);
    border-radius: var(--radius);
    color: #e7ecf4;
}

.host-letter p:last-of-type {
    margin-bottom: 0.8rem;
}

.host-letter cite {
    color: var(--muted);
    font-style: normal;
    font-weight: 700;
}

.origin-panel {
    position: relative;
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--leaf);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(0, 152, 0, 0.13), rgba(16, 18, 22, 0.9) 44%),
        var(--panel-bg);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
}

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

.origin-label {
    margin-bottom: 0.8rem;
    color: var(--leaf);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.origin-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 0.35rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(202, 215, 0, 0.4);
    border-radius: var(--radius);
    background: rgba(202, 215, 0, 0.1);
    color: var(--gold);
    font-weight: 800;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.origin-link:hover,
.origin-link:focus-visible {
    border-color: var(--gold);
    background: rgba(202, 215, 0, 0.16);
    transform: translateY(-1px);
}

.feature-grid,
.info-grid,
.category-grid,
.scoring-grid {
    display: grid;
    gap: 1rem;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.feature-card,
.info-card,
.category-card,
.score-rule-card {
    position: relative;
    min-width: 0;
    min-height: 100%;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-top: 4px solid currentColor;
    border-radius: var(--radius);
    background: var(--panel-bg);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.26);
}

.feature-card::after,
.category-card::after,
.score-rule-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, currentColor, transparent 34%);
    opacity: 0.08;
}

.feature-card:hover,
.category-card:hover,
.score-rule-card:hover,
.info-card:hover {
    border-color: currentColor;
}

.feature-link-card {
    display: block;
    cursor: pointer;
}

.feature-link-card:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.feature-link-card:hover .card-label,
.feature-link-card:focus-visible .card-label {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.feature-card p,
.category-card p,
.score-rule-card p,
.info-card p,
.submission-layout p {
    color: var(--muted);
}

.score-equation-text {
    margin-bottom: 1rem;
}

.goonkemon-example-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1rem;
    align-items: start;
    margin: 0 0 1.4rem;
}

.goonkemon-example-panel {
    min-width: 0;
    margin: 0;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-top: 4px solid currentColor;
    border-radius: var(--radius);
    background: var(--panel-bg);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
}

.goonkemon-example-panel img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: calc(var(--radius) - 2px);
    background: #050608;
}

.goonkemon-example-panel figcaption {
    margin-top: 0.75rem;
    color: #dce4ed;
    font-size: 0.94rem;
    line-height: 1.55;
}

.card-label {
    display: block;
    margin-bottom: 1rem;
    color: currentColor;
    font-size: 0.75rem;
    font-weight: 900;
}

.card-topline {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.draft-card {
    border-style: dashed;
}

.info-card {
    color: var(--gold);
}

.info-value {
    display: block;
    margin-bottom: 1.1rem;
    color: currentColor;
    font-size: 1.55rem;
    font-weight: 900;
}

.rule-list {
    display: grid;
    gap: 0.55rem;
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
}

.rule-list li {
    position: relative;
    padding-left: 1.15rem;
    color: #dce4ed;
}

.rule-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
}

.rule-list a,
.submission-layout a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.submission-notes {
    margin-top: 1rem;
}

.submission-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
    gap: 1rem;
    align-items: start;
    min-width: 0;
}

pre {
    margin: 0;
    overflow-x: auto;
    border: 1px solid rgba(0, 140, 192, 0.38);
    border-radius: var(--radius);
    background: #050608;
    color: #eaf6ff;
    padding: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
}

.page-footer {
    padding: 2rem 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
}

.suit-fire { color: var(--fire); }
.suit-wave { color: var(--wave); }
.suit-gold { color: var(--gold); }
.suit-leaf { color: var(--leaf); }
.suit-void { color: var(--void); }

.suit-fire-band h2 { color: var(--fire); }
.suit-wave-band h2 { color: var(--wave); }
.suit-gold-band h2 { color: var(--gold); }
.suit-leaf-band h2 { color: var(--leaf); }
.suit-void-band h2 { color: var(--void); }

@media (max-width: 900px) {
    .site-header {
        align-items: stretch;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .top-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        overflow: visible;
        padding-bottom: 0.1rem;
    }

    .top-nav a {
        min-width: 0;
        padding-inline: 0.55rem;
        text-align: center;
        white-space: normal;
    }

    .language-toggle {
        margin-left: auto;
    }

    .hero-section,
    .two-column,
    .origin-layout,
    .submission-layout {
        grid-template-columns: 1fr;
    }

    .hero-section {
        gap: 1rem;
        min-height: 0;
        padding-top: 2.4rem;
        max-width: 100vw;
        overflow: hidden;
    }

    .hero-art {
        min-height: 300px;
    }

    .anniversary-mark {
        font-size: 6.6rem;
    }

    .feature-grid,
    .info-grid,
    .category-grid,
    .scoring-grid,
    .goonkemon-example-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .host-letter,
    .origin-panel,
    .goonkemon-example-panel,
    .feature-card,
    .info-card,
    .category-card,
    .score-rule-card,
    .submission-layout,
    .section-shell {
        min-width: 0;
        max-width: 100%;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .year-summary {
        align-items: flex-start;
    }

    .primary-action,
    .secondary-action {
        width: 100%;
    }

    h1 {
        font-size: 2.35rem;
        overflow-wrap: break-word;
    }

    body.lang-en h1 {
        font-size: 2.35rem;
    }
}

@media (max-width: 560px) {
    .site-header {
        position: static;
    }

    .brand-link {
        min-width: 0;
        width: auto;
    }

    .brand-link span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero-section {
        padding: 1.6rem 1rem 3rem;
    }

    .hero-art {
        min-height: 250px;
    }

    .hero-render-image {
        width: min(94%, 330px);
        transform: translateY(-0.6rem);
    }

    .anniversary-mark {
        font-size: 5.25rem;
    }

    .suit-pip {
        width: 38px;
        height: 52px;
    }

    h2 {
        font-size: 1.7rem;
    }

    .year-title {
        font-size: 1.7rem;
    }

    body.lang-en h1 {
        font-size: 1.85rem;
    }

    .hero-lede {
        font-size: 1rem;
    }

    .section-shell {
        padding-block: 3.2rem;
    }

    .year-section .section-shell {
        padding-block: 2.2rem;
    }

    .year-summary {
        flex-direction: column;
    }

    .host-letter,
    .goonkemon-example-panel,
    .feature-card,
    .info-card,
    .category-card,
    .score-rule-card {
        padding: 1.1rem;
    }
}

@media (max-width: 380px) {
    body.lang-en h1 {
        font-size: 1.48rem;
    }
}
