@import url('https://fonts.googleapis.com/css2?family=Gaegu:wght@400;700&family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');

:root {
    color-scheme: light;
    --bg: #edfcfc;
    --panel: #ffffffee;
    --text: #19243d;
    --muted: #66768e;
    --teal: #008a91;
    --teal-dark: #006b74;
    --soft: #e1f8f8;
    --line: #c5ecee;
    --pink: #f58cba;
    --shadow: 0 5px 20px #00a0a015;
    --input: #f6fdfd
}

:root[data-theme=dark] {
    color-scheme: dark;
    --bg: #10262e;
    --panel: #19323bee;
    --text: #edf9fc;
    --muted: #acc5ce;
    --teal: #66e4dc;
    --teal-dark: #a1f7ef;
    --soft: #254950;
    --line: #365c64;
    --pink: #ffa2ca;
    --shadow: 0 5px 20px #0003;
    --input: #173039
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(ellipse at 0 20%, #77e1dc28, transparent 45%), radial-gradient(ellipse at 100% 75%, #86d7df35, transparent 40%), var(--bg);
    font: 14px/1.6 'Noto Sans KR', system-ui, sans-serif;
    transition: background .25s, color .25s
}

body:before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(#55bfbd0b 1px, transparent 1px), linear-gradient(90deg, #55bfbd0b 1px, transparent 1px);
    background-size: 12px 12px
}

button,
input,
select {
    font: inherit
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent
}

button {
    cursor: pointer
}

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

button {
    color: inherit
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 3px
}

[hidden] {
    display: none !important
}

.shell {
    width: min(1190px, calc(100% - 64px));
    margin: 30px auto
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 21px;
    box-shadow: var(--shadow)
}

.topbar {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 14px 26px;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 24px 24px 0 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1
}

.brand img {
    width: 177px;
    height: auto
}

.brand span {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted)
}

.brand small {
    display: block;
    font-size: 10px;
    font-weight: 400
}

.topbar nav {
    display: flex;
    gap: 25px;
    font-size: 12px;
    font-weight: 700
}

.topbar nav a {
    padding: 10px 0;
    white-space: nowrap
}

.topbar nav a.active {
    color: var(--teal-dark);
    box-shadow: 0 2px var(--teal)
}

.icon-button {
    width: 39px;
    height: 39px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--input);
    font-size: 23px;
    display: grid;
    place-items: center;
    flex-shrink: 0
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: linear-gradient(120deg, var(--panel), var(--soft));
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 24px 24px;
    min-height: 325px;
    padding: 30px 42px;
    box-shadow: var(--shadow)
}

.hero:after {
    content: '';
    position: absolute;
    width: 53%;
    height: 100%;
    right: 0;
    top: 0;
    background: url('assets/cloud-banner.png') center/cover;
    opacity: .14;
    pointer-events: none
}

.hero-copy {
    position: relative;
    z-index: 1
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--teal);
    margin: 0 0 9px
}

.hero h1 {
    font-size: clamp(28px, 3.3vw, 42px);
    line-height: 1.28;
    letter-spacing: -2px;
    margin: 0 0 14px;
    font-weight: 900
}

.hero em {
    font-style: normal;
    color: var(--teal)
}

.hero-copy>p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 13px;
    font-size: 14px
}

.hero-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
    flex-wrap: wrap
}

.hero-tags span {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 10px;
    color: var(--teal-dark)
}

.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: 1px solid #52c5c6;
    border-radius: 30px;
    background: linear-gradient(170deg, #37aaad, #007782);
    color: white;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 5px 10px #008b8b26
}

.primary:hover {
    filter: brightness(1.12)
}

.handwritten {
    position: absolute;
    right: -80px;
    top: 8px;
    font: 22px/1.2 'Gaegu', cursive;
    color: var(--teal);
    transform: rotate(-10deg)
}

.hero-art {
    position: relative;
    z-index: 1;
    min-height: 260px
}

.art-ring {
    position: absolute;
    width: 340px;
    height: 225px;
    background: radial-gradient(ellipse, #b8f6f388, transparent 70%);
    border: 2px solid #79d7d577;
    border-radius: 50%;
    left: 55px;
    top: 48px;
    transform: rotate(-6deg)
}

.presenter {
    position: absolute;
    height: 228px;
    width: auto;
    bottom: 43px;
    left: 90px;
    filter: drop-shadow(0 3px 0 #fff)
}

.hero-logo {
    position: absolute;
    bottom: 0;
    left: 40px;
    width: 350px;
    transform: rotate(-3deg)
}

.hero-mascot {
    position: absolute;
    width: 104px;
    right: 12px;
    bottom: 9px;
    transform: rotate(7deg)
}

.badge {
    position: absolute;
    width: 88px;
    right: 12px;
    top: 0;
    transform: rotate(10deg)
}

.art-note {
    position: absolute;
    right: -9px;
    top: 112px;
    color: var(--teal);
    font: 18px/1.1 'Gaegu', cursive;
    transform: rotate(-8deg)
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    margin: 13px 0;
    padding: 16px 13px;
    box-shadow: var(--shadow)
}

.stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    border-right: 1px dashed var(--line)
}

.stat:last-child {
    border: 0
}

.stat-icon {
    font-size: 28px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--soft);
    color: var(--teal)
}

