:root {
  color-scheme: dark;
  --bg: #0b0f12;
  --bg-2: #11181d;
  --panel: #151c21;
  --panel-2: #1a2329;
  --line: rgba(221, 237, 242, 0.14);
  --line-strong: rgba(221, 237, 242, 0.24);
  --text: #f2f7f8;
  --muted: #93a6ad;
  --soft: #c9d6da;
  --cyan: #22d6c6;
  --green: #81df71;
  --coral: #ff7a59;
  --yellow: #f6cf4f;
  --blue: #57a8ff;
  --violet: #9b7cff;
  --magenta: #ff4fd8;
  --danger: #ff5f7c;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(155, 124, 255, 0.16), transparent 31%),
    radial-gradient(circle at 18% 72%, rgba(255, 79, 216, 0.1), transparent 28%),
    linear-gradient(118deg, rgba(34, 214, 198, 0.12), transparent 28%),
    linear-gradient(242deg, rgba(87, 168, 255, 0.11), transparent 30%),
    var(--bg);
  background-size:
    36px 36px,
    36px 36px,
    auto,
    auto,
    auto,
    auto,
    auto;
  overflow-x: hidden;
}

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

body::before {
  z-index: 0;
  opacity: 0.9;
  background:
    radial-gradient(circle at 13% 22%, rgba(34, 214, 198, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 31% 68%, rgba(255, 79, 216, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 54% 28%, rgba(129, 223, 113, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 79% 58%, rgba(155, 124, 255, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 18%, rgba(87, 168, 255, 0.18) 0 2px, transparent 3px),
    linear-gradient(28deg, transparent 0 18%, rgba(34, 214, 198, 0.16) 18% 18.15%, transparent 18.3% 100%),
    linear-gradient(145deg, transparent 0 34%, rgba(155, 124, 255, 0.14) 34% 34.16%, transparent 34.32% 100%),
    linear-gradient(72deg, transparent 0 62%, rgba(255, 79, 216, 0.12) 62% 62.15%, transparent 62.3% 100%),
    linear-gradient(118deg, rgba(34, 214, 198, 0.1), transparent 34%),
    linear-gradient(238deg, rgba(87, 168, 255, 0.1), transparent 35%);
  background-size:
    410px 320px,
    360px 290px,
    460px 360px,
    390px 310px,
    520px 380px,
    620px 420px,
    720px 460px,
    580px 380px,
    auto,
    auto;
  animation: ambientMap 18s ease-in-out infinite alternate;
}

body::after {
  z-index: 0;
  opacity: 0.62;
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(34, 214, 198, 0.2) 47.2% 47.5%, transparent 47.8% 100%),
    linear-gradient(0deg, transparent 0 44%, rgba(155, 124, 255, 0.18) 44.2% 44.35%, transparent 44.55% 100%),
    linear-gradient(132deg, transparent 0 64%, rgba(255, 79, 216, 0.14) 64.12% 64.28%, transparent 64.46% 100%),
    repeating-linear-gradient(90deg, transparent 0 92px, rgba(221, 237, 242, 0.035) 93px, transparent 94px),
    repeating-linear-gradient(0deg, transparent 0 88px, rgba(221, 237, 242, 0.026) 89px, transparent 90px);
  background-size:
    680px 420px,
    520px 360px,
    760px 480px,
    100% 100%,
    100% 100%;
  mix-blend-mode: screen;
  animation:
    ambientScan 12s linear infinite,
    ambientPulse 4.8s ease-in-out infinite,
    neonHue 16s linear infinite;
}

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

button {
  color: inherit;
}

.motion-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.motion-shell::before,
.motion-shell::after {
  position: fixed;
  z-index: 0;
  width: 1px;
  height: 1px;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: clamp(12px, 1.1vw, 18px);
  font-weight: 600;
  line-height: 1;
  mix-blend-mode: screen;
  opacity: 0.42;
  pointer-events: none;
}

.motion-shell::before {
  left: 8vw;
  top: 18vh;
  content: "0";
  color: rgba(129, 223, 113, 0.24);
  text-shadow:
    16vw 8vh 0 rgba(34, 214, 198, 0.18),
    32vw -5vh 0 rgba(129, 223, 113, 0.16),
    54vw 12vh 0 rgba(87, 168, 255, 0.18),
    75vw -2vh 0 rgba(255, 79, 216, 0.13),
    7vw 34vh 0 rgba(155, 124, 255, 0.14),
    28vw 46vh 0 rgba(34, 214, 198, 0.16),
    49vw 36vh 0 rgba(129, 223, 113, 0.13),
    82vw 42vh 0 rgba(87, 168, 255, 0.16),
    18vw 68vh 0 rgba(255, 79, 216, 0.12),
    64vw 72vh 0 rgba(34, 214, 198, 0.15);
  animation:
    binaryBackdrop 24s ease-in-out infinite alternate,
    neonHue 28s linear infinite;
}

.motion-shell::after {
  left: 18vw;
  top: 10vh;
  content: "1";
  color: rgba(34, 214, 198, 0.22);
  text-shadow:
    18vw 14vh 0 rgba(155, 124, 255, 0.15),
    41vw 2vh 0 rgba(34, 214, 198, 0.16),
    68vw 20vh 0 rgba(129, 223, 113, 0.14),
    -5vw 38vh 0 rgba(87, 168, 255, 0.15),
    25vw 58vh 0 rgba(255, 79, 216, 0.12),
    52vw 48vh 0 rgba(34, 214, 198, 0.15),
    74vw 62vh 0 rgba(155, 124, 255, 0.14),
    4vw 78vh 0 rgba(129, 223, 113, 0.13);
  animation:
    binaryBackdropAlt 27s ease-in-out infinite alternate,
    neonHue 30s linear infinite;
}

.topbar,
.app-view {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 14px clamp(16px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 18, 0.84);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-grid;
  grid-template-columns: 42px auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

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

.brand strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 214, 198, 0.5);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 214, 198, 0.18), transparent 42%),
    linear-gradient(315deg, rgba(155, 124, 255, 0.2), transparent 46%),
    #10181d;
  box-shadow:
    0 0 22px rgba(87, 168, 255, 0.16),
    inset 0 0 22px rgba(34, 214, 198, 0.16);
  animation: neonHue 18s linear infinite;
}

