/* Base: document, type, game text (outlined Verdana) and small shared pieces. */
body { margin: 0; background: var(--night); }
a { color: var(--link); }
a:hover { color: var(--link-hover); }

.fs {
  position: relative; overflow-x: hidden; padding-top: var(--header-h);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fs *, .fs *::before, .fs *::after { box-sizing: border-box; }
.fs ::selection { background: var(--gold); color: var(--night); }
.fs a:focus-visible, .fs button:focus-visible, .fs input:focus-visible, .fs select:focus-visible, .fs summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.fs h1, .fs h2, .fs h3 { margin: 0; font-family: var(--font-display); font-weight: 900; line-height: 1.12; text-wrap: balance; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 8px 14px; background: var(--gold); color: var(--night); font-weight: 900; }
.skip:focus { top: 12px; }

/* text as the client draws it above creatures */
.gt { font-family: var(--font-game); font-weight: 700; font-size: 13px; line-height: 1.25; color: #fff; white-space: nowrap; text-shadow: var(--outline); }
.gt.g { color: var(--life); }
.gt.o { color: var(--speech); }
.gt.y { color: #ffff3a; }
.gt.r { color: var(--damage); }
.gt.b { color: #9fd3ff; }

/* health and mana bars under names */
.hp, .mana { display: flex; width: 30px; padding: 1px; background: #000; }
.hp { height: 5px; margin-top: 2px; }
.mana { height: 4px; margin-top: 1px; }
.hp i, .mana i { display: block; height: 100%; }
.hp i { background: #00c000; }
.hp i.mid { background: #c0c000; }
.mana i { background: #3a6bff; }

.dot { width: 9px; height: 9px; border-radius: 50%; background: #63d64a; box-shadow: 0 0 0 3px #63d64a33; }
.dot.off { background: #d24a3a; box-shadow: 0 0 0 3px #d24a3a33; }
.empty { margin: 8px 12px; color: var(--ink-soft); font-size: 13.5px; text-align: center; }

/* The Classic F is original logo artwork, with its natural proportions. */
.fs img.brand-mark { object-fit: contain; image-rendering: auto; flex-shrink: 0; }
/* Shared wallet treatment: sidebar, account overview and donation page. */
.coin-balance { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin: 12px 0; color: #fff1bc; background: linear-gradient(135deg, #102a50, #08172d); border: 1px solid #e8b94e; box-shadow: inset 0 1px 0 #fff2b333, 0 4px 10px #0003; border-radius: 5px; text-decoration: none; }
.coin-balance img { flex: none; image-rendering: pixelated; object-fit: contain; }
.coin-balance > span { min-width: 0; overflow-wrap: anywhere; }
.coin-balance small { display: block; font-size: 12px; line-height: 1.5; color: #f7e7bd; }
.coin-balance strong { display: block; font-size: 32px; line-height: 1.25; color: #ffda69; font-weight: 900; }
.coin-balance strong small { display: inline; }
.coin-balance.compact { gap: 10px; padding: 12px 10px; margin: 0 0 16px; }
.coin-balance.compact strong { font-size: 27px; }
a.coin-balance:hover { border-color: #fff0ad; background: #17365c; }

.donation-wallet { margin: 0; padding: 20px 24px; gap: 20px; border-left: 4px solid #efb536; }
.donation-wallet strong { font-size: 36px; margin: 3px 0; }
.donation-wallet > img { width: 64px; height: 64px; }
@media (max-width: 480px) { .donation-wallet { padding: 16px 12px; gap: 12px; } .donation-wallet strong { font-size: 28px; } }
