/**
 * 플레이 중 전체화면 틀(jjStage) — 2026-11-21.
 *
 * 주사위(/dice/) 고급화에서 만든 화면을 다른 게임도 쓰게 뽑았다(사용자 요청 "다른 게임도 주사위처럼").
 * 쓰는 법 — 게임 화면 마크업:
 *   <div id="gameScreen" class="screen jjs">
 *     <div class="jjs-play">
 *       <div class="jjs-top">  진행 막대 + 알약 줄(남은 시간 등) </div>
 *       <div class="jjs-hud">  큰 점수 </div>
 *       <div class="jjs-field"> 게임 판(남는 높이를 다 갖는다) </div>
 *       <div class="jjs-foot"> 안내 · 상태 띠 </div>
 *     </div>
 *   </div>
 * 그리고 /lib/play_stage.js 를 game.js 보다 먼저 싣는다(body.jj-playing 토글·효과음·튀는 점수).
 *
 * - 판이 도는 동안 화면 전체를 덮는다(fixed · z-index 10000 — 육각 돌리기·주사위와 같다).
 * - 세로 flex 라 화면보다 길어지지 않는다(사용자 지적 "게임 화면이 길어지지 않게").
 * ⚠️ 판정에 쓰이는 요소(누름 버튼·표적·카드)의 크기는 각 게임 CSS 가 정한다. 여기는 틀·글자·장식만.
 * ⚠️ 다크 테마 레이어(lib/theme_css.php)는 레이아웃 속성을 못 쓰지만 이 파일은 게임 쪽 CSS 라 쓴다.
 *    선택자를 #gameScreen 으로 잡아 테마의 html:root(0,1,1) 규칙을 순서와 상관없이 이긴다.
 */

/* 세로 화면에서는 한 화면에 꼭 맞고(.jjs-play min-height 100% + 판이 남는 높이를 갖는다),
   폰을 가로로 눕혀 높이가 모자랄 때만 게임 화면 안에서 스크롤된다 — 예전엔 overflow:hidden 이라
   가로 화면(844×390)에서 9종의 아래 칸·버튼이 잘려 누를 수 없었다(2026-11-21 실측). */
#gameScreen.jjs.active {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; justify-content: center; align-items: flex-start;
  margin: 0; padding: 0; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain;
  background: #07060e;
}
body.jj-playing { overflow: hidden; }
/* 판 도중에 뜨는 창·점수 글자·불꽃이 전체화면 뒤로 숨지 않게(fixed 로 바꿔 스크롤 위치와도 무관) */
body.jj-playing .modal-overlay { z-index: 10050; }
body.jj-playing .particle { position: fixed; z-index: 10040; }
body.jj-playing .score-pop { z-index: 10040; }

#gameScreen .jjs-play {
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  position: relative; width: min(100%, 560px); min-height: 100%;
  display: flex; flex-direction: column;
  overflow: hidden; color: var(--jj-ink, #ece9ff);
  background:
    radial-gradient(70% 42% at 50% 60%, rgba(124, 92, 255, .17), transparent 72%),
    radial-gradient(90% 30% at 50% 0%, rgba(34, 211, 238, .08), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(130% 80% at 50% 50%, #18142f 0%, #0d0b1c 60%, #08070f 100%);
  box-shadow: inset 0 -70px 90px rgba(0, 0, 0, .45), inset 0 70px 90px rgba(0, 0, 0, .35);
}
@media (min-width: 600px) {
  /* PC 는 가운데 한 줄 — 좌우 가장자리에 옅은 테 */
  #gameScreen .jjs-play {
    box-shadow: 0 0 0 1px rgba(168, 148, 255, .14), 0 0 80px rgba(0, 0, 0, .7),
      inset 0 -70px 90px rgba(0, 0, 0, .45), inset 0 70px 90px rgba(0, 0, 0, .35);
  }
}

/* ── 위: 진행 막대 + 알약 ───────────────────────────────────────────── */
#gameScreen .jjs-top { flex: none; position: relative; z-index: 2; padding-top: var(--safe-t); }
/* ⚠️ 진행 막대는 game.js 가 width 로 줄인다 — width 는 건드리지 않고 모양만. */
#gameScreen .jjs-progress { height: 5px; margin: 0; border-radius: 0; background: rgba(255, 255, 255, .10); box-shadow: none; }
#gameScreen .jjs-progress .progress-fill { border-radius: 0; }
#gameScreen .jjs-pills {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 6px; margin-top: 12px; padding: 0 16px; min-height: 29px;
}
#gameScreen .jjs-pill {
  display: inline-flex; align-items: center; gap: 5px;
  margin: 0; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap;
  color: #eae8ff; background: rgba(11, 10, 20, .62);
  box-shadow: inset 0 0 0 1px rgba(168, 148, 255, .32);
  padding: 7px 12px; border-radius: 999px;
}
#gameScreen .jjs-pill b { font-size: 14px; color: #a894ff; font-variant-numeric: tabular-nums; }
#gameScreen .jjs-pill:empty { display: none; }
#gameScreen .jjs-time { font-size: 14px; font-variant-numeric: tabular-nums; }
/* 마지막 10초 — 페이지들의 .timer-urgent 는 글자를 0.3 까지 깜빡여 알약째 사라져 보였다. 빛으로 맥박친다. */
#gameScreen .jjs-time.timer-urgent,
#gameScreen .jjs-time.time-danger {   /* 초성 3종은 이 이름을 쓴다 */
  opacity: 1;
  background: rgba(110, 14, 32, .7);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 138, .7), 0 0 16px rgba(255, 90, 110, .35);
  animation: jjsUrgent 1s ease-in-out infinite;
}
@keyframes jjsUrgent {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 122, 138, .7), 0 0 10px rgba(255, 90, 110, .25); }
  50% { box-shadow: inset 0 0 0 1px rgba(255, 160, 170, .95), 0 0 22px rgba(255, 90, 110, .6); }
}

