/* ==========================================================================
   dock.css — action stack + chip carousel, in DESIGN pixels

   Reference offsets, measured from the bottom edge of the stage:
     repeat right 38, bottom 252, 62 x 62
     x2    right 38, bottom 158, 62 x 62
     spin  right 26, bottom  18, 110 x 110
     rail  left  50, bottom  12, 460 x 86

   Shifted outward from the reference offsets to clear the widened board.
   ========================================================================== */

/* ---------------------------- ACTION STACK ------------------------------ */
.act{
  position:absolute;right:16px;
  width:98px;height:98px;border-radius:50%;
  display:grid;place-items:center;
  color:#d7f5e5;
  border:2.5px solid rgba(190,255,220,.5);
  background:
    radial-gradient(70% 70% at 34% 26%, rgba(255,255,255,.24), rgba(255,255,255,0) 65%),
    linear-gradient(180deg,rgba(52,156,108,.75),rgba(6,72,44,.9));
  background-color:#0b663b;
  box-shadow:0 6px 0 rgba(3,44,26,.85), 0 12px 22px rgba(0,0,0,.45),
             inset 0 2px 0 rgba(255,255,255,.32);
  transition:transform .13s ease, filter .18s ease, opacity .2s ease;
}
.act i, .act svg{display:grid;place-items:center;width:46px;height:46px;stroke-width:2.2;}
.act svg{width:46px;height:46px;}
.act:active{transform:translateY(4px);filter:brightness(1.2);}
.act:disabled{opacity:.34;pointer-events:none;}

#clearBtn{
  bottom:370px;
  background:
    radial-gradient(70% 70% at 34% 26%, rgba(255,255,255,.24), rgba(255,255,255,0) 65%),
    linear-gradient(180deg,rgba(175,48,58,.82),rgba(88,14,22,.95));
  background-color:#7a1a24;
  border:2.5px solid rgba(255,180,190,.55);
  box-shadow:0 6px 0 rgba(48,6,12,.85), 0 12px 22px rgba(0,0,0,.45),
             inset 0 2px 0 rgba(255,255,255,.32);
}
#repeatBtn{bottom:252px;}
#dblBtn   {bottom:134px;}

#dblBtn .x2{
  font-family:var(--font-board);
  font-size:38px;
  font-weight:900;
  letter-spacing:-.02em;
  color:#ffffff;
  text-shadow:0 2px 4px rgba(0,0,0,.6), 0 0 10px rgba(190,255,220,.4);
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  user-select:none;
}

#spinBtn{
  position:absolute;right:16px;bottom:16px;
  width:98px;height:98px;border-radius:50%;
  display:grid;place-items:center;
  color:#eafff3;
  border:3px solid rgba(200,255,225,.55);
  background:
    radial-gradient(70% 70% at 34% 26%, rgba(255,255,255,.32), rgba(255,255,255,0) 62%),
    linear-gradient(180deg,#3fcb86,#0d7d4c);
  background-color:#0f8a52;
  box-shadow:0 8px 0 rgba(3,52,31,.9), 0 18px 30px rgba(0,0,0,.45),
             inset 0 3px 0 rgba(255,255,255,.42);
  transition:transform .12s ease, filter .2s ease, box-shadow .12s ease;
}
#spinBtn i, #spinBtn svg{display:grid;place-items:center;width:50px;height:50px;stroke-width:2.2;}
#spinBtn svg{width:50px;height:50px;}
#spinBtn:active{
  transform:translateY(6px);
  box-shadow:0 2px 0 rgba(3,52,31,.9), 0 8px 14px rgba(0,0,0,.4),
             inset 0 3px 0 rgba(255,255,255,.4);
}
#spinBtn:disabled{filter:grayscale(.6) brightness(.74);pointer-events:none;}
/* Ready pulse. Animating box-shadow forces a repaint on every frame, which
   competes with the wheel for main-thread time; a pseudo-element animated on
   transform + opacity alone stays on the compositor. */
#spinBtn::after{
  content:"";position:absolute;inset:-6px;border-radius:50%;
  border:4px solid rgba(246,207,110,.55);
  opacity:0;pointer-events:none;
}
#spinBtn.ready::after{animation:spinReady 2.2s ease-in-out infinite;}
@keyframes spinReady{
  0%,100%{opacity:0;transform:scale(.94)}
  50%    {opacity:1;transform:scale(1.06)}
}

/* ----------------------------- CHIP TRAY --------------------------------- */
#rail{
  position:absolute;left:16px;bottom:14px;width:574px;height:98px;
  display:flex;align-items:center;justify-content:center;
}

#chipRail{
  width:100%;height:86px;
  display:flex;gap:18px;align-items:center;justify-content:center;
  padding:12px 18px;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(0,0,0,.64),rgba(0,0,0,.8));
  border:2px solid rgba(255,255,255,.12);
  box-shadow:inset 0 3px 9px rgba(0,0,0,.65), 0 6px 16px rgba(0,0,0,.3);
}

.chipBtn{
  position:relative;flex:0 0 auto;
  width:62px;height:62px;border-radius:50%;
  display:grid;place-items:center;
  font-size:20px;font-weight:900;color:#fff;
  text-shadow:0 2px 3px rgba(0,0,0,.75);
  box-shadow:
    0 4px 0 rgba(0,0,0,.5),
    0 9px 15px rgba(0,0,0,.45),
    inset 0 -6px 9px rgba(0,0,0,.38),
    inset 0 4px 6px rgba(255,255,255,.45);
  transition:transform .16s var(--ease-pop), filter .16s ease;
}
.chipBtn .ring{
  position:absolute;inset:4px;border-radius:50%;
  border:4px dashed rgba(255,255,255,.85);
}
.chipBtn .v{position:relative;z-index:1;}
.chipBtn.sel{transform:translateY(-8px) scale(1.08);filter:brightness(1.12);}
.chipBtn.sel::after{
  content:"";position:absolute;inset:-6px;border-radius:50%;
  border:3px solid var(--gold);
  box-shadow:0 0 18px rgba(246,207,110,.85);
}
