/* Profil hráče: veřejný (hrac_profile.php) i osobní (profil.php) */
.pf-wrap { padding-top: 120px; padding-bottom: 80px; }
.pf { max-width: 1040px; }
.pf-panel {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.7), rgba(15, 15, 20, 0.85)); backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 20px; padding: 26px 28px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45), inset 0 2px 10px rgba(255, 255, 255, 0.04);
}
.pf-title { margin: 0 0 18px; color: #999; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Hlavička */
.pf-head {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 34px; align-items: center;
    border-color: rgba(255, 165, 0, 0.15); padding: 32px 36px; margin-bottom: 22px;
}
.pf-head::before { content: ''; position: absolute; inset: 0; border-radius: 19px; background: linear-gradient(var(--rank), var(--rank)) top / 100% 4px no-repeat; pointer-events: none; }
.pf-avatar { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55)); }
.pf-kicker { color: var(--col-primary); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.pf-head h1 { font-family: var(--font-header); font-size: 40px; color: #fff; margin: 4px 0 14px; line-height: 1.1; word-break: break-all; }
/* Řádek pod nickem: role · tým · kdy hrál - oddělené tenkou čárou, bez rámečků */
.pf-meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; margin-bottom: 24px; font-size: 14px; color: #a8a8ad; }
.pf-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.pf-meta > span + span::before { content: ''; width: 1px; height: 14px; margin: 0 14px; background: rgba(255, 255, 255, 0.14); }
.pf-role { color: var(--rank); font-family: var(--font-header); font-weight: 700; font-size: 14px; letter-spacing: 1.5px; }
.pf-role i { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; background: color-mix(in srgb, var(--rank) 16%, transparent); }
.pf-team { color: #e3a33b; }
.pf-team.old { color: #8a93a0; }
.pf-dot { width: 8px; height: 8px; border-radius: 50%; background: #5d5d63; }
.pf-seen.on { color: #2ed573; }
.pf-seen.on .pf-dot { background: #2ed573; animation: pfPulse 2.4s ease-out infinite; }
@keyframes pfPulse { 0% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(46, 213, 115, 0); } }

/* Tři čísla v hlavičce */
.pf-stats { display: flex; flex-wrap: wrap; row-gap: 14px; }
.pf-stats div { display: flex; flex-direction: column; gap: 3px; padding: 0 28px; border-left: 1px solid rgba(255, 255, 255, 0.08); }
.pf-stats div:first-child { padding-left: 0; border-left: none; }
.pf-stats b { font-family: var(--font-header); font-size: 22px; font-weight: 700; color: #fff; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pf-stats span { color: #85858b; font-size: 13px; }

/* Obsah */
.pf-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.pf-side { display: flex; flex-direction: column; gap: 22px; }
.pf-total { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.pf-total b { font-family: var(--font-header); font-size: 38px; color: #fff; line-height: 1; }
.pf-total span { color: #888; font-size: 14px; }
.pf-time-note { margin: -12px 0 18px; color: #777; font-size: 12px; line-height: 1.5; }
.pf-money em { font-style: normal; color: var(--col-primary); margin-left: 2px; }
.pf-bals { display: flex; flex-direction: column; gap: 16px; }
.pf-bal-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 14px; }
.pf-bal-top span { color: #bbb; font-weight: 500; }
.pf-bal-top b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.pf-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.pf-bar i { display: block; height: 100%; min-width: 3px; border-radius: 3px; background: var(--col-primary); }
.pf-bal.zero .pf-bar i { background: #444; }
.pf-bal.zero .pf-bal-top b { color: #666; }

.pf-votes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-votes div { padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.pf-votes b { display: block; font-family: var(--font-header); font-size: 28px; color: #fff; line-height: 1.1; }
.pf-votes span { color: #888; font-size: 13px; }
.pf-status { display: flex; gap: 14px; align-items: flex-start; }
.pf-status-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.pf-status strong { display: block; color: var(--c); font-size: 16px; font-weight: 700; }
.pf-status p { color: #999; font-size: 13px; margin-top: 2px; }
.pf-link { color: #aaa; font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 500; transition: color 0.15s; }
.pf-link:hover { color: var(--col-primary); }

.pf-rk { font-style: normal; margin-left: 8px; padding: 1px 7px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); color: #999; font-size: 11px; font-weight: 600; }
.pf-rk.top { background: rgba(245, 197, 24, 0.14); color: #f5c518; }
.pf-bal.time .pf-bar i { background: #b197fc; }

/* Úspěchy: bronz / stříbro / zlato */
.pf-ach-count { color: #777; letter-spacing: 0.5px; }
.pf-achs { display: flex; flex-direction: column; margin-top: -8px; }
.pf-ach { --t1: #cd8a4d; --t2: #c7d0db; --t3: #f5c518; display: flex; gap: 14px; align-items: center; padding: 11px 0; }
.pf-ach + .pf-ach { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.pf-ach-ico {
    position: relative; width: 46px; height: 46px; flex-shrink: 0; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px;
    color: #4a4a4f; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.pf-ach.t1 .pf-ach-ico { color: #2b1a0c; background: linear-gradient(150deg, #f0b47c, #a5612a); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28), inset 0 -4px 0 rgba(0, 0, 0, 0.22), 0 6px 16px rgba(205, 138, 77, 0.18); }
.pf-ach.t2 .pf-ach-ico { color: #232830; background: linear-gradient(150deg, #f4f7fb, #8c97a6); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45), inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 6px 16px rgba(199, 208, 219, 0.16); }
.pf-ach.t3 .pf-ach-ico { color: #3a2a00; background: linear-gradient(150deg, #fff0a8, #d49b12); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45), inset 0 -4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px rgba(245, 197, 24, 0.28); }
.pf-ach-body { flex: 1; min-width: 0; }
.pf-ach-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pf-ach-top strong { color: #fff; font-size: 14px; font-weight: 600; }
.pf-ach.t0 .pf-ach-top strong { color: #9a9a9a; }
.pf-ach-pips { display: inline-flex; gap: 5px; }
.pf-ach-pips i { width: 7px; height: 7px; transform: rotate(45deg); border-radius: 1px; background: rgba(255, 255, 255, 0.1); }
.pf-ach.t1 .pf-ach-pips i.on { background: var(--t1); }
.pf-ach.t2 .pf-ach-pips i.on { background: var(--t2); }
.pf-ach.t3 .pf-ach-pips i.on { background: var(--t3); }
.pf-ach-bar { height: 4px; margin: 7px 0 6px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.pf-ach-bar i { display: block; height: 100%; border-radius: 2px; background: #555; }
.pf-ach.t0 .pf-ach-bar i { background: #6b6b70; }
.pf-ach.t1 .pf-ach-bar i { background: var(--t2); }
.pf-ach.t2 .pf-ach-bar i { background: var(--t3); }
.pf-ach.t3 .pf-ach-bar i { background: var(--t3); }
.pf-ach-desc { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; margin-top: 3px; }
.pf-ach-desc span { color: #bbb; }
.pf-ach-desc em { font-style: normal; color: #6f6f75; }
.pf-ach.t3 .pf-ach-desc em { color: #c9a227; }

.pf-praise { margin-top: 22px; }
.pf-count { margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: var(--col-primary); color: #000; font-size: 11px; letter-spacing: 0; }
.pf-praises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.pf-pr { margin: 0; padding: 16px 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border-left: 3px solid var(--col-primary); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.pf-pr blockquote { margin: 0; color: #e6e6e6; font-size: 15px; line-height: 1.55; word-break: break-word; }
.pf-pr figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.pf-pr figcaption a { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; }
.pf-pr figcaption img { width: 22px; height: 22px; border-radius: 5px; image-rendering: pixelated; }
.pf-pr figcaption span { color: #777; }
.pf-muted { color: #999; font-size: 14px; line-height: 1.6; }
.pf-muted a { color: var(--col-primary); font-weight: 600; }
.pf-muted i { color: #777; margin-right: 4px; }
.pf-give { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.pf-praises + .pf-give, .pf-muted + .pf-give { margin-top: 0; }
.pf-give-btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border: none; border-radius: 10px; background: var(--col-primary); color: #000; font-family: var(--font-main); font-size: 14px; font-weight: 700; cursor: pointer; transition: filter 0.2s; }
.pf-give-btn:hover { filter: brightness(1.1); }
.pf-give-btn[hidden] { display: none; }
.pf-give-btn:disabled { opacity: 0.6; cursor: default; }
.pf-form { display: flex; flex-direction: column; gap: 10px; }
.pf-form[hidden] { display: none; }
.pf-form label { color: #ddd; font-size: 14px; font-weight: 600; }
.pf-form textarea { width: 100%; resize: vertical; min-height: 70px; padding: 12px 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; font-family: var(--font-main); font-size: 15px; line-height: 1.5; outline: none; }
.pf-form textarea:focus { border-color: rgba(255, 165, 0, 0.55); }
.pf-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #888; font-size: 13px; }
/* Skrytý nebo neexistující profil */
.pf-closed { max-width: 520px; margin: 0 auto; text-align: center; padding: 44px 34px; border-color: rgba(255, 165, 0, 0.15); }
.pf-closed::before { content: ''; position: absolute; inset: 0; border-radius: 19px; background: linear-gradient(var(--col-primary), var(--col-primary)) top / 100% 4px no-repeat; pointer-events: none; }
.pf-closed-av { position: relative; width: 96px; margin: 0 auto 22px; }
.pf-closed-av img { width: 96px; height: 96px; border-radius: 14px; image-rendering: pixelated; opacity: 0.35; filter: grayscale(80%); }
.pf-closed-av i { position: absolute; right: -10px; bottom: -10px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #1b1b1f; border: 1px solid rgba(255, 165, 0, 0.35); color: var(--col-primary); }
.pf-closed h1 { font-family: var(--font-header); font-size: 28px; color: #fff; margin: 0 0 8px; word-break: break-all; }
.pf-closed p { color: #a0aec0; font-size: 15px; line-height: 1.6; }


/* ---------- Osobní profil (profil.php) ---------- */
.pf-head.has-aside { grid-template-columns: auto minmax(0, 1fr) auto; }
.pf-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; align-self: start; }
.pf-aside-note { color: #777; font-size: 12px; }
.pf-aside-btns { display: flex; flex-direction: column; gap: 8px; }
.pf-aside-btns .pf-btn { justify-content: flex-start; }
.pf-aside-note a { color: var(--col-primary); font-weight: 600; }
.pf-aside-note a:hover { text-decoration: underline; }
.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.06); color: #eee; font-family: var(--font-main); font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.15s; white-space: nowrap; }
.pf-btn:hover { border-color: rgba(255, 165, 0, 0.5); color: #fff; background: rgba(255, 165, 0, 0.1); }
.pf-btn.primary { background: var(--col-primary); border-color: var(--col-primary); color: #000; }
.pf-btn.primary:hover { filter: brightness(1.1); background: var(--col-primary); color: #000; }
.pf-btn.danger:hover { border-color: rgba(255, 71, 87, 0.5); background: rgba(255, 71, 87, 0.1); color: #ff8c95; }
.pf-btn.small { padding: 7px 13px; font-size: 13px; }
button.pf-link { background: none; border: none; padding: 0; font-family: var(--font-main); cursor: pointer; }
.pf-link.danger:hover { color: #ff6b7a; }

.pf-warn { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 22px; border-radius: 16px; background: linear-gradient(145deg, rgba(241, 196, 15, 0.1), rgba(20, 20, 24, 0.85)); border: 1px solid rgba(241, 196, 15, 0.35); }
.pf-warn-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #f1c40f; background: rgba(241, 196, 15, 0.14); font-size: 17px; }
.pf-warn > div { flex: 1; min-width: 0; }
.pf-warn strong { display: block; color: #fff; font-size: 15px; }
.pf-warn p { color: #aaa; font-size: 13px; line-height: 1.5; margin-top: 2px; }

.pf-vote-links { display: flex; gap: 10px; margin-top: 14px; }
.pf-vote-links a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 10px; background: rgba(46, 213, 115, 0.1); border: 1px solid rgba(46, 213, 115, 0.3); color: #2ed573; font-size: 13px; font-weight: 600; transition: 0.15s; }
.pf-vote-links a:hover { background: rgba(46, 213, 115, 0.18); }
.pf-vote-links a i { font-size: 11px; opacity: 0.7; }

.pf-subtitle { margin: 22px 0 10px; color: #888; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; }
.pf-sent-list { display: flex; flex-direction: column; }
.pf-sent-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; }
.pf-sent-row + .pf-sent-row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.pf-sent-row a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-sent-row a img { width: 24px; height: 24px; border-radius: 5px; image-rendering: pixelated; }
.pf-sent-row p { color: #aaa; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap; text-transform: none; }
.pf-pill.ok { color: #2ed573; background: rgba(46, 213, 115, 0.12); }
.pf-pill.no { color: #ff6b7a; background: rgba(255, 71, 87, 0.12); }
.pf-pill.wait { color: #f1c40f; background: rgba(241, 196, 15, 0.12); }

.pf-section { margin: 44px 0 16px 4px; font-family: var(--font-header); font-size: 22px; color: #fff; }
.pf-settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.pf-switch-row { display: flex; align-items: center; gap: 18px; }
.pf-switch-row > div { flex: 1; }
.pf-switch-row strong { color: #fff; font-size: 15px; }
.pf-switch-row p { color: #999; font-size: 13px; line-height: 1.5; margin-top: 3px; }
.pf-switch { position: relative; width: 50px; height: 28px; flex-shrink: 0; cursor: pointer; }
.pf-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.pf-switch span { position: absolute; inset: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.12); transition: 0.2s; pointer-events: none; }
.pf-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: 0.2s; }
.pf-switch input:checked + span { background: var(--col-primary); }
.pf-switch input:checked + span::after { transform: translateX(22px); }
.pf-switch input:focus-visible + span { outline: 2px solid rgba(255, 165, 0, 0.6); outline-offset: 2px; }

.pf-pass { display: flex; flex-direction: column; gap: 12px; }
.pf-pass label { color: #bbb; font-size: 13px; font-weight: 600; }
.pf-pass input, .pf-code { display: block; width: 100%; height: 44px; margin-top: 6px; padding: 0 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; font-family: var(--font-main); font-size: 15px; outline: none; transition: border-color 0.2s; }
.pf-pass input:focus, .pf-code:focus { border-color: rgba(255, 165, 0, 0.55); }
.pf-pass-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.pf-pass-foot span { color: #777; font-size: 12px; flex: 1 1 200px; }

.pf-tfa-setup { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; margin: 16px 0 18px; }
.pf-qr { padding: 10px; border-radius: 12px; background: #fff; line-height: 0; }
.pf-qr img, .pf-qr canvas { width: 170px; height: 170px; }
.pf-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; color: #ccc; font-size: 13px; line-height: 1.55; }
.pf-steps b { color: #fff; }
.pf-key { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #fff; letter-spacing: 1px; word-break: break-all; cursor: pointer; }
.pf-code-form { display: flex; gap: 10px; margin-bottom: 12px; }
.pf-code { flex: 1; min-width: 0; margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 20px; letter-spacing: 6px; text-align: center; }
.pf-devices { display: flex; flex-direction: column; margin-bottom: 10px; }
.pf-device { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.pf-device + .pf-device { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.pf-device > i { width: 36px; height: 36px; flex-shrink: 0; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.06); color: #bbb; }
.pf-device > div { flex: 1; min-width: 0; }
.pf-device strong { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.pf-device strong em { font-style: normal; margin-left: 6px; padding: 1px 7px; border-radius: 5px; background: rgba(255, 165, 0, 0.15); color: var(--col-primary); font-size: 11px; }
.pf-device span { color: #888; font-size: 12px; }
.pf-note { margin-top: 14px; color: #888; font-size: 13px; }
.pf-disable { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.pf-disable summary { color: #888; font-size: 13px; cursor: pointer; }
.pf-disable summary:hover { color: #ff6b7a; }
.pf-disable form { margin-top: 12px; }

@media (max-width: 860px) {
    .pf-settings { grid-template-columns: minmax(0, 1fr); }
    .pf-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .pf-head.has-aside { grid-template-columns: minmax(0, 1fr); }
    .pf-aside { align-items: stretch; align-self: stretch; }
    .pf-aside-btns .pf-btn { flex: 1; }
    .pf-warn { flex-wrap: wrap; }
    .pf-warn .pf-btn { width: 100%; }
    .pf-sent-row { grid-template-columns: minmax(0, 1fr) auto; }
    .pf-sent-row p { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
    .pf-tfa-setup { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    .pf-wrap { padding-top: 100px; }
    .pf-head { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 20px; }
    .pf-avatar { width: 110px; height: 110px; }
    .pf-head h1 { font-size: 30px; }
    .pf-meta { font-size: 13px; column-gap: 16px; }
    .pf-meta > span + span::before { display: none; }
    .pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pf-stats div { padding: 0 10px; }
    .pf-stats b { font-size: 17px; }
    .pf-stats span { font-size: 12px; }
    .pf-panel { padding: 22px 20px; }
    .pf-total b { font-size: 32px; }
    .pf-praises { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .pf-seen.on .pf-dot { animation: none; } }
