@font-face {
  font-family: "ZiZhiQuXiMaiTiWeb";
  src: url("./assets/fonts/ZiZhiQuXiMaiTi.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400 900;
}

:root {
  color-scheme: light;
  --paper: #f4f2e9;
  --paper-bright: #fffef8;
  --ice: #d9eef5;
  --ice-deep: #b8ddea;
  --blue: #173be4;
  --blue-deep: #08185f;
  --blue-ink: #10288f;
  --pink: #ff8ac5;
  --lime: #d4ff46;
  --ink: #111116;
  --muted: #595b66;
  --line: rgba(17, 17, 22, 0.26);
  --line-strong: rgba(17, 17, 22, 0.72);
  --silver-1: #f7fafc;
  --silver-2: #aeb7c2;
  --silver-3: #596475;
  --shadow: rgba(8, 24, 95, 0.22);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font-readable-min: 12px;
  --font-decorative-min: 10px;
  --anchor-offset: 90px;
  --display: "Arial Black", Impact, Haettenschweiler, "ZiZhiQuXiMaiTiWeb", "ZiZhiQuXiMaiTi", "SimHei", "STHeiti", sans-serif;
  --body: Tahoma, Arial, "ZiZhiQuXiMaiTiWeb", "ZiZhiQuXiMaiTi", "SimSun", sans-serif;
  --mono: Tahoma, Arial, "ZiZhiQuXiMaiTiWeb", "ZiZhiQuXiMaiTi", "SimSun", sans-serif;
}

[data-theme="night"] {
  color-scheme: dark;
  --paper: #111a33;
  --paper-bright: #17233f;
  --ice: #1d3156;
  --ice-deep: #294671;
  --blue: #6c8dff;
  --blue-deep: #c6d2ff;
  --blue-ink: #9fb4ff;
  --pink: #ff8ac5;
  --lime: #d4ff46;
  --ink: #f6f5ed;
  --muted: #b6bfd1;
  --line: rgba(246, 245, 237, 0.23);
  --line-strong: rgba(246, 245, 237, 0.65);
  --silver-1: #d7deeb;
  --silver-2: #78869f;
  --silver-3: #27344d;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 49.9%, rgba(23, 59, 228, 0.035) 50% 50.1%, transparent 50.2%),
    var(--paper);
  background-size: 160px 100%;
  font-family: var(--body);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  transition: color 0.24s ease, background-color 0.24s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.62;
  background:
    linear-gradient(90deg, rgba(23, 59, 228, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(23, 59, 228, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

::selection {
  color: #111116;
  background: var(--pink);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  color: var(--paper-bright);
  background: var(--blue);
  box-shadow: 4px 4px 0 var(--pink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  transform: translateY(calc(-100% - 18px));
  transition: transform 0.18s var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

#main-content:focus {
  outline: none;
}

:where(a, button, input, select, textarea, [role="button"]):focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.layered-title,
.look-card-meta h3,
.modal-info h2,
.empty-window h3 {
  text-wrap: balance;
}

.hero-subtitle,
.section-intro,
.upload-heading > p,
.favorites-copy > p,
.empty-window p {
  text-wrap: pretty;
}

.paper-noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
}

[data-theme="night"] .paper-noise {
  opacity: 0.055;
  mix-blend-mode: screen;
}

.section-wrap {
  width: min(1320px, calc(100% - 8vw));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(270px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 0 4vw;
  border-top: 5px solid var(--blue);
  border-bottom: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--paper) 91%, transparent);
  backdrop-filter: blur(13px);
}

.header-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px clamp(16px, 1.6vw, 28px);
  min-width: 0;
  padding-block: 8px;
}

.brand-lockup {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  width: max-content;
}

.header-owner-watermark {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  color: var(--blue);
  font-family: "ZiZhiQuXiMaiTiWeb", "ZiZhiQuXiMaiTi", var(--display);
  font-size: clamp(16px, 1.15vw, 21px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  paint-order: stroke fill;
  white-space: nowrap;
  text-shadow: 2px 2px 0 var(--pink), 4px 4px 0 color-mix(in srgb, var(--ink) 24%, transparent);
  transform: rotate(-2deg);
  -webkit-text-stroke: 0.035em var(--paper-bright);
}

.brand-sigil {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--paper-bright);
  border: 2px solid var(--ink);
  background: var(--blue);
  box-shadow: 3px 3px 0 var(--pink);
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  transform: rotate(-3deg);
}

.brand-mark {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-mark-shell {
  fill: var(--paper-bright);
  stroke: var(--ink);
  stroke-width: 1.4;
}

.brand-mark-door {
  stroke: var(--ink);
  stroke-width: 1.1;
}

.brand-mark-door-left {
  fill: var(--blue);
}

.brand-mark-door-right {
  fill: var(--pink);
}

.brand-mark-rail {
  fill: none;
  stroke: var(--paper-bright);
  stroke-linecap: square;
  stroke-width: 1.2;
}

.brand-mark-heart {
  fill: var(--lime);
  stroke: var(--ink);
  stroke-width: 0.9;
}

.brand-mark-shine {
  fill: var(--pink);
  stroke: var(--ink);
  stroke-width: 0.7;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 2px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.main-nav {
  display: flex;
  min-width: 0;
  align-items: stretch;
  align-self: stretch;
  border-inline: 1px solid var(--line);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 clamp(18px, 2.3vw, 38px);
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:last-child {
  border-right: 0;
}

.nav-link span {
  color: var(--blue);
  font-size: 9px;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 9px;
  left: 12px;
  height: 4px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link.active {
  color: var(--paper-bright);
  background: var(--blue);
}

.nav-link.active span {
  color: var(--lime);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.theme-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  transition: transform 0.16s var(--ease-out), color 0.16s ease, background-color 0.16s ease;
}

.theme-icon {
  color: var(--pink);
  font-size: 15px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(560px, 1.14fr);
  gap: clamp(50px, 6vw, 100px);
  align-items: center;
  min-height: min(790px, calc(100dvh - 72px));
  padding-block: 62px 72px;
}

.hero::before {
  content: "WEB / 2000";
  position: absolute;
  right: calc(100% + 17px);
  bottom: 83px;
  width: max-content;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  transform: rotate(-90deg);
  transform-origin: right bottom;
}

.hero-copy {
  position: relative;
  z-index: 4;
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 23px;
  padding-block: 7px;
  border-block: 1px solid var(--line-strong);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
}

h1 {
  margin-bottom: 25px;
  font-size: clamp(68px, 6.3vw, 104px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.035em;
}

.layered-title {
  --title-front: var(--blue);
  --title-back-fill: var(--ink);
  --title-back-stroke: var(--ink);
  --title-front-shadow: var(--pink);
  --title-mask: var(--paper);
  --title-mask-size: 0.11em;
  position: relative;
  isolation: isolate;
}

.layered-title .title-line {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.layered-title .title-line-front {
  z-index: 2;
  color: var(--title-front);
  -webkit-text-stroke: var(--title-mask-size) var(--title-mask);
  paint-order: stroke fill;
  filter: drop-shadow(0.055em 0.055em 0 var(--title-front-shadow));
}

.layered-title .title-line-back {
  z-index: 1;
  color: var(--title-back-fill);
  -webkit-text-stroke: 2px var(--title-back-stroke);
  transform: rotate(0.7deg);
  transform-origin: left center;
}

.layered-title .title-line + .title-line {
  margin-top: -0.1em;
  margin-left: 0.27em;
}

.hero-subtitle {
  max-width: 410px;
  margin-bottom: 33px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 11px 20px;
  border: 2px solid var(--ink);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: transform 0.16s var(--ease-out), box-shadow 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.button:active {
  transform: scale(0.97);
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none !important;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 5px 5px 0 var(--ink);
}

.button-ghost {
  background: color-mix(in srgb, var(--paper-bright) 80%, transparent);
  box-shadow: 4px 4px 0 var(--ice-deep);
}

.button-secondary {
  color: #fff;
  border-color: var(--blue-deep);
  background: var(--blue);
  box-shadow: 5px 5px 0 var(--pink);
}

.button-outline {
  min-height: 42px;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: var(--paper-bright);
  box-shadow: 4px 4px 0 var(--ice-deep);
}

.button-save {
  color: var(--blue-deep);
  border-color: var(--paper-bright);
  background: var(--lime);
  box-shadow: 5px 5px 0 var(--pink);
}

.hero-index {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-top: 62px;
  font-family: var(--display);
  line-height: 0.75;
}

.hero-index span {
  color: var(--blue);
  font-size: 22px;
  writing-mode: vertical-rl;
}

.hero-index b {
  color: color-mix(in srgb, var(--ink) 14%, transparent);
  font-size: clamp(56px, 6vw, 92px);
  letter-spacing: -0.05em;
}

.hero-index i {
  margin-left: 7px;
  color: var(--pink);
  font-family: var(--body);
  font-size: 39px;
  font-style: normal;
}

.hero-art {
  position: relative;
  z-index: 2;
  min-height: 625px;
  perspective: 1000px;
}

.art-poster {
  position: absolute;
  inset: 14px 20px 18px 44px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background:
    radial-gradient(circle at 73% 22%, rgba(255, 255, 255, 0.95) 0 2%, transparent 2.4%),
    radial-gradient(circle at 30% 82%, rgba(255, 138, 197, 0.42), transparent 25%),
    linear-gradient(135deg, #effbff 0 35%, #8ed6f2 66%, #d3f4ff 100%);
  box-shadow: 19px 19px 0 var(--blue), 32px 31px 0 rgba(255, 138, 197, 0.7);
  transform: rotate(1.2deg) translate3d(0, 0, 0);
  transition: transform 0.28s var(--ease-out);
}

.art-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.57;
  background-image:
    radial-gradient(circle, rgba(8, 24, 95, 0.55) 0 1px, transparent 1.2px),
    linear-gradient(120deg, transparent 0 54%, rgba(255, 255, 255, 0.5) 54% 55%, transparent 55%);
  background-size: 8px 8px, 100% 100%;
  mix-blend-mode: multiply;
}

.art-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0.23;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px 4px);
  animation: scanDrift 7s linear infinite;
}

.poster-topline {
  position: absolute;
  inset: 0 0 auto;
  z-index: 9;
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(8, 24, 95, 0.66);
  background: rgba(247, 250, 252, 0.8);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.poster-grid {
  position: absolute;
  inset: 12% 6% 7% 8%;
  border: 1px solid rgba(8, 24, 95, 0.25);
  background:
    linear-gradient(90deg, rgba(8, 24, 95, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(8, 24, 95, 0.18) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: skewY(-6deg);
}

.chrome-orbit {
  position: absolute;
  top: 29%;
  left: 9%;
  z-index: 3;
  width: 64%;
  height: 25%;
  border-radius: 50%;
  background: conic-gradient(from 220deg, #202a3a, #fff 13%, #69798f 22%, #dce7f0 35%, #304056 47%, #fff 58%, #69768b 71%, #e8f6ff 84%, #1f2b3d);
  box-shadow: 0 20px 35px rgba(8, 24, 95, 0.33), inset 0 0 15px #fff;
  transform: rotate(-22deg) translate3d(0, 0, 0);
  filter: contrast(1.2) saturate(0.84);
  animation: chromeFloat 6s var(--ease-in-out) infinite;
}

.chrome-orbit::after {
  content: "";
  position: absolute;
  inset: 22% 10%;
  border-radius: 50%;
  background: linear-gradient(140deg, #82cfe9, #eefcff 48%, #71bcd7);
  box-shadow: inset 7px 7px 17px rgba(8, 24, 95, 0.42), inset -7px -7px 15px rgba(255, 255, 255, 0.92);
}

.chrome-orbit span {
  position: absolute;
  top: 2px;
  right: 20%;
  z-index: 2;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px 7px #fff;
}

.scan-frame {
  position: absolute;
  top: 16%;
  right: 7%;
  z-index: 5;
  width: 53%;
  height: 61%;
  border: 2px solid #0c0f19;
  background: #f3f3ed;
  box-shadow: 12px 13px 0 rgba(23, 59, 228, 0.85);
  transform: rotate(2.5deg) translate3d(0, 0, 0);
  transition: transform 0.28s var(--ease-out);
}

.scan-frame-bar,
.dialog-title,
.empty-window-bar,
.workspace-bar,
.favorites-stage-bar,
.modal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 5px 8px;
  color: #fff;
  background: linear-gradient(90deg, #08185f, #1747e8);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
}

.scan-frame-field {
  position: absolute;
  inset: 28px 0 0;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.9), transparent 11%),
    linear-gradient(155deg, #0e1a5e 0, #286cd3 33%, #c0eaf2 34% 57%, #1a31a5 58% 100%);
}

.scan-frame-field::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.55;
  background:
    radial-gradient(circle, #fff 0 1px, transparent 1.4px),
    repeating-linear-gradient(90deg, transparent 0 25px, rgba(255, 255, 255, 0.12) 25px 26px);
  background-size: 11px 11px, 100% 100%;
  mix-blend-mode: overlay;
}

.scan-frame-field::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  opacity: 0.35;
}

.hero-look-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.9) contrast(1.08) brightness(0.92);
}

.scan-frame-field.has-look::before {
  opacity: 0.3;
}

.hero-look-loaded {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 9px;
  align-items: end;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: #fff;
  background: rgba(8, 24, 95, 0.8);
  box-shadow: 4px 4px 0 rgba(255, 138, 197, 0.78);
  backdrop-filter: blur(5px);
}

.hero-look-loaded small,
.hero-look-loaded span {
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-look-loaded small {
  grid-column: 1 / -1;
  color: var(--lime);
}

.hero-look-loaded strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(15px, 1.55vw, 22px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-look-loaded span {
  max-width: 112px;
  overflow: hidden;
  color: #d9eef5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.no-look {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: 84%;
  color: #fff;
  text-align: center;
  transform: translate(-50%, -50%);
}

.no-look small,
.no-look span {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.no-look strong {
  display: block;
  margin-block: 10px;
  font-family: var(--display);
  font-size: clamp(31px, 3vw, 50px);
  line-height: 0.8;
  letter-spacing: -0.03em;
  text-shadow: 4px 4px 0 #08185f;
}

.scan-cross {
  position: absolute;
  z-index: 3;
  width: 24px;
  height: 24px;
}

.scan-cross::before,
.scan-cross::after {
  content: "";
  position: absolute;
  background: #fff;
}

.scan-cross::before {
  top: 11px;
  left: 0;
  width: 24px;
  height: 1px;
}

.scan-cross::after {
  top: 0;
  left: 11px;
  width: 1px;
  height: 24px;
}

.cross-one {
  top: 12%;
  left: 10%;
}

.cross-two {
  right: 11%;
  bottom: 12%;
}

.poster-word {
  position: absolute;
  bottom: 3%;
  left: -1%;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--display);
  font-size: clamp(65px, 7vw, 110px);
  line-height: 0.75;
  letter-spacing: -0.04em;
  mix-blend-mode: overlay;
  transform: rotate(-4deg);
}

.poster-star {
  position: absolute;
  z-index: 8;
  color: var(--blue);
  font-size: 56px;
  line-height: 1;
  -webkit-text-stroke: 1px #fff;
  filter: drop-shadow(4px 5px 0 var(--pink));
}

.star-one {
  top: 12%;
  left: 10%;
  animation: starPulse 3.4s var(--ease-in-out) infinite;
}

.star-two {
  right: 5%;
  bottom: 5%;
  font-size: 35px;
  animation: starPulse 3.4s 1.1s var(--ease-in-out) infinite;
}

.system-dialog {
  position: absolute;
  right: -8px;
  bottom: 38px;
  z-index: 12;
  width: min(270px, 45%);
  border: 2px solid #071140;
  background: #ecece6;
  box-shadow: 9px 10px 0 rgba(8, 24, 95, 0.33);
  color: #111116;
  transform: translate3d(0, 0, 0);
  transition: transform 0.28s var(--ease-out);
}

.dialog-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 15px 10px;
}

.dialog-heart {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  color: #fff;
  background: var(--blue);
  font-size: 17px;
  clip-path: polygon(50% 91%, 8% 51%, 8% 28%, 22% 14%, 39% 14%, 50% 25%, 61% 14%, 78% 14%, 92% 28%, 92% 51%);
}

.dialog-body strong {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
}

.dialog-body p {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 9px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 0 12px 11px;
}

.dialog-actions span {
  padding: 4px 12px;
  border: 1px solid #111;
  background: #f8f8f2;
  font-family: var(--mono);
  font-size: 8px;
  box-shadow: inset -2px -2px 0 #aaa, inset 2px 2px 0 #fff;
}

.file-sticker {
  position: absolute;
  top: 4px;
  right: 1%;
  z-index: 13;
  display: grid;
  align-content: center;
  width: 108px;
  height: 132px;
  padding: 13px;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: 7px 8px 0 var(--pink);
  font-family: var(--mono);
  transform: rotate(6deg) translate3d(0, 0, 0);
  transition: transform 0.28s var(--ease-out);
}

.file-sticker::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 25%;
  width: 55%;
  height: 21px;
  background: rgba(212, 255, 70, 0.77);
  transform: rotate(-4deg);
}

.file-sticker span {
  width: max-content;
  padding: 3px 5px;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
}

.file-sticker b {
  margin-block: 9px;
  color: var(--blue);
  font-size: 20px;
  line-height: 0.9;
}

.chrome-heart {
  position: absolute;
  top: 15%;
  left: 0;
  z-index: 14;
  color: transparent;
  font-family: Arial, sans-serif;
  font-size: 90px;
  line-height: 1;
  -webkit-text-stroke: 10px transparent;
  background: linear-gradient(135deg, #34445b, #fff 27%, #59697c 50%, #fff 71%, #1e2938);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(4px 7px 4px rgba(8, 24, 95, 0.4));
  transform: rotate(-13deg) translate3d(0, 0, 0);
  transition: transform 0.28s var(--ease-out);
}

.pixel-pointer {
  position: absolute;
  top: 55%;
  left: 4%;
  z-index: 14;
  color: #fff;
  font-family: var(--mono);
  font-size: 57px;
  line-height: 1;
  -webkit-text-stroke: 2px #111;
  filter: drop-shadow(5px 5px 0 var(--pink));
  transform: translate3d(0, 0, 0);
  transition: transform 0.28s var(--ease-out);
}

.registration-mark {
  position: absolute;
  right: 8px;
  bottom: 5px;
  z-index: 13;
  display: grid;
  grid-template-columns: repeat(2, 8px);
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
}

.registration-mark span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.registration-mark span:nth-child(1) { background: #00a9e8; }
.registration-mark span:nth-child(2) { background: #ef3165; }
.registration-mark span:nth-child(3) { background: #ffe000; }
.registration-mark span:nth-child(4) { background: #111; }

.signal-strip {
  overflow: hidden;
  width: 100%;
  border-block: 2px solid var(--ink);
  background: var(--blue);
  color: #fff;
  transform: rotate(-1deg) scale(1.02);
}

.signal-track {
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 46px;
  will-change: transform;
}

.signal-track.is-ready {
  animation: tickerMove var(--ticker-duration, 24s) linear infinite;
}

.signal-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
}

.signal-group span,
.signal-group b,
.signal-group i {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding-inline: 27px;
  border-right: 1px solid rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.signal-group b {
  color: var(--lime);
  font-size: 20px;
}

.signal-group i {
  color: var(--ink);
  background: var(--pink);
  font-weight: 900;
}

.scene-section {
  position: relative;
  scroll-margin-top: var(--anchor-offset);
}

.decor-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.decor-slot {
  --decor-opacity: 0.68;
  --decor-rotate: 0deg;
  --float-x: 0px;
  --float-y: -6px;
  --float-rotate: 1.5deg;
  --float-duration: 8s;
  --float-delay: 0s;
  --enter-delay: 0ms;
  position: absolute;
  display: block;
  width: 80px;
  opacity: var(--decor-opacity);
  transform: translate3d(0, 0, 0) rotate(var(--decor-rotate));
  transform-origin: center;
  transition: opacity 0.48s ease var(--enter-delay), transform 0.58s var(--ease-out) var(--enter-delay);
}

.decor-sticker {
  width: 100%;
  height: auto;
  filter: drop-shadow(5px 7px 0 rgba(23, 59, 228, 0.12));
  user-select: none;
  animation: decorFloat var(--float-duration) var(--ease-in-out) var(--float-delay) infinite;
}

.decor-pixel .decor-sticker {
  image-rendering: pixelated;
}

.decor-framed {
  padding: 9px 9px 21px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--paper-bright) 90%, transparent);
  box-shadow: 6px 7px 0 color-mix(in srgb, var(--pink) 58%, transparent);
}

.decor-framed::after {
  content: attr(data-caption);
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 7px;
  overflow: hidden;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.motion-ready .decor-field:not(.is-in-view) .decor-slot {
  opacity: 0;
  transform: translate3d(0, 14px, 0) rotate(var(--decor-rotate)) scale(0.98);
}

.text-relic {
  --relic-rotate: 0deg;
  position: absolute;
  display: block;
  width: max-content;
  max-width: min(280px, 42vw);
  color: var(--blue);
  font-family: "ZiZhiQuXiMaiTiWeb", "ZiZhiQuXiMaiTi", var(--body);
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.08em;
  opacity: 0.76;
  transform: translate3d(0, 0, 0) rotate(var(--relic-rotate));
  transform-origin: center;
  transition: opacity 0.5s ease, transform 0.62s var(--ease-out);
}

.text-relic small {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.motion-ready .decor-field:not(.is-in-view) .text-relic {
  opacity: 0;
  transform: translate3d(0, 12px, 0) rotate(var(--relic-rotate));
}

.relic-hero-signature {
  --relic-rotate: -6deg;
  top: 18%;
  left: 43%;
  padding: 6px 9px 7px;
  border-bottom: 2px solid var(--pink);
  color: var(--ink);
  background: color-mix(in srgb, var(--paper-bright) 74%, transparent);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--blue) 22%, transparent);
  text-shadow: 1px 1px 0 var(--paper-bright);
}

.relic-gallery-note {
  --relic-rotate: 5deg;
  right: 2%;
  bottom: 10%;
  padding: 9px 12px;
  border: 1px dashed var(--blue);
  color: var(--blue);
  background: color-mix(in srgb, var(--paper-bright) 86%, transparent);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--pink) 54%, transparent);
  text-align: center;
}

.relic-upload-scan {
  --relic-rotate: -3deg;
  bottom: 9%;
  left: 7%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(8, 24, 95, 0.62);
  box-shadow: 5px 5px 0 rgba(255, 138, 197, 0.7);
  font-family: var(--mono);
  font-size: 10px;
}

.relic-upload-scan b {
  color: var(--lime);
  animation: relicSignal 1.25s steps(2, end) infinite;
}

.relic-favorites-quote {
  --relic-rotate: -4deg;
  right: 3%;
  bottom: 11%;
  padding: 3px 5px;
  color: var(--blue);
  border-bottom: 2px solid var(--ink);
  font-size: clamp(13px, 1.25vw, 19px);
  text-shadow: 3px 3px 0 var(--pink);
}

.hero .decor-field {
  inset: 0 -5vw;
}

.decor-hero-heart {
  --decor-opacity: 0.76;
  --decor-rotate: -8deg;
  --float-y: -5px;
  --float-duration: 7.4s;
  top: 17%;
  left: -1.5%;
  width: 54px;
}

.decor-hero-bow {
  --decor-opacity: 0.74;
  --decor-rotate: 4deg;
  --float-x: 3px;
  --float-y: -7px;
  --float-duration: 9.6s;
  --float-delay: -2.4s;
  --enter-delay: 90ms;
  top: 7%;
  right: 29%;
  width: 92px;
}

.decor-hero-sparkles {
  --decor-opacity: 0.58;
  --decor-rotate: 9deg;
  --float-y: -8px;
  --float-rotate: -1.8deg;
  --float-duration: 8.8s;
  --float-delay: -4s;
  --enter-delay: 170ms;
  bottom: 8%;
  left: 45%;
  width: 78px;
}

.gallery-section > .section-number,
.gallery-section > .section-heading,
.gallery-section > .gallery-toolbar,
.gallery-section > .gallery-grid,
.gallery-section > .empty-state,
.favorites-section > .favorites-copy,
.favorites-section > .favorites-stage {
  position: relative;
  z-index: 1;
}

.gallery-section .decor-field,
.favorites-section .decor-field {
  inset: 0 -5vw;
}

.decor-gallery-butterflies {
  --decor-opacity: 0.6;
  --decor-rotate: 5deg;
  --float-x: -4px;
  --float-y: -8px;
  --float-duration: 10.2s;
  top: 8%;
  right: 0;
  width: 104px;
}

.decor-gallery-wifi {
  --decor-opacity: 0.54;
  --decor-rotate: -7deg;
  --float-y: -6px;
  --float-duration: 7.8s;
  --float-delay: -2.8s;
  --enter-delay: 90ms;
  top: 47%;
  left: -2.5%;
  width: 74px;
}

.decor-gallery-stars {
  --decor-opacity: 0.5;
  --decor-rotate: 8deg;
  --float-x: 3px;
  --float-y: -5px;
  --float-rotate: -1.4deg;
  --float-duration: 9.2s;
  --float-delay: -5.2s;
  --enter-delay: 170ms;
  right: 16%;
  bottom: 6%;
  width: 80px;
}

.upload-section::before,
.upload-section::after {
  z-index: 0;
}

.upload-section .decor-field {
  z-index: 1;
  overflow: hidden;
}

.upload-inner {
  z-index: 2;
}

.decor-field-upload .decor-framed {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 254, 248, 0.94);
  box-shadow: 6px 7px 0 rgba(255, 138, 197, 0.72);
}

.decor-upload-wing-left,
.decor-upload-wing-right {
  --decor-opacity: 0.52;
  --float-y: -8px;
  --float-duration: 8.6s;
  top: 7%;
  width: 116px;
}

.decor-upload-wing-left {
  --decor-rotate: -13deg;
  --float-rotate: 2deg;
  left: 2.5%;
}

.decor-upload-wing-right {
  --decor-rotate: 13deg;
  --float-rotate: -2deg;
  --float-delay: -4.3s;
  --enter-delay: 80ms;
  right: 2.5%;
}

.decor-upload-cat {
  --decor-opacity: 0.72;
  --decor-rotate: -4deg;
  --float-x: 4px;
  --float-y: -7px;
  --float-duration: 10.6s;
  --float-delay: -2.1s;
  --enter-delay: 170ms;
  right: 4.5%;
  bottom: 7%;
  width: 126px;
}

.decor-favorites-hearts {
  --decor-opacity: 0.58;
  --decor-rotate: -8deg;
  --float-y: -7px;
  --float-duration: 8.2s;
  top: 9%;
  right: 4%;
  width: 92px;
}

.decor-favorites-pixels {
  --decor-opacity: 0.62;
  --decor-rotate: 5deg;
  --float-x: -4px;
  --float-y: -6px;
  --float-duration: 9.7s;
  --float-delay: -3.6s;
  --enter-delay: 80ms;
  bottom: 8%;
  left: 41%;
  width: 106px;
}

.decor-favorites-mail {
  --decor-opacity: 0.72;
  --decor-rotate: 6deg;
  --float-x: 4px;
  --float-y: -8px;
  --float-rotate: -1.8deg;
  --float-duration: 10.8s;
  --float-delay: -6s;
  --enter-delay: 160ms;
  bottom: 7%;
  left: -1%;
  width: 124px;
}

.gallery-section {
  min-height: 820px;
  padding-block: 156px 170px;
}

.section-number {
  display: inline-flex;
  align-items: flex-end;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--blue);
  font-family: var(--mono);
}

.section-number span {
  font-family: var(--display);
  font-size: 52px;
  line-height: 0.72;
  letter-spacing: -0.04em;
}

.section-number small {
  padding-bottom: 2px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(500px, 1fr) minmax(240px, 0.42fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: end;
  margin-bottom: 58px;
  padding-bottom: 35px;
  border-bottom: 1px solid var(--line-strong);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(67px, 7.4vw, 112px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.035em;
}

.section-intro {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.gallery-toolbar {
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr) minmax(220px, 0.48fr) auto;
  align-items: stretch;
  margin-bottom: 42px;
  border: 1px solid var(--line-strong);
  background: var(--paper-bright);
  box-shadow: 7px 7px 0 var(--ice-deep);
}

.toolbar-label {
  display: grid;
  place-items: center;
  padding: 0 13px;
  color: #fff;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  writing-mode: vertical-rl;
}

.filter-tabs {
  display: flex;
  align-items: stretch;
  min-width: 0;
  overflow-x: auto;
}

.filter-tab,
.favorite-filter {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 9px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.filter-tab.active {
  color: #fff;
  background: var(--blue);
}

.search-box {
  display: flex;
  align-items: center;
  min-width: 0;
  border-left: 1px solid var(--line);
}

.search-symbol {
  padding-left: 14px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 23px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 10px 13px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
}

.search-box:focus-within {
  outline: 2px solid var(--pink);
  outline-offset: -2px;
}

.favorite-filter {
  border-right: 0;
  border-left: 1px solid var(--line);
}

.favorite-filter span {
  color: var(--pink);
  font-size: 18px;
  vertical-align: -1px;
}

.favorite-filter[aria-pressed="true"] {
  color: #fff;
  background: var(--ink);
}

.tag-filter-bar {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  border-top: 1px solid var(--line);
}

.tag-filter-label {
  display: grid;
  place-items: center;
  min-width: 64px;
  padding: 0 13px;
  border-right: 1px solid var(--line);
  color: var(--pink);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.tag-filter-options {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}

.tag-filter-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.tag-filter-button::before {
  content: '#';
  margin-right: 4px;
  color: var(--pink);
}

.tag-filter-button.active {
  color: #fff;
  background: var(--blue);
}

.tag-filter-button.active::before {
  color: var(--lime);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
  align-items: start;
  scroll-margin-top: calc(var(--anchor-offset) + 2px);
}

.look-card {
  --r: 0deg;
  --y: 0px;
  --look-meta-height: 104px;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: 8px 8px 0 var(--ice-deep);
  transform: translateY(var(--y)) rotate(var(--r));
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s ease;
  cursor: pointer;
}

.look-card:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

.look-image-wrap {
  position: absolute;
  inset: 0 0 var(--look-meta-height);
  overflow: hidden;
  background: var(--ice);
}

.look-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 4px);
  transition: opacity 0.18s ease;
}

.look-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06);
  transition: transform 0.24s var(--ease-out), filter 0.18s ease;
}

.look-image-count {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 7px;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--blue);
  box-shadow: 3px 3px 0 var(--pink);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.look-card-meta {
  position: absolute;
  inset: auto 0 0;
  height: var(--look-meta-height);
  padding: 13px 14px 12px;
  border-top: 1px solid var(--ink);
  background:
    radial-gradient(circle, rgba(23, 59, 228, 0.18) 0 1px, transparent 1.2px),
    var(--paper-bright);
  background-size: 8px 8px;
}

.look-card-meta small {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.look-card-meta h3 {
  margin: 5px 0 3px;
  padding-bottom: 0.08em;
  overflow: hidden;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.look-card-meta p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-mark {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--blue);
  background: var(--paper-bright);
  box-shadow: 4px 4px 0 var(--pink);
  font-size: 21px;
  transition: transform 0.16s var(--ease-out), color 0.16s ease, background-color 0.16s ease;
}

.favorite-mark.is-favorite {
  color: var(--lime);
  background: var(--blue);
  transform: rotate(7deg) scale(1.06);
}

.look-card.is-new {
  animation: newCard 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: min(520px, 100%);
  margin: 42px auto 0;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: 7px 7px 0 var(--pink);
}

.gallery-pagination[hidden] {
  display: none;
}

.gallery-page-button {
  min-height: 48px;
  padding: 9px 18px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s var(--ease-out);
}

.gallery-page-button:first-child {
  border-right: 1px solid var(--ink);
  text-align: left;
}

.gallery-page-button:last-child {
  border-left: 1px solid var(--ink);
  text-align: right;
}

.gallery-page-button:disabled {
  color: var(--muted);
  opacity: 0.42;
  cursor: not-allowed;
}

.gallery-page-button:active:not(:disabled) {
  transform: translateY(1px);
}

.gallery-page-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  gap: 7px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.gallery-page-status small {
  color: var(--pink);
  font-size: 8px;
}

.gallery-page-status i {
  color: var(--muted);
  font-style: normal;
}

.empty-state {
  display: grid;
  grid-template-columns: minmax(500px, 1.35fr) minmax(220px, 0.65fr);
  gap: clamp(30px, 5vw, 78px);
  align-items: stretch;
  min-height: 380px;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle, rgba(23, 59, 228, 0.35) 0 1px, transparent 1.3px),
    linear-gradient(125deg, var(--ice), color-mix(in srgb, var(--paper-bright) 55%, var(--ice)));
  background-size: 10px 10px, 100% 100%;
}

.gallery-no-results {
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line-strong);
  background: var(--paper-bright);
  box-shadow: 7px 7px 0 var(--ice-deep);
}

.gallery-no-results small {
  color: var(--blue);
  font-size: var(--font-readable-min);
  letter-spacing: 0.08em;
}

.gallery-no-results h3 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.3;
}

.gallery-no-results p {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.7;
}

.empty-window {
  align-self: center;
  border: 2px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: 12px 13px 0 var(--blue);
}

.empty-window-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(25px, 4vw, 53px);
  align-items: center;
  padding: clamp(32px, 5vw, 65px);
}

.file-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 91px;
  border: 2px solid var(--blue-deep);
  background: var(--blue);
  box-shadow: 8px 9px 0 var(--pink);
}

.file-icon::before {
  content: "";
  position: absolute;
  top: -17px;
  left: -2px;
  width: 48px;
  height: 17px;
  border: 2px solid var(--blue-deep);
  border-bottom: 0;
  background: var(--blue);
}

.file-icon span {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 46px;
}

.empty-window-body small {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.empty-window-body h3 {
  margin: 9px 0;
  font-size: clamp(30px, 3vw, 45px);
  line-height: 0.95;
}

.empty-window-body p {
  margin-bottom: 23px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.empty-manifest {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--ink);
  color: #fff;
  background:
    repeating-radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px 7px),
    var(--blue);
  box-shadow: 10px 11px 0 var(--pink);
}

.empty-manifest::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -23%;
  width: 190px;
  height: 190px;
  border: 24px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.empty-manifest span,
.empty-manifest i {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.1em;
}

.empty-manifest strong {
  display: block;
  margin-block: 27px;
  font-family: var(--display);
  font-size: clamp(45px, 5vw, 72px);
  line-height: 0.74;
  letter-spacing: -0.04em;
}

.empty-manifest b {
  position: absolute;
  right: 23px;
  top: 21px;
  color: var(--lime);
  font-size: 38px;
  animation: starPulse 3s var(--ease-in-out) infinite;
}

.upload-section {
  position: relative;
  color: #fff;
  background: var(--blue);
}

.upload-section::before,
.upload-section::after {
  content: "";
  position: absolute;
  left: -132px;
  width: calc(100% + 264px);
  height: 50%;
  opacity: 0.28;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255, 255, 255, 0.22) 50%, transparent 50.2%),
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.2px);
  background-size: 132px 100%, 11px 11px;
  will-change: transform;
}

.upload-section::before {
  top: 0;
  animation: uploadGridLeft 18s linear infinite;
}

.upload-section::after {
  bottom: 0;
  animation: uploadGridRight 18s linear infinite;
}

.upload-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.62fr) minmax(690px, 1.38fr);
  gap: clamp(50px, 7vw, 112px);
  align-items: start;
  padding-block: 150px 165px;
}

