:root {
  --bg0: #07090f;
  --bg1: #0b0e16;
  --bg2: #121624;
  --bg3: #1a2032;
  --line: rgba(154, 170, 210, 0.16);
  --line-soft: rgba(154, 170, 210, 0.08);
  --tx: #eef1f8;
  --tx2: #a9b2c8;
  --tx3: #66708c;
  --ben: #ff5c8a;
  --ben-soft: rgba(255, 92, 138, 0.14);
  --ben-line: rgba(255, 92, 138, 0.38);
  --hp: #41b7ff;
  --hp-soft: rgba(65, 183, 255, 0.13);
  --hp-line: rgba(65, 183, 255, 0.36);
  --gold: #f2c14e;
  --gold-2: #ffe08e;
  --gold-soft: rgba(242, 193, 78, 0.14);
  --green: #3ddc97;
  --green-soft: rgba(61, 220, 151, 0.14);
  --danger: #ff7a6b;
  --f-disp: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --f-num: "DIN Alternate", "Bahnschrift", "Roboto Condensed", "Arial Narrow", "PingFang SC", sans-serif;
  --f-body: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --tabbar-h: 62px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overscroll-behavior: none;
}

body {
  font-family: var(--f-body);
  color: var(--tx);
  background: var(--bg0);
  overflow: hidden;
  position: fixed;
  inset: 0;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

input, textarea { user-select: text; font-family: inherit; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(52vw 42vh at 12% -4%, rgba(255, 92, 138, 0.13), transparent 62%),
    radial-gradient(52vw 42vh at 88% -4%, rgba(65, 183, 255, 0.12), transparent 62%),
    radial-gradient(70vw 46vh at 50% 112%, rgba(242, 193, 78, 0.07), transparent 60%);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 56px 100%;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.12) 40%, rgba(0,0,0,0.4));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.12) 40%, rgba(0,0,0,0.4));
  z-index: 0;
  opacity: 0.5;
}

h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--gold); text-decoration: none; }
svg { display: block; }

.app {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(11, 14, 22, 0.92), rgba(11, 14, 22, 0.55));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.brand-seal {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--f-disp);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-2);
  background: linear-gradient(160deg, rgba(242, 193, 78, 0.22), rgba(242, 193, 78, 0.06));
  border: 1px solid rgba(242, 193, 78, 0.45);
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(242, 193, 78, 0.18), inset 0 0 10px rgba(242, 193, 78, 0.12);
}

.brand-text { min-width: 0; }

.brand-text h1 {
  font-family: var(--f-disp);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 11px;
  color: var(--tx2);
  white-space: nowrap;
}

.sep-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--tx3);
}

.ver-chip {
  flex: none;
  font-family: var(--f-num);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--tx3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
}

.pages { flex: 1; position: relative; min-height: 0; }

