:root {
  color-scheme: dark;
  --bg: #03110d;
  --surface: rgba(7, 24, 18, 0.84);
  --surface-strong: rgba(10, 34, 25, 0.94);
  --ink: #eef8f1;
  --muted: #91aa9b;
  --line: rgba(80, 145, 110, 0.22);
  --teal: #2d8c68;
  --teal-dark: #176247;
  --coral: #c9a45d;
  --amber: #caa96a;
  --olive: #6f8f55;
  --shadow:
    0 24px 70px rgba(0, 0, 0, 0.48),
    0 0 46px rgba(47, 155, 115, 0.08);
  --radius: 8px;
  --theme-color-scheme: dark;
  --bg-rgb: 3, 17, 13;
  --surface-rgb: 7, 24, 18;
  --surface-strong-rgb: 10, 34, 25;
  --ink-rgb: 238, 248, 241;
  --muted-rgb: 145, 170, 155;
  --line-rgb: 80, 145, 110;
  --teal-rgb: 45, 140, 104;
  --teal-dark-rgb: 23, 98, 71;
  --coral-rgb: 201, 164, 93;
  --amber-rgb: 202, 169, 106;
  --olive-rgb: 111, 143, 85;
  --accent-rgb: 201, 164, 93;
  --theme-bg-rgb: var(--bg-rgb);
  --theme-primary-rgb: var(--teal-rgb);
  --theme-accent-rgb: var(--coral-rgb);
  --theme-secondary-rgb: var(--olive-rgb);
  --theme-panel-rgb: var(--surface-strong-rgb);
  --theme-on-primary: #f6fff9;
  --theme-on-accent: #06110d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(3, 17, 13, 0.72), rgba(2, 10, 8, 0.98)),
    repeating-linear-gradient(90deg, rgba(80, 145, 110, 0.07) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(0deg, rgba(111, 143, 85, 0.04) 0 1px, transparent 1px 78px),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Segoe UI",
    Arial,
    sans-serif;
  line-height: 1.5;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 14px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(221, 213, 199, 0.82);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background:
    linear-gradient(135deg, transparent 45%, var(--coral) 46% 57%, transparent 58%),
    linear-gradient(45deg, var(--teal) 0 48%, var(--amber) 49% 100%);
  box-shadow: 4px 4px 0 var(--ink);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.toast {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 40;
  width: min(360px, calc(100vw - 28px));
  padding: 13px 15px;
  border: 1px solid rgba(198, 83, 59, 0.28);
  border-radius: var(--radius);
  background: #fff1eb;
  color: var(--coral);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 800;
}

.session-label {
  max-width: 180px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

#galleryPage {
  isolation: isolate;
  overflow: hidden;
}

#galleryPage::before,
body.motion-ready #galleryPage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#galleryPage::before {
  background:
    linear-gradient(180deg, rgba(3, 17, 13, 0.72), rgba(2, 10, 8, 0.98)),
    repeating-linear-gradient(90deg, rgba(80, 145, 110, 0.07) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(0deg, rgba(111, 143, 85, 0.04) 0 1px, transparent 1px 78px),
    var(--bg);
  background-attachment: fixed;
}

body.motion-ready #galleryPage::after {
  background:
    radial-gradient(circle at 18% 18%, rgba(47, 155, 115, 0.14), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(201, 164, 93, 0.12), transparent 26%),
    radial-gradient(circle at 50% 90%, rgba(122, 165, 106, 0.08), transparent 30%);
  opacity: 0.72;
  animation: motion-aurora 14s ease-in-out infinite alternate;
}

#galleryPage > :not(.motion-layer) {
  position: relative;
  z-index: 2;
}

.admin-page {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 44px) 40px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 6px clamp(16px, 4vw, 44px) 30px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.site-footer .mps-beian {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-footer .mps-beian img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.site-footer a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.admin-shell {
  display: grid;
  gap: 20px;
}

.admin-locked {
  display: grid;
  min-height: calc(100vh - 150px);
  place-items: center;
}

.admin-locked .admin-card {
  width: min(520px, 100%);
}

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
  align-items: start;
}

.account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.admin-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 10px 24px rgba(43, 38, 28, 0.08);
}

.admin-card:first-child {
  position: sticky;
  top: 92px;
  grid-row: span 2;
}

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

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

.dashboard-stat,
.dashboard-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 10px 24px rgba(43, 38, 28, 0.08);
}

.dashboard-stat {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 126px;
}

.dashboard-stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-stat strong {
  display: block;
  font-size: 26px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.dashboard-stat p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-wide {
  grid-column: span 2;
}

.dashboard-card {
  display: grid;
  gap: 12px;
}

.dashboard-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-card-head h3 {
  font-size: 16px;
}

.dashboard-card-head span,
.dashboard-rank-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf3e8;
  color: var(--olive);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-list {
  display: grid;
  gap: 8px;
}

.dashboard-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.dashboard-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.dashboard-item div {
  min-width: 0;
}

.dashboard-item strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.dashboard-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.dashboard-empty {
  display: grid;
  place-items: center;
  min-height: 86px;
  padding: 12px;
  border: 1px dashed rgba(101, 120, 70, 0.28);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.workspace {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 44px) 40px;
  min-width: 0;
}

.minimal-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - 70px);
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 56px);
  background: transparent;
}

#galleryPage .minimal-hero::before,
#galleryPage .minimal-hero::after {
  display: none;
  content: none;
}

.minimal-hero-inner {
  position: relative;
  display: grid;
  place-items: center;
  gap: 18px;
  min-width: 0;
  text-align: center;
}

.minimal-hero-kicker {
  margin: 0;
  color: rgba(145, 170, 155, 0.72);
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.minimal-hero-name {
  margin: 0;
  color: #f3fbf5;
  font-size: clamp(48px, 9vw, 126px);
  font-weight: 800;
  line-height: 0.94;
  text-wrap: balance;
  text-shadow:
    0 0 18px rgba(47, 155, 115, 0.22),
    0 0 54px rgba(47, 155, 115, 0.14);
}

.minimal-hero-scroll {
  position: absolute;
  top: calc(100% + clamp(44px, 9vh, 92px));
  left: 50%;
  width: 1px;
  height: 68px;
  overflow: hidden;
  background: rgba(80, 145, 110, 0.22);
  transform: translateX(-50%);
}

.minimal-hero-scroll::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(238, 248, 241, 0.86), rgba(201, 164, 93, 0.45), transparent);
  transform: translateY(-100%);
  animation: minimal-scroll-line 2.2s ease-in-out infinite;
}

.portfolio-content {
  padding-top: clamp(42px, 8vw, 92px);
  background: transparent;
  scroll-margin-top: 88px;
}

@keyframes minimal-scroll-line {
  0%,
  22% {
    transform: translateY(-100%);
  }

  64%,
  100% {
    transform: translateY(100%);
  }
}

.profile-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(20, 118, 109, 0.1), rgba(217, 151, 34, 0.1)),
    var(--surface-strong);
}

.profile-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.profile-copy h2 {
  font-size: 28px;
}

.profile-copy p:last-child {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 8px;
}

.profile-stat {
  min-width: 0;
  padding: 11px 10px;
  border: 1px solid rgba(20, 118, 109, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
}

.profile-stat strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.profile-stat span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.showcase-3d {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 390px;
  margin: 0 0 28px;
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.92), rgba(20, 118, 109, 0.07) 48%, rgba(217, 151, 34, 0.08)),
    repeating-linear-gradient(90deg, rgba(37, 35, 31, 0.04) 0 1px, transparent 1px 44px),
    var(--surface);
}

.showcase-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-left: 22px;
}

.showcase-copy h2 {
  font-size: 30px;
}

.showcase-copy p:last-child {
  margin: 0;
  color: var(--muted);
}

.showcase-focus {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(20, 118, 109, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 10px 24px rgba(43, 38, 28, 0.07);
}

.showcase-focus.empty {
  border-style: dashed;
  color: var(--muted);
}

.showcase-focus.empty p {
  margin: 0;
}

.showcase-focus-rank {
  width: max-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff0e7;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
}

.showcase-focus h3 {
  font-size: 20px;
}

.showcase-focus p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.showcase-focus-meta,
.showcase-focus-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.showcase-focus-meta span,
.showcase-focus-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf3e8;
  color: var(--olive);
  font-size: 12px;
  font-weight: 800;
}

.showcase-focus-stats strong {
  color: var(--ink);
  font-size: 14px;
}

.showcase-focus-action {
  width: max-content;
  min-height: 34px;
  padding-inline: 12px;
}

.showcase-stage {
  position: relative;
  min-width: 0;
  min-height: 340px;
  overflow: hidden;
  cursor: grab;
  perspective: 1100px;
  touch-action: none;
  outline: none;
}

.showcase-stage.dragging {
  cursor: grabbing;
}

.showcase-stage:focus-visible {
  outline: 3px solid rgba(20, 118, 109, 0.34);
  outline-offset: -6px;
}

.showcase-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(780px, 88%);
  height: 260px;
  transform: translate(-50%, -50%);
}

.showcase-orbit::before,
.showcase-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-6deg);
}

.showcase-orbit::before {
  width: 100%;
  height: 168px;
  border: 2px solid rgba(20, 118, 109, 0.18);
  box-shadow:
    inset 0 0 26px rgba(20, 118, 109, 0.08),
    0 0 36px rgba(217, 151, 34, 0.12);
}

.showcase-orbit::after {
  width: 72%;
  height: 116px;
  border: 1px dashed rgba(101, 120, 70, 0.24);
}

.showcase-card {
  --showcase-card-width: 138px;
  --showcase-card-height: 178px;
  --showcase-x: 0px;
  --showcase-y: 0px;
  --showcase-scale: 1;
  --showcase-opacity: 1;
  position: absolute;
  top: calc(50% + var(--showcase-y));
  left: calc(50% + var(--showcase-x));
  display: grid;
  align-content: end;
  width: var(--showcase-card-width);
  height: var(--showcase-card-height);
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(37, 35, 31, 0.22);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 18px 42px rgba(37, 35, 31, 0.22);
  opacity: var(--showcase-opacity);
  transform: translate(-50%, -50%) scale(var(--showcase-scale));
  transform-origin: center;
  transition:
    opacity 180ms ease,
    box-shadow 180ms ease;
  will-change: left, top, transform;
}

.showcase-card.selected {
  border-color: rgba(198, 83, 59, 0.82);
  filter: brightness(1.04) saturate(1.08);
  box-shadow:
    0 18px 42px rgba(37, 35, 31, 0.24),
    0 0 0 3px rgba(198, 83, 59, 0.18);
}

.showcase-card:hover {
  border-color: rgba(20, 118, 109, 0.62);
  box-shadow:
    0 24px 54px rgba(37, 35, 31, 0.28),
    0 0 0 3px rgba(20, 118, 109, 0.14);
}

.showcase-card:focus-visible {
  outline: 3px solid rgba(20, 118, 109, 0.42);
  outline-offset: 3px;
}

.showcase-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.showcase-rank {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 253, 248, 0.46);
  border-radius: 999px;
  background: rgba(37, 35, 31, 0.72);
  color: #fffdf8;
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

.showcase-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(37, 35, 31, 0.7));
  pointer-events: none;
}

.showcase-card-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 12px;
  color: #fffdf8;
  text-align: left;
  pointer-events: none;
}

.showcase-card-copy strong,
.showcase-card-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-card-copy strong {
  font-size: 14px;
}

.showcase-card-copy span {
  font-size: 12px;
  opacity: 0.86;
}

.showcase-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: min(280px, 80vw);
  min-height: 120px;
  padding: 16px;
  border: 1px dashed rgba(101, 120, 70, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  transform: translate(-50%, -50%);
}

.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
}

h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: min(820px, 100%);
}

.search-box {
  flex: 1 1 270px;
  min-width: 190px;
}

.search-box input,
.field input,
.field textarea,
.select-input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--ink);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.search-box input {
  height: 42px;
  padding: 0 13px;
}

.search-box input:focus,
.field input:focus,
.field textarea:focus,
.select-input:focus,
.comment-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 118, 109, 0.16);
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(56px, auto);
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ece5d8;
}

.segmented.wide {
  width: 100%;
  grid-auto-columns: 1fr;
}

.segment {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.segment.active {
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 1px 5px rgba(37, 35, 31, 0.11);
}

.collection-tabs,
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.collection-tabs {
  margin: -6px 0 12px;
}

.category-tabs {
  margin: -6px 0 18px;
}

.collection-tab,
.category-tab {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.collection-tab.active,
.category-tab.active {
  border-color: rgba(20, 118, 109, 0.55);
  background: #e7f0e8;
  color: var(--teal-dark);
}

.collection-tab {
  border-color: rgba(198, 83, 59, 0.28);
}

.collection-tab.active {
  background: #fff0e7;
  color: var(--coral);
}

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

.work-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(43, 38, 28, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.work-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 118, 109, 0.45);
  box-shadow: var(--shadow);
}

.work-card.selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 118, 109, 0.14), var(--shadow);
}

.work-hit-area {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.work-open-cue {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 253, 248, 0.54);
  border-radius: 999px;
  background: rgba(20, 118, 109, 0.88);
  color: #fffdf8;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.work-card:hover .work-open-cue,
.work-card:focus-within .work-open-cue,
.work-card.selected .work-open-cue {
  opacity: 1;
  transform: translateY(0);
}

.work-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8dfd2;
}

video.work-image,
.work-video {
  object-fit: contain;
  background: #12100d;
  pointer-events: none;
}

.vote-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(37, 35, 31, 0.82);
  color: #fffdf8;
  font-size: 13px;
  font-weight: 800;
}

.work-kind {
  margin: 14px 14px 7px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 800;
}

.work-title {
  margin: 0 14px 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.work-summary {
  min-height: 44px;
  margin: 0 14px 14px;
  color: var(--muted);
  font-size: 14px;
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.detail-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.work-detail-dialog {
  width: min(1080px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.work-detail-dialog::backdrop {
  background: rgba(37, 35, 31, 0.54);
  backdrop-filter: blur(6px);
}

.work-detail-frame {
  position: relative;
  min-width: 0;
}

.work-detail-frame .dialog-close {
  z-index: 2;
}

.work-detail-frame .detail-panel {
  max-height: calc(100vh - 28px);
  overflow: auto;
  box-shadow: var(--shadow);
}

.tour-dialog {
  width: min(1440px, calc(100% - 20px));
  max-width: none;
  height: min(900px, calc(100vh - 20px));
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #fffdf8;
}

.tour-dialog::backdrop {
  background: rgba(12, 11, 10, 0.82);
  backdrop-filter: blur(10px);
}

.tour-frame,
.tour-panel {
  width: 100%;
  height: 100%;
  min-width: 0;
}

.tour-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: var(--radius);
  background: #11100e;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.tour-panel {
  position: relative;
  overflow: hidden;
  outline: none;
}

.tour-panel:focus-visible {
  outline: 3px solid rgba(217, 151, 34, 0.58);
  outline-offset: -8px;
}

.tour-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 8;
  border-color: rgba(255, 253, 248, 0.22);
  background: rgba(17, 16, 14, 0.72);
  color: #fffdf8;
}

.tour-backdrop,
.tour-scrim {
  position: absolute;
  inset: 0;
}

.tour-backdrop {
  z-index: 0;
  overflow: hidden;
  opacity: 0.52;
  transform: scale(1.08);
  filter: saturate(1.12) contrast(1.06);
}

.tour-backdrop .tour-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: tour-breath 12s ease-in-out infinite alternate;
}

.tour-scrim {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.94), rgba(17, 16, 14, 0.52) 44%, rgba(17, 16, 14, 0.18)),
    linear-gradient(180deg, rgba(17, 16, 14, 0.42), rgba(17, 16, 14, 0.9));
}

