/* Public profiles share the homepage palette, typography and content width. */
.kow-player-profile .player-page { max-width:none; margin:0 auto; padding:32px 0 64px; }
.kow-player-profile .player-page *, .kow-player-profile .player-page *::before, .kow-player-profile .player-page *::after { box-sizing:border-box; }
.kow-player-profile .back-link { display:inline-flex; align-items:center; min-height:40px; gap:10px; margin-bottom:18px; color:var(--kh-muted); font-size:12px; font-weight:600; text-decoration:none; }
.kow-player-profile .back-link:hover { color:var(--kh-accent); }
.kow-player-profile .community-toolbar { align-items:center; gap:24px; margin-bottom:26px; }
.kow-player-profile .community-kicker { color:#666; font-size:9px; font-weight:700; letter-spacing:.14em; }
.kow-player-profile .community-toolbar h2 { margin:8px 0 0; color:#111; font-size:29px; font-weight:800; letter-spacing:-.045em; }
.kow-player-profile .community-toolbar h2::after { content:'.'; color:var(--kh-accent); }
.kow-player-profile .profile-search { display:flex; align-items:center; width:370px; gap:8px; }
.kow-player-profile .profile-search .community-search { flex:1; min-width:0; }
.kow-player-profile .profile-search input { min-height:44px; border-radius:6px; background:#f5f5f5; color:#111; border-color:#ddd; font-size:12px; }
.kow-player-profile .community-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 17px; border:1px solid var(--kh-accent); border-radius:6px; background:var(--kh-accent); color:#fff; font:700 12px 'Plus Jakarta Sans',sans-serif; white-space:nowrap; text-decoration:none; cursor:pointer; }
.kow-player-profile .community-button:hover { background:var(--kh-accent-hover); border-color:var(--kh-accent-hover); }
.kow-player-profile .player-page :is(input,select,button,a):focus-visible { outline:2px solid var(--kh-accent); outline-offset:3px; }
.kow-player-profile .player-page input::placeholder { color:#777; }
.kow-player-profile .profile-hero { display:block; position:relative; min-height:0; padding:0; border:1px solid #292929; border-radius:14px; background:#111; overflow:hidden; }
.kow-player-profile .profile-cover { position:relative; height:150px; overflow:hidden; background:#080808; }
.kow-player-profile .profile-cover::before { content:''; position:absolute; width:75%; height:340%; top:-180%; right:-12%; border-radius:44%; background:#1c1c1c; transform:rotate(-25deg); }
.kow-player-profile .profile-cover::after { content:'KOW'; position:absolute; top:-30px; right:45px; color:transparent; -webkit-text-stroke:1px #454545; font-size:205px; font-weight:800; font-style:italic; letter-spacing:-.09em; line-height:1; transform:rotate(-8deg); opacity:.6; }
.kow-player-profile .profile-cover-label { position:absolute; z-index:1; top:25px; left:28px; color:#c8c8c8; font-size:9px; font-weight:700; letter-spacing:.16em; }
.kow-player-profile .profile-cover-label::before { content:''; display:inline-block; width:18px; height:2px; margin-right:10px; vertical-align:middle; background:var(--kh-accent); }
.kow-player-profile .profile-identity { position:relative; display:flex; align-items:flex-end; gap:22px; padding:0 28px 28px; margin-top:-38px; }
.kow-player-profile .profile-hero .avatar { display:block; width:108px; height:108px; flex:0 0 108px; padding:8px; border:5px solid #111; border-radius:18px; background:#2c2c2c; object-fit:contain; image-rendering:pixelated; box-shadow:0 0 0 1px #ffffff16; }
.kow-player-profile .profile-title { flex:1; min-width:0; padding-top:38px; }
.kow-player-profile .profile-name-row { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.kow-player-profile .profile-title h1 { margin:0; color:#fff; font-size:36px; font-weight:800; letter-spacing:-.045em; line-height:1.22; overflow-wrap:anywhere; }
.kow-player-profile .profile-meta { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin-top:10px; color:#a8a8a8; font-size:11px; line-height:1.6; }
.kow-player-profile .profile-meta-dot { width:3px; height:3px; border-radius:50%; background:#707070; }
.kow-player-profile .presence { display:inline-flex; align-items:center; gap:7px; margin:0; padding:6px 9px; border:1px solid #393939; border-radius:5px; color:#bcbcbc; background:#202020; font-size:10px; font-weight:600; }
.kow-player-profile .presence i { width:6px; height:6px; border-radius:50%; background:#8d8d8d; }
.kow-player-profile .presence.online { color:#b4e3c5; border-color:#365d45; background:#192c20; }
.kow-player-profile .presence.online i { background:#7aca9d; }
.kow-player-profile .profile-actions { flex:none; display:flex; gap:8px; padding-bottom:3px; }
.kow-player-profile .profile-share { margin:0; }
.kow-player-profile .stats-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:22px 0 28px; border:0; border-radius:0; overflow:visible; }
.kow-player-profile .stat-card { padding:22px 24px; border:1px solid var(--kh-line); border-radius:10px; background:#f6f6f6; }
.kow-player-profile .stat-topline { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.kow-player-profile .stat-label { color:#595959; font-size:11px; font-weight:600; }
.kow-player-profile .stat-index { color:#b50020; font-size:10px; font-weight:600; }
.kow-player-profile .stat-value { color:#111; font-size:30px; font-weight:800; margin-top:12px; letter-spacing:-.045em; font-variant-numeric:tabular-nums; }
.kow-player-profile .stat-detail { color:#757575; font-size:11px; margin:5px 0 0; line-height:1.5; }
.kow-player-profile .profile-content { display:grid; grid-template-columns:320px minmax(0,1fr); gap:24px; align-items:start; }
.kow-player-profile .profile-section { margin:0; min-width:0; }
.kow-player-profile .profile-panel { background:#fff; border:1px solid var(--kh-line); border-radius:12px; overflow:hidden; }
.kow-player-profile .profile-panel-head { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:22px; border-bottom:1px solid var(--kh-line); }
.kow-player-profile .profile-section h2 { margin:0; color:#171717; font-size:17px; font-weight:800; letter-spacing:-.025em; }
.kow-player-profile .profile-panel-caption { margin:7px 0 0; color:#707070; font-size:11px; line-height:1.6; }
.kow-player-profile .profile-panel-marker { padding:5px 7px; border-radius:4px; background:#fff0f3; color:#b50020; font-size:10px; font-weight:700; }
.kow-player-profile .skin-stage { position:relative; width:100%; height:360px; border-radius:0; overflow:hidden; background:radial-gradient(ellipse at 50% 65%,#fff 10%,#f3f3f3 68%); }
.kow-player-profile .skin-stage::before { content:''; position:absolute; bottom:39px; left:calc(50% - 68px); width:136px; height:28px; border:1px solid #d9d9d9; border-radius:50%; background:#e7e7e7; pointer-events:none; }
.kow-player-profile .skin-stage canvas { display:block; position:relative; z-index:1; width:100%!important; height:100%!important; }
.kow-player-profile .skin-fallback { display:block; position:absolute; left:calc(50% - 55px); top:110px; width:110px; height:110px; object-fit:contain; image-rendering:pixelated; }
.kow-player-profile .skin-stage.has-viewer .skin-fallback { display:none; }
.kow-player-profile .skin-controls { display:flex; justify-content:center; gap:8px; padding:16px 14px; background:#f3f3f3; }
.kow-player-profile .skin-controls button { min-height:40px; padding:0 12px; font-size:10px; background:#fff; color:#333; border-color:#d5d5d5; }
.kow-player-profile .skin-controls button:hover { border-color:#999; }
.kow-player-profile .skin-controls button[aria-pressed='true'] { border-color:#111; background:#111; color:#fff; }
.kow-player-profile .skin-controls button:disabled { opacity:.5; cursor:default; }
.kow-player-profile .skin-note { display:block; position:absolute; z-index:2; bottom:12px; left:0; width:100%; text-align:center; color:#686868; font-size:10px; pointer-events:none; }
.kow-player-profile .profile-appearance-info { border-top:1px solid var(--kh-line); padding:20px 22px; }
.kow-player-profile .appearance-label { color:#b50020; text-transform:uppercase; letter-spacing:.1em; font-size:9px; font-weight:700; }
.kow-player-profile .profile-appearance-info h3 { margin:7px 0 0; color:#222; font-size:14px; font-weight:700; line-height:1.5; overflow-wrap:anywhere; }
.kow-player-profile .profile-appearance-info p { margin:8px 0 0; color:#707070; font-size:11px; line-height:1.7; }
.kow-player-profile .profile-inventory { padding:24px; }
.kow-player-profile .inventory-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:22px; }
.kow-player-profile .inventory-count { flex:none; padding:5px 8px; border:1px solid #e0e0e0; border-radius:5px; background:#f5f5f5; color:#555; font-size:10px; font-variant-numeric:tabular-nums; }
.kow-player-profile .inventory-controls { display:flex; gap:10px; align-items:center; }
.kow-player-profile .inventory-controls .community-search { font-size:0; min-width:0; flex:1; }
.kow-player-profile .inventory-controls input,.kow-player-profile .inventory-controls select { min-height:44px; border:1px solid #ddd; background:#fff; border-radius:6px; color:#333; font-size:11px; }
.kow-player-profile .inventory-controls select { max-width:180px; min-width:0; }
.kow-player-profile .community-status { margin:12px 0 18px; color:#777; font-size:10px; min-height:15px; }
.kow-player-profile .cosmetics-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(145px,1fr)); gap:14px; }
.kow-player-profile .cosmetic-card { position:relative; min-width:0; min-height:0; padding:0; border:1px solid #e4e4e4; border-radius:9px; background:#fff; overflow:hidden; }
.kow-player-profile .cosmetic-visual,.kow-player-profile .cape-card .cape-preview-mini { display:grid; place-items:center; position:relative; height:140px; border-bottom:1px solid #e8e8e8; background:#f3f3f3; }
.kow-player-profile .cosmetic-card img { width:74px; height:74px; display:block; object-fit:contain; image-rendering:pixelated; filter:drop-shadow(0 8px 8px #0002); }
.kow-player-profile .cosmetic-placeholder { color:#8c8c8c; font-size:25px; font-weight:700; }
.kow-player-profile .cosmetic-visual.has-image .cosmetic-placeholder { display:none; }
.kow-player-profile .cosmetic-info { padding:14px; }
.kow-player-profile .cosmetic-type { color:#b50020; font-size:8px; letter-spacing:.08em; font-weight:700; text-transform:uppercase; }
.kow-player-profile .cosmetic-name { margin-top:7px; color:#222; font-size:12px; font-weight:600; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.kow-player-profile .cape-preview-mini canvas { width:100%!important; height:100%!important; display:block; }
.kow-player-profile .cape-preview-mini .cosmetic-placeholder { position:absolute; inset:0; display:grid; place-items:center; font-size:11px; }
.kow-player-profile .cape-preview-mini.has-viewer .cosmetic-placeholder { display:none; }
.kow-player-profile .equipped-label { position:absolute; z-index:2; top:9px; right:9px; padding:4px 6px; border:1px solid #eee; border-radius:4px; background:#fff; color:#b50020; font-size:8px; font-weight:700; }
.kow-player-profile .empty-cosmetics { grid-column:1/-1; padding:48px 20px; text-align:center; border:1px dashed #d5d5d5; border-radius:9px; color:#666; background:#fafafa; }
.kow-player-profile .empty-cosmetics strong { display:block; color:#222; font-size:15px; font-weight:700; }
.kow-player-profile .empty-cosmetics p { margin-top:8px; color:#777; font-size:12px; line-height:1.7; }
.kow-player-profile .profile-state { border:1px solid var(--kh-line); border-radius:12px; padding:80px 25px; background:#f6f6f6; color:#666; text-align:center; }
.kow-player-profile .profile-state h3 { color:#111; font-size:24px; font-weight:800; letter-spacing:-.03em; margin:0 0 13px; }
.kow-player-profile .profile-state p { max-width:390px; margin:0 auto; font-size:13px; line-height:1.85; }
.kow-player-profile .profile-state a { margin-top:24px; }
.kow-player-profile .profile-loading-dot { display:block; width:25px; height:25px; margin:0 auto 17px; border:2px solid #ddd; border-top-color:var(--kh-accent); border-radius:50%; animation:profile-spin .9s linear infinite; }
@keyframes profile-spin { to { transform:rotate(360deg); } }
@keyframes profile-enter { from { opacity:0; transform:translateY(9px); } to { opacity:1; transform:translateY(0); } }
@media(prefers-reduced-motion:no-preference) { .kow-player-profile .profile-hero,.kow-player-profile .stats-grid,.kow-player-profile .profile-content { animation:profile-enter .4s ease-out both; } .kow-player-profile .stats-grid { animation-delay:.06s; } .kow-player-profile .profile-content { animation-delay:.12s; } .kow-player-profile .cosmetic-card:hover { transform:translateY(-2px); border-color:#bbb; box-shadow:0 8px 20px #0000000a; } }
@media(prefers-reduced-motion:reduce) { .kow-player-profile .profile-loading-dot { animation:none; } }
@media(max-width:950px) { .kow-player-profile .profile-content { grid-template-columns:270px minmax(0,1fr); gap:18px; } .kow-player-profile .profile-identity { gap:16px; } .kow-player-profile .profile-title h1 { font-size:29px; } .kow-player-profile .profile-inventory { padding:18px; } .kow-player-profile .inventory-controls { flex-wrap:wrap; } .kow-player-profile .inventory-controls select { max-width:none; } }
@media(max-width:760px) { .kow-player-profile .community-toolbar { flex-direction:column; align-items:stretch; gap:20px; } .kow-player-profile .profile-search { width:100%; } .kow-player-profile .profile-cover { height:130px; } .kow-player-profile .profile-cover-label { left:20px; top:20px; } .kow-player-profile .profile-cover::after { right:20px; top:10px; font-size:150px; } .kow-player-profile .profile-identity { padding:0 20px 22px; gap:14px; align-items:center; flex-wrap:wrap; } .kow-player-profile .profile-hero .avatar { width:82px; height:82px; flex-basis:82px; border-radius:14px; } .kow-player-profile .profile-title { padding-top:38px; } .kow-player-profile .profile-title h1 { font-size:26px; } .kow-player-profile .profile-name-row { gap:8px; } .kow-player-profile .profile-meta { font-size:10px; gap:6px; margin-top:8px; } .kow-player-profile .profile-actions { width:100%; padding:0; margin-top:6px; } .kow-player-profile .profile-share { width:100%; } .kow-player-profile .stats-grid { gap:8px; } .kow-player-profile .stat-card { padding:16px 12px; } .kow-player-profile .stat-value { font-size:21px; } .kow-player-profile .stat-index { display:none; } .kow-player-profile .stat-detail { font-size:9px; } .kow-player-profile .stat-label { font-size:10px; } .kow-player-profile .profile-content { grid-template-columns:1fr; } .kow-player-profile .skin-stage { height:315px; } .kow-player-profile .inventory-controls { flex-direction:row; flex-wrap:nowrap; } .kow-player-profile .inventory-controls select { width:130px; } }
@media(max-width:400px) { .kow-player-profile .profile-identity { padding-inline:16px; } .kow-player-profile .profile-meta-dot { display:none; } .kow-player-profile .profile-meta { display:grid; gap:3px; } .kow-player-profile .stats-grid { gap:6px; } .kow-player-profile .stat-card { padding:14px 9px; } .kow-player-profile .stat-value { font-size:18px; } .kow-player-profile .profile-inventory { padding:16px; } .kow-player-profile .cosmetics-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } }
