:root {
  color-scheme: light;
  --ink: #1c2025;
  --muted: #68727c;
  --teal: #ee503e;
  --teal-dark: #d84232;
  --line: #e5e8eb;
  --paper: #fff;
  --canvas: #fff;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
a { color: inherit; }
button, summary { font: inherit; }
:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 3px; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 10; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
.container { width: min(1360px, calc(100% - 8vw)); margin-inline: auto; }

.masthead { position: relative; background: #fff; border-bottom: 1px solid var(--line); }
.skyline { position: relative; width: 100%; height: calc(min(10vw, 190px) + 16px); overflow: hidden; background: linear-gradient(#f7fcff, #fff); border-bottom: 1px solid #edf0f1; }
.skyline img { position: absolute; display: block; left: 0; bottom: -7.1vw; width: 100%; height: auto; }
.masthead-main { min-height: 174px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 24px; }
.identity { display: flex; align-items: center; gap: 26px; min-width: 0; }
.brand { flex: none; text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: #ffecdf; color: #17191c; font-size: 29px; font-weight: 900; letter-spacing: -.07em; }
.brand-mark::after { content: ""; position: absolute; bottom: 18px; left: 50%; width: 23px; height: 4px; border-radius: 3px; background: var(--teal); transform: translateX(-50%); }
.masthead-copy h1 { margin: 0; font-size: clamp(29px, 2.7vw, 42px); line-height: 1.13; letter-spacing: -.06em; font-weight: 900; }
.masthead-copy p { margin: 10px 0 0; color: #5f6871; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.6; letter-spacing: -.025em; }
.masthead-actions { flex: 0 0 310px; padding: 17px 19px; border-radius: 12px; background: #f5f6f7; }
.masthead-actions p { margin: 0; font-size: 13px; line-height: 1.65; }
.channel-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; color: var(--teal-dark); text-decoration: none; font-size: 13px; font-weight: 800; }
.channel-link:hover { text-decoration: underline; }
.channel-link svg { width: 17px; height: 17px; }
.channel-tabs { border-top: 1px solid #f3f3f3; }
.channel-tabs .container { display: flex; align-items: center; gap: 12px; }
.channel-tabs a { position: relative; min-width: 68px; padding: 14px 20px; text-align: center; color: #535d66; font-size: 15px; font-weight: 700; text-decoration: none; }
.channel-tabs a:hover, .channel-tabs a[aria-current] { color: var(--ink); }
.channel-tabs a[aria-current]::after { content: ""; position: absolute; bottom: 0; left: 16px; right: 16px; height: 4px; border-radius: 4px 4px 0 0; background: var(--teal); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

main { padding: 22px 0 72px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 16px; }
.section-heading h2 { margin: 0; font-size: clamp(25px, 2.3vw, 31px); line-height: 1.25; letter-spacing: -.055em; font-weight: 900; }
.section-heading p { margin: 0 1px 3px; color: var(--muted); font-size: 14px; }
.games-heading { margin-bottom: 20px; }
.game-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.game-card { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .87fr); grid-template-areas: "media head" "media summary" "media action" "gallery engage" "gallery install" "tags tags"; align-items: start; align-content: start; column-gap: 38px; row-gap: 10px; padding: 28px 0; border-bottom: 1px solid var(--line); background: var(--paper); animation: enter .55s both; }
.game-card:first-child { padding-top: 0; }
.game-card:nth-child(2) { animation-delay: .06s; }
.game-card:nth-child(3) { animation-delay: .12s; }
.card-head { grid-area: head; min-height: 0; }
.card-number { display: inline-block; margin-bottom: 6px; padding: 5px 8px; border-radius: 6px; background: #fff0ed; color: var(--teal-dark); font-size: 12px; font-weight: 850; line-height: 1; }
.card-head h3 { margin: 0; font-size: clamp(28px, 2.5vw, 36px); line-height: 1.2; letter-spacing: -.04em; font-weight: 850; overflow-wrap: anywhere; }
.game-summary { grid-area: summary; margin: 0; color: #64707a; font-size: 15px; line-height: 1.6; }
.file-meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 9px 0 0; }
.file-meta span { padding: 3px 6px; border-radius: 4px; background: #f4f5f5; color: #747e83; font-size: 10px; font-weight: 700; }
.video-wrap { grid-area: media; position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #182126; }
.scene-gallery { grid-area: gallery; min-width: 0; padding-top: 6px; }
.scene-gallery h4 { margin: 0 0 9px; font-size: 14px; letter-spacing: -.025em; }
.scene-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.scene-list figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fafbfb; }
.scene-list img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #111820; }
.scene-list figcaption { min-height: 48px; padding: 8px 10px; color: #53616a; font-size: 12px; line-height: 1.4; }
.feature-tags { grid-area: tags; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 15px; border-top: 1px solid #eff1f2; }
.feature-tags span { padding: 7px 11px; border: 1px solid transparent; border-radius: 999px; background: #e8f2ff; color: #1558a7; font-size: 13px; font-weight: 750; line-height: 1.25; }
.feature-tags span:nth-child(2) { background: #d84232; color: #fff; }
.feature-tags span:nth-child(4) { border-color: #d8c7f0; background: #f0e9fb; color: #633799; }
.feature-tags span:nth-child(5) { border-color: #b5dfc5; background: #e4f5eb; color: #17643c; }
.feature-tags .feature-tags-label { margin-right: 5px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #36424b; font-size: 13px; font-weight: 850; }
.video-wrap iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-modal-open { overflow: hidden; }
.video-modal { width: fit-content; max-width: calc(100vw - 32px); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(31, 42, 47, .23); overflow: auto; }
.video-modal::backdrop { background: rgba(233, 239, 241, .78); backdrop-filter: blur(4px); }
.video-modal-panel { width: min(1200px, calc(100vw - 32px), calc((100dvh - 136px) * 16 / 9)); min-width: min(calc(100vw - 32px), 280px); padding: 12px; color: var(--ink); }
.video-modal-bar, .video-modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.video-modal-bar { min-height: 48px; padding: 0 2px; font-size: 17px; }
.video-modal-bar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-modal-close { width: 40px; height: 40px; border: 0; border-radius: 6px; background: #f2f4f5; color: var(--ink); font-size: 32px; line-height: 1; cursor: pointer; }
.video-modal-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #111; }
.video-modal-screen iframe, .video-modal-screen video { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
.video-modal-loading { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: #152329; color: #fff; }
.video-modal-loading img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.video-modal-loading::after { content: ""; position: absolute; inset: 0; background: rgba(9, 20, 26, .3); }
.video-modal-loading-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 90%; padding: 15px; border-radius: 9px; background: rgba(14, 26, 31, .8); font-size: 14px; font-weight: 700; text-align: center; }
.video-modal-loading button { padding: 9px 20px; border: 0; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 800; cursor: pointer; }
.video-modal-footer { min-height: 44px; font-size: 13px; }
.video-modal-footer button { padding: 7px 10px; border: 1px solid #ccd4d8; border-radius: 5px; background: #fff; color: var(--ink); cursor: pointer; }
.video-modal-footer a { color: var(--teal-dark); text-decoration: none; }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #141a1e; color: #fff; }
.video-poster img { display: block; width: 100%; height: 100%; object-fit: contain; }
.poster-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(12, 24, 29, .8); color: white; font-size: 25px; transform: translate(-50%, -50%); transition: background .2s, scale .2s; }
.video-poster:hover .poster-play { background: var(--teal); scale: 1.08; }
.card-actions { grid-area: action; align-self: stretch; width: 100%; }
.download-button, .download-unavailable { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; border-radius: 7px; font-size: 15px; font-weight: 800; text-align: center; }
.download-button { background: var(--teal); color: #fff; text-decoration: none; transition: background .2s, transform .2s; }
.download-button:hover { background: var(--teal-dark); transform: translateY(-1px); }
.download-button svg { width: 17px; height: 17px; flex: none; }
.game-engagement { grid-area: engage; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 14px; padding: 9px 11px; border: 1px solid #edf0f1; border-radius: 8px; background: #fafbfb; }
.download-stats { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; color: #526069; font-size: 12px; }
.download-stats strong { color: #26343b; font-size: 13px; }
.download-stats small { color: #879197; font-size: 10px; }
.reaction-buttons { display: flex; align-items: center; gap: 5px; }
.reaction-buttons button { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 5px 9px; border: 1px solid #e1e5e7; border-radius: 999px; background: #fff; color: #46535a; font-size: 13px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.reaction-buttons button:hover { border-color: #ee988d; transform: translateY(-1px); }
.reaction-buttons button[aria-pressed="true"] { border-color: #ee988d; background: #fff0ed; color: #bd3a2d; font-weight: 800; }
.reaction-buttons button:disabled { cursor: wait; opacity: .65; }
.reaction-error { flex-basis: 100%; color: #b84234; font-size: 11px; }
.download-unavailable { border: 1px dashed #c1cbce; background: #f7f9f9; color: #738084; }
.download-note { margin: 6px 1px 0; color: #809096; font-size: 10px; line-height: 1.3; }
.install-details { grid-area: install; margin: 0; border: 1px solid var(--line); border-radius: 7px; background: #f9fafb; }
.install-details summary { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 46px; padding: 10px 13px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 750; }
.install-details summary::-webkit-details-marker { display: none; }
.install-details summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #2e3840; border-bottom: 2px solid #2e3840; transform: rotate(45deg); transition: transform .2s; }
.install-details[open] summary::after { transform: rotate(225deg); }
.install-content { padding: 0 14px 13px; color: #4e5d62; font-size: 12px; line-height: 1.55; }
.install-content ol { margin: 0; padding-left: 18px; }
.drive-warning { margin: 0 0 8px; color: #64767b; }
.install-content li + li { margin-top: 4px; }
.install-content strong { color: var(--ink); }
.install-warning { margin: 10px 0 0; padding: 9px 10px; border-radius: 5px; background: #fff1ee; }
.more-heading { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: 9px 0 1px; padding-top: 30px; border-top: 1px solid var(--line); }
.more-heading h2 { margin: 0; font-size: 26px; letter-spacing: -.05em; }
.more-heading p { margin: 0 1px 3px; color: var(--muted); font-size: 14px; }
.channel-videos { margin-top: 24px; padding-top: 27px; border-top: 1px solid var(--line); }
.section-more { color: #66727a; font-size: 14px; font-weight: 700; text-decoration: none; }
.section-more:hover { color: var(--teal-dark); }
.youtube-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.youtube-card { min-width: 0; text-decoration: none; }
.youtube-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #e8eef2; }
.youtube-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.youtube-card:hover img { transform: scale(1.035); }
.youtube-card h3 { margin: 8px 0 3px; font-size: 16px; line-height: 1.4; letter-spacing: -.025em; }
.youtube-card p { margin: 0; color: #77818a; font-size: 13px; }
.comments-section { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--line); }
.comments-section .section-heading { align-items: end; }
.comments-section .section-heading p { margin-top: 5px; }
.comment-count { flex: none; color: var(--muted); font-size: 13px; }
.comment-form { position: relative; display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #f9fafb; }
.comment-form label { font-size: 13px; font-weight: 800; }
.comment-form input:not(.comment-honeypot), .comment-form textarea { width: 100%; padding: 12px 13px; border: 1px solid #d9dfe3; border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.comment-form textarea { min-height: 88px; resize: vertical; }
.comment-form input:not(.comment-honeypot):focus, .comment-form textarea:focus { border-color: var(--teal); outline: 2px solid #ffe2dd; }
.comment-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.comment-form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 3px; }
.comment-form-bottom span { color: var(--muted); font-size: 12px; }
.comment-form-bottom button { min-height: 42px; padding: 0 20px; border: 0; border-radius: 7px; background: var(--teal); color: #fff; font-weight: 800; cursor: pointer; }
.comment-form-bottom button:hover { background: var(--teal-dark); }
.comment-form-bottom button:disabled { opacity: .65; cursor: wait; }
.comment-message { min-height: 17px; margin: 0; color: var(--teal-dark); font-size: 13px; }
.comment-list { margin-top: 16px; }
.comment-empty { padding: 24px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 14px; text-align: center; }
.comment-item { padding: 17px 4px; border-bottom: 1px solid var(--line); }
.comment-item-head { display: flex; align-items: baseline; gap: 10px; }
.comment-item-head strong { font-size: 14px; }
.comment-item-head time { color: #89939a; font-size: 12px; }
.comment-item p { margin: 8px 0 0; color: #3e4a52; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
footer { padding: 25px 0 36px; border-top: 1px solid var(--line); color: #7b878d; font-size: 12px; }
.footer-row { display: flex; justify-content: space-between; gap: 12px; }
.footer-row a { color: #7b878d; text-decoration: none; }
.footer-row a:hover { text-decoration: underline; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
  .masthead-actions { flex-basis: 270px; }
  .identity { gap: 18px; }
  .brand-mark { width: 92px; height: 92px; font-size: 24px; }
  .brand-mark::after { bottom: 14px; }
  .game-card { column-gap: 26px; }
}
@media (max-width: 900px) {
  .container { width: calc(100% - 40px); }
  .masthead-main { min-height: 0; align-items: flex-start; }
  .masthead-actions { flex-basis: 230px; }
  .masthead-copy h1 { font-size: 30px; }
  .masthead-copy p { font-size: 14px; }
  .youtube-grid { grid-template-columns: 1fr; }
  .section-heading, .more-heading { align-items: start; flex-direction: column; gap: 5px; }
  .game-card { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .game-card .card-head { order: 0; }
  .game-card .video-wrap { order: 1; }
  .game-card .game-summary { order: 2; }
  .game-card .scene-gallery { order: 3; width: 100%; }
  .game-card .card-actions { order: 4; }
  .game-card .game-engagement { order: 5; width: 100%; }
  .game-card .install-details { order: 6; width: 100%; }
  .game-card .feature-tags { order: 7; width: 100%; }
}
@media (max-width: 700px) {
  .masthead-main { flex-direction: column; gap: 15px; }
  .masthead-actions { flex: auto; width: 100%; }
  .game-card .video-wrap { align-self: auto; }
}
@media (max-width: 620px) {
  .video-modal-footer { flex-wrap: wrap; padding-top: 7px; }
  .video-modal-footer a { margin-left: auto; }
  .container { width: calc(100% - 28px); }
  .skyline img { width: 100%; bottom: -7.1vw; }
  .masthead-main { padding-block: 20px; }
  .identity { align-items: flex-start; gap: 14px; }
  .brand-mark { width: 68px; height: 68px; font-size: 18px; }
  .brand-mark::after { bottom: 10px; width: 17px; height: 3px; }
  .masthead-copy h1 { font-size: clamp(23px, 6vw, 30px); }
  .masthead-copy p { margin-top: 7px; font-size: 12px; }
  .channel-tabs .container { gap: 0; }
  .channel-tabs a { min-width: 0; padding: 12px 13px; font-size: 13px; }
  .youtube-grid { gap: 14px; }
  .scene-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .scene-list figcaption { min-height: 0; padding: 7px 8px; font-size: 11px; }
  .game-engagement { align-items: stretch; flex-direction: column; }
  .more-heading { margin-top: 4px; padding-top: 25px; }
  .more-heading h2 { font-size: 24px; }
  .youtube-card h3 { font-size: 15px; }
  .footer-row { flex-direction: column; }
  .comment-form { padding: 15px; }
  .comment-form-bottom { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