.section-number-light,
.upload-heading .eyebrow {
  color: var(--lime);
}

.upload-heading {
  position: sticky;
  top: 125px;
}

.upload-heading h2 {
  --title-front: var(--pink);
  --title-back-fill: #fff;
  --title-back-stroke: #fff;
  --title-front-shadow: var(--lime);
  --title-mask: var(--blue);
  color: #fff;
  font-size: clamp(67px, 6.8vw, 104px);
}

.upload-heading > p:not(.eyebrow) {
  max-width: 370px;
  margin-top: 29px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.8;
}

.upload-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 30px;
}

.upload-rules span,
.upload-rules b {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  font-family: var(--mono);
  font-size: 8px;
}

.upload-rules b {
  color: var(--blue-deep);
  border-color: var(--lime);
  background: var(--lime);
}

.upload-workspace {
  border: 2px solid var(--blue-deep);
  background: var(--paper-bright);
  box-shadow: 14px 15px 0 var(--pink);
}

.workspace-bar {
  min-height: 34px;
  color: var(--blue-deep);
  border-bottom: 2px solid var(--blue-deep);
  background: linear-gradient(90deg, #e8edf1, #9eabb8 48%, #f9fbfc);
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(310px, 1.03fr) minmax(290px, 0.97fr);
  min-height: 600px;
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  padding: 45px 30px;
  border: 0;
  border-right: 1px solid rgba(8, 24, 95, 0.42);
  outline: 0;
  color: var(--blue-deep);
  cursor: pointer;
  background:
    radial-gradient(circle at 75% 15%, rgba(255, 255, 255, 0.96), transparent 13%),
    var(--ice);
  text-align: center;
}

.dropzone::before {
  content: "SCAN AREA 01";
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.dropzone-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    linear-gradient(90deg, rgba(8, 24, 95, 0.27) 1px, transparent 1px),
    linear-gradient(rgba(8, 24, 95, 0.27) 1px, transparent 1px);
  background-size: 29px 29px;
}

.dropzone.is-dragging {
  background: var(--lime);
}

.dropzone[aria-busy="true"] {
  cursor: progress;
}

.dropzone:focus-visible {
  outline: 4px solid var(--pink);
  outline-offset: -4px;
}

.scan-line {
  position: absolute;
  z-index: 6;
  inset: 0;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent calc(50% - 2px),
    rgba(255, 255, 255, 0.15) calc(50% - 2px),
    #fff 50%,
    rgba(255, 255, 255, 0.15) calc(50% + 2px),
    transparent calc(50% + 2px)
  );
  filter: drop-shadow(0 0 8px rgba(23, 59, 228, 0.8));
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -50%, 0);
}