.tour-progress {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  width: 100%;
  height: 4px;
  background: rgba(255, 253, 248, 0.16);
}

.tour-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--amber), #fff2c2);
  transition: width 360ms ease;
}

.tour-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 52px);
  align-items: center;
  height: calc(100% - 124px);
  min-height: 0;
  padding: clamp(28px, 5vw, 72px);
  padding-right: clamp(28px, 6vw, 86px);
}

.tour-copy {
  display: grid;
  gap: 16px;
  min-width: 0;
  animation: tour-copy-in 420ms ease both;
}

.tour-copy .eyebrow {
  color: #ffc46d;
}

.tour-copy h2 {
  max-width: 760px;
  color: #fffdf8;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 0.98;
  text-wrap: balance;
}

.tour-note {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: 18px;
}

.tour-meta,
.tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tour-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.08);
  color: rgba(255, 253, 248, 0.82);
  font-size: 12px;
  font-weight: 900;
}

.tour-actions {
  margin-top: 4px;
}

.tour-actions .button {
  min-height: 42px;
}

.tour-actions .button-secondary {
  border-color: rgba(255, 253, 248, 0.22);
  background: rgba(255, 253, 248, 0.08);
  color: #fffdf8;
}

.tour-actions .button-secondary.active {
  border-color: rgba(255, 196, 109, 0.72);
  background: rgba(217, 151, 34, 0.22);
  color: #fff2c2;
}

.tour-message {
  min-height: 21px;
  margin: 0;
  color: #ffc46d;
  font-size: 14px;
  font-weight: 800;
}

.tour-media-frame {
  display: grid;
  place-items: center;
  min-width: 0;
  max-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: var(--radius);
  background: rgba(17, 16, 14, 0.56);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.38);
  animation: tour-media-in 520ms ease both;
}

.tour-media-frame .tour-media {
  width: 100%;
  max-height: min(68vh, 700px);
  object-fit: contain;
}

.tour-thumbs {
  position: absolute;
  left: clamp(20px, 4vw, 72px);
  right: clamp(20px, 4vw, 72px);
  bottom: 20px;
  z-index: 5;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(86px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
}

.tour-thumb {
  position: relative;
  min-width: 86px;
  height: 72px;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.08);
  opacity: 0.66;
}

.tour-thumb img,
.tour-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82);
}

.tour-thumb span {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(17, 16, 14, 0.78);
  color: #fffdf8;
  font-size: 12px;
  font-weight: 900;
}

.tour-thumb.active,
.tour-thumb:hover,
.tour-thumb:focus-visible {
  border-color: rgba(255, 196, 109, 0.78);
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(217, 151, 34, 0.2);
}

.tour-thumb.seen::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffc46d;
  box-shadow: 0 0 0 3px rgba(17, 16, 14, 0.62);
}

.tour-empty {
  position: relative;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 12px;
  height: 100%;
  padding: 30px;
  text-align: center;
}

.tour-empty h2 {
  color: #fffdf8;
  font-size: clamp(34px, 5vw, 68px);
}

.tour-empty p:last-child {
  margin: 0;
  color: rgba(255, 253, 248, 0.74);
}

@keyframes tour-breath {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.045);
  }
}

@keyframes tour-copy-in {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes tour-media-in {
  from {
    opacity: 0;
    transform: translateX(28px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.egg-game-dialog {
  width: min(980px, calc(100% - 22px));
  max-width: none;
  height: min(720px, calc(100vh - 22px));
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #fffdf8;
}

.egg-game-dialog::backdrop {
  background: rgba(20, 19, 17, 0.7);
  backdrop-filter: blur(8px);
}

.egg-game-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(20, 118, 109, 0.26), transparent 38%),
    linear-gradient(225deg, rgba(198, 83, 59, 0.3), transparent 42%),
    #151310;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.egg-game-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  border-color: rgba(255, 253, 248, 0.22);
  background: rgba(21, 19, 16, 0.72);
  color: #fffdf8;
}

.egg-game-panel {
  width: 100%;
  height: 100%;
}

.egg-game-start,
.egg-game-play {
  width: 100%;
  height: 100%;
}

.egg-game-start {
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 18px;
  padding: clamp(28px, 6vw, 70px);
  background:
    repeating-linear-gradient(90deg, rgba(255, 253, 248, 0.045) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(255, 253, 248, 0.03) 0 1px, transparent 1px 58px);
}

.egg-game-start h2 {
  max-width: 720px;
  color: #fffdf8;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1;
}

.egg-game-start p {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 253, 248, 0.76);
  font-size: 17px;
}

.egg-game-start .eyebrow {
  color: #ffc46d;
}

.egg-game-start-stats,
.egg-game-start-actions,
.egg-game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.egg-game-start-stats span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.08);
  color: rgba(255, 253, 248, 0.8);
  font-size: 13px;
  font-weight: 900;
}

.egg-game-start-stats strong {
  color: #ffc46d;
  font-size: 20px;
}

.egg-game-play {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  padding: 22px;
  padding-top: 56px;
}

.egg-game-hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.egg-game-hud div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.08);
}

.egg-game-hud span {
  display: block;
  color: rgba(255, 253, 248, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.egg-game-hud strong {
  display: block;
  margin-top: 2px;
  color: #fffdf8;
  font-size: 24px;
  line-height: 1.1;
}

.egg-game-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.15);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.08), transparent 36%),
    repeating-linear-gradient(90deg, rgba(255, 253, 248, 0.055) 0 1px, transparent 1px 54px),
    #201d18;
  touch-action: none;
  outline: none;
}

.egg-game-stage:focus-visible {
  outline: 3px solid rgba(255, 196, 109, 0.48);
  outline-offset: -6px;
}

.egg-game-rain {
  position: absolute;
  inset: 0;
}

.egg-fragment {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  padding: 7px;
  border: 1px solid rgba(37, 35, 31, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 244, 217, 0.9)),
    #fffdf8;
  color: #25231f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  will-change: transform;
}

.egg-fragment:nth-child(3n) {
  background:
    linear-gradient(135deg, rgba(231, 240, 232, 0.95), rgba(255, 253, 248, 0.9)),
    #e7f0e8;
  color: var(--teal-dark);
}

.egg-fragment:nth-child(4n) {
  background:
    linear-gradient(135deg, rgba(255, 240, 231, 0.98), rgba(255, 253, 248, 0.92)),
    #fff0e7;
  color: var(--coral);
}

.egg-fragment.bonus {
  border-color: rgba(255, 196, 109, 0.72);
  background:
    linear-gradient(135deg, #ffe8a3, #fff8d6 58%, #fffdf8),
    #ffe8a3;
  color: #5b3d08;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.24),
    0 0 0 3px rgba(217, 151, 34, 0.16);
}

.egg-game-paddle {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: min(170px, 24vw);
  min-width: 92px;
  height: 22px;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--teal), var(--amber) 55%, var(--coral)),
    #fffdf8;
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.28),
    0 0 0 5px rgba(255, 253, 248, 0.08);
  transform: translateX(-50%);
  transition: left 90ms linear;
}

.egg-game-controls {
  justify-content: center;
}

.egg-game-controls .button-secondary,
.egg-game-start-actions .button-secondary,
.egg-game-controls .button-ghost {
  border-color: rgba(255, 253, 248, 0.22);
  background: rgba(255, 253, 248, 0.08);
  color: #fffdf8;
}

.egg-game-status {
  min-height: 20px;
  margin: 0;
  color: #ffc46d;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.energy-egg-dialog {
  width: min(1120px, calc(100% - 22px));
  max-width: none;
  height: min(760px, calc(100vh - 22px));
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #fffdf8;
}

.energy-egg-dialog::backdrop {
  background: rgba(12, 13, 16, 0.78);
  backdrop-filter: blur(10px);
}

.energy-egg-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(14, 126, 118, 0.22), transparent 42%),
    linear-gradient(315deg, rgba(77, 125, 214, 0.24), transparent 46%),
    #101115;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
}

.energy-egg-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  border-color: rgba(255, 253, 248, 0.22);
  background: rgba(16, 17, 21, 0.72);
  color: #fffdf8;
}

.energy-egg-panel,
.energy-egg-shell {
  width: 100%;
  height: 100%;
}

.energy-egg-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: clamp(18px, 3vw, 34px);
}

.energy-egg-copy {
  max-width: 740px;
  padding-right: 54px;
}

.energy-egg-copy h2 {
  margin: 0;
  color: #fffdf8;
  font-size: clamp(32px, 5.8vw, 72px);
  line-height: 0.96;
}

.energy-egg-copy p:last-child {
  max-width: 660px;
  margin: 10px 0 0;
  color: rgba(255, 253, 248, 0.76);
  font-size: 16px;
}

.energy-egg-stage {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: calc(var(--radius) - 2px);
  background:
    repeating-linear-gradient(90deg, rgba(255, 253, 248, 0.035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255, 253, 248, 0.028) 0 1px, transparent 1px 72px),
    #0b0d10;
  cursor: crosshair;
  touch-action: none;
}

.energy-egg-stage:focus-visible {
  outline: 3px solid rgba(105, 220, 203, 0.78);
  outline-offset: 3px;
}

.energy-egg-video,
.energy-egg-canvas,
.energy-egg-empty {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.energy-egg-video {
  object-fit: cover;
  opacity: 0.64;
  transform: scaleX(-1);
}

.energy-egg-canvas {
  z-index: 2;
}

.energy-egg-empty {
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(255, 253, 248, 0.18);
  font-size: clamp(42px, 10vw, 120px);
  font-weight: 900;
  letter-spacing: 0;
  pointer-events: none;
}

.energy-egg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.energy-egg-footer > div:first-child {
  display: grid;
  gap: 4px;
}

.energy-egg-footer span {
  color: rgba(255, 253, 248, 0.58);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.energy-egg-footer strong {
  color: #fffdf8;
  font-size: 15px;
}

.energy-egg-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.energy-egg-actions .button-secondary,
.energy-egg-actions .button-ghost {
  border-color: rgba(255, 253, 248, 0.22);
  background: rgba(255, 253, 248, 0.08);
  color: #fffdf8;
}

.detail-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8dfd2;
}

.detail-video {
  aspect-ratio: auto;
  max-height: min(72vh, 760px);
  object-fit: contain;
  background: #12100d;
}

.detail-body {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.detail-text {
  display: grid;
  gap: 8px;
}

.detail-text p {
  margin: 0;
  color: var(--muted);
}

.detail-summary {
  font-size: 16px;
}

.detail-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

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

.detail-meta-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(221, 213, 199, 0.82);
  border-radius: var(--radius);
  background: #fffaf0;
}

.detail-meta-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta-item strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid rgba(101, 120, 70, 0.34);
  border-radius: 999px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 800;
}

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

.stat {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #faf5ea;
}

.stat strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.comment-section {
  display: grid;
  gap: 12px;
}

