:root {
  --paper: #f4f7fb;
  --fog: #b7c4d6;
  --void: #0b1220;
  --card: #152033;
  --card-2: #1c2c44;
  --stroke: #3d5a80;
  --amber: #e0a44a;
  --teal: #1f6f8b;
  --teal-2: #4aa3c7;
  --round: 6px;
  --measure: 1052px;
  --gap: 40px;
  --stack: "Candara", "Calibri", "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 16px/1.6 var(--stack); color: var(--paper); background: var(--void); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 14px; line-height: 1.25; font-weight: 700; overflow-wrap: break-word; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
h4 { font-size: 17px; margin-top: 16px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 6px; }
a:focus-visible, .press:focus-visible, label:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.press { cursor: pointer; }
.folio { display: flex; flex-direction: column; min-height: 100vh; max-width: 100%; }
main { flex: 1 1 auto; min-width: 0; width: 100%; }
.inner { width: 100%; max-width: calc(var(--measure) + var(--gap) * 2); margin: 0 auto; padding: 0 var(--gap) 36px; min-width: 0; }
@keyframes glow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(74, 163, 199, 0); }
  50% { transform: scale(1.03); box-shadow: 0 0 18px rgba(74, 163, 199, .4); }
}
.go-link, .join-link { animation: glow 2.8s ease-in-out infinite; will-change: transform; }
.go-link:hover, .join-link:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .go-link, .join-link { animation: none; } }
.masthead { position: sticky; top: 0; z-index: 40; background: var(--card); border-bottom: 1px solid var(--stroke); }
.masthead__bar { max-width: calc(var(--measure) + var(--gap) * 2); margin: 0 auto; height: 66px; display: flex; align-items: center; gap: 16px; padding: 0 var(--gap); }
.wordmark img { height: 44px; width: auto; }
.panel-check { position: absolute; opacity: 0; pointer-events: none; }
.panel-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--stroke); border-radius: 10px; background: var(--card-2); flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; cursor: pointer; }
.panel-btn span { display: block; height: 2px; background: var(--paper); }
.trail__list { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.trail__list li { margin: 0; }
.trail__go { display: block; padding: 8px 4px; border: 0; border-radius: 0; background: transparent; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.trail__go:hover { color: var(--amber); }
.trail__actions { display: none; }
.desk-actions { margin-left: auto; display: flex; gap: 8px; }
.enter-link, .join-link, .go-link, .soft-link, .device-link { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 700; }
.enter-link, .join-link { height: 40px; padding: 0 16px; font-size: 14px; }
.enter-link { background: transparent; color: var(--amber); border: 1px solid var(--amber); }
.join-link, .go-link { background: linear-gradient(180deg, var(--teal-2), var(--teal)); color: #fff; border: 0; }
.go-link { min-height: 52px; margin: 8px auto 0; padding: 10px 22px; max-width: 320px; width: 100%; }
.soft-link { min-height: 48px; margin: 8px auto 0; padding: 10px 22px; max-width: 320px; width: 100%; background: transparent; color: var(--paper); border: 1px solid var(--amber); }
.intro { text-align: center; padding: 24px 0 8px; }
.intro__banner { display: block; margin: 0 auto 16px; border-radius: var(--round); overflow: hidden; }
.intro__banner img, .banner-mid img { width: 100%; }
.intro__text { text-align: left; }
.banner-mid { margin: 8px 0 28px; }
.banner-mid img { border-radius: var(--round); }
.snapshot, .prose, .playerbox, .asklist { margin: 0 0 32px; padding: 20px 20px 8px; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--round); min-width: 0; max-width: 100%; }
.snapshot__title, .align-mid { text-align: center; }
.hscroll { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hscroll table { width: 100%; min-width: 0; margin-bottom: 18px; }
table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
th, td { border: 1px solid var(--stroke); padding: 10px 12px; text-align: center; font-size: 14px; }
th { background: var(--card-2); }
td { background: #10192b; }
.narrow { table-layout: fixed; width: 100%; min-width: 0; }
.narrow th:first-child, .narrow td:first-child { width: 22%; white-space: normal; }
.switcher { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; }
.switcher__btn { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 10px; border: 1px solid var(--stroke); background: var(--card-2); color: var(--paper); font-weight: 700; text-decoration: none; }
.switcher__btn.shown, .switcher__btn:hover { border-color: var(--amber); }
.deck { display: none; }
.deck.shown { display: block; }
.thumb-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.thumb { display: block; color: inherit; }
.thumb__img { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 360 / 472; background: #10192b; }
.thumb__img img { width: 100%; height: 100%; object-fit: cover; }
.thumb__cap { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; }
.thumb--flat .thumb__img { aspect-ratio: 2 / 1; background: #243656; }
.thumb--flat .thumb__img img { object-fit: contain; padding: 8px; }
.thumb--flat .thumb__cap { text-align: center; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.twocol__col { padding: 16px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--stroke); }
.twocol__col ul { list-style: none; padding: 0; margin: 0; }
.twocol__col li { padding-left: 16px; position: relative; }
.twocol__plus li::before, .twocol__minus li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; }
.twocol__plus li::before { background: #4cc98a; }
.twocol__minus li::before { background: #d9534f; }
.playerbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px; border-radius: 10px; background: var(--card-2); }
.playerbox__num { font-size: 28px; font-weight: 700; }
.playerbox__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.note { padding: 14px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--stroke); }
.note strong { display: block; }
.note small { color: var(--fog); }
.asklist__row { padding: 14px 0; border-top: 1px solid var(--stroke); }
.asklist__row h3 { font-size: 18px; }
.stamp-line { margin: 0 0 20px; padding: 14px 16px; border-radius: var(--round); border: 1px solid var(--stroke); background: var(--card); color: var(--fog); }
.footing { background: var(--card); border-top: 1px solid var(--stroke); }
.footing__top { display: flex; justify-content: space-between; gap: 28px; padding: 28px 0; }
.footing__top, .footing__fine { max-width: calc(var(--measure) + var(--gap) * 2); margin-left: auto; margin-right: auto; padding-left: var(--gap); padding-right: var(--gap); }
.bubbles, .devices, .stamps, .coins { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bubbles { margin: 12px 0; }
.bubbles .press { width: 34px; height: 34px; border-radius: 0; border: 0; border-bottom: 2px solid var(--amber); background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.bubbles svg { width: 16px; height: 16px; fill: var(--paper); }
.device-link { height: 34px; padding: 0 12px; border: 1px solid var(--amber); color: var(--amber); font-size: 13px; }
.stamps { margin-top: 28px; }
.stamps img { height: 40px; width: auto; }
.age18 { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #ff6b6b; color: #ff6b6b; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.coins { justify-content: center; padding: 16px var(--gap); border-top: 1px solid var(--stroke); }
.coins img { height: 26px; width: auto; }
.menupair { display: flex; gap: 40px; }
.menupair ul { list-style: none; margin: 0; padding: 0; }
.footing__fine { border-top: 1px solid var(--stroke); text-align: center; color: var(--fog); font-size: 12px; padding-bottom: 18px; padding-top: 16px; }
@media (max-width: 1100px) { .thumb-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) {
  .panel-btn { display: flex; }
  .desk-actions { order: 2; }
  .trail { display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--card); border-bottom: 1px solid var(--stroke); padding: 12px var(--gap) 16px; }
  .panel-check:checked ~ .trail { display: block; }
  .trail__list { flex-direction: column; }
  .trail__actions { display: flex; gap: 8px; margin-top: 12px; }
  .trail__actions .enter-link, .trail__actions .join-link { flex: 1; }
  .twocol, .playerbox__list, .footing__top { grid-template-columns: 1fr; }
  .footing__top { flex-direction: column; }
}
@media (max-width: 720px) {
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .thumb-grid { grid-template-columns: repeat(3, 1fr); }
  .playerbox__bar { flex-direction: column; align-items: flex-start; }
  .hscroll table { min-width: 640px; }
  .hscroll th, .hscroll td { white-space: nowrap; }
  th, td { font-size: 13px; padding: 8px; }
}
@media (max-width: 480px) {
  .thumb-grid { grid-template-columns: repeat(2, 1fr); }
  .wordmark img { height: 34px; }
  .enter-link, .join-link { padding: 0 10px; font-size: 13px; }
}
