/* Account button + dialog, shared by every page. Uses the page's color tokens. */
.acct-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 500 14px var(--font-ui); cursor: pointer; }
.acct-btn.signin { padding: 6px 14px; font-weight: 600; }
.acct-btn:hover { border-color: var(--border-strong); }
.acct-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 700 12px var(--font-ui); }
.acct-plan { font: 700 11px var(--font-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.acct-modal { position: fixed; inset: 0; background: rgba(10, 10, 12, .45); display: grid; place-items: center; z-index: 100; padding: 16px; }
.acct-card { background: var(--surface); color: var(--text); border-radius: 18px; padding: 24px; width: min(420px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.25); font: 15px/1.5 var(--font-ui); }
.acct-card h2 { margin: 0 0 6px; font: 700 22px var(--font-display, var(--font-ui)); }
.acct-muted { color: var(--sub); margin: 0 0 16px; }
.acct-form { display: flex; flex-direction: column; gap: 8px; }
.acct-form input { font: inherit; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg); color: var(--text); }
.acct-card button { font: inherit; cursor: pointer; border-radius: 10px; padding: 9px 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.acct-card .acct-primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); font-weight: 600; width: 100%; }
.acct-card .acct-secondary, .acct-card .acct-google { width: 100%; font-weight: 600; }
.acct-gsi { display: flex; justify-content: center; min-height: 44px; }
.acct-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 12px 0; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.acct-msg { min-height: 1.4em; color: var(--sub); font-size: 14px; margin: 10px 0 0; }
.acct-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0 18px; }
.acct-facts dt { color: var(--sub); }
.acct-facts dd { margin: 0; font-weight: 500; }
.acct-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.hidden { display: none !important; }
.acct-card .acct-google { display: flex; align-items: center; justify-content: center; gap: 10px; }
.acct-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.acct-card .acct-link { background: none; border: 0; padding: 0; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; border-radius: 4px; }
.acct-card .acct-link:hover { color: var(--text); }
.acct-msg.ok { color: var(--text); }
.acct-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--sub); }
.acct-name { display: grid; gap: 6px; margin: 14px 0 4px; }
.acct-name label { font-weight: 600; font-size: 14px; }
.acct-name > div { display: flex; gap: 8px; }
.acct-name input { flex: 1; min-width: 0; font: inherit; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg); color: var(--text); }
.acct-name small { color: var(--sub); font-size: 13px; }
.acct-upgrade { border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.acct-upgrade-title { margin: 0 0 10px; font-weight: 600; }
.acct-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acct-prices button { width: 100%; }
.name-chip .acct-plan { margin-left: 2px; }
@media (max-width: 420px) { .acct-prices { grid-template-columns: 1fr; } }
.acct-fine { font-size: 12.5px; color: var(--sub); margin: 10px 0 0; }
.acct-fine a { color: inherit; text-underline-offset: 2px; }

/* Ads for free players (see /ads.js). Empty slots take no space. */
.ad-slot:empty { display: none; }
.ad-slot.ad-on { display: block; width: 100%; max-width: 728px; margin: 18px auto 4px; }
.modal .ad-slot.ad-on { margin: 4px 0 14px; }
.ad-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; font-size: 11px; color: var(--sub); }
.ad-plus { padding: 0; border: 0; background: none; font: inherit; color: var(--sub); text-decoration: underline; cursor: pointer; }
.ad-plus:hover { background: none; color: var(--text); }
.ad-preview { display: grid; place-items: center; height: 90px; border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--surface-2); color: var(--sub); font-size: 13px; }

/* The name chip, signed out: one control with a "Sign in" tag that draws the eye. */
.name-chip.guest { padding-right: 4px; }
.chip-signin { white-space: nowrap; flex: none; margin-left: 2px; padding: 3px 10px; border-radius: 99px; background: var(--primary); color: var(--primary-ink); font: 600 12.5px var(--font-ui); }
.name-chip.guest:hover .chip-signin { filter: brightness(1.1); }
.acct-pitch { margin: 18px 0 0; padding: 16px; border-radius: 14px; background: var(--surface-2, var(--bg)); display: flex; flex-direction: column; gap: 10px; }
.acct-pitch ul { margin: 0; padding-left: 18px; color: var(--sub); font-size: 14px; display: grid; gap: 2px; }
.acct-pitch .acct-fine { margin: 0; text-align: center; }
@media (max-width: 720px) { .name-chip.guest #nameLabel { max-width: 64px; } }
.acct-pitch .acct-upgrade-title { margin: 0; }
