/* ==========================================================================
   games/claw-machine/claw.css — Borne PINCE-O-MATIC 3000 (en direct + finale)
   --------------------------------------------------------------------------
   Tout est dessiné en CSS : borne, vitrine, pince, peluches, bonbons.
   1. Mise en page : terminal à gauche, borne en direct à droite ; sur
      téléphone en portrait la borne passe au-dessus, en bandeau compact.
   2. Borne en direct (.cl-live) : la vitrine est un « container » ; les objets
      sont dimensionnés en cqw (1 colonne = 10cqw : 9 colonnes + la trappe),
      donc la borne garde ses proportions de 200 à 400 px de large.
   3. Finale plein écran (.claw-show) et grand ours avec sa pancarte.
   L'ours est construit en « em » : on change sa taille avec font-size.
   Couleurs de la borne : celles du site (tokens.css) + l'ambre du fronton ;
   les peluches ont leurs propres teintes, ce sont des objets.
   ========================================================================== */
:root { --amber: #F2C14E; --amber-deep: #3A2A0C; --metal: #C9D1D9; --metal-dark: #8B98A5; }

/* 1. Mise en page ---------------------------------------------------------- */
.cl-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 27vw, 380px); }
.cl-layout .lxg-win { margin: var(--space-4) 0 var(--space-4) var(--space-4); }
.cl-live { min-height: 0; margin: var(--space-4); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.cl-layout.cl-hide { grid-template-columns: minmax(0, 1fr); }
.cl-layout.cl-hide .cl-live { display: none; }
.cl-layout.cl-hide .lxg-win { margin-right: var(--space-4); }
.lxg-winbar b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-toggle { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: transparent; color: var(--muted); font: 500 var(--fs-xs) var(--mono); cursor: pointer; }
.cl-toggle::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.cl-toggle[aria-pressed="true"] { color: var(--text); border-color: var(--amber); }
.cl-toggle[aria-pressed="true"]::before { background: var(--amber); }
.cl-toggle:hover { color: var(--text); }

/* Éléments communs aux deux bornes --------------------------------------- */
.marquee { position: relative; display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 9px 8px 17px; border-radius: 8px; background: linear-gradient(135deg, #2A1F0A, var(--amber-deep)); border: 1px solid #5C4415; font-family: var(--mono); letter-spacing: .08em; }
.marquee span { color: var(--amber); font-weight: 600; font-size: 15px; text-shadow: 0 0 10px rgba(242, 193, 78, .35); }
.marquee b { color: var(--accent); font-size: 13px; font-weight: 500; }
.lights { position: absolute; left: 12px; right: 12px; bottom: 5px; display: flex; justify-content: space-between; }
.lights i { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); animation: blink 1.2s steps(2, jump-none) infinite; }
.lights i:nth-child(even) { animation-delay: .6s; }
@keyframes blink { 50% { opacity: .2; } }
.rail { position: absolute; left: 0; right: 0; top: 0; height: 7px; background: #3A4756; border-bottom: 1px solid #56667A; z-index: 4; }
.cable { width: 2px; height: 10px; background: linear-gradient(90deg, #7D8894, #C9D1D9, #7D8894); }
.hub { position: absolute; left: 25%; width: 50%; top: 0; height: 36%; border-radius: 4px; background: var(--metal); box-shadow: inset 0 -3px 0 var(--metal-dark); z-index: 2; }
.arm { position: absolute; top: 24%; width: 10%; height: 76%; border-radius: 2px; background: var(--metal); transform-origin: top center; transition: transform .25s ease; z-index: 2; }
.arm::after { content: ""; position: absolute; bottom: -2px; width: 220%; height: 12%; min-height: 3px; border-radius: 2px; background: var(--metal); }
.arm.l { left: 30%; transform: rotate(28deg); } .arm.l::after { left: 0; }
.arm.r { right: 30%; transform: rotate(-28deg); } .arm.r::after { right: 0; }
.grip .arm.l { transform: rotate(6deg); }
.grip .arm.r { transform: rotate(-6deg); }

/* Ours en peluche (unités em) */
.bear { position: relative; width: 4em; height: 5em; }
.bear i { position: absolute; display: block; }
.bear .ear { top: 0; width: 1.3em; height: 1.3em; border-radius: 50%; background: #C68A4E; box-shadow: inset 0 0 0 .3em #A86F38; }
.bear .ear.l { left: .2em; } .bear .ear.r { right: .2em; }
.bear .face { top: .35em; left: .5em; width: 3em; height: 2.8em; border-radius: 50%; background: #C68A4E; z-index: 2; }
.bear .eye { top: 1em; width: .32em; height: .32em; border-radius: 50%; background: #1A1410; }
.bear .eye.l { left: .8em; } .bear .eye.r { right: .8em; }
.bear .muzzle { left: .85em; bottom: .3em; width: 1.3em; height: 1em; border-radius: 50%; background: #EBCFA6; }
.bear .nose { left: .42em; top: .15em; width: .46em; height: .32em; border-radius: 50% 50% 60% 60%; background: #3B2618; }
.bear .body { top: 2.6em; left: .3em; width: 3.4em; height: 2.4em; border-radius: 50% 50% 46% 46%; background: #B97E43; z-index: 1; }
.bear .paw { top: 3.1em; width: .95em; height: .95em; border-radius: 50%; background: #C68A4E; z-index: 5; box-shadow: inset 0 -.15em 0 #A86F38; }
.bear .paw.l { left: 0; } .bear .paw.r { right: 0; }

.chute span { font: 500 10px var(--mono); letter-spacing: .12em; color: var(--muted); }
.flash { animation: flash .45s 2; }
@keyframes flash { 50% { background: rgba(242, 193, 78, .35); border-color: var(--amber); } }

/* 2. Borne en direct ------------------------------------------------------ */
.cl-cab { position: relative; padding: 8px 8px 6px; border: 1px solid var(--line-strong); border-radius: 14px 14px 6px 6px; background: linear-gradient(#1C2632, #121922); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.cl-cab::before, .cl-cab::after { content: ""; position: absolute; top: 56px; bottom: 34px; width: 3px; border-radius: 2px; background: repeating-linear-gradient(var(--amber) 0 6px, transparent 6px 12px); opacity: .5; }
.cl-cab::before { left: 2px; } .cl-cab::after { right: 2px; }
.cl-glass { position: relative; container-type: inline-size; height: 196px; margin-top: 8px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(77, 163, 255, .07), rgba(77, 163, 255, .02) 55%, rgba(0, 0, 0, .25)), var(--bg-deep); }
.cl-glass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .045) 38%, transparent 46%); pointer-events: none; z-index: 5; }

.cl-live .claw { position: absolute; top: 6px; left: calc(var(--x, 0) * 10%); width: 10%; display: flex; flex-direction: column; align-items: center; z-index: 3; transition: left .55s var(--ease); }
.cl-live .chead { position: relative; width: 10cqw; height: 8.5cqw; flex: 0 0 auto; }
.cl-live .cable { width: 3px; }
.cl-live .held { position: absolute; top: 62%; left: 0; right: 0; margin-inline: auto; z-index: 1; }

.cl-floor { position: absolute; left: 0; right: 10%; bottom: 0; height: 34%; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); }
.cl-floor::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: #0B1016; border-top: 1px solid var(--line); }
/* Tas de peluches en décor, derrière les objets jouables */
.cl-floor::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: 0; height: 62%; z-index: 0; opacity: .5; pointer-events: none;
  background:
    radial-gradient(circle at 4% 70%, #6FA8DC 0 5.5cqw, transparent 5.6cqw),
    radial-gradient(circle at 15% 88%, #D98BB3 0 6cqw, transparent 6.1cqw),
    radial-gradient(circle at 27% 76%, #8CC084 0 5cqw, transparent 5.1cqw),
    radial-gradient(circle at 39% 92%, #B39DDB 0 6.2cqw, transparent 6.3cqw),
    radial-gradient(circle at 52% 74%, #E5B84B 0 5cqw, transparent 5.1cqw),
    radial-gradient(circle at 64% 90%, #6FA8DC 0 6cqw, transparent 6.1cqw),
    radial-gradient(circle at 76% 72%, #D98BB3 0 5.2cqw, transparent 5.3cqw),
    radial-gradient(circle at 88% 90%, #8CC084 0 6cqw, transparent 6.1cqw),
    radial-gradient(circle at 99% 76%, #B39DDB 0 5cqw, transparent 5.1cqw); }
.cl-slot { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5%; }
.cl-slot + .cl-slot { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .025); }

.bear.mini { font-size: 2.45cqw; flex: 0 0 auto; }
.ball { width: 8cqw; height: 8cqw; border-radius: 50%; flex: 0 0 auto; background: radial-gradient(circle at 35% 30%, #B8C2CC, #6B7784 55%, #3E4852); box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .35); }
.candy { position: relative; width: 5.4cqw; height: 6.6cqw; flex: 0 0 auto; border-radius: 3px; background: linear-gradient(135deg, #E35D8F, #F29B4E); margin-inline: 1.6cqw; }
.candy i { position: absolute; inset: 25% 18%; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.candy::before, .candy::after { content: ""; position: absolute; top: 25%; width: 1.8cqw; height: 50%; background: #F29B4E; }
.candy::before { left: -1.6cqw; clip-path: polygon(0 0, 100% 30%, 100% 70%, 0 100%); }
.candy::after { right: -1.6cqw; clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 70%); }

.cl-chute { position: absolute; right: 0; bottom: 0; width: 10%; height: 46%; border-left: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); border-radius: 6px 0 0 0; background: rgba(0, 0, 0, .4); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 6px; gap: 4px; }
.cl-chute span { writing-mode: vertical-rl; transform: rotate(180deg); font: 500 9px var(--mono); letter-spacing: .14em; color: var(--muted); }
.cl-chute.has-prize { border-color: var(--amber); background: rgba(242, 193, 78, .1); }
.cl-chute .bear.mini { font-size: 2cqw; }
.cl-chute.has-prize span { color: var(--amber); }

.cl-ruler { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); padding: 5px 0 1px; font: 10px var(--mono); color: var(--muted); text-align: center; }

.cl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cl-stat { display: grid; gap: 3px; align-content: start; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); min-width: 0; }
.cl-k { font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cl-stat b { font: 500 var(--fs-sm) var(--mono); color: var(--text); display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-stat em { font-style: normal; }
.cl-led { position: static !important; width: 8px; height: 8px; border-radius: 50%; background: var(--crit); box-shadow: 0 0 0 3px var(--crit-soft); flex: 0 0 auto; }
.cl-lock.on .cl-led { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.cl-lock { color: var(--crit) !important; } .cl-lock.on { color: var(--ok) !important; }
.cl-gauge { position: relative; height: 5px; margin-top: 2px; border-radius: 3px; background: var(--line); }
.cl-gauge i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--crit); transition: width .5s var(--ease), background .3s; }
.cl-gauge.ok i { background: var(--ok); }
.cl-gauge u { position: absolute; left: 80%; top: -3px; bottom: -3px; width: 2px; background: var(--text-2); border-radius: 1px; }
.cl-mode.bad { color: var(--crit); } .cl-mode.good { color: var(--ok); }
.cl-credits { transition: color .2s; } .cl-credits.lit { color: var(--amber); }

.cl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: step; }
.cl-steps li { counter-increment: step; display: flex; align-items: flex-start; gap: 10px; padding: 7px 10px; border-left: 2px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
.cl-steps li i { position: relative; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; font: 500 10px var(--mono); font-style: normal; color: var(--muted); }
.cl-steps li i::before { content: counter(step); }
.cl-steps li small { font: 10px var(--mono); color: var(--warn); border: 1px dashed var(--warn-line); border-radius: 3px; padding: 0 4px; margin-left: 4px; }
.cl-steps li.next { color: var(--text); border-left-color: var(--accent); background: var(--accent-soft); }
.cl-steps li.next i { border-color: var(--accent); color: var(--accent); }
.cl-steps li.done { color: var(--text-2); }
.cl-steps li.done span { text-decoration: line-through; text-decoration-color: var(--line-strong); }
.cl-steps li.done i { background: var(--ok); border-color: var(--ok); }
.cl-steps li.final { margin-top: 4px; border-top: 1px dashed var(--line); padding-top: 9px; border-radius: 0; }
.cl-steps li code { font: 12px var(--mono); color: var(--amber); }
.cl-steps li.done i::before { content: ""; width: 5px; height: 9px; margin-top: -2px; border: solid #0B1B12; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Téléphone / tablette en portrait : borne en bandeau au-dessus du terminal */
@media (max-width: 860px) and (orientation: portrait), (max-width: 600px) {
  .cl-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .cl-layout .lxg-win, .cl-layout.cl-hide .lxg-win { margin: 6px; grid-row: 2; }
  .cl-live { grid-row: 1; margin: 6px 6px 0; overflow: visible; display: grid; grid-template-columns: minmax(0, 1fr) minmax(112px, 34%); gap: 6px; }
  .cl-cab { padding: 5px 5px 3px; border-radius: 10px 10px 5px 5px; }
  .cl-cab::before, .cl-cab::after { display: none; }
  .cl-cab .marquee { padding: 3px 6px; border-radius: 6px; }
  .cl-cab .marquee span { font-size: 11px; } .cl-cab .marquee b { font-size: 10px; }
  .cl-cab .lights { display: none; }
  .cl-glass { height: clamp(96px, 30vw, 170px); margin-top: 5px; }
  .cl-ruler { font-size: 9px; padding-top: 2px; }
  .cl-stats { grid-template-columns: 1fr; gap: 4px; }
  .cl-stat { padding: 3px 8px; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; }
  .cl-stat b { font-size: 12px; justify-content: flex-end; }
  .cl-k { font-size: 9px; }
  .cl-gauge { grid-column: 1 / -1; margin: 0 0 2px; height: 4px; }
  .cl-lockbox .cl-k { display: none; }
  .cl-lockbox b { grid-column: 1 / -1; justify-content: flex-start; }
  .cl-steps { display: none; }
}
@media (min-width: 601px) and (max-width: 860px) and (orientation: portrait) {
  .cl-live { grid-template-columns: minmax(0, 1fr) 200px; }
  .cl-stat { padding: 7px 10px; }
}
/* Téléphone en paysage : borne étroite à droite, sans la liste d'étapes */
@media (max-height: 500px) and (orientation: landscape) {
  .cl-layout { grid-template-columns: minmax(0, 1fr) min(250px, 36vw); }
  .cl-layout .lxg-win { margin: 4px 0 6px 6px; }
  .cl-live { margin: 4px 6px 6px; gap: 6px; }
  .cl-cab .marquee { padding: 3px 6px; } .cl-cab .marquee span { font-size: 11px; } .cl-cab .marquee b { font-size: 10px; }
  .cl-cab .lights, .cl-cab::before, .cl-cab::after, .cl-steps { display: none; }
  .cl-glass { height: calc(var(--vh100) - 240px); min-height: 80px; margin-top: 4px; }
  .cl-stats { grid-template-columns: 1fr; gap: 4px; }
  .cl-stat { padding: 3px 8px; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; }
  .cl-stat b { font-size: 12px; justify-content: flex-end; }
  .cl-k { font-size: 9px; }
  .cl-gauge { grid-column: 1 / -1; margin: 0 0 2px; height: 4px; }
  .cl-lockbox .cl-k { display: none; }
  .cl-lockbox b { grid-column: 1 / -1; justify-content: flex-start; }
}

/* 3. Finale plein écran --------------------------------------------------- */
.claw-show { position: fixed; inset: 0; z-index: 1100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); background: radial-gradient(ellipse at 50% 40%, rgba(40, 30, 10, .6), rgba(5, 8, 11, .94) 65%); overflow: auto; }
.claw-show .stage { position: relative; display: grid; place-items: center; }
.claw-show .cab { width: min(320px, 88vw); border: 1px solid var(--line-strong); border-radius: 14px 14px 6px 6px; background: linear-gradient(#1C2632, #121922); box-shadow: 0 30px 70px rgba(0, 0, 0, .55); padding: 10px; transition: opacity .5s, transform .5s, filter .5s; }
.claw-show .glass { position: relative; height: clamp(200px, calc(var(--vh100) * .42), 330px); margin-top: 10px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(77, 163, 255, .08), rgba(77, 163, 255, .02) 60%, rgba(0, 0, 0, .25)), var(--bg-deep); }
.claw-show .glass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .05) 38%, transparent 46%); pointer-events: none; }
.claw-show .claw { position: absolute; top: 6px; left: 0; width: 44px; display: flex; flex-direction: column; align-items: center; z-index: 3; }
.claw-show .cable { height: 26px; }
.claw-show .chead { position: relative; width: 44px; height: 34px; }
.claw-show .bear.held { position: absolute; left: 50%; top: 20px; transform: translate(-50%, 0); font-size: 9px; visibility: hidden; z-index: 1; }
.claw-show .bear.held.on { visibility: visible; }
.claw-show .pile { position: absolute; left: 0; right: 84px; bottom: 0; height: 84px; }
.claw-show .pile::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: #0B0F14; border-top: 1px solid var(--line); }
.blob { position: absolute; bottom: 14px; width: 40px; height: 34px; border-radius: 50% 50% 44% 44%; }
.blob .eye { position: absolute; top: 12px; width: 4px; height: 4px; border-radius: 50%; background: #10151B; }
.blob .eye.l { left: 12px; } .blob .eye.r { right: 12px; }
.blob.b1 { left: 4px; background: #6FA8DC; transform: rotate(-10deg); }
.blob.b2 { left: 40px; bottom: 8px; background: #D98BB3; width: 44px; }
.blob.b3 { left: 140px; bottom: 6px; background: #8CC084; transform: rotate(8deg); }
.blob.b4 { left: 172px; background: #B39DDB; width: 36px; height: 30px; }
.claw-show .bear.target { position: absolute; left: 92px; bottom: 16px; font-size: 9px; }
.claw-show .chute { position: absolute; right: 10px; bottom: 0; width: 64px; height: 86px; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 6px 6px 0 0; background: rgba(0, 0, 0, .35); display: grid; place-items: end center; padding-bottom: 8px; }
.claw-show .deck { display: flex; align-items: center; gap: 18px; padding: 12px 14px 4px; }
.stick { position: relative; width: 26px; height: 26px; border-radius: 50%; background: #0B0F14; border: 1px solid var(--line-strong); }
.stick::after { content: ""; position: absolute; left: 8px; top: -14px; width: 8px; height: 22px; border-radius: 4px; background: var(--crit); }
.btn-go { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3); }
.coin { margin-left: auto; font: 12px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; }

/* Prix final : grand ours avec sa pancarte */
.prize { position: absolute; display: grid; place-items: center; opacity: 0; transform: scale(.3) translateY(140px); pointer-events: none; }
.halo { position: absolute; width: 150%; aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; background: repeating-conic-gradient(rgba(242, 193, 78, .16) 0 10deg, transparent 10deg 20deg); -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%); mask: radial-gradient(circle, #000 25%, transparent 68%); }
.bear.big { font-size: min(46px, 12vw, calc(var(--vh100) * .075)); }
.sign { position: absolute; top: 3em; left: 50%; transform: translateX(-50%) rotate(-3deg); z-index: 4; width: 6.6em; padding: .22em .95em .26em; border-radius: .18em; background: #FFF7E6; border: .07em solid #8A5A2E; box-shadow: 0 .1em .25em rgba(0, 0, 0, .35); text-align: center; line-height: 1.15; }
.sign b { display: block; font: 700 .4em var(--sans); color: #2B1D10; }
.sign span { display: block; margin-top: .15em; font: 600 .3em var(--mono); letter-spacing: .06em; color: #2E7D32; text-transform: uppercase; }
.bear.big .paw { top: 3.2em; }
.bear.big .paw.l { left: -1.25em; }
.bear.big .paw.r { right: -1.25em; }
.claw-show > .confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -14px; width: 8px; height: 12px; border-radius: 2px; background: hsl(var(--h, 40deg) 80% 60%); opacity: 0; }

.claw-show.done .cab { opacity: .16; transform: scale(.9); filter: blur(2px); }
.claw-show.done .prize { animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.claw-show.done .halo { animation: spin 18s linear infinite; }
.claw-show.done .confetti i { animation: fall 2.6s linear infinite; }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(calc(var(--vh100) + 20px)) rotate(540deg); } }

.claw-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; position: relative; z-index: 2; }
.claw-close, .claw-lab { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: var(--radius, 6px); border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font: 500 14px var(--sans); cursor: pointer; text-decoration: none; }
.claw-lab { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
@media (max-height: 520px) and (orientation: landscape) {
  .claw-show { flex-direction: row; gap: 24px; }
  .claw-show .glass { height: calc(var(--vh100) - 150px); }
  .claw-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .lights i, .claw-show.done .confetti i, .claw-show.done .halo { animation: none; }
  .claw-show.done .prize { animation: none; opacity: 1; transform: none; }
  .cl-live .claw, .cl-gauge i { transition: none; }
}
