/* Round 30: the settings gear on every game, the Case Battles maintenance page, the clean coin and the Heads / Tails buttons with a small coin. */

/* ---------- the settings gear (under the bet panel) with the Fast bet button next to it, and the settings menu ---------- */
.gfoot{position:relative;justify-content:flex-start;gap:10px;padding-left:0;padding-right:0}
.gfoot #proof{display:none}                           /* the nonce / seed text is not shown while playing (the Provably fair page has everything) */
.gset.gset-pop{position:relative;display:flex;align-items:center;gap:6px;margin:0;padding:0;border:0;flex:none}
.gset-pop .gset-gear{width:26px;height:26px;border-radius:8px;border:1px solid var(--line);background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer;padding:0;flex:none;transition:color .15s,border-color .15s,background .15s}
.gset-pop .gset-gear .ic{width:14px;height:14px;transition:transform .35s}
.gset-pop .gset-gear:hover,.gset-pop .gset-gear[aria-expanded="true"]{color:var(--text);border-color:var(--line2);background:var(--panel2)}
.gset-pop .gset-gear[aria-expanded="true"] .ic{transform:rotate(60deg)}
/* the Fast bet button: always visible, next to the gear (the pill look of .gset-f comes from extra3.css; mint when it is on) */
.gset-pop>.gset-f{height:26px;padding:0 10px;gap:5px;font-size:11px}
.gset-pop>.gset-f .ic{width:12px;height:12px}
.gset-pop>.gset-f span{display:inline}
.gset-menu{position:absolute;left:0;bottom:calc(100% + 8px);z-index:40;width:min(152px,calc(100vw - 32px));padding:4px;border-radius:10px;background:var(--panel2);border:1px solid var(--line2);box-shadow:0 14px 34px rgba(0,0,0,.5);animation:gmIn .14s ease-out}
.gset-menu[hidden]{display:none}
@keyframes gmIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.gm-row{display:flex;align-items:center;gap:7px;width:100%;padding:4px 7px;border-radius:7px;border:0;background:transparent;color:var(--text);font:inherit;font-weight:700;font-size:11.5px;text-align:left;cursor:pointer;text-decoration:none;box-sizing:border-box;min-height:28px}
.gm-row:hover{background:var(--panel3)}
.gm-row>.ic{width:14px;height:14px;flex:none;color:var(--muted)}
.gm-row span{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.2}
.gm-row small{display:none}                                  /* the one-line hints are gone: the menu is small and the names say it */
.gset-menu .gset-s{display:flex;padding:4px 7px;border:0;border-radius:7px;background:transparent;color:var(--text);font-size:11.5px;white-space:normal;gap:7px}
.gset-menu .gset-s:hover{background:var(--panel3);color:var(--text)}
.gset-menu .gset-s .ic{width:14px;height:14px}
body.stats-open .gset-menu .gset-s{background:transparent;color:var(--text)}
body.stats-open .gset-menu .gset-s::after{content:"ON";font-size:9px;font-weight:800;letter-spacing:.06em;padding:1px 6px;border-radius:99px;background:var(--accent);color:var(--on-accent)}
.gm-sound{cursor:default;padding:2px 7px 4px;gap:7px;min-height:26px}
.gm-sound:hover{background:transparent}
.gm-sound .gset-m{width:22px;height:22px;border-radius:6px;flex:none}
.gm-sound .gset-m .ic{width:13px;height:13px}
.gm-sound .gset-v{flex:1;min-width:0;width:auto;height:3px}
/* Hotkeys row: the name opens the list of keys, the small switch turns the hotkeys on / off */
.gm-keys{padding:0;gap:0;cursor:default}
.gm-keys:hover{background:transparent}
.gm-keys .gm-kl{flex:1;min-width:0;display:flex;align-items:center;gap:7px;min-height:28px;padding:4px 0 4px 7px;border:0;border-radius:7px;background:transparent;color:inherit;font:inherit;font-weight:700;font-size:11.5px;text-align:left;cursor:pointer}
.gm-keys .gm-kl:hover{background:var(--panel3)}
.gm-keys .gm-kl .ic{width:14px;height:14px;flex:none;color:var(--muted)}
.gm-sw{position:relative;flex:none;width:30px;height:18px;margin:0 7px 0 4px;padding:0;border-radius:99px;border:1px solid var(--line2);background:var(--panel3);cursor:pointer;transition:background .15s,border-color .15s}
.gm-sw::after{content:"";position:absolute;inset:-7px -5px}                      /* a bigger area to tap */
.gm-sw i{position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:var(--muted);transition:left .15s,background .15s}
.gm-sw.on{background:var(--accent);border-color:var(--accent)}
.gm-sw.on i{left:14px;background:var(--on-accent)}
.mh .hk-state{display:inline-block;margin-left:8px;padding:2px 9px;border-radius:99px;background:var(--accent);color:var(--on-accent);font-style:normal;font-size:11px;font-weight:800;vertical-align:middle}
.mh .hk-state.off{background:var(--panel3);color:var(--muted)}
.ginfo.flash{animation:gmFlash 1.4s ease-out}
@keyframes gmFlash{0%,35%{box-shadow:0 0 0 2px var(--accent)}100%{box-shadow:0 0 0 2px transparent}}
/* the Hotkeys window */
.hk-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.hk-list li{display:flex;align-items:center;gap:12px;font-size:13.5px}
.hk-list kbd{flex:none;min-width:54px;text-align:center;padding:4px 9px;border-radius:7px;background:var(--panel3);border:1px solid var(--line2);border-bottom-width:2px;font:inherit;font-size:12px;font-weight:800;color:var(--text)}
.hk-list span{color:var(--muted)}
/* ---------- Case Battles maintenance ---------- */
.maint-page{display:grid;place-items:center;min-height:60vh;padding:16px 0}
.maint-card{max-width:520px;width:100%;text-align:center;padding:36px 28px;display:grid;justify-items:center;gap:10px}
.maint-card h1{margin:6px 0 0;font-size:24px;line-height:1.25}
.maint-card p{margin:0;max-width:400px;line-height:1.55}
.maint-ico{width:76px;height:76px;border-radius:22px;display:grid;place-items:center;background:var(--panel3);color:var(--gold, #f5b83d)}
.maint-ico .ic{width:38px;height:38px}
.maint-acts{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:12px}
@media (max-width:560px){.maint-card{padding:28px 18px}.maint-card h1{font-size:21px}.maint-acts{width:100%}.maint-acts .btn{flex:1 1 140px}}
.dtag.maint{background:var(--panel3);color:var(--gold, #f5b83d);border:1px solid var(--line2)}
.poster .pic>.maint-tag{inset:auto;top:8px;left:8px;width:auto;height:auto;background:rgba(7,8,11,.82);color:var(--gold, #f5b83d);border:1px solid rgba(245,184,61,.5);font-weight:800;font-size:11px;padding:2px 9px;border-radius:99px;z-index:3;box-shadow:0 2px 8px rgba(0,0,0,.4)}
.poster.maint .pic>img,.poster.maint .pic>svg{filter:grayscale(.7) brightness(.75)}

/* ---------- Coinflip: a clean, flat coin ---------- */
.cf-rim{fill:#0d9a5f}
.cf-face-bg{fill:var(--accent)}
.cf-line{stroke:rgba(7,8,11,.28)}
.cf-glyph.cf-crown{fill:#07080b;stroke:none}
.cf-rim.t{fill:#444c5d}
.cf-face-bg.t{fill:#1d222c}
.cf-line.t{stroke:rgba(255,255,255,.16)}
.cf-glyph.t{fill:var(--accent);stroke:none}
.cf-face svg{filter:drop-shadow(0 8px 14px rgba(0,0,0,.45))}

/* the Heads / Tails buttons with the small coin of that side */
.cf-pick .btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px;font-size:16px}
.cf-pick .btn span{line-height:1}
.cf-mini{display:inline-block;width:30px;height:30px;flex:none}
.cf-mini svg{width:100%;height:100%;display:block}
.cf-chip .cf-mini{width:22px;height:22px}
.cf-chip .cf-mini svg{filter:none}
.cf-chip.no{background:rgba(255,77,106,.16)}
.cf-chip.no i{font-style:normal;color:var(--red);font-size:12px}
.cf-chip.ok{background:rgba(34,229,140,.14)}
.cf-pick .btn:disabled .cf-mini{opacity:.5}

/* the footer row of the bet panel: gear, "Provably fair", and the seed / nonce text that shrinks with an ellipsis instead of wrapping the link */
.gfoot a{white-space:nowrap}


/* Case Opening: the gear sits at the end of the row with Open / Try demo */
.cs-actions .gset-pop{margin-left:auto;align-self:center}
.cs-actions .gset-menu{left:auto;right:0}
