﻿:root {
  --bg: #050912;
  --bg-soft: #081022;
  --panel: rgba(7, 15, 30, 0.92);
  --panel-soft: rgba(11, 23, 41, 0.8);
  --line: rgba(117, 147, 198, 0.24);
  --line-strong: rgba(176, 198, 233, 0.3);
  --text: #e8effb;
  --text-muted: #9caecf;
  --accent: #e2bc79;
  --accent-strong: #c7923c;
  --accent-blue: #6aa7f2;
  --danger: #ff8f8f;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 2, 8, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 88% -12%, rgba(213, 162, 81, 0.26), transparent 32%),
    radial-gradient(circle at 4% 14%, rgba(78, 138, 225, 0.2), transparent 30%),
    linear-gradient(162deg, #02050c, var(--bg) 44%, #020816);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to right, rgba(92, 120, 168, 0.08) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(to bottom, rgba(92, 120, 168, 0.06) 0 1px, transparent 1px 56px);
  opacity: 0.35;
}

.page {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 30px;
}

body[data-nav="courses"] .page {
  width: min(1060px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 20;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 12, 24, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding: 8px 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(204, 152, 49, 0.35));
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1;
}

.brand-logo {
  color: #f7f9ff;
  font-family: "Noto Sans TC", "Segoe UI", sans-serif;
  font-size: clamp(23px, 2.2vw, 42px);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.brand-tagline {
  color: #d3b26f;
  font-family: "Noto Sans TC", "Segoe UI", sans-serif;
  font-size: clamp(8px, 0.62vw, 11px);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(13, 26, 47, 0.9);
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #dce9ff;
}

.menu-toggle span + span {
  margin-top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: #d6e2f5;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 9px;
  transition: color 150ms ease, background-color 150ms ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(95, 131, 193, 0.2);
}

.nav-link.active {
  color: #1d1305;
  background: linear-gradient(132deg, #f1d190, #ca923e);
}

.block {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 420px);
  gap: 24px;
  align-items: center;
}

.hero h1,
.section-title {
  margin: 0;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(58px, 6vw, 88px);
  line-height: 1;
  color: #efe5cd;
}

.en-title {
  margin: 8px 0 0;
  letter-spacing: 0.24em;
  color: #8ba7cf;
  font-size: 12px;
  text-transform: uppercase;
}

.hero p {
  margin: 16px 0 0;
  color: #adc0df;
  font-size: 19px;
  line-height: 1.7;
}

.hero-chart {
  border: 1px solid rgba(111, 152, 216, 0.28);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(4, 19, 41, 0.95), rgba(3, 11, 22, 0.95));
  min-height: 280px;
  padding: 18px;
}

.hero-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-grid line {
  stroke: rgba(72, 103, 156, 0.35);
  stroke-width: 1;
}

.chart-bars rect {
  fill: rgba(88, 130, 199, 0.6);
}

.chart-trend {
  fill: none;
  stroke: #e4ba71;
  stroke-width: 8;
  stroke-linecap: round;
}

.chart-trend-2 {
  fill: none;
  stroke: #76aae8;
  stroke-width: 4;
  stroke-linecap: round;
}

.controls {
  padding: 18px 18px 14px;
  display: grid;
  gap: 10px;
}

.controls-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.search,
.sort {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 44px;
  background: rgba(8, 19, 37, 0.92);
  color: #deebff;
  font-family: inherit;
}

.search {
  width: 100%;
  padding: 0 12px;
  font-size: 15px;
}

.sort {
  padding: 0 10px;
  font-size: 14px;
}

.tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  background: rgba(10, 20, 39, 0.9);
}

.tabs button {
  border: none;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: #bacde8;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tabs button.active {
  color: #161005;
  background: linear-gradient(136deg, #f3d08b, #ce953f);
}

.count-text {
  margin: 0;
  color: #97aacb;
  font-size: 13px;
}

.course-canvas {
  margin-top: 18px;
}

.catalog-v2 {
  border: 1px solid rgba(109, 142, 195, 0.2);
  border-radius: 16px;
  background: rgba(5, 14, 28, 0.8);
  box-shadow: var(--shadow);
  padding: 18px 18px 20px;
}

.catalog-v2-head h1 {
  margin: 0;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(52px, 6vw, 84px);
  line-height: 1.03;
  color: #f0ddb3;
  letter-spacing: 0.01em;
}

.catalog-v2-line {
  height: 1px;
  margin-top: 10px;
  background: linear-gradient(90deg, rgba(209, 164, 85, 0.78) 0%, rgba(189, 151, 78, 0.8) 18%, rgba(87, 111, 154, 0.35) 52%, transparent 100%);
  position: relative;
}

.catalog-v2-line::before,
.catalog-v2-line::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ebc778;
  box-shadow: 0 0 8px rgba(237, 194, 108, 0.85);
}

