@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/src/fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/src/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Cinzel Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("/src/fonts/cinzel-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Cinzel Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("/src/fonts/cinzel-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #0d0c0a;
  --surface-2: #14110d;
  --surface-3: #1b160f;
  --text: #f4e6c1;
  --muted: #bca77d;
  --faint: rgba(244, 230, 193, 0.45);
  --border: rgba(224, 168, 46, 0.36);
  --border-strong: rgba(224, 168, 46, 0.62);
  --accent: #e0a82e;
  --primary: #b62921;
  --primary-2: #e24a39;
  --good: #34d399;
  --bad: #fb923c;
  --shadow: rgba(244, 230, 193, 0.22);
  --font-data: "JetBrains Mono Variable", ui-monospace, "SF Mono", Menlo,
    "Hiragino Sans", "Yu Gothic", "Noto Sans CJK SC",
    "Segoe UI Symbol", "Apple Symbols", sans-serif, monospace;
  --font-display: "Cinzel Variable", Georgia, "Times New Roman", serif;
}

:root.light {
  color-scheme: light;
  --bg: #c9a978;
  --surface: #f4e6c1;
  --surface-2: #ead49f;
  --surface-3: #dcc18d;
  --text: #1a0e07;
  --muted: #4b321e;
  --faint: rgba(26, 14, 7, 0.52);
  --border: rgba(26, 14, 7, 0.55);
  --border-strong: #1a0e07;
  --accent: #7d5a10;
  --primary: #b62921;
  --primary-2: #8a1e18;
  --good: #047857;
  --bad: #b62921;
  --shadow: #4d2f17;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(224, 168, 46, 0.08), transparent 190px),
    radial-gradient(ellipse at 8% 0%, rgba(224, 168, 46, 0.12), transparent 38%),
    radial-gradient(ellipse at 96% 18%, rgba(182, 41, 33, 0.12), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-data);
}

button {
  font: inherit;
}

.shell {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px;
}

.table-card {
  border: 2px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(224, 168, 46, 0.05), transparent 34px),
    var(--surface);
  box-shadow: 2px 2px 0 var(--shadow);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.ns-status-bar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "brand season . actions";
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(224, 168, 46, 0.04), transparent 42px),
    var(--surface);
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 10px 14px;
}