.detail-section {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.detail-section p {
  margin: 0;
  color: var(--muted);
}

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

.detail-actions .button-danger {
  grid-column: 1 / -1;
}

.owner-line {
  color: var(--olive) !important;
  font-size: 13px;
  font-weight: 800;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-title h3 {
  font-size: 16px;
}

.section-title h2 {
  font-size: 18px;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.comment-list {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.comment {
  border-left: 3px solid var(--teal);
  padding: 2px 0 2px 10px;
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.comment strong {
  display: block;
  font-size: 14px;
}

.comment p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.text-button {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 22px;
  border: 1px dashed rgba(101, 120, 70, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.68);
  color: var(--muted);
  text-align: center;
}

.state-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 440px;
}

.state-panel strong {
  color: var(--ink);
  font-size: 18px;
}

.state-panel p {
  margin: 0;
}

.loading-state {
  position: relative;
}

.loading-state::after {
  content: "";
  width: 34px;
  height: 3px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: loading-sweep 1.2s ease-in-out infinite;
}

@keyframes loading-sweep {
  0% {
    transform: translateX(-16px);
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateX(16px);
    opacity: 0.45;
  }
}

.comment-form {
  display: grid;
  gap: 10px;
}

.comment-form textarea,
.field textarea {
  min-height: 92px;
  resize: vertical;
  padding: 11px 12px;
}

.upload-form {
  max-height: min(760px, calc(100vh - 28px));
  overflow: auto;
}

.upload-preview {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 116px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #faf5ea;
}

.upload-preview.empty {
  place-items: center;
  grid-template-columns: 1fr;
  border-style: dashed;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.upload-preview-media {
  overflow: hidden;
  border-radius: 6px;
  background: #12100d;
}

.upload-preview-media img,
.upload-preview-media video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.upload-preview-copy {
  min-width: 0;
}

.upload-preview-copy strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 7px;
  border: 1px solid rgba(101, 120, 70, 0.28);
  border-radius: 999px;
  background: #edf3e8;
  color: var(--olive);
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

.status-badge.pending {
  border-color: rgba(217, 151, 34, 0.4);
  background: #fff4d9;
  color: #8b5f0f;
}

.status-badge.private {
  border-color: rgba(20, 118, 109, 0.34);
  background: #e7f0e8;
  color: var(--teal-dark);
}

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

.admin-section {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.admin-list {
  display: grid;
  gap: 9px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #faf5ea;
}

.admin-row strong {
  display: block;
  font-size: 14px;
}

.admin-row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.row-actions .button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--coral);
  font-size: 14px;
}

.button,
.icon-button {
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  text-decoration: none;
}

.button:hover,
.icon-button:hover,
.segment:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button-primary {
  background: var(--teal);
  color: #fffdf8;
  box-shadow: 0 8px 18px rgba(20, 118, 109, 0.22);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-tour {
  border-color: rgba(37, 35, 31, 0.28);
  background: #25231f;
  color: #fffdf8;
  box-shadow: 0 10px 24px rgba(37, 35, 31, 0.18);
}

.button-tour:hover {
  background: #11100e;
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--ink);
}

.button-secondary.active {
  border-color: rgba(198, 83, 59, 0.5);
  background: #fff1eb;
  color: var(--coral);
}

.button-danger {
  border-color: rgba(198, 83, 59, 0.38);
  background: #fff1eb;
  color: var(--coral);
}

.button-danger:hover {
  border-color: rgba(198, 83, 59, 0.72);
  background: #ffe5dc;
}

.button-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button-full {
  width: 100%;
}

.auth-dialog {
  width: min(440px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.auth-dialog::backdrop {
  background: rgba(37, 35, 31, 0.42);
  backdrop-filter: blur(5px);
}

.dialog-frame {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.dialog-head {
  padding-right: 42px;
}

.dialog-close {
  position: absolute;
  top: 13px;
  right: 13px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 23px;
  line-height: 1;
}

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

.field label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.field input {
  height: 42px;
  padding: 0 12px;
}

.select-input {
  height: 42px;
  padding: 0 12px;
}

.field input[type="file"] {
  height: auto;
  padding: 10px 12px;
}

.hidden {
  display: none !important;
}

.vip-space-button.vip-ready {
  border-color: rgba(var(--theme-accent-rgb), 0.48);
  box-shadow: 0 0 22px rgba(var(--theme-accent-rgb), 0.16);
}

.vip-space-dialog {
  width: min(1180px, calc(100% - 28px));
  max-height: min(860px, calc(100svh - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.vip-space-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.vip-space-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(var(--theme-panel-rgb), 0.96), rgba(var(--theme-bg-rgb), 0.94)),
    var(--surface-strong);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(var(--ink-rgb), 0.04),
    0 0 58px rgba(var(--theme-primary-rgb), 0.13);
}

.motion-ready dialog.motion-unlocking[open] .vip-space-frame::before,
.motion-ready dialog.motion-unlocking[open] .vip-space-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.motion-ready dialog.motion-unlocking[open] .vip-space-frame::before {
  border: 1px solid rgba(var(--theme-accent-rgb), 0.68);
  box-shadow: inset 0 0 38px rgba(var(--theme-primary-rgb), 0.2);
  animation: motion-dialog-border-unlock 1.05s ease both;
}

.motion-ready dialog.motion-unlocking[open] .vip-space-frame::after {
  background: linear-gradient(180deg, transparent, rgba(var(--theme-accent-rgb), 0.24), transparent);
  transform: translateY(-100%);
  animation: motion-dialog-scan-unlock 980ms cubic-bezier(0.18, 0.82, 0.24, 1) both;
}

.vip-space-panel {
  max-height: min(860px, calc(100svh - 28px));
  overflow: auto;
}

.vip-lock {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: clamp(28px, 7vw, 72px);
  text-align: center;
}

.vip-lock::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.16);
  background:
    repeating-linear-gradient(90deg, rgba(var(--theme-primary-rgb), 0.08) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(var(--theme-accent-rgb), 0.06) 0 1px, transparent 1px 46px);
  mask-image: radial-gradient(circle, #000 0 46%, transparent 72%);
  pointer-events: none;
}

.vip-lock-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.36);
  border-radius: 50%;
  background: rgba(var(--theme-primary-rgb), 0.08);
  box-shadow: inset 0 0 28px rgba(var(--theme-primary-rgb), 0.14), 0 0 36px rgba(var(--theme-primary-rgb), 0.16);
}

.vip-lock-core span,
.vip-lock-core i {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(var(--theme-accent-rgb), 0.52);
}

.vip-lock-core span {
  inset: 26px;
  animation: vip-core-spin 7s linear infinite;
}

.vip-lock-core i {
  inset: 44px;
  background: radial-gradient(circle, rgba(var(--theme-accent-rgb), 0.78), transparent 62%);
  animation: vip-core-pulse 2.4s ease-in-out infinite;
}

.vip-lock h2,
.vip-space-head h2 {
  margin: 0;
}

.vip-lock p {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.vip-space-shell {
  display: grid;
  gap: 22px;
  padding: clamp(18px, 3vw, 30px);
}

.vip-space-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-right: 44px;
}

.vip-space-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.vip-space-meter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vip-space-meter span {
  display: inline-grid;
  min-width: 98px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
  border-radius: var(--radius);
  background: rgba(var(--theme-primary-rgb), 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.vip-space-meter strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.vip-space-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 22px;
  align-items: start;
}

.vip-space-gallery,
.vip-space-side,
.vip-space-form,
.vip-space-list {
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
  border-radius: var(--radius);
  background: rgba(var(--surface-strong-rgb), 0.58);
  box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), 0.03);
}

.vip-space-gallery {
  min-height: 560px;
  overflow: hidden;
  padding: clamp(16px, 3vw, 28px);
}

.vip-space-stage {
  position: relative;
  display: grid;
  min-height: 440px;
  place-items: center;
  overflow: hidden;
  perspective: 1100px;
  cursor: grab;
  touch-action: pan-y;
}

.vip-space-stage.dragging {
  cursor: grabbing;
}

.vip-space-stage::before {
  content: "";
  position: absolute;
  width: min(520px, 78%);
  aspect-ratio: 1;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 58%, rgba(var(--theme-primary-rgb), 0.1) 59% 60%, transparent 61%),
    conic-gradient(from 120deg, rgba(var(--theme-accent-rgb), 0.32), transparent 24%, rgba(var(--theme-primary-rgb), 0.22), transparent 62%, rgba(var(--theme-accent-rgb), 0.22));
  filter: drop-shadow(0 0 26px rgba(var(--theme-primary-rgb), 0.12));
  opacity: 0.72;
  animation: vip-orbit-scan 12s linear infinite;
}

.vip-space-orbit {
  position: relative;
  width: min(280px, 58vw);
  height: 360px;
  transform-style: preserve-3d;
}

.vip-space-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  width: 230px;
  height: 320px;
  margin: auto;
  padding: 10px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(var(--surface-strong-rgb), 0.94), rgba(var(--theme-bg-rgb), 0.86)),
    var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32), 0 0 30px rgba(var(--theme-primary-rgb), 0.12);
  transform-style: preserve-3d;
  transition: transform 360ms ease, border-color 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.vip-space-card:not(.active) {
  opacity: 0.62;
}

.vip-space-card.active,
.vip-space-card:hover,
.vip-space-card:focus-visible {
  border-color: rgba(var(--theme-accent-rgb), 0.62);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4), 0 0 42px rgba(var(--theme-accent-rgb), 0.18);
}

.vip-space-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
}

.vip-space-card span {
  display: block;
  min-height: 42px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.vip-space-controls {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 12px;
  align-items: center;
}

.vip-space-caption {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.18);
  border-radius: var(--radius);
  background: rgba(var(--theme-primary-rgb), 0.07);
}

.vip-space-caption strong,
.vip-space-caption span {
  overflow-wrap: anywhere;
}

.vip-space-caption span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.vip-space-side {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.vip-space-form {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.vip-space-form textarea {
  min-height: 96px;
}

.vip-space-list {
  display: grid;
  gap: 10px;
  max-height: 300px;
  overflow: auto;
  padding: 10px;
}

.vip-space-list-item {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.14);
  border-radius: var(--radius);
  background: rgba(var(--theme-bg-rgb), 0.24);
}

.vip-space-list-item.active {
  border-color: rgba(var(--theme-accent-rgb), 0.5);
}

.vip-space-list-item > button {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.vip-space-list-item img {
  width: 58px;
  height: 58px;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
}

.vip-space-list-item span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-space-empty {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 420px;
  text-align: center;
}

.vip-space-empty span {
  width: 96px;
  height: 96px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.32);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--theme-primary-rgb), 0.32), transparent 68%);
  box-shadow: 0 0 40px rgba(var(--theme-primary-rgb), 0.16);
}

.vip-space-empty p {
  max-width: 360px;
  color: var(--muted);
}

