/* Shared block materials, readable type and controls across all seven pages. */
:root {
  color-scheme: light;
  --bg: #e3e6dc;
  --surface: #f5f5e9;
  --raised: #fffef2;
  --ink: #28332a;
  --muted: #4c5749;
  --line: #a3ac99;
  --edge: #424c3b;
  --accent: #315b25;
  --soft: #d9e4cb;
  --slot: #d1d5c8;
  --rim: #fafcef;
  --shade: #76806a;
  --primary: #426d2e;
  --primary-hover: #365d23;
  --header: #63482e;
  --header-ink: #fff9e8;
  --wordmark-tint: hue-rotate(0deg);
  --landscape: url("../assets/interface/landscape.svg");
  --world-material: url("../assets/interface/dirt.svg");
  --world-edge: url("../assets/interface/grass.svg");
  --dug: #3e2e21;
  --sky: #beddd3;
  --genre: var(--accent);
  --frame: inset 3px 3px 0 #ffffff25, inset -3px -3px 0 #00000025;
  --texture: url("../assets/interface/stone-light.svg");
  --paper: #f4f0df;
  --paper-line: #d1c9b1;
  --placeholder: #90531d;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-synthesis: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --texture: url("../assets/interface/stone.svg");
  --bg: #292d32;
  --surface: #363c40;
  --raised: #41484a;
  --ink: #f5f5e9;
  --muted: #c2c7bc;
  --line: #616a69;
  --edge: #161c1c;
  --accent: #b2db83;
  --soft: #3c4b37;
  --slot: #252c2d;
  --rim: #7e8881;
  --shade: #1b2424;
  --primary: #476f31;
  --primary-hover: #355d22;
  --paper: #303a3b;
  --paper-line: #566360;
  --placeholder: #ffbd79;
}
:root[data-biome="cherry"] {
  --world-material: url("../assets/interface/cherry-bark.svg");
  --world-edge: url("../assets/interface/cherry-edge.svg");
  --dug: #3d2534;
  --primary: #81435e;
  --primary-hover: #6c334b;
  --header: #67464d;
  --sky: #edd0dd;
  --landscape: url("../assets/interface/landscape-cherry.svg");
  --wordmark-tint: hue-rotate(245deg) saturate(0.75);
}
:root[data-biome="nether"] {
  --world-material: url("../assets/interface/netherrack.svg");
  --world-edge: url("../assets/interface/crimson-edge.svg");
  --dug: #361e26;
  --primary: #984431;
  --primary-hover: #7d3022;
  --header: #5d2825;
  --sky: #36212b;
  --landscape: url("../assets/interface/landscape-nether.svg");
  --wordmark-tint: hue-rotate(300deg) saturate(0.9);
}
:root[data-theme="dark"][data-biome="cherry"] {
  --accent: #f0b5d0;
  --soft: #504049;
}
:root[data-theme="light"][data-biome="cherry"] {
  --accent: #7c3554;
  --soft: #efdae2;
}
:root[data-theme="dark"][data-biome="nether"] {
  --accent: #ffbb94;
  --soft: #524038;
}
:root[data-theme="light"][data-biome="nether"] {
  --accent: #913d24;
  --soft: #edd9c9;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    var(--texture) repeat,
    var(--bg);
  font-size: 16px;
  line-height: 1.7;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
select,
summary {
  cursor: pointer;
}
button {
  color: inherit;
  background: none;
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  vertical-align: middle;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: #c2e68e;
  color: #25351d;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
  shape-rendering: crispEdges;
}
:is(.mc-item, .illustrated-icon) {
  width: 30px;
  height: 30px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}
/* Illustrations are reduced from detailed artwork; nearest-neighbor reduction
   drops outlines at 1x DPR. Real 8px skin faces and native sprites stay pixelated. */
.illustrated-icon {
  image-rendering: auto;
}
.member-head {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.character-pose {
  object-fit: contain;
  pointer-events: none;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 12px 20px;
  color: var(--ink);
  background: var(--surface);
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
.button,
.page-button,
.search-submit,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  background: var(--raised);
  color: var(--ink);
  border: 2px solid var(--edge);
  box-shadow:
    var(--frame),
    0 3px 0 var(--edge);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transition:
    background 0.15s,
    translate 0.15s;
}
.button:hover,
.page-button:hover,
.search-submit:hover,
.tag:hover {
  background: var(--soft);
}
.button:active,
.page-button:active,
.search-submit:active,
.tag:active {
  translate: 0 2px;
  box-shadow:
    inset 2px 2px #0004,
    inset -2px -2px #fff2;
}
.button.primary,
.search-submit {
  color: #fff;
  background: var(--primary);
  border-color: #1e321c;
  text-shadow: 1px 2px #0006;
}
.button.primary:hover,
.search-submit:hover {
  background: var(--primary-hover);
}
.button :is(.mc-item, .illustrated-icon),
.button .member-head {
  width: 27px;
  height: 27px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 8px;
  flex-shrink: 0;
  color: inherit;
}
.icon-button:hover {
  background: #ffffff16;
  box-shadow: inset 0 0 0 2px currentColor;
}
.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--accent);
  font-weight: 600;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link .icon {
  width: 18px;
  height: 18px;
}

/* Grass edge and dirt navbar are materials, not translucent overlays. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--header-ink);
  background: var(--world-material), var(--header);
  border-bottom: 4px solid #271d18;
  box-shadow: 0 4px #10181940;
}
.site-header::before,
.site-footer::before,
.hero-dock::before {
  content: "";
  display: block;
  height: 16px;
  width: 100%;
  background: var(--world-edge) repeat-x top / 128px 24px;
  pointer-events: none;
}
.header-inner {
  width: min(1320px, calc(100% - 56px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-type {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.brand-mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
  image-rendering: auto;
}
.brand-logo {
  width: 156px;
  height: 45px;
  filter: var(--wordmark-tint);
}
.brand-subtitle {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  margin: -3px 0 0;
  text-shadow: 2px 2px #302117;
}
.desktop-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 4px;
  margin-left: auto;
}
.desktop-nav > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  position: relative;
  font-weight: 700;
  text-shadow: 2px 2px #302117;
}
.nav-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: translate 180ms steps(3);
}
.nav-dig {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  inset: -16px 0 4px;
  pointer-events: none;
}
.nav-dig i {
  margin-top: var(--dig-top);
  background: url("../assets/interface/stone.svg"), var(--dug);
  border-top: 4px solid #ffffff16;
  clip-path: inset(100% 0 0);
  transition: clip-path 200ms steps(5) var(--dig-delay);
}
.desktop-nav a:is(:hover, :focus-visible) .nav-dig i {
  clip-path: inset(0);
}
.desktop-nav a:is(:hover, :focus-visible) .nav-label {
  translate: 0 3px;
}
.mobile-menu .nav-dig {
  display: none;
}
.desktop-nav .illustrated-icon {
  width: 40px;
  height: 40px;
  transition: translate 180ms steps(3);
}
.desktop-nav a:is(:hover, :focus-visible) .illustrated-icon {
  translate: 0 -4px;
}
.desktop-nav [aria-current="page"] {
  background: #1b160d65;
  box-shadow: inset 0 -4px #c3e08d;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}
.header-tools :focus-visible {
  outline-color: #e8efb5;
}
.menu-toggle {
  display: none;
}
.mobile-menu {
  background: #241f1c;
  padding: 14px 20px 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 6px;
  background: #403b31;
  box-shadow:
    inset 2px 2px #ffffff18,
    inset -2px -2px #0005;
}
.mobile-menu [aria-current="page"] {
  background: var(--primary);
}
.world-menu {
  position: relative;
}
.world-menu summary {
  list-style: none;
}
.world-menu summary::-webkit-details-marker {
  display: none;
}
.world-menu[open] > summary {
  background: #1b160d65;
}
.world-menu-panel {
  position: absolute;
  top: 58px;
  right: 0;
  width: 480px;
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) var(--slot);
  background: var(--texture), var(--surface);
  color: var(--ink);
  padding: 22px;
  border: 3px solid var(--rim);
  border-right-color: var(--edge);
  border-bottom-color: var(--edge);
  box-shadow: 6px 7px #0006;
}
.world-menu-panel::before {
  content: "";
  position: absolute;
  height: 20px;
  inset: -20px 0 auto;
}
.world-menu[open] .world-menu-panel {
  animation: panel-open 140ms steps(3);
}
@keyframes panel-open {
  from {
    translate: 0 -8px;
  }
  to {
    translate: 0;
  }
}
.world-menu-panel > strong {
  display: block;
  margin-bottom: 15px;
  font-size: 20px;
}
.world-menu-panel > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.world-menu-panel > div a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  background: var(--slot);
  border: 1px solid var(--line);
  font-size: 15px;
}
.world-menu-panel > div a:hover {
  background: var(--soft);
  border-color: var(--accent);
}
.menu-category {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-category strong {
  font-size: 16px;
}
.menu-category > span {
  font-size: 14px;
  color: var(--muted);
}
.world-menu-panel > div a :is(.mc-item, .illustrated-icon) {
  transition: transform 150ms steps(3);
}
.world-menu-panel
  > div
  a:is(:hover, :focus-visible)
  :is(.mc-item, .illustrated-icon) {
  transform: rotate(-12deg) translateY(-3px);
}
.world-menu-panel > div a > .icon:last-child {
  margin-left: auto;
  width: 15px;
}
.world-menu-all {
  display: flex;
  justify-content: space-between;
  color: var(--accent);
  margin-top: 20px;
}

.home-main,
.page-main {
  width: min(1184px, calc(100% - 56px));
  margin: 42px auto 80px;
  min-height: calc(100vh - 460px);
}
.home-main {
  margin-top: 36px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 25px;
  border-bottom: 2px solid var(--line);
  box-shadow: 0 2px #0002;
}
.heading-text h1 {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.3;
  font-weight: 900;
  text-shadow: 2px 3px #0002;
}
.heading-text h1 > :is(.mc-item, .illustrated-icon),
.heading-text h1 > .member-head {
  width: 48px;
  height: 48px;
  filter: drop-shadow(3px 4px #0004);
}
.heading-text > p {
  margin-top: 13px;
  font-size: 17px;
  color: var(--muted);
}
.page-total {
  color: var(--accent);
  white-space: nowrap;
  font-size: 18px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-title h2 {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 27px;
  font-weight: 800;
}
.section-title > span {
  font-size: 15px;
  color: var(--muted);
}

/* Six actual team skins inhabit a custom pixel landscape. */
.home-hero {
  border: 4px solid #111b19;
  box-shadow:
    0 6px #10181780,
    inset 3px 3px #fff2;
}
.hero-stage {
  position: relative;
  isolation: isolate;
  height: 386px;
  overflow: hidden;
  background: var(--sky);
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--landscape) center bottom / cover;
}
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow:
    inset 4px 4px #ffffff45,
    inset -4px -4px #183f2a30;
  z-index: 8;
  pointer-events: none;
}
.pixel-sun {
  width: 62px;
  height: 62px;
  background: #fff3be;
  box-shadow:
    0 0 0 10px #fff6c735,
    0 0 0 24px #fff6c718;
  position: absolute;
  top: 45px;
  right: 9%;
}
:root[data-biome="nether"] .pixel-sun {
  display: none;
}
:root[data-biome="nether"] .hero-sign > p {
  color: #ffe6cb;
  text-shadow: 0 2px #251923;
}
.hero-sign {
  position: relative;
  z-index: 5;
  width: min(530px, 65%);
  padding-top: 27px;
  margin: auto;
  text-align: center;
  color: #213b2b;
}
.hero-sign > img {
  width: 385px;
  height: auto;
  margin: auto;
  filter: var(--wordmark-tint) drop-shadow(0 5px #0002);
}
.hero-sign h1 {
  font-size: 37px;
  line-height: 1.4;
  letter-spacing: 6px;
  font-weight: 900;
  color: #faffdf;
  text-shadow:
    3px 3px #30422f,
    -2px -2px #30422f,
    2px -2px #30422f,
    -2px 2px #30422f,
    3px 6px #213221;
}
.hero-sign > p {
  font-size: 17px;
  color: #213e31;
  font-weight: 700;
  margin-top: 21px;
  text-shadow: 0 1px #efffe2;
}
.hero-splash {
  position: absolute;
  top: 109px;
  right: -31px;
  font-size: 21px;
  font-weight: 900;
  color: #ffe788;
  transform: rotate(-12deg);
  text-shadow:
    2px 2px #43301b,
    -1px -1px #43301b,
    1px -1px #43301b,
    -1px 1px #43301b;
}
.party-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.party-person {
  position: absolute;
  width: auto;
  max-width: none;
  filter: drop-shadow(7px 10px 0 #17352830);
  translate: var(--scene-x, 0) var(--scene-y, 0);
  transition: translate 0.2s ease-out;
}
.party-xty {
  height: 258px;
  left: 3%;
  bottom: -10px;
  z-index: 4;
  rotate: -6deg;
}
.party-lgg {
  height: 204px;
  left: -3%;
  bottom: 51px;
  z-index: 2;
  rotate: 7deg;
}
.party-wsd {
  height: 157px;
  left: 19%;
  bottom: -12px;
  z-index: 4;
}
.party-swk {
  height: 247px;
  right: 8%;
  bottom: 20px;
  z-index: 3;
  rotate: 10deg;
}
.party-zzl {
  height: 231px;
  right: -1%;
  bottom: -8px;
  z-index: 4;
  rotate: -7deg;
}
.party-gou {
  height: 154px;
  right: 25%;
  bottom: -18px;
  z-index: 2;
  rotate: -18deg;
}
.scene-item {
  position: absolute;
  z-index: 3;
}
.scene-item :is(.mc-item, .illustrated-icon) {
  width: 52px;
  height: 52px;
  filter: drop-shadow(4px 6px #15382855);
}
.scene-tnt {
  left: 14%;
  bottom: 17px;
  rotate: -9deg;
}
.scene-chest {
  right: 18%;
  bottom: 3px;
}
.hero-dock {
  position: relative;
  padding: 29px 30px 20px;
  background: var(--texture), var(--surface);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px 28px;
  border-top: 4px solid #243620;
  box-shadow: inset 0 -3px #0003;
}
.hero-dock::before {
  position: absolute;
  top: -5px;
  left: 0;
}
.hero-actions {
  display: flex;
  gap: 12px;
}
.hero-button {
  min-width: 190px;
}
.hero-counts {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.hero-counts > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.hero-counts strong {
  font-family: Consolas, monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.hero-counts :is(.mc-item, .illustrated-icon),
.hero-counts .icon {
  width: 23px;
  height: 23px;
}
.home-recent {
  margin-top: 43px;
}
.map-banners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.map-banner {
  position: relative;
  isolation: isolate;
  min-height: 164px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 26px;
  overflow: hidden;
  background: #202925;
  border: 3px solid #87967b;
  border-right-color: #2d3b2e;
  border-bottom-color: #2d3b2e;
  box-shadow:
    inset 0 0 0 1px #e8f5cd30,
    0 3px #10191a44;
  color: #fffef2;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.map-banner > :is(img, .cover-placeholder) {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 72%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
  transition: scale 0.35s;
}
.map-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    #202925 30%,
    #202925ed 37%,
    #20292566 61%,
    #16251b0a 82%
  );
}
.map-banner:is(:hover, :focus-visible) {
  border-color: #b4ce94;
  box-shadow:
    inset 0 0 0 1px #e8f5cd50,
    0 3px #10191a66;
}
.map-banner:is(:hover, :focus-visible) > img {
  scale: 1.025;
}
.banner-content {
  flex: 1;
  min-width: 0;
  max-width: 680px;
}
.banner-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.banner-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 9px 2px 5px;
  border: 1px solid #8b9e71;
  background: #34412c;
  box-shadow:
    inset 0 1px #dcebb933,
    1px 2px #101c18;
  color: #e2efca;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.banner-category .icon {
  width: 24px;
  height: 24px;
}
.banner-content h3 {
  font-size: 25px;
  margin: 8px 0 12px;
  line-height: 1.4;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  text-shadow: 1px 2px #101c18;
}
.banner-meta,
.banner-authors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: #f0f2e7;
  font-size: 15px;
}
.banner-author {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 3px 9px 3px 3px;
  border: 1px solid #b6c6a54d;
  background: #1e2b24eb;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.banner-author .avatar {
  width: 24px;
  height: 24px;
  box-shadow: 0 0 0 1px #c6d1b875;
}
.banner-arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid #eef9df80;
  background: #15251a33;
  color: #fffef2;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    translate 0.2s;
}
.banner-arrow .icon {
  filter: drop-shadow(0 1px 1px #101c18);
}
.banner-replays {
  color: #e3e9da;
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px #101c18;
}
.map-banner:is(:hover, :focus-visible) .banner-arrow {
  background: #15251a66;
  border-color: #eef9df;
  translate: 3px 0;
}
.map-banner:active .banner-arrow {
  translate: 1px 0;
}
.home-bottom {
  margin-top: 33px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.home-entry {
  position: relative;
  min-height: 155px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px;
  background: var(--texture), var(--surface);
  border: 3px solid var(--rim);
  border-right-color: var(--edge);
  border-bottom-color: var(--edge);
  overflow: hidden;
}
.home-entry:hover {
  background-color: var(--soft);
}
.entry-item {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  background: var(--slot);
  box-shadow:
    inset 3px 3px #0003,
    inset -3px -3px #fff2;
  flex-shrink: 0;
}
.entry-item :is(.mc-item, .illustrated-icon) {
  width: 52px;
  height: 52px;
}
.home-entry h2 {
  font-size: 24px;
}
.home-entry p {
  margin-top: 5px;
  font-size: 15px;
  color: var(--muted);
}
.home-entry > div {
  padding-right: 55px;
}
.entry-character {
  position: absolute;
  right: 8px;
  bottom: -5px;
  width: 99px;
  height: 145px;
  transition:
    translate 0.2s,
    rotate 0.2s;
}
.home-entry:hover .entry-character {
  translate: -4px -5px;
  rotate: 4deg;
}
.recording-source {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 25px auto 0;
  font-size: 16px;
  color: var(--muted);
}
.recording-source:hover {
  color: var(--accent);
}

/* The library keeps fast filtering and clear covers at the center. */
.library-toolbar {
  position: relative;
  padding: 22px;
  background: var(--texture), var(--surface);
  border: 3px solid var(--rim);
  border-right-color: var(--edge);
  border-bottom-color: var(--edge);
  box-shadow: 4px 5px #0002;
}
.library-controls {
  display: flex;
  align-items: stretch;
  gap: 15px;
}
.search-form {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  background: var(--slot);
  border: 2px solid var(--shade);
  box-shadow:
    inset 2px 2px #0003,
    1px 1px var(--rim);
  padding: 4px 4px 4px 14px;
}
.search-form:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.search-form > :is(.mc-item, .illustrated-icon) {
  width: 25px;
  height: 25px;
}
.search-form input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}
.search-form input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.search-form input:focus-visible {
  outline: 0;
}
/* The library and favorites already provide an accessible clear button. */
#map-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.search-submit {
  min-height: 43px;
  padding: 8px 17px;
  box-shadow: var(--frame);
}
.clear-search {
  width: 30px;
}
#home-search-form {
  position: relative;
}
.home-search-results {
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  left: -2px;
  right: -2px;
  max-height: min(440px, 60dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 2px solid var(--edge);
  padding: 5px;
  box-shadow:
    inset 2px 2px var(--rim),
    inset -2px -2px var(--shade),
    4px 4px #0004;
}
.home-search-results > p {
  margin: 0;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
}
.home-search-results ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-search-results li + li {
  border-top: 1px solid var(--line);
}
.home-search-match {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}
.home-search-match > :is(img, .cover-placeholder) {
  flex: 0 0 64px;
  width: 64px;
  height: 40px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.home-search-copy {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.home-search-copy strong {
  display: block;
  font-size: 16px;
  line-height: 1.5;
}
.home-search-copy > span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 3px;
}
.home-search-match > .icon {
  flex: 0 0 18px;
  color: var(--accent);
}
.home-search-all {
  display: block;
  padding: 12px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-weight: 700;
  text-align: center;
}
:is(.home-search-match, .home-search-all):is(:hover, :focus-visible) {
  background: var(--soft);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.author-picker {
  position: relative;
  flex: 0 0 235px;
  z-index: 30;
}
.author-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  min-height: 57px;
  height: 100%;
  padding: 6px 12px;
  background: var(--raised);
  color: var(--ink);
  border: 2px solid var(--edge);
  box-shadow:
    var(--frame),
    0 2px var(--edge);
  text-align: left;
}
.author-trigger:hover,
.author-trigger[aria-expanded="true"] {
  background: var(--soft);
}
#author-trigger-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
#author-trigger-label > strong {
  font-size: 16px;
}
.author-trigger > .icon {
  width: 15px;
  height: 15px;
  rotate: 90deg;
  transition: rotate 0.15s;
}
.author-trigger[aria-expanded="true"] > .icon {
  rotate: -90deg;
}
.author-trigger .avatar {
  width: 34px;
  height: 34px;
}
.author-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 362px;
  max-width: calc(100vw - 40px);
  padding: 10px;
  background: var(--surface);
  border: 3px solid var(--rim);
  border-bottom-color: var(--edge);
  border-right-color: var(--edge);
  box-shadow: 7px 7px #0005;
}
.opens-up .author-popover {
  top: auto;
  bottom: calc(100% + 10px);
}
.picker-search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  background: var(--slot);
  border: 2px solid var(--shade);
  margin-bottom: 9px;
}
.picker-search:focus-within {
  border-color: var(--accent);
}
.picker-search > .icon {
  width: 19px;
}
.picker-search input {
  min-width: 0;
  width: 100%;
  background: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  min-height: 30px;
  font-size: 16px;
}
.picker-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}
#author-options {
  max-height: var(--picker-height, 390px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) var(--slot);
}
.author-option {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 9px;
  min-height: 68px;
  cursor: pointer;
  border: 1px solid transparent;
}
.author-option + .author-option {
  border-top-color: var(--line);
}
.author-option:hover,
.author-option.is-active {
  background: var(--soft);
}
.author-option[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--soft);
}
.author-option .avatar,
.picker-all {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  background: var(--slot);
}
.picker-name {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  line-height: 1.4;
  gap: 3px;
}
.picker-name strong {
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.picker-name > span {
  color: var(--muted);
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.picker-count {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.picker-check {
  width: 17px;
  visibility: hidden;
  color: var(--accent);
}
.picker-check .icon {
  width: 17px;
}
.author-option[aria-selected="true"] .picker-check {
  visibility: visible;
}
.picker-empty {
  padding: 24px 8px;
  color: var(--muted);
  font-size: 16px;
}
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 19px;
  overflow-x: auto;
  padding: 1px 1px 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.category-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 10px 8px;
  background: var(--slot);
  color: var(--muted);
  border: 2px solid transparent;
  font-size: 15px;
  flex: 0 0 auto;
  box-shadow:
    inset 1px 1px #ffffff15,
    inset -2px -2px #0002;
}
.category-button :is(.mc-item, .illustrated-icon),
.category-button .icon {
  width: 24px;
  height: 24px;
}
.category-button:hover {
  color: var(--ink);
  background: var(--raised);
}
.category-button[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--soft);
  box-shadow: inset 2px 2px #0002;
  font-weight: 700;
}
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 30px 0 21px;
}
.results-bar > p {
  color: var(--muted);
}
.result-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}
.check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  cursor: pointer;
  min-height: 44px;
}
input[type="checkbox"] {
  appearance: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid var(--edge);
  border-right-color: var(--rim);
  border-bottom-color: var(--rim);
  background: var(--slot);
  color: var(--accent);
  box-shadow: inset 2px 2px #0002;
  flex-shrink: 0;
  cursor: pointer;
}
input[type="checkbox"]::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  clip-path: polygon(
    0 43%,
    14% 43%,
    14% 57%,
    28% 57%,
    28% 71%,
    42% 71%,
    42% 57%,
    57% 57%,
    57% 43%,
    71% 43%,
    71% 28%,
    85% 28%,
    85% 14%,
    100% 14%,
    100% 43%,
    85% 43%,
    85% 57%,
    71% 57%,
    71% 71%,
    57% 71%,
    57% 85%,
    42% 85%,
    42% 100%,
    28% 100%,
    28% 85%,
    14% 85%,
    14% 71%,
    0 71%
  );
  visibility: hidden;
}
input[type="checkbox"]:checked::before {
  visibility: visible;
}
input[type="checkbox"]:checked {
  background: var(--soft);
}
.check-label:hover input {
  outline: 1px solid var(--accent);
}
select {
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  padding: 8px 12px;
  min-height: 42px;
  max-width: 100%;
  border-radius: 0;
}
.result-tools select {
  font-size: 15px;
}
.select-menu {
  position: relative;
  flex-shrink: 0;
}
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--raised);
  border: 2px solid var(--edge);
  box-shadow:
    var(--frame),
    0 2px var(--edge);
  font-size: 15px;
}
.select-trigger > .icon:last-child {
  width: 16px;
  height: 16px;
  rotate: 90deg;
}
.select-trigger[aria-expanded="true"] {
  background: var(--soft);
  box-shadow: inset 2px 2px #0003;
}
.select-trigger[aria-expanded="true"] > .icon:last-child {
  rotate: -90deg;
}
.select-options {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: max(100%, 184px);
  max-height: 45vh;
  overflow-y: auto;
  z-index: 40;
  padding: 6px;
  background: var(--surface);
  border: 3px solid var(--rim);
  border-right-color: var(--edge);
  border-bottom-color: var(--edge);
  box-shadow: 5px 5px #0005;
}
.select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  padding: 7px 10px;
  border: 2px solid transparent;
  cursor: pointer;
}
.select-option > .icon {
  width: 16px;
  height: 16px;
  visibility: hidden;
}
.select-option[aria-selected="true"] > .icon {
  visibility: visible;
}
.select-option[aria-selected="true"] {
  color: var(--accent);
  background: var(--soft);
}
.select-option.is-active,
.select-option:hover {
  border-color: var(--accent);
  box-shadow: inset 2px 2px #0002;
}
.view-switch {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--slot);
}
.view-switch .icon-button {
  width: 34px;
  height: 34px;
}
.view-switch [aria-pressed="true"] {
  background: var(--raised);
  color: var(--accent);
  box-shadow: var(--frame);
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.active-filters:not(:empty) {
  margin-bottom: 23px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  padding: 7px 12px;
  border: 1px solid var(--accent);
  background: var(--soft);
  font-size: 14px;
}
.filter-chip .icon {
  width: 15px;
  height: 15px;
}
.clear-filters {
  color: var(--muted);
  text-decoration: underline;
  padding: 7px;
  font-size: 14px;
}
[data-genre="prank"] {
  --genre: #e7b877;
}
[data-genre="story"] {
  --genre: #a8c8f0;
}
[data-genre="mystery"] {
  --genre: #f1ca88;
}
[data-genre="rules"] {
  --genre: #edaa9d;
}
[data-genre="minigame"] {
  --genre: #bdda81;
}
[data-genre="parkour"] {
  --genre: #82d7cb;
}
[data-genre="horror"] {
  --genre: #ccb3f5;
}
[data-genre="event"] {
  --genre: #f1bdd3;
}
:root[data-theme="light"] [data-genre="prank"] {
  --genre: #80501c;
}
:root[data-theme="light"] [data-genre="story"] {
  --genre: #335c8b;
}
:root[data-theme="light"] [data-genre="mystery"] {
  --genre: #77530f;
}
:root[data-theme="light"] [data-genre="rules"] {
  --genre: #8a3d32;
}
:root[data-theme="light"] [data-genre="minigame"] {
  --genre: #4b651e;
}
:root[data-theme="light"] [data-genre="parkour"] {
  --genre: #206457;
}
:root[data-theme="light"] [data-genre="horror"] {
  --genre: #68428c;
}
:root[data-theme="light"] [data-genre="event"] {
  --genre: #853f60;
}
.map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}
.map-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 3px solid var(--rim);
  border-right-color: var(--edge);
  border-bottom-color: var(--edge);
  box-shadow: 4px 5px #0003;
  transition:
    border-color 0.18s,
    translate 0.18s,
    box-shadow 0.18s;
}
.map-card:hover,
.map-card:focus-within {
  border-color: var(--genre);
  translate: 0 -3px;
  box-shadow: 5px 8px #0004;
}
.card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--slot);
  border-bottom: 3px solid var(--edge);
  flex-shrink: 0;
}
.card-image > a {
  display: block;
  width: 100%;
  height: 100%;
}
.card-image > a > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.35s;
}
.map-card:hover .card-image > a > img {
  scale: 1.035;
}
.duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: #152019ec;
  border: 1px solid #dce4cb70;
  color: #fff;
  padding: 2px 7px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.save-button {
  position: absolute;
  right: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  background: #575c55;
  border: 2px solid #1b261d;
  box-shadow:
    inset 2px 2px #fff5,
    inset -2px -2px #0005;
}
.save-button :is(.mc-item, .illustrated-icon) {
  width: 26px;
  height: 26px;
  filter: grayscale(1) brightness(1.45);
}
.save-button:hover {
  background: #778166;
}
.save-button[aria-pressed="true"] {
  background: #847647;
  border-color: #cfcd72;
}
.save-button[aria-pressed="true"] :is(.mc-item, .illustrated-icon) {
  filter: none;
}
.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 18px 19px 15px;
}
.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.card-categories {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 7px 8px;
  min-width: 0;
  padding-bottom: 2px;
}
.card-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 7px;
  color: var(--genre);
  background: color-mix(in srgb, var(--genre) 8%, var(--surface));
  border: 2px solid color-mix(in srgb, var(--genre) 45%, var(--edge));
  border-top-color: color-mix(in srgb, var(--genre) 35%, var(--rim));
  border-left-color: color-mix(in srgb, var(--genre) 35%, var(--rim));
  box-shadow:
    inset 1px 1px #ffffff30,
    inset -1px -1px #0002,
    2px 2px var(--edge);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}