.page {
  position: absolute;
  inset: 0;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.page.is-active { display: block; }

.page.anim-l { animation: pageInL 0.26s cubic-bezier(0.22, 0.8, 0.3, 1); }
.page.anim-r { animation: pageInR 0.26s cubic-bezier(0.22, 0.8, 0.3, 1); }

@keyframes pageInL {
  from { opacity: 0; transform: translateX(26px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pageInR {
  from { opacity: 0; transform: translateX(-26px); }
  to { opacity: 1; transform: translateX(0); }
}

.page-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
}

.page-body--scroll { min-height: 0; }

.panel {
  position: relative;
  background: linear-gradient(175deg, rgba(23, 28, 44, 0.85), rgba(15, 19, 31, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.panel--grow {
  flex: 1;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 10px;
  overflow: hidden;
}

.panel--carousel {
  padding: 12px 0 8px;
  min-height: 0;
}

.panel-head {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.panel-tt h2 {
  font-family: var(--f-disp);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.panel-tt p { margin-top: 3px; font-size: 11px; color: var(--tx3); }

.legend { display: flex; align-items: center; gap: 10px; flex: none; }

.legend--foot { justify-content: center; padding: 8px 0 2px; }

.lg-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--tx2);
}

.lg-item i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--c, var(--tx2));
  box-shadow: 0 0 8px var(--c, transparent);
}

.badge {
  flex: none;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--tx2);
}

.badge--gold { color: var(--gold-2); border-color: rgba(242, 193, 78, 0.4); background: var(--gold-soft); }
.badge--ben { color: var(--ben); border-color: var(--ben-line); background: var(--ben-soft); }
.badge--hp { color: var(--hp); border-color: var(--hp-line); background: var(--hp-soft); }
.badge--green { color: var(--green); border-color: rgba(61, 220, 151, 0.4); background: var(--green-soft); }

.filter-row {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.seg button {
  padding: 6px 13px;
  font-size: 12px;
  color: var(--tx2);
  border-radius: 999px;
  transition: color 0.18s, background 0.18s, box-shadow 0.18s;
}

.seg button.is-on {
  color: #14100a;
  font-weight: 600;
  background: linear-gradient(160deg, var(--gold-2), var(--gold));
  box-shadow: 0 4px 14px rgba(242, 193, 78, 0.3);
}

.seg--ghost button.is-on {
  color: var(--tx);
  background: var(--bg3);
  box-shadow: inset 0 0 0 1px var(--line);
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--tx2);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 999px;
}

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

.gold-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #17120a;
  background: linear-gradient(165deg, var(--gold-2) 0%, var(--gold) 58%, #d9a63a 100%);
  border-radius: var(--r-md);
  box-shadow: 0 10px 26px rgba(242, 193, 78, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gold-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.gold-btn:active { transform: scale(0.97); box-shadow: 0 6px 16px rgba(242, 193, 78, 0.22); }

.gold-btn--big { padding: 14px 16px; font-size: 15px; }

.ghost-btn {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--tx2);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.15s ease;
}

.ghost-btn:active { transform: scale(0.97); }

.duel {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  align-items: stretch;
  gap: 0;
  position: relative;
}

.fighter {
  position: relative;
  overflow: hidden;
  padding: 12px 12px 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(175deg, rgba(23, 28, 44, 0.9), rgba(14, 18, 29, 0.95));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.fighter--ben { border-top: 2px solid var(--ben); }
.fighter--ben::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 64px;
  background: radial-gradient(80% 100% at 20% 0%, var(--ben-soft), transparent 75%);
  pointer-events: none;
}

.fighter--hp { border-top: 2px solid var(--hp); text-align: right; }
.fighter--hp::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 64px;
  background: radial-gradient(80% 100% at 80% 0%, var(--hp-soft), transparent 75%);
  pointer-events: none;
}

.f-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  position: relative;
}

.fighter--hp .f-head { flex-direction: row-reverse; }

.f-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.f-name::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}

.fighter--ben .f-name { color: var(--ben); --c: var(--ben); }
.fighter--hp .f-name { color: var(--hp); --c: var(--hp); }

.f-delta {
  font-family: var(--f-num);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--tx2);
}

.f-delta.is-down { color: var(--green); border-color: rgba(61, 220, 151, 0.4); background: var(--green-soft); }
.f-delta.is-up { color: var(--danger); border-color: rgba(255, 122, 107, 0.4); background: rgba(255, 122, 107, 0.12); }

.f-weight {
  position: relative;
  margin-top: 10px;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: clamp(34px, 11vw, 46px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px var(--glow);
}

.fighter--ben { --glow: rgba(255, 92, 138, 0.4); }
.fighter--hp { --glow: rgba(65, 183, 255, 0.35); }

.f-weight small {
  font-size: 13px;
  font-weight: 500;
  color: var(--tx2);
  margin-left: 4px;
  letter-spacing: 0.08em;
}

.f-meta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--tx2);
}

.fighter--hp .f-meta { flex-direction: row-reverse; }

.f-meta em { font-style: normal; color: var(--tx3); }

.f-spark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  opacity: 0.75;
  pointer-events: none;
}

.f-spark svg { width: 100%; height: 100%; }

.duel-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 4px;
  position: relative;
}

.duel-mid::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}

.vs {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--gold-2);
  background: radial-gradient(circle at 50% 30%, rgba(242, 193, 78, 0.28), rgba(242, 193, 78, 0.05));
  border: 1px solid rgba(242, 193, 78, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(242, 193, 78, 0.3);
  text-shadow: 0 0 12px rgba(242, 193, 78, 0.6);
}