.vip-partner-field {
  display: inline-grid;
  grid-template-columns: auto minmax(130px, 180px);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

@keyframes vip-core-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes vip-core-pulse {
  50% {
    transform: scale(1.22);
    opacity: 0.46;
  }
}

@keyframes vip-orbit-scan {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .vip-space-dialog {
    width: min(100% - 16px, 720px);
  }

  .vip-space-head,
  .vip-space-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .vip-space-head {
    display: grid;
    padding-right: 42px;
  }

  .vip-space-gallery {
    min-height: auto;
  }

  .vip-space-stage {
    min-height: 360px;
  }

  .vip-space-orbit {
    width: min(220px, 64vw);
    height: 300px;
  }

  .vip-space-card {
    width: 190px;
    height: 270px;
  }

  .vip-partner-field {
    grid-template-columns: minmax(0, 1fr);
    width: min(240px, 100%);
  }
}

@media (max-width: 560px) {
  .vip-space-shell {
    padding: 14px;
  }

  .vip-space-meter {
    width: 100%;
  }

  .vip-space-meter span {
    min-width: 0;
    flex: 1 1 120px;
  }

  .vip-space-controls {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .vip-space-card {
    width: 168px;
    height: 238px;
  }

  .vip-space-list-item > button {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .vip-space-list-item img {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vip-lock-core span,
  .vip-lock-core i,
  .vip-space-stage::before {
    animation: none;
  }

  .vip-space-stage {
    min-height: auto;
    perspective: none;
  }

  .vip-space-orbit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    width: 100%;
    height: auto;
    gap: 12px;
    transform-style: flat;
  }

  .vip-space-card {
    position: static;
    width: 100%;
    height: 230px;
    transform: none !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase-3d {
    grid-template-columns: minmax(0, 1fr);
    min-height: 520px;
  }

  .showcase-copy {
    padding-right: 22px;
  }

  .showcase-focus {
    max-width: 720px;
  }

  .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-card:first-child {
    position: static;
    grid-row: auto;
  }

  .detail-panel {
    box-shadow: 0 10px 24px rgba(43, 38, 28, 0.08);
  }

  .tour-content {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    height: calc(100% - 112px);
  }

  .tour-media-frame {
    max-height: 34vh;
  }

  .tour-media-frame .tour-media {
    max-height: 34vh;
  }

  .egg-game-dialog {
    height: min(720px, calc(100vh - 12px));
  }

  .energy-egg-dialog {
    height: min(740px, calc(100vh - 12px));
  }
}

@media (max-width: 860px) {
  .showcase-3d {
    min-height: 500px;
    padding-top: 22px;
  }

  .showcase-stage {
    min-height: 320px;
  }

  .showcase-card {
    --showcase-card-width: 108px;
    --showcase-card-height: 142px;
  }

  .showcase-card-copy {
    padding: 10px;
  }

  .showcase-focus {
    margin-top: 10px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-wide {
    grid-column: auto;
  }

  .admin-page-head,
  .toolbar,
  .controls {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .controls {
    min-width: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-dialog {
    width: calc(100% - 12px);
    height: calc(100vh - 12px);
  }

  .tour-content {
    padding: 52px 22px 118px;
  }

  .tour-copy h2 {
    font-size: 42px;
  }

  .tour-note {
    font-size: 16px;
  }

  .tour-thumbs {
    left: 18px;
    right: 18px;
    grid-auto-columns: 78px;
  }

  .egg-game-play {
    padding-inline: 16px;
  }

  .egg-game-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .energy-egg-shell {
    gap: 12px;
  }

  .energy-egg-copy h2 {
    font-size: 44px;
  }

  .energy-egg-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .energy-egg-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .session-label {
    max-width: 130px;
  }

  .app-shell {
    padding-top: 20px;
  }

  .site-footer {
    padding-bottom: 24px;
    font-size: 12px;
  }

  h1 {
    font-size: 29px;
  }

  .profile-panel {
    padding: 18px;
  }

  .profile-copy h2 {
    font-size: 24px;
  }

  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-3d {
    min-height: 470px;
  }

  .showcase-copy {
    padding-inline: 18px;
  }

  .showcase-stage {
    min-height: 270px;
  }

  .showcase-orbit {
    width: min(520px, 94%);
    height: 210px;
  }

  .showcase-card {
    --showcase-card-width: 92px;
    --showcase-card-height: 124px;
  }

  .showcase-card-copy span {
    display: none;
  }

  .showcase-focus-action {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-head,
  .detail-meta-grid,
  .upload-preview {
    grid-template-columns: 1fr;
  }

  .detail-status {
    justify-content: flex-start;
  }

  .detail-actions,
  .form-grid,
  .admin-actions,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .row-actions {
    justify-content: stretch;
  }

  .segmented {
    width: 100%;
    grid-auto-columns: 1fr;
  }

  .tour-content {
    gap: 16px;
    padding: 48px 16px 112px;
  }

  .tour-actions .button {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    padding-inline: 10px;
  }

  .tour-media-frame {
    max-height: 28vh;
  }

  .tour-media-frame .tour-media {
    max-height: 28vh;
  }

  .egg-game-dialog {
    width: calc(100% - 12px);
    height: calc(100vh - 12px);
  }

  .egg-game-start {
    padding: 52px 18px 26px;
  }

  .egg-game-start h2 {
    font-size: 38px;
  }

  .egg-game-start p {
    font-size: 15px;
  }

  .egg-game-play {
    grid-template-rows: auto minmax(260px, 1fr) auto auto;
    padding: 52px 12px 14px;
  }

  .egg-game-hud {
    gap: 7px;
  }

  .egg-game-hud div {
    padding: 8px;
  }

  .egg-game-hud strong {
    font-size: 19px;
  }

  .egg-game-controls .button,
  .egg-game-start-actions .button {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    padding-inline: 10px;
  }

  .energy-egg-dialog {
    width: calc(100% - 12px);
    height: calc(100vh - 12px);
  }

  .energy-egg-shell {
    padding: 52px 12px 14px;
  }

  .energy-egg-copy {
    padding-right: 0;
  }

  .energy-egg-copy h2 {
    font-size: 36px;
  }

  .energy-egg-copy p:last-child {
    font-size: 14px;
  }

  .energy-egg-stage {
    min-height: 300px;
  }

  .energy-egg-actions .button {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    padding-inline: 10px;
  }
}

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

  .brand {
    font-size: 17px;
  }

  .nav-actions .button {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    padding-inline: 10px;
  }

  .session-label {
    flex: 1 0 100%;
    max-width: none;
  }

  .profile-panel,
  .showcase-focus,
  .admin-card,
  .dialog-frame {
    padding: 16px;
  }

  .showcase-3d {
    min-height: 440px;
    margin-bottom: 22px;
  }

  .showcase-copy h2 {
    font-size: 26px;
  }

  .showcase-stage {
    min-height: 238px;
  }

  .showcase-card {
    --showcase-card-width: 82px;
    --showcase-card-height: 112px;
  }

  .controls {
    gap: 10px;
  }

  .collection-tab,
  .category-tab,
  .segment,
  .button {
    font-size: 13px;
  }

  .work-detail-dialog,
  .auth-dialog {
    width: calc(100% - 18px);
  }

  .work-detail-frame .detail-panel,
  .dialog-frame {
    max-height: calc(100vh - 22px);
    overflow: auto;
  }

  .tour-copy h2 {
    font-size: 34px;
  }

  .tour-meta span {
    font-size: 11px;
  }

  .egg-game-hud span {
    font-size: 11px;
  }

  .egg-game-stage {
    min-height: 240px;
  }

  .energy-egg-stage {
    min-height: 260px;
  }

  .energy-egg-empty {
    font-size: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-backdrop .tour-media,
  .tour-copy,
  .tour-media-frame {
    animation: none;
  }

  .tour-progress span {
    transition: none;
  }

  .egg-fragment,
  .egg-game-paddle,
  .energy-egg-video {
    transition: none;
  }
}

/* Dark neon tech theme overrides */
html {
  background: var(--bg);
}

::selection {
  background: rgba(47, 155, 115, 0.32);
  color: #ffffff;
}

body {
  text-rendering: optimizeLegibility;
}

.topbar {
  border-bottom: 1px solid rgba(82, 154, 122, 0.22);
  background:
    linear-gradient(90deg, rgba(4, 18, 13, 0.94), rgba(7, 31, 22, 0.84)),
    rgba(3, 17, 13, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 18px 60px rgba(0, 0, 0, 0.32),
    0 0 32px rgba(47, 155, 115, 0.08);
}

.brand {
  color: #f5fbff;
  text-shadow: 0 0 18px rgba(47, 155, 115, 0.24);
}

.brand-mark {
  border-color: rgba(191, 244, 255, 0.9);
  background:
    linear-gradient(135deg, transparent 42%, rgba(201, 164, 93, 0.95) 43% 57%, transparent 58%),
    linear-gradient(45deg, #2d8c68 0 47%, #6f8f55 48% 72%, #caa96a 73% 100%);
  box-shadow:
    0 0 0 1px rgba(47, 155, 115, 0.18),
    0 0 22px rgba(47, 155, 115, 0.38),
    4px 4px 0 rgba(0, 153, 212, 0.42);
}

body.motion-ready .minimal-hero-kicker,
body.motion-ready .minimal-hero-name {
  animation: minimal-hero-rise 900ms cubic-bezier(0.18, 0.82, 0.24, 1) both;
}

body.motion-ready .minimal-hero-name {
  animation-delay: 80ms;
}

body.motion-ready .minimal-hero-scroll {
  animation: minimal-hero-scroll-rise 900ms cubic-bezier(0.18, 0.82, 0.24, 1) 280ms both;
}

@keyframes minimal-hero-rise {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes minimal-hero-scroll-rise {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translate(-50%, 18px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, 0);
  }
}

@media (max-width: 760px) {
  .minimal-hero {
    min-height: calc(100svh - 96px);
    padding-inline: 18px;
  }

  .minimal-hero-kicker {
    letter-spacing: 0.16em;
  }

  .minimal-hero-scroll {
    height: 54px;
    top: calc(100% + 36px);
  }

  .portfolio-content {
    padding-top: 34px;
  }
}

@media (max-width: 430px) {
  .minimal-hero {
    min-height: calc(100svh - 96px);
  }

  .minimal-hero-name {
    font-size: clamp(42px, 16vw, 68px);
  }
}

.session-label,
.site-footer,
.site-footer a,
.field label,
.section-title span,
.dashboard-stat span,
.dashboard-stat p,
.dashboard-item p,
.profile-copy p:last-child,
.profile-stat span,
.showcase-copy p:last-child,
.showcase-focus p,
.work-summary,
.work-meta,
.detail-text p,
.detail-section p,
.detail-meta-item span,
.stat span,
.comment p,
.upload-preview-copy p,
.checkbox-field,
.admin-row p {
  color: var(--muted);
}

.site-footer a:hover,
.text-button {
  color: var(--teal);
  text-shadow: 0 0 16px rgba(47, 155, 115, 0.28);
}

.toast {
  border-color: rgba(201, 164, 93, 0.36);
  background:
    linear-gradient(135deg, rgba(201, 164, 93, 0.16), rgba(47, 155, 115, 0.1)),
    rgba(10, 34, 25, 0.96);
  color: #eadfb8;
  box-shadow: var(--shadow);
}

.admin-card,
.dashboard-stat,
.dashboard-card,
.profile-stat,
.showcase-focus,
.work-card,
.detail-panel,
.dialog-frame,
.detail-meta-item,
.stat,
.empty-state,
.upload-preview,
.admin-row,
.showcase-empty {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(14, 43, 31, 0.9), rgba(6, 23, 17, 0.8)),
    var(--surface);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    var(--shadow);
  backdrop-filter: blur(18px);
}

.admin-card,
.dashboard-card,
.dialog-frame,
.detail-panel {
  background:
    linear-gradient(145deg, rgba(47, 155, 115, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(201, 164, 93, 0.08), transparent 46%),
    rgba(9, 38, 27, 0.94);
}

.profile-panel {
  border-color: rgba(82, 154, 122, 0.2);
  background:
    linear-gradient(135deg, rgba(47, 155, 115, 0.16), transparent 38%),
    linear-gradient(315deg, rgba(201, 164, 93, 0.12), transparent 44%),
    repeating-linear-gradient(90deg, rgba(82, 154, 122, 0.06) 0 1px, transparent 1px 54px),
    rgba(6, 27, 20, 0.88);
  box-shadow: var(--shadow);
}

.profile-copy h2,
.showcase-copy h2,
h1,
h2,
h3,
.dashboard-stat strong,
.profile-stat strong,
.detail-meta-item strong,
.stat strong,
.admin-row strong,
.state-panel strong,
.upload-preview-copy strong {
  color: var(--ink);
}

.eyebrow {
  color: var(--olive);
  text-shadow: 0 0 14px rgba(122, 165, 106, 0.32);
}

.showcase-3d {
  border-color: rgba(82, 154, 122, 0.22);
  background:
    linear-gradient(90deg, rgba(3, 17, 13, 0.96), rgba(8, 38, 27, 0.82) 52%, rgba(34, 32, 18, 0.72)),
    repeating-linear-gradient(90deg, rgba(82, 154, 122, 0.08) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(122, 165, 106, 0.045) 0 1px, transparent 1px 46px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 30px 90px rgba(0, 0, 0, 0.32);
}

.showcase-stage:focus-visible,
.tour-panel:focus-visible,
.egg-game-stage:focus-visible,
.energy-egg-stage:focus-visible,
.showcase-card:focus-visible {
  outline-color: rgba(47, 155, 115, 0.72);
}

.showcase-orbit::before {
  border-color: rgba(47, 155, 115, 0.34);
  box-shadow:
    inset 0 0 36px rgba(47, 155, 115, 0.16),
    0 0 54px rgba(47, 155, 115, 0.2),
    0 0 90px rgba(201, 164, 93, 0.08);
}

.showcase-orbit::after {
  border-color: rgba(122, 165, 106, 0.32);
}

.showcase-card {
  border-color: rgba(82, 154, 122, 0.26);
  background: rgba(4, 18, 13, 0.96);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.44),
    0 0 30px rgba(47, 155, 115, 0.1);
}

.showcase-card.selected {
  border-color: rgba(201, 164, 93, 0.86);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.52),
    0 0 0 3px rgba(201, 164, 93, 0.16),
    0 0 34px rgba(201, 164, 93, 0.26);
}

.showcase-card:hover {
  border-color: rgba(47, 155, 115, 0.78);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.56),
    0 0 0 3px rgba(47, 155, 115, 0.16),
    0 0 42px rgba(47, 155, 115, 0.24);
}

.showcase-rank,
.vote-badge {
  border-color: rgba(191, 244, 255, 0.36);
  background: rgba(4, 12, 24, 0.82);
  color: #f1f7f0;
  box-shadow: 0 0 20px rgba(47, 155, 115, 0.18);
}

.showcase-glow {
  background: linear-gradient(180deg, transparent 34%, rgba(4, 9, 20, 0.88));
}

.showcase-focus-rank {
  background: rgba(201, 164, 93, 0.14);
  color: #eadfb8;
}

.showcase-focus-meta span,
.showcase-focus-stats span,
.dashboard-card-head span,
.dashboard-rank-count,
.status-badge {
  border: 1px solid rgba(122, 165, 106, 0.18);
  background: rgba(122, 165, 106, 0.1);
  color: var(--olive);
}

.showcase-focus-stats strong,
.status-badge.private {
  color: #f1f7f0;
}

.status-badge.pending {
  border-color: rgba(255, 209, 102, 0.34);
  background: rgba(255, 209, 102, 0.12);
  color: var(--amber);
}

.toolbar {
  border-color: rgba(82, 154, 122, 0.12);
}

.search-box input,
.field input,
.field textarea,
.select-input,
.comment-form textarea {
  border-color: rgba(82, 154, 122, 0.18);
  background: rgba(3, 16, 12, 0.84);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.search-box input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(147, 169, 187, 0.78);
}

.search-box input:focus,
.field input:focus,
.field textarea:focus,
.select-input:focus,
.comment-form textarea:focus {
  border-color: rgba(47, 155, 115, 0.8);
  background: rgba(5, 24, 17, 0.96);
  box-shadow:
    0 0 0 3px rgba(47, 155, 115, 0.16),
    0 0 24px rgba(47, 155, 115, 0.12);
}

option {
  background: #04140f;
  color: var(--ink);
}

.segmented {
  border-color: rgba(82, 154, 122, 0.2);
  background: rgba(4, 12, 24, 0.76);
  box-shadow: 0 0 24px rgba(47, 155, 115, 0.06) inset;
}

.segment {
  color: var(--muted);
}

.segment.active {
  background:
    linear-gradient(135deg, rgba(47, 155, 115, 0.2), rgba(122, 165, 106, 0.12)),
    rgba(9, 36, 25, 0.94);
  color: #eef8f1;
  box-shadow:
    0 0 0 1px rgba(47, 155, 115, 0.18) inset,
    0 0 22px rgba(47, 155, 115, 0.12);
}

.collection-tab,
.category-tab,
.tag {
  border-color: rgba(82, 154, 122, 0.2);
  background: rgba(6, 24, 18, 0.76);
  color: var(--muted);
}

.category-tab.active {
  border-color: rgba(47, 155, 115, 0.58);
  background: rgba(47, 155, 115, 0.13);
  color: #d9eadf;
}

.collection-tab.active {
  border-color: rgba(201, 164, 93, 0.5);
  background: rgba(201, 164, 93, 0.12);
  color: #eadfb8;
}

.tag {
  color: var(--olive);
}

.work-card {
  position: relative;
  overflow: hidden;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background:
    linear-gradient(90deg, transparent, rgba(47, 155, 115, 0.08), transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-34%);
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.work-card:hover::before,
.work-card.selected::before {
  opacity: 1;
  transform: translateX(34%);
}

.work-card:hover {
  border-color: rgba(47, 155, 115, 0.48);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(47, 155, 115, 0.13);
}

.work-card.selected {
  border-color: rgba(201, 164, 93, 0.72);
  box-shadow:
    0 0 0 3px rgba(201, 164, 93, 0.12),
    var(--shadow);
}

.work-hit-area {
  position: relative;
  z-index: 2;
}

.work-image,
.detail-image {
  background:
    repeating-linear-gradient(90deg, rgba(82, 154, 122, 0.08) 0 1px, transparent 1px 34px),
    #04140f;
}

video.work-image,
.work-video,
.detail-video,
.upload-preview-media {
  background: #020806;
}

.work-kind,
.owner-line {
  color: var(--olive) !important;
}

.work-title {
  color: var(--ink);
}

.work-meta,
.admin-section,
.dashboard-item,
.detail-panel,
.detail-meta-item,
.work-detail-frame .detail-panel {
  border-color: var(--line);
}

.work-open-cue {
  border-color: rgba(191, 244, 255, 0.38);
  background: rgba(47, 155, 115, 0.86);
  color: #02110c;
  box-shadow: 0 0 24px rgba(47, 155, 115, 0.26);
}

.button,
.icon-button {
  border-color: rgba(82, 154, 122, 0.2);
}

.button-primary {
  border-color: rgba(47, 155, 115, 0.48);
  background: linear-gradient(135deg, #2d8c68, #237a5c 52%, #586b48);
  color: #02110c;
  box-shadow:
    0 12px 28px rgba(0, 162, 255, 0.26),
    0 0 32px rgba(47, 155, 115, 0.16);
}

.button-primary:hover {
  background: linear-gradient(135deg, #7ca486, #2d8c68 52%, #c9a45d);
  color: #02110c;
}

.button-tour {
  border-color: rgba(201, 164, 93, 0.42);
  background: linear-gradient(135deg, #c9a45d, #2d8c68);
  color: #02110c;
  box-shadow:
    0 12px 30px rgba(201, 164, 93, 0.22),
    0 0 34px rgba(47, 155, 115, 0.14);
}

.button-tour:hover {
  background: linear-gradient(135deg, #caa96a, #2d8c68);
}

.button-secondary,
.button-ghost,
.icon-button,
.tour-actions .button-secondary,
.egg-game-actions .button-secondary,
.egg-game-controls .button-secondary,
.egg-game-start-actions .button-secondary,
.energy-egg-actions .button-secondary,
.energy-egg-actions .button-ghost {
  border-color: rgba(82, 154, 122, 0.22);
  background: rgba(6, 24, 18, 0.74);
  color: var(--ink);
  box-shadow: 0 0 20px rgba(47, 155, 115, 0.06) inset;
}

.button-secondary.active {
  border-color: rgba(201, 164, 93, 0.48);
  background: rgba(201, 164, 93, 0.12);
  color: #eadfb8;
}

.button-danger {
  border-color: rgba(255, 107, 122, 0.42);
  background: rgba(255, 107, 122, 0.12);
  color: #ffc1c8;
}

.button-danger:hover {
  border-color: rgba(255, 107, 122, 0.72);
  background: rgba(255, 107, 122, 0.2);
}

.auth-dialog::backdrop,
.work-detail-dialog::backdrop,
.tour-dialog::backdrop,
.egg-game-dialog::backdrop,
.energy-egg-dialog::backdrop {
  background: rgba(0, 4, 12, 0.78);
  backdrop-filter: blur(10px);
}

.dialog-close {
  box-shadow: 0 0 22px rgba(47, 155, 115, 0.1);
}

.comment {
  border-left-color: var(--teal);
}

.form-message {
  color: #ff9ee7;
}

.upload-preview.empty,
.dashboard-empty,
.empty-state {
  border-color: rgba(122, 165, 106, 0.24);
  background:
    repeating-linear-gradient(90deg, rgba(122, 165, 106, 0.045) 0 1px, transparent 1px 34px),
    rgba(6, 24, 18, 0.72);
}

.admin-row {
  background: rgba(4, 18, 13, 0.78);
}

.admin-locked .admin-card {
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.48),
    0 0 42px rgba(201, 164, 93, 0.1);
}

.tour-frame,
.egg-game-frame,
.energy-egg-frame {
  border-color: rgba(82, 154, 122, 0.2);
  background:
    linear-gradient(145deg, rgba(47, 155, 115, 0.13), transparent 40%),
    linear-gradient(315deg, rgba(201, 164, 93, 0.12), transparent 44%),
    #03120d;
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.6),
    0 0 56px rgba(47, 155, 115, 0.12);
}

.tour-scrim {
  background:
    linear-gradient(90deg, rgba(3, 8, 17, 0.96), rgba(3, 8, 17, 0.58) 48%, rgba(3, 8, 17, 0.18)),
    linear-gradient(180deg, rgba(4, 12, 24, 0.36), rgba(4, 12, 24, 0.92));
}

.tour-close,
.egg-game-close,
.energy-egg-close {
  border-color: rgba(82, 154, 122, 0.24);
  background: rgba(4, 18, 13, 0.8);
  color: var(--ink);
}

.tour-progress {
  background: rgba(82, 154, 122, 0.14);
}

.tour-progress span {
  background: linear-gradient(90deg, var(--teal), var(--olive), var(--coral));
  box-shadow: 0 0 20px rgba(47, 155, 115, 0.3);
}

.tour-copy .eyebrow,
.egg-game-start .eyebrow {
  color: var(--amber);
}

.tour-copy h2,
.tour-empty h2,
.egg-game-start h2,
.energy-egg-copy h2 {
  color: #f5fbff;
  text-shadow:
    0 0 26px rgba(47, 155, 115, 0.24),
    0 0 46px rgba(201, 164, 93, 0.12);
}

.tour-note,
.tour-empty p:last-child,
.egg-game-start p,
.energy-egg-copy p:last-child {
  color: rgba(236, 248, 255, 0.78);
}

.tour-meta span,
.egg-game-start-stats span,
.egg-game-hud div {
  border-color: rgba(82, 154, 122, 0.2);
  background: rgba(6, 24, 18, 0.6);
  color: rgba(236, 248, 255, 0.76);
}

.tour-actions .button-secondary.active {
  border-color: rgba(255, 209, 102, 0.62);
  background: rgba(255, 209, 102, 0.14);
  color: #fff0bd;
}

.tour-message,
.egg-game-status {
  color: var(--amber);
}

.tour-media-frame,
.tour-thumb,
.egg-game-stage,
.energy-egg-stage {
  border-color: rgba(82, 154, 122, 0.18);
  background:
    repeating-linear-gradient(90deg, rgba(82, 154, 122, 0.06) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(122, 165, 106, 0.04) 0 1px, transparent 1px 54px),
    #03110d;
}

.tour-thumb.active,
.tour-thumb:hover,
.tour-thumb:focus-visible {
  border-color: rgba(47, 155, 115, 0.78);
  box-shadow:
    0 0 0 3px rgba(47, 155, 115, 0.14),
    0 0 26px rgba(47, 155, 115, 0.22);
}

.tour-thumb.seen::after {
  background: var(--olive);
  box-shadow: 0 0 0 3px rgba(3, 17, 13, 0.68);
}

.egg-game-start,
.egg-game-play {
  background:
    repeating-linear-gradient(90deg, rgba(82, 154, 122, 0.055) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(122, 165, 106, 0.035) 0 1px, transparent 1px 58px);
}

.egg-game-hud span,
.energy-egg-footer span {
  color: rgba(236, 248, 255, 0.62);
}

.egg-game-hud strong,
.energy-egg-footer strong {
  color: #f5fbff;
}

.egg-fragment {
  border-color: rgba(47, 155, 115, 0.24);
  background:
    linear-gradient(135deg, rgba(47, 155, 115, 0.78), rgba(255, 255, 255, 0.92)),
    #eef8f1;
  color: #02110c;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(47, 155, 115, 0.16);
}

.egg-fragment:nth-child(3n) {
  background:
    linear-gradient(135deg, rgba(122, 165, 106, 0.88), rgba(236, 248, 255, 0.9)),
    #6f8f55;
}

.egg-fragment:nth-child(4n) {
  background:
    linear-gradient(135deg, rgba(201, 164, 93, 0.86), rgba(236, 248, 255, 0.9)),
    #c9a45d;
}

.egg-fragment.bonus {
  border-color: rgba(255, 209, 102, 0.78);
  background:
    linear-gradient(135deg, #caa96a, #fff2bd 58%, #eef8f1),
    #caa96a;
  color: #231900;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.28),
    0 0 0 3px rgba(255, 209, 102, 0.18);
}

.egg-game-paddle {
  border-color: rgba(191, 244, 255, 0.28);
  background:
    linear-gradient(90deg, var(--teal), var(--olive) 55%, var(--coral)),
    #eef8f1;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.34),
    0 0 0 5px rgba(47, 155, 115, 0.08),
    0 0 30px rgba(47, 155, 115, 0.22);
}

.energy-egg-empty {
  color: rgba(47, 155, 115, 0.18);
  text-shadow: 0 0 34px rgba(47, 155, 115, 0.16);
}

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

  .button:hover,
  .icon-button:hover,
  .segment:hover,
  .work-card:hover {
    transform: none;
  }
}

@media (max-width: 860px) {
  .controls .search-box {
    flex: 0 1 auto;
  }
}

/* Motion system */
body.motion-ready::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(47, 155, 115, 0.14), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(201, 164, 93, 0.12), transparent 26%),
    radial-gradient(circle at 50% 90%, rgba(122, 165, 106, 0.08), transparent 30%);
  opacity: 0.72;
  animation: motion-aurora 14s ease-in-out infinite alternate;
}

body.motion-admin::before {
  opacity: 0.34;
  animation-duration: 24s;
}

.app-shell,
.admin-page,
.site-footer {
  position: relative;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-shell,
.admin-page,
.site-footer {
  z-index: 1;
}

.motion-layer,
.motion-pointer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.motion-layer {
  z-index: 0;
  overflow: hidden;
  opacity: 0.82;
}

#galleryPage > .motion-layer-front {
  position: absolute;
  z-index: 1;
}

.motion-layer-admin {
  opacity: 0.38;
}

.motion-layer::before,
.motion-layer::after {
  content: "";
  position: absolute;
  inset: -16%;
  pointer-events: none;
}

.motion-layer::before {
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(47, 155, 115, 0.1) 46%, transparent 52% 100%),
    repeating-linear-gradient(90deg, rgba(47, 155, 115, 0.08) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(122, 165, 106, 0.045) 0 1px, transparent 1px 88px);
  transform: translate3d(-4%, -3%, 0) rotate(0.001deg);
  animation: motion-grid-drift 18s linear infinite;
}

.motion-layer::after {
  background:
    linear-gradient(105deg, transparent 30%, rgba(47, 155, 115, 0.16) 48%, rgba(201, 164, 93, 0.1) 52%, transparent 70%);
  filter: blur(1px);
  transform: translateX(-64%);
  animation: motion-scan 8.5s ease-in-out infinite;
}

.motion-layer-admin::after {
  animation-duration: 15s;
  opacity: 0.42;
}

.motion-particle {
  position: absolute;
  left: var(--motion-x);
  top: var(--motion-y);
  width: var(--motion-size);
  height: var(--motion-size);
  border-radius: 999px;
  background: #f1f7f0;
  box-shadow:
    0 0 12px rgba(47, 155, 115, 0.72),
    0 0 28px rgba(201, 164, 93, 0.28);
  opacity: 0.72;
  transform: translate3d(0, 0, 0);
  animation: motion-particle var(--motion-duration) ease-in-out var(--motion-delay) infinite alternate;
}

.motion-particle:nth-child(3n) {
  background: var(--olive);
  box-shadow:
    0 0 14px rgba(122, 165, 106, 0.62),
    0 0 32px rgba(47, 155, 115, 0.16);
}

.motion-particle:nth-child(4n) {
  background: var(--coral);
  box-shadow:
    0 0 14px rgba(201, 164, 93, 0.62),
    0 0 32px rgba(47, 155, 115, 0.14);
}

.motion-pointer {
  z-index: 2;
  background:
    radial-gradient(circle at var(--motion-pointer-x, 50vw) var(--motion-pointer-y, 50vh), rgba(47, 155, 115, 0.18), transparent 190px),
    radial-gradient(circle at var(--motion-pointer-x, 50vw) var(--motion-pointer-y, 50vh), rgba(201, 164, 93, 0.08), transparent 310px);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.motion-pointer-admin {
  opacity: 0.36;
}

.motion-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(47, 155, 115, 0.12), rgba(201, 164, 93, 0.08), transparent);
}

.motion-scroll-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(var(--motion-scroll-progress, 0));
  transform-origin: left center;
  background:
    linear-gradient(90deg, rgba(47, 155, 115, 0.2), rgba(47, 155, 115, 0.92), rgba(201, 164, 93, 0.8));
  box-shadow:
    0 0 14px rgba(47, 155, 115, 0.42),
    0 0 28px rgba(201, 164, 93, 0.16);
}

.motion-scroll-progress::after {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: calc(var(--motion-scroll-progress-percent, 0%) - 40px);
  width: 80px;
  background: radial-gradient(circle, rgba(201, 164, 93, 0.34), transparent 66%);
  opacity: 0.84;
  transform: translateZ(0);
}

.motion-scroll-progress-admin {
  opacity: 0.68;
}

.motion-positioned {
  position: relative;
}

.motion-spotlight-target {
  isolation: isolate;
}

.motion-spotlight {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(47, 155, 115, 0.22), rgba(47, 155, 115, 0.08) 18%, transparent 46%),
    radial-gradient(circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(201, 164, 93, 0.1), transparent 34%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.motion-spotlight-on > .motion-spotlight {
  opacity: 1;
}

.motion-ready .profile-panel,
.motion-ready .showcase-3d,
.motion-ready .work-card,
.motion-ready .admin-card,
.motion-ready .dashboard-stat,
.motion-ready .dashboard-card,
.motion-ready .detail-panel,
.motion-ready .dialog-frame {
  transform-style: preserve-3d;
}

.motion-ready .motion-reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 26px, 0) scale(0.985);
  transition:
    opacity 620ms ease,
    filter 620ms ease,
    transform 720ms cubic-bezier(0.18, 0.82, 0.24, 1),
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.motion-ready .motion-reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.motion-ready .work-card.motion-reveal:nth-child(2n) {
  transition-delay: 70ms;
}

.motion-ready .work-card.motion-reveal:nth-child(3n) {
  transition-delay: 140ms;
}

.motion-ready .profile-panel,
.motion-ready .showcase-3d,
.motion-ready .admin-card,
.motion-ready .dashboard-card,
.motion-ready .dashboard-stat {
  position: relative;
  overflow: hidden;
}

.motion-ready .profile-panel::before,
.motion-ready .showcase-3d::before,
.motion-ready .admin-card::before,
.motion-ready .dashboard-card::before,
.motion-ready .dashboard-stat::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 28%, rgba(47, 155, 115, 0.16) 43%, rgba(201, 164, 93, 0.12) 51%, transparent 68% 100%);
  opacity: 0;
  transform: translateX(-72%);
  animation: motion-panel-sweep 7.5s ease-in-out infinite;
}

.motion-ready.motion-admin .admin-card::before,
.motion-ready.motion-admin .dashboard-card::before,
.motion-ready.motion-admin .dashboard-stat::before {
  animation-duration: 14s;
  opacity: 0.22;
}

.motion-ready .showcase-3d::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 45%, rgba(47, 155, 115, 0.18), transparent 24%),
    linear-gradient(90deg, transparent, rgba(122, 165, 106, 0.08), transparent);
  opacity: 0.68;
  mix-blend-mode: screen;
  animation: motion-orbit-energy 5.8s ease-in-out infinite alternate;
}

.motion-ready .showcase-orbit::before {
  animation: motion-orbit-pulse 3.8s ease-in-out infinite;
}

.motion-ready .showcase-card.selected {
  animation: motion-selected-pulse 2.6s ease-in-out infinite;
}

.motion-ready .showcase-stage {
  isolation: isolate;
}

.motion-ready .showcase-orbit {
  z-index: 1;
}

.motion-showcase-links {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0.82;
}

.motion-showcase-links line {
  stroke: rgba(47, 155, 115, 0.24);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter:
    drop-shadow(0 0 5px rgba(47, 155, 115, 0.34))
    drop-shadow(0 0 12px rgba(47, 155, 115, 0.12));
  vector-effect: non-scaling-stroke;
  animation: motion-link-draw 920ms ease forwards;
}

.motion-showcase-links line.is-active,
.motion-showcase-links line.is-selected {
  stroke: rgba(201, 164, 93, 0.58);
  stroke-width: 1.35;
  stroke-dasharray: 0.16 0.12;
  stroke-dashoffset: 0;
  filter:
    drop-shadow(0 0 6px rgba(201, 164, 93, 0.42))
    drop-shadow(0 0 16px rgba(47, 155, 115, 0.16));
  animation: motion-link-flow 2.7s linear infinite;
}

.motion-ready .motion-showcase-online .showcase-orbit::before {
  animation:
    motion-orbit-draw 1.2s ease both,
    motion-orbit-pulse 3.8s ease-in-out 1.2s infinite;
}

.motion-ready .motion-showcase-online .showcase-orbit::after {
  animation: motion-orbit-drift 6.8s ease-in-out infinite alternate;
}

.motion-ready .showcase-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 2;
  border: 1px solid rgba(47, 155, 115, 0.28);
  border-radius: calc(var(--radius) - 4px);
  box-shadow:
    inset 0 0 18px rgba(47, 155, 115, 0.08),
    0 0 20px rgba(47, 155, 115, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.86);
  transition:
    opacity 180ms ease,
    transform 220ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.motion-ready .showcase-card:hover::before,
.motion-ready .showcase-card.selected::before {
  opacity: 1;
  transform: scale(1);
}

.motion-ready .showcase-card.selected::before {
  border-color: rgba(201, 164, 93, 0.5);
  box-shadow:
    inset 0 0 24px rgba(201, 164, 93, 0.12),
    0 0 24px rgba(201, 164, 93, 0.16),
    0 0 34px rgba(47, 155, 115, 0.12);
  animation: motion-node-ring 2.4s ease-in-out infinite;
}

.motion-ready .work-card::after,
.motion-ready .showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0 34%, rgba(255, 255, 255, 0.24) 48%, transparent 62% 100%);
  opacity: 0;
  transform: translateX(-82%);
}