.dropzone.is-dragging .scan-line,
.dropzone.has-file .scan-line {
  opacity: 0.9;
  animation: scanLine 2.8s var(--ease-in-out) infinite;
}

.focus-corner {
  position: absolute;
  z-index: 4;
  width: 28px;
  height: 28px;
  border-color: var(--blue);
  border-style: solid;
}

.focus-corner-tl {
  top: 39px;
  left: 28px;
  border-width: 2px 0 0 2px;
}

.focus-corner-tr {
  top: 39px;
  right: 28px;
  border-width: 2px 2px 0 0;
}

.focus-corner-bl {
  bottom: 28px;
  left: 28px;
  border-width: 0 0 2px 2px;
}

.focus-corner-br {
  right: 28px;
  bottom: 28px;
  border-width: 0 2px 2px 0;
}

.import-symbol {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-bottom: 25px;
  border: 2px solid var(--blue-deep);
  border-radius: 50%;
  background: conic-gradient(#fff, #72869d, #eef8ff, #31445a, #fff);
  box-shadow: 7px 8px 0 var(--pink);
}

.import-symbol::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: inset 5px 5px 12px rgba(8, 24, 95, 0.38);
}

.import-symbol span {
  position: relative;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 44px;
  line-height: 1;
}

.dropzone h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
  font-size: clamp(25px, 2.4vw, 37px);
  line-height: 0.98;
}