.brand-mark span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(34, 214, 198, 0.65);
}

.brand-mark span:nth-child(1) {
  left: 10px;
  top: 10px;
}

.brand-mark span:nth-child(2) {
  right: 9px;
  top: 16px;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(246, 207, 79, 0.58);
}

.brand-mark span:nth-child(3) {
  left: 17px;
  bottom: 9px;
  background: var(--coral);
  box-shadow: 0 0 12px rgba(255, 122, 89, 0.58);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  height: 1px;
  background: rgba(221, 237, 242, 0.58);
  transform-origin: left center;
}

.brand-mark::before {
  left: 14px;
  top: 14px;
  width: 19px;
  transform: rotate(18deg);
}

.brand-mark::after {
  left: 21px;
  bottom: 13px;
  width: 16px;
  transform: rotate(-34deg);
}

.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.nav-tab,
.text-button,
.icon-button,
.primary-button,
.ghost-button,
.chip,
.filter-button,
.small-action {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.nav-tab {
  min-height: 38px;
  padding: 0 14px;
  color: var(--soft);
  white-space: nowrap;
}

.nav-tab:hover,
.text-button:hover,
.icon-button:hover,
.ghost-button:hover,
.filter-button:hover,
.small-action:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
}

.nav-tab.is-active,
.filter-button.is-active {
  color: #051012;
  border-color: transparent;
  background: var(--cyan);
}

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

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
}

.icon-button svg,
.small-action svg,
.primary-button svg,
.ghost-button svg,
.text-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-button {
  min-height: 40px;
  padding: 0 14px;
}

.app-view {
  min-height: calc(100vh - 76px);
  outline: 0;
}

.page {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 36px) 48px;
}

.gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 22px;
}

