:root {
  --green: #173d33;
  --green-dark: #103027;
  --ink: #243c33;
  --muted: #7a8178;
  --paper: #f7f6f0;
  --line: #e7e8df;
  --gold: #b38b48;
  --white: #fffefa;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b38b48;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
h1 {
  font-size: 42px;
  line-height: 1.13;
  letter-spacing: -1.3px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 21px;
}
small {
  font-size: 11px;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip {
  position: fixed;
  top: -60px;
  left: 20px;
  padding: 10px;
  background: var(--white);
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 226px;
  background: var(--green);
  color: #f7f4e7;
  padding: 35px 22px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font: 29px var(--serif);
  letter-spacing: -0.7px;
}
.brand-icon {
  font-size: 45px;
  line-height: 1;
  color: #f2e4bc;
  transform: rotate(-13deg);
}
.brand small {
  display: block;
  font: 8px var(--sans);
  letter-spacing: 1.7px;
  margin-top: 7px;
  color: #abbfb3;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.9px;
  color: #94afa2;
  margin: 54px 14px 15px;
}
nav {
  display: grid;
  gap: 7px;
}
nav a {
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #c1d0c5;
  font-size: 13px;
  border-radius: 6px;
}
nav a span {
  font-size: 20px;
  width: 19px;
  line-height: 1;
}
nav a.active {
  background: #315447;
  color: #fff8e8;
  box-shadow: inset 3px 0 #d5b579;
}
nav a:hover {
  background: #2b4e40;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 13px 2px;
}
.mini-board {
  letter-spacing: -4px;
  font-size: 33px;
  transform: scaleY(1.7);
  transform-origin: left bottom;
  color: #cfbd96;
  margin-bottom: 17px;
}
.sidebar-bottom p {
  font: 25px/1.3 var(--serif);
  color: #e6e8d7;
}
.sidebar-bottom small {
  display: block;
  color: #9db4a6;
  margin-top: 18px;
  font-size: 10px;
}
.workspace {
  margin-left: 226px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 79px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 44px;
  font-size: 9px;
  letter-spacing: 1.7px;
}
.edclub-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0;
  color: #142946;
}
.edclub-brand img {
  object-fit: contain;
}
.edclub-brand strong {
  font-size: 21px;
  letter-spacing: -0.7px;
}
.edclub-app {
  margin-left: 5px;
  padding-left: 13px;
  border-left: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.hub-link {
  font-size: 11px;
  letter-spacing: 0;
  padding: 10px 0 10px 10px;
  color: #142946;
}
.hub-link:hover {
  text-decoration: underline;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #739177;
  border-radius: 50%;
  display: inline-block;
}
main {
  padding: 31px 44px 14px;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
main:focus {
  outline: none;
}
.hero {
  position: relative;
  min-height: 258px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.1px;
  color: #8b907f;
  margin-bottom: 15px;
}
.hero h1 {
  font-size: 43px;
}
.hero p {
  color: #7b8176;
  margin: 15px 0 22px;
  font-size: 13px;
}
.hero .primary {
  font-size: 12px;
}
.hero-note {
  font-size: 10px;
  color: #8b8d7c;
  display: inline-block;
  margin-left: 15px;
}
.hero img {
  width: 340px;
  max-width: 40%;
  margin-right: -10px;
}
.primary,
.secondary,
.danger-button {
  border-radius: 5px;
  padding: 12px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
}
.primary {
  color: #fff9e8;
  background: var(--green);
  box-shadow: 0 2px 3px #173d3310;
}
.primary:hover {
  background: #2f5644;
}
.secondary {
  border: 1px solid #dce0d3;
  background: var(--white);
  color: var(--ink);
}
.secondary:hover {
  background: #f0f2e8;
}
.text-button {
  background: none;
  padding: 8px 0;
  color: var(--green);
  font-size: 12px;
  min-height: 36px;
}
.text-button:hover {
  text-decoration: underline;
}
.danger {
  color: #a05443;
}
.danger-button {
  background: #a44c3e;
  color: white;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 25px 0;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 17px 20px;
}
.stat-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #6e796b;
}
.stat-label > span {
  color: #a6ad94;
  font-size: 18px;
}
.stat-card strong {
  display: block;
  font: 35px/1.3 var(--serif);
  letter-spacing: -1px;
  margin-top: 7px;
}
.stat-card small {
  display: block;
  color: #939786;
  font-size: 10px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stat-unit {
  font: 14px var(--serif);
  letter-spacing: 0;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 22px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.panel-heading {
  padding: 23px 23px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.panel-heading h2 {
  font-size: 22px;
}
.panel-heading p {
  font-size: 10px;
  color: #939786;
  margin-top: 4px;
}
.subtle-badge {
  font-size: 8px;
  letter-spacing: 1px;
  background: #f1f2e8;
  color: #81876f;
  padding: 5px 8px;
  border-radius: 3px;
  white-space: nowrap;
}
.table-wrap {
  overflow-x: auto;
}
.table-hint {
  display: none;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  font-weight: 400;
  font-size: 9px;
  color: #879080;
  padding: 13px 10px;
  background: #f7f8f1;
  border-block: 1px solid #eeefe7;
  white-space: nowrap;
}
td {
  padding: 15px 10px;
  border-bottom: 1px solid #f0f0e8;
  white-space: nowrap;
}
th:nth-child(n + 3),
td:nth-child(n + 3) {
  text-align: center;
}
th:last-child,
td:last-child {
  padding-right: 20px;
}
.rank-col {
  width: 35px;
  padding-left: 22px;
  color: #a0a594;
  font-size: 10px;
}
.first-rank {
  color: #b48b44;
  font-size: 19px;
}
tr:last-child td {
  border-bottom: 0;
}
.player-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  text-align: left;
  color: var(--ink);
  padding: 0;
  font-size: 12px;
  font-weight: 500;
}
.player-link:hover > span:last-child {
  text-decoration: underline;
}
.player-link small {
  display: block;
  font-size: 6px;
  letter-spacing: 1px;
  color: #af8f4a;
  margin-top: 4px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid #00000008;
}
.avatar.large {
  width: 58px;
  height: 58px;
  font-size: 17px;
}
.color-0 {
  background: #e0e7db;
  color: #64705c;
}
.color-1 {
  background: #ece3cd;
  color: #827145;
}
.color-2 {
  background: #e0e8dc;
  color: #576e50;
}
.color-3 {
  background: #e7ded5;
  color: #8b6b58;
}
.color-4 {
  background: #dfe6e7;
  color: #57777d;
}
.color-5 {
  background: #e9dede;
  color: #8c6565;
}
.wins-cell {
  font-weight: 600;
}
.pill {
  font-size: 9px;
  padding: 4px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.pill.win {
  background: #eef3e7;
  color: #647b46;
}
.pill.loss {
  background: #f5ebe5;
  color: #ac7b69;
}
.form-dots {
  display: inline-flex;
  gap: 3px;
}
.form-dots > span:not(.muted) {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-size: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form-dots .won {
  background: #718564;
  color: #fff;
}
.form-dots .lost {
  background: #ede6db;
  color: #a1937a;
}
.panel-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: #9a9e8d;
}
.panel-foot a {
  color: var(--green);
}
.panel-foot a span {
  margin-left: 6px;
}
.activity .panel-heading {
  padding-bottom: 20px;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  background: none;
  text-align: left;
  padding: 16px 22px;
  border-top: 1px solid #f0f0e8;
  color: var(--ink);
}
.activity-item:hover {
  background: #f8f9f1;
}
.avatar-pair {
  display: flex;
  min-width: 40px;
  position: relative;
  align-self: flex-start;
}
.avatar-pair .avatar {
  width: 27px;
  height: 27px;
  font-size: 8px;
}
.avatar-pair .avatar + .avatar {
  width: 22px;
  height: 22px;
  font-size: 6px;
  margin-left: -10px;
  margin-top: 17px;
  border: 2px solid var(--white);
}
.activity-text {
  flex: 1;
  min-width: 0;
}
.activity-text strong {
  font-size: 10px;
  font-weight: 500;
  display: block;
}
.activity-text small {
  font-size: 9px;
  color: #9a9d8d;
  display: block;
  margin-top: 5px;
}
.score {
  font: 16px var(--serif);
  white-space: nowrap;
}
.score span {
  color: #b3b59f;
  margin: 0 4px;
}
.activity-more {
  padding: 20px 23px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  border-top: 1px solid var(--line);
}
.closing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 29px 0 14px;
}
.closing-note span {
  width: 37px;
  height: 1px;
  background: #d7daca;
}
.closing-note p {
  font: italic 14px var(--serif);
  color: #9a9d87;
}
.demo-invite {
  text-align: center;
  font-size: 11px;
  color: #8a8f7e;
  margin-top: 12px;
}
.demo-invite button {
  font-size: 11px;
  margin-left: 8px;
}
footer {
  padding: 20px 44px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #979e89;
  font-size: 8px;
  letter-spacing: 1.6px;
}
footer > span:last-child {
  letter-spacing: 0;
  font: italic 12px var(--serif);
}
.footer-dot {
  margin: 0 12px;
  color: #baa376;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 16px 0 35px;
}
.page-heading p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  font-size: 11px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: var(--white);
  width: 300px;
}
.search span {
  font-size: 25px;
  color: #8a927a;
}
.search input {
  border: 0;
  background: none;
  padding: 12px 0;
  width: 100%;
  font-size: 12px;
  outline-offset: 0;
}
.filter-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
select,
input,
textarea {
  color: var(--ink);
}
select {
  border: 1px solid #dde1d4;
  border-radius: 5px;
  padding: 10px;
  background: var(--white);
  max-width: 100%;
}
.player-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.player-card {
  padding: 23px;
}
.player-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.player-card h2 {
  font-size: 25px;
  overflow-wrap: anywhere;
}
.player-card > p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.player-numbers {
  display: flex;
  justify-content: space-between;
  margin: 22px 0;
}
.player-numbers strong {
  display: block;
  font: 27px var(--serif);
}
.player-numbers small {
  color: var(--muted);
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
.player-card-bottom {
  border-top: 1px solid var(--line);
  padding-top: 9px;
  display: flex;
  justify-content: space-between;
}
.archived {
  background: #f1f1e9;
}
.match-row {
  padding: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.match-row:last-child {
  border-bottom: 0;
}
.match-date {
  font-size: 11px;
  color: var(--muted);
  width: 105px;
}
.match-players {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}
.competitor {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: 12px;
}
.match-winner {
  font-weight: 600;
}
.match-score {
  font: 23px var(--serif);
  width: 65px;
  white-space: nowrap;
}
.match-score > span {
  color: #b5b9a6;
}
.winner-label {
  font-size: 8px;
  color: #82906c;
  background: #eef3e7;
  border-radius: 3px;
  padding: 3px 5px;
}
.match-note {
  flex-basis: 100%;
  padding-left: 125px;
  color: #929682;
  font-size: 11px;
}
.versus-panel {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 40px;
}
.versus-players {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  align-items: center;
  text-align: center;
}
.versus-players > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.versus-players select {
  font-size: 15px;
  width: 100%;
  max-width: 260px;
}
.versus-label {
  color: #aaa98d;
  font: italic 22px var(--serif);
}
.versus-score {
  display: flex;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  margin-top: 33px;
}
.versus-score strong {
  font: 60px var(--serif);
  width: 100px;
}
.versus-score small {
  display: block;
  font: 10px var(--sans);
  color: #8f957f;
  letter-spacing: 1px;
  margin-top: 10px;
}
.versus-score > span {
  font-size: 12px;
}
.versus-score > span small {
  letter-spacing: 0;
  max-width: 220px;
}
.rivalry-bar {
  margin: 30px 0 0;
}
progress {
  appearance: none;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e5dcc8;
}
progress::-webkit-progress-bar {
  background: #e5dcc8;
}
progress::-webkit-progress-value {
  background: #66836a;
}
progress::-moz-progress-bar {
  background: #66836a;
}
.section-title {
  margin: 32px 0 15px;
}
.empty {
  text-align: center;
  padding: 47px 25px;
  width: 100%;
  grid-column: 1/-1;
}
.empty-icon {
  color: #b0b797;
  font-size: 35px;
  margin-bottom: 10px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  max-width: 300px;
  margin: 12px auto 20px;
}
.empty h3 {
  font-size: 23px;
}
.loading {
  padding: 100px;
  text-align: center;
  color: var(--muted);
}
.demo-banner {
  background: #ede9d8;
  border: 1px solid #e0d9bf;
  padding: 9px 15px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  margin-bottom: 20px;
  color: #847a56;
}
.demo-banner .text-button {
  font-size: 10px;
  color: #786c47;
}
.demo-banner strong {
  font-weight: 500;
}
dialog {
  width: min(560px, calc(100% - 30px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 29px;
  box-shadow: 0 30px 100px #142c3340;
}
dialog::backdrop {
  background: #142a2466;
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.modal-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 8px;
}
.modal-heading h2 {
  font-size: 30px;
  overflow-wrap: anywhere;
}
.close-button {
  width: 40px;
  height: 40px;
  background: #f1f2e8;
  border-radius: 50%;
  color: #7c896d;
  font-size: 24px;
  flex-shrink: 0;
}
.modal-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 22px;
}
form {
  margin-top: 23px;
}
form label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 17px;
}
form input:not([type="checkbox"]),
form select,
form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #dce1d2;
  border-radius: 5px;
  padding: 12px;
  background: #fffefb;
  min-height: 45px;
  font-size: 13px;
}
form textarea {
  resize: vertical;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 23px;
}
.checkbox-label input {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
}
.help {
  font-size: 10px;
  color: #92967e;
  margin: -3px 0 20px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  align-items: center;
}
.form-actions .danger {
  margin-right: auto;
  font-size: 10px;
}
.form-error {
  font-size: 12px;
  color: #ad5646;
  min-height: 18px;
}
.match-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  gap: 10px;
}
.form-vs {
  align-self: center;
  text-align: center;
  color: #a1a78b;
  font: italic 12px var(--serif);
  margin-top: 24px;
}
.match-fields input {
  font: 27px var(--serif) !important;
}
.profile-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
  font-size: 12px;
  color: var(--muted);
}
.profile-summary p {
  margin-top: 6px;
}
.profile-streak {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 25px;
}
.profile-summary + .stats-grid {
  gap: 8px;
}
.profile-summary + .stats-grid .stat-card {
  padding: 12px;
}
.profile-summary + .stats-grid .stat-card strong {
  font-size: 25px;
}
.rivalry-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.rivalry-list > div > span:nth-child(2) {
  flex: 1;
}
.rivalry-list > p {
  font-size: 12px;
  margin-top: 15px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 113px);
  transform: translate(-50%, 20px);
  background: var(--green);
  color: #fffae9;
  padding: 14px 23px;
  border-radius: 7px;
  box-shadow: 0 5px 20px #0002;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: 90%;
  z-index: 20;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1500px) {
  main {
    padding-top: 42px;
  }
  .hero h1 {
    font-size: 53px;
  }
  .hero img {
    width: 420px;
  }
  .hero {
    min-height: 320px;
  }
  .overview-grid {
    grid-template-columns: 1.7fr 1fr;
  }
  .activity-item {
    padding-block: 22px;
  }
  td {
    padding-block: 20px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 200px;
    padding-inline: 18px;
  }
  .brand {
    font-size: 25px;
  }
  .brand-icon {
    font-size: 39px;
  }
  .brand small {
    font-size: 7px;
  }
  .workspace {
    margin-left: 200px;
  }
  main {
    padding-inline: 28px;
  }
  .topbar,
  footer {
    padding-inline: 28px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-note {
    display: none;
  }
  .overview-grid {
    gap: 16px;
    grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr);
  }
  .form-col {
    display: none;
  }
  .player-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .match-date {
    width: 85px;
  }
  .match-players {
    gap: 12px;
  }
  .match-note {
    padding-left: 105px;
  }
  #toast {
    left: calc(50% + 100px);
  }
}
@media (max-width: 1000px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .form-col {
    display: table-cell;
  }
  .activity-item {
    padding-block: 14px;
  }
  .hero img {
    width: 290px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 14px;
  }
  .stat-label {
    font-size: 10px;
  }
  .match-players {
    flex-basis: 100%;
    order: 3;
  }
  .match-row > .text-button {
    margin-left: auto;
  }
  .match-note {
    order: 4;
    padding-left: 0;
  }
  .hero h1 {
    font-size: 33px;
  }
}
@media (max-width: 720px) {
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 13px 20px 0;
    display: block;
    background: var(--green);
    box-shadow: 0 3px 12px #0001;
  }
  .brand {
    font-size: 23px;
    gap: 8px;
    width: max-content;
  }
  .brand-icon {
    font-size: 31px;
  }
  .brand small {
    display: none;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    justify-content: space-between;
    gap: 3px;
    margin-top: 10px;
  }
  nav a {
    padding: 12px 7px;
    min-height: 44px;
    border-radius: 0;
    font-size: 10px;
    gap: 6px;
    white-space: nowrap;
  }
  nav a span {
    font-size: 15px;
    width: auto;
  }
  nav a.active {
    background: none;
    box-shadow: inset 0 -2px #d5b579;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 56px;
    padding-inline: 20px;
    font-size: 7px;
    letter-spacing: 1.2px;
  }
  .edclub-brand img {
    width: 26px;
    height: 26px;
  }
  .edclub-brand strong {
    font-size: 18px;
  }
  .edclub-brand,
  .hub-link,
  .text-button,
  .player-link {
    min-height: 44px;
  }
  .edclub-brand,
  .hub-link {
    display: inline-flex;
    align-items: center;
  }
  .close-button {
    width: 44px;
    height: 44px;
  }
  .edclub-app {
    font-size: 8px;
    letter-spacing: 0.8px;
    margin-left: 2px;
    padding-left: 8px;
  }
  main {
    padding: 22px 20px 8px;
  }
  .hero {
    min-height: 240px;
    align-items: flex-start;
    padding: 6px 0 23px;
  }
  .hero > div {
    position: relative;
    z-index: 1;
    width: 100%;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px;
    margin-bottom: 14px;
  }
  .hero h1 {
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: -1px;
    max-width: 350px;
  }
  .hero p {
    font-size: 11px;
    margin-top: 14px;
    max-width: 230px;
  }
  .hero img {
    position: absolute;
    width: 170px;
    max-width: none;
    right: -54px;
    bottom: -16px;
    opacity: 0.45;
    transform: rotate(12deg);
  }
  .hero .primary {
    padding: 11px 16px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-card strong {
    font-size: 32px;
  }
  .stat-card small {
    font-size: 9px;
  }
  .overview-grid {
    gap: 18px;
  }
  .panel-heading {
    padding: 20px 18px 16px;
  }
  .panel-heading h2 {
    font-size: 22px;
  }
  .form-col {
    display: none;
  }
  th,
  td {
    padding-inline: 7px;
  }
  th:last-child,
  td:last-child {
    padding-right: 14px;
  }
  .rank-col {
    padding-left: 15px;
    width: 26px;
  }
  .player-link {
    gap: 8px;
    font-size: 11px;
  }
  .player-link .avatar {
    width: 27px;
    height: 27px;
    font-size: 8px;
  }
  .player-link small {
    font-size: 5px;
  }
  .table-wrap td {
    padding-block: 16px;
  }
  .table-hint {
    display: block;
    padding: 10px 16px;
    font-size: 12px;
    color: var(--muted);
  }
  .panel-foot {
    padding: 14px 16px;
    font-size: 8px;
  }
  .activity-item {
    padding: 15px 18px;
  }
  .activity-text strong {
    font-size: 11px;
  }
  .activity-text small {
    font-size: 10px;
  }
  .closing-note {
    margin-top: 25px;
  }
  .closing-note p {
    font-size: 13px;
  }
  footer {
    padding: 25px 20px;
    font-size: 6px;
    letter-spacing: 1px;
  }
  footer > span:last-child {
    font-size: 10px;
  }
  .footer-dot {
    margin: 0 6px;
  }
  .page-heading {
    display: block;
    margin: 8px 0 25px;
  }
  .page-heading h1 {
    font-size: 36px;
  }
  .page-heading > button {
    margin-top: 20px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .toolbar {
    align-items: flex-start;
    gap: 15px;
    font-size: 10px;
  }
  .search {
    width: 65%;
    padding-inline: 10px;
  }
  .toolbar > .muted {
    align-self: center;
    font-size: 9px;
    max-width: 110px;
    text-align: right;
  }
  .player-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .player-card {
    padding: 22px;
  }
  .match-row {
    padding: 19px;
    gap: 12px;
  }
  .match-date {
    width: auto;
    font-size: 10px;
  }
  .match-players {
    gap: 8px;
  }
  .competitor {
    font-size: 11px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .competitor .avatar {
    width: 24px;
    height: 24px;
    font-size: 7px;
  }
  .match-score {
    font-size: 23px;
    width: 55px;
    flex-shrink: 0;
    text-align: center;
  }
  .winner-label {
    font-size: 6px;
    padding: 2px 4px;
  }
  .match-note {
    font-size: 10px;
  }
  .filter-label {
    font-size: 11px;
  }
  .filter-label select {
    font-size: 11px;
    padding: 10px;
    max-width: 165px;
  }
  .versus-panel {
    padding: 26px 18px;
  }
  .versus-players {
    grid-template-columns: 1fr 30px 1fr;
  }
  .versus-players select {
    font-size: 12px;
    padding: 9px 5px;
  }
  .versus-players > div {
    gap: 15px;
  }
  .versus-label {
    font-size: 17px;
  }
  .versus-score strong {
    font-size: 48px;
    width: 60px;
  }
  .versus-score > span {
    font-size: 11px;
    max-width: 140px;
  }
  .versus-score > span small {
    font-size: 9px;
    line-height: 1.5;
  }
  .versus-score small {
    font-size: 8px;
  }
  dialog {
    padding: 23px 20px;
    max-height: calc(100dvh - 24px);
  }
  .modal-heading h2 {
    font-size: 27px;
  }
  .modal-subtitle {
    font-size: 11px;
  }
  .match-fields {
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
  }
  form select {
    padding: 10px 6px;
  }
  form input:not([type="checkbox"]),
  form select,
  form textarea,
  .search input,
  .filter-label select,
  .versus-players select {
    font-size: 16px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions .danger {
    flex-basis: 100%;
    text-align: left;
  }
  .profile-summary + .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .demo-banner {
    font-size: 9px;
    padding: 10px;
    align-items: flex-start;
  }
  .demo-banner > span {
    max-width: 60%;
  }
  .demo-banner .text-button {
    font-size: 9px;
    padding: 0;
    min-height: 30px;
  }
  #toast {
    left: 50%;
    width: max-content;
    max-width: calc(100% - 40px);
    bottom: 18px;
  }
  .loading {
    padding: 60px 10px;
  }
}
.offline-page {
  max-width: 580px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
  padding: 32px 20px;
  text-align: center;
}
.offline-brand {
  font: 32px var(--serif);
}
.offline-note {
  font: italic 14px var(--serif);
  color: var(--muted);
}
@media (max-width: 360px) {
  nav a {
    padding-inline: 5px;
    font-size: 9px;
  }
  nav a span {
    display: none;
  }
  .hero img {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
