:root {
  --forest-950: #061c1b;
  --forest-900: #0a2925;
  --forest-800: #123d34;
  --forest-700: #245c49;
  --leaf: #83ad63;
  --leaf-light: #bddb8d;
  --gold: #e5c46b;
  --gold-light: #f7e7a9;
  --cream: #fff8df;
  --paper: #f4ead2;
  --ink: #24362e;
  --muted: #688075;
  --danger: #9d4038;
  --shadow: 0 24px 70px rgba(4, 21, 18, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f7f1df; color: var(--ink); font-family: "Noto Sans Thai", "Leelawadee UI", "Segoe UI", sans-serif; line-height: 1.65; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--cream); color: var(--forest-950); }
.skip-link:focus { top: 12px; }
.site-header { position: absolute; z-index: 10; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 20px clamp(22px, 5vw, 80px); color: var(--cream); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; text-shadow: 0 2px 12px #000; }
.brand img { border-radius: 50%; border: 1px solid rgba(246, 226, 155, .72); }
.brand span { display: grid; }
.brand strong { font-family: Georgia, serif; letter-spacing: .2em; font-size: 16px; }
.brand small { opacity: .78; font-size: 11px; letter-spacing: .13em; }
nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
nav a { color: var(--cream); font-size: 14px; font-weight: 700; text-decoration: none; text-shadow: 0 2px 10px #000; }
nav a:hover { color: var(--gold-light); }
nav a.active { color: var(--gold-light); }
.nav-support { padding: 9px 15px; border: 1px solid rgba(246, 226, 155, .7); border-radius: 999px; background: rgba(7, 40, 35, .56); }
.nav-toggle { display: none; min-width: 48px; min-height: 44px; border: 1px solid var(--gold); border-radius: 8px; background: var(--forest-900); color: var(--cream); }

.hero { position: relative; min-height: min(870px, 100svh); display: flex; align-items: flex-end; overflow: hidden; background: url('/assets/images/aeranara-world.webp') center 42% / cover no-repeat; color: white; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 19, 18, .84) 0%, rgba(3, 19, 18, .48) 44%, rgba(3, 19, 18, .08) 75%), linear-gradient(0deg, rgba(3, 19, 18, .82), transparent 48%); }
.hero-content { position: relative; width: min(1400px, 100%); margin: 0 auto; padding: 160px clamp(24px, 7vw, 110px) clamp(70px, 9vh, 110px); }
.eyebrow, .kicker { margin: 0 0 12px; color: var(--gold-light); font: 700 12px/1.4 Georgia, serif; letter-spacing: .2em; }
.hero h1 { margin: 0; font: 700 clamp(62px, 10vw, 132px)/.9 Georgia, serif; letter-spacing: .035em; color: var(--cream); text-shadow: 0 6px 30px rgba(0,0,0,.44); }
.hero h2 { margin: 24px 0 10px; font-size: clamp(28px, 4vw, 54px); line-height: 1.2; }
.hero-content > p:not(.eyebrow) { max-width: 650px; margin: 0; font-size: clamp(16px, 1.5vw, 20px); color: rgba(255,255,245,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 22px; border: 1px solid transparent; border-radius: 10px 4px 10px 4px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .16s ease, filter .16s ease; }
.button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .support-card:focus-within { outline: 3px solid #f6d96d; outline-offset: 3px; }
.button.primary { border-color: #f4de92; background: linear-gradient(#f3dc8a, #cf9f3b); color: #193029; box-shadow: 0 9px 22px rgba(0,0,0,.2); }
.button.secondary { border-color: rgba(255,242,197,.65); background: rgba(10,45,39,.74); color: var(--cream); backdrop-filter: blur(8px); }
.button.full { width: 100%; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 11px; color: rgba(255,255,245,.77); font-size: 12px; }
.hero-meta span { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(5,29,27,.5); }
.hero-meta i { width: 7px; height: 7px; border-radius: 50%; background: #a6db76; box-shadow: 0 0 8px #a6db76; }

.notice { position: relative; z-index: 2; width: min(900px, calc(100% - 32px)); margin: -24px auto 30px; padding: 14px 20px; border-radius: 10px; text-align: center; box-shadow: var(--shadow); }
.notice.success { background: #dcebd0; border: 1px solid #87aa67; }
.notice.error { background: #f4d7cf; border: 1px solid #bf6c5c; }
.notice.info { background: #e6e2cd; border: 1px solid #afa172; }
.section { padding: clamp(72px, 9vw, 130px) clamp(22px, 6vw, 90px); }
.section-heading { max-width: 780px; margin: 0 auto 50px; text-align: center; }
.section-heading.left { margin-left: 0; text-align: left; }
.section h2 { margin: 0 0 14px; color: var(--forest-900); font: 700 clamp(32px, 4vw, 54px)/1.15 Georgia, "Noto Serif Thai", serif; }
.section-heading > p:last-child { color: var(--muted); font-size: 17px; }
.kicker { color: #927322; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; width: min(1240px, 100%); margin: auto; }
.feature-grid article { position: relative; min-height: 250px; padding: 30px 24px; overflow: hidden; border: 1px solid #d8c99f; border-radius: 20px 6px 20px 6px; background: rgba(255,252,240,.82); box-shadow: 0 13px 34px rgba(30,56,45,.08); }
.feature-grid article::after { content: ""; position: absolute; right: -35px; bottom: -45px; width: 130px; height: 130px; border-radius: 50%; background: rgba(131,173,99,.12); }
.feature-grid span { color: #b49238; font: 700 12px Georgia, serif; letter-spacing: .2em; }
.feature-grid h3 { margin: 38px 0 8px; color: var(--forest-800); font-size: 21px; }
.feature-grid p { margin: 0; color: var(--muted); }

.progress-section { background: var(--forest-950); color: #e8efdf; }
.progress-section h2 { color: var(--cream); }
.progress-section .section-heading > p:last-child { color: #a5b8ac; }
.progress-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.world-card { min-height: 600px; border: 1px solid rgba(235,205,113,.42); border-radius: 28px 8px 28px 8px; background: linear-gradient(0deg, rgba(5,28,25,.18), transparent), url('/assets/images/aeranara-world-960.webp') center / cover; box-shadow: 0 28px 80px rgba(0,0,0,.35); }
.milestones { display: grid; gap: 0; }
.milestone { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 18px; padding: 8px 0 38px; }
.milestone::before { content: ""; position: absolute; left: 9px; top: 28px; bottom: -3px; width: 1px; background: rgba(232,213,145,.25); }
.milestone:last-child::before { display: none; }
.milestone > span { width: 19px; height: 19px; margin-top: 5px; border: 2px solid #789085; border-radius: 50%; background: var(--forest-950); }
.milestone.done > span { border-color: var(--leaf-light); background: var(--leaf); box-shadow: 0 0 0 5px rgba(131,173,99,.12); }
.milestone.active > span { border-color: var(--gold-light); background: var(--gold); box-shadow: 0 0 0 5px rgba(229,196,107,.12); }
.milestone small { color: var(--gold); font-weight: 800; letter-spacing: .08em; }
.milestone h3 { margin: 3px 0 4px; color: white; font-size: 21px; }
.milestone p { margin: 0; color: #a5b8ac; }

.form-section { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(520px, 1.3fr); gap: clamp(40px, 8vw, 120px); align-items: start; background: #e9e0c7; }
.form-copy { position: sticky; top: 32px; }
.form-copy h2 { font-size: clamp(36px, 5vw, 60px); }
.form-copy > p:not(.kicker), .form-copy li { color: #5e7469; }
.form-copy ul { padding-left: 21px; }
.panel { border: 1px solid #c9b77e; border-radius: 24px 7px 24px 7px; background: rgba(255,252,241,.91); box-shadow: var(--shadow); }
.form-card { padding: clamp(24px, 4vw, 42px); }
label { display: grid; gap: 7px; margin-bottom: 18px; color: #264338; font-size: 14px; font-weight: 800; }
label small { color: #718078; font-weight: 500; }
input, textarea, select { width: 100%; min-height: 48px; border: 1px solid #b9aa7c; border-radius: 8px 3px 8px 3px; background: #fffdf4; color: #1d3029; padding: 10px 12px; }
textarea { min-height: 160px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-help { margin-top: -4px; text-align: right; }
.consent { grid-template-columns: 21px 1fr; align-items: start; gap: 10px; font-weight: 500; line-height: 1.5; }
.consent input { width: 19px; min-height: 19px; margin-top: 2px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.support-section { background: #fbf7e9; }
.support-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 28px; align-items: start; width: min(1240px, 100%); margin: auto; }
.support-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.support-card { position: relative; min-height: 245px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; margin: 0; padding: 23px; overflow: hidden; border: 1px solid #cfbf91; border-radius: 18px 5px 18px 5px; background: #fffdf3; cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.support-card:hover { transform: translateY(-3px); }
.support-card.selected { border-color: #9a7925; box-shadow: 0 13px 38px rgba(77,67,29,.14), inset 0 0 0 2px rgba(217,180,79,.2); }
.support-card.featured::before { content: "แนะนำ"; position: absolute; top: 17px; left: 17px; padding: 4px 9px; border-radius: 99px; background: var(--forest-800); color: white; font-size: 10px; }
.support-card > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.support-check { position: absolute; right: 17px; top: 17px; font-size: 11px; color: #81775d; }
.selected .support-check { color: #806118; }
.support-card strong { color: var(--forest-800); font: 700 38px Georgia, serif; }
.support-card b { font-size: 17px; }
.support-card small { color: var(--muted); font-weight: 500; }
.support-card.custom { min-height: 110px; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr minmax(180px, 260px); align-items: center; }
.support-card.custom > span { display: grid; gap: 4px; }
.custom-amount:disabled { opacity: .48; }
.checkout-card { padding: 30px; }
.checkout-card > img { border-radius: 50%; margin: 0 auto 14px; }
.checkout-card h3 { margin: 0; text-align: center; color: var(--forest-800); }
.checkout-card > p { margin: 8px 0 24px; text-align: center; color: var(--muted); font-size: 14px; }
.legal-note { display: block; margin-top: 14px; color: #728078; text-align: center; line-height: 1.5; }

.final-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: #e4d7b7; }
.final-cta img { border-radius: 50%; }
.final-cta h2 { font-size: clamp(28px, 3vw, 42px); }
.final-cta p { margin: 0; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 27px clamp(22px, 5vw, 80px); background: var(--forest-950); color: #9eb0a5; font-size: 12px; }
footer div { display: grid; }
footer strong { color: var(--cream); font-family: Georgia, serif; letter-spacing: .15em; }
footer p { margin: 0; text-align: right; }
footer a { color: var(--gold-light); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  nav { position: absolute; display: none; top: calc(100% - 4px); left: 16px; right: 16px; max-height: calc(100svh - 96px); overflow-y: auto; padding: 14px; border: 1px solid rgba(244,222,146,.48); border-radius: 14px; background: rgba(6,28,27,.97); box-shadow: var(--shadow); }
  nav.is-open { display: grid; }
  nav a { min-height: 44px; display: flex; align-items: center; padding: 7px 10px; }
  .nav-support { justify-content: center; margin-top: 6px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .progress-layout, .form-section, .support-layout { grid-template-columns: 1fr; }
  .form-copy { position: static; }
  .world-card { min-height: 520px; }
  .checkout-card { width: min(600px, 100%); margin: auto; }
  .final-cta { grid-template-columns: auto 1fr; }
  .social-links { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 720px) {
  .site-header { padding: 14px 18px; }
  .hero { min-height: 780px; background-position: 48% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(3,19,18,.92), rgba(3,19,18,.24) 80%); }
  .hero-content { padding: 130px 22px 60px; }
  .hero h1 { font-size: clamp(52px, 17vw, 82px); }
  .section { padding: 70px 20px; }
  .feature-grid, .support-options, .field-row { grid-template-columns: 1fr; }
  .world-card { min-height: 400px; }
  .support-card { min-height: 190px; }
  .support-card.custom { grid-column: auto; grid-template-columns: 1fr; }
  .final-cta { grid-template-columns: 1fr; text-align: center; }
  .final-cta img { margin: auto; }
  .social-links { justify-content: center; }
  footer { display: grid; text-align: center; }
  footer p { text-align: center; }
}

/* World atlas */
.atlas-page { background: #071a24; color: #eef3e8; }
.atlas-page .site-header { background: linear-gradient(180deg, rgba(4,18,25,.96), rgba(4,18,25,.58), transparent); }
.atlas-hero { min-height: 520px; display: grid; align-content: end; padding: 150px max(24px, calc((100vw - 1240px) / 2)) 70px; background: radial-gradient(circle at 80% 15%, rgba(230,185,93,.2), transparent 28%), radial-gradient(circle at 15% 80%, rgba(91,155,132,.28), transparent 35%), #071a24; }
.atlas-hero h1 { max-width: 900px; margin: 8px 0 18px; color: #fff8e8; font: 700 clamp(50px, 8vw, 96px)/1 Georgia, "Noto Serif Thai", serif; }
.atlas-hero > p:not(.eyebrow) { max-width: 820px; color: #b8cbc6; font-size: clamp(17px, 2vw, 22px); }
.atlas-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.atlas-stats span { padding: 12px 18px; border: 1px solid rgba(230,185,93,.35); border-radius: 15px 4px 15px 4px; background: rgba(12,42,51,.74); color: #cbd9d4; }
.atlas-stats strong { margin-right: 6px; color: #edcc76; font: 700 28px Georgia, serif; }
.atlas-overview, .atlas-cities, .atlas-regions, .atlas-legend { padding: clamp(55px, 7vw, 100px) max(20px, calc((100vw - 1400px) / 2)); }
.atlas-cities { border-top: 1px solid rgba(230,185,93,.16); background: #091f28; }
.atlas-copy { max-width: 900px; margin-bottom: 34px; }
.atlas-copy h2, .atlas-legend h2 { margin: 6px 0 15px; color: #fff8e8; font: 700 clamp(32px, 5vw, 56px)/1.12 Georgia, "Noto Serif Thai", serif; }
.atlas-copy > p:last-child { color: #a9bfba; font-size: 18px; }
.atlas-image-frame { position: relative; display: block; overflow: hidden; border: 1px solid rgba(230,185,93,.45); border-radius: 28px 8px 28px 8px; background: #06151d; box-shadow: 0 30px 80px rgba(0,0,0,.38); }
.atlas-image-frame img { display: block; width: 100%; height: auto; }
.atlas-map { margin: 0; }
.atlas-map figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.atlas-scroll-hint { display: none; margin-right: auto; color: #a9bfba; font-size: 14px; }
.atlas-scroll:focus-visible { outline: 3px solid #f6d96d; outline-offset: 3px; }
.atlas-regions { background: #0b222b; }
.atlas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.atlas-card { overflow: hidden; border: 1px solid rgba(225,201,129,.28); border-radius: 22px 6px 22px 6px; background: #102b34; box-shadow: 0 18px 42px rgba(0,0,0,.22); }
.atlas-card .atlas-scroll { display: block; overflow: hidden; background: #06151d; }
.atlas-card-link { display: flex; width: fit-content; min-height: 44px; align-items: center; margin-top: 6px; color: #edcc76; font-weight: 700; text-decoration: none; }
.atlas-card-link:hover { text-decoration: underline; }
.atlas-card img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.atlas-card:hover img { transform: scale(1.018); }
.atlas-card > div { padding: 21px 24px 25px; }
.atlas-card p { margin: 0 0 5px; color: #e4c66f; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.atlas-card h3 { margin: 0; color: #fff8e8; font: 700 27px Georgia, "Noto Serif Thai", serif; }
.atlas-card span { color: #9bb4b0; font-size: 14px; }
.atlas-legend { display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; background: #f0e6cc; color: #173e34; }
.atlas-legend h2 { color: #173e34; }
.atlas-legend ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.atlas-legend li { display: flex; gap: 14px; padding: 18px; border: 1px solid #cabb90; border-radius: 14px 4px 14px 4px; background: rgba(255,255,255,.38); }
.atlas-legend li b { display: grid; flex: 0 0 34px; height: 34px; place-items: center; border-radius: 50%; color: #10232a; }
.atlas-legend li span { color: #52685e; font-size: 14px; }
.atlas-legend li strong { display: block; color: #173e34; }
.town-dot { background: #f1c96b; }.field-dot { background: #8dc49a;}.dungeon-dot { background: #a891cf;}.special-dot { background: #e7836a;}
.atlas-note { grid-column: 1 / -1; margin: 10px 0 0; padding: 16px 18px; border-left: 4px solid #b99034; background: #e5d8b8; color: #4a5e55; font-size: 14px; }

@media (max-width: 850px) {
  .atlas-hero { min-height: 0; padding-top: 130px; padding-bottom: 50px; }
  .atlas-grid, .atlas-legend { grid-template-columns: 1fr; }
  .atlas-legend { gap: 24px; }
  .atlas-legend ul { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .atlas-hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .atlas-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .atlas-stats span { padding: 10px 12px; font-size: 14px; }
  .atlas-stats strong { display: block; font-size: 24px; }
  .atlas-copy > p:last-child { font-size: 16px; }
  .atlas-scroll { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #b99034 #06151d; }
  .atlas-scroll img { width: 760px; max-width: none; }
  .atlas-scroll.is-wide img { width: 980px; }
  .atlas-card .atlas-scroll { overflow-x: auto; }
  .atlas-card:hover img { transform: none; }
  .atlas-scroll-hint { display: block; }
  .atlas-map figcaption { justify-content: space-between; }
  .atlas-card > div { padding: 18px 18px 20px; }
  .atlas-card h3 { font-size: 23px; }
}

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

.result-page, .legal-page { min-height: 100svh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 50% 10%, #245b4b, var(--forest-950) 62%); }
.result-card { width: min(620px, 100%); padding: clamp(30px, 6vw, 60px); text-align: center; }
.result-card img { margin: 0 auto 20px; border-radius: 50%; }
.result-card h1 { margin: 0 0 12px; color: var(--forest-900); font: 700 clamp(32px, 5vw, 48px)/1.15 Georgia, serif; }
.result-card p { color: var(--muted); }
.result-card .receipt { padding: 12px; border-radius: 8px; background: #ece4cd; word-break: break-word; }
.legal-document { width: min(820px, 100%); padding: clamp(28px, 5vw, 58px); }
.legal-document h1 { color: var(--forest-900); font-family: Georgia, serif; }
.legal-document h2 { margin-top: 30px; color: var(--forest-800); }
.legal-document .draft { padding: 10px 14px; border: 1px solid #b68f39; border-radius: 7px; background: #fff2c9; }

/* Devlog */
.inner-header { position: absolute; }
.devlog-page { background: #eee5ce; }
.devlog-hero { position: relative; min-height: 650px; display: flex; align-items: flex-end; overflow: hidden; background: url('/assets/images/aeranara-world.webp') center 42% / cover no-repeat; color: white; }
.devlog-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,19,18,.92), rgba(3,19,18,.56) 56%, rgba(3,19,18,.2)), linear-gradient(0deg, rgba(3,19,18,.86), transparent 68%); }
.devlog-hero-copy { position: relative; width: min(1240px, calc(100% - 44px)); margin: 0 auto; padding: 150px 0 76px; }
.devlog-hero h1 { max-width: 900px; margin: 0 0 20px; color: var(--cream); font: 700 clamp(50px, 8vw, 100px)/.98 Georgia, "Noto Serif Thai", serif; }
.devlog-hero-copy > p:not(.eyebrow) { max-width: 760px; margin: 0; color: rgba(255,255,245,.86); font-size: clamp(16px, 1.6vw, 21px); }
.devlog-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.devlog-stats span { min-width: 135px; padding: 10px 15px; border: 1px solid rgba(247,231,169,.38); border-radius: 12px 4px 12px 4px; background: rgba(6,28,27,.6); color: #dbe5d8; }
.devlog-stats strong { margin-right: 5px; color: var(--gold-light); font: 700 25px Georgia, serif; }
.devlog-shell { display: grid; grid-template-columns: 290px minmax(0, 880px); justify-content: center; gap: 34px; padding: clamp(55px, 7vw, 100px) 22px; }
.devlog-index { position: sticky; top: 24px; align-self: start; padding: 26px; border: 1px solid #cdbd8d; border-radius: 20px 6px 20px 6px; background: rgba(255,251,237,.84); box-shadow: 0 16px 46px rgba(28,48,40,.1); }
.devlog-index h2 { margin: 0 0 20px; color: var(--forest-900); font: 700 27px Georgia, "Noto Serif Thai", serif; }
.devlog-index ol { display: grid; gap: 0; margin: 0 0 24px; padding: 0; list-style: none; }
.devlog-index li { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 9px; padding: 12px 0; border-bottom: 1px solid #ded2ae; color: #50665c; font-size: 13px; font-weight: 700; }
.devlog-index li span { color: #9b7823; font: 700 12px Georgia, serif; letter-spacing: .12em; }
.index-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.devlog-article { padding: clamp(28px, 5vw, 66px); overflow: hidden; }
.devlog-article > h2:first-child { margin: 0 0 8px; color: var(--forest-900); font: 700 clamp(38px, 5vw, 64px)/1.08 Georgia, "Noto Serif Thai", serif; }
.devlog-article h3 { margin: 74px -66px 28px; padding: 28px 66px 22px; border-top: 1px solid #caba89; border-bottom: 1px solid #ddd0aa; background: #f2ead3; color: var(--forest-900); font: 700 clamp(28px, 3.5vw, 42px)/1.22 Georgia, "Noto Serif Thai", serif; }
.devlog-article h3:first-of-type { margin-top: 38px; }
.devlog-article h4 { margin: 50px 0 16px; padding-left: 17px; border-left: 4px solid var(--gold); color: var(--forest-800); font-size: clamp(22px, 2.5vw, 30px); line-height: 1.3; }
.devlog-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 20px 0 28px; border: 1px solid #c8b67e; border-radius: 20px 6px 20px 6px; object-fit: cover; box-shadow: 0 20px 48px rgba(23,48,39,.16); }
.devlog-article p { color: #425b50; }
.devlog-article strong { color: #183d33; }
.devlog-article blockquote { margin: 20px 0 28px; padding: 20px 25px; border-left: 4px solid var(--leaf); border-radius: 0 12px 12px 0; background: #edf0dc; color: #345247; }
.devlog-article blockquote p:first-child { margin-top: 0; }
.devlog-article blockquote p:last-child { margin-bottom: 0; }
.devlog-article code { padding: 2px 6px; border-radius: 5px; background: #e9e0c5; color: #6e541b; }
.devlog-article hr { height: 1px; margin: 50px 0; border: 0; background: #d7cba8; }
.devlog-article table { width: 100%; margin: 22px 0 32px; border-collapse: collapse; font-size: 14px; }
.devlog-article th, .devlog-article td { padding: 13px 14px; border: 1px solid #d2c49c; text-align: left; vertical-align: top; }
.devlog-article th { background: var(--forest-800); color: white; }
.devlog-article tr:nth-child(even) { background: #f6f0dd; }
.devlog-cta { border-top: 1px solid #c5b47d; }

@media (max-width: 980px) {
  .devlog-shell { grid-template-columns: 1fr; }
  .devlog-index { position: static; width: min(880px, 100%); margin: auto; }
  .devlog-article { width: min(880px, 100%); margin: auto; }
}

@media (max-width: 720px) {
  .devlog-hero { min-height: 670px; background-position: 58% center; }
  .devlog-hero-copy { width: calc(100% - 40px); padding-bottom: 55px; }
  .devlog-shell { padding: 42px 14px; }
  .devlog-article { padding: 27px 20px; }
  .devlog-article h3 { margin: 58px -20px 24px; padding: 24px 20px 18px; }
  .devlog-article table { display: block; overflow-x: auto; }
}

.game-soon { width: min(440px, calc(100% - 32px)); padding: 0; border: 1px solid #afa172; border-radius: 18px 6px 18px 6px; background: #f3ecd6; color: var(--forest-800); text-align: center; box-shadow: var(--shadow); }
.game-soon form { padding: 32px 28px 28px; }
.game-soon::backdrop { background: rgba(8, 30, 26, .72); backdrop-filter: blur(3px); }
.game-soon img { margin: 0 auto 12px; border-radius: 50%; }
.game-soon h2 { margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 28px); }
.game-soon p { margin: 0 0 24px; color: var(--muted); }
.game-soon-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.form-alert { margin: 0 0 18px; padding: 12px 16px; border-radius: 10px; font-weight: 600; line-height: 1.55; }
.form-alert:focus { outline: 3px solid rgba(185, 144, 52, .55); outline-offset: 2px; }
.form-alert.error { background: #f4d7cf; border: 1px solid #bf6c5c; color: #6e2a1d; }
.form-alert.success { background: #dcebd0; border: 1px solid #87aa67; color: #24421d; }
.support-thanks { width: min(900px, 100%); margin: -8px auto 28px; text-align: center; }
#feedback, #support { scroll-margin-top: 16px; }
.support-card:has(input[type="radio"]:focus-visible) { outline: 3px solid #b99034; outline-offset: 3px; }

.devlog-index li { display: block; padding: 0; }
.devlog-index li a { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 9px; min-height: 44px; padding: 10px 6px; border-radius: 8px; color: inherit; text-decoration: none; }
.devlog-index li a:hover, .devlog-index li a:focus-visible { background: #f2ead3; color: var(--forest-900); }
.devlog-index li b { display: grid; font-weight: 700; }
.devlog-index li small { color: #8a8466; font-size: 12px; font-weight: 400; }
.devlog-article [id] { scroll-margin-top: 20px; }
.devlog-article blockquote ul { margin: 10px 0 0; padding-left: 20px; }
.devlog-article blockquote li + li { margin-top: 6px; }