.card-category :is(.mc-item, .illustrated-icon),
.card-category .icon {
  width: 24px;
  height: 24px;
}
.card-status {
  flex-shrink: 0;
  padding-top: 5px;
  line-height: 22px;
  white-space: nowrap;
}
.genre {
  color: var(--genre);
  font-size: 14px;
  font-weight: 700;
}
.card-content h2 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.5;
  margin-top: 9px;
}
.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-height: 63px;
}
.card-title:hover {
  color: var(--genre);
}
.card-author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 15px;
  color: var(--muted);
  font-size: 15px;
  margin: 15px 0 19px;
}
.card-creator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 30px;
}
.creator-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.card-creator:hover {
  color: var(--ink);
}
.card-creator:hover .creator-name {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.avatar {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  overflow: hidden;
  background: var(--slot);
  font-size: 18px;
  box-shadow: 1px 2px #0003;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.avatar-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--placeholder);
  background: var(--slot);
  box-shadow:
    inset 2px 2px #0002,
    inset -2px -2px #ffffff15;
}
.avatar-placeholder .icon {
  width: 72%;
  height: 72%;
}
.avatar-large {
  width: 68px;
  height: 68px;
  font-size: 34px;
  box-shadow: 3px 3px #0004;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
}
.watch-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}
.watch-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.watch-link .icon {
  width: 16px;
  height: 16px;
}
.card-bottom time {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.watched-badge {
  color: var(--accent);
}
.cover-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--slot);
}
.cover-placeholder :is(.mc-item, .illustrated-icon) {
  width: 55px;
  height: 55px;
}
.map-grid.list-view {
  grid-template-columns: 1fr;
  gap: 19px;
}
.list-view .map-card {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
}
.list-view .card-image {
  aspect-ratio: auto;
  min-height: 216px;
  height: 100%;
  border-bottom: 0;
  border-right: 3px solid var(--edge);
}
.list-view .card-content {
  padding: 19px 26px;
}
.list-view .card-title {
  min-height: 0;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 39px 0 25px;
}
.page-button {
  min-width: 43px;
  min-height: 43px;
  padding: 7px 12px;
}
.page-button[aria-current="page"] {
  background: var(--primary);
  color: #fff;
  border-color: #22341c;
}
.library-footnote {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 30px;
}
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  padding: 42px 30px;
  background: var(--texture), var(--surface);
  border: 3px solid var(--line);
}
.empty-character {
  width: 145px;
  height: 180px;
}
.empty-state h2,
.empty-state h1 {
  font-size: 27px;
  line-height: 1.4;
}
.empty-state p {
  color: var(--muted);
  margin: 12px 0 23px;
}

