/* PROFILE: lite DOOD-style info page. */
body.sheet-open { overflow: hidden; }
.pf { padding: 8px 0 40px; }
.pf-wrap { max-width: 760px; }
.pf-hero { position: relative; border-radius: 18px; overflow: hidden; padding: 0 14px 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)), #110b1c; border: 1px solid rgba(245, 197, 66, .2); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.pf-banner { height: 84px; margin: 0 -14px; background: radial-gradient(circle at 80% 30%, rgba(245, 197, 66, .4), transparent 50%), linear-gradient(135deg, #4d4e51, #141515 70%); position: relative; }
.pf-banner::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(30deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 30px), repeating-linear-gradient(-30deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 30px); }
.pf-id { display: flex; align-items: flex-end; gap: 12px; margin-top: -34px; position: relative; }
.pf-av { flex: none; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; font-size: 40px; background: #222224 center / cover; border: 3px solid var(--gold); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.pf-id h1 { font: 800 28px/1 var(--f-serif); margin-bottom: 4px; }
.pf-sub { font-size: 13px; color: var(--mute); }
.pf-badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 10px; }
.pf-btns { display: flex; gap: 8px; }
.pf-h { font: 800 17px var(--f-serif); margin: 18px 0 8px; }
.pf-h small { font: 700 10px var(--f-body); color: var(--gold); letter-spacing: .14em; margin-left: 6px; }
.pf-hd { display: flex; align-items: center; gap: 6px; }
.pf-hd .pf-h { flex: 1; }
.pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pf-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.pf-t { padding: 10px 4px; border-radius: 12px; text-align: center; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.pf-t b { display: block; font: 800 19px/1.1 var(--f-head); }
.pf-t span { font: 700 9px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.pf-t.money b { color: var(--money); }
.pf-t.red b { color: var(--red); }
.pf-favs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pf-fav { position: relative; flex: none; width: 92px; display: grid; justify-items: center; gap: 2px; padding: 10px 6px 8px; border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 28%, #0e0e0f), #0e0a18); border: 1px solid rgba(255, 255, 255, .1); }
.pf-fav img { width: 40px; height: 40px; object-fit: contain; }
.pf-fav b { font: 800 14px var(--f-head); }
.pf-fav small { font: 700 10px var(--f-body); color: var(--gold); text-align: center; line-height: 1.2; }
.pf-rm { position: absolute; top: -5px; right: -5px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 11px; }
.pf-pls { display: grid; gap: 8px; margin-top: 8px; }
.pf-pl { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.pf-pl.won { border-color: var(--money); }
.pf-pl.lost { opacity: .75; }
.pf-plh { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pf-plh b { font: 800 14px var(--f-head); }
.pf-plh em { margin-left: auto; font: 700 12px var(--f-body); font-style: normal; color: var(--money); }
.pf-leg { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.pf-leg img { width: 22px; height: 22px; object-fit: contain; }
.pf-leg span { flex: 1; min-width: 0; }
.pf-leg small { color: var(--mute); font-size: 11px; }
.pf-leg i { font-style: normal; font-weight: 800; color: var(--mute); }
.pf-leg.win i { color: var(--money); }
.pf-leg.loss i { color: var(--red); }
.pf-x { margin-top: 6px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: none; color: #ff8a8e; font: 700 11px var(--f-body); }
.pf-liked { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pf-lk { position: relative; flex: none; width: 150px; aspect-ratio: 16 / 9; border-radius: 10px; background: #161717 center / cover; overflow: hidden; display: flex; align-items: flex-end; text-decoration: none; }
.pf-lk::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent 60%); }
.pf-lk span { position: relative; z-index: 1; padding: 6px 8px; font: 700 11px/1.2 var(--f-head); color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini { padding: 6px 11px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--ink); font: 700 12px var(--f-body); text-decoration: none; }
.mini.gold { background: var(--gold); color: #1a1200; border-color: var(--gold); }
.empty { padding: 16px; text-align: center; color: var(--mute); font-size: 13px; border: 1px dashed var(--line); border-radius: 12px; width: 100%; }

/* sheets */
.sh-bg { position: fixed; inset: 0; z-index: 250; background: rgba(0, 0, 0, .7); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sh { width: min(640px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: #0e0916; border: 1px solid rgba(245, 197, 66, .3); border-radius: 22px 22px 0 0; padding: 14px 14px 0; animation: up .3s cubic-bezier(.2, .9, .3, 1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sh-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sh-hd b { font: 800 20px var(--f-serif); }
.sh-hd .x { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .08); color: var(--ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.chips button { padding: 7px 13px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--ink); font: 700 13px var(--f-body); }
.chips button.on { background: var(--gold); color: #1a1200; border-color: var(--gold); }
.sh-in { width: 100%; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: #0e0a18; color: var(--ink); font: 600 14px var(--f-body); outline: none; }
.sh-list { flex: 1; overflow-y: auto; display: grid; gap: 6px; align-content: start; padding-bottom: 8px; min-height: 160px; }
.sh-list.teams { grid-template-columns: repeat(3, 1fr); }
.tm-pick { display: grid; justify-items: center; gap: 1px; padding: 9px 4px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: var(--ink); }
.tm-pick img { width: 34px; height: 34px; object-fit: contain; }
.tm-pick b { font: 800 13px var(--f-head); }
.tm-pick small { font-size: 10px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tm-pick.on { border-color: var(--gold); background: rgba(245, 197, 66, .13); }
.pl-g { padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.pl-g small { font: 700 10px var(--f-body); color: var(--mute); letter-spacing: .06em; }
.pl-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 5px; }
.pl-sides button { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: var(--ink); }
.pl-sides button img { width: 24px; height: 24px; object-fit: contain; }
.pl-sides button b { font: 800 14px var(--f-head); }
.pl-sides button em { margin-left: auto; font: 700 11px var(--f-body); font-style: normal; color: var(--gold); }
.pl-sides button.on { background: linear-gradient(180deg, #ffd964, #e0a216); color: #1a1200; border-color: #fff3c4; }
.pl-sides button.on em { color: #5c4300; }
.sh-ft { display: grid; gap: 8px; padding: 10px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .08); background: #0e0916; position: sticky; bottom: 0; }
.sh-ft .chips { margin: 0; }
.sh-ft .btn:disabled { opacity: .4; pointer-events: none; }
@media (max-width: 420px) { .pf-grid, .pf-grid.g4 { grid-template-columns: repeat(4, 1fr); } .pf-t b { font-size: 16px; } .sh-list.teams { grid-template-columns: repeat(3, 1fr); } }
