/* Kapsulas 3, часть 8 — раскладка, перенесённая из удалённых старых слоёв тем.
   Только размеры, отступы, сетки, шрифт, толщина рамок, display и позиция — в том же порядке и на том же месте каскада,
   где стояли слои (после style.css, stock.css и chips.css, до дизайн-системы). Цвета, фоны, тени и радиусы не перенесены:
   их даёт дизайн-система. !important встречается там, где он был в исходном слое (перебивал style.css). */

/* ===== из game-controls-theme.css ===== */
/* ===== из game-controls-theme.css ===== */
#view .g-fit, #view .if { --gc-top: #d9b5ff; --gc-light: #a855f7; --gc-mid: #7c3aed; --gc-end: #5145ff; --gc-deep: #120d27; --gc-surface: #241737; --gc-surface-2: #30204b; --gc-border: rgba(187, 132, 255, .4); --gc-active-border: #d6a4ff; --gc-shine: rgba(244, 228, 255, .2); --gc-focus: #00e5ff; --gc-shadow: rgba(74, 59, 230, .38); }
#view .rps.g-fit, #view .rps .g-fit { --gc-end: #8261f5; --gc-mid: #7745df; }
#view .ck.g-fit, #view .ck .g-fit { --gc-end: #6654f9; --gc-mid: #7641dd; }
#view .md.g-fit { --gc-light: #ba65ff; --gc-end: #8451ee; }
#view .pk.g-fit { --gc-light: #bf60ff; --gc-end: #6e47f2; }
#view .tw.g-fit { --gc-light: #9e60f8; --gc-end: #6954f6; }
#view .pn.g-fit { --gc-light: #cf66fa; --gc-end: #6347ef; }
#view .av.g-fit { --gc-light: #ad69ff; --gc-end: #535df1; }
#view .if { --gc-light: #9e72fa; --gc-end: #594df5; }
#view .g-fit .case-head :is(.back,.chip), #view .if .case-head :is(.back,.chip) { position: relative; border: 1px solid var(--k-line); }
#view .g-fit .btn:not(.ghost):not(:disabled), #view .g-fit .tw-btn:not(.cash):not(:disabled), #view .if .if-actions .if-go:not(:disabled) { position: relative; border: 1px solid var(--k-line); }
#view .g-fit .btn.green:not(:disabled), #view .g-fit .tw-btn.cash:not(:disabled) { border: 1px solid var(--k-line); }
#view .g-fit .btn.ghost:not(:disabled), #view .if .if-actions .btn.ghost:not(:disabled) { border: 1px solid var(--k-line); }
#view .g-fit :is(.controls .sq, .controls .presets button, .up-presets button, .ck-modes button, .pk-seg button, .md-speed button, .controls .chip), #view .if .if-chips .chip { border: 1px solid var(--k-line); }
#view .g-fit .rps-pick:not(:disabled) { border: 1px solid var(--k-line); }
#sheet:has(.rps-rules) .sheet-body, #sheet:has(.up-modal) .sheet-body { border: 1px solid var(--k-line); }
#sheet :is(.rps-rules,.up-modal) .btn:not(.ghost):not(:disabled) { border: 1px solid var(--k-line); }
#view .g-fit :is(.btn,.tw-btn):not(:disabled):active, #view .if .if-actions :is(.btn,.tw-btn):not(:disabled):active { transform: translateY(2px) scale(.99); }
#view .g-fit :is(.case-head .chip,.case-head .back, .controls .sq,.controls .presets button, .up-presets button,.ck-modes button,.pk-seg button, .md-speed button,.rps-pick):not(:disabled):active, #view .if :is(.case-head .chip,.case-head .back,.if-chips .chip,.if-spot):not(:disabled):active { transform: translateY(1px); }
#view .g-fit :is(.btn,.tw-btn):disabled, #view .if .if-actions :is(.btn,.tw-btn):disabled { border: 1px solid var(--k-line); }
#view .g-fit, #view .if { --gc-button-top: #b841fc; --gc-button-mid: #9528f1; --gc-button-bottom: #7719e7; --gc-button-shine: rgba(236,207,255,.38); --gc-button-shadow: rgba(117,25,231,.37); --gc-menu-line: rgba(129,108,233,.38); --gc-menu-top: #27234c; --gc-menu-bottom: #15132f; --gc-selected: #9128f5; }
#view .g-fit .btn:not(.ghost):not(.green):not(:disabled), #view .g-fit .tw-btn:not(.cash):not(:disabled), #view .if .if-actions .if-go:not(:disabled) { border: 1px solid var(--k-line); }
#view .g-fit .btn.green:not(:disabled), #view .g-fit .tw-btn.cash:not(:disabled) { border: 1px solid var(--k-line); }
#view .g-fit .btn.ghost:not(:disabled), #view .if .if-actions .btn.ghost:not(:disabled), #view .g-fit .case-head :is(.back,.chip), #view .if .case-head :is(.back,.chip) { border: 1px solid var(--k-line); }
#view .g-fit :is(.controls .sq,.controls .presets button,.up-presets button, .ck-modes button,.pk-seg button,.md-speed button, .controls .chip), #view .if .if-chips .chip { border: 1px solid var(--k-line); }
#view .g-fit :is(.controls .presets button[aria-pressed="true"], .up-presets button[aria-pressed="true"], .ck-modes button[aria-checked="true"], .pk-seg button[aria-checked="true"], .md-speed button[aria-pressed="true"], .controls .chip[aria-checked="true"], .controls .chip[aria-pressed="true"]), #view .if .if-chips .chip[aria-checked="true"] { border: 1px solid var(--k-line); }
#view .g-fit :is(.btn,.tw-btn):disabled, #view .if .if-actions :is(.btn,.tw-btn):disabled { border: 1px solid var(--k-line); }