.duel-lead {
  position: relative;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--tx3);
}

.today-strip {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  text-align: left;
  background: linear-gradient(175deg, rgba(23, 28, 44, 0.85), rgba(15, 19, 31, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.15s ease;
}

.today-strip:active { transform: scale(0.98); }

.ts-dots { display: flex; gap: 5px; flex: none; }

.ts-dot {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--tx3);
  background: var(--bg2);
}

.ts-dot.is-done { color: var(--green); border-color: rgba(61, 220, 151, 0.45); background: var(--green-soft); }
.ts-dot.is-ben.is-done { color: var(--ben); border-color: var(--ben-line); background: var(--ben-soft); }
.ts-dot.is-hp.is-done { color: var(--hp); border-color: var(--hp-line); background: var(--hp-soft); }

.ts-text { flex: 1; min-width: 0; }

.ts-text strong { display: block; font-size: 13px; font-weight: 600; }

.ts-text span { display: block; margin-top: 1px; font-size: 11px; color: var(--tx3); }

.ts-arrow { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--tx3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.season-mini {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  text-align: left;
  background: linear-gradient(175deg, rgba(23, 28, 44, 0.85), rgba(15, 19, 31, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.15s ease;
}

.season-mini:active { transform: scale(0.98); }

.sm-info { flex: 1; min-width: 0; }

.sm-info strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sm-info span { display: block; margin-top: 2px; font-size: 11px; color: var(--tx3); }

.sm-bar {
  flex: 1.2;
  height: 6px;
  border-radius: 999px;
  background: var(--bg3);
  overflow: hidden;
}

.sm-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
  transition: width 0.5s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.sm-pct {
  flex: none;
  font-family: var(--f-num);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-2);
}

.chart {
  position: relative;
  flex: 1;
  min-height: 120px;
  border-radius: var(--r-sm);
}

.chart--home { min-height: 110px; }
.chart--trend { min-height: 200px; }

.chart svg.chart-svg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }

.chart-grid line { stroke: var(--line-soft); stroke-width: 1; }

.chart-axis text {
  fill: var(--tx3);
  font-size: 10px;
  font-family: var(--f-num);
  letter-spacing: 0.02em;
}

.chart-series path.line {
  fill: none;
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-series path.area { stroke: none; }

.chart-series circle.dot { stroke: var(--bg2); stroke-width: 1.5; }

.chart-cross { stroke: rgba(242, 193, 78, 0.55); stroke-width: 1; stroke-dasharray: 3 4; }

.chart-focus { stroke: var(--gold-2); stroke-width: 2; }

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--tx3);
  text-align: center;
  padding: 0 20px;
}

.chart-tip {
  position: absolute;
  top: 6px;
  min-width: 108px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(10, 13, 20, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 3;
}

.chart-tip.is-show { opacity: 1; transform: translateY(0); }

.chart-tip .tip-date { font-size: 10px; color: var(--tx3); margin-bottom: 4px; }

.chart-tip .tip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  padding: 1px 0;
}

.chart-tip .tip-row i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  margin-right: 5px;
  background: var(--c);
}

.chart-tip .tip-row b { font-family: var(--f-num); font-weight: 700; }

.stat-duo {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(175deg, rgba(23, 28, 44, 0.85), rgba(15, 19, 31, 0.92));
}

.stat-card .sc-label { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--tx2); }

.stat-card .sc-label i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}

.stat-card .sc-value {
  margin-top: 6px;
  font-family: var(--f-num);
  font-size: 24px;
  font-weight: 700;
  color: var(--c);
  font-variant-numeric: tabular-nums;
}

.stat-card .sc-value small { font-size: 12px; color: var(--tx3); font-weight: 500; margin-left: 2px; }

.stat-card .sc-note { margin-top: 3px; font-size: 11px; color: var(--tx3); }

