:root {
  --ink: #171529;
  --paper: #fffaf0;
  --cream: #f4ead1;
  --gold: #ffc83d;
  --orange: #ff7043;
  --violet: #6546d7;
  --night: #131126;
  --muted: #6f6b7a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.55;
  word-break: keep-all;
}
a { color: inherit; }
.site-header {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 0 28px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 900; text-decoration: none; letter-spacing: -.03em; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  color: white; background: var(--violet); transform: rotate(-6deg); font-family: Georgia, serif;
}
.header-badge { padding: 7px 12px; border: 1px solid #d8cfbc; border-radius: 999px; font-size: 12px; font-weight: 800; }
main { overflow: hidden; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
  gap: 55px;
  align-items: center;
  max-width: 1200px;
  min-height: 690px;
  margin: auto;
  padding: 65px 28px 90px;
}
.eyebrow { margin: 0 0 14px; color: var(--violet); font-size: 12px; font-weight: 950; letter-spacing: .17em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(48px, 6.3vw, 88px); line-height: .98; letter-spacing: -.075em; }
h1 em { color: var(--orange); font-style: normal; position: relative; }
h1 em::after { content: ""; position: absolute; left: 2px; right: -3px; bottom: 0; height: 8px; background: var(--gold); z-index: -1; transform: rotate(-2deg); }
.hero-lead { margin-bottom: 32px; color: #514d5c; font-size: 18px; }
.download-panel { max-width: 410px; }
.download-button {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 18px;
  border: 3px solid var(--ink);
  border-radius: 17px;
  color: white;
  background: var(--night);
  box-shadow: 7px 7px 0 var(--gold);
  text-decoration: none;
  font-size: 20px;
  font-weight: 950;
  transition: transform .16s, box-shadow .16s;
}
.download-button:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--gold); }
.download-button small { display: block; margin-bottom: 2px; color: #b9afdc; font-size: 10px; letter-spacing: .14em; }
.download-button .android-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--night); background: #a9e34b; border-radius: 12px; }
.download-button .arrow { margin-left: auto; color: var(--gold); font-size: 29px; }
.download-button.disabled { justify-content: center; opacity: .6; }
.download-count { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 16px 0 0; color: #514d5c; font-size: 13px; font-weight: 800; }
.download-count span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: white; background: var(--violet); font-size: 13px; }
.download-count strong { color: var(--ink); font-size: 16px; font-weight: 950; }
.release-line { margin: 13px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.game-preview {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 540px;
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 32px;
  background: linear-gradient(#7b68df 0 54%, #ed7c48 54% 61%, #5b3459 61%);
  box-shadow: 18px 20px 0 var(--cream);
}
.sun { position: absolute; top: 64px; right: 52px; width: 76px; height: 76px; border: 7px solid var(--ink); border-radius: 50%; background: var(--gold); }
.cloud { position: absolute; height: 19px; border: 4px solid var(--ink); background: #e9e2ff; box-shadow: 14px -12px 0 0 #e9e2ff, 14px -12px 0 4px var(--ink); }
.cloud-one { top: 100px; left: 35px; width: 78px; }
.cloud-two { top: 172px; right: 48px; width: 58px; transform: scale(.7); }
.mountain { position: absolute; width: 0; height: 0; border-left: 190px solid transparent; border-right: 190px solid transparent; }
.mountain-back { left: -115px; bottom: 190px; border-bottom: 275px solid #5146a1; }
.mountain-front { right: -180px; bottom: 180px; border-bottom: 330px solid #3a347b; }
.ground { position: absolute; inset: auto 0 0; height: 39%; background: #547542; border-top: 5px solid var(--ink); }
.ground::after { content: ""; position: absolute; inset: 20px 0 auto; height: 8px; background: repeating-linear-gradient(90deg, #78a858 0 20px, transparent 20px 34px); }
.stage-chip { position: absolute; top: 16px; left: 16px; padding: 6px 9px; border: 3px solid var(--ink); border-radius: 8px; color: white; background: #2c244f; font: 800 10px/1 monospace; }
.speech { position: absolute; z-index: 5; left: 34px; right: 34px; bottom: 213px; padding: 11px; border: 4px solid var(--ink); border-radius: 13px; background: white; font-size: 13px; font-weight: 900; text-align: center; transform: rotate(-1deg); }
.speech::after { content: ""; position: absolute; left: 53%; bottom: -13px; width: 19px; height: 19px; border-right: 4px solid var(--ink); border-bottom: 4px solid var(--ink); background: white; transform: rotate(45deg); }
.boss { position: absolute; z-index: 3; top: 175px; left: 50%; width: 150px; height: 122px; border: 6px solid var(--ink); border-radius: 48% 48% 40% 40%; background: #e75858; transform: translateX(-50%); }
.boss::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 20px; height: 19px; border: 5px solid var(--ink); border-top: 0; border-radius: 0 0 60px 60px; }
.boss-horn { position: absolute; top: -33px; width: 26px; height: 47px; border: 5px solid var(--ink); background: #eee6cc; }
.boss-horn.left { left: 12px; transform: rotate(-27deg); }
.boss-horn.right { right: 12px; transform: rotate(27deg); }
.boss-eye { position: absolute; top: 42px; width: 16px; height: 12px; border-radius: 50%; background: var(--ink); }
.boss-eye.left { left: 34px; }.boss-eye.right { right: 34px; }
.knight { position: absolute; z-index: 6; left: 50%; bottom: 43px; width: 105px; height: 164px; transform: translateX(-50%); }
.helmet { position: absolute; z-index: 3; top: 26px; left: 17px; width: 70px; height: 59px; border: 5px solid var(--ink); border-radius: 34px 34px 12px 12px; background: #d9d8e0; }
.face { position: absolute; z-index: 4; top: 59px; left: 28px; width: 48px; height: 37px; border: 5px solid var(--ink); border-radius: 9px 9px 22px 22px; background: #ffc39e; }
.face::after { content: "⌁"; position: absolute; top: -5px; left: 12px; font-size: 25px; font-weight: 900; }
.plume { position: absolute; z-index: 2; top: 0; left: 48px; width: 18px; height: 48px; border: 5px solid var(--ink); border-radius: 70% 0; background: var(--orange); transform: rotate(19deg); }
.body { position: absolute; top: 87px; left: 20px; width: 67px; height: 75px; border: 5px solid var(--ink); border-radius: 11px 11px 18px 18px; background: var(--gold); }
.body::after { content: "N"; position: absolute; left: 19px; top: 9px; color: var(--violet); font: 950 28px Georgia, serif; }
.sword { position: absolute; z-index: 1; top: 58px; right: -18px; width: 15px; height: 104px; border: 5px solid var(--ink); background: #e7f0f3; transform: rotate(25deg); }
.shield { position: absolute; z-index: 7; left: -6px; top: 100px; width: 52px; height: 61px; border: 5px solid var(--ink); border-radius: 50% 50% 42% 42%; background: var(--violet); }
.companion { position: absolute; z-index: 5; bottom: 50px; display: grid; place-items: center; width: 58px; height: 82px; border: 5px solid var(--ink); border-radius: 25px 25px 12px 12px; color: white; font-size: 23px; }
.companion-one { left: 44px; background: #e45272; transform: rotate(-5deg); }.companion-two { right: 42px; background: #46a8bd; transform: rotate(6deg); }

.features { padding: 62px max(28px, calc((100vw - 1144px) / 2)); background: var(--night); color: white; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
h2 { margin-bottom: 0; font-size: clamp(34px, 4.5vw, 58px); line-height: 1.08; letter-spacing: -.055em; }
.features .eyebrow { color: var(--gold); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-grid article { padding: 20px 20px; border: 1px solid #37334f; border-radius: 18px; background: #1c1934; }
.feature-grid article > span { display: block; margin-bottom: 12px; font-size: 26px; }
.feature-grid h3 { margin-bottom: 7px; color: var(--gold); font-size: 18px; }
.feature-grid p { margin-bottom: 0; color: #bdb9ca; font-size: 14px; }
.game-info {
  padding: 70px max(28px, calc((100vw - 1144px) / 2));
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 200, 61, .22), transparent 25%),
    linear-gradient(145deg, #f6edff, #fffaf0 48%, #fff3d7);
}
.game-info-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: end; margin-bottom: 26px; }
.game-info-heading > p { margin: 0 0 7px; color: var(--muted); font-size: 17px; }
.game-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.game-info-grid article {
  display: flex;
  gap: 13px;
  min-height: 162px;
  padding: 21px 18px;
  border: 2px solid #ded2ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 28px rgba(60, 40, 100, .07);
}
.game-info-grid article > span { flex: 0 0 auto; font-size: 29px; }
.game-info-grid h3 { margin: 4px 0 7px; font-size: 17px; }
.game-info-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.upgrade-guide { overflow: hidden; border: 4px solid var(--ink); border-radius: 24px; background: white; box-shadow: 10px 11px 0 var(--gold); }
.upgrade-guide-title { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 27px 28px 22px; color: white; background: var(--night); }
.upgrade-guide-title .eyebrow { margin-bottom: 7px; color: var(--gold); }
.upgrade-guide-title h3 { margin: 0; font-size: 27px; }
.upgrade-guide-title > p { max-width: 370px; margin: 0 0 3px; color: #bbb6c9; font-size: 12px; text-align: right; }
.upgrade-guide-title { cursor: pointer; list-style: none; }
.upgrade-guide-title::-webkit-details-marker { display: none; }
.upgrade-guide-title::after { content: "펼치기 ＋"; align-self: center; flex: 0 0 auto; color: var(--gold); font-size: 12px; font-weight: 900; white-space: nowrap; }
.upgrade-guide[open] .upgrade-guide-title::after { content: "접기 －"; }
.upgrade-guide-title:hover h3 { color: var(--gold); }
.upgrade-table-wrap { overflow-x: auto; }
.upgrade-table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 13px; }
.upgrade-table th, .upgrade-table td { padding: 15px 13px; border-bottom: 1px solid #ece6da; text-align: right; white-space: nowrap; }
.upgrade-table thead th { color: #777080; background: #f6f1e7; font-size: 11px; letter-spacing: .04em; }
.upgrade-table th:first-child, .upgrade-table td:nth-child(2) { text-align: left; }
.upgrade-table tbody th { font-size: 14px; }
.upgrade-table tbody td:nth-child(2) { color: var(--muted); }
.upgrade-table tbody tr:last-child th, .upgrade-table tbody tr:last-child td { border-bottom: 0; }
.upgrade-table tbody tr:hover { background: #fffaf0; }
.upgrade-table .premium-upgrade { color: #5b3900; background: #fff3c8; }
.upgrade-table .premium-upgrade th { color: #a04b00; }
.upgrade-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-top: 2px solid var(--ink); background: #d7cfbe; }
.upgrade-notes p { margin: 0; padding: 18px 20px; color: #625c69; background: #faf6ed; font-size: 12px; }
.upgrade-notes strong { display: block; margin-bottom: 5px; color: var(--violet); font-size: 13px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1144px; margin: 62px auto 44px; padding: 44px 48px; border: 4px solid var(--ink); border-radius: 28px; background: var(--gold); box-shadow: 12px 12px 0 var(--ink); }
.specs ul { margin: 0; padding: 0; list-style: none; }
.specs li { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 2px solid rgba(23, 21, 41, .18); }
.specs li span { color: #4b432d; }.specs li strong { text-align: right; }
.install { max-width: 1144px; margin: 0 auto 62px; padding: 0 28px; }

.install ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 18px; padding: 0; list-style: none; }
.install li { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border: 2px solid #d9d0bd; border-radius: 15px; background: white; }
.install li b { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; color: white; background: var(--violet); }
.checksum { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 15px 18px; border-radius: 12px; color: #e8e5f1; background: var(--night); font-size: 12px; }
.checksum code { min-width: 0; overflow: hidden; color: var(--gold); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.checksum button { border: 0; border-radius: 7px; padding: 7px 10px; color: var(--ink); background: var(--gold); font-weight: 900; cursor: pointer; }
.install-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.install > summary {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  border: 2px solid #d9d0bd; border-radius: 15px; background: white; cursor: pointer; list-style: none;
}
.install > summary::-webkit-details-marker { display: none; }
.install > summary::after { content: "＋"; margin-left: auto; color: var(--violet); font-size: 18px; font-weight: 900; }
.install[open] > summary { border-radius: 15px 15px 0 0; border-bottom-color: transparent; }
.install[open] > summary::after { content: "－"; }
.install > summary .eyebrow { margin: 0; }
.install > summary h2 { margin: 0; font-size: clamp(18px, 2.4vw, 23px); }
.specs-lead { margin: 16px 0 0; max-width: 420px; color: #4b432d; font-size: 14px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 35px max(28px, calc((100vw - 1144px) / 2)); color: #aaa5b6; background: #0c0b17; font-size: 12px; }
footer a { color: white; font-weight: 900; } footer p { margin: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 45px; text-align: center; }
  .hero-lead { font-size: 16px; }.download-panel { margin: auto; }
  .game-preview { width: min(100%, 480px); min-height: 560px; margin: 10px auto 0; text-align: left; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .game-info-heading { grid-template-columns: 1fr; gap: 25px; }
  .game-info-grid { grid-template-columns: 1fr 1fr; }
  .upgrade-notes { grid-template-columns: 1fr; }
  .specs { margin-left: 28px; margin-right: 28px; padding: 45px; gap: 45px; }
  .install ol { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header { height: 58px; padding: 0 18px; }.header-badge { font-size: 10px; }
  .hero { min-height: auto; padding: 38px 18px 70px; gap: 42px; }
  h1 { font-size: clamp(46px, 15vw, 66px); }
  .hero-lead br { display: none; }
  .download-button { min-height: 68px; font-size: 18px; }
  .game-preview { min-height: 500px; border-width: 4px; border-radius: 25px; box-shadow: 10px 12px 0 var(--cream); }
  .boss { top: 154px; transform: translateX(-50%) scale(.88); }
  .speech { bottom: 195px; }
  .features { padding: 75px 18px; }.section-heading { display: block; }
  .feature-grid { grid-template-columns: 1fr; }.feature-grid article { min-height: auto; }.feature-grid article > span { margin-bottom: 24px; }
  .game-info { padding: 75px 18px; }
  .game-info-grid { grid-template-columns: 1fr; }
  .game-info-grid article { min-height: auto; }
  .upgrade-guide { border-width: 3px; border-radius: 19px; box-shadow: 7px 8px 0 var(--gold); }
  .upgrade-guide-title { display: block; padding: 22px 19px; }
  .upgrade-guide-title > p { margin-top: 10px; text-align: left; }
  .upgrade-table th, .upgrade-table td { padding: 13px 11px; }
  .specs { grid-template-columns: 1fr; gap: 35px; margin: 0 18px 80px; padding: 32px 24px; box-shadow: 7px 8px 0 var(--ink); }
  .install { margin-bottom: 44px; padding: 0 18px; }
  .install > summary { padding: 13px 15px; }
  .checksum { grid-template-columns: 1fr auto; }.checksum > span { grid-column: 1 / -1; }.checksum code { grid-column: 1; }
  footer { display: block; padding: 30px 18px; } footer p { margin-top: 9px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
