/* The OnlyPlayers frame around a standalone game (js/shell.js): a slim bar on top, the login card,
   toasts. The game fills .op-host below the bar. */

:root { --op-bar: 46px; --op-blue: #00aff0; }
html, body { margin: 0; height: 100%; }
body { background: #0b1117; color: #eef2f6; font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.op-bar { position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--op-bar); display: flex; align-items: center; gap: 14px; padding: 0 14px;
	background: rgba(8, 12, 18, .92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, .08); box-sizing: border-box; }
.op-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.op-brand svg { width: 28px; height: 28px; }
.op-brand b { font: 700 17px 'Nunito', sans-serif; letter-spacing: -.02em; color: #b9c3cf; }
.op-brand b span { color: var(--op-blue); font-weight: 800; }
.op-game { font-weight: 800; font-size: 14px; color: #8a96a5; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .14); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-acc { margin-left: auto; display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 14px; }
.op-acc a { color: #eef2f6; text-decoration: none; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-acc a:hover { color: var(--op-blue); }
.op-acc button { font: inherit; color: #8a96a5; background: none; border: 0; cursor: pointer; padding: 4px; }
.op-acc button:hover { color: #fff; }
.op-coins { color: #ffd76a; white-space: nowrap; }
.op-host { position: fixed; inset: var(--op-bar) 0 0 0; overflow: auto; }

.op-gate { max-width: 400px; margin: 48px auto; padding: 28px 26px; border-radius: 20px; background: #fff; color: #1a1f29; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.op-gate h1 { margin: 0 0 6px; font: 800 28px 'Nunito', sans-serif; letter-spacing: -.02em; }
.op-gate p { margin: 0 0 18px; color: #6b7482; }
.op-gate label { display: block; font-weight: 800; font-size: 13px; margin: 12px 0 4px; }
.op-gate input { width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1.5px solid rgba(20, 30, 45, .12); border-radius: 12px; font: inherit; }
.op-row { display: flex; gap: 10px; margin-top: 18px; }
.op-btn { flex: 1; padding: 12px; border-radius: 999px; border: 1.5px solid rgba(20, 30, 45, .12); background: #fff; font: 800 15px 'Nunito', sans-serif; cursor: pointer; color: #1a1f29; }
.op-btn.go { background: var(--op-blue); border-color: var(--op-blue); color: #fff; }
.op-btn[disabled] { opacity: .6; }
.op-btn:focus-visible, .op-gate input:focus-visible { outline: 3px solid var(--op-blue); outline-offset: 2px; }
.op-err { color: #e4002b; font-weight: 700; min-height: 1.4em; margin-top: 10px; font-size: 14px; }

.op-toasts { position: fixed; top: calc(var(--op-bar) + 12px); left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.op-toast { padding: 9px 16px; border-radius: 10px; background: #26303c; color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); animation: op-pop .2s; }
.op-toast.good { background: #1f6f4a; }
.op-toast.err { background: #9c2f28; }
@keyframes op-pop { from { transform: scale(.9); opacity: 0; } }

@media (max-width: 560px) {
	.op-game { display: none; }
	.op-brand b { display: none; }
}
