.compact-preview{height:145px!important;min-height:145px!important;border-radius:24px}.loot-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0}.loot-heading h3{font-size:19px;max-width:230px}.loot-heading>strong{color:#d5bbff;white-space:nowrap}.loot-heading small{display:block;font-size:12px}.combat-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:14px 0}.combat-stats>span{display:flex;flex-direction:column;text-align:center;background:#293747;border:1px solid #ffffff13;border-radius:14px;padding:9px 2px}.combat-stats small{font-size:11px;color:#b6cbd6}.combat-stats b{font-size:17px;color:#f0f6ff}.treasure-meter{padding:16px;border-radius:20px;background:linear-gradient(130deg,#344460,#3a3656);margin:14px 0}.treasure-meter small{display:block;font-size:12px;line-height:1.5;color:#d5ddeb}.treasure-meter progress{width:100%;height:10px;margin:10px 0;border:0;border-radius:20px;overflow:hidden;accent-color:#d5b1ff}.treasure-meter progress::-webkit-progress-bar{background:#ffffff17}.treasure-meter progress::-webkit-progress-value{background:linear-gradient(90deg,#8edbc9,#ceafff)}.loot-chest{display:flex;align-items:center;gap:10px;border:1px solid #f5dca740;border-radius:20px;padding:12px;margin:16px 0;background:#403e44}.loot-chest small{display:block;font-size:12px;color:#d9cdb9}.loot-chest .btn{margin-left:auto}.chest-mini{width:42px;height:40px;display:grid;place-items:center;background:#c58f52;color:#fff1be;border:4px solid #f0c47c;border-radius:12px 12px 8px 8px;font-size:26px;box-shadow:0 4px #795a40}.loot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0}.loot-tile{position:relative;min-width:0;display:flex;align-items:center;flex-direction:column;padding:8px 5px 12px;background:color-mix(in srgb,var(--gear) 9%,#1e2b39);border:1px solid color-mix(in srgb,var(--gear) 28%,transparent);border-radius:18px;color:#e9f1fc;cursor:pointer;transition:transform .2s,box-shadow .2s}.loot-tile:hover{transform:translateY(-3px);box-shadow:0 6px 16px #0003}.loot-tile.wearing{border:2px solid var(--gear)}.loot-tile strong{font-size:12px;text-align:center;line-height:1.3}.loot-tile small{font-size:11px;color:var(--gear);margin-top:4px}.gear-sprite{width:76px;height:76px;color:var(--gear);display:block;flex-shrink:0}.tier-4 .gear-sprite,.tier-5 .gear-sprite{filter:drop-shadow(0 0 5px color-mix(in srgb,var(--gear) 45%,transparent))}.tier-5 .gear-sprite{animation:relic-float 3s ease-in-out infinite}.worn-pin{position:absolute;right:6px;top:3px;color:var(--gear);font-size:12px}.catalog{margin:18px 0}.catalog summary{cursor:pointer;color:#c6c4ed;font-size:14px}.loot-inspect{display:grid;place-items:center;color:var(--gear);margin-bottom:14px}.loot-inspect .gear-sprite{width:140px;height:140px}.compare-stats{display:grid;gap:6px}.compare-stats>div{display:grid;grid-template-columns:1fr 40px 70px;gap:10px;border-radius:10px;background:#ffffff08;padding:8px 12px}.compare-stats small{text-align:right}.positive{color:#9de1bd}.negative{color:#ffa4b7}.loot-reveal{position:relative;text-align:center;isolation:isolate;overflow:hidden;padding:25px 0;animation:loot-pop .6s cubic-bezier(.2,.8,.2,1.3)}.loot-reveal>.gear-sprite{width:145px;height:145px;margin:auto}.loot-reveal>span{color:var(--gear);font-weight:800;letter-spacing:2px}.loot-burst{position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 50% 30%,color-mix(in srgb,var(--gear) 28%,transparent),transparent 60%)}.activity-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px}.activity-pair>div{border-radius:20px;padding:16px;background:linear-gradient(135deg,#37445d,#2b3048)}.activity-pair span{font-size:30px}.activity-pair h3{margin:8px 0;font-size:16px}.activity-pair p{font-size:13px;line-height:1.5;margin:0}.online-player{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #ffffff15;border-radius:18px;margin:8px 0}.online-player small{display:block;font-size:11px;color:#b5c6d5}.online-player .btn{margin-left:auto}.online-avatar .gear-sprite{width:45px;height:45px}.empty-players{padding:28px 15px;text-align:center;border:1px dashed #8bafba55;border-radius:22px;line-height:1.7;margin:18px 0;color:#d3dce7}.empty-players small{color:#a5bac9}.match-row{width:100%;display:flex;text-align:left;gap:8px;justify-content:space-between;padding:13px;border-radius:14px;background:#283647;color:#e3ebf5;border:1px solid #ffffff13;margin:6px 0}.match-row small{color:#bfb2ef}.sprint-options{display:grid;gap:10px;margin:16px 0}.sprint-options button{background:#223646;border:1px solid #8dc1cb44;border-radius:15px;color:#e2f3f5;text-align:left;padding:13px}.sprint-options button:hover{background:#3b5264}.sprint-options pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;margin:0}.combat-stage{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:25px 0}.combat-fighter{display:flex;align-items:center;flex-direction:column;gap:8px;min-width:0}.fighter-sprite{font-size:70px;color:#b6c8ff;text-shadow:0 6px #1b293a;transition:transform .15s}.combat-fighter:nth-child(2) .fighter-sprite{color:#ffb7cc}.combat-fighter.striking .fighter-sprite{transform:translateX(15px) rotate(12deg)}.combat-fighter:nth-child(2).striking .fighter-sprite{transform:translateX(-15px) rotate(-12deg)}.combat-fighter progress{width:100%;accent-color:#a8e8c1}.combat-fighter strong{font-size:14px;overflow-wrap:anywhere}.combat-fighter small{font-size:12px}.score-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.score-grid>div{display:flex;flex-direction:column;gap:8px;background:#304052;border-radius:18px;padding:15px}.score-grid small{font-size:12px}.match-result{text-align:center;color:#c5ecba}.online-label{position:absolute;z-index:4;background:#2a3156e8;border:1px solid #b1a6ff88;color:#fff;border-radius:12px;padding:4px 8px;transform:translate(-50%,-100%);font-size:12px;white-space:nowrap;max-width:150px;overflow:hidden;text-overflow:ellipsis}.legacy-collection{margin-top:22px;border-top:1px solid #ffffff17;padding-top:15px}.legacy-collection .item-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.legacy-collection .item-art{height:65px}.legacy-collection .item-card h4{font-size:12px}.legacy-collection .item-card{padding:8px}.legacy-collection .item-card .btn{font-size:12px;padding:8px}.realm-quest .treasure-meter{padding:0;background:none}.realm-quest .treasure-meter strong{font-size:14px}.realm-quest .treasure-meter small{font-size:11px}.realm-mode{max-width:250px}.loot-sync-note{margin:15px 0;padding:13px;background:#363c56;border-radius:16px}.loot-sync-note .btn{margin-top:8px}@keyframes relic-float{50%{transform:translateY(-3px) rotate(3deg)}}@keyframes loot-pop{from{opacity:0;transform:scale(.75) rotate(-4deg)}to{opacity:1;transform:scale(1)}}@media(max-width:430px){.loot-grid{gap:7px}.gear-sprite{width:65px;height:65px}.loot-chest{padding:10px;gap:7px}.loot-chest strong{font-size:13px}.loot-chest small{font-size:11px}.loot-chest .btn{font-size:12px;padding:9px}.loot-heading h3{font-size:17px}.activity-pair>div{padding:12px}.online-player .btn{font-size:12px;padding:9px}.realm-mode{font-size:10px;max-width:190px}}@media(prefers-reduced-motion:reduce){.loot-tile,.fighter-sprite{transition:none}.tier-5 .gear-sprite,.loot-reveal{animation:none}.combat-fighter.striking .fighter-sprite{transform:none!important}}

.lobby-players{display:grid;gap:9px;margin:16px 0}.lobby-player{display:flex;align-items:center;gap:12px;padding:12px;width:100%;text-align:left;border:1px solid #c9dfc733;border-radius:20px;background:#2c443e;color:#eef5e7;cursor:pointer}.lobby-player>span:nth-child(2){flex:1;min-width:0}.lobby-player strong,.profile-heading h3{overflow-wrap:anywhere}.lobby-player small{display:block;font-size:12px;color:#b9cfbf;margin-top:3px}.lobby-player .online-avatar,.profile-avatar{width:52px;height:52px;flex-shrink:0}.lobby-player .online-avatar svg,.profile-avatar svg{width:100%;height:100%}.presence-dot{width:8px;height:8px;border-radius:50%;background:#ade7b6}.lobby-player:hover{background:#38554a}.profile-heading{display:flex;align-items:center;gap:14px;margin-bottom:20px}.profile-heading>div{min-width:0}.profile-heading h3{margin:0 0 5px}.profile-heading small{color:#b9cfbf}.profile-avatar{width:68px;height:68px}.adventurer-profile h4{margin:15px 0 8px}.adventurer-profile>.combat-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.profile-equipment{display:grid;gap:10px}.profile-gear{display:grid;grid-template-columns:60px minmax(0,1fr);align-items:center;gap:8px;border:1px solid color-mix(in srgb,var(--gear) 45%,transparent);border-radius:18px;background:#263b3d;padding:10px}.profile-gear>.gear-sprite{width:60px;height:60px}.profile-gear strong{font-size:14px}.profile-gear small{display:block;color:var(--gear);font-size:11px}.profile-gear>.combat-stats{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr));margin:0}.profile-gear .combat-stats small{color:#b6cbd6;font-size:10px}.profile-gear .combat-stats b{font-size:14px}.profile-gear .combat-stats>span{padding:6px 2px}
.duel-replay{--duel-ink:#203f39;min-width:0}
.modal:has(.duel-replay){background:#1b3429}
.duel-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:5px;margin:4px 0 10px;font-size:11px}
.duel-round{font-weight:850;letter-spacing:.08em;color:#e5d9a4}.duel-kind{color:#a8c0b5}
.duel-scene{position:relative;height:310px;isolation:isolate;overflow:hidden;border:1px solid #b4caa46b;border-radius:22px;background:radial-gradient(ellipse at 78% 38%,#b0cb8c 0 20%,transparent 20.5%),radial-gradient(ellipse at 17% 99%,#8aa678 0 33%,transparent 33.5%),linear-gradient(#9dbeb2 0 38%,#c2d4a3 38% 47%,#d6d4a9 47% 100%)}
.duel-scene:before{content:'';position:absolute;inset:0;background:linear-gradient(165deg,transparent 47%,#e9dfbc 47% 57%,transparent 57%);opacity:.55;pointer-events:none}
.duel-vs{position:absolute;left:48%;top:46%;font:900 13px Nunito,system-ui;color:#567254;letter-spacing:1px;opacity:.75}
.duel-actor{position:absolute;width:132px;height:152px;z-index:2}.duel-actor.you{left:7%;bottom:10px}.duel-actor.foe{right:8%;top:47px;width:112px;height:130px}
.duel-platform{position:absolute;bottom:2px;left:-13%;width:126%;height:24%;border-radius:50%;background:#819e66;border-bottom:5px solid #647f56;box-shadow:inset 0 3px #c4d5a1}
.duel-facing,.duel-motion,.duel-body{position:relative;width:100%;height:100%}.duel-actor.foe .duel-facing{transform:scaleX(-1)}
.duel-knight{position:absolute;inset:0;width:100%;height:100%}.duel-sword{position:absolute;left:48%;top:-10%;width:53%;height:92%;transform-origin:50% 82%;display:block;color:#dbe8bc}.duel-sword svg{display:block;width:100%;height:100%;filter:none!important;animation:none!important}
.duel-health{position:absolute;width:44%;max-width:210px;padding:10px 12px;border:2px solid #527258;border-radius:12px 5px 12px 5px;background:#f4efdb;color:var(--duel-ink);box-shadow:0 4px #526c4c33;z-index:3}
.duel-health.foe{left:12px;top:12px}.duel-health.you{right:12px;bottom:14px}
.duel-health>small{font-size:8px;font-weight:900;letter-spacing:.12em;color:#607656}.duel-health>strong{display:block;font-size:14px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:2px 0 6px}
.duel-health-row{display:flex;gap:6px;align-items:center;font-size:9px;font-weight:900}.duel-health progress{appearance:none;-webkit-appearance:none;display:block;min-width:0;flex:1;height:8px;border:0;border-radius:8px;overflow:hidden;background:#c4cfb9;accent-color:#518c61}
.duel-health progress::-webkit-progress-bar{background:#c4cfb9}.duel-health progress::-webkit-progress-value{background:#518c61}.duel-health progress::-moz-progress-bar{background:#518c61}
.duel-health[data-condition=caution] progress{accent-color:#b58c36}.duel-health[data-condition=caution] progress::-webkit-progress-value{background:#b58c36}.duel-health[data-condition=caution] progress::-moz-progress-bar{background:#b58c36}
.duel-health[data-condition=danger] progress{accent-color:#b75a46}.duel-health[data-condition=danger] progress::-webkit-progress-value{background:#b75a46}.duel-health[data-condition=danger] progress::-moz-progress-bar{background:#b75a46}
.duel-hp{display:block;text-align:right;font-size:10px;margin-top:4px;color:#425b46}
.duel-number,.duel-heal{position:absolute;z-index:5;left:-15%;top:0;width:130%;text-align:center;opacity:0;font-weight:950;font-size:22px;line-height:1.15;color:#fff9dd;text-shadow:0 2px #6c3d30,2px 0 #6c3d30,-2px 0 #6c3d30;pointer-events:none;white-space:nowrap}.duel-number[data-critical=true]{color:#ffe09a;font-size:19px}.duel-heal{top:28%;font-size:15px;color:#efffcf;text-shadow:0 2px #3f6b44}
.duel-slash{position:absolute;left:10%;top:27%;width:80%;height:40%;border:5px solid transparent;border-top-color:#fff4c7;border-right-color:#fff4c7;border-radius:50%;opacity:0;pointer-events:none}
.duel-actor.defeated .duel-body{opacity:.35}.duel-message{padding:14px 15px;margin-top:12px;background:#132d2c;border:1px solid #99b29855;border-radius:15px;min-height:103px}
.duel-result{display:block;color:#f1e6b8;font-size:17px;line-height:1.3;overflow-wrap:anywhere}.duel-message .duel-log{margin:7px 0 0;font-size:13px;line-height:1.5;color:#cfddcb;overflow-wrap:anywhere}
.duel-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.duel-controls .btn{font-size:13px;flex:1;min-height:44px;padding:10px 12px}.duel-controls [hidden]{display:none!important}
.duel-replay[data-paused=true] .duel-round:after{content:' · PAUSED'}.duel-replay[data-quality=low] .duel-slash{display:none}
[data-graphics=low] .modal-backdrop:has(.duel-replay){backdrop-filter:none;background:#10251bd9}
.duel-number[data-guarded=true]:not([data-critical=true]){font-size:15px}
@media(max-width:480px){.modal:has(.duel-replay){padding:14px}.duel-scene{height:265px;border-radius:16px}.duel-actor.you{left:3%;width:108px;height:126px}.duel-actor.foe{right:3%;top:65px;width:94px;height:110px}.duel-health{padding:8px;width:46%}.duel-health.foe{left:8px;top:10px}.duel-health.you{right:8px;bottom:12px}.duel-health>strong{font-size:12px}.duel-health>small{font-size:7px}.duel-result{font-size:15px}.duel-message{padding:12px;min-height:110px}.duel-message .duel-log{font-size:12px}.duel-number{font-size:19px}.duel-number[data-critical=true]{font-size:16px}}
@media(max-height:500px) and (orientation:landscape){.duel-scene{height:240px}.duel-actor.you{width:96px;height:110px}.duel-actor.foe{top:20px;width:78px;height:90px}.duel-health{padding:7px 10px}.duel-health>strong{font-size:12px;margin:2px 0 4px}}
@media(max-width:480px){.duel-actor.foe{top:48px;width:90px;height:104px}.duel-number[data-guarded=true]:not([data-critical=true]){font-size:13px}}
.lobby-connection{display:grid;gap:8px;padding:14px;border:1px solid #83d8ad55;border-radius:16px;background:#83d8ad0b;margin-bottom:16px;min-width:0}.lobby-connection>span{font-size:.85rem}.lobby-server{overflow-wrap:anywhere;font-size:.78rem;color:var(--muted,#afc3c6)}.lobby-connection .summary-actions{flex-wrap:wrap}.lobby-connection p{margin:0}
/* Sunny 3D diorama; a reserved HUD strip keeps health clear of the fighters. */
.duel-name{display:none}
.duel-scene.has-3d{height:450px;background:#dbe6b7}
.duel-scene.has-3d:before,.has-3d .duel-vs,.has-3d .duel-platform,.has-3d .duel-facing,.has-3d .duel-slash{display:none}
.duel-canvas{display:block;position:absolute;inset:0;width:100%;height:calc(100% - 86px);border-radius:20px 20px 0 0}
.has-3d .duel-health{top:auto;bottom:8px;width:calc(50% - 18px);max-width:none;padding:6px 10px;border-radius:16px;background:#fff9e7ed;box-shadow:none}
.has-3d .duel-health.you{left:12px;right:auto}.has-3d .duel-health.foe{right:12px;left:auto}
.has-3d .duel-health>strong{margin:1px 0 3px}.has-3d .duel-health>small{font-size:7px}.has-3d .duel-hp{font-size:10px}
.has-3d .duel-actor{width:1px;height:1px;right:auto;bottom:auto;pointer-events:none;z-index:2}
.has-3d .duel-name{display:block;position:absolute;left:0;top:0;transform:translate(-50%,-100%);max-width:135px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#234535dc;color:#fff8dd;border:1px solid #dbe7a4;border-radius:9px;padding:3px 7px;font-size:10px;font-weight:800}
.has-3d .duel-number,.has-3d .duel-heal{position:absolute;left:-70px;right:auto;top:-36px;bottom:auto;width:140px;text-align:center;white-space:nowrap;z-index:4;text-shadow:0 2px 0 #233d36,1px 0 #233d36,-1px 0 #233d36}
.has-3d .duel-heal{top:28px;color:#e3ffad}
@media(max-width:480px){.duel-scene.has-3d{height:380px}.has-3d .duel-health{top:auto;bottom:7px;padding:6px;width:calc(50% - 12px)}.has-3d .duel-health.you{left:8px}.has-3d .duel-health.foe{right:8px}.has-3d .duel-health>strong{font-size:11px}.has-3d .duel-name{font-size:9px;max-width:100px}.has-3d .duel-number{font-size:19px}}
@media(max-height:500px) and (orientation:landscape){.duel-scene.has-3d{height:330px}}
