/* Masked Up! - GEAR as a mask picture (gear-mask.js). Self-contained dark look; not wired into the game yet.
   Palette (owner): black, blurple, purple, lime, blood red, hot pink. No yellow / orange. Tap targets >= 44 px.
   Dead patch (owner phone): row action chips sit on the LEFT, the close button is on the LEFT. */
.gm-root{--bg:#0f0d16;--panel:#191524;--panel2:#221c33;--line:#3a3350;--tx:#f1eefc;--mute:#a79fc4;--lime:#b6f23a;--pink:#ff2a7a;--blur:#8f7bff;--purp:#b86bff;--red:#d8392b;
  color:var(--tx);font-family:Georgia,'Times New Roman',serif;width:100%;max-width:412px;margin:0 auto;box-sizing:border-box;padding:0 6px 24px;-webkit-tap-highlight-color:transparent;text-align:left}
.gm-root *{box-sizing:border-box}
.gm-head{display:flex;align-items:baseline;gap:10px;padding:8px 4px 2px}
.gm-head b{font-size:17px;letter-spacing:3px;color:var(--lime)}
.gm-head span{font-size:12.5px;color:var(--mute);letter-spacing:.4px}
/* picture */
.gm-pic{position:relative;width:100%;aspect-ratio:380/282;background:radial-gradient(ellipse at 60% 40%,#1d1730,#0b0912 75%);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:inset 0 0 40px #000a}
.gm-svg{display:block;width:100%;height:100%;-webkit-user-select:none;user-select:none}
.gm-hit{fill:transparent;stroke:transparent;cursor:pointer;pointer-events:all}
.gm-hit path,.gm-hit circle,.gm-hit ellipse,.gm-hit rect{fill:transparent;stroke:transparent;pointer-events:all}
.gm-hit path[fill=none]{fill:none}
.gm-hit.sel>*,.gm-hit.sel{stroke:var(--lime);stroke-width:2.4;stroke-dasharray:5 4}
.gm-hit.sel path[stroke-width]{stroke-width:3}
.gm-svg [data-gm]{cursor:pointer}
.gm-plate{pointer-events:all}
.gm-breathe{transform-origin:100px 130px;animation:gmBreathe 4.2s ease-in-out infinite}
.gm-glint{animation:gmGlint 5s ease-in-out infinite}
@keyframes gmBreathe{0%,100%{transform:scale(1)}50%{transform:scale(1.014) translateY(-1px)}}
@keyframes gmGlint{0%,70%,100%{opacity:.85}82%{opacity:.15}}
@media (prefers-reduced-motion:reduce){.gm-breathe,.gm-glint,.gm-pill.new,.gm-row.rare:before{animation:none!important}}
.gm-still .gm-breathe,.gm-still .gm-glint,.gm-still .gm-pill.new{animation:none!important}
/* part labels over the picture (HTML buttons: real 44 px targets) */
.gm-pill{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:2px 7px;min-height:44px;border-radius:10px;border:1.5px solid var(--line);background:linear-gradient(#2a2340,#181321);color:var(--tx);font-family:inherit;text-align:left;cursor:pointer;overflow:hidden;box-shadow:0 2px 0 #000a;transition:transform .08s,border-color .15s}
.gm-pill span{font-size:11.5px;font-weight:700;letter-spacing:.2px;line-height:1.15;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.gm-pill small{font-size:11px;color:var(--mute);line-height:1.2;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.gm-pill.empty small{color:#7d7499;font-style:italic}
.gm-pill:active{transform:translateY(2px);box-shadow:none}
.gm-pill.sel{border-color:var(--lime);background:linear-gradient(#2c3a14,#161d0b)}
.gm-pill.new{border-color:var(--pink);animation:gmPulse 1.6s ease-in-out infinite}
@keyframes gmPulse{50%{box-shadow:0 0 0 3px #ff2a7a55,0 2px 0 #000a}}
/* accordion */
.gm-sect{margin:12px 2px 4px;font-size:12px;letter-spacing:2px;color:var(--mute);text-transform:uppercase;padding-bottom:3px;border-bottom:1px solid var(--line)}
.gm-sect.main{color:var(--tx)}
.gm-sect.rare{color:var(--purp);border-color:#5a3d8a}
.gm-acc{margin:6px 0;border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden}
.gm-acc.open{border-color:#5a4f86}
.gm-acch{display:flex;align-items:center;gap:8px;width:100%;min-height:50px;padding:6px 12px;background:none;border:0;color:var(--tx);font-family:inherit;text-align:left;cursor:pointer}
.gm-accn{display:flex;flex-direction:column;min-width:0;flex:0 0 auto}
.gm-accn b{font-size:15px;letter-spacing:.5px;line-height:1.2}
.gm-accn em{font-style:normal;font-size:10.5px;letter-spacing:1.6px;color:var(--blur)}
.gm-acch small{flex:1;min-width:0;text-align:left;color:var(--mute);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:6px}
.gm-acch i{font-style:normal;color:var(--lime);font-size:14px;width:20px;text-align:center}
.gm-accb{padding:2px 8px 10px}
/* tabs */
.gm-tabs{display:flex;gap:6px;margin:4px 0 6px}
.gm-tabs button{flex:0 0 auto;min-width:64px;min-height:36px;padding:0 14px;border-radius:999px;border:1.5px solid var(--line);background:#14111d;color:var(--mute);font:700 12px Georgia,serif;letter-spacing:1px;cursor:pointer}
.gm-tabs button.on{background:var(--blur);border-color:var(--blur);color:#0b0912}
/* rows (Inflation-RPG style item list: status chip on the left) */
.gm-row{display:flex;align-items:center;gap:8px;min-height:62px;margin:5px 0;padding:6px 8px 6px 6px;border-radius:12px;border:1px solid var(--line);background:linear-gradient(#211b30,#171322);cursor:pointer;position:relative;transition:transform .08s}
.gm-row:active{transform:scale(.99)}
.gm-row.worn{border-color:var(--lime);background:linear-gradient(#25321a,#151c0e)}
.gm-row.empty{min-height:56px;background:#120f1b;border-style:dashed}
.gm-row.empty.worn{border-color:var(--lime)}
.gm-row.buy,.gm-row.up{background:linear-gradient(#241a30,#171122)}
.gm-row.mys{background:linear-gradient(#1c1432,#120c22);border-color:#5a3d8a;cursor:default}
.gm-row.rare{border-color:#8a4fd0;box-shadow:0 0 0 1px #b86bff44 inset,0 0 12px #b86bff33}
.gm-row.rare.worn{border-color:var(--lime)}
.gm-row.mys.rare,.gm-row.mys{box-shadow:0 0 14px #b86bff44}
.gm-row.new{border-color:var(--pink)}
.gm-rt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.gm-rt b{font-size:14.5px;line-height:1.25;overflow-wrap:anywhere}
.gm-rt b em{font-style:normal;font-size:11px;letter-spacing:.8px;color:#0b0912;background:var(--blur);border-radius:6px;padding:1px 6px;margin-left:2px;white-space:nowrap}
.gm-rt b u{text-decoration:none;font-size:10.5px;letter-spacing:1px;color:#fff;background:var(--pink);border-radius:6px;padding:1px 6px;margin-left:2px}
.gm-rt small{font-size:12px;color:var(--mute);line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.gm-th{width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:#0f0c18;border:1px solid #2c2540}
.gm-th.rare{border-color:#b86bff;box-shadow:0 0 8px #b86bff66}
.gm-chip{flex:0 0 76px;width:76px;min-height:44px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1.5px solid var(--line);line-height:1.15;padding:2px}
.gm-chip b{font-size:11.5px;letter-spacing:.8px}
.gm-chip i{font-style:normal;font-size:11.5px;font-weight:700}
.gm-chip.on{background:var(--lime);border-color:var(--lime);color:#0b0912}
.gm-chip.own{background:#14111d;border-color:#6b6190;color:var(--tx)}
.gm-chip.own i{font-size:9.5px;color:var(--mute);font-weight:400}
.gm-chip.buy{background:linear-gradient(#ff3a86,#c71562);border-color:#ff6aa6;color:#fff}
.gm-chip.up{background:linear-gradient(#a98bff,#6c4fd8);border-color:#c8b6ff;color:#fff}
.gm-chip.poor{background:#1a1424;border-color:#5a2a44;color:#c46a8e}
.gm-chip.poor i{color:#ff6f6f}
.gm-chip.mys{background:linear-gradient(#35205c,#1d1233);border-color:#b86bff;color:#d8b4ff}
.gm-chip.mys b{font-size:16px;letter-spacing:2px}
.gm-hint{font-size:12.5px;color:var(--mute);padding:6px 4px;line-height:1.4}
.gm-more{display:block;width:100%;min-height:44px;margin:6px 0;border-radius:10px;border:1.5px dashed var(--line);background:none;color:var(--blur);font:700 12px Georgia,serif;letter-spacing:1.5px;cursor:pointer}
/* sheet (opens when a part of the picture is tapped) */
.gm-back{position:fixed;inset:0;background:#000a;z-index:40}
.gm-sheet{position:fixed;left:0;right:0;bottom:0;margin:0 auto;max-width:440px;height:78vh;max-height:78vh;display:flex;flex-direction:column;background:var(--bg);border:1.5px solid #5a4f86;border-bottom:0;border-radius:18px 18px 0 0;z-index:41;box-shadow:0 -10px 30px #000c;animation:gmUp .22s cubic-bezier(.2,.8,.2,1)}
@keyframes gmUp{from{transform:translateY(40px);opacity:0}}
.gm-sheet-head{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid var(--line);flex:0 0 auto}
.gm-x{min-height:44px;min-width:76px;padding:0 10px;border-radius:10px;border:1.5px solid var(--lime);background:#16200b;color:var(--lime);font:700 12px Georgia,serif;letter-spacing:1px;cursor:pointer}
.gm-st{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.2}
.gm-st b{font-size:16px;letter-spacing:.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gm-st small{font-size:11px;letter-spacing:1.4px;color:var(--blur)}
.gm-money{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15;padding-right:2px}
.gm-money span{font-size:10px;letter-spacing:1.6px;color:var(--mute)}
.gm-money b{font-size:14px;color:var(--lime)}
.gm-sheet-body{flex:1;overflow-y:auto;padding:4px 10px 24px;-webkit-overflow-scrolling:touch}
.gm-msg{position:absolute;left:12px;right:12px;bottom:12px;padding:10px 14px;border-radius:12px;background:#0b0912;border:1.5px solid var(--pink);color:var(--tx);font-size:13.5px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s;z-index:3}
.gm-msg.show{opacity:1;transform:none}
.gm-msg.bottom{position:fixed;max-width:388px;margin:0 auto;z-index:42}
/* per-world accent on the picture frame */
.gm-root.f-deep .gm-pic{background:radial-gradient(ellipse at 60% 40%,#0f2a33,#050d12 78%)}
.gm-root.f-mine .gm-pic{background:radial-gradient(ellipse at 60% 40%,#2a1d2c,#0b070c 78%)}
.gm-root.f-jamboree .gm-pic{background:radial-gradient(ellipse at 60% 40%,#35142c,#0c0610 78%)}
.gm-root.f-moon .gm-pic{background:radial-gradient(ellipse at 60% 40%,#1c1a3a,#07060f 78%)}
.gm-root.f-samurai .gm-pic{background:radial-gradient(ellipse at 60% 40%,#341214,#0d0507 78%)}
.gm-root.f-carnival .gm-pic{background:radial-gradient(ellipse at 60% 40%,#2c1840,#0a0612 78%)}
.gm-root.f-polar .gm-pic{background:radial-gradient(ellipse at 60% 40%,#152a3c,#060b12 78%)}
.gm-root.f-plague .gm-pic{background:radial-gradient(ellipse at 60% 40%,#231a2e,#09060d 78%)}

/* IN THE GAME (2026-11-10): the game's own button look (#col button, html.th #col button: position, red fill, margins, shadows) must not
   reach the gear screen, so its button rules are repeated here with a stronger selector. Keep in step with the rules above. */
#col .gm-root button{margin:0;background-image:none;box-shadow:none;text-shadow:none;filter:none;min-width:0;letter-spacing:normal;transition:none}
#col .gm-root.gm-still .gm-breathe,#col .gm-root.gm-still .gm-glint,#col .gm-root.gm-still .gm-pill.new{animation:none!important}
#col .gm-root .gm-pill{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:2px 7px;min-height:44px;border-radius:10px;border:1.5px solid var(--line);background:linear-gradient(#2a2340,#181321);color:var(--tx);font-family:inherit;text-align:left;cursor:pointer;overflow:hidden;box-shadow:0 2px 0 #000a;transition:transform .08s,border-color .15s}
#col .gm-root .gm-pill span{font-size:11.5px;font-weight:700;letter-spacing:.2px;line-height:1.15;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#col .gm-root .gm-pill small{font-size:11px;color:var(--mute);line-height:1.2;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#col .gm-root .gm-pill.empty small{color:#7d7499;font-style:italic}
#col .gm-root .gm-pill:active{transform:translateY(2px);box-shadow:none}
#col .gm-root .gm-pill.sel{border-color:var(--lime);background:linear-gradient(#2c3a14,#161d0b)}
#col .gm-root .gm-pill.new{border-color:var(--pink);animation:gmPulse 1.6s ease-in-out infinite}
#col .gm-root .gm-acch{display:flex;align-items:center;gap:8px;width:100%;min-height:50px;padding:6px 12px;background:none;border:0;color:var(--tx);font-family:inherit;text-align:left;cursor:pointer}
#col .gm-root .gm-acch small{flex:1;min-width:0;text-align:left;color:var(--mute);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:6px}
#col .gm-root .gm-acch i{font-style:normal;color:var(--lime);font-size:14px;width:20px;text-align:center}
#col .gm-root .gm-tabs button{flex:0 0 auto;min-width:64px;min-height:36px;padding:0 14px;border-radius:999px;border:1.5px solid var(--line);background:#14111d;color:var(--mute);font:700 12px Georgia,serif;letter-spacing:1px;cursor:pointer}
#col .gm-root .gm-tabs button.on{background:var(--blur);border-color:var(--blur);color:#0b0912}
#col .gm-root .gm-more{display:block;width:100%;min-height:44px;margin:6px 0;border-radius:10px;border:1.5px dashed var(--line);background:none;color:var(--blur);font:700 12px Georgia,serif;letter-spacing:1.5px;cursor:pointer}
#col .gm-root .gm-x{min-height:44px;min-width:76px;padding:0 10px;border-radius:10px;border:1.5px solid var(--lime);background:#16200b;color:var(--lime);font:700 12px Georgia,serif;letter-spacing:1px;cursor:pointer}

/* THEME (QA 2026-11-10): the heading and "BY CATEGORY" sit on the page background, not on the dark mask panel, so they take the menu
   text colour (var(--ink): set by OPTIONS > Look, or the world's own menu colours) and stay readable on Paper / World colours too. */
#col .gm-root>.gm-head b{color:var(--ink)}
#col .gm-root>.gm-head span{color:var(--ink);opacity:.78}
#col .gm-root .gm-accwrap>.gm-sect.main{color:var(--ink);border-color:var(--ink);opacity:.85}
@media (max-width:480px){#col .gm-root>.gm-head{flex-wrap:wrap;row-gap:0;padding-right:92px}}   /* keep the line out of the dead patch */
/* phones: part labels on the picture get 2 lines and a smaller font instead of "Head Stra..." / "Colonel's Filter ..." */
@media (max-width:480px){
  #col .gm-root .gm-pill{padding:2px 5px}
  #col .gm-root .gm-pill span{font-size:11.5px;white-space:normal;line-height:1.05;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  #col .gm-root .gm-pill small{font-size:11px;white-space:normal;line-height:1.05;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
}
@media (max-width:380px){#col .gm-root .gm-pill span{font-size:10.5px}#col .gm-root .gm-pill small{font-size:9.5px}}
/* dead patch (owner's phone, x > W-90, y 120-280): the item sheet's header opens right there, so its title and SCRAP money stay left of it */
@media (max-width:480px){#col .gm-root .gm-sheet-head{flex-wrap:wrap;row-gap:2px;padding-right:92px}#col .gm-root .gm-money{flex-direction:row;align-items:baseline;gap:6px;padding-left:2px}}