.stat strong {
    font-size: 12px
}

.stat small {
    display: block;
    color: var(--muted);
    font-size: 10px
}

.stat b {
    margin-left: auto;
    font-size: 26px;
    color: var(--teal-dark)
}

.coming {
    display: flex;
    gap: 18px;
    padding: 17px 22px;
    align-items: center;
    margin-bottom: 15px
}

.coming-label {
    min-width: 125px
}

.coming-label small {
    font-size: 10px;
    color: #c63f80;
    font-weight: 700;
    letter-spacing: .5px
}

[data-theme=dark] .coming-label small {
    color: var(--pink)
}

.coming-label h2 {
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 4px 0;
    transform: rotate(-4deg)
}

.upcoming {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%
}

.upcoming-card {
    display: flex;
    gap: 10px;
    align-items: center;
    text-align: left;
    min-width: 0;
    background: var(--input);
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 0;
    overflow: hidden;
    transition: transform .2s
}

.upcoming-card:hover {
    transform: translateY(-3px)
}

.upcoming-card img {
    width: 83px;
    height: 83px;
    object-fit: cover
}

.upcoming-card span {
    padding-right: 8px;
    min-width: 0
}

.upcoming-card small {
    font-size: 10px;
    color: var(--teal-dark);
    display: block
}

.upcoming-card strong {
    font-size: 11px;
    display: block;
    line-height: 1.4;
    margin: 4px 0;
    overflow-wrap: anywhere
}

.upcoming-card em {
    font-size: 9px;
    font-style: normal;
    color: var(--muted)
}

.filters {
    padding: 20px 23px
}

.filter-row {
    display: flex;
    align-items: flex-end;
    gap: 12px
}

.search {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    background: var(--input);
    border: 1px solid var(--line);
    border-radius: 12px;
    height: 49px;
    padding: 0 14px;
    min-width: 180px
}

.search>span {
    font-size: 30px;
    line-height: 1;
    color: var(--text)
}

.search input {
    border: 0;
    outline: none;
    background: transparent;
    width: 100%;
    color: var(--text);
    font-size: 12px;
    min-width: 0
}

.search input::placeholder {
    color: var(--muted)
}

kbd {
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 0 5px;
    color: var(--muted)
}

.field {
    display: flex;
    flex-direction: column;
    font-size: 10px;
    color: var(--muted);
    gap: 5px
}

.field select {
    height: 37px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--input);
    color: var(--text);
    padding: 0 9px;
    font-size: 11px
}

.categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 17px
}

.categories button,
.status-tabs button {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 500;
    transition: background .2s, color .2s
}

.categories button[aria-pressed=true],
.status-tabs button[aria-pressed=true] {
    background: var(--teal);
    color: var(--bg);
    border-color: var(--teal);
    font-weight: 700
}

.categories button:hover,
.status-tabs button:hover {
    border-color: var(--teal)
}

.filter-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 13px;
    gap: 10px
}

.status-tabs {
    display: flex;
    gap: 6px
}

.filter-options {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 10px;
    color: var(--muted)
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer
}

.filter-options input {
    accent-color: var(--teal)
}

.text-button {
    border: 0;
    background: none;
    font-size: 10px;
    color: var(--muted);
    padding: 6px 0
}

.results-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 3px 12px
}

.results-heading h2 {
    font-size: 21px;
    margin: 0;
    letter-spacing: -.7px
}

.results-heading h2 span {
    font-size: 13px;
    font-weight: 500;
    color: var(--teal-dark);
    background: var(--soft);
    padding: 2px 10px;
    border-radius: 16px;
    margin-left: 7px
}

.results-heading>span {
    font-size: 10px;
    color: var(--muted)
}

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

.game-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    animation: appear .25s ease-out
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px #009c9c25
}

.cover {
    position: relative;
    aspect-ratio: 460/215;
    background: var(--soft)
}

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

.status {
    position: absolute;
    top: 10px;
    left: 10px;
    border: 1px solid #c5ffff;
    background: #eafffff2;
    color: #066f76;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px
}

.status.upcoming {
    background: #ffedf7f2;
    color: #a63b75;
    border-color: #ffd4eb
}

.card-body {
    padding: 14px 16px
}

.tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap
}