.headline-zone {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  min-height: 310px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(21, 28, 33, 0.9), rgba(18, 24, 28, 0.78));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.headline-zone::before {
  position: absolute;
  inset: 18px 22px auto auto;
  width: min(280px, 38%);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(34, 214, 198, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 34px rgba(34, 214, 198, 0.08),
    inset 0 0 34px rgba(34, 214, 198, 0.05);
  opacity: 0.7;
}

.headline-zone > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

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

.headline-zone h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.02;
}

.headline-zone p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.8;
}

.headline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  white-space: nowrap;
}

.primary-button {
  color: #051012;
  border-color: transparent;
  background: var(--cyan);
  font-weight: 700;
}

.primary-button:hover {
  transform: translateY(-1px);
  background: #46e1d4;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.ghost-button:hover,
.small-action:hover {
  transform: translateY(-1px);
}

.live-stage {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 26%, rgba(255, 79, 216, 0.14), transparent 28%),
    radial-gradient(circle at 78% 68%, rgba(87, 168, 255, 0.18), transparent 30%),
    #10181d;
  background-size: 28px 28px;
  box-shadow: var(--shadow);
  animation: neonHue 20s linear infinite;
}

.stage-title {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 18, 22, 0.8);
  color: var(--soft);
  font-size: 13px;
}

.stage-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 14px var(--danger);
}

.motion-track {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 36%, rgba(34, 214, 198, 0.2) 36% 37%, transparent 37% 100%),
    linear-gradient(64deg, transparent 0 58%, rgba(155, 124, 255, 0.2) 58% 59%, transparent 59% 100%),
    linear-gradient(24deg, transparent 0 22%, rgba(255, 79, 216, 0.15) 22% 22.5%, transparent 22.8% 100%);
  animation: stageShift 9s linear infinite alternate;
}

.tracking-skeleton {
  position: absolute;
  left: 50%;
  top: 53%;
  width: min(300px, 68%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.joint {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: #11181d;
  box-shadow: 0 0 22px currentColor;
}

.joint.head {
  left: 47%;
  top: 9%;
  color: var(--yellow);
}

.joint.shoulder-l {
  left: 29%;
  top: 33%;
  color: var(--cyan);
}

.joint.shoulder-r {
  right: 29%;
  top: 33%;
  color: var(--cyan);
}

.joint.hand-l {
  left: 6%;
  top: 25%;
  color: var(--green);
  animation: floatHand 2.6s ease-in-out infinite alternate;
}

.joint.hand-r {
  right: 6%;
  top: 18%;
  color: var(--coral);
  animation: floatHand 2.2s ease-in-out infinite alternate-reverse;
}

.joint.hip {
  left: 47%;
  top: 56%;
  color: var(--blue);
}

.joint.knee-l {
  left: 34%;
  top: 75%;
  color: var(--green);
}

.joint.knee-r {
  right: 34%;
  top: 75%;
  color: var(--green);
}

.bone {
  position: absolute;
  height: 2px;
  background: rgba(221, 237, 242, 0.5);
  transform-origin: left center;
}

.bone.b1 {
  left: 49%;
  top: 16%;
  width: 4px;
  height: 58px;
  transform: rotate(0deg);
}

.bone.b2 {
  left: 33%;
  top: 37%;
  width: 100px;
}

.bone.b3 {
  left: 11%;
  top: 30%;
  width: 84px;
  transform: rotate(7deg);
}

.bone.b4 {
  right: 12%;
  top: 26%;
  width: 84px;
  transform: rotate(-12deg);
}

.bone.b5 {
  left: 50%;
  top: 37%;
  width: 4px;
  height: 78px;
}

.bone.b6 {
  left: 39%;
  top: 63%;
  width: 74px;
  transform: rotate(56deg);
}

.bone.b7 {
  right: 40%;
  top: 63%;
  width: 74px;
  transform: rotate(124deg);
}

.meter-strip {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.meter {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 18, 22, 0.74);
}

.meter strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

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

.work-toolbar {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.search-box {
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transform: translateY(-50%);
}

.search-box input,
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

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

.field input,
.field textarea,
.field select {
  padding: 0 13px;
}

.field select,
.sort-select {
  color-scheme: light;
  background: #f2f7f8 !important;
  color: #0b0f12 !important;
}

.field textarea {
  min-height: 114px;
  padding-top: 12px;
  resize: vertical;
}

.search-box input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(34, 214, 198, 0.62);
  background: rgba(255, 255, 255, 0.07);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-button {
  min-height: 36px;
  padding: 0 12px;
  color: var(--soft);
  white-space: nowrap;
}

.sort-select {
  justify-self: end;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sort-select option,
.field select option {
  background: #f2f7f8 !important;
  color: #0b0f12 !important;
}

.sort-select option:checked,
.field select option:checked {
  background: var(--cyan);
  color: #061114;
}

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

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 28, 33, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 214, 198, 0.46);
  background: rgba(24, 34, 39, 0.94);
}

.cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #10181d;
}

.cover:not(.cover-real) {
  animation: neonHue 22s linear infinite;
}

.cover::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.cover-real {
  background: #050809;
}

.cover-real::before {
  z-index: 1;
  background: linear-gradient(to bottom, rgba(5, 8, 9, 0.12), rgba(5, 8, 9, 0.58));
  mask-image: none;
}

.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 180ms ease;
}

