.hero-profile-trigger{cursor:pointer;border-radius:16px}.hero-profile-trigger:focus-visible{outline:3px solid #f0d18c;outline-offset:5px}.hero-name-edit{min-width:44px;min-height:44px;margin-left:4px;padding:5px;border:0;background:transparent;color:#e5bd72;font-size:20px}
dialog.hero-profile{box-sizing:border-box;position:fixed;inset:0;margin:0 auto!important;width:100%;max-width:1400px!important;height:100dvh;max-height:100dvh!important;padding:18px 24px 100px!important;border:1px solid #a78046;border-radius:0;background:radial-gradient(ellipse at 48% 35%,#4b3220,#21150f 65%,#120e0b);color:#f5ead5;overflow:auto}
.hero-profile .dialog-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px}.hero-profile h1{font-size:25px;margin:0}.hero-profile h2{font-size:20px;margin:0 0 12px}.hero-profile h3{font-size:16px;margin:20px 0 10px}.hero-profile button,.hero-profile summary,.hero-profile input[type=checkbox]{min-height:44px}.hero-profile button:focus-visible,.hero-profile summary:focus-visible,.hero-profile input:focus-visible{outline:3px solid #89d2db;outline-offset:3px}.hero-profile [hidden]{display:none!important}.hero-profile #profile-close{min-width:44px}.hero-profile #profile-status{min-height:24px;margin:8px 0;color:#e9d5a9}
.hero-profile .profile-summary{display:grid;grid-template-columns:80px minmax(0,1fr) auto;align-items:center;gap:14px;margin:0 0 12px;padding:12px 16px;background:#18100ccc;border:1px solid #a9874a55;border-radius:16px}.hero-profile #profile-name{margin:0;font-size:23px}.hero-profile #my-email{margin:4px 0;color:#d1bfa4;font:14px system-ui;overflow-wrap:anywhere}.hero-profile .profile-picture{width:80px;height:80px;position:relative;overflow:hidden;flex:none;border-radius:50%;border:2px solid #caa360;background:radial-gradient(#5e4431,#16100d)}.hero-profile .profile-picture img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.hero-profile .profile-picture:has(img){font-size:0}.hero-profile #profile-photo{max-width:250px}.hero-profile .hero-photo-controls{grid-column:2/-1}.hero-profile .profile-photo-actions{margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.hero-profile #photo-help{font-size:11px;margin:6px 0 0}.hero-profile .upload-button::before{content:'▣ ';color:#e1bb73}.hero-profile .hero-identity-controls{align-self:start}.hero-profile .hero-edit-name{font-size:12px;padding:5px 10px}
.hero-tabs{display:flex;border-bottom:1px solid #947348;margin:12px 0 0;gap:6px}.hero-tabs button{padding:12px 22px;border-radius:12px 12px 0 0;background:#241a14;border:1px solid transparent;color:#c9b89b}.hero-tabs [aria-selected=true]{background:linear-gradient(#86643b,#4a3320);border-color:#ba945c;color:#fff3d3;box-shadow:inset 0 2px #e0ba75}
.hero-layout{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(300px,1.1fr) minmax(300px,1.15fr);gap:18px;align-items:start}.hero-layout>aside,.hero-layout>section{min-width:0}.hero-progress-column,.hero-inventory{padding:18px;background:#160e0ac9;border:1px solid #8a693d66;border-radius:16px}.hero-rank{color:#d6b678;font:13px system-ui}.hero-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.hero-stat-grid>div{background:#39271b;border:1px solid #a17b4144;border-radius:10px;padding:10px}.hero-stat-grid dt{font:12px system-ui;color:#cbb99b}.hero-stat-grid dd{margin:4px 0 0;font:bold 22px Georgia;color:#f7dfaa}.hero-goal{display:grid;grid-template-columns:1fr auto;gap:6px;margin:12px 0;font:13px system-ui}.hero-goal small{color:#e3c28c}.hero-goal progress{grid-column:1/-1;width:100%;height:8px;accent-color:#d8b75e}.hero-game-badges{display:flex;flex-wrap:wrap;gap:6px}.hero-game-badges span{padding:7px 9px;border:1px solid #8c784e;border-radius:6px;font:12px system-ui;color:#dccba7;background:#3b2d22}.hero-goals>summary{cursor:pointer;font-weight:bold;padding-top:14px}.hero-fine{font:12px/1.55 system-ui;color:#c0af93;margin:12px 0 0}
.hero-showcase{text-align:center;position:relative;padding:18px 4px;border-radius:24px;background:radial-gradient(ellipse at 50% 44%,#c9973b26,transparent 65%)}.hero-showcase>h2{color:#d9b777;letter-spacing:2px;text-transform:uppercase;font:12px system-ui}.hero-warrior{width:100%;max-width:350px;margin:auto;transform-origin:50% 90%}.hero-warrior>svg{display:block;width:100%;height:auto;max-height:480px}.hero-warrior .hero-figure{animation:hero-breathe 5s ease-in-out infinite;transform-origin:150px 414px}.hero-warrior .hero-eyes{animation:hero-blink 7s infinite;transform-origin:150px 67px}.hero-ready .hero-weapon{transform:rotate(-8deg);transform-origin:72px 244px}.hero-ready .hero-shield{transform:translate(-6px,-6px)}.hero-weapon,.hero-shield{transition:transform .3s ease}.hero-pose{margin:4px auto 10px;padding:6px 16px;background:#39261b;color:#dcca9e;border:1px solid #92723f}.hero-slots{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.hero-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:6px 3px;background:#201610;border:1px solid #84643b;border-radius:8px;color:#e8d2ad}.hero-slot svg{width:28px;height:28px}.hero-slot span{font:10px system-ui}.hero-slot small{font:10px system-ui;color:#bca47b}
.hero-gender,.hero-categories{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.hero-gender button{flex:1}.hero-inventory button{color:#e5d6b7;background:#35261c;border:1px solid #866b43;border-radius:9px;padding:8px 10px}.hero-inventory [aria-pressed=true]{border-color:#edd18b;background:#614626;box-shadow:inset 0 0 0 1px #c7a25e}.hero-categories button{flex:1 1 45%;font-size:12px}.hero-item-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:540px;overflow:auto;padding:3px}.hero-item-grid .hero-item{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px;min-height:154px;text-align:center}.hero-item svg{width:48px;height:48px;filter:drop-shadow(0 3px 4px #0008)}.hero-item strong{font:600 13px system-ui}.hero-item span{font:12px system-ui}.hero-item small{font:11px system-ui;color:#c1ac87}.hero-item em{font:10px system-ui;text-transform:uppercase;color:#c2deba}.hero-item.locked{opacity:.48;cursor:not-allowed;filter:saturate(.45)}.hero-item.locked em{color:#ddc4a5}.hero-inventory>button{margin-top:12px;width:100%}
.hero-account{max-width:700px;margin:20px auto;padding:20px;border:1px solid #80603b;border-radius:16px;background:#1c130e}.hero-account>p{font-size:13px;color:#c8b89b}.hero-account #username-form{margin:18px 0}.hero-account #signout{display:block;width:100%;min-height:48px}.hero-alerts{margin-top:20px;padding:14px;border:1px solid #80603b;border-radius:10px}.hero-alerts legend{padding:0 8px;color:#e2c895}.hero-alerts>label{display:flex;gap:10px;align-items:center;padding:3px 0}.hero-alerts input{width:20px;min-height:20px!important;accent-color:#d5ad65}.hero-footer{position:sticky;bottom:72px;z-index:4;display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:18px;padding:12px;background:#211710f5;border:1px solid #a07a48;border-radius:12px;backdrop-filter:blur(10px)}.hero-footer>span{margin-right:auto;font:12px system-ui;color:#d3bc92}.hero-footer button{padding:10px 16px;border-radius:9px}.hero-footer button:disabled{opacity:.45}.hero-profile[aria-busy=true] .hero-layout{pointer-events:none}
body[data-notify-messages=off] .home-unread,body[data-notify-messages=off] #chat-badge,body[data-notify-friends=off] #friend-badge{display:none!important}body[data-notify-challenges=off] .home-nav[data-notice]::before,body[data-notify-challenges=off] .home-nav button[data-invitation-count]::after{display:none!important}
@keyframes hero-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.006,1.012)}}@keyframes hero-blink{0%,43%,46%,100%{transform:scaleY(1)}44.5%{transform:scaleY(.08)}}
@media(max-width:1050px){.hero-layout{grid-template-columns:minmax(200px,.8fr) minmax(260px,1fr)}.hero-inventory{grid-column:1/-1}.hero-item-grid{grid-template-columns:repeat(5,minmax(0,1fr));max-height:none}.hero-categories button{flex:1}.hero-inventory .hero-item span{font-size:11px}}
@media(max-width:700px){dialog.hero-profile{padding:10px 10px 100px!important}.hero-profile .profile-summary{grid-template-columns:60px minmax(0,1fr);padding:10px;gap:10px}.hero-profile .profile-picture{width:60px;height:60px}.hero-profile #profile-name{font-size:21px}.hero-profile #my-email{font-size:12px}.hero-profile .hero-identity-controls{grid-column:1/-1}.hero-profile .hero-photo-controls{grid-column:1/-1}.hero-profile #profile-photo{max-width:100%;font-size:12px}.hero-profile h1{font-size:22px}.hero-profile .profile-photo-actions{font-size:12px}.hero-tabs button{flex:1;padding:10px 8px;font-size:13px}.hero-layout{display:flex;flex-direction:column;gap:14px}.hero-layout>*{width:100%;box-sizing:border-box}.hero-showcase{order:0;padding-top:12px}.hero-progress-column{order:1}.hero-inventory{order:2}.hero-warrior{max-width:290px}.hero-warrior>svg{max-height:400px}.hero-slots{grid-template-columns:repeat(4,1fr);max-width:360px;margin:auto}.hero-stat-grid{grid-template-columns:repeat(4,1fr);gap:6px}.hero-stat-grid>div{padding:8px 5px}.hero-stat-grid dt{font-size:10px}.hero-stat-grid dd{font-size:18px}.hero-item-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}.hero-categories button{flex:1 1 45%}.hero-footer{flex-wrap:wrap;padding:10px;gap:6px}.hero-footer>span{flex-basis:100%;font-size:11px}.hero-footer button{flex:1;font-size:12px;padding:9px 8px}.hero-account{padding:12px}.hero-game-badges span{font-size:11px}.hero-inventory h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){.hero-warrior .hero-figure,.hero-warrior .hero-eyes{animation:none}.hero-weapon,.hero-shield{transition:none}}
/* Keep Save/Cancel above the fixed game navigation, independent of scroll padding. */
dialog.hero-profile{padding-bottom:200px!important;font-family:system-ui,sans-serif}.hero-profile h1,.hero-profile h2{font-family:Georgia,serif}.hero-footer{position:fixed;left:50%;transform:translateX(-50%);bottom:82px;box-sizing:border-box;width:calc(100% - 48px);max-width:1352px;margin:0;z-index:5}.hero-profile .profile-summary{grid-template-columns:80px minmax(0,1fr) auto;grid-template-rows:44px 44px;gap:4px 14px}.hero-profile .profile-picture{grid-row:1/3;overflow:visible}.hero-profile .profile-picture>img{border-radius:50%}.hero-profile .profile-summary>div:nth-child(2){grid-row:1/3}.hero-profile .hero-identity-controls{grid-column:3;grid-row:1}.hero-profile .hero-photo-controls{grid-column:3;grid-row:2}.hero-profile .profile-photo-actions>.upload-button{display:none}.hero-profile #profile-photo{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.hero-photo-camera{position:absolute;right:-8px;bottom:-5px;z-index:3;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#49321e;border:1px solid #d8b775;color:#f4dc9b;cursor:pointer;box-shadow:0 3px 8px #0008}.hero-photo-camera svg{width:23px;height:23px}.hero-photo-camera:focus-visible{outline:3px solid #89d2db;outline-offset:3px}
@media(max-width:700px){.hero-footer{width:calc(100% - 20px)}.hero-profile .profile-summary{grid-template-columns:60px minmax(0,1fr) auto;grid-template-rows:40px 40px;gap:4px 9px;padding:10px}.hero-profile .hero-identity-controls{grid-column:3;grid-row:1}.hero-profile .hero-photo-controls{grid-column:3;grid-row:2}.hero-profile .hero-edit-name,.hero-profile #photo-remove{font-size:10px;padding:5px 7px;max-width:95px}.hero-profile #profile-name{font-size:19px}.hero-profile #my-email{font-size:11px}.hero-profile .hero-photo-camera{width:44px;height:44px;right:-8px;bottom:-12px}}
.hero-profile #photo-remove:disabled{opacity:.4}
.hero-profile:not([open]) .hero-figure,.hero-profile:not([open]) .hero-eyes{animation-play-state:paused}
/* Profile routes now emphasize equipment / character / inventory + stats. */
.hero-equipment-column{padding:18px;background:#160e0ac9;border:1px solid #8a693d66;border-radius:16px}.hero-equipment-column .hero-slots{grid-template-columns:1fr 1fr;gap:10px}.hero-equipment-column .hero-slot{min-height:96px}.hero-equipment-column .hero-slot svg{width:42px;height:42px}.hero-equipment-column .hero-slot span{font-size:12px}.hero-equipment-column .hero-slot small{font-size:11px}.hero-inventory>.hero-stat-grid{margin:8px 0}.hero-inventory>.hero-goal{margin-bottom:20px}
@media(max-width:700px){.hero-equipment-column{order:1}.hero-equipment-column .hero-slots{grid-template-columns:repeat(4,1fr)}.hero-equipment-column .hero-slot{min-height:82px}.hero-equipment-column .hero-slot svg{width:32px;height:32px}}