.motion-ready .work-card:hover::after,
.motion-ready .showcase-card:hover::after,
.motion-ready .showcase-card.selected::after {
  opacity: 1;
  animation: motion-card-flare 900ms ease forwards;
}

.motion-ready .work-card.motion-tilt {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-7px) scale(1.01);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 0 42px rgba(47, 155, 115, 0.18),
    0 0 30px rgba(201, 164, 93, 0.1);
}

.motion-ready .button,
.motion-ready .icon-button,
.motion-ready .segment,
.motion-ready .collection-tab,
.motion-ready .category-tab {
  position: relative;
  overflow: hidden;
}

.motion-ready .motion-magnetic {
  --magnet-x: 0px;
  --magnet-y: 0px;
  transform: translate3d(var(--magnet-x), var(--magnet-y), 0);
  transition:
    transform 180ms cubic-bezier(0.18, 0.82, 0.24, 1),
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
  will-change: transform;
}

.motion-ready .motion-magnetic:hover,
.motion-ready .motion-magnetic.motion-magnetic-active {
  transform: translate3d(var(--magnet-x), calc(var(--magnet-y) - 1px), 0);
}

.motion-ready .motion-magnetic:disabled {
  transform: none;
}

.motion-ready .button::after,
.motion-ready .icon-button::after,
.motion-ready .segment::after,
.motion-ready .collection-tab::after,
.motion-ready .category-tab::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0 34%, rgba(255, 255, 255, 0.26) 48%, transparent 64% 100%);
  opacity: 0;
  transform: translateX(-92%);
}

