:root {
  --paper: #f6f3eb;
  --ink: #243c37;
  --muted: #7c8178;
  --line: #dcded2;
  --orange: #ce5234;
  --white: #fffdf8;
  --green: #315447;
  --serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
  font-size: 14px;
  line-height: 1.6;
  word-break: keep-all;
}
button,
input,
select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button {
  color: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--orange);
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  border: 0;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.7px;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.7px;
}
.wrap {
  width: min(1200px, calc(100% - 80px));
  margin-inline: auto;
}
.topline {
  background: var(--ink);
  color: #eae9dc;
  display: flex;
  justify-content: space-between;
  padding: 7px max(40px, calc((100vw - 1200px) / 2));
  font-size: 10px;
  letter-spacing: 1.2px;
}
.topline span:last-child {
  font-family: var(--serif);
  letter-spacing: 1.7px;
}
.header {
  display: flex;
  align-items: center;
  height: 106px;
  border-bottom: 1px solid var(--line);
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1.5px;
  line-height: 1.3;
}
.brand b {
  color: var(--orange);
}
.brand small {
  display: block;
  font-family: var(--serif);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: 6px;
}
.header nav {
  margin: auto;
  display: flex;
  gap: 34px;
  height: 100%;
  align-items: center;
}
.header nav a {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  font-size: 13px;
  color: #74786f;
  font-weight: 600;
}
.header nav a.active {
  color: var(--orange);
}
.header nav a.active:after {
  content: "";
  height: 3px;
  background: var(--orange);
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}
.guide-link {
  font-size: 12px;
  white-space: nowrap;
}
.guide-link span {
  margin-left: 18px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 58px 0 50px;
  position: relative;
}
.hero-copy {
  position: relative;
}
.eyebrow {
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 500;
}
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 1px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(36px, 4vw, 55px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -2.8px;
  margin: 20px 0;
}
.hero em {
  color: var(--orange);
  font-style: normal;
}
.intro {
  color: #7a7e73;
  line-height: 1.9;
  font-size: 13px;
}
.text-link {
  display: inline-flex;
  gap: 40px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid #8f9b8c;
  padding: 0 0 7px;
  margin-top: 23px;
}
.text-link span {
  font-size: 18px;
}
.hero-stamp {
  position: absolute;
  bottom: 12px;
  right: 4px;
  transform: rotate(-11deg);
  font-size: 11px;
  line-height: 1.8;
  border: 1px solid #a7ad9a;
  color: #82927a;
  border-radius: 50%;
  width: 91px;
  height: 91px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.stadium {
  background: #244439;
  border-radius: 150px 150px 5px 5px;
  color: #d3d6bb;
  position: relative;
  overflow: hidden;
  box-shadow: 7px 7px 0 #e4e4d8;
  padding: 21px 25px 16px;
}
.stadium:after {
  content: "";
  inset: 9px;
  position: absolute;
  border: 1px solid #b4c0a329;
  border-radius: 150px 150px 2px 2px;
  pointer-events: none;
}
.stadium-top,
.stadium-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1.3px;
  font-family: var(--serif);
}
.stadium-top {
  margin-top: 16px;
  padding: 0 55px;
}
.stadium-top span:last-child {
  display: none;
}
.stadium svg {
  display: block;
  width: 100%;
  max-height: 315px;
  position: relative;
  margin-top: 10px;
}
.stadium-bottom {
  border-top: 1px solid #b4c0a330;
  padding-top: 12px;
  margin-top: 6px;
  font-size: 7px;
}
.stadium-bottom span:last-child {
  color: #e5a878;
}
.season-strip {
  border-block: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 0;
  margin-bottom: 28px;
}
.season-strip > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.season-strip b {
  font-size: 12px;
}
.season-label {
  color: var(--muted);
  font-family: var(--serif);
  letter-spacing: 1px;
  font-size: 10px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.season-progress {
  font-size: 10px;
  color: var(--muted);
}
.season-progress b {
  font-size: 10px;
  font-weight: 400;
}
.season-progress progress {
  appearance: none;
  width: 100px;
  height: 3px;
  border: 0;
}
.season-progress progress::-webkit-progress-bar {
  background: #dddfd3;
}
.season-progress progress::-webkit-progress-value {
  background: var(--green);
}
.season-progress progress::-moz-progress-bar {
  background: var(--green);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  min-width: 0;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}
.section-top h2 {
  font-size: 15px;
}
.section-top h2 small {
  color: #93968c;
  font-family: var(--serif);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-left: 11px;
}
.section-top > .eyebrow {
  color: var(--muted);
  font-size: 8px;
}
.small-link {
  font-size: 10px;
  color: #737e70;
  white-space: nowrap;
}
.badge {
  height: 56px;
  width: 56px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f2e4db;
  color: #c75837;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid #c7583730;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 4px #ffffff66;
}
.club-1 {
  color: #287d91;
  background: #e3eef0;
  border-color: #287d912f;
}
.club-2 {
  color: #516a50;
  background: #e7ece0;
  border-color: #516a502f;
}
.club-3 {
  color: #ad5849;
  background: #f0e3de;
  border-color: #ad58492f;
}
.club-4 {
  color: #577969;
  background: #e3ede5;
  border-color: #5779692f;
}
.club-5 {
  color: #867049;
  background: #efeade;
  border-color: #8670492f;
}
.badge.large {
  height: 72px;
  width: 72px;
  font-size: 43px;
}
.badge.tiny {
  width: 26px;
  height: 26px;
  font-size: 15px;
  box-shadow: none;
  border-radius: 50%;
}
.matchup {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  text-align: center;
  padding: 27px 0 22px;
}
.matchup > div:not(.versus) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 110px;
}
.matchup .eyebrow {
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 5px;
  color: var(--muted);
}
.matchup h3 {
  font-size: 15px;
}
.matchup small {
  font-size: 10px;
  color: var(--muted);
}
.versus span {
  font-family: var(--serif);
  font-size: 25px;
  font-style: italic;
  color: #a3a796;
}
.versus small {
  display: block;
  margin-top: 5px;
}
.match-note {
  background: #f4f4ed;
  display: flex;
  justify-content: space-between;
  padding: 11px 14px;
  color: #7a8072;
  font-size: 10px;
  margin-bottom: 14px;
}
.primary {
  background: var(--orange);
  color: #fffaf0;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  padding: 13px 20px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 650;
  transition: background 0.15s;
}
.primary:hover {
  background: #b94429;
}
.primary span {
  font-size: 18px;
  font-weight: 400;
}
.full {
  width: 100%;
}
.secondary {
  background: transparent;
  border: 1px solid #bfc6b7;
  padding: 10px 17px;
  border-radius: 3px;
  font-size: 12px;
}
.secondary:hover {
  background: #eaece2;
}
.summary-club {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 25px 0;
}
.summary-club .eyebrow {
  font-family: inherit;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.2px;
  margin-bottom: 3px;
}
.summary-club h3 {
  font-size: 21px;
}
.rank-big {
  font-family: var(--serif);
  font-size: 43px;
  margin-left: auto;
  line-height: 1;
}
.rank-big small {
  font-family: inherit;
  font-size: 13px;
  margin-left: 3px;
  color: var(--muted);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 2px 0 20px;
}
.stats-grid > div {
  border-right: 1px solid var(--line);
  padding-left: 23px;
}
.stats-grid > div:first-child {
  padding-left: 0;
}
.stats-grid > div:last-child {
  border: 0;
}
.stats-grid b {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  display: block;
  line-height: 1.2;
}
.stats-grid i {
  font-size: 11px;
  font-style: normal;
  font-family: inherit;
  margin-left: 2px;
}
.stats-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 9px;
}
.memo {
  background: #edf0e6;
  border-radius: 2px;
  position: relative;
  padding: 17px 19px;
  margin-top: 4px;
}
.memo > span:first-child {
  font-family: var(--serif);
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #6c8062;
}
.memo p {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 7px;
  color: #63705d;
}
.memo-ball {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 28px;
  opacity: 0.45;
  filter: grayscale(1);
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.bottom-grid .panel {
  padding-bottom: 12px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 11px;
  text-align: center;
}
th {
  font-size: 9px;
  letter-spacing: 0.2px;
  font-weight: 500;
  color: #8c9185;
  padding: 13px 9px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 13px 9px;
  border-bottom: 1px solid #eceee5;
  font-variant-numeric: tabular-nums;
}
tbody tr:last-child td {
  border: 0;
}
.left {
  text-align: left;
}
.club-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.my-row {
  background: #f4eee1;
}
.my-tag {
  font-family: var(--serif);
  font-size: 7px;
  color: var(--orange);
  margin-left: 4px;
}
.rank {
  font-family: var(--serif);
  font-size: 14px;
  color: #8a8e80;
}
.my-row .rank {
  color: var(--orange);
}
.empty-state {
  min-height: 283px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.outline-ball {
  font-size: 32px;
  opacity: 0.4;
  filter: grayscale(1);
  margin-bottom: 16px;
}
.empty-state b {
  font-size: 12px;
  font-weight: 500;
}
.empty-state p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 9px;
}
.recent-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid #eceee5;
  width: 100%;
  background: none;
  text-align: left;
}
.recent-row:last-child {
  border: 0;
}
.recent-row > span:last-child {
  color: #8b9684;
}
.result {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
.win {
  background: #e3ecdc;
  color: #4b7147;
}
.loss {
  background: #f5e6df;
  color: #b05b41;
}
.draw {
  background: #eeeade;
  color: #8a7953;
}
.recent-row small {
  font-size: 8px;
  color: var(--muted);
  display: block;
}
.recent-row b {
  font-size: 11px;
  font-weight: 500;
}
.recent-row strong {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 20px;
}
.recent-row i {
  font-style: normal;
  color: #b0b3a5;
  font-size: 12px;
  padding: 0 7px;
}
.guide-banner {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #ebece1;
  border-block: 1px solid #dfe2d4;
  padding: 25px 29px;
  margin-top: 28px;
}
.guide-number {
  font-family: var(--serif);
  font-style: italic;
  color: #96a286;
  font-size: 32px;
}
.guide-banner b {
  font-size: 13px;
}
.guide-banner p {
  font-size: 11px;
  color: #7f8775;
  margin-top: 4px;
}
.arrow {
  margin-left: auto;
  font-size: 27px;
  color: #768969;
}
.footer {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-block: 33px;
  margin-top: 45px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #93968a;
}
.footer-brand {
  font-size: 13px;
  color: #71806c;
  font-weight: 650;
}
.footer-brand span {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: #93968a;
  margin-top: 3px;
}
.footer p {
  margin-left: auto;
}
.footer > a {
  font-size: 10px;
}
.page-heading {
  padding: 45px 0 30px;
}
.page-heading .eyebrow {
  color: var(--orange);
  font-size: 10px;
}
.page-heading h1 {
  font-size: 34px;
  letter-spacing: -1.7px;
  margin: 10px 0;
}
.page-heading > p:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.team-identity {
  display: flex;
  gap: 25px;
  align-items: center;
}
.team-identity > div {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}
.team-identity h2 {
  font-size: 16px;
}
.team-identity p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.team-identity label {
  width: 180px;
}
label {
  font-size: 11px;
  color: #6c7766;
}
input:not([type="radio"]),
select {
  border: 1px solid #d9dfd1;
  border-radius: 3px;
  background: #fffef9;
  padding: 10px 11px;
  width: 100%;
  color: var(--ink);
  margin-top: 6px;
  font-size: 12px;
}
input[readonly] {
  background: #eff0e8;
  color: #7a8472;
}
.roster-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 15px;
}
.roster-heading h2 {
  font-size: 17px;
}
.roster-heading h2 span {
  font-family: var(--serif);
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 2px;
  margin-left: 10px;
}
#budget {
  font-size: 12px;
  color: #637854;
}
.over-budget {
  color: var(--orange) !important;
}
.roster {
  padding: 0 17px;
}
.roster table {
  table-layout: fixed;
}
.roster th:nth-child(1) {
  width: 65px;
}
.roster th:nth-child(2) {
  width: 170px;
}
.roster th:nth-child(3) {
  width: 85px;
}
.roster th:last-child {
  width: 100px;
}
.roster input {
  margin: 0;
  text-align: center;
}
.roster td.left input {
  text-align: left;
}
.roster .skill-input {
  width: 64px;
  font-size: 14px;
  font-family: var(--serif);
}
.roster td {
  padding: 10px 7px;
}
.position {
  font-size: 10px;
  color: var(--muted);
}
.position-number {
  font-family: var(--serif);
  font-size: 17px;
  color: #8a947c;
}
.reorder {
  display: flex;
  justify-content: center;
  gap: 5px;
}
.reorder button {
  background: #edf0e6;
  border: 1px solid #dde2d4;
  border-radius: 2px;
  height: 28px;
  width: 28px;
}
.muted {
  font-size: 10px;
  color: var(--muted);
}
.pitcher-label {
  border-top: 1px solid var(--line);
  background: #f2f3eb;
  padding: 14px;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 1px;
  margin: 5px -17px;
}
.pitcher-label span {
  font-family: inherit;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 10px;
  margin-left: 20px;
}
.team-bottom {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.strategy .eyebrow,
.camp .eyebrow {
  color: var(--orange);
  margin-bottom: 8px;
}
.strategy h2,
.camp h2 {
  font-size: 20px;
}
.strategy-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 25px 0;
}
.strategy-options label {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #e0e3d6;
  padding: 13px;
  border-radius: 3px;
  cursor: pointer;
}
.strategy-options label:has(:checked) {
  border-color: #7a8c6d;
  background: #f1f3e9;
}
.strategy-options input {
  accent-color: var(--green);
}
.strategy-options b {
  font-size: 12px;
  display: block;
  color: var(--ink);
}
.strategy-options small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.camp p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  margin: 13px 0;
}
.camp-count {
  font-family: var(--serif);
  font-size: 40px;
  display: block;
  margin: 14px 0;
  color: var(--orange);
}
.camp-count small {
  font-family: inherit;
  font-size: 12px;
  color: var(--muted);
}
.camp label {
  display: block;
  margin-top: 12px;
}
.camp button {
  margin-top: 20px;
  width: 100%;
}
.camp > small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.form-error {
  color: var(--orange);
  font-size: 12px;
  margin: 10px 0;
}
.schedule-panel {
  margin-top: 24px;
}
.fixture-list > div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 17px;
  padding: 20px;
  border-bottom: 1px solid #eceee5;
}
.fixture-list b {
  font-size: 13px;
  min-width: 120px;
}
.fixture-list b:first-of-type {
  text-align: right;
}
.fixture-list > div > span:not(.badge) {
  font: italic 16px var(--serif);
  color: var(--muted);
  padding-inline: 20px;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.schedule-panel > .hint {
  margin-top: 20px;
}
.record-tabs {
  display: flex;
  gap: 5px;
  margin: 0 0 15px;
}
.record-tabs button {
  background: transparent;
  padding: 10px 25px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.record-tabs .selected {
  background: var(--green);
  color: var(--paper);
  border-color: var(--green);
}
.records-notice {
  padding: 20px 0 5px;
  font-size: 12px;
  color: var(--muted);
}
.guide-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
  align-items: start;
}
.guide-body {
  padding: 35px;
}
.guide-body article {
  margin-bottom: 32px;
}
.guide-body article > span {
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--orange);
}
.guide-body h2 {
  font-size: 21px;
  margin: 9px 0 12px;
}
.guide-body p {
  font-size: 12px;
  line-height: 2;
  color: #78816f;
  margin-bottom: 10px;
}
.source-note {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.source-note b {
  font-size: 12px;
}
.source-note p {
  font-size: 11px;
  margin: 10px 0;
}
.source-note a {
  font-size: 11px;
  text-decoration: underline;
}
.guide-aside .eyebrow {
  color: var(--orange);
  margin-bottom: 10px;
}
.guide-aside h2 {
  font-size: 25px;
  line-height: 1.6;
  margin-bottom: 25px;
}
.guide-aside h3 {
  font-size: 14px;
}
.guide-aside p:not(.eyebrow) {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin: 12px 0;
}
.guide-aside .secondary {
  width: 100%;
  margin-top: 8px;
}
.danger {
  background: none;
  color: #b6533a;
  border-bottom: 1px solid #d8b09a;
  padding: 8px 0;
  margin-top: 12px;
  font-size: 11px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}
.season-end {
  text-align: center;
  padding: 20px 0;
}
.trophy {
  font-size: 40px;
  color: #b28a38;
}
.season-end p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
  margin: 5px 0;
}
.season-end h3 {
  font-size: 24px;
  color: var(--orange);
  margin-bottom: 9px;
}
.warning {
  padding: 15px;
  background: #f5e6d7;
  color: #8f432d;
  font-size: 12px;
  margin-top: 20px;
}
.warning button {
  background: transparent;
  text-decoration: underline;
  padding: 8px;
  color: inherit;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip:focus {
  display: block;
  padding: 10px;
  background: var(--orange);
  color: white;
}
.icon-button {
  background: #eef0e7;
  width: 32px;
  height: 32px;
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
}
dialog {
  width: min(850px, calc(100% - 32px));
  max-height: 90dvh;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  padding: 28px;
  box-shadow: 0 20px 80px #172e3b40;
}
dialog::backdrop {
  background: #122b29b3;
  backdrop-filter: blur(4px);
}
.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.match-header h2 {
  font-size: 23px;
  margin-top: 4px;
}
.match-header .eyebrow {
  color: var(--orange);
}
.live-score {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 22px 0;
}
.live-score > div {
  text-align: center;
}
.live-score h3 {
  font-size: 13px;
  margin-top: 8px;
}
.live-score > strong {
  font-family: var(--serif);
  font-size: 56px;
  white-space: nowrap;
}
.live-score > strong span {
  color: #aab19d;
  font-size: 35px;
  padding: 0 10px;
}
.scoreboard {
  background: #263f38;
  border-radius: 3px;
  color: var(--paper);
  padding: 7px;
}
.scoreboard th {
  color: #b2c0a7;
  border-color: #ffffff25;
}
.scoreboard td,
.scoreboard tbody th {
  border-bottom: 0;
}
.scoreboard th,
.scoreboard td {
  padding: 9px 7px;
  font-family: var(--serif);
}
.commentary {
  background: #fffdf8;
  border: 1px solid var(--line);
  height: 230px;
  overflow: auto;
  margin: 20px 0;
  padding: 16px 20px;
}
.commentary p {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 12px;
  line-height: 2.2;
}
.commentary p > span {
  font-size: 9px;
  color: var(--muted);
  min-width: 42px;
  white-space: nowrap;
}
.commentary .event-homer {
  color: var(--orange);
  font-weight: 700;
}
.commentary .event-end {
  font-weight: 600;
  border-bottom: 1px dashed var(--line);
  padding: 9px 0;
  margin-bottom: 7px;
}
.match-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.match-actions > span {
  font-size: 10px;
  color: var(--muted);
  margin-right: auto;
  max-width: 260px;
}
.match-actions .primary {
  font-size: 12px;
  padding: 12px 18px;
}
.match-actions .secondary {
  font-size: 11px;
  padding: 12px;
}
.match-actions .primary span {
  font-size: 14px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: #263f38;
  color: var(--paper);
  border-radius: 4px;
  padding: 13px 22px;
  z-index: 10;
  font-size: 12px;
  box-shadow: 0 5px 30px #152e2520;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
  max-width: calc(100% - 32px);
  width: max-content;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1500px) {
  .hero {
    gap: 100px;
  }
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .topline {
    padding-inline: 24px;
  }
  .header {
    gap: 20px;
  }
  .header nav {
    gap: 22px;
  }
  .guide-link {
    display: none;
  }
  .hero {
    gap: 30px;
  }
  .hero-stamp {
    display: none;
  }
  .hero h1 {
    font-size: 43px;
  }
  .stadium {
    padding-inline: 13px;
  }
  .stadium-top {
    padding: 0 35px;
    font-size: 7px;
  }
  .dashboard-grid {
    gap: 18px;
    grid-template-columns: 1fr 1fr;
  }
  .panel {
    padding: 20px;
  }
  .matchup {
    gap: 18px;
  }
  .matchup > div:not(.versus) {
    min-width: 95px;
  }
  .match-note {
    font-size: 9px;
    padding: 10px;
  }
  .bottom-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
  }
  .section-top h2 small {
    display: none;
  }
  .summary-club h3 {
    font-size: 18px;
  }
  .stats-grid > div {
    padding-left: 15px;
  }
  .stats-grid b {
    font-size: 23px;
  }
  .memo-ball {
    display: none;
  }
  .club-cell {
    font-size: 10px;
    gap: 5px;
  }
  th,
  td {
    padding-inline: 6px;
  }
  .team-identity {
    flex-wrap: wrap;
  }
  .team-identity > div {
    flex-basis: 100%;
  }
  .team-identity label {
    flex: 1;
  }
  .roster table {
    min-width: 750px;
  }
  .guide-layout {
    grid-template-columns: 1.8fr 1fr;
  }
  .guide-aside h2 {
    font-size: 22px;
  }
  .footer {
    gap: 20px;
  }
  .footer p {
    font-size: 8px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .topline {
    padding: 6px 18px;
    font-size: 9px;
  }
  .topline span:last-child {
    font-size: 7px;
    letter-spacing: 0.8px;
  }
  .header {
    height: auto;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    padding-top: 21px;
  }
  .brand {
    font-size: 23px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .brand small {
    font-size: 7px;
    margin-top: 4px;
  }
  .header nav {
    width: 100%;
    justify-content: space-between;
    margin-top: 12px;
    gap: 10px;
    height: 50px;
  }
  .header nav a {
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 35px 0 28px;
    gap: 30px;
  }
  .hero h1 {
    font-size: 42px;
    letter-spacing: -2px;
    margin: 16px 0;
  }
  .hero .eyebrow {
    font-size: 10px;
  }
  .intro {
    font-size: 12px;
  }
  .hero-copy {
    padding-right: 0;
  }
  .text-link {
    font-size: 11px;
    margin-top: 18px;
  }
  .stadium {
    border-radius: 110px 110px 4px 4px;
    padding: 10px 20px 14px;
    max-width: 460px;
    width: 100%;
    margin: auto;
    box-shadow: 4px 4px 0 #e4e4d8;
  }
  .stadium:after {
    border-radius: 110px 110px 2px 2px;
  }
  .stadium svg {
    max-height: 245px;
    margin-top: 4px;
  }
  .stadium-top {
    justify-content: center;
    margin-top: 18px;
  }
  .stadium-bottom {
    font-size: 6px;
  }
  .season-strip {
    padding: 15px 0;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .season-strip b {
    font-size: 11px;
  }
  .season-strip > div {
    gap: 8px;
  }
  .season-label {
    font-size: 8px;
    padding-left: 8px;
  }
  .season-progress {
    margin-left: auto;
  }
  .season-progress progress {
    width: 55px;
  }
  .season-progress b {
    display: none;
  }
  .dashboard-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .panel {
    padding: 20px;
  }
  .section-top {
    padding-bottom: 15px;
  }
  .section-top h2 {
    font-size: 14px;
  }
  .section-top h2 small {
    display: inline;
    font-size: 7px;
  }
  .matchup {
    gap: 30px;
    padding: 23px 0;
  }
  .badge.large {
    height: 63px;
    width: 63px;
    font-size: 38px;
  }
  .matchup h3 {
    font-size: 14px;
  }
  .match-note {
    font-size: 9px;
  }
  .primary {
    padding: 13px 18px;
  }
  .summary-club {
    padding: 22px 0;
  }
  .summary-club h3 {
    font-size: 20px;
  }
  .stats-grid b {
    font-size: 28px;
  }
  .stats-grid > div {
    padding-left: 22px;
  }
  .memo {
    padding: 16px 18px;
  }
  .memo-ball {
    display: block;
  }
  .bottom-grid {
    margin-top: 18px;
  }
  .empty-state {
    min-height: 220px;
  }
  .guide-banner {
    padding: 22px 18px;
    gap: 17px;
    margin-top: 20px;
  }
  .guide-banner b {
    font-size: 12px;
  }
  .guide-banner p {
    font-size: 10px;
    line-height: 1.8;
    max-width: 220px;
  }
  .guide-number {
    font-size: 26px;
  }
  .arrow {
    font-size: 23px;
  }
  .footer {
    flex-wrap: wrap;
    margin-top: 32px;
    padding-block: 25px;
    gap: 14px;
  }
  .footer-brand {
    width: 100%;
  }
  .footer-brand span {
    display: inline;
    margin-left: 12px;
    font-size: 8px;
  }
  .footer p {
    margin-left: 0;
    font-size: 8px;
  }
  .footer > a {
    margin-left: auto;
    font-size: 9px;
  }
  .page-heading {
    padding: 32px 0 23px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading > p:last-child {
    font-size: 11px;
  }
  .team-identity {
    gap: 15px;
  }
  .team-identity p {
    font-size: 9px;
  }
  .team-identity .badge {
    width: 48px;
    height: 48px;
    font-size: 28px;
  }
  .team-identity label {
    min-width: 0;
  }
  .roster-heading {
    align-items: flex-start;
    gap: 15px;
    margin-top: 25px;
  }
  #budget {
    font-size: 10px;
  }
  .roster-heading h2 {
    font-size: 14px;
    white-space: nowrap;
  }
  .roster-heading h2 span {
    font-size: 8px;
    margin-left: 5px;
  }
  .roster {
    padding: 0 10px;
  }
  .pitcher-label {
    margin-inline: -10px;
    font-size: 9px;
    letter-spacing: 0.3px;
  }
  .pitcher-label span {
    display: block;
    margin-left: 0;
    font-size: 9px;
    margin-top: 5px;
  }
  .team-bottom {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
  }
  .strategy h2,
  .camp h2 {
    font-size: 19px;
  }
  .camp-count {
    font-size: 34px;
  }
  .fixture-list > div {
    gap: 8px;
    padding: 17px 0;
  }
  .fixture-list b {
    font-size: 11px;
    min-width: 82px;
  }
  .fixture-list > div > span:not(.badge) {
    padding-inline: 3px;
    font-size: 13px;
  }
  .fixture-list .tiny {
    width: 23px;
    height: 23px;
    font-size: 13px;
  }
  .hint {
    font-size: 10px;
  }
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .guide-body {
    padding: 24px;
  }
  .guide-body h2 {
    font-size: 19px;
  }
  .guide-body p {
    font-size: 11px;
  }
  .guide-body article > span {
    font-size: 8px;
  }
  .guide-aside h2 {
    font-size: 24px;
  }
  dialog {
    padding: 19px;
    max-height: 93dvh;
  }
  .match-header h2 {
    font-size: 21px;
  }
  .match-header .eyebrow {
    font-size: 8px;
  }
  .live-score {
    gap: 20px;
    padding: 20px 0;
  }
  .live-score .badge {
    width: 45px;
    height: 45px;
    font-size: 27px;
  }
  .live-score h3 {
    font-size: 11px;
    max-width: 85px;
  }
  .live-score > strong {
    font-size: 40px;
  }
  .live-score > strong span {
    font-size: 25px;
    padding: 0 3px;
  }
  .scoreboard table {
    min-width: 430px;
  }
  .commentary {
    padding: 12px;
    height: 240px;
  }
  .commentary p {
    font-size: 11px;
    gap: 10px;
  }
  .commentary p > span {
    font-size: 8px;
    min-width: 35px;
  }
  .match-actions {
    flex-wrap: wrap;
  }
  .match-actions > span {
    flex-basis: 100%;
    max-width: 100%;
    font-size: 9px;
    margin-bottom: 4px;
  }
  .match-actions .primary,
  .match-actions .secondary {
    font-size: 11px;
  }
  .match-actions .primary {
    gap: 15px;
  }
  .warning {
    font-size: 11px;
  }
  #toast {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.restore-label {
  display: block;
  margin-top: 15px;
  font-size: 11px;
}
.restore-label input {
  font-size: 10px !important;
}
/* Contain intrinsic grid/flex widths while preserving component table scrolling. */
main,
form,
.hero > *,
.matchup > *,
.summary-club > div,
.team-identity > div,
.team-identity label,
.camp select,
.live-score > div {
  min-width: 0;
}
main {
  overflow-wrap: anywhere;
}
.table-scroll {
  max-width: 100%;
  min-width: 0;
}
.matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
}
.matchup > div:not(.versus) {
  min-width: 0;
}
.summary-club h3,
.summary-club .eyebrow,
.matchup h3,
.live-score h3,
.fixture-list b,
.recent-row b {
  overflow-wrap: anywhere;
}
.fixture-list b {
  min-width: 0;
  flex: 1;
}
.fixture-list > div {
  min-width: 0;
}
.fixture-list > div > span:not(.badge) {
  flex-shrink: 0;
}
.match-note,
.section-top {
  flex-wrap: wrap;
}
.condition {
  display: block;
  font-size: 10px;
  color: var(--green);
}
.record-filters,
.tactic-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 15px 0;
}
.record-filters label,
.tactic-controls label {
  min-width: 0;
  flex: 1;
}
.reorder button {
  width: 44px;
  height: 44px;
}
.icon-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.live-score {
  gap: 12px;
}
.live-score > div {
  flex: 1;
}
.live-score h3 {
  max-width: 100%;
}
.recent-row > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.recent-row > strong,
.recent-row .result {
  flex-shrink: 0;
}
@media (max-width: 430px) {
  .topline {
    flex-wrap: wrap;
    gap: 3px;
  }
  .stats-grid > div {
    padding-left: 10px;
  }
  .stats-grid b {
    font-size: 23px;
  }
  .team-identity label {
    flex-basis: 100%;
    width: 100%;
  }
  .camp select {
    max-width: 100%;
  }
  .guide-banner {
    gap: 10px;
  }
  .guide-number {
    flex-shrink: 0;
  }
  .guide-banner > div {
    min-width: 0;
  }
  .record-tabs button {
    flex: 1;
    padding-inline: 12px;
  }
  .live-score > strong {
    font-size: 32px;
  }
  .commentary p {
    overflow-wrap: anywhere;
  }
  .match-actions button {
    min-height: 44px;
  }
}

.roster th:last-child {
  width: 120px;
}
/* Route focus must not leave the browser's default ring around the whole page. */
main:focus {
  outline: none;
}
main:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
.online-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.online-grid form {
  display: grid;
  gap: 16px;
  margin-block: 20px;
}
.online-grid label {
  display: block;
  min-width: 0;
}
.online-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.online-session,
.online-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.online-banner {
  background: #e9eee1;
  padding: 12px 16px;
  margin-top: 18px;
  font-size: 12px;
}
.online-banner a {
  text-decoration: underline;
}
.room-choice {
  display: block;
  width: 100%;
  margin-top: 10px;
  text-align: left;
}
.recovery-note {
  margin-bottom: 20px;
  border-color: var(--orange);
}
.recovery-note code,
.online-grid code,
.schedule-panel code {
  display: inline-block;
  overflow-wrap: anywhere;
  max-width: 100%;
  font-size: 16px;
  padding: 8px;
  background: #e9eee1;
}
.recovery-note button {
  display: block;
  margin-top: 10px;
}
@media (max-width: 700px) {
  .online-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .header nav {
    gap: 5px;
  }
  .header nav a {
    font-size: 11px;
  }
}

.account-link {
  flex-shrink: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.home-account {
  margin: 22px 0;
}
.home-account p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
@media (max-width: 1000px) {
  .header {
    gap: 16px;
  }
}
@media (max-width: 700px) {
  .header .account-link {
    margin-top: 16px;
    min-height: 44px;
  }
  .header {
    gap: 0;
  }
}
.weekly-room-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin-top: 20px;
}
.weekly-choice {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
}
.weekly-choice p {
  font-size: 13px;
  line-height: 1.7;
}
.coach-toggle { display:flex; align-items:center; gap:10px; margin:16px 0; }
.coach-toggle input,.coach-queue input[type=checkbox] { width:20px; height:20px; flex-shrink:0; }
.coach-queue { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr)); gap:12px; padding:16px 0; border-top:1px solid var(--line); }
.coach-preview { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
.coach-awards,.coach-log { padding-left:20px; overflow-wrap:anywhere; }
.coach-awards li,.coach-log li { margin:16px 0; }
.coach-log small { display:block; color:var(--muted); margin-top:6px; }
#coach-settings form { margin-top:24px; }
#coach-settings form h3 { margin-top:28px; }
#coach-settings form>label:not(.coach-toggle) { max-width:420px; }

/* Fixed catalog classes keep custom HTML, CSS and image URLs out of club styles. */
.club-style { display:inline-block; padding:8px 12px; border:1px solid currentColor; border-radius:4px; font-weight:700; }
.uniform-classic { background:#f3e9d6!important; color:#654421!important; }
.uniform-night { background:#263c65!important; color:#fff!important; }
.uniform-forest { background:#286244!important; color:#fff!important; }
.uniform-power { background:#a23724!important; color:#fff!important; }
.uniform-running { background:#795514!important; color:#fff!important; }
.uniform-defense { background:#365c74!important; color:#fff!important; }
.club-title { display:block; font-size:10px; white-space:normal; }
.club-catalog,.club-comparison { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:12px; margin:18px 0; }
.club-catalog p { margin:8px 0; font-size:12px; }
.board-night { background:#e1e8f2; }
.board-forest { background:#e0eee3; }
.board-power { background:#f5e0d9; }
.board-running { background:#f2e7cc; }
.board-defense { background:#dfeaf0; }
#club-room [role=tab] { flex:1 1 120px; }
#online-lab fieldset { min-width:0; margin:0; }
#lab-progress { padding:12px 0; overflow-wrap:anywhere; }