.author-search {
  max-width: 680px;
  margin-bottom: 30px;
}
.author-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}
.author-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px 22px 0;
  background: var(--raised);
  border: 2px solid var(--edge);
  box-shadow:
    inset 0 0 0 3px var(--rim),
    4px 4px 0 var(--shade);
  transition:
    translate 180ms steps(3),
    box-shadow 180ms steps(3);
}
.author-card::before,
.author-card::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 5px;
  height: 5px;
  background: var(--shade);
  box-shadow: 1px 1px 0 var(--rim);
}
.author-card::before {
  left: 7px;
}
.author-card::after {
  right: 7px;
}
.author-card:is(:hover, :focus-visible) {
  translate: 0 -4px;
  box-shadow:
    inset 0 0 0 3px var(--rim),
    4px 8px 0 var(--shade);
}
.author-card-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding-bottom: 20px;
}
.author-portrait {
  position: relative;
  display: block;
  padding: 6px;
  border: 2px solid var(--edge);
  background: var(--slot);
  box-shadow:
    inset 2px 2px var(--shade),
    inset -2px -2px var(--rim),
    3px 3px var(--soft);
  flex-shrink: 0;
}
.author-portrait::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--raised);
  background: var(--accent);
}
.author-card .avatar {
  display: block;
  width: 64px;
  height: 64px;
  border: 0;
}
.author-identity {
  min-width: 0;
  flex: 1;
}
.author-card h2 {
  font-size: 22px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.mcid {
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 15px;
  color: var(--muted);
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.author-workbench {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 0 -2px;
  padding: 15px 0 18px;
  border-top: 1px dashed var(--line);
}
.author-work-cover {
  position: relative;
  width: 92px;
  flex-shrink: 0;
  border: 2px solid var(--edge);
  padding: 2px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--paper-line);
  transition: translate 180ms steps(3);
}
.author-work-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.author-card:is(:hover, :focus-visible) .author-work-cover {
  translate: 0 -2px;
}
.author-latest {
  min-width: 0;
}
.author-latest > span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 3px;
}
.author-latest strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.author-workbench-empty {
  color: var(--muted);
}
.author-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 -22px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--soft);
  box-shadow: inset 0 -3px #0000000b;
  font-size: 14px;
}
.author-totals {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.author-totals strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.author-totals > span + span {
  color: var(--muted);
}
.author-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}
.author-open .icon {
  width: 16px;
  height: 16px;
}

