/* Baby Bull Gallery — the Friday Wheel (settled design).
   Crowned crest at the top naming the winner; the sculpted laurel
   wreath alone as the perimeter; one open black name disc; a sweeping
   beam of light carrying the golden head of light. */

.wheel-layout{display:grid;grid-template-columns:minmax(0,460px) minmax(0,1fr);gap:28px;align-items:start}
@media (max-width:900px){.wheel-layout{grid-template-columns:1fr}}

.wheel-stage{position:relative;max-width:400px;margin:0 auto;padding-top:6px;padding-bottom:38px}
.wheel-crest{position:absolute;left:50%;top:0;transform:translateX(-50%);width:34%;z-index:6;pointer-events:none;mix-blend-mode:screen;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 7%,#000 93%,transparent 100%),linear-gradient(to bottom,transparent 0,#000 3.5%,#000 97%,transparent 100%);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent 0,#000 7%,#000 93%,transparent 100%),linear-gradient(to bottom,transparent 0,#000 3.5%,#000 97%,transparent 100%);mask-composite:intersect}
/* The crest artwork is never cropped: the page-hero frame shows it whole. */
body[data-page="wheel"] .page-hero-art img{object-fit:contain;background:#000}
/* Founder's size call (2026-11-16, from his phone): the bowl read a
   touch big for the page's flow. The disc — and with it the whole
   wheel assembly inside the SVG — comes down ~6% (314px → 295px at a
   390px phone). Margins stay auto, so the assembly keeps the page's
   centre line; the crest above and the controls below are untouched. */
.wheel-disc{position:relative;width:min(calc(100% - 67px),349px);margin:22% auto 0;aspect-ratio:1/1;container-type:inline-size;filter:drop-shadow(0 18px 34px rgba(0,0,0,.45))}
.wheel-disc svg{width:100%;height:100%;display:block}
/* The laurel wreath as an HTML overlay on the disc (wheel.js places it):
   the exact geometry it held inside the SVG (-40.5, -24, 441x441 of the
   360 viewBox), but unclipped — the SVG viewport cut its bottom flourish.
   Above the disc's own drawing, below the crest (z-index 6). */
.wheel-laurel{position:absolute;left:-11.25%;top:-6.67%;width:122.5%;height:122.5%;pointer-events:none;z-index:5}
/* The pick station (founder's order, 2026-11-16; the arrow itself is
   the founder's own chosen ceremonial arrow, swapped in 2026-11-17 to
   his approved example): a fixed marker at 12 o'clock, centred on the
   crest logo's split line (the crest asset's split measures dead
   centre, and crest, disc and arrow share the page centreline),
   pointing down at the winning segment's resting place. The fletching
   vanes are black — his call, so the arrow reads against the gold
   wreath; spine, shaft and head stay gold. It lives inside the disc
   so it scales with the wheel (cqw units — the disc is a size
   container) and holds its station through the celebration zoom; it
   never moves, at rest or mid-spin. Above the laurel (z 5), below
   the crest (stage z 6 paints over the disc subtree).
   Placement, translated from the approved example into disc units:
   width 4.85cqw, top -1.5cqw, so the tip rests at 16.5cqw from the
   disc's top edge (59.5 of 360 SVG units) — just past the wreath's
   inner leaves. Bullhead clearance, measured on the real geometry:
   the travelling head (49.5-unit image, artwork 46.2 units tall,
   orbit radius 72.05) reaches its highest at top-dead-centre with
   its top edge 84.7 units from the disc's top; the parked head's top
   edge sits at 96.8 units. The tip clears the travelling head by
   ~25 units (~7cqw) and the parked head by ~37 units — the head
   passes under the point with daylight to spare, as the founder
   required when he asked for the lift.
   Tip adjustment (founder's phone verdict on the live build,
   2026-11-17 16:18 CST, confirmed on a mockup drawn over his own
   screenshot — "the tip of the arrow has to be down just the width
   of the arrow below the bottom of the top of the wreath"): the
   arrow is lowered so the TIP sits exactly one arrow-width
   (4.85cqw) below the inner edge of the wreath's top band. That
   inner edge, measured on the laurel artwork across the arrow's
   own span (innermost leaves at radius ~121–122 near the top),
   sits at 16.4cqw (59.1 units) from the disc's top; so the tip
   rests at 21.25cqw (76.5 units) and top moves to 3.2cqw (arrow
   height 18.04cqw at 4.85cqw wide, asset 422×1570). Nothing else
   about the arrow changes — same asset, same width, same centre
   line, still permanently fixed. Bullhead clearance re-measured
   at the deeper station: the travelling head's top edge (84.7
   units) now clears the tip by ~8.2 units (~2.3cqw), the parked
   head (96.8 units) by ~20.3 units (~5.6cqw) — the head still
   passes under the point untouched, verified in the rig in
   motion during practice spins, not just on paper. */
.wheel-arrow{position:absolute;left:50%;top:3.2cqw;transform:translateX(-50%);width:4.85cqw;z-index:6;pointer-events:none;filter:drop-shadow(0 4px 6px rgba(0,0,0,.6))}
.wheel-arrow img{display:block;width:100%;height:auto}
.wheel-name{font-family:"Libre Caslon Display",Cinzel,Georgia,serif;fill:#e6c860;font-weight:700}
.wheel-empty-text{font-family:Cinzel,Georgia,serif;fill:#c9b586;font-size:13px}
.wheel-stage.zoomed .wheel-disc{transform:scale(1.55);transform-origin:50% 6%;transition:transform .9s cubic-bezier(.19,1,.22,1);z-index:4}
.wheel-disc{transition:transform .6s ease}

/* the sweeping beam + the head of light (inside the SVG) */
.wheel-beam-g{transform-origin:180px 180px;animation:wheel-sweep 11s linear infinite;mix-blend-mode:screen}
/* The head rides at half size, centred on the beam's centreline, its
   axis on the radial line: a fixed local rotation equal to its home
   azimuth, applied only while the CSS sweep drives it (.beam-js is
   the script's pose channel and must not see a stylesheet transform). */
.beam-head-img{transform-origin:213.3px 116.1px;opacity:.94}
.beam-head-img:not(.beam-js){transform:rotate(27.5deg)}
/* Head-as-picker landing: on the final approach the script takes the
   beam and the head over from the CSS sweep (.beam-js kills the CSS
   animation so the script-set transforms rule), glides the head to
   the winning segment and parks it there. */
.wheel-beam-g.beam-js{animation:none}
.beam-head-img.beam-js{animation:none}
@keyframes wheel-sweep{to{transform:rotate(360deg)}}

/* celebration — balloons + ribbons, holds until the stage is tapped */
.wheel-party{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:7}
.wb-balloon{position:absolute;bottom:-70px;width:26px;height:34px;border-radius:50% 50% 50% 50%/55% 55% 45% 45%;opacity:.92;animation:wb-rise 5s ease-in forwards}
.wb-ribbon{position:absolute;top:-40px;width:7px;height:30px;opacity:.9;animation:wb-fall 3.6s ease-in forwards}
@keyframes wb-rise{to{transform:translateY(-120vh) rotate(14deg)}}
@keyframes wb-fall{to{transform:translateY(110vh) rotate(320deg)}}

.wheel-controls{display:flex;gap:10px;justify-content:center;margin:16px 0 6px;flex-wrap:wrap}
.wheel-congrats{max-width:400px;margin:14px auto;border:1px solid rgba(217,164,65,.65);border-radius:14px;padding:18px;background:linear-gradient(150deg,#2a2010,#16110a);color:#f5e6c4;text-align:center}
.wheel-congrats h3{margin:0 0 8px;color:#e9c766;font-family:Cinzel,Georgia,serif}
.wheel-practice{max-width:400px;margin:22px auto 0}
.wheel-log p{margin:4px 0;font-size:13.5px;color:var(--muted)}
.wheel-card{margin-bottom:18px;padding:20px}
.wheel-pool{display:flex;justify-content:space-between;align-items:baseline;border:1px solid rgba(217,164,65,.5);border-radius:12px;padding:12px 16px;margin:10px 0;background:#0b0906;color:#e9c766}
.wheel-pool b{font-size:22px}
.wheel-formula div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid var(--line);font-size:14px}
.wheel-formula div span{color:var(--muted)}
.wheel-fine{font-size:12.5px;color:var(--muted);margin-top:12px}
.wheel-entrant{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.wheel-entrant span{color:var(--muted);font-size:13px}
.wheel-honour-row{padding:8px 0;border-bottom:1px solid var(--line);font-size:14.5px}
.wheel-desk{margin-top:12px}
.wheel-card input{width:100%;padding:11px;margin:8px 0;border-radius:8px;border:1px solid #3a3220;background:#1a1a1e;color:#f5edd8}

@media (prefers-reduced-motion: reduce){
  .wheel-beam-g,.beam-head-img{animation:none}
  .wb-balloon,.wb-ribbon{animation:none;display:none}
  .wheel-stage.zoomed .wheel-disc{transform:none}
}
