/* ==========================================================================
   FLOODX_ · 一个有点怪的滚轮主页
   ========================================================================== */

:root {
  color-scheme: light;
  --navy: #071b38;
  --navy-soft: #12345e;
  --blue: #1f5cff;
  --blue-deep: #1446c9;
  --blue-soft: #dcecff;
  --ice: #e9f5ff;
  --paper: #fffdf7;
  --cream: #fff0cd;
  --yellow: #ffd447;
  --orange: #ff9f1c;
  --pink: #ff8fb1;
  --muted: #5a7290;
  --line: #071b38;
  --shadow: 6px 6px 0 var(--navy);
  --shadow-sm: 3px 3px 0 var(--navy);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  --display: "Arial Black", "Helvetica Neue", "PingFang SC", sans-serif;
  --hand: "Chalkboard SE", "Comic Sans MS", "Marker Felt", var(--sans);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ice);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

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

::selection {
  background: var(--yellow);
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border: 2px solid var(--navy);
  background: var(--paper);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

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

/* Fixed bits ------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 18px;
  left: 22px;
  z-index: 40;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 9px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transform: rotate(-2deg);
  transition: transform 0.2s var(--ease);
}

.logo:hover {
  transform: rotate(2deg) translateY(-2px);
}

.logo-name {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.logo .name-underscore {
  color: var(--orange);
}

.logo-badge {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  transform: rotate(8deg);
}

.section-rail {
  position: fixed;
  top: 50%;
  right: 20px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-50%);
}

.rail-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--navy);
  border-radius: 12px;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--navy);
  transform: rotate(2deg);
  transition: background 0.2s ease, color 0.2s ease,
    transform 0.2s var(--ease);
}

.rail-link:nth-child(2) {
  transform: rotate(-2deg);
}

.rail-link:hover,
.rail-link.is-active {
  background: var(--yellow);
  color: var(--navy);
  transform: rotate(-4deg) scale(1.05);
}

/* Scroll sections -------------------------------------------------------- */

.snap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Hero ------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 212, 71, 0.75) 0 12px, transparent 13px),
    radial-gradient(circle at 82% 72%, rgba(31, 92, 255, 0.16) 0 9px, transparent 10px),
    linear-gradient(135deg, #f4fbff, var(--ice) 52%, #dcecff);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(7, 27, 56, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 27, 56, 0.08) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(180deg, #000, transparent 88%);
}

.hero::after {
  content: "";
  position: absolute;
  top: -130px;
  right: 73%;
  width: 420px;
  height: 420px;
  border: 3px dashed rgba(31, 92, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 6vw, 86px);
  width: min(1320px, calc(100% - 96px));
  margin: 0 auto;
  padding: 92px 0 110px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--navy);
  font-family: var(--hand);
  font-weight: 700;
  line-height: 1;
  transform: rotate(-5deg);
}

.sticker-hello {
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 17px;
}