/* Map detail becomes a cover-led page, followed by clear replay rows. */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  margin-bottom: 23px;
}
.back-link .icon {
  rotate: 180deg;
  width: 18px;
}
.back-link:hover {
  color: var(--accent);
}
.map-intro {
  background: var(--texture), var(--surface);
  border: 3px solid var(--rim);
  border-right-color: var(--edge);
  border-bottom-color: var(--edge);
  box-shadow: 5px 6px #0003;
}
.detail-cover {
  position: relative;
  background: #17201c;
  border-bottom: 4px solid var(--genre);
}
.detail-cover > img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
}
.cover-expand {
  position: absolute;
  right: 15px;
  bottom: 15px;
  color: #fff;
  background: #2e3531;
  font-size: 14px;
  padding: 8px 12px;
  min-height: 39px;
  border-color: #101b16;
}
.cover-expand:hover {
  background: #445645;
}
.cover-expand .icon {
  width: 17px;
}
.detail-summary {
  padding: 28px 32px 32px;
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}
.detail-heading > div:first-child {
  min-width: 0;
}
.detail-summary h1 {
  font-size: clamp(28px, 3.2vw, 39px);
  line-height: 1.4;
  margin-top: 7px;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.detail-authors {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 19px;
  margin-top: 19px;
}
.detail-authors > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line);
  background: var(--slot);
  box-shadow:
    inset 2px 2px #ffffff09,
    2px 2px var(--edge);
}
.detail-authors > a:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--soft);
}
.creator-tooltip {
  position: fixed;
  z-index: 210;
  width: max-content;
  max-width: calc(100vw - 20px);
  padding: 16px 18px 12px;
  background: var(--raised);
  color: var(--ink);
  border: 2px solid var(--edge);
  border-top: 4px solid var(--accent);
  box-shadow:
    inset 0 0 0 2px var(--rim),
    4px 4px 0 var(--shade);
  font-size: 16px;
  line-height: 1.5;
}
.creator-tip-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.creator-tip-heading .avatar {
  width: 48px;
  height: 48px;
  outline: 2px solid var(--line);
  outline-offset: 3px;
}
.creator-tip-heading > div {
  min-width: 0;
}
.creator-tip-heading strong {
  display: block;
  font-size: 19px;
}
.creator-tip-mcid {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: Consolas, "Microsoft YaHei", monospace;
  overflow-wrap: anywhere;
}
.creator-tooltip p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 14px;
}
.creator-tooltip p :is(.mc-item, .illustrated-icon) {
  width: 22px;
  height: 22px;
}
.creator-tooltip p > span {
  color: var(--muted);
  margin-left: 12px;
}
.detail-authors .avatar {
  width: 32px;
  height: 32px;
}
.detail-facts {
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 5px;
  white-space: nowrap;
  color: var(--muted);
}
.detail-facts strong {
  font-size: 32px;
  font-family: Consolas, monospace;
  color: var(--genre);
}
.detail-facts > span:last-child {
  font-size: 15px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}
