/*
 * The profile pages' shared look (/players, /u/<nickname>), linked in their <head> so it applies before the first paint — it
 * was put on the page by social.js, and the pages showed unstyled for a moment (2026-10-26, the user). The theme's tokens and
 * fonts come first, from /theme.css (deploy-site writes it from src/ui-theme.mjs themeCss).
 * The look is "Sticker Smash" (docs/sticker-smash.md): cream paper, white panels with ink outlines and hard offset shadows,
 * Luckiest Guy for headings and buttons; whatever you press sinks into its shadow.
 */
:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--rb-page, #fff0d2); color: var(--rb-text, #17161c); font: 15px/1.5 var(--rb-font); -webkit-tap-highlight-color: transparent; }
a { color: #1d4ed8; text-decoration-thickness: 2px; text-underline-offset: 2px; }
/* (a plain link pressed lights up: the browser's own tap flash is off on these pages) */
a:not([class]):active { background-color: #fff1c2; }
button, select, input, textarea { font: inherit; color: inherit; }
/* buttons: stickers — white, an ink outline, a hard shadow; they lift under a mouse and sink into their shadow when pressed */
button { cursor: pointer; font: 800 15px/1 var(--rb-label); letter-spacing: 0.03em; text-transform: uppercase; color: var(--rb-ink); background: #fff; border: var(--rb-bw) solid var(--rb-ink); border-radius: 12px; padding: 10px 15px 7px; box-shadow: var(--rb-sh-s); transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.12s; }
@media (hover: hover) { button:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--rb-ink); } }
button:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--rb-ink); }
button:focus-visible { outline: 3px solid var(--rb-neon); outline-offset: 2px; }
button:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }
button.primary { background: var(--rb-neon); }
button.ok { background: var(--rb-cyan); }
/* (Friends ✓: a mint sticker that says so, not a faded button) */
button.ok:disabled { opacity: 1; }
button.danger { background: var(--rb-red); color: #fff; text-shadow: 1px 0 0 var(--rb-ink), -1px 0 0 var(--rb-ink), 0 1px 0 var(--rb-ink), 0 -1px 0 var(--rb-ink); }
input { background: #fff; color: var(--rb-ink); border: 2.5px solid var(--rb-ink); border-radius: 12px; padding: 8px 12px; min-width: 0; box-shadow: inset 2px 2px 0 rgba(23,22,28,0.07); }
input::placeholder, textarea::placeholder { color: var(--rb-muted); opacity: 1; }
input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--rb-neon); }
/* the site's bar: the brand, its pages (the current one a sunshine sticker), you */
header { display: flex; align-items: center; gap: 22px; padding: 10px 32px; min-height: 76px; border-bottom: 3px solid var(--rb-ink); background: #fff9ec; position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
header .brand { display: flex; align-items: center; gap: 10px; color: var(--rb-ink); text-decoration: none; min-width: 0; transition: transform 0.08s ease; }
header .brand:active { transform: translate(2px, 2px); }
header .logo { width: 54px; height: 54px; margin: -8px -4px -8px -8px; flex: none; }
header .logo svg { width: 100%; height: 100%; display: block; }
header .word { font-family: var(--rb-head); font-weight: 400; font-size: 28px; line-height: 1; padding-top: 3px; letter-spacing: 0.04em; color: var(--rb-neon); text-shadow: 2px 0 0 var(--rb-ink), -2px 0 0 var(--rb-ink), 0 2px 0 var(--rb-ink), 0 -2px 0 var(--rb-ink), 2px 2px 0 var(--rb-ink), -2px 2px 0 var(--rb-ink), 2px -2px 0 var(--rb-ink), -2px -2px 0 var(--rb-ink), 4px 4px 0 var(--rb-ink); white-space: nowrap; }
header nav { display: flex; gap: 6px; font-family: var(--rb-label); font-weight: 800; font-size: 17px; letter-spacing: 0.03em; text-transform: uppercase; }
header nav a { position: relative; color: var(--rb-ink); text-decoration: none; padding: 10px 12px 7px; line-height: 1; border: 2.5px solid transparent; border-radius: 12px; white-space: nowrap; transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.12s; }
/* (a page link under the mouse: a white sticker lifting off the cream — a pale fill did not show) */
@media (hover: hover) { header nav a:not(.on):hover { background: #fff; border-color: var(--rb-ink); box-shadow: 2px 2px 0 var(--rb-ink); transform: translate(-1px, -1px); } }
header nav a.on { background: var(--rb-neon); border-color: var(--rb-ink); box-shadow: 3px 3px 0 var(--rb-ink); transform: rotate(-2deg); }
header nav a:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--rb-ink); background: #ffe9b8; }
header nav a.on:active { transform: rotate(-2deg) translate(2px, 2px); background: var(--rb-neon); }
header .me { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--rb-ink); display: flex; gap: 6px; align-items: center; white-space: nowrap; min-height: 42px; max-width: 100%; min-width: 0; padding: 6px 16px; border-radius: 999px; background: #fff; border: 2.5px solid var(--rb-ink); box-shadow: var(--rb-sh-s); }
header .me:empty { display: none; }
header .me a { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* logged out: "Log in for friends and your profile" wraps where it does not fit (Polish's is long), the link kept whole */
header .me .say { white-space: normal; min-width: 0; line-height: 1.3; text-wrap: balance; }
header .me .say a { white-space: nowrap; }
header .me b { color: var(--rb-ink); }
main { max-width: 1320px; margin: 0 auto; padding: 26px 32px 70px; }
/* a panel: white, an ink outline and the panel's offset shadow */
.glass { background: var(--rb-panel); color: var(--rb-text); border: var(--rb-bw) solid var(--rb-ink); border-radius: var(--rb-r); box-shadow: var(--rb-sh-l); }
.sec { font-family: var(--rb-head); font-weight: 400; font-size: 21px; line-height: 1.1; padding-top: 2px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--rb-ink); display: flex; align-items: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.sec small { font: 700 13px var(--rb-font); letter-spacing: 0; text-transform: none; color: var(--rb-muted); }
.chip { padding: 4px 10px; border-radius: 999px; font: 700 12.5px/1.3 var(--rb-font); letter-spacing: 0; background: #fff; border: 2px solid var(--rb-ink); color: var(--rb-ink); display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
/* Premium: a gold sticker tag */
.chip.pm { font: 800 12px/1 var(--rb-label); letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 8px 3px; border-radius: 6px; background: var(--rb-gold); color: var(--rb-ink); box-shadow: var(--rb-sh-s); transform: rotate(-3deg); flex: none; }
.chip.pos { background: #e8f9f1; color: var(--rb-ink); }
.chip.pos b { color: var(--rb-ink); font-weight: 800; }
/* a player's disc (the default look; a colour chosen on the profile is painted over it by social.js) */
.av { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 15px/1 var(--rb-font); letter-spacing: -0.02em; color: #fff; flex: none; border: 2px solid var(--rb-ink); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35); background: radial-gradient(circle at 35% 30%, #7dffc4, #1fae6e); overflow: hidden; white-space: nowrap; }
.av.premium { background: radial-gradient(circle at 35% 30%, #ffe28a, #d79a1c); color: #241800; }
.muted { color: var(--rb-muted); }
.empty { color: var(--rb-muted); font-weight: 600; padding: 20px; text-align: center; }
footer { text-align: center; color: var(--rb-muted); font-size: 12.5px; padding: 18px 20px 30px; margin: 0 auto; max-width: 1320px; border-top: 2px dashed var(--rb-sep); }
footer nav { margin-top: 8px; }
footer a { color: var(--rb-ink); font-weight: 700; text-decoration: none; }
@media (hover: hover) { footer a:hover { text-decoration: underline; } }
@media (max-width: 820px) { header { gap: 10px 14px; padding: 8px 16px; min-height: 64px; } header nav { display: none; } header .logo { width: 46px; height: 46px; } header .word { font-size: 24px; } main { padding: 20px 16px 60px; } }
body .flag { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 15px; flex: 0 0 20px; margin-right: 6px; vertical-align: -2px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1.5px var(--rb-ink); }
body .flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
body .flag.text { font-size: 9px; font-weight: 800; letter-spacing: 0.5px; color: var(--rb-ink); background: #fff6e3; }
body .flag.text::after { content: attr(data-country); }
@media (prefers-reduced-motion: reduce) { button, header nav a { transition: none; } }
