/* Japanese poster palette, shared by the portal and tournament desk. */
:root {
  --ink: #191817;
  --muted: #706a62;
  --line: #d6cfc3;
  --bg: #f4f0e7;
  --green: #c12d20;
  --lime: #ead2bb;
  --paper: #fffcf5;
  --red: #c12d20;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
body:not(.scoreboard-only) > header {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  position: relative;
}
body:not(.scoreboard-only) > header:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 96px;
  height: 2px;
  background: var(--red);
}
.brand {
  font-size: 23px;
  letter-spacing: -1.1px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}
.brand span {
  color: var(--red);
  font-weight: 900;
}
button,
.button {
  border-radius: 3px;
  font-weight: 700;
  transition:
    background 0.15s,
    border-color 0.15s;
  line-height: 1.3;
}
button:hover,
.button:hover {
  border-color: var(--ink);
  background: #eee8dc;
}
button.primary,
.button.primary {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
button.primary:hover,
.button.primary:hover {
  background: #a02419;
  border-color: #a02419;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #191817;
  outline-offset: 4px;
}
button:disabled {
  cursor: default;
}
a {
  color: #a3241a;
}
.eyebrow {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
}
h1 {
  font-weight: 900;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -2px;
  line-height: 1.05;
}
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.5px;
}
.top {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 28px;
}
.top p {
  max-width: 620px;
  margin-bottom: 0;
}
.card,
.stat {
  border-radius: 3px;
  background: var(--paper);
  box-shadow: none;
  border-color: var(--line);
}
.card {
  border-top: 3px solid var(--ink);
}
.stat {
  border-top: 3px solid var(--red);
}
.stat strong {
  font-size: 38px;
  letter-spacing: -1.5px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
input,
select,
textarea {
  background: var(--paper);
  border-radius: 2px;
  border-color: #b9b0a3;
}
.tag,
.badge,
.demo {
  background: #e9e3d7;
  color: #544c43;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.7px;
  font-size: 10px;
}
.tag.pending,
.badge.pending {
  background: #f9dfb7;
  color: #63430b;
}
.notice {
  background: #eee4d4;
  border-color: #d6c3a6;
  border-left: 3px solid var(--red);
  border-radius: 2px;
}
.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  margin-top: 36px;
}
.event-meta {
  line-height: 1.8;
}
body:not(.scoreboard-only) aside {
  background: #ebe5da;
  border-right-color: var(--line);
}
nav button {
  border-radius: 2px;
  font-size: 13px;
}
nav button.active {
  background: var(--ink);
  color: var(--paper);
}
nav button:hover {
  background: #dcd3c3;
}
nav button.active:hover {
  background: var(--ink);
}
aside p {
  font-size: 10px;
  font-weight: 800;
  color: #62584b;
}
.court {
  border-top-color: var(--red);
}
.fighter.red {
  border-left-color: var(--red);
}
.fighter.white {
  border-left-color: #bbb3a5;
}
.avatar {
  background: #eee6d8;
}
table {
  font-variant-numeric: tabular-nums;
}
th {
  background: #eee8dc;
  color: #5a5348;
  font-size: 10px;
  border-bottom: 1px solid var(--ink);
  padding-top: 13px;
  padding-bottom: 13px;
}
td {
  border-color: #ddd5c8;
}
tbody tr:hover {
  background: #f4eee2;
}
.clock-strip {
  background: #eee8dc;
  border-radius: 2px;
  border-left: 3px solid var(--red);
}
.clock-strip strong {
  color: var(--ink);
}
.toast,
#notice:not(:empty) {
  background: var(--ink);
  border-radius: 3px;
  border-left: 4px solid var(--red);
}
/* The entrance is a poster; the desk keeps quieter paper surfaces. */
.hero {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 3px;
  position: relative;
  padding: 42px 40px 30px;
  min-height: 370px;
  overflow: hidden;
  margin-bottom: 24px;
}
.hero:after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 9px;
  height: 100%;
  background: var(--red);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 55%;
  max-width: 590px;
}
.hero .eyebrow {
  color: var(--red);
}
.hero h1 {
  font-size: clamp(48px, 6.4vw, 83px);
  line-height: 0.95;
  letter-spacing: -4px;
  text-transform: uppercase;
  margin: 27px 0 23px;
  font-weight: 900;
}
.hero h1 span {
  color: var(--red);
}
.hero p {
  color: #655d52;
  max-width: 410px;
  font-size: 15px;
  line-height: 1.7;
}
.hero-art {
  position: absolute;
  right: -5%;
  top: 0;
  width: 59%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 29px;
  color: #766a58;
}
.role {
  min-height: 245px;
  border-top: 0;
  padding: 28px 30px 30px;
  position: relative;
  overflow: hidden;
}
.role:before {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  background: var(--red);
  margin-bottom: 20px;
}
.role h2 {
  font-size: 28px;
  letter-spacing: -1px;
  margin-top: 0;
}
.role-symbol {
  position: absolute;
  right: 23px;
  top: 20px;
  font-size: 60px;
  font-weight: 900;
  line-height: 1;
  color: #d4cbbd;
  letter-spacing: -3px;
}
.role p {
  max-width: 80%;
  font-size: 14px;
}
.role .actions {
  margin-top: 22px;
}
.role > .primary {
  margin-top: 10px;
}
.profile-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.legacy {
  border-top: 1px dashed var(--line);
}
/* Preserve the familiar red / white court display. */
.arena {
  border-radius: 3px;
  background: #151515;
}
.arena-top,
.arena-bottom {
  background: #151515;
}
.arena-clock {
  color: #fff3d1;
}
.arena-side.red-side {
  background: #b52a25;
}
.arena-side.white-side {
  background: #faf7ee;
  color: #171717;
}
.arena-mark {
  border-radius: 50%;
}
.display-tools {
  background: #24211e;
}
.display-tools button:hover {
  background: #454039;
}
body.scoreboard-only .arena {
  border-radius: 0;
}
body.scoreboard-only .display-tools button:focus-visible {
  outline-color: #fff3d1;
}
@media (min-width: 1100px) {
  body:not(.scoreboard-only) main {
    padding-top: 44px;
  }
  .layout aside {
    width: 225px;
  }
}
@media (max-width: 750px) {
  .brand {
    font-size: 20px;
  }
  .hero {
    min-height: 340px;
    padding: 30px 24px;
  }
  .hero-copy {
    width: 65%;
  }
  .hero h1 {
    font-size: 47px;
    letter-spacing: -2.4px;
  }
  .hero p {
    font-size: 13px;
    max-width: 230px;
  }
  .hero-art {
    width: 64%;
    right: -15%;
    opacity: 0.55;
  }
  .hero-foot {
    font-size: 8px;
    letter-spacing: 1px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .role {
    padding: 24px;
  }
  .role-symbol {
    font-size: 48px;
  }
  .role p {
    max-width: 85%;
  }
  .role h2 {
    font-size: 27px;
  }
  .top h1 {
    letter-spacing: -1px;
  }
  .stat strong {
    font-size: 29px;
  }
  .top {
    padding-bottom: 18px;
  }
  .grid {
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button,
  .button {
    transition: none;
  }
}
/* Compact desk: warm paper, light rules and restrained red accents. */
body:not(.scoreboard-only) {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  background: #f7f5f0;
}
body:not(.scoreboard-only) > header {
  height: 60px;
  min-height: 60px;
  padding: 12px 26px;
  border-bottom: 1px solid var(--line);
}
body:not(.scoreboard-only) > header:after {
  display: none;
}
body:not(.scoreboard-only) .brand {
  font-size: 20px;
  letter-spacing: -0.7px;
}
body:not(.scoreboard-only) .layout {
  min-height: calc(100vh - 60px);
}
body:not(.scoreboard-only) aside {
  width: 188px;
  padding: 22px 12px;
  background: transparent;
}
body:not(.scoreboard-only) aside p {
  margin: 0 12px 12px;
  letter-spacing: 1.5px;
}
body:not(.scoreboard-only) nav button {
  padding: 9px 12px;
  margin: 3px 0;
  font-size: 12px;
  font-weight: 500;
  border-radius: 5px;
}
body:not(.scoreboard-only) nav button.active {
  background: #ede9e1;
  color: var(--ink);
  font-weight: 700;
}
body:not(.scoreboard-only) main {
  max-width: 1320px;
  padding: 26px 30px;
}
body:not(.scoreboard-only) h1 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -1px;
  font-weight: 700;
  margin: 5px 0 7px;
}
body:not(.scoreboard-only) h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  font-weight: 650;
  margin-bottom: 12px;
}
body:not(.scoreboard-only) h3 {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 650;
}
body:not(.scoreboard-only) p {
  line-height: 1.5;
}
body:not(.scoreboard-only) .top {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom-color: var(--line);
  gap: 16px;
}
body:not(.scoreboard-only) .top .muted {
  font-size: 13px;
  max-width: 570px;
}
body:not(.scoreboard-only) .eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
}
body:not(.scoreboard-only) .grid {
  gap: 14px;
}
body:not(.scoreboard-only) .card,
body:not(.scoreboard-only) .stat {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 17px;
  background: #fffcf7;
}
body:not(.scoreboard-only) .stats {
  gap: 10px;
  margin-bottom: 18px;
}
body:not(.scoreboard-only) .stat {
  padding: 13px 16px;
}
body:not(.scoreboard-only) .stat .muted {
  font-size: 12px;
}
body:not(.scoreboard-only) .stat strong {
  font-size: 27px;
  letter-spacing: -0.8px;
  margin-top: 3px;
  font-weight: 650;
}
body:not(.scoreboard-only) button,
body:not(.scoreboard-only) .button {
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}
body:not(.scoreboard-only) button.small {
  padding: 5px 9px;
  font-size: 11px;
}
body:not(.scoreboard-only) .actions {
  gap: 6px;
}
body:not(.scoreboard-only) label {
  font-size: 12px;
  margin-bottom: 12px;
}
body:not(.scoreboard-only) input,
body:not(.scoreboard-only) select,
body:not(.scoreboard-only) textarea {
  padding: 8px 10px;
  margin-top: 5px;
  border-radius: 4px;
  font-size: 13px;
  border-color: var(--line);
}
body:not(.scoreboard-only) .notice {
  padding: 11px 14px;
  margin-bottom: 16px;
  border-left-width: 2px;
  background: #f2ece1;
  border-radius: 5px;
  font-size: 12px;
}
body:not(.scoreboard-only) td,
body:not(.scoreboard-only) th {
  padding: 10px 9px;
  font-size: 12px;
}
body:not(.scoreboard-only) th {
  font-size: 9px;
  background: #f4f0e8;
  border-bottom-color: var(--line);
  letter-spacing: 1px;
}
body:not(.scoreboard-only) .court {
  border-top: 2px solid var(--red);
}
body:not(.scoreboard-only) .court-head {
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
body:not(.scoreboard-only) .fighter {
  margin: 11px 0;
  gap: 10px;
}
body:not(.scoreboard-only) .fighter .score {
  font-size: 28px;
}
body:not(.scoreboard-only) .fighter .avatar {
  width: 34px;
  height: 34px;
  font-size: 19px;
}
body:not(.scoreboard-only) .badge,
body:not(.scoreboard-only) .tag,
body:not(.scoreboard-only) .demo {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: 4px;
}
body:not(.scoreboard-only) .scoring {
  padding-top: 12px;
}
body:not(.scoreboard-only) .clock-strip {
  padding: 9px;
  gap: 8px;
  border-radius: 4px;
}
body:not(.scoreboard-only) .clock-strip strong {
  font-size: 25px;
}
body:not(.scoreboard-only) footer {
  margin-top: 18px;
  font-size: 11px;
}
body:not(.scoreboard-only) .hero {
  min-height: 270px;
  padding: 28px;
  margin-bottom: 16px;
  border-color: var(--line);
  border-radius: 7px;
}
body:not(.scoreboard-only) .hero:after {
  width: 3px;
}
body:not(.scoreboard-only) .hero h1 {
  font-size: clamp(34px, 4.5vw, 58px);
  letter-spacing: -2px;
  margin: 20px 0 16px;
  font-weight: 800;
}
body:not(.scoreboard-only) .hero p {
  font-size: 13px;
}
body:not(.scoreboard-only) .role {
  min-height: 190px;
  padding: 20px;
}
body:not(.scoreboard-only) .role:before {
  height: 2px;
  width: 28px;
  margin-bottom: 14px;
}
body:not(.scoreboard-only) .role h2 {
  font-size: 22px;
}
body:not(.scoreboard-only) .role-symbol {
  font-size: 40px;
}
body:not(.scoreboard-only) .role p {
  font-size: 13px;
}
body:not(.scoreboard-only) .role .actions {
  margin-top: 14px;
}
body:not(.scoreboard-only) .section-title {
  margin-top: 24px;
  padding-top: 14px;
  font-size: 11px;
  border-top-color: var(--line);
}
/* Minimal connected bracket; each match has an explicit red / white side. */
.bracket-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 17px;
  margin-top: 18px;
  background: var(--paper);
}
.bracket-entry h2 {
  margin: 4px 0 !important;
}
.bracket-entry p {
  margin: 0;
  font-size: 12px;
}
.bracket-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.bracket-heading p {
  margin: 6px 0 0;
  font-size: 12px;
}
.bracket-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.bracket-tabs {
  display: flex;
  gap: 4px;
}
.bracket-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
}
.bracket-tabs button.selected {
  background: #ebe6dc;
  color: var(--ink);
}
.bracket-legend {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.bracket-legend > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.side-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid #b8b0a4;
  background: #fffdf8;
}
.aka .side-dot,
.red-dot {
  background: #c12d20;
  border-color: #c12d20;
}
.bracket-zoom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.bracket-zoom button {
  padding: 3px 8px !important;
  min-width: 28px;
}
.bracket-zoom span {
  min-width: 33px;
  text-align: center;
}
.bracket-scroll {
  overflow: auto;
  max-height: 72vh;
  padding: 0 16px 16px 0;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.bracket-scaled {
  position: relative;
  overflow: hidden;
}
.bracket-canvas {
  position: relative;
  transform-origin: top left;
}
.bracket-lines {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}
.bracket-lines path {
  fill: none;
  stroke: #d9d3c8;
  stroke-width: 1;
}
.bracket-lines path.confirmed-path {
  stroke: #a29a8c;
  stroke-width: 1.4;
}
.bracket-round-title {
  position: absolute;
  top: 0;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.1px;
}
.bracket-round-title span {
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
}
.bracket-position {
  position: absolute;
}
.bracket-match {
  height: 94px;
  background: #fffcf7;
  border: 1px solid #d9d3c8;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px #19181703;
}
.bracket-match.is-live {
  border-color: #c12d20;
}
.bracket-match-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 25px;
  padding: 0 10px;
  color: #786f63;
  font-size: 9px;
  border-bottom: 1px solid #eee9e0;
  background: #f9f6f0;
  font-variant-numeric: tabular-nums;
}
.match-state {
  font-size: 9px;
}
.live-state {
  color: #b1261b;
  display: flex;
  align-items: center;
  gap: 4px;
}
.live-state:before {
  content: '';
  width: 4px;
  height: 4px;
  background: #c12d20;
  border-radius: 50%;
}
.bracket-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  height: 33px;
  font-size: 12px;
  line-height: 1.2;
  color: #736b60;
}
.bracket-player + .bracket-player {
  border-top: 1px solid #eee9e0;
}
.bracket-player.advances {
  background: #f0ece3;
  color: #191817;
  font-weight: 700;
}
.bracket-nick {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bracket-score {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  width: 18px;
  text-align: right;
  color: #191817;
}
.advance-mark {
  width: 12px;
  color: #74634b;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}
.bracket-footnote {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.bracket-empty {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--muted);
  margin-bottom: 20px;
}
.bracket-empty h2 {
  margin-top: 12px;
  font-weight: 500 !important;
}
.bracket-empty p {
  font-size: 12px;
}
.pool-follow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.pool-follow {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffcf7;
  padding: 14px;
}
.pool-follow-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}
.pool-follow-heading h2 {
  margin: 0 !important;
  font-size: 14px !important;
}
.pool-follow-heading > span {
  font-size: 10px;
  color: var(--muted);
}
.pool-follow td,
.pool-follow th {
  padding: 7px 5px !important;
}
.pool-follow th:not(:first-child),
.pool-follow td:not(:first-child) {
  text-align: right;
}
.pool-follow summary {
  cursor: pointer;
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.pool-follow-matches {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.pool-qualified {
  font-size: 15px;
  color: #74634b;
  font-weight: 700;
}
body.bracket-popup > header,
body.bracket-popup aside,
body.bracket-popup footer {
  display: none;
}
body.bracket-popup .layout {
  min-height: 100vh;
}
body.bracket-popup main {
  max-width: none;
  padding: 28px 32px;
}
body.bracket-popup .bracket-scroll {
  max-height: calc(100vh - 200px);
}
@media (max-width: 850px) {
  body:not(.scoreboard-only) > header {
    padding: 10px 18px;
    height: auto;
  }
  body:not(.scoreboard-only) aside {
    width: auto;
    padding: 8px;
    background: transparent;
  }
  body:not(.scoreboard-only) nav button {
    padding: 8px 11px;
    margin: 0;
  }
  body:not(.scoreboard-only) main {
    padding: 20px 18px;
  }
  body:not(.scoreboard-only) h1 {
    font-size: 26px;
  }
  .bracket-heading,
  .bracket-entry {
    align-items: flex-start;
    flex-direction: column;
  }
  .bracket-toolbar {
    gap: 10px;
  }
  .bracket-legend {
    margin-left: 0;
  }
  .bracket-zoom {
    margin-left: auto;
  }
  body.bracket-popup main {
    padding: 20px 18px;
  }
  .bracket-scroll {
    max-height: 65vh;
  }
  .bracket-empty {
    padding: 45px 18px;
  }
}
/* Quiet, accessible help: hover, keyboard focus or tap the question mark. */
[hidden] {
  display: none !important;
}
.setup-label {
  display: inline;
  vertical-align: middle;
}
.info-bubble {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 4px;
  font-weight: 400;
}
body:not(.scoreboard-only) button.info-button {
  width: 16px;
  height: 16px;
  min-width: 16px;
  padding: 0;
  border: 1px solid #bcb4a6;
  border-radius: 50%;
  background: transparent;
  color: #786f63;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  text-align: center;
  cursor: help;
}
body:not(.scoreboard-only) button.info-button:hover,
body:not(.scoreboard-only) button.info-button:focus {
  border-color: #8b7c68;
  color: var(--ink);
  background: #eee8dd;
}
.info-content {
  display: none;
  position: fixed;
  z-index: 1000;
  width: 280px;
  max-width: calc(100vw - 24px);
  padding: 12px 14px;
  border: 1px solid #d6cfc3;
  border-radius: 7px;
  background: #fffcf7;
  color: #39352e;
  box-shadow: 0 4px 18px #19181716;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0;
  font-weight: 400;
  text-transform: none;
  text-align: left;
  cursor: default;
}
.info-bubble:hover .info-content,
.info-bubble:focus-within .info-content,
.info-bubble.info-open .info-content {
  display: block;
}
.format-guide {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: #f7f3eb;
  margin: 4px 0 16px;
  font-size: 12px;
  color: var(--muted);
}
.format-guide b {
  color: var(--ink);
  font-size: 13px;
}
.format-guide p {
  margin: 6px 0;
}
.format-guide > span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
}
.organizer-guide {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffcf7;
  padding: 12px 14px;
  margin: 16px 0;
  font-size: 12px;
  color: var(--muted);
}
.organizer-guide summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}
.organizer-guide ol {
  padding-left: 20px;
  margin: 12px 0 0;
  max-width: 780px;
}
.organizer-guide li {
  padding: 4px 0;
  line-height: 1.6;
}
.organizer-guide b {
  font-weight: 600;
  color: var(--ink);
}
.info-bubble.info-dismissed .info-content {
  display: none;
}
.roster-import {
  margin-top: 18px;
}
.roster-import-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.roster-import-heading h2 {
  margin-bottom: 5px !important;
}
.roster-import-heading p {
  margin: 0;
  font-size: 12px;
}
.roster-import-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.roster-paste summary {
  cursor: pointer;
  font-size: 12px;
  margin-top: 2px;
  color: var(--muted);
}
.roster-paste p,
.roster-import-note,
.roster-preview > p {
  font-size: 11px !important;
}
.roster-paste textarea {
  margin-bottom: 8px;
}
.roster-preview {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 16px;
}
.roster-preview h3 {
  margin-bottom: 10px !important;
}
.roster-preview-table {
  max-height: 340px;
  overflow: auto;
  margin-bottom: 12px;
}
.roster-preview th {
  position: sticky;
  top: 0;
}
@media (max-width: 750px) {
  .roster-import-heading {
    flex-direction: column;
  }
  .roster-import-inputs {
    grid-template-columns: 1fr;
  }
}
.event-description {
  font-size: 12px !important;
  line-height: 1.6;
  color: var(--muted);
  margin: 12px 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.expandable-description summary {
  list-style: none;
  cursor: pointer;
}
.expandable-description summary::-webkit-details-marker {
  display: none;
}
.description-preview {
  display: block;
}
.description-more,
.description-less {
  color: #a3241a;
  font-size: 11px;
  display: inline-block;
  margin-top: 5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.description-less {
  display: none;
}
.expandable-description[open] .description-preview,
.expandable-description[open] .description-more {
  display: none;
}
.expandable-description[open] .description-less {
  display: inline-block;
}
.description-full {
  margin-top: 8px;
  white-space: pre-line;
}
.tournament-about {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffcf7;
  padding: 17px;
}
.tournament-about h2 {
  margin-bottom: 8px !important;
}
.tournament-description-editor {
  margin-top: 18px;
}
.tournament-description-editor > p {
  font-size: 11px;
}
body:not(.scoreboard-only) button.delete-tournament {
  color: #a3241a;
  background: transparent;
}
.delete-review {
  padding: 13px 14px;
  margin-top: 14px;
  background: #faf0e8;
  border: 1px solid #dec7b8;
  border-radius: 6px;
  font-size: 12px;
}
.delete-review h3 {
  margin-bottom: 6px !important;
}
.delete-review p {
  margin: 7px 0 12px;
}
body:not(.scoreboard-only) button.danger {
  background: #a3241a;
  border-color: #a3241a;
  color: white;
}
.pool-court-panel {
  margin: 18px 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffcf7;
}
.pool-court-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.pool-court-heading h2 {
  margin: 0 !important;
}
.pool-court-heading > span {
  font-size: 11px;
}
.pool-court-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.pool-court-card {
  padding: 13px;
  background: #f7f3eb;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.pool-court-card h3 {
  margin-bottom: 10px !important;
}
.pool-court-card > button {
  margin-top: 10px;
}
.pool-court-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.pool-court-item:last-child {
  border-bottom: 0;
}
.pool-court-item small {
  font-size: 10px;
  color: var(--muted);
}
@media (max-width: 750px) {
  .pool-court-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

.account-roles {
  display: flex;
  gap: 5px;
  align-items: center;
}
.profile-editor {
  max-width: 960px;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
}
.profile-editor label {
  font-size: 12px;
  margin-bottom: 10px;
}
.profile-editor input,
.profile-editor select,
.profile-editor textarea {
  padding: 8px 10px;
  margin-top: 5px;
  font-size: 13px;
}
.profile-field {
  min-width: 0;
  margin-bottom: 8px;
}
.profile-field > label:first-child {
  margin-bottom: 4px;
}
.profile-visibility {
  margin: 0 !important;
}
.profile-visibility select {
  display: block;
  width: auto;
  max-width: 100%;
  padding: 3px 6px !important;
  font-size: 10px !important;
  color: var(--muted);
  margin-top: 0 !important;
  min-height: 0;
}
.profile-editor textarea {
  min-height: 60px;
  resize: vertical;
}
.profile-upload {
  max-width: 320px;
}
.profile-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  margin: 4px 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.profile-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 !important;
}
.profile-toggle input {
  appearance: auto;
  accent-color: var(--red);
  width: auto;
  display: inline;
  margin: 0;
}
#profile-display-preview {
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.profile-contacts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid var(--line);
}
.private-tag {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}
.profile-footnote {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 2px 0 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.player-profile-dialog {
  max-width: 440px;
  width: calc(100% - 32px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
}
.player-profile-dialog::backdrop {
  background: #19181766;
}
.player-profile-dialog h2 {
  font-size: 22px;
}
.player-profile-dialog dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  font-size: 13px;
}
.player-profile-dialog dt {
  color: var(--muted);
}
.player-profile-dialog dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.profile-name-button {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  font: inherit;
}
@media (max-width: 750px) {
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-display {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-contacts {
    grid-template-columns: 1fr;
  }
}

.avatar-picker {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
  min-width: 0;
}
.avatar-picker legend {
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  margin-bottom: 8px;
}
.avatar-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.avatar-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: white;
  padding: 7px;
  border-radius: 4px;
  cursor: pointer;
  min-width: 86px;
  margin: 0 !important;
}
.avatar-choice:has(input:checked) {
  border: 2px solid var(--red);
  padding: 6px;
  background: #fff8f5;
}
.avatar-choice:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.avatar-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  min-height: 0;
}
.avatar-choice img {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 3px;
}
.avatar-choice > span {
  font-size: 10px;
  font-weight: 600;
}
.legacy-avatars {
  margin-top: 8px;
}
.legacy-avatars summary {
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.legacy-avatars .avatar-options {
  margin-top: 8px;
}
.emoji-choice {
  min-width: 36px;
}
.emoji-choice > span {
  font-size: 23px;
}
.profile-editor > .profile-grid:first-child {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Privacy and legal controls */
.site-footer {
  max-width: 1320px;
  margin: 36px auto 0;
  padding: 24px clamp(16px, 4vw, 40px);
  border-top: 1px solid #d8d0c4;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #655e55;
  line-height: 1.6;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer a,
.legal-page a,
.event-privacy a {
  color: inherit;
  text-underline-offset: 3px;
}
.legal-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0;
}
.legal-check input[type='checkbox'] {
  width: 18px !important;
  min-width: 18px;
  min-height: 18px !important;
  height: 18px;
  margin: 3px 0 0;
  accent-color: #bd2e22;
}
.legal-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  line-height: 1.8;
}
.legal-page h1 {
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.15;
}
.legal-page h2 {
  font-size: 20px;
  margin-top: 30px;
}
.legal-page li {
  margin: 8px 0;
}
.legal-page .updated {
  font-size: 12px;
  color: #655e55;
}
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-page td,
.legal-page th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #d8d0c4;
  vertical-align: top;
}
.event-privacy {
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.6;
}
.event-privacy summary {
  cursor: pointer;
}
.privacy-copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.legal-page .callout {
  border-left: 3px solid #bd2e22;
  padding: 12px 18px;
  background: #eee8de;
}
body:has(.legal-page) {
  background: #f6f1e7;
  color: #24221f;
}
.auth-shell .legal-check a {
  display: inline;
}
.auth-shell .legal-check {
  display: flex;
  flex-wrap: wrap;
}
.auth-shell .legal-check input {
  flex-shrink: 0;
}

/* Focused usability updates, retaining the existing warm-paper design. */
body:not(.scoreboard-only) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
body:not(.scoreboard-only) > header {
  flex-shrink: 0;
}
body:not(.scoreboard-only) > .layout {
  flex: 1;
  min-height: 0;
  width: 100%;
}
body:not(.scoreboard-only) > main {
  width: 100%;
  min-width: 0;
}
body:not(.scoreboard-only) > .site-footer {
  width: 100%;
  margin: auto auto 0;
  flex-shrink: 0;
}
.arena .arena-number {
  font-size: clamp(20px, 3cqw, 44px);
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.7;
}
.arena.time-hidden .arena-clock {
  display: none;
}
.arena.time-hidden .clock-caption {
  margin-top: 8px;
}
.dashboard-player-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  vertical-align: middle;
}
.dashboard-player-name > img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  background: var(--paper);
}
.dashboard-player-name > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.dashboard-player-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 32px;
  flex-shrink: 0;
  font-weight: 400;
}
.result-fold {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
}
.result-fold > summary {
  cursor: pointer;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.result-fold-content {
  padding: 0 14px 14px;
}
.result-fold-content > section {
  margin-top: 0 !important;
}
.result-fold .bracket-entry {
  border: 0;
  padding: 4px 0 0;
  margin: 0;
  background: transparent;
}
.result-fold .bracket-entry p {
  margin: 0;
  font-size: 12px;
}
.result-fold .grid,
.pool-follow-grid {
  align-items: start;
}
body:not(.scoreboard-only) .pool-result {
  padding: 10px 12px;
}
.pool-result > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 0;
  line-height: 1.5;
}
.pool-result[open] > summary {
  margin-bottom: 8px;
}
.pool-result table {
  margin-top: 6px;
}
.pool-result .pool-follow-matches {
  max-height: 360px;
  overflow-y: auto;
}
#app[data-desk-view='schedule'] > .card,
#app[data-desk-view='standings'] > .card {
  padding: 12px;
}
body:not(.scoreboard-only) #app[data-desk-view='schedule'] td,
body:not(.scoreboard-only) #app[data-desk-view='standings'] td,
body:not(.scoreboard-only) #app[data-desk-view='schedule'] th,
body:not(.scoreboard-only) #app[data-desk-view='standings'] th {
  padding: 7px 8px;
  font-size: 11px;
}
body:not(.scoreboard-only) #app[data-desk-view='schedule'] th,
body:not(.scoreboard-only) #app[data-desk-view='standings'] th {
  font-size: 9px;
}
#app[data-desk-view='schedule'] .badge {
  padding: 3px 5px;
}
#app[data-desk-view='schedule'] td details {
  font-size: 10px;
  margin-top: 2px;
}
#app[data-desk-view='schedule'] td details > summary {
  cursor: pointer;
  color: var(--muted);
}
#app[data-desk-view='standings'] .result-fold .grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.result-fold summary:focus-visible,
.pool-result summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .dashboard-player-name {
    gap: 10px;
  }
  .dashboard-player-name > img,
  .dashboard-player-emoji {
    width: 38px;
    height: 38px;
  }
  .result-fold > summary {
    padding: 10px 12px;
  }
  .result-fold-content {
    padding: 0 10px 10px;
  }
  .result-fold .grid {
    grid-template-columns: 1fr !important;
  }
}