/* ── 점수 ────────────────────────────────────────────────────────── */
#gameScreen .jjs-hud { flex: none; position: relative; z-index: 2; text-align: center; padding: 8px 16px 0; }
#gameScreen .jjs-label {
  margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--jj-ink-soft, #b9b3d8);
}
#gameScreen .jjs-score {
  display: inline-block; margin: 0;
  font-size: clamp(48px, 14vw, 68px); font-weight: 900; line-height: 1.05;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
  background: var(--jj-num-grad, linear-gradient(180deg, #ece9ff, #a894ff));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .55));
}
#gameScreen .jjs-score.bump { animation: jjsBump .22s ease-out; }
@keyframes jjsBump { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
#gameScreen .jjs-sub { margin-top: 2px; min-height: 18px; font-size: 13px; font-weight: 600; color: var(--jj-ink-soft, #b9b3d8); }
/* 이번에 바뀐 점수 — 점수 숫자 오른쪽에서 떠오른다(위치는 play_stage.js 가 잰다). */
#gameScreen .jjs-pop {
  position: absolute; left: 70%; top: 30px;
  pointer-events: none; opacity: 0; white-space: nowrap;
  font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums;
  color: #ece9ff; text-shadow: 0 2px 10px rgba(0, 0, 0, .7), 0 0 18px rgba(168, 148, 255, .55);
}
#gameScreen .jjs-pop.up { color: #6ee7b7; text-shadow: 0 2px 10px rgba(0, 0, 0, .7), 0 0 18px rgba(16, 185, 129, .55); }
#gameScreen .jjs-pop.down { color: #ff8a9a; text-shadow: 0 2px 10px rgba(0, 0, 0, .7), 0 0 18px rgba(244, 63, 94, .55); }
#gameScreen .jjs-pop.gold { color: #fcd34d; text-shadow: 0 2px 10px rgba(0, 0, 0, .7), 0 0 20px rgba(251, 191, 36, .7); }

/* ── 판 ─────────────────────────────────────────────────────────── */
#gameScreen .jjs-field {
  flex: 1 1 auto; min-height: 0; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}

/* ── 아래: 안내 · 상태 띠 ─────────────────────────────────────────── */
#gameScreen .jjs-foot {
  flex: none; position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: center;
  min-height: 40px; padding: 6px 16px calc(16px + var(--safe-b));
}
#gameScreen .jjs-banner {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  max-width: 100%; margin: 0; padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 800; line-height: 1.25; letter-spacing: .01em; text-align: center;
  color: #ece9ff; background: rgba(14, 12, 28, .72);
  box-shadow: inset 0 0 0 1px rgba(168, 148, 255, .30);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
