.ect-root{box-sizing:border-box;container-type:size;display:grid;grid-template-rows:auto minmax(0,1fr);gap:7px;width:100%;height:100%;min-width:0;min-height:0;padding:10px 8px;border:2px solid #ceaa68;border-radius:16px;background:linear-gradient(135deg,#774f32,#4b3325);box-shadow:inset 0 0 0 2px #e4c89066,0 5px 12px #1b241a55;color:#fff0c7;isolation:isolate}
.ect-title{font:700 clamp(13px,12cqw,20px)/1.05 Georgia,serif;text-align:center;margin:0;text-shadow:0 1px #271d16}
.ect-list{display:grid;grid-template-rows:repeat(7,minmax(0,1fr));gap:5px;min-width:0;min-height:0}
.ect-row{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px;padding:3px 6px;border:1px solid #c6a26a;border-radius:10px;background:radial-gradient(ellipse at 35% 10%,#fff7db,#e3c697);box-shadow:inset 0 1px #fff5d3,0 2px 2px #20170e44;min-width:0;min-height:0;color:#563b25}
.ect-icon{position:relative;display:grid;place-items:center;justify-self:center;width:100%;height:100%;max-width:52px;max-height:52px;min-width:0;min-height:0;filter:drop-shadow(0 2px 1px #60452a44)}
.ect-icon>.em3-gem-visual{position:absolute;inset:0;display:block;width:100%;height:100%}
.ect-icon svg,.ect-flight svg{display:block;width:100%;height:100%;overflow:hidden}
.ect-count{font:700 clamp(14px,16cqw,23px)/1 Georgia,serif;font-variant-numeric:tabular-nums;white-space:nowrap;color:#4a5c2f;text-shadow:0 1px #fff4c9;min-width:1.5ch;text-align:right}
.ect-flight-layer{position:fixed;inset:0;z-index:40;pointer-events:none;overflow:hidden;contain:strict}
.ect-flight{position:absolute;left:0;top:0;display:block;will-change:transform,opacity;pointer-events:none;transform-origin:center;filter:drop-shadow(0 3px 3px #37281860)}
.ect-flight .em3-gem-visual{position:relative;display:block;width:100%;height:100%}
.ect-flight .em3-visual-special{position:absolute;inset:0;pointer-events:none}
.ect-root[data-art-state=loading] .ect-icon{opacity:.35}
.ect-root[data-compact=true]{padding:5px 3px;gap:3px;border-radius:12px}
.ect-root[data-compact=true] .ect-title{font-size:12px}
.ect-root[data-compact=true] .ect-list{gap:3px}
.ect-root[data-compact=true] .ect-row{padding:2px 3px;gap:2px;border-radius:7px}
.ect-root[data-compact=true] .ect-count{font-size:13px}
@container(max-width:90px){.ect-title{font-size:12px}.ect-list{gap:3px}.ect-row{padding:2px 3px;gap:2px;border-radius:7px}.ect-count{font-size:13px}.ect-icon{max-width:32px;max-height:32px}}
@container(max-height:230px) and (min-width:95px){.ect-list{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:4px}.ect-row{grid-template-columns:minmax(0,1fr) auto;padding:2px 3px;gap:2px}.ect-title{font-size:13px}.ect-count{font-size:13px}.ect-icon{max-width:32px;max-height:32px}}
@media(prefers-reduced-motion:reduce){.ect-root *{animation:none!important;transition:none!important}.ect-flight{display:none}}
/* At very short game heights each counter owns a full readable line box.
   All seven icons/counts remain; no clipping masks or zero-height rows. */
@media(max-height:300px){
 .ect-root{padding:1px 3px;gap:1px}
 .ect-root .ect-title{font:700 12px/14px Georgia,serif}
 .ect-root .ect-list{gap:1px}
 .ect-root .ect-row{padding:0 2px;gap:2px;min-height:16px}
 .ect-root .ect-count{font:700 12px/14px Georgia,serif}
}
