/* Original crisp pixel-plank tile; inventory display and appraisal counter. */
.site>.merchant-section{display:block;position:relative;isolation:isolate;background:linear-gradient(#162421f2,#1b2925ed),url('/assets/pixel-planks.svg') center/256px 128px;border-color:#5f7766;color:#f0f3de;padding-top:52px}
.site>.merchant-section:before,.site>.merchant-section:after{display:none}
.merchant-section .quest-chapter{color:#afc5a5;border-color:#80937a40;margin-bottom:26px}
.merchant-section .quest-number{background:#263d30;border-color:#6d886a;color:#d5e6c2}
.merchant-section .ore-intro .hero-label{color:#accc94;letter-spacing:1.6px}
.merchant-section .ore-intro h2{color:#f3f4e3}
.merchant-section .ore-intro h2 span{color:#b5d494}
.merchant-section .ore-intro p{color:#bdcbbd;max-width:58ch}
.merchant-section>.ore-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:28px 0 24px;padding:16px;background:linear-gradient(#30291f70,#30291f70),url('/assets/pixel-planks.svg') center/256px 128px;border:4px solid #796342;border-bottom:10px solid #55452e;border-radius:0;box-shadow:inset 0 0 0 2px #b7995b66,0 6px 0 #101a16}
.merchant-section .ore-card,.merchant-section .ore-emerald{display:flex;flex-direction:column;gap:0;grid-column:auto;background:#17231e;border:2px solid #526249;border-radius:0;padding:14px 10px;box-shadow:inset 3px 3px 0 #0d1511,inset -3px -3px 0 #81907625}
.merchant-section .ore-card:before,.merchant-section .ore-card:after{display:none}
.merchant-section .ore-emerald{grid-column:1/-1}
.merchant-section .ore-card-top{color:#8f9d89;font-size:9px;letter-spacing:.6px;display:flex;justify-content:space-between;gap:5px}
.merchant-section .ore-hp{color:#bdc9ac;background:transparent;border:0;padding:0}
.merchant-section .ore-visual,.merchant-section .ore-emerald .ore-visual{height:105px;background:radial-gradient(ellipse,#b9d69c15,transparent 70%);display:grid;place-items:center;margin:8px 0}
.merchant-section .ore-visual .game-sprite{transform:scale(3.6);filter:drop-shadow(3px 6px 0 #080e0c55)}
.merchant-section .ore-card-copy{padding:12px 0 0;border-top:1px solid #63795755;background:none;box-shadow:none;text-align:center}
.merchant-section .ore-card h3,.merchant-section .ore-emerald h3{font-size:14px;color:#e3ecd7;margin:0}
.merchant-section .ore-value,.merchant-section .ore-emerald .ore-value{font-size:30px;line-height:1.2;margin:8px 0 3px;color:#c4e79c;text-shadow:none}
.merchant-section .ore-unit{font-size:10px;color:#9ead98}
.site>.merchant-section>.ore-calculation{margin:28px 0;padding:24px 18px;border:1px solid #75916c;border-top:4px solid #adcb90;border-radius:8px;background:#24382b;box-shadow:0 14px 32px #0a151633;color:#e8f0df}
.merchant-section .note-kicker{color:#afd192}
.merchant-section .ore-calculation h3{font-size:26px;color:#f0f3e0;margin:10px 0 20px}
.merchant-section .calc-stake{padding:14px;background:#14241b;border:1px solid #607952;border-radius:5px;max-width:none}
.merchant-section .calc-stake label{color:#e2ecd7}
.merchant-section .calc-stake label span{color:#a2b497}
.merchant-section .calc-stake input{background:#e7eed6;color:#223323;border:1px solid #b5cd93}
.merchant-section .stake-currency-field>span{color:#344d2c}
.merchant-section .ore-payout,.merchant-section .ore-payout:last-child{background:#18291f;border-color:#66835640}
.merchant-section .payout-name>span{color:#dee8d4}
.merchant-section .payout-name small{color:#a7bc98}
.merchant-section .ore-payout output{color:#c7ed9d}
.merchant-section .calc-ore-art{background:none;border:0}
.merchant-section .ore-calculation .calc-formula{color:#adc0a3}
.merchant-section .ore-explainer{background:none;color:#b6c6ae;border-color:#70876344;margin:24px 0 12px}
.merchant-section .ore-explainer strong{color:#e3ebd9}
.merchant-section .ore-source{color:#a9bc9b}
.merchant-section .ore-cta{background:none;border-color:#7c976044;margin-top:28px}
.merchant-section .ore-cta h3{color:#edf1dd}
.merchant-section .cta-caption{color:#aac394}
/* Workshop retains its layout, with discrete plank seams and pixel grain. */
.site>.tools-section{background:linear-gradient(#25261fe0,#25261fdb),url('/assets/pixel-planks.svg') center/256px 128px;border-color:#89764e}
.tools-section:before,.tools-section:after{display:none}
.tools-section .quest-chapter,.tools-section .hero-label{color:#c9bd94}
.tools-section .ore-intro h2{color:#f1eddc}
.tools-section .ore-intro h2 span{color:#c4d0a4}
.tools-section .ore-intro p{color:#c5c6b5}
.tools-section .tool-row{background:#202b25e8;border-color:#81907166;box-shadow:inset 0 1px #b5c69b20,0 4px 0 #15201a}
.tools-section .tools-list{border-bottom-color:#8d7850;box-shadow:0 6px 0 #29251b}
.tools-section .durability-note{background:#263329;border-color:#7c906b66}
@media(min-width:1000px){
 .merchant-section>.ore-intro{display:grid;grid-template-columns:1fr 1fr;gap:14px 60px;align-items:center}
 .merchant-section>.ore-intro .hero-label{grid-column:1/-1}
 .merchant-section>.ore-intro h2{grid-column:1;font-size:46px;margin:0}
 .merchant-section>.ore-intro p{grid-column:2;margin:0}
 .merchant-section>.ore-grid{grid-template-columns:repeat(5,minmax(0,1fr));padding:22px;gap:16px;margin-top:36px}
 .merchant-section .ore-emerald{grid-column:auto}
 .site>.merchant-section>.ore-calculation{display:grid;grid-template-columns:290px minmax(0,1fr);gap:0 32px;padding:28px}
 .merchant-section .ore-calculation>.note-kicker,.merchant-section .ore-calculation>h3,.merchant-section .calc-stake,.merchant-section .calc-error{grid-column:1}
 .merchant-section .calc-stake{margin:0;align-self:start}
 .merchant-section .ore-payouts{grid-column:2;grid-row:1/6;display:grid;grid-template-columns:1fr;gap:0}
 .merchant-section .ore-payout,.merchant-section .ore-payout:last-child{min-height:56px;padding:10px 14px;border-bottom:1px solid #66835640}
 .merchant-section .calc-formula{grid-column:1;align-self:start}
 .merchant-section>.ore-cta{display:flex;align-items:center;gap:24px;padding:24px 0;margin:0}
 .merchant-section>.ore-cta>div{margin-right:auto}
}
@media(max-width:399px){.merchant-section>.ore-grid{padding:10px;gap:9px}.merchant-section .ore-card{padding:12px 8px}.merchant-section .ore-card-top{font-size:8px}}

/* One input, five immediately readable rewards. */
.site>.merchant-section>.ore-calculation{display:block;padding:28px;background:#2b402f;border:1px solid #7c9566;border-radius:16px;text-align:center;box-shadow:0 8px 0 #14251b,0 18px 32px #07110b26}
.merchant-section .ore-calculation h3{margin:10px 0;font-size:clamp(24px,3vw,34px)}
.merchant-section .ore-calculation .calc-hint{font-size:14px;line-height:1.6;color:#c2d0b5;margin:0 auto 24px;max-width:40ch}
.merchant-section .ore-calculation .calc-stake{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:390px;margin:0 auto 28px;padding:14px 18px;background:#182b1e;border:1px solid #93af7155;border-radius:12px;text-align:left}
.merchant-section .ore-calculation .calc-stake label{font-size:15px;line-height:1.5}
.merchant-section .ore-calculation .calc-stake label span{display:block;font-size:11px;font-weight:400}
.merchant-section .ore-calculation .calc-stake input{width:150px;height:56px;font-size:28px;font-weight:800;border-radius:8px;padding-right:32px;box-shadow:inset 0 2px 0 #8ba16c44}
.merchant-section .ore-calculation .stake-currency-field>span{font-size:22px;right:12px}
.merchant-section .ore-calculation .ore-payouts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0}
.merchant-section .ore-calculation .ore-payout,.merchant-section .ore-calculation .ore-payout:last-child{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;grid-column:auto;padding:20px 10px;min-height:205px;border:1px solid #77926755;border-radius:12px;background:#192d20;box-shadow:inset 0 1px #c4d8a515}
.merchant-section .ore-calculation .ore-payout .calc-ore-art{display:grid;place-items:center;width:64px;height:60px;margin:0}
.merchant-section .ore-calculation .ore-payout .calc-ore-art .game-sprite{transform:scale(2.7)}
.merchant-section .ore-calculation .payout-name{display:block;text-align:center}
.merchant-section .ore-calculation .payout-name>span{font-size:13px;font-weight:700}
.merchant-section .ore-calculation .payout-name small{display:none}
.merchant-section .ore-calculation .ore-payout output,.merchant-section .ore-calculation .ore-payout:last-child output{display:block;width:100%;max-width:none;font-size:clamp(22px,2.6vw,32px);font-weight:800;text-align:center;line-height:1.25;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.merchant-section .ore-calculation .ore-payout:after{content:'за один блок';font-size:10px;color:#a8bd99}
.merchant-section .ore-calculation .calc-formula{margin:22px 0 0;font-size:11px;color:#afc0a0}
@media(max-width:759px){
 .site>.merchant-section>.ore-calculation{padding:24px 14px}
 .merchant-section .ore-calculation .ore-payouts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .merchant-section .ore-calculation .ore-payout,.merchant-section .ore-calculation .ore-payout:last-child{min-height:180px;padding:16px 8px}
 .merchant-section .ore-calculation .ore-payout:last-child{grid-column:1/-1;min-height:160px}
 .merchant-section .ore-calculation .calc-stake{padding:12px;gap:10px}
 .merchant-section .ore-calculation .calc-stake input{width:125px;font-size:25px}
}
.merchant-section .ore-calculation .calc-slider{display:block;max-width:560px;padding:20px 24px}
.stake-slider-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}
#stake-display{font-size:32px;font-weight:800;color:#d1efac;font-variant-numeric:tabular-nums;white-space:nowrap}
.merchant-section .ore-calculation .calc-slider input[type=range]{--fill:0%;appearance:none;-webkit-appearance:none;display:block;width:100%;height:44px;padding:0;border:0;border-radius:0;box-shadow:none;cursor:pointer;background:transparent;touch-action:pan-y}
.merchant-section .ore-calculation .calc-slider input::-webkit-slider-runnable-track{height:8px;border-radius:8px;background:linear-gradient(to right,#c2ed90 var(--fill),#526748 var(--fill))}
.merchant-section .ore-calculation .calc-slider input::-moz-range-track{height:8px;border-radius:8px;background:#526748}
.merchant-section .ore-calculation .calc-slider input::-moz-range-progress{height:8px;border-radius:8px;background:#c2ed90}
.merchant-section .ore-calculation .calc-slider input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:28px;height:28px;margin-top:-10px;border-radius:50%;background:#d7f2af;border:4px solid #90b368;box-shadow:0 2px 6px #07170c66}
.merchant-section .ore-calculation .calc-slider input::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:#d7f2af;border:4px solid #90b368;box-shadow:0 2px 6px #07170c66}
.merchant-section .ore-calculation .calc-slider input:focus-visible{outline:2px solid #d7f2af;outline-offset:4px;border-radius:6px}
.stake-range-labels{display:flex;justify-content:space-between;color:#aebf9c;font-size:12px;font-variant-numeric:tabular-nums}
@media(max-width:599px){.merchant-section .ore-calculation .calc-slider{padding:14px}#stake-display{font-size:28px}}
/* A single wooden inventory is also the calculator. */
.site>.merchant-section>.merchant-calculator{padding:18px;margin:32px 0 26px;border:4px solid #796342;border-bottom:10px solid #55452e;border-radius:0;background:linear-gradient(#30291f70,#30291f70),url('/assets/pixel-planks.svg') center/256px 128px;box-shadow:inset 0 0 0 2px #b7995b66,0 6px 0 #101a16;text-align:left}
.merchant-calc-controls{display:flex;align-items:center;gap:32px;padding:20px 24px;margin-bottom:16px;background:#19291fec;border:2px solid #56644b;box-shadow:inset 3px 3px #0d151177}
.merchant-section .merchant-calculator .calc-hint{flex:1;max-width:29ch;margin:0;font-size:18px;font-weight:700;color:#e1ebd4}
.merchant-section .merchant-calculator .calc-slider{flex:1.4;margin:0;padding:0;max-width:none;background:transparent;border:0;border-radius:0}
.merchant-calculator>.ore-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:0;padding:0;background:none;border:0;box-shadow:none}
.merchant-section .merchant-calculator .ore-card{min-width:0;grid-column:auto}
.merchant-section .merchant-calculator .ore-value{font:600 12px/1.4 Manrope,sans-serif;letter-spacing:0;color:#a7b799;margin:6px 0}
.merchant-section .merchant-calculator .ore-money{display:block;font-family:'Russo One',sans-serif;font-size:clamp(25px,2.6vw,36px);line-height:1.25;color:#c6e89e;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:4px 0 7px}
.merchant-section .merchant-calculator .calc-formula{margin:16px 0 0;padding:9px 12px;background:#1a261dd9;color:#bfccb1;text-align:center}
@media(max-width:999px){.merchant-calculator>.ore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.merchant-section .merchant-calculator .ore-emerald{grid-column:1/-1}.merchant-calc-controls{display:block;padding:16px}.merchant-section .merchant-calculator .calc-hint{font-size:14px;max-width:none;margin:0 0 16px}.merchant-section .merchant-calculator .calc-slider{padding:0}}
@media(max-width:599px){.site>.merchant-section>.merchant-calculator{padding:10px}.merchant-calculator>.ore-grid{gap:10px}.merchant-section .merchant-calculator .ore-money{font-size:27px}.merchant-calc-controls{padding:14px}}
.merchant-section .merchant-calculator .ore-card h3{font:700 14px/1.4 Manrope,sans-serif;margin:0;color:#e3ecd7}
.merchant-section .ore-card-top .ore-coefficient{font:700 12px/1.4 Manrope,sans-serif;letter-spacing:0;color:#c4d6ae;white-space:nowrap}
.merchant-section .merchant-calculator .ore-money{margin-top:10px}
/* Compact ore slots: name and coefficient share the top row. */
.merchant-section .merchant-calculator .ore-card{padding:12px 10px}
.merchant-section .merchant-calculator .ore-card-top{align-items:center;gap:8px}
.merchant-section .merchant-calculator .ore-card-top h3{font-size:12px;text-align:left;letter-spacing:0}
.merchant-section .merchant-calculator .ore-visual,.merchant-section .merchant-calculator .ore-emerald .ore-visual{height:78px;margin:8px 0}
.merchant-section .merchant-calculator .ore-card-copy{padding-top:8px}
.merchant-section .merchant-calculator .ore-money{margin:2px 0 5px}
@media(max-width:599px){.merchant-section .merchant-calculator .ore-card{padding:10px 8px}.merchant-section .merchant-calculator .ore-card-top h3{font-size:11px}.merchant-section .ore-card-top .ore-coefficient{font-size:11px}}
/* Item-card hierarchy: quiet header, dedicated art stage, distinct price plate. */
.merchant-section .merchant-calculator .ore-card{--item-accent:#c6a37d;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 92px auto;gap:0;padding:0;border:1px solid #7b8c695c;background:#202c23;border-radius:6px;overflow:hidden;box-shadow:0 3px 0 #101b14,inset 0 1px #dae7b522}
.merchant-section .merchant-calculator .ore-redstone{--item-accent:#d79687}
.merchant-section .merchant-calculator .ore-gold{--item-accent:#e4ca7b}
.merchant-section .merchant-calculator .ore-diamond{--item-accent:#98c8e3}
.merchant-section .merchant-calculator .ore-emerald{--item-accent:#b9d98a}
.merchant-section .merchant-calculator .ore-card-top{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:13px 12px 0;z-index:1}
.merchant-section .merchant-calculator .ore-card-top h3{font:700 13px/1.4 Manrope,sans-serif;color:#e7eddf;margin:0}
.merchant-section .merchant-calculator .ore-card-top .ore-coefficient{font-size:10px;line-height:1.4;color:var(--item-accent);padding:3px 5px;background:#101c1780;border:1px solid color-mix(in srgb,var(--item-accent) 25%,transparent);border-radius:4px}
.merchant-section .merchant-calculator .ore-visual,.merchant-section .merchant-calculator .ore-emerald .ore-visual{grid-column:1;grid-row:2;position:relative;isolation:isolate;display:grid;place-items:center;width:100%;height:92px;margin:0;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--item-accent) 14%,transparent),transparent 68%)}
.merchant-section .merchant-calculator .ore-visual:before{content:'';position:absolute;z-index:-1;width:50px;height:50px;border:1px solid color-mix(in srgb,var(--item-accent) 18%,transparent);background:#0f1c1438;border-radius:5px;transform:rotate(45deg)}
.merchant-section .merchant-calculator .ore-visual .game-sprite{transform:scale(2.9);filter:drop-shadow(2px 4px 0 #080e0c55)}
.merchant-section .merchant-calculator .ore-card-copy{grid-column:1;grid-row:3;align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:13px 8px 14px;border:0;border-top:1px solid #8c9e7430;background:#111e17aa;box-shadow:inset 0 1px #07110944;text-align:center}
.merchant-section .merchant-calculator .ore-money{font-size:clamp(23px,2.3vw,31px);line-height:1.2;letter-spacing:-.5px;margin:0;color:#edf3de;overflow-wrap:normal}
.merchant-section .merchant-calculator .ore-unit{font:400 10px/1.4 Manrope,sans-serif;color:#a6b59b;white-space:nowrap}
@media(min-width:600px) and (max-width:999px){.merchant-calculator>.ore-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.merchant-section .merchant-calculator .ore-emerald{grid-column:auto}}
@media(max-width:599px){
 .merchant-calculator>.ore-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 .merchant-section .merchant-calculator .ore-card,.merchant-section .merchant-calculator .ore-emerald{grid-column:auto;grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto auto;gap:0 12px;padding:12px;min-height:94px;align-items:center;border-radius:5px}
 .merchant-section .merchant-calculator .ore-card-top{grid-column:2;grid-row:1;padding:0;align-self:start}
 .merchant-section .merchant-calculator .ore-card-top h3{font-size:13px}
 .merchant-section .merchant-calculator .ore-card-top .ore-coefficient{font-size:10px}
 .merchant-section .merchant-calculator .ore-visual,.merchant-section .merchant-calculator .ore-emerald .ore-visual{grid-column:1;grid-row:1/3;width:64px;height:64px;border:1px solid #91a47525;background:#132219;border-radius:4px}
 .merchant-section .merchant-calculator .ore-visual:before{width:36px;height:36px}
 .merchant-section .merchant-calculator .ore-visual .game-sprite{transform:scale(2.5)}
 .merchant-section .merchant-calculator .ore-card-copy{grid-column:2;grid-row:2;display:flex;flex-direction:row;align-items:baseline;justify-content:flex-start;flex-wrap:wrap;gap:3px 8px;padding:4px 0 0;background:none;border:0;box-shadow:none;text-align:left}
 .merchant-section .merchant-calculator .ore-money{font-size:25px;letter-spacing:-.4px}
 .merchant-section .merchant-calculator .ore-unit{font-size:9px}
}
/* Warm timber and coin-gold accents around the merchant's inventory. */
.site>.merchant-section{background:radial-gradient(ellipse at 85% 0,#d49d3830,transparent 52%),linear-gradient(#33281edc,#241e18ed),url('/assets/pixel-planks.svg') center/256px 128px;border-top:3px solid #9d7a42;border-bottom:1px solid #ae88563d}
.merchant-section .quest-chapter{min-height:56px;margin-bottom:20px;color:#dfbc79;border-color:#ae88563d;display:flex;align-items:center;gap:12px}
.merchant-section .quest-number{background:#392b1c;color:#efcf8d;border-color:#aa864e}
.merchant-section .merchant-coins{display:block;margin-left:auto;width:80px;height:64px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 5px 0 #160e0866);flex-shrink:0}
.merchant-section .ore-intro .hero-label{color:#c7a775}
.merchant-section .ore-intro h2{color:#fff1d8}
.merchant-section .ore-intro h2 span{color:#e6c37f}
.merchant-section .ore-intro p{color:#d0c5b2}
.site>.merchant-section>.merchant-calculator{border-color:#a88850;border-bottom-color:#675032;box-shadow:inset 0 0 0 2px #e7c78245,0 6px 0 #17120d,0 20px 45px #160e0833}
.merchant-section .ore-explainer{color:#c9bda8;border-color:#b08a493d}
.merchant-section .ore-explainer strong{color:#efdbb6}
.merchant-section .ore-source,.merchant-section .cta-caption{color:#d2b780}
.merchant-section .ore-cta{border-color:#b08a493d}
.merchant-section .ore-cta h3{color:#f4e7cf}
@media(max-width:599px){.merchant-section .merchant-coins{width:64px;height:52px}.merchant-section .quest-chapter{gap:9px;letter-spacing:1px}}
