:root {
    color-scheme: light;
    font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, system-ui, sans-serif;
    color: #132f51;
    background: #eff7ff;
    --blue: #075cc6;
    --line: #d5e6f6;
    --muted: #4b6480;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 50% 20%, #fff, transparent 68%); }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #2c86ef; outline-offset: 4px; }
.shell { width: min(1140px, calc(100% - 64px)); margin-inline: auto; }
.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wordmark { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 850; line-height: 1; text-decoration: none; }
.wordmark img { display: block; object-fit: contain; }
.wordmark span span { color: var(--blue); }
.wordmark small { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); letter-spacing: .03em; }
nav { display: flex; gap: 23px; align-items: center; font-weight: 700; font-size: 14px; }
nav a, .guide-link { text-decoration: none; }
nav a:hover, footer a:hover { text-decoration: underline; }
.store-link { color: var(--blue); background: #e4f1ff; border: 1px solid #cce4fc; border-radius: 10px; padding: 8px 13px; }

.hero {
    display: grid;
    grid-template-columns: 1.16fr 1fr;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    min-height: 405px;
    border: 1px solid #a8d0f3;
    border-radius: 23px;
    background:
        linear-gradient(93deg, #f7fbff 2%, #edf7fff5 30%, #c9e5fdbf 49%, #2b66a033 74%),
        url("/?pack-image=village") center 44% / cover, #cce9ff;
    box-shadow: 0 14px 35px #376ba21c;
}
.hero-copy { padding: 40px 12px 49px clamp(28px, 5vw, 62px); z-index: 1; }
.edition { display: inline-flex; align-items: center; gap: 9px; padding: 5px 10px; color: #124f95; background: #e2f0ff; border: 1px solid #c5defa; border-radius: 7px; font-size: 13px; font-weight: 750; }
.edition span { width: 11px; height: 11px; background: #1f7ddd; border-top: 4px solid #82c6ff; border-right: 3px solid #569fe9; }
h1 { margin: 16px 0 13px; font-size: clamp(44px, 6.4vw, 83px); line-height: .99; letter-spacing: -.065em; }
h1 strong { color: var(--blue); }
.hero p { max-width: 36ch; color: #31506e; margin: 0 0 23px; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.download, .guide-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 45px; padding: 9px 14px; border-radius: 10px; font-weight: 750; }
.download { background: linear-gradient(#2181ee, #085ec9); border: 1px solid #1167cc; color: white; text-decoration: none; box-shadow: 0 6px 13px #075bc435, inset 0 1px #ffffff55; }
a.download:hover { background: #0759bd; }
.download.unavailable { background: #e8f0f9; border-color: #ccdfef; color: #425e78; box-shadow: none; }
.download-icon { position: relative; width: 15px; height: 14px; border-bottom: 2px solid; border-radius: 2px; }
.download-icon::before { position: absolute; content: ""; left: 7px; top: -1px; width: 2px; height: 8px; background: currentColor; }
.download-icon::after { position: absolute; content: ""; width: 6px; height: 6px; left: 5px; top: 3px; rotate: 45deg; border-right: 2px solid; border-bottom: 2px solid; }
.guide-link { border: 1px solid #aaccef; background: #f7fbfff0; color: #1559a4; font-size: 14px; }
.guide-link:hover { background: #e4f1ff; }
.hero-mascot { display: block; width: min(100%, 410px); height: auto; aspect-ratio: 1; object-fit: contain; justify-self: center; filter: drop-shadow(0 12px 12px #09244866); }

.details { display: grid; grid-template-columns: 1fr .8fr 1.35fr 1.2fr; gap: 10px; margin-top: 13px; }
.details > div { min-width: 0; padding: 14px clamp(12px, 2vw, 20px); background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 3px 10px #376ba20b; }
.detail-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.details strong { font-size: 15px; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 7px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ready { color: #08774f; }
.waiting { color: #835816; }

.install { margin-block: 37px 22px; scroll-margin: 16px; }
.section-heading h2 { margin: 0 0 4px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.03em; }
.section-heading p, .steps p { margin: 0; color: var(--muted); line-height: 1.65; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 16px 0 0; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 17px 18px; box-shadow: 0 4px 10px #376ba20c; }
.step-number { display: inline-grid; place-items: center; min-width: 28px; min-height: 26px; padding: 2px 5px; color: #075dcb; background: #e3f1ff; font: 800 13px ui-monospace, monospace; border-radius: 5px; box-shadow: inset 0 -2px #cee5fc; }
.steps h3 { margin: 9px 0 4px; line-height: 1.3; }
.steps p { font-size: 15px; }
.steps .disable-step { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr); align-items: center; gap: 22px; padding: clamp(16px, 3vw, 30px); border-color: #c0dcf6; background: linear-gradient(126deg, #f8fcff, #e2f1ff); }
.disable-copy h3 { font-size: clamp(20px, 3vw, 28px); margin-bottom: 9px; }
.disable-copy p + p { margin-top: 8px; }
.disable-copy .update-note { margin-top: 15px; padding: 8px 12px; border-left: 3px solid #408fe4; border-radius: 4px; background: #fff9; }
.disable-picture { width: min(100%, 360px); margin: 0 auto; }
.disable-picture a { display: block; border-radius: 11px; overflow: hidden; border: 1px solid #233b54; box-shadow: 0 8px 18px #243b5924; }
.disable-picture img { display: block; width: 100%; height: auto; }
.disable-picture figcaption { margin-top: 7px; color: #385c7e; text-align: center; font-size: 13px; }
.join { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #e3f1ff; border: 1px solid #c5e0fa; padding: 14px 18px; border-radius: 13px; }
.join strong { margin-right: 12px; }
.join code { display: inline-block; color: #07509d; overflow-wrap: anywhere; }
.join button { background: #fff; border: 1px solid #a7d0f4; border-radius: 8px; padding: 6px 11px; color: #07509d; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
footer { display: flex; justify-content: space-between; gap: 10px; padding-block: 20px; color: var(--muted); font-size: 13px; }
footer a { text-decoration: none; }

@media (max-width: 830px) {
    .shell { width: calc(100% - 36px); }
    .hero { min-height: 340px; }
    .hero-copy { padding-left: 26px; }
    .hero p { font-size: 15px; }
    nav { gap: 13px; }
}
@media (max-width: 650px) {
    .shell { width: calc(100% - 28px); }
    .site-header { min-height: 65px; }
    .wordmark { font-size: 19px; gap: 4px; }
    .wordmark img { width: 38px; height: 38px; }
    .wordmark small { font-size: 8px; }
    nav { gap: 8px; font-size: 12px; }
    .nav-guide { display: none; }
    .store-link { padding: 6px; }
    .hero {
        grid-template-columns: 1fr;
        border-radius: 18px;
        background: linear-gradient(#f5fbff 0%, #edf7fff2 34%, #d0e8fc73 67%, #1a4b8724), url("/?pack-image=village") 61% center / cover, #cce9ff;
    }
    .hero-copy { padding: 24px 15px 0; text-align: center; }
    h1 { font-size: clamp(39px, 10vw, 56px); }
    .hero p { margin-inline: auto; margin-bottom: 14px; }
    .hero-actions { justify-content: center; }
    .download, .guide-link { min-height: 40px; padding: 7px 10px; font-size: 13px; }
    .hero-mascot { width: min(68%, 245px); }
    .details { grid-template-columns: 1fr 1fr; gap: 8px; }
    .details > div { padding: 11px; }
    .install { margin-top: 26px; }
    .steps, .steps .disable-step { grid-template-columns: 1fr; }
    .steps .disable-step { gap: 14px; }
    .join { padding: 11px; }
    .join strong { display: block; }
}
