:root {
  color-scheme: light;
  --ink: #151e24;
  --paper: #f6f0e5;
  --amber: #f4bc59;
  --rule: #d9cbb3;
  --muted: #57544d;
  --shell: 1240px;
  font-family: "Segoe UI", "Malgun Gothic", "Noto Sans", system-ui, sans-serif;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, select { font: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, figure { margin: 0; }
:focus-visible { outline: 3px solid #bb682c; outline-offset: 4px; }
.shell { width: min(var(--shell), 100% - 112px); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip { position: absolute; top: 12px; left: 12px; z-index: 4; padding: 12px; background: white; }

.site-header { background: #faf5ec; }
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; font-weight: 850; font-size: 17px; line-height: 1.2; text-decoration: none; }
.brand img { flex: none; border-radius: 10px; }
.navigation { display: flex; flex-wrap: wrap; gap: 12px 33px; justify-content: center; }
.navigation a { text-decoration: none; font-size: 14px; font-weight: 700; }
.navigation a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.locale-picker { display: flex; width: 174px; min-width: 0; align-items: center; gap: 9px; justify-self: end; border: 1px solid #dcd1c0; border-radius: 5px; padding-inline: 11px 7px; }
.locale-picker select { min-width: 0; width: 100%; min-height: 38px; background: transparent; color: var(--ink); border: 0; font-size: 13px; }
.globe { position: relative; flex: 0 0 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%; }
.globe::before, .globe::after { content: ""; position: absolute; }
.globe::before { inset: 0 3px; border-inline: 1px solid currentColor; border-radius: 50%; }
.globe::after { left: 0; right: 0; top: 6px; border-top: 1px solid currentColor; }

.hero { position: relative; overflow: hidden; isolation: isolate; background: #151e24; color: #fff9ed; border-bottom: 4px solid #c28a44; }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0 25%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; }
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #151e24 0%, #151e24 24%, #151e24ec 33%, #151e2480 49%, #151e240c 70%),
    linear-gradient(0deg, #11181fa0, transparent 43%);
}
.hero-inner { min-height: clamp(540px, 43vw, 690px); display: flex; align-items: center; padding-block: 62px; }
.hero-copy { width: min(55%, 625px); }
.eyebrow { color: #86501f; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; font-size: .76rem; line-height: 1.5; }
.hero .eyebrow { display: flex; align-items: center; gap: 11px; color: #ffcb74; }
.hero .eyebrow::before { content: ""; width: 30px; flex: none; border-top: 1px solid currentColor; }
.hero h1, h2 { font-family: Georgia, "Malgun Gothic", "Noto Sans", serif; font-weight: 700; text-wrap: balance; overflow-wrap: break-word; }
.hero h1 { margin-top: 15px; font-size: clamp(3rem, 6.5vw, 6.1rem); line-height: .98; letter-spacing: -.065em; }
:lang(ko) .hero h1, :lang(ja) .hero h1, :lang(zh) .hero h1 { letter-spacing: -.075em; line-height: 1.12; }
:lang(ko) [data-text] { word-break: keep-all; overflow-wrap: anywhere; }
:lang(th) .hero h1 { letter-spacing: normal; line-height: 1.16; }
.hero-lead { margin-top: 19px; font-weight: 760; color: #ffcb74; font-size: clamp(1.04rem, 1.6vw, 1.45rem); line-height: 1.4; }
.hero-description { margin-top: 13px; max-width: 43ch; color: #f6eee2; font-size: 1rem; line-height: 1.8; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: .89rem;
  line-height: 1.35;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .18s, border-color .18s;
}
.button.primary { background: var(--amber); color: #22180c; }
.button.primary:hover { background: #ffcf78; }
.button.ghost { color: #fff9ed; border-color: #f1dfbb80; background: #161e2380; }
.button.ghost:hover { border-color: #ffd894; background: #2d302e; }
.hero :focus-visible, .support-section :focus-visible { outline-color: var(--amber); }

.game-section { padding-block: 74px 84px; }
.section-heading h2, .support-copy h2 { font-size: clamp(2rem, 4vw, 3.65rem); line-height: 1.12; letter-spacing: -.044em; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-heading > p:not(.eyebrow) { margin-top: 12px; color: var(--muted); line-height: 1.6; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 78px); margin-top: 33px; align-items: start; }
.battle-image { position: relative; display: block; padding: 6px; background: #2a302f; border: 1px solid #76624c; border-radius: 8px; }
.battle-image img { width: 100%; border-radius: 3px; }
.battle figcaption { color: var(--muted); font-size: .79rem; font-weight: 650; padding: 12px 0 0; }
.expand { position: absolute; bottom: 13px; right: 13px; min-width: 32px; min-height: 32px; display: grid; place-items: center; color: white; background: #151e24df; border: 1px solid #ece3cf8a; border-radius: 4px; }
.battle-image:hover .expand { color: var(--ink); background: var(--amber); }
.game-copy { border-top: 1px solid var(--rule); }
.game-copy article { position: relative; border-bottom: 1px solid var(--rule); padding: 19px 0 20px 21px; }
.game-copy article::before { content: ""; width: 7px; height: 7px; position: absolute; top: 28px; left: 1px; transform: rotate(45deg); background: #ae6b33; }
.game-copy h3 { font-size: clamp(1.05rem, 1.75vw, 1.34rem); line-height: 1.3; margin-bottom: 6px; }
.game-copy p { color: var(--muted); font-size: .95rem; line-height: 1.66; }

.gallery-section { padding-block: 65px 77px; background: #efe6d6; border-top: 1px solid var(--rule); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.gallery-grid a { background: #fcf5e9; border: 1px solid #d4c4a8; border-radius: 7px; overflow: hidden; text-decoration: none; }
.tile-image { display: block; overflow: hidden; background: #27302e; }
.tile-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .23s ease; }
.gallery-grid a:hover img { transform: scale(1.035); }
.tile-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; font-weight: 790; font-size: .95rem; }
.tile-caption > :last-child { color: #86501f; }

.support-section { background: #182328; border-top: 3px solid #bd8b50; color: #fff9ed; }
.support-inner { display: flex; align-items: center; gap: clamp(30px, 7vw, 102px); justify-content: center; padding-block: 48px; }
.game-logo { width: min(30%, 305px); flex: none; }
.support-copy .actions { margin-top: 17px; }
.support-copy h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.site-footer { background: #10191e; color: #e6dac4; border-top: 1px solid #383f3f; }
.footer-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .83rem; }
.site-footer a { text-decoration: none; }

#viewer { width: min(96vw, 1140px); max-width: none; max-height: 96vh; margin: auto; padding: 12px; color: #fff9ed; background: #151e24; border: 1px solid #b3986d; border-radius: 7px; }
#viewer::backdrop { background: #0b1217e8; }
#viewer-image { margin: 0 auto; max-height: 76vh; width: auto; object-fit: contain; }
.viewer-top, .viewer-controls { display: flex; align-items: center; gap: 8px; padding: 0 0 8px; }
.viewer-top { justify-content: space-between; padding-left: 5px; font-weight: 750; }
.viewer-controls { justify-content: center; padding: 9px 0 0; }
.viewer-button { min-width: 40px; min-height: 40px; background: #263138; color: #fff9ed; border: 1px solid #797361; border-radius: 4px; font-size: 1.25rem; }
.viewer-button:hover { background: #40494a; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 64px); }
  .header-inner { gap: 17px; }
  .navigation { gap: 10px 18px; }
  .hero-copy { width: 60%; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: auto; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding-top: 9px; }
  .brand { font-size: .88rem; gap: 7px; }
  .brand img { width: 32px; }
  .locale-picker { width: min(132px, 41vw); }
  .locale-picker select { min-height: 34px; font-size: .76rem; }
  .navigation { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 0 20px; margin-top: 8px; border-top: 1px solid #e2d8ca; }
  .navigation a { display: inline-flex; align-items: center; min-height: 35px; font-size: .79rem; }
  .hero-art { inset: 0 0 auto; height: clamp(238px, 58vw, 350px); }
  .hero-art img { object-position: 73% 50%; }
  .hero::after { height: clamp(238px, 58vw, 350px); background: linear-gradient(0deg, #151e24, #151e2433 24%, transparent 57%); }
  .hero-inner { min-height: auto; align-items: flex-start; padding-top: clamp(202px, 51vw, 302px); padding-bottom: 37px; }
  .hero-copy { width: 100%; }
  .hero h1 { margin-top: 10px; font-size: clamp(2.55rem, 10vw, 4.4rem); }
  .hero-lead { margin-top: 10px; }
  .hero-description { font-size: .93rem; line-height: 1.65; margin-top: 9px; }
  .actions { margin-top: 19px; }
  .button { min-height: 43px; font-size: .81rem; padding-inline: 11px; }
  .game-section, .gallery-section { padding-block: 42px 48px; }
  .game-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 22px; }
  .game-copy article { padding-block: 13px 14px; }
  .game-copy article::before { top: 20px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
  .gallery-grid a:first-child { grid-column: 1 / -1; }
  .tile-caption { padding: 10px; }
  .support-inner { display: grid; justify-content: start; gap: 8px; padding-block: 27px 38px; }
  .game-logo { width: 174px; }
  .footer-inner { min-height: 60px; }
}
@media (max-width: 360px) {
  .globe { display: none; }
  .navigation { column-gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