.catalog-v2-line::before {
  left: 0;
}

.catalog-v2-line::after {
  left: 68px;
}

.catalog-v2-controls {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(280px, 1fr);
  gap: 10px;
}

.catalog-search-wrap {
  min-height: 50px;
  border: 1px solid rgba(122, 153, 203, 0.28);
  border-radius: 10px;
  background: linear-gradient(155deg, rgba(11, 24, 46, 0.94), rgba(7, 18, 35, 0.94));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.catalog-search-wrap svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #93afd8;
  stroke-width: 2;
}

.catalog-search-wrap .search {
  border: none;
  background: transparent;
  min-height: 0;
  padding: 0;
  width: 100%;
}

.tabs.v2-tabs {
  border-color: rgba(121, 155, 207, 0.35);
  border-radius: 10px;
  min-height: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.tabs.v2-tabs button {
  border-radius: 0;
  position: relative;
  font-size: 18px;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-weight: 700;
  color: #ced9eb;
}

.tabs.v2-tabs button + button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 1px;
  background: rgba(117, 149, 201, 0.36);
}

.tabs.v2-tabs button:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.tabs.v2-tabs button:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.tabs.v2-tabs button.active {
  background: transparent;
  color: #ebca83;
}

.tabs.v2-tabs button.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(236, 200, 119, 0.95), transparent);
}

.sort.v2-sort {
  min-height: 50px;
  border-color: rgba(122, 154, 204, 0.3);
  border-radius: 10px;
  font-size: 23px;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  color: #cfdbee;
}

.v2-count {
  margin-top: 8px;
}