.hero-name {
  margin: 10px 0 0 -6px;
  font-family: var(--display);
  font-size: clamp(4.2rem, 10.7vw, 9.2rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.085em;
  text-transform: uppercase;
  color: var(--navy);
  text-shadow: 6px 6px 0 var(--yellow);
}

.hero-name .name-underscore {
  color: var(--blue);
  text-shadow: 6px 6px 0 var(--orange);
}

.hero-role {
  display: inline-block;
  margin-top: 25px;
  padding-bottom: 4px;
  border-bottom: 4px wavy var(--blue);
  color: var(--blue);
  font-family: var(--hand);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  transform: rotate(-2deg);
}

.hero-intro {
  max-width: 470px;
  margin-top: 13px;
  color: var(--navy-soft);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 500;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

.btn-bili,
.btn-scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 21px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn-bili {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

.btn-bili svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-bili .bili-play {
  fill: currentColor;
  stroke: none;
}

.btn-bili:hover {
  background: var(--navy);
  transform: rotate(1deg) translateY(-4px);
  box-shadow: 8px 8px 0 var(--yellow);
}

.btn-scroll {
  background: var(--paper);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  transform: rotate(1.5deg);
}

.btn-scroll:hover {
  background: var(--yellow);
  transform: rotate(-1deg) translateY(-3px);
}

.scroll-arrow {
  font-size: 19px;
  animation: bounce-down 1.4s ease-in-out infinite;
}

.btn-arrow {
  color: var(--yellow);
  font-size: 16px;
}

.hero-art {
  position: relative;
  justify-self: center;
  width: min(410px, 100%);
  padding: 22px 18px 30px;
}

.hero-big-27 {
  position: absolute;
  top: 8%;
  left: 49%;
  z-index: 0;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(12rem, 24vw, 22rem);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: -0.1em;
  -webkit-text-stroke: 2px rgba(7, 27, 56, 0.16);
  pointer-events: none;
  transform: translateX(-50%) rotate(-5deg);
}

.avatar-card {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding: 14px;
  border: 3px solid var(--navy);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--blue);
  transform: rotate(3deg);
  transition: transform 0.35s var(--ease);
}

.avatar-card:hover {
  transform: rotate(-1deg) translateY(-4px);
}

.persona-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--navy);
  border-radius: 20px;
  background: #dceeff;
}

.persona-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tape {
  position: absolute;
  top: -17px;
  left: 50%;
  z-index: 4;
  padding: 6px 16px;
  border: 2px solid var(--navy);
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 3px 3px 0 var(--navy);
  transform: translateX(-50%) rotate(-4deg);
}

.googly {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: #fff;
  box-shadow: 2px 2px 0 var(--navy);
}

.googly i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--navy);
  animation: look-around 3.8s ease-in-out infinite;
}

.googly-one {
  top: 34px;
  right: 34px;
  transform: rotate(6deg);
}

.googly-two {
  bottom: 82px;
  left: 26px;
  width: 34px;
  height: 34px;
  transform: rotate(-8deg);
}

.googly-two i {
  width: 12px;
  height: 12px;
  animation-delay: 1.2s;
}

.sticker-random {
  position: absolute;
  right: -16px;
  bottom: 42px;
  z-index: 5;
  padding: 9px 14px;
  border-radius: 9px;
  background: var(--orange);
  font-size: 16px;
  transform: rotate(6deg);
}

.element-sticker {
  position: absolute;
  bottom: -5px;
  left: -20px;
  z-index: 5;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 15px 6px;
  border: 3px solid var(--navy);
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  box-shadow: 4px 4px 0 var(--navy);
  transform: rotate(-7deg);
}

.element-sticker b {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
}

.element-sticker small {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.goo-blob {
  position: absolute;
  top: 13%;
  left: -33px;
  z-index: 4;
  width: 82px;
  height: 70px;
  border: 2px solid var(--navy);
  border-radius: 56% 44% 62% 38% / 52% 58% 42% 48%;
  background: var(--orange);
  box-shadow: 3px 3px 0 var(--navy);
  transform: rotate(-12deg);
  animation: blob-wiggle 4s ease-in-out infinite;
}

.goo-blob span {
  position: absolute;
  top: 23px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  background: var(--navy);
}

.goo-blob span:first-child {
  left: 24px;
}

.goo-blob span:last-child {
  right: 24px;
}

.doodle-arrow {
  position: absolute;
  right: -38px;
  bottom: 92px;
  z-index: 4;
  width: 108px;
  height: 62px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-8deg);
}

.hero-doodle {
  position: absolute;
  z-index: 1;
  font-family: var(--display);
  color: var(--blue);
  pointer-events: none;
}

.hero-doodle-a {
  top: 15%;
  left: 7%;
  font-size: clamp(4rem, 8vw, 7rem);
  color: var(--orange);
  transform: rotate(12deg);
}

