/* CueRunner's site: the app's own room. Black like the app around a tournament-blue table,
   walnut rails with brass sights between sections, the app's red for the buttons. */
/* The site's two typefaces, served with it (no Google Fonts on the way to the first paint):
   Archivo (Omnibus-Type) and Atkinson Hyperlegible (Braille Institute), under the SIL Open Font
   License (fonts/OFL.txt). Files as Google Fonts serves them, split by alphabet. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600 900; font-stretch: 100% 125%; font-display: swap; src: url('/fonts/archivo-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600 900; font-stretch: 100% 125%; font-display: swap; src: url('/fonts/archivo-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600 900; font-stretch: 100% 125%; font-display: swap; src: url('/fonts/archivo-latin.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: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/atkinson-hyperlegible-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/atkinson-hyperlegible-400-latin.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: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/atkinson-hyperlegible-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/atkinson-hyperlegible-700-latin.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; }

:root {
  --black: #000000;
  --cloth: #1563a6;
  --walnut: #2a1a10;
  --walnut-hi: #4a2e1a;
  --brass: #c9a25a;
  --chalk: #e8edf1;
  --muted: #a3afb8;
  --line: #2b3339;
  --gold: #ffd23f;
  --red: #d7263d;
  --red-hot: #ee3a52;
  --display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--black); color: var(--chalk); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 10; background: var(--chalk); color: var(--black); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 12px; }

/* Buttons are the app's Play button: a red pill. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--red); color: #ffffff; text-decoration: none; cursor: pointer;
  font: 800 18px/1 var(--display); font-stretch: 106%; letter-spacing: 0.01em;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.button:hover { background: var(--red-hot); }
.button:active { transform: translateY(1px); }
.button.small { min-height: 44px; padding: 0 18px; font-size: 16px; }
.text-link { font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--gold); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 16px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font: 820 24px/1 var(--display); font-stretch: 108%; letter-spacing: -0.0125em; }

/* Hero: the headline, and the table the shot is played on. */
.hero { display: grid; gap: 40px; align-items: center; max-width: 1200px; margin: 0 auto; padding: clamp(20px, 5vw, 56px) var(--gutter) 64px; }
/* On a phone the glow behind the table would reach past the screen's sides and widen the page (and
   the dock with it): it's cut at the hero's sides, which there are the screen's. */
@media (max-width: 899px) { .hero, .physics { overflow-x: clip; } }
h1, h2 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-weight: 900; font-stretch: 118%; font-size: clamp(54px, 13vw, 128px); line-height: 0.9; letter-spacing: -0.02em; }
h2 { font-weight: 860; font-stretch: 112%; font-size: clamp(36px, 6.2vw, 64px); line-height: 0.98; letter-spacing: -0.015em; margin-bottom: 20px; }
/* The question the hero answers, over its headline. */
.kicker { margin: 0 0 16px; color: var(--gold); font-family: var(--display); font-weight: 760; font-stretch: 110%; font-size: clamp(18px, 2.2vw, 22px); }
.lede { font-size: clamp(19px, 2.3vw, 22px); line-height: 1.5; max-width: 32ch; margin: 24px 0 30px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
/* Apple's App Store badge, as Apple draws it: never under 40 px tall, with room around it. */
.store-badge { display: inline-flex; flex: none; border-radius: 10px; }
.store-badge img { display: block; width: auto; height: 54px; }
.store-badge:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.closing .actions { justify-content: center; }
.note { margin: 18px 0 0; color: var(--muted); font-size: 15px; }

.hero-table { margin: 0; justify-self: center; width: min(100%, 330px); }
.table-wrap { position: relative; }
.table-wrap::before { content: ''; position: absolute; inset: 8% -18%; background: radial-gradient(closest-side, rgba(21, 99, 166, 0.45), transparent); filter: blur(30px); z-index: -1; }
/* The app's own table (its components, drawn in meters), with the rules it needs from the app's stylesheet. */
.table { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.75)); }
/* In two layers, as in the app: the wood and cloth painted once with the table's shadow, the balls
   and lines over them, so a shot playing doesn't repaint the table and its shadow every frame. */
