/* Self-hosted fonts (SIL Open Font License). The site CSP blocks Google Fonts. */
@font-face { font-family:'Big Shoulders Display'; font-style:normal; font-weight:700 900; font-display:swap;
  src:url('../fonts/big-shoulders-display-latin-0.woff2') format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400 700; font-display:swap;
  src:url('../fonts/inter-latin-0.woff2') format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Team 8 Ball Championships - 8ballpool.ca
   One stylesheet for every page. No build step; tools/make-graphics.py only
   rewrites the BALLS block at the bottom. */

:root {
  --room: #0c0e0d;
  --room-2: #141816;
  --felt: #11694a;
  --felt-hi: #1a8a5e;
  --felt-deep: #0a4330;
  --cushion: #0b5238;
  --wood-hi: #7a3f1d;
  --wood: #5a2c12;
  --wood-lo: #3d1c0a;
  --cream: #f3ead7;
  --text: #eef0ea;
  --muted: #a8b2ab;
  --mint: #bfe6d2;
  --felt-text: #d5e7dc;
  --chalk: #4f9be8;
  --red: #d7262e;
  --line: rgba(255, 255, 255, .08);
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--room);
  color: var(--text);
  font: 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cream); }
:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header: a wood rail ---------- */
.site-header { background: linear-gradient(var(--wood-hi), var(--wood-lo)); box-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 12px 16px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1.1;
  text-transform: uppercase; letter-spacing: .02em; text-decoration: none; color: var(--cream);
}
.brand img { width: 32px; height: 32px; flex: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: 4px 12px; border-radius: 6px;
  font-family: var(--display); font-weight: 800; font-size: 19px; text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; color: var(--cream); opacity: .85;
}
.nav a:hover { opacity: 1; background: rgba(0, 0, 0, .25); }
.nav a[aria-current="page"] { opacity: 1; background: rgba(0, 0, 0, .35); box-shadow: inset 0 -3px 0 var(--chalk); }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block; padding: 10px 20px 9px; border-radius: 8px;
  font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
}
.btn.cream { background: var(--cream); color: var(--wood-lo); box-shadow: 0 3px 0 #b9a888; }
.btn.cream:hover { background: #fff8e8; }
.btn.line { border: 2px solid rgba(243, 234, 215, .55); color: var(--cream); padding: 8px 18px 7px; }
.btn.line:hover { border-color: var(--cream); }

/* ---------- Home hero: the table under a lamp ---------- */
.hero { background: radial-gradient(ellipse 70% 80% at 50% 45%, #26302b 0%, var(--room) 70%); padding: 48px 0 64px; }
.table-wrap { position: relative; container-type: inline-size; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.table { display: block; width: 100%; height: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .6)); }
.overlay { position: absolute; left: calc(16px + 8.5%); top: 20%; width: 46%; z-index: 1; }
.kicker {
  margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .18em; font-size: max(12px, 1.5cqw); color: var(--mint);
}
.overlay h1 {
  margin: .2em 0 .25em; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: 8.6cqw; line-height: .86; letter-spacing: .005em; white-space: nowrap;
  color: var(--cream); text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}
.overlay h1 span { display: block; font-size: .62em; letter-spacing: .03em; color: var(--mint); }
.overlay p { margin: 0 0 1.1em; font-size: max(13px, 1.65cqw); line-height: 1.5; color: var(--felt-text); max-width: 24em; }
.overlay .btn { font-size: max(15px, 1.9cqw); padding: .5em 1em .45em; }
.next-up {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 .7em;
  padding: .25em .75em .25em .3em; border-radius: 999px; background: rgba(0, 0, 0, .3);
  font-size: max(12px, 1.35cqw); font-weight: 600; color: var(--cream); text-decoration: none;
}
.next-up img { width: 1.6em; height: 1.6em; }
.next-up:hover { background: rgba(0, 0, 0, .45); }

/* The break. Offsets per ball are in the BALLS block at the bottom. */
.b, .cue { transform-box: fill-box; transform-origin: center; }
.b { animation: scatter 1.6s cubic-bezier(.12, .85, .25, 1) .95s both; }
.cue { animation: shot 1.9s cubic-bezier(.3, .1, .3, 1) .35s both; }
@keyframes scatter {
  from { transform: translate(0, 0) rotate(0); }
  to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}
@keyframes shot {
  0% { transform: translate(0, 0); }
  32% { transform: translate(var(--hx), 0); animation-timing-function: cubic-bezier(.1, .8, .3, 1); }
  100% { transform: translate(var(--ex), var(--ey)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .b { animation: none; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
  .cue { animation: none; transform: translate(var(--ex), var(--ey)); }
}

/* ---------- Sections ---------- */
.sec { padding: 72px 0; }
.sec-title {
  margin: 0 0 36px; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(38px, 5vw, 60px); line-height: .95; color: var(--cream);
}
.sec-title::after {
  content: ""; display: block; width: 84px; height: 6px; margin-top: 14px; border-radius: 3px; background: var(--chalk);
}
.sec.alt { background: var(--room-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Mini tables: wood frame, felt inside ---------- */
.frame { border-radius: 22px; padding: 12px; background: linear-gradient(var(--wood-hi), var(--wood-lo)); box-shadow: 0 24px 40px rgba(0, 0, 0, .45); }
.felt {
  border-radius: 12px; padding: 30px;
  background: radial-gradient(ellipse at 30% 20%, var(--felt-hi) 0%, var(--felt) 45%, var(--felt-deep) 100%);
  box-shadow: inset 0 0 0 4px var(--cushion), inset 0 10px 30px rgba(0, 0, 0, .35);
  color: var(--felt-text);
}
.label { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 15px; color: var(--mint); }
.when { font-family: var(--display); font-weight: 800; text-transform: uppercase; color: #fff; }
.status {
  display: inline-block; margin: 6px 0 16px; padding: 3px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; background: rgba(0, 0, 0, .28); color: #cfe3d7;
}
.status.upcoming { background: var(--cream); color: var(--wood-lo); }
.status:empty { display: none; }
.logo-card { background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 12px 24px rgba(0, 0, 0, .35); }
.logo-card.photo { padding: 0; overflow: hidden; background: #08132b; }
.logo-card.photo img { width: 100%; }
.ball-badge { display: block; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }

/* Home event cards */
.events { display: grid; gap: 28px; }
.ev .felt { display: grid; grid-template-columns: auto 1fr 230px; gap: 30px; align-items: center; }
.ev h3 { margin: 2px 0 6px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(32px, 4vw, 48px); line-height: .95; color: var(--cream); }
.ev .when { font-size: clamp(24px, 2.6vw, 30px); }
.ev .where { margin: 0 0 4px; }
.ev .logo-card { transform: rotate(2deg); }

/* How to enter */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.step h3 { margin: 6px 0 4px; font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; color: var(--cream); }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Event pages ---------- */
.event-hero { padding: 44px 0 56px; background: radial-gradient(ellipse 70% 90% at 50% 0%, #26302b 0%, var(--room) 75%); }
.event-hero .felt { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: center; padding: 36px; }
.event-hero .ball-badge { width: 84px; height: 84px; margin-bottom: 10px; }
.event-hero h1 {
  margin: 4px 0 8px; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 6vw, 72px); line-height: .9; color: var(--cream);
}
.event-hero .when { margin: 0; font-size: clamp(26px, 3.2vw, 36px); }
.event-hero .venue { margin: 2px 0 0; font-size: 19px; }
.event-hero .logo-card { transform: rotate(2deg); }
.event-hero .btns { margin-top: 22px; }
.notice {
  margin: 20px 0 0; padding: 12px 16px; border-radius: 8px;
  background: rgba(0, 0, 0, .25); border-left: 4px solid var(--cream); color: var(--cream);
}

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fact { background: var(--room-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 24px; }
.fact h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; color: var(--cream); }
.fact p, .fact ul { margin: 0; color: var(--muted); }
.fact ul { padding-left: 18px; }
.fact li + li { margin-top: 6px; }
.fact .fact-btns { margin-top: 14px; }
.rules-btns { margin-top: 24px; }
.fact .big { display: block; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; color: var(--cream); margin: 4px 0 4px; }

/* Schedule */
.schedule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.day { background: var(--room-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.day header { padding: 18px 22px 14px; background: linear-gradient(135deg, var(--felt) 0%, var(--felt-deep) 100%); border-bottom: 4px solid var(--cushion); }
.day h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; text-transform: uppercase; color: var(--cream); }
.day .time { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: 19px; text-transform: uppercase; letter-spacing: .04em; color: var(--mint); }
.day .scroll { overflow-x: auto; }
.day table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.day th {
  padding: 10px 14px; text-align: left; white-space: nowrap;
  font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.day td { padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.day td:first-child { font-weight: 700; color: var(--cream); }
.day tr:last-child td { border-bottom: 0; }
.day .fee { font-weight: 700; color: var(--cream); }
.day .split { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.day .rule { margin: 0; padding: 12px 22px; font-size: 14px; font-weight: 600; color: #ffd9d9; background: rgba(215, 38, 46, .18); border-top: 1px solid rgba(215, 38, 46, .4); }
.fee-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 24px; }
.extras .fact dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.extras .fact dt { color: var(--muted); }
.extras .fact dd { margin: 0; font-weight: 700; color: var(--cream); text-align: right; }
.banner-new {
  margin-top: 24px; padding: 22px 26px; border-radius: 16px;
  background: linear-gradient(100deg, #9c1218 0%, var(--red) 60%, #e8472b 100%);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px;
}
.banner-new strong { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3.4vw, 38px); line-height: 1; text-transform: uppercase; color: #fff; }
.banner-new span { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; color: #ffe27a; }

.poster { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: center; }
.poster a img { border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.poster p { color: var(--muted); }

/* ---------- 404 ---------- */
.lost { padding: 88px 0 96px; text-align: center; }
.lost img { width: 110px; height: 110px; margin: 0 auto 18px; }
.lost h1 { margin: 0 0 10px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 7vw, 76px); line-height: .9; color: var(--cream); }
.lost p { color: var(--muted); margin: 0 0 24px; }
.lost .btns { justify-content: center; }

/* ---------- Footer: rail with diamond sights ---------- */
.site-footer { background: linear-gradient(var(--wood-hi), var(--wood-lo)); color: var(--cream); }
.site-footer .sights { height: 14px; background: radial-gradient(circle, #efe6d2 0 2.5px, transparent 3px) center / 120px 14px repeat-x; opacity: .8; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px 16px 26px; font-size: 15px; }
.site-footer p { margin: 0; }
.site-footer a { font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .schedule, .extras, .facts { grid-template-columns: 1fr; }
  .poster { grid-template-columns: 240px 1fr; }
}
@media (max-width: 860px) {
  .ev .felt { grid-template-columns: 1fr 190px; grid-template-areas: "ball logo" "text logo"; gap: 14px 24px; align-items: start; }
  .ev .felt > .ball-badge { grid-area: ball; width: 76px; height: 76px; }
  .ev .felt > .ev-text { grid-area: text; }
  .ev .logo-card { grid-area: logo; align-self: center; }
  .steps { grid-template-columns: 1fr; }
  .event-hero .felt { grid-template-columns: 1fr 220px; gap: 24px; padding: 28px; }
}
@media (max-width: 700px) {
  .hero { padding: 28px 0 36px; }
  .table-wrap { display: flex; flex-direction: column; }
  .overlay { position: static; width: auto; padding: 0 0 22px; }
  .overlay h1 { font-size: clamp(48px, 15vw, 72px); white-space: normal; }
  .overlay p { font-size: 16px; color: var(--muted); }
  .overlay .btn { font-size: 18px; }
  .kicker { font-size: 13px; }
  .next-up { font-size: 14px; }
  .ev .felt { grid-template-columns: 1fr; grid-template-areas: "ball" "text" "logo"; padding: 22px; gap: 14px; }
  .ev .logo-card { max-width: 260px; justify-self: start; transform: rotate(-1.5deg); }
  .event-hero .felt { grid-template-columns: 1fr; padding: 22px; }
  .event-hero .logo-card { max-width: 260px; transform: rotate(-1.5deg); order: -1; }
  .event-hero .ball-badge { width: 64px; height: 64px; }
  .poster { grid-template-columns: 1fr; }
  .poster a { max-width: 360px; }
  .nav a { font-size: 17px; padding: 4px 9px; }
  .brand { font-size: 21px; }
}

/* Ball break offsets - generated by tools/make-graphics.py, do not edit by hand. */
/* BALLS:START */
.b1 { --dx:-95.0px; --dy:-112.0px; --rot:-133deg; }
.b2 { --dx:139.9px; --dy:-165.3px; --rot:4deg; }
.b3 { --dx:153.8px; --dy:11.4px; --rot:141deg; }
.b4 { --dx:-14.3px; --dy:128.1px; --rot:-262deg; }
.b5 { --dx:-149.5px; --dy:183.2px; --rot:-125deg; }
.b6 { --dx:37.5px; --dy:-78.6px; --rot:12deg; }
.b7 { --dx:155.7px; --dy:191.3px; --rot:149deg; }
.b8 { --dx:-9.2px; --dy:38.0px; --rot:-254deg; }
.b9 { --dx:-130.1px; --dy:197.3px; --rot:-117deg; }
.b10 { --dx:163.8px; --dy:-147.4px; --rot:20deg; }
.b11 { --dx:-84.3px; --dy:-110.1px; --rot:157deg; }
.b12 { --dx:10.5px; --dy:52.8px; --rot:-246deg; }
.b13 { --dx:-169.5px; --dy:2.6px; --rot:-109deg; }
.b14 { --dx:100.7px; --dy:164.7px; --rot:28deg; }
.b15 { --dx:-12.5px; --dy:-94.0px; --rot:165deg; }
.cue { --hx:463px; --ex:360px; --ey:58px; }
/* BALLS:END */