.hero-doodle-b {
  right: 8%;
  bottom: 20%;
  font-size: clamp(5rem, 12vw, 10rem);
  color: rgba(31, 92, 255, 0.18);
  transform: rotate(-12deg);
}

.marquee {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  overflow: hidden;
  border-top: 3px solid var(--navy);
  border-bottom: 3px solid var(--navy);
  background: var(--yellow);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
}

.marquee-track span {
  padding: 9px 22px;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(0.85rem, 1.5vw, 1.15rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Archive ---------------------------------------------------------------- */

.archive {
  background: var(--blue-deep);
  color: #fff;
}

.archive::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 2px, transparent 2.5px);
  background-size: 42px 42px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at 72% 46%, #000 0 37%, transparent 74%);
}

.archive::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 280px;
  height: 280px;
  border: 26px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.archive-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(26px, 4vw, 58px);
  width: min(1320px, calc(100% - 96px));
  margin: 0 auto;
  padding: 80px 0 50px;
}

.archive-copy {
  position: relative;
}

.sticker-number {
  padding: 7px 11px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  transform: rotate(-6deg);
}

.archive-copy h2 {
  margin: 15px 0 0 -4px;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(3.8rem, 7.8vw, 7rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.085em;
  text-shadow: 6px 6px 0 rgba(7, 27, 56, 0.7);
}

.archive-lead {
  margin-top: 25px;
  color: #dceaff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

.archive-stats {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 25px;
}

.archive-stats strong {
  color: var(--yellow);
  font-family: var(--display);
  font-size: clamp(3.2rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.9;
  text-shadow: 4px 4px 0 rgba(7, 27, 56, 0.55);
}

.archive-stats span {
  color: #dceaff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.archive-stats b {
  color: #fff;
  font-weight: 700;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  margin-top: 26px;
  padding: 0 18px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transform: rotate(-1.5deg);
  transition: transform 0.2s var(--ease), background 0.2s ease;
}

.upload-btn:hover {
  background: #fff;
  transform: rotate(1deg) translateY(-3px);
}

.upload-plus {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.archive-panel-wrap {
  min-width: 0;
}

.asset-panel {
  max-height: min(62vh, 630px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 3px solid var(--navy);
  border-radius: 24px;
  background: var(--paper);
  color: var(--navy);
  box-shadow: 8px 8px 0 var(--navy);
  scrollbar-width: thin;
}

.asset-panel::-webkit-scrollbar {
  width: 8px;
}

.asset-panel::-webkit-scrollbar-thumb {
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--blue);
}

.asset-head-row {
  display: none;
}

.asset-list {
  min-height: 120px;
}

.asset-folder {
  position: relative;
}

.asset-folder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 17px;
  border-bottom: 2px solid var(--navy);
  background: var(--yellow);
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background 0.18s ease;
}

.asset-folder.depth-1 > .asset-folder-head {
  padding-left: 32px;
  background: #fff4c6;
}

.asset-folder.depth-2 > .asset-folder-head {
  padding-left: 47px;
  background: #fff9dd;
}

.asset-folder-head:hover {
  background: #ffe680;
}

.asset-folder-head::-webkit-details-marker {
  display: none;
}

.asset-folder-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.asset-folder-chevron {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  color: var(--navy);
  transition: transform 0.2s var(--ease);
}

.asset-folder-chevron svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.asset-folder[open] > .asset-folder-head .asset-folder-chevron {
  transform: rotate(90deg);
}

.asset-folder-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.asset-folder-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.asset-folder-name {
  overflow: hidden;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-folder.is-sub .asset-folder-name {
  font-size: 13px;
  font-weight: 700;
}

.asset-folder-count {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.7;
}

.asset-folder-content {
  overflow: hidden;
}

.asset-folder:not([open]) > .asset-folder-content {
  display: none;
}

.asset-folder[open] > .asset-folder-content {
  animation: reveal 0.2s var(--ease);
}

.asset-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 17px;
  border-bottom: 2px solid var(--navy);
  background: var(--paper);
  animation: row-in 0.3s var(--ease) both;
  transition: background 0.16s ease;
}

.asset-folder.is-sub > .asset-folder-content > .asset-row {
  padding-left: 32px;
}

.asset-folder.depth-2 > .asset-folder-content > .asset-row {
  padding-left: 47px;
}

.asset-row:last-child {
  border-bottom: 0;
}

.asset-row:hover {
  background: #eaf4ff;
}

.asset-type {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--navy);
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--navy);
}

.asset-type.type-jar,
.asset-type.type-archive {
  background: var(--yellow);
  color: var(--navy);
}

.asset-type.type-image {
  background: var(--pink);
  color: var(--navy);
}

.asset-main {
  min-width: 0;
}

.asset-name {
  display: block;
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-name:hover {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.asset-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 3px;
}

.asset-mobile-meta {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.group-picker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
}

.group-select {
  max-width: 190px;
  padding: 1px 15px 1px 4px;
  border: 1px solid rgba(7, 27, 56, 0.2);
  border-radius: 5px;
  background: #fff;
  color: var(--navy);
  font-size: 9px;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 7px) 50%, calc(100% - 4px) 50%;
  background-repeat: no-repeat;
  background-size: 3px 3px;
}

.asset-size,
.asset-date {
  display: none;
}

.asset-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 11px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--navy);
  transition: transform 0.16s ease, background 0.16s ease;
}