.motion-ready .button:hover::after,
.motion-ready .icon-button:hover::after,
.motion-ready .segment:hover::after,
.motion-ready .collection-tab:hover::after,
.motion-ready .category-tab:hover::after {
  opacity: 1;
  animation: motion-control-shine 740ms ease forwards;
}

.motion-ripple-host {
  overflow: hidden;
}

.motion-ripple {
  position: absolute;
  z-index: 5;
  width: var(--ripple-size);
  height: var(--ripple-size);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(238, 248, 241, 0.38) 0 8%, rgba(47, 155, 115, 0.34) 9% 28%, rgba(201, 164, 93, 0.16) 29% 42%, transparent 62%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.12);
  animation: motion-ripple-burst 720ms ease-out forwards;
}

.motion-ready .dialog-close,
.motion-ready .tour-close,
.motion-ready .egg-game-close,
.motion-ready .energy-egg-close {
  position: absolute;
  z-index: 8;
}

.motion-ready dialog[open] .dialog-frame,
.motion-ready dialog[open] .detail-panel,
.motion-ready dialog[open] .tour-content,
.motion-ready dialog[open] .tour-media-frame,
.motion-ready dialog[open] .egg-game-start,
.motion-ready dialog[open] .egg-game-play,
.motion-ready dialog[open] .energy-egg-shell {
  animation: motion-dialog-in 380ms cubic-bezier(0.18, 0.82, 0.24, 1) both;
}

.motion-ready dialog[open] .dialog-frame,
.motion-ready dialog[open] .detail-panel,
.motion-ready dialog[open] .tour-frame,
.motion-ready dialog[open] .egg-game-frame,
.motion-ready dialog[open] .energy-egg-frame {
  isolation: isolate;
}

.motion-ready dialog.motion-unlocking[open] .dialog-frame::before,
.motion-ready dialog.motion-unlocking[open] .detail-panel::before,
.motion-ready dialog.motion-unlocking[open] .tour-frame::before,
.motion-ready dialog.motion-unlocking[open] .egg-game-frame::before,
.motion-ready dialog.motion-unlocking[open] .energy-egg-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 1px solid rgba(47, 155, 115, 0.52);
  border-radius: inherit;
  background:
    repeating-linear-gradient(90deg, rgba(47, 155, 115, 0.09) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(122, 165, 106, 0.055) 0 1px, transparent 1px 42px);
  box-shadow:
    inset 0 0 28px rgba(47, 155, 115, 0.13),
    0 0 34px rgba(47, 155, 115, 0.16);
  opacity: 0;
  pointer-events: none;
  animation: motion-dialog-border-unlock 1.05s ease both;
}

.motion-ready dialog.motion-unlocking[open] .dialog-frame::after,
.motion-ready dialog.motion-unlocking[open] .detail-panel::after,
.motion-ready dialog.motion-unlocking[open] .tour-frame::after,
.motion-ready dialog.motion-unlocking[open] .egg-game-frame::after,
.motion-ready dialog.motion-unlocking[open] .energy-egg-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -34%;
  z-index: 6;
  height: 34%;
  background:
    linear-gradient(180deg, transparent, rgba(47, 155, 115, 0.22) 46%, rgba(238, 248, 241, 0.34) 50%, rgba(201, 164, 93, 0.12) 54%, transparent),
    linear-gradient(90deg, transparent, rgba(47, 155, 115, 0.28), transparent);
  filter: blur(0.4px);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12%);
  animation: motion-dialog-scan-unlock 980ms cubic-bezier(0.18, 0.82, 0.24, 1) both;
}

.motion-ready .toast:not(.hidden) {
  animation: motion-toast-in 280ms ease both;
}

.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}

@keyframes motion-aurora {
  0% {
    opacity: 0.5;
    transform: scale(1) translate3d(0, 0, 0);
  }

  100% {
    opacity: 0.86;
    transform: scale(1.08) translate3d(1.5%, -1%, 0);
  }
}

@keyframes motion-grid-drift {
  0% {
    transform: translate3d(-4%, -3%, 0);
  }

  100% {
    transform: translate3d(4%, 3%, 0);
  }
}

@keyframes motion-scan {
  0%,
  30% {
    opacity: 0;
    transform: translateX(-72%);
  }

  46% {
    opacity: 0.9;
  }

  70%,
  100% {
    opacity: 0;
    transform: translateX(72%);
  }
}

@keyframes motion-particle {
  0% {
    opacity: 0.18;
    transform: translate3d(0, 0, 0) scale(0.7);
  }

  45% {
    opacity: 0.86;
  }

  100% {
    opacity: 0.38;
    transform: translate3d(var(--motion-drift), -120px, 0) scale(1.35);
  }
}

@keyframes motion-panel-sweep {
  0%,
  40% {
    opacity: 0;
    transform: translateX(-72%);
  }

  52% {
    opacity: 0.72;
  }

  72%,
  100% {
    opacity: 0;
    transform: translateX(72%);
  }
}

@keyframes motion-orbit-energy {
  from {
    opacity: 0.38;
    transform: translateX(-2%);
  }

  to {
    opacity: 0.78;
    transform: translateX(2%);
  }
}

@keyframes motion-orbit-pulse {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.28);
  }
}

@keyframes motion-selected-pulse {
  0%,
  100% {
    filter: brightness(1.04) saturate(1.08);
  }

  50% {
    filter: brightness(1.22) saturate(1.22);
  }
}

@keyframes motion-link-draw {
  from {
    opacity: 0;
    stroke-dashoffset: 1;
  }

  to {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes motion-link-flow {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -1;
  }
}

@keyframes motion-orbit-draw {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes motion-orbit-drift {
  from {
    filter: brightness(0.94);
    transform: translate(-50%, -50%) rotate(-8deg) scale(0.99);
  }

  to {
    filter: brightness(1.18);
    transform: translate(-50%, -50%) rotate(-2deg) scale(1.01);
  }
}

@keyframes motion-node-ring {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes motion-card-flare {
  from {
    transform: translateX(-82%);
  }

  to {
    transform: translateX(82%);
  }
}

@keyframes motion-control-shine {
  from {
    transform: translateX(-92%);
  }

  to {
    transform: translateX(92%);
  }
}

@keyframes motion-ripple-burst {
  0% {
    opacity: 0.78;
    transform: scale(0.12);
  }

  72% {
    opacity: 0.32;
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes motion-dialog-in {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(18px) scale(0.97);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes motion-dialog-border-unlock {
  0% {
    opacity: 0;
    clip-path: inset(50% 50% 50% 50%);
  }

  22% {
    opacity: 0.86;
  }

  72% {
    opacity: 0.64;
    clip-path: inset(0 0 0 0);
  }

  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes motion-dialog-scan-unlock {
  0% {
    opacity: 0;
    transform: translateY(-12%);
  }

  16% {
    opacity: 0.9;
  }

  72% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: translateY(390%);
  }
}

@keyframes motion-toast-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .motion-layer {
    opacity: 0.5;
  }

  .motion-layer::after {
    animation-duration: 12s;
  }

  .motion-pointer {
    display: none;
  }

  .motion-ready .work-card.motion-tilt {
    transform: none;
  }

  .motion-scroll-progress {
    height: 2px;
  }

  .motion-spotlight {
    display: none;
  }

  .motion-ready .motion-magnetic,
  .motion-ready .motion-magnetic:hover,
  .motion-ready .motion-magnetic.motion-magnetic-active {
    transform: none;
  }

  .motion-showcase-links {
    opacity: 0.46;
  }

  .motion-showcase-links line {
    stroke-width: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.motion-ready::before,
  body.motion-ready #galleryPage::after,
  .motion-layer,
  .motion-pointer,
  .motion-scroll-progress,
  .motion-spotlight,
  .motion-ripple {
    display: none !important;
  }

  .motion-showcase-links {
    display: none !important;
  }

  .motion-ready .motion-reveal,
  .motion-ready .motion-reveal.is-visible {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }

  .motion-ready .work-card.motion-tilt {
    transform: none !important;
  }

  .motion-ready .motion-magnetic,
  .motion-ready .motion-magnetic:hover,
  .motion-ready .motion-magnetic.motion-magnetic-active {
    transform: none !important;
  }

  body.motion-ready .minimal-hero-kicker,
  body.motion-ready .minimal-hero-name,
  body.motion-ready .minimal-hero-scroll,
  .minimal-hero-scroll::before {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  body.motion-ready .minimal-hero-scroll {
    transform: translateX(-50%) !important;
  }

  .motion-ready .showcase-orbit::before,
  .motion-ready .showcase-orbit::after,
  .motion-ready .showcase-card.selected,
  .motion-ready .showcase-card.selected::before,
  .motion-ready dialog.motion-unlocking[open] .dialog-frame::before,
  .motion-ready dialog.motion-unlocking[open] .dialog-frame::after,
  .motion-ready dialog.motion-unlocking[open] .detail-panel::before,
  .motion-ready dialog.motion-unlocking[open] .detail-panel::after,
  .motion-ready dialog.motion-unlocking[open] .tour-frame::before,
  .motion-ready dialog.motion-unlocking[open] .tour-frame::after,
  .motion-ready dialog.motion-unlocking[open] .egg-game-frame::before,
  .motion-ready dialog.motion-unlocking[open] .egg-game-frame::after,
  .motion-ready dialog.motion-unlocking[open] .energy-egg-frame::before,
  .motion-ready dialog.motion-unlocking[open] .energy-egg-frame::after {
    animation: none !important;
  }
}

/* User themes */
html {
  color-scheme: var(--theme-color-scheme, dark);
}

body {
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb), 0.72), rgba(var(--bg-rgb), 0.98)),
    repeating-linear-gradient(90deg, rgba(var(--teal-rgb), 0.07) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(0deg, rgba(var(--olive-rgb), 0.04) 0 1px, transparent 1px 78px),
    var(--bg);
  color: var(--ink);
}

#galleryPage::before {
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb), 0.72), rgba(var(--bg-rgb), 0.98)),
    repeating-linear-gradient(90deg, rgba(var(--teal-rgb), 0.07) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(0deg, rgba(var(--olive-rgb), 0.04) 0 1px, transparent 1px 78px),
    var(--bg);
  background-attachment: fixed;
}

body.motion-ready::before,
body.motion-ready #galleryPage::after {
  background:
    radial-gradient(circle at 18% 18%, rgba(var(--teal-rgb), 0.14), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(var(--coral-rgb), 0.12), transparent 26%),
    radial-gradient(circle at 50% 90%, rgba(var(--olive-rgb), 0.08), transparent 30%);
}

.topbar {
  border-bottom-color: rgba(var(--teal-rgb), 0.22);
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb), 0.94), rgba(var(--surface-rgb), 0.86)),
    rgba(var(--bg-rgb), 0.88);
  box-shadow:
    0 1px 0 rgba(var(--ink-rgb), 0.05) inset,
    0 18px 60px rgba(0, 0, 0, 0.28),
    0 0 32px rgba(var(--teal-rgb), 0.08);
}

.brand,
.minimal-hero-name,
.profile-copy h2,
.showcase-copy h2,
h1,
h2,
h3,
.dashboard-stat strong,
.profile-stat strong,
.detail-meta-item strong,
.stat strong,
.admin-row strong,
.state-panel strong,
.upload-preview-copy strong {
  color: var(--ink);
}

.brand {
  text-shadow: 0 0 18px rgba(var(--teal-rgb), 0.24);
}

.brand-mark {
  border-color: rgba(var(--ink-rgb), 0.9);
  background:
    linear-gradient(135deg, transparent 42%, var(--coral) 43% 57%, transparent 58%),
    linear-gradient(45deg, var(--teal) 0 47%, var(--olive) 48% 72%, var(--amber) 73% 100%);
  box-shadow:
    0 0 0 1px rgba(var(--teal-rgb), 0.18),
    0 0 22px rgba(var(--teal-rgb), 0.38),
    4px 4px 0 rgba(var(--accent-rgb), 0.34);
}

.session-label,
.site-footer,
.site-footer a,
.field label,
.section-title span,
.dashboard-stat span,
.dashboard-stat p,
.dashboard-item p,
.profile-copy p:last-child,
.profile-stat span,
.showcase-copy p:last-child,
.showcase-focus p,
.work-summary,
.work-meta,
.detail-text p,
.detail-section p,
.comment p,
.state-panel p,
.admin-row p,
.form-message,
.theme-preset small {
  color: var(--muted);
}

.eyebrow,
.tag,
.owner-line,
.theme-status {
  color: var(--olive);
  text-shadow: 0 0 14px rgba(var(--olive-rgb), 0.28);
}

.minimal-hero-kicker {
  color: rgba(var(--muted-rgb), 0.72);
}

.minimal-hero-name {
  text-shadow:
    0 0 18px rgba(var(--teal-rgb), 0.22),
    0 0 54px rgba(var(--teal-rgb), 0.14);
}

.minimal-hero-scroll {
  background: rgba(var(--teal-rgb), 0.22);
}

.minimal-hero-scroll::before {
  background: linear-gradient(180deg, transparent, rgba(var(--ink-rgb), 0.86), rgba(var(--accent-rgb), 0.45), transparent);
}

.admin-card,
.dashboard-card,
.dashboard-stat,
.dialog-frame,
.detail-panel,
.profile-panel,
.showcase-3d,
.showcase-focus,
.toolbar,
.work-card,
.upload-preview,
.empty-state,
.state-panel {
  border-color: var(--line);
  background:
    linear-gradient(145deg, rgba(var(--teal-rgb), 0.1), transparent 42%),
    linear-gradient(315deg, rgba(var(--accent-rgb), 0.08), transparent 46%),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.profile-panel {
  background:
    linear-gradient(135deg, rgba(var(--teal-rgb), 0.16), transparent 38%),
    linear-gradient(315deg, rgba(var(--accent-rgb), 0.12), transparent 44%),
    repeating-linear-gradient(90deg, rgba(var(--teal-rgb), 0.06) 0 1px, transparent 1px 54px),
    rgba(var(--surface-rgb), 0.88);
}

.showcase-3d {
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb), 0.96), rgba(var(--surface-rgb), 0.84) 52%, rgba(var(--accent-rgb), 0.14)),
    repeating-linear-gradient(90deg, rgba(var(--teal-rgb), 0.08) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(var(--olive-rgb), 0.045) 0 1px, transparent 1px 46px);
}