.work-card:hover .cover-image {
  transform: scale(1.045);
}

.cover::after {
  position: absolute;
  inset: 16px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.cover-rhythm {
  background:
    linear-gradient(135deg, rgba(34, 214, 198, 0.24), transparent 42%),
    linear-gradient(30deg, transparent 0 45%, rgba(255, 79, 216, 0.22) 45% 46%, transparent 46% 100%),
    #10181d;
}

.cover-runner {
  background:
    linear-gradient(155deg, rgba(129, 223, 113, 0.22), transparent 45%),
    linear-gradient(62deg, transparent 0 48%, rgba(87, 168, 255, 0.24) 48% 49%, transparent 49% 100%),
    radial-gradient(circle at 78% 22%, rgba(155, 124, 255, 0.16), transparent 28%),
    #10181d;
}

.cover-gesture {
  background:
    linear-gradient(128deg, rgba(246, 207, 79, 0.2), transparent 40%),
    linear-gradient(78deg, transparent 0 58%, rgba(34, 214, 198, 0.2) 58% 59%, transparent 59% 100%),
    radial-gradient(circle at 22% 72%, rgba(255, 79, 216, 0.14), transparent 28%),
    #10181d;
}

.cover-balance {
  background:
    linear-gradient(140deg, rgba(255, 79, 216, 0.2), transparent 43%),
    linear-gradient(32deg, transparent 0 50%, rgba(129, 223, 113, 0.2) 50% 51%, transparent 51% 100%),
    radial-gradient(circle at 76% 28%, rgba(87, 168, 255, 0.15), transparent 26%),
    #10181d;
}

.cover-defense {
  background:
    linear-gradient(132deg, rgba(87, 168, 255, 0.22), transparent 42%),
    linear-gradient(52deg, transparent 0 54%, rgba(155, 124, 255, 0.22) 54% 55%, transparent 55% 100%),
    #10181d;
}

.cover-mirror {
  background:
    linear-gradient(150deg, rgba(34, 214, 198, 0.22), transparent 43%),
    linear-gradient(42deg, transparent 0 57%, rgba(255, 79, 216, 0.2) 57% 58%, transparent 58% 100%),
    radial-gradient(circle at 78% 70%, rgba(87, 168, 255, 0.14), transparent 28%),
    #10181d;
}

.cover-shape {
  position: absolute;
  border: 2px solid currentColor;
  box-shadow: 0 0 20px currentColor;
}

.cover-shape.circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  color: var(--cyan);
  left: 20%;
  top: 24%;
  animation: coverDrift 4s ease-in-out infinite alternate;
}

.cover-shape.square {
  width: 72px;
  height: 72px;
  color: var(--violet);
  right: 18%;
  top: 35%;
  transform: rotate(12deg);
}

