.profile-backdrop { animation: profile-backdrop-in .25s ease both; }
.player-profile { width: min(1040px, 100%); height: min(760px, calc(100dvh - 48px)); display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow: hidden; background: #15181f; border-color: #ffffff16; box-shadow: 0 40px 140px #000b, 0 0 80px #8470c20a; animation: profile-dialog-in .45s cubic-bezier(.18,.8,.2,1) both; }
.player-profile .account-close { top: 18px; right: 20px; width: 34px; height: 34px; background: #ffffff08; transition: background .2s, transform .2s; }
.player-profile .account-close:hover { color: var(--text); background: #ffffff14; transform: rotate(90deg); }
.profile-sidebar { display: flex; flex-direction: column; min-height: 0; padding: 27px 16px 22px; background: radial-gradient(ellipse at 50% 20%, #7762b91c, transparent 60%), #111319; border-right: 1px solid #ffffff0a; }
.profile-brand { padding: 0 12px; font: 600 20px var(--font-display); color: var(--text); white-space: nowrap; }
.profile-brand > span { color: var(--accent); }
.profile-brand small { margin-left: 4px; font: 11px var(--font); color: var(--faint); }
.profile-sidebar-person { display: flex; flex-direction: column; align-items: center; padding: 25px 6px 23px; min-width: 0; }
.profile-sidebar-portrait { position: relative; margin: 4px 0 16px; width: 88px; height: 88px; }
.profile-sidebar-portrait::before { content: ''; position: absolute; inset: -6px; border: 1px solid #b69be63b; border-radius: 50%; }
.profile-sidebar-portrait::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border-top: 1px solid #e3c785; border-right: 1px solid transparent; animation: profile-orbit 16s linear infinite; }
.profile-sidebar-avatar { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; }
.profile-sidebar-portrait > span { position: absolute; right: -9px; bottom: 1px; z-index: 1; width: 26px; height: 26px; display: grid; place-items: center; background: var(--accent); border: 3px solid #15151e; border-radius: 50%; color: var(--accent-ink); font-size: 13px; }
.profile-sidebar-person > strong { max-width: 100%; overflow-wrap: anywhere; text-align: center; font: 600 20px var(--font-display); }
.profile-sidebar-person > span { font-size: 11px; color: var(--muted); margin-top: 3px; }
.profile-online { display: flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 10px; color: #a4b0ac; }
.profile-online i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px #35c97f66; }
.profile-tabs { display: flex; flex-direction: column; gap: 5px; }
.profile-tabs button { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 14px; border: 1px solid transparent; border-radius: 12px; color: var(--muted); text-align: left; font-size: 12px; font-weight: 600; transition: color .2s, background .2s, transform .2s; }
.profile-tabs button > svg { opacity: .75; flex: none; }
.profile-tabs button > small { margin-left: auto; min-width: 20px; text-align: center; padding: 1px 5px; background: #ffffff07; border-radius: 6px; font-size: 10px; font-weight: 500; }
.profile-tabs button:hover { color: var(--text); background: #ffffff05; transform: translateX(2px); }
.profile-tabs button[aria-selected="true"] { color: var(--accent); background: linear-gradient(110deg, #ffcc4d17, #ffcc4d06); border-color: #ffcc4d22; }
.profile-tabs button[aria-selected="true"]::before { content: ''; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 12px #ffcc4d55; }
.profile-sidebar-footer { display: grid; gap: 5px; margin-top: auto; padding: 26px 12px 0; font-size: 10px; color: var(--faint); }
.profile-link { color: var(--accent); font-size: 12px; font-weight: 600; }
.profile-sidebar-footer .profile-link { font-size: 11px; }
.profile-main { padding: 30px 32px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ffffff20 transparent; min-width: 0; }
.profile-heading { margin-bottom: 24px; padding-right: 22px; }
.profile-eyebrow { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #a49cb6; }
.profile-heading h1 { margin: 7px 0 6px; font: 600 30px/1.1 var(--font-display); }
.profile-heading p { margin: 0; font-size: 12px; color: var(--muted); }
.profile-welcome { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 10px; min-height: 222px; border: 1px solid #ffffff0c; border-radius: 20px; overflow: hidden; background: radial-gradient(ellipse at 80% 20%, #9572d62b, transparent 65%), linear-gradient(130deg, #20232e, #1a1c27); }
.profile-welcome-copy { position: relative; z-index: 1; padding: 26px; min-width: 0; }
.profile-welcome-copy .profile-eyebrow { color: #c6b4e1; }
.profile-welcome h2 { font: 600 clamp(22px, 3vw, 30px)/1.15 var(--font-display); margin: 10px 0; overflow-wrap: anywhere; }
.profile-greeting-dot { color: var(--accent); }
.profile-welcome p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0 0 18px; }
.profile-welcome .btn { font-size: 11px; gap: 12px; padding: 10px 14px; }
.profile-welcome .btn svg { width: 15px; height: 15px; }
.profile-hero { position: relative; display: flex; flex-direction: column; align-items: center; padding: 20px 20px 25px 0; min-width: 0; }
.profile-hero-art { width: min(170px, 100%); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; filter: drop-shadow(0 12px 20px #0004); animation: profile-float 6s ease-in-out infinite; }
.profile-hero-orbit { position: absolute; width: 196px; height: 196px; top: 7px; left: calc(50% - 108px); border: 1px dashed #c1a0ed24; border-radius: 50%; animation: profile-orbit 40s linear infinite; }
.profile-hero-name { position: relative; z-index: 1; padding: 4px 14px; margin-top: -10px; background: #272231; border: 1px solid #c6aceb33; color: #d2bfec; border-radius: 30px; font-size: 10px; }
.profile-spark { position: absolute; z-index: 1; color: var(--accent); animation: profile-twinkle 3.5s ease-in-out infinite; }
.profile-spark-one { top: 26px; right: 22px; font-size: 23px; }
.profile-spark-two { bottom: 34px; left: 8px; font-size: 17px; animation-delay: -1.5s; color: #c3a7ff; }
.profile-wallet.account-wallet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 16px 0 23px; }
.profile-wallet-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; border: 1px solid #ffffff09; border-radius: 14px; background: #1b1e26; }
.profile-wallet-card > div { display: flex; align-items: center; gap: 10px; }
.profile-wallet-card img { flex: none; }
.profile-wallet-card div > span { color: var(--text); font-size: 12px; font-weight: 600; }
.profile-wallet-card small { display: block; color: var(--faint); font-size: 9px; margin-top: 2px; font-weight: 400; }
.profile-wallet-card .wallet-balance { background: transparent; padding: 0; font: 600 23px var(--font-display); }
.profile-section-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 22px 0 12px; }
.profile-section-label h2 { font: 500 17px var(--font-display); margin: 0; }
.profile-section-label > span { font-size: 10px; color: var(--faint); text-align: right; }
.profile-loadout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-loadout-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #ffffff0b; border-radius: 14px; background: #1b1e26; text-align: left; transition: border-color .2s, transform .2s; min-width: 0; }
.profile-loadout-card:hover { border-color: #ffcc4d66; transform: translateY(-3px); }
.profile-loadout-card .cosmetic-preview { min-height: 75px; width: 82px; flex: none; gap: 4px; }
.profile-loadout-card .lu-dice-stage { --lu-d: 42px; }
.profile-loadout-card .lu-pawn { width: 16px; flex-basis: 16px; font-size: 8px; }
.profile-loadout-copy { display: grid; gap: 6px; min-width: 0; }
.profile-loadout-copy small { font-size: 9px; color: var(--faint); }
.profile-loadout-copy strong { font-size: 12px; line-height: 1.4; }
.profile-loadout-copy > span { font-size: 10px; color: var(--accent); }
.profile-usage { display: flex; align-items: center; gap: 12px; padding: 13px 15px; background: #9d82d50a; border: 1px solid #b39ed51a; border-radius: 12px; margin-bottom: 20px; color: #b9a4df; }
.profile-usage svg { flex: none; }
.profile-usage > span { font-size: 11px; line-height: 1.6; color: var(--muted); }
.profile-usage strong { display: block; color: #d1c5e8; font-size: 11px; }
.player-profile #account-form.profile-avatar-form { gap: 0; }
.profile-avatar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.profile-avatar-card.account-avatar-choice { position: relative; padding: 15px 8px 12px; border: 1px solid #ffffff0c; background: #1a1d25; border-radius: 16px; gap: 6px; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; animation: profile-card-in .35s ease both; animation-delay: calc(var(--profile-i, 0) * 35ms); }
.profile-avatar-card img { width: 70px; height: 70px; margin-bottom: 2px; transition: transform .25s; }
.profile-avatar-card strong { font-size: 12px; font-weight: 600; color: var(--text); }
.profile-avatar-card small { font-size: 9px; color: var(--faint); }
.profile-avatar-card:hover { border-color: #bba1ed66; transform: translateY(-4px); background: #22212d; }
.profile-avatar-card:hover img { transform: rotate(-5deg) scale(1.05); }
.profile-avatar-card.account-avatar-choice.selected { background: #ffcc4d0c; border-color: #ffcc4d99; box-shadow: 0 0 0 2px #ffcc4d08; }
.profile-avatar-card.selected small { color: #ddbd66; }
.profile-avatar-card.is-premium::before { content: '✦'; position: absolute; left: 10px; top: 8px; font-size: 13px; color: #ba9fe8; }
.profile-choice-check { position: absolute; top: 8px; right: 8px; display: none; width: 17px; height: 17px; place-items: center; font-size: 10px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.profile-avatar-card.selected .profile-choice-check { display: grid; }
.profile-avatar-save { position: sticky; bottom: -30px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; margin-top: 20px; border-top: 1px solid #ffffff0e; background: #15181ff5; backdrop-filter: blur(12px); }
.profile-avatar-preview { display: flex; align-items: center; gap: 10px; }
.profile-avatar-preview img { width: 42px; height: 42px; border-radius: 50%; }
.profile-avatar-preview small { display: block; font-size: 9px; color: var(--muted); }
.profile-avatar-preview strong { font-size: 13px; }
.profile-avatar-save .btn { font-size: 11px; }
.profile-discover { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 0 0; font-size: 11px; color: var(--faint); }
.profile-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 20px; border: 1px dashed #b69be633; border-radius: 14px; background: #9f7cdb06; }
.profile-empty > span { font-size: 26px; color: #bda1e8; }
.profile-empty strong { font-size: 12px; }
.profile-empty p { margin: 5px 0 0; font-size: 11px; color: var(--muted); line-height: 1.6; }
.profile-empty .profile-link { margin-left: auto; }
.profile-skin-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #0f1117; border: 1px solid #ffffff0a; border-radius: 12px; }
.profile-skin-tabs button { padding: 9px 17px; font-size: 12px; color: var(--muted); border-radius: 9px; transition: color .2s, background .2s; }
.profile-skin-tabs button[aria-pressed="true"] { color: var(--accent); background: #28251c; box-shadow: 0 2px 8px #0002; }
.profile-skin-tabs button span { margin-left: 8px; color: var(--faint); font-size: 10px; }
.profile-skin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.profile-skin-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ffffff0e; background: #1a1d25; border-radius: 18px; animation: profile-card-in .35s ease both; animation-delay: calc(var(--profile-i, 0) * 35ms); }
.profile-skin-preview { position: relative; padding: 15px 12px; background: radial-gradient(ellipse at 50% 50%, #a38ad71a, transparent 75%); }
.profile-skin-preview .cosmetic-preview { min-height: 110px; }
.profile-skin-preview .lu-dice-stage { --lu-d: 62px; }
.profile-skin-halloween .profile-skin-preview { background: radial-gradient(ellipse at 50% 50%, #e9952529, transparent 75%); }
.profile-skin-frozen .profile-skin-preview { background: radial-gradient(ellipse at 50% 50%, #8dd8ff29, transparent 75%); }
.profile-skin-princess .profile-skin-preview { background: radial-gradient(ellipse at 50% 50%, #ed91c529, transparent 75%); }
.profile-skin-crystal .profile-skin-preview { background: radial-gradient(ellipse at 50% 50%, #52d8cf29, transparent 75%); }
.profile-equipped-badge { position: absolute; top: 12px; right: 12px; padding: 4px 8px; font-size: 9px; border-radius: 30px; color: #e0bf68; background: #ffcc4d10; border: 1px solid #ffcc4d22; }
.profile-skin-info { padding: 15px 17px 17px; display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.profile-skin-info h3 { font: 500 18px var(--font-display); margin: 7px 0; }
.profile-skin-info p { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 0 0 15px; flex: 1; }
.profile-skin-info .btn { width: 100%; font-size: 11px; margin-top: auto; }
.profile-skin-more { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; min-height: 200px; border: 1px dashed #ffffff14; border-radius: 18px; text-align: center; background: #ffffff02; transition: border-color .2s, background .2s; }
.profile-skin-more:hover { border-color: #ffcc4d66; background: #ffcc4d04; }
.profile-skin-more > span { font-size: 30px; line-height: 1; color: var(--accent); margin-bottom: 15px; }
.profile-skin-more strong { font: 500 18px var(--font-display); }
.profile-skin-more p { color: var(--muted); font-size: 11px; line-height: 1.6; max-width: 180px; }
.profile-skin-more small { color: var(--accent); font-size: 11px; }
.profile-deck-banner { display: flex; align-items: center; gap: 25px; padding: 28px; border: 1px solid #b497df25; border-radius: 18px; background: radial-gradient(ellipse at 0% 50%, #9471d32a, transparent 75%), #1b1c28; }
.profile-deck-banner h2 { margin: 0 0 9px; font: 500 24px/1.2 var(--font-display); }
.profile-deck-banner p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0 0 16px; }
.profile-deck-banner .btn { font-size: 11px; }
.profile-deck-art { position: relative; width: 100px; height: 120px; flex: 0 0 100px; }
.profile-deck-art i { position: absolute; inset: 8px 12px; border-radius: 10px; border: 1px solid #b594df77; background: linear-gradient(145deg, #35264e, #211b30); transform: rotate(-18deg) translateX(-9px); box-shadow: 0 5px 12px #0002; }
.profile-deck-art i:nth-child(2) { transform: rotate(12deg) translateX(12px); }
.profile-deck-art i:last-child { transform: rotate(-4deg); display: grid; place-items: center; color: #dcc187; font-size: 35px; font-style: normal; animation: profile-float 6s ease-in-out infinite; }
.profile-deck-list { display: grid; gap: 9px; }
.profile-deck-row { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #ffffff0c; border-radius: 13px; background: #1b1e26; text-align: left; transition: border-color .2s; }
.profile-deck-row:hover { border-color: #bfa2e988; }
.profile-deck-symbol { display: grid; place-items: center; width: 38px; height: 44px; border-radius: 8px; background: #ab88df15; color: #baa0dd; flex: none; }
.profile-deck-symbol.f-fire { color: #f99a6c; background: #f99a6c15; }
.profile-deck-symbol.f-water { color: #75b6e8; background: #75b6e815; }
.profile-deck-symbol.f-nature { color: #7ab98a; background: #7ab98a15; }
.profile-deck-row strong { display: block; font-size: 12px; }
.profile-deck-row small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.profile-deck-row > span:last-child { margin-left: auto; color: var(--muted); }
.profile-loading { padding: 24px; color: var(--muted); font-size: 12px; }
.profile-account-card { border: 1px solid #ffffff0d; border-radius: 17px; padding: 22px; background: #1b1e26; }
.profile-account-card dl { margin: 15px 0 0; }
.profile-account-card dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #ffffff08; }
.profile-account-card dl > div:last-child { border: 0; padding-bottom: 0; }
.profile-account-card dt { font-size: 11px; color: var(--muted); }
.profile-account-card dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.profile-verified { color: var(--green); }
.profile-account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
.profile-account-actions strong { font-size: 12px; }
.profile-account-actions p { font-size: 11px; color: var(--muted); line-height: 1.6; }
.profile-account-actions .btn { font-size: 11px; }
.profile-logout { padding: 11px 18px; border: 1px solid #ff6b6b22; border-radius: 10px; color: #df9696; font-size: 11px; background: #ff6b6b08; }
.profile-panel-enter { animation: profile-panel-in .3s cubic-bezier(.2,.8,.2,1) both; }
.player-profile :is(button, a):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@keyframes profile-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes profile-dialog-in { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes profile-panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes profile-card-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes profile-orbit { to { transform: rotate(360deg); } }
@keyframes profile-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes profile-twinkle { 0%, 100% { opacity: .4; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
@media (max-width: 820px) {
  .player-profile { grid-template-columns: 185px minmax(0, 1fr); }
  .profile-sidebar { padding-inline: 12px; }
  .profile-main { padding: 28px 22px; }
  .profile-welcome-copy { padding: 20px; }
  .profile-hero { padding-right: 12px; }
  .profile-hero-orbit { width: 145px; height: 145px; top: 14px; left: calc(50% - 80px); }
  .profile-loadout-card { flex-direction: column; align-items: flex-start; }
  .profile-wallet-card { padding: 13px; flex-wrap: wrap; }
  .profile-wallet-card small { display: none; }
  .profile-avatar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-deck-banner { padding: 20px; gap: 15px; }
  .profile-deck-art { width: 70px; flex-basis: 70px; }
  .profile-deck-banner h2 { font-size: 20px; }
}
@media (max-width: 640px) {
  .player-profile { display: flex; flex-direction: column; height: calc(100dvh - 20px); max-height: calc(100dvh - 20px); border-radius: 18px; }
  .profile-sidebar { flex: none; padding: 15px 14px 0; border-right: 0; border-bottom: 1px solid #ffffff0a; }
  .profile-brand { display: none; }
  .profile-sidebar-person { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 13px; padding: 3px 42px 18px 3px; align-items: center; }
  .profile-sidebar-portrait { grid-column: 1; grid-row: 1 / 3; width: 40px; height: 40px; margin: 0; }
  .profile-sidebar-avatar { width: 40px; height: 40px; }
  .profile-sidebar-portrait::before, .profile-sidebar-portrait::after { inset: -3px; }
  .profile-sidebar-portrait > span { width: 18px; height: 18px; font-size: 9px; border-width: 2px; right: -4px; bottom: -2px; }
  .profile-sidebar-person > strong { font-size: 17px; text-align: left; }
  .profile-sidebar-person > span { margin: 0; font-size: 10px; }
  .profile-online { display: none; }
  .profile-tabs { flex-direction: row; gap: 2px; justify-content: space-between; padding-bottom: 9px; }
  .profile-tabs button { justify-content: center; flex-direction: column; gap: 5px; width: auto; flex: 1; padding: 9px 2px; font-size: 9px; border-radius: 10px; }
  .profile-tabs button svg { width: 18px; height: 18px; }
  .profile-tabs button > small { display: none; }
  .profile-tabs button:hover { transform: none; }
  .profile-tabs button[aria-selected="true"]::before { top: auto; bottom: -1px; left: 20%; right: 20%; width: auto; height: 2px; }
  .profile-sidebar-footer { display: none; }
  .player-profile .account-close { top: 17px; right: 14px; }
  .profile-main { flex: 1; padding: 22px 17px; min-height: 0; }
  .profile-heading { margin-bottom: 18px; padding: 0; }
  .profile-heading h1 { font-size: 26px; }
  .profile-heading p { font-size: 11px; }
  .profile-eyebrow { font-size: 8px; }
  .profile-welcome { grid-template-columns: 1.4fr 1fr; min-height: 190px; border-radius: 15px; }
  .profile-welcome-copy { padding: 18px 0 18px 17px; }
  .profile-welcome h2 { font-size: 22px; }
  .profile-welcome p { font-size: 10px; line-height: 1.6; }
  .profile-welcome .btn { padding: 9px 10px; font-size: 10px; gap: 5px; }
  .profile-welcome .btn svg { display: none; }
  .profile-hero { padding: 18px 12px 18px 8px; }
  .profile-hero-orbit { width: 120px; height: 120px; top: 8px; left: calc(50% - 62px); }
  .profile-spark-one { right: 9px; top: 10px; font-size: 17px; }
  .profile-spark-two { left: 0; bottom: 22px; }
  .profile-hero-name { padding: 3px 10px; font-size: 9px; }
  .profile-wallet.account-wallet { gap: 8px; margin-top: 10px; }
  .profile-wallet-card { padding: 12px; gap: 8px; }
  .profile-wallet-card > div { gap: 6px; }
  .profile-wallet-card img { width: 24px; height: 24px; }
  .profile-wallet-card div > span { font-size: 10px; }
  .profile-wallet-card .wallet-balance { font-size: 21px; }
  .profile-section-label { margin-top: 20px; }
  .profile-section-label h2 { font-size: 16px; }
  .profile-section-label > span { font-size: 9px; }
  .profile-loadout { gap: 8px; }
  .profile-loadout-card { padding: 12px; gap: 8px; }
  .profile-loadout-card .cosmetic-preview { width: 100%; }
  .profile-loadout-copy strong { font-size: 11px; }
  .profile-avatar-grid { gap: 7px; }
  .profile-avatar-card.account-avatar-choice { padding: 12px 4px 10px; border-radius: 13px; }
  .profile-avatar-card img { width: 58px; height: 58px; }
  .profile-avatar-card strong { font-size: 11px; }
  .profile-avatar-card small { font-size: 8px; }
  .profile-choice-check { width: 14px; height: 14px; top: 5px; right: 5px; font-size: 8px; }
  .profile-avatar-save { bottom: -22px; gap: 8px; }
  .profile-avatar-save .btn { font-size: 10px; padding-inline: 12px; }
  .profile-discover { flex-direction: column; align-items: flex-start; }
  .profile-usage { padding: 11px; gap: 8px; }
  .profile-usage > span { font-size: 10px; }
  .profile-usage strong { font-size: 10px; }
  .profile-skin-grid { grid-template-columns: 1fr; }
  .profile-skin-info { height: auto; }
  .profile-skin-more { min-height: 150px; }
  .profile-deck-banner { padding: 20px 15px; gap: 10px; }
  .profile-deck-art { flex-basis: 65px; height: 110px; }
  .profile-deck-banner h2 { font-size: 18px; }
  .profile-deck-banner p { font-size: 10px; }
  .profile-deck-banner .btn { font-size: 10px; padding-inline: 11px; }
  .profile-account-card { padding: 17px; }
  .profile-account-card dl > div { grid-template-columns: 80px minmax(0, 1fr); }
  .profile-account-card dd { font-size: 11px; }
  .profile-account-actions { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-backdrop, .player-profile, .player-profile *, .player-profile *::before, .player-profile *::after { animation: none !important; transition: none !important; }
}

.profile-family-caption { display:flex; align-items:center; justify-content:center; gap:12px; color:#d7b8fa; background:#ba85ef12; border-radius:20px; padding:4px 10px; margin-top:3px; font-size:10px; }
.profile-avatar-card.account-avatar-choice.is-legendary { border-color:#d9b2665e; background:radial-gradient(ellipse at 50% 0,#9c5ab324,transparent 75%),#211b26; }
.profile-avatar-card.is-legendary::before { content:'✦'; position:absolute; top:8px; left:10px; font-size:13px; color:#efc777; }
.profile-avatar-card.is-legendary strong,.profile-avatar-card.is-legendary small { color:#e9ca8c; }
.profile-avatar-card.is-legendary:has(img[src*="/aureon.webp"]) { background:radial-gradient(ellipse at 50% 0,#38bc8d24,transparent 75%),#18251f; }
.profile-family-caption b { font-size:14px; }
.profile-avatar-skins { grid-column:1 / -1; min-width:0; padding:18px; border:1px solid #bd95e43d; border-radius:18px; background:radial-gradient(ellipse at 50% 0,#613f811c,transparent 70%),#12151c; animation:profile-panel-in .25s ease both; }
.profile-avatar-skins[hidden] { display:none; }
.profile-avatar-skins>header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.profile-avatar-skins h3 { font:500 20px var(--font-display); margin:5px 0; }
.profile-avatar-skins header p { font-size:10px; color:var(--muted); margin:0; line-height:1.7; }
.profile-avatar-skins-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.profile-avatar-skins-grid .profile-avatar-card { min-width:0; }
.profile-avatar-skins-grid strong { overflow-wrap:anywhere; text-align:center; }
.profile-avatar-locked { display:flex; flex-direction:column; align-items:center; gap:6px; position:relative; padding:15px 8px 12px; border:1px solid #ffffff09; background:#1a1d25; border-radius:16px; }
.profile-avatar-locked strong { font-size:12px; font-weight:600; }
.profile-avatar-locked small { font-size:9px; color:var(--muted); }
.profile-avatar-locked .profile-link { font-size:10px; margin-top:auto; padding-top:4px; }
.profile-locked-portrait { position:relative; margin-bottom:2px; }
.profile-locked-portrait img { display:block; width:70px; height:70px; border-radius:50%; filter:grayscale(.8) brightness(.58); }
.profile-avatar-lock { position:absolute; right:-4px; bottom:0; display:grid; place-items:center; width:27px; height:27px; border-radius:50%; border:1px solid #cba6f15c; background:#30273e; color:#dec4fc; }
.profile-avatar-skins-grid .profile-avatar-card.account-avatar-choice { animation:none; }
@media(max-width:820px) { .profile-avatar-skins-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .profile-avatar-skins { padding:12px; } .profile-avatar-skins header .profile-link { font-size:10px; } .profile-avatar-skins h3 { font-size:18px; } .profile-avatar-skins-grid { gap:8px; } .profile-locked-portrait img { width:58px; height:58px; } }
@media(prefers-reduced-motion:reduce) { .profile-avatar-skins { animation:none; } }

/* Vouchery: a ticket with a perforated stub, a reward reveal and the redemption history. */
.voucher-ticket { position: relative; display: grid; grid-template-columns: 1fr 92px; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(120deg, #2a2335, #1f2230 55%, #262019); border: 1px solid #ffcc4d2b; box-shadow: 0 14px 34px #0006, inset 0 1px 0 #ffffff0d; overflow: hidden; }
.voucher-ticket::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 12% 0, #ffcc4d1f, transparent 40%), repeating-linear-gradient(135deg, transparent 0 22px, #ffffff04 22px 23px); }
.voucher-ticket-main { position: relative; padding: 22px 24px 14px; min-width: 0; }
.voucher-ticket-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-left: 2px dashed #ffcc4d40; background: #ffcc4d0d; }
.voucher-ticket-stub::before, .voucher-ticket-stub::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg, #121318); border: 1px solid #ffcc4d2b; }
.voucher-ticket-stub::before { top: -12px; }
.voucher-ticket-stub::after { bottom: -12px; }
.voucher-ticket-stub img { filter: drop-shadow(0 4px 8px #0008); animation: voucher-float 3.2s ease-in-out infinite; }
.voucher-ticket-stub img + img { animation-delay: -1.6s; }
@keyframes voucher-float { 50% { transform: translateY(-4px) rotate(-6deg); } }
.voucher-field { display: flex; gap: 10px; margin-top: 9px; }
.voucher-field input { flex: 1; min-width: 0; padding: 13px 15px; border-radius: 12px; border: 1px solid #ffffff1c; background: #0f1016; color: var(--text); font: 600 18px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; transition: border-color .2s, box-shadow .2s; }
.voucher-field input::placeholder { color: #5b6170; letter-spacing: .06em; text-transform: none; font-weight: 400; font-size: 14px; }
.voucher-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #ffcc4d26; }
.voucher-field input[aria-invalid="true"] { border-color: #ff6b6b; animation: voucher-shake .4s ease; }
@keyframes voucher-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.voucher-field .btn { flex: none; padding: 0 22px; }
.voucher-error { min-height: 18px; margin: 8px 0 0; color: #ff8a8a; font-size: 12px; }
.voucher-reward { position: relative; overflow: hidden; margin: 0 0 6px; padding: 22px; text-align: center; border-radius: 18px; border: 1px solid #ffcc4d4d; background: radial-gradient(circle at 50% 0, #ffcc4d2e, #1b1e26 70%); animation: voucher-pop .55s cubic-bezier(.2, 1.4, .4, 1) both; }
.voucher-reward h2 { margin: 6px 0 14px; font: 600 24px var(--font-display); }
@keyframes voucher-pop { from { opacity: 0; transform: scale(.85) translateY(10px); } }
.voucher-reward-coins { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.voucher-reward-coin { display: grid; justify-items: center; gap: 2px; min-width: 120px; padding: 12px 16px; border-radius: 14px; background: #0f1016b3; border: 1px solid #ffffff12; animation: voucher-coin .7s calc(.2s + var(--d) * .15s) cubic-bezier(.2, 1.5, .4, 1) both; }
.voucher-reward-coin img { filter: drop-shadow(0 0 14px #ffcc4d90); animation: voucher-spin 1s calc(.2s + var(--d) * .15s) ease-out both; }
.voucher-reward-coin.crystals img { filter: drop-shadow(0 0 14px #9b7bff); }
.voucher-reward-coin strong { font: 600 26px var(--font-display); color: var(--accent); }
.voucher-reward-coin.crystals strong { color: #c5b2ff; }
.voucher-reward-coin span { font-size: 11px; color: var(--muted); }
@keyframes voucher-coin { from { opacity: 0; transform: translateY(26px) scale(.6); } }
@keyframes voucher-spin { from { transform: rotateY(540deg) scale(.4); } }
.voucher-reward-burst { position: absolute; left: 50%; top: 58%; pointer-events: none; }
.voucher-reward-burst i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); opacity: 0; animation: voucher-burst 1s .25s ease-out both; --a: calc(var(--i) * 30deg); }
.voucher-reward-burst i:nth-child(even) { background: #b79cff; box-shadow: 0 0 10px #9b7bff; }
@keyframes voucher-burst { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(160px) scale(.3); } }
.voucher-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.voucher-history li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 12px; background: #1b1e26; border: 1px solid #ffffff09; }
.voucher-history code { overflow: hidden; text-overflow: ellipsis; font: 600 13px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--text); }
.voucher-history time { font-size: 11px; color: var(--faint); }
.voucher-history li > span { display: flex; gap: 10px; }
.voucher-coin { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13px; color: var(--accent); }
.voucher-coin.crystals { color: #c5b2ff; }
.voucher-note { color: var(--muted); font-size: 12px; line-height: 1.6; }
.voucher-retry { background: none; border: 0; padding: 0; cursor: pointer; }
@media (max-width: 640px) {
  .voucher-ticket { grid-template-columns: 1fr; }
  .voucher-ticket-stub { display: none; }
  .voucher-ticket-main { padding: 18px 16px 10px; }
  .voucher-field { flex-direction: column; }
  .voucher-field .btn { padding: 12px; }
  .voucher-history li { grid-template-columns: 1fr auto; }
  .voucher-history time { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .voucher-ticket-stub img, .voucher-reward, .voucher-reward-coin, .voucher-reward-coin img, .voucher-reward-burst i, .voucher-field input[aria-invalid="true"] { animation: none; }
}
/* Vouchery: rewards other than Iskry/Kryształy (Runy, paczki, skrzynie, karty, VIP). */
.voucher-reward-other { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.voucher-reward-other li { padding: 8px 14px; border-radius: 12px; background: #0f1016b3; border: 1px solid #ffffff12; font-weight: 600; font-size: 14px; color: var(--accent); }
.voucher-history-other { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.voucher-history-other li { font-size: 12px; font-weight: 600; color: var(--accent); }
