#arenaControls:has(.eq-sides){position:absolute;inset:0;display:block;width:auto;height:auto;pointer-events:none}
.eq-sides{position:absolute;inset:18% 1% auto;display:flex;align-items:start;justify-content:space-between}
.eq-doll{box-sizing:border-box;width:clamp(65px,18%,230px);display:grid;grid-template-columns:22% 56% 22%;padding:3px;border:0;background:transparent}
.eq-doll>svg{width:100%;height:100%;min-width:0}
.eq-cell{box-sizing:border-box;position:relative;display:grid;place-items:center;aspect-ratio:1;overflow:hidden;border:1px solid var(--condition);background:#191817ae;pointer-events:auto}
.eq-cell img,.eq-cell svg{width:90%;height:90%;object-fit:contain}.eq-cell svg{fill:#777;opacity:.35}.eq-cell b{position:absolute;color:#ff493e;font-size:1.5em}


.eq-doll>div{display:flex;flex-direction:column;gap:1px}
.eq-cell{background:rgb(255 255 255 / 16%)}
.eq-cell-empty{border-color:rgb(255 255 255 / 16%)}
.eq-cell-empty svg{fill:white;opacity:.54;filter:drop-shadow(0 1px 1px #292218)}

#arenaControls .battle-wheel{position:absolute;inset:0;display:block;pointer-events:none;container-type:inline-size}
.battle-wheel fieldset{border:0;margin:0;padding:0;min-width:0;background:none}
.battle-wheel .wheel-targets,.battle-wheel .wheel-hub{position:absolute;left:50%;transform:translateX(-50%);pointer-events:auto}
.wheel-options{grid-column:1/-1;display:flex;justify-content:center;gap:3px}.wheel-options select{font-size:10px;width:auto;max-width:48%;padding:1px}
.battle-wheel .wheel-hub{bottom:4%;display:flex;align-items:center;gap:5px;--orb:clamp(28px,3.4cqw,46px)}
.wheel-hub button,.wheel-hub .wheel-move>span{box-sizing:border-box;padding:0;display:grid;place-items:center;width:var(--orb);height:var(--orb);min-height:0;min-width:0;border-radius:50%;border:2px ridge #a68b5c;background:radial-gradient(circle at 35% 24%,#645949,#211d19 68%,#0d0d0e);color:wheat;box-shadow:0 2px 5px #000a}
.wheel-hub .wheel-strike{position:relative;isolation:isolate;width:calc(var(--orb)*1.65);height:calc(var(--orb)*1.65);font: bold calc(var(--orb)*.95) Georgia;color:#eee3c6;overflow:hidden}
.wheel-strike span{z-index:1;text-shadow:0 2px 2px #221604}
.wheel-strike:active::before,.resolving .wheel-strike::before{content:"";position:absolute;inset:0;border-radius:50%;background:conic-gradient(#855011,#ffdc58,#9e500c,#ffe89b,#855011);animation:wheel-aura 1.6s linear infinite}
@keyframes wheel-aura{to{transform:rotate(1turn)}}
@media(prefers-reduced-motion:reduce){.resolving .wheel-strike::before{animation:none}}
.wheel-auto button{position:relative;overflow:hidden;font-size:0;color:#82dfff}.wheel-auto button>*{display:none!important}.wheel-auto button::after{content:'⟳';font:bold 23px Georgia;color:inherit}
.wheel-auto button[aria-pressed=true]{color:#ffda60;box-shadow:0 0 9px #f9b329,inset 0 0 8px #cf8420}
.wheel-hub .wheel-toggle{font-size:21px}.battle-wheel .wheel-fan{position:absolute;left:calc(100% + 4px);display:flex;gap:3px}.wheel-fan[hidden]{display:none!important}
.wheel-hub .wheel-whirl{position:absolute;bottom:100%}.wheel-hub .wheel-whirl{left:0}
.wheel-move:has(:disabled),.wheel-fan:disabled .wheel-move,.wheel-whirl:disabled .wheel-move{filter:grayscale(1);opacity:.55}.vortex{filter:sepia(1) saturate(5);font-size:20px}
.wheel-tip{position:absolute;top:100%;left:50%;transform:translateX(-50%);white-space:nowrap;color:wheat;font-size:11px;background:#14120dbd}
@container(max-width:550px){.battle-wheel .wheel-fan{display:grid;grid-template-columns:repeat(2,var(--orb));bottom:0}.battle-wheel .wheel-targets{top:21%}.wheel-options select{font-size:9px}}

#arenaControls .wheel-targets{top:15%;width:max-content;text-align:center}
#arenaControls .wheel-targets .gothic-zones{display:flex;justify-content:center;width:max-content;margin-inline:auto;gap:5px;align-items:flex-start}
#arenaControls .wheel-targets .zone-field{width:auto;min-width:74px;padding:4px;border:1px solid #8c7650;background:#1b2923ee}
#arenaControls .wheel-targets .zone-field.attack{background:#341f19ee}
#arenaControls .wheel-targets .zone-options{display:grid;grid-template-columns:1fr;gap:2px}
#arenaControls .wheel-targets .zone-options span{flex-wrap:nowrap}
.wheel-targets legend{padding:0 4px;background:#201b15;color:#ebd3a2;font:bold 13px Georgia}
.wheel-options{margin-top:2px}
#arenaControls .wheel-hub{--dial:clamp(110px,13cqw,172px);--orb:calc(var(--dial)*.23);display:block;width:var(--dial);height:var(--dial);bottom:1%;background:radial-gradient(circle closest-side,#32271be0 41%,transparent 43% 77%,#9e86504d 79%,#2d231840 81%,transparent 84%);border-radius:50%;pointer-events:none}
#arenaControls .wheel-hub>*{pointer-events:auto}
#arenaControls .wheel-hub .wheel-strike{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:53%;height:53%;border:0;background:none;padding:0}
.wheel-strike img,.wheel-toggle img{display:block;width:100%;height:100%;object-fit:contain}
.wheel-strike:active::before,.resolving .wheel-strike::before{z-index:1;inset:10%;opacity:.85;mix-blend-mode:screen;mask:radial-gradient(circle,transparent 40%,black 72%,transparent 90%);pointer-events:none}
#arenaControls .wheel-hub :is(.wheel-auto,.wheel-toggle,.wheel-whirl){position:absolute;right:auto;bottom:auto;transform:translate(-50%,-50%);margin:0}
#arenaControls .wheel-auto{left:52%;top:9%}
#arenaControls .wheel-toggle{left:91%;top:48%}
#arenaControls .wheel-whirl{left:81%;top:19%}
#arenaControls .wheel-auto button{width:var(--orb);height:var(--orb);min-width:0;min-height:0;padding:0;border-radius:50%;font-size:0}
#arenaControls .wheel-auto button::after{content:'';width:80%;height:80%;background:url('/art/ui-tokens/auto.webp') center/contain no-repeat;filter:grayscale(1) sepia(1) saturate(6) hue-rotate(154deg)}
#arenaControls .wheel-auto button:is([aria-pressed=true],[data-stop-world-hunt])::after{filter:sepia(1) saturate(5)}
#arenaControls .wheel-fan{left:103%;top:50%;bottom:auto;transform:translateY(-50%)}
.wheel-move{position:relative;cursor:pointer}.wheel-move input{position:absolute;width:1px;height:1px;opacity:0}.wheel-move>span{overflow:hidden}.wheel-move img{max-width:100%;max-height:100%}.wheel-move input:checked+span{border-color:#ffd17c}.wheel-move input:focus-visible+span{outline:2px solid white}
@container(max-width:550px){#arenaControls .wheel-targets{top:17%}#arenaControls .wheel-targets .zone-field{min-width:0;padding:1px}#arenaControls .wheel-targets .zone-options img{width:12px;height:12px}#arenaControls .wheel-targets .zone-options span{padding:0 2px}.wheel-targets legend{font-size:10px}}

.arena-stat-pair{position:absolute;inset:auto 1% 2%;display:flex;justify-content:space-between;pointer-events:none}
.arena-stat-pair>div{display:grid;width:40%;grid-template-columns:repeat(4,minmax(0,1fr));background:linear-gradient(90deg,transparent,#151311a8 12% 88%,transparent);color:#fff0d5}
.arena-stat-pair span{display:flex;align-items:center;justify-content:center;gap:4px;padding:3px 0;text-shadow:0 1px 3px black;font-size:clamp(12px,1.35vw,20px);font-variant-numeric:tabular-nums}
.arena-stat-pair i{position:relative;isolation:isolate;display:block;box-sizing:border-box;width:clamp(20px,2.9vw,40px);aspect-ratio:1;flex:none;border-radius:50%;border:1px solid #aa8d60;background:radial-gradient(ellipse at 35% 23%,#625647,#332e29 48%,#171512 73%,#534531 79%,#9b8158 85%,#30251c 93%);box-shadow:inset 0 1px 1px #ffe4adbd,inset 0 -2px 2px #100c08,0 2px 2px #0c0907bd}
.arena-stat-pair i::after{content:"";position:absolute;inset:-13% 2% 17%;background:url('/art/ui-tokens/combat-stats.webp') 0 0/200% 200% no-repeat;filter:drop-shadow(0 2px 1px #110d0ae0)}
.arena-stat-pair span:nth-child(2) i::after{background-position:100% 0}.arena-stat-pair span:nth-child(3) i::after{background-position:0 100%}.arena-stat-pair span:nth-child(4) i::after{background-position:100% 100%}
@media(max-width:600px){.arena-stat-pair>div{width:32%;grid-template-columns:repeat(2,1fr)}.arena-stat-pair span{gap:2px;padding:0}}

.scene>.arena-hit-value{position:absolute;z-index:8;top:32%;left:32.5%;transform:translate(-50%,-50%);pointer-events:none;color:#fff0c8;font:italic bold clamp(15.2px,2.24vw,36px)/1 Georgia,serif;text-shadow:0 2px 4px #241209,0 0 3px #180c06;-webkit-text-stroke:1px #49301b;paint-order:stroke fill;animation:arena-hit-rise 1.15s ease-out both}
.scene>.arena-hit-value.enemy{left:69.8%}
@keyframes arena-hit-rise{0%{opacity:0;translate:0 5px}12%,70%{opacity:1}100%{opacity:0;translate:0 -12px}}
@media(prefers-reduced-motion:reduce){.scene>.arena-hit-value{animation:none}}

.scene>.arena-hit-value{width:18%;text-align:center;line-height:1.1}

#arenaControls .eq-sides>.eq-doll{background:transparent;border:0;box-shadow:none;filter:none}
.eq-doll .eq-cell{border:0;box-shadow:none}
.eq-two-handed img{opacity:.55}
.eq-jewels{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px}
.eq-jewels .eq-cell{grid-column:span 2}
.eq-jewels .eq-cell:first-child{grid-column:span 6;aspect-ratio:2.4}
.eq-jewels .eq-cell:nth-child(2),.eq-jewels .eq-cell:nth-child(3){grid-column:span 3}
.eq-cell:not(.eq-cell-empty,.eq-two-handed)[style*="#ff"] img{filter:drop-shadow(0 0 2px var(--condition))}

/* The two side columns share the same half-height header and five square rows. */
.eq-doll>div{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:1fr repeat(5,2fr);aspect-ratio:1/5.5;align-self:start;gap:1px}
.eq-doll>div>.eq-cell,.eq-doll .eq-jewels>.eq-cell{width:100%;height:100%;min-height:0;aspect-ratio:auto}
.eq-doll .eq-jewels{min-height:0;grid-template-rows:repeat(3,minmax(0,1fr))}

.eq-doll>.gear-left{grid-template-rows:2fr 2fr 1fr repeat(3,2fr)}


.eq-doll .eq-cell>img{background:transparent}

.scene>.arena-hit-value.is-critical{color:#ffb2a2}
.side-power .profile-power{width:min(100%,190px);margin:6px auto}

#arenaControls.battle-chat-expanded .wheel-hub{bottom:calc(clamp(58px,7vw,88px) - 8px)}
body[data-screen=arena] #panel.battle-chat-expanded:has(#arenaChatDesk){position:relative;z-index:9;display:flex;flex-direction:column;margin-top:calc(0px - clamp(58px,7vw,88px))}
#panel.battle-chat-expanded #arenaChatDesk{order:-1;margin:0}
#panel.battle-chat-expanded .game-chat-log{height:clamp(190px,28vh,330px)}

#arenaControls :is(.wheel-chat,.wheel-chat-close){position:absolute;pointer-events:auto;min-height:24px;padding:3px 10px;border-radius:4px;font:600 12px Georgia,serif;color:#fff0cb}
#arenaControls .wheel-chat{bottom:2px;left:50%;transform:translateX(-50%);border:2px solid transparent;background:linear-gradient(#372c1e,#171410) padding-box,linear-gradient(110deg,#836035,#e2b456,#fff4bb,#ae7634,#836035) border-box;background-size:100% 100%,250% 100%;animation:chat-rim 2.6s ease-in-out infinite alternate}
@keyframes chat-rim{to{background-position:0 0,100% 0}}
@media(prefers-reduced-motion:reduce){#arenaControls .wheel-chat{animation:none}}
#arenaControls .wheel-chat-close{display:none;right:2%;bottom:calc(clamp(58px,7vw,88px) + 5px);border:1px solid #899859;background:#31482a}
#arenaControls.battle-chat-expanded .wheel-chat{display:none}
#arenaControls.battle-chat-expanded .wheel-chat-close{display:block}
body[data-screen=arena] .scene:has(#arenaControls.battle-chat-expanded){
  max-height:62dvh;
  overflow:hidden;
}
.scene:has(#arenaControls.battle-chat-expanded) #stage{
  max-height:62dvh;
  box-sizing:border-box;
  padding-bottom:clamp(58px,7vw,88px);
  object-fit:contain;
  object-position:center bottom;
  transform:scale(1.07);
  transform-origin:50% calc(100% - clamp(58px,7vw,88px));
}
body[data-screen=arena] .scene:has(#arenaControls.battle-chat-expanded) #sceneLabel{top:2px}
.scene:has(#arenaControls.battle-chat-expanded) #sceneLabel .battle-hud{transform:scale(.68);transform-origin:top left}
.scene:has(#arenaControls.battle-chat-expanded) #sceneLabel .battle-hud.away{transform-origin:top right}
.scene:has(#arenaControls.battle-chat-expanded) #sceneLabel .round-plaque{transform:scale(.68);transform-origin:top center}
#arenaControls.battle-chat-expanded .wheel-targets{top:clamp(53px,6.8dvh,72px);transform:translateX(-50%) scale(.91);transform-origin:top center}
#arenaControls.battle-chat-expanded .eq-sides{top:clamp(58px,6vw,80px)}
#panel.battle-chat-expanded #arenaChatDesk{
  height:calc(100dvh - var(--expanded-scene-height,62dvh) + clamp(58px,7vw,88px) - 20px);
  min-height:0;
  grid-template-rows:minmax(0,1fr);
}
#panel.battle-chat-expanded #arenaChatDesk>section{min-height:0;overflow:auto}
#panel.battle-chat-expanded .combat-log{display:flex;flex-direction:column}
#panel.battle-chat-expanded #battleChatDock{flex:0 1 auto;min-height:0;overflow:auto}
#panel.battle-chat-expanded #battleLog{flex:1 1 auto;min-height:0}
#panel.battle-chat-expanded .game-chat-log{height:clamp(48px,15dvh,180px)}


#arenaControls :is(.wheel-chat,.wheel-chat-close)::before{
  content:"";
  display:inline-block;
  width:10px;
  height:1px;
  margin-inline-end:5px;
  vertical-align:middle;
  background:currentColor;
  box-shadow:0 -3px currentColor,0 3px currentColor;
}

#gameChat:not(.is-docked){height:clamp(240px,36dvh,340px)}
#arenaChatDesk{height:clamp(240px,36dvh,340px);grid-template-rows:minmax(0,1fr)}
#arenaChatDesk .combat-log{display:flex;flex-direction:column;min-height:0}
#arenaChatDesk .participants{min-height:0;overflow:auto}
#panel #arenaChatDesk #battleChatDock{display:flex;flex-direction:column;min-height:0;flex:1}
#panel #arenaChatDesk #battleChatDock:has(#chatBody[hidden]){flex:0 0 auto}
#arenaChatDesk #battleLog:not([hidden]){flex:1;min-height:0}
#battleChatDock #gameChat,#gameChat #chatBody:not([hidden]),#gameChat #chatLog{
  flex:1 1 0;min-height:0
}
#gameChat #chatLog{height:auto;overflow:auto}
#gameChat #chatForm{flex-shrink:0}

#arenaControls>.round-tracks{
  position:absolute;left:1.5%;right:14.5%;bottom:calc(3% + clamp(38px,4.8vw,66px));
  display:flex;justify-content:space-between;align-items:end;margin:0;pointer-events:none
}
#arenaControls>.round-tracks>.round-track{width:32%;min-width:0;flex-wrap:wrap;background:transparent;border:0}
#arenaControls .round-track>small{display:inline-flex;align-items:center;align-self:stretch;padding:2px 5px;background:#211a17dc}
#arenaControls.battle-chat-expanded>.round-tracks{bottom:calc(clamp(58px,7vw,88px) + 3px)}
@media(max-width:650px){
  #arenaControls>.round-tracks{right:1.5%}
  #arenaControls.battle-chat-expanded>.round-tracks{bottom:calc(clamp(58px,7vw,88px) + 32px)}
}

#panel #arenaChatDesk #battleChatDock:has(#chatBody[hidden]) #gameChat{
  flex:0 0 auto;
}
#battleChatDock .game-chat-channels{flex:none}

.scene:has(#arenaControls.battle-chat-expanded) #stage{
  background-image:var(--arena-panorama,none);
  background-size:cover;background-position:center bottom;
  background-origin:content-box;background-clip:content-box;background-repeat:no-repeat;
}


/* Place the equipped moves immediately above the hero's stat row. */
#arenaControls {
  --stat-row-height:calc(clamp(20px,2.9vw,40px) + 6px);
  --skill-diameter:clamp(30px,3.4vw,46px);
  --dock-bottom:calc(2% + var(--stat-row-height) + 6px);
}
#arenaControls .arena-skill-dock {
  position:absolute;left:1.5%;bottom:var(--dock-bottom);width:max-content;
  max-width:39%;box-sizing:border-box;display:flex;align-items:center;
  gap:4px;padding:3px;overflow-x:auto;scrollbar-width:thin;pointer-events:auto;
}
#arenaControls .arena-skill-dock[hidden] { display:none; }
.arena-skill-dock .ev-bar { gap:4px; }
.arena-skill-dock .ev-button,.arena-skill-dock .dock-basic { flex:none; }
.arena-skill-dock .ev-button>span,.arena-skill-dock .dock-basic {
  box-sizing:border-box;width:var(--skill-diameter);height:var(--skill-diameter);
  min-width:0;min-height:0;border:2px ridge #b39868;border-radius:50%;
  background:#241d18;display:grid;place-items:center;padding:0;
}
.arena-skill-dock .dock-basic img { width:88%;height:88%;object-fit:contain; }
.arena-skill-dock .dock-basic[aria-pressed=true] { border-color:#ffda8b; }
.arena-skill-dock .ev-button small { bottom:0; }
.arena-skill-dock .vortex { font-size:20px; }
#arenaControls:has(.arena-skill-dock:not([hidden]))>.round-tracks {
  bottom:calc(var(--dock-bottom) + var(--skill-diameter) + 16px);
}
#arenaControls.battle-chat-expanded {
  --skill-diameter:clamp(15px,1.7vw,23px);
  --dock-bottom:calc(clamp(58px,7vw,88px) + 2px);
}
#arenaControls.battle-chat-expanded .arena-skill-dock,
#arenaControls.battle-chat-expanded .arena-skill-dock .ev-bar { gap:2px; }
#arenaControls.battle-chat-expanded .arena-skill-dock { padding:1px; }
#arenaControls.battle-chat-expanded .arena-skill-dock .vortex { font-size:10px; }
#arenaControls.battle-chat-expanded .arena-skill-dock .ev-button small { font-size:6px; }
.wheel-targets .ev-options { display:grid;gap:2px;margin-top:2px; }
.wheel-targets .ev-options label,.wheel-targets .ev-options select,.wheel-skill-info { font-size:10px; }
.wheel-targets .ev-options select { width:auto;padding:1px; }
.wheel-skill-info,.wheel-targets .racial-hints { max-width:18em;color:#fff0cd;background:#181712d9; }
.wheel-skill-info a { color:#a9dfd4; }
@media(max-width:600px) {
  #arenaControls { --stat-row-height:calc(2 * clamp(20px,2.9vw,40px)); }
  #arenaControls .arena-skill-dock { max-width:35%; }
}

#arenaControls .wheel-targets .zone-field:disabled {
  filter:grayscale(1);opacity:.5;
}
#arenaControls .zone-field:disabled label,
#arenaControls .zone-field:disabled input { cursor:not-allowed; }
#arenaControls .wheel-targets .zone-field:disabled input:checked+span {
  border-color:#786f62;background:#242426;
}
#arenaControls .wheel-targets .ev-options { margin:4px auto 2px; }
#duelTurn label:has(select:disabled) { color:#aaa; }

.turn-modes {
  display:flex;justify-content:center;gap:2px;margin:0 auto 3px;
}
#turn .turn-mode,#duelTurn .turn-mode {
  position:relative;display:block;margin:0;
}
.turn-mode input {
  position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;
}
.turn-mode span {
  display:grid;place-items:center;gap:0;padding:2px 3px;white-space:nowrap;
  border:1px solid #877552;background:#211d18;color:#eadcc1;
  font:600 10px/1.1 Georgia,serif;text-align:center;
}
.turn-mode input:checked+span {
  border-color:#f0d096;background:#554026;color:#fff4da;box-shadow:inset 0 -2px #dfba73;
}
.turn-mode input:focus-visible+span { outline:2px solid #9ce4d6;outline-offset:1px; }
.turn-mode input:disabled { cursor:not-allowed; }
.strike-style-hint {
  display:block;margin:2px auto 0;width:fit-content;max-width:24em;padding:1px 4px;
  color:#f3e6cb;background:#201b16ef;text-align:center;font:11px/1.25 Georgia,serif;
}
#duelTurn .turn-modes { flex-basis:100%; }
#duelTurn select:disabled { filter:grayscale(1);opacity:.55; }

.strike-choices {
  display:inline-flex;position:relative;align-items:center;justify-content:center;gap:3px;
}
#turn .strike-choice,#duelTurn .strike-choice {
  display:block;position:static;margin:0;cursor:pointer;
}
.strike-choice input {
  position:absolute;inline-size:1px;block-size:1px;margin:0;clip-path:inset(50%);overflow:hidden;
}
.strike-face {
  display:grid;place-items:center;width:26px;height:26px;box-sizing:border-box;
  background:#211c17;border:1px solid #897550;border-radius:4px;
}
.strike-face svg {
  display:block;width:23px;height:23px;color:var(--fist-color);
}
.strike-choice[data-strike=normal] { --fist-color:#83df9a; }
.strike-choice[data-strike=quick] { --fist-color:#ffe262; }
.strike-choice[data-strike=heavy] { --fist-color:#ffab53; }
.strike-choice[data-strike=feint] { --fist-color:#ff716b; }
.strike-choice input:checked+.strike-face {
  border-color:#fff0ba;background:#50412c;box-shadow:inset 0 -2px #efd391;
}
.strike-choice input:focus-visible+.strike-face { outline:2px solid #a1e3de;outline-offset:1px; }
.strike-choice input:disabled+.strike-face { opacity:.5;cursor:not-allowed; }
.strike-tooltip {
  display:none;position:absolute;z-index:5;bottom:100%;left:50%;transform:translateX(-50%);
  width:180px;max-width:80vw;padding:5px 7px;border:1px solid #9c845d;
  background:#191611;color:#f6e7c7;font:12px/1.3 Georgia,serif;text-align:center;pointer-events:none;
}
.strike-tooltip strong { display:block;color:#ffdf9d; }
.strike-choice:hover .strike-tooltip,.strike-choice input:focus-visible~.strike-tooltip { display:block; }
.combat-mark--poison,.duel-poison-log{color:#b8e58e}
.duel-hud + .combat-mark--poison,.duel-hud ~ .combat-mark--poison{display:inline-block;margin:.2rem .4rem .2rem 0}
.duel-poison-log{margin:.35rem 0;padding-inline-start:1.3rem}
.arena-hit-value.is-poison{color:#b8e58e}

/* The equipped figure shares the same side rails in the bag, profile and arena. */
.eq-doll{position:relative;isolation:isolate}
.eq-doll>.gear-left,.eq-doll>.gear-right{position:relative;z-index:1;grid-row:1}
.eq-doll>.gear-left{grid-column:1}
.eq-doll>.gear-right{grid-column:3}
.eq-doll .eq-worn:after{content:"";position:absolute;inset:auto 0 0;height:2px;background:var(--condition);pointer-events:none}
.eq-doll>.gear-figure{position:absolute;inset:1% 15%;width:70%;height:98%;object-fit:contain;pointer-events:none}
.eq-doll>#inventoryStage{inset:1% 15%;width:70%;height:98%;object-fit:contain}
.inventory-hero>.gear-card,.fighter-profile-stage>.gear-card{
  box-sizing:border-box;width:100%;height:auto;min-height:0;aspect-ratio:4/5;
  place-self:start center;margin-inline:auto;padding:2px;grid-template-rows:minmax(0,1fr);
  border:1px solid #665b46;box-shadow:none;background:#24231f url('/art/fighter-profile-overlook.webp') center / cover;
}
.gear-card>.gear-left,.gear-card>.gear-right{align-self:stretch;min-height:0;aspect-ratio:auto}
.gear-card .eq-cell{border-radius:0;margin:0;padding:0;min-width:0;min-height:0}
.gear-card .eq-cell:disabled{opacity:1;cursor:default}
.gear-card .eq-cell:focus-visible{outline:2px solid #f1cd80;outline-offset:-2px}
.gear-card .profile-gear-slot{overflow:visible}
.gear-card .profile-gear-slot:is(:hover,:focus){z-index:3}
.gear-card .gear-right .profile-gear-tip{inset-inline-start:auto;inset-inline-end:100%}

.gear-icon-tile{
  --tile-light:#c5b59a;--tile-mid:#977a5e;--tile-edge:#523929;
  position:relative;display:grid;place-items:center;box-sizing:border-box;aspect-ratio:1;min-width:0;min-height:0;
  background:radial-gradient(ellipse at center,var(--tile-light) 0%,var(--tile-mid) 58%,var(--tile-edge) 100%);
  box-shadow:inset 0 0 0 1px rgb(51 30 17 / 45%);
}
.gear-icon-tile>.gear-upgrade{
  position:absolute;top:3px;right:4px;z-index:2;pointer-events:none;
  color:#ffe8ac;text-shadow:0 1px 2px #140c04,0 0 3px #140c04;font:700 clamp(10px,1vw,14px)/1.1 Georgia,serif;
}
.gear-enhancement-light,.gear-enhancement-mask{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.gear-enhancement-light{z-index:1;opacity:var(--glow-opacity);filter:drop-shadow(0 0 var(--glow-blur) #fff)}
.gear-enhancement-mask{filter:brightness(0) invert(1);mask-image:linear-gradient(225deg,#000 calc(var(--glow-end) - 8%),transparent var(--glow-end))}
.gear-enhancement-mask.complete{mask-image:none}
.gear-enhancement-mask>img{width:94%;height:94%;object-fit:contain}
.gear-enhancement-mask .smith-socket-icons{display:none}
.gear-icon-tile[data-weapon-aura]{
  --aura-inner:2px;--aura-outer:4px;--aura-light:.52;--aura-sparks:.40;--aura-core:#ffcf66;
}
.gear-icon-tile[data-weapon-aura="8"]{
  --aura-inner:3px;--aura-outer:7px;--aura-light:.72;--aura-sparks:.64;--aura-core:#ffd978;
}
.gear-icon-tile[data-weapon-aura="9"]{
  --aura-inner:5px;--aura-outer:11px;--aura-light:.91;--aura-sparks:.94;--aura-core:#ffe096;
}
[data-weapon-aura] .gear-enhancement-light{
  opacity:var(--aura-light);
  filter:drop-shadow(0 0 var(--aura-inner) var(--aura-core)) drop-shadow(0 0 var(--aura-outer) #ff9f27);
  animation:gear-gold-breath 3.1s ease-in-out infinite alternate;
}
[data-weapon-aura] .gear-enhancement-mask{filter:brightness(0) invert(1) sepia(1) saturate(2)}
@keyframes gear-gold-breath{from{opacity:calc(var(--aura-light) * .78)}to{opacity:var(--aura-light)}}
.gear-aura-sparks{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;mix-blend-mode:screen}
.gear-aura-sparks i{
  position:absolute;top:var(--y,28%);left:var(--x,78%);width:9px;height:9px;border-radius:50%;
  background:radial-gradient(circle,#fffbe7 0 12%,#ffdc76 20%,#ffb54666 40%,transparent 70%);
  opacity:0;animation:gear-gold-spark var(--cycle,2.9s) linear infinite;animation-delay:var(--delay,-1.3s);
}
.gear-aura-sparks i:nth-child(2){--x:63%;--y:42%;--cycle:3.7s;--delay:-2.6s}
.gear-aura-sparks i:nth-child(3){--x:83%;--y:36%;--cycle:4.1s;--delay:-.3s}
.gear-aura-sparks i:nth-child(4){--x:54%;--y:31%;--cycle:3.1s;--delay:-.9s}
.gear-aura-sparks i:nth-child(5){--x:71%;--y:18%;--cycle:3.5s;--delay:-3s}
.gear-aura-sparks i:nth-child(6){--x:62%;--y:51%;--cycle:4.3s;--delay:-1.8s}
@keyframes gear-gold-spark{
  0%{transform:translate(-4px,2px) scale(.45);opacity:0}
  14%{opacity:var(--aura-sparks)}
  28%,47%{transform:translate(0,-5px) scale(.7);opacity:0}
  48%{transform:translate(6px,5px) scale(.5);opacity:0}
  61%{opacity:var(--aura-sparks)}
  77%,100%{transform:translate(9px,-2px) scale(1.05);opacity:0}
}
@media(prefers-reduced-motion:reduce){
  [data-weapon-aura] .gear-enhancement-light,.gear-aura-sparks i{animation:none}
  .gear-aura-sparks i:nth-child(odd){opacity:calc(var(--aura-sparks) * .65)}
}
button.bag-cell.jewel-scroll{position:relative;overflow:hidden;min-height:0;box-sizing:border-box}
button.bag-cell.jewel-scroll>img{
  position:absolute;inset:4%;width:92%;height:92%;max-width:92%;max-height:92%;object-fit:contain;
}
button.bag-cell.jewel-scroll>small{position:absolute;inset:auto 3px 2px auto}
.jewel-scroll-mark{position:absolute;left:0;right:0;bottom:23%;color:#ffe08a;text-shadow:0 1px 3px #201004;font-weight:700}
.gear-icon-tile[data-gear-rank="1"]{--tile-light:#97b1cf;--tile-mid:#4272a5;--tile-edge:#15325b}
.gear-icon-tile[data-gear-rank="2"]{--tile-light:#cfb982;--tile-mid:#be7827;--tile-edge:#71340c}
.gear-icon-tile[data-gear-rank="3"]{--tile-light:#cf9583;--tile-mid:#a74037;--tile-edge:#61181e}
.eq-doll button.eq-cell{min-width:0;min-height:0;padding:0;margin:0}
.eq-cell:has(>.gear-icon-tile){container-type:size}
.eq-cell>.gear-icon-tile{width:min(100cqw,100cqh)}
.eq-jewels .eq-cell>.gear-icon-tile{width:100%;height:100%;aspect-ratio:auto}
.eq-jewels .gear-icon-tile>img{width:min(94cqw,94cqh);height:min(94cqw,94cqh);object-fit:contain}
.eq-cell>.gear-icon-belt{
  width:100%;height:100%;aspect-ratio:auto;overflow:hidden;
  grid-template:minmax(0,1fr) / minmax(0,1fr);
}
/* Belt plates have transparent space above and below the leather. */
.eq-cell>.gear-icon-belt>img{
  width:min(100cqw,250cqh);height:min(100cqw,250cqh);max-width:none;max-height:none;
}
.bag-cell>.gear-icon-tile{width:100%}
.inventory-inspect>.gear-icon-tile{width:39px}
.equipment-dialog .gear-icon-tile{width:min(100%,290px,52vh)}
.gear-icon-tile>img,.bag-cell .gear-icon-tile>img,.equipment-dialog .gear-icon-tile>img{
  display:block;width:94%;height:94%;min-width:0;min-height:0;object-fit:contain;background:transparent;
}
.gear-icon-tile>.shield-emblem{max-width:90%;max-height:90%;box-sizing:border-box}

.profile-clan-mark{
  display:grid;justify-items:center;align-content:start;gap:12px;
  min-width:0;padding:6px 2px;text-align:center;color:#efd29c;
}
.profile-clan-mark h2{font-size:clamp(18px,2vw,26px);line-height:1.1;overflow-wrap:anywhere;max-width:100%;margin:0}
.profile-clan-mark .clan-banner{display:block;width:min(100%,190px);height:auto;aspect-ratio:122 / 230;object-fit:contain;border:0}
#fighterProfile.fighter-without-sidebar{grid-template-columns:minmax(0,1fr)}
.profile-return{color:#efd29c;justify-self:start}
@media(max-width:800px){
  body[data-screen="character"] #side{display:block}
  .profile-clan-mark .clan-banner{width:min(100%,84px)}
}

.gear-icon-tile[data-gear-rank="4"],.smith-item.chaotic,.rank.chaotic{background:radial-gradient(ellipse at 45% 32%,#8545a7,#46235c 62%,#281532);border-color:#b485d9;color:#f5dcff}

.profile-sidebar,.profile-traits{display:grid;align-content:start;gap:10px;min-width:0}
.profile-traits{grid-template-columns:minmax(0,1fr);margin-top:10px;color:#efdec0}
.profile-traits section{min-width:0;box-sizing:border-box;overflow-wrap:anywhere;hyphens:auto;padding:10px 8px;border:1px solid #77603e;background:linear-gradient(145deg,#25221d,#15181a)}
.profile-traits h3{margin:0 0 8px;font-size:clamp(15px,1.3vw,19px);line-height:1.15;color:#f1d09c}
.profile-traits dl,#fighterProfile .profile-traits dl{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:4px;margin:0}
.profile-traits dt{overflow-wrap:anywhere}
.profile-sidebar{padding:0;border:0;background:none;box-shadow:none}
.profile-traits dd,.profile-traits td{text-align:right;margin:0;font-variant-numeric:tabular-nums;color:#ffdf9f}
.profile-traits table{table-layout:fixed;width:100%;border-collapse:collapse;font-size:clamp(11px,1vw,14px);line-height:1.35}
.profile-traits th:first-child{width:40%}
.profile-traits th+th,.profile-traits td{padding-inline-start:3px}
.profile-traits th{text-align:left;font-weight:normal}
.profile-traits thead th{border-bottom:1px solid #655437;color:#d6c4a6}
.profile-traits thead th+th{text-align:right}
.profile-traits td,.profile-traits th{padding:3px 0}
.profile-traits th i{display:inline-block;width:.43em;height:.43em;background:var(--element-color);margin-right:.35em;transform:rotate(45deg)}
@media(min-width:801px){#fighterProfile.fighter-public-layout:not(.fighter-without-sidebar){grid-template-columns:minmax(172px,190px) minmax(0,1fr)}}
@media(min-width:400px) and (max-width:800px){.profile-traits{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}

@media(min-width:1100px){
  html:lang(de) body[data-screen="character"] main,html:lang(de) #fighterProfile.fighter-public-layout:not(.fighter-without-sidebar){grid-template-columns:minmax(0,240px) minmax(0,1fr)}
}

.clan-profile-link{display:grid;justify-items:center;gap:12px;width:100%;color:inherit;text-decoration:none}
.clan-profile-link:hover h2,.clan-profile-link:focus-visible h2{text-decoration:underline}
.fighter-profile-heading a.player-flag{cursor:pointer}

.gear-icon-tile.gear-ice-artifact[data-gear-rank]{
  background:#c0e7f5 url('/art/forge-plates/ice-artifact-tile.webp') center/100% 100% no-repeat;
  border-color:#ddf5ff;
  box-shadow:inset 0 0 0 1px #f2fbff9e;
  isolation:isolate;
}
.gear-ice-artifact>img,.gear-ice-artifact>.smith-gemmed-art>img{position:relative;z-index:1}
.gear-ice-artifact .smith-socket-icons{z-index:5}
.gear-ice-crystals{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.gear-ice-crystals-edge{z-index:0}
.gear-ice-crystals-item{z-index:2}
.gear-ice-crystals i{
  position:absolute;left:var(--crystal-x);top:var(--crystal-y);width:var(--crystal-size,26%);aspect-ratio:2;
  translate:-50% -50%;rotate:var(--crystal-angle);opacity:0;transform-origin:center 72%;
  background:url('/art/forge-plates/flat-ice-crystals.webp') center/contain no-repeat;
  filter:drop-shadow(0 1px 1px #21476170);
  animation:artifact-flat-crystals 8s ease-in-out infinite;
  animation-delay:var(--crystal-delay);
}
.gear-ice-crystals-edge i{
  inset:0;width:auto;aspect-ratio:auto;translate:none;rotate:none;
  background-image:url('/art/forge-plates/flat-ice-edge.webp');background-size:100% 100%;
  mask-image:radial-gradient(ellipse 82% 82% at var(--crystal-corner),black 35%,transparent 90%);
  animation-name:artifact-edge-crystals;
}
.gear-ice-crystals-edge i:nth-child(1){--crystal-corner:top left;--crystal-delay:-1s}
.gear-ice-crystals-edge i:nth-child(2){--crystal-corner:top right;--crystal-delay:-3.7s}
.gear-ice-crystals-edge i:nth-child(3){--crystal-corner:bottom right;--crystal-delay:-5.4s}
.gear-ice-crystals-edge i:nth-child(4){--crystal-corner:bottom left;--crystal-delay:-7.2s}
.gear-ice-crystals-item i:nth-child(1){--crystal-x:43%;--crystal-y:33%;--crystal-angle:-29deg;--crystal-size:22%;--crystal-delay:-.25s}
.gear-ice-crystals-item i:nth-child(2){--crystal-x:34%;--crystal-y:61%;--crystal-angle:-70deg;--crystal-size:27%;--crystal-delay:-2.7s}
.gear-ice-crystals-item i:nth-child(3){--crystal-x:68%;--crystal-y:54%;--crystal-angle:33deg;--crystal-size:23%;--crystal-delay:-4.6s}
.gear-ice-crystals-item i:nth-child(4){--crystal-x:63%;--crystal-y:79%;--crystal-angle:117deg;--crystal-size:26%;--crystal-delay:-6.2s}
.gear-ice-glints{position:absolute;inset:0;pointer-events:none;z-index:2}
.gear-ice-glints i{
  position:absolute;left:var(--light-x);top:var(--light-y);width:20%;height:20%;opacity:0;
  translate:-50% -50%;
  background:radial-gradient(circle,#fff 0%,#e0f8ff 16%,#a4e5ff9c 48%,#80cfff00 75%);
  clip-path:polygon(50% 0,57% 42%,100% 50%,57% 58%,50% 100%,43% 58%,0 50%,43% 42%);
  animation:artifact-crystal-glint 3.8s ease-in-out infinite;
  animation-delay:var(--light-time);
}
.gear-ice-glints i:nth-child(1){--light-x:52%;--light-y:19%;--light-time:-.24s}
.gear-ice-glints i:nth-child(2){--light-x:30%;--light-y:27%;--light-time:-1.1s}
.gear-ice-glints i:nth-child(3){--light-x:72%;--light-y:29%;--light-time:-2.06s}
.gear-ice-glints i:nth-child(4){--light-x:52%;--light-y:44%;--light-time:-2.9s}
[data-ice-slot="weapon"] .gear-ice-crystals-item i{--crystal-size:22%}
[data-ice-slot="weapon"] .gear-ice-crystals-item i:nth-child(1){--crystal-x:50%;--crystal-y:27%}
[data-ice-slot="weapon"] .gear-ice-crystals-item i:nth-child(2){--crystal-x:51%;--crystal-y:41%}
[data-ice-slot="weapon"] .gear-ice-crystals-item i:nth-child(3){--crystal-x:49%;--crystal-y:55%}
[data-ice-slot="weapon"] .gear-ice-crystals-item i:nth-child(4){--crystal-x:50%;--crystal-y:69%}
[data-ice-slot="weapon"] .gear-ice-glints i{--light-x:50%}
[data-ice-slot="boots"] .gear-ice-crystals-item i:nth-child(1),
[data-ice-slot="gloves"] .gear-ice-crystals-item i:nth-child(1){--crystal-x:36%}
[data-ice-slot="boots"] .gear-ice-glints i:nth-child(1),[data-ice-slot="gloves"] .gear-ice-glints i:nth-child(1){--light-x:34%}
[data-ice-slot="boots"] .gear-ice-glints i:nth-child(4),[data-ice-slot="gloves"] .gear-ice-glints i:nth-child(4){--light-x:67%}
@keyframes artifact-flat-crystals{
  0%,9%{opacity:0;scale:.38}
  22%,40%{opacity:.94;scale:1}
  54%{opacity:0;scale:.98}
  100%{opacity:0;scale:.38}
}
@keyframes artifact-edge-crystals{
  0%,9%,65%,100%{opacity:0}
  25%,45%{opacity:.96}
}
@keyframes artifact-crystal-glint{
  0%,15%,36%,100%{opacity:0;scale:.12}
  23%{opacity:.98;scale:1}
  30%{opacity:.42;scale:.6}
}
@media(prefers-reduced-motion:reduce){
  .gear-ice-crystals i{animation:none}
  .gear-ice-crystals i:nth-child(odd){opacity:.72}
  .gear-ice-glints i{animation:none;opacity:.28;scale:.5}
}

.gear-icon-tile.gear-excellent[data-gear-rank]{
  isolation:isolate;border-color:#48b964;
  box-shadow:inset 0 0 0 1px #48b964;
  background:radial-gradient(ellipse at 46% 32%,#2a6345,#173d2b 55%,#0b2117 94%);
}
.gear-excellent>img,.gear-excellent>.smith-gemmed-art>img{
  filter:drop-shadow(0 0 5px #3ba84d88) drop-shadow(0 3px 3px #080e0c);
}
.gear-excellent-weapon>img,.gear-excellent-weapon>.smith-gemmed-art>img{
  filter:drop-shadow(0 0 3px #66ff79d0) drop-shadow(0 0 9px #25ea52cc)
    drop-shadow(0 0 20px #30be50ae);
  animation:excellent-weapon-glow 6.8s ease-in-out infinite;
}
.gear-excellent-weapon>img,.gear-excellent-weapon>.smith-gemmed-art{position:relative;z-index:1}
wonk-excellent-aura{
  position:absolute;inset:0;display:block;pointer-events:none;
  opacity:.85;animation:excellent-aura-fade 6.8s ease-in-out infinite;
}
wonk-excellent-aura>canvas{display:block;width:100%;height:100%}
@keyframes excellent-aura-fade{50%{opacity:0}}
@keyframes excellent-weapon-glow{
  50%{filter:drop-shadow(0 0 3px #66ff7908) drop-shadow(0 0 9px #25ea5206)
    drop-shadow(0 0 20px #30be5004)}
}
.gear-quality-mark{
  position:absolute;top:3px;right:5px;z-index:8;font:bold italic clamp(11px,2.1cqw,19px)/1 Georgia,serif;
  color:#edca74;text-shadow:-1px -1px #44311a,1px 1px #42270c,0 0 5px #f5bc5970;pointer-events:none;
}
.gear-chaos-ii .gear-quality-mark{color:#efd8ff;font-style:normal;text-shadow:0 1px 2px #290d3e,0 0 6px #bd6cdf}
.gear-chaos-ii .gear-upgrade{right:auto;left:4px}
.gear-excellent-hammer-tint{
  position:absolute;inset:3%;z-index:2;pointer-events:none;
  background:linear-gradient(125deg,#ff2828 6%,#e92468 24%,#ff52ad 42%,#d91c87 57%,#8b36ff 74%,#af3cff 86%,#ff2828 98%) 10% 50%/280% 280%;
  mask:var(--excellent-shape) center/contain no-repeat;
  mix-blend-mode:overlay;opacity:.5;animation:excellent-hammer-tint 6.8s ease-in-out infinite;
  animation-delay:var(--excellent-tint-phase,0s);
}
.gear-excellent:has(>.smith-gemmed-art)>:is(.gear-excellent-hammer-tint,.gear-excellent-light){inset:0}
@keyframes excellent-hammer-tint{
  25%{background-position:64% 34%;opacity:.325}
  50%{background-position:94% 50%;opacity:0}
  75%{background-position:38% 76%;opacity:.325}
}
.gear-excellent-light{
  position:absolute;inset:3%;z-index:3;pointer-events:none;
  mask:var(--excellent-light) center/contain no-repeat;
  background:radial-gradient(ellipse,#e3ffe6 2%,#a6ff7f 45%,#40fa87 90%);
  opacity:.62;mix-blend-mode:screen;animation:excellent-gem-twinkle 3.4s ease-in-out infinite;
}
.gear-robe-energy{
  background:linear-gradient(122deg,#38ff9c38 15%,#2cf577 40%,#e4ffe8 51%,#3bfb9060 70%) 0 50%/250% 250%;
  animation:excellent-robe-flow 4.5s ease-in-out infinite alternate;
}
@keyframes excellent-gem-twinkle{24%,74%{opacity:.28}39%,86%{opacity:.96}}
@keyframes excellent-robe-flow{to{background-position:100% 50%;opacity:.9}}
.smith-weapon-sockets .smith-socket-icons .smith-gem{
  filter:brightness(1.2) drop-shadow(0 0 2px var(--socket-light));
  animation:socket-gem-twinkle 3.2s ease-in-out infinite;
}
.smith-weapon-sockets .smith-gem:nth-child(2){animation-delay:-1.1s}
.smith-weapon-sockets .smith-gem:nth-child(3){animation-delay:-2.2s}
@keyframes socket-gem-twinkle{54%,78%{filter:brightness(1.8) drop-shadow(0 0 4px var(--socket-light))}}
.gear-excellent-trace{
  position:absolute;inset:0;z-index:7;pointer-events:none;
  filter:blur(.7px) drop-shadow(0 0 2px #57fa64);
}
@property --excellent-sweep{
  syntax:'<angle>';initial-value:0deg;inherits:false;
}
.gear-excellent-trace::before{
  content:'';position:absolute;inset:0;padding:3px;border-radius:inherit;
  background:conic-gradient(from var(--excellent-sweep),transparent 0deg,#40e85b30 17deg,
    #65fa727d 47deg,#b4ff9dd9 67deg,#5aef697a 77deg,transparent 88deg);
  mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;
  animation:excellent-border-light 3.4s linear infinite;
}
@keyframes excellent-border-light{to{--excellent-sweep:1turn}}
@media(prefers-reduced-motion:reduce){
  .gear-excellent-trace::before,.gear-excellent-weapon img,.gear-excellent-hammer-tint,wonk-excellent-aura{animation:none}
  .gear-excellent-light,.smith-weapon-sockets .smith-socket-icons .smith-gem{animation:none}
}
.loot-excellent,.raid-drop-name.loot-excellent{color:#8cea92}
#gameChat .loot-excellent,.battle-log .loot-excellent,#battleLog .loot-excellent{color:#17672e;font-weight:bold}
.boss-reward-loot{display:block;margin:.15em 0 0}