.profile-stat,
.stat,
.detail-meta-item,
.upload-preview-copy,
.comment,
.admin-row,
.dashboard-item,
.theme-color-field,
.theme-preset {
  border-color: rgba(var(--teal-rgb), 0.2);
  background: rgba(var(--surface-rgb), 0.72);
  color: var(--ink);
}

.work-hit-area {
  background: transparent;
  color: var(--ink);
}

.work-kind,
.vote-badge,
.status-badge {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--amber);
}

.collection-tab,
.category-tab,
.segment,
.select-input,
.field input,
.field textarea,
.comment-form textarea,
.search-box input {
  border-color: var(--line);
  background: rgba(var(--surface-rgb), 0.72);
  color: var(--ink);
  box-shadow: 0 0 20px rgba(var(--teal-rgb), 0.05) inset;
}

.field input::placeholder,
.field textarea::placeholder,
.search-box input::placeholder {
  color: rgba(var(--muted-rgb), 0.74);
}

.collection-tab.active,
.category-tab.active,
.segment.active {
  border-color: rgba(var(--teal-rgb), 0.7);
  background: rgba(var(--teal-rgb), 0.16);
  color: var(--ink);
  box-shadow:
    0 0 0 3px rgba(var(--teal-rgb), 0.1),
    0 0 22px rgba(var(--teal-rgb), 0.14);
}

.button-primary {
  border-color: rgba(var(--teal-rgb), 0.42);
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--theme-on-primary);
  box-shadow:
    0 12px 30px rgba(var(--teal-rgb), 0.22),
    0 0 34px rgba(var(--teal-rgb), 0.14);
}

.button-primary:hover {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
}

.button-secondary,
.button-ghost,
.icon-button {
  border-color: var(--line);
  background: rgba(var(--surface-rgb), 0.72);
  color: var(--ink);
}

.button-secondary.active,
.button-secondary:hover,
.button-ghost:hover,
.icon-button:hover,
.theme-preset:hover,
.theme-preset.active {
  border-color: rgba(var(--teal-rgb), 0.64);
  background: rgba(var(--teal-rgb), 0.14);
  color: var(--ink);
  box-shadow: 0 0 24px rgba(var(--teal-rgb), 0.12);
}

.button-danger {
  border-color: rgba(var(--accent-rgb), 0.44);
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--coral);
}

.auth-dialog::backdrop,
.work-detail-dialog::backdrop,
.tour-dialog::backdrop,
.egg-game-dialog::backdrop,
.energy-egg-dialog::backdrop,
.theme-dialog::backdrop {
  background: rgba(var(--bg-rgb), 0.72);
  backdrop-filter: blur(10px);
}

.tour-dialog,
.egg-game-dialog,
.energy-egg-dialog,
.theme-dialog {
  color: var(--ink);
}

.tour-frame,
.egg-game-frame,
.energy-egg-frame {
  border-color: var(--line);
  background:
    linear-gradient(145deg, rgba(var(--teal-rgb), 0.16), transparent 42%),
    linear-gradient(315deg, rgba(var(--accent-rgb), 0.14), transparent 46%),
    var(--surface-strong);
  color: var(--ink);
}

.tour-copy h2,
.tour-empty h2,
.egg-game-start h2,
.energy-egg-copy h2,
.egg-game-hud strong {
  color: var(--ink);
}

.tour-note,
.tour-empty p:last-child,
.egg-game-start p,
.energy-egg-copy p,
.egg-game-hud span {
  color: var(--muted);
}

.tour-copy .eyebrow,
.tour-message,
.egg-game-start .eyebrow,
.egg-game-status {
  color: var(--amber);
}

.tour-actions .button-secondary,
.egg-game-controls .button-secondary,
.egg-game-start-actions .button-secondary,
.egg-game-controls .button-ghost,
.energy-egg-close,
.tour-close,
.egg-game-close {
  border-color: var(--line);
  background: rgba(var(--surface-rgb), 0.78);
  color: var(--ink);
}

.showcase-orbit::before {
  border-color: rgba(var(--teal-rgb), 0.34);
  box-shadow:
    inset 0 0 36px rgba(var(--teal-rgb), 0.16),
    0 0 54px rgba(var(--teal-rgb), 0.2),
    0 0 90px rgba(var(--accent-rgb), 0.08);
}

.showcase-orbit::after {
  border-color: rgba(var(--olive-rgb), 0.32);
}

.showcase-card {
  border-color: rgba(var(--teal-rgb), 0.26);
  background: rgba(var(--bg-rgb), 0.94);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(var(--teal-rgb), 0.1);
}

.showcase-card.selected {
  border-color: rgba(var(--accent-rgb), 0.86);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.42),
    0 0 0 3px rgba(var(--accent-rgb), 0.16),
    0 0 34px rgba(var(--accent-rgb), 0.26);
}

.motion-layer::before {
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(var(--teal-rgb), 0.1) 46%, transparent 52% 100%),
    repeating-linear-gradient(90deg, rgba(var(--teal-rgb), 0.08) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(var(--olive-rgb), 0.045) 0 1px, transparent 1px 88px);
}

.motion-layer::after {
  background:
    linear-gradient(105deg, transparent 30%, rgba(var(--teal-rgb), 0.16) 48%, rgba(var(--accent-rgb), 0.1) 52%, transparent 70%);
}

.motion-pointer {
  background:
    radial-gradient(circle at var(--motion-pointer-x, 50vw) var(--motion-pointer-y, 50vh), rgba(var(--teal-rgb), 0.18), transparent 190px),
    radial-gradient(circle at var(--motion-pointer-x, 50vw) var(--motion-pointer-y, 50vh), rgba(var(--accent-rgb), 0.08), transparent 310px);
}

.motion-scroll-progress {
  background: linear-gradient(90deg, rgba(var(--teal-rgb), 0.12), rgba(var(--accent-rgb), 0.08), transparent);
}

.motion-scroll-progress::before {
  background:
    linear-gradient(90deg, rgba(var(--teal-rgb), 0.2), rgba(var(--teal-rgb), 0.92), rgba(var(--accent-rgb), 0.8));
  box-shadow:
    0 0 14px rgba(var(--teal-rgb), 0.42),
    0 0 28px rgba(var(--accent-rgb), 0.16);
}

.motion-scroll-progress::after {
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.34), transparent 66%);
}

.motion-spotlight {
  background:
    radial-gradient(circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(var(--teal-rgb), 0.22), rgba(var(--teal-rgb), 0.08) 18%, transparent 46%),
    radial-gradient(circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(var(--accent-rgb), 0.1), transparent 34%);
}

.motion-ready .profile-panel::before,
.motion-ready .showcase-3d::before,
.motion-ready .admin-card::before,
.motion-ready .dashboard-card::before,
.motion-ready .dashboard-stat::before {
  background:
    linear-gradient(120deg, transparent 0 28%, rgba(var(--teal-rgb), 0.16) 43%, rgba(var(--accent-rgb), 0.12) 51%, transparent 68% 100%);
}

.motion-ready .showcase-3d::after {
  background:
    radial-gradient(circle at 70% 45%, rgba(var(--teal-rgb), 0.18), transparent 24%),
    linear-gradient(90deg, transparent, rgba(var(--olive-rgb), 0.08), transparent);
}

.motion-showcase-links line {
  stroke: rgba(var(--teal-rgb), 0.24);
  filter:
    drop-shadow(0 0 5px rgba(var(--teal-rgb), 0.34))
    drop-shadow(0 0 12px rgba(var(--teal-rgb), 0.12));
}

.motion-showcase-links line.selected {
  stroke: rgba(var(--accent-rgb), 0.58);
  filter:
    drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.42))
    drop-shadow(0 0 16px rgba(var(--teal-rgb), 0.16));
}

.motion-ready .showcase-card::before {
  border-color: rgba(var(--teal-rgb), 0.28);
  box-shadow:
    inset 0 0 18px rgba(var(--teal-rgb), 0.08),
    0 0 20px rgba(var(--teal-rgb), 0.1);
}

.motion-ready .showcase-card.selected::before {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow:
    inset 0 0 24px rgba(var(--accent-rgb), 0.12),
    0 0 24px rgba(var(--accent-rgb), 0.16),
    0 0 34px rgba(var(--teal-rgb), 0.12);
}

.motion-ripple {
  background:
    radial-gradient(circle, rgba(var(--ink-rgb), 0.38) 0 8%, rgba(var(--teal-rgb), 0.34) 9% 28%, rgba(var(--accent-rgb), 0.16) 29% 42%, transparent 62%);
}

dialog.motion-unlocking[open] .dialog-frame::before,
dialog.motion-unlocking[open] .detail-panel::before,
dialog.motion-unlocking[open] .tour-frame::before,
dialog.motion-unlocking[open] .egg-game-frame::before,
dialog.motion-unlocking[open] .energy-egg-frame::before {
  border-color: rgba(var(--teal-rgb), 0.52);
  background:
    repeating-linear-gradient(90deg, rgba(var(--teal-rgb), 0.09) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(var(--olive-rgb), 0.055) 0 1px, transparent 1px 42px);
  box-shadow:
    inset 0 0 28px rgba(var(--teal-rgb), 0.13),
    0 0 34px rgba(var(--teal-rgb), 0.16);
}

dialog.motion-unlocking[open] .dialog-frame::after,
dialog.motion-unlocking[open] .detail-panel::after,
dialog.motion-unlocking[open] .tour-frame::after,
dialog.motion-unlocking[open] .egg-game-frame::after,
dialog.motion-unlocking[open] .energy-egg-frame::after {
  background:
    linear-gradient(180deg, transparent, rgba(var(--teal-rgb), 0.22) 46%, rgba(var(--ink-rgb), 0.34) 50%, rgba(var(--accent-rgb), 0.12) 54%, transparent),
    linear-gradient(90deg, transparent, rgba(var(--teal-rgb), 0.28), transparent);
}

.theme-dialog {
  width: min(760px, calc(100% - 24px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.theme-frame {
  max-height: min(820px, calc(100vh - 24px));
  overflow: auto;
}

.theme-section {
  display: grid;
  gap: 12px;
}

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

.theme-preset {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

.theme-preset strong,
.theme-color-field span {
  color: var(--ink);
  font-size: 14px;
}

.theme-preset small {
  font-size: 12px;
  font-weight: 800;
}

.theme-preset-swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  width: 100%;
}

.theme-preset-swatches span {
  height: 28px;
  border: 1px solid rgba(var(--ink-rgb), 0.16);
  border-radius: 6px;
}

.theme-scheme-toggle {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
  justify-content: start;
}

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

.theme-color-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.theme-color-field input {
  width: 100%;
  height: 42px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
}

.theme-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.theme-actions .form-message {
  margin: 0;
}

html[data-theme-scheme="light"] .topbar {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 46px rgba(20, 36, 30, 0.12),
    0 0 28px rgba(var(--teal-rgb), 0.08);
}

html[data-theme-scheme="light"] .showcase-card,
html[data-theme-scheme="light"] .work-card,
html[data-theme-scheme="light"] .admin-card,
html[data-theme-scheme="light"] .dashboard-card,
html[data-theme-scheme="light"] .dashboard-stat,
html[data-theme-scheme="light"] .dialog-frame,
html[data-theme-scheme="light"] .detail-panel {
  box-shadow:
    0 18px 48px rgba(20, 36, 30, 0.12),
    0 0 32px rgba(var(--teal-rgb), 0.08);
}

html[data-theme-scheme="light"] .button-secondary,
html[data-theme-scheme="light"] .button-ghost,
html[data-theme-scheme="light"] .icon-button,
html[data-theme-scheme="light"] .collection-tab,
html[data-theme-scheme="light"] .category-tab,
html[data-theme-scheme="light"] .segment,
html[data-theme-scheme="light"] .select-input,
html[data-theme-scheme="light"] .field input,
html[data-theme-scheme="light"] .field textarea,
html[data-theme-scheme="light"] .comment-form textarea,
html[data-theme-scheme="light"] .search-box input {
  background: rgba(var(--surface-strong-rgb), 0.84);
}

html[data-theme-scheme="light"] .work-kind,
html[data-theme-scheme="light"] .vote-badge,
html[data-theme-scheme="light"] .status-badge {
  color: var(--teal-dark);
}

@media (max-width: 760px) {
  .theme-preset-grid,
  .theme-custom-grid {
    grid-template-columns: 1fr;
  }

  .theme-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .theme-trigger {
    flex: 1 1 calc(50% - 6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.motion-ready #galleryPage::after,
  .theme-preset,
  .theme-color-field input {
    transition: none !important;
    animation: none !important;
  }
}

.vip-page-body {
  min-height: 100svh;
}

.vip-page {
  width: min(1440px, calc(100% - 32px));
  min-height: calc(100svh - 92px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 56px) 0 72px;
}

.vip-page-lock {
  display: grid;
  min-height: calc(100svh - 180px);
  place-items: center;
}

.vip-page-lock-card {
  width: min(560px, 100%);
  padding: clamp(28px, 5vw, 46px);
}

.vip-page-shell {
  display: grid;
  gap: clamp(22px, 4vw, 38px);
}

.vip-page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(var(--surface-rgb), 0.82), rgba(var(--surface-strong-rgb), 0.58)),
    radial-gradient(circle at 12% 0%, rgba(var(--teal-rgb), 0.18), transparent 34%);
  box-shadow:
    inset 0 0 0 1px rgba(var(--ink-rgb), 0.04),
    0 22px 60px rgba(var(--shadow-rgb), 0.24),
    0 0 36px rgba(var(--teal-rgb), 0.12);
}

.vip-page-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 6vw, 78px);
  letter-spacing: 0;
  line-height: 0.96;
}

.vip-page-head p:not(.eyebrow) {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 2vw, 17px);
}

.vip-spiral-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
}

.vip-spiral-stage-wrap,
.vip-info-panel,
.vip-page-list-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(var(--surface-rgb), 0.82), rgba(var(--surface-strong-rgb), 0.56)),
    linear-gradient(90deg, rgba(var(--teal-rgb), 0.08), transparent 48%, rgba(var(--accent-rgb), 0.06));
  box-shadow:
    inset 0 0 0 1px rgba(var(--ink-rgb), 0.04),
    0 20px 58px rgba(var(--shadow-rgb), 0.2);
}

.vip-spiral-stage-wrap {
  min-height: min(74svh, 760px);
  overflow: hidden;
}

.vip-spiral-stage {
  position: relative;
  width: 100%;
  min-height: min(74svh, 760px);
  overflow: hidden;
  border-radius: inherit;
  perspective: 1100px;
  perspective-origin: 50% 44%;
  isolation: isolate;
}

.vip-spiral-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(var(--teal-rgb), 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--teal-rgb), 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(var(--teal-rgb), 0.22), transparent 42%);
  background-size: 58px 58px, 58px 58px, 100% 100%;
  opacity: 0.42;
}

