@font-face {
    font-family: "Galmuri9";
    src: url("/fonts/galmuri9.woff2?v=ade61ea8") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Boutique9";
    src: url("/fonts/boutique9.woff2?v=30df1bb5") format("woff2");
    font-display: swap;
}

:root {
    --text: #e8e9eb;
    --soft: #9a9ea6;
    --gold: #f0b44a;
    --ink: #1b1c1f;
    --outline: #141517;
    --well: #18191c;
    --rule: #4a4e56;
    --main: "Galmuri9", "Boutique9", monospace;
    --han: "Boutique9", "Galmuri9", monospace;
    --font: var(--main);
}

html[data-font="han"] {
    --font: var(--han);
}

html[lang="ko"] {
    word-break: keep-all;
    overflow-wrap: anywhere;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: #2c3020 url("/img/meadow.jpg?v=67f144d0") center top / 1600px 1200px repeat;
    color: var(--text);
    font: 20px/30px var(--font);
    -webkit-font-smoothing: none;
    font-smooth: never;
    text-rendering: optimizeSpeed;
}

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

img {
    image-rendering: pixelated;
}

.shot img,
.film > img,
#viewer-picture {
    image-rendering: auto;
}

a {
    color: var(--gold);
}

p {
    margin: 0;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: normal;
}

.main {
    font-family: var(--main);
}

.han {
    font-family: var(--han);
}

.soft {
    color: var(--soft);
}

.panel {
    border: 12px solid transparent;
    border-image: url("/img/ui/panel.png?v=7f9100d0") 12 fill round;
    image-rendering: pixelated;
    padding: 12px;
}

.card {
    border: 6px solid transparent;
    border-image: url("/img/ui/card.png?v=1374858e") 6 fill stretch;
    image-rendering: pixelated;
    padding: 10px;
}

.inset {
    border: 4px solid transparent;
    border-image: url("/img/ui/inset.png?v=73601308") 4 fill stretch;
    image-rendering: pixelated;
}

.tip {
    border: 6px solid transparent;
    border-image: url("/img/ui/tooltip.png?v=6ada81dd") 6 fill stretch;
    image-rendering: pixelated;
    padding: 6px 10px;
    color: var(--soft);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    border: 6px solid transparent;
    border-image: url("/img/ui/button.png?v=d084c5ac") 6 fill stretch;
    image-rendering: pixelated;
    padding: 2px 14px 4px;
    background: none;
    color: var(--text);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    filter: brightness(1.22);
}

.button:active {
    transform: translateY(2px);
}

.button:focus-visible,
.lang-row:focus-visible,
.shot:focus-visible,
.film:focus-visible,
.links a:focus-visible,
.foot a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.button.on {
    border-image-source: url("/img/ui/button_on.png?v=4804cc27");
    color: var(--ink);
}

.button.small {
    min-height: 36px;
    padding: 0 10px 2px;
}

.button img {
    flex: none;
}

.pix {
    flex: none;
    fill: currentColor;
}

.mark {
    flex: none;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.slot .mark {
    width: 28px;
    height: 28px;
    color: var(--text);
}

.bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 60px;
    padding: 0 20px;
    background: #25272b;
    border-bottom: 2px solid #3c3f45;
    box-shadow: 0 2px 0 var(--outline);
}

.links {
    display: flex;
    gap: 22px;
    flex: 1;
}

.links a {
    color: var(--text);
    text-decoration: none;
}

.links a:hover {
    color: var(--gold);
}

.lang {
    position: relative;
    margin-left: auto;
}

.lang-menu {
    position: absolute;
    right: 0;
    top: 44px;
    display: grid;
    width: 250px;
    padding: 4px;
}

.lang-menu[hidden] {
    display: none;
}

.lang-row {
    padding: 2px 10px;
    color: var(--text);
    text-decoration: none;
}

.lang-row:hover {
    background: #363940;
}

.lang-row[aria-current="true"] {
    color: var(--gold);
}

.hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(760px, calc(100vh - 60px));
    padding: 40px 16px 56px;
    overflow: hidden;
    border-bottom: 2px solid var(--outline);
}

.hero-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(20, 21, 23, 0.25), rgba(20, 21, 23, 0.55));
}

.hero-menu {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 22px;
    width: 100%;
}

.logo {
    width: 534px;
    height: auto;
}

.tagline {
    max-width: 900px;
    font-size: 30px;
    line-height: 40px;
    text-align: center;
    text-shadow: 2px 2px 0 var(--outline);
}

.menu {
    display: grid;
    gap: 8px;
    width: min(400px, 100%);
}

.count {
    position: absolute;
    left: 12px;
    bottom: 10px;
    color: var(--text);
    text-shadow: 2px 2px 0 var(--outline);
}

.block {
    width: min(1144px, 100%);
    margin: 0 auto;
    padding: 44px 16px 0;
}

.head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 30px;
    line-height: 40px;
    text-shadow: 2px 2px 0 var(--outline);
}

.head::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 2px 0 var(--outline);
}

.head img {
    width: 20px;
    height: 20px;
}

.lead {
    margin-bottom: 4px;
}

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

.feature {
    display: grid;
    gap: 10px;
    align-content: start;
}

.feature h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold);
    font-size: 20px;
}

.clip video {
    width: 100%;
    height: auto;
    aspect-ratio: 600 / 338;
    background: var(--well);
}

.slot {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border: 4px solid transparent;
    border-image: url("/img/ui/inset.png?v=73601308") 4 fill stretch;
    image-rendering: pixelated;
}

.slot.big {
    width: 52px;
    height: 52px;
}

.checks {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checks li {
    display: flex;
    gap: 10px;
}

.checks img {
    flex: none;
    margin-top: 6px;
}

.film {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    background: var(--well);
    color: inherit;
    font: inherit;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.film > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.film .round {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.film iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

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

.shot {
    display: block;
}

.shot img {
    width: 100%;
    height: auto;
}

.shot:hover {
    filter: brightness(1.15);
}

.rows {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 6px 14px;
    border: 6px solid transparent;
    border-image: url("/img/ui/card.png?v=1374858e") 6 fill stretch;
    image-rendering: pixelated;
    padding: 10px;
}

.row.match {
    border-image-source: url("/img/ui/card_current.png?v=cadd9d0b");
}

.row-text {
    display: grid;
}

.row-text strong {
    font-weight: normal;
    color: var(--gold);
}

.row .tip {
    grid-column: 1 / -1;
}

.wish {
    display: grid;
    gap: 12px;
    justify-items: center;
    margin-top: 22px;
    text-align: center;
}

.wish-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.pair {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 16px;
    margin-top: 16px;
}

.sub {
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 20px;
}

.stats {
    display: grid;
    gap: 4px;
    margin: 0;
}

.stats div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
}

.stats dt {
    color: var(--soft);
}

.stats dd {
    margin: 0;
}

.mixed {
    font-family: var(--main);
}

.mixed span {
    white-space: nowrap;
}

.foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 28px;
    margin-top: 56px;
    padding: 18px 16px 22px;
    background: #25272b;
    border-top: 2px solid #3c3f45;
}

.foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.viewer {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 12px;
    background: rgba(20, 21, 23, 0.82);
}

.viewer[hidden] {
    display: none;
}

.viewer-box {
    display: grid;
    gap: 10px;
    width: min(1280px, 100%);
}

.viewer-box img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: var(--well);
}

.viewer-keys {
    display: flex;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 900px) {
    .links {
        display: none;
    }

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

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

    .logo {
        width: 267px;
    }

    .tagline {
        font-size: 20px;
        line-height: 30px;
    }

    .row {
        grid-template-columns: auto 1fr;
    }

    .row .get {
        grid-column: 1 / -1;
    }

    .stats div {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
}

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