.wagon-loadout{position:relative;margin:12px 0;border:1px solid #8f6d3b;border-radius:12px;padding:12px;background:linear-gradient(145deg,#183328,#10251d);box-shadow:inset 0 1px #efd48a24;color:#dce8d9}
.wagon-loadout::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:.16;background:repeating-linear-gradient(90deg,transparent 0 47px,#d7b76816 48px 49px)}
.wagon-loadout>*{position:relative;z-index:1}.wagon-loadout__head{display:flex;align-items:center;justify-content:space-between;gap:12px}.wagon-loadout__head p{margin:0;color:#bda46d;font:10px/1.2 var(--mono,monospace);letter-spacing:.14em;text-transform:uppercase}.wagon-loadout__head h2{margin:3px 0 0;color:#ead7a5;font-size:15px}.wagon-loadout__count{flex:none;border:1px solid #b9955355;border-radius:999px;padding:5px 9px;color:#bfcfbd;font:11px/1 var(--mono,monospace)}.wagon-loadout__count b{color:#f0d18b;font-size:13px}
.wagon-loadout__kit{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-top:11px;padding:9px;border:1px solid #a27a4266;border-radius:11px;background:linear-gradient(#0d1d17bb,#1b2a20cc)}
.wagon-loadout__slot{display:grid;min-width:0;min-height:82px;place-items:center;align-content:center;gap:4px;padding:6px;border:1px solid #987449;border-radius:8px;background:radial-gradient(circle at 50% 35%,#374a34,#18261d 72%);color:#e5d5aa;text-align:center}.wagon-loadout__slot.is-empty{border-style:dashed;opacity:.58}.wagon-loadout__slot i{font:normal 10px var(--mono,monospace)}.wagon-loadout__slot small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;font:8px/1.25 var(--mono,monospace)}button.wagon-loadout__slot{cursor:pointer}button.wagon-loadout__slot:hover:not(:disabled),button.wagon-loadout__slot:focus-visible{border-color:#f0cb78;outline:2px solid #efd48a55;outline-offset:1px}.wagon-loadout__slot:disabled{opacity:.68;cursor:default}
.wagon-loadout__slot img,.wagon-loadout__receipt-row img{width:34px;height:34px;object-fit:contain;image-rendering:pixelated}.wagon-loadout__slot .wagon-loadout__bottle-mark{font-size:22px}
.wagon-loadout__tray{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:7px;margin-top:10px;max-height:210px;overflow-y:auto;padding:3px}.wagon-loadout__bottle{display:flex;align-items:center;gap:8px;min-width:0;border:1px solid #7587645c;border-radius:9px;padding:7px 8px;background:#13261ed9;color:#dce8d9;text-align:left;font:inherit;cursor:pointer}.wagon-loadout__bottle:hover:not(:disabled),.wagon-loadout__bottle:focus-visible{border-color:#d7b768;outline:2px solid #efd48a55;outline-offset:1px}.wagon-loadout__bottle:disabled{cursor:default;opacity:.45}.wagon-loadout__bottle img{width:28px;height:28px;object-fit:contain;image-rendering:pixelated}.wagon-loadout__bottle-mark{display:grid;place-items:center;width:28px;height:28px;color:#e3bd61}.wagon-loadout__bottle span{min-width:0}.wagon-loadout__bottle b,.wagon-loadout__bottle small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wagon-loadout__bottle b{font-size:12px;line-height:1.3;white-space:normal;overflow-wrap:break-word}.wagon-loadout__bottle small{margin-top:2px;color:#91aa93;font:9px/1.2 var(--mono,monospace)}
.wagon-loadout__foot{display:flex;align-items:center;gap:10px;margin-top:9px}.wagon-loadout__foot small{color:#9fb39f;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wagon-loadout__clear{border:1px solid #9b7a4555;border-radius:7px;padding:5px 9px;background:#1f2c22;color:#dac99e;font:10px var(--mono,monospace);cursor:pointer}.wagon-loadout__clear:disabled{opacity:.45;cursor:default}.wagon-loadout__note,.wagon-loadout__state{margin:8px 0 0;color:#b9c8b7;font-size:11px;line-height:1.4}
.wagon-loadout__receipt{margin-top:10px;border-top:1px solid #9b7a4555;padding-top:8px;color:#c9d5c5;font-size:10px}.wagon-loadout__receipt summary{cursor:pointer;color:#e3c981;font:10px var(--mono,monospace)}.wagon-loadout__receipt-row{display:grid;grid-template-columns:62px 1fr;gap:8px;margin-top:7px}.wagon-loadout__receipt-row>b{color:#afc0ad}.wagon-loadout__receipt-row>span{display:flex;flex-wrap:wrap;gap:5px}.wagon-loadout__receipt-row>span>span{display:flex;align-items:center;gap:4px;border:1px solid #71806555;border-radius:6px;padding:3px 5px}.wagon-loadout__receipt-row img{width:21px;height:21px}.wagon-loadout__receipt-row em{font-style:normal;color:#879887}.wagon-loadout__receipt p{margin:7px 0 0;color:#d9b87b}
.wagon-loadout__rules{margin-top:8px;color:#afbfac;font-size:10px}.wagon-loadout__rules summary{width:max-content;cursor:pointer;color:#dbc180;font:10px var(--mono,monospace)}.wagon-loadout__rules p{margin:6px 0 0;line-height:1.35}
.wagon-loadout--cards,.wagon-loadout-kitbook{margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:inherit}.wagon-loadout--cards::after{display:none}.wagon-loadout__brief-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;padding-bottom:5px;border-bottom:1px solid currentColor;color:#68451f;font:11px var(--mono,monospace);letter-spacing:.12em;text-transform:uppercase}.wagon-loadout__brief-head span{font-weight:700;letter-spacing:0}.wagon-loadout--cards .wagon-loadout__state{margin:14px 0;color:#765d3e}
.wagon-loadout__card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,108px));gap:10px;align-items:start}.wagon-loadout__card{display:grid;width:108px;aspect-ratio:108/150;place-items:center;align-content:center;gap:9px;padding:11px 7px;color:#382817;text-align:center;border:8px solid transparent;border-image:url('/wagon/generated_frames/case-border-labs-6.png') 10/8px stretch;background:linear-gradient(#f4e2b1,#dfc58d);cursor:pointer;transition:transform 140ms ease,filter 140ms ease,box-shadow 140ms ease}.wagon-loadout__card:hover:not(:disabled),.wagon-loadout__card:focus-visible{transform:translateY(-4px);filter:brightness(1.05);box-shadow:0 7px 10px #3c241c42;outline:2px solid #7c5429;outline-offset:2px}.wagon-loadout__card:disabled{cursor:default;opacity:.46}.wagon-loadout__card img{width:54px;height:54px;object-fit:contain;image-rendering:pixelated}.wagon-loadout__card .wagon-loadout__bottle-mark{width:54px;height:54px;font-size:29px}.wagon-loadout__card span{min-width:0}.wagon-loadout__card b,.wagon-loadout__card small{display:block}.wagon-loadout__card b{overflow-wrap:anywhere;font-size:12px;line-height:1.15}.wagon-loadout__card small{margin-top:5px;color:#765d3e;font:9px var(--mono,monospace)}.wagon-loadout--cards .wagon-loadout__rules{max-width:226px;color:#765d3e}.wagon-loadout--cards .wagon-loadout__rules summary{color:#68451f}
.wagon-loadout-kitbook .wagon-loadout__kit{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:0;border:0;background:transparent}.wagon-loadout-kitbook .wagon-loadout__slot{min-height:0;aspect-ratio:108/150;box-sizing:border-box;color:#382817;border:7px solid transparent;border-image:url('/wagon/generated_frames/case-border-utility-9.png') 10/7px stretch;border-radius:0;background:#ead7a8;transition:transform 140ms ease,filter 140ms ease,box-shadow 140ms ease}.wagon-loadout-kitbook button.wagon-loadout__slot:hover:not(:disabled),.wagon-loadout-kitbook button.wagon-loadout__slot:focus-visible{transform:translateY(-3px);filter:brightness(1.04);box-shadow:0 6px 9px #3c241c35;outline:2px solid #7c5429;outline-offset:1px}.wagon-loadout-kitbook .wagon-loadout__slot.is-empty{border-image:none;border:1px dashed #9b7a55;background:transparent}.wagon-loadout-kitbook .wagon-loadout__slot img{width:46px;height:46px}.wagon-loadout-kitbook .wagon-loadout__slot small{max-width:90px;color:#382817;font-size:8px}.wagon-loadout-kitbook .wagon-loadout__clear{margin-top:9px;color:#513718;border-color:#8f6d3b;background:#ead7a8}
.wagon-loadout.is-open{margin:5px 0;padding:8px 10px}.wagon-loadout.is-open .wagon-loadout__head h2{font-size:12px}.wagon-loadout.is-open .wagon-loadout__kit{margin-top:7px;padding:6px}.wagon-loadout.is-open .wagon-loadout__slot{min-height:54px}.wagon-loadout.is-open .wagon-loadout__slot img{width:25px;height:25px}
@media(max-width:620px){.wagon-loadout{padding:10px}.wagon-loadout__head{align-items:flex-start}.wagon-loadout__kit{grid-template-columns:repeat(3,minmax(0,1fr))}.wagon-loadout__tray{grid-template-columns:repeat(2,minmax(0,1fr))}.wagon-loadout__bottle{padding:6px}.wagon-loadout__foot{align-items:flex-start;flex-direction:column}.wagon-loadout__foot small{white-space:normal}.wagon-loadout__note{font-size:10.5px}}
@media(max-width:520px){.wagon-loadout__card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wagon-loadout__card{width:100%}}
@media(prefers-reduced-motion:reduce){.wagon-loadout *,.wagon-loadout-kitbook *{scroll-behavior:auto!important;transition:none!important}.wagon-loadout__card:hover,.wagon-loadout__card:focus-visible,.wagon-loadout-kitbook button.wagon-loadout__slot:hover,.wagon-loadout-kitbook button.wagon-loadout__slot:focus-visible{transform:none!important}}

/* Potion faces use the same dark card treatment as case cards. */
.wagon-loadout__card-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:300px;gap:12px}
.wagon-loadout__card{width:100%;box-sizing:border-box;background:radial-gradient(ellipse at 50% 25%,#514637,#211a14 78%);color:#f4e5bf;font-family:var(--f-body,Georgia,serif)}
.wagon-loadout__card b{font-size:15px;line-height:1.15}.wagon-loadout__card small{color:#d4b77b;font:14px/1.15 var(--f-pixel,monospace)}
.wagon-loadout-kitbook .wagon-loadout__slot.is-filled{background:radial-gradient(ellipse at 50% 25%,#514637,#211a14 78%);color:#f4e5bf}
.wagon-loadout-kitbook .wagon-loadout__slot small{color:inherit;font:11px/1.15 var(--f-body,Georgia,serif)}
.wagon-loadout__kit-heading{position:absolute!important;width:1px;height:1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.wagon-loadout--cards .wagon-loadout__rules{font:14px/1.3 var(--f-body,Georgia,serif)}
.wagon-loadout--cards .wagon-loadout__rules summary{font:15px/1.2 var(--f-pixel,monospace)}

/* Reuse the brewing portrait within the native stock owner. */
#view-field-guide .wagon-loadout__card--brew{display:block;aspect-ratio:auto;padding:0;border:0;border-radius:0;background:none;box-shadow:none;}
#view-field-guide .wagon-loadout__card--brew .hth-brew-card{width:100%;--brew-card-width:150px;}

#view-field-guide .wagon-loadout__slot--brew{padding:0;border:0;background:none;}
#view-field-guide .wagon-loadout__slot--brew .hth-brew-card{width:100%;}
.wagon-loadout__charged-icon{position:relative;display:inline-grid;place-items:center;}
.wagon-loadout__charged-icon>b{position:absolute;right:-5px;bottom:-3px;min-width:14px;padding:2px;border:1px solid #ba9a56;background:#162a20;color:#ffedc4;font:11px/1 var(--f-pixel,monospace);}
.wagon-loadout__effect{display:block;margin:5px 2px 2px;color:#e3d2aa;font:12px/1.35 var(--f-body,Georgia,serif);white-space:normal;overflow-wrap:break-word;text-align:center;}
#view-field-guide .fg-preparation .wagon-loadout__effect{color:var(--ink-soft,#725534);}
.wagon-loadout-kitbook>.wagon-loadout__state{margin:9px 0;font:12px/1.4 var(--f-body,Georgia,serif);}