.tags span {
    background: var(--soft);
    color: var(--teal-dark);
    font-size: 9px;
    border-radius: 6px;
    padding: 2px 6px
}

.card-body h3 {
    font-size: 16px;
    line-height: 1.5;
    margin: 9px 0 5px;
    min-height: 48px;
    overflow-wrap: anywhere
}

.summary {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 12px;
    min-height: 39px
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    gap: 8px
}

.language {
    font-size: 9px;
    color: var(--muted)
}

.language.yes {
    color: var(--teal-dark)
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    margin-top: 12px;
    padding-top: 12px;
    gap: 8px
}

.card-bottom time {
    font-size: 10px;
    line-height: 1.4
}

.detail-button {
    background: var(--soft);
    color: var(--teal-dark);
    border: 0;
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap
}

.detail-button:hover {
    background: var(--teal);
    color: var(--bg)
}

.notes {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px 24px;
    margin-top: 24px;
    border-style: dashed
}

.notes h2 {
    font-size: 14px;
    color: var(--teal-dark);
    white-space: nowrap;
    margin: 0
}

.notes p {
    font-size: 11px;
    color: var(--muted);
    margin: 0;
    line-height: 1.9
}

footer {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px 15px
}

footer img {
    width: 175px
}

footer p {
    font-size: 10px;
    color: var(--muted);
    flex: 1
}

footer small {
    display: block;
    font-size: 9px;
    margin-top: 6px
}

.footer-note {
    font: 25px/1 'Gaegu', cursive;
    color: var(--teal);
    transform: rotate(-10deg)
}

.empty {
    text-align: center;
    padding: 30px
}

.empty img {
    width: 100px
}

.empty h3 {
    margin: 6px
}

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

dialog {
    width: min(580px, calc(100% - 30px));
    max-height: 90dvh;
    overflow: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    color: var(--text);
    box-shadow: 0 20px 80px #0005
}

dialog::backdrop {
    background: #102a3a99;
    backdrop-filter: blur(5px)
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    box-shadow: 0 2px 10px #0002
}

.detail-cover {
    display: block;
    width: 100%;
    aspect-ratio: 460/215;
    object-fit: cover;
    background: var(--soft)
}

.detail-body {
    padding: 24px
}

.detail-status {
    font-size: 11px;
    color: var(--teal-dark)
}

.detail-body h2 {
    font-size: 25px;
    line-height: 1.4;
    margin: 6px 0 15px
}

.detail-body p {
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted)
}

dl {
    margin: 20px 0
}

dl div {
    display: grid;
    grid-template-columns: 90px 1fr;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px
}

dt {
    color: var(--muted)
}

dd {
    margin: 0
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap
}

.skip {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 9;
    background: var(--panel);
    padding: 10px
}

.skip:focus {
    top: 10px
}

.image-error {
    font-size: 11px;
    color: var(--muted)
}