.download-btn:hover {
  background: var(--yellow);
  transform: translate(-1px, -1px);
}

.download-btn svg,
.delete-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.delete-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid transparent;
  border-radius: 50%;
  color: var(--muted);
  transition: border-color 0.16s ease, background 0.16s ease,
    color 0.16s ease;
}

.delete-btn:hover {
  border-color: var(--navy);
  background: var(--pink);
  color: var(--navy);
}

.assets-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #dceaff;
  font-size: 10px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  background: var(--muted);
}

.assets-status.is-online .status-dot {
  background: var(--green, #5be0a0);
}

.assets-status.is-offline .status-dot {
  background: var(--orange);
}

.assets-status code {
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--mono);
  font-size: 9px;
}

.public-mode .upload-btn,
.public-mode .delete-btn,
.public-mode .group-picker,
.public-mode .empty-upload {
  display: none !important;
}

.list-loading,
.file-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  padding: 24px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.list-loading {
  flex-direction: row;
  font-weight: 600;
}

.list-loading > span {
  width: 9px;
  height: 9px;
  border: 2px solid var(--blue);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--navy);
  border-radius: 12px;
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 3px 3px 0 var(--navy);
}

.empty-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-empty h3 {
  color: var(--navy);
  font-size: 15px;
}

.file-empty p {
  max-width: 280px;
  color: var(--muted);
  font-size: 11px;
}

.empty-upload {
  margin-top: 4px;
  padding: 8px 13px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--navy);
}

/* Profile / About -------------------------------------------------------- */

.profile {
  background:
    radial-gradient(700px 520px at 16% 14%, rgba(31, 92, 255, 0.28), transparent 66%),
    radial-gradient(520px 460px at 88% 82%, rgba(255, 212, 71, 0.08), transparent 68%),
    var(--navy);
  color: #edf5ff;
}

.profile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(237, 245, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 245, 255, 0.045) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: linear-gradient(180deg, #000, transparent 92%);
}

.profile-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
  width: min(1320px, calc(100% - 96px));
  margin: 0 auto;
  padding: 78px 0 55px;
}

.profile-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: min(72vh, 720px);
  min-height: 460px;
}

.profile-blob {
  position: absolute;
  top: 7%;
  left: 50%;
  width: 84%;
  aspect-ratio: 1;
  border: 3px solid #edf5ff;
  border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.8) 0 12px, transparent 13px),
    var(--yellow);
  box-shadow: 9px 9px 0 #edf5ff;
  transform: translateX(-50%) rotate(-6deg);
}

.profile-cutout {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.32));
}

