:root {
    color-scheme: light;
    --background: #f8f9fd;
    --white: #fff;
    --ink: #15192d;
    --muted: #505970;
    --blue: #173bff;
    --blue-dark: #102bc4;
    --line: #dde2ef;
    --tint: #eef1ff;
    --max-width: 1216px;
    --gutter: clamp(20px, 5vw, 64px);
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
    font-synthesis: none;
    line-height: 1.5;
    color: var(--ink);
    background: var(--background);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid #5273fa; outline-offset: 4px; }
::selection { color: #fff; background: var(--blue); }

.shell { width: min(var(--max-width), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 10px 16px; background: #fff; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 3;
    border-bottom: 1px solid var(--line);
    background: rgb(248 249 253 / 96%);
}
.header-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 76px;
    gap: 24px;
}
.brand { display: inline-grid; justify-self: start; gap: 2px; flex: 0 0 auto; }
.brand-logo { width: 140px; height: auto; }
.brand-event { padding-inline-start: 35%; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.main-nav { display: flex; justify-content: center; gap: clamp(22px, 3.35vw, 50px); }
.main-nav a { display: block; padding-block: 15px; color: var(--muted); font-size: 14px; font-weight: 650; white-space: nowrap; }
.main-nav .mobile-account { display: none; }
.main-nav a:hover { color: var(--blue); }
.menu-toggle { display: none; }

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.button-small { min-height: 40px; padding: 8px 15px; font-size: 14px; }
.button-primary, .button-header { color: var(--white); background: var(--blue); }
.button-primary { box-shadow: 0 6px 16px #173bff2a; }
.button-primary:hover, .button-header:hover { background: var(--blue-dark); }
.button-header { justify-self: end; }
.button-outline { color: var(--ink); border-color: #ccd3e7; background: transparent; }
.button-outline:hover { border-color: #93a2e5; background: #eef1ff; }

.hero {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    padding-top: clamp(42px, 5.1vw, 70px);
    padding-bottom: clamp(34px, 4.2vw, 54px);
}
.hero-copy { min-width: 0; }
.event-edition {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    width: fit-content;
    margin-bottom: 18px;
    border: 1px solid #dae2ff;
    border-radius: 999px;
    color: #2341c8;
    background: #eef1ff;
    font-size: 14px;
    font-weight: 700;
}
.event-edition span { font-size: 17px; line-height: 1; }
.hero h1 {
    font-size: clamp(70px, 7.1vw, 106px);
    font-weight: 900;
    line-height: 1.01;
    letter-spacing: -.082em;
}
.hero h1 span { color: var(--blue); }
.hero-description { max-width: 400px; margin-top: 23px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.hero-date {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    white-space: nowrap;
}
.calendar-icon { position: relative; width: 15px; height: 14px; margin-right: 2px; border: 1.5px solid currentColor; border-radius: 3px; }
.calendar-icon::before, .calendar-icon::after { position: absolute; content: ""; }
.calendar-icon::before { top: 3px; width: 100%; border-top: 1px solid currentColor; }
.calendar-icon::after { inset: -3px 2px auto; height: 4px; border-inline: 1.5px solid currentColor; }
.hero-visual {
    position: relative;
    min-width: 0;
    width: 100%;
    min-height: 410px;
    aspect-ratio: 1.43;
    overflow: hidden;
    isolation: isolate;
    border-radius: 25px;
    background: #0c2ef7;
    box-shadow: 0 16px 38px #1a36dc23, 0 2px 7px #172ca525;
}
.hero-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.quick-facts {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 18px 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}
.quick-facts > div { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: repeat(2, auto); column-gap: 14px; align-items: center; padding: 4px clamp(16px, 3vw, 36px); }
.quick-facts > div + div { border-left: 1px solid var(--line); }
.quick-facts dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.quick-facts dd { margin-top: 2px; font-weight: 800; font-size: 18px; }
.fact-mark {
    display: grid;
    grid-row: span 2;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    color: var(--blue);
    background: var(--tint);
    font-size: 25px;
    line-height: 1;
}
.fact-code { font: 700 16px ui-monospace, monospace; }
.fact-rings span { display: grid; place-items: center; width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 50%; }
.fact-rings span::after { width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%; content: ""; }

.section { padding-block: clamp(64px, 7.2vw, 104px); }
.section-heading { margin-bottom: 32px; }
.section-heading h2, .participate-copy h2 { font-size: clamp(34px, 4vw, 52px); font-weight: 900; line-height: 1.14; letter-spacing: -.05em; }
.section-heading p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.75; }

.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; margin: 0; padding: 0; list-style: none; }
.timeline li { padding: 22px 17px 21px; border: 1px solid var(--line); border-radius: 14px; border-top: 3px solid #aebcff; background: var(--white); }
.timeline li:first-child { border-top-color: var(--blue); }
.timeline time { display: block; margin-bottom: 12px; color: #1b3ce1; font-size: clamp(16px, 1.6vw, 23px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.12; letter-spacing: -.04em; }
.timeline h3, .rules-card h3, .entry-card h3 { font-size: 19px; font-weight: 800; }
.timeline p { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.section-tinted { border-block: 1px solid #e3e8fb; background: #f0f3ff; }
.prize-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.prize-card {
    display: flex;
    position: relative;
    flex-direction: column;
    min-height: 225px;
    padding: 23px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #dbe2fb;
    border-radius: 17px;
    color: #1a2251;
    background: #fff;
}
.prize-card:nth-child(1) { border-color: #1e40ff; color: #fff; background: linear-gradient(135deg, #1536ee, #274cff); }
.prize-card:nth-child(2) { background: #e1e8ff; }
.prize-card:nth-child(3) { background: #e9edff; }
.prize-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.prize-top h3 { font-size: 20px; font-weight: 850; }
.prize-top span { padding: 4px 8px; border-radius: 20px; color: #2037a0; background: #173bff13; font-size: 13px; font-weight: 700; white-space: nowrap; }
.prize-card:nth-child(1) .prize-top span { color: #fff; background: #ffffff24; }
.prize-spark { flex: 1; min-height: 42px; }
.prize-spark::after {
    position: absolute;
    z-index: -1;
    top: 47px;
    right: -25px;
    width: 144px;
    height: 144px;
    transform: rotate(-17deg);
    background: currentColor;
    opacity: .055;
    clip-path: polygon(50% 0, 63% 36%, 100% 50%, 63% 64%, 50% 100%, 37% 64%, 0 50%, 37% 36%);
    content: "";
}
.prize-card:nth-child(1) .prize-spark::after { opacity: .19; }
.prize-title { font-size: clamp(17px, 1.7vw, 23px); font-weight: 850; line-height: 1.4; }
.prize-duration { margin-top: 7px; font-size: 16px; }

.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rules-card { padding: clamp(20px, 3vw, 34px); border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.checklist, .criteria-list { margin: 21px 0 0; padding: 0; list-style: none; }
.checklist { display: grid; gap: 16px; }
.checklist li { position: relative; padding-left: 27px; color: var(--muted); line-height: 1.75; }
.checklist li::before { position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border: 4px solid #dbe3ff; border-radius: 50%; background: var(--blue); content: ""; }
.criteria-list { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 15px; }
.criteria-list li { display: grid; grid-template-columns: 33px 1fr; gap: 9px; align-items: start; }
.criteria-list strong { display: block; font-size: 15px; }
.criteria-list li > span:last-child > span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.criteria-icon { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 8px; color: #2442da; background: var(--tint); font: 700 14px ui-monospace, monospace; }
.judges { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

.participate-panel {
    display: grid;
    grid-template-columns: .77fr 1.23fr;
    align-items: center;
    gap: 32px;
    padding: clamp(27px, 5vw, 61px);
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(120deg, #1636e5, #1938fa 66%, #2a4fff);
}
.participate-copy p { max-width: 344px; margin-top: 13px; color: #f0f3ff; font-size: 16px; line-height: 1.7; }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.entry-card { padding: 19px; border: 1px solid #ffffff57; border-radius: 13px; background: #ffffff14; }
.entry-card p { margin-top: 7px; color: #f0f3ff; font-size: 14px; line-height: 1.65; }
.button-entry { margin-top: 12px; color: #1735ce; background: var(--white); }
.button-entry:hover { background: #e6ecff; }
.participate-panel :focus-visible { outline-color: #fff; }

.faq-section { display: grid; grid-template-columns: .65fr 1.35fr; gap: 28px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 62px; padding: 13px 1px; font-size: 17px; font-weight: 750; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover, .faq-list details[open] summary { color: var(--blue-dark); }
.faq-list p { max-width: 680px; padding: 0 34px 18px 1px; color: var(--muted); line-height: 1.75; }
.expand-mark { position: relative; flex: 0 0 23px; height: 23px; border: 1px solid var(--line); border-radius: 50%; }
.expand-mark::before, .expand-mark::after { position: absolute; top: 50%; left: 50%; width: 9px; border-top: 1.5px solid currentColor; transform: translate(-50%, -50%); content: ""; }
.expand-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .expand-mark::after { display: none; }

.site-footer { padding-block: 34px 22px; border-top: 1px solid var(--line); background: #eef1f9; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-organizers { display: flex; gap: clamp(24px, 6vw, 74px); font-size: 15px; }
.footer-organizers dt { color: var(--muted); font-size: 13px; }
.footer-organizers dd { margin-top: 3px; font-weight: 700; }
.footer-organizers a { color: #233cc1; }
.footer-organizers a:hover { text-decoration: underline; }
.footer-note { margin-top: 25px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 1000px) {
    .hero-visual { min-height: 355px; }
    .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .prize-card { padding: 17px; }
}

@media (max-width: 770px) {
    html { scroll-padding-top: 80px; }
    .header-inner { display: flex; flex-wrap: wrap; justify-content: space-between; min-height: 66px; gap: 0 12px; }
    .brand-logo { width: 128px; }
    .header-inner .brand { padding-block: 10px; }
    .button-header { display: none; }
    .menu-toggle:not([hidden]) {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 9px;
        color: var(--ink);
        background: var(--white);
        cursor: pointer;
    }
    .menu-bars { width: 18px; height: 13px; border-block: 1.5px solid currentColor; }
    .menu-bars::after { display: block; margin-top: 4px; border-top: 1.5px solid currentColor; content: ""; }
    .main-nav { justify-content: flex-start; flex-wrap: wrap; gap: 0 19px; padding-bottom: 6px; width: 100%; }
    .main-nav a { min-height: 44px; display: flex; align-items: center; padding-block: 8px; }
    .main-nav .mobile-account { display: flex; color: var(--blue); }
    .header-inner[data-menu] .main-nav { display: none; }
    .header-inner[data-menu="open"] .main-nav { display: flex; border-top: 1px solid var(--line); }
    .hero { grid-template-columns: 1fr; gap: 27px; padding-top: 39px; }
    .hero h1 { font-size: clamp(62px, 12.4vw, 90px); }
    .hero h1 br { display: none; }
    .hero h1 span { margin-left: .11em; }
    .hero-visual { min-height: 0; aspect-ratio: 1.55; border-radius: 17px; }
    .quick-facts > div { grid-template-columns: 36px 1fr; column-gap: 9px; padding-inline: 12px; }
    .quick-facts dt { font-size: 13px; }
    .quick-facts dd { font-size: 15px; }
    .fact-mark { width: 36px; height: 36px; border-radius: 9px; }
    .timeline, .prize-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prize-card { min-height: 192px; }
    .rules-grid, .participate-panel, .faq-section { grid-template-columns: 1fr; }
    .participate-panel { gap: 20px; }
    .faq-section { gap: 0; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: clamp(48px, 12.9vw, 63px); }
    .event-edition { margin-bottom: 14px; }
    .hero-description { margin-top: 15px; font-size: 16px; }
    .hero-actions { margin-top: 18px; }
    .hero-date { margin-top: 15px; }
    .button { padding-inline: 13px; }
    .quick-facts { grid-template-columns: 1fr; padding: 0 15px; }
    .quick-facts > div { grid-template-columns: 36px 1fr auto; grid-template-rows: auto; padding: 10px 0; }
    .quick-facts > div + div { border-left: none; border-top: 1px solid var(--line); }
    .quick-facts dd { margin-top: 0; text-align: right; }
    .timeline, .prize-grid { gap: 10px; }
    .timeline li { padding: 14px 12px; }
    .timeline h3 { font-size: 17px; }
    .prize-card { min-height: 174px; padding: 14px; }
    .prize-top h3 { font-size: 16px; }
    .prize-top span { padding-inline: 5px; }
    .entry-grid { grid-template-columns: 1fr; }
    .footer-main { flex-wrap: wrap; }
    .footer-organizers { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
