/* Desk pass v3 (lane G3, 2026-11-20, Zach: "reverse engineer the page it's on completely … exactly like Stake").
   Measured side by side at a 1920x1080 desktop view (research/desk/dump-stake.json). Wide screens only for now; the
   phone view is done after. Sizes, spacing, colours and type match; the drawings (logo, icons, art) stay ours. */
@media (min-width: 1100px) {
  /* ---------- left rail: full height from the very top, the menu button in its top square ---------- */
  .fx2 .side { top: 0; z-index: 12; background: var(--rail); box-shadow: none; padding: 0 8px 8px; justify-content: flex-start; }
  .fx2.side-folded .side { padding: 0 8px 8px; }
  .fx2 .side-fold { order: -1; margin: 0 -8px 16px; width: 60px !important; height: 60px !important; min-height: 60px !important; border-radius: 8px;
    color: var(--label); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .2), 0 4px 6px -2px rgba(0, 0, 0, .1); flex: none; }
  .fx2 .side-fold svg { width: 20px; height: 20px; }
  .fx2.side-folded .side-fold svg { transform: none; }
  .fx2 .side nav { gap: 8px; }
  .fx2 .side-group { display: flex; flex-direction: column; gap: 8px; }
  .fx2 .side-group + .side-group, .fx2.side-folded .side-group + .side-group { margin-top: 4px; padding-top: 12px; border-top: 0; position: relative; }
  .fx2 .side-group + .side-group::before { content: ''; position: absolute; top: 0; left: 8px; right: 8px; height: 2px; background: var(--surface); border-radius: 2px; }
  .fx2 .side-nav :is(a, button), .fx2.side-folded .side-nav :is(a, button) { min-height: 44px; height: 44px; border-radius: 8px; color: var(--label); font: 600 16px var(--font); }
  .fx2.side-folded .side-nav :is(a, button) { width: 44px; }
  .fx2 .side a[aria-current="page"] { background: var(--surface); color: var(--text-2); }
  .fx2 .side-nav :is(a, button):hover { background: var(--surface); color: var(--text-2); }
  .fx2 .side svg { width: 20px; height: 20px; }
  .fx2 .side .side-pic { width: 20px; height: 20px; border-radius: 4px; }

  /* ---------- header: starts after the rail; logo and icons line up with the page column ---------- */
  .fx2.has-side .top { padding-left: var(--side-w); background: var(--bg); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .2), 0 2px 4px -1px rgba(0, 0, 0, .12); }
  .fx2 .top-in { max-width: calc(1200px + 6vw); margin: 0 auto; padding: 0 3vw; height: 60px; }
  .fx2 .top-in .brand { min-width: 0; }
  .fx2 .top-mid { left: calc(var(--side-w, 0px) + (100% - var(--side-w, 0px)) / 2); }
  .fx2 .bal { order: 0; height: 48px; padding: 12px 20px; gap: 8px; background: var(--well); border: 0; border-radius: 8px 0 0 8px;
    font: 600 16px var(--font-num); color: var(--text-2); box-shadow: none; flex-direction: row-reverse; }
  .fx2 .bal .ui-coin, .fx2 .bal .wallet-balance-coin { width: 20px; height: 20px; font-size: 11px; }
  .fx2 .top-wallet { height: 48px; min-height: 48px; padding: 12px 20px; border-radius: 0 8px 8px 0; font: 600 16px var(--font); background: var(--info); color: #fff; box-shadow: none; }
  .fx2 .top-right { display: flex; gap: 0; align-items: center; }
  .fx2 .top-search { width: 44px; height: 44px; min-height: 44px; padding: 12px; justify-content: center; border: 0; background: none; box-shadow: none; border-radius: 4px; color: var(--text-2); }
  .fx2 .top-search span, .fx2 .top-search kbd { display: none; }
  .fx2 .top-search svg, .fx2 .acct-btn svg { width: 20px; height: 20px; }
  .fx2 .acct-btn { width: 44px; height: 44px; min-height: 44px; color: var(--text-2); border-radius: 4px; }
  .fx2 .top-search:hover, .fx2 .acct-btn:hover { background: var(--surface); }

  /* ---------- game controls (left panel) ---------- */
  .fx2 .ui-controls { gap: 0; }
  .fx2 .ui-seg { height: 48px; padding: 4px; gap: 8px; background: var(--well); border-radius: 999px; margin-bottom: 12px; }
  .fx2 .ui-seg button { height: 40px; min-height: 40px; padding: 8px 16px; border-radius: 999px; font: 600 16px var(--font); color: var(--text-2); flex: 0 0 100px; }
  .fx2 .ui-seg button[aria-checked="true"], .fx2 .ui-seg button[aria-pressed="true"], .fx2 .ui-seg button.is-on { background: var(--edge); color: #fff; }
  .fx2 .ui-field { gap: 0; }
  .fx2 .ui-label { font: 600 14px var(--font); line-height: 20px; color: var(--label); margin: 0 0 4px; }
  .fx2 .ui-box { height: 44px; min-height: 44px; background: var(--well); border: 2px solid var(--edge); border-radius: 8px; box-shadow: var(--lift-sm); }
  .fx2 .ui-box input { font: 400 16px var(--font-num); color: var(--text-2); padding: 8px 8px; }
  .fx2 .ui-box:hover { border-color: var(--edge); }
  .fx2 .ui-bet-field .ui-box { overflow: hidden; padding: 0; }
  .fx2 .ui-bet-field .ui-box input, .fx2 .ui-gain .ui-gain-value { order: 0; }
  .fx2 .ui-bet-field .ui-box > .ui-affix, .fx2 .ui-gain > .ui-affix { order: 1; padding: 0 12px 0 4px; }
  .fx2 .ui-coin { width: 20px; height: 20px; font-size: 11px; }
  .fx2 .ui-box-btn { order: 2; height: auto; align-self: stretch; width: 45px; background: var(--edge); font: 600 16px var(--font); color: #fff; border: 0 !important; }
  .fx2 .ui-box-btn + .ui-box-btn { order: 3; width: 50px; border-radius: 0 6px 6px 0; position: relative; }
  .fx2 .ui-box-btn + .ui-box-btn::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--well); }
  .fx2 .ui-gain .ui-gain-value { order: 0; flex: 1; padding: 0 8px; font: 400 16px var(--font-num); color: var(--text-2); }
  .fx2 .ui-btn.is-primary.is-wide { height: 44px; min-height: 44px; margin: 12px 0 15px; border-radius: 8px; font: 600 16px var(--font); box-shadow: none; }
  .fx2 .ui-btn { font-family: var(--font); }

  /* ---------- game footer bar ---------- */
  .fx2 .game-bar { padding: 16px 0 16px 4px; height: 63px; align-items: center; }
  .fx2 .bar-btn { width: 52px; height: 46px; padding: 13px 16px; color: var(--label); border-radius: 4px; }
  .fx2 .bar-btn svg { width: 20px; height: 20px; }
  .fx2 .bar-btn[data-panel="fair"] { width: auto; height: 40px; padding: 8px 16px; gap: 8px; margin-right: 12px; background: var(--edge); color: #fff; border-radius: 8px; font: 600 16px var(--font); }
  .fx2 .bar-btn[data-panel="fair"] svg { color: #c5d9e9; }
  .fx2 .bar-btn.fav { display: none; }
}
@media (min-width: 1100px) {
  .fx2 .ui-btn.is-primary.is-wide { margin: 12px 0 15px; }
  .fx2 .ui-controls > .ui-field + .ui-field, .fx2 .ui-controls .ui-gain-field { margin-top: 0; }
}
/* ---------- info block under the game (Stake: a 826 game card + a 350 "Games For You" card, 24 apart) ---------- */
#info:has(> .gi-more) {
  container: gameInfo / inline-size; display: grid; grid-template-columns: minmax(0, 1fr) min(350px, 50%);
  align-items: start; gap: 24px;
}
.fx2 #info { margin-top: 24px; padding: 0; background: none; border: 0; }
#info .gi-main { min-width: 0; }
.fx2 #info .gi-card { background: var(--surface); border-radius: 8px; }
.fx2 #info .gi-main { padding: 16px; display: flex; flex-direction: column; }
.fx2 #info > .gi-main:only-child { grid-column: 1 / -1; }
.fx2 #info .gi-brand { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--edge); }
.fx2 #info .gi-tile { width: 64px; height: 64px; border-radius: 8px; background: var(--edge); display: grid; place-items: center; flex: none; }
.fx2 #info .gi-tile svg { width: 34px; height: 34px; }
.fx2 #info .gi-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fx2 #info .gi-who > b { font: 700 18px/28px var(--font); color: var(--text-2); }
.fx2 #info .gi-who span { font: 400 16px/24px var(--font); color: var(--label); }
.fx2 #info .gi-who span b { font-weight: 600; color: var(--text-2); }
#info .gi-btn { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; border-radius: 8px; background: var(--edge); color: #c5d9e9; cursor: pointer; }
#info .gi-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
#info .gi-btn[aria-pressed="true"] svg { fill: currentColor; }
#info .gi-btn:hover { background: var(--surface-4); }
.fx2 #info .gi-head { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.fx2 #info .gi-head h1 { margin: 0; font: 700 18px/28px var(--font); color: var(--text-2); }
.fx2 #info .gi-link { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--label); font: 400 16px/24px var(--font); cursor: pointer; padding: 0; }
.fx2 #info .gi-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; transform: rotate(90deg); }
.fx2 #info .gi-link:hover { color: var(--text-2); }
.fx2 #info .gi-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 400 16px/24px var(--font); color: var(--label); }
.fx2 #info .gi-meta b { font-weight: 400; color: var(--text-2); }
.fx2 #info .gi-live i, .fx2 #info .gi-item small i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--win); margin-right: 4px; vertical-align: 1px; }
.fx2 #info .gi-sep { width: 2px; height: 16px; background: var(--edge); }
.fx2 #info .gi-tabs { display: inline-flex; align-self: flex-start; gap: 8px; margin: 20px 0 0; padding: 4px; height: 52px; background: var(--well); border-radius: 999px; border: 0; width: auto; }
.fx2 #info .gi-tabs button { height: 44px; min-height: 44px; padding: 10px 20px; border-radius: 999px; font: 600 16px var(--font); color: var(--text-2); background: none; border: 0;
  transition: background-color .15s cubic-bezier(.4, 0, .2, 1), color .15s cubic-bezier(.4, 0, .2, 1); }   /* Stake (page probe): tab switch 150, the lock curve */