.profile-tape {
  position: absolute;
  top: -2px;
  left: 50%;
  z-index: 4;
  padding: 6px 16px;
  border: 2px solid var(--navy);
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 3px 3px 0 var(--navy);
  transform: translateX(-50%) rotate(-4deg);
}

.profile-sticker {
  position: absolute;
  right: 0;
  bottom: 7%;
  z-index: 4;
  padding: 9px 14px;
  border-radius: 9px;
  background: var(--orange);
  font-size: 16px;
  transform: rotate(6deg);
}

.profile-eye {
  position: absolute;
  top: 26%;
  left: 4%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: #fff;
  box-shadow: 2px 2px 0 var(--navy);
  transform: rotate(-7deg);
}

.profile-eye i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--navy);
  animation: look-around 4s ease-in-out infinite;
}

.profile-copy {
  position: relative;
  min-width: 0;
}

.profile-overline {
  margin-top: 13px;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.profile-copy h2 {
  margin: 8px 0 0 -4px;
  color: #edf5ff;
  font-family: var(--display);
  font-size: clamp(3.3rem, 6.4vw, 6rem);
  font-weight: 900;
  line-height: 0.83;
  letter-spacing: -0.085em;
  text-shadow: 5px 5px 0 var(--blue);
}

.profile-lead {
  max-width: 620px;
  margin-top: 18px;
  color: var(--yellow);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
}

.profile-lore {
  max-width: 650px;
  margin-top: 9px;
  color: #c5d9ee;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.85;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.profile-tags span {
  padding: 4px 10px;
  border: 2px solid #edf5ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #edf5ff;
  font-size: 11px;
  font-weight: 700;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(237, 245, 255, 0.2);
}

.profile-facts h3,
.profile-gear h3 {
  color: var(--yellow);
  font-family: var(--hand);
  font-size: 14px;
  font-weight: 700;
}

.profile-facts p {
  margin-top: 3px;
  color: #c5d9ee;
  font-size: 12px;
  line-height: 1.7;
}

.profile-gear {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(237, 245, 255, 0.2);
}

.profile-gear ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 16px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.profile-gear li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #edf5ff;
  font-size: 11.5px;
  line-height: 1.55;
}

.profile-gear li span {
  flex: 0 0 48px;
  color: #8faac4;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.profile-contact {
  margin-top: 14px;
  color: #7f9fbe;
  font-size: 10px;
}

/* Story ------------------------------------------------------------------ */

.story {
  background:
    radial-gradient(circle at 12% 16%, rgba(31, 92, 255, 0.2) 0 9px, transparent 10px),
    radial-gradient(circle at 88% 84%, rgba(255, 159, 28, 0.3) 0 12px, transparent 13px),
    var(--cream);
  background-size: 58px 58px, 76px 76px, auto;
}

.story-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  width: min(1240px, calc(100% - 96px));
  margin: 0 auto;
  padding: 90px 0 80px;
}

.story-art {
  position: relative;
  min-height: 460px;
}

.story-art::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 340px;
  border: 3px dashed var(--blue);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.story-poster {
  position: absolute;
  bottom: 0;
  margin: 0;
  overflow: hidden;
  border: 3px solid var(--navy);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.story-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 10px 14px rgba(7, 27, 56, 0.18));
}

.story-poster-boy {
  left: 3%;
  z-index: 1;
  width: 47%;
  aspect-ratio: 3 / 4;
  transform: rotate(-6deg);
}

.story-poster-teacher {
  right: 3%;
  z-index: 2;
  width: 47%;
  aspect-ratio: 3 / 4;
  transform: rotate(5deg);
}

.story-x {
  position: absolute;
  top: 43%;
  left: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--display);
  font-size: 25px;
  line-height: 1;
  box-shadow: 3px 3px 0 var(--navy);
  transform: translate(-50%, -50%) rotate(8deg);
}