.course-grid-v2 {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.course-card-v2 {
  border: 1px solid rgba(138, 162, 198, 0.3);
  border-radius: 10px;
  min-height: 164px;
  background: linear-gradient(148deg, rgba(14, 28, 49, 0.95), rgba(8, 18, 34, 0.95));
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.course-card-v2:hover {
  border-color: rgba(219, 182, 109, 0.6);
  box-shadow: 0 0 0 1px rgba(207, 170, 98, 0.28) inset;
}

.course-card-v2.is-locked {
  opacity: 0.78;
}

.card-thumb-v2 {
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(75, 108, 160, 0.45);
  overflow: hidden;
  background: radial-gradient(circle at 75% 10%, rgba(134, 180, 245, 0.3), transparent 42%), linear-gradient(155deg, rgba(14, 35, 66, 0.95), rgba(7, 19, 36, 0.95));
}

.card-thumb-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(to right, rgba(90, 127, 186, 0.17) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(to bottom, rgba(90, 127, 186, 0.15) 0 1px, transparent 1px 13px);
  opacity: 0.58;
}

.thumb-1::after,
.thumb-7::after,
.thumb-9::after {
  content: "";
  position: absolute;
  inset: 16px 9px 10px;
  background:
    linear-gradient(151deg, transparent 64%, rgba(133, 184, 255, 0.9) 64%, rgba(133, 184, 255, 0.9) 68%, transparent 68%),
    linear-gradient(159deg, transparent 44%, rgba(210, 171, 91, 0.86) 44%, rgba(210, 171, 91, 0.86) 47%, transparent 47%),
    repeating-linear-gradient(to right, rgba(84, 123, 181, 0.45) 0 5px, transparent 5px 12px);
}

.thumb-2::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 18px;
  bottom: 16px;
  border-radius: 80px 80px 44px 44px;
  background:
    radial-gradient(circle at 50% 26%, rgba(205, 221, 248, 0.82) 0 26%, transparent 27%),
    radial-gradient(circle at 50% 72%, rgba(100, 145, 208, 0.72) 0 47%, transparent 48%),
    linear-gradient(180deg, rgba(19, 44, 80, 0.94), rgba(6, 17, 32, 0.95));
}

.thumb-3::after,
.thumb-8::after {
  content: "";
  position: absolute;
  inset: 14px 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M4 92 L18 58 L34 74 L48 34 L62 56 L76 24 L94 44 L106 14' fill='none' stroke='%2398c7ff' stroke-width='4'/%3E%3Cpath d='M4 106 L16 94 L30 102 L46 82 L60 90 L76 70 L92 76 L106 58' fill='none' stroke='%23e0bb74' stroke-width='3' stroke-dasharray='5 4'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  opacity: 0.95;
}

.thumb-4::after {
  content: "";
  position: absolute;
  inset: 16px 9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M10 100 L26 24 L92 10 L74 98 Z' fill='none' stroke='%2399c5ff' stroke-width='2.2'/%3E%3Cpath d='M22 66 L56 42 L78 70 L42 82 Z' fill='none' stroke='%236da2f3' stroke-width='1.8'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.thumb-5::after {
  content: "";
  position: absolute;
  inset: 9px 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M12 104 C14 34 92 14 108 62 C112 86 94 106 68 108 C44 110 25 95 23 76 C22 59 34 48 48 48 C62 48 73 58 73 71 C73 82 66 89 58 89 C50 89 45 84 45 77' fill='none' stroke='%23e0bc75' stroke-width='2.8'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.thumb-6::after {
  content: "";
  position: absolute;
  inset: 12px 8px;
  background: repeating-linear-gradient(to right, rgba(94, 139, 206, 0.52) 0 6px, transparent 6px 12px);
  mask-image: linear-gradient(to top, black, transparent 82%);
}

.order-badge-v2 {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid rgba(220, 186, 110, 0.8);
  background: rgba(15, 22, 31, 0.95);
  color: #efca80;
  font-size: 15px;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-weight: 700;
}

.card-main-v2 {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-top-v2 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-top-v2 h3 {
  margin: 0;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: 26px;
  line-height: 1.03;
  color: #efe0be;
}

.course-level-v2 {
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
}

.course-level-v2.level-gate {
  color: #79e3a2;
  border-color: rgba(82, 195, 126, 0.56);
  background: rgba(15, 52, 35, 0.58);
}

.course-level-v2.level-sanctum {
  color: #8ec6ff;
  border-color: rgba(95, 156, 226, 0.56);
  background: rgba(16, 38, 70, 0.56);
}

.course-level-v2.level-canon {
  color: #d2a2ef;
  border-color: rgba(162, 117, 201, 0.52);
  background: rgba(35, 20, 53, 0.58);
}

.card-summary-v2 {
  margin: 6px 0 0;
  color: #9eb1d0;
  font-size: 14px;
  line-height: 1.45;
}

.card-bottom-v2 {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.course-meta-v2 {
  color: #b7cae8;
  font-size: 13px;
}

.course-go-v2 {
  border-radius: 7px;
  border: 1px solid rgba(225, 191, 115, 0.66);
  color: #e7c67f;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 11px;
  background: rgba(17, 22, 29, 0.7);
}

.course-list {
  padding: 0 18px 18px;
  display: grid;
  gap: 10px;
}

.course-row {
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(120, 149, 198, 0.26);
  border-radius: 12px;
  background: var(--panel-soft);
  min-height: 90px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
}

.course-row:hover {
  border-color: rgba(219, 185, 117, 0.5);
}

.course-order {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #21140a;
  background: linear-gradient(135deg, #edcb85, #bc8334);
}

.course-main h3 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.02;
  color: #ece0c6;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
}

.course-main p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.course-meta {
  margin-top: 6px;
  display: inline-block;
  color: #b8cae6;
  font-size: 13px;
  font-weight: 700;
}

.course-level {
  font-size: 13px;
  font-weight: 700;
  color: #d9e6fb;
  border: 1px solid rgba(120, 154, 209, 0.36);
  border-radius: 999px;
  padding: 6px 10px;
}

.course-go {
  font-size: 14px;
  font-weight: 700;
  color: #191007;
  background: linear-gradient(136deg, #f1cd87, #c98f3f);
  border-radius: 10px;
  padding: 10px 14px;
}

.empty-row {
  margin: 0;
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: #c2d4f1;
  text-align: center;
}

.cta {
  margin-top: 18px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background:
    radial-gradient(circle at 82% 24%, rgba(203, 145, 58, 0.34), transparent 40%),
    var(--panel);
}

.cta h2 {
  margin: 0;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(34px, 3.8vw, 60px);
  color: #ebddb9;
}

.cta p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 11px 18px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  color: #1b1207;
  background: linear-gradient(136deg, #f1cd87, #cb9341);
}

.btn-secondary {
  color: #d5e4fa;
  border-color: rgba(130, 167, 226, 0.42);
  background: rgba(16, 35, 60, 0.82);
}

.updates-page {
  padding: 18px;
}

.feature-update {
  border: 1px solid rgba(202, 168, 106, 0.38);
  border-radius: 12px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(20, 30, 51, 0.9), rgba(8, 16, 28, 0.96));
}

.feature-meta {
  margin: 0;
  color: #e5c282;
  font-size: 13px;
  font-weight: 700;
}

.feature-update h2 {
  margin: 8px 0;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.05;
  color: #ece1c6;
}

.feature-access {
  margin: 0;
  color: #9fb2d4;
  font-size: 14px;
}

.past-updates {
  margin-top: 14px;
}

.past-updates h3 {
  margin: 0 0 8px;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(30px, 3.5vw, 50px);
  color: #e9dcc1;
}

.update-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.update-list li {
  border: 1px solid rgba(122, 156, 212, 0.24);
  border-radius: 10px;
  background: rgba(10, 22, 40, 0.88);
  padding: 12px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
}

.update-date {
  color: #84a7d8;
  font-size: 13px;
}

.update-title {
  text-decoration: none;
  color: #dde8fa;
  font-size: 17px;
}

.update-title:hover {
  color: #f0cc89;
}

.tiers {
  padding: 18px;
}

.tiers h1 {
  margin: 0;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1.02;
  color: #ebddb8;
}

.tiers .subtitle {
  margin: 8px 0 0;
  color: #a2b4d4;
  font-size: 18px;
}

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

.tier-card {
  border: 1px solid rgba(126, 155, 202, 0.28);
  border-radius: 12px;
  background: rgba(10, 22, 41, 0.92);
  padding: 14px;
}

.tier-card h3 {
  margin: 0;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: 32px;
  color: #e9d8af;
}

.price {
  margin: 8px 0;
  font-size: 26px;
  font-weight: 800;
  color: #e4c280;
}

.rule,
.feat {
  margin: 0;
  color: #a5b7d6;
  line-height: 1.6;
  font-size: 14px;
}

.feat {
  margin-top: 4px;
}

.tier-card .btn {
  margin-top: 12px;
}

.login-box,
.detail-box {
  padding: 18px;
}

.login-box h1,
.detail-box h1 {
  margin: 0;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(46px, 4.6vw, 70px);
  color: #ebddb9;
}

.simple-sub {
  margin: 8px 0 0;
  color: #9db0d1;
}

.form-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}

.field,
.field-select {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 44px;
  background: rgba(8, 20, 38, 0.95);
  color: #deebff;
  padding: 0 12px;
  font-family: inherit;
  font-size: 15px;
}

.volume-page {
  margin-top: 18px;
  display: grid;
  gap: 18px;
}

body[data-nav="volume"] .volume-page,
body[data-nav="volume"] .volume-page * {
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
}

body[data-nav="volume"] {
  color: var(--text);
  background:
    radial-gradient(circle at 88% -12%, rgba(213, 162, 81, 0.26), transparent 32%),
    radial-gradient(circle at 4% 14%, rgba(78, 138, 225, 0.2), transparent 30%),
    linear-gradient(162deg, #02050c, var(--bg) 44%, #020816);
}

body[data-nav="volume"]::before {
  opacity: 0.35;
}

body[data-nav="volume"] .block {
  margin-top: 0;
  border-color: var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

body[data-nav="volume"] .site-header {
  margin-bottom: 2px;
}

body[data-nav="volume"] .site-footer {
  border-color: var(--line);
  background: rgba(4, 11, 22, 0.92);
}

body[data-nav="volume"] .footer-links a,
body[data-nav="volume"] .footer-links button,
body[data-nav="volume"] .footer-copy {
  color: #b2c4e0;
}

.volume-hero {
  padding: 26px 20px 18px;
  text-align: center;
}

.volume-kicker {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #8ba7cf;
  letter-spacing: 0.02em;
}

.volume-hero h1 {
  margin: 10px 0 0;
  color: #ebddb9;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 700;
}

body[data-nav="volume"] .volume-hero .simple-sub {
  margin: 13px auto 0;
  max-width: 760px;
  font-size: 20px;
  color: #9db0d1;
}

.volume-steps {
  overflow: hidden;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.volume-step {
  min-height: 172px;
  padding: 20px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 10px;
}

.volume-step + .volume-step {
  border-left: 1px solid rgba(117, 147, 198, 0.22);
}

.step-dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #0f1219;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.volume-step h3 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  color: #ece1c6;
}

.volume-step p,
.step-links {
  margin: 0;
  color: #a4b8d9;
  font-size: 14px;
}

.step-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.step-links a {
  color: #c9dbf6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.volume-levels {
  padding: 22px;
}

.volume-levels h2,
.volume-form-shell h2 {
  margin: 0;
  color: #ebddb9;
  font-size: clamp(34px, 3.8vw, 46px);
  font-weight: 800;
}

.volume-level-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.volume-level-row {
  border: 1px solid rgba(126, 155, 202, 0.26);
  border-radius: 12px;
  background: rgba(10, 22, 41, 0.86);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.level-mark {
  width: 24px;
  color: #e2bc79;
  font-size: 18px;
  line-height: 1.2;
  flex: 0 0 auto;
}

.level-title,
.level-meta {
  margin: 0;
}

.level-title {
  font-size: clamp(25px, 2.5vw, 36px);
  color: #e6d7b6;
  font-weight: 700;
}

.level-meta {
  margin-top: 3px;
  color: #a5b7d6;
  font-size: 24px;
}

.volume-note {
  margin: 14px 0 0;
  color: #9fb3d5;
  font-size: 21px;
}

.volume-form-shell {
  padding: 18px;
}

.volume-form-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 144px;
  gap: 9px;
}

body[data-nav="volume"] .volume-form-shell .field,
body[data-nav="volume"] .volume-form-shell .field-select {
  border-color: var(--line);
  background: rgba(8, 20, 38, 0.95);
  color: #deebff;
}

body[data-nav="volume"] .volume-form-shell .field::placeholder {
  color: #8ea5c9;
}

body[data-nav="volume"] .volume-form-shell .btn-primary {
  color: #1b1207;
  background: linear-gradient(136deg, #f1cd87, #cb9341);
}

.uid-hint {
  margin: 10px 4px 0;
  color: #9fb3d5;
  font-size: 15px;
}

.volume-result {
  margin-top: 12px;
  border: 1px solid rgba(198, 161, 96, 0.4);
  border-radius: 10px;
  background: rgba(14, 27, 45, 0.92);
  padding: 12px;
}

.volume-value,
.volume-tier,
.volume-hint {
  margin: 0;
}

.volume-value {
  color: #ebcf97;
  font-weight: 700;
}

.volume-tier {
  margin-top: 4px;
  color: #c9dbf6;
}

.volume-hint {
  margin-top: 4px;
  color: #9fb3d5;
  font-size: 14px;
}

.login-form {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  width: min(520px, 100%);
}

body[data-nav="login"] .page {
  min-height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
}

body[data-nav="login"] .login-box {
  flex: 1;
  width: min(720px, 100%);
  margin: 18px auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body[data-nav="login"] .login-box h1,
body[data-nav="login"] .login-box .simple-sub {
  text-align: center;
}

body[data-nav="login"] .login-form {
  width: min(520px, 100%);
  justify-items: center;
}

body[data-nav="login"] .login-form .field,
body[data-nav="login"] .login-form .btn {
  width: 100%;
  text-align: center;
}

body[data-nav="login"] .login-form .field::placeholder {
  text-align: center;
}

.login-switch-form {
  margin-top: 18px;
  gap: 12px;
}

.auth-mode {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(118, 149, 196, 0.35);
  background: rgba(12, 24, 43, 0.96);
}

.auth-mode-btn {
  height: 42px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #8ea8d0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.22s ease;
}

.auth-mode-btn:hover {
  color: #e7cf9c;
}

.auth-mode-btn.is-active {
  color: #ebddb9;
  border-color: rgba(228, 195, 126, 0.45);
  background: linear-gradient(138deg, rgba(177, 133, 61, 0.3), rgba(34, 25, 12, 0.72));
  box-shadow: inset 0 0 0 1px rgba(239, 212, 152, 0.2);
}

.auth-field[hidden] {
  display: none !important;
}

.auth-submit .auth-submit-label {
  display: none;
}

.login-switch-form[data-auth-mode="password"] .auth-submit-label[data-auth-label="password"] {
  display: inline;
}

.login-switch-form[data-auth-mode="register"] .auth-submit-label[data-auth-label="register"] {
  display: inline;
}

.auth-help {
  margin: 2px 0 0;
  text-align: center;
  font-size: 13px;
  color: #93a8c9;
  text-decoration: none;
  display: block;
}

.login-switch-form[data-auth-mode="register"] .auth-help {
  display: none;
}

.auth-feedback {
  margin: 0;
  min-height: 20px;
  font-size: 13px;
  color: #9fb3d5;
  text-align: center;
}

.auth-feedback.is-error {
  color: #f29ea3;
}

.auth-feedback.is-success {
  color: #8ad0a4;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.detail-status {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.detail-meta,
.detail-summary {
  margin: 8px 0 0;
  color: #afc3e1;
}

.lesson-list {
  margin: 14px 0 0;
  padding-left: 22px;
  color: #dce9fb;
  line-height: 1.7;
}

.lesson-list li + li {
  margin-top: 4px;
}

.info-box {
  padding: 18px;
}

.info-box h1 {
  margin: 0;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(42px, 4.8vw, 66px);
  color: #ebddb9;
}

.info-box h2 {
  margin: 0;
  font-size: 28px;
  color: #ecd6a5;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
}

.info-sub {
  margin: 8px 0 0;
  color: #a3b6d5;
}

.info-content {
  margin-top: 14px;
  border: 1px solid rgba(128, 160, 212, 0.25);
  border-radius: 10px;
  padding: 14px;
  background: rgba(10, 22, 40, 0.86);
}

.info-content h2 {
  margin: 0;
  font-size: 22px;
  color: #ecd6a5;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
}

.info-content p {
  margin: 10px 0 0;
  color: #c3d4ee;
  line-height: 1.72;
}

.info-content ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #c3d4ee;
  line-height: 1.72;
}

.support-action {
  margin-top: 18px;
  text-align: center;
}

.admin-box {
  padding: 18px;
}

.admin-search-box {
  margin-top: 14px;
  border: 1px solid rgba(125, 157, 210, 0.25);
  border-radius: 10px;
  background: rgba(10, 22, 40, 0.86);
  padding: 12px;
}

.admin-search-box h2 {
  margin: 0;
  font-size: 20px;
  color: #ecd6a5;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
}

.admin-search-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.admin-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-selected-info {
  margin: 12px 0 0;
  color: #a8bcda;
}

.admin-override-form {
  margin-top: 10px;
  grid-template-columns: 1fr 180px auto;
}

.admin-state-grid {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.admin-bind-form {
  grid-template-columns: minmax(0, 1fr) 170px 170px auto;
}

.admin-discord-queue-form {
  grid-template-columns: 160px 160px minmax(0, 1fr) auto;
}

.admin-state-grid .btn {
  justify-self: start;
}

.admin-membership-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.admin-member-row {
  border: 1px solid rgba(125, 157, 210, 0.25);
  border-radius: 10px;
  background: rgba(10, 22, 40, 0.86);
  padding: 12px;
  display: grid;
  gap: 4px;
}

.admin-member-row p {
  margin: 0;
  color: #bdd0ec;
}

.admin-member-row .admin-row-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.reset-box .login-form {
  width: min(560px, 100%);
}

.language-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lang-choice {
  min-width: 180px;
}

.lang-choice.is-active {
  color: #1c1207;
  background: linear-gradient(136deg, #f1cd87, #cb9341);
  border-color: transparent;
}

.site-footer {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  background: rgba(4, 11, 22, 0.92);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

.footer-links li + li::before {
  content: "·";
  margin-right: 7px;
  color: #7186a8;
}

.footer-links a,
.footer-links button {
  border: none;
  background: transparent;
  color: #b2c4e0;
  text-decoration: none;
  font-size: 13px;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.footer-copy {
  margin: 8px 0 0;
  color: #8094b5;
  font-size: 12px;
}

@media (max-width: 980px) {
  .catalog-v2-controls {
    grid-template-columns: 1fr;
  }

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

  .tabs.v2-tabs {
    width: 100%;
  }

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

  .tabs {
    width: 100%;
  }

  .tabs button {
    flex: 1;
  }

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

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

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

  .admin-override-form {
    grid-template-columns: 1fr;
  }

  .admin-bind-form,
  .admin-discord-queue-form {
    grid-template-columns: 1fr;
  }

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

  .volume-steps {
    grid-template-columns: 1fr;
  }

  .volume-step + .volume-step {
    border-left: none;
    border-top: 1px solid rgba(19, 30, 48, 0.09);
  }

  .volume-form-grid {
    grid-template-columns: 1fr;
  }

  .update-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

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

@media (max-width: 760px) {
  .page {
    width: min(1180px, calc(100% - 14px));
  }

  .header-inner {
    min-height: 62px;
  }

  .brand {
    gap: 8px;
  }

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

  .brand-logo {
    font-size: clamp(20px, 7.2vw, 32px);
  }

  .brand-tagline {
    font-size: 8px;
    letter-spacing: 0.2em;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(6, 15, 30, 0.98);
    padding: 8px;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link,
  .nav-link.active {
    text-align: center;
  }

  .hero h1,
  .section-title {
    font-size: 62px;
  }

  .catalog-v2 {
    padding: 14px 10px 12px;
  }

  .catalog-v2-head h1 {
    font-size: 58px;
  }

  .tabs.v2-tabs button {
    font-size: 14px;
    min-height: 34px;
    padding: 0 6px;
  }

  .sort.v2-sort {
    font-size: 14px;
  }

  .course-grid-v2 {
    grid-template-columns: 1fr;
  }

  .course-card-v2 {
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 152px;
    padding: 8px;
  }

  .card-top-v2 h3 {
    font-size: 24px;
  }

  .language-actions {
    flex-direction: column;
  }

  .lang-choice {
    width: 100%;
  }

  .hero p {
    font-size: 16px;
  }

  .volume-step {
    min-height: 142px;
  }

  body[data-nav="volume"] .volume-hero .simple-sub {
    font-size: 17px;
  }

  .level-title {
    font-size: clamp(22px, 5.2vw, 30px);
  }

  .level-meta {
    font-size: 17px;
  }

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

  .course-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .course-level,
  .course-go {
    grid-column: 2;
    justify-self: start;
  }

  .course-main h3 {
    font-size: 34px;
  }

  .cta h2 {
    font-size: 48px;
  }
}

body[data-nav="home"] .page {
  width: min(1360px, calc(100% - 26px));
}

.home-canvas {
  margin-top: 12px;
}

body[data-nav="home"]::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 28% 35%, rgba(255, 228, 165, 0.26) 0 1px, transparent 1px);
  background-size: 180px 180px;
  opacity: 0.14;
  animation: driftParticles 20s linear infinite;
}

body[data-nav="home"]::before {
  content: none;
}

.home-hero {
  position: relative;
  min-height: clamp(540px, 76vh, 760px);
  overflow: hidden;
  border: 1px solid rgba(111, 146, 208, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 6%, rgba(231, 183, 88, 0.26), transparent 28%),
    radial-gradient(circle at 18% 92%, rgba(75, 124, 211, 0.26), transparent 34%),
    linear-gradient(160deg, #02070f 0%, #06132a 48%, #091a39 100%);
  box-shadow: 0 24px 68px rgba(0, 2, 10, 0.56);
  isolation: isolate;
}

.home-hero::before {
  content: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 231, 176, 0.76) 0 1px, transparent 2.6px),
    radial-gradient(circle at 58% 22%, rgba(192, 217, 255, 0.44) 0 1px, transparent 2.4px),
    radial-gradient(circle at 82% 30%, rgba(255, 215, 138, 0.6) 0 1px, transparent 2.5px),
    radial-gradient(circle at 64% 38%, rgba(255, 223, 155, 0.44) 0 1px, transparent 2.3px),
    radial-gradient(circle at 92% 20%, rgba(255, 232, 180, 0.72) 0 1.2px, transparent 2.8px),
    radial-gradient(circle at 74% 48%, rgba(255, 219, 146, 0.5) 0 1px, transparent 2.3px);
  opacity: 0.48;
  animation: floatLights 18s ease-in-out infinite alternate, twinkleLights 6.5s ease-in-out infinite;
}

.home-grid {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
  padding: clamp(26px, 4.2vw, 64px);
}

.home-copy {
  max-width: 620px;
}

.home-kicker {
  margin: 0;
  font-size: 13px;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: rgba(225, 196, 129, 0.88);
}

.home-copy h1 {
  margin: 14px 0 0;
  font-size: clamp(23px, calc(6.1vw - 3px), 106px);
  line-height: 0.94;
  color: #f6f7fb;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
}

.home-lines {
  margin: 28px 0 0;
  color: #9eacc2;
  font-size: clamp(6px, calc(2.25vw - 3px), 32px);
  line-height: 1.56;
  letter-spacing: 0.015em;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
}

.home-line {
  display: block;
  white-space: nowrap;
}

.home-mark {
  margin-left: 6px;
  font-weight: 900;
}

.home-mark-red {
  color: #ff686f;
  font-size: calc(1em + 3px);
}

.home-mark-gold {
  color: #f1d8a0;
}

.home-enter {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 194px;
  min-height: 66px;
  border-radius: 16px;
  border: 1px solid rgba(208, 170, 97, 0.58);
  background: linear-gradient(160deg, rgba(62, 52, 38, 0.9), rgba(44, 36, 26, 0.92));
  color: #f1dfbc;
  font-size: 33px;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  transition: transform 150ms ease, box-shadow 150ms ease;
  margin-left: auto;
  margin-right: auto;
}

.home-enter:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
}

.hero-art {
  flex: 0 1 620px;
  max-width: 620px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.art-shell {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1.38;
  border-radius: 0;
  border: none;
  background: transparent;
  overflow: visible;
  backdrop-filter: none;
  box-shadow: none;
}

.art-shell::before {
  content: none;
}

.art-shell::after {
  content: none;
}

.fractal-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(2, 8, 19, 0.5));
  animation: visualFloat 8s ease-in-out infinite;
}

.k-bars line {
  stroke: url(#barGlow);
  stroke-width: 2.8;
  stroke-linecap: round;
  opacity: 0.58;
  animation: barPulse 5.8s ease-in-out infinite;
}

.k-bars line:nth-child(2n) {
  animation-delay: 0.9s;
}

.k-bars line:nth-child(3n) {
  animation-delay: 1.8s;
}

.wave {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wave-echo {
  stroke: url(#traceSoft);
  stroke-width: 18;
  opacity: 0.5;
  filter: url(#lineGlow);
}

.wave-main {
  stroke: url(#traceGold);
  stroke-width: 8;
  filter: url(#lineGlow);
  animation: glowFlow 6.4s linear infinite;
}

.wave-core {
  stroke: rgba(255, 240, 192, 0.9);
  stroke-width: 3.1;
  stroke-dasharray: 2 12;
  opacity: 0.9;
  animation: dashTravel 7.2s linear infinite;
}

.energy-node {
  filter: url(#nodeGlow);
  animation: nodeBreath 4.2s ease-in-out infinite;
}

.energy-node:nth-of-type(2) {
  animation-delay: 0.5s;
}

.energy-node:nth-of-type(3) {
  animation-delay: 1s;
}

.energy-node:nth-of-type(4) {
  animation-delay: 1.5s;
}

.energy-node:nth-of-type(5) {
  animation-delay: 2s;
}

.energy-node.top-node {
  animation: topNodeFloat 2.8s ease-in-out infinite;
  animation-delay: 0s;
  transform-box: fill-box;
  transform-origin: center;
}

.node-ring {
  fill: rgba(27, 22, 13, 0.34);
  stroke: rgba(247, 217, 148, 0.82);
  stroke-width: 1.8;
}

.node-dot {
  fill: url(#nodeFill);
}

.spark {
  fill: rgba(255, 229, 174, 0.9);
  opacity: 0.64;
  filter: drop-shadow(0 0 8px rgba(250, 210, 134, 0.72));
  animation: sparkPulse 4.6s ease-in-out infinite;
}

.spark.p2,
.spark.p4,
.spark.p7 {
  animation-delay: 0.9s;
}

.spark.p3,
.spark.p6 {
  animation-delay: 1.8s;
}

.spark.p5,
.spark.p8 {
  animation-delay: 2.7s;
}

@media (max-width: 980px) {
  .home-grid {
    grid-template-columns: 1fr;
    padding: clamp(18px, 4vw, 30px);
  }

  .home-copy {
    max-width: none;
  }

  .home-copy h1 {
    font-size: clamp(23px, calc(7vw - 3px), 72px);
  }

  .home-lines {
    font-size: clamp(6px, calc(2.5vw - 3px), 25px);
  }

  .home-enter {
    min-width: 166px;
    min-height: 58px;
    font-size: 25px;
  }

  .hero-art {
    flex: 0 1 auto;
    max-width: 820px;
    padding-bottom: 10px;
  }

  .art-shell {
    max-width: 820px;
  }
}

@media (max-width: 760px) {
  body[data-nav="home"] .page {
    width: min(1360px, calc(100% - 14px));
  }

  .home-hero {
    border-radius: 12px;
  }

  .home-kicker {
    font-size: 11px;
    letter-spacing: 0.24em;
  }

  .home-lines {
    margin-top: 20px;
    line-height: 1.5;
  }

  .hero-art {
    display: none;
  }

  .art-shell {
    width: 100%;
  }
}

@keyframes glowFlow {
  0% {
    stroke-dasharray: 1 0;
    opacity: 0.88;
  }
  50% {
    stroke-dasharray: 1 0;
    opacity: 1;
  }
  100% {
    stroke-dasharray: 1 0;
    opacity: 0.88;
  }
}

@keyframes dashTravel {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -140;
  }
}

@keyframes nodeBreath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes topNodeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes sparkPulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes barPulse {
  0%,
  100% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.78;
  }
}

@keyframes visualFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -5px, 0);
  }
}

@keyframes driftParticles {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-90px, 40px, 0);
  }
}

@keyframes floatLights {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@keyframes twinkleLights {
  0%,
  100% {
    opacity: 0.34;
  }
  50% {
    opacity: 0.58;
  }
}

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