.table-stack { position: relative; }
.table-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; will-change: transform; filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.75)); }
.table-stack > .table { position: relative; filter: none; }
/* The balls and the cue drawn in layers of their own over the table (the app's Table.tsx). */
.table-stack > .table-balls, .table-stack > .table-cue { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.table-stack > .table-balls .ball { pointer-events: auto; }
.table .cloth, .table-art .cloth { fill: var(--cloth); }
.table .pocket-letter, .table-art .pocket-letter { display: none; }
.table .table-marks line, .table-art .table-marks line { stroke: rgba(255, 255, 255, 0.16); stroke-width: 0.002; stroke-dasharray: 0.012 0.01; }
.table .table-marks circle, .table-art .table-marks circle { fill: rgba(255, 255, 255, 0.4); }
.table .felt-logo, .table-art .felt-logo { opacity: 0.17; mix-blend-mode: screen; }
.table .ball-number { fill: #141414; font-family: var(--body); font-weight: 700; }
.table .ghost-ball { fill: rgba(255, 255, 255, 0.14); stroke: #ffffff; }
.table .overlay-label rect { fill: rgba(0, 0, 0, 0.75); }
.table .overlay-label text { fill: #ffffff; font-family: var(--body); font-weight: 700; }
.table .overlay-label.is-quiet rect { fill: rgba(0, 0, 0, 0.4); }
.table .overlay-label.is-quiet text { fill: rgba(255, 255, 255, 0.85); font-weight: 500; }
.table .overlay-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 0.8s ease-out 0.2s forwards; }
.table .overlay-fade { animation: fade-in 0.5s ease-out 0.45s both; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.play {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px 0 16px;
  border: 0; border-radius: 999px; background: var(--red); color: #ffffff; cursor: pointer;
  font: 800 16px/1 var(--display); font-stretch: 106%; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.play:hover { background: var(--red-hot); }
.play svg { width: 14px; height: 14px; }
.play[hidden] { display: none; }
.hero-table figcaption { margin-top: 16px; color: var(--muted); font-size: 15px; text-align: center; }

/* A walnut rail with its sights, between parts of the page. */
.rail { display: flex; justify-content: space-evenly; align-items: center; height: 18px; background: linear-gradient(var(--walnut-hi), var(--walnut)); box-shadow: inset 0 1px 0 rgba(243, 196, 143, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.6); }
.rail i { width: 8px; height: 12px; background: var(--brass); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* Features: words beside the real app. */
.feature { display: grid; gap: 40px; align-items: center; max-width: 1100px; margin: 0 auto; padding: clamp(56px, 9vw, 104px) var(--gutter); }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-copy { max-width: 34rem; }
.feature-copy p { margin: 0 0 16px; }
.aside { color: var(--muted); font-size: 16px; }

.questions { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.questions li { position: relative; padding-left: 26px; font: 700 20px/1.3 var(--display); font-stretch: 104%; }
.questions li::before { content: ''; position: absolute; left: 0; top: 0.32em; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffffff, #d9d6cc); }

.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border: 1px solid #3a4650; border-radius: 999px; font-size: 15px; line-height: 1.2; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 8px 0 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; min-height: 36px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--chalk); color: var(--black); font: 800 17px/1 var(--display);
}

/* A phone with the app running on it: a titanium-edged body with its buttons, a black glass
   screen with the camera cut-out, status bar and home bar over the app, and the light catching
   the glass. Everything is sized from the phone's width (cqw), so it scales as one piece. */
.device { margin: 0; justify-self: center; width: min(76vw, 300px); container-type: inline-size; perspective: 1800px; }
.device-body {
  position: relative; padding: 3.3cqw; border-radius: 16cqw;
  background: linear-gradient(140deg, #6a7077 0%, #2a2e33 9%, #15171a 30%, #0d0f11 55%, #1f2327 82%, #5d636a 100%);
  box-shadow:
    inset 0 0 0 0.45cqw rgba(255, 255, 255, 0.22),
    inset 0 0 0 1.3cqw #08090a,
    0 2.5cqw 5cqw rgba(0, 0, 0, 0.45),
    0 12cqw 26cqw rgba(0, 0, 0, 0.62),
    0 0 40cqw rgba(21, 99, 166, 0.16);
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}
.device-key { position: absolute; width: 1.1cqw; border-radius: 0.6cqw; background: linear-gradient(90deg, #2a2e33, #7a8088 45%, #2a2e33); }
.key-action { left: -0.8cqw; top: 23cqw; height: 7cqw; }
.key-up { left: -0.8cqw; top: 36cqw; height: 12cqw; }
.key-down { left: -0.8cqw; top: 51cqw; height: 12cqw; }
.key-power { right: -0.8cqw; top: 40cqw; height: 19cqw; }
.device-screen { position: relative; overflow: hidden; border-radius: 12.8cqw; background: #000; aspect-ratio: 390 / 844; isolation: isolate; }
.device-screen img, .device-screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The status bar over the app, as on a phone. */
.device-status {
  position: absolute; top: 3.7cqw; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  padding: 0 8.5cqw 0 10cqw; color: #ffffff; font: 600 4.1cqw/1 -apple-system, 'SF Pro Text', system-ui, sans-serif; letter-spacing: -0.01em;
  text-shadow: 0 0 2cqw rgba(0, 0, 0, 0.5); pointer-events: none;
}
.device-status svg { width: 18.5cqw; height: auto; fill: currentColor; }
.device-island { position: absolute; z-index: 3; top: 3cqw; left: 50%; width: 31cqw; height: 9cqw; transform: translateX(-50%); border-radius: 9cqw; background: #000; box-shadow: inset 0 0 0 0.3cqw #0b0c0e; }
.device-island::after { content: ''; position: absolute; right: 6cqw; top: 2.6cqw; width: 3.8cqw; height: 3.8cqw; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3a55, #07090f 60%); }
.device-home { position: absolute; z-index: 2; bottom: 2.2cqw; left: 50%; width: 35cqw; height: 1.4cqw; transform: translateX(-50%); border-radius: 1cqw; background: rgba(255, 255, 255, 0.86); }
/* The glass: a soft sheen across the top corner and a crisp edge. */
.device-screen::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.04) 26%, rgba(255, 255, 255, 0) 42%);
  box-shadow: inset 0 0 0 0.35cqw rgba(255, 255, 255, 0.06);
}

/* The physics part of the page sits on the cloth itself, lit from above. */
.band { background: radial-gradient(ellipse 80% 70% at 50% 42%, #2479c4 0%, #1563a6 48%, #0c4678 100%); box-shadow: inset 0 18px 30px -18px rgba(0, 0, 0, 0.8), inset 0 -18px 30px -18px rgba(0, 0, 0, 0.8); }
.band .feature { color: #ffffff; }
.band .chips li { border-color: rgba(255, 255, 255, 0.45); background: rgba(4, 18, 34, 0.25); }
/* The R shot's caption, on the cloth: light enough to read on the blue. */
.band .hero-table figcaption { color: rgba(255, 255, 255, 0.85); }
.band + .feature { border-top: 0; }

/* Questions */
.faq { max-width: 820px; margin: 0 auto; padding: clamp(56px, 9vw, 104px) var(--gutter) clamp(40px, 6vw, 72px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font: 700 clamp(19px, 2.4vw, 23px)/1.3 var(--display); font-stretch: 104%; }
.faq summary::-webkit-details-marker { display: none; }
.faq p a { color: var(--gold); text-underline-offset: 3px; }
.faq summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--chalk); border-bottom: 2px solid var(--chalk); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { margin: 0 0 22px; max-width: 60ch; color: var(--chalk); }

/* On a phone, the way into the app stays at hand once the hero's buttons scroll away. */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 5;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 999px;
  background: rgba(10, 13, 16, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px #2b3339, 0 14px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(calc(100% + 24px)); transition: transform 0.3s ease;
}
.dock.is-shown { transform: none; }
.dock .brand-mark { width: 24px; height: 24px; flex: none; }
/* On an iPhone (store.js), the dock offers the App Store instead of the browser app. */
.dock-ios, .dock-android { display: none; }
.is-ios .dock .dock-ios, .is-android .dock .dock-android { display: inline-flex; }
.is-ios .dock .dock-web, .is-android .dock .dock-web { display: none; }
.dock span { flex: 1; font-size: 15px; color: var(--chalk); }

.rules .feature-copy { max-width: 44rem; }

/* The close */
.closing { max-width: 820px; margin: 0 auto; padding: clamp(64px, 10vw, 120px) var(--gutter); text-align: center; }
.closing h2 { font-size: clamp(42px, 8vw, 84px); }
.closing p { max-width: 36ch; margin: 0 auto 30px; color: var(--chalk); }

.bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; max-width: 1200px; margin: 0 auto; padding: 32px var(--gutter) 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.bottom p { margin: 0; flex: 1 1 auto; line-height: 1.5; }
.bottom .brand-mark { width: 26px; height: 26px; color: var(--chalk); }
.bottom a { font-weight: 700; color: var(--chalk); text-underline-offset: 4px; }
.legal-links { display: flex; gap: 18px; }
.legal-links a { font-weight: 400; color: var(--muted); }
.legal-links a[aria-current='page'] { color: var(--chalk); }

/* The privacy policy and terms: a plain page to read. */
.legal { max-width: 720px; margin: 0 auto; padding: clamp(16px, 4vw, 40px) var(--gutter) 72px; }
.legal h1 { font-size: clamp(44px, 9vw, 76px); margin-bottom: 10px; }
.legal h2 { font-size: clamp(22px, 3.2vw, 28px); font-stretch: 106%; letter-spacing: 0; margin: 36px 0 8px; }
.legal .effective { color: var(--muted); margin: 0 0 28px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal a { color: var(--gold); text-underline-offset: 3px; }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; }
  .hero-table { width: min(100%, 420px, calc((100svh - 150px) * 0.562)); }
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .feature.flip .feature-copy { order: 2; }
  .rules { grid-template-columns: 1fr; text-align: left; }
  .dock { display: none; }
  /* On a wide screen each phone turns a little toward its words, like it's held up to show you. */
  .device { width: 310px; }
  .device.faces-left .device-body { transform: rotateY(-14deg) rotateX(5deg) rotateZ(1.5deg); }
  .device.faces-right .device-body { transform: rotateY(14deg) rotateX(5deg) rotateZ(-1.5deg); }
  .device:hover .device-body { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .dock, .faq summary::after { transition: none; }
}

/* ---- Chalk: a cube of it chalking a cue tip, and the packs ---- */
.chalk { display: grid; gap: 40px; align-items: center; max-width: 1100px; margin: 0 auto; padding: clamp(56px, 9vw, 104px) var(--gutter); border-top: 1px solid var(--line); }
.chalk .feature-copy { max-width: 36rem; }
.chalk-art { justify-self: center; text-align: center; }
/* A render of a cue chalked on a cube of CueRunner chalk (Blender, site/assets/video/chalk.mp4): it plays
   on black, so it fades into the page at its edges. */
.chalk-film { display: block; width: min(100%, 460px); height: auto; aspect-ratio: 1; margin: 0 auto; background: var(--black); -webkit-mask-image: radial-gradient(closest-side at 50% 52%, #000 74%, transparent); mask-image: radial-gradient(closest-side at 50% 52%, #000 74%, transparent); }
.chalk-caption { margin: 18px auto 0; max-width: 30ch; color: var(--muted); font-size: 15px; }
.chalk-caption strong { color: var(--chalk); }
.packs { list-style: none; margin: 22px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.packs li { position: relative; display: grid; gap: 2px; padding: 14px 14px 12px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, #151a1e, #0f1316); overflow: hidden; }
.packs .pack-name { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.packs .pack-amount { font: 800 clamp(24px, 3vw, 30px)/1.05 var(--display); }
.packs .pack-amount small { font: 700 13px/1 var(--body); color: var(--muted); margin-left: 2px; }
.packs .pack-price { font-weight: 700; margin-top: 4px; }
.packs .pack-tag { position: absolute; top: 20px; right: -34px; transform: rotate(45deg); width: 130px; text-align: center; font: 800 10px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 0; background: var(--gold); color: #1d1600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.packs .is-popular { border-color: rgba(63, 144, 226, 0.6); }
.packs .is-popular .pack-tag { background: #3f90e2; color: #fff; }
.packs .is-pro { grid-column: 1 / -1; border-color: rgba(255, 210, 63, 0.55); background: linear-gradient(135deg, #1a1710, #0f1316 60%); }
.packs .is-pro .pack-amount { color: var(--gold); }
.chalk .chalk-fine { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
@media (min-width: 880px) { .chalk { grid-template-columns: 1fr 1.2fr; } .chalk .packs { grid-template-columns: repeat(2, 1fr); } }

/* The Locker (src/locker.tsx): the app's own table, turning through its looks, and swatches to
   put one on. The section's names start lk-; the swatches are the app's own (sw-). */
.lk-band { border-top: 1px solid var(--line); }
.lk-art { min-width: 0; }
.lk-stage { display: grid; gap: 14px; }
.lk-table { position: relative; }
.lk-table::before { content: ''; position: absolute; inset: 6% 4%; background: radial-gradient(closest-side, rgba(21, 99, 166, 0.35), transparent); filter: blur(34px); z-index: -1; }
.lk-name { margin: 0; text-align: center; color: var(--muted); font-size: 14px; min-height: 1.5em; }
.lk-rows { display: grid; gap: 10px; }
.lk-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 10px; }
.lk-label { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.lk-swatches { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.lk-swatches::-webkit-scrollbar { display: none; }
.lk-swatch { flex: none; width: 48px; height: 48px; border-radius: 13px; border: 1.5px solid rgba(176, 138, 74, 0.4); background: rgba(255, 255, 255, 0.04); display: grid; place-items: center; padding: 0; cursor: pointer; transition: transform 0.15s, border-color 0.15s; }
.lk-swatch:hover { border-color: rgba(255, 210, 63, 0.7); }
.lk-swatch:active { transform: scale(0.95); }
.lk-swatch.is-on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255, 210, 63, 0.3); }
.lk-swatches.is-cue .lk-swatch { width: 124px; }
@media (min-width: 900px) { .lk-band { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
/* The cue film (Blender, brand/source/cue-film -> site/assets/video/cue.mp4): four of the Locker's
   cues rolled on a cloth each, on black, feathered into the page at its edges; under it, the name of
   the cue on screen (film.js). */
.lk-film { grid-column: 1 / -1; margin: 0; min-width: 0; }
.cue-film { display: block; width: 100%; height: auto; aspect-ratio: 2; background: var(--black); -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 82%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 82%, transparent); mask-composite: intersect; }
.lk-film figcaption { display: grid; gap: 8px; justify-items: center; margin-top: 6px; text-align: center; color: var(--muted); font-size: 15px; }
.lk-film-name { font: 800 13px/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.lk-film-name small { font: 700 12px/1.2 var(--body); letter-spacing: 0.04em; text-transform: none; color: var(--muted); margin-left: 4px; }
.lk-film-line { max-width: 54ch; }
.lk-film-line strong { color: var(--chalk); }

/* The app's swatches (components/Locker.tsx). */
.sw-cloth { width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 42% 36%, color-mix(in srgb, var(--dye), #fff 24%), var(--dye) 56%, color-mix(in srgb, var(--dye), #000 38%)); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--cushion), #000 18%), 0 1px 3px rgba(0, 0, 0, 0.6); }
.sw-table { position: relative; width: 38px; height: 38px; border-radius: 8px; background: var(--wood) 30% 40% / auto 320% repeat-x, var(--wood-base); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -8px 10px rgba(0, 0, 0, 0.35); }
.sw-table::after { content: ''; position: absolute; right: -9px; bottom: -9px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, #000 0 46%, var(--leather, #24160d) 50% 100%); }
.sw-table i { position: absolute; left: 34%; top: 34%; width: 11px; height: 7px; transform: translate(-50%, -50%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: radial-gradient(circle at 40% 35%, #fff, #efe4ee 55%, #b9ad98); }
.sw-table i.is-round { width: 8px; height: 8px; clip-path: circle(50%); }
.sw-table.sights-brass i { background: radial-gradient(circle at 40% 35%, #fff3c4, #d9a640 60%, #7a5414); }
.sw-table.sights-gold i { background: radial-gradient(circle at 40% 35%, #fff7d6, #ebb73c 60%, #8a5e0c); }
.sw-table.sights-silver i { background: radial-gradient(circle at 40% 35%, #fff, #cfd5db 60%, #7c858e); }
.sw-table.sights-abalone i { background: radial-gradient(circle at 40% 35%, #e8fff6, #6aa7e8 50%, #b07ad8 75%, #3c6f7a); }
.sw-table.sights-black-pearl i { background: radial-gradient(circle at 40% 35%, #fff, #efe4ee 45%, #b9ad98 62%, #050505 64%); }
.sw-table.leather-brown { --leather: #3a2416; }
.sw-table.leather-black { --leather: #161616; }
.sw-table.leather-tan { --leather: #8a5a30; }
.sw-table.leather-oxblood { --leather: #4a1016; }
.sw-balls { display: flex; padding-left: 6px; }
.sw-ball { position: relative; width: 21px; height: 21px; margin-left: -6px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 34%), radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.38)), var(--ball); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.sw-ball[data-stripe] { background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 34%), radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.38)), linear-gradient(var(--ivory) 0 24%, var(--ball) 24% 76%, var(--ivory) 76%); }
.sw-ball b { width: 10px; height: 10px; border-radius: 50%; background: var(--face); color: var(--ink); font: 800 7px/10px var(--body); text-align: center; }
.finish-pearl .sw-ball::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 64% 70%, rgba(255, 214, 240, 0.45), rgba(201, 247, 255, 0.3) 45%, transparent 70%); }
.finish-satin .sw-ball { filter: saturate(0.85); }
.sw-cue { width: 112px; height: 28px; display: block; }
.sw-chalk { width: 32px; height: 32px; }

/* A new look sweeps in over the one before, a line of light at its edge (the app's own). */
.table-art.is-sweeping { animation: cloth-sweep 0.8s cubic-bezier(0.32, 0.72, 0.24, 1) both; }
.sweep-light { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 0 46%, rgba(255, 255, 255, 0.22) 49.5%, rgba(255, 255, 255, 0.5) 50%, transparent 54%); background-size: 200% 100%; animation: sweep-light 0.8s cubic-bezier(0.32, 0.72, 0.24, 1) both; mix-blend-mode: soft-light; }
@keyframes cloth-sweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sweep-light { from { background-position: 100% 0; opacity: 1; } 92% { opacity: 1; } to { background-position: 0 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .table-art.is-sweeping, .sweep-light { animation: none; } .sweep-light { display: none; } }