.carousel {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 14px 6px;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar { display: none; }

.report-card {
  flex: 0 0 84%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(175deg, rgba(23, 28, 44, 0.9), rgba(14, 18, 29, 0.95));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.report-card.is-today { border-color: rgba(242, 193, 78, 0.5); box-shadow: 0 0 0 1px rgba(242, 193, 78, 0.25), 0 14px 34px rgba(0, 0, 0, 0.35); }

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

.rc-date { font-family: var(--f-disp); font-size: 17px; font-weight: 700; letter-spacing: 0.03em; }

.rc-sub { margin-top: 3px; font-size: 11px; color: var(--tx3); }

.rc-tag {
  flex: none;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--tx2);
}

.rc-tag.tone-green { color: var(--green); border-color: rgba(61, 220, 151, 0.4); background: var(--green-soft); }
.rc-tag.tone-gold { color: var(--gold-2); border-color: rgba(242, 193, 78, 0.4); background: var(--gold-soft); }
.rc-tag.tone-ben { color: var(--ben); border-color: var(--ben-line); background: var(--ben-soft); }
.rc-tag.tone-hp { color: var(--hp); border-color: var(--hp-line); background: var(--hp-soft); }

.rc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.rc-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 14px;
  border-radius: var(--r-sm);
  background: var(--bg2);
  border: 1px solid var(--line-soft);
}

.rc-cell.is-ben { border-left: 2px solid var(--ben-line); }
.rc-cell.is-hp { border-left: 2px solid var(--hp-line); }

.rc-cell span { font-size: 10px; color: var(--tx3); letter-spacing: 0.06em; }

.rc-cell strong {
  font-family: var(--f-num);
  font-size: clamp(21px, 6vw, 27px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.rc-cell strong small { font-size: 10px; color: var(--tx3); font-weight: 500; margin-left: 2px; }

.rc-cell .fill-mark { font-size: 9px; color: var(--gold); margin-left: 4px; }

.rc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--tx3);
}

.rc-edit {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  font-size: 11px;
  color: var(--gold-2);
  border: 1px solid rgba(242, 193, 78, 0.4);
  background: var(--gold-soft);
  border-radius: 999px;
}

.rc-edit:active { transform: scale(0.95); }

.carousel-dots {
  flex: none;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 4px;
}

.carousel-dots button {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--bg3);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}

.carousel-dots button.is-on {
  width: 18px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  border-color: transparent;
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.carousel-empty {
  flex: 1;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--tx3);
  padding: 0 24px;
  text-align: center;
}

.season-hero {
  flex: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(242, 193, 78, 0.35);
  background:
    radial-gradient(90% 120% at 85% 0%, rgba(242, 193, 78, 0.12), transparent 55%),
    linear-gradient(175deg, rgba(23, 28, 44, 0.9), rgba(14, 18, 29, 0.95));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.sh-ring { position: relative; flex: none; width: 74px; height: 74px; }

.sh-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.sh-ring .ring-bg { fill: none; stroke: var(--bg3); stroke-width: 6; }

.sh-ring .ring-val {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.sh-ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-num);
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-2);
}

.sh-info { flex: 1; min-width: 0; }

.sh-info h2 {
  font-family: var(--f-disp);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sh-info .sh-dates { margin-top: 4px; font-family: var(--f-num); font-size: 12px; color: var(--tx2); letter-spacing: 0.03em; }

.sh-info .sh-stats { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 6px; }

.sh-chip {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--tx2);
  background: rgba(10, 13, 20, 0.5);
}

.sh-chip.is-gold { color: var(--gold-2); border-color: rgba(242, 193, 78, 0.4); }

.season-hero .sh-empty { flex: 1; }

.sh-empty strong { font-family: var(--f-disp); font-size: 17px; display: block; }

.sh-empty p { margin-top: 5px; font-size: 12px; color: var(--tx3); }

.list-title {
  flex: none;
  margin: 4px 2px -2px;
  font-family: var(--f-disp);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--tx2);
}

.season-list {
  flex: 1;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.season-list::-webkit-scrollbar { display: none; }

.season-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  background: var(--bg2);
}

.season-item.is-current { border-color: rgba(242, 193, 78, 0.45); background: linear-gradient(175deg, rgba(242, 193, 78, 0.08), var(--bg2)); }

.si-main { flex: 1; min-width: 0; }

.si-main strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.si-main span { display: block; margin-top: 2px; font-family: var(--f-num); font-size: 11px; color: var(--tx3); letter-spacing: 0.02em; }

.si-bar { flex: none; width: 74px; height: 5px; border-radius: 999px; background: var(--bg3); overflow: hidden; }