.fx2 #info .gi-tabs button[aria-selected="true"] { background: var(--edge); color: #fff; }
.fx2 #info .gi-sub { display: flex; gap: 8px; margin-top: 16px; }
.fx2 #info .gi-sub[hidden] { display: none; }
.fx2 #info .gi-sub button { height: 36px; padding: 6px 16px; border-radius: 8px; border: 0; background: var(--well); color: var(--label); font: 400 16px var(--font); cursor: pointer; }
.fx2 #info .gi-sub button[aria-pressed="true"] { background: var(--edge); color: #fff; }
.fx2 #info #ranges { margin-top: 12px; }
.fx2 #info #tab-body { margin-top: 12px; }
#info .gi-more {
  position: relative; display: flex; flex-direction: column; align-self: stretch; min-width: 0; min-height: 531px;
  padding: 0 0 16px; background: var(--surface); border-radius: 8px;
}
#info .gi-picker, .games-sidebar .gi-picker { position: relative; z-index: 1; align-self: flex-start; padding: 12px 16px; }
#info .gi-picker h2, .games-sidebar .gi-picker h2 { margin: 0; }
#info .gi-trigger, .games-sidebar .gi-trigger {
  display: flex; align-items: center; gap: 8px; min-height: 24px; padding: 0; border: 0;
  border-radius: 8px; background: transparent; color: var(--text-2); font: 600 16px/24px var(--font); cursor: pointer;
}
#info .gi-view-icon, .games-sidebar .gi-view-icon { flex: none; width: 20px; height: 20px; fill: currentColor; color: var(--label); }
#info .gi-trigger .gi-chevron, .games-sidebar .gi-trigger .gi-chevron { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
#info .gi-trigger[aria-expanded=true] .gi-chevron, .games-sidebar .gi-trigger[aria-expanded=true] .gi-chevron { transform: rotate(180deg); }
#info .gi-menu, .games-sidebar .gi-menu {
  position: absolute; top: calc(100% - 2px); left: 50%; transform: translateX(-50%);
  width: 176px; padding: 4px 0; border-radius: 8px; background: var(--surface);
  box-shadow: 0 5px 16px rgb(0 0 0 / 28%);
}
#info .gi-menu button, .games-sidebar .gi-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; text-align: left; border: 0; padding: 12px;
  background: transparent; color: var(--label); font: 600 14px/20px var(--font); cursor: pointer;
}
#info .gi-menu button:is(:hover,:focus-visible,[aria-checked=true]), .games-sidebar .gi-menu button:is(:hover,:focus-visible,[aria-checked=true]) { background: var(--edge); color: var(--text-2); }
#info .gi-list, .games-sidebar .gi-list {
  /* The other grid cell sets the card height, independent of the number of recommendations. */
  contain: size; flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain;
  scrollbar-width: none;
}
#info .gi-list::-webkit-scrollbar, .games-sidebar .gi-list::-webkit-scrollbar { display: none; }
#info .gi-item, .games-sidebar .gi-item { display: flex; align-items: flex-start; gap: 16px; padding: 8px 16px; }
#info .gi-thumb, .games-sidebar .gi-thumb { display: block; width: 50%; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; flex: none; background: var(--edge); }
#info .gi-thumb img, #info .gi-thumb svg, .games-sidebar .gi-thumb img, .games-sidebar .gi-thumb svg { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
#info .gi-txt, .games-sidebar .gi-txt { display: flex; flex-direction: column; min-width: 0; }
#info .gi-txt a, .games-sidebar .gi-txt a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
#info .gi-txt a:hover, .games-sidebar .gi-txt a:hover { text-decoration: underline; }
#info .gi-title, .games-sidebar .gi-title { font: 700 18px/28px var(--font); color: var(--text-2); }
#info .gi-studio, .games-sidebar .gi-studio { font: 400 16px/24px var(--font); color: var(--label); }
#info .gi-txt small, .games-sidebar .gi-txt small { font: 400 12px/16px var(--font); color: var(--label); margin-top: 6px; }
#info .gi-txt small em, .games-sidebar .gi-txt small em { font-style: normal; color: var(--text-2); }
#info .gi-load, .games-sidebar .gi-load { display: none; }
#info .gi-empty, .games-sidebar .gi-empty { padding: 16px; margin: 0; color: var(--label); text-align: center; }
#info .gi-empty a, #info .gi-empty button, .games-sidebar .gi-empty a, .games-sidebar .gi-empty button { color: var(--text-2); text-decoration: underline; }
#info .gi-empty button, .games-sidebar .gi-empty button { background: transparent; border: 0; cursor: pointer; font: inherit; }
.games-sidebar .gi-picker {
  display: flex; align-items: center; align-self: stretch; flex: 0 0 60px; padding: 0 6px 0 16px;
  box-shadow: 0 2px 7px rgb(0 0 0 / 16%);
}
.games-sidebar .gi-menu { left: 10px; top: calc(100% - 8px); transform: none; background: var(--surface); }
.games-sidebar .gi-list { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.games-sidebar .gi-item {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: min(170px, 50vw) minmax(0, 1fr);
  align-items: center; gap: 16px; padding: 0;
}
.games-sidebar .gi-title::after, .games-sidebar .gi-item:is(:hover, :focus-within)::before {
  content: ''; position: absolute; inset: -8px -16px;
}
.games-sidebar .gi-item:is(:hover, :focus-within)::before { z-index: -1; background: var(--surface); }
.games-sidebar .gi-media { position: relative; z-index: 1; min-width: 0; }
.games-sidebar .gi-studio { position: relative; z-index: 1; align-self: flex-start; max-width: 100%; }
.games-sidebar .gi-thumb { width: 100%; border-radius: 8px; }
.games-sidebar .gi-thumb .gi-slot-icon { object-fit: contain; object-position: center; }
.games-sidebar .gi-preview {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 8px;
  object-fit: cover; pointer-events: none;
}
.games-sidebar .gi-mini {
  position: absolute; z-index: 1; right: 8px; bottom: 8px; display: grid; place-items: center;
  width: 32px; height: 32px; border: 0; border-radius: 6px; padding: 0;
  background: var(--surface-2); color: var(--text); cursor: pointer; opacity: 0; pointer-events: none;
}
.games-sidebar .gi-mini svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.games-sidebar .gi-media:hover .gi-mini, .games-sidebar .gi-media:focus-within .gi-mini { opacity: 1; pointer-events: auto; }
@media (hover: none) { .games-sidebar .gi-mini { opacity: 1; pointer-events: auto; } }
@media (pointer: coarse) { .games-sidebar .gi-mini { min-width: 40px; min-height: 40px; } }
.games-sidebar .gi-txt time, .games-sidebar .gi-txt small { font: 400 12px/16px var(--font); color: var(--label); }
.games-sidebar .gi-txt time { margin-top: 4px; }
.games-sidebar .gi-txt small { margin-top: 4px; }
.games-sidebar .gi-txt small i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; vertical-align: 1px; background: var(--win); }
@container gameInfo (max-width: 927px) {
  #info .gi-main, #info .gi-more { grid-column: 1 / -1; }
  #info .gi-more { min-height: 0; padding: 0; background: transparent; }
  #info .gi-picker { padding: 0 0 16px; }
  #info .gi-trigger { font-size: 20px; line-height: 28px; }
  #info .gi-menu { top: calc(100% - 6px); left: 0; transform: none; }
  #info .gi-list {
    contain: none; display: grid; grid-template-columns: repeat(var(--gi-columns, 3), minmax(0, 1fr));
    gap: 24px var(--gi-gap, 8px); flex: none; overflow: visible;
  }
  #info .gi-item { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-width: 0; padding: 0; }
  #info .gi-thumb { width: 100%; aspect-ratio: 3/4; }
  #info .gi-thumb img { object-position: center; }
  #info .gi-title, #info .gi-studio { display: none; }
  #info .gi-txt small { margin: 0; line-height: 20px; white-space: nowrap; }
  #info .gi-load {
    display: block; align-self: center; margin-top: 16px; padding: 10px 16px; border: 0; border-radius: 8px;
    background: transparent; color: var(--text-2); font: 600 16px/24px var(--font); cursor: pointer;
  }
  #info .gi-load:hover { background: var(--surface); }
  #info .gi-empty { grid-column: 1 / -1; }
}
@container gameInfo (min-width: 501px) { .gi-more { --gi-columns: 4; --gi-gap: 15px; } }
@container gameInfo (min-width: 601px) { .gi-more { --gi-columns: 5; } }
@container gameInfo (min-width: 751px) { .gi-more { --gi-columns: 6; } }
@container gameInfo (min-width: 901px) { .gi-more { --gi-columns: 7; } }
/* ---------- desk pass, round 2: offsets measured against Stake (research/desk) ---------- */
@media (min-width: 1100px) {
  .fx2 .ui-controls .ui-seg button { font: 600 16px var(--font); }
  .fx2 .ui-controls .ui-field.ui-modes { margin: 0 0 0; }
  .fx2 .ui-controls .ui-seg { margin-bottom: 12px; }
  .fx2 .ui-controls .ui-controls-end { margin-top: 0; gap: 0; }
  .fx2 .ui-controls .ui-controls-end > * { margin-top: 0; }
  .fx2 .ui-controls .ui-label { margin-bottom: 4px; }
  /* bet box: the well (input + coin) has the 2px border; ½ and 2× sit flush, full 44px */
  .fx2 .ui-bet-field .ui-box { border: 0; background: none; box-shadow: var(--lift-sm); }
  .fx2 .ui-bet-field .ui-box input { height: 44px; background: var(--well); border: 2px solid var(--edge); border-right: 0; border-radius: 8px 0 0 8px; }
  .fx2 .ui-bet-field .ui-box > .ui-affix { height: 44px; display: flex; align-items: center; background: var(--well); border: 2px solid var(--edge); border-left: 0; border-right: 0; }
  .fx2 .ui-box-btn { height: 44px; }
  .fx2 .game-bar .bar-btn[data-panel="fair"] { height: 40px; min-height: 40px; width: 121px; justify-content: center; margin-right: 16px; }
}
/* ---------- round 3 (zoomed comparison) ---------- */
@media (min-width: 1100px) {
  /* coin: a solid 20px disc like Stake's currency mark (our green, our letter) */
  .fx2 .ui-coin { width: 20px !important; height: 20px !important; background: var(--accent) !important; color: var(--accent-ink) !important; font: 800 11px/20px var(--font) !important; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
  /* header icons: heavier, bright, like Stake's */
  .fx2 .top-search svg, .fx2 .acct-btn svg { stroke-width: 2.1; color: var(--text-2); }
  .fx2 .bal::after { content: ''; width: 20px; height: 20px; flex: none; order: -1; background: var(--text-2);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E") center / 20px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E") center / 20px no-repeat; }
  /* rail: brighter, heavier icons; the menu button's lines too */
  .fx2 .side svg { stroke-width: 2.1; }
  .fx2 .side-nav :is(a, button) { color: #c5d9e9; }
  .fx2 .side-fold { color: var(--text-2); }
  .fx2 .side-fold svg { stroke-width: 2.4; }
}
@media (min-width: 1100px) {
  /* the first two rail entries are tiles, like Stake's section switch: the first one blue (we are in the casino), the next raised */
  .fx2 .side-group:first-child > a:nth-child(1) { background: var(--info); color: #fff; }
  .fx2 .side-group:first-child > a:nth-child(2) { background: var(--surface); color: var(--text-2); margin-bottom: 8px; }
  .fx2 .side-group:first-child > a:nth-child(1):hover { background: color-mix(in srgb, var(--info) 88%, #fff); }
}
/* the Amount stepper: hidden except on the wide desk view, where it sits left of the coin like Stake's */
.ui-step { display: none; }
@media (min-width: 1100px) {
  .fx2 .ui-bet-field .ui-affix { gap: 8px; }
  .fx2 .ui-step { display: flex; flex-direction: column; width: 16px; height: 24px; border-radius: 4px; background: var(--edge); overflow: hidden; }
  .fx2 .ui-step-btn { flex: 1; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
  .fx2 .ui-step-btn::before { content: ''; position: absolute; inset: 0; background: var(--label);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l3-3 3 3'/%3E%3C/svg%3E") center / 16px 12px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l3-3 3 3'/%3E%3C/svg%3E") center / 16px 12px no-repeat; }
  .fx2 .ui-step-btn + .ui-step-btn::before { transform: scaleY(-1); }
  .fx2 .ui-step-btn:hover::before { background: var(--text-2); }
}
@media (min-width: 1100px) {
  .fx2 .ui-box > .ui-step { align-self: center; flex: none; margin-right: 4px; }
  /* Footer bar icons */
  .fx2 .bar-btn svg { stroke-width: 2.1; }

}
/* ---------- Codex r3 fixes (chrome) ---------- */
@media (min-width: 1100px) {
  /* rail game shortcuts muted like Stake's one-colour icons */
  .fx2 .side .side-pic { filter: grayscale(1) brightness(1.55) contrast(.9); opacity: .8; }
  .fx2 .side a:hover .side-pic, .fx2 .side a[aria-current="page"] .side-pic { filter: none; opacity: 1; }
  /* Net Gain box: no dark well (Stake's read-only box shows the panel colour) */
  .fx2 .ui-gain { background: none !important; }
  /* Amount stepper subdued; ½ | 2× without the bright divider */
  .fx2 .ui-bet-field .ui-step { background: rgba(0, 0, 0, .35); }
  .fx2 .ui-box-btn + .ui-box-btn::before { background: rgba(0, 0, 0, .18); top: 14px; bottom: 14px; }
  /* Fairness: filled shield, 12px from the bar's right edge */
  .fx2 .game-bar .bar-btn[data-panel="fair"] { margin-right: 8px; }
  .fx2 .game-bar .bar-btn[data-panel="fair"] svg path:first-child { fill: currentColor; }
  .fx2 .game-bar .bar-btn[data-panel="fair"] svg path + path { stroke: var(--edge); }
}
/* ---------- Auto tab (compared beside Stake's Auto, no bets) ---------- */
@media (min-width: 1100px) {
  .fx2 .ui-auto { gap: 0; }
  .fx2 .ui-auto > .ui-field, .fx2 .ui-controls .ui-bet-field + .ui-auto { margin-top: 12px; }
  .fx2 .ui-auto .ui-label-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .fx2 .ui-auto .ui-affix.is-end { font: 600 18px var(--font); color: var(--text-2); padding-right: 12px; }
  .fx2 .ui-switch { min-height: 40px; margin-top: 4px; font: 600 14px/20px var(--font); color: var(--label); }
  .fx2 .ui-switch-input { width: 40px; height: 24px; border-radius: 999px; background: var(--edge); box-shadow: inset 0 0 0 2px var(--edge); }
  .fx2 .ui-switch-input::after { top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
  .fx2 .ui-switch-input:checked { background: var(--info); box-shadow: none; }
  .fx2 .ui-switch-input:checked::after { transform: translateX(16px); background: #fff; }
}
@media (min-width: 1100px) {
  /* steppers: plain small chevrons on a faint dark chip, like Stake's */
  .fx2 .ui-step, .fx2 .ui-bet-field .ui-step { width: 16px; height: 22px; background: rgba(0, 0, 0, .22); border-radius: 4px; }
  .fx2 .ui-step-btn::before { background: color-mix(in srgb, var(--label) 70%, transparent); }
  .fx2 .ui-auto > .ui-field, .fx2 .ui-controls .ui-bet-field + .ui-auto { margin-top: 4px; }
}
@media (min-width: 1100px) {
  /* Codex r4: tabs capsule exactly (well track, 8px gaps, edge fill), footer icons on a 52px pitch, Fairness 12px in */
  .fx2 .ui-controls .ui-field.ui-modes .ui-seg { background: var(--well); padding: 4px; gap: 8px; }
  .fx2 .ui-controls .ui-field.ui-modes .ui-seg button { margin: 0; }
  .fx2 .ui-controls .ui-field.ui-modes .ui-seg button[aria-pressed="true"] { background: var(--edge); }
  .fx2 .game-bar { gap: 0; }
  .fx2 .game-bar .bar-btn { margin: 0; }
  .fx2 .game-bar .bar-btn[data-panel="fair"] { margin-right: 12px; }
}
@media (min-width: 1100px) { .fx2 #bar.game-bar { column-gap: 0; gap: 0; } .fx2 #bar .bar-btn[data-panel="fair"] { margin-right: 8px; } }
@media (min-width: 1100px) { .fx2 .bar-left { gap: 0; } }
@media (min-width: 1100px) {
  /* r6: balance box as wide as Stake's (202), filled profile glyph */
  .fx2 .top .bal { min-width: 202px; justify-content: space-between; }
  .fx2 .top .acct-btn svg { fill: currentColor; stroke: currentColor; stroke-width: 1.4; width: 22px; height: 22px; }
  .fx2 .top .bal { justify-content: center; gap: 6px; }
}
@media (min-width: 1100px) { .fx2 .top .search-btn svg, .fx2 .top [aria-label^="Search"] svg { width: 20px; height: 20px; stroke-width: 2.2; } }
@media (min-width: 1100px) {
  /* r6: info tabs 2px lower and as wide as Stake's (Figtree runs ~2px wider per label) */
  .fx2 #info .gi-tabs { margin-top: 22px; }
  .fx2 #info .gi-tabs button { padding: 10px 19px; letter-spacing: -.1px; line-height: 24px; }
}
/* ---------- Codex r7 ---------- */
@media (min-width: 1100px) {
  /* steppers: small boxed backplate like Stake's, 4px more room before the suffix */
  .fx2 .ui-step, .fx2 .ui-bet-field .ui-step { width: 18px; height: 24px; background: #2f4553; border-radius: 4px; margin-right: 8px; }
  .fx2 .ui-step-btn::before { background: #b1bad3; }
  /* Amount input ends 4px earlier: ½ and 2× each 2px wider */
  .fx2 .ui-box-btn { width: 47px; } .fx2 .ui-box-btn + .ui-box-btn { width: 52px; }
  /* 3rd mode tab: our own looped "automation" glyph */
  .fx2 .ui-controls .ui-seg button:nth-child(3)::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 13.5a3.5 3.5 0 1 1 0-7c2.6 0 4.4 7 7 7a3.5 3.5 0 1 0 0-7c-1.3 0-2.3 1-3.1 2.2'/%3E%3Cpath d='M15.5 2.8v2.6h-2.6'/%3E%3C/svg%3E") center / 20px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 13.5a3.5 3.5 0 1 1 0-7c2.6 0 4.4 7 7 7a3.5 3.5 0 1 0 0-7c-1.3 0-2.3 1-3.1 2.2'/%3E%3Cpath d='M15.5 2.8v2.6h-2.6'/%3E%3C/svg%3E") center / 20px no-repeat; }
  /* Auto tab rhythm: +8 after Amount, tighter under Advanced */
  .fx2 .ui-auto > .ui-field, .fx2 .ui-controls .ui-bet-field + .ui-auto { margin-top: 12px; }
  .fx2 .ui-switch { margin-top: 8px; min-height: 36px; }
  .fx2 .ui-auto .ui-affix.is-end { padding: 0 14px 0 4px; }
  /* Advanced switch off: outlined track, pale-blue thumb */
  .fx2 .ui-switch-input { background: transparent; box-shadow: inset 0 0 0 2px #b1bad3; }
  .fx2 .ui-switch-input::after { background: #b1bad3; box-shadow: none; }
  .fx2 .ui-switch-input:checked { background: var(--info); box-shadow: none; }
  .fx2 .ui-switch-input:checked::after { background: #fff; }
  /* primary button label a touch lighter + taller, like Stake's */
  .fx2 .ui-controls .ui-btn.is-primary, .fx2 .ui-controls .btn-primary { font-weight: 600; font-size: 16px; }
  /* info card: meta row spacing */
  .fx2 #info .gi-meta { margin-top: 6px; }
  /* footer glyphs a bit bigger/heavier */
  .fx2 .game-bar .bar-left .bar-btn svg { width: 20px; height: 20px; stroke-width: 2.3; }
}
@media (min-width: 1100px) {
  /* r7 measured fix-ups (DOM, Auto tab): Stake Number-of-Games box y264, Start y360; ½/2× stay 45/50 (Stake's DOM) */
  .fx2 .ui-auto > .ui-field, .fx2 .ui-controls .ui-bet-field + .ui-auto { margin-top: 4px; }
  .fx2 .ui-switch { margin-top: 4px; }
  .fx2 .ui-box-btn { width: 45px; } .fx2 .ui-box-btn + .ui-box-btn { width: 50px; }
  .fx2 .ui-switch-input::after { background: #fff; }
}
@media (min-width: 1100px) { .fx2 .ui-auto > .ui-field, .fx2 .ui-controls .ui-bet-field + .ui-auto { margin-top: 12px; } }
@media (min-width: 1100px) { .fx2 .ui-controls .ui-bet-field + .ui-auto, .fx2 .ui-auto > .ui-field { margin-top: 8px; } }
/* ---------- Auto → Advanced, measured beside Stake's (switch on, no bets) ---------- */
@media (min-width: 1100px) {
  .fx2 .ui-auto-adv { gap: 0; }
  .fx2 .ui-auto-adv > .ui-field { margin-top: 8px; }
  .fx2 .ui-auto-adv .ui-label { min-height: 28px; display: flex; align-items: center; margin-bottom: 0; }
  .fx2 .ui-auto-rule { display: flex; gap: 8px; grid-template-columns: none; }
  .fx2 .ui-auto-rule .ui-seg { flex: 0 0 auto; height: 44px; padding: 4px; gap: 4px; background: var(--well); border-radius: 8px; border: 0; }
  .fx2 .ui-auto-rule .ui-seg button { flex: none; width: auto; min-height: 36px; height: 36px; padding: 0 12px; border-radius: 4px; font: 600 14px/20px var(--font); color: var(--text-2); }
  .fx2 .ui-auto-rule .ui-seg button[aria-pressed="true"] { background: var(--edge); color: #fff; }
  .fx2 .ui-auto-rule > .ui-field { flex: 1 1 96px; min-width: 0; margin: 0; }
  .fx2 .ui-auto-rule .ui-box input { min-width: 0; }
  .fx2 .ui-auto-adv .ui-affix.is-end { font: 600 16px var(--font); color: var(--text-2); padding: 0 12px 0 0; }
  .fx2 .ui-auto-adv .ui-affix.has-coin { padding: 0 12px 0 0; }
  /* the panel keeps the stage's height; long Auto settings scroll inside it with Start pinned at the bottom, like Stake */
  .fx2 .ui-frame > .ui-controls, .fx2 .ui-controls { contain: size; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
  .fx2 .ui-controls .ui-controls-end { position: sticky; bottom: -12px; z-index: 2; background: var(--surface); padding-bottom: 12px; margin-bottom: -12px; }
}
@media (min-width: 1100px) {
  /* exact Stake rhythm (DOM): Advanced row 316-352; On Win label 360 (28 tall) box 388; On Loss 444/472; Stop on Net Gain 531/555; Stop on Loss 614/638 */
  .fx2 .ui-switch { margin-top: 8px; min-height: 36px; }
  .fx2 .ui-auto-adv > .ui-field { margin-top: 15px; }
  .fx2 .ui-auto-adv > .ui-field:has(.ui-auto-rule) { margin-top: 12px; }
  .fx2 .ui-auto-adv > .ui-field:first-child { margin-top: 8px; }
  .fx2 .ui-auto-adv > .ui-field:has(.ui-auto-rule) > .ui-label { height: 28px; min-height: 28px; margin: 0; padding: 0; }
  .fx2 .ui-auto-adv > .ui-field:has(.ui-auto-rule) > .ui-label span { line-height: 28px; }
  .fx2 .ui-auto-adv > .ui-field:not(:has(.ui-auto-rule)) > .ui-label { min-height: 20px; height: 20px; margin: 0 0 4px; }
  .fx2 .ui-auto-adv .ui-auto-rule { height: 44px; }
  .fx2 .ui-auto-rule .ui-seg { width: max-content; min-width: 0; display: inline-flex; }
  .fx2 .ui-auto-rule .ui-seg button { padding: 0 12px; }
  .fx2 .ui-auto-rule > .ui-field .ui-box { height: 44px; }
}
@media (min-width: 1100px) { .fx2 .ui-auto-rule > :first-child { flex: none; width: auto; } .fx2 .ui-auto-rule > .ui-field { flex: 1 1 0; } .fx2 .ui-auto-adv .ui-box input { padding-left: 12px; } }
@media (min-width: 1100px) { .fx2 .ui-auto-rule > .ui-field:first-child { flex: none; width: auto; margin: 0; } .fx2 .ui-auto-rule > .ui-field:last-child { flex: 1 1 0; } }
@media (min-width: 1100px) { .fx2 .ui-controls .ui-controls-end > .ui-auto-start { margin: 12px 0 0; } }
@media (min-width: 1100px) {
  /* Codex r11: steppers = no box, just small muted arrows on the field colour (like Stake's) */
  .fx2 .ui-step, .fx2 .ui-bet-field .ui-step { background: none; width: 16px; margin-right: 6px; }
  .fx2 .ui-step-btn::before { background: color-mix(in srgb, var(--label) 55%, transparent); }
  .fx2 .ui-step-btn:hover::before { background: var(--label); }
}
@media (min-width: 1100px) {
  /* r12 (3e sampled Stake's pixels): small warm dark-grey tile rgb(43,42,51) behind bolder, lighter arrows */
  .fx2 .ui-step, .fx2 .ui-bet-field .ui-step { background: rgb(43, 42, 51); border-radius: 4px; width: 16px; height: 24px; }
  .fx2 .ui-step-btn::before { background: #b1bad3; transform: scale(1.15); }
}
@media (min-width: 1100px) { .fx2 .ui-auto-rule .ui-box:has(input:disabled) { opacity: .5; } }
@media (min-width: 1100px) {
  /* Codex adv round */
  .fx2 .ui-auto-rule .ui-seg button:not([aria-pressed="true"]) { color: var(--label); }
  .fx2 .ui-auto-rule .ui-box:has(input:disabled) { opacity: .42; }
  .fx2 .ui-auto-adv .ui-box input { padding-left: 8px; }
  .fx2 .ui-auto-rule .ui-step { margin-right: 10px; }
  .fx2 .ui-auto-adv .ui-affix.has-coin { padding-right: 10px; }
  .fx2 .ui-auto-adv > .ui-field:not(:has(.ui-auto-rule)) .ui-step { margin-right: 4px; }
  .fx2 .ui-switch-input { margin-right: 2px; }
  .fx2 .ui-switch-input:checked { background: #1068c9; }
}
/* ---------- Codex r13 ---------- */
@media (min-width: 1100px) {
  /* three boxes: stepper further from the ×/% (Stake leaves ~12px) */
  .fx2 .dc-fields .ui-box > .ui-step { margin-right: 12px; }
  /* rail: only the section tile is lit, like Stake's; the current game's icon gets no second tile */
  .fx2 .side a[aria-current="page"]:has(.side-pic) { background: none; }
  /* 3rd mode tab: our own slanted arrow with a small sparkle (Stake's glyph idea, our drawing) */
  .fx2 .ui-controls .ui-seg button:nth-child(3)::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16.5L12.5 8M8.5 7.5h4.5v4.5'/%3E%3Cpath d='M15 2.5v4M13 4.5h4' stroke-width='1.6'/%3E%3C/svg%3E") center / 20px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16.5L12.5 8M8.5 7.5h4.5v4.5'/%3E%3Cpath d='M15 2.5v4M13 4.5h4' stroke-width='1.6'/%3E%3C/svg%3E") center / 20px no-repeat; }
}
/* Lane ce (2026-11-20 sweep, 5b's go): on phones the info tab row ("Game Statistics | Your Statistics | Description") is wider
   than the screen and "Description" was clipped. The row scrolls sideways instead; the buttons keep their full labels. */
@media (max-width: 600px) {
  .fx2 #info .gi-tabs { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; flex-wrap: nowrap; }
  .fx2 #info .gi-tabs::-webkit-scrollbar { display: none; }
  .fx2 #info .gi-tabs button { flex: none; white-space: nowrap; }
}

/* ===== premium pass kit rows (lane 27, 2026-11-20 night; 5b: Zach's "exactly like Stake"). Measured read-only on Stake's
   Keno + Blackjack (research/keno/look, research/blackjack/look), identical on both. ONE place for every game, every width.
   (The VM Firefox runs at 25% zoom, so a 2px border reads as 4 in its dumps on BOTH sides: borders stay 2px.)
   K1 Amount box 52 tall (input, coin well, ½ 45, 2× 50, 2× radius 0 8 8 0), value text #a1bfd6; Net gain box 52 too.
   K2 12px between stacked fields / button rows (ours 0).   K3 labels 14/600 #a1bfd6, 20 tall + 4.
   K4 select 48 tall, text 16/400 #ecf3f9 8px in; our own chevron (20px, white) 8px from the right.
   K5 secondary buttons #3e586c, radius 8, 16/600, 10px 20px, Stake's soft shadow (see K10).   K6 mode tabs: equal halves.
   K7 phones: the same control look (it was the old fx2 look below 1100), and Stake's phone frame: ONE block, stage on
      top (radius 8 8 0 0) with the controls straight under it (radius 0 0 8 8), no borders or gap, 12px padding and
      gaps, 12px page gutter; Play 44 / radius 8 / 16-600; tabs track 48, tabs 40 / 16-600. ===== */
.fx2 .ui-controls .ui-label { font: 600 14px/20px var(--font); color: var(--label); margin: 0 0 4px; min-height: 20px; }
.fx2 .ui-controls .ui-label b { font-weight: 600; color: var(--label); }
.fx2 .ui-controls .ui-field { gap: 0; }
/* K1 */
.fx2 .ui-controls .ui-bet-field .ui-box, .fx2 .ui-controls .ui-gain { height: 52px; min-height: 52px; }
.fx2 .ui-controls .ui-bet-field .ui-box { border: 0; background: none; padding: 0; overflow: hidden; border-radius: 8px; box-shadow: var(--lift-sm); }
.fx2 .ui-controls .ui-bet-field .ui-box input { height: 52px; background: var(--well); border: 2px solid var(--edge); border-right: 0; border-radius: 8px 0 0 8px;
  font: 400 16px var(--font-num); color: var(--label); padding: 8px; }
.fx2 .ui-controls .ui-bet-field .ui-box > .ui-affix { height: 52px; display: flex; align-items: center; gap: 8px; background: var(--well); border: 2px solid var(--edge); border-left: 0; border-right: 0; padding: 0 12px 0 4px; order: 1; }
.fx2 .ui-controls .ui-bet-field .ui-box input { order: 0; }
.fx2 .ui-controls .ui-box-btn { order: 2; height: 52px; align-self: stretch; width: 45px; background: var(--edge); color: #fff; font: 600 16px var(--font); border: 0 !important; border-radius: 0; }
.fx2 .ui-controls .ui-box-btn + .ui-box-btn { order: 3; width: 50px; border-radius: 0 8px 8px 0; }
.fx2 .ui-controls .ui-gain { background: none !important; }
/* K2: Amount → next field → the game's button row → … each 12 apart (the tabs carry their own 12 below) */
.fx2 .ui-controls > :is(.ui-field, .ui-row):not(.ui-modes) + :is(.ui-field, .ui-row) { margin-top: 12px; }
/* K4 (and every other box in the panel at every width: the desk well look, not the old fx2 one) */
.fx2 .ui-controls .ui-box { background: var(--well); border: 2px solid var(--edge); border-radius: 8px; box-shadow: var(--lift-sm); }
.fx2 .ui-controls .ui-select-box { height: 44px; min-height: 44px; box-sizing: border-box; }   /* 2026-11-22: Stake's dropdowns are 44 in every game (was 48: every row under it sat 4 lower) */
.fx2 .ui-controls .ui-select-box .ui-select { height: 40px; }
.fx2 .ui-controls .ui-select { font: 400 16px var(--font); color: var(--text-2); padding: 0 34px 0 8px; }
.fx2 .ui-controls .ui-select-arrow { right: 4px; width: 20px; height: 20px; font-size: 0; color: #fff; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat; }
/* K5 */
.fx2 .ui-controls .ui-btn:not(.is-primary):not(.is-quiet) { min-height: 44px; height: 44px; padding: 10px 20px; background: var(--edge); color: #fff;
  border-radius: 8px; font: 600 16px/24px var(--font); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); }
.fx2 .ui-controls .ui-btn:not(.is-primary):not(.is-quiet):hover:not(:disabled) { background: var(--surface-4); }
/* K6 (a third, icon-only tab keeps its 52px) */
.fx2 .ui-controls .ui-modes .ui-seg button:not(:nth-child(3)) { flex: 1 1 0; }
/* K7 */
.fx2 .ui-controls .ui-modes .ui-seg { height: 48px; padding: 4px; gap: 8px; background: var(--well); border: 0; border-radius: 999px; }
.fx2 .ui-controls .ui-modes .ui-seg button { height: 40px; min-height: 40px; padding: 8px 16px; border-radius: 999px; font: 600 16px var(--font); }
@container (max-width: 680px) {
  .fx2 .ui-frame-in { gap: 0; border: 0; border-radius: 8px; }
  .fx2 .ui-frame-in > .ui-stage { border: 0; border-radius: 8px 8px 0 0; padding: 16px; }
  .fx2 .ui-frame-in > .ui-controls { border: 0; border-radius: 0 0 8px 8px; padding: 12px; gap: 0; }
  .fx2 .ui-controls > * + * { margin-top: 12px; }
  .fx2 .ui-controls .ui-modes .ui-seg { margin-bottom: 0; }
  .fx2 .ui-controls .ui-controls-end { gap: 12px; margin-top: 0; }
  .fx2 .ui-controls .ui-btn.is-primary { min-height: 44px; height: 44px; margin: 0; border-radius: 8px; font: 600 16px var(--font); }
}
@media (max-width: 760px) {
  body.fx2:not(.is-bare) main:has(.ui-frame) { padding-inline: 3vw; padding-top: calc(3vw + 4px); }
}
@media (min-width: 761px) and (max-width: 800px) {
  body.fx2:not(.is-bare):not(.is-theatre) main:has(.ui-frame) { padding-top: 3vw; }
}
/* K3b: a select's label row is 28 tall on Stake (24 for the Amount field) */
.fx2 .ui-controls .ui-field:has(> .ui-select-box) > .ui-label { margin-bottom: 8px; }
/* K8 (0b's Dice read, research/dice/pair/before-1920-*.png): the number stepper = Stake's: a 20×16 square-cornered box
   rgb(43,42,51), 6×4 one-pixel chevrons rgb(143,141,146) 3px in from top and bottom, 2px apart; 10px to the end icon. All widths. */
.fx2 .ui-box > .ui-step, .fx2 .ui-affix > .ui-step { display: flex; flex-direction: column; flex: none; align-self: center; width: 20px; height: 16px; border-radius: 0; background: rgb(43, 42, 51); margin-right: 10px; overflow: hidden; }
.fx2 .ui-controls .ui-bet-field .ui-box > .ui-affix { gap: 0; }
.fx2 .ui-step .ui-step-btn { flex: 1; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.fx2 .ui-step .ui-step-btn::before { content: ''; position: absolute; inset: auto; left: 7px; top: 3px; width: 6px; height: 4px; transform: none; background: rgb(143, 141, 146);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4'%3E%3Cpath d='M.5 3.5L3 .9l2.5 2.6' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E") center / 6px 4px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4'%3E%3Cpath d='M.5 3.5L3 .9l2.5 2.6' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E") center / 6px 4px no-repeat; }
.fx2 .ui-step .ui-step-btn + .ui-step-btn::before { top: 1px; transform: scaleY(-1); }
.fx2 .ui-step .ui-step-btn:hover::before { background: #c4c2c8; }
/* K9 (ce's Limbo read, research/limbo/pair/before-1920-stake.png pixels): the switch OFF = the dark well with a light ring
   #82a5bf and an #ecf3f9 knob (ours: no ring, white knob). 40×24 as before; ON stays ours (blue track, white knob).
   The ring is a real 2px border (an inset shadow that thin vanishes at low zoom; Stake's is a border too). */
.fx2 .ui-switch-input { box-sizing: border-box; border: 2px solid transparent; background-clip: border-box; }
.fx2 .ui-switch-input:not(:checked) { background: var(--well); border-color: #82a5bf; box-shadow: none; }
.fx2 .ui-switch-input::after { top: 0; left: 0; }
.fx2 .ui-switch-input:not(:checked)::after { background: var(--text-2); box-shadow: none; }
/* K10 (2d's read-only hover read, research/blackjack/look/hover.json): Stake's panel buttons carry a soft shadow
   (0 4 6 -1 / 0 2 4 -2, 10% black; it was cut off in the look dumps), and hovering the main button lays a 10% dark
   layer over the same blue instantly (ours went lighter over 150 ms). Disabled: no hover change on either side. */
.fx2 .ui-controls .ui-btn:not(.is-quiet) { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); }
.fx2 .ui-controls .ui-btn.is-primary { transition: transform .15s var(--ease), opacity .15s var(--ease); }
/* Stake Play (re 2026-11-21, desk run 224209-2e2e): at the lock the pressed scale snaps back in 28 ms; the fade stays 150 */
.fx2 .ui-controls .ui-btn.is-primary.is-busy { transition: transform 28ms var(--ease), opacity .15s var(--ease); }
.fx2 .ui-controls .ui-btn.is-primary:hover:not(:disabled) { background-color: var(--accent); background-image: linear-gradient(rgba(7, 24, 36, .1), rgba(7, 24, 36, .1)); }
/* K11 (ce's Codex Limbo review research/limbo/codex-review-1.md + cd's Chicken phone read, pixels checked on Keno's
   Stake shot): the Amount well has its own right edge (2px #3e586c, so the dark part ends before ½), the coin 8px in
   from it, the stepper 4px left of the coin; ½ | 2× divider 1×26 #c5d9e9; net gain = value left, coin right, at
   every width; the Fairness button carries the same soft shadow as the panel buttons. */
.fx2 .ui-controls .ui-bet-field .ui-box > .ui-affix { border-right: 2px solid var(--edge); padding-right: 8px; }
.fx2 .ui-controls .ui-bet-field .ui-affix > .ui-step { margin-right: 4px; }
.fx2 .ui-controls .ui-box-btn + .ui-box-btn { position: relative; }
.fx2 .ui-controls .ui-box-btn + .ui-box-btn::before { content: ''; position: absolute; left: 0; top: 13px; bottom: 13px; width: 1px; background: #c5d9e9; }
.fx2 .ui-controls .ui-gain .ui-gain-value { order: 0; flex: 1; padding: 0 8px; font: 400 16px var(--font-num); color: var(--text-2); }
.fx2 .ui-controls .ui-gain > .ui-affix { order: 1; padding: 0 12px 0 4px; }
.fx2 .bar-btn[data-panel="fair"] { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); }
/* K12 (5b's call on ce's/2d's rows): the footer bar = Stake's 4 SOLID icons in its order (settings, theatre, live stats,
   pop-out; the history clock is gone), all our own drawings, and the Fairness shield broad and square-shouldered, 18 px.
   Phones keep the gear and stats on the left, the game wordmark in the middle, and the Fairness button on the right. */
.fx2 .bar-btn svg.is-solid { fill: currentColor; stroke: none; }
.fx2 .game-bar .bar-btn[data-panel="fair"] svg.is-solid path { fill: currentColor; stroke: none; }
.fx2 .game-bar .bar-btn[data-panel="fair"] { width: auto; height: 40px; padding: 8px 16px; gap: 8px; background: var(--edge); color: #fff; border-radius: 8px; font: 600 16px var(--font); }
.fx2 .game-bar .bar-btn[data-panel="fair"] svg { width: 20px; height: 20px; }
.fx2 .game-bar .bar-btn[data-panel="fair"] span { display: inline; }
@media (max-width: 760px) {
  .fx2 #bar.game-bar { border: 0; border-radius: 8px; background: var(--surface); margin-top: 4px; }
}
body.fx2:not(.is-bare) main:has(> #game .ui-frame) { container: play-page / inline-size; }
@container play-page (max-width: 799px) {
  .fx2 #bar.game-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 400px;
    height: 63px;
    margin-inline: auto;
    padding: 0 12px 0 4px;
  }
  .fx2 #bar .bar-mid { display: flex; }
  .fx2 #bar .bar-btn.fav { display: none; }
  .fx2 #bar .bar-left { gap: 0; }
  .fx2 #bar .bar-left .bar-btn { width: 52px; height: 46px; }
  .fx2 #bar .bar-left .bar-btn svg { width: 20px; height: 20px; }
  .fx2 #bar .bar-btn[data-panel="fair"] { width: 120.8px; min-height: 40px; margin: 0; padding-inline: 16px; }
}
/* K13 (2d's 390 review + Codex Keno phone #5): mode tabs at every width: the chosen one #3e586c with white text, the other #ecf3f9 */
.fx2 .ui-controls .ui-modes .ui-seg button[aria-pressed="true"] { background: var(--edge); color: #fff; }
.fx2 .ui-controls .ui-modes .ui-seg button:not([aria-pressed="true"]) { color: var(--text-2); }
/* S5 (2d's 390 review + Codex Keno phone #1/#2; pixels from research/phone-review/blackjack-idle-stake-390.png): the phone
   bottom nav is 68 tall on #172b39 with a soft shadow above; 20px icons 12px from the top, 16/600 labels 4px under them,
   #a1bfd6 (current item #ecf3f9, not blue) and a 54×4 #ecf3f9 bar on top of the current item. Our own icons and items. */
@media (max-width: 760px) {
  body.fx2 { --bottom-nav-height: calc(68px + env(safe-area-inset-bottom)); }
  .fx2 .tabbar { height: var(--bottom-nav-height); background: #172b39; border-top: 0; box-shadow: 0 -4px 9px rgba(0, 0, 0, .12); }
  .fx2 .tabbar a { position: relative; justify-content: flex-start; padding-top: 12px; gap: 4px; min-height: 68px; font: 600 16px/20px var(--font); color: var(--label); }
  .fx2 .tabbar svg { width: 20px; height: 20px; stroke-width: 2.2; }
  .fx2 .tabbar a[aria-current="page"], .fx2 .tabbar a[aria-current="page"] svg { color: var(--text-2); stroke: currentColor; }
  .fx2 .tabbar a[aria-current="page"]::before { content: ''; position: absolute; top: 0; left: 50%; width: 54px; height: 4px; margin-left: -27px; background: var(--text-2); }
  body.fx2:not(.is-bare) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}
.fx2 #info .gi-who > b { white-space: nowrap; }
/* K12b (5b): the History panel stays (opened by the stage's Session History button in Limbo/Plinko); only its footer icon goes */
.fx2 #bar .bar-btn[data-panel="g-history"][hidden] { display: none !important; }

/* The advanced mode occupies a fixed icon button beside the two equal-width tabs. */
.fx2 .ui-controls .ui-modes .ui-seg > button { flex: 1 1 0; min-width: 0; line-height: 24px; }
.fx2 .ui-controls .ui-modes .ui-seg > button:nth-child(3) { flex: 0 0 52px; padding: 0; font-size: 0; position: relative; }
.fx2 .ui-controls .ui-modes .ui-seg > button:nth-child(3)::before { content: ''; display: block; width: 20px; height: 20px; margin: auto; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 12 3.1-7.5L9 12m-5.3-2.6h4M2 16.5c8.3 0 12.1-4.6 12.1-12.6m-3.4 3.5 3.5-3.5 3.5 3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (min-width: 1100px) {
  .fx2 .ui-btn.is-primary.is-wide { padding: 10px 20px; line-height: 24px; }
  .fx2 #bar .bar-btn[data-panel="fair"] { box-shadow: none; }
  .fx2 .bar-left .bar-btn svg { transform: scale(1.15); }
  .fx2 .bar-left .bar-btn[data-panel="g-live-stats"] svg { transform: scale(1.3); }
}
/* Wager and gain fields share the same compact height across the stacked and desktop game frames. */
.fx2 .ui-controls .ui-bet-field .ui-box, .fx2 .ui-controls .ui-gain { height: 44px !important; min-height: 44px !important; }
.fx2 .ui-controls .ui-bet-field .ui-box input { height: 44px !important; line-height: 24px; }
.fx2 .ui-controls .ui-bet-field .ui-box > .ui-affix { height: 44px; padding-right: 10px; }
.fx2 .ui-controls .ui-box-btn { height: 44px !important; }
.fx2 .ui-controls .ui-box-btn:first-of-type { width: 45.3px; } .fx2 .ui-controls .ui-box-btn + .ui-box-btn { width: 49.8px; }
.fx2 .ui-controls .ui-box-btn + .ui-box-btn::before { top: 11px; bottom: 11px; }
.fx2 .ui-controls .ui-gain > .ui-affix { padding-right: 10px; }
.fx2 .ui-controls .ui-gain .ui-gain-value { line-height: 24px; }
/* Codex round 2 (2026-11-22, 1366x820): steppers 18x20, Fairness 120.8 wide, box buttons' text line, Stake's round help button */
@media (min-width: 1100px) {
  .fx2 .ui-affix > .ui-step { width: 18px; height: 20px; }
  .fx2 .ui-controls .ui-bet-field .ui-affix > .ui-step { margin-right: 6px; transform: translateX(3px); }
  .fx2 #bar .bar-btn[data-panel="fair"] { width: 120.8px; line-height: 24px; justify-content: flex-start; }
  .fx2 .ui-controls .ui-box-btn { padding: 8px 16px; line-height: 24px; }
  .fx2 .ui-controls .ui-btn.is-primary.is-wide { box-shadow: none; }
  .game-support { position: fixed; right: 16px; bottom: 8px; z-index: 50; width: 60px; height: 44px; border-radius: 999px; background: #3e586c; color: #fff;
    box-shadow: 0 0 5px rgba(27,23,23,.5); display: grid; place-items: center; text-decoration: none; }
  .game-support:hover { background: #4a6a82; }
  .game-support svg { width: 20px; height: 20px; }
}
@media (max-width: 1099px) { .game-support { display: none; } }

/* 2026-11-22 balance box sized like Stake's (re kit on the desk Firefox, research/desk/stake-wallet2.json, Zach: "the size of
   the wallet ... how big it gets when you have different amounts"). Stake: box = 20 pad + number + 4 gap + 20 coin + 8 gap +
   20 arrow + 20 pad = number + 92; digits 9.8px (tabular), , and . 3.917px (600 16px); number capped at 157.6px; 48 tall.
   Ours has the same three parts (number, coin, arrow ::after): number -4- coin -8- arrow, 20px padding. */
@media (min-width: 1100px) {
  .fx2 .top .bal { min-width: 0; justify-content: center; padding: 12px 20px; gap: 4px; }
  .fx2 .top .bal::after { margin-left: 4px; }
  .fx2 .top .bal .num { display: block; max-width: 157.6px; height: 24px; line-height: 24px; overflow: hidden; white-space: nowrap; }
  .fx2 .top .bal .num .g-d, .fx2 .top .bal .num .g-s { display: inline-block; text-align: center; }
  .fx2 .top .bal .num .g-d { width: 9.8px; }
  .fx2 .top .bal .num .g-s { width: 3.917px; }
}