.sticker-story {
  position: absolute;
  top: 25px;
  left: 50%;
  z-index: 5;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--orange);
  font-size: 17px;
  transform: translateX(-50%) rotate(-6deg);
}

.doodle-heart {
  position: absolute;
  right: -10px;
  bottom: 10px;
  z-index: 4;
  width: 72px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(8deg);
}

.story-copy {
  position: relative;
}

.story-copy h2 {
  margin: 14px 0 0 -5px;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(4rem, 8.6vw, 7.5rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.09em;
  text-shadow: 6px 6px 0 var(--blue-soft);
}

.story-desc {
  max-width: 500px;
  margin-top: 22px;
  color: var(--navy-soft);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
}

.story-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.story-badges span {
  padding: 5px 11px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--navy);
}

.story-badges span:nth-child(2) {
  background: var(--blue);
  color: #fff;
}

.story-badges span:nth-child(3) {
  background: var(--yellow);
}

.story-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin-top: 26px;
  padding: 0 22px;
  border: 3px solid var(--navy);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
  transition: transform 0.2s var(--ease), background 0.2s ease;
}

.story-cta:hover {
  background: var(--orange);
  color: var(--navy);
  transform: rotate(1deg) translateY(-4px);
}

.cta-arrow {
  font-size: 20px;
}

.story-note {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 8px;
  border: 2px solid var(--navy);
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  font-family: var(--hand);
  font-size: 12px;
  transform: rotate(-2deg);
}

.end-stamp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1240px, calc(100% - 96px));
  margin: 0 auto;
  padding: 0 0 24px;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.end-stamp a {
  font-family: var(--hand);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Upload dialog ---------------------------------------------------------- */

.upload-dialog {
  width: min(540px, calc(100% - 28px));
  max-height: min(88vh, 760px);
  padding: 0;
  overflow: auto;
  border: 3px solid var(--navy);
  border-radius: 22px;
  background: var(--paper);
  color: var(--navy);
  box-shadow: 10px 10px 0 var(--navy);
}

.upload-dialog::backdrop {
  background: rgba(7, 27, 56, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 15px;
  border-bottom: 2px solid var(--navy);
}

.dialog-kicker {
  color: var(--orange);
  font-family: var(--hand);
  font-size: 12px;
  font-weight: 700;
}

.dialog-head h2 {
  margin-top: 4px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 19px;
  line-height: 1;
  box-shadow: 2px 2px 0 var(--navy);
}

.dialog-close:hover {
  background: var(--yellow);
}

.upload-group-field {
  padding: 16px 24px 0;
}

.upload-group-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.upload-group-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 2px solid var(--navy);
  border-radius: 9px;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  outline: none;
}

.upload-group-field input:focus {
  box-shadow: 3px 3px 0 var(--yellow);
}

.upload-group-field p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.dropzone {
  margin: 16px 24px 0;
  padding: 30px 18px;
  border: 3px dashed var(--blue);
  border-radius: 16px;
  background: var(--ice);
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dropzone:hover,
.dropzone.is-dragging {
  background: #d5ebff;
  transform: rotate(-0.5deg);
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 9px;
  border: 2px solid var(--navy);
  border-radius: 12px;
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 3px 3px 0 var(--navy);
}

.drop-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drop-title {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.drop-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.drop-sub span {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
}

.drop-limit {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
}

.upload-progress {
  display: grid;
  gap: 8px;
  margin: 14px 24px 0;
}

.upload-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 3px 10px;
  align-items: center;
  padding: 8px 10px;
  border: 2px solid var(--navy);
  border-radius: 9px;
  background: #fff;
}

.upload-name {
  overflow: hidden;
  color: var(--navy);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-pct {
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.upload-bar {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--blue-soft);
}

.upload-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  transition: width 0.2s ease;
}

.upload-item.is-done .upload-bar i {
  background: #41c98b;
}

.upload-item.is-error {
  border-color: #d65050;
}

.upload-error {
  grid-column: 1 / -1;
  color: #b53a3a;
  font-size: 9px;
}

.dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 12px 24px 16px;
  border-top: 2px solid var(--navy);
  color: var(--muted);
  font-size: 9px;
}

.btn-small {
  min-height: 32px;
  padding: 0 13px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--navy);
}

