:root {
  color-scheme: dark;
  --bg: #101217;
  --rail: #14171d;
  --panel: #191d25;
  --panel-2: #20252e;
  --line: #323640;
  --muted: #adb4c2;
  --ink: #f3f4f6;
  --accent: #d1f393;
  --green: #a9e588;
  --gold: #ffce78;
  --violet: #c7a8ff;
  --blue: #94c7ff;
  --rose: #ffaaa4;
  --radius: 17px;
  font:
    100%/1.5 "DM Sans",
    "Segoe UI",
    Arial,
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
select,
input[type="file"] {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
a {
  color: var(--accent);
}
svg.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke-width: 1.75;
}
.pixel {
  object-fit: contain;
  image-rendering: pixelated;
}
.text-button,
.nav-link,
.ghost,
.button,
.icon-button,
.player,
.feed-filter,
.card-button,
.trophy-card,
.quick-add,
.text-tab,
.close-scrim {
  border: 0;
}
.button,
.ghost,
.text-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
  line-height: 1.25;
}
.button,
.ghost {
  min-height: 40px;
  border-radius: 9px;
  padding: 9px 15px;
  font-size: 0.9rem;
}
.button {
  background: var(--accent);
  color: #202819;
}
.button:hover {
  background: #ddff9f;
}
.ghost,
.icon-button {
  background: #22262f;
  color: var(--ink);
  border: 1px solid #373c47;
}
.ghost:hover,
.icon-button:hover {
  background: #30353f;
}
.icon-button {
  min-width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 9px;
}
.text-button {
  padding: 4px 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.88rem;
}
.text-button:hover {
  text-decoration: underline;
}
.layout {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 25px 15px 18px;
  border-right: 1px solid #2b2f37;
  background: var(--rail);
  overflow-y: auto;
  z-index: 5;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 0 9px 26px;
  font-size: 1.55rem;
  letter-spacing: -0.075em;
  font-weight: 780;
  line-height: 1;
}
.brand-mark {
  width: 35px;
  height: 37px;
  flex-shrink: 0;
}
.side-group {
  margin: 0 0 22px;
}
.side-label,
.eyebrow,
.field-label,
.date-label {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.71rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 650;
}
.side-label {
  display: block;
  color: #9da6b4;
  padding: 0 12px 9px;
}
.nav-link,
.player {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  width: 100%;
  margin-bottom: 3px;
  min-height: 40px;
  background: transparent;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.91rem;
  font-weight: 550;
  color: #c3c9d3;
}
.nav-link:hover,
.player:hover {
  background: #22262e;
}
.nav-link.active {
  background: #2b3527;
  color: var(--accent);
}
.nav-link.active .icon {
  stroke-width: 2;
}
.player {
  gap: 9px;
  padding: 6px 11px;
}
.player.active {
  color: #f7f9fb;
  background: #22262d;
}
.active-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: auto;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid #725444;
  background: #44322a;
}
.avatar .pixel {
  width: 94%;
  height: 94%;
}
.avatar.bear {
  background: #43384f;
  border-color: #685275;
}
.avatar.rabbit {
  background: #30454a;
  border-color: #4b676f;
}
.avatar.cat {
  background: #38422f;
  border-color: #5c6a49;
}
.avatar.small {
  width: 27px;
  height: 27px;
  border-radius: 7px;
}
.sidebar-end {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.workspace {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  min-width: 0;
  padding: 0 clamp(18px, 3vw, 52px) 52px;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.trail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.91rem;
  color: var(--muted);
  min-width: 0;
}
.trail strong {
  color: var(--ink);
  font-weight: 600;
}
.trail .icon {
  width: 15px;
  height: 15px;
  opacity: 0.8;
}
.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
.mobile-nav,
.close-scrim {
  display: none;
}
.hero {
  position: relative;
  isolation: isolate;
  background: #232a3d url("/art/quest-valley.png") right center/cover no-repeat;
  border: 1px solid #414653;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(20, 25, 36, 0.95) 0%,
    rgba(26, 31, 43, 0.82) 30%,
    rgba(23, 28, 41, 0.18) 64%,
    rgba(23, 28, 41, 0.03)
  );
}
.hero-inner {
  min-height: 221px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px clamp(20px, 3vw, 43px);
}
.eyebrow {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .icon {
  width: 16px;
  height: 16px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2.15rem, 4vw, 3.85rem);
  letter-spacing: -0.062em;
  line-height: 1.1;
  font-weight: 720;
}
h2 {
  font-size: clamp(1.28rem, 1.65vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.043em;
  font-weight: 670;
}
h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.hero h1 {
  margin: 8px 0 14px;
  text-shadow: 0 2px 16px #13172080;
}
.hero-info {
  display: flex;
  align-items: center;
  gap: 11px;
}
.hero-info .avatar {
  width: 42px;
  height: 42px;
}
.hero-info .level {
  font-size: 0.91rem;
  color: #f2f4f5;
  font-weight: 650;
}
.xp {
  width: min(235px, 55vw);
}
.xp-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d5dddc;
  font-size: 0.78rem;
}
.xp-label span:last-child {
  margin-left: auto;
  font-family: Consolas, monospace;
}
.track {
  height: 6px;
  margin-top: 7px;
  background: #343b40;
  overflow: hidden;
  border-radius: 6px;
}
.track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.hero .track {
  border: 1px solid #89998445;
  background: #202b2f;
  height: 8px;
}
.hero-note {
  color: #e0e5e3;
  max-width: 420px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 16px 0 28px;
}
.stat,
.panel,
.empty,
.trophy-card,
.goal-card,
.feature-card,
.quick-add {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.stat {
  min-width: 0;
  padding: 16px clamp(12px, 1.45vw, 22px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 13px;
  align-items: center;
  text-align: left;
}
.stat:hover,
.card-button:hover,
.trophy-card:hover,
.quick-add:hover {
  border-color: #606b75;
  background: #20252d;
}
.stat-symbol,
.event-icon {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--tone-bg, #394132);
  color: var(--tone, var(--accent));
}
.stat-symbol {
  grid-row: 1 / 3;
}
.tone-green {
  --tone: var(--green);
  --tone-bg: #293b30;
}
.tone-gold {
  --tone: var(--gold);
  --tone-bg: #3d3429;
}
.tone-violet {
  --tone: var(--violet);
  --tone-bg: #383043;
}
.tone-rose {
  --tone: var(--rose);
  --tone-bg: #402e33;
}
.tone-blue {
  --tone: var(--blue);
  --tone-bg: #2a3645;
}
.stat-value {
  font-size: clamp(1.35rem, 2vw, 2.05rem);
  line-height: 1.1;
  font-weight: 680;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.stat-name {
  font-size: 0.83rem;
  color: #b7bfca;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr);
  gap: clamp(14px, 2vw, 26px);
  align-items: start;
}
.stack {
  display: grid;
  gap: 23px;
  min-width: 0;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 14px;
}
.panel {
  padding: 18px;
}
.panel .section-head {
  margin-bottom: 16px;
}
.feed-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 13px;
}
.feed-filter,
.text-tab {
  background: transparent;
  color: #b6bdca;
  border: 1px solid #373c46;
  padding: 6px 13px;
  border-radius: 25px;
  font-size: 0.86rem;
  line-height: 1.4;
}
.feed-filter.on,
.text-tab.on {
  background: #30382b;
  color: var(--accent);
  border-color: #536347;
}
.feed {
  display: grid;
  gap: 10px;
}
.event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  padding: 16px;
  overflow-wrap: anywhere;
}
.event-icon {
  width: 40px;
  height: 40px;
}
.event-icon .pixel {
  width: 34px;
  height: 34px;
}
.event-kind,
.meta {
  color: var(--muted);
  font-size: 0.8rem;
}
.event-kind {
  color: var(--tone, var(--accent));
  font-weight: 600;
  margin: 0 0 3px;
}
.event-title {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}
.event p.note {
  margin-top: 5px;
}
.note {
  color: #bcc4ce;
  font-size: 0.91rem;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.event-date {
  font-size: 0.76rem;
  color: #aeb6c1;
  white-space: nowrap;
}
.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 26px;
  flex-wrap: wrap;
}
.page-intro h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 5px 0 0;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: 14px;
}
.goal-card,
.feature-card {
  padding: 17px;
}
.goal-card .track {
  background: #343940;
  height: 7px;
}
.goal-card .line,
.feature-card .line {
  margin-bottom: 10px;
}
.line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.line.tight {
  justify-content: flex-start;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.76rem;
  line-height: 1.4;
  font-weight: 650;
  color: var(--tone, var(--accent));
  background: var(--tone-bg, #303a2e);
  white-space: nowrap;
}
.goal-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 9px 0 0;
}
.goal-list {
  display: grid;
  gap: 11px;
}
.trophies {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 13px;
}
.trophy-card {
  min-width: 0;
  text-align: left;
  overflow: hidden;
  color: var(--ink);
  padding: 0;
}
.trophy-art {
  position: relative;
  isolation: isolate;
  min-height: 116px;
  display: grid;
  place-items: center;
  background: radial-gradient(
      ellipse at 50% 85%,
      var(--tone-bg, #363244) 0%,
      transparent 80%
    ),
    repeating-linear-gradient(0deg, transparent 0 17px, #ffffff06 18px 19px),
    repeating-linear-gradient(90deg, transparent 0 17px, #ffffff06 18px 19px),
    #20242d;
  border-bottom: 1px solid var(--line);
}
.trophy-art:before {
  content: "";
  position: absolute;
  inset: auto 17% 13% 17%;
  height: 10px;
  background: #0d101a;
  filter: blur(6px);
  border-radius: 50%;
}
.trophy-art img {
  width: 72px;
  height: 72px;
  z-index: 1;
}
.trophy-caption {
  padding: 11px 13px 14px;
}
.trophy-caption small {
  color: var(--tone, var(--accent));
  font-size: 0.75rem;
}
.trophy-caption strong {
  display: block;
  margin-top: 2px;
  font-size: 0.98rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.trophies.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.compact .trophy-art {
  min-height: 79px;
}
.compact .trophy-art img {
  width: 52px;
  height: 52px;
}
.compact .trophy-caption {
  padding: 8px;
}
.compact .trophy-caption strong {
  font-size: 0.83rem;
}
.compact .trophy-caption small {
  font-size: 0.69rem;
}
.empty {
  text-align: center;
  padding: 24px 18px;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
  margin-bottom: 6px;
}
.empty .icon {
  color: var(--accent);
  width: 27px;
  height: 27px;
  margin-bottom: 6px;
}
.empty .text-button {
  margin-top: 9px;
}
.empty.slim {
  padding: 16px;
}
.center-card {
  max-width: 490px;
  text-align: center;
  margin: 5vw auto;
  padding: clamp(24px, 4vw, 42px);
}
.center-card h2 {
  margin: 12px 0 8px;
}
.center-card p {
  color: var(--muted);
  margin-bottom: 18px;
}
.center-card > svg {
  color: var(--accent);
  height: 32px;
  width: 32px;
}
.media-img,
.media-video {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 10px;
  margin: 10px 0 0;
  background: #0c0d11;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(245px, 100%), 1fr));
  gap: 15px;
}
.media-item {
  padding: 12px;
}
.media-item h3 {
  margin-top: 9px;
}
.media-item .media-img,
.media-item .media-video {
  height: 190px;
  margin: 0;
}
.list {
  display: grid;
  gap: 9px;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.list-row .grow,
.grow {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.edit-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.edit-actions .icon-button {
  width: 31px;
  height: 31px;
  min-width: 31px;
}
.edit-actions .icon {
  width: 16px;
  height: 16px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}
.quick-add {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px;
  text-align: left;
  font-weight: 600;
}
.quick-add .icon {
  color: var(--accent);
}
.details {
  margin: 15px 0;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}
.details summary {
  cursor: pointer;
  font-weight: 650;
}
.details[open] summary {
  margin-bottom: 14px;
}
.notice {
  border: 1px solid #46523c;
  background: #262e24;
  border-radius: 11px;
  padding: 11px 14px;
  color: #d7e7c4;
  font-size: 0.87rem;
  margin-bottom: 15px;
}
.notice .text-button {
  margin-left: 8px;
}
.muted {
  color: var(--muted);
}
.hero h1,
.page-intro h1,
.tv-card h2,
.list-row h3 {
  overflow-wrap: anywhere;
}
.player {
  overflow-wrap: anywhere;
}
.stat-value {
  overflow-wrap: anywhere;
}
.tv-award {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
}
.tv-award > .pixel {
  width: 52px;
  height: 52px;
}
.tv-award h3 {
  margin-top: 0;
}
.tv-card .tv-award h3 {
  margin-top: 0;
}
.tv-card > p,
.tv-award p {
  font-size: clamp(1rem, 1.6vw, 1.65rem);
  overflow-wrap: anywhere;
}
.dialog {
  width: min(480px, calc(100vw - 28px));
  max-height: min(85dvh, 780px);
  padding: 0;
  border: 1px solid #4a515c;
  border-radius: 17px;
  color: var(--ink);
  background: #1b1f27;
  box-shadow: 0 25px 80px #0008;
}
.dialog::backdrop {
  background: #080a10c9;
}
.dialog-inner {
  padding: 23px;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.dialog-head .icon-button {
  min-width: 32px;
  width: 32px;
  height: 32px;
}
.form {
  display: grid;
  gap: 14px;
}
.form label {
  display: grid;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e3e6ea;
}
.form input,
.form select,
.form textarea {
  background: #12151b;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  border: 1px solid #454b56;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 1rem;
}
.form textarea {
  min-height: 82px;
  resize: vertical;
}
.form .pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.form .check {
  display: flex;
  align-items: center;
  gap: 9px;
}
.check input {
  width: 19px;
  height: 19px;
  accent-color: var(--accent);
}
.form-error {
  color: #ffb8ad;
  margin: 0;
}
.form-error:empty {
  display: none;
}
.form .actions {
  justify-content: flex-end;
}
.icon-editor {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.icon-editor legend {
  padding: 0 5px;
  color: var(--ink);
  font-weight: 650;
  font-size: 0.94rem;
}
.icon-picker {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.icon-preview {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 80%, #383645, #242831 70%);
}
.icon-preview img {
  width: 56px;
  height: 56px;
}
.icon-editor-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.icon-editor-actions [hidden] {
  display: none;
}
.icon-status,
.icon-error {
  margin: 0;
  font-size: 0.88rem;
}
.icon-status {
  color: var(--accent);
}
.icon-error {
  color: #ffb8ad;
}
.icon-status:empty,
.icon-error:empty {
  display: none;
}
.danger {
  background: #f3aba7;
  color: #341c1b;
}
.danger:hover {
  background: #ffc2bd;
}
.avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.avatars label {
  display: block;
  position: relative;
}
.avatars input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.avatars .avatar {
  width: 45px;
  height: 45px;
}
.avatars input:checked + .avatar,
.avatars input:focus-visible + .avatar {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.toast {
  position: fixed;
  z-index: 10;
  right: 20px;
  bottom: 18px;
  padding: 12px 16px;
  border: 1px solid #52604a;
  border-radius: 10px;
  background: #2c3929;
  color: #eeffe2;
  box-shadow: 0 10px 30px #0005;
  max-width: calc(100vw - 40px);
}
.toast[hidden] {
  display: none;
}
.tv {
  min-height: 100dvh;
  padding: clamp(18px, 3.2vw, 58px);
  background: #11151d;
}
.tv .brand {
  margin: 0;
}
.tv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tv header {
  margin: 30px 0 22px;
}
.tv .hero-inner {
  min-height: 150px;
}
.tv .tv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(15px, 2vw, 30px);
}
.tv-card {
  background: #1c212a;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 36px);
}
.tv-card h2 {
  font-size: clamp(1.5rem, 2.8vw, 3.4rem);
}
.tv-card .avatar {
  width: 60px;
  height: 60px;
}
.tv-card .stat-value {
  font-size: clamp(1.7rem, 3vw, 3.2rem);
}
.tv-card h3 {
  margin: 18px 0 4px;
}
.tv-mini {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}
.tv-mini span {
  display: block;
}
.tv-card .ghost {
  margin-top: 14px;
}
.loading {
  padding: 10vh 5vw;
  color: var(--muted);
  text-align: center;
}
@media (min-width: 1650px) {
  .layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .hero-inner {
    min-height: 265px;
  }
}
@media (max-width: 1190px) {
  .layout {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 10px;
  }
  .workspace {
    padding-inline: 22px;
  }
  .home-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(245px, 1fr);
  }
  .stat {
    gap: 3px 9px;
  }
  .stat-symbol {
    width: 33px;
    height: 33px;
    border-radius: 8px;
  }
  .stat-symbol .icon {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 240px;
    transform: translateX(-100%);
    visibility: hidden;
  }
  .nav-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .mobile-nav {
    display: inline-flex;
  }
  .nav-open .close-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #0009;
    z-index: 4;
    cursor: default;
  }
  .topbar {
    height: 65px;
  }
}
@media (max-width: 680px) {
  .workspace {
    padding-inline: 15px;
  }
  .trail > :first-child,
  .trail > .icon {
    display: none;
  }
  .home-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
  }
  .hero-inner {
    min-height: 191px;
  }
  .hero::before {
    background: linear-gradient(90deg, #181d2bed 0%, #181d2bb5 47%, #181d2b22);
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 21px;
  }
  .stat {
    padding: 12px 10px;
  }
  .event {
    padding: 13px;
    gap: 10px;
  }
  .compact .trophy-art {
    min-height: 100px;
  }
  .top-actions .ghost,
  .top-actions .button {
    font-size: 0.81rem;
    padding: 7px 9px;
    min-height: 36px;
    gap: 5px;
  }
  .top-actions .icon {
    width: 16px;
    height: 16px;
  }
  .topbar {
    gap: 8px;
  }
  .top-actions {
    gap: 5px;
  }
  .sidebar {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 395px) {
  .trail {
    display: none;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .event {
    grid-template-columns: auto 1fr;
  }
  .event-date {
    grid-column: 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.screen-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
