:root{
  --ink:#101827;
  --bg:#182b2c;
  --panel:rgba(255,255,255,.10);
  --line:rgba(255,255,255,.18);
  --yellow:#f5c84c;
  --pink:#ff8db7;
  --blue:#80d7ff;
  --green:#b8f29a;
  --sans:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
*{ box-sizing:border-box; }
html,body{ min-height:100%; }
body{
  margin:0;
  font-family:var(--sans);
  color:#fff;
  background:
    radial-gradient(900px 520px at 18% 8%, rgba(245,200,76,.22), transparent 62%),
    radial-gradient(900px 600px at 86% 18%, rgba(128,215,255,.18), transparent 58%),
    linear-gradient(180deg, #213f42 0%, #142326 100%);
}
.live-stage{
  min-height:100vh;
  display:grid;
  grid-template-columns: minmax(320px, 520px) minmax(420px, 1fr);
  grid-template-rows: 1fr auto 1fr;
  gap: 24px;
  align-items:center;
  padding: 44px min(5vw, 80px);
}
.back-link{
  position:fixed;
  left:24px;
  top:20px;
  color:rgba(255,255,255,.72);
  text-decoration:none;
  font-size:14px;
  font-weight:800;
}
.back-link:hover{ color:#fff; }
.live-copy{
  grid-column:1;
  grid-row:1 / span 2;
}
.eyebrow{
  color:var(--yellow);
  font-size:14px;
  font-weight:950;
  letter-spacing:.08em;
}
h1{
  margin: 12px 0 14px;
  font-size: clamp(54px, 6vw, 104px);
  line-height:.95;
  letter-spacing:0;
}
p{
  margin:0;
  max-width: 520px;
  color:rgba(255,255,255,.72);
  font-size: clamp(18px, 1.8vw, 28px);
  line-height:1.45;
}
.live-status{
  display:inline-flex;
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 999px;
  background:rgba(255,255,255,.12);
  border:1px solid var(--line);
  color:rgba(255,255,255,.88);
  font-weight:900;
}
.live-machine{
  grid-column:2;
  grid-row:1 / span 2;
  justify-self:center;
  align-self:center;
}
.live-gacha{
  width:min(460px, 40vw);
  text-align:center;
}
.live-gacha.is-drawing{
  animation: machineShake .72s ease;
}
@keyframes machineShake{
  0%,100%{ transform: rotate(0); }
  20%{ transform: rotate(-4deg); }
  40%{ transform: rotate(4deg); }
  60%{ transform: rotate(-3deg); }
  80%{ transform: rotate(3deg); }
}
.live-gacha-dome{
  position:relative;
  height: min(420px, 44vh);
  border-radius: 230px 230px 80px 80px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.25);
  box-shadow: inset 0 20px 60px rgba(255,255,255,.14), 0 28px 70px rgba(0,0,0,.24);
  overflow:hidden;
}
.live-gacha-dome span{
  position:absolute;
  width: 78px;
  height: 78px;
  border-radius:50%;
  background:var(--yellow);
  box-shadow: 0 14px 26px rgba(0,0,0,.18);
}
.live-gacha-dome span:nth-child(1){ left:14%; top:24%; }
.live-gacha-dome span:nth-child(2){ left:40%; top:15%; background:var(--pink); }
.live-gacha-dome span:nth-child(3){ left:64%; top:30%; background:var(--blue); }
.live-gacha-dome span:nth-child(4){ left:30%; top:58%; background:var(--green); }
.live-gacha-dome span:nth-child(5){ left:58%; top:62%; background:#fff1a8; }
.live-gacha-base,
.claw-base{
  width:68%;
  margin: -8px auto 0;
  padding: 26px 0;
  border-radius: 0 0 38px 38px;
  background: var(--yellow);
  color:#17212b;
  font-size:30px;
  font-weight:950;
  letter-spacing:.08em;
  box-shadow: 0 24px 50px rgba(0,0,0,.24);
}
.live-claw{
  width:min(520px, 42vw);
  text-align:center;
}
.claw-cabinet{
  position:relative;
  height:min(460px, 48vh);
  border-radius: 34px 34px 22px 22px;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.24);
  box-shadow: inset 0 20px 60px rgba(255,255,255,.10), 0 28px 70px rgba(0,0,0,.24);
  overflow:hidden;
}
.claw-rail{
  position:absolute;
  left:10%;
  right:10%;
  top:58px;
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,.36);
}
.claw-hand{
  position:absolute;
  left: var(--drop-x, 50%);
  top:64px;
  width:70px;
  height:120px;
  transform: translateX(-50%);
  transition:left .32s ease;
}
.live-claw.is-drawing .claw-hand{
  animation: clawDrop .98s ease;
}
@keyframes clawDrop{
  0%{ transform: translate(-50%, 0); }
  42%{ transform: translate(-50%, 118px); }
  70%{ transform: translate(-50%, 118px) rotate(2deg); }
  100%{ transform: translate(-50%, 0); }
}
.claw-hand::before{
  content:"";
  position:absolute;
  left:31px;
  top:0;
  width:8px;
  height:78px;
  background:rgba(255,255,255,.72);
  border-radius:999px;
}
.claw-hand i{
  position:absolute;
  left:23px;
  top:72px;
  width:24px;
  height:42px;
  border:5px solid var(--yellow);
  border-top:none;
  border-radius:0 0 20px 20px;
}
.claw-hand i:nth-child(1){ transform:rotate(28deg); transform-origin:50% 0; }
.claw-hand i:nth-child(2){ transform:rotate(0); }
.claw-hand i:nth-child(3){ transform:rotate(-28deg); transform-origin:50% 0; }
.claw-prizes span{
  position:absolute;
  bottom:36px;
  width:56px;
  height:56px;
  border-radius: 18px 18px 22px 22px;
  background:var(--yellow);
}
.claw-prizes span:nth-child(1){ left:12%; background:var(--pink); }
.claw-prizes span:nth-child(2){ left:28%; background:var(--green); }
.claw-prizes span:nth-child(3){ left:45%; background:#fff1a8; }
.claw-prizes span:nth-child(4){ left:62%; background:var(--blue); }
.claw-prizes span:nth-child(5){ left:78%; background:var(--yellow); }
.live-control{
  grid-column:1 / span 2;
  grid-row:3;
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}
.live-control input{
  width:min(340px, 32vw);
  min-width:220px;
  height:58px;
  border:0;
  border-radius:18px;
  padding:0 18px;
  color:var(--ink);
  font-size:20px;
  font-weight:900;
  outline:none;
}
.live-control button{
  height:58px;
  border:0;
  border-radius:18px;
  padding:0 24px;
  font-size:20px;
  font-weight:950;
  color:#17212b;
  background:var(--yellow);
  cursor:pointer;
}
.live-control button:nth-child(3){
  color:#fff;
  background:rgba(255,255,255,.13);
  border:1px solid var(--line);
}
.live-control button:disabled{ opacity:.55; cursor:not-allowed; }
.live-result{
  position:fixed;
  left:50%;
  bottom:28px;
  transform:translateX(-50%);
  width:min(980px, 86vw);
  padding:18px 22px;
  border-radius:22px;
  background:rgba(15,23,42,.42);
  border:1px solid rgba(255,255,255,.15);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  text-align:center;
}
.live-result strong{
  display:block;
  color:#fff5ba;
  font-size: clamp(22px, 2.6vw, 40px);
  line-height:1.1;
}
.live-result span{
  display:block;
  margin-top:8px;
  color:rgba(255,255,255,.76);
  font-size: clamp(15px, 1.5vw, 22px);
}
.live-result .meta{
  color:rgba(255,255,255,.56);
  font-size:15px;
}
@media (max-width: 900px){
  .live-stage{
    grid-template-columns: 1fr;
    grid-template-rows:auto auto auto;
    padding: 72px 20px 180px;
  }
  .live-copy,
  .live-machine,
  .live-control{ grid-column:1; grid-row:auto; }
  .live-gacha,
  .live-claw{ width:min(420px, 86vw); }
}