.cover-shape.line {
  width: 160px;
  height: 2px;
  border: 0;
  background: currentColor;
  color: var(--coral);
  left: 30%;
  bottom: 26%;
  transform: rotate(-18deg);
}

.cover-person {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 128px;
  height: 146px;
  transform: translate(-50%, -50%);
}

.cover-person span {
  position: absolute;
  display: block;
  background: rgba(242, 247, 248, 0.72);
}

.cover-person .head {
  left: 54px;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(246, 207, 79, 0.7);
}

.cover-person .body {
  left: 63px;
  top: 31px;
  width: 2px;
  height: 58px;
}

.cover-person .arms {
  left: 20px;
  top: 44px;
  width: 88px;
  height: 2px;
  transform: rotate(-14deg);
}

.cover-person .leg-l {
  left: 62px;
  top: 86px;
  width: 2px;
  height: 54px;
  transform: rotate(28deg);
  transform-origin: top;
}

.cover-person .leg-r {
  left: 66px;
  top: 86px;
  width: 2px;
  height: 54px;
  transform: rotate(-24deg);
  transform-origin: top;
}

.cover-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  max-width: calc(100% - 24px);
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 18, 22, 0.76);
  color: var(--soft);
  font-size: 12px;
}

.play-hover {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cyan);
  color: #061114;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.work-card:hover .play-hover {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.play-hover svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.work-body {
  padding: 14px;
}

.work-title-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.work-title-line h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.author {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.meta-item {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.meta-item svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.player-zone,
.info-panel,
.upload-panel,
.auth-panel,
.mine-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 28, 33, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.player-zone {
  overflow: hidden;
}

.player-top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.player-status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: var(--soft);
  font-size: 14px;
}

.player-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

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

.small-action {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 11px;
  color: var(--soft);
  white-space: nowrap;
}

.game-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  background: #050809;
}

.game-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  background: #050809;
}

.info-panel {
  padding: 18px;
}

.back-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
}

.info-panel h2 {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.14;
}

.info-desc {
  color: var(--soft);
  line-height: 1.7;
}

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

.detail-stat {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.detail-stat strong {
  display: block;
  font-size: 20px;
}

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

.like-button.is-liked {
  color: #051012;
  border-color: transparent;
  background: var(--coral);
}

.comment-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.comment-box h3 {
  margin-bottom: 12px;
  font-size: 17px;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.comment-item {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(221, 237, 242, 0.1);
}

.comment-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 13px;
}

.comment-item p {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.6;
}

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

.comment-form textarea {
  width: 100%;
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  resize: vertical;
}

.section-title {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title h1 {
  margin-bottom: 4px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

.section-title p {
  margin: 0;
  color: var(--soft);
}

.upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.upload-panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at 12% 18%, rgba(34, 214, 198, 0.14), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(155, 124, 255, 0.16), transparent 30%),
    radial-gradient(circle at 72% 86%, rgba(255, 79, 216, 0.1), transparent 30%),
    rgba(21, 28, 33, 0.86);
}

.upload-panel::before {
  position: absolute;
  right: 14%;
  top: 14%;
  width: 1px;
  height: 1px;
  content: "0";
  color: rgba(34, 214, 198, 0.22);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 14px;
  line-height: 1;
  text-shadow:
    -30vw 5vh 0 rgba(129, 223, 113, 0.16),
    -18vw 20vh 0 rgba(87, 168, 255, 0.15),
    -4vw 12vh 0 rgba(255, 79, 216, 0.12),
    3vw 30vh 0 rgba(34, 214, 198, 0.14),
    -24vw 36vh 0 rgba(155, 124, 255, 0.12);
  opacity: 0.76;
  animation:
    sparseBitFloat 8s ease-in-out infinite alternate,
    neonHue 18s linear infinite;
}

.upload-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(34, 214, 198, 0.18), transparent),
    linear-gradient(180deg, transparent 0 42%, rgba(255, 79, 216, 0.13) 42.2% 42.6%, transparent 42.9% 100%);
  background-size:
    260px 100%,
    100% 220px;
  mix-blend-mode: screen;
  opacity: 0.72;
  animation:
    uploadSweep 5.8s linear infinite,
    ambientPulse 4.2s ease-in-out infinite;
}