.detail-actions > .text-link {
  margin-left: 8px;
}
.episodes {
  margin-top: 44px;
}
.replay-note {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 15px;
}
.episodes ol {
  list-style: none;
  margin: 0;
  border: 3px solid var(--rim);
  border-right-color: var(--edge);
  border-bottom-color: var(--edge);
  padding: 6px;
  background: var(--slot);
  box-shadow: 4px 4px #0003;
}
.episodes li + li {
  margin-top: 5px;
}
.episode {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 22px 24px;
  background: var(--surface);
  border: 2px solid var(--line);
}
.episode-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
  background: var(--surface);
  border: 2px solid var(--line);
}
.episode-row .episode {
  min-width: 0;
  border-color: transparent;
}
.episode-row[data-watched="true"] .episode-number {
  background: var(--soft);
  box-shadow:
    inset 3px 0 var(--accent),
    inset 0 0 0 1px var(--line);
}
.episode-watched {
  min-height: 44px;
  padding: 8px 12px;
  gap: 8px;
  font-size: 15px;
  white-space: nowrap;
}
.episode-watched .icon {
  width: 18px;
  height: 18px;
}
.episode-watched[aria-pressed="false"] .icon {
  visibility: hidden;
}
.episode-watched[aria-pressed="true"] {
  color: var(--accent);
  background: var(--soft);
  border-color: var(--accent);
}
.episode-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: -4px 0 20px;
  font-size: 15px;
}
.episode-progress-label {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.episode-progress progress {
  appearance: none;
  width: 120px;
  height: 10px;
  border: 2px solid var(--edge);
  background: var(--slot);
  color: var(--accent);
}
.episode-progress progress::-webkit-progress-bar {
  background: var(--slot);
}
.episode-progress progress::-webkit-progress-value {
  background: var(--accent);
  box-shadow: inset 0 2px #ffffff35;
}
.episode-progress progress::-moz-progress-bar {
  background: var(--accent);
}
.episode-progress-hint {
  color: var(--muted);
}
.detail-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.detail-categories .tag {
  color: var(--accent);
}
.search-hit {
  color: inherit;
  background: var(--soft);
  box-shadow: inset 0 -2px var(--accent);
  padding: 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.episode:hover {
  background: var(--soft);
  border-color: var(--accent);
}
.episode:is(:hover, :focus-visible) .episode-number {
  color: var(--ink);
  box-shadow:
    inset 0 0 0 2px var(--accent),
    inset 4px 4px #0004;
}
.episode-play {
  transition: translate 150ms steps(3);
}
.episode:is(:hover, :focus-visible) .episode-play {
  translate: 3px 0;
}
.episode-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--accent);
  font:
    700 23px Consolas,
    monospace;
  background: var(--slot);
  box-shadow:
    inset 3px 3px #0004,
    inset -2px -2px #fff2;
  flex-shrink: 0;
}
.episode-text {
  flex: 1;
  min-width: 0;
}
.episode-text > strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.episode-text > span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}
.episode-text > span > span {
  margin: 0 9px;
}
.episode-play {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-weight: 700;
  min-height: 42px;
  padding: 7px 12px;
  background: var(--raised);
  border: 2px solid var(--edge);
  box-shadow:
    var(--frame),
    0 2px var(--edge);
}
.episode-play .icon {
  width: 18px;
}
.detail-more {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 30px;
  margin-top: 37px;
  padding: 24px 28px 28px 40px;
}
.archive-sheet {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--rim);
  border-right-color: var(--edge);
  border-bottom-color: var(--edge);
  box-shadow:
    4px 4px #0003,
    inset -5px 0 var(--paper-line);
}
.archive-sheet::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 10px;
  width: 5px;
  background: repeating-linear-gradient(
    to bottom,
    var(--paper-line) 0 5px,
    transparent 5px 24px
  );
  pointer-events: none;
}
.panel-heading {
  grid-column: 1 / -1;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--paper-line);
}
.panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  line-height: 1.5;
}
.detail-record {
  min-width: 0;
}
.record-fields {
  margin: 0;
}
.record-fields > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--paper-line);
  align-items: baseline;
}
.record-fields > div:first-child {
  padding-top: 0;
}
.record-fields > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.record-fields dt {
  color: var(--muted);
  font-size: 15px;
}
.record-fields dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.download-missing {
  color: var(--muted);
}
.map-downloads {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.map-download {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--paper-line);
  background: var(--raised);
  box-shadow:
    inset 2px 2px var(--rim),
    2px 2px var(--paper-line);
}
.download-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--accent);
}
.download-link > strong {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.download-link > .icon {
  flex: 0 0 20px;
}
.download-link:hover > strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.download-password {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--paper-line);
  font-size: 14px;
  color: var(--muted);
}
.download-password code {
  margin-left: 6px;
  color: var(--ink);
  font:
    700 17px Consolas,
    monospace;
  user-select: all;
}
.download-password .button {
  min-height: 44px;
  padding: 6px 10px;
  font-size: 14px;
}
.full-credits {
  margin-top: 18px;
  background: var(--slot);
  border: 2px solid var(--line);
}
.full-credits summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 12px;
  color: var(--accent);
  list-style: none;
}
.full-credits summary::-webkit-details-marker {
  display: none;
}
.full-credits summary .icon {
  width: 16px;
  height: 16px;
}
.full-credits[open] summary .icon {
  rotate: 90deg;
}
.full-credits > div {
  padding: 0 14px 14px;
}
.full-credits p {
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
}
.detail-tools {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 13px;
  align-self: start;
  padding: 14px;
  border: 2px solid var(--edge);
  border-right-color: var(--rim);
  border-bottom-color: var(--rim);
  background: var(--slot);
}
.detail-tools .text-link {
  justify-content: center;
  margin-top: 4px;
}
.preview-open,
.announcement-open {
  overflow: hidden;
}
.survey-launcher {
  position: fixed;
  z-index: 90;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  padding: 4px;
  isolation: isolate;
}
.survey-launcher-label {
  position: relative;
  padding: 4px 10px;
  color: var(--ink);
  background: var(--raised);
  border: 2px solid var(--edge);
  box-shadow:
    inset 2px 2px var(--rim),
    2px 3px #0004;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.survey-launcher-label::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 20px;
  width: 8px;
  height: 6px;
  background: var(--raised);
  border-left: 2px solid var(--edge);
  border-bottom: 2px solid var(--edge);
}
.survey-launcher > img {
  width: 80px;
  height: 88px;
  margin-top: 6px;
  image-rendering: pixelated;
  filter: drop-shadow(2px 3px #0005);
  transition: transform 160ms steps(3, end);
}
.survey-launcher:is(:hover, :focus-visible) > img {
  transform: translateY(-4px);
}
.survey-launcher:is(:hover, :focus-visible) .survey-launcher-label {
  background: var(--soft);
}
.survey-launcher:is(:hover, :focus-visible) .survey-launcher-label::after {
  background: var(--soft);
}
body:has(input:focus, textarea:focus) .survey-launcher {
  visibility: hidden;
}
.site-announcement {
  position: fixed;
  width: min(680px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  background: var(--texture), var(--surface);
  color: var(--ink);
  border: 3px solid var(--rim);
  border-right-color: var(--edge);
  border-bottom-color: var(--edge);
  box-shadow: 6px 8px #101c1866;
  overscroll-behavior: contain;
}
.site-announcement::before {
  content: "";
  display: block;
  flex: 0 0 8px;
  background: var(--world-edge) repeat-x top left / auto 16px;
}
.site-announcement::backdrop {
  background: #0b1411b3;
}
.site-announcement[open] {
  display: flex;
  flex-direction: column;
  animation: announcement-arrive 180ms steps(4, end) both;
}
.announcement-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 20px;
  border-bottom: 1px solid var(--line);
}
.announcement-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(19px, 4.6vw, 23px);
}
.announcement-header h2 .icon {
  width: 32px;
  height: 32px;
}
.announcement-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  background: var(--slot);
  border: 1px solid var(--line);
}
.announcement-content {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 14px 24px;
  padding: 20px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.survey-poster {
  grid-row: 1 / span 2;
  margin: 0;
  min-width: 0;
  text-align: center;
}
.survey-poster a,
.survey-poster img {
  display: block;
  width: 100%;
}
.survey-poster img {
  height: auto;
  border: 1px solid var(--line);
}
.survey-poster figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.survey-invite h3 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.4;
}
.survey-invite p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.survey-code-card {
  align-self: start;
  text-align: center;
}
.survey-code {
  position: relative;
  overflow: hidden;
  width: min(100%, 232px);
  aspect-ratio: 1;
  margin: 0 auto;
  background: #fff;
  outline: 1px solid var(--line);
  box-shadow: 3px 3px var(--shade);
}
/* Magnify the original 279px white QR square without altering the image file. */
.survey-code img {
  position: absolute;
  width: 333.333333%;
  max-width: none;
  height: auto;
  left: -120.4301075%;
  top: -375.2688172%;
  user-select: auto;
  -webkit-touch-callout: default;
}
.survey-code-card > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.announcement-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  background: var(--surface);
  text-align: center;
}
.announcement-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.announcement-actions .button {
  min-height: 44px;
}
.announcement-address-line {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.announcement-address-line > span {
  display: inline-block;
  margin-left: 12px;
}
.announcement-address {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 560px) {
  .survey-launcher {
    width: 76px;
    right: max(6px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
  .survey-launcher > img {
    width: 60px;
    height: 66px;
  }
  .survey-launcher-label {
    font-size: 13px;
    padding: 3px 6px;
  }
  .announcement-header {
    padding: 8px 10px;
  }
  .announcement-content {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
    padding: 16px;
  }
  .survey-poster {
    grid-row: auto;
  }
  .survey-poster figcaption {
    font-size: 12px;
  }
  .survey-invite h3 {
    font-size: 19px;
  }
  .survey-invite p {
    font-size: 14px;
  }
  .survey-code-card {
    grid-column: 1 / -1;
  }
  .announcement-footer {
    padding: 12px;
  }
  .announcement-actions {
    gap: 8px;
  }
  .announcement-actions .button {
    padding: 9px 12px;
    font-size: 15px;
  }
  .announcement-address-line > span {
    display: block;
    margin: 2px 0 0;
  }
}
@keyframes announcement-arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.image-preview {
  width: min(1120px, calc(100vw - 32px));
  max-width: min(1120px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  border: 4px solid var(--rim);
  border-right-color: var(--edge);
  border-bottom-color: var(--edge);
  box-shadow: 8px 10px #0006;
}
.image-preview[open] {
  display: flex;
  flex-direction: column;
}
.image-preview::backdrop {
  background: #0b100feb;
}
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 12px 9px 20px;
  font-size: 17px;
  font-weight: 700;
  background: var(--texture), var(--surface);
}
.preview-toolbar > span {
  overflow-wrap: anywhere;
}
.preview-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.preview-zoom {
  min-height: 38px;
  padding: 6px 10px;
  font-size: 14px;
}
.preview-zoom .icon {
  width: 18px;
  height: 18px;
}
.preview-viewport {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #0d1411;
}
.preview-viewport:focus-visible {
  outline-offset: -4px;
}
#preview-image {
  width: 100%;
  min-height: 0;
  max-height: calc(100dvh - 195px);
  object-fit: contain;
  background: #0d1411;
}
.image-preview.is-zoomed #preview-image {
  width: 200%;
  max-width: none;
  max-height: none;
}
.preview-help {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  color: var(--muted);
  font-size: 14px;
}
.preview-help kbd {
  font-size: 13px;
  padding: 1px 5px;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 58px;
  padding: 35px;
  background: var(--texture), var(--surface);
  border: 3px solid var(--rim);
  border-right-color: var(--edge);
  border-bottom-color: var(--edge);
}
.about-intro h2 {
  font-size: 37px;
  line-height: 1.5;
}
.about-intro p {
  margin: 22px 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.maintainer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: var(--slot);
  border: 2px solid var(--line);
  box-shadow: inset 3px 3px #0002;
}
.maintainer-card .avatar {
  width: 86px;
  height: 86px;
  margin-bottom: 18px;
  outline: 3px solid var(--rim);
  outline-offset: 5px;
}
.maintainer-card h2 {
  font-size: 27px;
}
.maintainer-card p {
  margin: 6px 0 10px;
  font-size: 15px;
}
.maintainer-card > span:last-child {
  color: var(--muted);
  font:
    15px Consolas,
    monospace;
}
.about-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: 36px;
}
.about-bottom article {
  min-width: 0;
}
.about-bottom .archive-sheet {
  padding: 24px 28px 28px 38px;
}
.panel-body {
  padding-top: 20px;
}
.panel-body > p:first-child {
  margin-top: 0;
}
.notice-board {
  background: var(--paper);
  border: 4px solid #766047;
  border-right-color: #332a21;
  border-bottom-color: #332a21;
  box-shadow: 4px 4px #0003;
}
.notice-board .panel-heading {
  position: relative;
  padding: 18px 26px;
  background: var(--world-material), var(--header);
  color: var(--header-ink);
  border-bottom: 4px solid #332a21;
}
.notice-board .panel-heading::before,
.notice-board .panel-heading::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  top: 8px;
  background: #b8af91;
  box-shadow: 1px 1px #30271e;
}
.notice-board .panel-heading::before {
  left: 8px;
}
.notice-board .panel-heading::after {
  right: 8px;
}
.notice-board .panel-body {
  padding: 24px;
}
.source-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 2px solid var(--paper-line);
}
.source-note h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 17px;
}
.source-note :is(.mc-item, .illustrated-icon) {
  width: 24px;
  height: 24px;
}
.contact-record {
  margin: 22px 0;
  padding: 14px 16px;
  background: var(--slot);
  border: 2px solid var(--paper-line);
  box-shadow: inset 2px 2px #0002;
}
.contact-record > div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  padding: 5px 0;
}
.contact-record dt {
  color: var(--muted);
  font-size: 15px;
}
.contact-record dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.contact-record a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.notice-board .text-link {
  flex-wrap: wrap;
}
.about-bottom h2 {
  font-size: 24px;
}
.about-bottom p {
  margin: 18px 0;
  color: var(--muted);
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.about-bottom p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact-email {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  max-width: 100%;
  color: var(--accent);
  font-size: 19px;
  overflow-wrap: anywhere;
  padding: 10px 0;
  border-bottom: 2px solid var(--paper-line);
}
.contact-email .icon {
  width: 18px;
}
.settings-list {
  padding: 8px 32px;
  background: var(--texture), var(--surface);
  border: 3px solid var(--rim);
  border-right-color: var(--edge);
  border-bottom-color: var(--edge);
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 29px 0;
}
.setting-row + .setting-row {
  border-top: 1px solid var(--line);
}
.setting-row h2 {
  font-size: 22px;
}
.setting-row p {
  color: var(--muted);
  margin-top: 7px;
}
.setting-row > div:first-child {
  min-width: 0;
}
.theme-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.theme-option {
  position: relative;
  cursor: pointer;
}
.theme-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.theme-option > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--edge);
  box-shadow:
    var(--frame),
    0 2px var(--edge);
  background: var(--raised);
  font-size: 15px;
}
.theme-option .icon {
  width: 24px;
  height: 24px;
}
.theme-selected {
  display: flex;
  visibility: hidden;
}
.theme-selected .icon {
  width: 16px;
  height: 16px;
}
.theme-option input:checked + span {
  color: var(--accent);
  background: var(--soft);
  border-color: var(--accent);
  box-shadow: inset 2px 2px #0002;
}
.theme-option input:checked + span .theme-selected {
  visibility: visible;
}
.theme-option:hover > span {
  background: var(--soft);
}
.theme-option input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
@media (forced-colors: active) {
  input[type="checkbox"] {
    appearance: auto;
  }
  input[type="checkbox"]::before {
    display: none;
  }
  .theme-option input:checked + span {
    border-color: Highlight;
  }
  .select-option[aria-selected="true"] {
    border-color: Highlight;
  }
}
.backup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.file-button {
  position: relative;
  cursor: pointer;
}
.file-button:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
kbd {
  display: inline-block;
  padding: 4px 9px;
  background: var(--slot);
  border: 1px solid var(--line);
  box-shadow: 0 3px var(--shade);
  font:
    15px Consolas,
    monospace;
}
.biome-options {
  display: flex;
  gap: 12px;
}
.biome-option {
  border: 2px solid var(--line);
  background: var(--slot);
  color: var(--ink);
  padding: 6px 6px 9px;
  min-width: 94px;
  font-size: 15px;
  line-height: 1.4;
}
.biome-option[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}
.biome-option:hover {
  background: var(--soft);
}
.biome-swatch {
  display: block;
  width: 80px;
  height: 42px;
  margin-bottom: 8px;
  background:
    url("../assets/interface/grass.svg") repeat-x top / 128px 24px,
    url("../assets/interface/dirt.svg"),
    #815b39;
  border: 1px solid #172419;
}
.biome-cherry {
  background:
    url("../assets/interface/cherry-edge.svg") repeat-x top / 128px 24px,
    url("../assets/interface/cherry-bark.svg");
}
.biome-nether {
  background:
    url("../assets/interface/crimson-edge.svg") repeat-x top / 128px 24px,
    url("../assets/interface/netherrack.svg");
}