.si-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }

.si-edit {
  flex: none;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--tx2);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.si-edit:active { transform: scale(0.95); color: var(--gold-2); border-color: rgba(242, 193, 78, 0.4); }

.season-list .list-empty {
  padding: 26px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--tx3);
}

.season-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px 0;
  font-size: 11px;
  color: var(--tx3);
}

.season-foot a { color: var(--tx2); text-decoration: underline; text-underline-offset: 3px; }

.tabbar {
  flex: none;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr 64px 1fr 1fr;
  align-items: center;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 0 8px env(safe-area-inset-bottom);
  background: linear-gradient(180deg, rgba(13, 16, 26, 0.92), rgba(9, 11, 18, 0.98));
  border-top: 1px solid var(--line-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  color: var(--tx3);
  transition: color 0.18s ease;
}

.tab svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab span { font-size: 10px; letter-spacing: 0.08em; }

.tab::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  opacity: 0;
  transform: translateX(-50%) scale(0);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab.is-on { color: var(--gold-2); }

.tab.is-on svg { transform: translateY(-1px) scale(1.06); }

.tab.is-on::before { opacity: 1; transform: translateX(-50%) scale(1); }

.tab:active svg { transform: scale(0.88); }

.fab {
  position: relative;
  justify-self: center;
  width: 54px;
  height: 54px;
  margin-top: -26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #17120a;
  background: linear-gradient(160deg, var(--gold-2) 0%, var(--gold) 55%, #d9a63a 100%);
  border: 1px solid rgba(255, 224, 142, 0.7);
  box-shadow: 0 12px 28px rgba(242, 193, 78, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.16s ease;
}

.fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.fab:active { transform: scale(0.9) rotate(90deg); box-shadow: 0 8px 18px rgba(242, 193, 78, 0.3); }

.sheet, .tablex {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: block;
  pointer-events: none;
}

.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 11, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: linear-gradient(180deg, #151a2a, #0d1019 42%);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(104%);
  transition: transform 0.3s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.sheet.is-open, .tablex.is-open { pointer-events: auto; }

.sheet.is-open .sheet-mask { opacity: 1; }
.sheet.is-open .sheet-panel { transform: translateY(0); }

.sheet-grip {
  width: 40px;
  height: 4px;
  margin: 4px auto 10px;
  border-radius: 999px;
  background: var(--bg3);
  border: 1px solid var(--line-soft);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.sheet-head h2 { font-family: var(--f-disp); font-size: 18px; font-weight: 700; letter-spacing: 0.04em; }

.sheet-head p { margin-top: 4px; font-size: 11px; color: var(--tx3); }

.x-btn {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--tx2);
}

.x-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.x-btn:active { transform: scale(0.92); }

.record-meta {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.field > span { font-size: 11px; color: var(--tx3); letter-spacing: 0.06em; }

.field input {
  width: 100%;
  padding: 11px 12px;
  font-size: 14px;
  color: var(--tx);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  font-variant-numeric: tabular-nums;
}

.field input:focus {
  border-color: rgba(242, 193, 78, 0.55);
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.12);
}

.field--date { flex: 1; }

.field--date input { font-family: var(--f-num); letter-spacing: 0.04em; }

.season-chip {
  flex: none;
  max-width: 42%;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--gold-2);
  background: var(--gold-soft);
  border: 1px solid rgba(242, 193, 78, 0.35);
  border-radius: var(--r-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.p-col {
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg2);
}

.p-col--ben { border-top: 2px solid var(--ben); }
.p-col--hp { border-top: 2px solid var(--hp); }

.p-col header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.p-col header i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
}

.p-col--ben header { color: var(--ben); }
.p-col--ben header i { background: var(--ben); box-shadow: 0 0 8px var(--ben); }
.p-col--hp header { color: var(--hp); }
.p-col--hp header i { background: var(--hp); box-shadow: 0 0 8px var(--hp); }

.p-col header em {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--tx3);
}

.num-field { display: block; margin-bottom: 10px; }

.num-field:last-child { margin-bottom: 0; }

.num-field span { display: block; font-size: 10px; color: var(--tx3); letter-spacing: 0.08em; margin-bottom: 5px; }

.num-field input {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--f-num);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--tx);
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  outline: none;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.p-col--ben .num-field input:focus { border-color: var(--ben-line); box-shadow: 0 0 0 3px rgba(255, 92, 138, 0.14); }
.p-col--hp .num-field input:focus { border-color: var(--hp-line); box-shadow: 0 0 0 3px rgba(65, 183, 255, 0.14); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }

#seasonForm .field { margin-bottom: 12px; }

.sheet-actions {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.tablex {
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: var(--bg0);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.tablex.is-open { pointer-events: auto; opacity: 1; transform: translateY(0); }

.tablex-head {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg1);
}

.tablex-head h2 { font-family: var(--f-disp); font-size: 17px; font-weight: 700; }

.tablex-head p { margin-top: 3px; font-size: 11px; color: var(--tx3); }

.tablex-scroll {
  flex: 1;
  overflow: auto;
  padding: 0 0 env(safe-area-inset-bottom);
  -webkit-overflow-scrolling: touch;
}

.weight-table {
  border-collapse: collapse;
  min-width: 760px;
  font-size: 12px;
}

.weight-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 12px;
  text-align: right;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--tx3);
  background: var(--bg1);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.weight-table th:first-child, .weight-table td:first-child { position: sticky; left: 0; text-align: left; }

.weight-table th:first-child { z-index: 3; }

.weight-table td {
  padding: 9px 12px;
  text-align: right;
  font-family: var(--f-num);
  font-variant-numeric: tabular-nums;
  color: var(--tx2);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
  background: var(--bg0);
}

.weight-table td.season-cell {
  position: sticky;
  left: 0;
  z-index: 1;
  font-family: var(--f-disp);
  font-size: 12px;
  color: var(--gold-2);
  background: var(--bg1);
  border-right: 1px solid var(--line);
  vertical-align: middle;
  letter-spacing: 0.04em;
}

.weight-table td.date-cell { color: var(--tx2); }

.weight-table tr.is-today td { background: rgba(242, 193, 78, 0.07); }
.weight-table tr.is-today td.season-cell { background: rgba(242, 193, 78, 0.1); }

.weight-table .cell-fill {
  display: inline-block;
  margin-left: 4px;
  font-size: 9px;
  color: var(--gold);
  border: 1px solid rgba(242, 193, 78, 0.4);
  border-radius: 4px;
  padding: 0 3px;
}

.weight-table .cell-empty { color: var(--tx3); opacity: 0.5; }

.tablex .table-empty { text-align: center; color: var(--tx3); padding: 30px 12px; font-family: var(--f-body); }

.toast {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  left: 50%;
  z-index: 60;
  max-width: 86vw;
  padding: 10px 16px;
  font-size: 13px;
  text-align: center;
  border-radius: 999px;
  background: rgba(13, 17, 27, 0.95);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -140%);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.3, 1), opacity 0.28s ease;
  pointer-events: none;
}

