:root {
  color-scheme: dark;
  --ink: 230 236 246;
  --muted: 184 197 216;
  --accent: #8cafd2;
  --accent-rgb: 140 175 210;
  --panel: 10 14 22;
  --panel-alpha: .58;
  --border: rgb(var(--accent-rgb) / .14);
  --site-max: 1200px;
  --bg-dim: .18;
  --font-scale: 1.20;
  --serif: "LXGW WenKai", "STKaiti", "KaiTi", "Songti SC", serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: #080c12;
  color: rgb(var(--ink) / .86);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgb(var(--accent-rgb) / .04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--accent-rgb) / .04) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0%, rgb(190 205 225 / .12), transparent 60%);
  background-size: 72px 72px, 72px 72px, auto;
}
body.no-grid::before {
  background: radial-gradient(ellipse at 50% 0%, rgb(190 205 225 / .12), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgb(0 0 0 / .025) 2px, rgb(0 0 0 / .025) 4px);
  box-shadow: inset 0 0 180px 30px rgb(0 0 0 / .34);
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: rgb(var(--accent-rgb) / .22); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: rgb(var(--accent-rgb) / .22); border-radius: 8px; }

.is-hidden { display: none !important; }
.wrap { width: min(calc(100% - 72px), var(--site-max)); margin-inline: auto; }

