:root {
  --bg: #100c12;
  --bg-deep: #030304;
  --paper: #eee6d6;
  --paper-aged: #c8b891;
  --ink: #f2eadb;
  --muted: #b5a68a;
  --line: rgba(242, 234, 219, 0.22);
  --black: #030304;
  --white: #f2eadb;
  --blood: #8f0e22;
  --blood-deep: #3b0710;
  --violet: #1f1723;
  --tea: #6e5a3f;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.62);
  --radius-lg: 8px;
  --radius-md: 4px;
  --radius-sm: 3px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --serif: Georgia, "Times New Roman", "Noto Serif TC", "Songti TC", serif;
  --sans: "Yu Gothic", "Hiragino Sans", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(242, 234, 219, 0.08), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(143, 14, 34, 0.2), transparent 26%),
    linear-gradient(90deg, rgba(242, 234, 219, 0.05) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(0deg, rgba(242, 234, 219, 0.035) 1px, transparent 1px) 0 0 / 36px 36px,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 6px),
    var(--bg-deep);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body::before {
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(242, 234, 219, 0.08) 44.2% 44.6%, transparent 45%),
    radial-gradient(circle at 50% 110%, rgba(242, 234, 219, 0.07), transparent 32%);
  mix-blend-mode: screen;
}

body::after {
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
  opacity: 0.32;
}

a,
button,
input,
textarea {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
dl,
figure {
  margin-top: 0;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(3, 3, 4, 0.86);
  border-bottom: 3px double rgba(242, 234, 219, 0.22);
  backdrop-filter: blur(10px);
}

.brand,
.tag-cloud,
.social-quick,
.footer,
.admin-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.brand-pixel {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(244, 239, 229, 0.72);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(244, 239, 229, 0.1) 50%, transparent 50%) 0 0 / 8px 8px,
    linear-gradient(0deg, rgba(244, 239, 229, 0.08) 50%, transparent 50%) 0 0 / 8px 8px,
    var(--black);
  color: var(--white);
  box-shadow:
    4px 4px 0 var(--blood),
    8px 8px 0 rgba(244, 239, 229, 0.14);
}

.topbar p,
.admin-link {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
}

.snap-main {
  position: relative;
  z-index: 1;
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  perspective: 1400px;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

.snap-section {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: clamp(92px, 10vh, 124px) clamp(18px, 4vw, 56px) clamp(42px, 7vh, 72px);
  place-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transform-style: preserve-3d;
}

.section-layer {
  position: relative;
  width: min(100%, 1320px);
  min-height: min(760px, calc(100svh - 164px));
  display: grid;
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  padding: clamp(24px, 4vw, 48px);
  border: 3px double rgba(242, 234, 219, 0.3);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(242, 234, 219, 0.06), rgba(242, 234, 219, 0.015)),
    repeating-linear-gradient(0deg, rgba(242, 234, 219, 0.025) 0 1px, transparent 1px 5px),
    rgba(5, 5, 6, 0.9);
  box-shadow: var(--shadow);
  opacity: 0.16;
  transform:
    translateY(calc(var(--layer-distance, 1) * 70px))
    translateZ(-120px)
    rotateX(calc(var(--layer-distance, 1) * -10deg))
    scale(0.9);
  transition:
    opacity 520ms ease,
    transform 640ms cubic-bezier(0.2, 0.78, 0.18, 1),
    filter 520ms ease;
  filter: blur(7px) saturate(0.72);
  overflow: hidden;
}

.section-layer::before,
.section-layer::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.section-layer::before {
  inset: 18px;
  border: 1px solid rgba(242, 234, 219, 0.22);
  border-radius: 0;
  box-shadow:
    inset 0 0 0 7px rgba(3, 3, 4, 0.62),
    inset 0 0 0 8px rgba(242, 234, 219, 0.08);
}

.section-layer::after {
  right: 34px;
  top: 28px;
  width: auto;
  height: auto;
  border: 0;
  color: rgba(242, 234, 219, 0.18);
  content: "☩  ✦  ☠  ✦  ☩";
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 42px);
  letter-spacing: 0.16em;
  text-shadow: 0 3px 0 rgba(143, 14, 34, 0.4);
}

.snap-section.is-active .section-layer {
  opacity: 1;
  transform: translateY(0) translateZ(86px) rotateX(0) scale(1);
  filter: blur(0) saturate(1);
}

.snap-section.is-before .section-layer {
  opacity: 0.1;
  transform: translateY(-80px) translateZ(-140px) rotateX(12deg) scale(0.86);
}

.snap-section.is-after .section-layer {
  opacity: 0.18;
  transform: translateY(90px) translateZ(-120px) rotateX(-12deg) scale(0.88);
}

.hero .section-layer,
.intro-section .section-layer,
.talk-section .section-layer,
.photo-section .section-layer,
.links-section .section-layer {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.58fr);
}

.hero-copy,
.section-title,
.profile-card,
.topic-panel,
.link-list,
.photo-grid,
.tile-grid,
.section-layer > p {
  position: relative;
  z-index: 1;
}

.kicker,
.section-title span,
.card-label,
.tag-cloud,
.quick-profile,
.topic-tabs,
.topic-output,
.link-list,
.footer,
.admin-title p,
.admin-note {
  font-family: var(--mono);
}

.kicker {
  width: fit-content;
  margin-bottom: clamp(18px, 3vw, 28px);
  padding: 8px 12px;
  border: 1px solid rgba(242, 234, 219, 0.45);
  border-radius: 0;
  background: rgba(3, 3, 4, 0.72);
  color: var(--paper-aged);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 880px;
  margin-bottom: clamp(24px, 4vw, 38px);
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(54px, 9vw, 126px);
  font-weight: 900;
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow:
    3px 0 0 rgba(143, 14, 34, 0.92),
    0 7px 0 rgba(0, 0, 0, 0.9),
    0 0 34px rgba(242, 234, 219, 0.11);
}