.btn-small:hover {
  background: var(--blue);
  color: #fff;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100% - 36px));
  padding: 11px 15px;
  border: 2px solid var(--navy);
  border-radius: 12px;
  background: var(--paper);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  box-shadow: 4px 4px 0 var(--navy);
  opacity: 0;
  transform: translateY(10px) rotate(1deg);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s var(--ease);
}

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

.toast.is-error {
  background: var(--pink);
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 90;
  padding: 12px 16px;
  border: 2px solid var(--navy);
  background: var(--paper);
  color: var(--navy);
  font-size: 12px;
  text-align: center;
}

/* Motion ----------------------------------------------------------------- */

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

@keyframes bounce-down {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes look-around {
  0%,
  42%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(4px, 2px);
  }
  58% {
    transform: translate(2px, 4px);
  }
}

@keyframes blob-wiggle {
  0%,
  100% {
    transform: rotate(-12deg) scale(1);
  }
  50% {
    transform: rotate(-6deg) scale(1.05);
  }
}

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

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1050px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-bottom: 130px;
  }

  .hero-art {
    width: min(360px, 100%);
  }

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

  .hero::after {
    display: none;
  }

  .archive-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 70px;
    padding-bottom: 45px;
  }

  .archive-copy h2 br {
    display: none;
  }

  .archive-lead br {
    display: none;
  }

  .archive-panel-wrap {
    width: 100%;
  }

  .asset-panel {
    max-height: 52vh;
  }

  .profile-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 70px;
    padding-bottom: 40px;
  }

  .profile-art {
    height: min(48vh, 430px);
    min-height: 300px;
  }

  .profile-copy h2 {
    font-size: clamp(3rem, 10vw, 4.4rem);
  }

  .story-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 70px;
    padding-bottom: 50px;
  }

  .story-art {
    min-height: 300px;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
  }

  .story-poster {
    width: 42%;
  }
}

