.profile-portrait { position:relative; align-self:stretch; display:grid; place-items:end center; isolation:isolate; }
.profile-portrait::before { content:""; position:absolute; inset:15% 5% 4%; border:3px solid var(--ink); border-radius:40% 45% 32% 38%; background:#ffdd45; transform:rotate(-8deg); z-index:-1; }
.p-hero .profile-portrait .avatar.xl { width:min(100%,400px); height:clamp(240px,35vw,420px); border:0; box-shadow:none; border-radius:0; background:transparent; overflow:visible; font-size:clamp(5rem,15vw,10rem); }
.profile-portrait .avatar img { width:100%; height:100%; object-fit:contain; object-position:bottom center; transform:scale(1.10); transform-origin:bottom center; filter:drop-shadow(3px 5px 0 #fff) drop-shadow(7px 9px 0 #17130f); }
.p-hero .wrap { display:grid; grid-template-columns:minmax(240px, .85fr) minmax(0, 1.15fr); gap:clamp(18px,4vw,58px); align-items:center; }
.p-hero { padding-block:clamp(22px,4vw,64px); }
.profile-summary { min-width:0; display:grid; justify-items:start; gap:12px; }
.profile-summary h1 { overflow-wrap:anywhere; margin:0; }
.profile-scoreboard { display:flex; flex-wrap:wrap; gap:12px; align-items:stretch; }
.fame-score { display:grid; text-decoration:none; line-height:1; padding:13px 19px 15px; color:#17130f; background:#dcff3c; border:3px solid #17130f; border-radius:18px; box-shadow:4px 5px 0 #17130f; transform:rotate(-2deg); }
.fame-score strong { font-size:clamp(3rem,8vw,6.5rem); font-weight:950; letter-spacing:-.07em; }
.fame-score small { font-weight:850; }
.score-parts { display:grid; gap:4px; align-content:center; }
.score-parts span { color:#17130f; display:flex; gap:8px; align-items:center; background:#fff; border:2px solid #17130f; border-radius:10px; padding:3px 9px; font-weight:750; }
.score-parts span:nth-child(2) { background:#ffc83d; }
.score-parts span:nth-child(3) { background:#f9b5ff; }
.profile-social { display:flex; gap:8px; flex-wrap:wrap; }
.profile-social a { display:grid; padding:6px 12px; min-width:75px; border:2px solid #17130f; border-radius:13px; text-decoration:none; background:#fff; color:#17130f; box-shadow:2px 2px #17130f; line-height:1.15; }
.profile-social a[data-platform=ig] { background:#f9b5ff; }
.profile-social a[data-platform=fb] { background:#b7d7ff; }
.profile-social a[data-platform=x] { background:#191919; color:#fff; }
.profile-social strong { font-size:1.25rem; }
.profile-notes { display:grid; gap:12px; margin-block:18px 48px; }
.profile-notes details { padding:12px 16px; border:2px solid var(--ink); border-radius:14px; }
.profile-notes summary { cursor:pointer; font-weight:800; }
.shelf figure { background:linear-gradient(150deg,#fff0a1,#ffb5d9); border:2px solid var(--ink); border-radius:16px; box-shadow:3px 4px var(--ink); padding:10px; }
.daily-spot { padding-block:22px 0; }
.spot-card { display:flex; gap:12px; align-items:center; color:#17130f; text-decoration:none; background:#ffed9d; border:2px solid #17130f; border-radius:16px; box-shadow:3px 4px #17130f; padding:9px 14px; }
.spot-card small,.spot-card strong { display:block; }
.spot-count { margin-inline-start:auto; text-align:end; }
.discover-strip.section { padding-block:24px; }
.discover-tiles { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
.discover-tiles a { padding:10px; min-width:0; display:grid; gap:4px; color:var(--ink); text-decoration:none; overflow-wrap:anywhere; border:2px solid var(--ink); border-radius:15px; background:var(--paper); box-shadow:2px 3px var(--ink); }
.discover-tiles .avatar.lg { width:100%; height:auto; aspect-ratio:1; }
.discover-tiles a span:last-child { font-size:.85rem; }
.has-suggestions { position:relative; }
.search-suggestions { position:absolute; z-index:50; inset-inline:0; top:100%; margin:5px 0 0; list-style:none; padding:4px; background:var(--paper); color:var(--ink); border:2px solid var(--ink); border-radius:12px; box-shadow:3px 4px var(--ink); max-height:330px; overflow:auto; }
.search-suggestions a { display:grid; padding:7px 10px; border-radius:8px; text-decoration:none; overflow-wrap:anywhere; }
.search-suggestions a:hover,.search-suggestions a:focus-visible { background:#ffed9d; }
.hero:focus-within { z-index:4; overflow:visible; }
@media (max-width:740px) {
    .p-hero .wrap { grid-template-columns:1fr; gap:14px; }
    .p-hero .profile-portrait .avatar.xl { height:clamp(210px,60vw,320px); }
    .profile-portrait { width:min(100%,360px); justify-self:center; }
    .discover-tiles { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:430px) { .discover-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.album-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.album { background:linear-gradient(130deg,var(--paper) 55%,var(--cat) 190%); }
.album-head { justify-content:space-between; }
.album progress { width:100%; margin-block:8px 12px; accent-color:var(--cat); }
.album .book { grid-template-columns:repeat(4,minmax(0,1fr)); }
.album .stk { width:100%; }
.album .stk span { overflow-wrap:anywhere; }
@media(max-width:760px){.album-grid { grid-template-columns:1fr; }}
.profile-roles { gap:6px; }
.role-badge { background:#ffc83d; }
.profile-social a[data-platform=youtube] { background:#ffd3ce; }
.profile-social a[data-platform=tiktok] { background:#c5fff5; }
.profile-social a[data-platform=twitch] { background:#e0c3ff; }
.profile-social a[data-platform=telegram] { background:#bce9ff; }
@media (prefers-reduced-motion:no-preference) {
    .profile-portrait .avatar img { animation:portrait-rise .45s ease-out both; }
    @keyframes portrait-rise { from { opacity:.35; transform:translateY(10px) scale(1.04); } to { opacity:1; transform:scale(1.10); } }
}