.hero h1::after {
  display: block;
  width: min(360px, 54vw);
  margin-top: 30px;
  color: rgba(242, 234, 219, 0.85);
  content: "✚  ✚  ✚";
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0.32em;
  text-shadow: 2px 2px 0 var(--blood-deep);
}

.hero-text {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 46px);
  color: #e3d7c1;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 650;
  line-height: 1.78;
}

.tag-cloud {
  flex-wrap: wrap;
  gap: 10px;
  max-width: 820px;
}

.tag-cloud span {
  padding: 10px 14px;
  border: 1px solid rgba(244, 239, 229, 0.72);
  border-radius: 0;
  background: rgba(7, 6, 9, 0.78);
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--blood-deep);
}

.tag-cloud span:nth-child(3n + 2) {
  box-shadow: 4px 4px 0 var(--violet);
}

.tag-cloud span:nth-child(3n + 3) {
  box-shadow: 4px 4px 0 var(--tea);
}

.social-quick {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.social-chip {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(244, 239, 229, 0.52);
  border-radius: 0;
  background: rgba(244, 239, 229, 0.08);
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.social-chip svg,
.link-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-chip:hover,
.social-chip:focus-visible {
  background: var(--white);
  color: var(--black);
}

.profile-card {
  min-width: 0;
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 34px);
  border: 3px double rgba(242, 234, 219, 0.28);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(90, 11, 24, 0.34), transparent 52%),
    rgba(0, 0, 0, 0.5);
  color: var(--white);
}

.profile-card::before {
  justify-self: center;
  color: rgba(242, 234, 219, 0.72);
  content: "✦ ☩ ✦";
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.28em;
}

.avatar {
  display: grid;
  width: clamp(108px, 14vw, 156px);
  aspect-ratio: 1;
  place-items: center;
  border: 3px double rgba(242, 234, 219, 0.8);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(244, 239, 229, 0.12) 50%, transparent 50%) 0 0 / 16px 16px,
    linear-gradient(0deg, rgba(244, 239, 229, 0.12) 50%, transparent 50%) 0 0 / 16px 16px,
    var(--black);
  color: var(--white);
  font-size: clamp(68px, 8vw, 104px);
  font-weight: 900;
  box-shadow: 9px 9px 0 rgba(163, 31, 53, 0.56);
}

.card-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.current-status {
  margin-bottom: 0;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.42;
}

.quick-profile {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
}

.quick-profile div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 239, 229, 0.18);
}

.quick-profile dt {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.quick-profile dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.section-title span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 850;
}

h2 {
  margin-bottom: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(36px, 5.4vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  text-wrap: balance;
  text-shadow: 0 6px 0 rgba(90, 11, 24, 0.8);
}

.intro-section .section-layer > p {
  margin-bottom: 0;
  padding: clamp(22px, 4vw, 36px);
  border: 3px double rgba(3, 3, 4, 0.45);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(10, 9, 11, 0.055) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(0deg, rgba(10, 9, 11, 0.04) 1px, transparent 1px) 0 0 / 18px 18px,
    rgba(244, 239, 229, 0.9);
  color: #21191b;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.9;
}

.friend-section .section-layer {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.friend-section .section-title {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.like-card {
  min-height: 245px;
  padding: 24px;
  border: 1px solid rgba(244, 239, 229, 0.36);
  border-radius: var(--radius-md);
  background: rgba(244, 239, 229, 0.075);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.like-card::before {
  display: block;
  margin-bottom: 18px;
  color: rgba(242, 234, 219, 0.64);
  content: "☩";
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
}

.like-card:hover {
  transform: translateY(-4px) rotate(-0.8deg);
  background: rgba(163, 31, 53, 0.18);
}

.like-card h3 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.16;
}

.like-card p {
  margin-bottom: 0;
  color: #ddcfb7;
  font-size: 16px;
  line-height: 1.78;
}

.topic-panel,
.link-list {
  border: 3px double rgba(3, 3, 4, 0.48);
  border-radius: 24px;
  background: rgba(244, 239, 229, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topic-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid rgba(10, 9, 11, 0.18);
}

.topic-tab {
  min-height: 68px;
  padding: 16px;
  border: 0;
  border-right: 1px solid rgba(10, 9, 11, 0.16);
  background: transparent;
  color: var(--black);
  font-size: 12px;
  font-weight: 850;
  text-align: left;
  text-transform: uppercase;
}

.topic-tab:last-child {
  border-right: 0;
}

.topic-tab.active,
.topic-tab:hover,
.topic-tab:focus-visible {
  background: var(--blood-deep);
  color: var(--white);
}

.topic-output {
  display: block;
  min-height: 160px;
  padding: clamp(22px, 4vw, 34px);
  color: #322628;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.85;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.photo-grid.single-photo {
  width: min(100%, 480px);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
}

.photo-card {
  margin: 0;
  min-width: 0;
}

.photo-grid.single-photo .photo-card {
  width: 100%;
}

.photo-card img,
.photo-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 5;
  place-items: center;
  border: 3px double rgba(242, 234, 219, 0.62);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(244, 239, 229, 0.1) 50%, transparent 50%) 0 0 / 18px 18px,
    linear-gradient(0deg, rgba(244, 239, 229, 0.1) 50%, transparent 50%) 0 0 / 18px 18px,
    var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: clamp(38px, 6vw, 78px);
  font-weight: 900;
  object-fit: cover;
  box-shadow: 8px 8px 0 rgba(90, 11, 24, 0.72);
}

.photo-grid:not(.single-photo) .photo-card:nth-child(2) {
  transform: translateY(24px);
}

.photo-grid.single-photo .photo-card img,
.photo-grid.single-photo .photo-placeholder {
  max-height: min(42svh, 480px);
  aspect-ratio: 4 / 5;
  box-shadow:
    0 0 0 1px rgba(238, 230, 214, 0.22),
    0 0 0 10px #050506,
    0 0 0 11px rgba(238, 230, 214, 0.14),
    0 24px 62px rgba(0, 0, 0, 0.68);
}

.photo-card figcaption {
  margin-top: 12px;
  color: #d8c9af;
  font-size: 14px;
  line-height: 1.6;
}

.photo-grid.single-photo .photo-card figcaption {
  max-width: 42em;
  margin: 18px auto 0;
  color: var(--muted);
  text-align: center;
}

.links-section .section-layer {
  position: relative;
}

.link-list {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: rgba(244, 239, 229, 0.9);
}

.profile-link {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 88px;
  padding: 16px 20px;
  border: 1px solid rgba(10, 9, 11, 0.82);
  border-radius: 0;
  background: rgba(244, 239, 229, 0.82);
  color: var(--black);
  font-family: var(--mono);
  font-weight: 850;
  text-transform: uppercase;
  box-shadow: 6px 6px 0 var(--blood-deep);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.profile-link:nth-child(2) {
  box-shadow: 6px 6px 0 var(--violet);
}

.profile-link:nth-child(3) {
  box-shadow: 6px 6px 0 var(--tea);
}

.link-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--black);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(244, 239, 229, 0.13) 50%, transparent 50%) 0 0 / 10px 10px,
    linear-gradient(0deg, rgba(244, 239, 229, 0.11) 50%, transparent 50%) 0 0 / 10px 10px,
    var(--black);
  color: var(--white);
}

