/* Konto: rozwijana nawigacja i podgląd skina z serwera. */
.account-delivery { text-align: center; padding-top: 2px; }
#modal:has(.account-delivery) .dialog-close:focus-visible { outline: 1px solid #c7d7cc66; outline-offset: 1px; border-radius: 7px; background: #d5e9dd08; }
.delivery-seal { position: relative; width: 108px; height: 108px; margin: 0 auto 18px; display: grid; place-items: center; }
.delivery-seal::before { content: ''; position: absolute; inset: -17px; border-radius: 50%; background: radial-gradient(circle,#7ce8a614,transparent 68%); opacity: 0; animation: delivery-halo 1.2s .12s ease-out forwards; }
.delivery-seal > span { position: absolute; inset: 11px; border: 1px solid #82dfaa14; border-radius: 50%; background: linear-gradient(145deg,#23362b88,#18252a44); transform: scale(.86); opacity: 0; animation: delivery-seal-in .65s cubic-bezier(.2,.8,.2,1) forwards; }
.delivery-seal svg { position: relative; width: 108px; height: 108px; overflow: visible; }
.delivery-ring-track { stroke: #89b7a01c; stroke-width: 1.2; }
.delivery-ring { stroke: #80dca5; stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 48px 48px; animation: delivery-stroke .85s .1s cubic-bezier(.4,0,.2,1) forwards; }
.delivery-tick { stroke: #96edb9; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: delivery-stroke .48s .42s cubic-bezier(.22,.7,.3,1) forwards; }
.delivery-eyebrow { display: block; color: #9bd2af; font-size: 9px; font-weight: 700; line-height: 1.5; letter-spacing: 1.8px; }
.account-delivery h2 { color: #f5f4ed; font-size: clamp(25px,4vw,30px); line-height: 1.17; letter-spacing: -.65px; margin: 12px 0 14px; }
.delivery-intro { color: #aebbc0; font-size: 12px; line-height: 1.85; margin: 0 0 22px; }
.delivery-intro strong { color: #e6ece5; font-weight: 600; }
.delivery-credit { display: grid; justify-items: center; gap: 8px; padding: 19px 14px; border: 1px solid #d8ba4d26; border-radius: 11px; background: radial-gradient(ellipse at 50% 100%,#c5a74212,transparent 85%),#111b20; animation: delivery-content-in .6s .18s both; }
.delivery-credit > span { color: #aab7b8; font-size: 11px; }
.delivery-credit > strong { color: #ffdb67; font-size: clamp(31px,6vw,39px); line-height: 1.1; letter-spacing: -1.1px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.delivery-credit > small { color: #cabf96; font-size: 11px; }
.delivery-receipt { display: grid; gap: 7px; padding: 17px 0 21px; animation: delivery-content-in .6s .25s both; }
.delivery-receipt > span { color: #85969e; font-size: 10px; }
.delivery-receipt code { color: #aebbc0; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; white-space: normal; }
.account-delivery .delivery-profile { width: 100%; margin: 0; min-height: 46px; animation: delivery-content-in .6s .3s both; }
.account-delivery .delivery-history { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; padding: 5px 8px; color: #b4bebb; font-size: 11px; animation: delivery-content-in .6s .35s both; }
.delivery-history > .icon { width: 13px; height: 13px; transition: transform .2s; }
.delivery-history:hover { color: #ffdc69; }
.delivery-history:hover > .icon { transform: translateX(3px); }
@keyframes delivery-stroke { to { stroke-dashoffset: 0; } }
@keyframes delivery-seal-in { to { opacity: 1; transform: scale(1); } }
@keyframes delivery-halo { 0% { opacity: 0; transform: scale(.8); } 65% { opacity: 1; transform: scale(1.08); } 100% { opacity: .75; transform: scale(1); } }
@keyframes delivery-content-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media(prefers-reduced-motion:reduce) { .account-delivery *, .account-delivery *::before { animation: none !important; }.delivery-seal::before,.delivery-seal > span { opacity: 1; transform: none; }.delivery-ring,.delivery-tick { stroke-dashoffset: 0; } }
.account-nav { position: relative; }
.account-dropdown[hidden],.account-dropdown [hidden] { display: none !important; }
.account-trigger-avatar { width: 25px; height: 25px; display: inline-flex !important; align-items: center; justify-content: center; flex-shrink: 0; }
.account-trigger-avatar > .icon { width: 23px; height: 23px; }
.account-trigger-avatar > .guest-symbol { width: 25px; height: 25px; }
.header .profile-button { gap: 7px; min-height: 40px; padding: 4px 5px; background: transparent; border: 0; box-shadow: none; transition: color .24s ease; }
.header .profile-button:is(:hover,:active,:focus-visible) { background: transparent; box-shadow: none; }
.header .profile-button .account-trigger-identity { display: grid; text-align: left; gap: 1px; min-width: 0; }
.account-trigger-identity > small { color: #b7b5a1; font-size: 8px; line-height: 1.3; letter-spacing: .1px; transition: color .25s,text-shadow .25s; }
.header .profile-button #header-nickname { display: block; color: #f8f0dc; font-size: 11px; font-weight: 700; line-height: 1.35; }
.profile-button.is-signed-in .account-trigger-identity > small { color: #80dba0; }
.profile-button:is(:hover,:focus-visible) .account-trigger-identity > small { color: #e2d5a0; text-shadow: 0 0 12px #e1c67980; }
.profile-button.is-signed-in:is(:hover,:focus-visible) .account-trigger-identity > small { color: #a6f7bf; text-shadow: 0 0 12px #6ee99f99; }
[data-account-session][hidden] { display: none !important; }
.header .profile-button.is-signed-in { background: transparent; border-color: transparent; box-shadow: none; }
.header .profile-button.is-signed-in:hover { background: transparent; }
.profile-button.is-signed-in .account-trigger-avatar { position: relative; width: 25px; height: 25px; border-radius: 4px; background: transparent; box-shadow: none; }
.profile-button.is-signed-in .account-trigger-avatar::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 5px; height: 5px; border-radius: 50%; border: 1.5px solid #1c302c; background: #68df91; box-sizing: content-box; }
.header .profile-button .account-chevron { display: inline-flex; flex: 0 0 10px; transition: transform .36s cubic-bezier(.22,1,.36,1); }
.account-chevron > .icon { width: 10px; height: 10px; }
.profile-button[aria-expanded="true"] .account-chevron { transform: rotate(180deg); }
.account-dropdown { position: absolute; z-index: 80; top: calc(100% + 14px); right: 0; width: 310px; padding: 16px; border: 1px solid #36434b; border-radius: 12px; background: linear-gradient(155deg,#182229,#10181f 78%); box-shadow: 0 22px 55px #0009,0 4px 12px #0004,inset 0 1px 0 #e0edce0a; transform-origin: top right; text-align: left; }
.account-dropdown::before { content: ''; position: absolute; top: -5px; right: 29px; width: 8px; height: 8px; border-top: 1px solid #39464b; border-left: 1px solid #39464b; background: #182229; transform: rotate(45deg); }
.account-dropdown-top { display: flex; align-items: center; gap: 12px; padding: 0 0 16px; }
.account-dropdown-top > div { flex: 1; min-width: 0; }
.account-dropdown > [data-account-member],.account-dropdown-guest { max-height: calc(100dvh - 210px); padding-bottom: 8px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; }
.account-dropdown > [data-account-member]::-webkit-scrollbar,.account-dropdown-guest::-webkit-scrollbar { display: none; }
.account-refresh { display: inline-grid; place-items: center; align-self: flex-start; flex: 0 0 28px; width: 28px; height: 28px; margin: 0; padding: 6px; border: 0; border-radius: 6px; background: transparent; color: #bec9c9; transition: background .2s,color .2s; }
.account-refresh > .icon { width: 14px; height: 14px; }
.account-refresh:is(:hover,:focus-visible) { background: #d9c77e12; color: #f2d479; outline: none; box-shadow: inset 0 0 0 1px #d9c77e38; }
.account-refresh[aria-busy="true"] { opacity: .8; cursor: progress; }
.account-refresh[aria-busy="true"] > .icon { animation: account-refresh-turn 1.15s linear infinite; }
.account-menu-avatar { width: 56px; height: 56px; display: grid; place-items: center; flex-shrink: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.account-menu-avatar > .icon { width: 36px; height: 36px; }
.account-dropdown-top small { display: block; margin: 0 0 4px; font-size: 8px; letter-spacing: 1.4px; color: #a5afaa; font-weight: 700; }
.account-dropdown-top strong { display: block; font-size: 18px; color: #f7f1de; line-height: 1.25; overflow-wrap: anywhere; }
.account-dropdown-top [data-menu-rank] { display: inline-flex; max-width: 100%; margin-top: 6px; padding: 3px 7px; border-radius: 4px; background: #2c3027; font-size: 9px; line-height: 1.4; color: #e0cf96; overflow-wrap: anywhere; }
.account-dropdown-balance { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px; border: 1px solid #c7b47126; border-radius: 8px; background: linear-gradient(120deg,#282d26,#1b272a); }
.account-dropdown-balance span { font-size: 10px; color: #bdc6c1; }
.account-dropdown-balance strong { font-size: 22px; line-height: 1.4; color: #f2d479; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.account-dropdown-links { display: grid; gap: 7px; margin: 12px 0; }
.account-dropdown-links button { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 54px; padding: 10px; background: #19232b; border: 1px solid #35434a55; border-radius: 7px; color: #e1e6e3; text-align: left; font-size: 11px; font-weight: 600; transition: background .18s,border-color .18s,color .18s; }
.account-dropdown-links button > span { min-width: 0; overflow-wrap: anywhere; }
.account-dropdown-links button > .icon { width: 27px; height: 27px; }
.account-dropdown-links button > .icon:last-child:not(:first-child) { margin-left: auto; width: 14px; height: 14px; color: #b2ab83; }
.account-dropdown-links button small { display: block; margin-top: 3px; color: #9aaab2; font-size: 9px; font-weight: 400; }
.account-dropdown-links button:is(:hover,:focus-visible) { background: #25302f; border-color: #cfbc7455; color: #ffedba; outline: none; }
.account-dropdown-links button:disabled { opacity: .5; }
.account-dropdown-links button > .icon:first-child { transition: transform .24s ease; }
.account-dropdown-links button:is(:hover,:focus-visible) > .icon:first-child { transform: translateY(-2px); }
.account-dropdown-links button > .icon:last-child:not(:first-child),.account-dropdown-logout > .icon { transition: transform .24s ease,color .24s ease; }
.account-dropdown-links button:is(:hover,:focus-visible) > .icon:last-child:not(:first-child),.account-dropdown-logout:is(:hover,:focus-visible) > .icon { transform: translateX(3px); color: #f2d479; }
.profile-button[aria-expanded="true"] + .account-dropdown .account-dropdown-top { animation: account-option-in .38s .04s both; }
.profile-button[aria-expanded="true"] + .account-dropdown .account-dropdown-balance { animation: account-option-in .38s .07s both; }
.profile-button[aria-expanded="true"] + .account-dropdown .account-dropdown-links button { animation: account-option-in .38s .1s both; }
.profile-button[aria-expanded="true"] + .account-dropdown .account-dropdown-links button:nth-child(2) { animation-delay: .14s; }
.profile-button[aria-expanded="true"] + .account-dropdown :is(.account-dropdown-logout,.account-dropdown-guest) { animation: account-option-in .38s .22s both; }
@keyframes account-option-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes account-refresh-turn { to { transform: rotate(360deg); } }
.account-dropdown-logout { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 3px 2px; border: 0; border-top: 1px solid #adb8ba18; background: transparent; color: #aab4b6; font-size: 10px; transition: color .18s; }
.account-dropdown-logout .icon { width: 13px; height: 13px; }
.account-dropdown-logout:hover { color: #efd6b7; }
.account-dropdown-guest { padding-top: 13px; border-top: 1px solid #adb8ba18; }
.account-dropdown-guest p { margin: 0 0 15px; font-size: 11px; line-height: 1.75; color: #aeb9c4; }
.account-dropdown-guest .button { width: 100%; min-height: 41px; font-size: 11px; justify-content: center; gap: 12px; }
.skin-stage { display: inline-grid; position: relative; place-items: center; width: 100%; height: 100%; }
.skin-stage canvas { display: block; position: relative; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s ease; }
.skin-stage canvas.is-ready { opacity: 1; }
.skin-placeholder { position: absolute; inset: 0; display: grid; place-items: center; opacity: .45; transition: opacity .2s; }
.skin-placeholder > .icon { width: 45%; height: 45%; }
.skin-stage.has-skin .skin-placeholder { opacity: 0; }
.account-trigger-avatar .skin-stage { width: 25px; height: 25px; }
.account-trigger-avatar canvas[data-skin="head"],.account-menu-avatar canvas[data-skin="head"] { filter: drop-shadow(0 2px 3px #0004); }
.header .profile-button .account-trigger-avatar .skin-stage { display: inline-grid; }
.header .profile-button .account-trigger-avatar .skin-placeholder { display: grid; }
.account-menu-avatar .skin-stage { width: 56px; height: 56px; }
.account-profile-hero { display: grid; grid-template-columns: 128px minmax(0,1fr); align-items: center; gap: 22px; margin: -4px 0 24px; }
.skin-profile { height: 196px; width: 136px; border: 0; border-radius: 0; background: transparent; }
.skin-profile::before,.skin-home::before { content: ''; position: absolute; left: 22%; right: 22%; bottom: 7%; height: 7px; border-radius: 50%; background: #0006; filter: blur(5px); }
.skin-profile canvas { filter: drop-shadow(0 5px 4px #0006); }
.account-profile-identity h2 { margin: 8px 0 12px; font-size: clamp(24px,5vw,31px); line-height: 1.15; overflow-wrap: anywhere; }
.account-profile-eyebrow { display: block; color: #bcb085; font-size: 8px; font-weight: 700; letter-spacing: 2px; }
.account-rank-badge { display: inline-flex; align-items: center; max-width: 100%; padding: 5px 10px; border: 1px solid #cab46c38; border-radius: 6px; background: #d4b6590c; color: #f4d783; font-size: 11px; overflow-wrap: anywhere; }
.account-profile-identity p { margin-top: 12px; color: #8fa19f; font-size: 10px; line-height: 1.6; }
.avatar-stage:has(.skin-home) { overflow: visible; border: 0; background: transparent; box-shadow: none; }
.skin-home { width: 100%; height: 100%; }
dialog:has(.account-profile-hero) { border-color: #36434b; background: linear-gradient(155deg,#182229,#10181f 78%); box-shadow: 0 24px 80px #0008,inset 0 1px 0 #e0edce0a; }
.account-profile-hero { grid-template-columns: 136px minmax(0,1fr); }
dialog:has(.account-profile-hero) .account-summary > div { border-color: #35434a70; background: #ffffff03; }
dialog:has(.account-profile-hero) .account-summary strong { font-variant-numeric: tabular-nums; }
.profile-panel { background: linear-gradient(155deg,#182229,#10181f 78%); border-color: #36434b; }
@media(max-width:600px) { .header .profile-button { min-height: 44px; } .account-dropdown { width: min(310px,calc(100vw - 32px)); right: -3px; padding: 16px; } .account-dropdown-links button { min-height: 45px; } }
@media(max-width:380px) { .header .profile-button .account-trigger-avatar { display: inline-flex !important; } .account-dropdown { right: -45px; } .account-dropdown::before { right: 58px; } .account-profile-hero { grid-template-columns: 86px minmax(0,1fr); gap: 16px; } .skin-profile { width: 86px; height: 142px; } .account-profile-identity h2 { font-size: 24px; } }
@media(prefers-reduced-motion:reduce) { .header .profile-button .account-chevron,.skin-stage canvas,.skin-placeholder,.account-dropdown-links button > .icon,.account-dropdown-logout > .icon { transition: none; } .account-dropdown * { animation: none !important; } }

/* Czytelne konto po zalogowaniu; bez dodatkowej ramki przycisku. */
.header .profile-button.is-signed-in { min-height: 44px; gap: 9px; padding: 5px; }
.header .profile-button.is-signed-in #header-nickname {
  color: #fff6df; font-size: 14px; font-weight: 750; line-height: 1.35;
  text-shadow: 0 2px 5px #000d,0 0 14px #ffd04c33;
}
.account-admin-link{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;margin-top:5px;color:#f2cf62;font-size:12px;font-weight:650;text-decoration:none;border-top:1px solid rgba(255,255,255,.07);transition:color .2s ease}
.account-admin-link:hover{color:#ffe9a1}.account-admin-link[hidden]{display:none!important}
.header .profile-button.is-signed-in .account-trigger-identity { gap: 2px; }
.header .profile-button.is-signed-in .account-trigger-identity > small {
  color: #8cf2a8; font-size: 10.5px; font-weight: 600; line-height: 1.35;
  text-shadow: 0 1px 4px #000d,0 0 10px #4ce88466;
}
.header .profile-button.is-signed-in .account-trigger-avatar,
.header .profile-button.is-signed-in .account-trigger-avatar .skin-stage {
  display: inline-flex !important; width: 32px; height: 32px;
}
.header .profile-button.is-signed-in .account-trigger-avatar > .icon { width: 30px; height: 30px; }
.header .profile-button.is-signed-in .account-trigger-avatar canvas[data-skin="head"] {
  filter: brightness(1.2) drop-shadow(0 2px 4px #0009);
}
.header .profile-button.is-signed-in .account-trigger-avatar::after {
  right: -1px; bottom: 0; width: 6px; height: 6px; border-color: #15352a;
  background: #67f29b; box-shadow: 0 0 8px #4ce98788;
}
.header .profile-button.is-signed-in .account-chevron { color: #eee7cd; }
.header .profile-button.is-signed-in:is(:hover,:focus-visible) #header-nickname { color: #ffdf82; }
.header .profile-button.is-signed-in:is(:hover,:focus-visible) .account-trigger-identity > small { color: #b0ffca; }
@media(max-width:600px) {
  .header .profile-button.is-signed-in { gap: 7px; }
  .header .header-actions .profile-button.is-signed-in #header-nickname { font-size: 13px; }
  .header .profile-button.is-signed-in .account-trigger-identity > small { font-size: 10px; }
  .header .profile-button.is-signed-in .account-trigger-avatar,
  .header .profile-button.is-signed-in .account-trigger-avatar .skin-stage { width: 28px; height: 28px; }
  .header .profile-button.is-signed-in .account-trigger-avatar > .icon { width: 27px; height: 27px; }
}

/* Komunikat po powrocie z logowania Discord. */
.discord-login-notice{display:flex;align-items:flex-start;gap:14px;margin:22px 0 17px;padding:17px 18px;border:1px solid rgba(235,192,55,.28);border-radius:10px;background:linear-gradient(135deg,rgba(184,145,35,.09),rgba(184,145,35,.025))}.discord-login-notice-icon{display:flex;flex-shrink:0;margin-top:2px;color:#e8c15b}.discord-login-notice-icon .icon{width:21px;height:21px}.discord-login-notice strong{display:block;color:#f1d387;font-size:13px;line-height:1.65;font-weight:650}.discord-login-notice p{margin:8px 0 0;color:#b8c5ce;font-size:12px;line-height:1.85}.discord-login-address{margin:0 0 10px;color:#a7b7c2;font-size:12px;line-height:1.7}.discord-login-address strong{color:#e2e9ed;font-weight:650}.discord-login-hint{margin:0 0 22px;color:#96a8b5;font-size:11px;line-height:1.8}.discord-login-actions{display:grid;gap:16px;margin-top:21px}.discord-login-actions .button{width:100%;gap:10px}.discord-login-help{justify-self:center;font-size:12px}.discord-login-view [data-discord-feedback]:empty{display:none}.discord-login-view [data-discord-feedback] .form-notice{margin-top:14px}@media(max-width:480px){.discord-login-notice{gap:11px;padding:15px}.discord-login-notice strong{font-size:12px}.discord-login-notice p{font-size:11px}.discord-login-actions .button{font-size:11px;padding-inline:13px}}
