/* Shared look for the player pages (konto, profil, topplista) — same colours and logo as the rest of Körsbär Servern (28 okt). */
:root {
	--bg: #0a0608;
	--bg2: #140c10;
	--card: rgba(255, 255, 255, 0.04);
	--line: rgba(255, 179, 199, 0.14);
	--text: #f6eef1;
	--dim: #b8a5ad;
	--cherry: #ff2f5f;
	--pink: #ffb3c7;
	--warm: #ffcf8a;
	--green: #4ade80;
	--red: #f87171;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, sans-serif; min-height: 100vh; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background:
	radial-gradient(ellipse at 80% 0%, rgba(255, 47, 95, 0.2), transparent 50%),
	radial-gradient(ellipse at 0% 100%, rgba(255, 207, 138, 0.08), transparent 45%), var(--bg); }
a { color: var(--pink); }
h1, h2, h3 { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; letter-spacing: 0.04em; margin: 0; line-height: 1; }
.hidden { display: none !important; }

nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px 28px; background: rgba(10, 6, 8, 0.94); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.logo img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--cherry); padding: 2px; background: var(--bg); box-shadow: 0 0 16px rgba(255, 47, 95, 0.45); flex-shrink: 0; }
.logo .name { display: flex; flex-direction: column; white-space: nowrap; font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 0.08em; line-height: 0.95; }
.logo .name small { font-family: Inter, sans-serif; font-size: 9.5px; font-weight: 800; letter-spacing: 0.42em; color: var(--cherry); margin-top: 3px; }
.logo .season { align-self: flex-start; margin-top: 2px; font-family: ui-monospace, monospace; font-size: 11px; font-weight: 700; color: var(--warm); border: 1px solid rgba(255, 207, 138, 0.45); border-radius: 5px; padding: 1px 5px; }
.links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.links a, .links button { color: var(--dim); text-decoration: none; font: 600 14px Inter, sans-serif; text-transform: uppercase; letter-spacing: 0.08em; background: none; border: 0; cursor: pointer; padding: 0; }
.links a:hover, .links a.on, .links button:hover { color: var(--text); }
.links a.apply { color: var(--cherry); }

main { max-width: 1100px; margin: 0 auto; padding: 50px 28px 100px; }
main.narrow { max-width: 480px; padding-top: 8vh; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(0, 0, 0, 0.35); padding: 5px; border-radius: 12px; margin-bottom: 24px; }
.tab { padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--dim); font: 700 14px Inter, sans-serif; cursor: pointer; }
.tab.on { background: var(--cherry); color: #fff; }
.box h1 { font-size: 46px; }
.box h1 span { color: var(--cherry); }
.box p { color: var(--dim); margin: 8px 0 18px; }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
label small { color: var(--dim); font-weight: 400; }
input { display: block; width: 100%; margin-top: 6px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 12px 14px; font: 16px Inter, sans-serif; outline: none; }
input:focus { border-color: var(--cherry); box-shadow: 0 0 0 3px rgba(255, 47, 95, 0.2); }
.btn { display: inline-flex; justify-content: center; width: 100%; padding: 14px; border-radius: 10px; border: 0; background: var(--cherry); color: #fff; font: 800 14px Inter, sans-serif;
	text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; box-shadow: 0 8px 30px rgba(255, 47, 95, 0.35); text-decoration: none; }
.btn:disabled { opacity: 0.6; }
.err { color: var(--red); font-weight: 600; min-height: 1.5em; margin-top: 10px; }
.small { font-size: 14px; text-align: center; }

/* profile */
.profile { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.skin { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; text-align: center; position: sticky; top: 90px; }
.skin img { height: 300px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.7)); }
.skin h1 { font-size: 40px; margin-top: 14px; overflow-wrap: anywhere; }
.skin .seen { color: var(--dim); font-size: 14px; }
.eyebrow { color: var(--warm); font-weight: 800; text-transform: uppercase; letter-spacing: 0.25em; font-size: 13px; margin: 0 0 8px; }
.big-title { font-size: clamp(44px, 6vw, 70px); margin-bottom: 26px; }
.big-title span { color: var(--cherry); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat .ico { font-size: 22px; }
.stat .num { font-family: 'Bebas Neue', sans-serif; font-size: 46px; line-height: 1; margin-top: 6px; }
.stat .lbl { color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.list h3 { font-size: 26px; margin-bottom: 10px; }
.list ol { margin: 0; padding: 0; list-style: none; }
.list li { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list li b { font-family: ui-monospace, monospace; color: var(--pink); }
.notice { background: rgba(255, 207, 138, 0.08); border: 1px solid rgba(255, 207, 138, 0.3); color: var(--warm); border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; }

/* leaderboard */
.boards { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.board { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--dim); font: 700 14px Inter, sans-serif; cursor: pointer; }
.board.on { background: var(--cherry); border-color: var(--cherry); color: #fff; }
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 56px 48px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 20px; }
.row.me { border-color: var(--cherry); background: rgba(255, 47, 95, 0.1); }
.row .place { font-family: 'Bebas Neue', sans-serif; font-size: 36px; color: var(--dim); }
.row:nth-child(1) .place { color: #ffd54a; text-shadow: 0 0 16px rgba(255, 213, 74, 0.5); }
.row:nth-child(2) .place { color: #d9dde3; }
.row:nth-child(3) .place { color: #e59a5b; }
.row img { width: 48px; height: 48px; border-radius: 8px; image-rendering: pixelated; }
.row .who { font-weight: 800; font-size: 17px; overflow-wrap: anywhere; }
.row .val { font-family: 'Bebas Neue', sans-serif; font-size: 32px; }
.empty { color: var(--dim); font-style: italic; text-align: center; padding: 30px; }

@media (max-width: 800px) { .profile { grid-template-columns: 1fr; } .skin { position: static; } .skin img { height: 220px; } }
@media (max-width: 600px) {
	nav { padding: 10px 16px; gap: 10px; }
	.logo { gap: 8px; } .logo .name { font-size: 18px; } .logo .name small { font-size: 8px; letter-spacing: 0.3em; } .logo img { width: 34px; height: 34px; } .logo .season { font-size: 9px; }
	.links { gap: 12px; } .links a:not(.on):not(.apply) { display: none; }
	main { padding: 30px 16px 80px; }
	.box { padding: 20px; }
	.row { grid-template-columns: 40px 40px 1fr auto; gap: 10px; padding: 10px 12px; } .row img { width: 40px; height: 40px; }
}
