:root { color-scheme: dark; font-family: system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: #f1e8d3; background: #1b2320; --muted: #b9bbab; --line: #49554b; --brass: #e0c299; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; }
a { color: inherit; }
a:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.camp { display: grid; grid-template-rows: 1fr auto; background: linear-gradient(90deg,#131b16ef,#131b16a0 51%,#101d173d), url("/cover.webp") 60% center / cover; }
.cover { width: min(1150px, 100%); padding: 2rem clamp(1.5rem,7vw,5rem); margin: auto; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 6.25vw, 4.75rem); line-height: 1.13; font-weight: 820; letter-spacing: -0.065em; }
.cover p { color: #e1e0ce; line-height: 1.8; margin: 1.25rem 0 2rem; max-width: 26rem; font-size: clamp(1rem, 2vw, 1.2rem); }
.mascot { width: 52px; height: 52px; object-fit: contain; image-rendering: pixelated; margin-bottom: 1.4rem; }
.release { display: inline-block; color: #f0dbad; padding: .65rem 0; border-top: 1px solid #bea984; font-size: .88rem; }
footer { padding: 1.15rem max(1.5rem,6vw); text-align: right; color: #e2dfce; font-size: .82rem; }
footer a { text-decoration-color: #9e957a; text-underline-offset: .25em; }
.login { display: grid; place-items: center; padding: 1.25rem; background: linear-gradient(#17221ee8,#17221ef3), url("/cover.webp") center / cover; }
.auth { width: min(100%, 420px); border: 1px solid var(--line); box-shadow: 0 12px 48px #0e141068; background: #232d27; padding: clamp(1.4rem,6vw,2.5rem); }
.auth h1, .studio h1 { font-size: clamp(1.85rem,5vw,2.6rem); margin: 1.4rem 0 1.6rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 680; color: var(--brass); text-decoration: none; }
.brand img { object-fit: contain; image-rendering: pixelated; }
label { font-size: .85rem; color: var(--muted); display: block; margin: 0 0 .5rem; }
input, select, button { font: inherit; }
input, select { padding: .7rem .8rem; width: 100%; background: #161e1a; color: inherit; border: 1px solid var(--line); min-height: 46px; border-radius: 3px; }
button { background: #dbbe94; border: 1px solid #dbbe94; border-radius: 3px; color: #20261e; font-size: .9rem; font-weight: 730; padding: .62rem .95rem; min-height: 42px; cursor: pointer; }
button:hover:enabled { background: #f0d7b1; }
button:disabled { opacity: .6; cursor: default; }
button.quiet { background: transparent; border-color: var(--line); color: var(--brass); }
button.quiet:hover:enabled { background: #303b30; }
.auth button { display: block; width: 100%; margin-top: .85rem; }
[role=status] { color: var(--brass); font-size: .85rem; margin-top: .85rem; line-height: 1.55; }
[role=status]:empty { display: none; }
.dashboard header { max-width: 1060px; margin: auto; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 1rem; }
.studio { max-width: 1060px; margin: auto; padding: 0 1.25rem 2.75rem; }
.ledger { margin: 1rem 0; padding: 1.25rem min(5vw,1.75rem); border: 1px solid var(--line); background: #232d27; }
.ledger h2 { font-size: 1.18rem; margin: 0 0 1.2rem; }
#version #minimum { max-width: 12rem; }
.versions { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: .9rem; margin: 0 0 1rem; }
.note { color: var(--muted); line-height: 1.55; font-size: .85rem; margin: .55rem 0 .95rem; }
.tracks { padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: .35rem .9rem; }
.tracks li { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem 0; border-top: 1px solid #445047; }
.tracks small { display: block; margin-top: .24rem; color: var(--muted); }
.tracks button { white-space: nowrap; }

[data-ad-platform] h3 { font-size: 1rem; margin: .5rem 0 .85rem; }
[data-ad-platform] select { margin-bottom: 1rem; }
[data-ad-platform] button { margin-top: .85rem; }

.cover .game-subtitle { color: var(--brass); margin: .45rem 0 0; font-size: clamp(1.05rem,3vw,1.65rem); font-weight: 700; }
.public-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; text-align: left; background: #121c18b0; }
.public-footer nav, .information header nav { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.information { background: #1b2320; }
.information header { max-width: 1000px; padding: 1.15rem 1.5rem; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.information header nav { font-size: .88rem; color: var(--muted); }
.information header [aria-current="page"] { color: var(--brass); font-weight: 700; }
.policy { width: min(100%, 850px); margin: 0 auto; padding: clamp(2.25rem, 6vw, 5.1rem) 1.5rem 4rem; }
.policy h1 { font-size: clamp(2.15rem,7vw,3.5rem); letter-spacing: -.052em; }
.policy .intro { margin-top: 1rem; color: #e1dac6; font-size: 1.1rem; }
.policy section { border-top: 1px solid var(--line); margin-top: 1.8rem; padding-top: 1.3rem; }
.policy h2 { font-size: 1.12rem; margin-bottom: .65rem; }
.policy p { line-height: 1.8; color: var(--muted); margin-bottom: .65rem; }
.policy a { color: var(--brass); text-underline-offset: .24em; }

.download { background: linear-gradient(90deg,#131b16e6,#131b1666), url("/cover.webp") 60% center / cover; }
.download-panel { display: grid; grid-template-columns: minmax(0,1fr) 240px; align-items: center; gap: clamp(1.75rem,5vw,3.75rem); width: min(800px,calc(100% - 2.5rem)); margin: 2rem auto; align-self: center; padding: clamp(1.5rem,5vw,3.25rem); background: #18241ef2; border: 1px solid #756852; box-shadow: 0 16px 48px #0e141080; }
.download-intro .mascot { margin-bottom: .8rem; }
.download-subtitle { color: var(--brass); margin-top: .45rem; font-size: clamp(1.05rem,3vw,1.4rem); font-weight: 700; }
.download-stores { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }
.download-stores a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem .95rem; border: 1px solid #8a8065; border-radius: 3px; color: #f3e6cb; background: #303e32; font-weight: 700; text-decoration: none; }
.download-stores a:hover { background: #45564a; }
.download-note { color: var(--muted); font-size: .85rem; line-height: 1.6; margin-top: .8rem; }
.download-qr { text-align: center; margin: 0; }
.download-qr img { display: block; margin: 0 auto; width: min(100%,222px); height: auto; image-rendering: pixelated; }
.download-qr figcaption { color: var(--muted); margin-top: .85rem; font-size: .86rem; }
@media (max-width: 620px) {
  .download-panel { grid-template-columns: 1fr; }
}