.upload-panel > * {
  position: relative;
  z-index: 1;
}

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

.field-full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 14px;
}

.drop-zone {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 230px;
  margin-top: 12px;
  border: 1px dashed rgba(34, 214, 198, 0.58);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 54%, rgba(155, 124, 255, 0.18) 54.2% 54.45%, transparent 54.7% 100%),
    radial-gradient(circle at 18% 22%, rgba(34, 214, 198, 0.14), transparent 24%),
    radial-gradient(circle at 86% 72%, rgba(255, 79, 216, 0.12), transparent 26%),
    rgba(34, 214, 198, 0.04);
  background-size:
    24px 24px,
    24px 24px,
    auto,
    auto,
    auto,
    auto;
  text-align: center;
  transition:
    border-color 160ms ease,
    background 160ms ease;
  animation: neonHue 18s linear infinite;
}

.drop-zone::before {
  position: absolute;
  left: 18%;
  top: 18%;
  width: 1px;
  height: 1px;
  content: "1";
  color: rgba(129, 223, 113, 0.24);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 12px;
  line-height: 1;
  text-shadow:
    18vw 3vh 0 rgba(34, 214, 198, 0.2),
    8vw 15vh 0 rgba(255, 79, 216, 0.12),
    30vw 13vh 0 rgba(87, 168, 255, 0.16),
    3vw 24vh 0 rgba(155, 124, 255, 0.13);
  animation:
    sparseBitFloat 6.5s ease-in-out infinite alternate,
    neonHue 20s linear infinite;
}

.drop-zone::after {
  position: absolute;
  inset: 12px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow:
    inset 0 0 24px rgba(34, 214, 198, 0.08),
    0 0 18px rgba(155, 124, 255, 0.12);
  animation: ambientPulse 3.6s ease-in-out infinite;
}

.drop-zone.is-over {
  border-color: var(--green);
  background-color: rgba(129, 223, 113, 0.08);
}

.drop-zone input {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  cursor: pointer;
}

.drop-zone-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 20px;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(34, 214, 198, 0.5);
  border-radius: var(--radius);
  color: var(--cyan);
  background:
    linear-gradient(135deg, rgba(34, 214, 198, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(255, 79, 216, 0.14), transparent 48%),
    rgba(12, 18, 22, 0.74);
  box-shadow:
    0 0 22px rgba(34, 214, 198, 0.18),
    inset 0 0 18px rgba(87, 168, 255, 0.12);
  animation: iconPulse 2.8s ease-in-out infinite;
}

.upload-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drop-zone strong {
  display: block;
  font-size: 18px;
}

