:root { color-scheme: light; font-family: Arial, sans-serif; color: #202c29; background: #f6f5ef; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
header, main, footer { width: min(1120px, calc(100% - 64px)); margin: auto; }
header { display: flex; justify-content: space-between; align-items: center; padding: 30px 0; border-bottom: 1px solid #d9ddd3; }
.brand { font-size: 30px; font-weight: 800; letter-spacing: -2px; }
header > span, .eyebrow { font-size: 11px; letter-spacing: 2px; color: #63765d; }
main { padding-top: 76px; }
h1 { font-size: clamp(52px, 8vw, 100px); line-height: 1.04; letter-spacing: -5px; margin: 28px 0; font-weight: 500; }
h1 em { font-family: Georgia, serif; color: #527345; font-weight: 400; }
.intro { max-width: 490px; color: #69716c; font-size: 17px; line-height: 1.7; }
.actions { display: flex; gap: 28px; align-items: center; margin: 32px 0 76px; flex-wrap: wrap; font-size: 14px; }
.button { background: #253e30; color: white; padding: 18px 23px; border-radius: 5px; }
.button:hover { background: #3e5c42; }
a:focus-visible { outline: 3px solid #719853; outline-offset: 5px; }
section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding: 28px 0 42px; border-top: 1px solid #d9ddd3; }
small { color: #77846f; }
h2 { font-size: 16px; font-weight: 500; margin-top: 22px; }
section p { color: #69716c; font-size: 14px; line-height: 1.6; }
footer { border-top: 1px solid #d9ddd3; padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 10px; letter-spacing: 1px; color: #63765d; }
@media (max-width: 640px) { header, main, footer { width: calc(100% - 36px); } main { padding-top: 48px; } h1 { letter-spacing: -3px; } section { grid-template-columns: 1fr; gap: 18px; } .actions { margin-bottom: 48px; } footer { flex-wrap: wrap; } }
nav { display: flex; gap: 24px; font-size: 14px; }
nav a { padding: 10px 0; }
nav a[aria-current="page"] { color: #527345; border-bottom: 2px solid #527345; }
.tournaments { grid-template-columns: repeat(2, 1fr); margin-top: 50px; }
.tournaments article { padding: 28px; background: #eeeee4; border-radius: 8px; }
.home-page { padding-top: 40px; }
.home-title { font-size: 36px; letter-spacing: -1px; margin: 0 0 28px; }
.home-page .tournaments { margin-top: 0; border-top: 0; padding-top: 0; }
.home-page .tournaments article { position: relative; transition: background-color 150ms ease; }
.home-page .tournaments article:hover { background: #e5e8db; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid #719853; outline-offset: 5px; }
.home-page .page-links a { position: relative; z-index: 1; }
.tournaments h2 { font-size: 32px; }
.tournaments .button { display: inline-block; margin-top: 16px; }
.page-links { list-style: none; padding: 0; margin: 20px 0 0; }
.page-links li + li { border-top: 1px solid #d9ddd3; }
.page-links a { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; font-size: 15px; }
.page-links a:hover { color: #527345; text-decoration: underline; }
.rules-page { padding-top: 48px; padding-bottom: 48px; }
.rules-page h1 { font-size: clamp(40px, 7vw, 76px); letter-spacing: -2px; }
.rules-page .actions { margin-bottom: 28px; }
.rules-contents { display: block; max-width: 820px; padding: 24px; margin-bottom: 40px; background: #eeeee4; border-radius: 8px; }
.rules-contents h2 { margin: 0 0 16px; font-size: 20px; }
.rules-contents ul { list-style: none; padding: 0; margin: 0; }
.rules-contents a { display: inline-block; padding: 8px 0; line-height: 1.5; }
.rules-contents a:hover { text-decoration: underline; }
.rules-text { max-width: 820px; font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.rules-text .document-title { font-size: 25px; line-height: 1.5; font-weight: 600; }
.rules-text h3 { margin-top: 44px; padding-top: 24px; border-top: 1px solid #d9ddd3; font-size: 23px; line-height: 1.5; scroll-margin-top: 24px; }
.rules-text p { margin: 18px 0; }
.rules-text .rule-bullet { padding-left: 20px; }
.waiting-page { padding-top: 48px; padding-bottom: 48px; }
.waiting-page h1 { font-size: clamp(40px, 7vw, 76px); letter-spacing: -2px; }
.waiting-page .actions { margin-bottom: 32px; }
.list-status { padding: 20px 24px; background: #eeeee4; border-radius: 8px; margin-bottom: 24px; }
.list-status p { margin-bottom: 0; line-height: 1.6; }
.list-badge { font-size: 12px; font-weight: 600; color: #527345; }
.table-scroll { overflow-x: auto; border: 1px solid #d9ddd3; border-radius: 8px; }
.table-scroll:focus-visible { outline: 3px solid #719853; outline-offset: 4px; }
.waiting-table { width: 100%; min-width: 780px; border-collapse: collapse; text-align: left; font-size: 14px; }
.waiting-table caption { text-align: left; padding: 20px; font-weight: 600; background: white; }
.waiting-table th { padding: 16px; background: #eeeee4; line-height: 1.5; }
.waiting-table td { padding: 24px 16px; border-top: 1px solid #d9ddd3; }
.waiting-table .empty-list { text-align: center; color: #69716c; white-space: normal; line-height: 1.7; }
.list-explanation { max-width: 820px; margin-top: 40px; line-height: 1.8; }
.list-explanation h2 { font-size: 24px; }
.list-explanation a { text-decoration: underline; color: #527345; }
.list-explanation code { white-space: normal; overflow-wrap: anywhere; }
.rules-text p[id] { scroll-margin-top: 24px; }
.bonus-search { margin: 28px 0 20px; }
.bonus-search label { display: block; margin-bottom: 10px; }
.bonus-search input { width: min(100%, 480px); padding: 14px; border: 1px solid #aeb9a4; border-radius: 5px; background: white; color: inherit; font: inherit; }
.bonus-search input:focus-visible { outline: 3px solid #719853; outline-offset: 3px; }
.bonus-search p { color: #69716c; font-size: 14px; }
.bonus-table { min-width: 560px; }
.bonus-table td { padding: 12px 16px; }
.bonus-value { font-variant-numeric: tabular-nums; }
.player-link { text-decoration: underline; text-underline-offset: 3px; }
.player-link:hover { color: #527345; }
.player-page { padding-top: 48px; padding-bottom: 48px; }
.player-page h1 { font-size: clamp(32px, 5vw, 58px); letter-spacing: -1px; overflow-wrap: anywhere; }
.player-summary { display: flex; flex-wrap: wrap; gap: 24px 64px; margin: 32px 0; }
.player-summary dt { font-size: 13px; color: #69716c; margin-bottom: 8px; }
.player-summary dd { margin: 0; font-size: 17px; }
.player-scores, .player-tournaments { grid-template-columns: repeat(2, 1fr); }
.player-scores article { background: #eeeee4; border-radius: 8px; padding: 24px; }
.player-scores h2 { font-size: 24px; margin-top: 0; }
.player-scores .player-score { font-size: 22px; font-variant-numeric: tabular-nums; color: #253e30; }
.player-scores a, .player-tournaments a { text-decoration: underline; font-size: 14px; line-height: 1.6; }
.player-tournaments h2 { font-size: 20px; }
@media (max-width: 640px) { .player-scores, .player-tournaments { grid-template-columns: 1fr; } }
.admin-page { padding: 40px 0; }
.admin-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.admin-panel { display: block; padding: 24px; margin: 24px 0; background: #eeeee4; border: 0; border-radius: 8px; }
.admin-panel h2 { font-size: 22px; margin-top: 0; }
.admin-panel form { display: grid; gap: 18px; }
.admin-panel label { display: grid; gap: 8px; font-size: 14px; }
.admin-panel input:not([type="checkbox"]), .admin-panel select { width: 100%; padding: 12px; font: inherit; color: inherit; border: 1px solid #aeb9a4; border-radius: 5px; background: white; }
.admin-panel input[type="file"] { max-width: 100%; }
.admin-panel .checkbox-label { display: flex; align-items: start; line-height: 1.6; }
button { font: inherit; cursor: pointer; padding: 12px 18px; border: 0; border-radius: 5px; color: white; background: #253e30; }
button:hover { background: #3e5c42; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #719853; outline-offset: 3px; }
.secondary-button { background: white; color: #253e30; border: 1px solid #aeb9a4; }
.secondary-button:hover { background: #e5e8db; }
.admin-message { padding: 18px; border-radius: 5px; background: #e5e8db; line-height: 1.6; }
.admin-message.error { background: #f8e1dc; color: #752d21; }
.admin-tournament { padding: 18px 0; border-top: 1px solid #d9ddd3; overflow-wrap: anywhere; }
.admin-tournament button { margin-right: 10px; margin-top: 8px; }
.form-help { font-size: 13px; line-height: 1.7; color: #69716c; }
.player-tournaments .waiting-table { min-width: 660px; }
.roster-list { line-height: 2; margin-bottom: 32px; }
[hidden] { display: none !important; }
@media (max-width: 760px) { .admin-layout { grid-template-columns: 1fr; } .admin-panel { margin-top: 0; } }
@media (max-width: 640px) { .tournaments, .site-resources { grid-template-columns: 1fr; } header { flex-wrap: wrap; gap: 16px; } .brand { font-size: 24px; letter-spacing: -1px; } nav { gap: 16px; } .rules-text { font-size: 16px; } }
[popover].score-popup {
  position: fixed;
  inset: auto;
  margin: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid #b9cbbf;
  border-radius: 12px;
  background: #fff;
  color: #203a2c;
  box-shadow: 0 8px 32px #203a2c30;
  font-size: 14px;
}
.score-popup ul { list-style: none; padding: 0; margin: 12px 0; }
.score-popup li { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.score-popup p { margin: 0; font-size: 12px; }
.score-help { background: transparent; color: inherit; border: 0; padding: 4px; cursor: help; white-space: nowrap; font: inherit; }
.score-help:hover { background: #e8f0ea; color: inherit; }
.score-help:focus-visible { outline: 2px solid #287248; outline-offset: 2px; }
