/* The workshop (ART_STYLE.md section 9), part three: Goblin Arena's menus. The station panel (Play, Loadouts, Gunsmith,
   Gun Shop, Crates, Challenges), the no-3D page, the zombie lobby and the settings, as riveted iron over the 3D world.
   The Loadouts/Gunsmith/Gun Shop shell (arena-menus.css) takes its colours from the --m-* tokens re-pointed here. */

.gsm, #gspanel, #gslobby, #zlobby, #gssettings {
  --m-acc: var(--wk-potion); --m-acc-soft: rgba(122, 255, 42, 0.12); --m-ok: var(--wk-potion); --m-bad: var(--wk-red);
  --m-text: var(--wk-paper); --m-dim: #9aa8b8; --m-line: rgba(255, 255, 255, 0.08); --m-tile: var(--wk-deep);
  --m-font: var(--f-ui);
}

/* ---- the panel: an iron plate with rivets, over the world */
#gspanel, #gspanel.tabbed, #gssettings {
  background: var(--wk-plate), var(--wk-iron); border: 3px solid var(--wk-ink); border-radius: 10px; box-shadow: var(--wk-drop); backdrop-filter: none;
}
#gspanel::after, #gssettings::after {
  content: ""; position: absolute; top: 6px; left: 6px; right: 6px; height: 12px; pointer-events: none; z-index: 3;
  background: var(--wk-rivet-dot) left center / 12px 12px no-repeat, var(--wk-rivet-dot) right center / 12px 12px no-repeat;
}
#gspanel h2, #gslobby h2, #zlobby h2, #gssettings h2 { font-family: var(--f-head); font-weight: 400; color: var(--wk-brass); text-shadow: 3px 3px 0 var(--wk-ink); }
#gspanel h3, #gslobby h3, #zlobby h3 { font-family: var(--f-ui); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--wk-brass); }
#gspanel .gsloadhead { border-bottom: 3px dashed var(--wk-ink); padding: 0 0 8px; margin-bottom: 4px; }
/* (Back sits in its own row over the panel's page, so nothing scrolls under it) */
#gspanel:not(.tabbed) > .gspback { position: static; flex: none; align-self: flex-end; margin: 18px 16px 0 0; }
.gsmdeal { border-radius: 8px; border: 3px solid var(--wk-ink); background: radial-gradient(120% 90% at 20% 40%, rgba(255, 58, 192, 0.16), transparent 60%), var(--wk-plate); box-shadow: var(--wk-drop-sm), inset 0 0 0 2px rgba(255, 58, 192, 0.4); }
.gsmdealtag { border: 2px solid var(--wk-ink); border-radius: 4px; background: var(--wk-magenta); color: var(--wk-ink); font-weight: 800; }
#gspanel .gsbucks, .gsmbucks { font-family: var(--f-ui); font-weight: 800; color: var(--wk-potion); }
#gspanel .gspback, #gspanel .gsmback, #gssettings .gspback {
  min-height: 40px; border-radius: 8px; border: 3px solid var(--wk-ink); background: var(--wk-plate); color: var(--wk-paper); box-shadow: var(--wk-drop-sm);
  font: 800 13px var(--f-ui); text-transform: uppercase; letter-spacing: 1px; top: 14px; right: 22px;
}
#gspanel .gspback:hover, #gspanel .gsmback:hover, #gssettings .gspback:hover { background: var(--wk-brass); color: var(--wk-ink); border-color: var(--wk-ink); }
#gspanel .gscard, #gslobby .gscard, #zlobby .gscard { border-radius: 10px; border: 3px solid var(--wk-ink); background: var(--wk-deep); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.04); }
.gswarn { border-radius: 8px; border: 3px solid var(--wk-ink); background: rgba(255, 58, 26, 0.12); box-shadow: inset 4px 0 0 var(--wk-red); }

