/* Three permanent sockets in the combat deck. Labels are for assistive tech;
   the active preset is a filled, faceted moonstone rather than a named mode. */
/* Share the existing seven-column spacing. The first visible gem begins at
   Q's left edge; its transparent target extends around the smaller artwork. */
#game-ui .quickbar{--preset-grid-gap:5px;--preset-gem-size:calc(50px / 3);--preset-hit-width:32px}
#game-ui .quickbar .wallet{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));column-gap:var(--preset-grid-gap);padding-right:0}
#game-ui .quickbar .wallet>b{grid-column:1 / 4;grid-row:1;justify-self:start;margin-left:0;margin-right:0;max-width:calc(100% - (var(--preset-hit-width) - var(--preset-gem-size)) / 2);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#game-ui .skill-preset-sockets{display:flex;align-items:center;gap:0;grid-column:4 / 7;grid-row:1;justify-self:start;margin-left:calc((var(--preset-gem-size) - var(--preset-hit-width)) / 2 - var(--preset-gem-size) / 60)}
#game-ui .skill-preset-sockets button{display:grid;place-items:center;position:relative;flex:0 0 var(--preset-hit-width);width:var(--preset-hit-width);height:44px;min-width:var(--preset-hit-width);min-height:44px;margin:0;padding:0;border:0;border-radius:4px;background:transparent;color:#7c927a;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#game-ui .skill-preset-sockets button:hover{background:#a4c8a80d;color:#b2c9ac}
#game-ui .skill-preset-sockets button:focus-visible{outline:2px solid #e6d0a1;outline-offset:-2px;background:#a4c8a815}
#game-ui .skill-preset-sockets button:active{background:#b6ddb222}
#game-ui .preset-gem{display:block;width:var(--preset-gem-size);height:var(--preset-gem-size);pointer-events:none}
#game-ui .preset-gem svg{display:block;width:100%;height:100%;overflow:visible}
#game-ui .gem-rim{fill:#0b1914;stroke:currentColor;stroke-width:1.2}
#game-ui .gem-core{fill:#172d22;stroke:#3e5942;stroke-width:.8}
#game-ui .gem-facet{fill:none;stroke:transparent;stroke-width:.8}
#game-ui .skill-preset-sockets button[aria-pressed="true"]{color:#d5e5ad}
#game-ui .skill-preset-sockets button[aria-pressed="true"] .preset-gem{filter:drop-shadow(0 0 calc(8px / 3) #b2d88766)}
#game-ui .skill-preset-sockets button[aria-pressed="true"] .gem-rim{fill:#405236;stroke:#d2dca0}
#game-ui .skill-preset-sockets button[aria-pressed="true"] .gem-core{fill:#cae5a0;stroke:#eff6c4}
#game-ui .skill-preset-sockets button[aria-pressed="true"] .gem-facet{stroke:#739b64}
@media(min-width:761px) and (min-height:601px),(min-width:1101px){
 #game-ui .quickbar{row-gap:4px;padding-block:4px}
 #game-ui .quickbar .wallet{height:44px;min-height:44px;column-gap:var(--preset-grid-gap)}
 #game-ui .quickbar .wallet>b{margin-left:0;font-size:16px}
}
@media(max-width:760px),(orientation:landscape) and (max-height:600px) and (max-width:1100px){
 /* V147: keep a real 4px gap below the 44px sockets/return row, matching PC.
    Give the deck that same 4px so QWER and the menu targets never clip. */
 #game-ui{--hud-height:calc(216px + env(safe-area-inset-bottom))}
 #game-ui>footer{grid-template-rows:62px 146px}
 #game-ui .quickbar{--preset-hit-width:44px}
 #game-ui>footer .quickbar .wallet{display:grid;height:44px;min-height:44px;padding:0;margin:0 0 4px;column-gap:var(--preset-grid-gap)}
 #game-ui>footer .quickbar .wallet>b{display:block}
 #game-ui .field-gold{display:none}
}
@media(orientation:landscape) and (max-height:600px) and (max-width:1100px){
 #game-ui{--hud-height:calc(148px + env(safe-area-inset-bottom))}
 #game-ui>footer{grid-template-rows:minmax(0,1fr)}
}

/* Match the current QWER grid gaps without changing those button dimensions. */
@media(min-width:761px) and (max-width:1150px){#game-ui .quickbar{--preset-grid-gap:3px}}
@media(min-width:540px) and (max-height:500px){#game-ui .quickbar{--preset-grid-gap:4px}}
@media(orientation:landscape) and (max-height:600px) and (max-width:650px){#game-ui .quickbar{--preset-grid-gap:3px}}
@media(max-width:360px){#game-ui .quickbar{--preset-grid-gap:2px}}
