/* 골드마인 — 사이트 리디자인 다크 토큰(--gb-*)을 따르고, 테마 버튼 스타일은 .gm 안에서 초기화 */
.gm {
  --gm-bg: var(--gb-bg2, #191921);
  --gm-card: var(--gb-bg3, #1b1b23);
  --gm-deep: var(--gb-bg4, #101015);
  --gm-line: var(--gb-line, #26262f);
  --gm-line2: var(--gb-line2, #2c2c37);
  --gm-txt: var(--gb-txt, #e7e7ec);
  --gm-txt2: var(--gb-txt2, #b9b9c4);
  --gm-mut: var(--gb-mut, #8a8a96);
  --gm-mut2: var(--gb-mut2, #6f6f7b);
  --gm-pur: var(--gb-pur, #9229f7);
  --gm-gold: #ffc83d;
  --gm-gold2: #f0a730;
  --gm-red: #ff4d5e;
  --gm-green: var(--gb-green, #1bbd8a);
  color: var(--gm-txt);
  font-variant-numeric: tabular-nums;
  padding: 14px 0 36px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
.gm *, .gm *::before, .gm *::after { box-sizing: border-box; }
.gm button {
  font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; min-height: 0; height: auto; width: auto; /* 테마 전역 button{height:38px} 무력화 */
  text-transform: none; letter-spacing: normal; box-shadow: none; border-radius: 0;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; line-height: 1.2;
}
.gm button:disabled { cursor: default; }
.gm button:focus-visible, .gm input:focus-visible { outline: 2px solid var(--gm-gold); outline-offset: 2px; }
.gm [hidden] { display: none !important; }
.gm-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gm code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; word-break: break-all; background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 5px; color: var(--gm-txt2); }

/* ── 상단 ── */
.gm-hero {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-radius: 18px; padding: 20px 20px 18px; margin-bottom: 14px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 200, 61, .22) 0%, rgba(255, 200, 61, 0) 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(146, 41, 247, .35) 0%, rgba(146, 41, 247, 0) 60%),
    linear-gradient(135deg, #241a2f 0%, #1a1520 55%, #241c12 100%);
  border: 1px solid rgba(255, 200, 61, .18);
}
.gm-hero::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 160px; height: 160px; opacity: .14; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M11 7h18l7 9-16 18L4 16z' fill='%23ffc83d'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(14deg);
}
.gm-crumb { display: inline-block; font-size: 12.5px; color: var(--gm-txt2); text-decoration: none; margin-bottom: 6px; }
.gm-crumb:hover { color: var(--gm-gold); }
.gm-hero h1 { margin: 0; font-size: clamp(24px, 5.4vw, 32px); font-weight: 900; letter-spacing: -.5px; color: #fff; display: flex; align-items: center; gap: 8px; line-height: 1.15; }
.gm-new { font-size: 11px; font-weight: 800; letter-spacing: .5px; padding: 3px 7px; border-radius: 6px; background: var(--gm-gold); color: #2a1a00; vertical-align: middle; }
.gm-hero p { margin: 6px 0 0; color: var(--gm-txt2); font-size: 14px; max-width: 520px; }
.gm-hero p b { color: var(--gm-gold); }
.gm-wallet {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
  padding: 10px 16px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 200, 61, .28);
}
.gm-wallet-label { font-size: 11.5px; color: var(--gm-mut); }
.gm-wallet-amt { font-size: 22px; font-weight: 900; color: var(--gm-gold); white-space: nowrap; }
.gm-wallet-amt b { font-weight: 900; }
.gm-wallet.up { animation: gm-wallet-up .7s ease; }
.gm-wallet.down { animation: gm-wallet-down .5s ease; }
@keyframes gm-wallet-up { 30% { transform: scale(1.06); box-shadow: 0 0 26px rgba(255, 200, 61, .45); } }
@keyframes gm-wallet-down { 30% { transform: translateY(2px); } }

.gm-practice {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px;
  margin-bottom: 14px; padding: 11px 16px; border-radius: 12px; font-size: 13.5px;
  background: repeating-linear-gradient(135deg, rgba(39, 192, 214, .12) 0 12px, rgba(39, 192, 214, .06) 12px 24px);
  border: 1px dashed rgba(39, 192, 214, .5); color: var(--gm-txt);
}
.gm-practice-cta { color: #8fe7f4; font-weight: 800; text-decoration: none; white-space: nowrap; }
.gm-practice-cta:hover { text-decoration: underline; }

/* ── 배치: 모바일 1열 → 데스크톱 2열 ── */
.gm-layout { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .gm-layout { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-areas: "play controls" "play side"; align-items: start; }
  .gm-play { grid-area: play; position: sticky; top: 12px; }
  .gm-controls { grid-area: controls; }
  .gm-side { grid-area: side; }
}
.gm-play, .gm-controls, .gm-side { background: var(--gm-bg); border: 1px solid var(--gm-line); border-radius: 18px; padding: 14px; min-width: 0; }

/* ── 상태 ── */
.gm-status { padding: 4px 4px 12px; }
.gm-st-main { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gm-mult { font-size: clamp(30px, 8vw, 40px); font-weight: 900; letter-spacing: -1px; color: #fff; line-height: 1.05; }
.gm-mult.bump { animation: gm-bump .35s ease; }
@keyframes gm-bump { 40% { transform: scale(1.12); color: var(--gm-gold); } }
.gm-pay { font-size: clamp(16px, 4.4vw, 20px); font-weight: 800; color: var(--gm-gold); text-align: right; }
.gm-pay small { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 700; color: var(--gm-txt2); background: rgba(255, 200, 61, .12); padding: 2px 6px; border-radius: 6px; vertical-align: 2px; }
.gm-st-sub { margin-top: 4px; font-size: 13px; color: var(--gm-txt2); min-height: 20px; }
.gm-meter { margin-top: 10px; height: 6px; border-radius: 99px; background: var(--gm-deep); overflow: hidden; }
.gm-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gm-gold2), var(--gm-gold)); transition: width .35s ease; }
.gm-status.win .gm-mult { color: var(--gm-gold); }
.gm-status.lose .gm-pay { color: var(--gm-red); }
.gm-status.lose .gm-mult { color: var(--gm-red); }
.gm-status.lose .gm-meter i { background: var(--gm-red); }

/* ── 금광 판 ── */
.gm-board-wrap { position: relative; max-width: 520px; margin: 0 auto; }
.gm-board {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1.7vw, 10px);
  padding: clamp(10px, 2.6vw, 16px); border-radius: 18px;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255, 200, 61, .10), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .025) 1px, transparent 1.4px) 0 0 / 10px 10px,
    linear-gradient(180deg, #17120e, #0f0c0a);
  border: 1px solid #3a2c1f; box-shadow: inset 0 0 40px rgba(0, 0, 0, .6);
}
.gm .gm-t {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: visible;
  background:
    radial-gradient(rgba(0, 0, 0, .22) 1.2px, transparent 1.6px) 3px 3px / 9px 9px,
    radial-gradient(rgba(255, 220, 160, .07) 1px, transparent 1.4px) 0 0 / 7px 7px,
    linear-gradient(155deg, #6a5038 0%, #4a3727 55%, #33261b 100%);
  box-shadow: inset 0 2px 0 rgba(255, 235, 200, .16), inset 0 -4px 0 rgba(0, 0, 0, .32), 0 3px 0 #1b130d;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.gm .gm-t.closed:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.14); }
.gm .gm-t.closed:not(:disabled):active { transform: translateY(1px); box-shadow: inset 0 2px 0 rgba(255, 235, 200, .1), inset 0 -2px 0 rgba(0, 0, 0, .3), 0 1px 0 #1b130d; }
.gm[data-mode="idle"] .gm-t.closed, .gm[data-mode="ended"] .gm-t.closed { filter: saturate(.75) brightness(.78); }
.gm[data-mode="idle"] .gm-t.closed:hover { transform: none; filter: saturate(.75) brightness(.86); }
.gm[data-mode="play"] .gm-t.closed:not(:disabled) { cursor: pointer; }
.gm-t-in { position: absolute; inset: 15%; display: grid; place-items: center; pointer-events: none; }
.gm-t-in svg { width: 100%; height: 100%; display: block; }
.gm .gm-t.dig .gm-t-in { inset: 22%; animation: gm-dig .3s ease-in-out infinite alternate; }
@keyframes gm-dig { from { transform: rotate(-24deg) translateY(-2px); } to { transform: rotate(18deg) translateY(2px); } }
.gm .gm-t.gem {
  background: radial-gradient(70% 70% at 50% 40%, rgba(255, 200, 61, .28), rgba(255, 200, 61, 0) 70%), linear-gradient(160deg, #3d321e, #221b11);
  box-shadow: inset 0 0 0 2px rgba(255, 200, 61, .55), 0 0 16px rgba(255, 200, 61, .22);
}
.gm .gm-t.gem:not(.ghost) .gm-t-in { animation: gm-pop .42s cubic-bezier(.2, 1.7, .4, 1); }
@keyframes gm-pop { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.gm .gm-t.mine { background: radial-gradient(circle at 50% 45%, #4a1820, #250b10); box-shadow: inset 0 0 0 1px rgba(255, 77, 94, .35); }
.gm .gm-t.hit {
  background: radial-gradient(circle at 50% 45%, #ff6b78, #8c1020 70%);
  box-shadow: 0 0 0 2px #ffb3ba, 0 0 26px rgba(255, 77, 94, .7); z-index: 2;
}
.gm .gm-t.hit .gm-t-in { animation: gm-boom .5s ease-out; }
@keyframes gm-boom { 0% { transform: scale(.3); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
.gm .gm-t.ghost { opacity: .45; box-shadow: none; }
.gm .gm-t.gem.ghost { background: linear-gradient(160deg, #2b2418, #1b160f); }
.gm .gm-t.gm-appear { animation: gm-fade .35s ease both; }
@keyframes gm-fade { from { opacity: 0; transform: scale(.85); } }
.gm-shake { animation: gm-shake .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes gm-shake { 15%, 85% { transform: translateX(-2px); } 30%, 70% { transform: translateX(5px); } 45%, 60% { transform: translateX(-7px); } }
.gm-float {
  position: absolute; left: 50%; top: 10%; z-index: 3; pointer-events: none; white-space: nowrap;
  font-size: 13px; font-weight: 900; color: var(--gm-gold); text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
  animation: gm-float .9s ease-out forwards;
}
@keyframes gm-float { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -38px); opacity: 0; } }
.gm-burst { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.gm-coin {
  position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c9, #ffc83d 45%, #c27c10 100%); box-shadow: 0 0 8px rgba(255, 200, 61, .7);
}
.gm-result { position: absolute; left: 50%; top: 50%; z-index: 5; transform: translate(-50%, -50%); pointer-events: none; width: min(78%, 330px); }
.gm-result.show .gm-res-card { animation: gm-res-in .45s cubic-bezier(.2, 1.4, .4, 1) both, gm-res-out .5s ease 2.6s forwards; }
@keyframes gm-res-in { from { transform: scale(.6); opacity: 0; } }
@keyframes gm-res-out { to { opacity: 0; transform: scale(.96); } }
.gm-res-card { text-align: center; padding: 16px 14px; border-radius: 16px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gm-res-card.win { background: rgba(32, 24, 6, .82); border: 1px solid rgba(255, 200, 61, .6); box-shadow: 0 10px 40px rgba(255, 200, 61, .25); }
.gm-res-card.win.big { background: linear-gradient(135deg, rgba(60, 30, 90, .9), rgba(60, 40, 6, .9)); }
.gm-res-card.lose { background: rgba(40, 8, 12, .84); border: 1px solid rgba(255, 77, 94, .6); }
.gm-res-t { font-size: 15px; font-weight: 800; color: var(--gm-txt); }
.gm-res-v { font-size: 34px; font-weight: 900; letter-spacing: -1px; line-height: 1.15; }
.gm-res-card.win .gm-res-v { color: var(--gm-gold); }
.gm-res-card.lose .gm-res-v { color: #ff8a95; }
.gm-res-s { font-size: 12.5px; color: var(--gm-txt2); }

.gm-fair { margin: 12px auto 0; max-width: 520px; font-size: 12.5px; color: var(--gm-mut); text-align: center; }
.gm-fair.ok { color: #8be3c3; }
.gm-fair.bad { color: #ffb0b7; }
.gm-link { color: var(--gm-gold) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; padding: 2px 4px !important; }
.gm-ladder { display: flex; gap: 6px; overflow-x: auto; margin: 12px auto 0; max-width: 520px; padding: 2px 2px 6px; scrollbar-width: thin; scroll-behavior: smooth; }
.gm-lad { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 60px; padding: 6px 8px; border-radius: 10px; background: var(--gm-card); border: 1px solid var(--gm-line2); }
.gm-lad b { font-size: 13px; font-weight: 800; color: var(--gm-txt); }
.gm-lad i { font-style: normal; font-size: 10.5px; color: var(--gm-mut); }
.gm-lad em { font-style: normal; font-weight: 800; color: var(--gm-red); margin-left: 3px; }
.gm-lad.done { opacity: .55; }
.gm-lad.next { border-color: rgba(255, 200, 61, .45); }
.gm-lad.on { background: linear-gradient(180deg, #ffd666, #f0a730); border-color: transparent; }
.gm-lad.on b, .gm-lad.on i { color: #2a1a00; }

/* ── 설정·버튼 ── */
.gm-coach { position: relative; margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(146, 41, 247, .12); border: 1px solid rgba(146, 41, 247, .35); font-size: 13px; }
.gm-coach ol { margin: 4px 0 0; padding-left: 20px; color: var(--gm-txt2); list-style: decimal; }
.gm-coach li { list-style: decimal; }
.gm-coach-x { position: absolute; right: 10px; top: 10px; font-size: 12px !important; font-weight: 700; padding: 4px 9px !important; border-radius: 8px !important; background: rgba(146, 41, 247, .35) !important; }
.gm-field + .gm-field { margin-top: 14px; }
.gm-field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 7px; font-size: 13.5px; font-weight: 800; color: var(--gm-txt); }
.gm-field-hint { font-size: 11.5px; font-weight: 500; color: var(--gm-mut); text-align: right; }
.gm-stepper { display: flex; align-items: stretch; gap: 6px; height: 48px; }
.gm-step { flex: 0 0 48px; border-radius: 12px !important; background: var(--gm-card) !important; border: 1px solid var(--gm-line2) !important; font-size: 22px !important; font-weight: 700; color: var(--gm-txt2); }
.gm-step:not(:disabled):hover { border-color: var(--gm-gold2) !important; color: var(--gm-gold); }
.gm-stepper input {
  flex: 1 1 auto; min-width: 0; height: 100%; margin: 0; padding: 0 34px 0 12px; border-radius: 12px; text-align: center;
  font: inherit; font-size: 20px; font-weight: 900; color: var(--gm-gold); background: var(--gm-deep); border: 1px solid var(--gm-line2); box-shadow: none;
}
.gm-stepper input:disabled { opacity: .6; }
.gm-unit { position: relative; align-self: center; margin-left: -34px; width: 28px; font-weight: 800; color: var(--gm-mut); pointer-events: none; }
.gm-stepper-sm { height: 42px; margin-top: 8px; }
.gm-stepper-sm .gm-step { flex-basis: 42px; font-size: 19px !important; }
.gm-stepper-sm output { flex: 1; display: grid; place-items: center; border-radius: 12px; background: var(--gm-deep); border: 1px solid var(--gm-line2); font-weight: 800; color: var(--gm-txt); }
.gm-chips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.gm-chips button { min-height: 38px; border-radius: 10px !important; background: var(--gm-card) !important; border: 1px solid var(--gm-line2) !important; font-size: 13px; font-weight: 800; color: var(--gm-txt2); }
.gm-chips button:not(:disabled):hover { border-color: var(--gm-gold2) !important; color: var(--gm-gold); }
.gm-chips button.on { border-color: var(--gm-gold) !important; color: var(--gm-gold); background: rgba(255, 200, 61, .1) !important; }
.gm-chips button:disabled { opacity: .5; }
.gm-mine-chips { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gm-mine-chips button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; font-size: 11px; font-weight: 600; }
.gm-mine-chips button b { font-size: 17px; font-weight: 900; color: var(--gm-txt); }
.gm-mine-chips button.on b { color: var(--gm-gold); }
.gm-settings.locked { display: none; }
.gm-summary:empty { display: none; }
.gm-summary { padding: 10px 12px; border-radius: 12px; background: var(--gm-deep); border: 1px solid var(--gm-line2); font-size: 13.5px; color: var(--gm-txt2); text-align: center; }
.gm-summary b { color: var(--gm-txt); }
.gm-actions { margin-top: 14px; }
.gm .gm-cta {
  position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 8px; width: 100%; min-height: 58px; padding: 10px 16px;
  border-radius: 15px; font-size: 18px; font-weight: 900; letter-spacing: -.3px;
  color: #fff; background: linear-gradient(180deg, #a94dff, #7a1ed1); box-shadow: 0 4px 0 #4f128a, 0 10px 26px rgba(146, 41, 247, .3);
  transition: transform .08s ease, filter .15s ease, box-shadow .08s ease;
}
.gm .gm-cta small { font-size: 12.5px; font-weight: 700; opacity: .85; }
.gm .gm-cta.cash { color: #2a1a00; background: linear-gradient(180deg, #ffe07a, #f0a730); box-shadow: 0 4px 0 #a86b12, 0 10px 28px rgba(240, 167, 48, .35); animation: gm-glow 1.8s ease-in-out infinite; }
.gm .gm-cta.cash small { background: rgba(42, 26, 0, .12); padding: 2px 6px; border-radius: 6px; }
.gm .gm-cta.wait { background: var(--gm-card); color: var(--gm-txt2); box-shadow: inset 0 0 0 1px var(--gm-line2); font-size: 16px; }
.gm .gm-cta:not(:disabled):active { transform: translateY(3px); box-shadow: 0 1px 0 #4f128a; }
.gm .gm-cta.cash:not(:disabled):active { box-shadow: 0 1px 0 #a86b12; }
.gm .gm-cta:disabled { filter: saturate(.4) brightness(.75); }
.gm .gm-cta.wait:disabled { filter: none; }
.gm .gm-cta.nudge { animation: gm-nudge .45s ease; }
@keyframes gm-nudge { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes gm-glow { 50% { box-shadow: 0 4px 0 #a86b12, 0 10px 34px rgba(255, 200, 61, .55); } }
.gm.is-busy .gm-cta { filter: brightness(.85); }
.gm-subactions { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 10px; min-height: 0; }
.gm-ghost { padding: 9px 16px !important; border-radius: 11px !important; background: var(--gm-card) !important; border: 1px solid var(--gm-line2) !important; font-size: 14px; font-weight: 800; color: var(--gm-txt) !important; }
.gm-ghost:not(:disabled):hover { border-color: var(--gm-gold2) !important; }

/* ── 기록·탭 ── */
.gm-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--gm-deep); margin-bottom: 12px; }
.gm-tabs [role="tab"] { min-height: 38px; border-radius: 9px !important; font-size: 13px; font-weight: 800; color: var(--gm-mut); }
.gm-tabs [role="tab"][aria-selected="true"] { background: var(--gm-card) !important; color: var(--gm-txt); box-shadow: inset 0 0 0 1px var(--gm-line2) !important; }
.gm-h-list, .gm-big-list { list-style: none; margin: 0; padding: 0; }
.gm-h-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--gm-line); font-size: 13px; }
.gm-h-row:last-child { border-bottom: 0; }
.gm-h-res { font-weight: 900; color: var(--gm-gold); }
.gm-h-row.lost .gm-h-res { color: var(--gm-red); }
.gm-h-row.void .gm-h-res { color: var(--gm-mut); }
.gm-h-meta { color: var(--gm-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-h-amt { font-weight: 800; white-space: nowrap; }
.gm-h-row.cashed .gm-h-amt { color: var(--gm-gold); }
.gm-h-row.lost .gm-h-amt { color: #ff8a95; }
.gm-h-verify { font-size: 11.5px; font-weight: 700; padding: 5px 8px !important; border-radius: 8px !important; background: var(--gm-card) !important; border: 1px solid var(--gm-line2) !important; color: var(--gm-txt2); }
.gm-h-verify:hover { color: var(--gm-gold); border-color: var(--gm-gold2) !important; }
.gm-empty { margin: 8px 0; color: var(--gm-mut); font-size: 13px; text-align: center; padding: 18px 8px; }
.gm-big-head { margin: 0 0 8px; font-weight: 800; font-size: 14px; }
.gm-big-head small { font-weight: 500; color: var(--gm-mut); margin-left: 6px; }
.gm-big-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--gm-line); font-size: 13.5px; }
.gm-big-rk { grid-row: span 2; font-weight: 900; color: var(--gm-gold); text-align: center; font-size: 16px; }
.gm-big-name { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-big-mult { font-weight: 900; color: var(--gm-gold); }
.gm-big-amt { font-weight: 800; color: var(--gm-green); white-space: nowrap; }
.gm-big-meta { grid-column: 2 / 5; font-size: 11.5px; color: var(--gm-mut); }
.gm-rules { font-size: 13.5px; color: var(--gm-txt2); }
.gm-rules h2 { font-size: 15px; font-weight: 800; color: var(--gm-txt); margin: 14px 0 6px; }
.gm-rules h2:first-child { margin-top: 2px; }
.gm-rules ol { margin: 0; padding-left: 20px; list-style: decimal; }
.gm-rules ol li { list-style: decimal; }
.gm-rules li + li { margin-top: 4px; }
.gm-rules p { margin: 0 0 8px; }
.gm-rules b { color: var(--gm-txt); }
.gm-rules-note { font-size: 12px; color: var(--gm-mut) !important; }

/* ── 검증 모달 ── */
.gm-modal { position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 8, .72); backdrop-filter: blur(3px); }
.gm-modal-card { position: relative; width: min(100%, 460px); max-height: calc(100vh - 32px); overflow: auto; padding: 18px 18px 16px; border-radius: 18px; background: var(--gm-bg); border: 1px solid var(--gm-line2); color: var(--gm-txt); }
.gm-modal-card h3 { margin: 0 0 12px; font-size: 17px; font-weight: 900; color: var(--gm-txt); }
.gm .gm-modal-x { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 10px !important; background: var(--gm-card) !important; font-size: 15px; color: var(--gm-txt2); }
.gm-v-top { padding: 10px 12px; border-radius: 12px; font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.gm-v-top.ok { background: rgba(27, 189, 138, .12); color: #8be3c3; border: 1px solid rgba(27, 189, 138, .35); }
.gm-v-top.bad { background: rgba(255, 77, 94, .12); color: #ffb0b7; border: 1px solid rgba(255, 77, 94, .35); }
.gm-v-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; width: min(100%, 230px); margin: 0 auto; }
.gm-v-grid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 7px; background: #3a2c1f; font-size: 13px; font-weight: 800; color: var(--gm-txt2); }
.gm-v-grid span.gem { background: rgba(255, 200, 61, .25); color: var(--gm-gold); }
.gm-v-grid span.mine { background: #3a1218; color: #ff8a95; }
.gm-v-grid span.hit { background: #8c1020; }
.gm-v-legend { text-align: center; font-size: 11.5px; color: var(--gm-mut); margin: 6px 0 10px; }
.gm .gm-v-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 12px; margin: 0; padding: 0; border: 0; background: none; font-size: 12.5px; }
.gm .gm-v-dl dt, .gm .gm-v-dl dd { margin: 0; padding: 0; border: 0; background: none; font-size: 12.5px; font-weight: 500; line-height: 1.5; }
.gm .gm-v-dl dt { color: var(--gm-mut); }
.gm .gm-v-dl dd { color: var(--gm-txt2); min-width: 0; }
.gm .gm-ok { color: #8be3c3; font-weight: 800; }
.gm .gm-bad { color: #ff8a95; font-weight: 800; }
.gm-v-how { margin-top: 12px; font-size: 12px; color: var(--gm-mut); }
.gm-v-how summary { cursor: pointer; color: var(--gm-txt2); font-weight: 700; }
.gm-v-wait { text-align: center; color: var(--gm-mut); }

/* ── 토스트·축하 ── */
.gm-toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 99995; max-width: calc(100vw - 32px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  padding: 11px 16px; border-radius: 12px; background: rgba(20, 20, 26, .96); border: 1px solid var(--gm-line2); color: var(--gm-txt);
  font-size: 13.5px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); text-align: center;
}
.gm-toast.show { opacity: 1; transform: translate(-50%, 0); }
.gm-toast.warn { border-color: rgba(255, 77, 94, .5); }
.gm-toast.win { border-color: rgba(255, 200, 61, .6); }
.gm-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 99994; overflow: hidden; }
.gm-confetti i { position: absolute; top: 0; width: 8px; height: 13px; border-radius: 2px; }

/* 사이트 모바일 하단 고정 내비(홈·검색·커뮤니티…) 위로 토스트를 띄운다 */
@media (max-width: 991px) {
  .gm-toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 480px) {
  .gm { padding-top: 8px; }
  .gm-hero { padding: 16px 14px 14px; border-radius: 16px; }
  .gm-hero p { font-size: 13px; }
  .gm-wallet { padding: 8px 12px; }
  .gm-wallet-amt { font-size: 19px; }
  .gm-play, .gm-controls, .gm-side { padding: 12px; border-radius: 16px; }
  .gm-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gm-mine-chips { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gm-h-row { grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 8px; }
  .gm .gm-t { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .gm *, .gm *::before, .gm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .gm-ladder { scroll-behavior: auto; }
}