.vip-spiral-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: vip-spiral-rise 42s linear infinite;
}

.vip-spiral-track.is-paused,
.vip-spiral-stage:hover .vip-spiral-track,
.vip-spiral-stage:focus-within .vip-spiral-track {
  animation-play-state: paused;
}

.vip-spiral-card {
  position: absolute;
  top: 57%;
  left: 50%;
  width: clamp(132px, 17vw, 236px);
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--teal-rgb), 0.42);
  border-radius: var(--radius);
  background: rgba(var(--surface-strong-rgb), 0.74);
  box-shadow:
    0 22px 42px rgba(var(--shadow-rgb), 0.28),
    0 0 24px rgba(var(--teal-rgb), 0.16);
  cursor: pointer;
  transform:
    translate(-50%, -50%)
    rotateY(var(--turn))
    translateZ(var(--depth))
    translateY(calc(var(--lift) * -1));
  transform-style: preserve-3d;
  transition: border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.vip-spiral-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(var(--ink-rgb), 0.08), transparent 34%, rgba(var(--teal-rgb), 0.2));
  opacity: 0;
  transition: opacity 180ms ease;
}

.vip-spiral-card:hover,
.vip-spiral-card:focus-visible,
.vip-spiral-card.active {
  border-color: rgba(var(--accent-rgb), 0.82);
  box-shadow:
    0 26px 58px rgba(var(--shadow-rgb), 0.34),
    0 0 34px rgba(var(--teal-rgb), 0.28),
    0 0 24px rgba(var(--accent-rgb), 0.18);
  filter: saturate(1.12);
  outline: none;
}

.vip-spiral-card:hover::after,
.vip-spiral-card:focus-visible::after,
.vip-spiral-card.active::after {
  opacity: 1;
}

.vip-spiral-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.vip-spiral-empty {
  display: grid;
  min-height: inherit;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.vip-spiral-empty span {
  width: 86px;
  height: 86px;
  border: 1px solid rgba(var(--teal-rgb), 0.5);
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(var(--teal-rgb), 0.28);
}

.vip-spiral-empty h2,
.vip-hover-info h2 {
  margin: 14px 0 8px;
  color: var(--ink);
}

.vip-spiral-empty p,
.vip-hover-info p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.vip-info-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(16px, 3vw, 22px);
}

.vip-hover-info {
  min-height: 260px;
  padding: 16px;
  border: 1px solid rgba(var(--teal-rgb), 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 10%, rgba(var(--teal-rgb), 0.18), transparent 42%),
    rgba(var(--surface-strong-rgb), 0.58);
  box-shadow: inset 0 0 28px rgba(var(--teal-rgb), 0.08);
}

.vip-hover-info.is-empty {
  display: grid;
  align-content: center;
}

.vip-hover-info img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(var(--shadow-rgb), 0.22);
}

.vip-hover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.vip-edit-notice {
  padding: 10px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(var(--accent-rgb), 0.1);
}

.vip-page-list-section {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 3vw, 22px);
}

.vip-page-list-section .vip-space-list {
  max-height: none;
}

@keyframes vip-spiral-rise {
  0% {
    transform: translate3d(0, 150px, 0) rotateX(-8deg) rotateY(0deg);
  }

  100% {
    transform: translate3d(0, -150px, 0) rotateX(-8deg) rotateY(360deg);
  }
}

@media (max-width: 980px) {
  .vip-spiral-layout {
    grid-template-columns: 1fr;
  }

  .vip-info-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .vip-page-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .vip-page {
    width: min(100% - 20px, 1440px);
    padding-bottom: 40px;
  }

  .vip-page-head h1 {
    font-size: clamp(32px, 15vw, 54px);
  }

  .vip-spiral-stage-wrap,
  .vip-spiral-stage {
    min-height: 560px;
  }

  .vip-spiral-card {
    width: clamp(120px, 40vw, 176px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vip-spiral-stage {
    min-height: auto;
    overflow: visible;
    perspective: none;
  }

  .vip-spiral-track {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    padding: 14px;
    animation: none !important;
    transform: none !important;
  }

  .vip-spiral-card {
    position: static;
    width: 100%;
    transform: none !important;
  }
}

.egg-center-body {
  min-height: 100svh;
}

.egg-center-page {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(22px, 4vw, 48px) 0 72px;
}

.egg-center-hero,
.egg-center-layout,
.egg-center-panel,
.egg-category-card,
.art-egg-stage-card,
.art-egg-side,
.art-egg-section,
.egg-mini-game,
.energy-inline-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 14% 10%, rgba(var(--teal-rgb), 0.16), transparent 32%),
    linear-gradient(145deg, rgba(var(--surface-rgb), 0.86), rgba(var(--surface-strong-rgb), 0.62));
  box-shadow:
    inset 0 0 0 1px rgba(var(--ink-rgb), 0.04),
    0 22px 58px rgba(var(--shadow-rgb), 0.22),
    0 0 38px rgba(var(--teal-rgb), 0.08);
}

.egg-center-hero {
  padding: clamp(20px, 4vw, 34px);
}

.egg-center-hero h1,
.art-egg-head h2,
.egg-category-card h2,
.energy-inline-shell h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

.egg-center-hero h1 {
  font-size: clamp(36px, 7vw, 92px);
  line-height: 0.96;
}

.egg-center-hero p:not(.eyebrow),
.art-egg-head p,
.egg-category-card p,
.energy-inline-shell p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
}

.egg-center-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.24fr) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 20px);
  padding: clamp(12px, 2vw, 18px);
}

.egg-center-tabs {
  display: grid;
  align-content: start;
  gap: 10px;
}

.egg-center-tab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--teal-rgb), 0.22);
  border-radius: var(--radius);
  background: rgba(var(--surface-strong-rgb), 0.42);
  color: var(--muted);
  text-align: left;
}

.egg-center-tab span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(var(--teal-rgb), 0.38);
  border-radius: 50%;
  color: rgba(var(--ink-rgb), 0.72);
  font-size: 12px;
  font-weight: 900;
}

.egg-center-tab strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egg-center-tab.active,
.egg-center-tab:hover,
.egg-center-tab:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.56);
  background:
    linear-gradient(135deg, rgba(var(--teal-rgb), 0.2), rgba(var(--accent-rgb), 0.12));
  color: var(--ink);
  box-shadow: 0 0 22px rgba(var(--teal-rgb), 0.16);
}

.egg-center-panel {
  display: none;
  min-width: 0;
  padding: clamp(14px, 2.2vw, 22px);
}

.egg-center-panel.active {
  display: block;
}

.art-egg-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.art-egg-head h2,
.egg-category-card h2,
.energy-inline-shell h2 {
  font-size: clamp(30px, 5vw, 64px);
  line-height: 0.98;
}

.art-egg-actions,
.egg-inline-actions,
.paint-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.art-egg-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.art-egg-stage-card,
.art-egg-side,
.art-egg-section,
.egg-mini-game,
.energy-inline-shell {
  padding: clamp(14px, 2vw, 18px);
}

.art-egg-stage {
  position: relative;
  min-height: min(72svh, 760px);
  overflow: hidden;
  border: 1px solid rgba(110, 207, 255, 0.24);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(90, 185, 255, 0.08) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(90, 185, 255, 0.06) 0 1px, transparent 1px 72px),
    #02080d;
  isolation: isolate;
}

.art-egg-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(58, 169, 255, 0.18), transparent 34%),
    linear-gradient(120deg, transparent 0 42%, rgba(145, 226, 255, 0.08) 48%, transparent 54% 100%);
  pointer-events: none;
}

.art-egg-video,
.art-egg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.art-egg-video {
  object-fit: cover;
  opacity: 0.78;
  transform: scaleX(-1);
}

.art-egg-canvas {
  z-index: 2;
}

.art-egg-stage-label {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 3;
  color: rgba(180, 236, 255, 0.2);
  font-size: clamp(34px, 7vw, 98px);
  font-weight: 900;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.art-egg-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.art-egg-status-row > div {
  display: grid;
  gap: 4px;
}

.art-egg-status-row span,
.art-egg-opacity span {
  color: rgba(180, 236, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.art-egg-status-row strong {
  color: var(--ink);
  font-size: 15px;
}

.art-egg-side,
.art-egg-section {
  display: grid;
  align-content: start;
  gap: 14px;
}

.art-egg-side {
  max-height: min(84svh, 900px);
  overflow: auto;
}

.artwork-list {
  display: grid;
  gap: 10px;
}

.artwork-option {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(var(--teal-rgb), 0.22);
  border-radius: var(--radius);
  background: rgba(var(--surface-strong-rgb), 0.4);
  color: var(--muted);
  text-align: left;
}

.artwork-option img {
  width: 76px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.artwork-option span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.artwork-option strong,
.artwork-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artwork-option strong {
  color: var(--ink);
  font-size: 14px;
}

.artwork-option small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.artwork-option.active,
.artwork-option:hover,
.artwork-option:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.62);
  box-shadow: 0 0 20px rgba(var(--teal-rgb), 0.14);
}

.paint-canvas {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  border: 1px solid rgba(var(--teal-rgb), 0.28);
  border-radius: var(--radius);
  background: #061820;
  touch-action: none;
}

.compact-field {
  min-width: 120px;
  flex: 1 1 120px;
}

.compact-field input[type="color"] {
  min-height: 42px;
  padding: 3px;
}

.paint-controls .button {
  flex: 1 1 110px;
}

.egg-category-card {
  display: grid;
  justify-items: start;
  gap: 16px;
  min-height: min(64svh, 620px);
  align-content: center;
  padding: clamp(28px, 5vw, 56px);
}

.egg-mini-game {
  display: grid;
  gap: 14px;
}

.mini-game-stage {
  position: relative;
  min-height: min(62svh, 600px);
  overflow: hidden;
  border: 1px solid rgba(var(--teal-rgb), 0.28);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(var(--teal-rgb), 0.08) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(var(--teal-rgb), 0.05) 0 1px, transparent 1px 58px),
    rgba(4, 14, 18, 0.9);
  outline: none;
}

.mini-game-rain {
  position: absolute;
  inset: 0;
}

.mini-game-fragment {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 6px;
  background: rgba(var(--surface-strong-rgb), 0.86);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(var(--teal-rgb), 0.16);
}

.mini-game-paddle {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: min(22%, 170px);
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--teal-rgb), 0.34), rgba(var(--ink-rgb), 0.92), rgba(var(--accent-rgb), 0.34));
  box-shadow: 0 0 24px rgba(var(--teal-rgb), 0.34);
  transform: translateX(-50%);
}

.energy-inline-shell {
  display: grid;
  gap: 18px;
}

.energy-inline-canvas {
  width: 100%;
  min-height: min(62svh, 560px);
  border: 1px solid rgba(var(--teal-rgb), 0.28);
  border-radius: var(--radius);
  background: #030d14;
  touch-action: none;
}

@media (max-width: 980px) {
  .egg-center-layout,
  .art-egg-workspace {
    grid-template-columns: 1fr;
  }

  .egg-center-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .art-egg-head,
  .art-egg-status-row {
    align-items: stretch;
    flex-direction: column;
  }

  .art-egg-side {
    max-height: none;
  }
}

@media (max-width: 620px) {
  .egg-center-page {
    width: min(100% - 20px, 1440px);
  }

  .egg-center-tabs {
    grid-template-columns: 1fr;
  }

  .artwork-option {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .artwork-option img {
    width: 64px;
  }

  .art-egg-stage,
  .mini-game-stage {
    min-height: 520px;
  }
}

.hand-ar-body {
  min-height: 100svh;
}

.hand-ar-page {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(22px, 4vw, 46px) 0 64px;
}

.hand-ar-hero,
.hand-ar-stage-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 14% 10%, rgba(66, 169, 255, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(var(--surface-rgb), 0.86), rgba(var(--surface-strong-rgb), 0.62));
  box-shadow:
    inset 0 0 0 1px rgba(var(--ink-rgb), 0.04),
    0 22px 58px rgba(var(--shadow-rgb), 0.24),
    0 0 38px rgba(66, 169, 255, 0.08);
}

.hand-ar-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(18px, 3vw, 28px);
}

.hand-ar-copy {
  max-width: 760px;
}

.hand-ar-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hand-ar-copy p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
}

.hand-ar-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.hand-ar-style-tabs {
  flex: 1 1 280px;
  min-width: min(100%, 280px);
  border-color: rgba(110, 207, 255, 0.26);
  background: rgba(var(--surface-strong-rgb), 0.5);
  box-shadow: inset 0 0 18px rgba(66, 169, 255, 0.08);
}

.hand-ar-style-tabs .segment {
  color: rgba(190, 236, 255, 0.72);
  white-space: nowrap;
}

.hand-ar-style-tabs .segment.active {
  background:
    linear-gradient(135deg, rgba(92, 214, 255, 0.24), rgba(var(--teal-rgb), 0.3));
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px rgba(210, 248, 255, 0.16),
    0 0 18px rgba(66, 169, 255, 0.16);
}

.hand-ar-stage-card {
  display: grid;
  gap: 16px;
  padding: clamp(14px, 2.2vw, 22px);
}

.hand-ar-stage {
  position: relative;
  min-height: min(72svh, 760px);
  overflow: hidden;
  border: 1px solid rgba(110, 207, 255, 0.24);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(90, 185, 255, 0.08) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(90, 185, 255, 0.06) 0 1px, transparent 1px 72px),
    #02080d;
  isolation: isolate;
}

.hand-ar-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(58, 169, 255, 0.2), transparent 34%),
    linear-gradient(120deg, transparent 0 42%, rgba(145, 226, 255, 0.1) 48%, transparent 54% 100%);
  pointer-events: none;
}

.hand-ar-video,
.hand-ar-canvas,
.hand-ar-stage-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hand-ar-video {
  object-fit: cover;
  opacity: 0.78;
  transform: scaleX(-1);
}

.hand-ar-canvas {
  z-index: 2;
}

.hand-ar-stage-overlay {
  z-index: 3;
  display: grid;
  place-items: end start;
  padding: 18px;
  color: rgba(180, 236, 255, 0.2);
  font-size: clamp(38px, 9vw, 112px);
  font-weight: 900;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.hand-ar-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
  gap: 16px;
  align-items: center;
}

.hand-ar-footer > div {
  display: grid;
  gap: 4px;
}

.hand-ar-footer span {
  color: rgba(180, 236, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hand-ar-footer strong {
  color: var(--ink);
  font-size: 15px;
}

.hand-ar-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .hand-ar-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .hand-ar-controls {
    justify-content: stretch;
  }

  .hand-ar-style-tabs {
    flex-basis: 100%;
    width: 100%;
  }

  .hand-ar-controls .button {
    flex: 1 1 160px;
  }

  .hand-ar-stage {
    min-height: 520px;
  }

  .hand-ar-footer {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hand-ar-stage::before {
    background:
      radial-gradient(circle at 50% 42%, rgba(58, 169, 255, 0.12), transparent 34%);
  }
}