#gameScreen .jjs-banner.is-warn { color: #1a1205; background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 6px 20px rgba(245, 158, 11, .35); }
#gameScreen .jjs-banner.is-danger {
  color: #fff; background: linear-gradient(135deg, #ff5a6e, #c81e3a);
  box-shadow: 0 6px 22px rgba(220, 38, 64, .45);
  animation: jjsAlarm .55s ease-in-out infinite alternate;
}
#gameScreen .jjs-banner.is-shake { animation: jjsShake .36s ease; }
#gameScreen .jjs-banner.is-go { color: #0a0a12; background: linear-gradient(135deg, #a894ff, #22d3ee); box-shadow: 0 6px 20px rgba(124, 92, 255, .4); }
#gameScreen .jjs-banner.is-ok { color: #052e1c; background: linear-gradient(135deg, #6ee7b7, #10b981); box-shadow: 0 6px 20px rgba(16, 185, 129, .4); }
@keyframes jjsAlarm { from { filter: brightness(1); } to { filter: brightness(1.25); } }

/* ── 격자 판(카드·시몬·숨은 그림·색깔 찾기·숫자 순서·두더지·풍선) ─────────────
   ⚠️ 폭은 예전 카드 안 폭 그대로다(2026-11-21 바꾸기 전 화면 실측: 폰 = 화면 폭 − 80px(390 → 310),
      PC = 384px). 칸 크기가 곧 누르기·찾기 난이도라 전체화면이 넓어져도 판은 키우지 않는다.
   밑받침(.jjs-tray::before)은 판 바깥으로 그려 배치·칸 크기에 영향이 없다. */
#gameScreen .jjs-board { position: relative; width: min(calc(100% - 80px), 384px); margin: 0 auto; }
#gameScreen .jjs-tray::before {
  content: ''; position: absolute; inset: -14px; z-index: -1; border-radius: 26px; pointer-events: none;
  background: linear-gradient(180deg, rgba(36, 31, 66, .92), rgba(17, 14, 34, .94));
  box-shadow:
    inset 0 0 0 1px rgba(168, 148, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .06),
    0 26px 50px rgba(0, 0, 0, .55);
}
@keyframes jjsShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ── 오락실 누름 버튼(탭 탭 · 함정 탭 · 라스트 탭) ───────────────────────
   금속 테(::before) + 우묵한 홈(::after) + 속도 고리(.jjs-meter) + 둥근 버튼.
   버튼은 6px 떠 있다가 누르면 내려앉는다(.is-down 은 play_stage.js press() 가 단다 —
   터치에서 기본 동작을 막아 :active 가 안 걸리는 게임이 있어서). */
#gameScreen .jjs-arcade {
  --b: clamp(172px, 58vmin, 252px);
  position: relative; width: calc(var(--b) + 36px); height: calc(var(--b) + 36px);
  display: grid; place-items: center; flex: none;
}
#gameScreen .jjs-arcade::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 200deg, #4a4566, #cfcaec 11%, #5b5480 24%, #262139 38%, #8f88b8 54%, #3a3458 69%, #dcd7f4 84%, #4a4566);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .62), inset 0 0 0 1px rgba(255, 255, 255, .18);
}
#gameScreen .jjs-arcade::after {
  content: ''; position: absolute; inset: 9px; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #141126, #05040a 76%);
  box-shadow: inset 0 7px 16px rgba(0, 0, 0, .92), inset 0 -2px 4px rgba(255, 255, 255, .08);
}
/* 속도 고리 — --p(0~1) 만큼 차오른다(game.js 가 jjStage.meter 로 넣는다) */
#gameScreen .jjs-meter {
  position: absolute; inset: -13px; border-radius: 50%; pointer-events: none;
  --p: 0;
  background: conic-gradient(from 0deg, var(--meter-a, #22d3ee), var(--meter-b, #a894ff) calc(var(--p) * 1turn), rgba(255, 255, 255, .07) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, .45));
}
#gameScreen .jjs-arcade .tap-button {
  position: relative; z-index: 1;
  width: var(--b); height: var(--b); min-width: 0; min-height: 0;
  margin: 0; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, #c3b5ff 0%, #8f72ff 26%, #6a45f0 54%, #4b28cc 80%, #391b9f 100%);
  box-shadow:
    0 8px 0 #28127a, 0 14px 24px rgba(0, 0, 0, .55),
    inset 0 -12px 24px rgba(26, 8, 86, .55), inset 0 6px 14px rgba(255, 255, 255, .35);
  transform: translateY(-6px);
  transition: transform .06s ease-out, box-shadow .06s ease-out, filter .2s ease;
  animation: none;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
/* 반사광 */
#gameScreen .jjs-arcade .tap-button::before {
  content: ''; position: absolute; left: 19%; right: 19%; top: 7%; height: 33%;
  border-radius: 50%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, 0));
}
#gameScreen .jjs-arcade .tap-button > span {
  position: relative; font-size: clamp(26px, 8vmin, 36px); font-weight: 900; letter-spacing: .04em;
  color: #fff; text-shadow: 0 2px 0 rgba(30, 10, 90, .55), 0 0 18px rgba(255, 255, 255, .35);
}
#gameScreen .jjs-arcade .tap-button.is-down,
#gameScreen .jjs-arcade .tap-button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow:
    0 0 0 #28127a, 0 4px 10px rgba(0, 0, 0, .5),
    inset 0 -6px 18px rgba(26, 8, 86, .6), inset 0 8px 18px rgba(255, 255, 255, .28);
}
#gameScreen .jjs-arcade .tap-button:disabled { cursor: default; transform: translateY(2px); filter: saturate(.35) brightness(.62); }
#gameScreen .jjs-arcade .tap-button.milestone { animation: jjsFlash .5s ease-out; }
@keyframes jjsFlash { 0% { filter: brightness(1.6) saturate(1.3); } 100% { filter: none; } }
/* 누를 때 퍼지는 고리 */
#gameScreen .jjs-ring {
  position: absolute; z-index: 2; left: 18px; top: 18px; width: var(--b); height: var(--b);
  border-radius: 50%; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 3px rgba(168, 148, 255, .85), 0 0 22px rgba(124, 92, 255, .6);
}
#gameScreen .jjs-ring.gold { box-shadow: 0 0 0 4px rgba(251, 191, 36, .95), 0 0 30px rgba(251, 191, 36, .65); }

