:root {
  --ink: #173f3d;
  --deep: #103735;
  --cream: #f7f3e8;
  --paper: #fffdf8;
  --coral: #ed7458;
  --yellow: #f2ca58;
  --line: rgba(23, 63, 61, 0.16);
  --muted: #63736d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Arial, Helvetica, sans-serif; }
button { font: inherit; }
a { color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header { display: flex; justify-content: space-between; align-items: center; padding-block: 24px 22px; }
.brand { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 700; text-decoration: none; }
.header-link { color: var(--muted); font-size: 14px; font-weight: 750; text-underline-offset: 4px; }

.event-hero { display: grid; grid-template-columns: 1fr .92fr; min-height: 600px; overflow: hidden; border-radius: 28px; color: #fffdf4; background: var(--deep); box-shadow: 0 24px 70px rgba(15, 52, 51, .15); }
.hero-copy-block { display: flex; flex-direction: column; justify-content: center; padding: 68px 64px; }
.eyebrow, .section-label, .panel-kicker { margin: 0 0 15px; color: var(--coral); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 800; }
.hero-copy-block .eyebrow { color: var(--yellow); }
.hero-copy-block h1 { max-width: 620px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(43px, 5.4vw, 67px); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; }
.hero-copy { max-width: 580px; margin: 26px 0 0; color: rgba(255, 255, 255, .82); font-size: 18px; line-height: 1.65; }
.hero-copy strong { color: white; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 15px 22px; align-items: center; margin-top: 34px; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 21px; border: 0; border-radius: 999px; color: white; background: var(--coral); text-decoration: none; font-size: 14px; font-weight: 800; cursor: pointer; }
.primary-button:hover { filter: brightness(.95); }
.text-button { padding: 6px 0; border: 0; border-bottom: 2px solid var(--yellow); color: white; background: transparent; cursor: pointer; font-weight: 800; }
.hero-photo { position: relative; min-height: 600px; margin: 0; overflow: hidden; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 34, 32, .68)); }
.hero-photo figcaption { position: absolute; z-index: 1; right: 28px; bottom: 27px; display: grid; gap: 4px; color: white; text-align: right; }
.hero-photo figcaption span { text-transform: uppercase; letter-spacing: .15em; font-size: 10px; font-weight: 800; }
.hero-photo figcaption strong { font-family: Georgia, serif; font-size: 22px; font-weight: 500; }

.schedule-section { margin-top: 88px; padding: 82px 0; background: var(--paper); border-block: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; margin-bottom: 38px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 58px); line-height: 1; letter-spacing: -.04em; font-weight: 500; }
.section-heading > p { max-width: 470px; margin: 0 0 4px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.timeline article { display: grid; gap: 24px; min-height: 220px; padding: 30px 28px 22px 0; }
.timeline article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.timeline time { color: var(--coral); font-family: Georgia, serif; font-size: 25px; line-height: 1.15; }
.timeline h3 { margin: 0 0 9px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.timeline p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

.details-section { padding-block: 96px 106px; scroll-margin-top: 20px; }
.tab-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .55); }
.tab { display: grid; gap: 4px; padding: 18px 20px; border: 0; border-radius: 14px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; transition: background .18s, color .18s, transform .18s; }
.tab:hover { transform: translateY(-1px); }
.tab:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.tab.active { color: white; background: var(--deep); }
.tab span { font-family: Georgia, serif; font-size: 24px; }
.tab small { color: var(--muted); font-size: 14px; }
.tab.active small { color: rgba(255, 255, 255, .68); }
.tab-panel { margin-top: 18px; padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 18px 50px rgba(15, 52, 51, .06); }
.panel-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 45px; align-items: end; margin-bottom: 30px; }
.panel-intro h3, .location-copy h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(33px, 4vw, 48px); line-height: 1.04; letter-spacing: -.035em; font-weight: 500; }
.panel-intro > p { margin: 0 0 2px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.score-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.score-summary div { padding: 18px 20px; border-radius: 14px; color: white; background: var(--deep); }
.score-summary strong { display: block; color: var(--yellow); font-family: Georgia, serif; font-size: 34px; line-height: 1; }
.score-summary span { display: block; margin-top: 6px; color: rgba(255,255,255,.72); font-size: 14px; }
.score-sheet-link { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 0 0 18px; padding: 15px 18px; border-radius: 12px; background: #fff2ec; }
.score-sheet-link a { color: var(--deep); font-weight: 800; text-underline-offset: 4px; text-decoration-color: var(--coral); }
.score-sheet-link span { color: var(--muted); font-size: 14px; }
.activity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.activity-card, .food-card { padding: 28px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.card-number { color: var(--coral); letter-spacing: .13em; font-size: 11px; font-weight: 800; }
.activity-card h4, .food-card h4 { margin: 24px 0 13px; font-family: Georgia, serif; font-size: 28px; line-height: 1.12; font-weight: 500; }
.activity-card p, .food-card p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.activity-summary { color: var(--ink) !important; font-weight: 700; }
.activity-detail, .activity-score { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.activity-detail strong, .activity-score strong { display: block; margin-bottom: 7px; color: var(--coral); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.activity-detail p, .activity-score p { font-size: 16px; }
.activity-score { padding: 17px; border-top: 0; border-radius: 12px; background: #edf2e9; }
.tie-breaker { display: grid; grid-template-columns: auto 1fr; gap: 18px; margin-top: 18px; padding: 20px; border-left: 4px solid var(--coral); border-radius: 12px; background: #fff2ec; }
.tie-breaker strong { color: var(--deep); }
.tie-breaker p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.soft-note, .food-note { margin: 18px 0 0; padding: 20px; border-radius: 12px; color: var(--ink); background: #edf2e9; font-size: 16px; line-height: 1.6; }
.live-score-sheet { margin-top: 28px; padding-top: 42px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.score-sheet-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: end; }
.score-sheet-heading h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(33px, 4vw, 48px); line-height: 1.04; letter-spacing: -.035em; font-weight: 500; }
.score-sheet-heading > p { margin: 0 0 2px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.score-save-note { display: grid; grid-template-columns: auto 1fr; gap: 16px; margin-top: 24px; padding: 17px 18px; border-left: 4px solid var(--yellow); border-radius: 12px; background: #fff8dc; }
.score-save-note p { margin: 0; color: var(--muted); line-height: 1.5; }
.team-name-editor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 0; padding: 0; border: 0; }
.team-name-editor legend { width: 100%; margin-bottom: 10px; color: var(--deep); font-family: Georgia, serif; font-size: 23px; font-weight: 700; }
.team-name-editor label { display: grid; gap: 7px; }
.team-name-editor label span { color: var(--muted); font-size: 13px; font-weight: 800; }
.team-name-editor input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; font: inherit; font-weight: 750; }
.team-name-editor input:focus, .score-table select:focus { outline: 3px solid var(--yellow); outline-offset: 2px; border-color: var(--deep); }
.game-score-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.game-score-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: white; }
.game-score-card-header { min-height: 146px; padding: 22px 22px 18px; color: white; background: var(--deep); }
.game-score-card-header .card-number { color: var(--yellow); }
.game-score-card-header h4 { margin: 15px 0 8px; font-family: Georgia, serif; font-size: 25px; line-height: 1.12; font-weight: 500; }
.game-score-card-header p { margin: 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.5; }
.score-table-scroll { overflow-x: auto; overscroll-behavior-inline: contain; }
.score-table { width: 100%; min-width: 360px; border-collapse: collapse; table-layout: fixed; }
.score-table th, .score-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.score-table thead th { color: var(--muted); background: #f7f4eb; font-size: 12px; line-height: 1.25; }
.score-table thead th:first-child, .score-table tbody th, .score-table tfoot th { width: 28%; text-align: left; }
.score-table tbody th, .score-table tfoot th { padding-left: 14px; color: var(--ink); font-size: 14px; }
.score-table select { width: 100%; min-height: 44px; padding: 0 5px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font: inherit; font-size: 16px; font-weight: 800; text-align: center; }
.score-table tfoot { color: white; background: var(--deep); }
.score-table tfoot th, .score-table tfoot td { border: 0; }
.score-table tfoot th { color: white; }
.score-table output { font-weight: 800; }
.grand-total-card { display: grid; grid-template-columns: .7fr 1.3fr; gap: 24px; align-items: start; margin-top: 18px; padding: 24px; border-radius: 17px; color: white; background: var(--deep); }
.grand-total-card h4 { margin: 0; font-family: Georgia, serif; font-size: 31px; font-weight: 500; }
.grand-total-card .score-table-scroll { border-radius: 12px; }
.grand-total-card .score-table { min-width: 340px; background: white; }
.grand-total-card .score-table tbody th { width: 42%; }
.grand-total-card .score-table td { color: var(--ink); }
.grand-total-card .score-table tr:last-child th, .grand-total-card .score-table tr:last-child td { border-bottom: 0; }
.ranking-summary { grid-column: 1 / -1; margin: 0; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.78); font-weight: 700; line-height: 1.5; }
.score-sheet-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 18px; }
.reset-score-button { min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: white; cursor: pointer; font-weight: 800; }
.reset-score-button:hover { border-color: var(--coral); color: #a13d2b; }
.score-save-status { margin-left: auto; color: var(--muted); font-size: 13px; }
.food-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.food-card ul { display: grid; gap: 10px; margin: 20px 0 0; padding-left: 20px; color: var(--ink); font-size: 16px; line-height: 1.55; }
.food-note { display: grid; gap: 8px; border-left: 4px solid var(--yellow); background: #fff8dc; }
.food-note p { margin: 0; color: var(--muted); }

.location-panel { display: grid; grid-template-columns: 1.03fr .97fr; gap: 0; overflow: hidden; padding: 0; }
.location-photo { min-height: 480px; margin: 0; }
.location-copy { padding: 52px 46px; }
.location-address { margin: 16px 0 28px; color: var(--coral); font-weight: 800; }
.location-copy ul { display: grid; gap: 12px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.location-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 32px; }
.secondary-link { color: var(--ink); font-size: 14px; font-weight: 800; text-underline-offset: 4px; text-decoration-color: var(--coral); }
.closing-note { padding: 84px 0; color: white; background: var(--deep); }
.closing-note h2 { max-width: 820px; margin: 0; font-family: Georgia, serif; font-size: clamp(36px, 5vw, 58px); line-height: 1.06; letter-spacing: -.035em; font-weight: 500; }
.closing-note-layout { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.closing-note-button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 0 22px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: white; text-decoration: none; font-weight: 800; white-space: nowrap; }
.closing-note-button:hover { color: var(--deep); background: var(--yellow); border-color: var(--yellow); }
.registration-section { padding: 92px 0 104px; background: #edf2e9; scroll-margin-top: 16px; }
.registration-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: end; margin-bottom: 34px; }
.registration-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 58px); line-height: 1; letter-spacing: -.04em; font-weight: 500; }
.registration-heading > p { max-width: 500px; margin: 0 0 4px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.registration-panel { padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 18px 50px rgba(15, 52, 51, .07); }
.registration-save-note { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 17px 18px; border-left: 4px solid var(--yellow); border-radius: 12px; background: #fff8dc; }
.registration-save-note p { margin: 0; color: var(--muted); line-height: 1.5; }
.meeting-pin-editor { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; margin-top: 22px; }
.meeting-pin-editor label { display: grid; gap: 8px; }
.meeting-pin-editor label span { color: var(--deep); font-size: 14px; font-weight: 800; }
.meeting-pin-editor input, .registration-input, .registration-select { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; font: inherit; }
.meeting-pin-editor input:focus, .registration-input:focus, .registration-select:focus { outline: 3px solid var(--yellow); outline-offset: 2px; border-color: var(--deep); }
.meeting-pin-editor .secondary-link { display: inline-flex; align-items: center; min-height: 48px; }
.headcount-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.headcount-summary div { padding: 18px 20px; border-radius: 14px; color: white; background: var(--deep); }
.headcount-summary strong { display: block; color: var(--yellow); font-family: Georgia, serif; font-size: 34px; line-height: 1; }
.headcount-summary span { display: block; margin-top: 6px; color: rgba(255,255,255,.72); font-size: 14px; }
.registration-table-scroll { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.registration-table { width: 100%; min-width: 960px; border-collapse: collapse; table-layout: fixed; }
.registration-table th, .registration-table td { padding: 11px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.registration-table thead th { color: var(--muted); background: #f7f4eb; font-size: 12px; line-height: 1.3; }
.registration-table th:nth-child(1) { width: 16%; }
.registration-table th:nth-child(2) { width: 16%; }
.registration-table th:nth-child(3) { width: 24%; }
.registration-table th:nth-child(4) { width: 30%; }
.registration-table th:nth-child(5) { width: 14%; }
.registration-table tbody tr:last-child td { border-bottom: 0; }
.registration-table td:last-child { overflow: hidden; }
.registration-input, .registration-select { min-height: 44px; font-size: 15px; }
.registration-select { cursor: pointer; }
.registration-remove-button { display: inline-flex; justify-content: center; align-items: center; width: 100%; min-width: 0; max-width: 100%; min-height: 40px; padding: 0 6px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; color: #9c3d2d; background: #fff7f4; cursor: pointer; font-size: 14px; font-weight: 800; line-height: 1; white-space: nowrap; text-overflow: ellipsis; }
.registration-remove-button:hover { border-color: var(--coral); background: #fff0eb; }
.registration-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin-top: 18px; }
.registration-secondary-button, .registration-reset-button { min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: white; cursor: pointer; font-weight: 800; }
.registration-secondary-button:hover { border-color: var(--deep); }
.registration-reset-button:hover { border-color: var(--coral); color: #a13d2b; }
.registration-save-status { margin-left: auto; color: var(--muted); font-size: 13px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px max(20px, calc((100% - 1160px) / 2)); color: rgba(255, 255, 255, .7); background: #092725; font-size: 13px; }
footer a { color: white; }

@media (max-width: 820px) {
  .event-hero, .section-heading, .panel-intro, .location-panel, .score-sheet-heading, .closing-note-layout, .registration-heading { grid-template-columns: 1fr; }
  .hero-copy-block { padding: 58px 36px; }
  .hero-photo { min-height: 410px; }
  .section-heading, .panel-intro { gap: 20px; }
  .timeline { grid-template-columns: 1fr; }
  .timeline article { grid-template-columns: 130px 1fr; min-height: 0; padding: 25px 0; }
  .timeline article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .tab-list { grid-template-columns: 1fr; }
  .tab { grid-template-columns: 1fr auto; align-items: center; }
  .activity-grid, .food-grid, .game-score-tables { grid-template-columns: 1fr; }
  .score-sheet-heading { gap: 18px; }
  .team-name-editor { grid-template-columns: 1fr; }
  .grand-total-card { grid-template-columns: 1fr; }
  .closing-note-layout, .registration-heading { gap: 24px; }
  .closing-note-button { justify-self: start; }
  .meeting-pin-editor { grid-template-columns: 1fr; gap: 4px; }
  .location-photo { min-height: 380px; }
}

@media (max-width: 900px) {
  .registration-table-scroll { overflow: visible; border: 0; background: transparent; }
  .registration-table { min-width: 0; }
  .registration-table, .registration-table tbody, .registration-table tr, .registration-table td { display: block; width: 100%; }
  .registration-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .registration-table tbody { display: grid; gap: 12px; }
  .registration-table tr { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: white; }
  .registration-table td { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 0; border: 0; }
  .registration-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.3; }
  .registration-table td:last-child { grid-template-columns: 1fr; padding-top: 10px; }
  .registration-table td:last-child::before { display: none; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 24px, 1160px); }
  .site-header { padding-block: 18px 17px; }
  .brand { max-width: 210px; }
  .event-hero { border-radius: 20px; }
  .hero-copy-block { padding: 46px 24px; }
  .hero-copy-block h1 { font-size: 42px; }
  .hero-copy { font-size: 16px; }
  .hero-photo { min-height: 310px; }
  .schedule-section { margin-top: 60px; padding: 64px 0; }
  .timeline article { grid-template-columns: 1fr; gap: 10px; }
  .details-section { padding-block: 70px 72px; }
  .tab { padding: 15px; }
  .tab span { font-size: 21px; }
  .tab-panel { padding: 22px; border-radius: 18px; }
  .activity-card, .food-card { padding: 20px; }
  .score-summary, .tie-breaker { grid-template-columns: 1fr; }
  .tie-breaker { gap: 6px; }
  .live-score-sheet { margin-inline: -10px; padding-top: 34px; }
  .score-save-note { grid-template-columns: 1fr; gap: 5px; }
  .game-score-card-header { min-height: 0; padding: 20px 16px 17px; }
  .score-table { min-width: 330px; }
  .score-table th, .score-table td { padding-inline: 5px; }
  .score-table tbody th, .score-table tfoot th { padding-left: 10px; }
  .grand-total-card { padding: 18px 14px; }
  .grand-total-card .score-table { min-width: 310px; }
  .score-sheet-actions { align-items: stretch; }
  .score-sheet-actions button { width: 100%; }
  .score-save-status { width: 100%; margin-left: 0; text-align: center; }
  .location-photo { min-height: 270px; }
  .location-copy { padding: 32px 24px 38px; }
  .closing-note { padding: 64px 0; }
  .registration-section { padding: 64px 0 72px; }
  .registration-panel { padding: 20px 14px; border-radius: 18px; }
  .registration-save-note { grid-template-columns: 1fr; gap: 5px; }
  .headcount-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .headcount-summary div { padding: 14px 9px; }
  .headcount-summary strong { font-size: 29px; }
  .headcount-summary span { font-size: 11px; line-height: 1.25; }
  .registration-table td { grid-template-columns: 92px minmax(0, 1fr); }
  .registration-actions { align-items: stretch; }
  .registration-actions button { width: 100%; }
  .registration-save-status { width: 100%; margin-left: 0; text-align: center; }
  footer { flex-direction: column; }
}