/* ===== из gifts-theme.css ===== */
:root { --night: #101018; --panel: #1b1927; --panel-2: #262136; --line: #343041; --muted: #a7a2b8; --violet: #8d55f6; }
.balance { border: 0; }
#view h1,#view h2 { letter-spacing: -.03em; }
#view .btn,#sheet .btn { font-family: var(--body); font-weight: 700; }
#view .btn:not(.ghost):not(:disabled),#view .g-fit .btn:not(.ghost):not(:disabled),#sheet .btn:not(.ghost):not(:disabled),#view .g-fit .tw-btn:not(:disabled),#view .if .if-actions .if-go:not(:disabled) { border: 1px solid var(--k-line); }
#view .btn::before,#view .btn::after,#view .tw-btn::before,#view .tw-btn::after { display: none; }
#view .btn.ghost,#sheet .btn.ghost,#view .g-fit .btn.ghost { border: 1px solid var(--k-line); }
#view .btn:disabled,#view .g-fit .btn:disabled { border: 1px solid var(--k-line); }
#view .g-fit :is(.controls .sq,.controls .presets button,.up-presets button,.md-speed button),#view :is(.back,.chip) { border: 1px solid var(--k-line); }
#view .controls .bet,#view .controls .toggle { border: 1px solid var(--k-line); }
#view .field,#sheet .field,.lobby-search { border: 1px solid var(--k-line); }
.case-card { border: 1px solid var(--k-line); }
.case-card .name { font-family: var(--body); font-weight: 700; }
.case-card .price { padding: 5px 10px; font-size: 13px; }
.lobby-count,.lobby-mark { border: 0; }
.tabs a { font-family: var(--body); }
#view .upgrade-v2 .chance-picker { position: relative; align-self: center; width: fit-content; max-width: 100%; margin: 0 auto 10px; z-index: 5; }
.chance-picker>summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 15px; border: 1px solid var(--k-line); font: 600 13px var(--body); }
.chance-picker>summary::-webkit-details-marker { display: none; }
.chance-picker>summary b { font-variant-numeric: tabular-nums; }
.chance-picker>summary svg { width: 16px; height: 16px; }
.chance-picker[open]>summary svg { transform: rotate(180deg); }
.chance-popover { position: relative; left: 50%; transform: translateX(-50%); box-sizing: border-box; margin-top: 10px; width: min(340px,calc(100vw - 32px)); max-width: calc(100vw - 32px); padding: 12px; border: 1px solid var(--k-line); }
#view .chance-popover .up-presets { gap: 5px; margin: 0 0 10px; }
#view .chance-popover .up-presets button { min-height: 42px; padding: 6px 3px; }
#view .chance-popover .up-presets b { font: 700 13px var(--body); }
#view .chance-popover .up-presets small { font: 500 9px var(--body); }
.chance-popover .chance-control { padding: 0; border: 0; }
.chance-popover .chance-value { margin: 0; }
.chance-popover .chance-limits { margin-top: 0; }
#view .upgrade-v2 .dial-wrap { width: min(100%,310px); margin-inline: auto; }
#view .upgrade-v2 .dial-center { inset: 27%; width: 46%; height: 46%; overflow: hidden; gap: 4px; }
#view .upgrade-v2 .dial-mult { max-width: 100%; font: 800 clamp(21px,10cqw,34px)/1.1 var(--body); letter-spacing: -.045em; white-space: nowrap; }
#view .upgrade-v2 .dial-sub { max-width: 100%; font: 600 clamp(10px,4cqw,13px)/1.3 var(--body); overflow-wrap: anywhere; margin: 0; }
#view .g-fit .controls .btn:not(.ghost):not(:disabled) { border: 1px solid var(--k-line); }
#view .g-fit .controls .btn.ghost:not(:disabled) { border: 1px solid var(--k-line); }
#view .md-v2 { --md-u: calc(var(--md-rows) + 5.05); }
#view .md-v2 .md-field { max-width: 340px; overflow: visible; }
#view .md-v2 .md-sky { height: calc(100% * 4 / var(--md-u)); }
#view .md-v2 .md-symbols { left: 0; top: 0; width: 100%; height: 75%; border: 3px solid var(--k-line); }
#view .md-v2 .md-symbol { border: 0; }
#view .md-v2 .md-symbol img { max-width: 90%; max-height: 90%; width: 90%; height: 90%; object-fit: contain; }
#view .md-v2 .md-symbol.used img { visibility: hidden; }
#view .md-v2 .md-ground { top: calc(100% * 4 / var(--md-u)); bottom: calc(100% * .3 / var(--md-u)); }
#view .md-v2 .md-col { grid-template-rows: repeat(var(--md-rows),minmax(0,1fr)) minmax(0,.75fr); }
#view .md-v2 .md-chest { width: 100%; height: 100%; max-width: 100%; object-fit: fill; }
#view .md-v2 .md-hud { top: auto; bottom: calc(-100% * .44 / var(--md-u)); left: 0; width: 100%; max-width: none; height: calc(100% * .65 / var(--md-u)); display: flex; justify-content: center; align-items: center; gap: 8px; padding: 2px 5px; border: 2px solid var(--k-line); }
#view .md-v2 .md-hud .num { font: 800 14px/1 var(--body); }
#view .md-v2 #dWin { font: 600 10px var(--body); }
#view .md-v2 #dFound { display: none; }
#view .md-v2 .md-left { top: 80%; bottom: auto; right: 0; font: 600 10px var(--body); padding: 3px 5px; border: 0; }
#view .md-v2 .md-stars { display: none; }
#view .md-v2 .md-total { top: 35%; }
#view .md-v2 .g-stage { padding-bottom: 15px; }
html.fit #view .md-v2 .md-field { width: min(100cqw,calc((100cqh - 16px) * 5 / var(--md-u)),340px); }
#view .md-v2 #dBuy { min-height: 36px; font-size: 12px; padding: 6px 12px; }
#view .md-v2 .g-stage { min-height: 200px; }
@media(max-height:740px) {
  html.fit #view .md-v2 .g-stage { min-height: 0; padding-bottom: 12px; }
  html.fit #view .md-v2 .controls { gap: 6px; }
  html.fit #view .md-v2 .btn.block { min-height: 46px; }
}
@media(min-width:800px) {
  #view .md-v2 { max-width: 640px; margin-inline: auto; }
  #view .md-v2 .md-field { max-width: 300px; }
}
html.fit #view .upgrade-v2 .dial-wrap { width: min(100cqw,100cqh,310px); }
#view .upgrade-v2 .chance-picker { margin: 8px auto 10px; }
.chance-picker>summary { width: fit-content; margin-inline: auto; }
html.fit #view .upgrade-v2:has(.chance-picker[open]) { height: auto; min-height: var(--fit-h); }
html.fit #view .upgrade-v2:has(.chance-picker[open])>.g-stage { flex: none; height: 260px; }
#view .md-v2 .g-stage { position: relative; }
.md-symbol.upgrade-reveal::after { content: 'MAX'; position: absolute; right: 1px; bottom: 1px; font: 700 8px/1.3 var(--body); padding: 0 2px; }
.md-symbol { position: relative; }
@media(max-height:700px) {
  html.fit #view .upgrade-v2 .chance-picker { margin: 2px auto 4px; }
  html.fit #view .upgrade-v2 .controls { gap: 6px; }
  html.fit #view .upgrade-v2 .toggle { min-height: 44px; padding-block: 6px; }
  html.fit #view .upgrade-v2 .btn.block { min-height: 46px; }
}
#view .md-v2 .md-field.md-scene { --md-su: calc(var(--md-rows) + 6.85); width: 100%; max-width: none; aspect-ratio: auto; height: clamp(300px, calc(100vw * var(--md-su) / 5.5), 620px); overflow: hidden; }
html.fit #view .md-v2 .md-field.md-scene { width: 100%; height: calc(100cqh - 16px); }
#view .md-v2 .g-stage:has(.md-scene) { padding-bottom: 8px; }
#view .md-v2 .md-scene canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
#view .md-v2 .md-scene .md-total { top: 38%; z-index: 2; }
.md-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
@media(min-width:800px) {
  #view .md-v2 .md-field.md-scene { height: max(320px, min(620px, calc(100dvh - 400px))); }
}
#view .md-v2 .md-total .md-bd { font: 600 12px/1.3 var(--body); text-align: center; max-width: 260px; }