.brand-cluster,
.season-panel,
.status-rail,
.actions {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-cluster {
  grid-area: brand;
  gap: 8px;
}

.brand-seal {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 2px solid color-mix(in srgb, var(--accent) 28%, #4d2f17);
  border-radius: 4px;
  background: var(--primary);
  color: #f4e6c1;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    2px 2px 0 color-mix(in srgb, var(--accent) 20%, transparent),
    inset 0 0 0 1px rgba(244, 230, 193, 0.2);
}

:root.light .brand-seal {
  border-color: #4d2f17;
  box-shadow: 2px 2px 0 #4d2f17;
}

.brand-copy {
  min-width: 0;
  line-height: 1;
}

.brand-kicker {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.38em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-title-row {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}

.brand-copy h1 {
  overflow: hidden;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signature {
  display: none;
  align-items: baseline;
  gap: 2px;
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 9px;
  font-style: italic;
  line-height: 1;
}

.signature-dot {
  color: color-mix(in srgb, var(--muted) 60%, transparent);
  font-style: normal;
}

.signature-name {
  color: color-mix(in srgb, var(--text) 85%, transparent);
  font-style: normal;
  font-weight: 600;
}

.signature-ninja {
  display: inline-flex;
  flex: 0 0 auto;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
    "Segoe UI Symbol", "Apple Symbols", sans-serif;
  font-style: normal;
  line-height: 1;
}

@media (max-width: 767px), (min-width: 1000px) {
  .signature {
    display: inline-flex;
  }
}

.season-panel {
  grid-area: season;
}

.season-calendar {
  position: relative;
  isolation: isolate;
  align-items: stretch;
  gap: 6px;
  overflow: hidden;
  min-height: 40px;
  border: 2px solid color-mix(in srgb, var(--accent) 52%, #4d2f17);
  border-radius: 7px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #4d2f17 70%, var(--surface)) 0%,
      color-mix(in srgb, var(--surface) 84%, #050505) 100%
    );
  box-shadow:
    2px 2px 0 color-mix(in srgb, #f4e6c1 22%, transparent),
    inset 0 0 0 1px color-mix(in srgb, #050505 44%, transparent);
}

:root.light .season-calendar {
  border-color: #4d2f17;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #f4e6c1 92%, white) 0%,
      color-mix(in srgb, #f4e6c1 84%, #c9a978) 100%
    );
  box-shadow: 2px 2px 0 #4d2f17;
}

.season-calendar-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 200px;
  padding: 4px 8px 4px 9px;
  border-right: 2px solid color-mix(in srgb, var(--accent) 44%, #4d2f17);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #4d2f17 76%, var(--surface)) 0%,
      var(--surface) 100%
    );
}

:root.light .season-calendar-title {
  border-right-color: color-mix(in srgb, #4d2f17 78%, transparent);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #f4e6c1 95%, white) 0%,
      color-mix(in srgb, #f4e6c1 82%, #c9a978) 100%
    );
}

.season-calendar-title::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 4px;
  width: 2px;
  border-radius: 999px;
  background: var(--accent);
}

:root.light .season-calendar-title::before {
  background: color-mix(in srgb, var(--primary) 88%, var(--accent));
}

.season-calendar-seal {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 230, 193, 0.4);
  border-radius: 4px;
  background: var(--primary);
  color: #f4e6c1;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 1px 1px 0 #4d2f17;
}

.season-calendar-copy {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
}

.season-calendar-unit,
.season-phase-pill {
  display: inline-flex;
  min-width: 74px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, #4d2f17);
  border-radius: 5px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #4d2f17 64%, var(--surface)) 0%,
      color-mix(in srgb, var(--surface) 84%, #050505) 100%
    );
  box-shadow:
    1px 1px 0 color-mix(in srgb, #f4e6c1 12%, transparent),
    inset 0 0 0 1px color-mix(in srgb, #050505 38%, transparent);
}

:root.light .season-calendar-unit,
:root.light .season-phase-pill {
  border-color: color-mix(in srgb, #4d2f17 74%, transparent);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #f4e6c1 94%, white) 0%,
      color-mix(in srgb, #f4e6c1 78%, #c9a978) 100%
    );
  box-shadow: 1px 1px 0 color-mix(in srgb, #4d2f17 42%, transparent);
}

.season-calendar-unit {
  gap: 5px;
  padding: 3px 8px;
}

.season-calendar-label {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

:root.light .season-calendar-label {
  color: var(--primary);
}

.season-calendar-number {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

:root.light .season-calendar-number {
  color: #1a0e07;
}

.season-phase-pill {
  align-self: center;
  padding: 3px 8px;
  color: color-mix(in srgb, var(--text) 86%, var(--accent));
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

:root.light .season-phase-pill {
  color: #1a0e07;
}

.season-calendar-countdown {
  padding: 3px 6px 3px 0;
}

.season-flip-countdown {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--text);
}

.season-flip-leaf {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, #4d2f17);
  border-radius: 7px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #4d2f17 64%, #2a180c) 0%,
      color-mix(in srgb, #2a180c 86%, #050505) 100%
    );
  box-shadow:
    1px 1px 0 color-mix(in srgb, #f4e6c1 18%, transparent),
    inset 0 0 0 1px color-mix(in srgb, #050505 42%, transparent);
  perspective: 128px;
}

:root.light .season-flip-leaf {
  border-color: #4d2f17;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #c9a978 42%, #f4e6c1) 0%,
      color-mix(in srgb, #c9a978 24%, #f4e6c1) 100%
    );
  box-shadow: 1px 1px 0 #4d2f17;
}

.season-flip-leaf--compact {
  width: 32px;
  min-height: 31px;
}

.season-flip-binding {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 5px;
  padding: 1px 8px 0;
  border-bottom: 1px solid color-mix(in srgb, #4d2f17 35%, transparent);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--primary) 96%, var(--accent)) 0%,
      color-mix(in srgb, var(--primary) 72%, #050505) 100%
    );
}

.season-flip-binding span {
  display: block;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: #f4e6c1;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #050505 45%, transparent);
}

.season-flip-page {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1px 1px 3px;
  color: var(--accent);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #4d2f17 82%, var(--surface)) 0%,
      var(--surface) 64%,
      color-mix(in srgb, var(--surface) 78%, #050505) 100%
    );
  box-shadow:
    0 -1px 0 color-mix(in srgb, #f4e6c1 12%, transparent),
    0 4px 8px color-mix(in srgb, #050505 58%, transparent);
  transform-origin: top center;
  will-change: transform, opacity;
  animation: seasonPageDrop 560ms cubic-bezier(0.18, 0.88, 0.24, 1);
}

:root.light .season-flip-page {
  color: #1a0e07;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #f4e6c1 96%, white) 0%,
      #f4e6c1 62%,
      color-mix(in srgb, #f4e6c1 88%, #c9a978) 100%
    );
  box-shadow:
    0 -1px 0 color-mix(in srgb, white 35%, transparent),
    0 4px 7px color-mix(in srgb, #1a0e07 20%, transparent);
}

.season-flip-page::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 14px;
  left: 6px;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}

:root.light .season-flip-page::after {
  background: color-mix(in srgb, #4d2f17 22%, transparent);
}

.season-flip-value {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  line-height: 0.92;
}

.season-flip-label {
  display: block;
  margin-top: 1px;
  color: color-mix(in srgb, var(--text) 78%, var(--accent));
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

:root.light .season-flip-label {
  color: var(--muted);
}

.season-flip-divider {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.season-flip-divider span {
  display: block;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

:root.light .season-flip-divider span {
  background: color-mix(in srgb, var(--primary) 80%, var(--accent));
}

.status-rail {
  grid-area: actions;
  justify-content: flex-end;
}

.ns-action-rail {
  position: relative;
  isolation: isolate;
  z-index: 4;
  gap: 2px;
  min-height: 29px;
  overflow: visible;
  border: 2px solid color-mix(in srgb, var(--accent) 45%, #4d2f17);
  border-radius: 7px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #4d2f17 68%, var(--surface)) 0%,
      var(--surface) 100%
    );
  padding: 2px 3px;
  box-shadow:
    2px 2px 0 color-mix(in srgb, #f4e6c1 20%, transparent),
    inset 0 0 0 1px color-mix(in srgb, #050505 44%, transparent);
}

:root.light .ns-action-rail {
  border-color: #4d2f17;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #f4e6c1 92%, white) 0%,
      color-mix(in srgb, #f4e6c1 82%, #c9a978) 100%
    );
  box-shadow: 2px 2px 0 #4d2f17;
}

.icon-button {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    background 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

:root.light .icon-button {
  color: #1a0e07;
}

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

.icon-button:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  transform: translateY(-1px);
}

:root.light .icon-button:hover {
  color: var(--primary);
}

@keyframes seasonPageDrop {
  0% {
    opacity: 0;
    transform: translateY(-112%) rotateX(22deg) scaleY(0.96);
    filter: brightness(1.12);
  }

  54% {
    opacity: 1;
    transform: translateY(9%) rotateX(-5deg) scaleY(1.02);
  }

  74% {
    opacity: 1;
    transform: translateY(-3%) rotateX(2deg) scaleY(0.99);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scaleY(1);
    filter: brightness(1);
  }
}

@keyframes nsSkeletonShimmer {
  0% {
    background-position: -120% 0;
  }

  100% {
    background-position: 220% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .season-flip-page,
  .ns-skel {
    animation: none;
  }
}

.table-card {
  overflow: hidden;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 9px 11px;
  border-bottom: 1px solid rgba(224, 168, 46, 0.16);
  text-align: right;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--accent);
  background:
    linear-gradient(180deg, rgba(224, 168, 46, 0.12), rgba(77, 47, 23, 0.16)),
    var(--surface);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

td {
  font-size: 13px;
}

tbody tr {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--surface-2) 72%, var(--surface));
}

tbody tr.is-active {
  background:
    linear-gradient(90deg, rgba(52, 211, 153, 0.12), transparent 28%),
    color-mix(in srgb, var(--surface-2) 82%, var(--surface));
}

tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(224, 168, 46, 0.12), transparent 34%),
    var(--surface-3);
}

tbody tr.skeleton-row {
  height: 48px;
}

tbody tr.skeleton-row:hover {
  background: color-mix(in srgb, var(--surface-2) 72%, var(--surface));
}

tbody tr.skeleton-row .rank-badge {
  color: color-mix(in srgb, var(--accent) 70%, var(--muted));
}

.ns-skel {
  display: inline-block;
  width: 5ch;
  min-width: 1.7em;
  height: 0.72em;
  vertical-align: middle;
  border-radius: 3px;
  background-color: color-mix(in srgb, var(--muted) 18%, transparent);
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--accent) 44%, transparent) 50%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-size: 60% 100%;
  animation: nsSkeletonShimmer 1.4s ease-in-out infinite;
}

:root.light .ns-skel {
  background-color: color-mix(in srgb, var(--muted) 16%, transparent);
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--primary) 24%, transparent) 50%,
    transparent 100%
  );
}

.skel-player {
  width: 16ch;
}

.skel-score {
  width: 8ch;
}

.skel-delta {
  width: 6ch;
}

.skel-short {
  width: 4ch;
}

.rank-col {
  width: 64px;
  text-align: center;
}

.player-col {
  min-width: 270px;
  text-align: left;
}

.rank-cell {
  text-align: center;
}

.rank-badge {
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  background: var(--surface-2);
  font-weight: 900;
}

.rank-badge.top-three {
  border-color: var(--border-strong);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}

.player-cell {
  text-align: left;
}

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

.activity-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(196, 172, 126, 0.35);
}

.activity-dot.active {
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.11);
}

.player-name {
  max-width: 250px;
  overflow: hidden;
  line-height: 1.12;
  font-weight: 900;
  text-overflow: ellipsis;
}

.score-cell {
  color: var(--text);
  font-weight: 900;
}

.delta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.delta strong {
  color: var(--good);
  font-size: 13px;
}

.delta small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.muted {
  color: rgba(196, 172, 126, 0.58);
}

.error {
  margin: 8px 0 0;
  color: var(--bad);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .ns-status-bar {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand brand"
      "season actions";
    justify-content: start;
    gap: 8px 10px;
    padding: 9px 12px;
  }

  .brand-cluster {
    justify-content: flex-start;
  }

  .season-panel {
    justify-self: start;
  }

  .status-rail {
    align-self: center;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .ns-status-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand brand"
      "season actions";
    justify-content: stretch;
    gap: 7px;
    padding: 8px;
  }

  .brand-cluster {
    justify-content: flex-start;
  }

  .season-panel {
    justify-self: stretch;
    width: 100%;
  }

  .season-calendar {
    gap: 3px;
  }

  .status-rail {
    width: auto;
    justify-content: flex-end;
  }

  .season-calendar-title {
    gap: 5px;
    min-width: 166px;
    padding: 3px 5px 3px 7px;
  }

  .season-calendar-title::before {
    top: 5px;
    bottom: 5px;
    left: 2px;
    width: 1px;
  }

  .season-calendar-seal {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .season-calendar-copy {
    gap: 4px;
  }

  .season-calendar-label {
    font-size: 7px;
    letter-spacing: 0.16em;
  }

  .season-calendar-number {
    font-size: 15px;
  }

  .season-calendar-unit,
  .season-phase-pill {
    min-width: 60px;
    min-height: 22px;
  }

  .season-calendar-unit {
    gap: 4px;
    padding: 2px 5px;
  }

  .season-phase-pill {
    padding: 2px 5px;
    font-size: 8px;
  }

  .season-calendar-countdown {
    flex: 1;
    justify-content: center;
    padding: 0 4px 0 0;
  }

  .season-flip-leaf--compact {
    width: 23px;
    min-height: 24px;
  }

  .season-flip-binding {
    height: 4px;
    padding: 1px 6px 0;
  }

  .season-flip-binding span {
    width: 1px;
    height: 1px;
  }

  .season-flip-page {
    padding: 1px 1px 2px;
  }

  .season-flip-page::after {
    right: 4px;
    bottom: 11px;
    left: 4px;
  }

  .season-flip-value {
    font-size: 11px;
  }

  .season-flip-label {
    margin-top: 1px;
    font-size: 4px;
  }

  .season-flip-divider {
    gap: 2px;
  }

  .season-flip-divider span {
    width: 1px;
    height: 1px;
  }

  .ns-action-rail {
    min-height: 32px;
    padding: 2px;
  }

  .icon-button {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 380px) {
  .shell {
    padding: 6px;
  }

  .brand-seal {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }

  .brand-copy h1 {
    font-size: 14px;
  }

  .season-calendar-title {
    min-width: 134px;
  }

  .season-calendar-seal {
    width: 18px;
    height: 18px;
  }

  .season-calendar-copy {
    gap: 3px;
  }

  .season-calendar-unit,
  .season-phase-pill {
    min-width: 51px;
    min-height: 20px;
  }

  .season-calendar-label {
    display: inline;
    font-size: 6px;
    letter-spacing: 0.08em;
  }

  .season-calendar-number {
    font-size: 13px;
  }

  .season-calendar-unit {
    gap: 3px;
    padding: 2px 4px;
  }

  .season-phase-pill {
    padding: 2px 4px;
    font-size: 7px;
    letter-spacing: 0.03em;
  }

  .season-flip-leaf--compact {
    width: 21px;
  }

  .icon-button {
    width: 23px;
    height: 23px;
  }

  .icon-button svg {
    width: 13px;
    height: 13px;
  }
}