.dropzone > p {
  position: relative;
  z-index: 2;
  margin-bottom: 21px;
  color: #52607a;
  font-size: 12px;
}

.dropzone .button {
  z-index: 2;
}

.upload-preview {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--ice);
}

.preview-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.preview-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background:
    linear-gradient(45deg, rgba(8, 24, 95, 0.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(8, 24, 95, 0.1) 25%, transparent 25%),
    var(--ice);
  background-size: 18px 18px;
}

.cover-position-frame {
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.cover-position-frame.is-dragging {
  cursor: grabbing;
}

.cover-position-frame:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: -5px;
}

.cover-position-frame > img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.cover-position-grid,
.cover-position-target {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.cover-position-grid {
  inset: 0;
  opacity: 0.42;
  background:
    linear-gradient(90deg, transparent 33.1%, rgba(255, 255, 255, 0.72) 33.3% 33.6%, transparent 33.8% 66.2%, rgba(255, 255, 255, 0.72) 66.4% 66.7%, transparent 66.9%),
    linear-gradient(transparent 33.1%, rgba(255, 255, 255, 0.72) 33.3% 33.6%, transparent 33.8% 66.2%, rgba(255, 255, 255, 0.72) 66.4% 66.7%, transparent 66.9%);
}

.cover-position-target {
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(8, 24, 95, 0.72);
  transform: translate(-50%, -50%);
}

.cover-position-target::before,
.cover-position-target::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(8, 24, 95, 0.4);
  transform: translate(-50%, -50%);
}

.cover-position-target::before {
  width: 42px;
  height: 1px;
}

.cover-position-target::after {
  width: 1px;
  height: 42px;
}

.cover-position-hint,
.cover-position-reset {
  position: absolute;
  z-index: 4;
  bottom: 11px;
  border: 1px solid #111;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 900;
}

.cover-position-hint {
  left: 11px;
  max-width: calc(100% - 155px);
  padding: 6px 8px;
  color: #fff;
  background: rgba(8, 24, 95, 0.88);
}

.cover-position-reset {
  right: 11px;
  min-height: 25px;
  padding: 4px 8px;
  color: #111;
  background: var(--lime);
  box-shadow: 3px 3px 0 var(--pink);
}

.preview-main-label,
.preview-count {
  position: absolute;
  z-index: 2;
  padding: 6px 8px;
  border: 1px solid #111;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.preview-main-label {
  top: 11px;
  left: 11px;
  color: #111;
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--pink);
}

.preview-count {
  right: 58px;
  bottom: 11px;
  color: #fff;
  background: var(--blue);
}

.preview-dock {
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 112px;
  padding: 10px;
  border-top: 2px solid var(--blue-deep);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.24) 0 1px, transparent 1.2px),
    var(--blue-deep);
  background-size: 9px 9px;
}

.preview-thumbs {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 3px 3px 7px;
  scrollbar-color: var(--pink) rgba(255, 255, 255, 0.18);
  scrollbar-width: thin;
}

.preview-thumb-item {
  position: relative;
  flex: 0 0 66px;
}

.preview-thumb {
  display: grid;
  grid-template-rows: 58px 19px;
  width: 66px;
  min-height: 81px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  color: #fff;
  background: #142869;
  font-family: var(--mono);
  transition: transform 0.18s var(--ease-out), border-color 0.18s ease, box-shadow 0.18s ease;
}

.preview-thumb img {
  width: 100%;
  height: 58px;
  object-fit: cover;
  background: var(--ice);
}

.preview-thumb span {
  display: grid;
  place-items: center;
  font-size: 7px;
  font-weight: 900;
}

.preview-thumb.is-main {
  color: #111;
  border-color: var(--lime);
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--pink);
  transform: translateY(-2px);
}

.preview-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  padding: 0;
  border: 1px solid #111;
  color: #111;
  background: var(--pink);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
}

.preview-add {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  width: 78px;
  min-height: 81px;
  padding: 7px;
  border: 1px dashed rgba(255, 255, 255, 0.82);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
}

.preview-add span {
  color: var(--lime);
  font-size: 25px;
  line-height: 0.8;
}

.preview-add:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.preview-clear {
  position: absolute;
  top: 11px;
  right: 11px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #111;
  border-radius: 0;
  color: #fff;
  background: var(--blue);
  box-shadow: 4px 4px 0 var(--pink);
  font-family: var(--mono);
  font-size: 19px;
}

.preview-thumb:focus-visible,
.preview-remove:focus-visible,
.preview-add:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.look-form {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px 31px;
  color: var(--ink);
  background:
    radial-gradient(circle, rgba(23, 59, 228, 0.11) 0 1px, transparent 1.2px),
    var(--paper-bright);
  background-size: 9px 9px;
}

.form-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
}

.form-heading small {
  color: var(--blue);
}

.field-group {
  margin-bottom: 26px;
}

.field-group label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 800;
}

.field-group label span,
.field-group > small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 3px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.field-group textarea {
  min-height: 112px;
  padding-block: 12px;
  line-height: 1.65;
  resize: vertical;
}

.field-group select {
  background-color: var(--paper-bright);
  color-scheme: light;
}

.field-group select option {
  color: #111116;
  background: #fffef8;
}

[data-theme="night"] .field-group select {
  color: #f6f5ed;
  background-color: #17233f;
  color-scheme: dark;
}

[data-theme="night"] .field-group select option {
  color: #f6f5ed;
  background: #17233f;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.82;
}

.custom-game-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--blue);
  background: var(--paper-bright);
  box-shadow: 4px 4px 0 var(--pink);
}

.custom-game-editor input {
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  font-size: 12px;
}

.custom-game-confirm,
.custom-game-cancel {
  min-width: 42px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}

.custom-game-confirm {
  color: #fff;
  background: var(--blue);
}

.custom-game-cancel {
  background: var(--paper-bright);
  font-size: 17px;
  line-height: 1;
}

.custom-game-editor small {
  grid-column: 1 / -1;
  min-height: 12px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
}

.custom-game-confirm:focus-visible,
.custom-game-cancel:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.local-save-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  margin-top: auto;
  margin-bottom: 17px;
  padding: 11px 12px;
  border: 1px dashed var(--blue);
  background: color-mix(in srgb, var(--ice) 46%, var(--paper-bright));
}

.local-save-copy strong,
.local-save-copy small {
  display: block;
}

.local-save-copy strong {
  margin-bottom: 4px;
  font-size: 11px;
}

.local-save-copy small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.45;
}

.folder-picker {
  min-height: 35px;
  padding: 7px 10px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper-bright);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.16s var(--ease-out);
}

.folder-picker:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.field-group input:focus,
.field-group select:focus {
  border-bottom-color: var(--blue);
  box-shadow: 0 4px 0 var(--pink);
}

.field-group > small {
  display: block;
  margin-top: 8px;
}

.form-submit-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 15px;
  margin-top: auto;
}

.form-submit-row p {
  min-height: 20px;
  margin: 0;
  color: var(--blue);
  font-size: 11px;
}

.favorites-section {
  display: grid;
  grid-template-columns: minmax(330px, 0.68fr) minmax(570px, 1.32fr);
  gap: clamp(60px, 9vw, 150px);
  align-items: center;
  min-height: 850px;
  padding-block: 170px;
}

.favorites-section::before {
  content: "PIN / SAVE / REMEMBER";
  position: absolute;
  top: 83px;
  right: 0;
  color: color-mix(in srgb, var(--blue) 18%, transparent);
  font-family: var(--display);
  font-size: clamp(80px, 11vw, 170px);
  line-height: 0.7;
  letter-spacing: -0.04em;
  white-space: nowrap;
  z-index: -1;
}

.favorite-stamp {
  position: absolute;
  top: 127px;
  left: 48%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  box-shadow: 6px 6px 0 var(--pink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  line-height: 0.9;
  text-align: center;
  transform: rotate(11deg);
}

.favorite-stamp span {
  color: var(--lime);
  font-family: var(--body);
  font-size: 31px;
}

.favorites-copy {
  position: relative;
  z-index: 2;
}

.favorites-copy h2 {
  font-size: clamp(65px, 6.6vw, 102px);
}

.favorites-copy > p:not(.eyebrow) {
  max-width: 390px;
  margin-block: 29px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.favorites-stage {
  border: 2px solid var(--ink);
  background:
    radial-gradient(circle, rgba(23, 59, 228, 0.28) 0 1px, transparent 1.2px),
    var(--ice);
  background-size: 10px 10px;
  box-shadow: 14px 15px 0 var(--blue), 26px 27px 0 var(--pink);
  transform: rotate(0.6deg);
}

.favorites-stage-bar {
  min-height: 34px;
}

.favorites-stage-bar b {
  color: var(--lime);
}

.favorites-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
  min-height: 510px;
  padding: 32px;
}

.favorites-empty {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 27px;
  align-items: center;
  width: 82%;
  margin: auto;
  padding: 28px;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: 9px 10px 0 var(--pink);
  transform: rotate(-1.5deg);
}

.favorites-empty-symbol {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: var(--blue);
  border: 2px solid var(--blue);
  background: var(--ice);
  font-size: 47px;
}

.favorites-empty strong {
  display: block;
  font-family: var(--display);
  font-size: 29px;
}

.favorites-empty p {
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
}

.text-link span {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.favorite-card {
  --favorite-rotate: 0deg;
  --favorite-y: 0px;
  --favorite-delay: 0ms;
  position: relative;
  height: 350px;
  margin: 0;
  padding: 8px 8px 48px;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: 7px 8px 0 rgba(8, 24, 95, 0.32);
  transform: rotate(var(--favorite-rotate)) translateY(var(--favorite-y));
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
  cursor: pointer;
  animation: favoritePin 0.36s var(--ease-out) var(--favorite-delay) backwards;
}

.favorite-card:nth-child(1) { --favorite-rotate: -5deg; --favorite-y: 8px; }
.favorite-card:nth-child(2) { --favorite-rotate: 2deg; --favorite-y: -15px; --favorite-delay: 55ms; z-index: 2; }
.favorite-card:nth-child(3) { --favorite-rotate: 6deg; --favorite-y: 12px; --favorite-delay: 110ms; }

.favorite-card:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

.favorite-card::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 34%;
  z-index: 4;
  width: 34%;
  height: 22px;
  background: rgba(212, 255, 70, 0.74);
  transform: rotate(-3deg);
}

.favorite-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.07);
}

.favorite-card figcaption {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-card figcaption small {
  display: block;
  color: var(--blue);
  font-size: 7px;
}

.site-footer {
  color: #fff;
  border-top: 1px solid var(--ink);
  background: var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 45px;
  align-items: center;
  min-height: 130px;
}

.footer-inner > div strong,
.footer-inner > div span {
  display: block;
}

.footer-inner > div strong {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 16px;
}

.footer-inner > div span,
.footer-inner p,
.footer-inner a {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
}

.footer-era-note {
  display: block;
  margin-bottom: 5px;
  color: var(--pink);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.footer-inner > div .footer-owner-mark {
  margin-top: 7px;
  color: #fffef8;
  font-family: "ZiZhiQuXiMaiTiWeb", "ZiZhiQuXiMaiTi", var(--body);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-shadow: 2px 2px 0 var(--pink);
}

.footer-inner a {
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.music-player {
  position: fixed;
  bottom: clamp(18px, 2vw, 32px);
  left: clamp(18px, 3vw, 42px);
  z-index: 55;
  isolation: isolate;
  width: min(460px, calc(100vw - 36px));
  overflow: hidden;
  color: var(--ink);
  border: 2px solid #071140;
  background: var(--paper-bright);
  box-shadow: 10px 11px 0 color-mix(in srgb, var(--pink) 86%, transparent);
  transition: width 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

.music-player.is-collapsed {
  width: min(250px, calc(100vw - 36px));
  box-shadow: 6px 7px 0 color-mix(in srgb, var(--pink) 78%, transparent);
}

.music-player-titlebar {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px;
  align-items: center;
  min-height: 27px;
  padding: 5px 8px;
  color: #fff;
  background: #173be4;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.music-player-titlebar b {
  min-width: 48px;
  color: var(--lime);
  text-align: right;
}

.music-player-titlebar > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-collapse {
  display: grid;
  place-items: center;
  width: 23px;
  height: 19px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.68);
  color: #fff;
  background: rgba(8, 24, 95, 0.34);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.24);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  transition: color 0.16s ease, background-color 0.16s ease, transform 0.14s var(--ease-out);
}

.music-collapse:hover {
  color: #111116;
  background: var(--lime);
}

.music-collapse:active {
  transform: scale(0.92);
}

.music-collapse span {
  display: block;
  transform: translateY(-1px) rotate(0deg);
  transition: transform 0.28s var(--ease-out);
}

.music-player.is-collapsed .music-collapse span {
  transform: translateY(1px) rotate(180deg);
}

.music-equalizer {
  display: flex;
  gap: 2px;
  align-items: end;
  height: 11px;
}

.music-equalizer i {
  width: 2px;
  height: 35%;
  background: var(--lime);
  transform-origin: bottom;
}

.music-player.is-playing .music-equalizer i {
  animation: musicEqualizer 0.7s ease-in-out infinite alternate;
}

.music-player.is-playing .music-equalizer i:nth-child(2) {
  animation-duration: 0.48s;
  animation-delay: -0.22s;
}

.music-player.is-playing .music-equalizer i:nth-child(3) {
  animation-duration: 0.86s;
  animation-delay: -0.4s;
}

.music-player-body {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  max-height: 190px;
  overflow: hidden;
  padding: 10px;
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transform-origin: top;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--blue) 22%, transparent) 1px, transparent 1.2px),
    var(--paper-bright);
  background-size: 8px 8px;
  transition:
    max-height 0.3s var(--ease-out),
    padding 0.3s var(--ease-out),
    opacity 0.16s ease,
    transform 0.3s var(--ease-out),
    visibility 0s linear;
}

