/* Illustrated inventory help. ScrollCues owns all offscreen direction hints. */
#modal[data-screen=inventory-help]{--help-paper:#f4e8c7;--help-light:#fff5db;--help-ink:#354a36;--help-line:#c2a36b;--help-dark:#523e28;--help-hit:44px;width:min(668px,calc((100vw - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))/var(--ui-scale)));height:min(480px,calc((100dvh - 24px - var(--safe-top) - var(--safe-bottom))/var(--ui-scale)));max-height:none;padding:12px;border:4px solid var(--help-dark);border-radius:3px;overflow:visible;isolation:isolate;box-sizing:border-box;background:repeating-linear-gradient(0deg,transparent 0 6px,#cfab6a20 6px 7px),linear-gradient(95deg,#785936,#977144,#775537);box-shadow:inset 0 0 0 2px #d4b77d,inset 0 0 0 5px #61472d,0 5px 0 #453421,0 13px 25px #142b2142;color:var(--help-ink);font:400 18px/1.3 var(--font-body)}
#modal[data-screen=inventory-help][open]{display:flex;flex-direction:column;gap:10px}
#modal[data-screen=inventory-help] *{box-sizing:border-box}
#modal[data-screen=inventory-help]>header{position:static;flex:none;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:11px;min-width:0;padding:10px 30px 10px 11px;border:1px solid #b99b65;background:linear-gradient(#f4e9cd,#e8d7ae);box-shadow:inset 0 0 0 2px var(--help-light)}
#modal[data-screen=inventory-help] #modal-title{font:400 25px/1.1 var(--font-title);margin:0;color:var(--help-ink)}
#modal[data-screen=inventory-help] #modal-kicker{display:block;font:400 10px/1.4 var(--font-ui);letter-spacing:1px;color:#87652f;margin:0 0 3px}
#modal[data-screen=inventory-help] .pack-help-seal{width:42px;height:42px;display:grid;place-items:center;background:#ddc391;border:1px solid #98713f;box-shadow:inset 0 0 0 2px #f2dfb8}
#modal[data-screen=inventory-help] img{image-rendering:pixelated;object-fit:contain}
#modal[data-screen=inventory-help] .pack-help-seal img{width:34px;height:34px}
#modal[data-screen=inventory-help] .pack-help-stud{position:absolute;top:0;left:0;width:8px;height:8px;background:#e5c175;border:1px solid #7e5c2d;border-radius:50%;box-shadow:inset 1px 1px #ffedb1;pointer-events:none}
#modal[data-screen=inventory-help] .pack-help-stud.bl{top:auto;bottom:0}
#modal[data-screen=inventory-help] .pack-help-stud.br{top:auto;left:auto;right:0;bottom:0}
#modal[data-screen=inventory-help] button{min-height:var(--help-hit);padding:8px 12px;border:1px solid #9b7c44;border-radius:2px;background:linear-gradient(#f4e6bd,#e4d3a5);box-shadow:inset 0 0 0 1px #fff6db9c,0 2px 0 #5d452b;color:var(--help-ink);font:400 12px/1.25 var(--font-ui)}
#modal[data-screen=inventory-help] button:hover{background:#f3e4ba;color:#304b32}
#modal[data-screen=inventory-help] .pack-help-primary{background:linear-gradient(#f2d58b,#edc979)}
#modal[data-screen=inventory-help] .pack-help-primary:hover{background:#f5dca0}
#modal[data-screen=inventory-help] #close-modal{position:absolute;top:-4px;right:-4px;z-index:9;display:grid;place-items:center;width:38px;height:38px;min-height:38px;padding:0;border:2px solid var(--help-dark);border-radius:0;background:#8a653c;box-shadow:inset 0 0 0 1px #d5b77c;color:var(--help-light);font:400 24px/1 var(--font-title)}
#modal[data-screen=inventory-help] #close-modal:hover{background:#71532f}
#modal[data-screen=inventory-help] #modal-body{flex:1;min-height:0;min-width:0;display:flex;margin:0;padding:0;overflow:visible;background:none;border:0;box-shadow:none;color:var(--help-ink)}
#modal[data-screen=inventory-help] .pack-help-main{flex:1;min-height:0;min-width:0;display:grid;grid-template-columns:143px minmax(0,1fr);gap:11px}
#modal[data-screen=inventory-help] .pack-help-nav{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8a96a #765735;padding:0 2px 3px 0}
#modal[data-screen=inventory-help] .pack-help-tabs{display:flex;flex-direction:column;gap:7px}
#modal[data-screen=inventory-help] [data-help-topic]{display:flex;align-items:center;gap:8px;flex:none;text-align:left;padding:8px;min-height:max(53px,var(--help-hit));background:linear-gradient(#eedeb3,#ddc797);border-color:#b89b64}
#modal[data-screen=inventory-help] [data-help-topic] img{width:29px;height:29px;flex:none}
#modal[data-screen=inventory-help] [data-help-topic][aria-selected=true]{background:linear-gradient(#f3d99c,#e9bf66);border-color:#816433;color:#344b34;box-shadow:inset 0 0 0 1px #fff1c9,0 2px 0 #5d452b}
#modal[data-screen=inventory-help] [data-help-topic]:hover{background:#eddaaa;color:#304b32}
#modal[data-screen=inventory-help] .pack-help-page{min-width:0;min-height:0;padding:12px;border:1px solid var(--help-line);border-radius:3px;background:var(--help-paper);box-shadow:inset 0 0 0 2px var(--help-light)}
#modal[data-screen=inventory-help] .pack-help-scroll{height:100%;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bda16b var(--help-paper);padding:1px 5px 2px 1px}
#modal[data-screen=inventory-help] h3{font:400 24px/1.1 var(--font-title);margin:0 0 8px;color:var(--help-ink)}
#modal[data-screen=inventory-help] .pack-help-intro{margin:0 0 12px;font:400 18px/1.3 var(--font-body)}
#modal[data-screen=inventory-help] .pack-help-lesson{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:15px;align-items:start}
#modal[data-screen=inventory-help] figure{margin:0;min-width:0}
#modal[data-screen=inventory-help] .pack-help-example{padding:10px;border:1px solid #b3935c;background:#dfc799;box-shadow:inset 0 0 0 2px #f4e2b9}
#modal[data-screen=inventory-help] .pack-help-example-label{display:block;text-align:center;color:#765b32;font:400 10px/1.3 var(--font-ui);letter-spacing:.6px;margin-bottom:8px}
#modal[data-screen=inventory-help] .pack-help-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#modal[data-screen=inventory-help] .pack-help-slot{position:relative;min-width:0;aspect-ratio:1;display:grid;place-items:center;background:#efdfb5;border:1px solid #a98a56;box-shadow:inset 0 0 0 1px #fff0ca}
#modal[data-screen=inventory-help] .pack-help-slot img{width:90%;height:90%;max-width:44px;max-height:44px}
#modal[data-screen=inventory-help] .pack-help-slot.active{border:2px solid #bd8c39;background:#f5d78d;box-shadow:inset 0 0 0 1px #fff0b6}
#modal[data-screen=inventory-help] .pack-help-slot.destination{border:2px dashed #5f7b50;background:#e0e4bd}
#modal[data-screen=inventory-help] .pack-help-slot.destination::after{content:'↘';font:400 26px/1 var(--font-body);color:#5b7245}
#modal[data-screen=inventory-help] .pack-help-slot.quick{border-bottom:4px solid #507146}
#modal[data-screen=inventory-help] .pack-help-count{position:absolute;right:3px;bottom:1px;color:#59492d;font:400 12px/1 var(--font-ui);text-shadow:1px 1px #fff3d2}
#modal[data-screen=inventory-help] figcaption{margin-top:7px;text-align:center;font:400 14px/1.2 var(--font-body);color:#6b6b4d}
#modal[data-screen=inventory-help] .pack-help-steps{list-style:none;margin:0;padding:0;display:grid;gap:11px;counter-reset:pack-step}
#modal[data-screen=inventory-help] .pack-help-steps li{position:relative;padding-left:29px;font:400 17px/1.25 var(--font-body);counter-increment:pack-step}
#modal[data-screen=inventory-help] .pack-help-steps li::before{content:counter(pack-step);position:absolute;left:0;top:1px;display:grid;place-items:center;width:20px;height:20px;border:1px solid #ac8b4c;background:#e9cd8b;color:#5e5030;font:400 12px/1 var(--font-ui)}
#modal[data-screen=inventory-help] .pack-help-steps strong{font-weight:400;color:#2e5038}
#modal[data-screen=inventory-help] .pack-help-note{margin:12px 0 0;padding:9px 10px;border:1px solid #c1a66d;background:#edddb3;color:#6d5c3f;font:400 16px/1.25 var(--font-body)}
#modal[data-screen=inventory-help] .pack-help-quantity-choice{display:flex;gap:6px;margin:0 0 12px}
#modal[data-screen=inventory-help] .pack-help-quantity-choice button{flex:1;padding:8px 7px;font-size:11px}
#modal[data-screen=inventory-help] .pack-help-quantity-choice [aria-pressed=true]{background:#edcc83}
#modal[data-screen=inventory-help] .pack-help-transfer{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:6px;align-items:center}
#modal[data-screen=inventory-help] .pack-help-arrow{text-align:center;font-size:23px;color:#806535}
#modal[data-screen=inventory-help] .pack-help-transfer small{display:block;text-align:center;font:400 13px/1.2 var(--font-body);color:#6b6b4d;margin-top:5px}
#modal[data-screen=inventory-help] .pack-help-equipment{display:flex;align-items:center;gap:9px;justify-content:center}
#modal[data-screen=inventory-help] .pack-help-equipment .pack-help-slot{width:calc((100% - 45px)/2);flex:0 0 calc((100% - 45px)/2)}
#modal[data-screen=inventory-help] .pack-help-slot.compatible{border:2px solid #60784d;background:#e4e2b6}
#modal[data-screen=inventory-help] .pack-help-equipment>span:not(.pack-help-slot){font-size:27px;color:#7b633b}
#modal[data-screen=inventory-help] .pack-help-keyboard{margin-top:12px;padding-top:10px;border-top:1px solid var(--help-line)}
#modal[data-screen=inventory-help] h4{font:400 19px/1.2 var(--font-title);margin:0 0 8px}
#modal[data-screen=inventory-help] .pack-help-shortcuts{display:grid;grid-template-columns:84px minmax(0,1fr);gap:8px;font:400 16px/1.25 var(--font-body);margin:0}
#modal[data-screen=inventory-help] .pack-help-shortcuts dd{margin:0}
#modal[data-screen=inventory-help] kbd{display:inline-block;font:400 11px/1.4 var(--font-ui);color:#514c32;background:#ede0b5;border:1px solid #b69d65;border-bottom-width:2px;padding:3px 5px;border-radius:2px}
#modal[data-screen=inventory-help] .pack-help-legend{display:flex;align-items:center;gap:7px;font:400 16px/1.25 var(--font-body);margin:7px 0}
#modal[data-screen=inventory-help] .pack-help-mark{width:16px;height:16px;flex:none;border:2px solid #bc8c36;background:#f1d087}
#modal[data-screen=inventory-help] .pack-help-mark.green{border:0;background:#537247;height:5px}
#modal[data-screen=inventory-help] .pack-help-footer{flex:none;display:flex;justify-content:flex-end;padding:1px 1px 0}
#modal[data-screen=inventory-help] .pack-help-footer button{min-width:176px}
@media(pointer:coarse){
 #modal[data-screen=inventory-help]{--help-hit:max(44px,calc(44px/var(--ui-scale)))}
 #modal[data-screen=inventory-help] #close-modal{width:var(--help-hit);height:var(--help-hit);min-height:var(--help-hit)}
}
@media(max-height:500px) and (orientation:landscape){
 #modal[data-screen=inventory-help]{height:min(338px,calc((100dvh - 24px - var(--safe-top) - var(--safe-bottom))/var(--ui-scale)));padding:9px}
 #modal[data-screen=inventory-help][open]{gap:7px}
 #modal[data-screen=inventory-help]>header{padding:6px 28px 6px 9px;gap:8px;grid-template-columns:32px minmax(0,1fr)}
 #modal[data-screen=inventory-help] #modal-title{font-size:23px}
 #modal[data-screen=inventory-help] #modal-kicker{font-size:9px}
 #modal[data-screen=inventory-help] .pack-help-seal{width:32px;height:32px}
 #modal[data-screen=inventory-help] .pack-help-seal img{width:28px;height:28px}
 #modal[data-screen=inventory-help] .pack-help-main{grid-template-columns:132px minmax(0,1fr);gap:10px}
 #modal[data-screen=inventory-help] [data-help-topic]{min-height:var(--help-hit);gap:6px;padding:5px 7px;font-size:11px}
 #modal[data-screen=inventory-help] [data-help-topic] img{width:25px;height:25px}
 #modal[data-screen=inventory-help] .pack-help-page{padding:8px}
 #modal[data-screen=inventory-help] h3{font-size:22px}
 #modal[data-screen=inventory-help] .pack-help-intro{font-size:17px;margin-bottom:9px}
 #modal[data-screen=inventory-help] .pack-help-lesson{gap:12px}
 #modal[data-screen=inventory-help] .pack-help-steps{gap:8px}
 #modal[data-screen=inventory-help] .pack-help-note{margin-top:9px;padding:7px 8px}
}
@media(max-width:700px) and (orientation:portrait),(pointer:coarse) and (orientation:portrait){
 #modal[data-screen=inventory-help]{height:min(568px,calc((100dvh - 24px - var(--safe-top) - var(--safe-bottom))/var(--ui-scale)));padding:9px}
 #modal[data-screen=inventory-help][open]{gap:9px}
 #modal[data-screen=inventory-help]>header{grid-template-columns:34px minmax(0,1fr);gap:8px;padding:10px 24px 10px 8px}
 #modal[data-screen=inventory-help] #modal-title{font-size:23px}
 #modal[data-screen=inventory-help] #modal-kicker{font-size:9px;letter-spacing:.5px}
 #modal[data-screen=inventory-help] .pack-help-seal{width:34px;height:34px}
 #modal[data-screen=inventory-help] .pack-help-seal img{width:29px;height:29px}
 #modal[data-screen=inventory-help] .pack-help-main{display:flex;flex-direction:column;gap:10px}
 #modal[data-screen=inventory-help] .pack-help-nav{flex:none}
 #modal[data-screen=inventory-help] .pack-help-tabs{flex-direction:row;gap:5px;width:max-content}
 #modal[data-screen=inventory-help] [data-help-topic]{padding:7px 9px;gap:5px;min-height:var(--help-hit);font-size:11px}
 #modal[data-screen=inventory-help] [data-help-topic] img{width:23px;height:23px}
 #modal[data-screen=inventory-help] .pack-help-page{flex:1;padding:10px}
 #modal[data-screen=inventory-help] .pack-help-lesson{grid-template-columns:minmax(0,1fr);gap:12px}
 #modal[data-screen=inventory-help] .pack-help-example{max-width:230px;margin:auto}
 #modal[data-screen=inventory-help] .pack-help-footer button{width:100%;min-width:0}
}
@media(max-width:350px) and (orientation:portrait){
 #modal[data-screen=inventory-help]>header{grid-template-columns:31px minmax(0,1fr);gap:7px;padding-left:7px}
 #modal[data-screen=inventory-help] #modal-title{font-size:21px}
 #modal[data-screen=inventory-help] #modal-kicker{letter-spacing:.3px}
 #modal[data-screen=inventory-help] .pack-help-seal{width:31px;height:31px}
 #modal[data-screen=inventory-help] .pack-help-seal img{width:27px;height:27px}
}
