:root { color-scheme: light; --ink: #212121; --muted: #626b70; --accent: #b83f00; --line: #d9e0e3; }
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 90% 0%, #e6510014, transparent 34rem), #f4f6f7; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.7; }
a { color: var(--accent); text-underline-offset: .18em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem max(1rem, calc((100% - 1080px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; font-family: Georgia, serif; font-weight: bold; line-height: 1.3; }
.brand img { object-fit: contain; }
.brand small { display: block; margin-top: .35rem; color: var(--muted); font: 700 .7rem system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
main { width: min(100% - 2rem, 960px); margin: 2.5rem auto; }
.page-heading { margin-bottom: 2rem; }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.15; letter-spacing: -.03em; }
.subtitle { color: var(--muted); font-size: 1.1rem; }
.contents, .rules, .coming-soon { padding: clamp(1.2rem, 4vw, 3rem); background: #fff; border: 1px solid var(--line); border-radius: 18px; margin: 1.5rem 0; }
.contents { display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; padding: 1.3rem; }
.contents strong { flex-basis: 100%; }
h2 { font-size: 1.5rem; line-height: 1.3; margin: 3rem 0 1.2rem; }
.rules h2 { padding-top: 1rem; border-top: 3px solid #e65100; }
.rules h2:first-child, .coming-soon h2 { margin-top: 0; }
h3 { font-size: 1.08rem; line-height: 1.4; margin-top: 2rem; }
h4 { font-size: 1rem; margin-top: 1.7rem; }
p, li { overflow-wrap: anywhere; }
li { margin: .5rem 0; }
footer { text-align: center; padding: 1rem 1rem 2rem; color: var(--muted); font-size: .85rem; }
.skip-link { position: absolute; top: -5rem; left: 1rem; background: white; padding: .7rem; }
.skip-link:focus { top: 1rem; }
@media (max-width: 480px) { header { align-items: flex-start; font-size: .85rem; } .brand img { width: 40px; height: 48px; } }
@media print { body { background: white; font-size: 10pt; } header, footer, .contents, .skip-link { display: none; } main { width: 100%; margin: 0; } .rules { padding: 0; border: 0; } h2, h3, h4 { break-after: avoid; } }

/* Tournament artwork stays on the Blossom Bash page. */
.blossom-bash { --accent: #8c3454; --line: #ead7de; background: #faf6f4; }
.tournament-hero { display: flex; align-items: center; justify-content: center; gap: 1.75rem; padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 18px; background: #fffdf8 url('../images/blossom-bash-2027/blossom-background.jpg') center / cover no-repeat; }
.tournament-badge { flex: 0 0 auto; width: clamp(100px, 18vw, 180px); height: auto; }
.tournament-heading { max-width: 520px; padding: 1rem; background: #fffdf8ed; border-radius: 12px; }
.tournament-heading .eyebrow { margin-top: 0; }
.tournament-heading .subtitle { margin-bottom: 0; color: #484247; }
.blossom-bash .rules h2 { border-color: #d38ba5; }
.venue-map { padding: clamp(1.2rem, 4vw, 3rem); background: #fff; border: 1px solid var(--line); border-radius: 18px; margin: 1.5rem 0; }
.venue-map h2 { margin-top: 0; }
.venue-map figure { margin: 1rem 0 0; }
.venue-map img { display: block; width: 100%; height: auto; border-radius: 8px; }
.venue-map figcaption { margin-top: .75rem; font-size: .9rem; color: var(--muted); }
@media (max-width: 600px) { .tournament-hero { flex-direction: column; gap: .5rem; text-align: center; } }
@media print { .tournament-hero { padding: 1rem; background: white; } .tournament-badge { width: 90px; } .venue-map { break-inside: avoid; padding: 0; border: 0; } }
.event-actions { align-items: center; }
.register-button { display: inline-block; padding: .65rem 1.1rem; color: #fff; background: var(--accent); border-radius: 8px; text-decoration: none; font-weight: 750; }
.register-button:hover { background: #68253e; }
.event-content table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; }
.event-content td, .event-content th { padding: .7rem; text-align: left; border-bottom: 1px solid var(--line); }
.event-content img { display: block; max-width: 100%; height: auto; margin: 1rem auto; }
.event-content h2 { border-color: #d38ba5; }
.guide-figure { margin: 1.25rem 0 2rem; padding: .65rem; border: 1px solid var(--line); border-radius: 10px; background: #fafafa; break-inside: avoid; }
.guide-figure img { display: block; max-width: 100%; height: auto; margin: auto; }
.guide-figure a { display: block; }
.guide-figure figcaption { margin-top: .65rem; color: var(--muted); font-size: .85rem; line-height: 1.5; }

/* Phone layout refinements */
h1, h2, .eyebrow, .subtitle { text-wrap: balance; }
.back-to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 10; padding: .55rem .9rem; color: #fff; background: var(--accent); border-radius: 999px; font-size: .9rem; font-weight: 700; text-decoration: none; box-shadow: 0 2px 8px #0003; }
@media (min-width: 900px) { .back-to-top { display: none; } }
@media (max-width: 600px) {
  main { margin: 1rem auto 2rem; }
  .tournament-hero { padding: 1.5rem .75rem; }
  .tournament-heading { padding: .75rem; }
  .tournament-badge { width: 96px; }
  .rules ul, .rules ol { padding-left: 1.25rem; }
  .rules ol ol, .rules ul ul { padding-left: 1rem; }
  .contents { gap: .25rem 1.25rem; }
  .contents a:not(.register-button) { padding: .45rem 0; }
  .contents .register-button { flex-basis: 100%; text-align: center; padding: .8rem 1rem; }
  .event-content td, .event-content th { padding: .6rem .4rem; }
  .guide-figure { padding: .4rem; margin: 1rem 0 1.5rem; }
  h2 { margin-top: 2.25rem; }
}
@media print { .back-to-top { display: none; } }

/* ---- Blossom Bash: playful touches ---- */
.blossom-bash .rules h2, .blossom-bash .venue-map h2 { padding-top: 0; border-top: 0; }
.blossom-bash .rules h2::before, .blossom-bash .venue-map h2::before { content: "✿"; margin-right: .45rem; color: #d38ba5; font-size: .9em; }
.blossom-bash .contents, .blossom-bash .rules, .blossom-bash .venue-map { box-shadow: 0 6px 24px -14px #8c345440; }
.blossom-bash .register-button { box-shadow: 0 4px 14px -4px #8c345480; transition: transform .15s ease, background .15s ease; }
.blossom-bash .register-button:hover { transform: translateY(-1px); }

.quick-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1.5rem 0; }
.fact { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: 1rem .75rem; text-align: center; line-height: 1.35; background: linear-gradient(180deg, #fff 0%, #fdf3f6 100%); border: 1px solid var(--line); border-radius: 16px; }
.fact-icon { font-size: 1.75rem; line-height: 1.2; }
.fact strong { font-size: 1rem; }
.fact span:last-child { color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .quick-facts { grid-template-columns: 1fr 1fr; } }

.fee-table { overflow: hidden; border-radius: 12px; border: 1px solid var(--line); }
.event-content .fee-table th, .event-content .fee-table td { text-align: center; }
.event-content .fee-table thead th { background: #fbeff3; color: #5e2338; font-size: .9rem; line-height: 1.3; }
.event-content .fee-table .early { background: #fdf6f8; color: var(--accent); font-weight: 750; }
.event-content .fee-table thead .early { background: #f6dde6; }
.fee-note { display: block; font-size: .75rem; font-weight: 600; opacity: .8; }

.rules ol.timeline { list-style: none; margin: 1rem 0 1.5rem .5rem; padding: 0 0 0 1.4rem; border-left: 3px solid #f0d9e1; }
.timeline li { position: relative; margin: 0 0 1rem; line-height: 1.5; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.4rem - 9px); top: .3rem; width: 15px; height: 15px; border-radius: 50%; background: #d38ba5; border: 3px solid #fff; box-shadow: 0 0 0 1px #d38ba5; }
.timeline .date { display: block; font-weight: 750; color: var(--accent); }
.timeline .big-day::before { background: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px #8c345422; }

.local-picks .picks-heading { display: flex; align-items: center; gap: .5rem; font-size: 1.25rem; margin: 2.25rem 0 .75rem; }
.picks { margin: .7rem 0; background: #fffafb; border: 1px solid var(--line); border-radius: 14px; }
.picks summary { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem; padding: .8rem 1rem; cursor: pointer; list-style: none; border-radius: 14px; }
.picks summary::-webkit-details-marker { display: none; }
.picks summary::after { content: "▾"; grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #f6dde6; color: var(--accent); font-size: 1rem; line-height: 1; transition: transform .2s ease; }
.picks[open] summary::after { transform: rotate(180deg); }
.picks summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.picks-title { font-weight: 750; line-height: 1.35; }
.picks-meta { grid-column: 1; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.rules ul.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem; margin: 0; padding: 0 1rem 1rem; list-style: none; }
.picks .pick-list li, .fun-list li { margin: 0; padding: .7rem .85rem; line-height: 1.45; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.pick-list strong { display: block; margin-bottom: .15rem; }
.pick-list span { color: #5a5458; font-size: .9rem; }
.pick-list i { display: block; margin-top: .35rem; font-style: normal; font-size: .8rem; color: var(--muted); }
.rules ul.fun-list { padding: 0; }
.fun-list li { background: linear-gradient(180deg, #fff 0%, #fdf3f6 100%); }
@media print { .picks summary::after { display: none; } .quick-facts { grid-template-columns: repeat(4, 1fr); } }
