/* ── PC (가로 화면): 왼쪽 사냥터 목록 · 가운데 큰 릴 · 오른쪽 조작부. 메뉴는 위로 ── */
@media (min-width: 1000px) {
  body::before { content: ""; position: fixed; inset: -40px; z-index: -2;
    background: var(--dg-bg, none) center / cover no-repeat; filter: blur(22px) brightness(.32) saturate(1.1); }
  /* 가로 배경(assets/bg/wide/*.jpg)이 있으면 위에 깔림. 없으면 흐린 세로 배경만 보임 */
  body::after { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--dg-bg-wide, none) center / cover no-repeat; opacity: .4; }
  .app { max-width: 1240px; padding: 70px 24px 32px; gap: 16px; }
  .nav { top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); padding: 8px 24px;
    background: rgba(16,12,9,.9); backdrop-filter: blur(6px); }
  .nav-in { max-width: 1240px; grid-template-columns: repeat(4, 170px); justify-content: center; gap: 10px; }
  .nav button { flex-direction: row; justify-content: center; gap: 8px; padding: 10px 8px; font-size: 18px; }
  .nav button[aria-pressed="true"]::before { top: auto; bottom: -9px; }
  .app { padding-top: 84px; }
  .toasts { top: 84px; }
  .toasts { left: auto; right: 24px; top: 70px; width: 380px; padding: 0; align-items: flex-end; }

  #tab-hunt:not([hidden]) { display: grid !important; grid-template-columns: 220px minmax(0, 1fr) 300px;
    grid-template-rows: auto auto auto auto auto 1fr; gap: 14px 20px !important; align-items: start; }
  #tab-hunt > .dungeons { grid-column: 1; grid-row: 1 / 3; grid-template-columns: 1fr; gap: 8px; }
  #tab-hunt > .me-card { grid-column: 1; grid-row: 3 / 7; }
  .me-stats b { font-size: 20px; }
  #tab-hunt > .stage { grid-column: 2; grid-row: 1 / 7; padding: 16px; gap: 12px; }
  #tab-hunt > #boss { grid-column: 3; grid-row: 1; }
  #tab-hunt > .meter { grid-column: 3; grid-row: 2; grid-template-columns: 1fr; }
  #tab-hunt > .spinbar { grid-column: 3; grid-row: 3; }
  #tab-hunt > .paybtn { grid-column: 3; grid-row: 4; }
  #tab-hunt > .pc-hint { grid-column: 3; grid-row: 5; }
  #tab-hunt > .notice { grid-column: 3; grid-row: 6; }
  .dg { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; padding: 12px 14px; text-align: left; }
  .dg .n { font-size: 17px; } .dg .c { font-size: 12px; }
  .dg .v { display: block; width: 100%; font-size: 11px; color: var(--ink-dim); }
  .dg[aria-pressed="true"] .v { color: var(--dg-accent); }
  .stage-title { font-size: 26px; }
  .stage-sub { font-size: 13px; }
  .machine { width: min(100%, calc((100vh - 300px) * 1.6)); margin-inline: auto; padding: 10px; }
  .reels { gap: 6px; }
  .sym.s-W::after, .sym.s-S::after { font-size: 12px; }
  .result { min-height: 58px; } .result .mon { font-size: 14px; } .result .gain { font-size: 19px; }
  .bw-t { font-size: 68px; } .bw-n { font-size: 42px; } .bw-s { font-size: 14px; }
  .coinf { width: 20px; height: 20px; animation-name: fall-pc; }
  @keyframes fall-pc { to { transform: translateY(820px) rotate(720deg); } }
  .m-box { padding: 10px 14px; } #bet, #win { font-size: 19px; }
  .spin { width: 108px; height: 108px; } .spin svg { width: 52px; height: 52px; }
  .ctl { padding: 14px 6px; }
  .pc-hint { display: block; text-align: center; font-size: 12px; color: var(--ink-dim); }
  .pc-hint kbd { font-family: var(--f-num); font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 6px; }

  /* 강화: 왼쪽 캐릭터+강화는 붙여 두고, 오른쪽 가방만 따로 스크롤 (가방이 길어도 강화 버튼이 안 밀려남) */
  #tab-enchant:not([hidden]) { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr; gap: 16px 24px !important; align-items: start; }
  #tab-enchant > .char { grid-column: 1; grid-row: 1; }
  #tab-enchant > .enchant { grid-column: 1; grid-row: 2; }
  #tab-enchant > .bag { grid-column: 2; grid-row: 1 / 3; max-height: calc(100vh - 170px); overflow-y: auto; padding-right: 4px; }
  #tab-enchant .bag h3 { position: sticky; top: 0; z-index: 1; background: var(--ground); margin: 0; padding: 4px 0 6px; }
  .ench-core { width: 300px; height: 300px; }
  .ench-core .ov-art { width: 240px; height: 240px; }

  .sheet-bg { align-items: center; }
  .sheet { max-width: 520px; border-radius: 16px; border-bottom: 1px solid var(--line); }
  .boss-stage { width: min(560px, 100%); height: 380px; }
  .hpbar, .boss-ctl, .chest-list { width: min(560px, 100%); }
  .boss-art { width: 330px; height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* 10-08 slotmap 세션이 서버 index.html 에 직접 넣었던 잭팟맵 톤 (D:/local/slotmap/web/slot/dungeon/index.html 에서 그대로 옮김, 10-27).
   make_v3.js 가 style 태그 끝 바로 앞에 넣는다 → 위쪽 모든 규칙을 덮음. 맨 아래 "10-27 추가"는 10-08 뒤에 생긴 화면용 */
/* ════════════════════════════════════════════════════════════════
   2026-10-08 잭팟맵 톤 덮어쓰기 (사용자: "UI 가 너무 이질감", 이미지 자산은 그대로)
   사이트 slot.css 와 같은 토큰: 회색 바탕 + 흰 카드(radius 20) + Pretendard + 브랜드 파랑. 라이트/다크 둘 다.
   게임 그림이 깔리는 곳(릴 무대·보스·강화·일기토 연출)만 늘 어둡게 둔다 — 그림이 어두운 배경용이라.
   ⚠ 사이트 규칙: 좌측/상단 색 강조선·그라데이션 버튼·색 그림자·깜빡임 금지.
   위쪽 원래 규칙은 그대로 두고 여기서만 덮는다(되돌리려면 이 블록만 지우면 됨).
   ════════════════════════════════════════════════════════════════ */
:root {
  --bg:#f2f4f6; --card:#fff; --card2:#f9fafb; --fill:#f2f4f6;
  --jink:#191f28; --body:#333d4b; --faint:#6b7684; --jline:#e5e8eb;
  --brand:#3182f6; --brand-h:#1b64da; --brand-bg:#e8f3ff; --up:#f04452; --ok:#0a8f5c;
  --ground: var(--bg); --stone: var(--card); --stone-2: var(--fill); --line: var(--jline);
  --ink: var(--jink); --ink-dim: var(--faint);
  --gold:#c27c0e; --gold-deep:#c27c0e; --blood: var(--up);
  --r-miss:#8b95a1; --r-adena:#c27c0e; --r-item:#1b64da; --r-rare:#7c4dff; --r-jack:#e8590c;
  --f-display: Pretendard, -apple-system, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-body: var(--f-display); --f-num: var(--f-display);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg:#101012; --card:#1c1c20; --card2:#232328; --fill:#2a2a30;
  --jink:#f2f2f4; --body:#d4d7dc; --faint:#8d939c; --jline:#2e2e35;
  --brand:#4d9aff; --brand-h:#76b0ff; --brand-bg:#16263d; --up:#ff5c67; --ok:#3ecf8e;
  --gold:#f5b544; --gold-deep:#f5b544; --r-adena:#f5b544; --r-item:#6fb0ff; --r-rare:#b48cff; --r-jack:#ff7a45;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#101012; --card:#1c1c20; --card2:#232328; --fill:#2a2a30;
    --jink:#f2f2f4; --body:#d4d7dc; --faint:#8d939c; --jline:#2e2e35;
    --brand:#4d9aff; --brand-h:#76b0ff; --brand-bg:#16263d; --up:#ff5c67; --ok:#3ecf8e;
    --gold:#f5b544; --gold-deep:#f5b544; --r-adena:#f5b544; --r-item:#6fb0ff; --r-rare:#b48cff; --r-jack:#ff7a45;
    color-scheme: dark;
  }
}
/* 게임 그림 위: 늘 어두운 토큰 */
.stage, .overlay, .bigwin, .pay-row .pi, .pay-lines svg {
  --stone:#1c1c20; --stone-2:#2a2a30; --line:#34343c; --ink:#f2f2f4; --ink-dim:#a9aeb6;
  --gold:#f5b544; --gold-deep:#f5b544; --r-adena:#f5b544; --r-item:#6fb0ff; --r-rare:#b48cff; --r-jack:#ff7a45;
  color: var(--ink);
}
/* 전체 화면 연출 안의 사이트 버튼(.btn 등)도 어둡게. 릴 무대(.stage)는 빼 둔다 — 폰에서 무대 머리줄이 밝은 바탕 위로 나가므로 */
.overlay, .bigwin { --card:#2a2a30; --fill:#34343c; --faint:#a9aeb6; --jink:#f2f2f4; --body:#d4d7dc; --brand:#4d9aff; }

body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); letter-spacing: -.01em; word-break: keep-all; -webkit-font-smoothing: antialiased; }
button:focus-visible, summary:focus-visible { outline-color: var(--brand); }
.num { letter-spacing: 0; font-weight: 700; }
b, strong { font-weight: 700; }