.link-icon svg {
  width: 22px;
  height: 22px;
}

.link-copy {
  display: grid;
  gap: 6px;
}

.link-copy strong {
  font-size: 15px;
}

.link-copy small {
  color: #5d4f43;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.profile-link:hover,
.profile-link:focus-visible {
  transform: translate(-3px, -3px) rotate(-0.4deg);
  background: #fff8ec;
  box-shadow: 10px 10px 0 var(--black);
}

.footer {
  position: absolute;
  inset: auto clamp(24px, 4vw, 48px) 20px;
  justify-content: space-between;
  gap: 18px;
  padding: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.footer a:hover {
  color: var(--white);
}

.admin-body {
  overflow: auto;
}

.admin-topbar {
  position: relative;
}

.admin-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.46fr) minmax(360px, 0.9fr);
  gap: clamp(28px, 6vw, 84px);
  padding: clamp(42px, 6vw, 72px) clamp(18px, 4vw, 56px);
}

.admin-title {
  position: sticky;
  top: 32px;
  align-self: start;
}

.admin-title p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-title h1 {
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
}

.admin-title span {
  display: block;
  color: #dbcdb6;
  font-size: 16px;
  line-height: 1.8;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.editor-panel {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(244, 239, 229, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(244, 239, 229, 0.9);
  color: var(--black);
  box-shadow: var(--shadow);
}

.editor-panel h2 {
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
}

.editor-panel label {
  display: grid;
  gap: 8px;
  color: #4d4137;
  font-size: 13px;
  font-weight: 750;
}

.editor-panel input,
.editor-panel textarea {
  width: 100%;
  border: 1px solid rgba(10, 9, 11, 0.22);
  border-radius: var(--radius-sm);
  background: #fffaf0;
  color: var(--black);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  outline: none;
}

.editor-panel input {
  min-height: 44px;
  padding: 0 12px;
}

.editor-panel textarea {
  resize: vertical;
  padding: 12px;
}

.editor-panel input:focus,
.editor-panel textarea:focus {
  border-color: var(--blood);
  box-shadow: 0 0 0 4px rgba(163, 31, 53, 0.12);
}

.admin-actions {
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.admin-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(244, 239, 229, 0.58);
  border-radius: 999px;
  background: rgba(244, 239, 229, 0.1);
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-button.primary,
.admin-button:hover,
.admin-button:focus-visible {
  background: var(--white);
  color: var(--black);
}

.admin-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

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

@media (max-width: 1100px) {
  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero .section-layer,
  .intro-section .section-layer,
  .talk-section .section-layer,
  .photo-section .section-layer,
  .links-section .section-layer,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .topbar p {
    display: none;
  }

  .admin-title {
    position: static;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 14px 16px;
  }

  .snap-section {
    padding: 78px 12px 22px;
  }

  .section-layer {
    min-height: calc(100svh - 110px);
    padding: 22px 18px;
    border-radius: 24px;
  }

  .hero .section-layer {
    align-content: center;
  }

  .hero .profile-card {
    display: none;
  }

  .hero h1 {
    font-size: clamp(42px, 15vw, 66px);
  }

  .hero-text {
    font-size: 17px;
  }

  h2 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .tag-cloud,
  .tile-grid,
  .photo-grid,
  .topic-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .friend-section .section-title {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .like-card {
    min-height: auto;
  }

  .photo-card:nth-child(2) {
    transform: none;
  }

  .topic-tab {
    border-right: 0;
    border-bottom: 1px solid rgba(10, 9, 11, 0.16);
  }

  .topic-tab:last-child {
    border-bottom: 0;
  }

  .quick-profile div,
  .profile-link {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer {
    position: static;
    margin-top: 28px;
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Dark gallery pass: less UI, more framed artwork / exhibition wall. */
body {
  background:
    radial-gradient(ellipse at 50% 14%, rgba(255, 255, 255, 0.075), transparent 24%),
    radial-gradient(ellipse at 50% 88%, rgba(88, 0, 120, 0.16), transparent 24%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px),
    #020203;
}

body::before {
  background:
    radial-gradient(ellipse at 50% 42%, transparent 0 36%, rgba(0, 0, 0, 0.72) 72%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.035));
  mix-blend-mode: normal;
}

.topbar {
  background: rgba(2, 2, 3, 0.9);
  border-bottom: 1px solid rgba(238, 230, 214, 0.1);
}

.snap-section {
  padding-top: clamp(82px, 9vh, 112px);
  padding-bottom: clamp(34px, 7vh, 70px);
}

.section-layer {
  width: min(100%, 760px);
  min-height: min(810px, calc(100svh - 134px));
  padding: clamp(28px, 5vw, 54px);
  border: 0;
  background:
    radial-gradient(ellipse at 50% 10%, rgba(238, 230, 214, 0.08), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 34%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 6px),
    #070708;
  box-shadow:
    0 0 0 1px rgba(238, 230, 214, 0.2),
    0 0 0 10px #050506,
    0 0 0 11px rgba(238, 230, 214, 0.17),
    0 0 0 24px #0a0a0b,
    0 0 0 25px rgba(238, 230, 214, 0.09),
    0 34px 100px rgba(0, 0, 0, 0.78);
}

.section-layer::before {
  inset: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(238, 230, 214, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.9),
    inset 0 0 80px rgba(0, 0, 0, 0.55);
}

.section-layer::after {
  top: auto;
  right: 50%;
  bottom: clamp(16px, 3vh, 28px);
  transform: translateX(50%);
  color: rgba(238, 230, 214, 0.34);
  content: "MEMENTO / PRIVATE GALLERY";
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-shadow: none;
  white-space: nowrap;
}

.hero .section-layer {
  grid-template-columns: 1fr;
  align-content: start;
}

.hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

.kicker {
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(238, 230, 214, 0.48);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.hero h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 72px);
  text-shadow:
    2px 0 0 rgba(143, 14, 34, 0.82),
    0 8px 18px rgba(0, 0, 0, 0.9);
}

.hero h1::after {
  width: min(460px, 70vw);
  margin: 24px auto 0;
  content: "";
  border-top: 1px solid rgba(238, 230, 214, 0.18);
}

.hero-text {
  max-width: 560px;
  margin-bottom: 24px;
  color: rgba(238, 230, 214, 0.78);
  font-size: clamp(15px, 1.45vw, 18px);
}

.tag-cloud {
  justify-content: center;
  max-width: 560px;
}

.tag-cloud span,
.social-chip,
.profile-link {
  border-color: rgba(238, 230, 214, 0.26);
  background: rgba(0, 0, 0, 0.36);
  box-shadow: none;
}

.profile-card {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 14px;
  margin: 4px auto 0;
  width: min(100%, 430px);
  padding: 22px;
  border: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(143, 14, 34, 0.2), transparent 44%),
    #050506;
  box-shadow:
    0 0 0 1px rgba(238, 230, 214, 0.16),
    0 0 0 8px #09090a,
    0 0 0 9px rgba(238, 230, 214, 0.11),
    inset 0 0 60px rgba(0, 0, 0, 0.7);
}

.profile-card::before {
  content: "";
}

.avatar {
  width: min(220px, 48vw);
  font-size: clamp(80px, 11vw, 128px);
  box-shadow:
    10px 10px 0 rgba(143, 14, 34, 0.5),
    inset 0 0 50px rgba(0, 0, 0, 0.65);
  filter: grayscale(1) contrast(1.12);
}

.quick-profile,
.profile-card .social-quick {
  width: 100%;
}

.current-status {
  text-align: center;
}

.section-title {
  justify-items: center;
  text-align: center;
}

.section-title::before,
.section-title::after {
  content: "";
  width: min(320px, 70vw);
  height: 1px;
  background: rgba(238, 230, 214, 0.16);
}

.section-title span {
  margin-bottom: 0;
  color: rgba(238, 230, 214, 0.42);
}

h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  text-align: center;
}

.intro-section .section-layer > p,
.card-body,
.topic-panel,
.link-list {
  width: min(100%, 520px);
  justify-self: center;
}

.intro-section .section-layer > p {
}

.card-body {
  margin-bottom: 0;
}

.intro-section .section-layer > p,
.card-body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.18), transparent 52%),
    rgba(238, 230, 214, 0.88);
  box-shadow:
    0 0 0 1px rgba(238, 230, 214, 0.2),
    0 0 0 10px #070708,
    0 0 0 11px rgba(238, 230, 214, 0.12);
  color: #21191b;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.9;
  padding: clamp(20px, 4vw, 34px);
}

