:root {
  color-scheme: dark;
  --gold: #f1dda1;
  --ivory: #d8d2c4;
  --lilac: #bcb5e7;
  --link: #c2cf84;
  --ink: #352a3d;
  --paper-link: #634179;
  --panel-fill: #09061299;
}
* { box-sizing: border-box; }
html { min-width: 280px; scroll-behavior: smooth; }
body { margin: 0; background-color: #181526; background-image: radial-gradient(ellipse at 50% 12%, #8068bc38, transparent 65%), linear-gradient(90deg, #151124b8, #21193499 48%, #151124b8), url('./assets/luna/title-background.png'); background-position: center; background-size: cover; background-repeat: no-repeat; background-attachment: fixed; color: var(--ivory); font: 18px/1.6 Arial, Helvetica, sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #c6b1ff; outline-offset: 4px; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
img:is([src$='/play.gif'], [src$='/manual.gif'], [src$='/worldmap.gif']) { clip-path: inset(0 15.8% 0 0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -90px; left: 15px; z-index: 10; padding: 12px 18px; background: #171426; color: var(--gold); border: 1px solid var(--lilac); }
.skip-link:focus { top: 12px; }
.world-shell { position: relative; isolation: isolate; width: min(1680px, calc(100% - 64px)); min-height: 100vh; margin: 0 auto; }
.masthead { position: relative; isolation: isolate; text-align: center; padding: 30px 28px 34px; }
.logo-link { display: block; width: fit-content; max-width: 100%; margin: 0 auto; }
.logo-link:hover { filter: drop-shadow(0 0 9px #a18be750); }
.luna-logo { display: block; width: 490px; height: auto; filter: drop-shadow(0 4px 3px #000a); }
.population { margin-top: 26px; }
.population p { margin: 0 0 5px; color: #e3dfd4; font-size: 18px; }
.population strong { color: var(--gold); font-weight: bold; }
.population-detail { color: #b7b1c0; font-size: 13px; line-height: 1.6; }
.text-button { min-height: 44px; border: 0; padding: 7px 8px; background: none; color: #bfb1dc; text-decoration: underline; }
.text-button:hover { color: var(--gold); }
.page-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; padding: 0 28px; align-items: start; }
.sidebar { min-width: 0; padding-top: 5px; text-shadow: 0 1px 3px #05020ae8; }
.side-panel { position: relative; background: var(--panel-fill); border: 1px solid #a18db049; box-shadow: none; padding: 17px 16px 16px; margin: 0 0 30px; }
.side-panel :is(h1,h2):not(.sr-only) { display: table; font: bold 18px/1.25 Arial, sans-serif; color: #eee5dc; background: transparent; padding: 0 7px; margin: -29px 0 12px -5px; width: fit-content; max-width: 100%; text-align: left; text-shadow: 0 1px 3px #06030a; }
.nav-panel { margin-top: 10px; }
.nav-panel + .nav-panel { margin-top: 36px; }
.nav-panel ul { padding: 0; margin: 0; list-style: none; }
.nav-panel a { display: flex; align-items: center; gap: 11px; min-height: 46px; padding-block: 5px; font-size: 18px; line-height: 1.3; }
.nav-panel a img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.nav-panel a[aria-current='page'] { color: #f0d58f; }
.nav-panel a[aria-current='page']::after { content: '‹'; margin-left: auto; color: #a99bbf; }
.side-link { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; font-size: 16px; }
#main-content { min-width: 0; outline: none; container-type: inline-size; }
.play-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.play-button { position: relative; display: flex; min-width: 0; min-height: 148px; padding: 23px 14px 20px; flex-direction: column; align-items: center; justify-content: center; gap: 11px; border: 1px solid #87788f; border-radius: 3px; box-shadow: inset 0 2px 1px #c1b1d257, inset 0 -3px 1px #100b1bc9, inset 3px 0 2px #d1bddc1a, 0 3px 7px #0009; background: radial-gradient(ellipse at 50% 0, #a18abb42, transparent 80%), url('./assets/ui/violet-slate.svg') center / 256px 256px repeat, linear-gradient(145deg, #4d3d5e, #33263f 52%, #251b33); color: #f0e3bd; text-align: center; text-decoration: none; transition: filter .15s, transform .15s, box-shadow .15s; overflow: hidden; }
.play-button::before { content: ''; position: absolute; inset: 7px; border: 1px solid #b0a1ba87; border-radius: 1px; box-shadow: inset 0 1px #ddd0e63d, 0 1px #0e071e9c, inset 0 0 18px #c0a0e219; pointer-events: none; }
.play-button::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 15px 15px, #ddd2e2 0, #a99ab7 1.3px, #35283f 2.5px, transparent 3px), radial-gradient(circle at calc(100% - 15px) 15px, #ddd2e2 0, #a99ab7 1.3px, #35283f 2.5px, transparent 3px), radial-gradient(circle at 15px calc(100% - 15px), #ddd2e2 0, #a99ab7 1.3px, #35283f 2.5px, transparent 3px), radial-gradient(circle at calc(100% - 15px) calc(100% - 15px), #ddd2e2 0, #a99ab7 1.3px, #35283f 2.5px, transparent 3px); pointer-events: none; }
.play-button > span { position: relative; font: bold clamp(22px, 1.85vw, 28px)/1.15 Arial, Helvetica, sans-serif; text-transform: uppercase; letter-spacing: .2px; text-shadow: 1px 2px 1px #171009; }
.play-button small { position: relative; font: 13px/1.4 Arial, sans-serif; color: #d2c7d9; }
.play-button:hover { color: #fff1cf; text-decoration: none; filter: brightness(1.1); box-shadow: inset 0 2px 1px #d4bfe875, inset 0 -3px 1px #100b1bc9, 0 0 15px #a17dd82e, 0 3px 7px #0009; }
.play-button:hover::before { border-color: #c8b5d5b8; }
.play-button:active { transform: translateY(1px); }
.play-button.unavailable { filter: saturate(.55) brightness(.87); cursor: help; }
.play-button.unavailable:hover { filter: saturate(.7) brightness(1); transform: none; }
.play-note { margin: 15px 0 30px; text-align: center; font-size: 14px; line-height: 1.6; color: #b9acbd; }
.play-note span { color: #a69ba9; }
.mobile-menu-row { display: none; }
#page-content { margin-top: 36px; }
.about-page ul { margin: 0; padding-left: 24px; line-height: 1.65; }
.about-page li + li { margin-top: 12px; }
.scroll { --scroll-top: clamp(34px, 9vw, 150.47px); --scroll-side: clamp(12px, 3.2vw, 53.5px); --scroll-bottom: clamp(30px, 8vw, 130.41px); position: relative; color-scheme: light; color: var(--ink); background: none; border: solid transparent; border-width: var(--scroll-top) var(--scroll-side) var(--scroll-bottom); border-image-source: url('./assets/ui/classic-purple-parchment-clean.png'); border-image-slice: 180 64 156 64 fill; border-image-width: 1; border-image-outset: 0; border-image-repeat: stretch; filter: drop-shadow(0 4px 5px #100718a3); }
.scroll-top, .scroll-bottom { display: block; position: absolute; left: calc(-1 * var(--scroll-side)); right: calc(-1 * var(--scroll-side)); background: none; pointer-events: none; }
.scroll-top { top: calc(-1 * var(--scroll-top)); height: var(--scroll-top); }
.scroll-bottom { bottom: calc(-1 * var(--scroll-bottom)); height: var(--scroll-bottom); }
.scroll-rune { position: absolute; display: block; width: 4%; aspect-ratio: 1; left: 50%; top: 47.777778%; transform: translate(-50%, -50%); background-size: 300% 100%; background-repeat: no-repeat; opacity: .62; mix-blend-mode: multiply; }
.scroll-bottom .scroll-rune { top: 47.435897%; }
.scroll-rune:first-child { left: 16.3%; }
.scroll-rune:nth-child(3) { left: 84%; }
.scroll-rune:is(.rune-0,.rune-1,.rune-2) { background-image: url('./assets/runes/classic-runes-top-hires.png'); }
.scroll-rune:is(.rune-3,.rune-4,.rune-5) { background-image: url('./assets/runes/classic-runes-bottom-hires.png'); }
.scroll-rune:is(.rune-0,.rune-3) { background-position: 0% 50%; }
.scroll-rune:is(.rune-1,.rune-4) { background-position: 50% 50%; }
.scroll-rune:is(.rune-2,.rune-5) { background-position: 100% 50%; }
.scroll-body { background: none; margin: 0; padding: 8px 28px 24px; min-height: 350px; overflow-wrap: break-word; }
@supports (width: 1cqw) {
  .scroll { --scroll-top: 11.71875cqw; --scroll-side: 4.166667cqw; --scroll-bottom: 10.15625cqw; }
}
.scroll h1 { margin: 0 0 30px; color: #60456e; text-align: center; font: bold 39px/1.2 'Palatino Linotype', Palatino, Georgia, serif; letter-spacing: -.6px; text-shadow: 0 1px #fff8f0; }
#page-title:focus { outline: none; }
.scroll .news-heading { display: block; margin: 0 0 14px; color: #60446b; font: bold 40px/1.25 'Palatino Linotype', Palatino, Georgia, serif; font-variant: small-caps; letter-spacing: 1px; text-align: center; white-space: nowrap; text-shadow: 0 1px #f5e6e8; }
.scroll h2 { color: #49354f; font: bold 26px/1.3 Georgia, serif; margin: 0 0 14px; }
.scroll h3 { font: bold 25px/1.35 Georgia, serif; }
.scroll a { color: var(--paper-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.scroll a:hover { color: #3a214e; }
.scroll p { margin: 0 0 20px; }
.scroll :is(a,button,input,select,summary):focus-visible { outline-color: #5c387b; outline-offset: 3px; }
.scroll-intro { text-align: center; font-size: 18px; color: #5e4567; }
.news-intro { font: italic 17px/1.6 Georgia, serif; margin-bottom: 12px !important; text-align: center; color: #5e4567; }
.news-entry { border-bottom: 1px solid #9e86a564; padding: 28px 0 25px; display: flow-root; }
.news-entry:last-child { border-bottom: 0; padding-bottom: 8px; }
.news-entry :is(h2, h3) { font: bold 26px/1.3 Georgia, serif; margin: 3px 0 12px; }
.news-entry :is(h2, h3) a { color: #3f2c48; text-decoration: none; }
.news-entry :is(h2, h3) a:hover { text-decoration: underline; }
.news-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; color: #654a6d; font-size: 14px; line-height: 1.5; margin-bottom: 7px; }
.news-meta time { white-space: nowrap; }
.news-meta .news-kind { letter-spacing: .8px; text-transform: uppercase; font-size: 13px; font-weight: bold; }
.news-entry p { max-width: 90ch; font-size: 19px; line-height: 1.65; margin-bottom: 10px; }
.news-entry .read-more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 17px; }
.news-decoration { float: right; width: 44px; height: 44px; object-fit: contain; margin: 5px 0 12px 20px; }
.news-thumb { width: 190px; height: 124px; object-fit: cover; float: left; margin: 6px 22px 10px 0; border: 1px solid #85718d; padding: 3px; background: #403346; }
.parchment-rule { border: 0; height: 1px; background: #9f88a978; margin: 32px 0; }
.paper-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 12px 20px; min-height: 48px; background: url('./assets/ui/violet-slate.svg') center / 256px 256px repeat, linear-gradient(#5a466b, #38283f); border: 1px solid #786284; box-shadow: inset 0 1px #d5bddf57, inset 0 -2px #1a0e2480; border-radius: 2px; color: #f6eacd !important; font-weight: bold; font-size: 16px; line-height: 1.4; text-decoration: none !important; }
.paper-button:hover { filter: brightness(1.13); }
.paper-button:disabled { cursor: default; opacity: .6; }
.back-link { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; margin-bottom: 24px; font-size: 17px; }
.article-detail h1 { font-size: 37px; margin-bottom: 18px; }
.article-detail .news-meta { justify-content: center; margin-bottom: 30px; }
.article-detail p { font-size: 19px; line-height: 1.7; }
.article-detail .source-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-size: 17px; }
.source-note { font-size: 15px !important; line-height: 1.65; color: #5e4567; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 22px; margin-top: 12px; }
.gallery figure { min-width: 0; margin: 0; border: 1px solid #a18db049; }
.gallery button { display: block; width: 100%; background: none; border: 0; padding: 6px; color: var(--ivory); text-align: center; }
.gallery img { display: block; width: 100%; aspect-ratio: 2.45; object-fit: cover; }
.gallery button:hover img { filter: brightness(1.13); }
.atlas-map-button { display: block; width: 100%; padding: 7px; border: 2px ridge #a18aa9; background: #403346; }
.atlas-map-button img { width: 100%; display: block; }
.map-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; margin: 12px 0 30px; color: #5e4567; }
.unfinished-note { border-top: 1px solid #a58cae8c; padding-top: 25px; margin-top: 28px; }
.unfinished-note h2 { font-size: 26px; }
.unfinished-note p { font-size: 18px; }
.status-label { display: inline-block; font: 13px/1.6 Arial, sans-serif; text-transform: uppercase; letter-spacing: .8px; color: #5e4567; margin-bottom: 12px; }
.guide-steps { list-style: none; padding: 0; margin: 30px 0; counter-reset: guide; }
.guide-steps li { counter-increment: guide; position: relative; padding: 0 0 30px 53px; }
.guide-steps li::before { content: counter(guide); position: absolute; left: 0; top: 0; font: bold 33px Georgia, serif; color: #7f5d8f; width: 36px; text-align: center; border-bottom: 1px solid #9e81aa; }
.guide-steps h2 { font-size: 26px; margin-bottom: 9px; }
.guide-steps p { font-size: 18px; }
.download-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; border-top: 1px solid #a58cae8c; padding: 28px 0; }
.download-row h2 { font-size: 27px; margin-bottom: 8px; }
.download-row p { font-size: 17px; margin: 0; }
.download-row .paper-button { flex-shrink: 0; }
.download-row .unavailable-label { font-size: 16px; font-style: italic; white-space: nowrap; }
.bot-portrait { display: block; width: 100%; border: 4px ridge #9c81a5; margin: 28px 0; }
.encyclopedia-contents h2 { font-size: 25px; }
.encyclopedia-navigation { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 32px; padding-top: 18px; border-top: 1px solid #a58cae70; }
.encyclopedia-navigation a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
.activity-list { padding: 0; list-style: none; }
.activity-list li { border-top: 1px solid #a58cae70; padding: 24px 0; }
.activity-list h2 { display: flex; align-items: center; gap: 14px; }
.activity-list img { width: 28px; height: 28px; object-fit: contain; }
.activity-list p { font-size: 18px; margin-bottom: 0; }
.hiscores-tools { display: flex; gap: 20px; margin: 32px 0 26px; }
.hiscores-tools label { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; font-size: 16px; font-weight: bold; }
.hiscores-tools input, .hiscores-tools select { width: 100%; min-width: 0; padding: 11px 12px; color: #3d2c46; background: #f6eff0; border: 1px solid #a48aaf; border-radius: 0; min-height: 48px; font-size: 17px; }
.hiscores-tools input:disabled, .hiscores-tools select:disabled { opacity: .6; cursor: not-allowed; }
.hiscores-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.hiscores-table th { padding: 14px 10px; text-align: left; font: bold 18px Georgia, serif; border-block: 1px solid #a48aaf; }
.hiscores-table td { padding: 15px 10px; border-bottom: 1px solid #a48aaf50; overflow-wrap: anywhere; }
.hiscores-table :is(th,td):nth-last-child(-n+2) { text-align: right; font-variant-numeric: tabular-nums; }
#hiscores-state { text-align: center; padding: 38px 14px 18px; font-size: 18px; }
#hiscores-state::before { content: ''; display: block; background: url('./assets/icons/hiscore.svg') center / contain no-repeat; width: 48px; height: 48px; margin: 0 auto 18px; }
.hiscores-footer { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-top: 29px; }
#hiscores-updated { font-size: 14px; line-height: 1.6; color: #5e4567; }
.site-footer { margin: 40px 28px 0; padding: 0 0 45px; text-align: center; color: #b9adbc; font-size: 16px; }
.footer-ornament { display: flex; gap: 22px; align-items: center; color: #9d8aa9; font-size: 20px; margin-bottom: 18px; }
.footer-ornament::before, .footer-ornament::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #655669); }
.footer-ornament::after { transform: scaleX(-1); }
.site-footer nav { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.site-footer nav a, .site-footer nav span { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer p { font: 17px/1.6 Georgia, serif; margin: 12px 0 8px; }
.site-footer small { color: #998e9f; font-size: 13px; }
dialog { background: #0e0e16; color: var(--ivory); border: 2px ridge #8b7c90; padding: 18px; width: min(1500px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); box-shadow: 0 8px 60px #000; }
dialog::backdrop { background: #03030be8; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 14px; }
.dialog-top p { margin: 0; color: var(--gold); font: 20px/1.4 Georgia, serif; }
.dialog-top button { margin-left: auto; color: var(--ivory); border: 1px solid #786a7f; background: #25212d; min-height: 48px; padding: 8px 17px; }
#dialog-image { display: block; width: auto; max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; margin: auto; }
.no-script { margin-top: 28px; padding: 28px; background: #eee3ec; color: var(--ink); }
@media (min-width: 1201px) {
  .world-shell { margin-top: 10px; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .world-shell { width: calc(100% - 40px); }
  .page-grid { grid-template-columns: 248px minmax(0,1fr); gap: 28px; padding-inline: 20px; }
  .nav-panel a { font-size: 17px; gap: 9px; }
  .play-options { gap: 12px; }
  .play-button { padding-inline: 12px; }
  .play-button small { font-size: 12px; }
  .scroll-body { padding-inline: 32px; }
}
@media (max-width: 900px) {
  .world-shell { width: calc(100% - 32px); }
  .masthead { padding: 25px 20px 25px; }
  .luna-logo { width: 440px; }
  .population p { font-size: 18px; line-height: 1.6; }
  .population-detail { max-width: 640px; margin-inline: auto; }
  .mobile-menu-row { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 0 16px 25px; font: 18px/1.4 Georgia, serif; color: #c2b2cc; }
  .mobile-menu-row button { color: #dfcfac; border: 1px solid #9b87ae77; background: var(--panel-fill); min-height: 48px; padding: 10px 15px; font: 16px Arial, sans-serif; text-shadow: 0 1px 3px #06030a; }
  .mobile-menu-row button span { margin-right: 7px; }
  .page-grid { display: block; padding: 0 12px; }
  .sidebar { display: none; padding: 10px 3px 26px; }
  .sidebar.is-open { display: block; }
  #navigation { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
  .nav-panel { margin: 10px 0 24px; }
  .nav-panel + .nav-panel { margin-top: 10px; }
  .nav-panel a { min-height: 48px; font-size: 16px; gap: 8px; }
  .nav-panel a img { width: 28px; height: 28px; }
  .side-panel { padding-inline: 12px; }
  .play-button { min-height: 138px; padding-inline: 13px; }
  .play-button > span { font-size: 25px; }
  .play-button small { font-size: 13px; }
  .scroll-body { padding-inline: 32px; }
  .site-footer { margin-inline: 16px; }
  .download-row { gap: 18px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .world-shell { width: calc(100% - 16px); }
  .masthead { padding: 22px 10px 18px; }
  .luna-logo { width: min(360px, 100%); }
  .population { margin-top: 22px; padding-inline: 5px; }
  .population p { max-width: 370px; margin: 0 auto 5px; font-size: 16px; line-height: 1.65; }
  .population-detail { font-size: 12px; }
  .text-button { min-height: 44px; }
  .mobile-menu-row { gap: 10px; padding: 0 9px 22px; font-size: 16px; }
  .mobile-menu-row button { min-height: 44px; padding: 9px 11px; font-size: 15px; }
  .page-grid { padding: 0 8px; }
  #navigation { grid-template-columns: 1fr; gap: 8px; }
  .nav-panel { margin-bottom: 24px; }
  .side-panel { padding: 16px 16px 12px; }
  .side-panel :is(h1,h2):not(.sr-only) { margin-top: -28px; font-size: 18px; }
  .nav-panel a { min-height: 46px; font-size: 17px; gap: 10px; }
  .nav-panel a img { width: 28px; height: 28px; }
  .play-options { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
  #launcher-link { grid-column: 1 / -1; }
  .play-button { min-height: 112px; padding: 17px 10px 15px; gap: 8px; }
  #launcher-link { min-height: 118px; }
  .play-button > span { font-size: 21px; line-height: 1.2; }
  #launcher-link > span { font-size: 24px; }
  .play-button small { font-size: 12px; line-height: 1.4; }
  .play-note { font-size: 13px; margin: 14px 5px 28px; line-height: 1.65; }
  .play-note span { display: block; }
  #page-content { margin-top: 34px; }
  .scroll-body { padding: 11px 22px 22px; }
  .scroll h1 { font-size: 30px; margin-bottom: 23px; }
  .scroll h2, .unfinished-note h2, .guide-steps h2 { font-size: 23px; }
  .scroll h3 { font-size: 22px; }
  .scroll .news-heading { font-size: 34px; }
  .news-intro { font-size: 16px; }
  .news-entry { padding-block: 24px; }
  .news-entry :is(h2, h3) { font-size: 23px; line-height: 1.35; margin-bottom: 12px; }
  .news-entry p, .article-detail p { font-size: 17px; line-height: 1.65; }
  .news-entry .read-more, .article-detail .source-link, .back-link { min-height: 44px; font-size: 16px; }
  .news-meta { font-size: 12px; gap: 5px 10px; }
  .news-meta .news-kind { font-size: 11px; letter-spacing: .5px; }
  .news-decoration { width: 36px; height: 36px; margin-left: 12px; }
  .news-thumb { width: 130px; height: 89px; margin-right: 15px; }
  .scroll-intro, .unfinished-note p, .guide-steps p, .activity-list p { font-size: 17px; }
  .source-note { font-size: 14px !important; }
  .paper-button { min-height: 46px; font-size: 16px; padding: 11px 15px; }
  .article-detail h1 { font-size: 29px; }
  .gallery { grid-template-columns: 1fr; gap: 22px; }
  .map-caption { font-size: 12px; line-height: 1.6; }
  .status-label { font-size: 12px; }
  .guide-steps li { padding-left: 42px; }
  .guide-steps li::before { font-size: 28px; width: 29px; }
  .download-row { display: block; padding-block: 25px; }
  .download-row h2 { font-size: 24px; }
  .download-row p { font-size: 16px; }
  .download-row .paper-button { margin-top: 15px; }
  .download-row .unavailable-label { display: block; margin-top: 12px; font-size: 15px; }
  .hiscores-tools { flex-direction: column; gap: 17px; margin-block: 26px 23px; }
  .hiscores-tools label { font-size: 16px; }
  .hiscores-tools input, .hiscores-tools select { font-size: 16px; }
  .hiscores-table { table-layout: fixed; font-size: 14px; }
  .hiscores-table th { font-size: 14px; padding: 12px 4px; overflow-wrap: anywhere; }
  .hiscores-table td { padding: 13px 4px; }
  .hiscores-table th:nth-child(1) { width: 15%; }
  .hiscores-table th:nth-child(2) { width: 36%; }
  .hiscores-table th:nth-child(3) { width: 15%; }
  .hiscores-table th:nth-child(4) { width: 34%; }
  .hiscores-table .hiscores-empty { font-size: 16px; line-height: 1.65; text-align: left; }
  #hiscores-state { padding: 28px 4px 16px; font-size: 17px; }
  .hiscores-footer { flex-direction: column; align-items: stretch; gap: 15px; }
  #hiscores-updated { font-size: 13px; }
  .site-footer { margin: 28px 10px 0; padding-bottom: 32px; font-size: 15px; }
  .site-footer nav { gap: 4px 10px; }
  .site-footer p { font-size: 16px; }
  .site-footer small { font-size: 12px; line-height: 1.7; display: block; max-width: 390px; margin: auto; }
  dialog { padding: 12px; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .dialog-top { gap: 12px; align-items: flex-start; }
  .dialog-top p { font-size: 17px; }
  .dialog-top button { min-height: 44px; padding: 7px 12px; font-size: 16px; flex-shrink: 0; }
}
@media (max-width: 360px) {
  .masthead { padding-inline: 6px; }
  .mobile-menu-row { font-size: 15px; padding-inline: 8px; }
  .mobile-menu-row button { padding-inline: 9px; font-size: 14px; }
  .play-options { gap: 9px; }
  .play-button > span { font-size: 18px; }
  #launcher-link > span { font-size: 23px; }
  .play-button small { font-size: 12px; }
  .scroll-body { padding-inline: 16px; }
  .scroll .news-heading { font-size: 29px; }
  .news-entry :is(h2, h3) { font-size: 22px; }
  .news-thumb { width: 106px; height: 77px; margin-right: 12px; }
  .news-meta { font-size: 12px; }
  .news-meta .news-kind { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.guide-example { margin-top: 32px; }
.guide-example figure { margin: 24px 0; }
.guide-example img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.guide-example figcaption { margin-top: 10px; text-align: center; font-size: 17px; }