.drop-zone span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.cover-picker {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 96px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(87, 168, 255, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(87, 168, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.cover-picker:hover {
  border-color: rgba(34, 214, 198, 0.55);
  background:
    linear-gradient(135deg, rgba(34, 214, 198, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.cover-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cover-picker-thumb {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #10181d;
  background-size: 16px 16px;
  color: var(--muted);
  font-size: 11px;
}

.cover-picker-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cover-picker-copy strong {
  color: var(--text);
  font-size: 15px;
}

.cover-picker-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
}

.check-dot {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 12px;
}

.check-list li.is-ok .check-dot {
  color: #061114;
  border-color: transparent;
  background: var(--green);
}

.upload-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 28, 33, 0.92);
}

.upload-preview .cover {
  aspect-ratio: 16 / 11;
}

.preview-body {
  padding: 14px;
}

.preview-body h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.preview-body p {
  margin-bottom: 14px;
  color: var(--soft);
  line-height: 1.7;
}

.manifest {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.manifest span {
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.upload-status {
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(34, 214, 198, 0.38);
  border-radius: var(--radius);
  background: rgba(34, 214, 198, 0.08);
  color: var(--soft);
  line-height: 1.5;
}

.upload-status.is-error {
  border-color: rgba(255, 95, 124, 0.45);
  background: rgba(255, 95, 124, 0.1);
  color: #ffd5dd;
}

.mine-panel {
  overflow: hidden;
}

.mine-table {
  width: 100%;
  border-collapse: collapse;
}

.teacher-panel {
  display: grid;
  gap: 10px;
}

.student-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.student-work-list {
  display: grid;
  gap: 14px;
}

.student-work-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 28, 33, 0.86);
  backdrop-filter: blur(14px);
}

.student-work-cover {
  position: relative;
}

.student-work-cover .cover {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cover-edit-action {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  background: rgba(12, 18, 22, 0.86);
}

.cover-edit-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.student-work-editor {
  display: grid;
  gap: 12px;
}

.student-work-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.student-work-head strong,
.student-work-head span {
  display: block;
}

.student-work-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.student-card-meta {
  max-width: 480px;
}

.timeline-list {
  display: grid;
  gap: 10px;
}

.timeline-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(221, 237, 242, 0.1);
}

.timeline-list span {
  color: var(--soft);
}

.teacher-work-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(240px, 0.8fr) minmax(110px, auto) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 28, 33, 0.86);
  backdrop-filter: blur(14px);
}

.teacher-order {
  display: flex;
  gap: 6px;
}

.teacher-order .icon-button {
  width: 34px;
  height: 34px;
}

.teacher-work-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.teacher-work-main strong,
.teacher-work-main span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.teacher-work-main span,
.teacher-tags-field span {
  color: var(--muted);
  font-size: 13px;
}

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

.teacher-tags-field input {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.teacher-tags-field input:focus {
  border-color: rgba(34, 214, 198, 0.62);
  background: rgba(255, 255, 255, 0.07);
}

.publish-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--soft);
  font-size: 13px;
  white-space: nowrap;
}

.publish-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.teacher-account-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  margin-top: 18px;
}

.teacher-admin-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 28, 33, 0.86);
  backdrop-filter: blur(14px);
}

.teacher-admin-card h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.muted-note {
  margin: 0;
  color: var(--muted);
}

.class-list {
  display: grid;
  gap: 10px;
}

.class-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.class-card strong,
.class-card span {
  display: block;
}

.class-card > div:first-child span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.account-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.account-cloud span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.04);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.mine-table th,
.mine-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.mine-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.mine-title {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mini-cover {
  flex: 0 0 auto;
  width: 78px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #10181d;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: var(--radius);
  background: rgba(129, 223, 113, 0.13);
  color: var(--green);
  font-size: 12px;
}

.auth-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 140px);
}

.auth-panel {
  width: min(420px, 100%);
  padding: 22px;
}

.auth-panel h1 {
  margin-bottom: 8px;
  font-size: 34px;
}

.auth-panel p {
  color: var(--soft);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.login-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.login-switch button {
  min-height: 38px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--soft);
  cursor: pointer;
}

.login-switch button.is-active {
  background: var(--cyan);
  color: #061114;
  font-weight: 700;
}

.empty-state {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(135deg, rgba(34, 214, 198, 0.12), transparent 38%),
    linear-gradient(42deg, transparent 0 58%, rgba(255, 122, 89, 0.11) 58% 58.2%, transparent 58.4% 100%),
    rgba(21, 28, 33, 0.72);
  background-size:
    30px 30px,
    30px 30px,
    auto,
    auto,
    auto;
  backdrop-filter: blur(16px);
  color: var(--soft);
  text-align: center;
}

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

.empty-state::before {
  left: 14%;
  top: 22%;
  width: 92px;
  height: 92px;
  border: 2px solid rgba(34, 214, 198, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(34, 214, 198, 0.28);
  animation: coverDrift 4.5s ease-in-out infinite alternate;
}

.empty-state::after {
  right: 16%;
  bottom: 26%;
  width: 180px;
  height: 2px;
  background: rgba(246, 207, 79, 0.72);
  box-shadow: 0 0 22px rgba(246, 207, 79, 0.35);
  transform: rotate(-18deg);
  animation: ambientPulse 3.8s ease-in-out infinite;
}

.empty-state > div {
  position: relative;
  z-index: 1;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 28, 33, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

@keyframes stageShift {
  from {
    transform: translate3d(-16px, 0, 0);
  }

  to {
    transform: translate3d(16px, -10px, 0);
  }
}

@keyframes floatHand {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(18px);
  }
}

@keyframes coverDrift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(20px, 12px, 0);
  }
}