.tile-grid,
.photo-grid {
  width: min(100%, 520px);
  justify-self: center;
}

.like-card {
  min-height: 190px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(238, 230, 214, 0.07), transparent 48%),
    rgba(0, 0, 0, 0.28);
}

.like-card:hover {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(143, 14, 34, 0.22), transparent 52%),
    rgba(0, 0, 0, 0.32);
}

.photo-card img,
.photo-placeholder {
  box-shadow:
    0 0 0 1px rgba(238, 230, 214, 0.18),
    0 0 0 8px #050506,
    0 0 0 9px rgba(238, 230, 214, 0.1),
    0 18px 46px rgba(0, 0, 0, 0.62);
  filter: grayscale(1) contrast(1.08);
}

.json-editor {
  min-height: 520px;
  tab-size: 2;
  white-space: pre;
}

.card-section .section-layer {
  align-content: center;
}

.card-links .section-layer,
.card-photos .section-layer,
.card-grid .section-layer {
  align-content: start;
}

@media (max-width: 620px) {
  .section-layer {
    width: min(100%, 354px);
    padding: 24px 18px 42px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .profile-card {
    display: none;
  }
}

/* Steam artwork reference pass: narrow black relic panels, dense frames, low-color accents. */
:root {
  --radius-lg: 2px;
  --radius-md: 2px;
  --radius-sm: 2px;
}

body {
  background:
    radial-gradient(circle at 50% 4%, rgba(83, 0, 125, 0.2), transparent 20%),
    radial-gradient(circle at 50% 94%, rgba(0, 215, 205, 0.12), transparent 18%),
    linear-gradient(90deg, rgba(242, 234, 219, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(0deg, rgba(242, 234, 219, 0.035) 1px, transparent 1px) 0 0 / 22px 22px,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px),
    #030304;
}

.snap-main {
  perspective: 1800px;
}

.snap-section {
  padding-top: clamp(82px, 9vh, 104px);
  padding-bottom: clamp(24px, 5vh, 44px);
}

.section-layer {
  width: min(100%, 660px);
  min-height: min(830px, calc(100svh - 126px));
  gap: clamp(14px, 2.6vw, 28px);
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid rgba(242, 234, 219, 0.34);
  background:
    linear-gradient(90deg, rgba(242, 234, 219, 0.12) 0 1px, transparent 1px calc(100% - 1px), rgba(242, 234, 219, 0.12) calc(100% - 1px)),
    linear-gradient(180deg, rgba(242, 234, 219, 0.12) 0 1px, transparent 1px calc(100% - 1px), rgba(242, 234, 219, 0.12) calc(100% - 1px)),
    repeating-linear-gradient(0deg, rgba(242, 234, 219, 0.026) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(242, 234, 219, 0.018) 0 1px, transparent 1px 7px),
    rgba(4, 4, 5, 0.95);
}

.section-layer::before {
  inset: 12px;
  border-color: rgba(242, 234, 219, 0.18);
  box-shadow:
    inset 0 0 0 5px rgba(3, 3, 4, 0.72),
    inset 0 0 0 6px rgba(242, 234, 219, 0.06),
    0 0 0 1px rgba(143, 14, 34, 0.16);
}

.section-layer::after {
  right: 24px;
  top: 20px;
  color: rgba(242, 234, 219, 0.18);
  content: "\2629  \2726  \2620  \2726  \2629";
  font-size: clamp(16px, 2.1vw, 28px);
}

.hero .section-layer,
.intro-section .section-layer,
.talk-section .section-layer,
.photo-section .section-layer,
.links-section .section-layer {
  grid-template-columns: 1fr;
}

.hero .section-layer {
  align-content: center;
}

.hero h1 {
  max-width: 600px;
  margin-bottom: clamp(18px, 3vw, 30px);
  font-size: clamp(46px, 5.4vw, 76px);
}

.hero h1::after {
  content: "\271A   \271A   \271A";
  margin-top: 18px;
}

.hero-text {
  max-width: 560px;
  margin-bottom: clamp(16px, 3vw, 24px);
  font-size: clamp(15px, 1.4vw, 18px);
}

.tag-cloud {
  max-width: 560px;
}

.profile-card {
  grid-template-columns: 92px 1fr;
  gap: 10px 16px;
  padding: 16px;
  border: 1px solid rgba(242, 234, 219, 0.3);
}

.profile-card::before {
  grid-column: 1 / -1;
  content: "\2726  \2629  \2726";
}

.avatar {
  width: 92px;
  font-size: 58px;
}

.current-status {
  font-size: clamp(17px, 1.6vw, 22px);
}

.quick-profile {
  gap: 6px;
}

.quick-profile div {
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding-top: 8px;
}

.quick-profile dd {
  font-size: 12px;
}

.social-chip {
  min-height: 34px;
  padding: 0 10px;
  font-size: 11px;
}

.quick-profile,
.profile-card .social-quick {
  grid-column: 1 / -1;
}

.section-title {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.section-title::before {
  color: rgba(242, 234, 219, 0.45);
  content: "+------------+";
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.section-title::after {
  color: rgba(242, 234, 219, 0.34);
  content: "----------------";
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

h2 {
  font-size: clamp(34px, 4.8vw, 58px);
}

.intro-section .section-layer > p {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(3, 3, 4, 0.58);
  font-size: clamp(16px, 1.6vw, 19px);
}

.friend-section .section-title {
  grid-template-columns: 1fr;
}

.tile-grid,
.photo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.like-card {
  min-height: 170px;
  padding: 18px;
}

.like-card::before {
  margin-bottom: 12px;
  content: "\2629";
}

.like-card h3 {
  margin-bottom: 12px;
  font-size: clamp(20px, 2.2vw, 26px);
}

.like-card p {
  font-size: 14px;
}

.topic-panel,
.link-list {
  border: 1px solid rgba(3, 3, 4, 0.64);
  border-radius: 0;
}

.photo-card img,
.photo-placeholder {
  border: 1px solid rgba(242, 234, 219, 0.62);
}

.photo-card:nth-child(2) {
  transform: translateY(16px);
}

@media (max-width: 620px) {
  .section-layer {
    width: min(100%, 390px);
    min-height: calc(100svh - 98px);
    padding: 18px;
  }

  .hero .profile-card {
    display: none;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .tile-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }
}

/* User direction pass: ornate monochrome gallery, no type shadow, no 8-bit motifs. */
* {
  text-shadow: none !important;
}

:root {
  --blood: #7d1823;
  --blood-deep: #1a0b0d;
  --violet: #151515;
  --tea: #6f685b;
}

body {
  background:
    radial-gradient(ellipse at 50% 12%, rgba(238, 230, 214, 0.06), transparent 22%),
    radial-gradient(ellipse at 50% 94%, rgba(238, 230, 214, 0.035), transparent 22%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 6px),
    #020202;
}

body::after {
  opacity: 0.18;
}

.brand-pixel,
.avatar,
.photo-placeholder,
.link-icon {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(238, 230, 214, 0.1), transparent 48%),
    linear-gradient(180deg, #111 0%, #030303 100%) !important;
}

.brand-pixel {
  font-family: var(--serif);
  box-shadow:
    4px 4px 0 rgba(238, 230, 214, 0.16),
    8px 8px 0 rgba(0, 0, 0, 0.85);
}

.section-layer {
  width: min(100%, 760px);
  background:
    radial-gradient(ellipse at 50% 9%, rgba(238, 230, 214, 0.06), transparent 42%),
    linear-gradient(90deg, transparent 0 10%, rgba(238, 230, 214, 0.018) 10.1% 10.4%, transparent 10.5% 89.5%, rgba(238, 230, 214, 0.018) 89.6% 89.9%, transparent 90%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 8px),
    #060606;
  box-shadow:
    0 0 0 1px rgba(238, 230, 214, 0.22),
    0 0 0 7px #020202,
    0 0 0 8px rgba(238, 230, 214, 0.12),
    0 0 0 22px #080808,
    0 0 0 23px rgba(238, 230, 214, 0.07),
    0 36px 110px rgba(0, 0, 0, 0.82);
}

.section-layer::before {
  border-color: rgba(238, 230, 214, 0.16);
  box-shadow:
    inset 0 0 0 7px rgba(0, 0, 0, 0.52),
    inset 0 0 0 8px rgba(238, 230, 214, 0.06),
    inset 0 0 120px rgba(0, 0, 0, 0.68);
}

.section-layer::after {
  color: rgba(238, 230, 214, 0.28);
  content: "PRIVATE GALLERY";
  letter-spacing: 0.3em;
}

.hero-copy::before,
.section-title::before {
  width: min(420px, 72vw);
  height: 88px;
  display: block;
  margin: 0 auto 10px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 28px, rgba(238, 230, 214, 0.22) 29px 30px, transparent 31px),
    linear-gradient(90deg, transparent 0 17%, rgba(238, 230, 214, 0.22) 17.2% 17.8%, transparent 18% 82%, rgba(238, 230, 214, 0.22) 82.2% 82.8%, transparent 83%),
    linear-gradient(0deg, transparent 0 48%, rgba(238, 230, 214, 0.16) 48.4% 49.2%, transparent 49.6%);
  content: "";
  opacity: 0.86;
}

.section-title::after {
  width: min(280px, 56vw);
  background: rgba(238, 230, 214, 0.12);
}

.hero h1,
h2 {
  color: #f0e7d6;
  font-weight: 800;
}

.hero h1::after {
  border-top-color: rgba(238, 230, 214, 0.14);
}

.tag-cloud span,
.social-chip,
.profile-link,
.admin-button,
.admin-tool-button {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(238, 230, 214, 0.22);
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.44),
    0 0 0 4px rgba(238, 230, 214, 0.06);
}

.tag-cloud span:nth-child(n),
.profile-link:nth-child(n) {
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.44),
    0 0 0 4px rgba(238, 230, 214, 0.06);
}

.profile-card,
.intro-section .section-layer > p,
.card-body,
.topic-panel,
.link-list,
.like-card,
.photo-card img,
.photo-placeholder {
  box-shadow:
    0 0 0 1px rgba(238, 230, 214, 0.16),
    0 0 0 8px #030303,
    0 0 0 9px rgba(238, 230, 214, 0.08),
    0 18px 52px rgba(0, 0, 0, 0.7);
}

.intro-section .section-layer > p,
.card-body,
.link-list,
.topic-panel {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    #d8d0bf;
}

.like-card,
.profile-card {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(238, 230, 214, 0.055), transparent 55%),
    #050505;
}

.photo-card img,
.photo-placeholder {
  filter: grayscale(1) contrast(1.18) brightness(0.78);
}

.admin-body {
  overflow: hidden;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-card-stage {
  padding-right: 0;
}

.admin-card-tools {
  position: absolute;
  right: clamp(22px, 4vw, 44px);
  bottom: clamp(22px, 4vw, 44px);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.admin-tool-button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--white);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-drawer {
  position: fixed;
  top: 72px;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: min(430px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid rgba(238, 230, 214, 0.2);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(238, 230, 214, 0.08), transparent 44%),
    #050505;
  box-shadow:
    0 0 0 8px rgba(0, 0, 0, 0.74),
    0 0 0 9px rgba(238, 230, 214, 0.08),
    0 28px 80px rgba(0, 0, 0, 0.82);
  color: var(--white);
  overflow: auto;
  transform: translateX(calc(100% + 42px));
  transition: transform 220ms ease;
}

.admin-drawer.open {
  transform: translateX(0);
}

.admin-drawer-form {
  display: grid;
  gap: 14px;
}

.drawer-heading p {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.drawer-heading h2 {
  font-size: 34px;
  text-align: left;
}

.admin-drawer label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-drawer input,
.admin-drawer textarea,
.admin-drawer select {
  width: 100%;
  border: 1px solid rgba(238, 230, 214, 0.18);
  background: #0b0b0c;
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  outline: none;
}

.admin-drawer input,
.admin-drawer select {
  min-height: 38px;
  padding: 0 10px;
}

.admin-drawer textarea {
  resize: vertical;
  padding: 10px;
}

.admin-button.danger {
  color: #e5c8c8;
}

@media (max-width: 760px) {
  .admin-top-actions {
    gap: 5px;
  }

  .admin-top-actions .admin-button {
    padding: 0 8px;
    font-size: 10px;
  }

  .admin-link {
    display: none;
  }

  .admin-drawer {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: 72svh;
    transform: translateY(calc(100% + 36px));
  }

  .admin-drawer.open {
    transform: translateY(0);
  }
}

body[data-tone="heaven"] {
  --bg: #fbf2df;
  --bg-deep: #f7efe0;
  --paper: #fffaf0;
  --paper-aged: #b98d41;
  --ink: #221c18;
  --muted: #7b6950;
  --line: rgba(63, 45, 31, 0.2);
  --black: #211915;
  --white: #fffaf0;
  --blood: #b6462f;
  --blood-deep: #743019;
  --violet: #ece0c4;
  --tea: #a87533;
  --shadow: 0 30px 80px rgba(82, 57, 20, 0.18);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.88), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(255, 214, 128, 0.28), transparent 26%),
    linear-gradient(90deg, rgba(105, 74, 38, 0.07) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(0deg, rgba(105, 74, 38, 0.05) 1px, transparent 1px) 0 0 / 36px 36px,
    var(--bg-deep);
}

body[data-tone="hell"] {
  --bg: #100c12;
  --bg-deep: #030304;
  --paper: #eee6d6;
  --paper-aged: #c8b891;
  --ink: #f2eadb;
  --muted: #b5a68a;
  --line: rgba(242, 234, 219, 0.22);
  --black: #030304;
  --white: #f2eadb;
  --blood: #b3122f;
  --blood-deep: #3b0710;
  --violet: #1f1723;
  --tea: #6e5a3f;
}

body[data-tone="heaven"]::before {
  background:
    linear-gradient(115deg, transparent 0 43%, rgba(255, 255, 255, 0.62) 43.2% 44%, transparent 44.4%),
    radial-gradient(circle at 50% 110%, rgba(255, 206, 103, 0.22), transparent 34%);
  mix-blend-mode: normal;
}

body[data-tone="heaven"]::after {
  opacity: 0.16;
}

body[data-tone="heaven"] .topbar {
  background: rgba(255, 250, 240, 0.82);
  border-bottom-color: rgba(102, 76, 42, 0.24);
}

body[data-tone="heaven"] .section-layer {
  border-color: rgba(89, 67, 39, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 226, 0.82)),
    repeating-linear-gradient(0deg, rgba(137, 99, 54, 0.035) 0 1px, transparent 1px 5px);
}

body[data-tone="heaven"] .section-layer::before {
  border-color: rgba(90, 67, 39, 0.2);
  box-shadow:
    inset 0 0 0 7px rgba(255, 250, 240, 0.52),
    inset 0 0 0 8px rgba(90, 67, 39, 0.09);
}

body[data-tone="heaven"] .profile-card,
body[data-tone="heaven"] .like-card,
body[data-tone="heaven"] .topic-panel,
body[data-tone="heaven"] .link-list {
  background: rgba(255, 250, 240, 0.78);
  color: var(--ink);
}

body[data-tone="heaven"] .social-chip,
body[data-tone="heaven"] .profile-link,
body[data-tone="heaven"] .tag-cloud span {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(88, 63, 34, 0.18);
}

body[data-tone="heaven"] .photo-grid.single-photo .photo-card img,
body[data-tone="heaven"] .photo-grid.single-photo .photo-placeholder {
  box-shadow:
    0 0 0 1px rgba(89, 67, 39, 0.18),
    0 0 0 10px rgba(255, 250, 240, 0.82),
    0 0 0 11px rgba(89, 67, 39, 0.14),
    0 22px 56px rgba(82, 57, 20, 0.2);
}

.section-nav {
  position: fixed;
  right: clamp(14px, 2.4vw, 30px);
  top: 50%;
  z-index: 35;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.section-nav button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(238, 230, 214, 0.22);
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.08);
}