.site-bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -3;
  pointer-events: none;
}
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: rgb(7 10 15 / var(--bg-dim));
  backdrop-filter: saturate(.88);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: 58px;
  background: rgb(7 11 18 / .62);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(22px) saturate(1.15);
}
.site-header__inner {
  width: min(calc(100% - 72px), var(--site-max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.brand__cn { letter-spacing: .45em; font-size: var(--fs-16, 16px); color: rgb(var(--ink) / .88); }
.brand__divider { width: 1px; height: 14px; background: var(--border); }
.brand__version { font-family: var(--mono); font-size: var(--fs-9, 9px); color: rgb(var(--muted) / .46); letter-spacing: .08em; }
.site-nav { display: flex; align-items: stretch; align-self: stretch; gap: 2px; overflow-x: auto; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  text-decoration: none;
  color: rgb(var(--muted) / .54);
  font-size: var(--fs-13, 13px);
  letter-spacing: .12em;
  white-space: nowrap;
  transition: color .2s ease;
}
.site-nav__link:hover, .site-nav__link.is-active { color: rgb(var(--ink) / .92); }
.site-nav__link.is-active::after { content: ""; position: absolute; bottom: -1px; left: 14px; right: 14px; height: 2px; background: rgb(var(--accent-rgb) / .78); }

.hero {
  min-height: calc(100vh - 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 82px 28px 110px;
  text-align: center;
  position: relative;
}
.hero::before, .hero::after { content: ""; position: absolute; width: 28px; height: 28px; opacity: .6; }
.hero::before { left: 36px; top: 36px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.hero::after { right: 36px; bottom: 36px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { margin: 0 0 18px; font-family: var(--mono); color: rgb(var(--muted) / .40); font-size: var(--fs-10, 10px); letter-spacing: .42em; text-transform: uppercase; }
.hero h1 { position: relative; margin: 0; max-width: 1100px; color: rgb(var(--ink) / .95); font-weight: 400; font-size: clamp(42px, 7vw, 82px); line-height: 1.25; letter-spacing: .09em; text-shadow: 0 4px 38px rgb(0 0 0 / .22); }
.hero h1.is-glitching { animation: coverGlitch .3s ease; }
.hero h1.is-glitching::before,
.hero h1.is-glitching::after { content: attr(data-glitch); position: absolute; inset: 0; pointer-events: none; text-shadow: none; }
.hero h1.is-glitching::before { color: rgb(255 80 80 / .20); transform: translate(-3px, -1px); clip-path: polygon(0 15%, 100% 15%, 100% 45%, 0 45%); }
.hero h1.is-glitching::after { color: rgb(80 180 255 / .17); transform: translate(3px, 1px); clip-path: polygon(0 60%, 100% 60%, 100% 85%, 0 85%); }
.hero__subtitle { margin: 28px 0 0; font-size: var(--fs-17, 17px); line-height: 2; letter-spacing: .05em; color: rgb(var(--muted) / .63); }
.hero__note { margin: 6px 0 0; font-size: var(--fs-12, 12px); color: rgb(var(--muted) / .31); }
.scroll-cue { position: absolute; bottom: 38px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; font-family: var(--mono); font-size: var(--fs-9, 9px); letter-spacing: .3em; color: rgb(var(--muted) / .34); }
.scroll-cue i { display: block; width: 1px; height: 30px; background: linear-gradient(rgb(var(--accent-rgb) / .6), transparent); animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(6px); opacity: .45; } }
@keyframes coverGlitch {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 1px) skewX(-1deg); }
  40% { transform: translate(2px, -1px) skewX(.5deg); }
  60% { transform: translate(-1px, 0) skewX(-.3deg); }
  80% { transform: translate(1px, 1px); }
  100% { transform: translate(0); }
}

.catalog { padding-top: 82px; padding-bottom: 120px; scroll-margin-top: 74px; }
.announcement { margin-bottom: 28px; padding: 14px 18px; border: 1px solid rgb(var(--accent-rgb) / .17); border-left: 2px solid rgb(var(--accent-rgb) / .72); background: rgb(10 15 24 / .54); color: rgb(var(--muted) / .72); line-height: 1.8; font-size: var(--fs-13, 13px); backdrop-filter: blur(18px); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.section-heading h2 { margin: 0 0 10px; font-weight: 400; font-size: var(--fs-30, 30px); letter-spacing: .05em; color: rgb(var(--ink) / .9); }
.section-copy { margin: 0; max-width: 700px; line-height: 1.85; font-size: var(--fs-14, 14px); color: rgb(var(--muted) / .52); }
.record-count { display: flex; align-items: baseline; gap: 8px; font-family: var(--mono); white-space: nowrap; color: rgb(var(--muted) / .32); font-size: var(--fs-10, 10px); letter-spacing: .08em; }
.record-count strong { font-size: var(--fs-26, 26px); font-weight: 300; color: rgb(var(--ink) / .65); }

.hall-tabs { display: flex; overflow-x: auto; gap: 6px; margin: 0 0 18px; padding-bottom: 3px; }
.hall-tab {
  flex: 0 0 auto;
  min-width: 118px;
  padding: 10px 14px;
  border: 1px solid rgb(var(--accent-rgb) / .10);
  border-radius: 2px;
  background: rgb(8 12 18 / .30);
  color: rgb(var(--muted) / .48);
  cursor: pointer;
  text-align: left;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.hall-tab small { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: var(--fs-8, 8px); letter-spacing: .15em; color: rgb(var(--muted) / .28); }
.hall-tab strong { font-size: var(--fs-13, 13px); font-weight: 400; }
.hall-tab:hover, .hall-tab.is-active { background: rgb(var(--accent-rgb) / .10); border-color: rgb(var(--accent-rgb) / .3); color: rgb(var(--ink) / .84); }

.visitor-preferences {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
  padding: 13px 14px;
  border: 1px solid rgb(var(--accent-rgb) / .12);
  border-radius: 3px;
  background: linear-gradient(110deg, rgb(var(--accent-rgb) / .055), rgb(8 12 19 / .46));
  backdrop-filter: blur(16px);
}
.visitor-preferences__copy { align-self: center; min-width: 0; }
.visitor-preferences__copy small { display: block; margin-bottom: 3px; color: rgb(var(--accent-rgb) / .45); font-family: var(--mono); font-size: var(--fs-8, 8px); letter-spacing: .14em; }
.visitor-preferences__copy strong { display: block; color: rgb(var(--ink) / .78); font-size: var(--fs-14, 14px); font-weight: 400; }
.visitor-preferences__copy span { display: block; margin-top: 2px; color: rgb(var(--muted) / .34); font-size: var(--fs-10, 10px); }
.visitor-preferences label { display: grid; gap: 5px; }
.visitor-preferences label > span { color: rgb(var(--muted) / .42); font-size: var(--fs-10, 10px); }
.visitor-preferences select, .visitor-preferences button { height: 38px; border: 1px solid rgb(var(--accent-rgb) / .14); border-radius: 2px; background: rgb(7 11 18 / .62); color: rgb(var(--ink) / .68); outline: none; }
.visitor-preferences select { min-width: 0; padding: 0 10px; color-scheme: dark; font-size: var(--fs-11, 11px); }
.visitor-preferences select:focus { border-color: rgb(var(--accent-rgb) / .44); }
.visitor-preferences button { padding: 0 13px; cursor: pointer; color: rgb(var(--muted) / .43); font-size: var(--fs-11, 11px); white-space: nowrap; }
.visitor-preferences button:hover { border-color: rgb(var(--accent-rgb) / .3); color: rgb(var(--ink) / .78); background: rgb(var(--accent-rgb) / .08); }

.toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 180px 160px auto; gap: 8px; margin-bottom: 14px; }
.toolbar input, .toolbar select, .ghost-button {
  height: 42px;
  border: 1px solid rgb(var(--accent-rgb) / .13);
  border-radius: 2px;
  background: rgb(8 12 19 / .48);
  color: rgb(var(--ink) / .72);
  outline: none;
  backdrop-filter: blur(16px);
}
.toolbar input:focus, .toolbar select:focus { border-color: rgb(var(--accent-rgb) / .44); }
.toolbar select { padding: 0 12px; font-size: var(--fs-12, 12px); color-scheme: dark; }
.searchbox { position: relative; }
.searchbox span { position: absolute; left: 14px; top: 10px; color: rgb(var(--muted) / .42); font-family: var(--mono); }
.searchbox input { width: 100%; padding: 0 14px 0 38px; font-family: var(--mono); font-size: var(--fs-12, 12px); }
.searchbox input::placeholder { color: rgb(var(--muted) / .30); }
.ghost-button { padding: 0 16px; cursor: pointer; font-size: var(--fs-12, 12px); color: rgb(var(--muted) / .48); }
.ghost-button:hover { color: rgb(var(--ink) / .84); background: rgb(var(--accent-rgb) / .08); }

.archive-table-wrap { border: 1px solid var(--border); border-radius: 3px; overflow: auto; background: rgb(var(--panel) / var(--panel-alpha)); backdrop-filter: blur(18px) saturate(1.05); }
.archive-table { width: 100%; border-collapse: collapse; min-width: 850px; table-layout: fixed; }
.archive-table thead { background: rgb(var(--accent-rgb) / .045); }
.archive-table th { height: 42px; padding: 0 17px; color: rgb(var(--muted) / .34); font-family: var(--mono); font-weight: 400; font-size: var(--fs-9, 9px); letter-spacing: .16em; text-align: left; border-bottom: 1px solid var(--border); }
.archive-table th:nth-child(1) { width: 28%; }
.archive-table th:nth-child(2) { width: 24%; }
.archive-table th:nth-child(3) { width: 16%; }
.archive-table th:nth-child(4) { width: 27%; }
.archive-table th.table-arrow { width: 5%; }
.record-row { cursor: pointer; outline: none; transition: background .2s ease; }
.record-row:hover, .record-row:focus-visible { background: rgb(var(--accent-rgb) / .07); }
.record-row td { padding: 16px 17px; border-bottom: 1px solid rgb(var(--accent-rgb) / .075); vertical-align: middle; color: rgb(var(--muted) / .59); font-size: var(--fs-13, 13px); line-height: 1.55; }
.record-row:last-child td { border-bottom: 0; }
.record-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.record-thumb { width: 34px; height: 34px; border-radius: 2px; object-fit: cover; border: 1px solid rgb(var(--accent-rgb) / .17); flex: 0 0 auto; }
.record-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgb(var(--ink) / .85); font-size: var(--fs-15, 15px); font-weight: 400; }
.record-name small { display: block; margin-top: 2px; font-family: var(--mono); font-size: var(--fs-8, 8px); letter-spacing: .1em; color: rgb(var(--muted) / .25); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: var(--fs-11, 11px); }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.status-active { color: #55c68b; }
.status-slow { color: #d7aa53; }
.status-stopped { color: #8e98a7; }
.status-other { color: rgb(var(--accent-rgb) / .78); }
.evaluation-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: rgb(var(--muted) / .48); }
.row-arrow { text-align: right; color: rgb(var(--muted) / .28); font-family: var(--mono); transition: transform .2s ease, color .2s ease; }
.record-row:hover .row-arrow { transform: translateX(3px); color: rgb(var(--accent-rgb) / .75); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.record-card { min-height: 170px; padding: 19px; border: 1px solid var(--border); background: rgb(var(--panel) / var(--panel-alpha)); backdrop-filter: blur(16px); cursor: pointer; color: inherit; text-align: left; border-radius: 3px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.record-card:hover { transform: translateY(-2px); border-color: rgb(var(--accent-rgb) / .33); background: rgb(var(--panel) / .72); }
.record-card__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.record-card__content { display: flex; align-items: flex-start; gap: 15px; margin-top: 16px; }
.record-card__avatar { width: 56px; height: 56px; flex: 0 0 56px; object-fit: cover; border: 1px solid rgb(var(--accent-rgb) / .22); border-radius: 50%; background: rgb(var(--accent-rgb) / .08); }
.record-card__avatar--fallback { display: grid; place-items: center; color: rgb(var(--accent-rgb) / .72); font-family: var(--mono); font-size: var(--fs-18, 18px); background: radial-gradient(circle at 30% 25%, rgb(var(--accent-rgb) / .17), rgb(10 15 23 / .75)); }
.record-card__copy { min-width: 0; flex: 1; }
.record-card h3 { margin: 0 0 8px; font-size: var(--fs-18, 18px); font-weight: 400; color: rgb(var(--ink) / .86); }
.record-card p { margin: 0; color: rgb(var(--muted) / .50); font-size: var(--fs-12, 12px); line-height: 1.75; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.record-card__type { font-family: var(--mono); color: rgb(var(--accent-rgb) / .57) !important; font-size: var(--fs-9, 9px) !important; letter-spacing: .08em; }

.empty-state { padding: 78px 20px; text-align: center; border: 1px solid var(--border); background: rgb(var(--panel) / .42); }
.empty-state span, .loading-block { font-family: var(--mono); font-size: var(--fs-10, 10px); letter-spacing: .28em; color: rgb(var(--muted) / .35); }
.empty-state p { margin: 14px 0 0; color: rgb(var(--muted) / .5); font-size: var(--fs-13, 13px); }

.site-footer { min-height: 130px; padding-block: 35px 46px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; color: rgb(var(--muted) / .4); font-size: var(--fs-12, 12px); line-height: 1.9; }
.site-footer p { margin: 0; }
.footer-mark { margin-bottom: 6px !important; font-family: var(--mono); font-size: var(--fs-9, 9px); letter-spacing: .16em; color: rgb(var(--muted) / .28); }
.footer-side { display: flex; flex-direction: column; text-align: right; font-family: var(--mono); font-size: var(--fs-8, 8px); letter-spacing: .14em; color: rgb(var(--muted) / .21); }
.footer-side a { align-self: flex-end; text-decoration: none; color: rgb(var(--muted) / .27); }
.footer-side a:hover { color: rgb(var(--muted) / .62); }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 28px; }
.modal__backdrop { position: absolute; inset: 0; background: rgb(2 4 7 / .72); backdrop-filter: blur(8px); }
.modal__panel { position: relative; width: min(780px, 100%); max-height: min(820px, calc(100vh - 56px)); overflow: auto; border: 1px solid rgb(var(--accent-rgb) / .24); border-radius: 4px; background: rgb(8 12 18 / .94); box-shadow: 0 30px 100px rgb(0 0 0 / .55); }
.modal__close { position: sticky; z-index: 3; float: right; top: 14px; right: 14px; width: 34px; height: 34px; margin: 14px 14px 0 0; border: 1px solid var(--border); border-radius: 50%; background: rgb(12 17 25 / .82); color: rgb(var(--muted) / .6); cursor: pointer; font-family: var(--mono); font-size: var(--fs-18, 18px); }
.modal__close:hover { border-color: rgb(var(--accent-rgb) / .4); color: rgb(var(--ink) / .9); }
.entry-detail { padding: 28px 32px 34px; }
.entry-detail__image { width: 100%; max-height: 330px; object-fit: cover; border-radius: 3px; border: 1px solid var(--border); margin-bottom: 28px; }
.entry-detail__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.meta-chip { display: inline-flex; min-height: 26px; align-items: center; padding: 3px 9px; border: 1px solid var(--border); border-radius: 2px; color: rgb(var(--muted) / .56); font-family: var(--mono); font-size: var(--fs-9, 9px); letter-spacing: .04em; }
.entry-detail h1 { clear: both; margin: 8px 0 22px; color: rgb(var(--ink) / .94); font-size: clamp(var(--fs-28, 28px), 4vw, var(--fs-40, 40px)); font-weight: 400; line-height: 1.35; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 24px; background: var(--border); border: 1px solid var(--border); }
.detail-item { min-height: 66px; padding: 12px 14px; background: rgb(9 13 20 / .95); }
.detail-item small { display: block; margin-bottom: 7px; font-family: var(--mono); font-size: var(--fs-8, 8px); letter-spacing: .15em; color: rgb(var(--muted) / .27); }
.detail-item span { color: rgb(var(--muted) / .67); line-height: 1.55; font-size: var(--fs-13, 13px); }
.detail-section { margin-top: 24px; }
.detail-section h2 { margin: 0 0 9px; font-family: var(--mono); font-size: var(--fs-9, 9px); font-weight: 400; letter-spacing: .18em; color: rgb(var(--accent-rgb) / .55); }
.detail-section p { margin: 0; color: rgb(var(--muted) / .69); font-size: var(--fs-14, 14px); line-height: 2; white-space: pre-wrap; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.detail-actions a, .detail-actions button { min-height: 38px; padding: 8px 14px; border: 1px solid rgb(var(--accent-rgb) / .20); border-radius: 2px; background: rgb(var(--accent-rgb) / .07); color: rgb(var(--muted) / .72); text-decoration: none; cursor: pointer; font-size: var(--fs-12, 12px); }
.detail-actions .primary { border-color: rgb(var(--accent-rgb) / .42); background: rgb(var(--accent-rgb) / .16); color: rgb(var(--ink) / .88); }

.tribute-offering {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 116px;
  margin-top: 28px;
  padding: 17px 18px;
  overflow: hidden;
  border-radius: 3px;
}
.tribute-offering > * { position: relative; z-index: 1; }
.tribute-offering::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.tribute-offering.is-activated::after { opacity: 1; }
.tribute-copy { min-width: 0; }
.tribute-copy small { display: block; margin-bottom: 5px; font-family: var(--mono); font-size: var(--fs-8, 8px); letter-spacing: .16em; }
.tribute-copy strong { display: block; color: rgb(var(--ink) / .86); font-size: var(--fs-18, 18px); font-weight: 400; }
.tribute-copy p { margin: 4px 0 0; color: rgb(var(--muted) / .43); font-size: var(--fs-11, 11px); }
.tribute-button { min-height: 40px; padding: 8px 15px; border-radius: 2px; cursor: pointer; white-space: nowrap; font-size: var(--fs-12, 12px); transition: .2s ease; }
.tribute-button:disabled { cursor: wait; opacity: .55; }

.tribute-offering--incense { border: 1px solid rgb(195 153 92 / .22); background: linear-gradient(120deg, rgb(70 39 24 / .22), rgb(11 15 22 / .76) 58%); }
.tribute-offering--incense::after { background: radial-gradient(circle at 48px 35px, rgb(238 157 76 / .18), transparent 95px); }
.tribute-offering--incense .tribute-copy small { color: rgb(195 153 92 / .58); }
.tribute-offering--incense .tribute-button { border: 1px solid rgb(195 153 92 / .35); background: rgb(139 76 40 / .15); color: rgb(222 181 123 / .82); }
.tribute-offering--incense .tribute-button:hover { border-color: rgb(218 163 89 / .58); background: rgb(158 86 43 / .24); color: #e8c491; }
.incense-altar { position: relative; width: 72px; height: 82px; }
.incense-altar b { position: absolute; left: 9px; right: 9px; bottom: 2px; height: 19px; border: 1px solid rgb(195 153 92 / .25); border-radius: 2px 2px 13px 13px; background: linear-gradient(#4c3025, #241a18); box-shadow: inset 0 5px 9px rgb(0 0 0 / .32); }
.incense-stick { position: absolute; z-index: 2; left: 35px; bottom: 15px; width: 2px; height: 49px; border-radius: 3px; background: linear-gradient(#a75f35, #5d3728); }
.incense-stick::before { content: ""; position: absolute; left: -2px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #d85f30; box-shadow: 0 0 7px 2px rgb(244 119 47 / .42); }
.smoke { position: absolute; z-index: 3; left: 35px; top: 6px; width: 14px; height: 32px; opacity: .16; border-left: 1px solid rgb(225 231 238 / .5); border-radius: 50%; transform-origin: bottom; }
.smoke--two { left: 29px; top: 0; height: 27px; transform: rotate(18deg); opacity: .1; }
.smoke--three { left: 41px; top: -4px; height: 25px; transform: rotate(-20deg); opacity: .08; }
.tribute-offering--incense.is-activated .smoke--one { animation: incenseSmoke 2.2s ease-out 2; }
.tribute-offering--incense.is-activated .smoke--two { animation: incenseSmokeAlt 2s .25s ease-out 2; }
.tribute-offering--incense.is-activated .smoke--three { animation: incenseSmoke 2.4s .55s ease-out 2; }
@keyframes incenseSmoke { 0% { opacity: 0; transform: translate(0, 10px) scale(.7); } 35% { opacity: .42; } 100% { opacity: 0; transform: translate(9px, -24px) scale(1.35) rotate(18deg); } }
@keyframes incenseSmokeAlt { 0% { opacity: 0; transform: translate(0, 8px) scale(.7) rotate(12deg); } 35% { opacity: .34; } 100% { opacity: 0; transform: translate(-10px, -22px) scale(1.3) rotate(-18deg); } }

.tribute-offering--merit {
  border: 1px solid rgb(80 211 223 / .23);
  background:
    linear-gradient(90deg, rgb(80 211 223 / .025) 1px, transparent 1px),
    linear-gradient(rgb(80 211 223 / .025) 1px, transparent 1px),
    linear-gradient(120deg, rgb(8 67 76 / .28), rgb(8 13 22 / .82) 62%);
  background-size: 20px 20px, 20px 20px, auto;
}
.tribute-offering--merit::after { background: radial-gradient(circle at 48px 42px, rgb(69 229 231 / .25), transparent 105px); }
.tribute-offering--merit .tribute-copy small { color: rgb(82 222 225 / .58); }
.tribute-offering--merit .tribute-button { border: 1px solid rgb(82 222 225 / .34); background: rgb(19 113 121 / .18); color: rgb(142 238 237 / .84); }
.tribute-offering--merit .tribute-button:hover { border-color: rgb(91 235 235 / .62); background: rgb(24 138 143 / .27); color: #b7ffff; box-shadow: 0 0 22px rgb(73 224 226 / .10); }
.merit-terminal { position: relative; width: 72px; height: 82px; filter: drop-shadow(0 8px 13px rgb(0 0 0 / .28)); }
.merit-box { position: absolute; left: 6px; right: 6px; bottom: 3px; height: 45px; border: 1px solid rgb(77 223 225 / .44); border-radius: 3px 3px 7px 7px; background: linear-gradient(145deg, rgb(12 64 71 / .94), rgb(5 24 31 / .97)); box-shadow: inset 0 0 16px rgb(61 224 225 / .08), 0 0 18px rgb(61 224 225 / .06); }
.merit-box::before { content: ""; position: absolute; left: 17px; right: 17px; top: -5px; height: 5px; border: 1px solid rgb(91 236 234 / .54); border-radius: 5px 5px 1px 1px; background: #071c22; box-shadow: 0 0 9px rgb(75 227 228 / .20); }
.merit-box::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 3px; background: repeating-linear-gradient(90deg, rgb(79 226 227 / .52) 0 5px, transparent 5px 8px); opacity: .42; }
.merit-box b { position: absolute; left: 11px; right: 11px; top: 11px; height: 15px; border: 1px solid rgb(78 219 221 / .22); background: rgb(4 19 25 / .78); }
.merit-box b::before { content: "+ MERIT"; position: absolute; inset: 0; display: grid; place-items: center; color: rgb(118 244 241 / .58); font: 6px/1 var(--mono); letter-spacing: .16em; }
.merit-box i { position: absolute; top: 15px; width: 3px; height: 3px; border-radius: 50%; background: #8ffffa; opacity: 0; box-shadow: 0 0 7px #74eeee; }
.merit-box i:nth-of-type(1) { left: 10px; --particle-x: -8px; }
.merit-box i:nth-of-type(2) { left: 29px; --particle-x: 2px; }
.merit-box i:nth-of-type(3) { right: 9px; --particle-x: 9px; }
.merit-coin { position: absolute; z-index: 3; left: 23px; top: 0; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgb(117 245 240 / .68); border-radius: 50%; background: radial-gradient(circle at 34% 28%, #a8fff8, #2aa9ae 34%, #0a454d 70%); box-shadow: inset 0 0 0 3px rgb(4 39 45 / .7), 0 0 13px rgb(82 229 229 / .18); color: #d4fffb; }
.merit-coin::before, .merit-coin::after { content: ""; position: absolute; inset: 4px; border: 1px dashed rgb(203 255 250 / .48); border-radius: 50%; }
.merit-coin::after { inset: 8px; border-style: solid; border-color: rgb(216 255 252 / .34); }
.merit-coin i { position: relative; z-index: 1; font-size: 9px; font-style: normal; text-shadow: 0 0 5px #04363b; }
.merit-scan { position: absolute; z-index: 4; left: 3px; right: 3px; top: 38px; height: 1px; opacity: .18; background: linear-gradient(90deg, transparent, #8ffffa, transparent); }
.tribute-offering--merit.is-activated .merit-coin { animation: meritDeposit 1.35s cubic-bezier(.3, .05, .2, 1) both; }
.tribute-offering--merit.is-activated .merit-box { animation: meritBoxPulse 1.5s ease both; }
.tribute-offering--merit.is-activated .merit-scan { animation: meritScan 1.25s ease-out both; }
.tribute-offering--merit.is-activated .merit-box i { animation: meritParticle 1.15s .48s ease-out both; }
.tribute-offering--merit.is-activated .merit-box i:nth-of-type(2) { animation-delay: .58s; }
.tribute-offering--merit.is-activated .merit-box i:nth-of-type(3) { animation-delay: .68s; }
@keyframes meritDeposit { 0% { transform: translateY(0) rotateY(0); opacity: 1; } 35% { transform: translateY(-7px) rotateY(180deg); } 72% { transform: translateY(29px) rotateY(410deg) scale(.82); opacity: 1; } 82% { opacity: 0; } 100% { transform: translateY(29px) rotateY(450deg) scale(.3); opacity: 0; } }
@keyframes meritBoxPulse { 0%, 100% { filter: brightness(1); } 55% { filter: brightness(1.75); box-shadow: inset 0 0 25px rgb(72 241 238 / .24), 0 0 30px rgb(72 241 238 / .22); } }
@keyframes meritScan { 0% { opacity: 0; transform: translateY(-27px); } 35% { opacity: .8; } 100% { opacity: 0; transform: translateY(34px); } }
@keyframes meritParticle { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--particle-x, 0), -26px) scale(1.5); } }

.community-sheet { max-width: 980px; }
.community-heading { margin-bottom: 34px; }
.community-heading h1 { margin-bottom: 14px; }
.community-heading > p:last-child { margin: 0; max-width: 760px; color: rgb(var(--muted) / .56); font-size: var(--fs-14, 14px); line-height: 1.9; }
.form-tabs { display: flex; gap: 6px; margin-bottom: 12px; padding: 5px; border: 1px solid var(--border); border-radius: 3px; background: rgb(8 12 18 / .42); }
.form-tabs button { flex: 1; min-height: 42px; border: 1px solid transparent; border-radius: 2px; background: transparent; color: rgb(var(--muted) / .5); cursor: pointer; }
.form-tabs button.is-active { border-color: rgb(var(--accent-rgb) / .25); background: rgb(var(--accent-rgb) / .09); color: rgb(var(--ink) / .84); }
.interactive-panel { padding: clamp(20px, 4vw, 32px); border: 1px solid var(--border); border-radius: 3px; background: rgb(7 11 18 / .38); }
.interactive-panel[hidden] { display: none; }
.interactive-panel__head { margin-bottom: 24px; }
.interactive-panel__head .eyebrow { margin-bottom: 9px; }
.interactive-panel__head h2 { margin: 0 0 8px; color: rgb(var(--ink) / .88); font-size: var(--fs-24, 24px); font-weight: 400; }
.interactive-panel__head > p:last-child { margin: 0; color: rgb(var(--muted) / .5); line-height: 1.8; font-size: var(--fs-13, 13px); }
.public-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.public-field { display: grid; gap: 7px; min-width: 0; }
.public-field--wide { grid-column: 1 / -1; }
.public-field > span { color: rgb(var(--muted) / .62); font-size: var(--fs-12, 12px); }
.public-field > span i { margin-left: 4px; color: #d98787; font-style: normal; }
.public-field > span em { margin-left: 8px; color: rgb(var(--muted) / .28); font-family: var(--mono); font-size: var(--fs-8, 8px); font-style: normal; }
.public-field input, .public-field textarea, .public-field select { width: 100%; border: 1px solid rgb(var(--accent-rgb) / .15); border-radius: 2px; background: rgb(7 11 17 / .62); color: rgb(var(--ink) / .76); outline: none; }
.public-field input, .public-field select { height: 43px; padding: 0 12px; }
.public-field textarea { min-height: 132px; padding: 11px 12px; resize: vertical; line-height: 1.75; }
.public-field input:focus, .public-field textarea:focus, .public-field select:focus { border-color: rgb(var(--accent-rgb) / .46); }
.public-field input::placeholder, .public-field textarea::placeholder { color: rgb(var(--muted) / .24); }
.public-field select { color-scheme: dark; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.public-form__actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.public-form__actions button { min-height: 42px; padding: 8px 20px; border: 1px solid rgb(var(--accent-rgb) / .44); border-radius: 2px; background: rgb(var(--accent-rgb) / .16); color: rgb(var(--ink) / .86); cursor: pointer; }
.public-form__actions button:disabled { opacity: .5; cursor: wait; }
.form-status { color: rgb(var(--muted) / .48); font-size: var(--fs-12, 12px); line-height: 1.6; }
.form-status.is-success { color: #6fbd91; }
.form-status.is-error { color: #d98787; }

.guest-danmaku-panel { margin: -6px 0 22px; overflow: hidden; border: 1px solid rgb(var(--accent-rgb) / .16); border-radius: 3px; background: rgb(5 10 17 / .56); }
.guest-danmaku-panel__head { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 16px; border-bottom: 1px solid rgb(var(--accent-rgb) / .12); background: linear-gradient(90deg, rgb(var(--accent-rgb) / .08), transparent 58%); }
.guest-danmaku-panel__head small { display: block; margin-bottom: 3px; color: rgb(var(--accent-rgb) / .45); font-family: var(--mono); font-size: var(--fs-8, 8px); letter-spacing: .15em; }
.guest-danmaku-panel__head h2 { margin: 0; color: rgb(var(--ink) / .8); font-size: var(--fs-18, 18px); font-weight: 400; }
.guest-danmaku-panel__head button { min-width: 82px; min-height: 34px; padding: 6px 11px; border: 1px solid rgb(var(--accent-rgb) / .2); border-radius: 2px; background: rgb(var(--accent-rgb) / .06); color: rgb(var(--muted) / .52); cursor: pointer; font-size: var(--fs-10, 10px); }
.guest-danmaku-panel__head button:hover { border-color: rgb(var(--accent-rgb) / .4); color: rgb(var(--ink) / .78); }
.guest-danmaku-panel__head button:disabled { opacity: .35; cursor: default; }
.guest-danmaku-stage { position: relative; height: 258px; overflow: hidden; contain: layout paint; background: radial-gradient(circle at 50% 40%, rgb(var(--accent-rgb) / .075), transparent 48%), linear-gradient(rgb(var(--accent-rgb) / .025) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--accent-rgb) / .025) 1px, transparent 1px); background-size: auto, 34px 34px, 34px 34px; }
.guest-danmaku-stage::before { content: "MESSAGE STREAM / RANDOMIZED"; position: absolute; right: 13px; bottom: 9px; color: rgb(var(--muted) / .12); font: var(--fs-8, 8px)/1 var(--mono); letter-spacing: .14em; }
.guest-danmaku { position: absolute; left: 100%; top: var(--lane-top, 16px); display: inline-flex; align-items: center; gap: 9px; width: max-content; max-width: min(720px, 82vw); min-height: 36px; padding: 7px 13px 7px 8px; border: 1px solid hsl(var(--tone, 205) 62% 70% / .20); border-radius: 999px; background: rgb(7 14 23 / .86); box-shadow: 0 7px 24px rgb(0 0 0 / .2), inset 0 0 18px hsl(var(--tone, 205) 65% 55% / .035); color: rgb(var(--muted) / .68); font-size: var(--fs-12, 12px); white-space: nowrap; will-change: transform; animation: guestDanmaku var(--duration, 18s) linear forwards; }
.guest-danmaku__name { flex: 0 0 auto; padding: 3px 8px; border-radius: 999px; background: hsl(var(--tone, 205) 62% 55% / .12); color: hsl(var(--tone, 205) 68% 78% / .82); font-size: var(--fs-10, 10px); }
.guest-danmaku__content { overflow: hidden; text-overflow: ellipsis; }
.guest-danmaku-stage.is-paused .guest-danmaku { animation-play-state: paused; }
.guest-danmaku__empty { margin: 0; position: absolute; inset: 0; display: grid; place-items: center; color: rgb(var(--muted) / .28); font-size: var(--fs-12, 12px); }
.guest-danmaku-stage.is-reduced-motion { height: auto; min-height: 180px; display: grid; align-content: center; gap: 8px; padding: 20px; }
.guest-danmaku.is-static { position: static; width: fit-content; max-width: 100%; white-space: normal; animation: none; }
@keyframes guestDanmaku { to { transform: translateX(calc(-112vw - 100%)); } }

.guestbook-form-panel { margin-bottom: 38px; }
.guestbook-list__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.guestbook-list__head h2 { margin: 0; font-size: var(--fs-22, 22px); font-weight: 400; }
.guestbook-list__head span { color: rgb(var(--muted) / .3); font-family: var(--mono); font-size: var(--fs-8, 8px); letter-spacing: .12em; }
.guest-messages { display: grid; }
.guest-message { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 15px; padding: 23px 2px; border-bottom: 1px solid rgb(var(--accent-rgb) / .09); }
.guest-avatar { position: relative; width: 48px; height: 48px; overflow: hidden; display: grid; place-items: center; border: 1px solid rgb(var(--accent-rgb) / .22); border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgb(var(--accent-rgb) / .18), rgb(9 14 22 / .88)); color: rgb(var(--accent-rgb) / .75); font-family: var(--mono); }
.guest-avatar b { font-weight: 400; }
.guest-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0b111a; }
.guest-message__body { min-width: 0; }
.guest-message__body header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.guest-message__body header strong, .guest-message__body header a { color: rgb(var(--ink) / .83); font-size: var(--fs-14, 14px); font-weight: 400; text-decoration: none; }
.guest-message__body header a:hover { color: rgb(var(--accent-rgb) / .9); }
.guest-message__body time { color: rgb(var(--muted) / .28); font-family: var(--mono); font-size: var(--fs-8, 8px); }
.guest-message__body > p { margin: 0; color: rgb(var(--muted) / .66); font-size: var(--fs-14, 14px); line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.owner-reply { margin-top: 15px; padding: 12px 14px; border-left: 2px solid rgb(var(--accent-rgb) / .42); background: rgb(var(--accent-rgb) / .055); }
.owner-reply small { color: rgb(var(--accent-rgb) / .58); font-family: var(--mono); font-size: var(--fs-8, 8px); letter-spacing: .08em; }
.owner-reply p { margin: 6px 0 0; color: rgb(var(--muted) / .57); line-height: 1.75; white-space: pre-wrap; }
.guestbook-empty { padding: 58px 16px; text-align: center; color: rgb(var(--muted) / .38); }

.visitor-map-frame { min-height: 360px; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 3px; background: rgb(7 11 18 / .42); }
.visitor-map-frame iframe { display: block; width: 100%; min-height: 280px; border: 0; background: transparent; }
.visitor-map-frame.is-image-widget { min-height: 0; padding: clamp(34px, 7vw, 70px) 24px; background: radial-gradient(circle at 50% 45%, rgb(var(--accent-rgb) / .10), transparent 46%), rgb(7 11 18 / .66); }
.visitor-map-frame.is-image-widget a { display: flex; flex-direction: column; align-items: center; gap: 18px; color: rgb(var(--muted) / .58); font-family: var(--mono); font-size: var(--fs-10, 10px); letter-spacing: .08em; text-decoration: none; }
.visitor-map-frame.is-image-widget a:hover { color: rgb(var(--accent-rgb) / .86); }
.visitor-map-frame.is-image-widget img { display: block; width: min(360px, 100%); height: auto; border: 1px solid rgb(var(--accent-rgb) / .24); box-shadow: 0 20px 55px rgb(0 0 0 / .34); image-rendering: pixelated; }
.map-placeholder { max-width: 580px; padding: 60px 26px; text-align: center; color: rgb(var(--muted) / .48); line-height: 1.8; }
.map-placeholder strong { display: block; margin-bottom: 8px; color: rgb(var(--ink) / .76); font-weight: 400; font-size: var(--fs-18, 18px); }
.map-placeholder p { margin: 0 0 14px; }
.map-placeholder a { color: rgb(var(--accent-rgb) / .78); text-underline-offset: 3px; }
.map-privacy { margin: 13px 0 0; color: rgb(var(--muted) / .33); font-size: var(--fs-10, 10px); line-height: 1.7; }

.subpage .site-bg-video { opacity: .62; }
.page-main { min-height: calc(100vh - 188px); padding-top: 68px; padding-bottom: 90px; }
.content-sheet { max-width: 900px; margin: 0 auto; padding: clamp(30px, 6vw, 64px); border: 1px solid var(--border); background: rgb(var(--panel) / .77); backdrop-filter: blur(20px); border-radius: 4px; }
.content-sheet__eyebrow { margin-bottom: 13px; }
.content-sheet h1 { margin: 0 0 26px; color: rgb(var(--ink) / .94); font-size: clamp(var(--fs-32, 32px), 5vw, var(--fs-48, 48px)); font-weight: 400; letter-spacing: .04em; }
.content-sheet .page-excerpt { margin: -13px 0 32px; color: rgb(var(--muted) / .48); line-height: 1.8; }
.rich-content { color: rgb(var(--muted) / .72); font-size: var(--fs-15, 15px); line-height: 2; }
.rich-content h2, .rich-content h3 { color: rgb(var(--ink) / .84); font-weight: 400; line-height: 1.5; }
.rich-content h2 { margin: 36px 0 13px; font-size: var(--fs-24, 24px); }
.rich-content h3 { margin: 28px 0 10px; font-size: var(--fs-18, 18px); }
.rich-content p { margin: 0 0 16px; white-space: pre-wrap; }
.rich-content ul { margin: 0 0 18px; padding-left: 1.4em; }
.rich-content a { color: rgb(var(--accent-rgb) / .9); text-underline-offset: 3px; }
.entry-sheet { max-width: 820px; padding: 0; overflow: hidden; }
.entry-sheet .entry-detail { padding: clamp(28px, 5vw, 54px); }
.back-link { display: inline-flex; margin-bottom: 24px; color: rgb(var(--muted) / .48); font-family: var(--mono); font-size: var(--fs-10, 10px); letter-spacing: .1em; text-decoration: none; }
.back-link:hover { color: rgb(var(--accent-rgb) / .8); }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 1200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); padding: 9px 13px; border: 1px solid rgb(var(--accent-rgb) / .25); border-radius: 3px; background: rgb(8 12 18 / .94); color: rgb(var(--ink) / .8); font-size: var(--fs-12, 12px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 880px) {
  .wrap, .site-header__inner { width: min(calc(100% - 32px), var(--site-max)); }
  .visitor-preferences { grid-template-columns: 1fr 1fr auto; }
  .visitor-preferences__copy { grid-column: 1 / -1; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .searchbox { grid-column: 1 / -1; }
  .ghost-button { width: 100%; }
  .archive-table { min-width: 660px; }
  .archive-table th:nth-child(5), .record-row td:nth-child(5) { display: none; }
  .archive-table th:nth-child(1) { width: 28%; }
  .archive-table th:nth-child(2) { width: 24%; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .site-header { height: 54px; }
  .site-header__inner { gap: 10px; }
  .brand { gap: 9px; }
  .brand__cn { font-size: var(--fs-14, 14px); letter-spacing: .25em; }
  .brand__divider, .brand__version { display: none; }
  .site-nav__link { padding: 0 9px; font-size: var(--fs-12, 12px); }
  .site-nav__link.is-active::after { left: 9px; right: 9px; }
  .hero { min-height: calc(88vh - 54px); padding-inline: 18px; }
  .hero h1 { font-size: clamp(38px, 12vw, 58px); letter-spacing: .04em; }
  .hero__subtitle { font-size: var(--fs-15, 15px); }
  .hero::before, .hero::after { display: none; }
  .catalog { padding-top: 58px; padding-bottom: 76px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .record-count { align-self: flex-end; margin-top: -8px; }
  .visitor-preferences { grid-template-columns: 1fr; align-items: stretch; padding: 13px; }
  .visitor-preferences__copy { grid-column: auto; }
  .visitor-preferences button { width: 100%; }
  .toolbar { grid-template-columns: 1fr; }
  .searchbox { grid-column: auto; }
  .archive-table-wrap { border: 0; background: transparent; backdrop-filter: none; overflow: visible; }
  .archive-table, .archive-table tbody { display: block; min-width: 0; }
  .archive-table thead { display: none; }
  .record-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin-bottom: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 3px; background: rgb(var(--panel) / .62); backdrop-filter: blur(14px); }
  .record-row td { display: block !important; border: 0; padding: 0; }
  .record-row td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .record-row td:nth-child(2) { grid-column: 1; grid-row: 2; color: rgb(var(--muted) / .46); font-size: var(--fs-11, 11px); }
  .record-row td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .record-row td:nth-child(4) { grid-column: 1; grid-row: 3; color: rgb(var(--muted) / .36); font-size: var(--fs-10, 10px); }
  .record-row td:nth-child(5) { display: none !important; }
  .record-name strong { white-space: normal; }
  .card-grid { grid-template-columns: 1fr; }
  .modal { padding: 10px; align-items: end; }
  .modal__panel { max-height: calc(100vh - 20px); }
  .entry-detail { padding: 24px 20px 26px; }
  .detail-grid { grid-template-columns: 1fr; }
  .tribute-offering { grid-template-columns: 62px 1fr; gap: 12px; padding: 14px; }
  .incense-altar, .merit-terminal { transform: scale(.86); transform-origin: left center; }
  .tribute-button { grid-column: 1 / -1; width: 100%; }
  .content-sheet { padding: 28px 21px; }
  .community-sheet { padding: 26px 17px; }
  .public-form__grid { grid-template-columns: 1fr; }
  .public-field--wide { grid-column: auto; }
  .public-form__actions { align-items: stretch; flex-direction: column; }
  .public-form__actions button { width: 100%; }
  .guest-danmaku-panel__head { padding-inline: 13px; }
  .guest-danmaku-stage { height: 242px; }
  .guest-danmaku { max-width: 88vw; }
  .guest-message { grid-template-columns: 42px minmax(0, 1fr); gap: 11px; }
  .guest-avatar { width: 40px; height: 40px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .footer-side { text-align: left; }
  .footer-side a { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