.music-player.is-collapsed .music-player-body {
  max-height: 0;
  padding-block: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -9px, 0);
  transition:
    max-height 0.3s var(--ease-out),
    padding 0.3s var(--ease-out),
    opacity 0.14s ease,
    transform 0.3s var(--ease-out),
    visibility 0s linear 0.3s;
}

.music-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  aspect-ratio: 1;
  border: 1px solid #071140;
  border-radius: 50%;
  background:
    conic-gradient(from 35deg, #fff 0 8%, #93a3b8 13%, #effcff 24%, #748092 36%, #fff 49%, #7f8a9a 61%, #e7fbff 74%, #6a7380 86%, #fff 100%);
  box-shadow: 3px 3px 0 var(--blue);
  animation: musicDiscSpin 5s linear infinite paused;
}

.music-player.is-playing .music-disc {
  animation-play-state: running;
}

.music-disc::before {
  content: "";
  position: absolute;
  width: 19px;
  aspect-ratio: 1;
  border: 5px solid var(--paper-bright);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 1px #071140;
}

.music-disc span {
  position: relative;
  z-index: 1;
  color: #071140;
  font-size: 11px;
  font-weight: 900;
}

.music-player-panel {
  min-width: 0;
}

.music-track-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(112px, 0.72fr);
  gap: 8px;
  align-items: center;
}

.music-track-count {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.music-track-copy {
  min-width: 0;
  line-height: 1.05;
}

.music-track-copy strong,
.music-track-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-track-copy strong {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.music-track-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.music-track-select {
  min-width: 0;
  height: 28px;
  padding: 3px 25px 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background-color: var(--paper-bright);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
}

.music-track-select option {
  color: var(--ink);
  background: var(--paper-bright);
}

.music-progress-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 6px;
  align-items: center;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 800;
}

.music-progress-row span:last-child {
  text-align: right;
}

.music-range {
  --range-fill: 0%;
  width: 100%;
  height: 13px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline-offset: 2px;
  background: linear-gradient(90deg, var(--pink) 0 var(--range-fill), color-mix(in srgb, var(--blue) 20%, var(--paper)) var(--range-fill) 100%);
  appearance: none;
}

.music-range::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.music-range::-webkit-slider-thumb {
  width: 11px;
  height: 13px;
  margin-top: -4px;
  border: 1px solid #071140;
  border-radius: 0;
  background: var(--lime);
  box-shadow: 2px 2px 0 var(--blue);
  appearance: none;
}

.music-range::-moz-range-track {
  height: 4px;
  background: transparent;
}

.music-range::-moz-range-thumb {
  width: 10px;
  height: 12px;
  border: 1px solid #071140;
  border-radius: 0;
  background: var(--lime);
  box-shadow: 2px 2px 0 var(--blue);
}

.music-range:disabled {
  cursor: wait;
  opacity: 0.48;
}

.music-controls {
  display: grid;
  grid-template-columns: repeat(3, 31px) minmax(112px, 1fr);
  gap: 5px;
  align-items: center;
  margin-top: 6px;
}

.music-control {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 25px;
  padding: 0;
  border: 1px solid #071140;
  border-radius: 0;
  color: #071140;
  background: linear-gradient(#fff, #aeb7c2);
  box-shadow: 2px 2px 0 var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  transition: transform 0.16s var(--ease-out), color 0.16s ease, background-color 0.16s ease;
}

.music-control.music-play {
  color: #fff;
  background: var(--blue);
}

.music-control.music-play.is-playing {
  color: #071140;
  background: var(--lime);
}

.music-control:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 0 var(--blue);
}

.music-volume {
  display: grid;
  grid-template-columns: auto minmax(54px, 1fr) 23px;
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding-left: 7px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 900;
}

.music-volume output {
  color: var(--ink);
  text-align: right;
}

@keyframes musicDiscSpin {
  to { transform: rotate(1turn); }
}

@keyframes musicEqualizer {
  from { height: 28%; }
  to { height: 100%; }
}

@media (hover: hover) and (pointer: fine) {
  .music-control:hover {
    color: var(--pink);
    transform: translateY(-1px);
  }

  .music-track-select:hover {
    border-color: var(--blue);
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 5vw;
  background: rgba(5, 9, 30, 0.72);
  backdrop-filter: blur(9px);
}

.detail-modal {
  width: min(980px, 100%);
  max-height: 88dvh;
  overflow: auto;
  overscroll-behavior: contain;
  border: 2px solid #071140;
  background: var(--paper-bright);
  box-shadow: 18px 20px 0 rgba(255, 138, 197, 0.82);
  animation: modalEnter 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-modal.is-keyboard-open {
  animation: none;
}

.modal-titlebar {
  min-height: 35px;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 24px;
  height: 22px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 0;
  color: #fff;
  background: transparent;
}

.modal-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.modal-image-wrap {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 560px;
  overflow: hidden;
  background: var(--ice);
}

.modal-image-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.modal-image-stage > img {
  width: 100%;
  height: 100%;
  max-height: 76dvh;
  object-fit: contain;
}

.modal-image-count {
  position: absolute;
  right: 13px;
  bottom: 13px;
  padding: 6px 8px;
  border: 1px solid #111;
  color: #fff;
  background: var(--blue);
  box-shadow: 4px 4px 0 var(--pink);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.modal-thumbnails {
  display: flex;
  gap: 8px;
  min-height: 84px;
  overflow-x: auto;
  padding: 9px;
  border-top: 1px solid var(--ink);
  background: var(--blue-deep);
}

.modal-thumbnail-item {
  position: relative;
  flex: 0 0 64px;
}

.modal-thumbnail {
  width: 64px;
  height: 64px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: #fff;
  transition: transform 0.18s var(--ease-out), border-color 0.18s ease, box-shadow 0.18s ease;
}

.modal-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumbnail.is-active {
  border-color: var(--lime);
  box-shadow: 4px 4px 0 var(--pink);
  transform: translateY(-2px);
}

.modal-thumbnail:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.modal-thumbnail-remove {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid #111;
  border-radius: 50%;
  color: #fff;
  background: #db245d;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
}

.modal-thumbnail-remove:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.modal-thumbnail-main {
  position: absolute;
  right: 3px;
  bottom: 3px;
  left: 3px;
  z-index: 2;
  padding: 2px;
  color: #111;
  background: var(--lime);
  font-family: var(--mono);
  font-size: 6px;
  font-weight: 900;
  text-align: center;
}

.modal-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 60px);
  border-left: 1px solid var(--ink);
  color: var(--ink);
}

.modal-info h2 {
  overflow-wrap: anywhere;
  font-size: clamp(48px, 5vw, 78px);
}

.modal-info-view {
  display: flex;
  flex-direction: column;
}

.modal-view-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-block: 23px 35px;
}

.modal-tags span {
  padding: 5px 8px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
}

.modal-idea {
  position: relative;
  margin: -12px 0 30px;
  padding: 18px 18px 17px;
  border: 1px solid var(--blue);
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, color-mix(in srgb, var(--blue) 12%, transparent) 27px 28px),
    color-mix(in srgb, var(--ice) 58%, var(--paper-bright));
  box-shadow: 5px 5px 0 var(--pink);
}

.modal-idea small {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.modal-idea p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.detail-modal.is-editing {
  width: min(1080px, 100%);
}

.detail-modal.is-editing .modal-info {
  justify-content: flex-start;
  padding: clamp(22px, 3vw, 38px);
}

.modal-edit-form {
  width: 100%;
}

.modal-edit-form .form-heading {
  margin-bottom: 18px;
}

.modal-edit-form .field-group {
  margin-bottom: 14px;
}

.modal-edit-form .field-group input,
.modal-edit-form .field-group select {
  min-height: 38px;
  padding-block: 7px;
  font-size: 12px;
}

.edit-cover-tool {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
}

.edit-cover-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 9px;
}

.edit-cover-heading strong,
.edit-cover-heading small {
  display: block;
}

.edit-cover-heading strong {
  font-size: 11px;
}

.edit-cover-heading small {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.edit-cover-heading button,
.edit-image-control button,
.edit-delete-trigger,
.edit-delete-confirm button {
  min-height: 29px;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper-bright);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
}

.edit-cover-frame {
  width: 100%;
  aspect-ratio: 1.14 / 1;
  border: 1px solid var(--ink);
  background: var(--ice);
}

.edit-cover-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-image-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.edit-image-control p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.45;
}

.edit-image-control button {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.edit-image-control button:disabled {
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
  cursor: default;
}

.modal-edit-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 19px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
}

.modal-edit-actions > div {
  display: flex;
  gap: 8px;
}

.edit-delete-trigger {
  color: #c1164d;
  border-color: #c1164d;
}

.edit-delete-confirm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 11px;
  border: 2px solid #c1164d;
  background: color-mix(in srgb, var(--pink) 18%, var(--paper-bright));
}

.edit-delete-confirm p {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
}

.edit-delete-confirm p strong,
.edit-delete-confirm p span {
  display: block;
}

.edit-delete-confirm p span {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.edit-delete-confirm > div {
  display: flex;
  gap: 6px;
}

#edit-delete-submit {
  color: #fff;
  border-color: #c1164d;
  background: #c1164d;
}