/* ===== из minimal-theme.css ===== */
:root { --m-bg: #111117; --m-surface: #18181F; --m-surface-2: #202029; --m-surface-3: #2A2A35; --m-hair: rgba(255, 255, 255, .08); --m-hair-2: rgba(255, 255, 255, .14); --m-text: #F3F2F7; --m-muted: #8F8D9F; --m-accent: #A99BFF; --m-accent-ink: #15121F; --m-win: #46D39A; --m-loss: #F2687C; --m-r-s: 10px; --m-r: 14px; --m-r-l: 20px; --night: var(--m-bg); --panel: var(--m-surface); --panel-2: var(--m-surface-2); --line: var(--m-hair); --violet: #8B7CF6; --glow: var(--m-accent); --text: var(--m-text); --muted: var(--m-muted); --plus: var(--m-win); --danger: var(--m-loss); --card-edge: var(--m-hair); --card-shadow: none; --surf: var(--m-surface); --surf-2: var(--m-surface-2); --k-page: var(--m-bg); --k-card: var(--m-surface); --k-card-2: var(--m-surface-2); --k-hero: var(--m-surface); --k-btn: var(--m-accent); --k-btn-hi: #B9AEFF; --k-glow: none; --k-btn-glow: none; --k-on: rgba(169, 155, 255, .16); --k-r: var(--m-r-l); --k-rs: var(--m-r); --display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; }
body { font: 500 15px/1.5 var(--body); letter-spacing: -0.005em; }
.bg-fx { display: none !important; }
h1, h2, h3, .num { font-family: var(--body); }
.num { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.top, .top.scrolled { border-bottom: 1px solid var(--k-line); }
.logo-word { font: 800 17px/1 var(--body); letter-spacing: .06em; }
.hnav a { font: 600 14px var(--body); }
.balance { border: 0; padding-left: 14px; }
.balance #balance { font: 700 15px var(--body); font-variant-numeric: tabular-nums; }
.icon-btn, .avatar-btn .av { border: 0; }
.tabs { border-top: 1px solid var(--k-line); }
.tabs a { position: relative; margin: 6px 4px; font-weight: 600; }
.tabs a[aria-current="page"]::before { content: ''; position: absolute; top: 2px; left: 50%; width: 4px; height: 4px; margin-left: -2px; }
.btn { font-weight: 700; border: 0; }
.btn:not([disabled]):active { transform: scale(.98); }
.btn.block { min-height: 52px; }
.btn.ghost { border: 0; }
.chip { border: 0; }
.chips button { font-weight: 600; }
.back { border: 0; }
.seg, .wal-sub { border: 0; }
.rows, .lvl-card, .stats > div, .mstat, .case-card, .gcard, .gcard.wide, .wal-m, .wal-m.on, .free { border: 0; }
#view .field, #view .wal-pb input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), #view .wal-pb select, #view textarea, .lobby-search, .search { border: 0; }
.sheet-body, html.lite .sheet-body { border: 0; }
.sheet.center .sheet-body { border: 0; }
#toast { border: 0; font-weight: 600; }
.lobby-head { margin: 18px 0 14px; }
.lobby-head h1 { font: 800 32px/1.05 var(--body); letter-spacing: -0.03em; margin: 0; }
.lobby-head small { display: block; margin-top: 6px; font-size: 14px; }
.lobby-mark { display: none; }
.lobby-tools { margin-bottom: 8px; }
.lobby-count { font-weight: 600; }
.case-card .price { font-weight: 800; }
#view .g-fit, #view .if { --gc-top: #E9E6FF; --gc-light: var(--m-accent); --gc-mid: #8B7CF6; --gc-end: #7A6AE8; --gc-deep: var(--m-bg); --gc-surface: var(--m-surface); --gc-surface-2: var(--m-surface-2); --gc-border: var(--m-hair-2); --gc-active-border: var(--m-accent); --gc-shadow: transparent; }
.free, html.lite .free { border: 0; }
.wal-dir { border: 0; }
.profile-bonus { border: 0; }
.freecase-header nav button { border: 0; }
#view .btn:not(.ghost):not(:disabled), #view .g-fit .btn:not(.ghost):not(:disabled), #sheet .btn:not(.ghost):not(:disabled), #view .g-fit .tw-btn:not(:disabled), #view .if .if-actions .if-go:not(:disabled) { border: 0; }
#view .btn.green:not(:disabled), #view .g-fit .btn.green:not(:disabled), #view .g-fit .tw-btn.cash:not(:disabled) { border: 0; }
#view .sm { --sm-bg: var(--m-bg); --sm-panel: var(--m-surface); --sm-line: var(--m-hair); }
.sm-board, .sm-pf { border: 0; }
#view .sm .sm-title { letter-spacing: 0; font-family: var(--body); font-weight: 800; }
.daily::after { display: none; }
.daily-kicker { letter-spacing: 0; text-transform: none; font-weight: 700; }
.buy-hero, .gf-hero { border: 0; }
#view select, .sort-select { border: 0; }
.hnav a, .hnav a[aria-current="page"] { border: 0 !important; }

/* ===== из games-pop.css ===== */
:root { --pop-ink: #2A1452; --pop-yellow: #FFD84A; --pop-yellow-d: #D99E0B; --pop-violet: #9B6BFF; --pop-violet-l: #C3A6FF; --pop-violet-d: #5E37D6; --pop-green: #3FE08E; --pop-green-d: #17A35E; --pop-face: #2B2141; --pop-face-d: #150F24; }
.lobby-head { position: relative; margin: 14px 0 12px; padding: 18px 18px 16px; overflow: hidden; }
.lobby-head h1 { font: 800 30px/1.05 var(--body) !important; letter-spacing: -0.02em; }
.lobby-head small { font-weight: 700; }
.lobby-head::after { content: ''; position: absolute; right: -18px; top: -22px; width: 120px; height: 120px; }
body.in-game #view :is(.g-fit, .if, .sm) :is(.btn, .tw-btn):not(:disabled):active { transform: translateY(4px); }
body.in-game #view .g-fit :is(.bet-row .sq, .md-speed button, .pk-seg button, .ck-modes button, .av-seg button):not(:disabled):active, body.in-game #view :is(.g-fit, .if) .btn.ghost:not(:disabled):active { transform: translateY(3px); }
body.in-game #view .g-fit :is(.md-speed, .pk-seg, .ck-modes, .av-seg) { gap: 6px; padding-bottom: 4px; }
#view .lobby-a .lobby-head { position: relative; display: block !important; margin: 10px 0 16px !important; padding: 18px !important; min-height: 0; overflow: hidden; }
#view .lobby-a .lobby-head::after { display: none; }
#view .lobby-a .lh-art { position: absolute !important; z-index: 0; right: -14px; top: 50%; left: auto; bottom: auto; width: 46%; max-width: 230px; height: auto !important; aspect-ratio: 1; transform: translateY(-50%) rotate(6deg) !important; object-fit: cover; }
#view .lobby-a .lh-text { position: relative; z-index: 1; max-width: 64%; display: flex; flex-direction: column; align-items: flex-start; }
#view .lobby-a .lobby-head h1 { margin: 10px 0 0 !important; font: 800 26px/1.08 var(--body) !important; letter-spacing: -.02em; }
#view .lobby-a .lobby-head small { display: block; margin: 8px 0 14px !important; font: 600 13px/1.35 var(--body) !important; }
.lh-pf { display: inline-flex; align-items: center; padding: 5px 7px; font: 800 10px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--k-line); }
.lh-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; white-space: nowrap; font: 800 14px/1 var(--body); }
.lh-cta:active { transform: translateY(3px); }
.lobby-chips { display: flex; gap: 8px; margin: 0 0 18px; overflow-x: auto; padding: 0 2px 4px; }
.lobby-chips::-webkit-scrollbar { display: none; }
.lobby-chips button { flex: none; min-height: 34px; padding: 0 14px; font: 700 13px/1 var(--body); border: 1px solid var(--k-line); }
.la-sec { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.la-sec h2 { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 16px/1.2 var(--body); }
.la-count { display: inline-flex; align-items: center; padding: 3px 7px; font: 800 11px/1 var(--body); font-variant-numeric: tabular-nums; }
.la-find { margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--k-line); }
.la-find svg { width: 18px; height: 18px; }
#view .lobby-a .lobby-tools { margin: 0 0 12px; }
#view .lobby-a .lobby-tools .lobby-search { width: 100%; border: 1px solid var(--k-line); }
#view .lobby-a .lobby-empty { margin-top: 4px; }
.la-rail { display: flex; flex-direction: column; gap: 16px; padding: 16px 0 14px; }
.lw h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 800 16px/1.2 var(--body); }
.lw-live { padding: 4px 6px; font: 800 9px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.lw-list { display: flex; gap: 8px; overflow-x: auto; padding: 0 2px 4px; }
.lw-list::-webkit-scrollbar { display: none; }
.lw-item { flex: none; display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; white-space: nowrap; border: 1px solid var(--k-line); font: 700 12px/1 var(--body); }
.lw-ic { --g1: #8F63FF; --g2: #5B3BE0; flex: none; width: 24px; height: 24px; display: grid; place-items: center; }
.lw-ic svg { width: 14px; height: 14px; }
.lw-who small { display: none; }
.lw-amt { font: 800 12px/1 var(--body); font-variant-numeric: tabular-nums; }
.lw-item.g-upgrade .lw-ic { --g1: #A86BFF; --g2: #6C3BF0; }
.lw-item.g-crash .lw-ic { --g1: #FF7A59; --g2: #E83A5F; }
.lw-item.g-mines .lw-ic { --g1: #3EDB9A; --g2: #12A374; }
.lw-item.g-rps .lw-ic { --g1: #59A8FF; --g2: #3B5BEB; }
.lw-item.g-chicken .lw-ic { --g1: #FFC54A; --g2: #F08A1C; }
.lw-item.g-minedrop .lw-ic { --g1: #54C96B; --g2: #2C8F49; }
.lw-item.g-plinko .lw-ic { --g1: #FF6FCF; --g2: #C13AE0; }
.lw-item.g-tower .lw-ic { --g1: #4FD6E8; --g2: #2489D8; }
.lw-item.g-penalty .lw-ic { --g1: #6EE07A; --g2: #22A85A; }
.lw-item.g-avia .lw-ic { --g1: #6CC8FF; --g2: #3A7BF0; }
.lw-item.g-icefish .lw-ic { --g1: #8EE7FF; --g2: #3FA3E8; }
.lw-item.g-stock .lw-ic { --g1: #4BE3B0; --g2: #1B9E8A; }
@media (max-width: 600px) {
  .lw-item { padding: 7px 10px; font-size: 11px; gap: 6px; }
  .lw-ic { width: 20px; height: 20px; }
  .lw-ic svg { width: 12px; height: 12px; }
  .lw-amt { font-size: 11px; }
  #view .lobby-t .gt-chip { height: 24px; padding: 0 8px; font-size: 11px; }
}
.la-fair { padding: 14px; border: 1px solid var(--k-line); }
.la-fair-top { display: flex; align-items: center; gap: 10px; }
.la-fair-top b { font: 800 15px/1.2 var(--body); }
.la-fair p { margin: 10px 0 0; font-size: 12px; line-height: 1.45; }
.la-fair-go { margin-left: auto; display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; font: 800 12px/1 var(--body); }
.la-fair-go:active { transform: translateY(2px); }
@media (max-width: 359px) {
  #view .lobby-a .lobby-head h1 { font-size: 23px !important; }
}
@media (min-width: 1000px) {
  .lobby-a { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
  #view .lobby-a .lobby-head { min-height: 200px; padding: 24px !important; }
  #view .lobby-a .lobby-head h1 { font-size: 34px !important; }
  #view .lobby-a .lh-art { width: 210px; right: 24px; }
  .la-rail { position: sticky; top: calc(var(--top-h, 64px) + 12px); padding-top: 10px; }
  .lw { padding: 14px; border: 1px solid var(--k-line); }
  .lw-list { flex-direction: column; gap: 0; overflow: visible; padding: 0; }
  .lw-item { padding: 9px 2px; border: 0; border-bottom: 1px solid var(--k-line); }
  .lw-item:last-child { border-bottom: 0; }
  .lw-item:nth-child(n + 9) { display: none; }
  .lw-who small { display: inline; margin-left: 6px; font-weight: 600; }
  .lw-amt { margin-left: auto; }
}
.bet-row { grid-template-columns: 46px minmax(0, 1fr) 46px 56px !important; }
.bet-row .sq.max { font: 800 13px/1 var(--body); letter-spacing: .02em; }
@media (max-width: 380px) {
  .bet-row { grid-template-columns: 40px minmax(0, 1fr) 40px 50px !important; gap: 5px !important; }
  .bet-row .sq.max { font-size: 12px; }
}
body.in-game #view .g-fit .tw-btn { grid-auto-flow: column; justify-content: center; align-items: center; gap: 8px; }
body.in-game #view .g-fit .tw-btn b { font: 800 17px/1 var(--body); letter-spacing: 0; text-transform: none; }
body.in-game #view .g-fit .tw-btn span { font: 800 15px/1 var(--body); }
body.in-game #view .g-fit .tw-btn b + span:not(:empty)::before { content: '·'; margin-right: 4px; }
.pf-line { flex: none; display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 8px; padding: 0 2px; font: 600 11px/1.2 var(--body); }
.pf-line .pf-tag { flex: none; padding: 3px 5px; font: 800 9px/1 var(--body); letter-spacing: .06em; border: 1px solid var(--k-line); }
.pf-line .pf-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-line code { font: 600 11px/1 ui-monospace, 'SFMono-Regular', Menlo, monospace; }
.pf-line b { font-variant-numeric: tabular-nums; }
.pf-line .pf-go { flex: none; font-weight: 800; }
html.fit .g-fit .pf-line { margin-top: 6px; }
.pf-line.below { margin: 10px 0 4px; }
body.in-game #view .g-fit .ck-modes button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; padding-right: 4px; }
@media (max-width: 380px) {
  body.in-game #view .g-fit .ck-modes button { font-size: 13px; letter-spacing: -.01em; }
}
body.in-game #view .sm .btn.sm-cash small { font-weight: 700 !important; }
#view .lobby-t .la-sec { margin: 6px 0 12px; }
#view .lobby-t .la-sec h1 { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 22px/1.2 var(--body); }
#view .lobby-t .gt-art { position: absolute; inset: 0; z-index: 0; }
#view .lobby-t .gt-chips { position: absolute; z-index: 3; top: 14px; left: 10px; right: 10px; display: flex; justify-content: center; gap: 6px; }
#view .lobby-t .gt-tile.wide .gt-chips { justify-content: flex-start; top: 18px; left: 20px; }
#view .lobby-t .gt-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; white-space: nowrap; font: 800 13px/1 var(--body); letter-spacing: .01em; }
#view .lobby-t .gt-chip.new { letter-spacing: .03em; }
#view .lobby-t .gt-chip.hot { letter-spacing: .03em; font-weight: 900; }
#view .lobby-t .gt-chip.new svg { width: 13px; height: 13px; }
#view .lobby-t .gt-shine { position: absolute; inset: 0; z-index: 2; transform: translateX(-130%); }
@media (min-width: 800px) {
  body:has(.lobby-t) #view { max-width: 1080px; }
}