/* ── 숫자 문제판 + 전화기식 숫자 키(더하기·빼기·곱하기·나누기) ─────────────
   키 id(num0~9 · submitButton · clearButton)와 문제·답 id 는 game.js 가 그대로 쓴다.
   배열만 1 2 3 / 4 5 6 / 7 8 9 / 지우기 0 확인 으로 바꿨다(엄지로 누르기 쉬운 전화기 배열). */
#gameScreen .mq-board {
  position: relative; width: min(calc(100% - 32px), 420px); margin: 0;
  padding: clamp(14px, 3vh, 28px) 18px; border-radius: 24px; text-align: center;
  background: linear-gradient(180deg, rgba(40, 34, 74, .94), rgba(19, 16, 38, .94));
  box-shadow:
    inset 0 0 0 1px rgba(168, 148, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .08),
    0 24px 50px rgba(0, 0, 0, .55);
  transition: box-shadow .18s ease;
}
#gameScreen .mq-q {
  margin: 0; font-size: clamp(44px, 14vw, 72px); font-weight: 900; line-height: 1.1;
  letter-spacing: .02em; color: #ece9ff; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 24px rgba(168, 148, 255, .25);
  transition: none;
}
#gameScreen .mq-line { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: clamp(6px, 1.4vh, 14px); }
#gameScreen .mq-eq { font-size: clamp(28px, 7.5vw, 40px); font-weight: 800; color: var(--jj-ink-faint, #9995b5); }
#gameScreen .mq-a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.6ch; min-height: 0; margin: 0; padding: 2px 14px; border-radius: 14px;
  font-size: clamp(40px, 12vw, 60px); font-weight: 900; line-height: 1.15;
  color: #67e8f9; background: rgba(8, 7, 16, .62);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .35), inset 0 2px 8px rgba(0, 0, 0, .6);
  font-variant-numeric: tabular-nums;
}
#gameScreen .mq-a:empty::before { content: '?'; color: rgba(103, 232, 249, .32); }
#gameScreen .mq-board.is-ok {
  box-shadow:
    inset 0 0 0 2px rgba(110, 231, 183, .9), 0 0 34px rgba(16, 185, 129, .42),
    0 24px 50px rgba(0, 0, 0, .55);
}
#gameScreen .mq-board.is-ok .mq-a { color: #6ee7b7; box-shadow: inset 0 0 0 1px rgba(110, 231, 183, .6), inset 0 2px 8px rgba(0, 0, 0, .6); }
#gameScreen .mq-board.is-bad {
  box-shadow:
    inset 0 0 0 2px rgba(255, 122, 138, .95), 0 0 34px rgba(244, 63, 94, .42),
    0 24px 50px rgba(0, 0, 0, .55);
  animation: jjsShake .32s ease;
}
#gameScreen .mq-board.is-bad .mq-a { color: #ff8a9a; box-shadow: inset 0 0 0 1px rgba(255, 122, 138, .6), inset 0 2px 8px rgba(0, 0, 0, .6); }

