/* Compact Gate controls shared by Apple and the website after the founder's device confirmation. */
html[data-gate-focus] { --gf-gold: #f5ce79; --gf-rim: #8d7043; }
.gf-control, .gf-utility { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 48px; min-height: 48px; padding: 10px; border: 1px solid var(--gf-rim); border-radius: 50%; color: var(--gf-gold); background: linear-gradient(145deg, #332b3c, #14101e); box-shadow: inset 0 1px #ffffff24, 0 5px 18px #0008; font: 600 16px/1.2 'Trebuchet MS', sans-serif; cursor: pointer; pointer-events: auto; }
.gf-control svg, .gf-utility svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gf-control:has(span) { border-radius: 16px; padding-inline: 16px; }
.gf-control:hover, .gf-utility:hover { color: #fff3d2; border-color: #f5ce79; background: #352a40; }
.gf-control:focus-visible, .gf-utility:focus-visible { outline: 3px solid #7fe0d6; outline-offset: 3px; }
.gf-control:disabled { opacity: .55; cursor: default; }
.gf-hub-nav { position: fixed; top: max(12px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); display: flex; gap: 10px; pointer-events: auto; }
html[data-gate-focus] .ghp .rvm-head, html[data-gate-focus] .ghp-foot, html[data-gate-focus] .ghp-pin { display: none !important; }
html[data-gate-focus] .ghp .rvm-toast { top: auto !important; bottom: 16px; }
html[data-gate-focus][data-scene="GateHub"] #gate-corner, html[data-gate-focus][data-scene="GateHub"] .gsd-tab { display: none !important; }
html[data-gate-focus] .gtp-col, html[data-gate-focus] .gtp-foe, html[data-gate-focus] .gtp-pin { display: none !important; }
.gf-status { position: fixed; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px 14px; padding: 3px 8px 5px; box-sizing: border-box; border-radius: 0 0 18px 18px; color: #f8edda; background: linear-gradient(180deg, #100c19d9, #100c1959); font: 600 16px/1.1 'Trebuchet MS', sans-serif; text-shadow: 0 2px 5px #000; pointer-events: none; }
.gf-status > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.gf-status svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gf-status-energy svg { fill: #f5ce7926; }
.gf-status-them { color: #a4e88a; }.gf-status-you { color: #ffb5d8; }.gf-status-energy { color: #f5ce79; }
.gf-status-effects { color: #ffb5a4; }
.gf-match-nav .gf-control { position: fixed; }
html[data-gate-focus] .gtp[data-off] .gf-status, html[data-gate-focus] .gtp[data-off] .gf-match-nav { display: none; }
html[data-gate-focus] .gtp[data-hold] .gf-status, html[data-gate-focus] .gtp[data-hold] .gf-match-nav { visibility: hidden; }
html[data-gate-focus] .gtp[data-react] .gf-match-nav { visibility: hidden; }
html[data-gate-focus] .gtp-end { bottom: max(74px, calc(env(safe-area-inset-bottom) + 68px)); top: auto !important; height: auto !important; min-height: 48px; width: 110px !important; left: auto !important; right: max(10px, env(safe-area-inset-right)); }
html[data-gate-focus] .gtp-end .rui-btn { min-height: 48px; border-radius: 14px; font-size: 16px; }
.gf-sheet .rui-dlg-body { display: flex; flex-direction: column; gap: 12px; }
.gf-menu-item { width: 100%; justify-content: flex-start; text-align: left; border-radius: 12px !important; }
.gf-sheet .gf-folded-filter { display: flex !important; flex-wrap: wrap; white-space: normal; }
.gf-sheet .gdb-chips { overflow: visible; }.gf-sheet .gdb-dock-btn { width: 100%; margin: 6px 0; font-size: 16px; }
.gf-deck .gdb-main { grid-template-columns: minmax(0, 1fr) !important; }
.gf-deck .gdb-aside, .gf-deck .gf-folded-filter { display: none; }
.gf-working-deck { display: none; }
@media (min-width: 820px) and (min-height: 600px) {
  .gf-deck[data-tab="library"] .gdb-main { grid-template-columns: minmax(0, 1fr) 250px !important; }
  .gf-working-deck { display: flex; flex-direction: column; gap: 8px; overflow: auto; min-height: 0; padding: 16px; border: 1px solid #8d704380; border-radius: 18px; background: linear-gradient(155deg, #312536eb, #120e1de8); }
  .gf-working-deck h2 { margin: 0 0 8px; font: 600 18px/1.3 'Trebuchet MS', sans-serif; color: #f5ce79; }
  .gf-working-card { flex: none; min-height: 48px; padding: 10px 12px; text-align: left; color: #f8edda; background: #ffffff09; border: 1px solid #8d704360; border-radius: 10px; font: 16px/1.3 'Trebuchet MS', sans-serif; cursor: pointer; }
  .gf-working-card:focus-visible { outline: 3px solid #7fe0d6; }
}
.gf-deck .gdb-titles, .gf-deck .gdb-top > .gdb-help { display: none; }
.gf-deck .gdb-back { position: fixed; bottom: max(10px, env(safe-area-inset-bottom)); right: max(10px, env(safe-area-inset-right)); width: 48px; height: 48px; padding: 10px; min-width: 48px; border-radius: 50%; z-index: 3; }
.gf-deck .gdb-dock { padding: 6px 78px max(6px, env(safe-area-inset-bottom)) 0 !important; min-height: 60px; }
.gf-deck-actions { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: flex-end; }
.gf-deck-count { margin-right: auto; font-size: 16px; color: #f8edda; }
.gf-deck .gf-save { min-height: 48px; min-width: 120px; font-size: 16px; padding: 8px 12px; }
.gf-save small { display: none; }
.gf-deck .gdb-top { gap: 12px; min-height: 48px; }.gf-deck .gdb-sides { margin-left: auto; }
.gf-deck .gdb-viewhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gf-deck .gdb-viewhead > p { display: none; }.gf-deck .gdb-viewhead > .gf-control { margin-left: auto; }
.gf-deck .gdb-viewhead h2 { font-size: 18px; margin: 0; }
.gf-deck .gdb-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.gf-pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 8px 0; font-size: 16px; }.gf-pager button { min-height: 48px; }
.gf-utility { max-width: 48px; width: 48px; height: 48px; min-width: 48px !important; padding: 10px !important; border-radius: 50% !important; }
.gf-deck .gdb-tab { min-height: 48px; font-size: 16px; }
.gf-deck .gdb-tab, .gf-deck .gdb-side { display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.gf-deck .gdb-tab svg, .gf-deck .gdb-side svg { width: 23px; height: 23px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gf-deck .gdb-side { min-width: 96px; }
.gf-deck-tools { display: flex; gap: 8px; margin-left: auto; }
.gpr-chooser summary { cursor: pointer; padding: 10px 0; font-size: 16px; }
.gpr-paper, .gpr-backs { min-height: 44px; box-sizing: border-box; }
@media (max-height: 440px) { .gf-hub-nav { top: 8px; }.gf-status { gap: 2px 9px; }.gf-deck .gdb-sides .gdb-btn { font-size: 16px; }.gf-deck .gdb-tab { padding: 6px 10px; }.gf-deck .gdb-tab small { display: none; } }
@media (max-width: 720px) { html[data-gate-focus] .gtp-end { width: 76px !important; }.gf-deck .gf-save { min-width: 96px; max-width: 120px; }.gf-deck-count { max-width: 125px; } }