.toast.is-show { transform: translate(-50%, 0); opacity: 1; }

.toast--success { border-color: rgba(61, 220, 151, 0.5); color: var(--green); }
.toast--error { border-color: rgba(255, 122, 107, 0.5); color: var(--danger); }
.toast--info { color: var(--tx); }

.static-page {
  min-height: 100dvh;
  padding: calc(20px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
}

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

.static-head h1 { font-family: var(--f-disp); font-size: 20px; font-weight: 700; letter-spacing: 0.04em; }

.static-head p { margin-top: 5px; font-size: 12px; color: var(--tx3); }

.notice {
  padding: 12px 14px;
  font-size: 13px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg2);
}

.notice--success { color: var(--green); border-color: rgba(61, 220, 151, 0.4); background: var(--green-soft); }
.notice--error { color: var(--danger); border-color: rgba(255, 122, 107, 0.4); background: rgba(255, 122, 107, 0.1); }

@media (max-height: 700px) {
  .fighter { padding-bottom: 26px; }
  .f-weight { font-size: clamp(30px, 10vw, 40px); }
  .chart--trend { min-height: 150px; }
  .panel--grow { min-height: 160px; }
}

@media (max-width: 350px) {
  .duel { grid-template-columns: 1fr 40px 1fr; }
  .seg button { padding: 6px 9px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
