/* ============================================================
   룰렛 화면 (Go-Go! Duck 시안 1:1)
   · 이 파일은 "디자인"만 담당한다. 회전은 roulette-engine.js 가 한다.
   · 실제로 rotate 가 적용되는 요소는 .rl-wheel-rotator 하나뿐이며
     이 요소에는 rotate 외의 transform 을 절대 쓰지 않는다.
     (glow / scale 같은 연출은 바깥 .rl-wheel-effects 에 건다)
   · PC(1200↑) 기준. 태블릿/모바일은 responsive.css 에서만 다룬다.
   ============================================================ */

.rl-page {
  --rl-wheel: 430px;            /* 휠 지름 — 반응형에서 이 변수만 바꾼다 */
  --rl-gold: #f6c945;
  --rl-gold-d: #e0a81f;
  max-width: 1400px;
  margin: 18px auto 34px;
  padding: 0 18px;
}

.rl-grid {
  display: grid;
  grid-template-columns: 316px minmax(0, 1fr) 386px;
  gap: 16px;
  align-items: start;
}
.rl-left, .rl-right { display: flex; flex-direction: column; gap: 16px; }

.rl-card-title { font-size: 14px; font-weight: 900; color: #16305e; margin-bottom: 12px; }
.rl-card-head { display: flex; align-items: center; justify-content: space-between; }
.rl-card-head .rl-card-title { margin-bottom: 12px; }
.rl-empty { color: #9aa7bd; font-size: 12.5px; text-align: center; padding: 14px 0; margin: 0; }
.rl-hint { color: #93a1b8; font-size: 11.5px; margin: 6px 0 0; line-height: 1.5; }

/* ---------------- 좌측: 내 정보 ---------------- */
.rl-me-top { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rl-me-avatar, .rl-me-top img { width: 84px; height: 84px; border-radius: 50%; background: #f2f7fc; }
.rl-me-name { font-size: 15px; font-weight: 900; color: #16305e; display: flex; align-items: center; gap: 6px; }
.rl-me-role {
  font-size: 10.5px; font-weight: 800; color: #4a7fd4;
  background: #eaf2ff; border: 1px solid #d8e6ff; border-radius: 999px; padding: 2px 7px;
}
.rl-me-points {
  margin-top: 12px; display: flex; align-items: center; justify-content: space-between;
  background: #f4f8fd; border: 1px solid #e6eef8; border-radius: 12px; padding: 9px 12px;
}
.rl-me-plabel { font-size: 11px; font-weight: 800; color: #7f8a9e; background: #e9f0fa; border-radius: 6px; padding: 3px 7px; }
.rl-me-points b { font-size: 20px; font-weight: 900; color: #16305e; }
/* 숫자를 <i> 안에 넣어 두는 구조라 브라우저 기본 기울임이 그대로 먹었다 → 반듯하게 */
.rl-me-points i { font-style: normal; }
.rl-me-points small { font-size: 11px; color: #7f8a9e; }
/* 총 게임 횟수 · 총 당첨 금액 칸은 2026-08 에 제거했다 (.rl-me-stats 관련 규칙도 함께 삭제) */
.rl-me-btns { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rl-btn {
  height: 38px; border: none; border-radius: 11px; font-family: inherit;
  font-size: 12.5px; font-weight: 800; cursor: pointer;
}
.rl-btn-blue { background: linear-gradient(180deg, #3b86fa, #1d6bfa); color: #fff; }
.rl-btn-ghost { background: #fff; border: 1px solid #dbe6f5; color: #16305e; }
.rl-btn:disabled { opacity: .62; cursor: default; }

/* ---------------- 좌측: 게임 안내 ---------------- */
.rl-guide-row { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eaf0f8; }
.rl-guide-row:last-of-type { border-bottom: none; }
.rl-guide-row img { width: 26px; height: 26px; flex: none; object-fit: contain; image-rendering: pixelated; }
.rl-guide-row b { display: block; font-size: 12.5px; font-weight: 900; color: #16305e; margin-bottom: 2px; }
.rl-guide-row span { font-size: 11.5px; color: #7f8a9e; line-height: 1.5; }
.rl-tip {
  margin-top: 10px; background: #fdf6e0; border: 1px solid #f6e6b4; border-radius: 12px; padding: 10px 12px;
}
.rl-tip b { display: block; font-size: 11.5px; font-weight: 900; color: #b3860c; margin-bottom: 3px; }
.rl-tip span { font-size: 11.5px; color: #8a7433; line-height: 1.55; }

/* ---------------- 중앙: 룰렛 ---------------- */
.rl-mid { padding: 16px 16px 18px; }
.rl-mid-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rl-mid-title { display: flex; align-items: center; gap: 10px; }
.rl-mid-title img { width: 34px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.rl-mid-title h1 { font-size: 21px; font-weight: 900; color: #16305e; margin: 0; }
.rl-mid-title p { font-size: 11.5px; color: #7f8a9e; margin: 2px 0 0; }
.rl-full-btn {
  height: 32px; padding: 0 13px; border-radius: 10px; cursor: pointer;
  background: #fff; border: 1px solid #dbe6f5; color: #5a6b87;
  font-family: inherit; font-size: 12px; font-weight: 800;
}
.rl-full-btn:hover { background: #f4f8fd; }

.rl-head-btns { display: flex; align-items: center; gap: 7px; }
.rl-bgm-toggle {
  width: 32px; height: 32px; border-radius: 10px; cursor: pointer;
  background: #fff; border: 1px solid #dbe6f5; font-size: 14px; line-height: 1;
}
.rl-bgm-toggle:hover { background: #f4f8fd; }

/* 회원 조작 허용 토글 (운영자 전용) */
.rl-mode-btn {
  height: 32px; padding: 0 12px 0 10px; border-radius: 10px; cursor: pointer;
  background: #fff; border: 1px solid #dbe6f5; color: #7f8a9e;
  font-family: inherit; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.rl-mode-btn .rl-mode-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #c9d4e4; flex: none;
  transition: background .2s ease, box-shadow .2s ease;
}
.rl-mode-btn.is-on {
  background: #eafaf0; border-color: #bfe9cf; color: #2f8b5f;
}
.rl-mode-btn.is-on .rl-mode-dot { background: #34c47c; box-shadow: 0 0 0 3px rgba(52, 196, 124, .18); }
.rl-mode-btn:hover { filter: brightness(.99); }
.rl-mode-btn:disabled { opacity: .6; cursor: default; }
.rl-mode-chip {
  height: 32px; padding: 0 11px; border-radius: 10px;
  background: #eafaf0; border: 1px solid #bfe9cf; color: #2f8b5f;
  font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center;
}
.rl-mode-chip[hidden] { display: none; }



.rl-stage {
  position: relative; margin-top: 12px;
  background: linear-gradient(180deg, #dff1fd 0%, #cfe9fb 100%);
  border: 1px solid #d5e9f8; border-radius: 16px;
  height: calc(var(--rl-wheel) + 76px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
/* 배경의 은은한 구름 */
.rl-stage::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60px 26px at 14% 22%, rgba(255,255,255,.75), transparent 70%),
    radial-gradient(80px 30px at 84% 30%, rgba(255,255,255,.6), transparent 70%),
    radial-gradient(70px 26px at 30% 78%, rgba(255,255,255,.5), transparent 70%);
  pointer-events: none;
}

.rl-frame {
  position: relative;
  width: var(--rl-wheel); height: var(--rl-wheel);
  border-radius: 50%;
  background: linear-gradient(160deg, #ffe27a 0%, var(--rl-gold) 46%, var(--rl-gold-d) 100%);
  padding: 13px;
  box-shadow:
    0 12px 26px rgba(70, 120, 190, .26),
    inset 0 -4px 10px rgba(160, 110, 10, .32),
    inset 0 4px 10px rgba(255, 255, 255, .6);
}

/* glow / scale 은 여기에만 (회전 요소에는 rotate 외 transform 금지) */
.rl-wheel-effects {
  position: absolute; inset: 13px;
  border-radius: 50%;
  overflow: hidden;
  transition: filter .3s ease;
}
.rl-frame.is-spinning .rl-wheel-effects { filter: brightness(1.04) saturate(1.06); }
.rl-frame.is-spinning { box-shadow: 0 14px 30px rgba(70, 120, 190, .34), inset 0 -4px 10px rgba(160, 110, 10, .32), inset 0 4px 10px rgba(255,255,255,.6), 0 0 0 6px rgba(255, 226, 122, .35); }

/* ⚠ 회전 전용 요소 — rotate 이외의 transform 을 여기에 추가하지 말 것 */
.rl-wheel-rotator { width: 100%; height: 100%; will-change: transform; }
.rl-wheel-rotator canvas { width: 100%; height: 100%; display: block; }

/* 금테 위 흰 점 장식 (고정) */
.rl-rim-dots { position: absolute; inset: 0; pointer-events: none; }
.rl-rim-dots i {
  position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: #fffbe9; box-shadow: 0 1px 2px rgba(150, 110, 20, .45);
}

/* 12시 포인터 (고정 — 절대 회전하지 않는다) */
.rl-pointer {
  position: absolute; left: 50%; top: -16px; width: 34px; height: 46px; margin-left: -17px;
  background: linear-gradient(180deg, #ff6a5e 0%, #ef3b34 100%);
  border-radius: 50% 50% 50% 50% / 42% 42% 62% 62%;
  clip-path: polygon(50% 100%, 100% 42%, 88% 10%, 50% 0, 12% 10%, 0 42%);
  box-shadow: 0 5px 10px rgba(190, 50, 45, .4);
  z-index: 4;
}
.rl-pointer::after {
  content: ""; position: absolute; left: 50%; top: 13px; width: 12px; height: 12px; margin-left: -6px;
  background: #fff; border-radius: 50%;
}

/* 중앙 오리 (고정) */
.rl-center {
  position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px;
  border-radius: 50%; z-index: 3;
  background: linear-gradient(160deg, #ffe694, var(--rl-gold));
  border: 4px solid #fff;
  box-shadow: 0 5px 14px rgba(90, 130, 190, .32);
  display: flex; align-items: center; justify-content: center;
}
.rl-center img { width: 54px; height: 54px; object-fit: contain; image-rendering: pixelated; }

.rl-deco-coins { position: absolute; left: 16px; bottom: 12px; width: 92px; image-rendering: pixelated; pointer-events: none; }
.rl-deco-duck { position: absolute; right: 16px; bottom: 12px; width: 78px; image-rendering: pixelated; pointer-events: none; }

/* 결과 카드 */
.rl-result {
  margin-top: 12px; min-height: 62px;
  background: #f4f8fd; border: 1px solid #e6eef8; border-radius: 14px;
  display: flex; align-items: center; gap: 11px; padding: 11px 15px;
  transition: background .25s ease, border-color .25s ease;
}
.rl-result-ico {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: #e6edf7; color: #8b98ad; font-size: 15px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.rl-result-tx b { display: block; font-size: 14px; font-weight: 900; color: #16305e; }
.rl-result-tx span { font-size: 11.5px; color: #8b98ad; }
.rl-result.is-spinning { background: #eef5ff; border-color: #d7e6ff; }
.rl-result.is-spinning .rl-result-ico { background: #dbe9ff; }
.rl-result.is-done { background: #fff8e4; border-color: #f5e3ae; }
.rl-result.is-done .rl-result-ico { background: #ffeec0; }
.rl-result.is-winner { background: #eafaf0; border-color: #c3ecd3; }
.rl-result.is-winner .rl-result-ico { background: #d3f3e0; }

.rl-actions { margin-top: 12px; text-align: center; }
.rl-spin-btn {
  width: 100%; max-width: 350px; height: 52px; border: none; border-radius: 14px; cursor: pointer;
  background: linear-gradient(180deg, #ffd558 0%, #f5b021 100%);
  color: #6b4708; font-family: inherit; font-size: 17px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 14px rgba(226, 163, 26, .38), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: filter .2s ease, transform .15s ease;
}
.rl-spin-btn img { width: 24px; height: 24px; image-rendering: pixelated; }
.rl-spin-btn:hover:not(:disabled) { filter: brightness(1.06); }
.rl-spin-btn:active:not(:disabled) { transform: translateY(1px); }
.rl-spin-btn:disabled { opacity: .55; cursor: default; }
.rl-watch { font-size: 13px; font-weight: 800; color: #5a6b87; margin: 6px 0 0; }
.rl-conn { font-size: 11.5px; color: #93a1b8; margin: 9px 0 0; }
.rl-conn.is-ok { color: #4a9d72; }

/* ---------------- 우측 ---------------- */
.rl-recent-count { font-size: 11px; color: #93a1b8; }
.rl-recent-list { display: flex; flex-direction: column; }
.rl-recent-row {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 2px; border-bottom: 1px solid #f0f4fa; font-size: 13.5px;
}
/* 잭팟 카드를 걷어낸 만큼 최근 결과·규칙에 여유를 준다 (5줄이 잘리지 않고 다 보인다) */
.rl-recent { min-height: 300px; }
.rl-recent .rl-recent-list { min-height: 240px; }
.rl-recent-row:last-child { border-bottom: none; }
.rl-recent-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #9aa7bd; }
.rl-recent-row.is-out .rl-recent-dot { background: #ef6a63; }
.rl-recent-row.is-bomb .rl-recent-dot { background: #2b2f3a; }
.rl-recent-row.is-win .rl-recent-dot { background: #f5b021; }
.rl-recent-row.is-sys .rl-recent-dot { background: #7fc7a4; }
.rl-recent-tx { flex: 1; min-width: 0; color: #16305e; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-recent-time { font-size: 11.5px; color: #9aa7bd; flex: none; }

.rl-rules { position: relative; }
.rl-rule-list { margin: 0; padding: 0; list-style: none; }
.rl-rule-list li {
  position: relative; padding-left: 21px; margin-bottom: 9px;
  font-size: 13px; color: #5a6b87; line-height: 1.6;
}
.rl-rule-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #4fb98a; font-weight: 900; font-size: 12px;
}
.rl-rule-list li:nth-last-child(-n+2) { padding-right: 74px; }
.rl-rules-duck { position: absolute; right: 12px; bottom: 12px; width: 66px; image-rendering: pixelated; }

/* 모집 중 — 빈 룰렛 위 안내 */
.rl-wait {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; pointer-events: none; padding: 0 18px;
}
.rl-wait[hidden] { display: none; }
.rl-wait b {
  font-size: 19px; font-weight: 900; color: #16305e;
  background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 9px 20px;
  box-shadow: 0 6px 18px rgba(16, 32, 60, .14);
}
.rl-wait span {
  font-size: 12.5px; font-weight: 800; color: #5a6b87;
  background: rgba(255, 255, 255, .82); border-radius: 999px; padding: 5px 14px;
}

/* ============================================================
   참가희망자 모드
     · 안내줄 (모집 카운트다운 / 아이템 선택 시간)
     · 내 아이템 패널
     · 운영자 조작 버튼
     · 참가자 목록 (예전 "룰렛 규칙" 자리)
   ============================================================ */
.rl-party-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 10px; padding: 11px 14px; border-radius: 14px;
  background: #f4f8ff; border: 1px solid #dfeaf9;
}
.rl-party-bar[hidden] { display: none; }
.rl-pb-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.rl-pb-tag {
  font-size: 12px; font-weight: 900; color: #fff; white-space: nowrap;
  background: #6d7d99; border-radius: 999px; padding: 4px 11px;
}
.rl-pb-count { font-size: 20px; font-weight: 900; color: #16305e; font-variant-numeric: tabular-nums; }
.rl-pb-sub { font-size: 12.5px; font-weight: 700; color: #5a6b87; word-break: keep-all; }
.rl-party-bar.is-recruit { background: #eef6ff; border-color: #cfe2fb; }
.rl-party-bar.is-recruit .rl-pb-tag { background: linear-gradient(180deg, #3b86fa, #1d6bfa); }
.rl-party-bar.is-pick { background: #fff7e8; border-color: #f7e0b0; }
.rl-party-bar.is-pick .rl-pb-tag { background: linear-gradient(180deg, #f7a83c, #ef8f1c); }
.rl-party-bar.is-pick .rl-pb-count { color: #b96f06; }
.rl-party-bar.is-end { background: #f6f7fa; border-color: #e3e7ee; }
.rl-party-bar.is-end .rl-pb-tag { background: #98a3b6; }

.rl-join-btn {
  height: 40px; padding: 0 22px; border: none; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 900; color: #fff; white-space: nowrap;
  background: linear-gradient(180deg, #3b86fa, #1d6bfa);
  box-shadow: 0 4px 12px rgba(29, 107, 250, .3);
}
.rl-join-btn:hover:not(:disabled) { filter: brightness(1.06); }
.rl-join-btn:disabled { opacity: .55; cursor: default; }
.rl-join-btn.is-out { background: #fff; color: #e0574f; border: 1px solid #f3c9c6; box-shadow: none; }

/* ---------- 내 아이템 ---------- */
.rl-items {
  margin-top: 10px; padding: 12px 14px; border-radius: 14px;
  background: #fff; border: 1px solid #dfeaf9;
}
.rl-items[hidden] { display: none; }
.rl-items-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rl-items-head > b { font-size: 13.5px; font-weight: 900; color: #16305e; }
.rl-items-left { font-size: 12px; font-weight: 700; color: #93a1b8; }
.rl-items-left b { color: #b96f06; font-variant-numeric: tabular-nums; }
.rl-my-weight { margin-left: auto; font-size: 12px; font-weight: 800; color: #5a6b87; }
.rl-my-weight b { font-size: 15px; color: #16305e; }
.rl-items-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rl-item-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 11px 12px; border-radius: 12px; background: #f7faff; border: 1px solid #e5eefb;
}
.rl-item-card.is-off { opacity: .55; }
.rl-item-name { font-size: 13px; font-weight: 900; color: #16305e; }
.rl-item-have {
  margin-left: 5px; font-size: 11px; font-weight: 800; color: #1d6bfa;
  background: #e8f1ff; border-radius: 999px; padding: 2px 8px;
}
.rl-item-desc { margin: 0; font-size: 11.5px; font-weight: 700; color: #7a8699; line-height: 1.5; word-break: keep-all; min-height: 34px; }
.rl-item-act { display: flex; gap: 6px; align-items: center; margin-top: auto; }
.rl-item-num {
  width: 62px; height: 34px; padding: 0 8px; text-align: center;
  border: 1px solid #dbe6f5; border-radius: 10px; background: #fff;
  font-family: inherit; font-size: 13px; font-weight: 800; color: #16305e;
}
.rl-item-btn {
  flex: 1; height: 34px; border: none; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 900; color: #fff;
  background: linear-gradient(180deg, #3b86fa, #1d6bfa);
}
.rl-item-btn:hover:not(:disabled) { filter: brightness(1.06); }
.rl-item-btn:disabled { opacity: .5; cursor: default; }
.rl-item-btn.is-armed { background: linear-gradient(180deg, #67c98d, #3aa354); }
/* "최대" 같은 보조 버튼 — 본 버튼보다 작고 조용하게 */
.rl-item-btn-sm {
  flex: 0 0 auto; padding: 0 10px;
  background: #fff; color: #5a6b87; border: 1px solid #dbe6f5;
}
.rl-item-btn-sm:hover:not(:disabled) { background: #f2f8ff; color: #16305e; filter: none; }
.rl-item-desc b { color: #16305e; }

/* ---------- 운영자 조작 ---------- */
.rl-party-ops { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.rl-party-ops[hidden] { display: none; }
.rl-op {
  height: 32px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid #dbe6f5; background: #fff; color: #5a6b87;
  font-family: inherit; font-size: 12px; font-weight: 800; white-space: nowrap;
}
.rl-op:hover:not(:disabled) { background: #f2f8ff; color: #16305e; }
.rl-op:disabled { opacity: .45; cursor: default; }
.rl-op.is-on { background: linear-gradient(180deg, #3b86fa, #1d6bfa); color: #fff; border-color: transparent; }

/* ---------- 참가자 목록 ----------
   최대 20명까지 잘리지 않고 다 보이도록 카드가 그대로 길어진다 (스크롤 없음).
   대신 사람이 적을 때 빈 칸이 남지 않게 최소 높이는 짧게 잡는다. */
.rl-players { min-height: 0; }
.rl-players-list { display: flex; flex-direction: column; min-height: 96px; }
.rl-player {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 2px; border-bottom: 1px solid #eef2f8; font-size: 13px;
}
.rl-player:last-child { border-bottom: none; }
.rl-player-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rl-player-no { font-size: 11px; font-weight: 800; color: #b3bdcd; width: 16px; flex: none; }
.rl-player-nick {
  flex: 1; min-width: 0; font-weight: 800; color: #16305e;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rl-player-me {
  margin-left: 5px; font-size: 10px; font-weight: 900; color: #fff;
  background: #1d6bfa; border-radius: 999px; padding: 1px 6px;
}
.rl-player-w { font-size: 11.5px; font-weight: 800; color: #7a8699; flex: none; }
/* 내 가중치는 한눈에 찾을 수 있게 조금 진하게 */
.rl-player-w.is-me { color: #1d6bfa; }
.rl-player-tag { font-size: 10.5px; font-weight: 900; border-radius: 999px; padding: 2px 8px; flex: none; }
.rl-player-tag.is-out { color: #e0574f; background: #fdecea; }
.rl-player-tag.is-rev { color: #2f8f57; background: #e7f7ee; }
.rl-player.is-out { opacity: .5; }
.rl-player.is-out .rl-player-nick { text-decoration: line-through; }
.rl-player.is-me { background: #f4f8ff; border-radius: 8px; }

/* ---------------- 하단: 칸 설정 ---------------- */
.rl-setup { margin-top: 16px; }
.rl-setup.is-locked { opacity: .72; }
.rl-setup-head { display: flex; align-items: center; gap: 10px; }
.rl-setup-head .rl-card-title { margin-bottom: 0; }
.rl-setup-sub { font-size: 11.5px; color: #93a1b8; }
.rl-sum { margin-left: auto; font-size: 12px; font-weight: 800; color: #7f8a9e; }
.rl-sum b { font-size: 17px; color: #16305e; }

.rl-setup-body { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.rl-table { border: 1px solid #e9f0f8; border-radius: 12px; padding: 10px; background: #fbfdff; }
.rl-thead, .rl-row {
  display: grid;
  grid-template-columns: 30px 52px minmax(0, 1fr) 108px 56px 44px;
  gap: 8px; align-items: center;
}
.rl-thead { font-size: 11.5px; font-weight: 800; color: #93a1b8; padding: 2px 4px 8px; text-align: center; }
.rl-thead span:nth-child(3) { text-align: left; padding-left: 4px; }
.rl-rows { display: flex; flex-direction: column; gap: 7px; }
.rl-row { padding: 2px 4px; }
.rl-no { text-align: center; font-size: 12px; font-weight: 800; color: #9aa7bd; }
.rl-swatch-wrap { display: flex; justify-content: center; }
.rl-swatch { width: 44px; height: 30px; padding: 0; border: 1px solid #dbe6f5; border-radius: 7px; background: none; cursor: pointer; }
.rl-swatch::-webkit-color-swatch-wrapper { padding: 3px; }
.rl-swatch::-webkit-color-swatch { border: none; border-radius: 5px; }
.rl-swatch:disabled { cursor: default; opacity: 1; }
.rl-input {
  height: 34px; border: 1px solid #dbe6f5; border-radius: 8px; background: #fff;
  padding: 0 10px; font-family: inherit; font-size: 12.5px; color: #16305e; width: 100%;
}
.rl-input.rl-weight { text-align: center; padding: 0 6px; }
.rl-input:focus { outline: none; border-color: #7fb0ff; box-shadow: 0 0 0 3px rgba(127, 176, 255, .2); }
.rl-input:disabled { background: #f5f8fc; color: #5a6b87; }
.rl-pct { text-align: center; font-size: 12px; font-weight: 800; color: #7f8a9e; }
.rl-row-end { display: flex; align-items: center; justify-content: center; gap: 4px; }
.rl-mark { font-size: 13px; }
.rl-del {
  width: 28px; height: 28px; border: 1px solid #f3d6d6; border-radius: 8px; background: #fff;
  color: #e07b7b; cursor: pointer; font-size: 12px; font-weight: 800; line-height: 1;
}
.rl-del:hover { background: #fff2f2; }

.rl-setup-side { display: flex; flex-direction: column; gap: 12px; }
.rl-setup-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rl-sbtn {
  height: 40px; border: 1px solid #dbe6f5; border-radius: 10px; background: #fff; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 800; color: #16305e;
}
.rl-sbtn:hover { background: #f4f8fd; }
.rl-sbtn:disabled { opacity: .5; cursor: default; }
.rl-sbtn-sm { height: 30px; font-size: 11.5px; padding: 0 9px; }
.rl-presets { border: 1px solid #e9f0f8; border-radius: 12px; padding: 10px 12px; background: #fbfdff; }
.rl-presets-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rl-presets-head b { font-size: 12.5px; color: #16305e; }
.rl-preset-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.rl-preset-row { display: flex; gap: 6px; }
.rl-preset-load {
  flex: 1; min-width: 0; height: 32px; border: 1px solid #dbe6f5; border-radius: 9px; background: #fff;
  font-family: inherit; font-size: 12px; font-weight: 800; color: #16305e; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 8px;
}
.rl-preset-load small { color: #93a1b8; font-weight: 700; }
.rl-preset-del {
  width: 32px; height: 32px; flex: none; border: 1px solid #f3d6d6; border-radius: 9px;
  background: #fff; color: #e07b7b; cursor: pointer; font-weight: 800;
}
.rl-save {
  width: 100%; height: 52px; border: none; border-radius: 13px; cursor: pointer;
  background: linear-gradient(180deg, #3b86fa, #1d6bfa); color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 900;
  box-shadow: 0 6px 14px rgba(29, 107, 250, .3), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.rl-save:hover { filter: brightness(1.06); }
.rl-save:disabled { opacity: .55; cursor: default; }
.rl-save-wrap { text-align: center; }

/* ---------------- 전체 화면 모드 (중앙 룰렛만 크게) ---------------- */
.rl-page.is-full .rl-grid { grid-template-columns: minmax(0, 1fr); }
.rl-page.is-full .rl-left,
.rl-page.is-full .rl-right,
.rl-page.is-full .rl-setup { display: none; }
.rl-page.is-full { --rl-wheel: min(620px, 74vh); }
.rl-page.is-full .rl-mid { max-width: 860px; margin: 0 auto; }

/* ============================================================
   연출 오버레이 — 원본과 같은 문구·타이밍, 색만 고고덕 톤
   ============================================================ */
.one-more-time-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; background: rgba(12, 40, 86, .34);
  animation: rlOverlayIn .25s ease;
}
@keyframes rlOverlayIn { from { opacity: 0; } to { opacity: 1; } }
.one-more-time-text {
  font-size: clamp(28px, 6vw, 56px); font-weight: 900; color: #fff8dc; text-align: center;
  text-shadow: 0 4px 0 rgba(180, 120, 10, .5), 0 0 26px rgba(255, 216, 110, .85);
  animation: rlPop .5s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes rlPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.omt-heart { color: #ff9ec4; }
.elim-overlay { background: rgba(20, 20, 30, .42); }
.elim-title { color: #ffe9e9; text-shadow: 0 4px 0 rgba(120, 20, 20, .45), 0 0 26px rgba(255, 120, 120, .8); }
.bomb-title { color: #ffd9a8; }
/* 부활권 발동 — 탈락(붉은색)과 확실히 구분되게 초록빛으로 */
.revive-title {
  color: #e6fff0;
  text-shadow: 0 4px 0 rgba(20, 100, 60, .45), 0 0 26px rgba(110, 240, 170, .85);
}
.elim-changes { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.elim-change {
  font-size: 15px; font-weight: 900; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}
.elim-up { color: #9ff0bd; }
.elim-down { color: #ffadad; }

/* 폭탄 붕괴 파편 */
.rl-frame.is-crumbling { animation: rlShake .5s ease; }
@keyframes rlShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-6px, 3px); }
  45% { transform: translate(5px, -3px); }
  70% { transform: translate(-3px, 2px); }
}
.roulette-debris { position: absolute; z-index: 5; display: block; pointer-events: none; }
.roulette-dust {
  position: absolute; z-index: 5; width: 70px; height: 70px; margin: -35px 0 0 -35px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(190, 180, 165, .8), rgba(190, 180, 165, 0) 70%);
  animation: rlDust 1s ease-out forwards;
}
@keyframes rlDust {
  from { transform: scale(.3); opacity: .9; }
  to { transform: scale(2.4); opacity: 0; }
}

/* 잠금 표시는 버튼이 눌리지 않는 것으로만 한다 — 마우스 커서는 평소 모양 그대로 둔다
   (돌리는 동안 화면 위에서 🚫 커서가 뜨는 것이 보기 싫다는 요청) */
.rl-setup.is-locked, .rl-setup.is-locked * { cursor: default; }
.rl-spin-btn:disabled, .rl-btn:disabled, .rl-sbtn:disabled,
.rl-mode-btn:disabled, .rl-save:disabled { cursor: default; }
.rl-setup input:disabled, .rl-setup select:disabled, .rl-setup textarea:disabled { cursor: default; }
