@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=DotGothic16&family=Klee+One:wght@400;600&family=Zen+Kaku+Gothic+New:wght@400;500;700&family=Zen+Old+Mincho:wght@400;600;700&display=swap');

:root {
  color-scheme: dark;
  --night: #090c19;
  --indigo: #20294f;
  --violet: #64549b;
  --cyan: #13bfd1;
  --silver: #d5d8f3;
  --muted: #aab1d0;
  --rule: #3c4566;
  --mincho: "Zen Old Mincho", "Yu Mincho", serif;
  --english: "Cinzel", Georgia, serif;
  --body: "Zen Kaku Gothic New", system-ui, sans-serif;
  --hand: "Klee One", "Yu Mincho", serif;
  --system: "DotGothic16", monospace;
  background: var(--night);
  color: var(--silver);
  font: 16px/1.65 var(--body);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, h4, p, dl, dd { margin: 0; }
html, body { touch-action: manipulation; }
img { max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: .26em; }
a:hover { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.shell { width: min(100% - 2rem, 66rem); margin-inline: auto; }
h1, h2, h3 { font-family: var(--mincho); line-height: 1.3; }

.masthead { position: sticky; top: 0; z-index: 8; border-bottom: 1px solid var(--rule); background: var(--night); }
.header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: 54px; }
.header-inner .wordmark { grid-area: 1 / 1; justify-self: start; }
.header-inner .header-hole { grid-area: 1 / 2; }
.header-inner .site-nav { grid-area: 2 / 1 / 3 / -1; justify-self: center; }
.sound-toggle { grid-area: 1 / 3; justify-self: end; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--silver); }
.sound-toggle[aria-pressed="true"] .sound-muted, .sound-toggle[aria-pressed="false"] .sound-waves { display: none; }
.wordmark img { width: 36px; height: 36px; }
.wordmark { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; white-space: nowrap; font: 700 1.18rem var(--mincho); }
.site-nav {
  display: flex;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.site-nav a {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 2px .7rem 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: 600 .92rem var(--english);
  letter-spacing: .045em;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--silver); }
.site-nav a:focus-visible { outline-offset: -3px; }
.site-nav a[aria-current] { border-color: var(--cyan); color: var(--silver); background: #20294f70; }

.hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--rule); overflow: hidden; background: #10162b; }
.hero-starlight { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; pointer-events: none; }
.hero::before, .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero::before {
  background:
    radial-gradient(circle at 22% 26%, #9fc4ef 0 1px, transparent 1.7px) 37px 5px / 164px 93px,
    radial-gradient(circle at 62% 61%, #728dc0 0 1px, transparent 1.5px) 4px 11px / 127px 111px;
  opacity: .32;
}
.hero::after {
  background:
    radial-gradient(circle at 74% 31%, #d9e5ff 0 1.35px, #8499d27a 2.5px, transparent 5px) 15px 8px / 209px 103px,
    radial-gradient(circle at 44% 74%, #9cc0f9 0 .7px, transparent 1.7px) 42px 0 / 181px 137px;
  opacity: .27;
}
.hero.hero-video-playing::before, .hero.hero-video-playing::after { display: none; }
.hero.hero-in-motion:not(.hero-video-playing)::before { animation: hero-starlight-fallback 5.2s ease-in-out infinite alternate; }
.hero.hero-in-motion:not(.hero-video-playing)::after { animation: hero-starlight-fallback 4s -2.1s ease-in-out infinite alternate; }
@keyframes hero-starlight-fallback {
  from { opacity: .17; }
  to { opacity: .67; }
}
@media (prefers-reduced-motion: reduce) {
  .hero.hero-in-motion::before, .hero.hero-in-motion::after { animation: none; }
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.01fr); align-items: center; min-height: 25rem; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--muted); font-size: .8rem; letter-spacing: .18em; }
.hero h1 { font-size: clamp(3.2rem, 7vw, 6.1rem); font-weight: 700; letter-spacing: .1em; margin: .35rem 0 .85rem; }
.motto { font: 600 clamp(1rem, 2.5vw, 1.6rem) var(--hand); color: #a5e7ec; letter-spacing: .09em; }
.hero-map { display: grid; place-items: center; position: relative; isolation: isolate; }
.star-chart { width: 100%; height: auto; }
.hero-logo { position: absolute; width: 39%; height: auto; }
.page { min-height: 67vh; padding-block: clamp(.8rem, 3vw, 2.2rem) 1.5rem; }
.page-heading { padding-bottom: .65rem; margin-bottom: .9rem; border-bottom: 1px solid var(--rule); }
.page-heading p { color: #98dce9; font: 600 .78rem var(--english); letter-spacing: .1em; }
.page-heading h1 { margin-top: .22rem; font-size: clamp(1.5rem, 5vw, 2.65rem); }
.about-content { max-width: 44rem; }
.about-lead { font-size: 1.04rem; margin-bottom: .85rem; }
.about-section { border-top: 1px solid var(--rule); padding-block: .8rem; }
.about-section h2 { font-size: 1.13rem; margin-bottom: .34rem; }
.about-section .section-heading { flex-wrap: wrap; gap: .18rem .8rem; margin-bottom: .4rem; }
.about-section .section-heading :is(h2, h3) { margin: 0; }
.reward-goods .section-heading { display: grid; }
.about-section a { display: inline-block; margin-top: .35rem; }
.about-section img { width: 80px; height: auto; display: block; margin-top: .38rem; }
.house-rules { display: grid; gap: .35rem; margin-block: .4rem; }
.house-rules div { display: grid; grid-template-columns: 2.8rem 1fr; gap: .45rem; }
.house-rules dt { color: #98dce9; }
.sheet-heading { margin-block: .7rem .25rem; font-size: .95rem; }
dialog .explorer-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: .25rem .6rem; }
dialog .explorer-stats div { justify-content: space-between; border-bottom: 1px solid var(--rule); padding-block: .17rem; }

.stream-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 23rem);
  margin-block: 1rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.stream-tabs a {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: .45rem .65rem;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: 600 .92rem/1.4 var(--english);
  letter-spacing: .08em;
  text-decoration: none;
}
.stream-tabs a:hover { color: var(--silver); }
.stream-tabs a[aria-current="page"] {
  border-bottom-color: var(--cyan);
  background: linear-gradient(to top, var(--indigo), transparent);
  color: var(--silver);
}

.tv-layout { display: grid; gap: .85rem; align-items: start; }
@media (min-width: 48rem) {
  .tv-layout {
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
    grid-template-rows: auto 1fr;
    gap: 1rem 1.25rem;
  }
  .tv-layout .tv-monitor { grid-area: 1 / 1; }
  .tv-layout .tv-lineup {
    grid-area: 1 / 2 / span 2;
    padding: .8rem;
    border: 1px solid var(--rule);
  }
  .tv-layout .tv-upcoming { grid-area: 2 / 1; margin-top: 0; }
  .tv-upcoming-list li {
    display: grid;
    grid-template-columns: minmax(11rem, .85fr) minmax(0, 1.4fr);
    gap: .65rem 1rem;
    align-items: baseline;
  }
}
.tv-screen {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border: 1px solid #7580aa;
  background: #070b18 url('./assets/star-chart.svg?v=glimmer-1') center / auto 105% no-repeat;
}
.tv-screen iframe { display: block; width: 100%; height: 100%; border: 0; background: #070b18; }
.tv-standby { background: #090c19; padding: .32rem .75rem; color: #98dce9; border: 1px solid var(--rule); font: .86rem var(--system); letter-spacing: .18em; }
.tv-controls { padding: .55rem .18rem .08rem; font-size: .82rem; display: flex; flex-wrap: wrap; gap: .35rem .7rem; justify-content: space-between; overflow-wrap: anywhere; }
.tv-controls a { color: #a5e7ec; }
.tv-stream-sound {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .2rem .6rem;
  border: 1px solid var(--rule);
  border-radius: .65rem;
  background: var(--night);
  color: var(--silver);
}
.tv-stream-sound-state {
  min-width: 2.5rem;
  padding: .15rem .35rem;
  border-radius: 1rem;
  background: var(--rule);
  text-align: center;
  font: 600 .75rem/1.4 var(--english);
}
.tv-stream-sound[aria-pressed="true"] {
  border-color: var(--cyan);
}
.tv-stream-sound[aria-pressed="true"] .tv-stream-sound-state {
  background: #174053;
  color: #a5e7ec;
}
.tv-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .65rem; }
.tv-channel { border-top: 1px solid var(--rule); padding: .53rem 0; min-width: 0; }
.tv-channel h2 { font-size: .9rem; margin-bottom: .25rem; }
.tv-channel ul { list-style: none; margin: 0; padding: 0; }
.tv-choice { width: 100%; padding: .4rem; border: 0; border-left: 2px solid var(--rule); background: transparent; text-align: left; font-size: .83rem; overflow-wrap: anywhere; }
.tv-choice[aria-pressed="true"] { border-left-color: var(--cyan); background: var(--indigo); }

.section { padding-block: clamp(1.35rem, 4vw, 2.7rem); border-bottom: 1px solid var(--rule); scroll-margin-top: .6rem; }
.section-heading { display: flex; gap: .8rem; align-items: baseline; margin-bottom: 1rem; }
.section-heading p { color: #98dce9; font: 600 .78rem var(--english); letter-spacing: .09em; }
.section-heading h2 { font-size: clamp(1.18rem, 3vw, 1.7rem); }
.note { color: var(--muted); font-size: .87rem; }
.footer { padding-block: 1.25rem; color: var(--muted); font: 600 .87rem var(--mincho); text-align: center; }
.footer > a { text-decoration: none; }
.footer-creator { display: block; margin-top: .12rem; font-size: .8em; font-weight: 400; }

.mirror-hint { margin: -.6rem 0 .7rem; font-size: .75rem; }
.member-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; }
.member { min-width: 0; text-align: center; }
.member h3 { display: grid; place-items: center; min-height: 2.45em; font-size: clamp(.81rem, 2.4vw, 1.16rem); overflow-wrap: anywhere; text-wrap: balance; }
.role { color: #aab9df; font: 600 .62rem var(--english); letter-spacing: .07em; }
.role.supporter { color: #bba7eb; }
.mirror {
  position: relative;
  display: block;
  width: min(100%, 146px);
  aspect-ratio: .75;
  margin: 0 auto .28rem;
  perspective: 620px;
  touch-action: pan-y pinch-zoom;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: grab;
}
.mirror:active { cursor: grabbing; }
.mirror-rotor { position: absolute; inset: 5% 7%; transform-style: preserve-3d; transform: rotateY(var(--angle, 0deg)); transition: transform .38s cubic-bezier(.2,.75,.25,1); pointer-events: none; }
.mirror-rotor.dragging { transition: none; }
.mirror-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid #a59bc8;
  outline: 1px solid #64549b;
  outline-offset: 3px;
  border-radius: 50%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: #20294f;
}
.mirror-face::after { content: ""; position: absolute; inset: -3% -4%; border: 1px solid #7a90bd65; border-radius: 50%; transform: rotate(12deg); }
.mirror-face.back { transform: rotateY(180deg); background: #332342; border-color: #ba9ace; }
.mirror-face img { width: 80%; height: 82%; object-fit: contain; position: relative; z-index: 1; }
.mirror-empty { padding: .2rem; color: var(--muted); font: 400 clamp(.55rem, 1.5vw, .72rem) var(--hand); overflow-wrap: anywhere; }

.goods-list, .results { list-style: none; padding: 0; margin: 0; }
.goods-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.goods-list li { border-top: 1px solid var(--rule); padding: .62rem 0; }
.goods-list img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; margin-bottom: .42rem; }
.goods-list h2 { font-family: var(--body); font-size: .88rem; }
.price { font-variant-numeric: tabular-nums; color: #a5e7ec; font-size: .85rem; }
.link-list { display: flex; gap: .4rem 1.15rem; flex-wrap: wrap; font-size: .9rem; }
.link-list a { display: inline-flex; min-height: 40px; align-items: center; }

#highlight { scroll-margin-top: 9rem; }
#highlight .tv-cabinet { width: min(100%, 44rem); margin-inline: auto; }
.tv-cabinet {
  padding: clamp(.45rem, 1.5vw, .85rem);
  border: 1px solid #596586;
  border-radius: .85rem;
  background: linear-gradient(145deg, #222b46, #121827);
  box-shadow: inset 0 1px #aab1d034, 0 .35rem .85rem #04061166;
}
.tv-cabinet .tv-screen { border: 1px solid #657396; border-radius: .48rem; overflow: hidden; }
.tv-cabinet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: .4rem;
  padding-inline: .2rem;
  font-size: .83rem;
}
.tv-cabinet-footer a { display: inline-flex; min-height: 44px; align-items: center; color: #a5e7ec; }
.tv-cabinet-speaker { width: 2.7rem; height: .55rem; background: repeating-linear-gradient(90deg, #7787ad 0 2px, transparent 2px 5px); opacity: .6; }
.tv-cabinet-speaker::before {
  content: '';
  display: block;
  width: .33rem;
  height: .33rem;
  margin-inline-start: 3.25rem;
  border-radius: 50%;
  background: #a5e7ec;
  box-shadow: 0 0 .35rem #79b5d8;
}
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .8rem; }
.archive-entry { border-top: 1px solid var(--rule); min-width: 0; padding: .7rem 0 .86rem; overflow-wrap: anywhere; }
.occupation { font-size: .82rem; color: var(--muted); }
.occupation { font-family: var(--hand); }
.status { font: 600 .66rem var(--english); color: var(--muted); }
.status.lost { color: #ef9bb3; }
.status.alive { color: #a5e7ec; }
.explorer-stats div { display: flex; gap: .55rem; font-size: .77rem; }
.explorer-stats dt { color: var(--muted); }

.season { border-top: 1px solid var(--rule); padding: .62rem 0; }
.season h3, .season h4 { margin-bottom: .45rem; }
.season svg { width: min(100%, 34rem); display: block; margin-block: .5rem; }
.season line { stroke: var(--rule); }
.season polyline { fill: none; stroke: var(--cyan); stroke-width: 2; }
.standings { display: flex; gap: 2rem; }
.standings dt { color: var(--muted); font-size: .78rem; }
.standings dd { font-size: 1.38rem; }
.score-positive { color: #7edec5; }
.score-negative { color: #ff9ba9; }
.results li { display: flex; align-items: baseline; gap: .45rem 1rem; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-block: .48rem; }

.weekly-results { margin-block: 0 1.35rem; }
.weekly-results h3 { display: inline; margin-inline-end: .75rem; }
.weekly-results time { color: var(--muted); font-size: .82rem; }
.weekly-results-cards {
  display: grid;
  gap: .65rem;
  list-style: none;
  margin: .65rem 0 0;
  padding: 0;
}
.weekly-result {
  --result-accent: #a5dce9;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(8rem, 3fr);
  align-items: stretch;
  min-height: 8rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-inline-start: 2px solid var(--result-accent);
  background: linear-gradient(125deg, #1a2038, #111525);
}
.weekly-result-top { --result-accent: #f4d38d; }
.weekly-result-last { --result-accent: #e69eae; }
.weekly-result-art {
  position: relative;
  display: grid;
  place-items: end center;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 55%, #36445d, transparent 74%);
}
.weekly-result-top .weekly-result-art {
  background: radial-gradient(ellipse at 50% 70%, #715737, transparent 78%);
}
.weekly-result-last .weekly-result-art {
  background: radial-gradient(ellipse at 50% 80%, #5a2939, #111321 75%);
}
.weekly-result-art img {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}
.weekly-result-details {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: .15rem;
  padding: .7rem clamp(.65rem, 2vw, 1.3rem);
}
.weekly-result-details strong { font-size: clamp(.95rem, 2.2vw, 1.22rem); }
.weekly-result-match { color: var(--muted); font-size: .75rem; }
.weekly-result-place { color: var(--result-accent); font-weight: 700; }
.weekly-result-details > :last-child { font-variant-numeric: tabular-nums; }
.weekly-result-effect {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.weekly-result-top .weekly-result-effect {
  background:
    radial-gradient(circle at 15% 42%, #fff5cf 0 2px, transparent 3px),
    radial-gradient(circle at 81% 30%, #f9d48b 0 2px, transparent 3px),
    radial-gradient(circle at 32% 18%, #fff5cf 0 1px, transparent 2px),
    radial-gradient(circle at 68% 55%, #fff5cf 0 2px, transparent 3px),
    radial-gradient(circle at 84% 66%, #f9d48b 0 1px, transparent 2px),
    radial-gradient(circle at 10% 70%, #f9d48b 0 1px, transparent 2px),
    radial-gradient(ellipse at center, #f1bd5355, transparent 70%);
}
.weekly-result-last .weekly-result-effect {
  background: repeating-radial-gradient(ellipse at 50% 72%,
    transparent 0 12px, #ad496655 13px 14px, transparent 15px 23px), #1a0e1cbb;
}
@media (min-width: 43rem) {
  .weekly-results-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-result { min-height: 10rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .weekly-result-top.result-in-view .weekly-result-effect { animation: weekly-stars 1.45s ease-out; }
  .weekly-result-top.result-in-view .weekly-result-details .score-positive { animation: weekly-score 1.45s ease-out; }
  .weekly-result-last.result-in-view .weekly-result-effect { animation: weekly-ripples 1.6s ease-out; }
}
@keyframes weekly-stars {
  0% { opacity: 0; transform: translateY(10%) scale(.75); }
  33% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10%) scale(1.18); }
}
@keyframes weekly-score {
  32% { color: #fff3cf; text-shadow: 0 0 .65rem #f8ca70; }
}
@keyframes weekly-ripples {
  0% { opacity: 0; transform: translateY(-8%); }
  32% { opacity: 1; }
  100% { opacity: 0; transform: translateY(30%); }
}

dialog { width: min(100% - 2rem, 36rem); max-height: 86dvh; padding: 1.3rem; border: 1px solid #8c83b0; background: #161d36; color: var(--silver); }
dialog::backdrop { background: #040611c9; }
dialog h2 { padding-right: 2.1rem; margin-bottom: .6rem; }
dialog img { display: block; height: auto; margin-top: .7rem; }
.dialog-close { position: absolute; right: .4rem; top: .35rem; background: none; border: 0; width: 44px; height: 44px; font-size: 1.3rem; }

#intro { position: fixed; inset: 0; overflow: hidden; overscroll-behavior: none; }
#intro { z-index: 30; display: grid; place-items: center; text-align: center; background: #e4e4e4; color: #222; }
.intro-content { display: grid; justify-items: center; gap: .75rem; }
.intro-content p { font: 600 1.35rem var(--hand); }
@keyframes intro-out { to { opacity: 0; } }

.header-hole { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; touch-action: manipulation; }
.singularity { display: block; position: relative; width: 66%; aspect-ratio: 1; background: #000; border-radius: 48% 52% 45% 55%; transform: rotate(-19deg) scaleY(.82); }
.header-hole .singularity { width: 19px; }
.abyss-dialog { position: fixed; inset: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; border: 0; background: rgb(18 18 18 / calc(.84 + var(--depth, 0) * .053)); color: #dedede; padding: 1rem; overflow: hidden; }
.abyss-dialog::backdrop { background: transparent; }
.abyss-dialog[open] { display: grid; place-items: center; }
body:has(.abyss-dialog[open]) { overflow: hidden; }
.abyss-center { position: absolute; inset: 0; display: grid; place-items: center; }
.abyss-center .singularity { width: min(calc(6rem + var(--depth, 0) * 3rem), 64vw); transition: width .4s; }
.abyss-center p { position: absolute; inset: auto 1rem calc(50% - 8.6rem); text-align: center; font: 600 1.12rem var(--hand); }
.abyss-choices { position: absolute; top: calc(50% + 8.6rem); display: flex; gap: 1rem; }
.abyss-confirm { min-height: 44px; border: 0; background: transparent; text-decoration: underline; }
@media (max-width: 48rem) {
  .member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem .55rem; }
}
@media (max-width: 39rem) {
  .header-inner { gap: 0; padding-top: .22rem; }
  .header-inner .site-nav { justify-self: stretch; }
  .wordmark { min-height: 42px; }
  .wordmark img { width: 34px; height: 34px; }
  .site-nav a { padding-inline: .65rem; font-size: .88rem; letter-spacing: 0; }
  .hero-inner { min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, .91fr); padding-block: .7rem; }
  .hero h1 { font-size: clamp(1.75rem, 7.5vw, 3rem); letter-spacing: .045em; margin: .2rem 0 .55rem; }
  .eyebrow { font-size: clamp(.6rem, 2.5vw, .78rem); letter-spacing: .06em; }
  .motto { font-size: clamp(.72rem, 2.95vw, 1.05rem); letter-spacing: .015em; }
  .hero-logo { width: 59%; }
  .goods-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mirror { width: min(100%, 112px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.member .role.leader { color: #a5e7ec; }
.member-epithet {
  display: grid;
  align-items: center;
  min-height: 2.7em;
  font: 600 clamp(.64rem, 1.65vw, .79rem)/1.3 var(--hand);
  color: #bba7eb;
  text-wrap: balance;
}
.member-social { display: flex; justify-content: center; gap: .16rem .45rem; flex-wrap: wrap; font-size: .72rem; }
.member-social a { display: inline-flex; align-items: center; min-height: 29px; color: #a5e7ec; }
dialog .member-social { justify-content: flex-start; font-size: .88rem; }
.tv-lineup { min-width: 0; }
.tv-lineup h2 { font-size: 1rem; margin-bottom: .45rem; }
.tv-live-list { padding: 0; margin: 0 0 .55rem; list-style: none; }
.tv-live-badge { display: inline-block; margin-right: .45em; color: #ffa9bb; font: .68rem var(--system); }

.quick-menu {
  position: fixed;
  z-index: 3;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(.8rem, env(safe-area-inset-bottom));
  min-height: 44px;
  border: 1px solid #777fa7;
  background: var(--indigo);
  color: var(--silver);
  padding: .35rem .75rem;
  font: 600 .92rem var(--english);
  letter-spacing: .045em;
}
.footer { padding-bottom: 4rem; }
.quick-menu-dialog { inset: auto max(1rem, env(safe-area-inset-right)) max(.8rem, env(safe-area-inset-bottom)) auto; margin: 0; width: min(100% - 2rem, 25rem); padding: .8rem; }
.quick-menu-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
.quick-menu-links a { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--rule); font: 600 .91rem var(--english); text-decoration: none; }
.quick-menu-links a[aria-current] { border-color: var(--cyan); color: #a5e7ec; }

dialog .explorer-stats div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: .3rem; row-gap: .24rem; }
.sheet-bar { grid-column: 1 / -1; display: block; height: 4px; background: #343a62; }
.sheet-bar > span { display: block; height: 100%; background: #78c4d8; }
.goods-list img { aspect-ratio: 16 / 9; }

.tv-live-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .32rem; }
.tv-live-list .tv-choice { min-height: 44px; height: 100%; border: 1px solid var(--rule); font: 600 .78rem var(--english); }
.tv-live-list .tv-choice[aria-pressed="true"] { border-color: var(--cyan); }
.tv-live-list .tv-live-badge { margin: 0 0 0 .42rem; }
.tv-opening { display: grid; place-items: center; align-content: center; gap: .25rem; width: 100%; height: 100%; }
.tv-opening img { width: min(29%, 138px); }
.tv-opening p { color: #a5e7ec; font: 600 clamp(.75rem, 3vw, 1.25rem) var(--hand); }
.tv-opening img, .tv-opening p { animation: tv-opening 6s ease-in-out infinite; }
@keyframes tv-opening { 0%, 100% { opacity: .2; transform: scale(.97); } 22%, 83% { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .tv-opening img, .tv-opening p { animation: none; }
}

.roaming-cat {
  position: fixed;
  z-index: 2;
  left: .6rem;
  bottom: max(.55rem, env(safe-area-inset-bottom));
  width: clamp(4rem, 19vw, 5.4rem);
  max-width: none;
  pointer-events: none;
  animation: cat-route 24s linear infinite;
}
.roaming-cat img {
  display: block;
  width: 100%;
  animation: cat-stride 24s linear infinite;
}
@keyframes cat-route {
  0%, 12%, 100% { left: .6rem; transform: translateY(0); }
  26%, 32% { left: 35%; transform: translateY(-1.4rem); }
  42%, 60% { left: calc(100% - 9rem); transform: translateY(-.45rem); }
  72%, 76% { left: 24%; transform: translateY(-2rem); }
  88% { left: .6rem; transform: translateY(0); }
}
@keyframes cat-stride {
  0%, 41% { transform: scaleX(-1); }
  42%, 100% { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .roaming-cat, .roaming-cat img { animation: none; }
}

dialog #dialogBody > img, .explorer-introduction > img { max-height: 45vh; margin-inline: auto; object-fit: contain; }
#intro.revealing { background: var(--night) url('./assets/star-chart.svg?v=glimmer-1') center / min(90%, 31rem) auto no-repeat; color: var(--silver); animation: intro-out .35s 1.7s both; }
.intro-content { perspective: 500px; }
.intro-content img { animation: intro-logo .8s .42s both; }
.intro-content .intro-call { display: flex; gap: .16em; align-items: baseline; font-size: clamp(1.45rem, 8vw, 2.65rem); }
.intro-call span { display: block; animation: intro-syllable .48s both; }
.intro-call span:nth-child(2) { animation-delay: .22s; color: #a5e7ec; }
.intro-call span:nth-child(3) { animation-delay: .44s; }
@keyframes intro-syllable {
  from { opacity: 0; transform: translateY(.65em) rotate(-13deg) scale(.72); }
  60% { opacity: 1; transform: translateY(-.14em) rotate(4deg) scale(1.12); }
  to { opacity: 1; transform: none; }
}
@keyframes intro-logo {
  from { opacity: 0; transform: rotateY(-95deg) scale(.72); }
  to { opacity: 1; transform: none; }
}

.roaming-cat { pointer-events: auto; border: 0; background: transparent; padding: 0; min-height: 44px; }
.roaming-cat:focus-visible, .roaming-cat:focus-visible img { animation-play-state: paused; }
.cat-speech:not(:empty) { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--night); color: var(--silver); border: 1px solid var(--rule); padding: .15rem .42rem; }

.goods-thumbnail { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
#goodsDialog { width: min(100% - 1rem, 68rem); }
#goodsPreview { width: 100%; max-height: 65dvh; object-fit: contain; }
.expression-choice { padding: .45rem .7rem; border: 1px solid var(--rule); background: var(--indigo); }

.content-dialog { padding: 0; overflow: hidden; }
.content-dialog[open], .quick-menu-dialog[open] { display: flex; flex-direction: column; }
.dialog-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 1.15rem; }
.dialog-dismiss { order: 1; flex: 0 0 auto; display: grid; place-items: center; padding: .45rem .5rem max(.48rem, env(safe-area-inset-bottom)); }
.dialog-dismiss .dialog-close {
  position: static;
  border-radius: 50%;
  border: 1px solid #8b99c397;
  background: #a1accf2b;
  color: #fff;
  line-height: 1;
  font-size: 1.6rem;
}
.mirror-explorer-glass { position: absolute; inset: 0; display: grid; place-items: center; clip-path: ellipse(50% 50%); }
.mirror-explorer-crop { position: relative; display: block; width: 84%; height: 79%; overflow: hidden; }
.mirror-explorer-crop img {
  position: absolute;
  top: var(--portrait-top, 0%);
  left: 50%;
  width: auto;
  max-width: none;
  height: var(--portrait-height, 195%);
  transform: translateX(var(--portrait-center, -50%));
}

.intro-open { overflow: hidden; }
#introQuestion, #introReveal { display: grid; justify-items: center; gap: .8rem; }
#introQuestion { position: absolute; top: calc(50% + 3.6rem); left: 50%; width: min(90vw, 24rem); transform: translateX(-50%); }
#intro.unlocked .intro-content { min-width: 7.5rem; min-height: 7.5rem; }
.abyss-return {
  background: #181818;
  border: 1px solid #777;
  padding: .35rem .9rem;
  min-height: 44px;
}
.intro-hole { width: clamp(4rem, 22vw, 7rem); font-size: 3rem; }
.abyss-return {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(.6rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  font-size: .8rem;
  white-space: nowrap;
}


.about-section h3 { margin-top: 1.15rem; font-size: 1.05rem; }

.reward-timeline { list-style: none; margin: .8rem 0; padding: 0 0 0 1.55rem; }
.reward-timeline > li { position: relative; padding: .15rem 0 .9rem 1rem; border-left: 1px solid var(--rule); }
.reward-timeline > li:last-child { border-color: transparent; padding-bottom: .25rem; }
.reward-timeline > li::before { content: ""; position: absolute; left: -.36rem; top: .32rem; width: .65rem; height: .65rem; border-radius: 50%; border: 1px solid #a5e7ec; background: var(--indigo); box-shadow: 0 0 0 3px var(--night); }
.reward-timeline > li p { font-weight: 700; }
.reward-milestone { color: #a5e7ec; font-size: .82rem; }
.reward-timeline ul { padding-inline-start: 1.15rem; }

.gallery-nav { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .9rem; }
.gallery-nav a { display: grid; place-items: center; min-height: 40px; padding-inline: .85rem; border: 1px solid var(--rule); color: var(--silver); font: 600 .85rem var(--english); text-decoration: none; }
.gallery-nav a[aria-current] { color: #a5e7ec; border-color: var(--cyan); background: var(--indigo); }
.gallery-caption { margin-bottom: .85rem; }
.gallery-caption a { color: #a5e7ec; }
#fan-support { scroll-margin-top: 10rem; }
.goods-tags { display: flex; flex-wrap: wrap; gap: .28rem; margin-block: .27rem; }
.goods-status {
  display: inline-flex;
  align-items: center;
  gap: .37em;
  padding: .1rem .42rem;
  border: 1px solid #414d6b;
  border-radius: .16rem;
  background: #12192a;
  color: #aab7d6;
  font: 700 .7rem/1.45 var(--body);
  letter-spacing: .02em;
}
.goods-status::before {
  content: '';
  width: .33em;
  height: .33em;
  flex: none;
  border: 1px solid currentColor;
}
.goods-status-reward { border-color: #a78b5a; background: #3b3025; color: #efcf90; }
.goods-status-reward::before { transform: rotate(45deg); background: currentColor; }
.goods-shop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
  margin-bottom: 1rem;
  padding: .8rem 1rem;
  border: 1px solid var(--rule);
  background: var(--indigo);
}
.goods-shop a {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 44px;
  padding: .25rem .7rem;
  border: 1px solid var(--cyan);
  color: #a5e7ec;
  font-weight: 700;
}
.goods-shop a:hover { background: var(--night); }
.gallery-panel { min-height: 11rem; }
.gallery-expand-all {
  min-height: 44px;
  margin-block: .4rem .65rem;
  padding-inline: .9rem;
  border: 1px solid var(--rule);
  background: var(--indigo);
  color: #a5e7ec;
  font: 600 .86rem var(--body);
}
.gallery-expand-all:hover { border-color: var(--cyan); }
.gallery-panel .goods-thumbnail { border: 1px solid var(--rule); background: #161c34; }
.gallery-panel .goods-thumbnail img { margin: 0; }
.gallery-panel .goods-list h2 { margin-top: .42rem; }
.art-groups { list-style: none; margin: 0; padding: 0; }
.art-group { border-block-start: 1px solid var(--rule); }
.art-group summary { cursor: pointer; padding: .75rem .35rem; }
.art-group .art-list { margin-bottom: 1rem; }
.art-list .artwork-image img { height: auto; aspect-ratio: auto; }
@media (max-width: 39rem) {
  .art-group .art-list { display: block; column-count: 2; column-gap: .75rem; }
  .art-list > li { break-inside: avoid; padding-block: .45rem; }
  .art-mobile-column-end { break-after: column; }
}
@media (width > 39rem) {
  .art-group .art-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 1rem;
    align-items: start;
  }
  .art-group .art-list.art-balanced { grid-auto-rows: 4px; grid-auto-flow: dense; }
  .art-list > li { min-width: 0; padding-bottom: .75rem; }
  .art-balanced > li { grid-row-end: span var(--art-rows, 1); }
  .gallery-panel .artwork-image { width: fit-content; max-width: min(100%, 19rem); margin-inline: auto; }
  .art-list .artwork-image img { width: auto; max-width: 100%; max-height: 25rem; }
}

.explorer-file-header { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .75rem; }
.san-ring {
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 4.65rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, #161d36 86%, transparent 90%), conic-gradient(#a993ed var(--san), #414b72 0);
  line-height: 1.12;
}
.san-ring span { font-size: .72rem; }
.san-ring strong { font-size: 1.6rem; }
.san-ring.san-zero { color: #ff8299; box-shadow: inset 0 0 0 2px #d55471; }
dialog .explorer-stats.attributes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
dialog .explorer-stats.attributes div { display: block; text-align: center; padding: .3rem .15rem; }
.attributes dd { font-size: 1.05rem; font-weight: 700; }
dialog .explorer-stats.skill-values { grid-template-columns: 1fr; }
dialog .explorer-stats.skill-values div { grid-template-columns: minmax(6rem, 1fr) minmax(2.5rem, 1fr) auto; align-items: center; }
.skill-values dt { grid-column: 1; }
.skill-values dd { grid-column: 3; grid-row: 1; min-width: 1.5rem; text-align: right; }
.skill-values .sheet-bar { grid-column: 2; grid-row: 1; }
.explorer-file-profile { margin-block: .85rem; white-space: pre-line; }
.match-archive { margin-top: .65rem; }
.match-archive summary { padding-block: .55rem; }
.past-results-link { display: inline-block; margin-top: .65rem; }

.archive-filters {
  display: grid;
  gap: .85rem;
  margin-bottom: 1rem;
  padding: .9rem;
  border: 1px solid var(--rule);
  background: #111629;
}
.archive-filters h3 {
  margin-bottom: .4rem;
  color: #98dce9;
  font-size: .9rem;
}
.archive-filters .gallery-nav { margin: 0; padding: 0; list-style: none; }
.archive-filters .season-nav a, .archive-tabs button {
  min-height: 44px;
  padding: .28rem .65rem;
  font: 600 .86rem/1.4 var(--body);
}
.archive-tabs button { border: 1px solid var(--rule); border-radius: .75rem; background: transparent; }
.archive-tabs button[aria-pressed="true"] { color: #a5e7ec; border-color: var(--cyan); background: var(--indigo); }
.archive-selection { margin-bottom: .6rem; color: var(--muted); font-size: .85rem; }
.archive-videos { list-style: none; padding: 0; margin: 0; }
.archive-videos > li { border-top: 1px solid var(--rule); }
.archive-video-row { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; justify-content: space-between; min-height: 44px; padding-block: .35rem; }
.archive-views { padding-bottom: .45rem; font-size: .88rem; }
.archive-views summary { min-height: 32px; padding-block: .3rem; cursor: pointer; color: #98dce9; }
.archive-views ul { margin: .15rem 0 .4rem; padding-inline-start: 1.15rem; }
.archive-views li + li { margin-top: .4rem; }
.archive-videos time { color: var(--muted); font-size: .83rem; }

#introGate { position: relative; display: grid; place-items: center; min-width: 7.5rem; min-height: 7.5rem; border: 0; padding: 0; background: transparent; }
#introGate { border-radius: 50%; -webkit-tap-highlight-color: transparent; }
#introGate:focus { outline: none; }
.intro-tap {
  position: absolute;
  left: 50%;
  top: 50%;
  color: #fff;
  font: 600 .82rem var(--english);
  letter-spacing: .25em;
  transform: translate(-50%, -50%);
  animation: intro-tap 2.4s ease-in-out infinite;
}
@keyframes intro-tap {
  0%, 100% { opacity: .23; transform: translate(-50%, -38%); }
  50% { opacity: 1; transform: translate(-50%, -66%); }
}
@media (prefers-reduced-motion: reduce) {
  .intro-tap { animation: none; }
}

.intro-content { position: relative; isolation: isolate; }
.intro-hole-backdrop {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#intro.revealing .intro-hole-backdrop { visibility: hidden; }
.intro-choices { display: flex; gap: .75rem; }
.intro-choices button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  padding: .2rem .5rem;
  background: none;
  color: inherit;
  text-underline-offset: .28em;
  text-decoration: underline;
}
.cheer-archive { border-block: 1px solid var(--rule); }
.cheer-archive + .cheer-archive { border-top: 0; }
.cheer-archive > summary { padding-block: .6rem; cursor: pointer; color: #a5e7ec; }

.archive-explorer { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: start; cursor: pointer; }
.archive-explorer img { display: block; width: 100%; height: 11rem; object-fit: contain; }
.archive-pc { display: block; padding-block: .35rem; font: 600 clamp(.98rem, 3vw, 1.28rem) var(--mincho); }
.protected-image { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.artwork-image { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.gallery-panel :is(.artwork-image, .comic-thumbnail),
#goodsDialog:is(.art-preview, .comic-preview) #goodsPreview {
  --frame-corner: radial-gradient(circle, #cfb37e 0 1px, #756143 1px 2px, transparent 2.25px);
  --frame-corner-size: 7px 7px;
  padding: clamp(.3rem, 1vw, .62rem);
  border: 2px solid #a48a60;
  border-radius: 2px;
  background:
    var(--frame-corner) top left / var(--frame-corner-size) no-repeat,
    var(--frame-corner) top right / var(--frame-corner-size) no-repeat,
    var(--frame-corner) bottom left / var(--frame-corner-size) no-repeat,
    var(--frame-corner) bottom right / var(--frame-corner-size) no-repeat,
    #12182b;
  box-shadow: inset 0 0 0 1px #63523b, inset 0 0 0 3px #a48a602a, 0 1px 3px #050710b0;
}
.gallery-panel :is(.artwork-image, .comic-thumbnail) img { border: 1px solid #b6a17a66; }
.gallery-panel .artwork-image:focus-visible { outline-offset: 3px; }
#goodsDialog.art-preview .dialog-scroll { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#goodsDialog.art-preview #goodsPreview {
  display: block;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  pointer-events: none;
}
.artwork-image img { display: block; width: 100%; object-fit: contain; pointer-events: none; }

.mirror-side { position: absolute; z-index: 2; inset: auto 0 0; justify-self: center; width: max-content; max-width: 100%; padding: .08rem .35rem; border: 1px solid #a59bc8; border-radius: 1rem; background: var(--night); color: var(--silver); font-size: .65rem; line-height: 1.4; pointer-events: none; }
.viewing-back .mirror-side { color: #a5e7ec; border-color: var(--cyan); }
#gallery-art { touch-action: manipulation; }

.mirror-tools { display: flex; align-items: center; justify-content: space-between; gap: .55rem; margin-bottom: .6rem; }
.mirror-tools .mirror-hint { margin: 0; text-align: start; }
.mirror-tools button { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--rule); border-radius: 50%; background: var(--night); }
.mirror-tools button:disabled { opacity: .55; cursor: wait; }

.support-tagline { margin: .8rem 0 1rem; padding-inline-start: .8rem; border-inline-start: 2px solid var(--cyan); color: #a5e7ec; font: 700 clamp(1.1rem, 4vw, 1.55rem)/1.55 var(--mincho); }
.cat-menu { color: var(--silver); background: var(--night); border: 1px solid var(--rule); padding: .85rem; }
.cat-menu[open] { display: grid; gap: .4rem; min-width: 11rem; }
.cat-menu > button { min-height: 44px; background: var(--indigo); border: 1px solid var(--rule); }
body.cat-following { overflow: hidden; }
.roaming-cat.following, .roaming-cat.following img { animation: none; }
.roaming-cat.following { bottom: auto; z-index: 12; pointer-events: none; }
.roaming-cat.following .cat-speech { bottom: auto; top: 100%; }
.header-hole:focus-visible { outline-color: #aaa; }

.cat-speech:not(:empty) { left: 0; width: max-content; max-width: min(15rem, 66vw); white-space: normal; transform: none; overflow-wrap: anywhere; }
.roaming-cat.following .cat-speech { left: auto; right: 0; white-space: nowrap; }

.abyss-center button.singularity { border: 0; padding: 0; }
.abyss-room { position: absolute; inset: .5rem .5rem 4.4rem; overflow: auto; overscroll-behavior: contain; color: #dbd0b7; }
.room-scene { position: relative; isolation: isolate; container-type: inline-size; width: min(100%, 390px, max(210px, calc((100dvh - 16rem) * .65))); margin-inline: auto; aspect-ratio: 390 / 600; background: #0b0c10; border: 1px solid #434139; overflow: hidden; }
.room-layer { position: absolute; display: block; }
.room-layer:is(.room-item, .room-explorer) { min-height: 44px; border: 0; padding: 0; background: transparent; }
.room-layer img { display: block; width: 100%; }
.room-layer[aria-pressed="true"] img { filter: brightness(1.28); }
.room-meter-inspect[aria-pressed="true"], .room-memory-opening[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #a58c63; }
.room-resonance-controls { display: grid; justify-items: center; gap: .4rem; margin-top: 1rem; padding-bottom: .75rem; text-align: center; font: .85rem var(--system); color: #d3d0c2; }
.room-resonance-controls button { min-height: 44px; padding-inline: .85rem; border: 1px solid #8b7a4d; background: #27241c; color: #efd698; }
.room-resonance-controls button:disabled { color: #d3d0c2; cursor: default; }
.room-call-button { display: grid; justify-items: center; gap: .1rem; padding-block: .25rem; }
.room-call-button span:first-child { color: #d3d0c2; font-size: .75rem; }
.room-memory-opening {
  min-height: 32px;
  padding: 0;
  aspect-ratio: 4 / 1;
  background: #060708;
  border: 3px solid #37352d;
  box-shadow: inset 0 3px #191914, 3px 3px #10110f;
  clip-path: polygon(0 25%, 10% 25%, 10% 0, 90% 0, 90% 25%, 100% 25%, 100% 75%, 90% 75%, 90% 100%, 10% 100%, 10% 75%, 0 75%);
}
.room-memory-opening:focus-visible { border-color: #d2bc85; }
.room-memory-opening::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, #b5d99085, #5d805247 35%, transparent 73%);
  opacity: 0;
  animation: room-opening-glow 83s -9s linear infinite;
}
@keyframes room-opening-glow {
  0%, 30%, 33%, 100% { opacity: 0; }
  31% { opacity: .72; }
  31.6% { opacity: .38; }
  32% { opacity: .55; }
}
.room-meter {
  height: 31%;
  border: 1px solid #625944;
  background: #191815;
  color: #d2bc85;
  display: block;
  text-align: center;
  line-height: 1.1;
}
.room-meter :is(.room-meter-label, .room-meter-japanese, .room-meter-value) {
  position: absolute;
  inset-inline: .16rem;
  display: grid;
  place-items: center;
  white-space: nowrap;
}
.room-meter-label { top: 7%; height: 9%; font: clamp(.37rem, 2.15cqw, .59rem)/1.1 var(--english); letter-spacing: .02em; }
.room-meter-japanese { top: 17%; height: 10%; font-size: clamp(.42rem, 2.35cqw, .69rem); }
.room-meter-value { top: 75%; height: 15%; font: clamp(.55rem, 2.85cqw, .85rem)/1.1 var(--system); }
.room-meter-inspect { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; }
.room-comment-display { color: #a9d7a3; }
.room-meter .room-dial {
  position: absolute;
  top: 30%;
  left: 50%;
  translate: -50% 0;
  height: 37%;
  width: auto;
}
.room-green-instrument { display: block; width: 100%; height: 100%; fill: currentColor; }
.room-green-english { font-family: var(--english); }
.room-green-japanese { font-family: var(--body); }
.room-green-count { font-family: var(--system); font-variant-numeric: tabular-nums; }
.room-dial { position: relative; width: 65%; aspect-ratio: 1; margin: .2rem 0; border: 1px solid #8b7a4d; border-radius: 50%; background: repeating-conic-gradient(from -80deg,#a89358 0deg 2deg,#29261c 2deg 15deg); }
.room-dial::before { content: ''; position: absolute; inset: 13%; border-radius: 50%; background: #27241c; }
.room-dial i { position: absolute; inset: 12% auto 50% 50%; width: 1px; background: #efd698; transform-origin: center bottom; transform: rotate(var(--needle)); }
.room-detail-image img { max-height: 14rem; display: block; margin: 0 auto .65rem; }

.abyss-threshold { position: absolute; inset: .5rem .5rem 4.4rem; overflow: auto; overscroll-behavior: contain; color: #dbd0b7; }
.threshold-layout { width: min(100%, 390px); margin: 0 auto; padding-block: .25rem; }
.threshold-scene { position: relative; width: min(100%, max(230px, calc((100dvh - 15rem) * .70))); margin: auto; aspect-ratio: 390 / 555; background: #1b1917 center / cover; border: 1px solid #4b4134; }
.threshold-hotspot { position: absolute; display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; background: transparent; border: 0; }
.threshold-hotspot img { width: 100%; display: block; transform: rotate(var(--tilt)); transition: filter .35s; }
.threshold-hotspot[aria-pressed="true"] img { filter: brightness(1.28); }
.threshold-scene.unlocked .threshold-hotspot:first-child img { filter: brightness(.35); }
.threshold-panel { min-height: 5.5rem; padding: .55rem .7rem; }
.threshold-outcome { color: #e2be79; font-size: .84rem; }
.threshold-actions { display: flex; flex-wrap: wrap; align-items: start; gap: .3rem .6rem; margin-top: .25rem; }
.threshold-action { min-height: 44px; background: #242019; border: 1px solid #675743; padding: .2rem .65rem; }
.threshold-keyring { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); flex: 1 0 100%; gap: .35rem; }
.threshold-key { min-height: 44px; border: 1px solid #51463a; background: #22201b; padding: 0; }
.threshold-key svg { display: block; height: 45px; margin-inline: auto; }
.threshold-key.key-match { border-color: #b7a175; box-shadow: inset 0 0 10px #b7a17535; }
.threshold-key[aria-pressed="true"] { background: #423b2d; }
.threshold-key-description { flex-basis: 100%; }

.abyss-dialog :focus-visible { outline-color: #a8a8a8; }
.abyss-center .singularity:focus-visible { outline: 1px dashed #888; }
#intro.falling .intro-hole { animation: intro-fall .53s ease-in both; }
@keyframes intro-fall {
  from { transform: rotate(-19deg) scaleY(.82); }
  to { transform: rotate(-19deg) scale(24, 20); }
}

.threshold-dice { position: absolute; z-index: 1; top: 51%; left: 50%; transform: translate(-50%, -50%); display: flex; gap: .4rem; pointer-events: none; filter: drop-shadow(0 4px 4px #000a); }
.threshold-die { display: grid; place-items: center; width: clamp(42px, 15vw, 64px); aspect-ratio: .9; clip-path: polygon(50% 0, 96% 21%, 99% 62%, 50% 100%, 1% 62%, 4% 21%); background: conic-gradient(from 30deg, #ad8b55 0deg 56deg, #886641 56deg 114deg, #59412a 114deg 170deg, #76563a 170deg 227deg, #a47b4c 227deg 290deg, #c8aa76 290deg); color: #fff4d9; font: 700 1.1rem var(--system); text-shadow: 0 1px 2px #23190e; }
.threshold-die + .threshold-die { background: conic-gradient(from 26deg, #78948c 0deg 62deg, #506b64 62deg 124deg, #2e4640 124deg 191deg, #526861 191deg 248deg, #77958b 248deg 303deg, #a1b5a7 303deg); }
.threshold-dice.rolling .threshold-die { animation: threshold-tumble .95s cubic-bezier(.19,.75,.3,1) both; }
.threshold-dice.rolling .threshold-die + .threshold-die { animation-direction: reverse; animation-name: threshold-tumble-other; }
@keyframes threshold-tumble { 0% { transform: translate(-70px,-47px) rotate(-350deg) scale(.7); } 40% { transform: translate(17px,8px) rotate(-108deg); } 63% { transform: translate(-9px,-13px) rotate(-37deg); } 84% { transform: translate(5px,3px) rotate(-9deg); } 100% { transform: none; } }
@keyframes threshold-tumble-other { 0% { transform: none; } 30% { transform: translate(11px,-11px) rotate(45deg); } 60% { transform: translate(-14px,8px) rotate(145deg); } 100% { transform: translate(63px,-52px) rotate(360deg) scale(.7); } }
.threshold-consequence:not(:empty) { padding-inline-start: .5rem; border-inline-start: 1px solid #a58c63; margin-block: .25rem; }

.room-dial { margin: 0; border: 0; background: none; }
.room-dial::before { content: none; }
.room-dial > img { display: block; width: 100%; }
.room-dial i { inset: 17% auto 50% calc(50% - 1px); width: 2px; background: #f3d592; clip-path: polygon(50% 0,100% 100%,0 100%); filter: drop-shadow(0 0 2px #050505); }
.room-dial-pin { position: absolute; width: 7%; aspect-ratio: 1; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #d0ad71; box-shadow: 0 0 0 1px #3f3426; }
.reward-timeline > li { --reward-tone: #a5e7ec; --reward-shadow: transparent; --reward-line: #3c4566; border-left-color: var(--reward-line); }
.reward-timeline > li::before { border-color: var(--reward-tone); }
.reward-timeline .reward-milestone { color: var(--reward-tone); text-shadow: 1px 0 var(--reward-shadow); }
.reward-timeline > li:nth-child(2) { --reward-tone: #b2b8df; }
.reward-timeline > li:nth-child(3) { --reward-tone: #bba8dc; --reward-line: #65527e; }
.reward-timeline > li:nth-child(4) { --reward-tone: #dc9fc9; --reward-line: #85506e; --reward-shadow: #523750; }
.reward-timeline > li:nth-child(5) { --reward-tone: #e292af; --reward-line: #a45069; --reward-shadow: #72374e; }
.reward-timeline > li:nth-child(n+5) { background: repeating-linear-gradient(126deg, #67274a29 0 2px, transparent 2px 15px); }
.reward-timeline > li:nth-child(6) { --reward-tone: #ffa4ae; --reward-shadow: #9a344b; background: linear-gradient(105deg,#511e38a6,#2e1c3865 62%,transparent); }
.reward-timeline > li:nth-child(n+4)::before { border-radius: 1px; transform: rotate(45deg); }
.reward-timeline > li:nth-child(6) p { text-shadow: 1px 0 #7b3956, -1px 0 #3c3456; }

.abyss-close { position: absolute; left: 50%; bottom: max(.6rem, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3; width: 44px; height: 44px; padding: 0; border: 1px solid #97928a; border-radius: 50%; background: #292725; color: #efebe2; font-size: 1.55rem; line-height: 1; }
.abyss-dialog .abyss-return { left: max(1rem, calc(50% - 10rem)); transform: none; }
.threshold-sized img { height: 100%; object-fit: fill; }
.threshold-hotspot img, .room-explorer img { filter: drop-shadow(1px 5px 4px #0008); }
.threshold-hotspot[aria-pressed="true"] img { filter: drop-shadow(1px 5px 4px #0008) brightness(1.25); }
.threshold-scene.unlocked .threshold-hotspot:first-child img { filter: brightness(.5); }

.comic-issues { list-style: none; padding: 0; margin: .65rem 0; }
.comic-issues > li { border-top: 1px solid var(--rule); }
.comic-issues summary, .comic-issues > li > a { display: list-item; padding: .7rem .3rem; cursor: pointer; }
.comic-issues details > img { display: block; width: min(76%, 27rem); height: auto; margin: 0 auto .6rem; }
.comic-issues .comic-thumbnail { width: min(76%, 27rem); margin: 0 auto .65rem; }
.comic-thumbnail img { display: block; width: 100%; height: auto; }
#goodsDialog.comic-preview { width: min(100% - 1rem, 52rem); }
#goodsDialog.comic-preview #goodsPreview { display: block; max-height: none; height: auto; }
.comic-issues details > a { display: inline-block; margin: 0 .3rem .65rem; font-size: .85rem; }

.room-scene img, .room-detail-image img { image-rendering: pixelated; }
.room-meter { background: #20201c; border-color: #877058; box-shadow: inset 0 0 0 2px #302b24, 2px 3px #0d0e10; }
.room-dial-pin { border-radius: 0; }
.room-dial i { clip-path: none; filter: none; }

@media (max-width: 39rem) {
  .header-inner .site-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; }
  .site-nav a { padding-inline: .2rem; }
}

@media (max-width: 28rem) {
  .header-inner .site-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.threshold-scene, .threshold-hotspot img { image-rendering: pixelated; }

@media (max-width: 22rem) {
  .header-inner .wordmark { gap: .3rem; font-size: 1.02rem; }
  .header-inner .wordmark img { width: 29px; height: 29px; }
}

.header-hole.rowlie-marked .singularity { outline: 2px solid #b2a688; outline-offset: 4px; box-shadow: 0 0 11px 4px #ae9b6f72; }
.threshold-key img { display: block; width: auto; height: 45px; margin-inline: auto; image-rendering: pixelated; }
.reward-sample { width: min(86%, 22rem); margin: .55rem 0 .4rem; border: 1px solid var(--rule); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.reward-sample img { display: block; width: auto; max-height: 12.5rem; margin-inline: auto; pointer-events: none; }

.season-trend { margin: .5rem 0; }
.season-trend svg { cursor: crosshair; touch-action: manipulation; }
.trend-sparks { fill: #a9e9f4; pointer-events: none; }
.trend-spark { fill: #ecfbff; filter: drop-shadow(0 0 2px #9bdbe8); }
.trend-marker { fill: var(--night); stroke: #b8eaf3; stroke-width: 1.5; pointer-events: none; }
.trend-match { width: min(100%, 34rem); display: flex; flex-wrap: wrap; gap: .2rem .75rem; padding: .5rem .6rem; border-inline-start: 1px solid var(--cyan); color: var(--muted); font-size: .82rem; }
.trend-match strong { color: var(--silver); }

.reward-goods { width: min(100%, 16rem); margin-block: .65rem; }
.reward-timeline .reward-goods-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; list-style: none; margin: .45rem 0; padding: 0; }
.reward-goods-grid > li { display: grid; align-content: start; gap: .15rem; text-align: center; font-size: .75rem; }
.reward-goods-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border: 1px solid var(--rule); background: #10172a; }

.footer-chikuwa {
  display: grid;
  justify-items: center;
  margin-top: 1.25rem;
  text-align: center;
}
.chikuwa-button {
  display: block;
  width: clamp(3.5rem, 16vw, 4.6rem);
  padding: 0;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  cursor: pointer;
}
.chikuwa-button img { display: block; width: 100%; height: auto; }
.chikuwa-caption { min-height: 1.6em; margin: .3rem 0 0; }

.tv-auto-tune {
  min-height: 44px;
  margin-bottom: .5rem;
  padding: .35rem .65rem;
  border: 1px solid var(--rule);
  background: transparent;
}
.tv-auto-tune:disabled { opacity: .65; }
.tv-upcoming { margin-top: 1rem; padding: .75rem; border: 1px solid var(--rule); overflow-wrap: anywhere; }
.tv-upcoming h2 { font-size: 1rem; margin-bottom: .4rem; }
.tv-upcoming a { color: #a5e7ec; }
.tv-upcoming-list { list-style: none; margin: 0; padding: 0; }
.tv-upcoming-list li + li { margin-top: .55rem; padding-top: .55rem; border-top: 1px solid var(--rule); }

.player-results, .placement-legend { list-style: none; margin: 0; padding: 0; }
.player-results > li { border-top: 1px solid var(--rule); }
.player-result-label { min-height: 44px; padding: .55rem .3rem; }
summary.player-result-label { cursor: pointer; }
summary.player-result-label::marker { color: var(--cyan); }
.player-result-label > span + span, .player-result-label .note { margin-inline-start: .7rem; }
.player-result-label .note { display: inline; }
.placement-chart {
  --place-1: #7ed9e5;
  --place-2: #a9a4e0;
  --place-3: #7184bc;
  --place-4: #bc8caa;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .7rem 1rem;
  align-items: center;
  padding: .85rem;
  margin: 0 0 .65rem;
  border: 1px solid var(--rule);
  background: var(--indigo);
}
.placement-ring {
  display: grid;
  place-items: center;
  width: clamp(4.25rem, 19vw, 6rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--night) 54%, transparent 56%), var(--ranking-ring);
  box-shadow: 0 0 0 3px var(--indigo), 0 0 0 4px var(--rule);
  font: 600 .72rem var(--system);
}
.placement-legend li { display: flex; align-items: baseline; gap: .35rem; font: .75rem/1.5 var(--system); }
.placement-legend li::before { content: ''; width: .48rem; height: .48rem; flex: none; background: var(--placement-color); border-radius: 50%; }
.placement-legend li span:last-child { margin-inline-start: auto; }
.placement-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .75rem; margin: 0; padding-top: .55rem; border-top: 1px solid var(--rule); }
.placement-metrics div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 .4rem; }
.placement-metrics dt { color: var(--muted); font-size: .75rem; }
.placement-metrics dd { margin: 0; font: 600 .85rem var(--system); }

.explorer-occupation {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .65rem;
  padding: .45rem .7rem;
  margin-bottom: .8rem;
  background: var(--indigo);
  border-inline-start: 2px solid var(--cyan);
}
.explorer-occupation span { color: #a5e7ec; font-size: .76rem; }
.explorer-occupation strong { font: 700 1.05rem var(--mincho); }
.season > .match-archive { grid-column: 1 / -1; }

@media (min-width: 54rem) {
  .roaming-cat:not(.following), .roaming-cat:not(.following) img { animation-duration: 56s; }
  .about-content {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
  }
  .about-team .about-section { padding-block: 1rem; }
  .member-grid { gap: clamp(.8rem, 2vw, 1.4rem); }
  .member-grid .mirror { width: min(100%, 10rem); }
  .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; }
  .season-with-players {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1rem 2rem;
    align-items: start;
  }
  .season-with-players .season-players { padding: .8rem 1rem; border: 1px solid var(--rule); }
  .season-with-players svg { width: 100%; }
  .comic-issues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
  .comic-issues .comic-thumbnail { width: min(90%, 27rem); }
  #goods-catalog .goods-list { gap: 1rem 1.5rem; }
  #memberDialog.explorer-dialog { width: min(100% - 3rem, 54rem); }
  .explorer-dialog .dialog-scroll { padding: 1.25rem 1.5rem; }
  .explorer-detail-layout:has(.explorer-introduction) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 1.5rem;
    align-items: start;
  }
  .explorer-detail-layout:has(.explorer-introduction) .explorer-detail-stats {
    padding-inline-start: 1.5rem;
    border-inline-start: 1px solid var(--rule);
  }
}

@media (min-width: 60rem) {
  .shell { width: min(100% - 5rem, 72rem); }
  .header-inner { padding-top: .55rem; }
  .header-inner .site-nav { justify-self: stretch; }
  .site-nav a { min-height: 48px; padding-inline: .85rem; }
  .page { padding-block: 2.25rem 3rem; }
  .page-heading { padding-bottom: 1rem; margin-bottom: 1.35rem; }
  .page-heading h1 { font-size: 2.4rem; }
  .hero-inner { min-height: 23rem; }
  .hero-map { width: min(100%, 29rem); justify-self: end; }
  .member-grid { row-gap: 1.75rem; }
  .member-grid .member { padding-block: .75rem; }
  #goods-catalog .goods-list { column-gap: 2rem; }
  .archive-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.5rem; padding: 1.15rem; }
  .tv-layout { grid-template-columns: minmax(0, 2.1fr) minmax(17rem, 1fr); gap: 1.25rem 1.75rem; }
  .footer { border-top: 1px solid var(--rule); padding-top: 1.65rem; }
}

@media (min-width: 90rem) {
  .roaming-cat:not(.following), .roaming-cat:not(.following) img { animation-duration: 76s; }
}

.explorer-dialog ruby { ruby-position: over; }
.explorer-dialog rt { color: var(--muted); font: 500 .63rem var(--body); }
.explorer-introduction .expression-choice { min-height: 44px; margin-block: .45rem; }
.explorer-lost {
  background-image: linear-gradient(121deg, #3c233351, transparent 63%);
  border-color: #775464;
}
.explorer-lost .status.lost {
  position: relative;
  isolation: isolate;
  display: inline-block;
  margin-block: .15rem;
  padding: .13rem .48rem .11rem .7rem;
  border: 1px solid #ad77878f;
  outline: 1px solid #ad77874d;
  outline-offset: 2px;
  background: #281726a6;
  color: #deb2bf;
  font: 600 1.25rem/1.2 var(--english);
  letter-spacing: .23em;
  text-shadow: .5px 1px #6b3e50;
  transform: rotate(-4deg);
}
.explorer-lost .status.lost::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(167deg, transparent 0 9px, #281726a6 9px 10px, transparent 10px 17px);
  pointer-events: none;
}
.archive-entry.explorer-lost { padding-inline: .55rem; }
.trend-round { color: #a5e7ec; font-weight: 700; }

.threshold-layout[data-roll-result] .threshold-outcome {
  border-inline-start: 2px solid var(--roll-accent);
  color: var(--roll-accent);
  background: var(--roll-wash);
  padding: .4rem .55rem;
  font-weight: 700;
}
.threshold-layout[data-roll-result='critical'] { --roll-accent: #9cebe6; --roll-wash: #52998725; }
.threshold-layout[data-roll-result='fumble'] { --roll-accent: #f0a1b5; --roll-wash: #802f4b35; }
.threshold-layout[data-roll-result] .threshold-die {
  color: var(--roll-accent);
  border-color: var(--roll-accent);
}
.threshold-layout[data-roll-result='critical'] .threshold-dice { animation: roll-glimmer .85s ease-out both; }
.threshold-layout[data-roll-result='fumble'] .threshold-dice { animation: roll-dread .7s ease-out both; }
@keyframes roll-glimmer {
  20% { scale: 1.12; filter: drop-shadow(0 0 14px #9cebe69c); }
  100% { scale: 1; filter: drop-shadow(0 0 5px #9cebe65c); }
}
@keyframes roll-dread {
  20% { translate: -4px 1px; rotate: -5deg; filter: drop-shadow(0 2px 9px #883f68); }
  38% { translate: 3px 3px; rotate: 2deg; }
  63% { translate: -1px 4px; rotate: -2deg; }
  100% { translate: 0 0; rotate: 0deg; filter: drop-shadow(0 3px 6px #6e294e); }
}
@media (prefers-reduced-motion: reduce) {
  .threshold-layout[data-roll-result] .threshold-dice { animation: none; }
}

.wind-chikuwa {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.wind-chikuwa::backdrop { background: transparent; }
.wind-chikuwa-actor {
  position: absolute;
  inset: auto 0 22%;
  display: grid;
  justify-items: center;
  margin-inline: auto;
  width: max-content;
}
.wind-chikuwa-actor img { width: 5.5rem; margin: 0; }
.wind-chikuwa-speech {
  max-width: min(19rem, 84vw);
  padding: .65rem .9rem;
  margin-bottom: .35rem;
  border: 1px solid var(--rule);
  border-radius: .55rem;
  background: var(--night);
  color: var(--silver);
  font: 600 1rem/1.65 var(--hand);
}

.season-nav { margin: 1rem 0; }
.season-nav a {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  font-family: inherit;
}
.season-nav a span { font-size: .72em; color: #a5e7ec; }
.season-period {
  padding: .9rem 1rem;
  border-left: 2px solid var(--rule);
  background: var(--indigo);
}
.season-period h2, .season-period p { margin: 0 0 .35rem; }
.season-period a { color: #98dce9; font-size: .85rem; }