.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 80;
  max-width: 320px;
  padding: 13px 17px;
  border: 2px solid #111;
  color: #111;
  background: var(--lime);
  box-shadow: 7px 8px 0 var(--pink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.theme-toggle:active,
.filter-tab:active,
.tag-filter-button:active,
.favorite-filter:active,
.favorite-mark:active,
.preview-add:active,
.preview-remove:active,
.modal-close:active,
.modal-thumbnail:active {
  transform: translateY(1px);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready [data-motion="hero-art"] .art-poster {
  opacity: 0;
  transform: translateY(35px) rotate(3deg) scale(0.97);
}

.motion-ready [data-motion="hero-art"] .system-dialog,
.motion-ready [data-motion="hero-art"] .file-sticker,
.motion-ready [data-motion="hero-art"] .chrome-heart,
.motion-ready [data-motion="hero-art"] .pixel-pointer {
  opacity: 0;
}

.motion-ready [data-motion="hero-art"].is-in-view .art-poster {
  opacity: 1;
  transform: rotate(1.2deg);
  transition: opacity 0.8s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-ready [data-motion="hero-art"].is-in-view .system-dialog,
.motion-ready [data-motion="hero-art"].is-in-view .file-sticker,
.motion-ready [data-motion="hero-art"].is-in-view .chrome-heart,
.motion-ready [data-motion="hero-art"].is-in-view .pixel-pointer {
  opacity: 1;
  transition: opacity 0.5s ease 0.55s, transform 0.28s var(--ease-out);
}

.motion-ready [data-motion="hero-art"].is-in-view.is-pointer-ready .art-poster {
  transition: opacity 0.2s ease, transform 0.28s var(--ease-out);
}

.motion-ready [data-motion="hero-art"].is-in-view.is-pointer-ready .system-dialog,
.motion-ready [data-motion="hero-art"].is-in-view.is-pointer-ready .file-sticker,
.motion-ready [data-motion="hero-art"].is-in-view.is-pointer-ready .chrome-heart,
.motion-ready [data-motion="hero-art"].is-in-view.is-pointer-ready .pixel-pointer {
  transition: opacity 0.2s ease, transform 0.28s var(--ease-out);
}

.motion-ready [data-motion="empty-state"] .empty-window,
.motion-ready [data-motion="empty-state"] .empty-manifest {
  opacity: 0;
  transform: translateY(24px) rotate(-2deg);
}

.motion-ready [data-motion="empty-state"].is-in-view .empty-window,
.motion-ready [data-motion="empty-state"].is-in-view .empty-manifest {
  opacity: 1;
  transform: translateY(0) rotate(0);
  transition: opacity 0.65s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-ready [data-motion="empty-state"].is-in-view .empty-manifest {
  transition-delay: 0.13s;
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    color: var(--paper-bright);
    background: var(--blue);
  }

  .nav-link:hover span {
    color: var(--lime);
  }

  .nav-link:hover::after {
    transform: scaleX(1);
  }

  .theme-toggle:hover {
    color: var(--paper-bright);
    background: var(--ink);
    transform: translate(-2px, -2px);
  }

  .folder-picker:hover {
    color: var(--paper-bright);
    background: var(--blue);
    box-shadow: 4px 4px 0 var(--pink);
    transform: translate(-2px, -2px);
  }

  .button:hover {
    transform: translate(-3px, -3px);
  }

  .button-primary:hover {
    color: var(--ink);
    background: var(--lime);
    box-shadow: 8px 8px 0 var(--pink);
  }

  .button-ghost:hover {
    color: var(--paper-bright);
    background: var(--ink);
    box-shadow: 7px 7px 0 var(--blue);
  }

  .button-secondary:hover {
    color: var(--ink);
    background: var(--lime);
  }

  .button-outline:hover {
    color: #fff;
    background: var(--blue);
    box-shadow: 6px 6px 0 var(--pink);
  }

  .button-save:hover {
    color: #fff;
    background: var(--blue-deep);
  }

  .filter-tab:hover {
    color: #fff;
    background: var(--blue);
  }

  .tag-filter-button:hover {
    color: #fff;
    background: var(--blue-deep);
  }

  .favorite-filter:hover {
    color: #fff;
    background: var(--ink);
  }

  .gallery-page-button:hover:not(:disabled) {
    color: #fff;
    background: var(--blue);
  }

  .look-card:hover {
    z-index: 3;
    box-shadow: 13px 14px 0 var(--pink);
    transform: translateY(calc(var(--y) - 8px)) rotate(0);
  }

  .look-card:hover .look-image-wrap::after {
    opacity: 0.06;
  }

  .look-card:hover img {
    filter: saturate(1.08) contrast(1.02);
    transform: scale(1.035);
  }

  .favorite-mark:hover {
    color: var(--lime);
    background: var(--blue);
    transform: rotate(7deg) scale(1.06);
  }

  .text-link:hover span {
    transform: translateX(5px);
  }

  .favorite-card:hover {
    z-index: 5;
    box-shadow: 11px 12px 0 var(--pink);
    transform: rotate(0) translateY(-23px);
  }

  .footer-inner a:hover {
    color: var(--ink);
    background: var(--pink);
  }

  .hero-art.is-pointer-active .art-poster,
  .hero-art.is-pointer-active .scan-frame,
  .hero-art.is-pointer-active .system-dialog,
  .hero-art.is-pointer-active .file-sticker,
  .hero-art.is-pointer-active .chrome-heart,
  .hero-art.is-pointer-active .pixel-pointer {
    will-change: transform;
  }
}

@keyframes scanDrift {
  0% { transform: translateY(-5px); }
  50% { transform: translateY(5px); }
  100% { transform: translateY(-5px); }
}

@keyframes chromeFloat {
  0%, 100% { transform: rotate(-22deg) translateY(0); }
  50% { transform: rotate(-20deg) translateY(-9px); }
}

@keyframes uploadGridLeft {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-132px, 0, 0); }
}

@keyframes uploadGridRight {
  from { transform: translate3d(-132px, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes decorFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(var(--float-x), var(--float-y), 0) rotate(var(--float-rotate)); }
}

@keyframes favoritePin {
  from {
    opacity: 0;
    transform: rotate(var(--favorite-rotate)) translateY(calc(var(--favorite-y) + 14px)) scale(0.96);
  }
  to {
    opacity: 1;
    transform: rotate(var(--favorite-rotate)) translateY(var(--favorite-y)) scale(1);
  }
}

@keyframes starPulse {
  0%, 100% { transform: rotate(0) scale(1); }
  50% { transform: rotate(16deg) scale(1.13); }
}

@keyframes relicSignal {
  0%, 44% { opacity: 1; }
  45%, 70% { opacity: 0.22; }
  71%, 100% { opacity: 1; }
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes newCard {
  0% { opacity: 0; transform: translateY(55px) rotate(-4deg) scale(0.94); }
  100% { opacity: 1; transform: translateY(var(--y)) rotate(var(--r)) scale(1); }
}

@keyframes scanLine {
  0%, 100% { transform: translate3d(0, -50%, 0); opacity: 0; }
  12% { transform: translate3d(0, -38%, 0); opacity: 0.9; }
  50% { transform: translate3d(0, 0, 0); opacity: 0.95; }
  88% { transform: translate3d(0, 38%, 0); opacity: 0.9; }
  99.9% { transform: translate3d(0, 50%, 0); opacity: 0; }
}

@keyframes modalEnter {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes reducedFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .header-identity {
    gap: 13px;
  }

  .header-owner-watermark {
    font-size: 14px;
    letter-spacing: 0.055em;
  }

  .main-nav {
    border-left: 1px solid var(--line);
  }

  .nav-link {
    padding-inline: 17px;
  }

  .hero {
    grid-template-columns: minmax(330px, 0.8fr) minmax(470px, 1.2fr);
    gap: 38px;
  }

  .hero-art {
    min-height: 570px;
  }

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

  .toolbar-label {
    grid-row: 1 / 3;
  }

  .filter-tabs {
    grid-column: 2 / 4;
    border-bottom: 1px solid var(--line);
  }

  .search-box {
    grid-column: 2;
    border-left: 0;
  }

  .favorite-filter {
    grid-column: 3;
  }

  .upload-inner {
    grid-template-columns: minmax(260px, 0.5fr) minmax(640px, 1.5fr);
    gap: 45px;
  }

  .upload-layout {
    grid-template-columns: 1fr;
  }

  .dropzone {
    min-height: 470px;
    border-right: 0;
    border-bottom: 1px solid rgba(8, 24, 95, 0.42);
  }

  .favorites-section {
    gap: 60px;
  }

  .favorites-stack {
    gap: 8px;
    padding: 24px;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    min-height: auto;
    padding: 9px 4vw 0;
  }

  .brand-text small {
    display: none;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-height: 46px;
    margin-top: 9px;
    border-top: 1px solid var(--line);
    border-inline: 0;
  }

  .nav-link {
    flex: 1;
    min-width: 0;
    justify-content: center;
  }

  .theme-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 80px 100px;
  }

  .hero-copy {
    max-width: 650px;
  }

  .hero-index {
    display: none;
  }

  .hero-art {
    min-height: 620px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-intro {
    max-width: 520px;
  }

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

  .look-card,
  .look-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    --y: 0px;
    --r: 0deg;
  }

  .empty-state {
    grid-template-columns: 1fr;
  }

  .empty-manifest {
    min-height: 280px;
  }

  .upload-inner {
    grid-template-columns: 1fr;
  }

  .upload-heading {
    position: relative;
    top: auto;
    max-width: 640px;
  }

  .upload-workspace {
    max-width: 760px;
  }

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

  .favorites-copy {
    max-width: 650px;
  }

  .favorite-stamp {
    top: 145px;
    right: 5%;
    left: auto;
  }

  .favorites-stage {
    max-width: 760px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner p {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-bottom: 22px;
  }
}

@media (max-width: 620px) {
  .section-wrap {
    width: min(100% - 34px, 1320px);
  }

  .site-header {
    border-top-width: 4px;
    padding-inline: 17px;
  }

  .brand-sigil {
    width: 30px;
    height: 30px;
    font-size: 19px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .header-identity {
    gap: 9px;
  }

  .header-owner-watermark {
    font-size: 12px;
    letter-spacing: 0.035em;
    text-shadow: 1px 1px 0 var(--pink), 2px 2px 0 color-mix(in srgb, var(--ink) 24%, transparent);
  }

  .theme-toggle {
    min-height: 31px;
    font-size: 9px;
  }

  .nav-link {
    flex-direction: column;
    gap: 3px;
    min-height: 52px;
    padding: 8px 2px 12px;
    font-size: 11px;
  }

  :root {
    --anchor-offset: 148px;
  }

  .nav-link::after {
    bottom: 5px;
  }

  .hero {
    gap: 45px;
    padding-block: 59px 77px;
  }

  .hero-kicker {
    font-size: 7px;
  }

  h1 {
    font-size: clamp(58px, 18vw, 78px);
    line-height: 0.87;
  }

  .layered-title .title-line + .title-line {
    margin-left: 0.16em;
  }

  .layered-title .title-line-back {
    -webkit-text-stroke-width: 1.4px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

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

  .button {
    min-height: 46px;
    font-size: 10px;
  }

  .hero-art {
    min-height: 475px;
    margin-inline: -8px;
  }

  .art-poster {
    inset: 10px 14px 18px 18px;
    box-shadow: 10px 10px 0 var(--blue), 18px 18px 0 rgba(255, 138, 197, 0.7);
  }

  .scan-frame {
    top: 17%;
    right: 7%;
    width: 64%;
    height: 59%;
    box-shadow: 7px 8px 0 rgba(23, 59, 228, 0.85);
  }

  .no-look strong {
    font-size: 28px;
  }

  .chrome-orbit {
    top: 34%;
    left: 2%;
    width: 70%;
  }

  .system-dialog {
    right: -3px;
    bottom: 26px;
    width: 58%;
  }

  .dialog-body {
    padding: 10px;
  }

  .dialog-heart {
    width: 27px;
    height: 27px;
  }

  .file-sticker {
    top: 0;
    right: -2px;
    width: 85px;
    height: 106px;
    padding: 10px;
  }

  .file-sticker b {
    font-size: 15px;
  }

  .chrome-heart {
    top: 11%;
    left: -5px;
    font-size: 67px;
  }

  .pixel-pointer {
    top: 58%;
    left: 0;
    font-size: 40px;
  }

  .poster-star {
    font-size: 39px;
  }

  .gallery-section {
    padding-block: 105px 120px;
  }

  .section-number span {
    font-size: 43px;
  }

  h2,
  .upload-heading h2,
  .favorites-copy h2 {
    font-size: clamp(55px, 17vw, 76px);
  }

  .section-heading {
    margin-bottom: 38px;
    padding-bottom: 25px;
  }

  .gallery-toolbar {
    display: flex;
    flex-wrap: wrap;
    box-shadow: 5px 5px 0 var(--ice-deep);
  }

  .toolbar-label {
    display: none;
  }

  .filter-tabs {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .filter-tab {
    min-height: 45px;
  }

  .search-box {
    flex: 1 1 100%;
    border-bottom: 1px solid var(--line);
  }

  .favorite-filter {
    width: 100%;
    border-left: 0;
  }

  .gallery-grid {
    gap: 12px;
  }

  .look-card,
  .look-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    --look-meta-height: 92px;
    box-shadow: 5px 5px 0 var(--ice-deep);
  }

  .gallery-pagination {
    margin-top: 28px;
  }

  .gallery-page-button {
    padding-inline: 10px;
    font-size: 8px;
  }

  .gallery-page-status {
    min-width: 90px;
    gap: 4px;
  }

  .look-card-meta {
    padding: 8px 10px;
  }

  .look-card-meta h3 {
    font-size: 20px;
  }

  .favorite-mark {
    top: 7px;
    right: 7px;
    width: 31px;
    height: 31px;
    font-size: 17px;
  }

  .look-image-count {
    bottom: 7px;
    left: 7px;
    padding: 4px 6px;
    font-size: 7px;
  }

  .empty-state {
    gap: 28px;
    padding: 22px;
  }

  .empty-window-body {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .file-icon {
    width: 82px;
    height: 69px;
  }

  .empty-manifest strong {
    font-size: 52px;
  }

  .upload-inner {
    padding-block: 110px 120px;
  }

  .upload-workspace {
    margin-inline: -6px;
    box-shadow: 8px 9px 0 var(--pink);
  }

  .dropzone {
    min-height: 410px;
    padding-inline: 23px;
  }

  .preview-dock {
    gap: 7px;
    min-height: 100px;
    padding: 8px;
  }

  .preview-thumb-item {
    flex-basis: 58px;
  }

  .preview-thumb {
    grid-template-rows: 51px 17px;
    width: 58px;
    min-height: 72px;
  }

  .preview-thumb img {
    height: 51px;
  }

  .preview-add {
    width: 66px;
    min-height: 72px;
    font-size: 7px;
  }

  .preview-main-label,
  .preview-count {
    font-size: 7px;
  }

  .import-symbol {
    width: 75px;
    height: 75px;
  }

  .look-form {
    padding: 27px 23px;
  }

  .local-save-panel {
    grid-template-columns: 1fr;
  }

  .folder-picker {
    width: 100%;
  }

  .favorites-section {
    min-height: 0;
    gap: 65px;
    padding-block: 120px 145px;
  }

  .favorite-stamp {
    top: 92px;
    right: 0;
    width: 73px;
    height: 73px;
  }

  .favorites-stage {
    margin-right: 12px;
    box-shadow: 8px 9px 0 var(--blue), 15px 16px 0 var(--pink);
  }

  .favorites-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 390px;
    padding: 18px 13px;
  }

  .favorites-empty {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .favorites-empty-symbol {
    width: 57px;
    height: 57px;
    font-size: 35px;
  }

  .favorite-card {
    height: 260px;
    padding: 5px 5px 39px;
  }

  .favorite-card figcaption {
    right: 5px;
    bottom: 7px;
    left: 5px;
    font-size: 8px;
  }

  .footer-inner {
    gap: 20px;
    min-height: 145px;
  }

  .footer-inner > div strong {
    font-size: 13px;
  }

  .modal-backdrop {
    padding: 17px;
  }

  .detail-modal {
    box-shadow: 8px 9px 0 rgba(255, 138, 197, 0.82);
  }

  .modal-content {
    grid-template-columns: 1fr;
  }

  .modal-image-wrap {
    min-height: 340px;
  }

  .modal-thumbnails {
    min-height: 74px;
    padding: 7px;
  }

  .modal-thumbnail-item,
  .modal-thumbnail {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .modal-info {
    padding: 28px 24px 32px;
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .modal-info h2 {
    font-size: 50px;
  }

  .toast {
    right: 17px;
    bottom: 17px;
    left: 17px;
    max-width: none;
  }
}

@media (max-width: 900px) {
  .hero .decor-field,
  .gallery-section .decor-field,
  .favorites-section .decor-field {
    inset-inline: -2vw;
  }

  .decor-hero-heart {
    top: 4%;
    right: 2%;
    left: auto;
  }

  .decor-hero-bow {
    top: 46%;
    right: 3%;
  }

  .decor-hero-sparkles {
    bottom: 2%;
    left: 2%;
  }

  .decor-gallery-wifi {
    left: 0;
  }

  .decor-upload-wing-left,
  .decor-upload-wing-right {
    top: 3%;
  }

  .decor-upload-cat {
    right: 2%;
    bottom: 3%;
  }

  .decor-favorites-mail {
    left: 1%;
    bottom: 2%;
  }

  .relic-hero-signature {
    top: 44%;
    right: 1%;
    left: auto;
  }

  .relic-gallery-note {
    right: 1%;
    bottom: 4%;
  }

  .relic-upload-scan {
    bottom: 3%;
    left: 3%;
  }

  .relic-favorites-quote {
    right: 2%;
    bottom: 3%;
  }

}

@media (max-width: 620px) {
  .decor-slot {
    --decor-opacity: 0.46;
  }

  .decor-framed {
    padding: 6px 6px 17px;
    box-shadow: 4px 5px 0 color-mix(in srgb, var(--pink) 48%, transparent);
  }

  .decor-framed::after {
    bottom: 4px;
    font-size: 5px;
  }

  .decor-hero-bow,
  .decor-gallery-wifi,
  .decor-upload-wing-right,
  .decor-favorites-pixels {
    display: none;
  }

  .decor-hero-heart {
    top: 1.5%;
    right: 5%;
    width: 38px;
  }

  .decor-hero-sparkles {
    bottom: 1%;
    left: 1%;
    width: 49px;
  }

  .decor-gallery-butterflies {
    top: 3%;
    right: -1%;
    width: 72px;
  }

  .decor-gallery-stars {
    right: 4%;
    bottom: 2.5%;
    width: 52px;
  }

  .decor-upload-wing-left {
    top: 1.5%;
    left: 70%;
    width: 78px;
  }

  .decor-upload-cat {
    right: -1%;
    bottom: 1.5%;
    width: 91px;
  }

  .decor-favorites-hearts {
    top: 2%;
    right: 2%;
    width: 64px;
  }

  .decor-favorites-mail {
    bottom: 1.5%;
    left: 0;
    width: 90px;
  }

  .text-relic {
    max-width: 190px;
    font-size: 10px;
    opacity: 0.62;
  }

  .relic-hero-signature {
    top: 42%;
    right: 0;
  }

  .relic-gallery-note {
    padding: 7px 9px;
  }

  .relic-favorites-quote {
    font-size: 12px;
  }

}

@media (max-width: 900px) {
  .detail-modal.is-editing .modal-content {
    grid-template-columns: 1fr;
  }

  .detail-modal.is-editing .modal-image-wrap {
    min-height: 410px;
    max-height: 56dvh;
  }

  .detail-modal.is-editing .modal-info {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .toast {
    bottom: 164px;
  }
}

@media (max-width: 620px) {
  .music-player {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    box-shadow: 6px 7px 0 color-mix(in srgb, var(--pink) 86%, transparent);
  }

  .music-player.is-collapsed {
    right: auto;
    width: min(238px, calc(100vw - 20px));
  }

  .music-player-body {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .music-disc {
    width: 45px;
  }

  .music-track-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5px 7px;
  }

  .music-track-select {
    grid-column: 1 / -1;
    height: 24px;
  }

  .music-progress-row {
    margin-top: 5px;
  }

  .music-controls {
    grid-template-columns: repeat(3, 29px) minmax(100px, 1fr);
    margin-top: 4px;
  }

  .music-control {
    height: 23px;
  }

  .cover-position-hint {
    max-width: calc(100% - 128px);
    padding-inline: 6px;
  }

  .edit-image-control {
    grid-template-columns: 1fr;
  }

  .edit-image-control button {
    width: 100%;
  }

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

  .modal-edit-actions > div,
  .edit-delete-confirm > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .edit-delete-trigger {
    width: 100%;
  }

  .edit-delete-confirm {
    grid-template-columns: 1fr;
  }

  .toast {
    bottom: 176px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .signal-track,
  .art-poster::after,
  .chrome-orbit,
  .poster-star,
  .empty-manifest b,
  .scan-line,
  .look-card.is-new,
  .decor-sticker,
  .relic-upload-scan b,
  .favorite-card,
  .music-disc,
  .music-equalizer i,
  .upload-section::before,
  .upload-section::after {
    animation: none !important;
  }

  .upload-section::before,
  .upload-section::after {
    transform: none !important;
    will-change: auto;
  }

  .music-player,
  .music-player-body,
  .music-collapse,
  .music-collapse span {
    transition: none !important;
  }

  .motion-ready .decor-field:not(.is-in-view) .decor-slot,
  .motion-ready .decor-field.is-in-view .decor-slot {
    transform: rotate(var(--decor-rotate)) !important;
    transition: opacity 0.16s ease !important;
  }

  .motion-ready .decor-field:not(.is-in-view) .text-relic,
  .motion-ready .decor-field.is-in-view .text-relic {
    transform: rotate(var(--relic-rotate)) !important;
    transition: opacity 0.16s ease !important;
  }

  .reveal {
    opacity: 0;
    transform: none !important;
    transition: opacity 0.16s ease !important;
  }

  .reveal.is-visible {
    opacity: 1;
  }

  .motion-ready [data-motion="hero-art"] .art-poster,
  .motion-ready [data-motion="hero-art"] .system-dialog,
  .motion-ready [data-motion="hero-art"] .file-sticker,
  .motion-ready [data-motion="hero-art"] .chrome-heart,
  .motion-ready [data-motion="hero-art"] .pixel-pointer,
  .motion-ready [data-motion="empty-state"] .empty-window,
  .motion-ready [data-motion="empty-state"] .empty-manifest {
    opacity: 0 !important;
    transform: none !important;
    transition: opacity 0.16s ease !important;
  }

  .motion-ready [data-motion="hero-art"].is-in-view .art-poster,
  .motion-ready [data-motion="hero-art"].is-in-view .system-dialog,
  .motion-ready [data-motion="hero-art"].is-in-view .file-sticker,
  .motion-ready [data-motion="hero-art"].is-in-view .chrome-heart,
  .motion-ready [data-motion="hero-art"].is-in-view .pixel-pointer,
  .motion-ready [data-motion="empty-state"].is-in-view .empty-window,
  .motion-ready [data-motion="empty-state"].is-in-view .empty-manifest {
    opacity: 1 !important;
    transform: none !important;
  }

  .detail-modal {
    animation: reducedFade 0.16s var(--ease-out);
  }

  .button:hover,
  .theme-toggle:hover,
  .look-card:hover,
  .look-card:hover img,
  .favorite-mark:hover,
  .favorite-card:hover,
  .preview-thumb,
  .modal-thumbnail,
  .text-link:hover span {
    transform: none !important;
  }

  .preview-thumb,
  .modal-thumbnail {
    transition: none !important;
  }
}

/* Public wardrobe and share pages */
.public-gallery-section {
  position: relative;
  min-height: 980px;
  padding-block: 138px 168px;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(23, 59, 228, 0.07) 49.8% 50%, transparent 50% 100%),
    radial-gradient(circle, rgba(23, 59, 228, 0.16) 0 1px, transparent 1.4px),
    var(--paper);
  background-size: auto, 13px 13px, auto;
  overflow: hidden;
}

.public-gallery-section::after {
  content: "PUBLIC / OPEN / LOOK";
  position: absolute;
  right: -2.5vw;
  bottom: 62px;
  color: rgba(23, 59, 228, 0.09);
  font-family: var(--display);
  font-size: clamp(88px, 16vw, 240px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.08em;
  pointer-events: none;
  transform: rotate(-5deg);
}

.public-gallery-section > .public-inner {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 8vw));
}

.decor-field-public {
  inset: 0 -5vw;
}

.public-decor-star {
  --decor-opacity: 0.56;
  --decor-rotate: -11deg;
  --float-x: 5px;
  --float-y: -9px;
  --float-duration: 9.2s;
  --enter-delay: 90ms;
  top: 15%;
  left: 2%;
  width: 86px;
}

.public-decor-wifi {
  --decor-opacity: 0.6;
  --decor-rotate: 8deg;
  --float-x: -4px;
  --float-y: -7px;
  --float-duration: 8.1s;
  --float-delay: -3.2s;
  right: 3%;
  bottom: 18%;
  width: 78px;
}

.public-relic {
  top: 8%;
  right: 17%;
  color: var(--pink);
  font-size: 12px;
  letter-spacing: 0.16em;
  transform: rotate(5deg);
}

.public-heading {
  display: grid;
  grid-template-columns: minmax(480px, 1fr) minmax(250px, 0.42fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-strong);
}

.public-heading h2 {
  max-width: 640px;
}

.public-heading-copy {
  display: grid;
  gap: 22px;
  align-self: end;
}

.public-heading-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.public-count {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  width: max-content;
  padding: 8px 10px;
  color: var(--blue);
  border: 1px solid var(--blue);
  background: var(--paper-bright);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  box-shadow: 4px 4px 0 var(--pink);
}

.public-count b {
  color: var(--pink);
  font-family: var(--display);
  font-size: 28px;
  line-height: 0.8;
}

.public-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px 19px;
  align-items: start;
}

.public-look-card {
  --public-rotate: 0deg;
  --public-y: 0px;
  position: relative;
  display: flex;
  grid-column: span 3;
  flex-direction: column;
  min-width: 0;
  color: var(--ink);
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: 8px 8px 0 var(--ice-deep);
  transform: translateY(var(--public-y)) rotate(var(--public-rotate));
  transition: transform 0.26s var(--ease-out), box-shadow 0.26s ease;
}

.public-look-card:nth-child(4n + 1) {
  grid-column: span 4;
  --public-rotate: -0.75deg;
}

.public-look-card:nth-child(4n + 2) {
  --public-y: 27px;
  --public-rotate: 0.8deg;
}

.public-look-card:nth-child(4n + 3) {
  --public-rotate: -0.25deg;
}

.public-look-card:nth-child(4n) {
  --public-y: 11px;
  --public-rotate: 0.45deg;
}

/* 固定 01–08 排版：内容按上传顺序占位，不随筛选或刷新随机变化 */
.public-look-card.public-layout-1 { grid-column: span 5; --public-y: 0px; --public-rotate: -0.9deg; }
.public-look-card.public-layout-2 { grid-column: span 3; --public-y: 40px; --public-rotate: 1.1deg; }
.public-look-card.public-layout-3 { grid-column: span 4; --public-y: 8px; --public-rotate: -0.35deg; }
.public-look-card.public-layout-4 { grid-column: span 3; --public-y: 24px; --public-rotate: 0.8deg; }
.public-look-card.public-layout-5 { grid-column: span 4; --public-y: 0px; --public-rotate: -0.65deg; }
.public-look-card.public-layout-6 { grid-column: span 5; --public-y: 34px; --public-rotate: 0.45deg; }
.public-look-card.public-layout-7 { grid-column: span 3; --public-y: 12px; --public-rotate: -1deg; }
.public-look-card.public-layout-8 { grid-column: span 4; --public-y: 42px; --public-rotate: 0.7deg; }

.public-layout-1 .public-look-image-wrap { aspect-ratio: 0.76; }
.public-layout-2 .public-look-image-wrap { aspect-ratio: 0.68; }
.public-layout-3 .public-look-image-wrap { aspect-ratio: 0.94; }
.public-layout-4 .public-look-image-wrap { aspect-ratio: 0.72; }
.public-layout-5 .public-look-image-wrap { aspect-ratio: 0.84; }
.public-layout-6 .public-look-image-wrap { aspect-ratio: 1.06; }
.public-layout-7 .public-look-image-wrap { aspect-ratio: 0.7; }
.public-layout-8 .public-look-image-wrap { aspect-ratio: 0.9; }

.public-look-card:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 5px;
}

.public-look-image-wrap {
  position: relative;
  aspect-ratio: 0.82;
  overflow: hidden;
  background: var(--ice);
}

.public-look-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(138deg, transparent 0 56%, rgba(255, 255, 255, 0.18) 56% 60%, transparent 60%);
  mix-blend-mode: screen;
}

.public-look-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 4px);
  transition: opacity 0.2s ease;
}

.public-look-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 0.35s var(--ease-out), filter 0.2s ease;
}

.public-look-index,
.public-look-code,
.public-look-open {
  position: absolute;
  z-index: 3;
  padding: 5px 7px;
  color: #fff;
  background: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.public-look-index {
  top: 10px;
  left: 10px;
}

.public-look-code {
  right: 10px;
  bottom: 10px;
  color: var(--ink);
  background: var(--lime);
}

.public-look-open {
  right: 10px;
  top: 10px;
  color: var(--ink);
  background: var(--pink);
}

.public-look-meta {
  min-height: 110px;
  padding: 12px 13px 13px;
  border-top: 1px solid var(--ink);
  background:
    radial-gradient(circle, rgba(23, 59, 228, 0.18) 0 1px, transparent 1.2px),
    var(--paper-bright);
  background-size: 8px 8px;
}

.public-look-meta small {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.public-look-meta h3 {
  margin: 5px 0 3px;
  padding-bottom: 0.08em;
  overflow: hidden;
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1.14;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-look-meta p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-empty-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  min-height: 250px;
  padding: clamp(28px, 5vw, 70px);
  border: 1px dashed var(--blue);
  background:
    linear-gradient(135deg, rgba(23, 59, 228, 0.08) 25%, transparent 25% 50%, rgba(23, 59, 228, 0.08) 50% 75%, transparent 75%),
    var(--paper-bright);
  background-size: 28px 28px;
  box-shadow: 8px 8px 0 var(--pink);
}

.public-empty-code {
  margin-bottom: 32px;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.public-empty-state strong {
  color: var(--blue);
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.public-empty-state p {
  max-width: 470px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.share-section {
  position: relative;
  min-height: calc(100dvh - 72px);
  padding-block: 80px 150px;
  scroll-margin-top: var(--anchor-offset);
}

.share-section::before {
  content: "SHARE / KEEP / ERA";
  position: absolute;
  top: 18px;
  right: 0;
  color: rgba(23, 59, 228, 0.1);
  font-family: var(--display);
  font-size: clamp(65px, 10vw, 148px);
  font-weight: 900;
  letter-spacing: -0.08em;
  pointer-events: none;
  transform: rotate(-4deg);
}

.share-inner {
  position: relative;
  z-index: 1;
}

.share-kicker {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  color: var(--blue);
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.share-layout {
  display: grid;
  grid-template-columns: minmax(440px, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(48px, 9vw, 140px);
  align-items: center;
  padding-top: 54px;
}

.share-poster-shell {
  position: relative;
  padding: 13px 13px 16px;
  border: 1px solid var(--ink);
  background: var(--blue);
  box-shadow: 13px 14px 0 var(--pink);
  transform: rotate(-1.4deg);
}

.share-poster-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
  padding: 0 9px;
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.share-poster-bar a {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: var(--blue);
  background: var(--lime);
  font-size: 20px;
  line-height: 1;
}

.share-poster-frame {
  position: relative;
  aspect-ratio: 0.82;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--ice);
}

.share-poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.06);
}

.share-poster-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background: radial-gradient(circle, #173be4 0 1px, transparent 1.5px);
  background-size: 13px 13px;
  mix-blend-mode: multiply;
}

.share-poster-watermark {
  position: absolute;
  right: 5%;
  bottom: 7%;
  z-index: 2;
  color: #fff;
  font-size: clamp(31px, 5vw, 66px);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-shadow: 4px 4px 0 var(--blue), 7px 7px 0 var(--pink);
  transform: rotate(-7deg);
}

.share-poster-caption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 5px 7px;
  color: var(--ink);
  background: var(--lime);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.share-copy {
  max-width: 520px;
}

.share-copy h1 {
  max-width: 560px;
  margin: 0 0 20px;
  color: var(--blue);
  font-size: clamp(66px, 8vw, 120px);
  line-height: 0.84;
  letter-spacing: -0.06em;
}

.share-copy > p:not(.eyebrow) {
  max-width: 430px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.share-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 26px;
}

.share-tags span {
  padding: 6px 9px;
  color: var(--blue);
  border: 1px solid var(--blue);
  background: var(--paper-bright);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
}

.share-code-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  align-items: center;
  width: min(100%, 430px);
  margin-bottom: 25px;
  padding: 16px;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: 6px 6px 0 var(--ice-deep);
}

.share-code-card small {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.share-code-card strong {
  color: var(--pink);
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: 0.14em;
}

.share-code-card span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.share-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.share-back-link {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

body.is-share-route main > *,
body.is-share-route .site-footer,
body.is-share-route .music-player {
  display: none;
}

body.is-share-route #share-view {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .public-look-card:hover {
    z-index: 4;
    box-shadow: 13px 14px 0 var(--pink);
    transform: translateY(calc(var(--public-y) - 8px)) rotate(0);
  }

  .public-look-card:hover .public-look-image-wrap::after {
    opacity: 0.05;
  }

  .public-look-card:hover .public-look-image-wrap img {
    filter: saturate(1.1) contrast(1.03);
    transform: scale(1.045);
  }
}

@media (max-width: 900px) {
  .public-heading,
  .share-layout {
    grid-template-columns: 1fr;
  }

  .public-heading {
    gap: 27px;
  }

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

  .public-look-card,
  .public-look-card:nth-child(4n + 1) {
    grid-column: span 1;
  }

  .public-look-card:nth-child(n) {
    --public-y: 0px;
  }

  .share-layout {
    gap: 70px;
  }

  .share-poster-shell {
    width: min(100%, 670px);
  }
}

@media (max-width: 620px) {
  .public-gallery-section {
    min-height: 0;
    padding-block: 95px 120px;
  }

  .public-gallery-section > .public-inner {
    width: min(100% - 34px, 1320px);
  }

  .public-heading {
    margin-bottom: 34px;
  }

  .public-gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .public-look-card,
  .public-look-card:nth-child(4n + 1) {
    grid-column: 1 / -1;
  }

  .public-look-card:nth-child(n) {
    --public-rotate: 0deg;
  }

  .public-look-image-wrap {
    aspect-ratio: 1.02;
  }

  .public-relic {
    display: none;
  }

  .share-section {
    min-height: 0;
    padding-block: 48px 110px;
  }

  .share-kicker {
    display: grid;
    gap: 7px;
    font-size: 8px;
  }

  .share-layout {
    gap: 52px;
    padding-top: 34px;
  }

  .share-poster-shell {
    padding: 8px 8px 10px;
    box-shadow: 8px 9px 0 var(--pink);
  }

  .share-poster-bar {
    min-height: 27px;
    font-size: 7px;
  }

  .share-copy h1 {
    font-size: clamp(57px, 17vw, 88px);
  }

  .share-actions {
    display: grid;
  }

  .share-actions .button {
    width: 100%;
  }
}

@media (hover: hover) and (pointer: fine) {
  .empty-manifest {
    transform-style: preserve-3d;
    will-change: transform;
  }

  .empty-manifest::before {
    content: "";
    position: absolute;
    top: -8%;
    left: -22%;
    z-index: 2;
    width: 144%;
    height: 3px;
    opacity: 0.42;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--lime) 26%, #fff 50%, var(--pink) 74%, transparent);
    box-shadow: 0 0 18px 5px rgba(212, 255, 70, 0.35);
    transform: translateY(-74px) rotate(-3deg);
    animation: emptyManifestScan 5.6s linear infinite;
    transition: opacity 0.24s ease;
  }

  .empty-manifest.is-hovered {
    box-shadow: 13px 15px 0 var(--pink), 0 0 0 5px rgba(23, 59, 228, 0.08);
  }

  .empty-manifest.is-hovered::before {
    opacity: 0.95;
  }

  .empty-manifest.is-hovered::after {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
  }

  .empty-manifest b {
    transform-origin: center;
    transition: transform 0.3s var(--ease-out), color 0.25s ease;
  }

  .empty-manifest.is-hovered b {
    color: var(--lime);
    transform: rotate(12deg) scale(1.14);
  }
}

@keyframes emptyManifestScan {
  0% { transform: translate3d(0, -74px, 0) rotate(-3deg); }
  100% { transform: translate3d(0, 370px, 0) rotate(-3deg); }
}

@media (prefers-reduced-motion: reduce) {
  .empty-manifest,
  .empty-manifest::before,
  .empty-manifest::after,
  .empty-manifest b {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-look-card,
  .public-look-card:hover,
  .public-look-image-wrap img,
  .public-look-image-wrap::after {
    transition: none !important;
  }

  .public-look-card:hover {
    transform: translateY(var(--public-y)) rotate(var(--public-rotate));
  }
}

/* 保留原生滚动条的安全边距，装饰不再压到右侧滚动区域 */
html {
  scrollbar-gutter: stable;
}

.signal-strip {
  position: relative;
  z-index: 20;
  isolation: isolate;
}

.public-gallery-section {
  isolation: isolate;
  z-index: 1;
  overflow: hidden;
}

.decor-field-public {
  inset: 0 18px 0 0;
  overflow: hidden;
}

/* Interaction motion: the response follows the gesture instead of restarting a loop */
.dropzone {
  transition: background-color 0.22s ease, box-shadow 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

.dropzone.is-dragging {
  background: var(--lime);
  box-shadow: 0 0 0 4px var(--pink), 10px 11px 0 var(--blue-deep);
  transform: translate3d(0, -3px, 0);
}

.dropzone .import-symbol {
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s ease;
}

.dropzone.is-dragging .import-symbol {
  box-shadow: 0 0 0 5px var(--pink), 7px 8px 0 var(--blue-deep);
  transform: rotate(90deg) scale(1.06);
}

.empty-manifest::after {
  transition: transform 0.45s var(--ease-out), border-color 0.25s ease;
}

@keyframes favoriteFeedback {
  0% { transform: scale(1) rotate(0deg); }
  42% { transform: scale(1.22) rotate(-8deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.favorite-mark.is-feedback {
  animation: favoriteFeedback 0.46s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .dropzone,
  .dropzone .import-symbol {
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
    transform: none !important;
  }

  .dropzone.is-dragging .import-symbol {
    transform: none !important;
  }

  .favorite-mark.is-feedback {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .public-gallery-grid .public-look-card.public-layout-1,
  .public-gallery-grid .public-look-card.public-layout-2,
  .public-gallery-grid .public-look-card.public-layout-3,
  .public-gallery-grid .public-look-card.public-layout-4,
  .public-gallery-grid .public-look-card.public-layout-5,
  .public-gallery-grid .public-look-card.public-layout-6,
  .public-gallery-grid .public-look-card.public-layout-7,
  .public-gallery-grid .public-look-card.public-layout-8 {
    grid-column: span 1;
    --public-y: 0px;
  }
}

@media (max-width: 620px) {
  .public-gallery-grid .public-look-card.public-layout-1,
  .public-gallery-grid .public-look-card.public-layout-2,
  .public-gallery-grid .public-look-card.public-layout-3,
  .public-gallery-grid .public-look-card.public-layout-4,
  .public-gallery-grid .public-look-card.public-layout-5,
  .public-gallery-grid .public-look-card.public-layout-6,
  .public-gallery-grid .public-look-card.public-layout-7,
  .public-gallery-grid .public-look-card.public-layout-8 {
    grid-column: 1 / -1;
  }
}

/* Readability floor: interface copy stays legible without flattening decorative hierarchy. */
.skip-link,
.brand-text small,
.nav-link,
.nav-link span,
.theme-toggle,
.hero-kicker,
.poster-topline,
.scan-frame-bar,
.dialog-title,
.empty-window-bar,
.workspace-bar,
.favorites-stage-bar,
.modal-titlebar,
.hero-look-loaded small,
.hero-look-loaded span,
.no-look small,
.no-look span,
.dialog-body strong,
.dialog-body p,
.dialog-actions span,
.file-sticker span,
.text-relic,
.section-number small,
.eyebrow,
.toolbar-label,
.filter-tab,
.favorite-filter,
.tag-filter-label,
.tag-filter-button,
.look-image-count,
.look-card-meta small,
.look-card-meta p,
.gallery-page-button,
.empty-window-body small,
.upload-rules span,
.upload-rules b,
.dropzone::before,
.cover-position-hint,
.cover-position-reset,
.preview-main-label,
.preview-count,
.preview-thumb span,
.preview-remove,
.preview-add,
.form-heading,
.field-group label span,
.field-group > small,
.custom-game-confirm,
.custom-game-editor small,
.local-save-copy strong,
.local-save-copy small,
.folder-picker,
.form-submit-row p,
.favorite-stamp,
.text-link,
.favorite-card figcaption,
.favorite-card figcaption small,
.footer-inner > div span,
.footer-inner p,
.footer-inner a,
.footer-era-note,
.music-player-titlebar,
.music-collapse,
.music-disc span,
.music-track-count,
.music-track-copy small,
.music-track-select,
.music-progress-row,
.music-control,
.music-volume,
.modal-image-count,
.modal-tags span,
.modal-idea small,
.edit-cover-heading strong,
.edit-cover-heading small,
.edit-cover-heading button,
.edit-image-control button,
.edit-delete-trigger,
.edit-delete-confirm button,
.edit-image-control p,
.edit-delete-confirm p,
.edit-delete-confirm p span,
.toast,
.button,
.public-count,
.public-look-index,
.public-look-code,
.public-look-open,
.public-look-meta small,
.public-look-meta p,
.public-empty-code,
.share-kicker,
.share-poster-bar,
.share-poster-caption,
.share-tags span,
.share-code-card small,
.share-back-link {
  font-size: var(--font-readable-min);
}

.text-relic {
  font-size: clamp(var(--font-readable-min), 1vw, 15px);
}

/* Tiny labels below this line are visual texture, not required instructions. */
.hero::before,
.decor-framed::after,
.text-relic small,
.empty-manifest span,
.empty-manifest i,
.gallery-page-status small,
.modal-thumbnail-main {
  font-size: var(--font-decorative-min);
}
