:root {
    color-scheme: dark;
    --bg: #171717;
    --surface: #222222;
    --surface-muted: #282828;
    --text: #f5f5f5;
    --text-muted: #909090;
    --line: #343434;
    --accent: #ff6fa7;
    --menu-bg: rgba(23, 23, 23, 0.98);
    --content-width: 486px;
    --content-gutter: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    word-break: keep-all;
}

button,
a {
    font: inherit;
}

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

button {
    color: inherit;
}

.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.brand__logo,
.hero__logo {
    display: block;
    filter: brightness(0) invert(1);
}

.brand__logo {
    width: 146px;
    height: auto;
}

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

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: var(--surface-muted);
}

.language-switch button {
    min-width: 34px;
    height: 28px;
    padding: 0 7px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.language-switch .is-active {
    background: #ffffff;
    color: #171717;
}

.menu-button {
    display: grid;
    width: 24px;
    padding: 3px 0;
    gap: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
}

.site-menu {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: none;
    background: var(--menu-bg);
}

.site-menu.is-open {
    display: block;
}

.site-menu__inner {
    display: flex;
    min-height: 100%;
    padding: 88px 24px 40px;
    flex-direction: column;
    gap: 18px;
}

.site-menu__inner > a {
    max-width: 520px;
    font-size: clamp(20px, 6.3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.site-menu__close {
    position: absolute;
    top: 15px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    font-size: 38px;
    font-weight: 200;
    line-height: 1;
    cursor: pointer;
}

.hero {
    display: flex;
    min-height: 218px;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero__title {
    display: inline-flex;
    margin: 0;
    padding: 4px 7px;
    align-items: center;
    justify-content: center;
}

.hero__logo {
    width: min(82vw, 340px);
    height: auto;
}

.hero > p {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 22.4px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.04em;
}

.contest-list,
.guide,
.site-footer {
    width: min(calc(100% - (var(--content-gutter) * 2)), var(--content-width));
    margin-right: auto;
    margin-left: auto;
}

.contest-list {
    display: grid;
    gap: 30px;
}

.contest-card {
    display: block;
}

.contest-card__visual {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: var(--surface-muted);
}

.contest-card__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.status-badge--open::before {
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
}

.status-badge--upcoming {
    color: #b4b4b4;
}

.contest-card__body {
    padding: 14px 2px 0;
}

.contest-card__body h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.45;
    letter-spacing: -0.045em;
}

.contest-card__body p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 650;
}

.contest-card--upcoming {
    cursor: default;
}

.guide {
    margin-top: 100px;
    padding: 26px 0 0;
    border-top: 1px solid var(--line);
}

.guide__heading {
    margin-bottom: 18px;
}

.section-kicker {
    margin: 0 0 7px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.guide h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.045em;
}

.accordion {
    border-bottom: 1px solid var(--line);
}

.accordion__item {
    border-top: 1px solid var(--line);
}

.accordion__item:first-child {
    border-top: 0;
}

.accordion__item summary {
    display: flex;
    min-height: 58px;
    padding: 16px 2px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--text);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.45;
    list-style: none;
    cursor: pointer;
}

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

.accordion__icon {
    position: relative;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
}

.accordion__icon::before,
.accordion__icon::after {
    position: absolute;
    top: 6px;
    left: 1px;
    width: 12px;
    height: 1px;
    background: var(--text-muted);
    content: "";
}

.accordion__icon::after {
    transform: rotate(90deg);
}

.accordion__item[open] .accordion__icon::after {
    display: none;
}

.accordion__content {
    padding: 0 30px 18px 2px;
}

.accordion__content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.75;
}

.site-footer {
    margin-top: 44px;
    padding: 0 0 calc(38px + env(safe-area-inset-bottom));
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.8;
}

.site-footer__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.site-footer__heading strong {
    color: var(--text);
    font-size: 14px;
}

.site-footer__info {
    display: grid;
    gap: 4px;
}

.site-footer__info p,
.site-footer__copyright {
    margin: 0;
}

.site-footer__info a:hover,
.site-footer__info a:focus-visible {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-divider {
    margin: 0 5px;
    color: var(--line);
}

.business-link {
    margin-left: 3px;
}

.site-footer__copyright {
    margin-top: 22px;
}

.top-button {
    flex: 0 0 auto;
    min-width: 48px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

@media (min-width: 768px) {
    .site-header {
        height: 78px;
        padding: 0 24px;
    }

    .brand__logo {
        width: 198px;
    }

    .language-switch button {
        min-width: 38px;
        height: 30px;
        font-size: 10.5px;
    }

    .hero {
        min-height: 240px;
    }

    .hero__logo {
        width: 360px;
    }

    .hero > p {
        font-size: 24px;
    }

    .site-footer {
        font-size: 12.5px;
    }
}
