:root {
  color-scheme: light;
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  color: #19241c;
  background: #f6f7f2;
  --ink: #19241c;
  --muted: #56655c;
  --lime: #deedac;
  --lilac: #e9e3f5;
  --line: #e2e7dc;
  --surface: #fff;
  --surface-shadow: 0 2px 4px #203a2a14, 0 7px 15px #203a2a23;
  --field-shadow: 0 2px 4px #203a2a26;
  --sidebar: 216px;
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-right: max(env(safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px) + var(--tg-content-safe-area-inset-right, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px));
  --safe-left: max(env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px) + var(--tg-content-safe-area-inset-left, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: var(--safe-top) var(--safe-right) 0 var(--safe-left); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #548950; outline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, figure { margin: 0; }
[hidden] { display: none !important; }

.sidebar {
  width: var(--sidebar);
  position: fixed;
  inset: var(--safe-top) auto 0 var(--safe-left);
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 26px 15px calc(20px + var(--safe-bottom));
  background: #fcfdfa;
  box-shadow: 3px 0 18px #203a2a0b;
}

.brand { display: inline-flex; align-items: center; gap: 7px; width: fit-content; min-width: 0; border-radius: 12px; }
.sidebar-brand { margin-inline: 3px; }
.brand-mark { flex: none; width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 3px 4px #254a3330); transition: transform .18s ease-out; }
.brand-wordmark { display: block; min-width: 0; width: 118px; height: auto; object-fit: contain; }
.desktop-nav { display: grid; gap: 8px; margin-top: 38px; }
.nav-link { display: flex; align-items: center; gap: 8px; min-height: 54px; color: #53645a; padding: 5px 8px; border-radius: 13px; font-size: .91rem; font-weight: 640; }
.nav-link:hover { color: var(--ink); background: #eff3eb; }
.nav-link.active { background: #e8efda; color: #263c2a; font-weight: 750; }
.nav-illustration { display: grid; place-items: center; flex: none; width: 42px; height: 42px; }
.nav-illustration img { display: block; width: 100%; height: 100%; object-fit: contain; }
.nav-label { min-width: 0; }
.sidebar-footer { margin-top: auto; display: flex; align-items: flex-start; gap: 9px; border-top: 1px solid var(--line); padding: 14px 8px 0; }
.sidebar-footer svg { flex: none; color: #40664e; }
.sidebar-footer strong, .sidebar-footer small { display: block; }
.sidebar-footer strong { font-size: .83rem; }
.sidebar-footer small { margin-top: 3px; font-size: .75rem; line-height: 1.35; color: var(--muted); }
.mobile-nav, .top-brand { display: none; }
.workspace { margin-left: var(--sidebar); min-height: calc(100dvh - var(--safe-top)); padding-bottom: calc(var(--safe-bottom) + var(--game-dock-space, 0px)); }
.topbar { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 32px 0; }
.breadcrumb { font-size: .88rem; color: var(--muted); }
.breadcrumb span { margin: 0 8px; color: #77877d; }
.breadcrumb strong { color: var(--ink); }
.top-meta, .top-date { display: flex; align-items: center; gap: 12px; }
.top-date { font-size: .85rem; white-space: nowrap; color: var(--muted); }
.profile-control { display: inline-flex; flex: none; align-items: center; gap: 7px; }
.profile-context { color: #50614e; font-size: .74rem; font-weight: 680; white-space: nowrap; }
.profile-button { flex: none; width: 45px; height: 45px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #294638; background: #fff; box-shadow: var(--surface-shadow); cursor: pointer; transition: transform .18s ease-out; }
.profile-button .avatar { width: 35px; height: 35px; border: 0; font-size: .94rem; }
@media (hover: hover) {
  .brand:hover .brand-mark { transform: translateY(-2px) rotate(-4deg); }
  .profile-button:hover { transform: translateY(-2px); }
}
.content { max-width: 1320px; margin: auto; padding: 24px 32px 40px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 0 0 23px; }
.page-heading h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: .96; font-weight: 825; letter-spacing: -.073em; }
.page-heading p { color: var(--muted); margin-top: 8px; line-height: 1.48; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, 22%);
  align-items: center;
  gap: 12px;
  min-height: 146px;
  margin-bottom: 16px;
  padding: 15px clamp(15px, 3vw, 29px);
  border-radius: 24px;
  background: var(--intro-bg, #eaf1de);
}
.intro-history { --intro-bg: #e5efda; }
.intro-series { --intro-bg: var(--lilac); }
.intro-players { --intro-bg: #e2edcf; }
.intro-stats { --intro-bg: #e9efd9; }
.page-intro h1 { font-size: clamp(1.95rem, 5.1vw, 3.9rem); font-weight: 840; line-height: 1; letter-spacing: -.065em; overflow-wrap: anywhere; }
.page-intro p { margin-top: 8px; color: #485c4a; font-size: .88rem; }
.page-intro .heading-actions { margin-top: 13px; }
.page-intro .button { min-height: 38px; white-space: normal; text-align: left; }
.intro-art { display: block; width: min(100%, 135px); height: auto; aspect-ratio: 1; object-fit: contain; justify-self: end; }
.loading { color: var(--muted); }

.overview-date { display: none; }
.dashboard-stage { display: grid; grid-template-columns: minmax(0, 1.56fr) minmax(0, 1fr); gap: 20px; }
.quick-card, .event-card.featured { position: relative; isolation: isolate; overflow: hidden; border-radius: 26px; }
.quick-card { min-height: 285px; display: flex; padding: 28px; background: var(--lime); }
.quick-card::before, .event-card.featured::before { content: ''; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; border: 1px solid #ffffffa6; transform: rotate(-28deg); box-shadow: 0 0 0 17px #ffffff25, 0 0 0 38px #ffffff28, 0 0 0 63px #ffffff1c; }
.quick-card::before { width: 280px; height: 185px; right: -89px; bottom: 20px; }
.quick-info { z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; flex-direction: column; gap: 18px; }
.quick-info h2 { font-size: clamp(2.05rem, 4vw, 3.3rem); font-weight: 840; letter-spacing: -.073em; line-height: .98; }
.quick-art { position: absolute; right: -1%; bottom: -9%; width: min(75%, 295px); height: auto; object-fit: contain; pointer-events: none; transform: rotate(-9deg); }
.quick-art, .event-art { transition: transform .24s ease-out; }
.entering .quick-art { animation: quick-arrive .85s cubic-bezier(.18,.78,.27,1.04) both; }
.entering .event-figure { animation: trophy-arrive .72s cubic-bezier(.2,.75,.25,1) both; }
@keyframes quick-arrive {
  from { opacity: .25; transform: translate(19px, 12px) rotate(8deg) scale(.92); }
  to { opacity: 1; transform: rotate(-9deg); }
}
@keyframes trophy-arrive {
  from { opacity: .25; transform: translateY(16px) rotate(7deg) scale(.91); }
  to { opacity: 1; transform: none; }
}
@media (hover: hover) {
  .quick-card:hover .quick-art { transform: translateY(-5px) rotate(-5deg); }
  .event-card.featured:hover .event-art { transform: translateY(-5px) rotate(2deg); }
  .day-tile:hover { box-shadow: var(--surface-shadow); transform: translateY(-3px); }
  .day-tile:hover img { transform: translateY(-4px) rotate(-5deg) scale(1.055); }
}
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 15px; border: 0; border-radius: 11px; font-size: .9rem; line-height: 1.25; font-weight: 680; white-space: nowrap; transition: background .15s, transform .15s; }
.button svg { flex: none; }
.button:active { transform: translateY(1px); }
.button.primary { background: #234637; color: #fff; box-shadow: 0 3px 5px #203a2a32; }
.button.primary:hover { background: #2d5443; }
.button.secondary { color: #31533f; background: #ebf1e7; }
.button.secondary:hover { background: #e1ebdc; }

.metrics, .panel, .series-card { min-width: 0; background: var(--surface); border-radius: 18px; box-shadow: var(--surface-shadow); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0; }
.metric { display: flex; gap: 11px; align-items: flex-start; min-width: 0; padding: 18px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric-body { min-width: 0; }
.metric-label { color: var(--ink); font-size: .88rem; font-weight: 650; }
.metric-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; flex: none; background: #e8f3e5; color: #35684c; }
.metric-number { display: block; margin-top: 5px; font-size: 2rem; line-height: 1.06; letter-spacing: -.052em; font-variant-numeric: tabular-nums; }
.metric-caption { margin-top: 4px; color: var(--muted); line-height: 1.35; font-size: .82rem; overflow-wrap: anywhere; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tournament-grid { grid-template-columns: minmax(240px, .86fr) minmax(0, 1.5fr); }
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; padding: 16px 17px 13px; }
.section-header h2 { font-size: 1.13rem; letter-spacing: -.025em; }
.week-panel { margin-top: 28px; min-width: 0; }
.week-panel .section-header { align-items: center; padding: 0 0 9px; }
.week-panel h2 { font-size: 1.47rem; letter-spacing: -.05em; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(126px, 1fr)); gap: 11px; padding: 5px 3px 10px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #cbd6bf transparent; }
.day-tile { min-width: 0; display: grid; grid-template-rows: auto 106px auto 1fr; align-items: start; gap: 4px; padding: 10px; border: 0; border-radius: 17px; text-align: left; color: var(--ink); background: var(--theme-tint, #edf1e7); scroll-snap-align: start; transition: transform .19s, box-shadow .19s; }
.day-tile:active { transform: scale(.98); }
.day-tile[aria-current="date"] .day-name { display: flex; align-items: center; gap: 5px; }
.day-tile[aria-current="date"] .day-name::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #4f7145; }
.day-name { color: #50614a; font-weight: 690; font-size: .79rem; }
.day-tile strong { font-size: .95rem; line-height: 1.19; letter-spacing: -.025em; overflow-wrap: anywhere; }
.day-caption { color: #53624d; font-size: .83rem; line-height: 1.2; }
.day-art { position: relative; display: grid; height: 100%; place-items: center; isolation: isolate; }
.day-art::before { content: ''; width: min(82%, 82px); aspect-ratio: 1; position: absolute; z-index: -1; border-radius: 50%; background: #ffffff70; box-shadow: 0 0 0 7px #ffffff32; }
.day-art img { width: min(100%, 103px); height: auto; aspect-ratio: 1; object-fit: contain; transition: transform .22s ease-out; }
.section-count { font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.series-back { margin-bottom: 12px; }
.section-header a, .text-button { display: inline-flex; align-items: center; gap: 4px; color: #32664b; font-size: .83rem; font-weight: 730; white-space: nowrap; }
.section-header a:hover, .text-button:hover { text-decoration: underline; }
.text-button { border: 0; background: transparent; padding: 0; }
.game-list, .standing-list { list-style: none; padding: 0 17px; }
.game-row { min-height: 67px; padding: 10px 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; border-top: 1px solid #edf0eb; }
.game-row.editable { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.game-avatars { display: flex; align-items: center; min-width: 49px; }
.avatar { display: inline-grid; flex: none; place-items: center; height: 33px; min-width: 33px; padding: 0 4px; border: 2px solid #fff; border-radius: 50%; font-size: .77rem; font-weight: 800; }
.avatar + .avatar { margin-left: -9px; }
.avatar.large { width: 42px; height: 42px; font-size: .86rem; }
.avatar-0 { color: #2b6541; background: #dcefd9; }
.avatar-1 { color: #655081; background: #e9dff5; }
.avatar-2 { color: #794b24; background: #fae6cf; }
.avatar-3 { color: #345b83; background: #dcebf7; }
.avatar-4 { color: #8a3e57; background: #f5dce6; }
.game-names { min-width: 0; }
.game-names strong { display: block; overflow-wrap: anywhere; font-size: .92rem; }
.game-names mark { color: #23573d; background: none; text-decoration: underline; text-decoration-color: #9fc797; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.game-names strong span { color: #7e8b83; margin-inline: 1px; }
.game-names small, .game-outcome small { display: block; color: var(--muted); margin-top: 3px; font-size: .78rem; line-height: 1.35; }
.game-names small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-caption { display: flex; align-items: flex-start; gap: 4px; margin-top: 5px; color: #55486b; font-size: .82rem; line-height: 1.3; overflow-wrap: anywhere; }
.game-caption svg { flex: none; margin-top: 2px; }
.game-outcome { text-align: right; }
.game-outcome .game-time { display: flex; justify-content: end; gap: 6px; white-space: nowrap; }
.game-time b { font-weight: 680; font-variant-numeric: tabular-nums; }
.result-tag { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 5px; color: #2b5b40; background: #eaf4e8; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.mars-tag { background: #f5ecfb; color: #6e448a; }
.series-card { padding: 18px; }
.series-card.compact { margin: 0 12px 12px; padding: 16px; background: #f1f5ed; border-radius: 14px; box-shadow: none; }
.series-identity { min-height: 130px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(108px, 43%); gap: 8px; align-items: center; }
.series-trophy { display: block; width: 100%; max-width: 104px; height: auto; aspect-ratio: 1; object-fit: contain; }
.series-figure, .event-figure { display: grid; justify-items: center; gap: 5px; align-self: center; min-width: 0; }
.series-figure .series-trophy { max-width: 180px; }
.series-figure figcaption, .event-figure figcaption, .theme-art figcaption { color: #465742; font-size: .84rem; font-weight: 670; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.series-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; }
.status-tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; color: #306042; background: #e8f2df; padding: 4px 7px; font-weight: 740; white-space: nowrap; }
.status-tag i { width: 6px; height: 6px; border-radius: 50%; background: #588e43; }
.status-tag.finished { color: #5a645c; background: #edf0eb; }
.status-tag.finished i { background: #77847a; }
.series-card h3 { overflow-wrap: anywhere; font-size: 1.18rem; margin-top: 8px; letter-spacing: -.032em; }
.series-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #a5c1ac; }
.series-title:hover { color: #32664b; text-decoration-color: currentColor; }
.series-card p { color: var(--muted); font-size: .82rem; line-height: 1.4; margin-top: 3px; }
.match-score { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; text-align: center; margin-top: 12px; }
.match-score > div { min-width: 0; }
.match-score strong { display: block; font-size: .82rem; margin-top: 3px; overflow-wrap: anywhere; }
.match-score > span { display: flex; align-items: center; justify-content: center; gap: 6px; font-variant-numeric: tabular-nums; }
.match-score b { font-size: clamp(1.45rem, 3.8vw, 2.2rem); letter-spacing: -.05em; }
.match-score > span i { font-style: normal; color: #78857b; font-weight: 650; }
.match-progress { margin: 13px 0 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.match-progress i, .rate-track { height: 6px; border-radius: 7px; overflow: hidden; background: #e3eae0; }
.match-progress i::after, .rate-track i { content: ''; display: block; width: var(--score); height: 100%; border-radius: inherit; background: #75aa68; }
.match-progress i:last-child::after { background: #a48bc6; }
.series-button { width: 100%; min-height: 39px; }
.series-winner { display: flex; align-items: center; gap: 6px; }
.series-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }
.sessions { display: grid; gap: 12px; margin-bottom: 18px; }
.session-card { min-width: 0; overflow: hidden; border-radius: 21px; background: #fcfdf9; box-shadow: var(--surface-shadow); scroll-margin-top: calc(12px + var(--safe-top)); }
.session-card:focus-visible { outline: 3px solid #548950; outline-offset: 3px; }
.session-head {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 108px;
  padding: clamp(15px, 3vw, 22px);
  background: #203d30;
  color: #fbfcef;
}
.session-status { color: #cde2a7; font-size: .76rem; font-weight: 720; line-height: 1.2; }
.session-head h3 { margin-top: 4px; font-size: clamp(1.48rem, 4.6vw, 2.25rem); letter-spacing: -.055em; line-height: 1.05; overflow-wrap: anywhere; }
.session-meta { margin-top: 5px; color: #d9e5d6; font-size: .83rem; overflow-wrap: anywhere; }
.session-meta a { text-decoration: underline; text-underline-offset: 3px; }
.session-art { width: clamp(62px, 19vw, 86px); height: auto; }
.session-time { display: grid; justify-items: end; gap: 2px; color: #d9e5d6; font-size: .76rem; }
.session-time strong {
  color: #e5f3bf;
  font-size: clamp(1.54rem, 6.7vw, 2.85rem);
  font-variant-numeric: tabular-nums;
  font-weight: 780;
  line-height: 1;
  letter-spacing: -.06em;
}
.session-time span:first-of-type { margin-top: 5px; }
.session-outcome { padding: 13px 16px 0; font-size: .89rem; }
.session-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 13px 16px; }
.session-actions .button, .series-actions .button { min-height: 40px; white-space: normal; }
.session-actions .button.secondary[data-action="session-cancel"] { padding-inline: 6px; background: transparent; font-size: .83rem; }
.session-actions .button.secondary[data-action="session-cancel"]:hover { text-decoration: underline; text-underline-offset: 3px; }
.dialog-extra { margin: 14px 0 0; }

.has-game-dock { --game-dock-space: 61px; }
.navigation-dock {
  position: fixed;
  z-index: 3;
  right: calc(16px + var(--safe-right));
  bottom: calc(14px + var(--safe-bottom));
  display: grid;
  gap: 7px;
  width: min(340px, 100vw - 32px - var(--safe-left) - var(--safe-right));
  pointer-events: none;
}
.navigation-dock > * { pointer-events: auto; }
.game-dock-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 54px;
  padding: 5px 10px 5px 6px;
  border: 0;
  border-radius: 15px;
  background: #203d30;
  color: #f8fbef;
  box-shadow: 0 5px 13px #162e2747;
  text-align: left;
}
.game-dock-button:hover { background: #2a493a; }
.game-dock-art { display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; background: #e6f0cd; border-radius: 10px; }
.game-dock-art img { width: 37px; height: 37px; object-fit: contain; }
.game-dock-copy { display: grid; min-width: 0; gap: 1px; }
.game-dock-copy span, .game-dock-copy b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.game-dock-copy span { color: #cde2a7; font-size: .71rem; line-height: 1.2; font-weight: 690; }
.game-dock-copy b { font-size: .9rem; line-height: 1.2; }
.game-dock-button strong { font-size: .96rem; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.game-dock-button > svg { grid-column: -1 / -2; opacity: .8; }

@keyframes overview-art-sway {
  0%, 16%, 100% { translate: 0 0; rotate: 0deg; }
  6% { translate: 0 -6px; rotate: -4deg; }
  11% { translate: 0 -3px; rotate: 3deg; }
}
@media (prefers-reduced-motion: no-preference) {
  .dashboard-stage .event-card.featured:not(.event-empty) .event-art,
  .week-strip .day-art img {
    animation: overview-art-sway 9s var(--art-delay, 1500ms) ease-in-out infinite;
  }
}

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 15px; }
.event-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(116px, 39%); align-items: center; gap: 12px; min-width: 0; padding: 22px; border-radius: 18px; background: var(--surface); box-shadow: var(--surface-shadow); }
.event-card.featured { grid-template-columns: minmax(0, 1fr) minmax(145px, 39%); min-height: 285px; padding: 28px; background: var(--lilac); }
.event-card.featured::before { width: 290px; height: 189px; right: -66px; bottom: 25px; transform: rotate(27deg); }
.event-card.featured .event-info { z-index: 1; }
.event-info { min-width: 0; }
.event-labels, .event-actions { display: flex; align-items: center; gap: 7px 10px; flex-wrap: wrap; }
.event-actions { margin-top: 11px; }
.event-kicker { font-size: .86rem; font-weight: 750; color: #4c4564; }
.event-card h2, .event-card h3 { overflow-wrap: anywhere; margin-top: 8px; line-height: 1.14; letter-spacing: -.035em; }
.event-card h2 { font-size: clamp(1.8rem, 3.1vw, 2.85rem); line-height: 1.02; letter-spacing: -.068em; font-weight: 840; }
.event-card h3 { font-size: 1.25rem; }
.event-date { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: #324c3b; font-size: .9rem; font-weight: 650; }
.event-date svg { flex: none; }
.event-people { margin-top: 4px; color: var(--muted); font-size: .83rem; overflow-wrap: anywhere; }
.event-clock { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 9px; margin-top: 9px; color: #45644f; font-size: .83rem; }
.event-clock strong { color: #214d35; font-size: clamp(1.03rem, 2.3vw, 1.46rem); letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.event-art { display: block; width: 100%; max-width: 252px; height: auto; aspect-ratio: 1; object-fit: contain; justify-self: center; }
.featured .event-clock { width: fit-content; padding: 5px 9px; border-radius: 10px; background: #ffffffa3; color: #4d4561; }
.featured .event-clock strong { color: #302746; }
.featured .status-tag { color: #354237; background: #fcfbffe0; }
.featured .event-date { color: #443a56; }
.featured .event-people { color: #51495e; }
.featured .event-figure figcaption { color: #4c4262; }
.featured .event-art { transform: rotate(-4deg); }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 216px), 1fr)); gap: 13px; }
.theme-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 17px; background: var(--surface); box-shadow: var(--surface-shadow); }
.theme-art { display: grid; grid-template-rows: minmax(0, 1fr) minmax(2.2em, auto); place-items: center; min-height: 186px; padding: 5px 9px 11px; background: var(--theme-tint, #edf1e7); }
.theme-monday { --theme-tint: #f3eadb; }
.theme-tuesday { --theme-tint: #e9efd7; }
.theme-wednesday { --theme-tint: #f4e5e0; }
.theme-thursday { --theme-tint: #e0efe8; }
.theme-friday { --theme-tint: #e5eedf; }
.theme-saturday { --theme-tint: #f3ead6; }
.theme-sunday { --theme-tint: #eee8f6; }
.theme-art img { display: block; width: min(100%, 151px); height: auto; aspect-ratio: 1; object-fit: contain; }
.theme-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 13px; }
.theme-day { color: #42644d; font-size: .79rem; font-weight: 700; }
.theme-info h3 { margin-top: 4px; font-size: 1.09rem; letter-spacing: -.025em; overflow-wrap: anywhere; }
.theme-term { margin: 8px 0 12px; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.theme-info .button { margin-top: auto; }

.empty { display: grid; justify-items: center; gap: 8px; padding: 33px 17px; text-align: center; }
.empty h3 { font-size: 1.02rem; }
.empty p { font-size: .9rem; color: var(--muted); line-height: 1.45; max-width: 35ch; }
.empty .button { margin-top: 5px; }
.filters { padding: 16px 17px; display: flex; align-items: end; flex-wrap: wrap; gap: 13px; }
.filters label { flex: 0 1 215px; }
.filter-count { color: var(--muted); font-size: .87rem; padding: 0 0 12px; }
label { display: grid; gap: 6px; font-size: .88rem; font-weight: 650; min-width: 0; }
select, input, textarea { width: 100%; min-width: 0; min-height: 43px; border: 0; background: #f1f4ed; box-shadow: var(--field-shadow); border-radius: 10px; color: var(--ink); padding: 8px 11px; font-size: 1rem; }
textarea { resize: vertical; }
.field-optional { color: var(--muted); font-weight: 480; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #52695b 50%), linear-gradient(135deg, #52695b 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 25px; }
select:disabled { background-color: #edf0e9; color: #5c6a61; }
.journal-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 238px)) minmax(0, 1fr); margin-bottom: 14px; padding: 13px 15px; border-radius: 16px; background: #fcfdf9; box-shadow: var(--surface-shadow); }
.journal-filters .filter-count { justify-self: end; white-space: nowrap; }
.journal-days { display: grid; gap: 10px; }
.journal-day { overflow: hidden; }
.journal-day h2 { padding: 9px 16px; background: #edf3e5; color: #34533c; font-size: .9rem; font-weight: 760; }
.journal-more { display: flex; justify-content: center; margin-top: 14px; }
.tabs { display: flex; gap: 6px; margin-bottom: 15px; }
.tabs button { border: 0; padding: 9px 12px; border-radius: 10px; background: transparent; color: var(--muted); font-size: .9rem; font-weight: 680; }
.tabs button[aria-pressed="true"] { background: #e6eedf; color: #285a41; }
.tabs span { margin-left: 4px; font-variant-numeric: tabular-nums; }
.stats-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 13px; border-radius: 10px; color: var(--muted); font-size: .91rem; font-weight: 700; }
.stats-tabs a[aria-current="page"] { background: #e6eedf; color: #2e4a32; }
.stats-tabs a:hover { color: var(--ink); }
.stats-tabs { overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.series-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.series-toolbar h2 { font-size: clamp(1.2rem, 4vw, 1.55rem); letter-spacing: -.04em; }
.series-filter-menu { position: relative; }
.series-filter-menu summary { width: 44px; height: 44px; list-style: none; cursor: pointer; box-shadow: var(--field-shadow); }
.series-filter-menu summary::-webkit-details-marker { display: none; }
.series-filter-menu summary:focus-visible { outline: 3px solid #548950; outline-offset: 3px; }
.series-filter-options {
  position: absolute;
  z-index: 2;
  inset: calc(100% + 8px) 0 auto auto;
  display: grid;
  gap: 3px;
  width: max-content;
  min-width: 185px;
  padding: 7px;
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--surface-shadow);
}
.series-filter-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: .88rem;
  font-weight: 650;
}
.series-filter-options button:hover, .series-filter-options button[aria-pressed="true"] { background: #eaf1de; }
.my-series-group + .my-series-group { margin-top: 18px; }
.my-series-group > h3 { margin-bottom: 8px; color: var(--muted); font-size: .9rem; }
.series-listing .event-card { border-radius: 21px; background: #f3eff8; }
.series-listing .series-card { border-radius: 21px; background: #f4f8ed; }
.series-listing .theme-card { border-radius: 20px; }
.score-panel { background: #eaf1df; }
.score-panel .series-card.compact { background: #f7faef; }
.score-panel .series-identity { min-height: 96px; }
.score-panel .series-figure .series-trophy { max-width: 114px; }
.score-panel .match-score > span { justify-self: center; min-width: 51px; padding: 3px 8px; border-radius: 10px; background: #213d2e; color: #f8fcee; }
.score-panel .match-score > span i { color: #c7d5c3; }
.tournament-heading { margin-bottom: 16px; }
.tournament-heading .page-heading { margin: 0; }
.stats-picker { margin-bottom: 11px; padding: 0; }
.stat-metrics { margin-bottom: 16px; background: #f7faef; }
.stat-metrics .metric-icon { background: #e5efcf; color: #416445; }
.stats-grid { gap: 12px; }
.stats-grid > .panel { min-width: 0; border-radius: 20px; }
.stats-activity { background: #f8f6fb; }
.stats-activity .chart-track { background: #eee8f4; }
.rating-panel { padding: 4px 16px 12px; }
.rating-filters { padding-inline: 4px; }
.rating-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.rating-row { display: grid; grid-template-columns: minmax(174px, .96fr) minmax(230px, 1.48fr) minmax(82px, .33fr); align-items: center; gap: 14px; padding: 13px 11px; border-radius: 14px; background: #f7f8f4; }
.rating-row.rating-leader { background: #edf3e2; }
.rating-player { min-width: 0; display: flex; align-items: center; gap: 8px; }
.rank-marker { width: 30px; min-height: 30px; display: grid; place-items: center; flex-shrink: 0; border-radius: 9px; color: #495945; background: #ecf0e8; font-size: .88rem; font-weight: 820; font-variant-numeric: tabular-nums; }
.rating-leader .rank-marker { color: #fff; background: #3b563b; }
.rating-name { min-width: 0; overflow-wrap: anywhere; }
.rating-name strong { display: block; font-size: 1rem; letter-spacing: -.02em; }
.rating-name small { display: block; margin-top: 2px; color: var(--muted); font-size: .81rem; }
.rating-counts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; margin: 0; }
.rating-counts dt, .rating-rate span { color: var(--muted); font-size: .78rem; }
.rating-counts dd { margin: 3px 0 0; font-size: 1.22rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.rating-wins dd { color: #305d41; }
.rating-rate { text-align: right; }
.rating-rate b, .rating-rate span { display: block; }
.rating-rate b { color: #305d41; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 15px; }
.player-group + .player-group { margin-top: 22px; }
.player-group > h2 { margin: 0 0 9px; font-size: 1.11rem; letter-spacing: -.026em; }
.players-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 258px), 1fr)); }
.player-card { padding: 13px; border-radius: 17px; background: #fbfdf7; }
.player-guest { background: #fcfaf7; }
.player-card-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.player-card-header .avatar.large { width: 45px; height: 45px; border-width: 0; }
.player-card h3 { font-size: 1.13rem; letter-spacing: -.025em; overflow-wrap: anywhere; }
.player-link { border-radius: 50%; }
.player-card p { font-size: .83rem; color: var(--muted); margin-top: 3px; }
.player-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 11px; padding: 9px 5px; border-radius: 11px; background: #edf3e5; }
.player-guest .player-numbers { background: #f3eee5; }
.player-numbers strong, .player-numbers span { display: block; text-align: center; }
.player-numbers strong { font-size: 1.24rem; font-variant-numeric: tabular-nums; }
.player-numbers span { margin-top: 2px; font-size: .76rem; color: var(--muted); }
.standing-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(55px, .75fr) 43px; align-items: center; gap: 8px; min-height: 61px; border-top: 1px solid #edf0eb; }
.standing-list strong { font-size: .89rem; overflow-wrap: anywhere; }
.standing-list small { display: block; font-size: .77rem; color: var(--muted); }
.standing-list b { text-align: right; font-size: .84rem; }
.activity { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; padding: 12px 17px 20px; list-style: none; }
.chart-day { display: grid; justify-items: center; gap: 7px; font-size: .84rem; color: var(--muted); }
.chart-count { color: var(--ink); font-size: .89rem; font-weight: 740; font-variant-numeric: tabular-nums; }
.chart-track { width: min(100%, 41px); display: flex; align-items: flex-end; height: 102px; background: #f0eef5; border-radius: 7px; }
.chart-track i { width: 100%; height: var(--height); background: #aa9bc7; border-radius: 7px; transform-origin: center bottom; }
.chart-day:last-child .chart-track i { background: #9abc66; }
.overview-insights { margin: 24px 0; align-items: stretch; }
.overview-activity .chart-track { height: 121px; }
.overview-activity.in-view .chart-track i { animation: bar-rise .58s cubic-bezier(.21,.75,.22,1) var(--delay) both; }
@keyframes bar-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.overview-totals .metrics { grid-template-columns: minmax(0, 1fr); box-shadow: none; margin: 0; padding: 0 17px 8px; }
.overview-totals .metric { align-items: center; padding: 10px 0; }
.overview-totals .metric + .metric { border-left: 0; border-top: 1px solid var(--line); }
.overview-totals .metric-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; }
.overview-totals .metric-number { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 1.55rem; }
.overview-totals .metric-caption { grid-column: 1; margin-top: 1px; }

dialog {
  inset: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  width: min(100% - var(--safe-left) - var(--safe-right) - 24px, 490px);
  max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 24px);
  padding: 20px;
  border: 0;
  border-radius: 17px;
  color: var(--ink);
  box-shadow: 0 18px 54px #14251e40;
}
dialog::backdrop { background: #15291fb0; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 15px; }
.dialog-header h2 { font-size: 1.36rem; }
.icon-button { display: grid; place-items: center; width: 37px; height: 37px; border: none; background: #f1f5ef; color: #345541; border-radius: 8px; }
.icon-button:hover { background: #e3eee1; }
.game-edit { width: 39px; height: 39px; }
form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.form-error { color: #9b332d; background: #fbedeb; border-radius: 7px; padding: 9px; font-size: .88rem; }
.form-organizer { color: var(--muted); font-size: .89rem; }
.form-theme { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 10px; background: #eaf3e6; font-size: .86rem; }
.form-theme img { flex: none; object-fit: contain; }
.form-theme p { color: var(--muted); margin-top: 3px; }
.toast { position: fixed; z-index: 5; right: calc(23px + var(--safe-right)); bottom: calc(22px + var(--safe-bottom) + var(--game-dock-space, 0px)); display: flex; align-items: center; gap: 8px; color: #f7fff2; background: #234c38; box-shadow: 0 7px 22px #19392846; border-radius: 10px; padding: 13px 16px; font-size: .9rem; font-weight: 650; }
.toast-error { background: #833d32; }

@media (max-width: 1110px) {
  :root { --sidebar: 195px; }
  .content, .topbar { padding-inline: 22px; }
  .sidebar-brand .brand-wordmark { width: 106px; }
}

@media (max-width: 870px) {
  :root { --sidebar: 168px; }
  .sidebar { padding-inline: 10px; }
  .sidebar-brand { gap: 6px; margin-inline: 1px; }
  .sidebar-brand .brand-mark { width: 36px; height: 36px; }
  .sidebar-brand .brand-wordmark { width: 100px; }
  .desktop-nav { margin-top: 33px; }
  .desktop-nav .nav-link { gap: 6px; padding-inline: 6px; font-size: .85rem; }
  .dashboard-stage { grid-template-columns: minmax(0, 1fr); }
  .quick-card { min-height: 160px; }
  .quick-art { width: 172px; bottom: -13%; right: 3%; }
  .metric { padding-inline: 13px; gap: 7px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .rating-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .rating-counts { grid-column: 1 / -1; padding: 9px 5px 0; border-top: 1px solid #dee7d8; }
  .rating-rate { grid-column: 2; grid-row: 1; }
}

@media (max-width: 690px) {
  :root { --mobile-menu-space: 90px; }
  .sidebar, .breadcrumb, .top-date { display: none; }
  .workspace { margin: 0; padding-bottom: calc(var(--mobile-menu-space) + var(--safe-bottom) + var(--game-dock-space, 0px)); }
  .topbar { min-height: 66px; padding: 9px 16px 0; }
  .top-brand { display: inline-flex; }
  .top-brand .brand-mark { width: 47px; height: 47px; }
  .top-brand .brand-wordmark { width: clamp(106px, 33vw, 132px); }
  .navigation-dock { width: auto; inset: auto calc(9px + var(--safe-right)) max(8px, var(--safe-bottom)) calc(9px + var(--safe-left)); }
  .mobile-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 5px; background: #fffffff5; border-radius: 20px; box-shadow: 0 5px 16px #243a2338; backdrop-filter: blur(10px); }
  .mobile-nav .nav-link { flex-direction: column; justify-content: center; min-height: 62px; padding: 4px 1px; gap: 3px; border-radius: 14px; color: #536459; font-size: clamp(.56rem, 2.5vw, .73rem); line-height: 1.1; }
  .mobile-nav .nav-illustration { width: 39px; height: 39px; }
  .mobile-nav .nav-link.active { color: #2b482d; background: #e9f1d8; }
  .content { padding: 14px 14px 24px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; gap: 11px; }
  .page-heading h1 { font-size: 2rem; }
  .page-heading p { margin-top: 5px; font-size: .94rem; }
  .page-intro { grid-template-columns: minmax(0, 1fr) minmax(64px, 26%); gap: 8px; min-height: 120px; margin-bottom: 13px; padding: 13px; border-radius: 20px; }
  .page-intro h1 { font-size: clamp(1.75rem, 7.05vw, 2.5rem); }
  .page-intro .heading-actions { margin-top: 9px; gap: 6px; }
  .page-intro .button { padding: 6px 9px; font-size: .8rem; }
  .journal-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 9px 11px; }
  .journal-filters .filter-count { grid-column: 1 / -1; justify-self: start; padding: 0; }
  .journal-filters select { font-size: .88rem; }
  .journal-day h2 { padding-inline: 12px; }
  .overview-date { display: block; margin-bottom: 12px; color: var(--muted); font-size: .84rem; font-weight: 670; }
  .dashboard-stage { gap: 13px; }
  .quick-card, .event-card.featured { border-radius: 22px; }
  .quick-card { min-height: 148px; padding: 17px 16px; }
  .quick-art { width: min(44%, 174px); bottom: -14%; right: 2%; }
  .quick-info h2 { font-size: 2rem; }
  .week-panel { margin-top: 23px; }
  .week-panel h2 { font-size: 1.33rem; }
  .week-strip { grid-template-columns: repeat(7, clamp(137px, 38vw, 171px)); gap: 10px; padding-bottom: 10px; }
  .metrics { margin: 12px 0; }
  .metric { display: block; padding: 11px 9px; }
  .metric-label { margin-top: 5px; font-size: .81rem; line-height: 1.24; }
  .metric-icon { width: 29px; height: 29px; border-radius: 7px; }
  .metric-icon svg { width: 16px; height: 16px; }
  .metric-number { margin-top: 4px; font-size: 1.63rem; }
  .metric-caption { font-size: .74rem; }
  .overview-grid { gap: 11px; }
  .overview-insights { gap: 14px; margin-block: 20px; }
  .overview-totals .metric { display: flex; }
  .overview-totals .metric-label { margin-top: 0; }
  .section-header { padding: 13px 11px 11px; }
  .section-header h2 { font-size: 1.05rem; }
  .game-list, .standing-list { padding-inline: 11px; }
  .game-outcome .game-time { display: grid; gap: 0; }
  .rating-panel { padding-inline: 10px; }
  .rating-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rating-filters select { font-size: .88rem; }
  .series-card.compact { margin-inline: 10px; }
  .event-card, .event-card.featured { grid-template-columns: minmax(0, 1fr) minmax(103px, 39%); gap: 8px; padding: 17px 15px; }
  .event-card.featured { min-height: 225px; }
  .featured:not(.event-empty) .event-info { display: contents; }
  .featured:not(.event-empty) .event-info > * { position: relative; z-index: 1; margin-top: 0; }
  .featured:not(.event-empty) .event-labels { grid-area: 1 / 1 / 2 / -1; }
  .featured:not(.event-empty) h2 { grid-area: 2 / 1 / 3 / -1; }
  .featured:not(.event-empty) .event-date { grid-area: 3 / 1; }
  .featured:not(.event-empty) .event-people { grid-area: 4 / 1; }
  .featured:not(.event-empty) .event-clock { grid-area: 5 / 1; }
  .featured:not(.event-empty) .event-actions { grid-area: 6 / 1 / 7 / -1; }
  .featured:not(.event-empty) .event-figure { grid-area: 3 / 2 / 6 / 3; }
  .event-actions .button { white-space: normal; }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .theme-art { min-height: 151px; }
  .theme-art img { width: min(100%, 121px); }
  .theme-info { padding: 10px; }
  .theme-info .button { width: 100%; padding-inline: 6px; font-size: .81rem; }
  .toast { bottom: calc(var(--mobile-menu-space) + var(--safe-bottom) + var(--game-dock-space, 0px)); right: calc(12px + var(--safe-right)); }
}

@media (max-width: 380px) {
  .mobile-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .9fr) minmax(0, 1.05fr); }
  .game-row { gap: 6px; }
  .game-edit { width: 34px; height: 38px; }
  .game-avatars { min-width: 40px; }
  .game-avatars .avatar { min-width: 27px; height: 27px; }
  .game-names strong { font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

#victory-dialog {
  width: min(100% - var(--safe-left) - var(--safe-right) - 12px, 366px);
  padding: 14px 14px 24px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.holo-stage { touch-action: pan-y; }
.holo-rotor {
  --holo-art-height: clamp(218px, 67vw, 258px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto var(--holo-art-height) auto auto;
  gap: 12px;
  padding: 17px;
  border-radius: 25px;
  box-shadow: 0 4px 8px #203a2a29, 0 18px 26px #203a2a37;
  will-change: transform;
}
.holo-face {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(144deg, #f3f7e7 0%, #dfedb2 40%, #cce3b8 69%, #e9e3f5 100%);
}
.holo-face canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.holo-webgl { visibility: hidden; }
.holo-face[data-renderer="webgl"] .holo-webgl { visibility: visible; }
.holo-face[data-renderer="webgl"] .holo-fallback { visibility: hidden; }
.holo-trophy {
  position: absolute;
  z-index: 1;
  display: block;
  left: 50%;
  top: 47%;
  width: 80%;
  height: calc(var(--holo-art-height) - 18px);
  transform: translate(-50%, -50%) rotate(-5deg);
  object-fit: contain;
  filter: drop-shadow(0 11px 9px #29463843);
}
.holo-heading, .holo-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-inline: 3px;
}
.holo-heading { grid-row: 1; }
.holo-heading h2 {
  font-size: clamp(30px, 9.4vw, 40px);
  font-weight: 840;
  line-height: 1;
  letter-spacing: -.07em;
}
.holo-heading h2, .holo-result :is(h3, p) {
  text-shadow: 0 0 3px #f4f8e7, 0 0 9px #f4f8e7;
}
.holo-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 3px;
  border-radius: 50%;
  color: #294638;
  background: #f5f7eddb;
  font-size: 24px;
  line-height: 1;
}
.holo-close:hover { background: #f9fbf3; }
.holo-result { grid-row: 3; }
.holo-result h3 {
  font-size: 20px;
  font-weight: 790;
  line-height: 1.15;
  letter-spacing: -.038em;
}
.holo-result p {
  margin-top: 4px;
  color: #4c6051;
  font-size: 13px;
  line-height: 1.35;
}
.holo-score {
  flex: none;
  min-width: 56px;
  padding: 7px 10px;
  border-radius: 12px;
  color: #234637;
  background: #f5f9e8d9;
  text-align: center;
  font-size: 23px;
  font-weight: 810;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.holo-rotor .holo-primary { grid-row: 4; }

.player-profile-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.player-profile-header h1 { flex: 1; min-width: 0; font-size: clamp(1.55rem, 5vw, 2.4rem); letter-spacing: -.065em; overflow-wrap: anywhere; }
.player-trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 248px), 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}
.player-trophy {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 9px;
  border-radius: 15px;
  background: #f5f7ef;
}
.player-trophy:hover { background: #eef3e6; }
.player-trophy-art {
  display: grid;
  place-items: center;
  height: 68px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--lime), var(--lilac));
}
.player-trophy img { width: 100%; height: 100%; object-fit: contain; }
.player-trophy strong, .player-trophy small { display: block; overflow-wrap: anywhere; }
.player-trophy small { margin-top: 3px; color: var(--muted); }
.championship-stats { margin-bottom: 16px; }
.championship-results { width: 100%; padding: 0 10px 8px; border-spacing: 0; font-variant-numeric: tabular-nums; }
.championship-results :is(th, td) { padding: 8px 5px; text-align: right; }
.championship-results th:first-child { width: 100%; text-align: left; overflow-wrap: anywhere; }
.championship-results thead { color: var(--muted); font-size: .8rem; }
.championship-results tbody :is(th, td) { border-top: 1px solid var(--line); }
.championship-results tbody a:hover { text-decoration: underline; }