.section-nav button.active {
  height: 30px;
  background: var(--blood);
  border-color: rgba(255, 255, 255, 0.46);
}

.admin-selected .section-layer {
  outline: 3px solid var(--blood);
  outline-offset: -9px;
  opacity: 1;
  filter: none;
}

.admin-tone {
  margin: 0;
}

.item-editor {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(238, 230, 214, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.item-editor[hidden],
.hero-fields[hidden] {
  display: none;
}

.hero-fields {
  display: grid;
  gap: 12px;
}

.item-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.item-editor-head strong {
  color: var(--white);
  font-size: 13px;
}

.item-rows {
  display: grid;
  gap: 10px;
}

.item-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(238, 230, 214, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

.item-row b {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 38px;
}

.item-field {
  display: grid;
  gap: 6px;
}

.item-field + .item-field {
  margin-top: 8px;
}

.item-field span {
  color: var(--muted);
  font-size: 11px;
}

.admin-button.mini {
  min-height: 34px;
  padding: 0 10px;
  font-size: 10px;
}

.admin-body .snap-main {
  height: calc(100svh - 72px);
}

@media (max-width: 900px) {
  .section-nav {
    top: auto;
    right: 50%;
    bottom: 14px;
    grid-auto-flow: column;
    transform: translateX(50%);
  }

  .section-nav button.active {
    width: 30px;
    height: 12px;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar p,
  .admin-tone {
    display: none;
  }

  .snap-section {
    min-height: 100svh;
    padding-bottom: 72px;
  }

  .section-layer {
    min-height: auto;
  }

  .admin-drawer {
    max-height: 78svh;
  }

  .item-row {
    grid-template-columns: 1fr;
  }

  .item-row b {
    line-height: 1;
  }
}

/* Steam artwork style pass: narrow framed scroll panels with stronger ritual marks. */
.topbar {
  padding-right: clamp(18px, 3vw, 38px);
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tone-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(238, 230, 214, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(238, 230, 214, 0.1), rgba(0, 0, 0, 0.22)),
    rgba(0, 0, 0, 0.42);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.44),
    0 0 0 4px rgba(238, 230, 214, 0.06);
}

.tone-toggle:hover,
.tone-toggle:focus-visible {
  border-color: rgba(220, 30, 72, 0.62);
  color: var(--white);
  outline: none;
}

body[data-tone="heaven"] .tone-toggle {
  background: rgba(255, 250, 240, 0.72);
  color: var(--ink);
  border-color: rgba(88, 63, 34, 0.2);
}

.snap-main {
  scroll-padding-top: 0;
}

.section-layer {
  width: min(100%, 640px);
  min-height: min(900px, calc(100svh - 112px));
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(26px, 4vw, 54px) clamp(20px, 4vw, 46px);
}

.hero .section-layer,
.card-section .section-layer {
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
}

.hero h1 {
  max-width: 10.8em;
  margin-bottom: 0;
  font-size: clamp(54px, 7.4vw, 98px);
  overflow-wrap: normal;
  word-break: keep-all;
}

.hero h1::after {
  display: none;
}

.ritual-cross-row {
  width: min(400px, 74vw);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: clamp(18px, 4vw, 36px);
  margin: clamp(22px, 3vw, 34px) auto;
  color: rgba(238, 230, 214, 0.9);
  font-family: var(--serif);
}

.ritual-cross-row::before,
.ritual-cross-row::after {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 230, 214, 0.28), transparent);
  content: "";
}

.ritual-cross-row span {
  display: grid;
  width: clamp(34px, 5vw, 56px);
  height: clamp(34px, 5vw, 56px);
  place-items: center;
  color: var(--white);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  text-shadow:
    2px 0 0 rgba(210, 24, 62, 0.74),
    0 0 18px rgba(238, 230, 214, 0.16);
}

.ritual-cross-row span:nth-child(2) {
  color: #e8d9c4;
  transform: translateY(-2px) scale(1.08);
}

.profile-card {
  width: min(100%, 480px);
}

.inline-image {
  width: 1.35em;
  height: 1.35em;
  display: inline-block;
  margin: 0 0.18em;
  border: 1px solid rgba(238, 230, 214, 0.34);
  object-fit: cover;
  vertical-align: -0.28em;
  filter: grayscale(1) contrast(1.08);
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.65),
    0 0 14px rgba(217, 26, 72, 0.16);
}