/* ---- the tab bar and button hints (Loadouts, Gunsmith, Gun Shop) */
.gsmtop { border-bottom: 3px dashed var(--wk-ink); padding-top: 22px; }
.gsmtab { font-weight: 800; letter-spacing: 1px; border-bottom-width: 4px; }
.gsmtab.on { color: var(--wk-paper); border-bottom-color: var(--wk-potion); text-shadow: 0 0 12px rgba(122, 255, 42, 0.45); }
.gsmkey, .gsmfoot kbd { border: 2px solid var(--wk-ink); background: var(--wk-well); color: var(--wk-paper); font-weight: 800; }
.gsmfoot { border-top: 3px dashed var(--wk-ink); font-weight: 800; }
.gsmsec { border-bottom: 3px dashed var(--wk-ink); }
.gsmsec h4 { color: var(--wk-brass); font-weight: 800; letter-spacing: 1.5px; }
.gsmcnow { color: var(--wk-potion); }

/* ---- every tile and card in the menus: a small plate, lit green when it's the one */
.gsmtile, .gsmlo, .gsmgun, .gsmslot, .gsmopt, .gsmperk, .gsmstreaks, .gsmcat, .gsm .gsgcard, .gsm .gsskin, .gsm .gsknife {
  border-radius: 8px; border: 3px solid var(--wk-ink); background: var(--wk-plate); box-shadow: var(--wk-drop-sm);
}
.gsmtile:hover, .gsmlo:hover, .gsmgun:hover, .gsmslot:hover, .gsmopt:hover, .gsmperk:hover, .gsmstreaks:hover, .gsmcat:hover, .gsm .gsgcard:hover, .gsm .gsskin:hover, .gsm .gsknife:hover {
  border-color: var(--wk-ink); background: var(--wk-plate); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 5px 0 var(--wk-ink), 0 0 0 2px rgba(122, 255, 42, 0.6);
}
.gsmlo.sel, .gsmgun.sel, .gsmslot.sel, .gsm .gsgcard.sel, .gsmperk.on, .gsm .gsgcard.on, .gsm .gsknife.on {
  border-color: var(--wk-ink); box-shadow: inset 0 0 0 3px var(--wk-potion), 0 4px 0 var(--wk-ink);
}
.gsmtname, .gsmloname, .gsmgun b, .gsmperktext b { font-family: var(--f-ui); font-weight: 800; }
.gsmtlabel { color: var(--wk-brass); font-weight: 800; letter-spacing: 1.5px; }
.gsmtgo { color: var(--wk-potion); }
.gsmloname input { font-family: var(--f-head); font-weight: 400; border: 3px solid var(--wk-ink); background: var(--wk-deep); }
.gsmtart svg, .gsmtart canvas { background: var(--wk-well); border: 2px solid var(--wk-ink); border-radius: 6px; }
#gspanel .gsact.hoard, .gsm .gsact.hoard { min-height: 48px; font-size: 15px; }