@media (max-width: 760px) {
  html {
    scroll-snap-type: y proximity;
  }

  .site-header {
    top: 13px;
    left: 13px;
  }

  .logo {
    padding: 5px 9px 5px 7px;
  }

  .logo-name {
    font-size: 12px;
  }

  .logo-badge {
    width: 22px;
    height: 22px;
    font-size: 7px;
  }

  .section-rail {
    display: none;
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding: 60px 0 52px;
  }

  .hero-name {
    margin-top: 14px;
    font-size: clamp(3.6rem, 18vw, 5.6rem);
    text-shadow: 4px 4px 0 var(--yellow);
  }

  .hero-name .name-underscore {
    text-shadow: 4px 4px 0 var(--orange);
  }

  .hero-role {
    margin-top: 18px;
    font-size: 1.35rem;
  }

  .hero-intro {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.8;
  }

  .hero-actions {
    gap: 9px;
    margin-top: 22px;
  }

  .btn-bili,
  .btn-scroll {
    min-height: 46px;
    padding: 0 15px;
    font-size: 14px;
  }

  .hero-art {
    width: min(350px, 88%);
    padding: 18px 10px 22px;
  }

  .avatar-card {
    height: auto;
  }

  .hero-doodle-a {
    top: 11%;
    left: 2%;
    font-size: 3.4rem;
  }

  .hero-doodle-b {
    right: 1%;
    bottom: 18%;
    font-size: 5rem;
  }

  .goo-blob {
    left: -16px;
    width: 62px;
    height: 55px;
  }

  .goo-blob span {
    top: 18px;
    width: 8px;
    height: 8px;
  }

  .goo-blob span:first-child {
    left: 18px;
  }

  .goo-blob span:last-child {
    right: 18px;
  }

  .sticker-random {
    right: -7px;
    bottom: 30px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .element-sticker {
    left: -11px;
    bottom: 3px;
    padding: 6px 11px 4px;
  }

  .element-sticker b {
    font-size: 25px;
  }

  .doodle-arrow {
    display: none;
  }

  .marquee-track span {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .archive-inner {
    width: calc(100% - 32px);
    padding: 65px 0 35px;
  }

  .archive-copy h2 {
    font-size: clamp(3.4rem, 16vw, 4.5rem);
  }

  .archive-lead {
    margin-top: 16px;
    font-size: 13px;
  }

  .archive-stats {
    margin-top: 17px;
  }

  .archive-stats strong {
    font-size: 3rem;
  }

  .upload-btn {
    min-height: 43px;
    margin-top: 17px;
  }

  .asset-panel {
    max-height: 58vh;
    border-radius: 18px;
    box-shadow: 5px 5px 0 var(--navy);
  }

  .asset-folder-head {
    padding: 11px 12px;
  }

  .asset-folder.depth-1 > .asset-folder-head {
    padding-left: 25px;
  }

  .asset-folder.depth-2 > .asset-folder-head {
    padding-left: 36px;
  }

  .asset-folder-name {
    font-size: 12px;
  }

  .asset-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px 12px;
  }

  .asset-type {
    width: 28px;
    height: 28px;
    font-size: 6px;
  }

  .asset-name {
    font-size: 11px;
  }

  .asset-mobile-meta {
    font-size: 9px;
  }

  .download-btn {
    min-height: 29px;
    padding: 0 8px;
    font-size: 9px;
  }

  .delete-btn {
    width: 27px;
    height: 27px;
  }

  .group-picker {
    font-size: 8px;
  }

  .group-select {
    max-width: 150px;
    font-size: 8px;
  }

  .assets-status {
    align-items: flex-start;
    font-size: 9px;
    line-height: 1.5;
  }

  .profile-inner {
    width: calc(100% - 32px);
    padding: 62px 0 30px;
  }

  .profile-art {
    height: 330px;
    min-height: 0;
  }

  .profile-cutout {
    max-height: 330px;
  }

  .profile-sticker {
    right: 2%;
    bottom: 4%;
    padding: 7px 10px;
    font-size: 13px;
  }

  .profile-lead {
    margin-top: 13px;
    font-size: 15px;
  }

  .profile-lore {
    font-size: 11.5px;
    line-height: 1.75;
  }

  .profile-facts {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .profile-gear ul {
    grid-template-columns: 1fr;
  }

  .profile-contact {
    line-height: 1.7;
  }

  .story-inner {
    width: calc(100% - 32px);
    padding: 65px 0 35px;
  }

  .story-art {
    min-height: 265px;
  }

  .story-poster {
    width: 43%;
    border-radius: 16px;
  }

  .story-copy h2 {
    font-size: clamp(3.4rem, 16vw, 5rem);
    text-shadow: 4px 4px 0 var(--blue-soft);
  }

  .story-desc {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.8;
  }

  .story-badges {
    gap: 6px;
    margin-top: 16px;
  }

  .story-badges span {
    padding: 4px 9px;
    font-size: 10px;
  }

  .story-cta {
    min-height: 47px;
    margin-top: 19px;
    font-size: 15px;
  }

  .story-note {
    margin-top: 10px;
    font-size: 10px;
  }

  .end-stamp {
    width: calc(100% - 32px);
    padding-bottom: 18px;
    font-size: 0.95rem;
  }

  .end-stamp a {
    font-size: 12px;
  }

  .upload-group-field,
  .dialog-head,
  .dialog-foot {
    padding-right: 16px;
    padding-left: 16px;
  }

  .dropzone,
  .upload-progress {
    margin-right: 16px;
    margin-left: 16px;
  }

  .dropzone {
    padding: 22px 14px;
  }

  .dialog-head h2 {
    font-size: 23px;
  }

  .dialog-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
