@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap");
:root {
  --paper: #f4f2ec;
  --white: #fffefa;
  --ink: #24251f;
  --muted: #767970;
  --line: #e4e3db;
  --orange: #f0532c;
  --green: #557566;
  --radius: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  font:
    14px/1.55 "DM Sans",
    sans-serif;
  color: var(--ink);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #f0532c66;
  border-color: var(--orange);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.display {
  font-family: "Barlow Condensed", Impact, sans-serif;
  line-height: 1.04;
}
h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 31px;
}
h3 {
  font-size: 23px;
}
small {
  font-size: 12px;
  color: var(--muted);
}
svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  font-weight: 700;
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
}
.orange {
  color: var(--orange);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 17px;
  font-weight: 600;
  transition:
    transform 0.18s,
    background 0.18s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  background: #414439;
}
.btn.primary {
  background: var(--orange);
  color: white;
}
.btn.primary:hover {
  background: #da4220;
}
.btn.soft {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.small {
  padding: 8px 13px;
  font-size: 12px;
}
.btn.full {
  width: 100%;
}
.layout {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #22271f;
  color: #fffefa;
  padding: 34px 22px 20px;
  position: fixed;
  width: 226px;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.logo {
  font:
    800 32px/1 "Barlow Condensed",
    sans-serif;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo em {
  font-style: normal;
  color: var(--orange);
}
.logo-mark {
  font-size: 23px;
  transform: rotate(-25deg);
}
.sidebar .eyebrow {
  color: #949c8e;
  font-size: 9px;
  margin: 12px 0 32px 3px;
  letter-spacing: 1.3px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #b6bdb0;
  padding: 12px 14px;
  border-radius: 9px;
  font-weight: 500;
}
.nav a:hover {
  background: #30362d;
  color: white;
}
.nav a.active {
  color: #fff;
  background: #3b4035;
}
.nav a.active svg {
  color: #fe8b67;
}
.nav .count {
  margin-left: auto;
  font-size: 10px;
  padding: 1px 6px;
  background: #515849;
  border-radius: 4px;
}
.sidebar-record {
  margin-top: 26px;
  width: 100%;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.table-status {
  border-top: 1px solid #3b4135;
  padding: 20px 10px;
  font-size: 12px;
  color: #b6bdb0;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #afcc82;
  border-radius: 50%;
  margin-right: 6px;
}
.account {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 6px;
  cursor: pointer;
  border-top: 1px solid #3b4135;
}
.account small {
  color: #a9b29e;
  display: block;
}
.account strong {
  font-size: 12px;
}
.account svg {
  margin-left: auto;
  width: 15px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 43px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.topbar .crumb {
  font-size: 12px;
  color: var(--muted);
}
.topbar .crumb b {
  color: var(--ink);
  font-weight: 500;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.content {
  padding: 34px 43px 50px;
  max-width: 1420px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading .eyebrow {
  color: var(--green);
  margin-bottom: 10px;
}
.page-heading:has(.game-actions) { flex-wrap: wrap; }
.game-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.page-heading p {
  margin-top: 9px;
  color: var(--muted);
}
.page-heading .date {
  font-size: 12px;
  padding-bottom: 5px;
  white-space: nowrap;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 26px;
  align-items: start;
}
.banner {
  background: #e9eddf;
  border: 1px solid #dde3d1;
  border-radius: var(--radius);
  padding: 23px 26px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.banner h2 {
  font-size: 32px;
}
.banner p {
  font-size: 12px;
  color: #717d65;
  margin-top: 6px;
}
.banner .paddle {
  font-size: 46px;
  transform: rotate(-15deg);
  margin: 0 20px;
  filter: grayscale(0.1);
}
.banner.orange-banner {
  background: #fae7dd;
  border-color: #efd7c9;
}
.banner.orange-banner p {
  color: #9b6a56;
}
.panel,
.post {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel {
  padding: 22px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.section-title h3 {
  font-size: 23px;
}
.section-title a {
  font-size: 11px;
  color: var(--muted);
}
.rail {
  display: grid;
  gap: 20px;
}
.rail .panel {
  padding: 21px;
}
.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eeede7;
}
.mini-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.mini-row .position {
  font: 600 20px "Barlow Condensed";
  width: 13px;
  color: var(--muted);
}
.mini-row strong {
  font-size: 12px;
  display: block;
}
.mini-row small {
  font-size: 10px;
}
.mini-row .points {
  margin-left: auto;
  font: 600 22px "Barlow Condensed";
  text-align: right;
}
.mini-row .points small {
  display: block;
  font: 9px "DM Sans";
  letter-spacing: 0.8px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--avatar-bg, #d9e0cc);
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--white);
  font-size: 22px;
  color: #22271f;
  font-family: "Barlow Condensed";
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.large {
  width: 90px;
  height: 90px;
  font-size: 49px;
}
.avatar.medium {
  width: 52px;
  height: 52px;
  font-size: 28px;
}
.avatar.tiny {
  width: 28px;
  height: 28px;
  font-size: 16px;
}
.avatar-stack {
  display: flex;
}
.avatar-stack .avatar + .avatar {
  margin-left: -9px;
}
.feed-tabs,
.tabs {
  display: flex;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.feed-tabs button,
.tabs button {
  padding: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 2px solid transparent;
}
.feed-tabs button.active,
.tabs button.active {
  border-color: var(--orange);
  color: var(--ink);
  font-weight: 700;
}
.feed-tabs .feed-total {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  padding-bottom: 13px;
}
.post {
  padding: 21px 24px;
  margin-bottom: 18px;
  animation: rise 0.35s both;
  position: relative;
}
.reaction-takeover {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
  display: grid;
  place-items: center;
  background: var(--reaction-wash);
  color: var(--reaction-tone);
  isolation: isolate;
}
.reaction-center {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px;
  text-align: center;
}
.reaction-hero {
  font-size: clamp(85px, 19vw, 145px);
  line-height: 1.1;
  filter: drop-shadow(0 16px 28px #0002);
}
.reaction-title {
  margin-top: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 8vw, 60px);
  line-height: 1;
  letter-spacing: -1px;
}
.reaction-caption { margin-top: 14px; font-size: 9px; letter-spacing: 2px; opacity: .65; }
.reaction-speck { position: absolute; line-height: 1; z-index: 1; }
.reaction-halo { position: absolute; width: 260px; height: 260px; border: 2px solid currentColor; border-radius: 50%; }
.post-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.post-head .meta {
  flex: 1;
}
.post-head strong {
  font-size: 12px;
}
.post-head p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}
.post-head .tag {
  color: var(--green);
  background: #edf0e7;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.post-head .tag.hot {
  background: #fcf0e4;
  color: #ac752d;
}
.post-copy {
  font-size: 13px;
  margin: 14px 0 16px;
  line-height: 1.7;
}
.score-card {
  border: 1px solid #e7e5dc;
  border-radius: 11px;
  background: linear-gradient(120deg, #f6f5ef, #faf9f3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 22px;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.score-card:after {
  content: "";
  position: absolute;
  width: 1px;
  height: 100%;
  background: #ebe9df;
  left: 50%;
  top: 0;
  transform: rotate(25deg);
  pointer-events: none;
}
.score-player {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.score-player.right {
  justify-content: end;
  text-align: right;
}
.score-player strong {
  display: block;
  font-size: 11px;
}
.score-player small {
  font-size: 9px;
}
.score-player .winner {
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.8px;
}
.score-numbers {
  font: 600 47px "Barlow Condensed";
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 1;
}
.score-numbers i {
  font-size: 25px;
  font-style: normal;
  color: #b7b8aa;
}
.score-numbers .loser {
  color: #9c9e8e;
}
.post-actions {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 17px;
}
.post-actions button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  padding: 3px 0;
}
.post-actions svg {
  width: 17px;
  height: 17px;
}
.post-actions button.active {
  color: var(--orange);
}
.post-actions .details {
  margin-left: auto;
}
.reaction-chips {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.reaction-chip {
  padding: 3px 8px !important;
  background: #f4f1e8;
  border: 1px solid #e8e3d5;
  border-radius: 20px;
}
.reaction-chip.active {
  background: #fce7db;
  border-color: #efbd9f;
}
.reaction-picker {
  margin-top: 12px;
  padding: 8px 10px;
  background: #f6f3eb;
  border-radius: 9px;
  display: flex;
  gap: 10px;
  width: max-content;
}
.reaction-picker button {
  font-size: 21px;
  padding: 4px;
  transition: transform 0.15s;
}
.reaction-picker button:hover {
  transform: scale(1.2);
}
.comments {
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding-top: 16px;
}
.comment {
  display: flex;
  gap: 9px;
  margin-bottom: 14px;
}
.comment .bubble {
  flex: 1;
  background: #f5f3ed;
  border-radius: 0 10px 10px;
  padding: 9px 12px;
  font-size: 12px;
}
.comment .bubble strong {
  font-size: 11px;
}
.comment .bubble small {
  margin-left: 8px;
  font-size: 9px;
}
.comment .bubble p {
  margin-top: 3px;
}
.comment form {
  display: flex;
}
.comment-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.comment-form input {
  margin: 0;
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-size: 12px;
}
.comment-delete {
  font-size: 10px;
  color: var(--muted);
  float: right;
}
.quote-panel {
  background: #252c22;
  color: #f9faee;
  position: relative;
  overflow: hidden;
}
.quote-panel .eyebrow {
  color: #b0bd94;
  font-size: 9px;
}
.quote-panel h3 {
  font-size: 32px;
  margin: 18px 0 10px;
}
.quote-panel p {
  color: #b3bca6;
  font-size: 11px;
}
.quote-panel .signature {
  color: #c9d2bb;
  font-size: 10px;
  margin-top: 16px;
}
.quote-panel .line-art {
  position: absolute;
  right: -15px;
  bottom: -12px;
  font-size: 84px;
  opacity: 0.13;
  transform: rotate(-25deg);
}
.your-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.your-stat .display {
  font-size: 38px;
}
.your-stat small {
  display: block;
  font-size: 10px;
}
.rating {
  display: inline-block;
  background: #eef0e5;
  color: var(--green);
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
}
.week-strip {
  display: flex;
  gap: 6px;
}
.form-win {
  background: #e7efe4;
  color: #567650;
  font-size: 9px;
  font-weight: bold;
  width: 24px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.form-win.loss {
  background: #f4e6dd;
  color: #ab6f50;
}
.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 23px;
}
.pill-tabs {
  display: inline-flex;
  background: #e8e7df;
  border-radius: 9px;
  padding: 4px;
  gap: 2px;
}
.pill-tabs button {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.pill-tabs button.active {
  background: var(--white);
  box-shadow: 0 2px 4px #24251f08;
}
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.podium-card {
  padding: 26px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
}
.podium-card.first {
  background: #e9eddf;
  border-color: #dce2d0;
}
.podium-card .place {
  position: absolute;
  top: 13px;
  left: 16px;
  font: 600 28px "Barlow Condensed";
  color: #9a9d8d;
}
.podium-card .crown {
  position: absolute;
  right: 17px;
  top: 16px;
  font-size: 22px;
}
.podium-card .avatar {
  margin: 6px 0 14px;
}
.podium-card h3 {
  font-size: 25px;
  margin-bottom: 4px;
}
.podium-card .wins {
  font: 600 38px "Barlow Condensed";
  margin-top: 16px;
}
.podium-card .wins small {
  display: block;
  font: 10px "DM Sans";
  letter-spacing: 1px;
  text-transform: uppercase;
}
.leader-table {
  width: 100%;
  border-collapse: collapse;
}
.leader-table th {
  text-align: left;
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.8px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
}
.leader-table td {
  padding: 17px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.leader-table tr:last-child td {
  border: 0;
}
.leader-table .player-cell {
  display: flex;
  gap: 12px;
  align-items: center;
}
.leader-table .player-cell small {
  display: block;
  font-size: 10px;
}
.leader-table .self {
  background: #faf4e8;
}
.leader-table td.num {
  font: 600 23px "Barlow Condensed";
}
.table-panel {
  padding: 8px 17px;
  overflow-x: auto;
}
.player-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.player-card {
  text-align: center;
  padding: 30px 22px;
  position: relative;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.player-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px #252c220a;
}
.player-card h3 {
  margin: 15px 0 3px;
  font-size: 29px;
}
.player-card p {
  font-size: 12px;
  color: var(--muted);
  height: 40px;
  margin: 17px 0;
}
.player-card .mini-stats {
  display: flex;
  justify-content: center;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.mini-stats strong {
  display: block;
  font: 600 26px "Barlow Condensed";
}
.mini-stats small {
  font-size: 9px;
}
.profile-cover {
  height: 136px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #e3e9d8;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: end;
  padding: 30px;
  color: #b5c0a3;
}
.profile-cover span {
  font: 800 130px "Barlow Condensed";
  transform: rotate(-8deg);
  letter-spacing: -5px;
}
.profile-panel {
  padding: 0;
  overflow: hidden;
}
.profile-intro {
  padding: 0 30px 28px;
  position: relative;
}
.profile-intro > .avatar {
  margin-top: -43px;
  border: 5px solid var(--white);
  width: 102px;
  height: 102px;
  position: relative;
}
.profile-intro .profile-edit {
  float: right;
  margin-top: 20px;
}
.profile-intro h1 {
  font-size: 43px;
  margin-top: 15px;
}
.profile-intro .bio {
  font-size: 13px;
  max-width: 500px;
  margin: 13px 0 18px;
  color: var(--muted);
}
.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  font-size: 10px;
  border-radius: 5px;
  background: #f3f1e8;
  border: 1px solid #e9e5d9;
  padding: 5px 9px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin: 20px 0 28px;
}
.stat-box {
  padding: 22px;
  text-align: center;
}
.stat-box strong {
  display: block;
  font: 600 41px "Barlow Condensed";
  margin-bottom: 5px;
}
.stat-box small {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.rivalry {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}
.rivalry .display {
  font-size: 38px;
}
.progress {
  height: 8px;
  background: #e2e4d7;
  border-radius: 10px;
  overflow: hidden;
  margin: 17px 0;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--orange);
}
.rival-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.activity-item {
  display: flex;
  align-items: start;
  gap: 14px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.activity-item:last-child {
  border: 0;
}
.activity-item .event-text {
  flex: 1;
}
.activity-item strong {
  font-size: 12px;
}
.activity-item p {
  font-size: 12px;
  color: #77796f;
  margin-top: 4px;
}
.activity-item small {
  font-size: 10px;
}
.activity-item .event-icon {
  background: #eff0e7;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.history-item {
  padding: 15px 0 15px 22px;
  border-left: 1px solid var(--line);
  position: relative;
  font-size: 12px;
}
.history-item:before {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  left: -4px;
  top: 22px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--white);
}
.history-item small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.match-hero {
  padding: 37px;
  text-align: center;
}
.match-hero .match-versus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 30px 0;
}
.match-hero .display {
  font-size: 90px;
  white-space: nowrap;
}
.match-hero .competitor h3 {
  margin: 12px 0 6px;
}
.match-hero .competitor small {
  display: block;
}
.match-hero .notes {
  padding: 20px 15px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.agent-hero {
  background: #252c22;
  color: #fffefa;
  border-radius: var(--radius);
  padding: 37px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 26px;
  overflow: hidden;
}
.agent-hero .eyebrow {
  color: #b5c493;
}
.agent-hero h2 {
  font-size: 49px;
  margin: 17px 0 15px;
}
.agent-hero p {
  color: #bac2b1;
  font-size: 13px;
  max-width: 320px;
}
.terminal {
  background: #182015;
  border: 1px solid #435039;
  border-radius: 12px;
  padding: 20px;
  align-self: center;
  font-size: 12px;
}
.terminal .terminal-bar {
  display: flex;
  gap: 6px;
  padding-bottom: 18px;
}
.terminal-bar i {
  width: 7px;
  height: 7px;
  background: #617052;
  border-radius: 50%;
}
.terminal p {
  font-family: monospace;
  font-size: 11px;
  line-height: 1.9;
  color: #d4dfc9;
  max-width: none;
}
.terminal .prompt {
  color: #a8c788;
}
.agent-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 23px;
}
.client-picker {
  display: flex;
  gap: 9px;
  margin: 23px 0;
}
.client-picker button {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}
.client-picker button.active {
  border-color: var(--orange);
  background: #fff4ec;
  color: #bf492c;
}
.client-picker button span {
  display: block;
  font-size: 25px;
  margin-bottom: 8px;
}
.step-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0 9px;
}
.code-block {
  background: #f3f2eb;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px;
  font: 11px/1.8 monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #5c6253;
}
.capability {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.capability:last-child {
  border: 0;
}
.capability svg {
  color: var(--green);
  flex-shrink: 0;
}
.capability small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.connection:last-child {
  border: 0;
}
.connection strong {
  font-size: 12px;
}
.connection small {
  display: block;
  font-size: 10px;
}
.connection button {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.search {
  position: relative;
}
.search input {
  padding: 11px 15px;
  width: 250px;
  margin: 0;
  background: var(--white);
}
.empty {
  text-align: center;
  padding: 55px 25px;
}
.empty .empty-icon {
  font-size: 44px;
  margin-bottom: 17px;
}
.empty h2 {
  margin-bottom: 10px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #17201370;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  animation: fade 0.15s;
}
.modal {
  background: var(--white);
  border-radius: 21px;
  padding: 32px;
  width: 100%;
  max-width: 510px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 100px #16201135;
  position: relative;
}
.modal h2 {
  font-size: 37px;
  margin: 8px 0;
}
.modal > .muted {
  font-size: 12px;
  margin: 9px 0 23px;
}
.close-modal {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 7px;
  border-radius: 50%;
  color: var(--muted);
}
.close-modal:hover {
  background: var(--paper);
}
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin: 17px 0 7px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #deded4;
  border-radius: 8px;
  background: #fffefa;
  padding: 11px 13px;
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 82px;
}
select {
  cursor: pointer;
}
.form-error {
  color: #ad3921;
  background: #fff0e9;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 12px;
  margin-top: 14px;
}
.form-error:empty {
  display: none;
}
.form-footer {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  justify-content: end;
}
.score-inputs {
  display: flex;
  gap: 22px;
  align-items: center;
  text-align: center;
  margin: 25px 0 5px;
  padding: 20px;
  background: var(--paper);
  border-radius: 12px;
}
.score-inputs div {
  flex: 1;
}
.score-inputs label {
  margin: 0 0 9px;
}
.score-inputs input {
  text-align: center;
  font: 600 45px "Barlow Condensed";
  height: 75px;
  border-radius: 9px;
}
.score-inputs span {
  font-size: 22px;
  color: #a9ad9d;
}
.field-hint {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.otp-input {
  text-align: center;
  font-size: 25px;
  letter-spacing: 8px;
}
.avatar-options {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.avatar-options button {
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 24px;
  border: 2px solid transparent;
  background: #ececde;
}
.avatar-options button.selected {
  border-color: var(--orange);
  background: #fae2d3;
}
.color-options {
  display: flex;
  gap: 10px;
  margin: 13px 0;
}
.color-options button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid var(--white);
  outline: 1px solid transparent;
}
.color-options button.selected {
  outline-color: var(--ink);
}
.photo-edit {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 22px 0;
}
.photo-edit label {
  margin: 0;
  cursor: pointer;
}
.photo-edit input {
  display: none;
}
.photo-edit small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
.success-ball {
  font-size: 60px;
  text-align: center;
  animation: bounce 0.6s;
}
.success {
  text-align: center;
  padding: 20px 0;
}
.success h2 {
  margin: 18px 0 12px;
}
.success p {
  color: var(--muted);
  font-size: 13px;
}
.success .result {
  font: 600 65px "Barlow Condensed";
  margin: 15px 0;
  color: var(--orange);
}
.success .btn {
  margin-top: 12px;
}
.toast-show {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 10px);
  opacity: 0;
  transition: 0.2s;
  background: #263221;
  color: #fff;
  padding: 12px 21px;
  border-radius: 10px;
  z-index: 80;
  font-size: 12px;
  box-shadow: 0 6px 20px #0002;
  pointer-events: none;
  max-width: 90vw;
}
.mobile-brand {
  display: none;
}
.mobile-nav {
  display: none;
}
.login-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: #252c22;
  border-radius: 18px;
  overflow: hidden;
  color: #fffefa;
  margin-bottom: 28px;
  min-height: 330px;
}
.login-hero .hero-copy {
  padding: 42px;
}
.login-hero h2 {
  font-size: 64px;
  margin: 18px 0;
}
.login-hero p {
  font-size: 13px;
  color: #c6ccb9;
  max-width: 310px;
  margin-bottom: 23px;
}
.login-hero .hero-photo {
  background:
    linear-gradient(90deg, #252c2240, #252c2200),
    url("/images/burnttable.jpg") center/cover;
}
.quiet-link {
  font-size: 11px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-top-color: var(--orange);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.7s linear infinite;
}
.tooltip-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
}
.mobile-only {
  display: none;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) rotate(-12deg);
  }
  45% {
    transform: translateY(-15px) rotate(10deg);
  }
}
@media (min-width: 1550px) {
  .columns {
    grid-template-columns: minmax(0, 1fr) 325px;
  }
}
@media (max-width: 1160px) {
  .layout {
    grid-template-columns: 192px minmax(0, 1fr);
  }
  .sidebar {
    width: 192px;
    padding: 30px 15px;
  }
  .logo {
    font-size: 28px;
  }
  .topbar {
    padding: 0 26px;
  }
  .content {
    padding: 28px 26px;
  }
  .columns {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 18px;
  }
  .score-card {
    padding: 16px 12px;
  }
  .score-player {
    gap: 6px;
  }
  .score-player .avatar {
    width: 29px;
    height: 29px;
  }
  .score-numbers {
    font-size: 38px;
  }
  .post {
    padding: 18px;
  }
  .rail .panel {
    padding: 17px;
  }
  .player-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 960px) {
  .rail {
    display: none;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .agent-layout {
    grid-template-columns: 1fr;
  }
  .agent-hero {
    gap: 15px;
    padding: 25px;
  }
  .agent-hero h2 {
    font-size: 43px;
  }
  .match-hero .match-versus {
    gap: 20px;
  }
}
@media (max-width: 700px) {
  .layout {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .main {
    padding-bottom: 75px;
  }
  .topbar {
    height: 64px;
    padding: 0 20px;
    background: var(--paper);
  }
  .mobile-brand {
    display: flex;
    font-size: 26px;
  }
  .topbar .crumb,
  .topbar .date,
  .topbar-right > .eyebrow {
    display: none;
  }
  .topbar-right {
    gap: 10px;
  }
  .content {
    padding: 25px 18px 32px;
  }
  .page-heading {
    align-items: start;
    margin-bottom: 23px;
  }
  .page-heading .date {
    display: none;
  }
  h1 {
    font-size: 45px;
  }
  .page-heading p {
    font-size: 12px;
    max-width: 260px;
  }
  .page-heading > .btn {
    padding: 9px 11px;
    font-size: 11px;
    margin-top: 18px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .banner {
    padding: 18px;
    margin-bottom: 22px;
  }
  .banner h2 {
    font-size: 29px;
  }
  .banner .paddle {
    display: none;
  }
  .banner p {
    font-size: 11px;
    max-width: 185px;
  }
  .banner .btn {
    padding: 9px 11px;
    font-size: 11px;
  }
  .feed-tabs {
    gap: 22px;
  }
  .post {
    padding: 18px 16px;
    border-radius: 13px;
  }
  .post-copy {
    font-size: 12px;
  }
  .score-card {
    padding: 18px 10px;
    gap: 4px;
  }
  .score-player {
    gap: 6px;
    display: block;
    text-align: center !important;
  }
  .score-player .avatar {
    width: 35px;
    height: 35px;
    margin: 0 0 6px;
  }
  .score-player strong {
    font-size: 10px;
  }
  .score-player small {
    font-size: 8px;
  }
  .score-numbers {
    font-size: 43px;
    gap: 5px;
  }
  .score-numbers i {
    font-size: 20px;
  }
  .post-actions {
    gap: 15px;
    flex-wrap: wrap;
  }
  .post-actions .details {
    font-size: 10px;
  }
  .post-head .tag {
    font-size: 8px;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #fffefaee;
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--line);
    z-index: 30;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-nav a {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    font-size: 9px;
    color: var(--muted);
    min-width: 50px;
  }
  .mobile-nav a.active {
    color: var(--orange);
  }
  .mobile-nav .record-nav {
    width: 46px;
    height: 46px;
    background: var(--orange);
    color: #fff;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px #f0532c33;
  }
  .filters {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }
  .pill-tabs {
    align-self: start;
  }
  .pill-tabs button {
    padding: 7px 12px;
    font-size: 11px;
  }
  .podium {
    gap: 8px;
  }
  .podium-card {
    padding: 22px 7px 15px;
    border-radius: 11px;
  }
  .podium-card .avatar {
    width: 50px;
    height: 50px;
  }
  .podium-card h3 {
    font-size: 20px;
  }
  .podium-card small {
    font-size: 9px;
  }
  .podium-card .place {
    font-size: 21px;
    left: 9px;
    top: 8px;
  }
  .podium-card .crown {
    font-size: 14px;
    right: 8px;
    top: 8px;
  }
  .podium-card .wins {
    font-size: 30px;
  }
  .podium-card .wins small {
    font-size: 8px;
  }
  .leader-table th,
  .leader-table td {
    padding: 13px 7px;
  }
  .leader-table .hide-mobile {
    display: none;
  }
  .leader-table .player-cell {
    gap: 8px;
    font-size: 11px;
  }
  .leader-table .player-cell .avatar {
    width: 28px;
    height: 28px;
  }
  .leader-table td.num {
    font-size: 20px;
  }
  .leader-table th {
    font-size: 8px;
  }
  .table-panel {
    padding: 5px 9px;
  }
  .player-grid {
    gap: 12px;
  }
  .player-card {
    padding: 24px 12px;
  }
  .player-card .avatar {
    width: 64px;
    height: 64px;
  }
  .player-card h3 {
    font-size: 24px;
  }
  .player-card p {
    font-size: 11px;
    height: 55px;
  }
  .player-card .mini-stats {
    gap: 17px;
  }
  .search input {
    width: 100%;
  }
  .profile-cover {
    height: 115px;
  }
  .profile-cover span {
    font-size: 105px;
  }
  .profile-intro {
    padding: 0 21px 22px;
  }
  .profile-intro h1 {
    font-size: 36px;
  }
  .stats-grid {
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-box {
    padding: 17px;
  }
  .stat-box strong {
    font-size: 35px;
  }
  .profile-edit {
    font-size: 11px !important;
  }
  .agent-hero {
    display: block;
    padding: 25px;
  }
  .agent-hero h2 {
    font-size: 45px;
  }
  .terminal {
    margin-top: 25px;
  }
  .agent-layout .panel {
    padding: 20px;
  }
  .client-picker {
    gap: 6px;
  }
  .client-picker button {
    font-size: 10px;
    padding: 10px 4px;
  }
  .client-picker button span {
    font-size: 21px;
  }
  .match-hero {
    padding: 24px 14px;
  }
  .match-hero .match-versus {
    gap: 10px;
  }
  .match-hero .display {
    font-size: 62px;
  }
  .match-hero .competitor .avatar {
    width: 65px;
    height: 65px;
  }
  .match-hero .competitor h3 {
    font-size: 22px;
  }
  .match-hero .competitor small {
    font-size: 10px;
  }
  .activity-item {
    gap: 10px;
    padding: 18px 0;
  }
  .activity-item > .avatar {
    width: 31px;
    height: 31px;
  }
  .activity-item .event-icon {
    display: none;
  }
  .activity-item strong {
    font-size: 11px;
  }
  .activity-item p {
    font-size: 11px;
  }
  .activity-item > small {
    font-size: 9px;
    max-width: 60px;
    text-align: right;
  }
  .modal-overlay {
    padding: 15px;
    align-items: center;
  }
  .modal {
    padding: 26px 22px;
    max-height: 92dvh;
  }
  .modal h2 {
    font-size: 34px;
  }
  .modal .eyebrow {
    font-size: 9px;
  }
  .score-inputs {
    gap: 15px;
    padding: 15px;
  }
  .login-hero {
    display: block;
    min-height: 0;
  }
  .login-hero .hero-copy {
    padding: 30px;
  }
  .login-hero h2 {
    font-size: 52px;
  }
  .login-hero .hero-photo {
    height: 170px;
  }
  .mobile-only {
    display: block;
  }
  #toast {
    bottom: 85px;
  }
  .topbar-right .btn {
    padding: 7px 10px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Keep roster search and match identities comfortable at phone widths. */
@media (max-width: 700px) {
  .page-heading:has(.search) {
    flex-direction: column;
    gap: 17px;
  }
  .page-heading .search {
    width: 100%;
  }
  .score-player.right {
    display: flex;
    flex-direction: column-reverse;
    gap: 0;
  }
  .score-player.right .avatar {
    margin: 0 0 6px;
  }
  .tabs {
    gap: 17px;
    overflow-x: auto;
  }
  .tabs button {
    white-space: nowrap;
  }
  .profile-cover {
    justify-content: start;
  }
  .profile-cover span {
    font-size: 70px;
    letter-spacing: -2px;
    white-space: nowrap;
  }
}
@media(max-width:960px){.columns{grid-template-columns:minmax(0,1fr)}.columns>div{min-width:0}}
@media(max-width:700px){.profile-cover span{font-size:52px}}
@keyframes rise{from{transform:translateY(8px)}to{transform:translateY(0)}}

.comment-form { position:relative; flex-wrap:wrap; }
.mention-picker { position:absolute; z-index:5; left:40px; right:0; bottom:100%; background:#fffdf7; border:1px solid #dedbcd; border-radius:12px; box-shadow:0 8px 24px #292b251a; padding:6px; }
.mention-picker[hidden] { display:none; }
.mention-picker button { display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:8px; border-radius:8px; }
.mention-picker button:hover,.mention-picker button:focus-visible { background:#f4f1e8; }
.mention-picker small { display:block; color:var(--muted); }
.post-actions { flex-wrap:wrap; }

.match-scores{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 4px;color:var(--muted)}
.match-scores span{display:grid;gap:4px;text-align:center;padding:8px 12px;border:1px solid #dedbd2;border-radius:10px}
.match-scores small{font-size:9px;letter-spacing:1px}.match-scores strong{font-size:15px;color:#242b22}
.series-match{border:0;border-top:1px solid #dedbd2;padding:2px 0 0;margin:6px 0}.series-match legend{font-size:12px;font-weight:700;padding-right:12px}.series-match[hidden]{display:none}.series-match .score-inputs{margin:4px 0;padding:8px}.series-match .score-inputs label{margin-bottom:4px}.series-match .score-inputs input{height:44px;font-size:32px}
form[data-form="game"]>label{margin-top:12px}form[data-form="game"] textarea{min-height:64px}form[data-form="game"] .form-footer{margin-top:16px}
.match-hero .match-scores,.success .match-scores{justify-content:center}
form[data-form="game"] .series-status{margin:6px 0}

.score-options{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}.score-options button{padding:8px 11px;border:1px solid #e3e3d9;border-radius:9px;background:#f5f5ef;color:#557566;font-size:12px;font-weight:600}.score-options button:hover{background:#edf1eb;border-color:#93aa9a}.result-tag{display:inline-block;background:#edf1eb;color:#557566;padding:5px 9px;border-radius:6px;font-size:11px;margin:8px 0}.result-tag.deuce{background:#fff0e6;color:#b04a24}.match-winners{display:flex;gap:10px;margin:10px 0}.match-winners label{position:relative;flex:1;margin:0!important;cursor:pointer}.match-winners input{position:absolute;opacity:0;width:1px;height:1px}.match-winners span{display:block;text-align:center;padding:12px;border:1px solid #dedbd2;border-radius:10px;font-size:13px}.match-winners input:checked+span{border-color:#557566;background:#edf1eb;color:#365344;box-shadow:inset 0 0 0 1px #557566}.match-winners input:checked+span:before{content:'✓ '}.match-winners input:focus-visible+span{outline:2px solid #f0532c;outline-offset:2px}.match-error{background:#fff0e6;padding:12px;border-radius:8px;color:#a34428;font-size:12px;margin:10px 0}.match-error[hidden]{display:none}.match-error button{display:block;margin-top:8px}

/* Record flow: only the body scrolls; the submit action stays in view. */
.record-overlay { bottom:auto; padding:20px; }
.modal.record-dialog { max-width:560px; max-height:100%; padding:0; display:flex; flex-direction:column; overflow:hidden; }
.record-header { padding:24px 26px 16px; border-bottom:1px solid var(--line); flex-shrink:0; }
.record-header h2 { margin:9px 30px 8px 0; }
.record-header p { margin:0; font-size:12px; }
.record-form { display:flex; flex-direction:column; min-height:0; }
.record-scroll { padding:20px 26px; overflow:auto; overscroll-behavior:contain; min-height:0; }
.record-footer { flex-shrink:0; display:flex; align-items:center; gap:12px; padding:15px 26px; border-top:1px solid var(--line); background:var(--white); }
.record-footer>.btn { margin-left:auto; flex-shrink:0; }
.record-status { min-width:0; }
.record-status .series-status { margin:0; }
.record-status .form-error { margin-top:6px; }
.record-matchup { display:flex; align-items:center; gap:9px; padding-bottom:17px; font-size:13px; }
.record-matchup>span { font-size:11px; color:var(--muted); }
.record-matchup .quiet-link { margin-left:auto; font-size:12px; }
.record-dialog .series-match { border:1px solid var(--line); border-radius:12px; padding:13px; margin:0 0 12px; background:#f8f7f1; }
.record-dialog .series-match legend { padding:0 5px; }
.record-dialog .score-inputs { padding:0; margin:0; background:none; }
.record-dialog .score-inputs label { margin:0 0 5px; font-size:10px; }
.record-dialog .score-inputs input { height:50px; background:white; font-size:27px; appearance:textfield; }
.record-dialog .score-inputs input::-webkit-inner-spin-button { appearance:none; }
.record-dialog .score-options { gap:16px; margin:9px 0 0; }
.record-dialog .score-options button { padding:0; background:none; border:0; font-size:10px; }
.record-dialog .score-options button:hover { text-decoration:underline; }
.record-dialog .match-winners { margin:8px 0; }
.record-dialog .result-tag { margin:0 0 8px; }
.record-dialog .series-match .field-hint { margin:0 0 8px; }
.record-extras { display:flex; flex-wrap:wrap; gap:24px; margin:18px 0 8px; }
.record-extras button { display:flex; align-items:center; gap:5px; font-size:12px; }
.record-extras svg { width:13px; height:13px; }
.record-player-hint { margin:20px 0 9px; font-size:9px; letter-spacing:2px; color:var(--muted); }
.record-players { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.record-player { display:flex; align-items:center; gap:12px; padding:13px; border:1px solid var(--line); border-radius:12px; text-align:left; background:white; }
.record-player strong { font-size:13px; }
.record-player small { display:block; font-size:10px; color:var(--muted); margin-top:3px; overflow-wrap:anywhere; }
.record-player span { min-width:0; }
.record-player .avatar { flex-shrink:0; }
.record-player:hover { border-color:var(--orange); background:#fff3ea; }
.record-dialog [hidden] { display:none!important; }
@media(max-width:600px) {
  .record-overlay { padding:10px; }
  .modal.record-dialog { border-radius:17px; }
  .record-header { padding:19px 18px 13px; }
  .record-header h2 { font-size:32px; }
  .record-scroll { padding:16px 18px; }
  .record-footer { padding:13px 18px; }
  .record-players { gap:8px; }
  .record-player { padding:11px; gap:8px; }
  .record-player .avatar { width:33px; height:33px; font-size:18px; }
  .record-status .field-hint { font-size:10px; }
}