/* 사이트로 돌아가기 */
.jm-home { flex: none; margin: -4px 0 -4px -4px; padding: 4px 6px; font-size: 22px; line-height: 1; font-weight: 600; color: var(--faint); text-decoration: none; }
.jm-home span { display: none; }
.jm-home:hover { color: var(--ink); }
/* 배당표 버튼: 릴 무대 오른쪽 위, 소리 버튼 옆 */
.vol-wrap { display: flex; gap: 6px; align-items: center; }
.vol-wrap .paybtn { border: 0; background: rgba(0,0,0,.45); color: #fff; border-radius: 8px; font-size: 11px; padding: 3px 7px; font-weight: 600; }

/* 상단 재화 */
.top { background: var(--card); border: 0; border-radius: 20px; padding: 12px 14px; }
.coin { background: #f5b544; box-shadow: none; }
.purse .val { color: var(--ink); font-weight: 800; font-size: clamp(17px, 5vw, 22px); }
.daily, .daily.ready { border: 0; border-radius: 10px; padding: 8px 12px; font-weight: 700; background: var(--brand-bg); color: var(--brand); animation: none; }
.daily.ready { background: var(--brand); color: #fff; }
.daily:disabled { background: var(--fill); color: var(--faint); }
.reset-top, .reset-top.armed { height: 34px; border: 0; border-radius: 10px; background: var(--fill); color: var(--faint); box-shadow: none; animation: none; font-weight: 600; }
.reset-top.armed { background: var(--up); color: #fff; }
.reset-top::before { content: ""; }

/* 사냥터 탭 */
.dg { border: 0; background: var(--card); border-radius: 14px; padding: 9px 2px 8px; }
.dg .n { font-size: 15px; font-weight: 700; }
.dg .c { font-size: 11px; }
.dg[aria-pressed="true"] { background: var(--jink); color: var(--bg); }
.dg[aria-pressed="true"] .c, .dg[aria-pressed="true"] .v { color: inherit; opacity: .7; }

/* 릴 무대: 그림은 그대로, 장식 테두리만 걷어냄 */
.stage { border: 0; border-radius: 20px; }
.stage-title { font-weight: 800; letter-spacing: -.02em; }
.vol { color: var(--ink-dim); }
.machine { box-shadow: none; background: rgba(0,0,0,.5); border-radius: 14px; }
.reel { border-radius: 8px; }
.sym.win::before { box-shadow: inset 0 0 0 2px var(--gold); }
.paylines polyline { filter: none; }
.sound { border: 0; background: rgba(0,0,0,.45); border-radius: 8px; color: #fff; }
.vol-pop { border: 0; border-radius: 14px; }
.mute { border: 0; }
.bw-t { font-weight: 800; }
/* 줄 당첨 연출(10-08 "줄 그어지는 당첨 때 움찔"): 당첨 칸 크기 맥박(scale)과 나머지 칸 흑백 필터를 뺐다.
   폰(iOS)은 필터·투명도가 켜지는 순간 그림을 다시 그리며 1px 안팎 튄다. 이제 나머지 칸은 투명도만, 당첨 칸은 테두리만 깜빡임 */
.reel.open .sym { will-change: opacity; }
/* 릴 판 경계 부드럽게(10-08 사용자: "릴 위 경계선이 너무 잘 보임"): 판·릴 칸의 어두운 바탕을 위아래로 서서히 투명하게,
   릴 위아래 그림자 띠는 돌 때만 */
.machine { background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.42) 28px, rgba(0,0,0,.42) calc(100% - 28px), rgba(0,0,0,0)); }
.reel { background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.28) 22%, rgba(0,0,0,.28) 78%, rgba(0,0,0,0)); }
.reel::before, .reel::after { opacity: 0; transition: opacity .2s; }
.reel.spinning::before, .reel.spinning::after { opacity: 1; }
.machine.has-win .sym:not(.win) { filter: none; opacity: .35; }
.sym.win { animation: none; }
.sym.win::before { animation: ring-pulse .6s ease-in-out infinite alternate; }
@keyframes ring-pulse { from { opacity: .35; } }
.stage.flash-item .machine, .stage.flash-rare .machine { animation: none; }

/* 버튼·조작부 */
.btn, .ctl { border: 0; background: var(--card); border-radius: 14px; }
.btn small, .ctl small { color: var(--faint); }
.ctl { font-weight: 700; font-size: 15px; }
#turbo[aria-pressed="true"] { background: var(--brand-bg); color: var(--brand); box-shadow: none; }
#turbo[aria-pressed="true"] small { color: var(--brand); }
#hunt10.stop { background: var(--up); color: #fff; }
#hunt10.stop small { color: rgba(255,255,255,.8); }
.spin { border: 0; background: var(--brand); box-shadow: none; }
.spin:active:not(:disabled) { transform: scale(.96); box-shadow: none; }
.spin:disabled { filter: none; opacity: .45; }
.btn-boss { background: var(--card); border: 0; padding: 14px 16px; }
.btn-boss .bt b { color: var(--ink); font-weight: 800; }
.m-box { border: 0; background: var(--card); border-radius: 14px; padding: 8px 12px; }
.m-box.lit { border: 0; box-shadow: inset 0 0 0 2px var(--brand); }
#bet, #win { color: var(--ink); font-size: 17px; }
.bet button { border: 0; background: var(--fill); color: var(--ink); }
.notice { color: var(--up); }
.mini { border: 0; background: var(--fill); border-radius: 8px; padding: 6px 10px; color: var(--body); font-weight: 600; }
.paybtn { background: transparent; color: var(--faint); }

/* 아래 메뉴 — 사이트 모바일 탭 바와 같은 결 */
.app { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.nav { background: var(--card); border-top: 1px solid var(--line); box-shadow: none; }
.nav button { font-family: var(--f-body); font-size: 12px; font-weight: 600; color: var(--faint); border: 0; }
.nav button svg { width: 24px; height: 24px; }
.nav button[aria-pressed="true"] { color: var(--ink); background: transparent; box-shadow: none; }
.nav button[aria-pressed="true"]::before { content: none; }

/* 시트(오토·배당표 등) */
.sheet-bg { background: rgba(0,0,0,.45); }
.sheet { background: var(--card); border: 0; border-radius: 20px 20px 0 0; }
.sheet-h, .pay-h { font-weight: 800; }
.seg button, .seg.speed button, .auto-quick button { border: 0; background: var(--fill); border-radius: 10px; font-weight: 600; }
.seg button[aria-pressed="true"], .seg.speed button[aria-pressed="true"], .auto-quick button[aria-pressed="true"] { background: var(--brand-bg); color: var(--brand); }
.auto-n, .auto-go { border: 0; background: var(--brand); color: #fff; box-shadow: none; font-weight: 700; }
.auto-n small { color: rgba(255,255,255,.8); }
.auto-step { border: 0; background: var(--fill); color: var(--ink); }
.auto-now b { color: var(--ink); font-weight: 800; }
.auto-range, .vol-pop input { accent-color: var(--brand); }
.pay-row { border-color: var(--line); }
.pay-row .pi { background: #1c1c20; }
.pay-lines svg { background: #1c1c20; }
.rtp b { color: var(--ink); font-weight: 700; }
details.odds { border: 0; background: var(--card); }

/* 아이템 탭 */
.char { background: var(--card); border: 0; border-radius: 20px; }
.eq-slot { border: 0; background: var(--fill); border-radius: 12px; }
.eq-slot.on { background: var(--brand-bg); box-shadow: inset 0 0 0 2px var(--brand); }
.eq-slot .eq-en { background: var(--brand); color: #fff; box-shadow: none; font-weight: 700; }
.eq-slot .eq-en.hi { background: var(--up); box-shadow: none; }
.eq-none { border-color: var(--faint); opacity: .4; }
.char-pick span { background: var(--card); border: 0; color: var(--faint); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.sel-item { border: 0; background: var(--fill); }
.wname, .sel-item .wname { font-weight: 800; letter-spacing: -.02em; }
.power .num { color: var(--ink); }
.enchant { background: var(--card); border: 0; border-radius: 20px; padding: 16px; }
.odds-line .p { font-weight: 800; }
.safe { color: var(--ok); } .risky { color: var(--up); }
.btn-enchant { border: 0; background: var(--brand); color: #fff; box-shadow: none; font-weight: 700; font-size: 17px; letter-spacing: 0; }
.btn-bless { border: 0; background: var(--fill); color: var(--ink); font-weight: 700; }
.btn-bless small { color: var(--faint); }
.bag h3, .section-h { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.it { border: 0; background: var(--card); border-radius: 14px; padding: 10px 12px; }
.it.on { box-shadow: inset 0 0 0 2px var(--brand); }
.bag-filter button { border: 0; background: var(--card); font-weight: 600; }
.bag-filter button[aria-pressed="true"] { background: var(--jink); color: var(--bg); }
.bag-filter button[aria-pressed="true"] .num { color: inherit; opacity: .7; }

/* 랭킹 · 일기토 카드 */
.row { border: 0; background: var(--card); border-radius: 14px; padding: 8px 12px; }
.row:nth-child(-n+3) .pos { color: var(--brand); }
.row.me { background: var(--brand-bg); }
.row .av { border: 0; background: var(--fill); }
.duel-card { border: 0; background: var(--card); border-radius: 20px; padding: 16px; }
.duel-me { background: var(--fill); }
.duel-row { border: 0; background: var(--fill); }
.duel-row .who b { font-weight: 700; }
.duel-go { border: 0; background: var(--brand); color: #fff; box-shadow: none; font-weight: 700; }

/* 알림(텔레그램 봇 흉내) → 사이트 카드 */
.tg { background: var(--card); border: 0; border-radius: 14px; box-shadow: 0 6px 20px rgba(0,23,51,.14); }
.tg .av { background: var(--brand); font-weight: 700; }
.tg .bn { color: var(--brand); font-weight: 600; }
.tg .tx { color: var(--body); } .tg .tx b { color: var(--ink); }
.tg .act { background: var(--brand); border-radius: 8px; }
.feed .tg { box-shadow: none; }

/* 전체 화면 연출(보스·강화·일기토): 어두운 바탕은 두고 장식만 정리 */
.overlay { background: rgba(16,16,18,.97); }
.ov-title, .ov-result, .duel-end > b, .duel-moves button b, .duel-phase, .duel-call, .ds-top b, .duel-vs, .tap-btn { font-weight: 800; }
.live-badge { border-radius: 6px; font-weight: 700; letter-spacing: .04em; }
.live-badge::before { animation: none; }
.btn-hunt { border: 0; background: var(--brand); color: #fff; box-shadow: none; font-weight: 800; letter-spacing: 0; }
.btn-hunt small { color: rgba(255,255,255,.8); }
.btn-hunt:active:not(:disabled) { transform: scale(.98); box-shadow: none; }
.tap-btn { border: 0; background: #4d9aff; animation: none; }
.overlay .close { border: 0; background: #2a2a30; color: #f2f2f4; border-radius: 10px; padding: 10px 22px; font-weight: 700; }
.hpbar { border: 0; background: #2a2a30; }
.hpbar i { background: var(--up); }
.duel-side.me .hpbar i { background: #3ecf8e; }
.boss-stage, .duel-arena { border: 0; border-radius: 16px; }
.boss-got .gi, .chest-row { border: 0; background: #2a2a30; }
.duel-talk { border: 0; border-radius: 12px; background: #232328; box-shadow: none; }
.duel-moves button { border: 0; background: #2a2a30; }
.duel-moves .dm-A { background: #c9303d; } .duel-moves .dm-D { background: #2b6fd6; }
.duel-moves .dm-S, .duel-moves .dm-F { background: #a8700f; }
.duel-phase.ph-me { background: #4d9aff; color: #fff; border: 0; animation: none; }
.duel-phase.ph-op { border-style: solid; }
.duel-phase.ph-op i { animation: none; }
.duel-moves.ready button:not(:disabled) { box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.duel-end { border: 0; background: #1c1c20; }
.duel-log { border: 0; }
.ki em { animation: none; }

@media (max-width: 440px) {
  .top { padding: 10px 12px; }
}

/* ── 10-08 폰 한 화면 맞춤 (사용자: "게임 화면은 안 줄이고 안 잘리게") ──
   아이폰 크롬 실제 보이는 높이 ≈ 580px. 릴 크기는 그대로 두고 둘레를 줄인다:
   결과 글자 → 릴 위 한 줄(사냥터 이름은 탭에 이미 있어 무대 제목·설명은 숨김), 배당표 → 소리 옆,
   [오토/터보 | 스핀 | 보너스 구매] 한 덩어리, 알림 글자는 무대 아래쪽에 겹쳐 띄움, 아래 메뉴 56px. */
@media (max-width: 999px) {
  .app { gap: 8px; padding-top: 8px; padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .top { padding: 7px 10px 7px 8px; border-radius: 16px; gap: 6px; }
  .purse .val { font-size: clamp(15px, 4.6vw, 22px); }
  .daily { padding-left: 10px; padding-right: 10px; }
  .reset-top { padding-left: 8px; padding-right: 8px; }
  .daily, .reset-top, .reset-top.armed { height: 34px; padding-top: 0; padding-bottom: 0; }
  .dg { padding: 5px 2px; border-radius: 12px; }
  .dg .n { font-size: 14px; line-height: 1.25; } .dg .c { font-size: 10.5px; line-height: 1.25; }

  #tab-hunt:not([hidden]) { display: grid !important; gap: 8px !important;
    grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
    grid-template-areas: "dg dg dg" "st st st" "me me me" "au sp bo" "tu sp bo"; }
  #tab-hunt > .dungeons { grid-area: dg; }
  #tab-hunt > .stage { grid-area: st; }
  #tab-hunt > .meter { grid-area: me; }
  #tab-hunt > #boss { grid-area: bo; }
  #tab-hunt > .spinbar { display: contents; }
  #hunt10 { grid-area: au; } #turbo { grid-area: tu; } #hunt { grid-area: sp; }
  #tab-hunt > .notice { grid-area: st; align-self: end; z-index: 4; pointer-events: none; margin: 0 16px 14px; min-height: 0; }
  #tab-hunt > .notice:empty { display: none; }
  .toasts .tg:not(:has(.act)) { pointer-events: none; }
  /* 보스 출현·BIG WIN 화면은 릴 칸(폰 ≈ 217px) 안에 뜬다 → 그림·글자를 줄여 위아래 안 잘리게(10-08 사용자) */
  .bigwin:not(.boss-in) { gap: 0; }   /* 10-27: 보스 출현(.boss-in)은 전체 화면으로 바뀌어서 제외 */
  .bigwin:not(.boss-in) img { width: auto; max-width: none; height: 52%; }
  .bigwin:not(.boss-in) .bw-t { font-size: 28px; }
  .bigwin:not(.boss-in) .bw-n { font-size: 24px; }
  .bigwin:not(.boss-in) .bw-s { font-size: 11.5px; }
  #tab-hunt > .notice:not(:empty) { padding: 6px 10px; border-radius: 10px; background: rgba(0,0,0,.72); color: #ff8a8a; }

  /* 릴 무대는 폰 가로 끝까지(10-08 사용자: "아이폰 14라 게임창 더 키워도 됨") — 릴이 약 13% 커진다 */
  #tab-hunt > .stage { margin-inline: -16px; border-radius: 0; }
  /* 사냥터 이름·배당표·소리는 게임 그림 위가 아니라 그 위 밝은 줄로(10-08 사용자: "게임창 위로 빼자, 이질감 없게").
     무대 바탕 그림을 ::before 로 옮겨 머리줄(34px) 아래부터만 깐다 */
  .stage { padding: 0 4px 4px; gap: 4px; background: none; isolation: isolate; }
  .stage::before { content: ""; position: absolute; inset: 34px 0 0; z-index: -1;
    background:
      linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.15) 40%, color-mix(in srgb, var(--dg-b) 85%, transparent) 92%),
      var(--dg-bg, none) center 28% / cover no-repeat,
      radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--dg-a) 90%, white 4%), var(--dg-b) 75%); }
  /* 10-08 다시(사용자: "릴 돌아가는 뒤쪽을 맞추면 되잖아"): 그림 칸 = 릴 칸. 그림은 릴 맨 윗줄에서 시작해 맨 아랫줄에서 끝나고,
     릴 뒤에 따로 깔던 어두운 판·릴 칸 바탕·돌 때 그림자 띠는 없앤다 → 경계는 게임창 테두리 하나뿐 */
  /* 그림은 릴보다 위아래 12px·양옆 8px 크게 — 보스 문장이 떨어질 때 1.3배쯤 커지는 게 안 잘리게(10-08 사용자 지적) */
  .stage { padding: 12px 8px; gap: 0; }
  .stage::before { top: 34px; }
  .stage-head { margin-top: -12px; margin-bottom: 12px; }
  .machine { margin: 0; padding: 0; border-radius: 0; background: transparent; }
  @media (max-height: 639px) {   /* 작은 폰: 여백 조금 줄여 한 화면 유지 */
    .stage { padding: 10px 6px; } .stage-head { margin-top: -10px; margin-bottom: 10px; }
    #tab-hunt:not([hidden]) { gap: 6px !important; }
    .dg { padding: 3px 2px; }
  }
  .reel { background: transparent; border-radius: 0; }
  .reel::before, .reel::after, .reel.spinning::before, .reel.spinning::after { display: none; }
  .stage-head, .vol-wrap { --ink: var(--jink); --ink-dim: var(--faint); --stone: var(--card); --stone-2: var(--fill); --line: var(--jline); color: var(--jink); }
  .stage-head { box-sizing: border-box; height: 34px; align-items: center; padding: 0 140px 0 16px; }
  .stage-title { font-size: 17px; }
  .stage-sub { display: none; }
  .vol-wrap { top: 2px; right: 16px; }
  .vol-wrap .paybtn, .vol-wrap .sound { background: var(--card); color: var(--body); font-size: 12px; padding: 5px 9px; }
  .reels { gap: 3px; }
  /* 결과 글자(10-08 사용자: "잡몹만 나왔어요 같은 텍스트는 빼자"): 처치 문구·골드는 숨기고(골드는 '당첨' 칸에 나옴)
     장비·보스 같은 획득만 릴 아래쪽에 잠깐 겹쳐 띄운다. 자리를 안 차지하니 릴이 안 움직인다 */
  .stage > .result { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 6; min-height: 0; display: flex; justify-content: center; pointer-events: none; }
  .result .mon, .result .gain.k-adena, .result .gain.k-miss { display: none; }
  .result .gain { max-width: 92%; padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.78); font-size: 14px; line-height: 20px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: gain-show 2.4s ease-out forwards; }
  .result .gain .num { font-size: 14px; }
  .result .gain img { width: 20px; height: 20px; vertical-align: -5px; }
  @keyframes gain-show { 0% { opacity: 0; } 8%, 75% { opacity: 1; } 100% { opacity: 0; } }
  /* 키 큰 폰(아이폰 14 크롬 ≈ 657px)은 아래가 90px 남는다 → 조작부를 키워 누르기 쉽게 */
  @media (min-height: 640px) {
    #tab-hunt:not([hidden]) { grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr); row-gap: 10px !important; }
    .spin { width: 92px; height: 92px; } .spin svg { width: 42px; height: 42px; }
    .m-box { padding: 8px 12px; } .bet button { width: 34px; height: 34px; }
    .ctl { font-size: 15px; }
    #boss .bt b { font-size: 15px; }
  }

  .m-box { padding: 5px 10px; }
  .bet button { width: 30px; height: 30px; }
  .ctl { padding: 0; justify-content: center; min-height: 0; flex-direction: row; gap: 6px; font-size: 14px; }
  .ctl small { font-size: 11px; }
  .spin { width: 76px; height: 76px; align-self: center; justify-self: center; }
  .spin svg { width: 36px; height: 36px; }
  #boss.btn-boss { flex-direction: column; justify-content: center; align-items: center; gap: 2px; padding: 6px 8px; text-align: center; }
  #boss .bt { white-space: normal; line-height: 1.2; }
  #boss .bt b { font-size: 14px; display: block; }
  #boss #boss-name { display: none; }   /* 보스 이름은 아래 작은 글자(그림자 왕 · 공격 10번)에 이미 있음 */
  #boss small { text-align: center; font-size: 11px; line-height: 1.25; }

  .nav { padding: 3px 12px calc(3px + env(safe-area-inset-bottom, 0px)); }
  .nav button { padding: 5px 4px 4px; gap: 2px; font-size: 11.5px; border-radius: 10px; }
  .nav button svg { width: 22px; height: 22px; }
}
@media (min-width: 1000px) {
  body::before, body::after { content: none; }     /* 흐린 게임 배경 대신 사이트 회색 바탕 */
  .nav { background: var(--card); border-bottom: 1px solid var(--line); backdrop-filter: none; }
  .nav button { font-size: 16px; font-weight: 700; }
  .nav button[aria-pressed="true"] { background: var(--fill); }
  .jm-home { position: fixed; top: 0; left: 24px; z-index: 31; height: 63px; display: flex; align-items: center; margin: 0; padding: 0; font-size: 16px; }
  .jm-home span { display: inline; margin-left: 5px; }
  #tab-enchant .bag h3, #tab-enchant .bag .bag-filter { background: var(--bg); }
  .sheet { border: 0; border-radius: 20px; }
}