/* ---- stat bars: segmented green on an ink well, the change in green or red */
.gsstat i { border: 2px solid var(--wk-ink); background: var(--wk-deep); border-radius: 3px; }
.gsstat i b { background: repeating-linear-gradient(90deg, #d8dce4 0 10px, #8a909a 10px 14px); }
.gsstat i u.up { background: repeating-linear-gradient(90deg, var(--wk-potion) 0 10px, #4a9a2a 10px 14px); }
.gsstat i u.down { background: repeating-linear-gradient(90deg, var(--wk-red) 0 10px, #8a2010 10px 14px); }
.gsstat span, .gsstat em { font-family: var(--f-ui); font-weight: 800; }

/* ---- Play: the mode cards, the options, Find Match, and the games going */
.gsplaysec { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 14px 0 8px; padding-bottom: 4px; border-bottom: 3px dashed var(--wk-ink); }
.gsplaysec h4 { margin: 0; font: 800 13px var(--f-ui); text-transform: uppercase; letter-spacing: 1.5px; color: var(--wk-brass); }
.gsplaysec span { font: 800 12px var(--f-ui); color: var(--wk-potion); text-transform: uppercase; letter-spacing: 1px; }
.gsplayblurb { margin: 10px 0 0; color: #c8cfd8; line-height: 1.4; }
.gsplaymodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.gsplayopts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gsplaymaps { display: flex; flex-wrap: wrap; gap: 8px; }
.gsplayzmaps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.gsplaymode, .gsplayopt, .gsplaymap, .gsplayzmap {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 48px; padding: 10px 12px; text-align: left; cursor: pointer;
  border-radius: 8px; border: 3px solid var(--wk-ink); background: var(--wk-plate); color: var(--wk-paper); box-shadow: var(--wk-drop-sm); font-family: var(--f-ui);
  transition: transform 0.12s, box-shadow 0.12s;
}
.gsplaymode:nth-child(odd), .gsplayopt:nth-child(odd) { rotate: -0.8deg; }
.gsplaymode:nth-child(even), .gsplayopt:nth-child(even) { rotate: 0.8deg; }
.gsplaymode { min-height: 96px; justify-content: flex-end; padding: 12px 14px; }
.gsplaymode .gspkicon { font-size: 30px; line-height: 1; margin-bottom: 4px; filter: drop-shadow(2px 2px 0 var(--wk-ink)); }
.gsplaymode .gspkname { font: 400 19px var(--f-head); color: var(--wk-brass); text-shadow: 2px 2px 0 var(--wk-ink); }
.gsplayopt .gspkicon { font-size: 20px; line-height: 1; }
.gspkname { font-weight: 800; font-size: 15px; }
.gspkline { color: #9aa8b8; font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.gsplaymap { flex-direction: row; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; }
.gsplayzmap canvas { width: 100%; height: auto; max-height: 96px; object-fit: cover; border-radius: 5px; border: 2px solid var(--wk-ink); margin-bottom: 6px; image-rendering: pixelated; }
.gsplaymode:hover:not(:disabled), .gsplayopt:hover:not(:disabled), .gsplaymap:hover:not(:disabled), .gsplayzmap:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 6px 0 var(--wk-ink); }
.gsplaymode.on, .gsplayopt.on, .gsplaymap.on, .gsplayzmap.on { box-shadow: inset 0 0 0 3px var(--wk-potion), 0 4px 0 var(--wk-ink), 0 0 18px rgba(122, 255, 42, 0.3); }
.gsplaymode.on .gspkname { color: var(--wk-potion); }
.gsplaymode:disabled, .gsplayzmap:disabled { opacity: 0.45; cursor: not-allowed; }
.gsplaygo { margin: 16px 0 4px; text-align: center; }
.gsgobtn {
  width: 100%; min-height: 64px; padding: 8px; border-radius: 10px; border: 3px solid var(--wk-ink); cursor: pointer; rotate: -0.6deg;
  background: var(--wk-hazard); box-shadow: var(--wk-drop); transition: transform 0.12s, box-shadow 0.12s;
}
.gsgobtn span { display: inline-block; padding: 10px 28px; border-radius: 6px; border: 3px solid var(--wk-ink); background: var(--wk-well); color: var(--wk-paper); font: 800 22px var(--f-ui); text-transform: uppercase; letter-spacing: 2px; }
.gsgobtn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 8px 0 var(--wk-ink); }
.gsgobtn:hover:not(:disabled) span { color: var(--wk-potion); }
.gsgobtn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--wk-ink); }
.gsgobtn:disabled { filter: grayscale(1) brightness(0.6); cursor: not-allowed; }
.gsgosum { margin: 8px 0 0; font-weight: 800; font-size: 13px; color: #c8cfd8; }
.gsplaynote { margin: 6px 0 0; text-align: center; font-size: 13px; }
.gslivelist { display: flex; flex-direction: column; gap: 6px; }
.gslive { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 10px; min-height: 52px; padding: 6px 8px 6px 12px; border-radius: 8px; border: 3px solid var(--wk-ink); background: var(--wk-deep); }
.gsliveicon { font-size: 22px; }
.gslivewhat { display: flex; flex-direction: column; min-width: 0; }
.gslivewhat b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gslivewhat small { color: #9aa8b8; }
.gslivewho { font-weight: 800; color: #c8cfd8; white-space: nowrap; }
.gspill { padding: 3px 8px; border-radius: 4px; border: 2px solid var(--wk-ink); font: 800 11px var(--f-ui); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; background: var(--wk-iron2); color: var(--wk-paper); }
.gspill.live { background: var(--wk-potion); color: var(--wk-ink); }
.gspill.soon { background: var(--wk-amber); color: var(--wk-ink); }
.gspill.wait { background: var(--wk-cyan); color: var(--wk-ink); }
.gsjoin { min-height: 40px; min-width: 72px; padding: 6px 14px; border-radius: 8px; border: 3px solid var(--wk-ink); background: var(--wk-potion); color: var(--wk-ink); font: 800 14px var(--f-ui); text-transform: uppercase; letter-spacing: 1px; cursor: pointer; box-shadow: 0 3px 0 var(--wk-ink); }
.gsjoin:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.gsjoin:disabled { background: var(--wk-iron2); color: #7a8494; cursor: not-allowed; }
.gsjoin.quiet { background: var(--wk-plate); color: var(--wk-paper); }
.gsplayrow { display: flex; justify-content: center; margin-top: 10px; }
.gsplaysquad { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gssqrow { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 44px; padding: 6px 10px; border-radius: 8px; border: 3px solid var(--wk-ink); background: var(--wk-deep); font-weight: 800; }
.gssqrow.empty { border-style: dashed; color: #6a7484; font-weight: 500; }
/* (the history under it) */
#gspanel .gshist { margin-top: 18px; }
.gshrow { border-radius: 8px; border: 3px solid var(--wk-ink); background: var(--wk-plate); min-height: 44px; }
.gshrow.on { box-shadow: inset 0 0 0 3px var(--wk-potion); }

/* ---- the challenge board: a sheet of riveted notices, one per challenge, coloured by its kind (--cat) */
.gscsum { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.gscsum span { padding: 6px 12px; border-radius: 6px; border: 3px solid var(--wk-ink); background: var(--wk-well); box-shadow: var(--wk-drop-sm); font: 800 12px var(--f-ui); text-transform: uppercase; letter-spacing: 1px; color: var(--wk-paper); }
.gscsum .gscsumpay { color: var(--wk-potion); }
.gscgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 6px; }
.gscnote {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 132px; padding: 14px 12px 10px; rotate: -1deg;
  border-radius: 10px; border: 3px solid var(--wk-ink); background: var(--wk-plate); box-shadow: var(--wk-drop-sm), inset 0 4px 0 var(--cat, var(--wk-brass));
}
.gscnote.tilt { rotate: 1deg; }
.gscnote::before { content: ""; position: absolute; inset: 4px 6px auto; height: 12px; background: var(--wk-rivet-dot) left center / 12px 12px no-repeat, var(--wk-rivet-dot) right center / 12px 12px no-repeat; }
.gscntop { display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.gscnicon { font-size: 20px; filter: drop-shadow(2px 2px 0 var(--wk-ink)); }
.gscncat { flex: 1; font: 800 11px var(--f-ui); text-transform: uppercase; letter-spacing: 1.5px; color: var(--cat, var(--wk-brass)); }
.gscnpay { white-space: nowrap; padding: 2px 8px; border-radius: 4px; border: 2px solid var(--wk-ink); background: var(--wk-deep); font: 800 13px var(--f-ui); color: var(--wk-potion); }
.gscntext { flex: 1; margin: 0; font: 600 15px/1.3 var(--f-ui); color: var(--wk-paper); }
.gscnbar { display: block; height: 14px; border: 3px solid var(--wk-ink); border-radius: 3px; background: var(--wk-deep); overflow: hidden; }
.gscnbar b { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--cat, var(--wk-brass)) 0 10px, rgba(10, 6, 18, 0.55) 10px 14px); }
.gscnfoot { display: flex; align-items: center; justify-content: space-between; gap: 6px; font: 800 12px var(--f-ui); text-transform: uppercase; letter-spacing: 1px; color: #9aa8b8; }
.gscnote.done { box-shadow: var(--wk-drop-sm), inset 0 0 0 3px var(--wk-potion); }
.gscnote.done .gscnbar b { background: repeating-linear-gradient(90deg, var(--wk-potion) 0 10px, #4a9a2a 10px 14px); }
.gscnote.done .gscnfoot span:first-child { color: var(--wk-potion); }
.gscnstamp { rotate: -8deg; padding: 0 8px; border: 3px solid var(--wk-potion); border-radius: 4px; font: 400 15px var(--f-head); color: var(--wk-potion); text-shadow: 2px 2px 0 var(--wk-ink); }
@media (max-width: 720px) {
  .gscgrid { grid-template-columns: 1fr; }
  .gscnote, .gscnote.tilt { rotate: 0deg; min-height: 0; }
}

/* phones: the panel's a sheet along the bottom; options stack and the live rows fold */
@media (max-width: 600px) {
  .gsplaymodes { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
  .gsplaymode { min-height: 84px; padding: 10px; }
  .gsplaymode .gspkname { font-size: 15px; }
  .gsplayopts, .gsplaysquad { grid-template-columns: 1fr; }
  .gsplaymode, .gsplayopt { rotate: 0deg !important; }
  .gslive { grid-template-columns: auto 1fr auto; grid-template-areas: "i w j" "i p n"; row-gap: 4px; }
  .gsliveicon { grid-area: i; } .gslivewhat { grid-area: w; } .gslive .gsjoin { grid-area: j; } .gslive .gspill { grid-area: p; justify-self: start; } .gslivewho { grid-area: n; justify-self: end; }
  .gsgobtn span { font-size: 18px; padding: 10px 18px; }
}

/* ---- the chrome over the 3D: Back, the cog, the status line, the big message */
#scopes .gsback, #scopes .gssetbtn {
  min-height: 40px; border-radius: 8px; border: 3px solid var(--wk-ink); background: var(--wk-plate); color: var(--wk-paper); box-shadow: var(--wk-drop-sm);
  font: 800 13px var(--f-ui); text-transform: uppercase; letter-spacing: 1px;
}
#scopes .gsback:hover, #scopes .gssetbtn:hover { background: var(--wk-brass); color: var(--wk-ink); }
#gsscore { border-radius: 20px; border: 3px solid var(--wk-ink); background: var(--wk-plate); color: var(--wk-paper); box-shadow: var(--wk-drop-sm); font-family: var(--f-ui); font-weight: 800; }
#gsmsg { border-radius: 10px; border: 3px solid var(--wk-ink); background: var(--wk-plate); box-shadow: var(--wk-drop); color: var(--wk-paper); font: 800 22px var(--f-ui); }

/* ---- settings: toggles and segmented green sliders, as in the menu mock */
#gssettings { padding-top: 24px; }
#gssettings .gssetrow { border-radius: 8px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: none; box-shadow: none; min-height: 44px; }
#gssettings input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 60px; height: 30px; margin: 0; cursor: pointer;
  border: 3px solid var(--wk-ink); border-radius: 6px; background: var(--wk-deep); box-shadow: inset 0 0 0 2px #555;
}
#gssettings input[type="checkbox"]::before { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 20px; border: 2px solid var(--wk-ink); border-radius: 3px; background: #666; transition: left 0.15s; }
#gssettings input[type="checkbox"]:checked::before { left: 28px; background: var(--wk-potion); box-shadow: 0 0 12px var(--wk-potion); }
#gssettings input[type="range"] { appearance: none; -webkit-appearance: none; height: 18px; border: 3px solid var(--wk-ink); border-radius: 3px; background: var(--wk-deep); accent-color: var(--wk-potion); }
#gssettings input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 26px; border: 3px solid var(--wk-ink); border-radius: 3px; background: var(--wk-potion); cursor: pointer; }
#gssettings input[type="range"]::-moz-range-thumb { width: 12px; height: 22px; border: 3px solid var(--wk-ink); border-radius: 3px; background: var(--wk-potion); cursor: pointer; }
#gssettings input[type="range"]::-moz-range-progress { height: 100%; background: repeating-linear-gradient(90deg, var(--wk-potion) 0 10px, #4a9a2a 10px 14px); }
#gssettings .gssetrow em, #gssettings .gssetrow b { color: var(--wk-potion); font-style: normal; font-weight: 800; }
/* the graphics step: Low, Medium, High as three brass keys, the lit one glowing potion green */
#gssettings .gssetpick { grid-template-columns: 1fr; cursor: default; }
#gssettings .gsseg { display: flex; gap: 6px; }
#gssettings .gsseg button { flex: 1; min-width: 0; min-height: 40px; padding: 6px 4px; border: 3px solid var(--wk-ink); border-radius: 6px; background: var(--wk-deep); color: var(--wk-paper); font: 800 14px var(--f-ui); cursor: pointer; box-shadow: inset 0 0 0 2px #555; }
#gssettings .gsseg button.on { background: var(--wk-potion); color: var(--wk-ink); box-shadow: 0 0 12px var(--wk-potion); }
#gssettings .gsseg button:not(.on):hover, #gssettings .gsseg button.padfocus { box-shadow: inset 0 0 0 2px var(--wk-brass); }
