@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600&family=Noto+Sans+KR:wght@400;500;600&family=Noto+Serif+JP:wght@400;500;600&family=Noto+Serif+KR:wght@400;500;600&display=swap");

/* RPG Title Screen Tistory Skin v0.1 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --font-game-serif:
    "Noto Serif KR",
    "Noto Serif JP",
    "Noto Serif CJK KR",
    "Noto Serif CJK JP",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Malgun Gothic",
    serif;
  --font-game-sans:
    "Noto Sans KR",
    "Noto Sans JP",
    "Noto Sans CJK KR",
    "Noto Sans CJK JP",
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    "Malgun Gothic",
    sans-serif;
  font-family: var(--font-game-sans);
  background: #090909;
  color: #f7f7f7;
  text-rendering: optimizeLegibility;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #090909;
}

body {
  overflow-x: hidden;
}

button,
a,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

img {
  max-width: 100%;
  height: auto;
}

html.is-home-page .game-home {
  display: flex;
}

html.is-home-page .game-content {
  display: none;
}

html.is-sub-page .game-home {
  display: none;
}

html.is-sub-page .game-content {
  display: block;
}



.game-title h1,
.game-title p,
.game-menu__item,
.game-window__titlebar h2,
.content-window__header h1,
.article-header h1 {
  font-synthesis: none;
}

.game-title h1,
.game-menu__item,
.game-window__titlebar h2 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 타이틀 화면 */

.game-home {
  position: relative;
  isolation: isolate;
  display: none;
  min-height: 100svh;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  background: #090909;
}

.game-bg,
.game-dim,
.game-fade {
  position: absolute;
  inset: 0;
}

.game-bg {
  z-index: -4;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 850ms ease, transform 5s ease;
}

.game-bg--default {
  opacity: 1;
  transform: scale(1);
}

.game-bg--new {
  opacity: 0;
  transform: scale(1.025);
}

.game-home.is-new-game .game-bg--default {
  opacity: 0;
  transform: scale(1.025);
}

.game-home.is-new-game .game-bg--new {
  opacity: 1;
  transform: scale(1);
}

.game-dim {
  z-index: -3;
  background: rgba(0, 0, 0, var(--screen-overlay-opacity, 0.38));
}

.game-fade {
  z-index: 20;
  pointer-events: none;
  background: #000;
  opacity: 0;
  transition: opacity 280ms ease;
}

.game-home.is-fading .game-fade {
  opacity: 1;
}

.game-title {
  position: absolute;
  top: clamp(70px, 15vh, 170px);
  left: 50%;
  width: min(90vw, 900px);
  transform: translateX(-50%);
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

.game-title h1 {
  margin: 0;
  color: var(--title-color, #fff);
  font-family: var(--font-game-serif);
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.08;
  font-kerning: normal;
  word-break: keep-all;
}

.game-title p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-family: var(--font-game-sans);
  font-size: clamp(0.67rem, 1.4vw, 0.94rem);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  word-break: keep-all;
}

.game-menu {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: max(7vh, calc(28px + env(safe-area-inset-bottom)));
  display: flex;
  width: min(88vw, 430px);
  transform: translateX(-50%);
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.58);
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.48),
    inset 0 0 28px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(5px);
}

