/* 새 게임 9종과 게임 종류 선택 화면 스타일. 기본 토큰과 애니메이션은 style.css 에 있다. */

/* ───── 공통 ───── */
.btn.icon { width: 34px; padding: 6px 0; }
.small { font-size: 13px; font-family: var(--font-body); }
.bigtime.small { font-size: 44px; min-height: 48px; }
.catdesc { margin: -2px 0 0; font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.catdesc .icons { display: flex; flex-wrap: wrap; gap: 6px; font-size: 20px; }
.catdesc .icons i { font-style: normal; animation: popin 300ms var(--spring) both; }
.plist.compact li { padding: 6px 10px; }
.plist.compact .av { width: 26px; height: 26px; font-size: 13px; }
.plist li.good { border-color: var(--good); }
.bigcount { text-align: center; font-family: var(--font-fun); font-size: 40px; font-variant-numeric: tabular-nums; }

/* ───── 랜덤 레이싱 ───── */
.track {
  display: grid; gap: 8px; padding: 10px 8px; border-radius: var(--radius);
  background: linear-gradient(180deg, #2a5d34, #1f4a29); box-shadow: inset 0 0 0 3px rgba(255,255,255,.08);
}
.lane { display: grid; grid-template-columns: 30px 1fr 36px; align-items: center; gap: 6px; }
.lane .av { width: 28px; height: 28px; font-size: 14px; }
.lane-run { position: relative; height: 38px; border-bottom: 2px dashed rgba(255,255,255,.25); }
.lane.me .lane-run { background: rgba(255, 204, 51, .12); border-radius: 8px; }
.runner {
  --x: 0;
  position: absolute; bottom: 2px; left: calc(var(--x) * (100% - 34px));
  font-size: 30px; line-height: 1; transform: scaleX(-1);
  transition: left 120ms linear;
}
.lane.running .runner { animation: gallop 260ms ease-in-out infinite; }
@keyframes gallop { 50% { translate: 0 -5px; } }
.lane.turbo .runner { filter: drop-shadow(0 0 8px var(--accent)); }
.lane.turbo .runner::after { content: "💨"; position: absolute; right: -24px; bottom: 0; font-size: 20px; }
.lane.stun .runner { animation: dizzy 500ms linear infinite; }
@keyframes dizzy { to { rotate: 360deg; } }
.finish { position: absolute; right: -2px; bottom: 4px; font-size: 18px; opacity: .8; }
.lane-place { font-family: var(--font-fun); font-size: 15px; color: var(--accent); text-align: center; }
.lane.last .lane-place { color: var(--hot); }
.lane.last .lane-run { background: rgba(255, 90, 95, .22); border-radius: 8px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-height: 84px; text-align: center; color: var(--muted); font-weight: 700; }
.feed .ev-trip, .feed .ev-banana { color: var(--hot); }
.feed .ev-surge, .feed .ev-turbo { color: var(--accent); }

/* ───── 폭탄 돌리기 ───── */
.bomb-stage {
  position: relative; height: 300px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(circle at 50% 60%, #3a2a6e, var(--bg2)); display: grid; place-items: center;
}
.bomb-stage.mine { background: radial-gradient(circle at 50% 60%, #7a2232, #2b1030); animation: alarm 700ms ease-in-out infinite; }
@keyframes alarm { 50% { box-shadow: inset 0 0 0 4px var(--hot); } }
.bomb-holder { position: absolute; top: 16px; display: grid; justify-items: center; gap: 4px; }
.bomb-holder b { font-family: var(--font-fun); font-weight: 400; font-size: 20px; }
.bomb-icon { position: relative; font-size: 96px; line-height: 1; margin-top: 80px; animation: wobble 900ms ease-in-out infinite; }
@keyframes wobble { 25% { rotate: -8deg; } 75% { rotate: 8deg; } }
.bomb-icon .spark {
  position: absolute; top: 2px; right: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--accent) 50%, transparent 70%); animation: spark 180ms steps(2) infinite;
}
@keyframes spark { 50% { transform: scale(1.6); opacity: .6; } }
.bomb-icon.toss { animation: toss 520ms var(--spring); }
@keyframes toss { 0% { transform: none; } 40% { transform: translate(70px, -80px) scale(.5) rotate(200deg); } 41% { transform: translate(-70px, -80px) scale(.5); } 100% { transform: none; } }
.bomb-target {
  position: absolute; left: 40%; top: 45%; width: 92px; height: 92px; border-radius: 50%; border: 0; z-index: 2;
  background: var(--accent); color: var(--accent-ink); font-family: var(--font-fun); font-size: 24px; cursor: pointer;
  box-shadow: 0 6px 0 #c4661c, 0 0 0 6px rgba(255,204,51,.3);
  transition: left 160ms var(--ease-out), top 160ms var(--ease-out);
  touch-action: manipulation;
}

/* ───── 해적 룰렛 ───── */
.barrel-wrap { position: relative; display: grid; justify-items: center; padding-top: 52px; }
.pirate-head { position: absolute; top: 0; font-size: 64px; line-height: 1; z-index: 0; }
.pirate-head.launch { animation: launch 1100ms var(--spring) both; z-index: 3; }
@keyframes launch {
  0% { transform: none; }
  40% { transform: translateY(-90px) rotate(-20deg) scale(1.3); }
  70% { transform: translateY(-60px) rotate(15deg) scale(1.3); }
  100% { transform: translateY(-70px) scale(1.25); }
}
.barrel {
  position: relative; z-index: 1; width: 100%; max-width: 340px; padding: 18px;
  border-radius: 40% 40% 24px 24px / 22% 22% 24px 24px;
  background: repeating-linear-gradient(90deg, #8a5527 0 28px, #7a4a20 28px 30px);
  box-shadow: inset 0 14px 0 #5c3615, inset 0 -14px 0 #5c3615, 0 8px 0 rgba(0,0,0,.3);
}
.holes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hole {
  position: relative; aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 20px;
  background: radial-gradient(circle at 50% 40%, #1a0e05 55%, #3b220c 60%);
  display: grid; place-items: center;
  transition: transform var(--press) var(--ease-out), box-shadow 200ms ease;
}
.pirate.myturn .hole:not(:disabled) { box-shadow: 0 0 0 3px var(--accent); }
.hole:not(:disabled):active { transform: scale(.9); }
.hole:disabled { cursor: default; }
.hole span { display: grid; place-items: center; }
.hole .mini {
  position: absolute; bottom: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c); color: #1b1030; font-style: normal; font-size: 10px; display: grid; place-items: center;
}
.hole.stabbed span { animation: stabin 280ms var(--spring); }
@keyframes stabin { from { transform: translateY(-24px) scale(1.4); opacity: 0; } }
.hole.trap { background: radial-gradient(circle, var(--hot) 55%, #6b1a1d 60%); }
.order { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.order li { opacity: .45; transition: opacity 200ms ease, transform 200ms var(--spring); }
.order li.on { opacity: 1; transform: scale(1.2); }

/* ───── 빨리 누르기 / 비비기 ───── */
.tap-btn {
  width: 220px; height: 220px; margin: 0 auto; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #ff8ec4, var(--pink) 60%, #c12d78);
  color: #fff; font-family: var(--font-fun); font-size: 26px;
  display: grid; place-items: center; align-content: center; gap: 2px;
  box-shadow: 0 10px 0 #7d1c4e; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  opacity: .55; transition: opacity 200ms ease;
}
.tap-btn span { font-size: 54px; line-height: 1; }
.tap-btn b { font-weight: 400; }
.tap-btn.live { opacity: 1; }
.tap-btn.tapped { animation: tapped 120ms var(--ease-out); }
@keyframes tapped { 50% { transform: translateY(8px) scale(.96); box-shadow: 0 2px 0 #7d1c4e; } }
.rubpad {
  height: 260px; border-radius: var(--radius); display: grid; place-items: center; align-content: center; gap: 8px;
  background: repeating-linear-gradient(-45deg, #3b2a1a 0 14px, #45311e 14px 28px);
  border: 3px dashed rgba(255,255,255,.2); color: var(--muted);
  touch-action: none; user-select: none; -webkit-user-select: none;
  opacity: .6; transition: opacity 200ms ease, border-color 200ms ease;
}
.rubpad.live { opacity: 1; border-color: var(--accent-2); }
.rubpad.disabled { pointer-events: none; }
.fire { --s: .6; font-size: 64px; line-height: 1; transform: scale(var(--s)); transition: transform 150ms var(--ease-out); filter: drop-shadow(0 0 calc(var(--s) * 14px) #ff8a3d); }
.rubpad.live .fire { animation: flicker 300ms ease-in-out infinite alternate; }
@keyframes flicker { to { rotate: 4deg; translate: 0 -2px; } }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bars li { display: grid; grid-template-columns: 26px 1fr 44px; align-items: center; gap: 8px; }
.bars .av { width: 26px; height: 26px; font-size: 13px; }
.bars .bar { height: 12px; border-radius: 99px; background: var(--bg2); overflow: hidden; }
.bars .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--sky), var(--good)); transition: width 280ms var(--ease-out); }
.bars li.me .bar i { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.bars b { text-align: right; font-variant-numeric: tabular-nums; }

/* ───── 반응속도 ───── */
.react-pad {
  width: 100%; height: 320px; border-radius: var(--radius); border: 0; cursor: pointer; color: #fff;
  display: grid; place-items: center; align-content: center; gap: 8px;
  font-family: var(--font-fun); font-size: 30px; background: #3a3260;
  transition: background-color 60ms linear; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.react-pad b { font-weight: 400; }
.react-pad span { font-size: 40px; }
.react-pad.wait { background: #c4343a; }
.react-pad.go { background: #22b573; }
.react-pad.go b { animation: digit 300ms var(--spring); }
.react-pad.early { background: #5b1d22; }
.react-pad.done-mine { background: #1d6b4c; }

/* ───── 숫자 눈치 ───── */
.numgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; transition: opacity 300ms ease; }
.numgrid.dim { opacity: .35; }
.numbtn {
  aspect-ratio: 1; border-radius: 16px; border: 0; cursor: pointer; font-family: var(--font-fun); font-size: 30px;
  background: var(--card-hi); color: var(--text); box-shadow: 0 5px 0 rgba(0,0,0,.3);
  transition: transform var(--press) var(--ease-out), background-color 200ms ease;
}
.numbtn:not(:disabled):active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.3); }
.numbtn:disabled { cursor: default; }
.numbtn.mine { background: var(--accent); color: var(--accent-ink); transform: translateY(-4px); }
.reveal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; perspective: 600px; }
.reveal-list li {
  display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 8px 12px;
  animation: flipin 500ms var(--spring) both; animation-delay: calc(var(--r) * 180ms);
}
@keyframes flipin { from { opacity: 0; transform: rotateX(90deg); } }
.reveal-list .pname { flex: 1; font-weight: 600; }
.reveal-list .pick { font-family: var(--font-fun); font-weight: 400; font-size: 26px; color: var(--accent); }
.reveal-list li.dup { background: rgba(255, 90, 95, .25); }
.reveal-list li.dup .pick { color: var(--hot); text-decoration: line-through; }

/* ───── 초성 퀴즈 ───── */
.chosung .cat { text-align: center; margin: 0; }
.chosung .cat .tag { font-size: 14px; padding: 4px 12px; background: var(--card-hi); }
.hint { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font-family: var(--font-fun); font-size: 56px; line-height: 1.1; color: var(--accent); }
.hint span { display: inline-block; animation: letter 600ms var(--spring) both; animation-delay: calc(var(--i) * 90ms); text-shadow: 0 4px 0 rgba(0,0,0,.3); }
.answer-row { display: flex; gap: 8px; }
.answer-row input { flex: 1; min-width: 0; }
.answer-row .btn { flex: none; }
.feedback { margin: 0; min-height: 24px; font-weight: 800; }
.feedback.bad { color: var(--hot); }
.feedback.good { color: var(--good); }

/* ───── 정확히 10초 ───── */
.stopwatch {
  margin: 0 auto; width: 220px; height: 220px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #3a2f70, var(--bg2) 70%);
  box-shadow: inset 0 0 0 8px var(--card-hi), 0 8px 0 rgba(0,0,0,.3);
  font-family: var(--font-fun); font-size: 58px; font-variant-numeric: tabular-nums;
  transition: color 300ms ease, box-shadow 300ms ease;
}
.stopwatch.hidden { color: var(--muted); box-shadow: inset 0 0 0 8px var(--pink), 0 8px 0 rgba(0,0,0,.3); }
.stopwatch.hidden span { animation: tagpulse 1s ease-in-out infinite; display: inline-block; }
.stop-btn {
  width: 100%; padding: 18px; border: 0; border-radius: var(--radius); cursor: pointer;
  background: linear-gradient(180deg, #ff7b7f, var(--hot)); color: #fff; font-family: var(--font-fun); font-size: 30px; letter-spacing: .08em;
  box-shadow: 0 7px 0 #a3262b; touch-action: manipulation;
  transition: transform var(--press) var(--ease-out), box-shadow var(--press) var(--ease-out), opacity 200ms ease;
}
.stop-btn:not(:disabled):active, .stop-btn.pressed { transform: translateY(6px); box-shadow: 0 1px 0 #a3262b; }
.stop-btn:disabled { opacity: .55; cursor: default; }
.t10-time { font-family: var(--font-fun); font-weight: 400; font-size: 18px; }
.plist .tags i { font-style: normal; font-size: 12px; }

/* ───── 다른 하나 찾기 ───── */
.odd-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 8px; border-radius: var(--radius); background: var(--card); transition: opacity 200ms ease; }
.odd-grid.locked { opacity: .45; pointer-events: none; }
/* 다른 색 찾기: 칸 색은 서버가 정한 값을 그대로 쓴다(인라인 background) */
.odd {
  position: relative; aspect-ratio: 1; border: 0; border-radius: 10px; cursor: pointer; padding: 0;
  display: grid; place-items: center;
  animation: popin 360ms var(--spring) both; animation-delay: calc(var(--d) * 8ms);
  transition: transform var(--press) var(--ease-out), opacity 200ms ease;
  touch-action: manipulation;
}
.odd:active { transform: scale(.88); }
.odd-grid.done .odd { opacity: .35; }
.odd-grid .odd.hit, .odd-grid .odd.answer { opacity: 1; transform: scale(1.18); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--good); z-index: 1; }
.odd-grid .odd.hit::after, .odd-grid .odd.answer::after { content: "✓"; color: #fff; font-weight: 900; font-size: 22px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* ───── 완벽한 원 그리기 ───── */
.pad-wrap { position: relative; }
.draw-pad {
  display: block; width: 100%; aspect-ratio: 1; border-radius: var(--radius); touch-action: none;
  background:
    radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--card);
  box-shadow: inset 0 0 0 2px var(--line); cursor: crosshair;
}
.draw-pad.disabled { pointer-events: none; opacity: .5; }
.circle-score {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-family: var(--font-fun); font-size: 64px; color: var(--accent); text-shadow: 0 4px 0 rgba(0,0,0,.4);
  animation: digit 500ms var(--spring);
}
.circle-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.circle-gallery figure { margin: 0; background: var(--card); border-radius: 14px; padding: 8px; display: grid; gap: 6px; animation: popin 420ms var(--spring) both; animation-delay: calc(var(--r) * 140ms); }
.circle-gallery figure.lost { background: rgba(255, 90, 95, .25); box-shadow: inset 0 0 0 2px var(--hot); }
.circle-gallery svg { width: 100%; aspect-ratio: 1; }
.circle-gallery path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.circle-gallery figure.lost path { stroke: var(--hot); }
.circle-gallery figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; font-weight: 700; }
.circle-gallery figcaption .av { width: 22px; height: 22px; font-size: 11px; }
.circle-gallery figcaption span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.circle-gallery figcaption b { width: 100%; text-align: center; color: var(--accent); font-family: var(--font-fun); font-weight: 400; font-size: 18px; }

/* ───── 연기 대결 ───── */
.prompt-card {
  display: grid; justify-items: center; gap: 10px; text-align: center; padding: 22px 18px; border-radius: var(--radius);
  background: linear-gradient(160deg, #ff5ca8, #8a3cff); color: #fff; box-shadow: 0 8px 0 rgba(0,0,0,.25);
  animation: popin 600ms var(--spring) both;
}
.prompt-icon { font-size: 44px; line-height: 1; animation: bob 2.4s ease-in-out infinite; }
.prompt-card b { font-family: var(--font-fun); font-weight: 400; font-size: 24px; line-height: 1.3; }
.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.vote {
  display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 16px; border: 2px solid transparent;
  background: var(--card); color: var(--text); font: inherit; font-weight: 700; cursor: pointer;
  transition: transform var(--press) var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}
.vote:not(:disabled):active { transform: scale(.95); }
.vote:disabled { cursor: default; }
.vote.on { border-color: var(--accent); background: var(--card-hi); }
.vote.top { border-color: var(--good); background: rgba(61, 220, 151, .2); }
.vote.low { border-color: var(--hot); background: rgba(255, 90, 95, .25); }
.vote b { color: var(--accent); font-size: 14px; }
.vote small { font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.3; text-align: center; }

/* 연기 차례 */
.act-stage { display: grid; gap: 14px; justify-items: center; padding: 16px; border-radius: var(--radius); background: var(--card); }
.act-stage.mine { background: linear-gradient(160deg, rgba(255, 204, 51, .22), var(--card)); box-shadow: inset 0 0 0 3px var(--accent); }
.act-stage .prompt-card { width: 100%; }
.act-stage .btn.big { margin-top: 4px; }
.act-actor .av { box-shadow: 0 0 0 6px rgba(255, 204, 51, .25); }
.act-stage.mine .act-actor .av { animation: tagpulse 1.2s ease-in-out infinite; }
.act-order { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.act-order li {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px;
  background: var(--bg2); font-size: 13px; font-weight: 700; opacity: .6;
  transition: opacity 200ms ease, transform 260ms var(--spring), background-color 200ms ease;
}
.act-order li .av { width: 24px; height: 24px; font-size: 12px; }
.act-order li i { font-style: normal; color: var(--good); }
.act-order li.done { opacity: .85; }
.topicbox { display: grid; gap: 10px; }
/* 사람이 많을 때 로비 참가자 목록 */
.plist.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.plist.chips li { padding: 3px 10px 3px 3px; border-radius: 99px; gap: 6px; border-width: 1px; }
.plist.chips .av { width: 24px; height: 24px; font-size: 12px; }
.plist.chips .pname { flex: none; font-size: 13px; }
.plist.chips em, .plist.chips .tags .off { display: none; }
.plist.chips .tags .tag { font-size: 10px; padding: 1px 6px; }
.catdesc .icons i.off { opacity: .25; filter: grayscale(1); }
.catdesc em { font-style: normal; font-size: 12px; }

/* ───── 다 같이 사다리 ───── */
.ladder-box { display: grid; gap: 4px; padding: 10px 6px; border-radius: var(--radius); background: var(--card); }
.lad-row { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 0; }
.lad-start {
  display: grid; justify-items: center; gap: 3px; padding: 6px 0; margin: 0 2px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--bg2); color: var(--text); font: inherit; min-height: 64px; align-content: start;
  box-shadow: inset 0 -4px 0 var(--c);
  transition: transform var(--press) var(--ease-out), background-color 200ms ease;
}
.lad-start:not(:disabled):active { transform: scale(.94); }
.lad-start:disabled { cursor: default; }
.lad-start b { font-family: var(--font-fun); font-weight: 400; font-size: 18px; }
.lad-start .who { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; min-height: 22px; }
.lad-start .who .av { width: 20px; height: 20px; font-size: 10px; }
.lad-start .cnt { font-style: normal; font-weight: 800; font-size: 13px; background: var(--c); color: #1b1030; border-radius: 99px; padding: 1px 7px; }
.lad-start.taken { background: var(--card-hi); }
.lad-start.mine { background: var(--c); color: #1b1030; transform: translateY(-3px); }
.lad-svg { width: 100%; height: 260px; display: block; }
.lad-svg .rail { stroke: rgba(255,255,255,.35); stroke-width: 3; vector-effect: non-scaling-stroke; }
.lad-svg .rung { stroke: rgba(255,255,255,.75); stroke-width: 3; vector-effect: non-scaling-stroke; opacity: 0; animation: rungin 260ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 25ms); }
@keyframes rungin { to { opacity: 1; } }
.lad-svg .lad-cover { fill: var(--card-hi); transition: opacity 500ms ease, transform 600ms var(--ease-out); transform-origin: center; }
.lad-svg .lad-cover.lift { opacity: 0; transform: scaleY(.2); }
.lad-svg .trail { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .85; }
.lad-svg .trail.go { transition: stroke-dashoffset 3200ms cubic-bezier(.45, .05, .55, .95); transition-delay: 500ms; }
.lad-svg .trail.mine { stroke-width: 8; opacity: 1; filter: drop-shadow(0 0 4px #fff); }
.lad-end { display: grid; place-items: center; height: 40px; margin: 0 2px; border-radius: 10px; background: var(--bg2); color: var(--good); font-weight: 800; font-size: 18px; }
.lad-end.bomb { background: rgba(255, 90, 95, .25); font-size: 24px; animation: wobble 900ms ease-in-out infinite; }
.lad-end.boom { background: var(--hot); animation: bump 400ms var(--spring); }
.lad-end.mine { box-shadow: 0 0 0 3px var(--accent); }

/* ───── 슬롯머신 ───── */
.machine {
  position: relative; padding: 16px; border-radius: 22px;
  background: linear-gradient(180deg, #c2185b, #7b1fa2); box-shadow: 0 8px 0 #4a0e57, inset 0 0 0 4px rgba(255,255,255,.2);
}
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.reel { height: 72px; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: inset 0 8px 10px rgba(0,0,0,.25), inset 0 -8px 10px rgba(0,0,0,.25); }
.strip { display: grid; will-change: transform; }
.strip span { height: 72px; display: grid; place-items: center; font-size: 44px; line-height: 1; }
.strip.spinning { animation: reelspin 240ms linear infinite; }
@keyframes reelspin { from { transform: translateY(0); } to { transform: translateY(calc(var(--n) * -72px)); } }
.payline { position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: rgba(255, 204, 51, .8); box-shadow: 0 0 8px var(--accent); pointer-events: none; }
.lever { font-size: 24px; }
.slot-res { margin: 0; text-align: center; font-family: var(--font-fun); font-size: 26px; min-height: 34px; }
.slot-res.show { animation: stamp 520ms var(--spring); }
.slot-res.good { color: var(--accent); }
.slot-res.bad { color: var(--hot); }
.slot-list .mini-reels { font-size: 16px; letter-spacing: 1px; }
.slot-list .tags b { min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }

/* ───── 같은 숫자 찾기 ───── */
/* 숫자는 모든 폰이 받는 같은 웹 글꼴(Jua)로 그려서 기기마다 모양이 같다 */
.fp-head { display: flex; align-items: center; gap: 12px; }
.fp-target { display: grid; justify-items: center; padding: 6px 14px 8px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 5px 0 #c4661c; }
.fp-target small { font-size: 11px; font-weight: 800; }
.fp-target span { font-family: var(--font-fun); font-size: 50px; line-height: 1; min-width: 1.2em; text-align: center; }
.fp-side { display: grid; gap: 2px; flex: 1; min-width: 0; }
.fp-side .status { text-align: left; font-size: 22px; min-height: 0; }
.fp-grid { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 10), 1fr); gap: 0; padding: 6px; min-height: 420px; border-radius: var(--radius); background: var(--card); transition: opacity 200ms ease; }
.fp-grid.locked { opacity: .45; pointer-events: none; }
.fp-intro { grid-column: 1 / -1; align-self: center; display: grid; justify-items: center; gap: 8px; }
.fp-intro span { font-family: var(--font-fun); font-size: 120px; line-height: 1; color: var(--accent); animation: tagpulse 1s ease-in-out infinite; }
.fp-intro b { font-family: var(--font-fun); font-weight: 400; font-size: 22px; }
.fp {
  aspect-ratio: 1; border: 0; border-radius: 6px; background: transparent; cursor: pointer; padding: 0; color: var(--text);
  font-family: var(--font-fun); font-size: clamp(17px, 5.2vw, 26px); line-height: 1; display: grid; place-items: center;
  animation: popin 300ms var(--spring) both; animation-delay: calc(var(--d) * 3ms);
  transition: transform var(--press) var(--ease-out), background-color 200ms ease, opacity 200ms ease;
  touch-action: manipulation;
}
.fp:active { transform: scale(.85); background: var(--bg2); }
.fp-grid.done .fp { opacity: .3; }
.fp-grid .fp.hit, .fp-grid .fp.answer { opacity: 1; background: var(--good); color: #053d26; transform: scale(1.4); box-shadow: 0 0 0 3px #fff; z-index: 1; }

/* ───── 1부터 30까지 ───── */
.seq-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.seq-next { display: grid; justify-items: center; padding: 6px 18px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); }
.seq-next small { font-size: 11px; font-weight: 800; }
.seq-next b { font-family: var(--font-fun); font-weight: 400; font-size: 40px; line-height: 1; min-width: 1.4em; text-align: center; }
.seq-time { display: grid; justify-items: end; }
.seq-time span { font-family: var(--font-fun); font-size: 36px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.seq-time small { color: var(--muted); font-size: 12px; }
.seq-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; min-height: 300px; padding: 8px; border-radius: var(--radius); background: var(--card); }
.seq-ready { grid-column: 1 / -1; align-self: center; text-align: center; font-family: var(--font-fun); font-size: 22px; margin: 0; }
.seq-tile {
  aspect-ratio: 1; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--card-hi); color: var(--text); font-family: var(--font-fun); font-size: clamp(20px, 6.5vw, 30px);
  box-shadow: 0 4px 0 rgba(0,0,0,.3); touch-action: manipulation; user-select: none; -webkit-user-select: none;
  animation: popin 320ms var(--spring) both; animation-delay: calc(var(--d) * 12ms);
  transition: transform 120ms var(--ease-out), opacity 160ms ease;
}
.seq-tile:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.3); }
.seq-tile.gone { opacity: 0; transform: scale(.6); pointer-events: none; }
.seq-grid.over .seq-tile { pointer-events: none; opacity: .3; }
.seq-bars li.fin .bar i { background: linear-gradient(90deg, var(--good), #7cf29c); }
.seq-bars b { white-space: nowrap; font-size: 13px; }
.seq-bars li { grid-template-columns: 26px 1fr 64px; }
.act-order li.now { opacity: 1; background: var(--accent); color: var(--accent-ink); transform: scale(1.08); }