.hero h1 .inline-image,
.section-title h2 .inline-image {
  width: 0.82em;
  height: 0.82em;
  vertical-align: -0.08em;
}

[data-edit-scope] {
  cursor: text;
  transition:
    outline-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

[data-edit-scope]:hover {
  outline: 1px solid rgba(220, 30, 72, 0.72);
  outline-offset: 5px;
  background: rgba(220, 30, 72, 0.055);
  box-shadow: 0 0 32px rgba(220, 30, 72, 0.08);
}

.photo-card img,
.photo-placeholder {
  border-color: rgba(238, 230, 214, 0.34);
  background:
    radial-gradient(ellipse at 50% 45%, rgba(238, 230, 214, 0.08), transparent 42%),
    linear-gradient(90deg, rgba(244, 239, 229, 0.065) 50%, transparent 50%) 0 0 / 14px 14px,
    linear-gradient(0deg, rgba(244, 239, 229, 0.055) 50%, transparent 50%) 0 0 / 14px 14px,
    #020202;
}

body[data-tone="heaven"] .ritual-cross-row span {
  color: #4d3023;
  text-shadow:
    2px 0 0 rgba(194, 71, 45, 0.34),
    0 0 18px rgba(255, 255, 255, 0.45);
}

body[data-tone="heaven"] .hero h1,
body[data-tone="heaven"] h2,
body[data-tone="heaven"] .hero-text,
body[data-tone="heaven"] .card-body,
body[data-tone="heaven"] .current-status,
body[data-tone="heaven"] .quick-profile dd,
body[data-tone="heaven"] .photo-card figcaption {
  color: #241b16;
}

body[data-tone="heaven"] .kicker,
body[data-tone="heaven"] .section-title span,
body[data-tone="heaven"] .card-label,
body[data-tone="heaven"] .quick-profile dt,
body[data-tone="heaven"] .topbar p {
  color: #7c6042;
}

body[data-tone="heaven"] .section-layer::after {
  color: rgba(78, 54, 31, 0.14);
}

body[data-tone="heaven"] .tag-cloud span,
body[data-tone="heaven"] .social-chip,
body[data-tone="heaven"] .profile-link {
  color: #241b16;
}

@media (max-width: 760px) {
  .tone-toggle {
    min-height: 38px;
    padding: 0 10px;
  }

  .tone-toggle [data-tone-button-label] {
    display: none;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: center;
  }

  .admin-top-actions {
    margin-left: auto;
  }

  .section-layer {
    width: min(100%, 340px);
    min-height: min(760px, calc(100svh - 118px));
  }

  .hero h1 {
    font-size: clamp(46px, 15vw, 64px);
  }
}