@keyframes ambientMap {
  from {
    transform: translate3d(-18px, -10px, 0) scale(1);
    filter: hue-rotate(0deg) saturate(0.92) brightness(0.92);
  }

  to {
    transform: translate3d(20px, 14px, 0) scale(1.025);
    filter: hue-rotate(38deg) saturate(1.18) brightness(1.1);
  }
}

@keyframes ambientScan {
  from {
    background-position:
      -120px 0,
      0 -90px,
      -160px 120px,
      0 0,
      0 0;
  }

  to {
    background-position:
      560px 0,
      0 270px,
      520px -160px,
      0 0,
      0 0;
  }
}

@keyframes ambientPulse {
  0%,
  100% {
    opacity: 0.48;
  }

  42% {
    opacity: 0.72;
  }

  48% {
    opacity: 0.38;
  }

  54% {
    opacity: 0.78;
  }
}

@keyframes neonHue {
  from {
    filter: hue-rotate(0deg) saturate(1);
  }

  to {
    filter: hue-rotate(42deg) saturate(1.18);
  }
}

@keyframes binaryDrift {
  from {
    transform: translate3d(0, -34px, 0) rotate(-12deg);
  }

  to {
    transform: translate3d(-24px, 46px, 0) rotate(-12deg);
  }
}

@keyframes uploadSweep {
  from {
    background-position:
      -280px 0,
      0 -220px;
  }

  to {
    background-position:
      calc(100% + 280px) 0,
      0 calc(100% + 220px);
  }
}

@keyframes codeTicker {
  from {
    transform: translateX(28%);
  }

  to {
    transform: translateX(-42%);
  }
}

@keyframes binaryBackdrop {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-18px, 16px, 0);
  }
}

@keyframes binaryBackdropAlt {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(20px, -14px, 0);
  }
}

@keyframes sparseBitFloat {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(10px, -8px, 0);
  }
}

@keyframes iconPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 0 18px rgba(34, 214, 198, 0.14),
      inset 0 0 18px rgba(87, 168, 255, 0.1);
  }

  50% {
    transform: translateY(-3px);
    box-shadow:
      0 0 28px rgba(34, 214, 198, 0.32),
      0 0 38px rgba(255, 79, 216, 0.12),
      inset 0 0 22px rgba(87, 168, 255, 0.16);
  }
}

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

@media (max-width: 1180px) {
  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-layout,
  .upload-grid,
  .teacher-account-grid,
  .student-work-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-tabs {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .gallery-head,
  .work-toolbar {
    grid-template-columns: 1fr;
  }

  .sort-select {
    justify-self: stretch;
    width: 100%;
  }

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

@media (max-width: 640px) {
  .topbar {
    min-height: auto;
    padding: 12px;
  }

  .brand {
    grid-template-columns: 36px auto;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand small {
    display: none;
  }

  .text-button {
    display: none;
  }

  .page {
    padding: 16px 12px 34px;
  }

  .headline-zone {
    min-height: 0;
    padding: 20px;
  }

  .headline-zone h1 {
    font-size: 36px;
  }

  .live-stage {
    min-height: 260px;
  }

  .meter-strip {
    grid-template-columns: 1fr;
  }

  .work-grid,
  .form-grid,
  .student-stats {
    grid-template-columns: 1fr;
  }

  .student-work-head,
  .timeline-list div {
    grid-template-columns: 1fr;
  }

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

  .teacher-order {
    justify-content: flex-start;
  }

  .cover-picker {
    grid-template-columns: 1fr;
  }

  .cover-picker-thumb {
    width: 100%;
  }

  .game-frame {
    min-height: 260px;
  }

  .player-top,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .player-actions {
    flex-wrap: wrap;
  }

  .mine-panel {
    overflow-x: auto;
  }

  .mine-table {
    min-width: 720px;
  }
}
