/* Single-choice menus share the calculator's graphite and engraved gold materials. */
.gg-calculator:has(.gg-choice-menu:not([hidden])){position:relative;z-index:10}
.gg-calculator :is(.gg-context-fields,.gg-rank-stage):has(.gg-choice-menu:not([hidden])){z-index:5}
.gg-calculator .gg-public-left:has(.gg-choice-menu:not([hidden])){position:relative;z-index:60}
/* The outer SVG contour is a configurator sibling at z-index:4. */
.gg-calculator .gg-contour-shell:has(.gg-choice-menu:not([hidden])){z-index:5}
.gg-calculator .gg-configurator:has(.gg-choice-menu:not([hidden])){z-index:3}
.gg-calculator .gg-choice-picker{position:relative;align-self:start}
.gg-calculator .gg-choice-trigger{display:flex;align-items:center;gap:12px;min-height:48px;width:100%;padding:12px 14px;border:1px solid var(--gg-border);border-radius:10px;background:var(--gg-control-surface);color:var(--gg-text);font:inherit;font-weight:600;text-align:left;cursor:pointer}
.gg-calculator .gg-choice-trigger:is(:hover,:focus-visible,[aria-expanded=true]){border-color:transparent;background:var(--gg-control-surface) padding-box,var(--gg-selected-rim) border-box;outline:none}
.gg-calculator .gg-choice-trigger .gg-public-icon{width:20px;height:20px}
.gg-calculator .gg-choice-trigger .gg-disclosure-chevron{margin-left:auto}
.gg-calculator .gg-choice-trigger[aria-expanded=true] .gg-disclosure-chevron{transform:rotate(180deg)}
.gg-calculator .gg-choice-menu{position:absolute;z-index:50;top:calc(100% + 6px);left:0;right:0;padding:6px;max-height:var(--gg-choice-menu-height,280px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--gg-metal-mid) var(--gg-panel);border:1px solid transparent;border-radius:10px;background:linear-gradient(var(--gg-panel),var(--gg-panel)) padding-box,var(--gg-selected-rim) border-box;box-shadow:inset 0 0 0 4px #dbb65d08,0 12px 28px #0008}
.gg-calculator .gg-choice-menu[hidden]{display:none}
.gg-calculator .gg-choice-menu-above{top:auto;bottom:54px}
.gg-calculator .gg-choice-menu>button{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:10px;border:0;border-radius:6px;background:transparent;color:var(--gg-text);font:inherit;font-weight:600;text-align:left;cursor:pointer}
.gg-calculator .gg-choice-menu>button{position:relative}.gg-calculator .gg-choice-menu>button:is(:hover,:focus-visible){background:#ffffff12;color:var(--gg-text);outline:none}.gg-calculator .gg-choice-menu>button:focus-visible{box-shadow:inset 0 0 0 1px #ffffff2e}.gg-calculator .gg-choice-menu>button[aria-selected=true]{color:var(--gg-gold-text)}.gg-calculator .gg-choice-menu>button[aria-selected=true]::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:linear-gradient(180deg,var(--gg-metal-light),var(--gg-metal-core))}
.gg-calculator .gg-choice-menu .gg-public-icon{width:20px;height:20px}
.gg-calculator .gg-choice-check{margin-left:auto;width:14px;height:14px;fill:none;stroke:var(--gg-metal-light);stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;visibility:hidden}
.gg-calculator .gg-choice-menu [aria-selected=true] .gg-choice-check{visibility:visible}
@media(prefers-reduced-motion:no-preference){.gg-calculator .gg-choice-menu:not([hidden]){animation:gg-choice-menu-in 180ms ease-out}}

@keyframes gg-choice-menu-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}

.gg-choice-image{flex:none;width:34px;height:34px;margin:-4px 0;object-fit:contain;filter:drop-shadow(0 2px 4px #0008)}
.gg-calculator .gg-choice-trigger>.gg-choice-image{width:28px;height:28px;margin:-3px 0}
.gg-calculator .gg-choice-badge{margin-left:auto;padding:2px 6px;border-radius:5px;font-size:11px;font-weight:700;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}
.gg-calculator .gg-choice-trigger .gg-choice-badge{margin-right:4px}
.gg-calculator .gg-choice-trigger .gg-choice-badge+.gg-disclosure-chevron{margin-left:0}
.gg-calculator .gg-choice-boxed .gg-choice-badge+.gg-choice-box{margin-left:10px}
.gg-calculator .gg-choice-box{flex:none;display:grid;place-items:center;width:18px;height:18px;margin-left:auto;border:1px solid transparent;border-radius:5px;background:var(--gg-control-surface) padding-box,var(--gg-control-rim) border-box;box-shadow:inset 0 1px #ffffff08,inset 0 -1px #0005;transition:background 160ms}
.gg-calculator .gg-choice-box svg{width:12px;height:12px;fill:none;stroke:#1c1608;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:opacity 160ms}
.gg-calculator .gg-choice-menu [aria-selected=true] .gg-choice-box{background:var(--gg-frame-rim) padding-box,var(--gg-selected-rim) border-box;box-shadow:inset 0 1px #fff0be90,0 1px 3px #0006}
.gg-calculator .gg-choice-menu [aria-selected=true] .gg-choice-box svg{opacity:1}
@media(prefers-reduced-motion:reduce){.gg-calculator .gg-choice-box,.gg-calculator .gg-choice-box svg{transition:none}}
.gg-calculator .gg-choice-stack{display:flex;flex:none;align-items:center;margin:-4px 0}
.gg-calculator .gg-choice-stack .gg-choice-image{flex:none;width:34px;height:34px;margin:0;border-radius:6px;box-shadow:0 0 0 2px var(--gg-panel,#1b1e20);filter:none}
.gg-calculator .gg-choice-stack .gg-choice-image+.gg-choice-image{margin-left:-12px}
.gg-calculator .gg-choice-stack-more{margin-left:4px;color:var(--gg-gold-text);font-size:12px;font-weight:700}
.gg-calculator .gg-choice-trigger-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