.game-menu__item {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 6px 34px;
  border: 0;
  background: transparent;
  color: var(--menu-color, #f2f2f2);
  cursor: pointer;
  font-family: var(--font-game-serif);
  font-size: clamp(1rem, 2.2vw, 1.36rem);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-align: center;
  word-break: keep-all;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  transition: color 160ms ease, letter-spacing 160ms ease, opacity 160ms ease;
}

.game-menu__cursor {
  position: absolute;
  left: 8px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 130ms ease, transform 130ms ease;
}

.game-menu__item:not(.is-disabled):hover,
.game-menu__item:not(.is-disabled):focus-visible {
  color: var(--menu-active-color, #fff);
  letter-spacing: 0.18em;
  outline: 0;
}

.game-menu__item:not(.is-disabled):hover .game-menu__cursor,
.game-menu__item:not(.is-disabled):focus-visible .game-menu__cursor {
  opacity: 1;
  transform: translateX(0);
}

.game-menu__item.is-disabled,
.game-menu__item:disabled {
  opacity: 0.28;
  cursor: default;
}

.game-utility {
  position: absolute;
  z-index: 4;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 7px;
}

.utility-button {
  min-height: 31px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(0, 0, 0, 0.52);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-family: var(--font-game-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  backdrop-filter: blur(5px);
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.utility-button:hover,
.utility-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: 0;
  transform: translateY(-1px);
}

.skin-credit {
  position: fixed;
  z-index: 90;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-game-sans);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* 팝업 창 */

.game-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  visibility: hidden;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(0, 0, 0, 0.66);
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.game-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.game-window {
  display: flex;
  width: min(960px, 92vw);
  max-height: min(78svh, 780px);
  flex-direction: column;
  border: 1px solid var(--window-border-color, #fff);
  background: rgba(5, 5, 5, 0.82);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  transform: translateY(10px) scale(0.99);
  transition: transform 180ms ease;
}

.game-modal.is-open .game-window {
  transform: translateY(0) scale(1);
}

.game-window__titlebar {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding-left: 18px;
  border-bottom: 1px solid var(--window-border-color, #fff);
}

.game-window__titlebar h2 {
  margin: 0;
  font-family: var(--font-game-serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.game-window__close {
  align-self: stretch;
  width: 52px;
  border: 0;
  border-left: 1px solid var(--window-border-color, #fff);
  background: transparent;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.game-window__close:hover,
.game-window__close:focus-visible {
  background: #fff;
  color: #000;
  outline: 0;
}

.game-window__content {
  min-height: 160px;
  padding: clamp(18px, 3.5vw, 34px);
  overflow: auto;
  overscroll-behavior: contain;
}

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

.gallery-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.09);
  outline: 0;
  transform: translateY(-3px);
}

.gallery-card__thumbnail,
.content-card__thumbnail {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), transparent),
    #151515;
  aspect-ratio: 4 / 3;
}

.gallery-card__thumbnail img,
.content-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-card:hover .gallery-card__thumbnail img {
  transform: scale(1.035);
}

.gallery-card__body {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
  padding: 13px;
}

.gallery-card__body strong {
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-card__body span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.7rem;
}

.config-notice + .config-notice {
  display: none;
}

.config-notice h3 {
  margin: 0 0 24px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
}

.config-notice__body {
  color: rgba(255, 255, 255, 0.87);
  font-size: 0.96rem;
  line-height: 1.85;
}

.config-notice__body img {
  height: auto !important;
}

.empty-message {
  margin: 30px auto;
  color: rgba(255, 255, 255, 0.56);
  line-height: 1.8;
  text-align: center;
}



.gallery-status,
.config-status {
  min-height: 1.2em;
  margin: 0 0 13px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-game-serif);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-align: center;
}

.gallery-pagination {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  font-family: var(--font-game-serif);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.gallery-pagination span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.gallery-pagination a {
  min-width: 28px;
  padding: 4px 5px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  transition: color 140ms ease, background 140ms ease;
}

.gallery-pagination a:hover,
.gallery-pagination a:focus-visible,
.gallery-pagination a.selected {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: 0;
}

.gallery-pagination .no-more-prev,
.gallery-pagination .no-more-next {
  opacity: 0.2;
  pointer-events: none;
}

/* 글과 목록 */

.game-content {
  display: none;
  min-height: 100vh;
  padding: clamp(20px, 5vw, 64px) 16px 80px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 40%),
    #090909;
}

.return-title {
  display: block;
  width: min(1040px, 100%);
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--font-game-serif);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.return-title:hover {
  color: #fff;
}

.content-window {
  width: min(1040px, 100%);
  margin: 0 auto 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.56);
}

.content-window__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

.content-window__header h1 {
  margin: 0;
  font-family: var(--font-game-serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.content-window__header span {
  color: rgba(255,255,255,.5);
  font-size: .72rem;
  letter-spacing: .1em;
}

.content-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
}

.content-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.035);
}

.content-card__body {
  padding: 14px;
}

.content-card__body strong,
.content-card__body span,
.content-card__body p {
  display: block;
}

.content-card__body strong {
  margin-bottom: 8px;
}

.content-card__body span {
  color: rgba(255,255,255,.48);
  font-size: .72rem;
}

.content-card__body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  color: rgba(255,255,255,.68);
  font-size: .82rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-window {
  max-width: 860px;
}

.article-header {
  padding: clamp(25px, 5vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.article-header span,
.article-header time {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.article-header h1 {
  margin: 14px 0;
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  font-weight: 500;
  line-height: 1.25;
}

.article-body,
.article-comments {
  padding: clamp(25px, 5vw, 54px);
}

.article-body {
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.9;
}

.article-body iframe {
  max-width: 100%;
}

.article-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.paging {
  display: flex;
  width: min(1040px, 100%);
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 32px auto 0;
  font-family: var(--font-game-serif);
  font-size: .78rem;
  letter-spacing: .08em;
}

.paging span {
  display: flex;
  gap: 10px;
}

.paging .no-more-prev,
.paging .no-more-next {
  opacity: .25;
  pointer-events: none;
}



/* 밝은 창 테마 */

html.theme-light {
  color-scheme: light;
}

html.theme-light,
html.theme-light body {
  background: #f3f0eb;
  color: #242424;
}

html.theme-light .game-menu {
  border-color: rgba(36, 36, 36, 0.82);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.2),
    inset 0 0 28px rgba(255, 255, 255, 0.48);
}

html.theme-light .game-menu__item {
  color: rgba(24, 24, 24, 0.9);
  text-shadow: 0 1px 9px rgba(255, 255, 255, 0.82);
}

html.theme-light .game-menu__item:not(.is-disabled):hover,
html.theme-light .game-menu__item:not(.is-disabled):focus-visible {
  color: #000;
}

html.theme-light .game-menu__item.is-disabled,
html.theme-light .game-menu__item:disabled {
  color: #555;
  opacity: 0.34;
}

html.theme-light .game-modal {
  background: rgba(235, 232, 226, 0.6);
}

html.theme-light .game-window {
  border-color: rgba(30, 30, 30, 0.86);
  background: rgba(255, 255, 255, 0.91);
  color: #242424;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.24);
}

html.theme-light .game-window__titlebar {
  border-bottom-color: rgba(30, 30, 30, 0.86);
}

html.theme-light .game-window__close {
  border-left-color: rgba(30, 30, 30, 0.86);
}

html.theme-light .game-window__close:hover,
html.theme-light .game-window__close:focus-visible {
  background: #242424;
  color: #fff;
}

html.theme-light .gallery-card,
html.theme-light .content-card {
  border-color: rgba(0, 0, 0, 0.24);
  background: rgba(0, 0, 0, 0.025);
}

html.theme-light .gallery-card:hover,
html.theme-light .gallery-card:focus-visible {
  border-color: rgba(0, 0, 0, 0.66);
  background: rgba(0, 0, 0, 0.065);
}

html.theme-light .gallery-card__thumbnail,
html.theme-light .content-card__thumbnail {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.045), transparent),
    #ece9e4;
}

html.theme-light .gallery-card__body span,
html.theme-light .content-card__body span,
html.theme-light .article-header span,
html.theme-light .article-header time,
html.theme-light .content-window__header span,
html.theme-light .gallery-status,
html.theme-light .config-status {
  color: rgba(0, 0, 0, 0.5);
}

html.theme-light .config-notice__body,
html.theme-light .article-body {
  color: rgba(20, 20, 20, 0.88);
}

html.theme-light .empty-message {
  color: rgba(0, 0, 0, 0.54);
}

html.theme-light .gallery-pagination {
  border-top-color: rgba(0, 0, 0, 0.24);
}

html.theme-light .gallery-pagination a {
  color: rgba(0, 0, 0, 0.58);
}

html.theme-light .gallery-pagination a:hover,
html.theme-light .gallery-pagination a:focus-visible,
html.theme-light .gallery-pagination a.selected {
  background: rgba(0, 0, 0, 0.09);
  color: #000;
}

html.theme-light .utility-button {
  border-color: rgba(30, 30, 30, 0.5);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(20, 20, 20, 0.86);
}

html.theme-light .utility-button:hover,
html.theme-light .utility-button:focus-visible {
  border-color: rgba(20, 20, 20, 0.9);
  background: rgba(255, 255, 255, 0.96);
  color: #000;
}

html.theme-light .skin-credit {
  border-color: rgba(30, 30, 30, 0.3);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(20, 20, 20, 0.74);
}

html.theme-light .game-content {
  background:
    radial-gradient(circle at top, rgba(0, 0, 0, 0.035), transparent 42%),
    #f3f0eb;
}

html.theme-light .return-title {
  color: rgba(0, 0, 0, 0.6);
}

html.theme-light .return-title:hover {
  color: #000;
}

html.theme-light .content-window {
  border-color: rgba(30, 30, 30, 0.72);
  background: rgba(255, 255, 255, 0.76);
}

html.theme-light .content-window__header,
html.theme-light .article-header {
  border-bottom-color: rgba(30, 30, 30, 0.52);
}

html.theme-light .content-card__body p {
  color: rgba(0, 0, 0, 0.66);
}

html.theme-light .paging {
  color: #202020;
}



/* 보호글 비밀번호 입력 */

.protected-window {
  max-width: 760px;
}

.protected-entry {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: clamp(36px, 7vw, 76px) clamp(20px, 6vw, 64px);
  text-align: center;
}

.protected-entry__label {
  display: inline-flex;
  min-width: 132px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-game-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.protected-entry__message {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
  line-height: 1.9;
}

.protected-entry__form {
  display: grid;
  width: min(100%, 440px);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.protected-entry__form label {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--font-game-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-align: left;
}

.protected-entry__form input[type="password"] {
  min-width: 0;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 0;
  outline: 0;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  padding: 0 14px;
  font-family: var(--font-game-sans);
  font-size: 1rem;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.protected-entry__form input[type="password"]:focus {
  border-color: #fff;
  background: rgba(0, 0, 0, 0.68);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.protected-entry__submit {
  height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-game-sans);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.protected-entry__submit:hover,
.protected-entry__submit:focus-visible {
  background: #fff;
  color: #111;
  outline: 0;
  transform: translateY(-1px);
}

/* 라이트 테마 보호글 */

html.theme-light .protected-entry__label {
  border-color: rgba(20, 20, 20, 0.58);
  color: rgba(20, 20, 20, 0.76);
}

html.theme-light .protected-entry__message {
  color: rgba(20, 20, 20, 0.7);
}

html.theme-light .protected-entry__form label {
  color: rgba(20, 20, 20, 0.54);
}

html.theme-light .protected-entry__form input[type="password"] {
  border-color: rgba(20, 20, 20, 0.58);
  background: rgba(255, 255, 255, 0.74);
  color: #111;
}

html.theme-light .protected-entry__form input[type="password"]:focus {
  border-color: #111;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

html.theme-light .protected-entry__submit {
  border-color: rgba(20, 20, 20, 0.76);
  background: rgba(0, 0, 0, 0.04);
  color: #111;
}

html.theme-light .protected-entry__submit:hover,
html.theme-light .protected-entry__submit:focus-visible {
  background: #111;
  color: #fff;
}

@media (max-width: 560px) {
  .protected-entry {
    min-height: 320px;
  }

  .protected-entry__form {
    grid-template-columns: 1fr;
  }

  .protected-entry__submit {
    width: 100%;
  }
}

/* 모바일 */

@media (max-width: 767px) {
  .game-title {
    top: max(52px, 9vh);
    width: 90vw;
  }

  .game-title h1 {
    font-size: clamp(2.2rem, 12vw, 4.2rem);
    letter-spacing: 0.08em;
  }

  .game-title p {
    max-width: 80vw;
    margin: 13px auto 0;
    font-size: .62rem;
    line-height: 1.7;
    letter-spacing: .2em;
  }

  .game-menu {
    bottom: max(9vh, calc(58px + env(safe-area-inset-bottom)));
    width: min(88vw, 390px);
    padding: 15px 18px;
  }

  .game-menu__item {
    min-height: 46px;
    font-size: 1.06rem;
  }

  .game-utility {
    right: 10px;
    bottom: max(9px, env(safe-area-inset-bottom));
    gap: 5px;
  }

  .utility-button {
    padding: 6px 8px;
    font-size: 0.59rem;
  }

  .skin-credit {
    left: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: 5px 7px;
    font-size: 0.6rem;
  }

  .game-modal {
    padding: 8px;
  }

  .game-window {
    width: 100%;
    max-height: calc(100svh - 16px);
  }

  .game-window__content {
    padding: 16px;
  }

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

  .gallery-card__body {
    min-height: 65px;
    padding: 10px;
  }

  .content-list {
    padding: 14px;
  }

  .content-window__header {
    padding: 18px;
  }

  .article-body,
  .article-comments,
  .article-header {
    padding: 22px 18px;
  }
}

@media (max-width: 430px) {
  .gallery-grid,
  .content-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* - - - BGM 플레이어 관련 - - - */
.mm-bgm{
  position: fixed;
  top: 15px; /* 우측상단 원하면 bottom을 top 으로 변경 */
  right: 15px;
  z-index: 9999; /* 맨위로 */
  border: none;
  
   /* 둥근 모서리 적용을 위한 핵심 코드 */
    border-radius: 12px;   /* 숫자가 클수록 더 둥글어집니다 (추천: 10px ~ 15px) */
    overflow: hidden;      /* 둥근 테두리 밖으로 튀어나오는 플레이어 사각형을 잘라냄 */

}
/* - - - BGM 플레이어 끝 - - -*/