#gameScreen .mq-pad {
  flex: none; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  width: min(100%, 460px); margin: 0 auto;
  padding: 6px 16px calc(16px + var(--safe-b));
}
#gameScreen .mq-key {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: clamp(50px, 7.2vh, 64px); margin: 0; padding: 0; border: 0; border-radius: 16px;
  font-size: 26px; font-weight: 800; line-height: 1; color: #ece9ff;
  background: linear-gradient(180deg, #2b2649 0%, #1b1733 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 0 0 1px rgba(168, 148, 255, .16),
    0 4px 0 #0b0917, 0 8px 16px rgba(0, 0, 0, .45);
  transform: translateY(-2px);
  transition: transform .05s ease-out, box-shadow .05s ease-out;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  font-variant-numeric: tabular-nums;
}
#gameScreen .mq-key:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1.5px rgba(124, 92, 255, .85),
    0 0 0 #0b0917, 0 2px 6px rgba(0, 0, 0, .4), 0 0 18px rgba(124, 92, 255, .45);
}
#gameScreen .mq-ok {
  font-size: 18px; font-weight: 900; color: #0a0a12;
  background: linear-gradient(135deg, #a894ff, #22d3ee);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 0 #3b2a8f, 0 8px 18px rgba(124, 92, 255, .4);
}
#gameScreen .mq-clear {
  font-size: 16px; color: #ff8a9a;
  background: linear-gradient(180deg, #2a1f36 0%, #1b1428 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 138, .42), 0 4px 0 #0b0917, 0 8px 16px rgba(0, 0, 0, .45);
}
#gameScreen .mq-key:disabled { cursor: default; opacity: .45; transform: none; }

/* ── 아래 엄지 자리 응답 버튼 줄(화살표·좌우·색깔·가위바위보) ─────────────────
   버튼 크기·배열은 각 게임 것 그대로다(반응 속도 = 점수). 줄 폭도 .jjs-board(예전 카드 안 폭)로 감싼다. */
#gameScreen .jjs-pad { flex: none; position: relative; z-index: 2; padding: 8px 0 calc(16px + var(--safe-b)); }
/* 어두운 키 — 누르면 내려앉는다. 크기는 게임 CSS·인라인이 정한다(여기선 색·그림자·눌림만). */
#gameScreen .jjs-key {
  border: 0; color: #ece9ff;
  background-color: #1b1733;
  background-image: linear-gradient(180deg, #2b2649 0%, #1b1733 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 0 0 1px rgba(168, 148, 255, .18),
    0 4px 0 #0b0917, 0 8px 16px rgba(0, 0, 0, .45);
  transform: translateY(-2px);
  transition: transform .05s ease-out, box-shadow .12s ease-out;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
#gameScreen .jjs-key:active:not(:disabled) {
  transform: translateY(2px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1.5px rgba(124, 92, 255, .85),
    0 0 0 #0b0917, 0 2px 6px rgba(0, 0, 0, .4), 0 0 18px rgba(124, 92, 255, .45);
}
#gameScreen .jjs-key:disabled { cursor: default; opacity: .45; transform: none; }
/* 문제를 띄우는 둥근 판(화살표·가위바위보) */
#gameScreen .jjs-dial {
  --d: min(64vw, 230px, 30vh);
  position: relative; width: var(--d); height: var(--d); margin: 0 auto;
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, #262049 0%, #161230 62%, #0d0b1c 100%);
  box-shadow:
    inset 0 0 0 1px rgba(168, 148, 255, .26), inset 0 0 0 12px rgba(255, 255, 255, .018),
    inset 0 0 0 13px rgba(168, 148, 255, .12), inset 0 10px 30px rgba(0, 0, 0, .6),
    0 24px 50px rgba(0, 0, 0, .55);
}
#gameScreen .jjs-dial-label {
  position: absolute; top: 15%; left: 0; right: 0; text-align: center;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--jj-ink-faint, #9995b5);
}

/* 화면 좌표에서 터지는 불꽃(jjStage.burst) */
.jjs-spark {
  position: fixed; z-index: 10040; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #gameScreen .jjs-score.bump,
  #gameScreen .jjs-banner.is-shake { animation: none; }
  #gameScreen .jjs-banner.is-danger { animation: none; }
  #gameScreen .mq-board.is-bad { animation: none; }
}