@keyframes appear {
    from {
        opacity: .3;
        transform: translateY(5px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media(min-width:1450px) {
    .shell {
        margin-top: 40px
    }

    .hero {
        min-height: 345px
    }

    .hero-art {
        min-height: 280px
    }

    .presenter {
        height: 249px
    }

    .hero-logo {
        width: 377px
    }
}

@media(max-width:1000px) {
    .brand span {
        display: none
    }

    .hero {
        padding: 27px
    }

    .handwritten {
        display: none
    }

    .hero-logo {
        width: 280px;
        left: 10px
    }

    .presenter {
        height: 210px;
        left: 40px
    }

    .hero-mascot {
        width: 85px;
        right: 0
    }

    .badge {
        width: 75px;
        right: 0
    }

    .art-note {
        display: none
    }

    .stat {
        padding: 0 8px;
        gap: 8px
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 22px
    }

    .stat b {
        font-size: 23px
    }

    .stat small {
        font-size: 9px
    }

    .filter-row {
        flex-wrap: wrap
    }

    .search {
        flex-basis: 100%
    }

    .field {
        flex: 1
    }

    .field select {
        width: 100%
    }

    .upcoming-card img {
        width: 65px;
        height: 80px
    }

    .coming {
        gap: 12px;
        padding: 15px
    }

    .coming-label {
        min-width: 105px
    }
}

@media(max-width:700px) {
    .shell {
        width: calc(100% - 28px);
        margin: 14px auto
    }

    .topbar {
        padding: 12px 14px;
        gap: 12px
    }

    .brand img {
        width: 143px
    }

    .topbar nav {
        gap: 12px;
        font-size: 10px
    }

    .topbar nav a:last-child {
        display: none
    }

    .icon-button {
        width: 34px;
        height: 34px;
        font-size: 20px
    }

    .hero {
        padding: 25px 20px;
        grid-template-columns: 1fr;
        min-height: 0
    }

    .hero-copy {
        padding-bottom: 10px
    }

    .hero h1 {
        font-size: 34px
    }

    .hero-art {
        position: absolute;
        width: 205px;
        height: 180px;
        min-height: 0;
        right: -22px;
        bottom: 10px;
        opacity: .8
    }

    .presenter {
        height: 146px;
        left: 15px;
        bottom: 32px
    }

    .hero-logo {
        width: 187px;
        left: 0;
        bottom: 2px
    }

    .badge {
        width: 53px;
        right: 7px;
        top: -6px
    }

    .hero-mascot {
        display: none
    }

    .art-ring {
        width: 170px;
        height: 120px;
        top: 35px;
        left: 0
    }

    .hero-tags {
        max-width: 210px
    }

    .hero-tags span {
        font-size: 9px;
        padding: 3px 7px
    }

    .hero-copy>p:not(.eyebrow) {
        font-size: 12px
    }

    .hero .primary {
        position: relative;
        z-index: 2
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px 0;
        padding: 15px 8px
    }

    .stat:nth-child(2) {
        border: 0
    }

    .stat b {
        margin-right: 8px
    }

    .stat small {
        font-size: 9px
    }

    .coming {
        display: block;
        padding: 15px
    }

    .coming-label {
        display: flex;
        gap: 14px;
        align-items: center;
        margin-bottom: 10px
    }

    .coming-label h2 {
        font-size: 15px;
        margin: 0;
        transform: none
    }

    .coming-label br {
        display: none
    }

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

    .upcoming-card {
        display: block
    }

    .upcoming-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 460/215;
        object-fit: cover
    }

    .upcoming-card span {
        display: block;
        padding: 8px
    }

    .upcoming-card em {
        display: none
    }

    .upcoming-card strong {
        font-size: 10px
    }

    .upcoming-card small {
        font-size: 9px
    }

    .filters {
        padding: 15px
    }

    .field {
        min-width: 0
    }

    .field select {
        font-size: 10px;
        padding: 0 5px
    }

    .filter-row {
        gap: 8px
    }

    .categories {
        gap: 5px;
        margin-top: 14px
    }

    .categories button {
        padding: 5px 9px
    }

    .filter-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 12px
    }

    .filter-options {
        justify-content: space-between
    }

    .games {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px
    }

    .card-body {
        padding: 11px
    }

    .card-body h3 {
        font-size: 13px;
        min-height: 58px
    }

    .summary {
        font-size: 10px;
        min-height: 48px
    }

    .card-meta {
        flex-wrap: wrap;
        gap: 4px
    }

    .card-bottom {
        flex-wrap: wrap;
        gap: 8px
    }

    .card-bottom time {
        font-size: 9px
    }

    .detail-button {
        font-size: 9px
    }

    .status {
        font-size: 9px;
        top: 6px;
        left: 6px;
        padding: 3px 6px
    }

    .notes {
        display: block;
        padding: 16px
    }

    .notes h2 {
        margin-bottom: 7px
    }

    footer {
        padding: 22px 5px;
        gap: 12px;
        flex-wrap: wrap
    }

    footer img {
        width: 145px
    }

    footer p {
        font-size: 9px
    }

    .footer-note {
        display: none
    }

    .results-heading h2 {
        font-size: 19px
    }

    .results-heading>span {
        font-size: 9px
    }
}

@media(max-width:380px) {
    .topbar nav a:nth-child(2) {
        display: none
    }

    .hero-art {
        right: -46px;
        opacity: .45
    }

    .hero h1 {
        font-size: 31px
    }

    .games {
        grid-template-columns: 1fr
    }

    .card-body h3,
    .summary {
        min-height: 0
    }

    .card-bottom {
        flex-wrap: nowrap
    }
}

.topbar {
    background: transparent;
    border: 0;
    border-radius: 0;
    margin-bottom: 14px;
    padding-top: 5px;
    padding-bottom: 5px
}

.hero {
    border: 1px solid var(--line);
    border-radius: 28px
}

.hero:after {
    width: 100%;
    opacity: .08
}

.hero-brand {
    position: absolute;
    width: 110%;
    max-height: 300px;
    object-fit: contain;
    left: -10px;
    bottom: 0
}

.hero-art .art-note {
    display: none
}

@media(max-width:1000px) {
    .hero-brand {
        width: 110%;
        left: -10px;
        bottom: 15px
    }
}

@media(max-width:700px) {
    .hero-art {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 190px;
        margin-top: 14px;
        opacity: 1
    }

    .hero-brand {
        width: 100%;
        height: 100%;
        max-height: none;
        left: 0;
        bottom: 0
    }

    .hero-tags {
        max-width: none
    }

    .hero-copy {
        padding-bottom: 0
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}