.site-footer {
  position: relative;
  background: var(--world-material), var(--header);
  border-top: 4px solid #2d421e;
  color: var(--header-ink);
}
.site-footer::before {
  height: 23px;
  margin-top: -4px;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 36px;
  width: min(1184px, calc(100% - 56px));
  padding: 42px 0 30px;
  margin: auto;
}
.footer-identity {
  display: grid;
  justify-items: start;
  gap: 22px;
}
.footer-brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 4px;
}
.footer-brand .brand-logo {
  width: 180px;
  height: auto;
  filter: var(--wordmark-tint);
}
.footer-intro > p {
  color: #fff0cf;
  margin: 12px 0 0 6px;
  line-height: 1.8;
  font-size: 16px;
}
.footer-maintainer {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 280px);
  padding: 12px 14px;
  color: #fff9e8;
  border: 2px solid #241c16;
  background: var(--dug);
  box-shadow:
    inset 2px 2px #ffffff1c,
    inset -2px -2px #0004,
    3px 3px #0003;
  transition:
    background-color 140ms,
    transform 140ms;
}
.footer-player-head {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  height: 48px;
  padding: 4px;
  background: #201e1c;
  box-shadow:
    inset 2px 2px #0009,
    inset -2px -2px #998876;
}
.footer-player-head .member-head {
  width: 40px;
  height: 40px;
}
.footer-player-info {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0 10px;
  min-width: 0;
  font-size: 14px;
}
.footer-player-info > strong {
  grid-column: 1;
  grid-row: 2;
  font-size: 18px;
  line-height: 1.5;
}
.footer-mcid {
  grid-column: 2;
  grid-row: 2;
  color: #efdbb7;
  font-family: Consolas, monospace;
}
.footer-maintainer > .icon {
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex-shrink: 0;
}
.footer-maintainer:hover {
  background: var(--header);
  transform: translateY(-2px);
}
.footer-maintainer:active {
  transform: translate(2px, 2px);
}
.footer-links {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.footer-sign {
  position: relative;
  justify-self: start;
  padding: 5px 26px;
  color: #fff3cf;
  background: #58422d;
  border: 2px solid #241e16;
  border-top-color: #b3925d;
  border-left-color: #b3925d;
  box-shadow:
    inset 0 -3px #33281c,
    3px 3px #0004;
  font-size: 18px;
  letter-spacing: 1px;
  text-shadow: 2px 2px #241e16;
}
.footer-sign::before,
.footer-sign::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  background: #cab47f;
  box-shadow: 1px 1px #241e16;
}
.footer-sign::before {
  left: 9px;
}
.footer-sign::after {
  right: 9px;
}
.footer-inventory {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 3px solid var(--edge);
  background: var(--surface);
  box-shadow:
    inset 3px 3px var(--rim),
    inset -3px -3px var(--shade),
    4px 4px #0005;
}
.footer-slot {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--slot);
  box-shadow:
    inset 2px 2px var(--shade),
    inset -2px -2px var(--rim);
  font-size: 16px;
  line-height: 1.5;
  transition: background-color 140ms;
}
.footer-slot:hover {
  background: var(--soft);
}
.footer-slot:active {
  box-shadow:
    inset 3px 3px var(--shade),
    inset -1px -1px var(--rim);
}
.footer-item {
  display: grid;
  place-items: center;
  height: 40px;
  filter: drop-shadow(2px 2px #0004);
}
.footer-item :is(.mc-item, .illustrated-icon) {
  width: 32px;
  height: 32px;
  transition: transform 140ms steps(2);
}
.footer-slot:hover :is(.mc-item, .illustrated-icon) {
  transform: translateY(-3px);
}
.footer-slot > .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1184px, calc(100% - 56px));
  margin: auto;
  padding: 16px 0 22px;
  border-top: 2px solid #2b211980;
  box-shadow: inset 0 2px #ffffff1c;
  font-size: 15px;
  color: #fff0cf;
}
.footer-community {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-bottom .illustrated-icon {
  width: 24px;
  height: 24px;
}
#toast {
  display: flex;
  align-items: center;
  gap: 12px;
  position: fixed;
  z-index: 300;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 220px;
  max-width: min(400px, calc(100vw - 32px));
  padding: 9px 14px 9px 12px;
  background: var(--raised);
  color: var(--ink);
  border: 1px solid var(--edge);
  box-shadow:
    inset 0 1px var(--rim),
    2px 3px #0003;
  font-size: 16px;
  line-height: 1.35;
  pointer-events: none;
  animation: toast-arrive 160ms steps(4);
}
#toast::before {
  content: "";
  position: absolute;
  inset: -1px auto -1px -1px;
  width: 3px;
  background: var(--accent);
}
#toast[data-tone="neutral"]::before {
  background: var(--muted);
}
#toast:has(.toast-undo) {
  pointer-events: auto;
}
.toast-undo {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 6px 12px;
  font-size: 15px;
}
.toast-item {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  background: var(--slot);
  box-shadow:
    inset 1px 1px var(--shade),
    inset -1px -1px var(--rim);
}
.toast-item > :is(.mc-item, .illustrated-icon),
.toast-item > .icon {
  width: 28px;
  height: 28px;
}
.toast-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.toast-message {
  color: var(--accent);
  font-weight: 600;
  overflow-wrap: anywhere;
}
#toast[data-tone="neutral"] .toast-message {
  color: var(--ink);
}
.toast-copy strong {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@keyframes toast-arrive {
  from {
    opacity: 0;
    translate: 0 6px;
  }
  to {
    opacity: 1;
    translate: 0;
  }
}
.noscript-note {
  max-width: 900px;
  padding: 20px;
  margin: 20px auto;
  background: var(--surface);
}
.just-saved .icon {
  animation: saved-pop 0.3s ease-out;
}
@keyframes saved-pop {
  50% {
    transform: scale(1.28) rotate(-15deg);
  }
}

@media (max-width: 1100px) {
  .header-inner {
    width: calc(100% - 36px);
    gap: 10px;
  }
  .desktop-nav > a {
    padding-inline: 10px;
    gap: 7px;
  }
  .brand-logo {
    width: 157px;
    height: 45px;
  }
  .hero-sign {
    width: 450px;
  }
  .hero-sign > img {
    width: 340px;
  }
  .hero-splash {
    right: -10px;
  }
  .party-xty {
    left: 0;
    height: 237px;
  }
  .party-lgg {
    left: -6%;
  }
  .party-wsd {
    left: 17%;
    height: 143px;
  }
  .party-swk {
    right: 5%;
    height: 220px;
  }
  .party-zzl {
    right: -3%;
    height: 211px;
  }
  .hero-dock {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  #home-search-form {
    width: min(630px, 100%);
  }
  .hero-counts {
    width: 100%;
  }
  .map-grid,
  .author-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-entry {
    gap: 15px;
    padding: 18px;
  }
  .home-entry > div {
    padding-right: 35px;
  }
  .entry-item {
    width: 58px;
    height: 62px;
  }
  .home-entry h2 {
    font-size: 22px;
  }
  .home-entry p {
    max-width: 175px;
  }
  .entry-character {
    width: 80px;
  }
}
@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .header-inner {
    min-height: 68px;
  }
  .header-tools {
    gap: 5px;
  }
  .home-main,
  .page-main {
    width: calc(100% - 40px);
    margin-top: 28px;
  }
  .hero-stage {
    height: 348px;
  }
  .hero-sign {
    width: 430px;
    padding-top: 20px;
  }
  .hero-sign h1 {
    font-size: 32px;
  }
  .hero-sign > p {
    margin-top: 14px;
    font-size: 16px;
  }
  .hero-sign > img {
    width: 305px;
  }
  .hero-splash {
    top: 90px;
    right: 8px;
    font-size: 18px;
  }
  .party-xty {
    height: 201px;
    left: 0;
  }
  .party-lgg {
    height: 166px;
    left: -5%;
    bottom: 24px;
  }
  .party-wsd {
    height: 126px;
    left: 21%;
  }
  .party-swk {
    height: 198px;
    right: 5%;
    bottom: 0;
  }
  .party-zzl {
    height: 165px;
    right: -4%;
  }
  .party-gou {
    height: 117px;
    right: 28%;
  }
  .scene-tnt {
    bottom: 9px;
  }
  .scene-item :is(.mc-item, .illustrated-icon) {
    width: 40px;
    height: 40px;
  }
  .library-controls {
    gap: 12px;
  }
  .author-picker {
    flex-basis: 213px;
  }
  .library-toolbar {
    padding: 17px;
  }
  .results-bar {
    flex-wrap: wrap;
    gap: 14px;
  }
  .result-tools {
    margin-left: auto;
  }
  .list-view .map-card {
    grid-template-columns: 235px minmax(0, 1fr);
  }
  .list-view .card-content {
    padding: 18px;
  }
  .about-intro {
    gap: 30px;
    grid-template-columns: minmax(0, 1fr) 235px;
    padding: 27px;
  }
  .about-intro h2 {
    font-size: 30px;
  }
  .setting-row {
    flex-wrap: wrap;
    gap: 20px;
  }
  .footer-inner {
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
  }
  .footer-brand .brand-logo {
    width: 170px;
  }
  .footer-slot {
    grid-template-columns: 32px minmax(0, 1fr) 12px;
    gap: 8px;
    padding-inline: 8px;
  }
  .footer-inventory {
    padding: 10px;
  }
  .footer-player-info {
    grid-template-columns: 1fr;
  }
  .footer-mcid {
    grid-column: 1;
    grid-row: 3;
  }
}
@media (max-width: 700px) {
  .home-main,
  .page-main {
    width: calc(100% - 32px);
    margin-bottom: 55px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 15px;
  }
  .heading-text h1 {
    font-size: 32px;
    gap: 12px;
  }
  .heading-text h1 > :is(.mc-item, .illustrated-icon),
  .heading-text h1 > .member-head {
    width: 38px;
    height: 38px;
  }
  .heading-text > p {
    font-size: 16px;
  }
  .page-heading > .random-button {
    font-size: 14px;
    padding: 8px 10px;
    min-height: 44px;
  }
  .page-heading > .random-button .illustrated-icon {
    width: 23px;
    height: 23px;
  }
  .page-heading > .random-button > svg.icon {
    display: none;
  }
  .hero-stage {
    height: 329px;
  }
  .hero-sign {
    width: 83%;
    padding-top: 18px;
  }
  .hero-sign > img {
    width: 285px;
  }
  .hero-sign h1 {
    font-size: 29px;
    letter-spacing: 4px;
  }
  .hero-sign > p {
    font-size: 15px;
    margin-top: 13px;
  }
  .hero-splash {
    top: 76px;
    right: -5px;
    font-size: 16px;
  }
  .party-xty {
    height: 172px;
    left: -1%;
  }
  .party-lgg {
    height: 148px;
    left: -8%;
    bottom: 7px;
  }
  .party-wsd {
    height: 103px;
    left: 22%;
  }
  .party-swk {
    height: 163px;
    right: 3%;
    bottom: 3px;
  }
  .party-zzl {
    height: 155px;
    right: -11%;
  }
  .party-gou {
    height: 98px;
    right: 29%;
  }
  .hero-dock {
    padding: 24px 18px 18px;
    gap: 17px;
  }
  .hero-actions {
    width: 100%;
    justify-content: center;
  }
  .hero-actions .button {
    padding: 10px 15px;
  }
  .hero-button {
    min-width: 0;
  }
  .hero-counts {
    gap: 18px;
  }
  .hero-counts > span {
    gap: 6px;
    font-size: 14px;
  }
  .hero-counts strong {
    font-size: 20px;
  }
  .hero-counts :is(.mc-item, .illustrated-icon),
  .hero-counts .icon {
    display: none;
  }
  .section-title h2 {
    font-size: 24px;
  }
  .section-title .text-link {
    font-size: 15px;
  }
  .map-banner {
    min-height: 158px;
    padding: 17px 19px;
    gap: 20px;
  }
  .map-banner > :is(img, .cover-placeholder) {
    width: 85%;
  }
  .banner-content h3 {
    font-size: 21px;
  }
  .home-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .home-entry {
    min-height: 128px;
    padding: 19px;
    gap: 21px;
  }
  .home-entry p {
    max-width: none;
  }
  .entry-character {
    right: 30px;
    width: 93px;
    height: 137px;
  }
  .home-entry > div {
    padding-right: 65px;
  }
  .library-controls {
    flex-direction: column;
  }
  .author-picker {
    flex-basis: auto;
  }
  .author-trigger {
    min-height: 52px;
  }
  .author-popover {
    width: 100%;
    max-width: 100%;
  }
  .search-form {
    gap: 8px;
    padding-left: 10px;
  }
  .search-submit {
    padding-inline: 12px;
  }
  .categories {
    margin-top: 15px;
    flex-wrap: nowrap;
  }
  .category-button {
    padding: 8px 10px;
  }
  .results-bar {
    align-items: flex-start;
    margin: 23px 0 19px;
  }
  .result-tools {
    width: 100%;
    margin: 0;
    justify-content: space-between;
    gap: 10px;
  }
  .check-label {
    font-size: 14px;
  }
  .result-tools select {
    font-size: 14px;
    padding: 7px;
  }
  .select-trigger {
    font-size: 14px;
    padding: 7px 8px;
    gap: 8px;
  }
  .card-content {
    padding: 17px 17px 14px;
  }
  .card-content h2 {
    font-size: 20px;
  }
  .map-grid,
  .author-grid {
    gap: 20px;
  }
  .author-card {
    padding: 18px 18px 0;
  }
  .author-count {
    margin-inline: -18px;
  }
  .author-card-heading {
    gap: 14px;
  }
  .author-card .avatar {
    width: 56px;
    height: 56px;
  }
  .author-card h2 {
    font-size: 19px;
  }
  .detail-summary {
    padding: 21px;
  }
  .detail-heading {
    display: block;
  }
  .detail-facts {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    gap: 20px;
    margin-top: 12px;
  }
  .detail-facts strong {
    font-size: 22px;
  }
  .detail-actions {
    gap: 12px;
  }
  .detail-more {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 22px 22px 22px 32px;
  }
  .detail-tools {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .episode {
    padding: 19px 17px;
    gap: 14px;
  }
  .episode-number {
    width: 37px;
    height: 41px;
    font-size: 20px;
  }
  .episode-play > span {
    display: none;
  }
  .about-intro {
    grid-template-columns: 1fr;
  }
  .maintainer-card {
    max-width: none;
  }
  .about-bottom {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .settings-list {
    padding: 0 22px;
  }
  .setting-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .theme-options {
    width: 100%;
    gap: 8px;
  }
  .theme-option {
    flex: 1;
    min-width: 0;
  }
  .theme-option > span {
    flex-direction: column;
    font-size: 14px;
    padding: 12px 6px;
    gap: 6px;
  }
  .theme-selected {
    position: absolute;
    top: 5px;
    right: 5px;
  }
  .theme-selected .icon {
    width: 12px;
    height: 12px;
  }
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 26px 20px;
    width: calc(100% - 40px);
    padding: 32px 0 26px;
  }
  .footer-identity {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .footer-brand {
    font-size: 16px;
  }
  .footer-maintainer {
    width: auto;
  }
  .footer-intro > p {
    font-size: 15px;
  }
  .footer-bottom {
    width: calc(100% - 40px);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
@media (max-width: 560px) {
  html {
    scroll-padding-top: 108px;
  }
  .header-inner {
    width: calc(100% - 24px);
    gap: 8px;
    min-height: 66px;
  }
  .brand-logo {
    width: 132px;
    height: 38px;
  }
  .brand {
    gap: 6px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .brand-subtitle {
    letter-spacing: 3px;
    font-size: 13px;
  }
  .header-tools {
    gap: 1px;
  }
  .header-tools .icon-button {
    width: 36px;
    height: 40px;
    padding: 7px;
  }
  .settings-link {
    display: none;
  }
  .world-menu-panel {
    position: fixed;
    top: 90px;
    left: 16px;
    right: 16px;
    width: auto;
    padding: 16px;
    max-height: calc(100dvh - 115px);
    overflow-y: auto;
  }
  .world-menu-panel > div a {
    font-size: 14px;
    padding: 9px;
    gap: 7px;
  }
  .world-menu-panel > div a > .icon:last-child {
    display: none;
  }
  .world-menu-panel :is(.mc-item, .illustrated-icon) {
    width: 26px;
    height: 26px;
  }
  .mobile-menu {
    padding-inline: 12px;
    gap: 7px;
  }
  .mobile-menu a {
    font-size: 14px;
    gap: 7px;
  }
  .mobile-menu .illustrated-icon {
    width: 24px;
    height: 24px;
  }
  .page-heading {
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 21px;
  }
  .page-heading > .random-button {
    margin-top: 0;
  }
  .page-total {
    font-size: 16px;
  }
  .home-main {
    margin-top: 21px;
  }
  .home-hero {
    border-width: 3px;
  }
  .hero-stage {
    height: 350px;
  }
  .hero-sign {
    width: 90%;
    padding-top: 12px;
  }
  .hero-sign > img {
    width: min(270px, 90%);
  }
  .hero-sign h1 {
    font-size: 27px;
    letter-spacing: 3px;
  }
  .hero-sign > p {
    font-size: 14px;
    padding-inline: 6px;
  }
  .hero-splash {
    top: 180px;
    right: 20px;
    font-size: 15px;
    rotate: -4deg;
  }
  .pixel-sun {
    width: 35px;
    height: 35px;
    top: 25px;
    right: 8%;
  }
  .party-xty {
    height: 128px;
    left: 6%;
    bottom: -6px;
  }
  .party-lgg {
    height: 110px;
    left: -3%;
    bottom: 27px;
  }
  .party-wsd {
    height: 90px;
    left: 32%;
    bottom: -8px;
  }
  .party-swk {
    height: 128px;
    right: 10%;
    bottom: 21px;
  }
  .party-zzl {
    height: 130px;
    right: -1%;
    bottom: -10px;
  }
  .party-gou {
    height: 84px;
    right: 26%;
    bottom: -10px;
  }
  .scene-item :is(.mc-item, .illustrated-icon) {
    width: 32px;
    height: 32px;
  }
  .scene-tnt {
    left: 14%;
    bottom: 2px;
  }
  .scene-chest {
    right: 9%;
    bottom: -6px;
  }
  .hero-dock {
    padding: 23px 12px 17px;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .button {
    padding: 10px 11px;
    font-size: 15px;
    gap: 7px;
    flex: 1;
  }
  .hero-actions .button > svg.icon {
    display: none;
  }
  .hero-actions .illustrated-icon {
    width: 25px;
    height: 25px;
  }
  .hero-counts {
    gap: 13px;
    padding-top: 14px;
  }
  .hero-counts > span {
    display: flex;
    gap: 2px;
    flex-direction: column;
    font-size: 14px;
  }
  .hero-counts strong {
    line-height: 1.2;
    font-size: 22px;
  }
  #home-search {
    font-size: 14px;
  }
  .home-recent {
    margin-top: 31px;
  }
  .section-title {
    gap: 12px;
  }
  .section-title h2 {
    font-size: 22px;
    gap: 8px;
  }
  .section-title h2 :is(.mc-item, .illustrated-icon) {
    width: 26px;
    height: 26px;
  }
  .section-title > span {
    font-size: 14px;
  }
  .section-title .text-link {
    font-size: 14px;
    gap: 4px;
  }
  .banner-content h3 {
    font-size: 20px;
  }
  .map-banner {
    gap: 12px;
    padding: 16px;
    min-height: 0;
  }
  .map-banner > :is(img, .cover-placeholder) {
    width: 100%;
  }
  .map-banner::before {
    background: linear-gradient(90deg, #202925f5 6%, #202925de 42%, #20292580);
  }
  .home-entry {
    padding: 16px;
    gap: 14px;
  }
  .home-entry h2 {
    font-size: 22px;
  }
  .home-entry p {
    font-size: 14px;
    max-width: 140px;
  }
  .home-entry > div {
    padding-right: 35px;
  }
  .entry-character {
    right: 8px;
    width: 80px;
    height: 120px;
  }
  .entry-item {
    width: 49px;
    height: 56px;
  }
  .entry-item :is(.mc-item, .illustrated-icon) {
    width: 39px;
    height: 39px;
  }
  .recording-source {
    font-size: 14px;
  }
  .map-grid,
  .author-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .map-card:hover {
    translate: none;
  }
  .card-content {
    padding: 18px;
  }
  .card-content h2 {
    font-size: 22px;
  }
  .card-title {
    min-height: 0;
  }
  .card-author {
    margin-top: 16px;
  }
  .watch-link {
    font-size: 16px;
  }
  .library-toolbar {
    padding: 12px;
  }
  .search-form > :is(.mc-item, .illustrated-icon) {
    width: 21px;
    height: 21px;
  }
  #map-search {
    font-size: 15px;
  }
  .result-tools {
    gap: 6px;
  }
  .result-tools .check-label {
    gap: 5px;
  }
  .result-tools select {
    padding-inline: 4px;
  }
  .view-switch {
    padding: 2px;
    gap: 1px;
  }
  .view-switch .icon-button {
    width: 30px;
  }
  .list-view .map-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }
  .list-view .card-image {
    min-height: 190px;
    border-right-width: 2px;
  }
  .list-view .card-content {
    padding: 13px 11px;
  }
  .list-view .card-content h2 {
    font-size: 17px;
  }
  .list-view .card-status {
    display: none;
  }
  .list-view .card-author {
    font-size: 14px;
    gap: 10px;
  }
  .list-view .card-bottom {
    flex-wrap: wrap;
  }
  .list-view .watch-link {
    font-size: 14px;
  }
  .list-view .card-bottom time {
    display: none;
  }
  .list-view .duration {
    right: 3px;
    bottom: 5px;
    padding-inline: 3px;
  }
  .pagination {
    gap: 7px;
  }
  .page-button {
    min-width: 34px;
    min-height: 39px;
    padding: 6px 9px;
    font-size: 15px;
  }
  .author-card {
    padding: 22px 22px 0;
  }
  .author-count {
    margin-inline: -22px;
  }
  .author-card .avatar {
    width: 64px;
    height: 64px;
  }
  .author-card h2 {
    font-size: 22px;
  }
  .empty-state {
    flex-direction: column;
    text-align: center;
    gap: 17px;
    padding: 25px 18px;
  }
  .empty-character {
    height: 130px;
  }
  .detail-summary {
    padding: 19px 17px 23px;
  }
  .detail-summary h1 {
    font-size: 27px;
  }
  .cover-expand {
    right: 8px;
    bottom: 8px;
    font-size: 13px;
    min-height: 32px;
    padding: 5px 8px;
  }
  .detail-actions > .text-link {
    width: 100%;
    margin: 6px 0 0;
  }
  .detail-actions .button {
    padding: 10px 12px;
    font-size: 15px;
    gap: 8px;
  }
  .episode {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 17px 12px;
    gap: 10px;
  }
  .episode-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-right: 0;
  }
  .episode-row .episode {
    grid-area: 1 / 1;
  }
  .episode-watched {
    grid-area: 1 / 1;
    align-self: end;
    justify-self: end;
    margin: 0 12px 17px;
    min-height: 44px;
    padding: 6px 10px;
  }
  .episode-progress-label {
    gap: 12px;
  }
  .episode-progress progress {
    width: 80px;
  }
  .episode-number {
    width: 28px;
    height: 35px;
    font-size: 16px;
  }
  .episode-text > strong {
    font-size: 16px;
  }
  .episode-text > span {
    font-size: 14px;
  }
  .episode-text > span > span {
    margin: 0 4px;
  }
  .episode-play {
    display: inline-flex;
    grid-column: 2;
    justify-self: start;
    min-height: 44px;
    padding: 4px 10px;
    font-size: 14px;
  }
  .episode-play > span {
    display: inline;
  }
  .detail-more {
    padding: 20px 17px 20px 28px;
  }
  .record-fields > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .detail-tools {
    flex-direction: column;
  }
  .preview-toolbar {
    padding: 7px 8px 7px 12px;
    font-size: 15px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .preview-toolbar > span {
    flex: 1;
    min-width: 150px;
  }
  .preview-tools {
    margin-left: auto;
  }
  .about-intro {
    padding: 23px;
  }
  .about-bottom .archive-sheet {
    padding: 20px 20px 20px 30px;
  }
  .notice-board .panel-heading {
    padding: 20px;
  }
  .notice-board .panel-body {
    padding: 20px;
  }
  .contact-record {
    padding: 12px;
  }
  .contact-record > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .about-intro h2 {
    font-size: 28px;
  }
  .contact-email {
    font-size: 16px;
  }
  .settings-list {
    padding-inline: 18px;
  }
  .setting-row h2 {
    font-size: 21px;
  }
  .biome-options {
    gap: 10px;
    width: 100%;
  }
  .biome-option {
    min-width: 0;
    width: 33.33%;
    padding: 5px 5px 8px;
  }
  .biome-swatch {
    width: 100%;
  }
  .backup-actions .button {
    font-size: 15px;
    padding-inline: 12px;
  }
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .footer-identity {
    display: grid;
    gap: 18px;
    justify-items: stretch;
  }
  .footer-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .footer-brand .brand-logo {
    width: 128px;
  }
  .footer-brand {
    letter-spacing: 2px;
    font-size: 14px;
    flex-shrink: 0;
  }
  .footer-intro > p {
    margin: 0;
  }
  .footer-links {
    gap: 12px;
  }
  .footer-sign {
    font-size: 17px;
  }
  .footer-slot {
    grid-template-columns: 36px minmax(0, 1fr) 16px;
    min-height: 54px;
    gap: 12px;
    padding-block: 6px;
  }
  .footer-maintainer {
    width: 100%;
    padding: 10px;
    gap: 10px;
  }
  .footer-player-head {
    flex-basis: 36px;
    height: 36px;
    padding: 2px;
  }
  .footer-player-head .member-head {
    width: 32px;
    height: 32px;
  }
  .footer-maintainer > .icon {
    display: block;
  }
  .footer-player-info {
    grid-template-columns: auto auto;
  }
  .footer-mcid {
    grid-column: 2;
    grid-row: 2;
  }
  .footer-player-info > strong {
    font-size: 16px;
  }
  .footer-bottom {
    font-size: 15px;
  }
  #toast {
    bottom: max(16px, env(safe-area-inset-bottom));
    gap: 10px;
    padding-inline: 11px;
  }
}
/* Keep the old snapshot still; only the new theme travels across the viewport. */
:root[data-theme-transition] *,
:root[data-theme-transition] *::before,
:root[data-theme-transition] *::after {
  transition: none !important;
}
:root[data-theme-transition]::view-transition,
:root[data-theme-transition]::view-transition-group(root),
:root[data-theme-transition]::view-transition-image-pair(root) {
  pointer-events: none;
}
:root[data-theme-transition]::view-transition-group(root),
:root[data-theme-transition]::view-transition-old(root),
:root[data-theme-transition]::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
:root[data-theme-transition]::view-transition-old(root) {
  opacity: 1;
  z-index: 1;
}
:root[data-theme-transition]::view-transition-new(root) {
  opacity: 1;
  z-index: 2;
  mask-repeat: no-repeat;
  mask-image: linear-gradient(to top right, #000 48%, transparent 52%);
  mask-size: 220% 220%;
  mask-position: 100% 0%;
  pointer-events: none;
}
:root[data-theme-transition="light"]::view-transition-new(root) {
  mask-image: linear-gradient(to left, #000 48%, transparent 52%);
  mask-size: 220% 100%;
  mask-position: 0% 0%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .party-person {
    translate: none;
  }
}
:root[data-motion="reduced"] {
  scroll-behavior: auto;
}
:root[data-motion="reduced"] *,
:root[data-motion="reduced"] *::before,
:root[data-motion="reduced"] *::after {
  animation: none !important;
  transition: none !important;
}
:root[data-motion="reduced"] .party-person {
  translate: none;
}