.court-operator-setup {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
}
.court-operator-setup > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.court-operator-setup[open] > summary {
  margin-bottom: 16px;
}
.court-operator-setup p {
  font-size: 11px;
}
.court-save-status {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  font-size: 12px;
  color: var(--muted);
}
.court-period {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 12px 0;
  color: var(--red);
}
.court-score-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}
.court-score-controls > div > b {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}
.court-mode-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
#operator-app {
  max-width: 900px;
}
#operator-app .court {
  max-width: 780px;
}
#operator-app .fighter .score {
  font-size: 32px;
}
#operator-app .clock-strip strong {
  font-size: 36px;
}
@media (max-width: 600px) {
  .court-score-controls {
    grid-template-columns: 1fr;
  }
  .court-operator-setup .grid {
    grid-template-columns: 1fr;
  }
}

/* Keep narrow screens usable without hiding long tournament tables. */
.landing-about{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.landing-about p{max-width:900px;color:var(--muted)}
.landing-about .grid{margin-top:22px;gap:24px}
.layout main,
.grid > *,
.hero-copy {
  min-width: 0;
}
.legal-page,
.event-meta,
.dashboard-player-name {
  overflow-wrap: anywhere;
}
.pool-follow-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
#app[data-desk-view='standings'] .result-fold .grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
@media (max-width: 750px) {
  body:not(.scoreboard-only) > header {
    height: auto;
    min-height: 60px;
    padding: 12px 18px;
    flex-wrap: wrap;
    gap: 12px;
  }
  body:not(.scoreboard-only) main {
    padding: 24px 18px;
  }
  #account {
    max-width: 100%;
  }
  .legal-page table {
    table-layout: fixed;
    overflow-wrap: anywhere;
  }
  body:not(.scoreboard-only) input,
  body:not(.scoreboard-only) select,
  body:not(.scoreboard-only) textarea {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .hero-copy {
    width: 100%;
  }
  .hero-art {
    width: 100%;
    right: -35%;
    opacity: 0.2;
  }
  body:not(.scoreboard-only) .hero h1 {
    font-size: 42px;
  }
  .profile-editor > .profile-grid:first-child {
    grid-template-columns: 1fr;
  }
  .hero-foot {
    gap: 8px;
    flex-wrap: wrap;
  }
}
