.g-wrap { max-width: 960px; }

.g-section { position: relative; overflow: clip; }
.g-section > .container { position: relative; z-index: 1; }
.g-band { position: absolute; top: 0; left: 0; right: 0; height: 280px; pointer-events: none; z-index: 0; }
.g-band img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(.38) saturate(.5); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, rgba(0,0,0,.45) 58%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, rgba(0,0,0,.45) 58%, transparent 100%); }
.g-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,7,7,.62) 0%, rgba(7,7,7,.86) 58%, var(--bg) 100%); }

.g-page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.g-page-head .section-title { margin-bottom: 8px; }
.g-head-r { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.g-note { font-size: .82rem; color: #8a8a8a; line-height: 1.6; margin: 0 0 18px; }

.g-card {
    --g-win: #3fb950;
    --g-lose: #f85149;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
    padding: 20px;
    border-radius: 16px;
}

.g-main { min-width: 0; }
.g-side { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.g-card:has(> .g-ctrl) { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "main ctrl" "main side"; grid-template-rows: auto 1fr; }
.g-card:has(> .g-ctrl) > .g-main { grid-area: main; }
.g-card > .g-ctrl { grid-area: ctrl; min-width: 0; }
.g-card:has(> .g-ctrl) > .g-side { grid-area: side; }
.g-ctrl > .g-bet { margin-top: 0; }
@media (min-width: 901px) {
    .g-ctrl .bj-moves { grid-template-columns: 1fr 1fr; }
    .g-ctrl .bj-moves [data-act="hit"] { grid-column: 1 / -1; }
}

.g-card .coin-i { opacity: .6; }

.g-hb { height: 34px; padding: 0 16px; font-size: .9rem; }
.g-hb:disabled { opacity: .4; cursor: default; }
.g-hb.on { background: var(--btn); border-color: var(--btn); color: #111; }

.g-hist { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; height: 28px; margin: 0 0 12px; overflow: hidden; }
.g-hist:empty { display: none; }
.g-card:has(> .g-ctrl) .g-hist:empty { display: flex; }
.g-hist-i { flex-shrink: 0; font-family: var(--mono); font-weight: 700; font-size: .86rem; color: #8a8a8a; }
.g-hist-i.lo { color: #5f5f5f; }
.g-hist-i.ok { color: var(--g-win); }
.g-hist-i.hi { color: var(--g-win); }

.g-stage { position: relative; }

.g-result { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 24px; margin: 12px 0 0; font-size: .85rem; font-weight: 600; color: #8a8a8a; }
.g-result .g-sub, .g-result .sl-payn { font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.g-result .g-sub { color: var(--text-2); }
.g-result.win { color: var(--g-win); }
.g-result.lose { color: var(--text-2); }
.g-result.pop { animation: gPop .22s ease; }

.g-res-av { position: relative; display: none; width: 22px; height: 22px; flex-shrink: 0; }
.g-result.win .g-res-av { display: inline-flex; }
.g-res-pic { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--bg-raised); }
.g-res-deco { position: absolute; top: 50%; left: 50%; width: 152%; height: 152%; transform: translate(-50%, -52%); pointer-events: none; object-fit: contain; }

@keyframes gPop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.g-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.g-stats.g-stats-2 { grid-template-columns: repeat(2, 1fr); }
.g-stat { padding: 10px 10px 9px; border-radius: 12px; background: var(--bg-raised); border: 1px solid var(--border); text-align: center; }
.g-stat-l { display: block; font-size: .84rem; font-weight: 500; color: #8a8a8a; }
.g-stat-v { display: block; margin-top: 5px; font-family: var(--mono); font-size: 1.15rem; font-weight: 700; line-height: 1.15; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.g-stat.is-lead .g-stat-v { font-size: 1.45rem; }
.g-stat-v.up { color: var(--g-win); }
.g-stat-v.down { color: var(--g-lose); }
.g-stat-v.off { color: #8a8a8a; }
.g-stat-sub { display: block; min-height: 1rem; margin-top: 3px; font-size: .8rem; color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-stat-v.bump { animation: gBump .26s ease; }

@keyframes gBump { 50% { transform: scale(1.06); } }

.g-me { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 13px 10px 16px; min-height: 64px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-raised); overflow: visible; text-decoration: none; transition: border-color .15s ease; }
.g-me:hover { border-color: #3a3a3a; }
.g-me-bg { position: absolute; inset: 0; z-index: 0; border-radius: inherit; overflow: hidden; }
.g-me-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.42) saturate(.55); }
.g-me-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.66) 100%); }
.g-me > *:not(.g-me-bg) { position: relative; z-index: 1; }
.g-me-av { position: relative; display: inline-flex; width: 38px; height: 38px; flex-shrink: 0; }
.g-me-pic { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--bg-raised); }
.g-me-deco { position: absolute; top: 50%; left: 50%; width: 152%; height: 152%; transform: translate(-50%, -52%); pointer-events: none; object-fit: contain; }
.g-me-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.g-me-n { font-size: .87rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-me.has-banner .g-me-n { text-shadow: 0 1px 4px rgba(0,0,0,.9); }
.g-me-s { font-family: var(--mono); font-size: .72rem; color: #8a8a8a; }
.g-me.has-banner .g-me-s { color: rgba(255,255,255,.62); text-shadow: 0 1px 3px rgba(0,0,0,.8); }

.g-side-box { padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-raised); }
.g-side-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.g-side-h span { font-size: .82rem; font-weight: 500; color: #8a8a8a; }
.g-kv { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; font-size: .86rem; }
.g-kv + .g-kv { margin-top: 8px; }
.g-kv dt { color: #8a8a8a; }
.g-kv dd { margin: 0; white-space: nowrap; font-family: var(--mono); font-size: .88rem; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.g-kv dd.up { color: var(--g-win); }
.g-kv dd.down { color: var(--g-lose); }

.g-ladder { display: flex; flex-direction: column; }
.g-ladder-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 8px; margin: 0 -8px; border-radius: 10px; font-size: .84rem; color: #8a8a8a; }
.g-ladder-r.on { background: var(--bg-card-hover); color: var(--text); }
.g-ladder-m { font-family: var(--mono); font-size: .84rem; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.g-ladder-r.on .g-ladder-m { color: var(--g-win); }

.g-empty { margin: 0; padding: 4px 0; font-size: .78rem; color: #8a8a8a; }
.g-empty[hidden] { display: none; }

.g-legal { margin: 0; padding: 0 2px; font-size: .74rem; line-height: 1.55; color: #8a8a8a; }
.g-legal a { color: var(--text); }
.g-legal a:hover { color: var(--text); }

.g-bet { margin-top: 14px; }
.g-bet-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.g-bet-l { font-size: .9rem; font-weight: 600; color: var(--text); }
.g-bet-bal { display: inline-flex; align-items: center; gap: 5px; font-size: .86rem; color: #8a8a8a; }
.g-bet-bal .coin-i { width: 14px; height: 14px; }
.g-bet-bal b { font-family: var(--mono); font-size: .92rem; font-weight: 700; color: var(--text); }
.g-bet-bal.is-poor b { color: var(--g-lose); }
.g-bet-out { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: .88rem; color: #8a8a8a; }
.g-bet-out b { font-family: var(--mono); font-size: 1rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

.g-bet-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.g-field { display: flex; align-items: stretch; height: 44px; min-width: 0; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .15s; }
.g-field:focus-within { border-color: #3a3a3a; }
.g-field.is-poor { border-color: var(--border); }
.g-field.is-poor input { color: #8a8a8a; }
.g-field input { flex: 1; min-width: 0; width: 100%; text-align: center; background: none; border: none; outline: none; color: var(--text); font-family: var(--mono); font-size: 1.08rem; font-weight: 700; -moz-appearance: textfield; }
.g-field input::-webkit-outer-spin-button, .g-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.g-fb { width: 46px; flex-shrink: 0; padding: 0; background: none; border: none; color: #c8c8c8; font-family: var(--mono); font-size: 1.12rem; font-weight: 700; cursor: pointer; transition: background .14s, color .14s; }
.g-fb:first-child { border-right: 1px solid var(--border); }
.g-fb:last-child { border-left: 1px solid var(--border); }
.g-fb:hover { background: var(--bg-card-hover); color: var(--white); }
.g-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-qb { width: 62px; height: 44px; padding: 0; justify-content: center; border-radius: 12px; font-size: .9rem; font-weight: 600; }
.g-qb:disabled { opacity: .4; cursor: default; }

.g-locked { pointer-events: none; }
.g-locked .g-field { border-color: #202020; }
.g-locked .g-field input { color: #9a9a9a; }
.g-locked .g-fb, .g-locked .g-qb, .g-locked .g-bet-l, .g-locked .g-bet-bal, .g-locked .g-mines-l { color: #5f5f5f; }
.g-locked .g-qb { border-color: #202020; }

.g-mines { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.g-mines-l { font-size: .9rem; font-weight: 600; color: var(--text); }
.g-step { display: flex; align-items: stretch; width: 132px; height: 44px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.g-step button { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 100%; line-height: 1; padding: 0; background: none; border: none; color: var(--text-mute); cursor: pointer; transition: background .14s, color .14s; }
.g-step button i { font-size: .68rem; }
.g-step button:hover { background: var(--bg-card-hover); color: var(--white); }
.g-step input { flex: 1; min-width: 0; width: 100%; padding: 0; text-align: center; background: none; border: none; outline: none; color: var(--text); font-family: var(--mono); font-size: .92rem; font-weight: 700; -moz-appearance: textfield; }
.g-step input::-webkit-outer-spin-button, .g-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.g-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
.g-actions-auto { grid-template-columns: minmax(0, 1fr) 104px; }
.g-actions-auto .g-hb { height: 100%; justify-content: center; }
.g-actions-fast { grid-template-columns: minmax(0, 1fr) 48px 104px; }
.g-actions-fast1 { grid-template-columns: minmax(0, 1fr) 48px; }
.g-actions-fast1 .g-hb { height: 100%; justify-content: center; }
.g-fast { padding: 0; }
.g-fast-t { display: none; }
.g-hb.g-fast .g-ic { margin-right: 0; }
.g-fast.on, .g-fast.on:hover { background: #232323; border-color: #3a3a3a; color: #ffcf2e; }
.g-hb:focus-visible, .g-fast:focus-visible { outline: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
@media (max-width: 760px) {
    .g-actions-fast { grid-template-columns: minmax(0, 1fr) 52px 92px; }
    .g-actions-fast1 { grid-template-columns: minmax(0, 1fr) 52px; }
}
.sl-strip.sl-blur { filter: blur(1.3px); }
.bj-card.bj-tense { position: relative; z-index: 2; animation: bjTense .44s ease-in-out; }
.bj-card.bj-tense .bj-inner { box-shadow: 0 12px 24px rgba(0, 0, 0, .55); }
@keyframes bjTense { 0%, 100% { transform: none; } 22% { transform: translateY(-10px) scale(1.05) rotate(-3deg); } 50% { transform: translateY(-10px) scale(1.05) rotate(3deg); } 75% { transform: translateY(-10px) scale(1.05) rotate(-3deg); } 92% { transform: translateY(-4px) scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .bj-card.bj-tense { animation: none; } }
.g-card .sl-cell.sl-tease { border-color: #8a6a12; box-shadow: 0 0 0 1px rgba(255, 196, 26, .55), 0 0 18px rgba(255, 176, 0, .22); animation: slTease .45s ease-in-out infinite alternate; }
@keyframes slTease { to { box-shadow: 0 0 0 2px rgba(255, 196, 26, .95), 0 0 28px rgba(255, 176, 0, .4); } }
@media (prefers-reduced-motion: reduce) { .g-card .sl-cell.sl-tease { animation: none; } }
.g-action { width: 100%; height: 52px; padding: 0 20px; justify-content: center; font-size: 1.05rem; font-weight: 700; }
.g-action .g-num-soft, .ch-action .g-num-soft { font-family: var(--mono); font-size: .98rem; font-weight: 700; opacity: .72; }
.g-action:active:not(:disabled) { transform: scale(.99); }
.g-action.is-wait, .g-action.is-wait:hover { background: transparent; border-color: var(--border); color: #8a8a8a; }
.g-action.is-off, .g-action.is-off:hover { background: transparent; border-color: var(--border); color: #8a8a8a; }
.g-action.is-busy, .g-action.is-busy:hover { background: transparent; border-color: var(--border); color: var(--text-2); }
.g-action:disabled { cursor: default; }

.gsym { display: inline-block; background-color: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.gsym-cherry { -webkit-mask-image: url(/assets/games/sym/cherry.svg); mask-image: url(/assets/games/sym/cherry.svg); }
.gsym-grape { -webkit-mask-image: url(/assets/games/sym/grape.svg); mask-image: url(/assets/games/sym/grape.svg); }
.gsym-star { -webkit-mask-image: url(/assets/games/sym/star.svg); mask-image: url(/assets/games/sym/star.svg); }
.gsym-bell { -webkit-mask-image: url(/assets/games/sym/bell.svg); mask-image: url(/assets/games/sym/bell.svg); }
.gsym-diamond { -webkit-mask-image: url(/assets/games/sym/diamond.svg); mask-image: url(/assets/games/sym/diamond.svg); }
.gsym-bomb { -webkit-mask-image: url(/assets/games/sym/bomb.svg); mask-image: url(/assets/games/sym/bomb.svg); }
.gsym-seven { -webkit-mask-image: url(/assets/games/sym/seven.svg); mask-image: url(/assets/games/sym/seven.svg); }
.g-stat-sub:empty { display: none; }
#mnStatus .g-stat-sub:empty { display: block; }
.g-hb .g-ic, .g-action .g-ic { margin-right: 8px; }
.bj-moves .g-action { display: inline-flex; align-items: center; justify-content: center; }
.t-v1 { color: #6e6e6e; }
.t-v2 { color: #808080; }
.t-v3 { color: #a1a1a1; }
.t-v4 { color: #c2c2c2; }
.t-v5 { color: #e0e0e0; }
.t-v6 { color: #ffffff; }

.g-card .sl-sym { width: 56%; height: 56%; flex-shrink: 0; filter: none; }

.g-card .sl-cell { border-radius: 12px; background: #171717; border-color: #272727; box-shadow: none; transition: background-color .2s ease, border-color .2s ease, opacity .2s ease; }
.g-card .sl-cell.sl-win { animation: slWinIn .28s ease; }
.g-card .sl-grid.sl-miss .sl-cell { opacity: .55; }
@keyframes slWinIn { 0% { transform: scale(1); } 45% { transform: scale(1.04); } 100% { transform: scale(1); } }
.g-card .sl-cell::after { display: none; }
.g-card .sl-cell.sl-win { border-color: rgba(255, 196, 26, .5); }
.g-card .sl-grid.sl-good .sl-cell.sl-win { border-color: #ffc61a; background: #1d1a10; box-shadow: 0 0 0 1px #ffc61a; }
.g-card .sl-grid.sl-miss .sl-cell.sl-near { opacity: 1; border-color: rgba(255, 196, 26, .55); transition: opacity .2s ease, border-color .3s ease; }

.g-side .sl-pay-grid { display: flex; flex-direction: column; gap: 0; }
.g-side .sl-pay-row { justify-content: space-between; gap: 10px; padding: 4px 0; border-radius: 10px; background: none; border: none; }
.g-side .sl-pay-sym { width: 30px; height: 30px; }
.g-side .sl-pay-mult { font-size: .8rem; color: var(--text-2); }
.g-side .sl-lines-vis { gap: 16px; padding: 2px 0; }
.g-side .sl-line-mini { padding: 0; border: none; background: none; }
.g-side .sl-line-mini { grid-template-columns: repeat(3, 6px); grid-auto-rows: 6px; gap: 3px; }
.g-side .sl-line-mini span { background: #414141; }
.g-side .sl-line-mini span.on { background: #ededed; }

#mnWin, #mnMult { color: var(--text); }
#mnWin.off, #mnMult.off { color: #8a8a8a; }
#mnWin.up, #mnMult.up { color: var(--g-win); }
#mnWin.down, #mnMult.down { color: var(--g-lose); }

.g-card .mn-grid { gap: 8px; margin: 0; }
.g-card .mn-grid.mn-tense { border-radius: 14px; animation: mnTense calc(1.2s - var(--mn-t, 0) * .5s) ease-in-out infinite alternate; }
@keyframes mnTense { from { box-shadow: 0 0 0 1px rgba(255, 176, 0, calc(.1 + var(--mn-t, 0) * .3)), 0 0 4px rgba(255, 176, 0, 0); } to { box-shadow: 0 0 0 1px rgba(255, 176, 0, calc(.15 + var(--mn-t, 0) * .45)), 0 0 12px rgba(255, 176, 0, calc(.1 + var(--mn-t, 0) * .3)); } }
.g-card .mn-cell.mn-wait { animation: mnWait .14s ease-in-out infinite alternate; }
@keyframes mnWait { from { transform: scale(.97); } to { transform: scale(1.03); border-color: #5a4a1a; } }
@media (prefers-reduced-motion: reduce) { .g-card .mn-grid.mn-tense, .g-card .mn-cell.mn-wait { animation: none; } }
.g-card .mn-cell { border-radius: 12px; background: #171717; border-color: #272727; box-shadow: none; transition: background-color .15s ease, border-color .15s ease, transform .12s ease, opacity .2s ease; }
.g-card .mn-ci { width: 44%; height: 44%; }
.g-card .mn-cell.open.bomb .mn-ci { width: 52%; height: 52%; }
.g-card .mn-cell.open.gem { background: #16211d; border-color: #3f6153; color: var(--g-win); }
.g-card .mn-cell.open.bomb { background: #241818; border-color: #5c3a3a; color: var(--g-lose); }
.g-card .mn-cell.open.bomb.dim { background: #1c1414; border-color: #3a2a2a; color: #8e5f5c; animation: mnDim .24s ease; }
@keyframes mnDim { 0% { opacity: 0; transform: scale(.92); } 100% { opacity: 1; transform: scale(1); } }
.g-card .mn-grid:not([data-locked="1"]) .mn-cell:not(.open):hover { background: #232323; border-color: #3a3a3a; transform: none; box-shadow: none; }
.g-card .mn-grid:not([data-locked="1"]) .mn-cell:not(.open):active { transform: scale(.97); }
.g-card .mn-grid[data-locked="1"] .mn-cell:not(.open) { opacity: .85; }

.g-card .cr-stage { margin: 0; border-radius: 12px; background: var(--bg-raised); border-color: var(--border); }
.g-card .cr-mult { top: 18px; left: 20px; transform: none; font-size: 2.3rem; font-weight: 700; color: var(--text); text-shadow: none; }
.g-card .cr-mult.idle, .g-card .cr-mult.away { color: var(--text-2); }
.g-card .cr-mult.bust { color: var(--g-lose); }
.g-card .cr-mult.ok { color: var(--g-win); }
.g-card .cr-mult.cr-shake { animation: crShake .32s ease; }
@keyframes crShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.g-card .cr-phase { top: 16px; left: auto; right: 16px; transform: none; font-family: var(--body); font-size: .78rem; font-weight: 500; letter-spacing: 0; padding: 0; color: #8a8a8a; background: none; border: 0; backdrop-filter: none; }
.cr-betting-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: #6a6a6a; transform-origin: left; }

.g-card .cr-players { max-height: 292px; gap: 8px; padding-bottom: 2px; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 22px), transparent); }
.g-card .cr-players:empty { display: none; }
.g-card .crp { min-height: 52px; border-radius: 12px; padding: 8px 11px; gap: 10px; background: var(--bg-card); border-color: var(--border); }
.g-card .crp > .crp-bg { position: absolute; inset: 0; z-index: 0; }
.g-card .crp-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.42) saturate(.55); }
.g-card .crp-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.93) 0%, rgba(10,10,10,.86) 46%, rgba(10,10,10,.95) 100%); }
.g-card .crp.has-banner::before { display: none; }
.g-card .crp.has-banner .crp-name { text-shadow: 0 1px 4px rgba(0,0,0,.9); }
.g-card .crp.has-banner .crp-bet { color: rgba(255,255,255,.62); text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.g-card .crp-av { border-radius: 50%; }
.g-card .crp.is-me { background: var(--bg-card-hover); border-color: #3a3a3a; }
.g-card .crp-mult { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.g-card .crp-x { font-family: var(--mono); font-size: .84rem; font-weight: 700; }
.g-card .crp-p { font-family: var(--mono); font-size: .72rem; font-weight: 600; opacity: .75; }
.g-card .crp-p[hidden] { display: none; }
.g-card .crp-mult.bust { color: var(--g-lose); }
.g-card .crp-mult.live { color: var(--text-2); }
.g-card .crp-mult.ok { color: var(--g-win); }

@media (min-width: 641px) and (max-width: 900px) {
    .g-wrap { max-width: 640px; }
}

@media (max-width: 900px) {
    .g-wrap { max-width: 520px; }
    .g-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .g-card:has(> .g-ctrl) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "ctrl" "side"; grid-template-rows: auto; }
    .g-band { height: 210px; }
    .g-side-box { padding: 11px; }
    .g-card .cr-players { max-height: 262px; }
}

@media (max-width: 520px) {
    .g-card { padding: 13px; gap: 12px; }
    .section:has(.g-card) { padding-top: 72px; padding-bottom: 96px; }
    .g-page-head .section-title { font-size: 1.35rem; margin-bottom: 6px; }
    .g-head-r { margin-bottom: 6px; }
    .g-note { font-size: .76rem; margin-bottom: 10px; }
    .g-band { height: 176px; }
    .g-hb { height: 40px; padding: 0 18px; }
    .g-card .sl-grid, .g-card .sl-row { gap: 6px; }
    .g-hist { height: 22px; margin-bottom: 6px; }
    .g-result { min-height: 20px; margin-top: 8px; }
    .g-section .crumbs { display: none; }
    .g-card .sl-cell { aspect-ratio: 5 / 4; }
    .g-stats { gap: 6px; margin-top: 7px; }
    .g-stat { padding: 6px 8px; }
    .g-stat-v { margin-top: 2px; }
    .g-stat-sub { display: none; }
    .g-bet { margin-top: 8px; }
    .g-bet-top { margin-bottom: 5px; }
    .g-action { height: 50px; }
    .g-field { height: 44px; }
    .g-qb { height: 44px; }
}

@media (max-width: 430px) {
    .g-result { min-height: 19px; }
    .g-actions { margin-top: 6px; }
    .g-mines { gap: 6px; }
    .g-fb { width: 38px; }
    .g-qb { width: 52px; }
    .g-quick { gap: 6px; }
    .g-card .mn-grid { gap: 7px; }
    .g-card .mn-ci { width: 46%; height: 46%; }
    .g-card .mn-cell.open.bomb .mn-ci { width: 54%; height: 54%; }
    .g-card .cr-mult { font-size: 2rem; top: 14px; left: 14px; }
}

.gw-modal { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0, 0, 0, .78); }
.gw-box { max-width: 400px; border-radius: 14px; box-shadow: none; animation: none; text-align: left; }
.gw-ttl { font-weight: 700; }
.gw-text { color: #9a9a9a; }
.gw-ok { margin-top: 4px; }
#chEndActions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#chEndSp, #chEndActions .ch-h2h { flex-basis: 100%; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .9rem; font-weight: 600; color: var(--text); }
.sl-auto-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#slAuto { white-space: nowrap; }
.sl-auto-n { margin-left: 8px; font-variant-numeric: tabular-nums; opacity: .6; }
.sl-auto-choices .btn { height: 44px; justify-content: center; font-size: .95rem; font-weight: 600; }
.g-ctrl .sl-auto-choices { position: static; }
.g-ctrl > .g-bet-out + .g-actions { margin-top: 10px; }
.g-side > .g-me { order: 8; }
.g-side > .g-me-score { order: 9; }
.g-side > .g-legal { order: 10; }

.g-card .bj-table { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 22px 20px; border: 1px solid #272727; border-radius: 14px; background: #141414; min-height: 320px; justify-content: center; }
.bj-shoe { position: absolute; top: 16px; right: 16px; width: 46px; height: 66px; }
.bj-shoe img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 5px; }
.bj-shoe img + img { transform: translate(-3px, 3px); }
.bj-snd { position: absolute; top: 16px; right: 74px; z-index: 2; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #2a2a2a; background: transparent; color: var(--text-mute); cursor: pointer; }
.bj-snd:hover { color: var(--white); border-color: #3a3a3a; }
.bj-snd svg { width: 16px; height: 16px; }
.bj-side { display: flex; flex-direction: column; gap: 10px; }
.bj-side-h { display: flex; align-items: baseline; gap: 10px; font-size: .84rem; font-weight: 500; color: #8a8a8a; }
.bj-side-h b { font-family: var(--mono); font-size: 1.05rem; font-weight: 700; color: var(--white); letter-spacing: 0; transition: color .2s ease; }
.bj-side-h b.up { color: var(--g-win); }
.bj-side-h b.down { color: var(--g-lose); }
.bj-hand { display: flex; gap: 10px; min-height: 118px; flex-wrap: nowrap; transition: opacity .25s ease; }
.bj-hand:has(.bj-card:nth-child(5)) { gap: 0; }
.bj-hand:has(.bj-card:nth-child(5)) .bj-card + .bj-card { margin-left: -36px; }
.g-card.is-playing .g-hist { opacity: .35; }
.g-card .bj-moves .g-action:disabled { opacity: .4; }
.bj-hand.dim { opacity: .5; }
.bj-card { position: relative; width: 82px; height: 118px; perspective: 700px; flex-shrink: 0; }
.bj-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .38s cubic-bezier(.3,.7,.3,1); }
.bj-inner.down { transform: rotateY(180deg); }
.bj-face { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 7px; backface-visibility: hidden; -webkit-backface-visibility: hidden; user-select: none; }
.bj-back { transform: rotateY(180deg); }
.bj-moves { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) {
    .g-card .bj-table { padding: 14px 12px; gap: 14px; min-height: 0; }
    .bj-hand { gap: 6px; min-height: 84px; }
    .bj-card { width: 58px; height: 84px; }
    .bj-hand:has(.bj-card:nth-child(5)) .bj-card + .bj-card { margin-left: -26px; }
    .bj-shoe { width: 34px; height: 49px; top: 12px; right: 12px; }
    .bj-snd { top: 12px; right: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    .g-card *, .g-card *::before, .g-card *::after, .px-placed { animation: none !important; transition: none !important; }
}
.g-card .pl-stage { padding: 16px 14px 14px; border: 1px solid #272727; border-radius: 14px; background: #141414; overflow: hidden; }
.pl-canvas { display: block; width: 100%; }
.pl-buckets { position: relative; margin-top: 2px; }
.pl-b { position: absolute; top: 0; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 5px; font-family: var(--mono); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; }
.pl-b { background: var(--bg-raised); color: #8a8a8a; }
.pl-b.t2, .pl-b.t3, .pl-b.t4 { color: var(--g-win); }
.pl-b.hit { animation: plHit .42s cubic-bezier(.2,.8,.2,1.2); }
.pl-b.hit.t0 { animation: plHitLo .24s ease-out; }
.pl-b.hit.t4 { animation: plHitBig .9s cubic-bezier(.2,.8,.2,1.2); }
@keyframes plHit { 0% { transform: translateY(0); filter: brightness(1); } 18% { transform: translateY(5px); filter: brightness(1.6); } 100% { transform: translateY(0); filter: brightness(1); } }
@keyframes plHitLo { 0% { transform: translateY(0); } 30% { transform: translateY(2px); } 100% { transform: translateY(0); } }
@keyframes plHitBig { 0% { transform: translateY(0); background: var(--bg-raised); } 12% { transform: translateY(7px); background: color-mix(in srgb, var(--g-win) 28%, var(--bg-raised)); } 58% { transform: translateY(0); background: color-mix(in srgb, var(--g-win) 28%, var(--bg-raised)); } 100% { background: var(--bg-raised); } }
.g-card .pl-stats { grid-template-columns: repeat(2, 1fr); }
.g-hist-i.pl-t0, .g-stat-v.pl-t0, .g-hist-i.pl-t1, .g-stat-v.pl-t1 { color: #8a8a8a; }
.g-hist-i.pl-t2, .g-stat-v.pl-t2, .g-hist-i.pl-t3, .g-stat-v.pl-t3, .g-hist-i.pl-t4, .g-stat-v.pl-t4 { color: var(--g-win); }
.g-stat-v.pl-bump-big { animation: plBumpBig .38s cubic-bezier(.2,.8,.2,1.2); }
@keyframes plBumpBig { 50% { transform: scale(1.18); } }
.pl-snd { position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #2a2a2a; background: transparent; color: var(--text-mute); cursor: pointer; }
.pl-snd:hover { color: var(--white); border-color: #3a3a3a; }
.pl-snd svg { width: 16px; height: 16px; }
.pl-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pl-opt:first-child { grid-column: 1 / -1; }
.pl-opt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pl-opt-l { font-size: .9rem; font-weight: 600; color: var(--text); }
.pl-seg { display: flex; gap: 2px; padding: 3px; height: 44px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 12px; }
.pl-seg button { flex: 1; min-width: 0; padding: 0 6px; border: 0; border-radius: 9px; background: none; color: #8a8a8a; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .14s, color .14s; }
.pl-seg button:hover { color: var(--text); }
.pl-seg button.on { background: #2a2a2a; color: var(--white); }
.pl-seg.is-locked { opacity: .5; }
.pl-seg.is-locked button { cursor: default; }
@media (max-width: 720px) {
    .g-card .pl-stage { margin: 0 -8px; padding: 12px 4px 8px; }
    .pl-b { border-radius: 3px; letter-spacing: -.06em; }
    .pl-snd { top: 8px; right: 8px; }
    .pl-seg button { font-size: .86rem; padding: 0 4px; }
}
.mn-actions { grid-template-columns: minmax(0, 1fr); }
.ch-winx { margin-left: 6px; font-weight: 400; color: #8a8a8a; }
.g-note.ch-gone { display: block; color: var(--text-2); }
.pl-snd::after, .bj-snd::after { content: ''; position: absolute; inset: -6px; }
@media (max-width: 900px) {
    .g-side > .g-me { display: none; }
    .g-side > .g-me-score { order: 9; }
    .g-side > .g-legal { order: 10; }
}
@media (max-width: 720px) {
    .section:has(.g-card) { padding-top: 66px; padding-bottom: 24px; }
    .g-page-head .section-title { font-size: 1.05rem; margin: 0 0 8px; }
    .g-title-ic { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }
    .g-note { display: none; }
    .g-ctrl .g-actions { position: sticky; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 5; margin-top: 12px; padding: 10px 0; background: var(--bg); }
    .g-ctrl .g-bet-out { position: sticky; bottom: calc(132px + env(safe-area-inset-bottom)); z-index: 5; margin: 12px 0 0; padding-top: 10px; background: var(--bg); }
    .g-ctrl > .g-bet-out + .g-actions { margin-top: 0; }
    .g-ctrl .g-bet-out::before, .g-ctrl .g-actions:not(.g-bet-out + .g-actions, .sl-auto-choices)::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; background: linear-gradient(to top, var(--bg), transparent); pointer-events: none; }
    .g-step input { font-size: 16px; }
}
@media (max-width: 520px) {
    .g-card.sl-card { padding: 0; border: 0; background: none; border-radius: 0; }
    .g-stats { gap: 0; margin-top: 8px; }
    .g-stat { padding: 2px 4px; background: none; border: 0; }
    .g-stat-l { font-size: .7rem; }
    .g-stat-v, .g-stat.is-lead .g-stat-v { font-size: 1rem; margin-top: 1px; }
    .g-stat-v.off, #mnWin.off, #mnMult.off { color: #5f5f5f; }
    .g-card .pl-stage { margin: 0; padding: 8px 4px 8px; }
}
@media (max-width: 430px) {
    .bj-moves .g-action .g-ic { display: none; }
    .g-card .bj-shoe { display: none; }
    .bj-snd { right: 12px; }
}
.sn-wrap { max-width: 1120px; }
.g-card.sn-card { grid-template-columns: minmax(0, 1fr) 240px; }
.sn-stage { position: relative; height: min(72vh, 680px); border: 1px solid #272727; border-radius: 14px; overflow: hidden; background: #0e0e0e; touch-action: none; user-select: none; -webkit-user-select: none; }
.sn-canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.sn-hud { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.sn-score { display: flex; flex-direction: column; gap: 1px; }
.sn-score b { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.sn-score span { font-size: .74rem; color: #8a8a8a; }
.sn-lb { list-style: none; margin: 0; padding: 6px 8px; min-width: 150px; border-radius: 10px; background: rgba(14,14,14,.72); }
.sn-lb:empty { display: none; }
.sn-lb li { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; line-height: 1.55; color: #9a9a9a; }
.sn-lb li span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-lb li b { font-family: var(--mono); font-weight: 600; color: #c8c8c8; }
.sn-lb li.me, .sn-lb li.me b { color: var(--white); }
.sn-mini { position: absolute; left: 12px; bottom: 12px; width: 84px; height: 84px; border-radius: 8px; pointer-events: none; }
.sn-stage:has(.sn-over:not([hidden])) .sn-mini { display: none; }
.sn-boost { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 68px; height: 68px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #3a3a3a; background: rgba(20,20,20,.8); color: #c8c8c8; touch-action: none; }
.sn-boost .g-ic { width: 26px; height: 26px; }
.sn-boost.on { background: #e8e8e8; color: #111; border-color: #e8e8e8; }
.sn-over { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); }
.sn-over[hidden] { display: none; }
.sn-over-box { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(300px, 86%); text-align: center; }
.sn-res-n { font-family: var(--mono); font-size: 2.4rem; font-weight: 700; color: var(--white); line-height: 1; }
.sn-res-s { margin-top: 6px; font-size: .82rem; color: #9a9a9a; }
.sn-play { width: 100%; }
.sn-exit { padding: 6px 12px; border: none; border-radius: 10px; background: none; font: inherit; font-size: .84rem; color: #9a9a9a; cursor: pointer; }
.sn-exit:hover { color: var(--white); }
.sn-exit[hidden] { display: none; }
.sn-stage.fs { position: fixed; inset: 0; z-index: 1000; height: auto; border: 0; border-radius: 0; }
.sn-stage.fs .sn-hud { top: calc(10px + env(safe-area-inset-top, 0px)); left: calc(12px + env(safe-area-inset-left, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); }
.sn-stage.fs .sn-mini { left: calc(12px + env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.sn-stage.fs .sn-boost { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
html.sn-fs, html.sn-fs body { overflow: hidden; }
.sn-hint { padding: 8px 14px; border-radius: 10px; background: rgba(0,0,0,.6); font-size: .88rem; color: rgba(255,255,255,.75); }
.sn-hint:empty { display: none; }
.g-fb:disabled { opacity: .4; cursor: default; }
.g-card.is-playing .g-bet-out { visibility: hidden; }
@media (max-width: 520px) and (max-height: 700px) {
    .g-card .sl-machine, .g-card .g-stage:has(> .mn-grid), .g-card .pl-stage { max-width: 260px; margin-inline: auto; }
    .g-card:has(> .g-ctrl) .g-hist:empty, .g-stats:not(:has(.g-stat-v:not(.off))) { display: none; }
}
.g-kv.sn-me dt, .g-kv.sn-me dd { color: var(--white); }
@media (max-width: 900px) {
    .g-card.sn-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .sn-section .g-page-head { display: none; }
    .sn-section.section:has(.g-card) { padding-top: 64px; }
    .sn-stage { height: calc(100svh - 64px - 62px - 12px - env(safe-area-inset-bottom)); border-radius: 12px; }
    .sn-mini { width: 64px; height: 64px; }
    .sn-lb { min-width: 128px; }
}
@media (min-width: 2200px) and (min-height: 1250px) {
    .g-wrap { zoom: 1.3; }
}
@media (min-width: 3200px) and (min-height: 1800px) {
    .g-wrap { zoom: 1.6; }
}
