/* MarsClaims central game-panel skin.
   Loaded after feature CSS so dialogs, build menu and crafting share one calm sci-fi language. */
:root{
  --mc-panel-bg:rgba(18,31,39,.96);
  --mc-panel-bg-2:rgba(28,45,55,.94);
  --mc-panel-card:rgba(21,38,47,.9);
  --mc-panel-card-2:rgba(35,53,63,.88);
  --mc-panel-edge:rgba(126,183,201,.52);
  --mc-panel-edge-soft:rgba(126,183,201,.22);
  --mc-panel-cyan:#83e4ee;
  --mc-panel-cyan-soft:rgba(131,228,238,.14);
  --mc-panel-gold:#e8b56b;
  --mc-panel-gold-soft:rgba(232,181,107,.14);
  --mc-panel-text:#eef7f8;
  --mc-panel-muted:#adc3cc;
  --mc-panel-shadow:0 24px 64px rgba(0,0,0,.48),0 0 28px rgba(71,155,177,.07);
  --mc-panel-radius:18px;
  --mc-card-radius:13px;
}

/* Central panel shell: build menu and every modal/dialog. */
#build-dock,
dialog{
  position:relative;
  background:
    radial-gradient(circle at 12% 0%,rgba(120,214,232,.09),transparent 32%),
    linear-gradient(145deg,var(--mc-panel-bg-2),var(--mc-panel-bg))!important;
  border:1px solid var(--mc-panel-edge)!important;
  border-radius:var(--mc-panel-radius)!important;
  box-shadow:var(--mc-panel-shadow)!important;
  color:var(--mc-panel-text)!important;
  overflow:hidden;
}
#build-dock::before,
dialog::before{
  content:"";
  position:absolute;
  z-index:2;
  left:18px;right:18px;top:0;height:2px;
  background:linear-gradient(90deg,transparent,var(--mc-panel-gold),var(--mc-panel-cyan),transparent);
  opacity:.72;
  pointer-events:none;
}
#build-dock::after,
dialog::after{
  content:"";
  position:absolute;
  z-index:0;
  width:120px;height:120px;right:-72px;bottom:-72px;
  border:1px solid rgba(131,228,238,.12);
  border-radius:50%;
  box-shadow:0 0 0 18px rgba(131,228,238,.025),0 0 0 38px rgba(131,228,238,.018);
  pointer-events:none;
}
dialog::backdrop{background:rgba(5,10,14,.72);backdrop-filter:blur(7px) saturate(.82)}
#build-dock>* ,dialog>*{position:relative;z-index:1}

/* Titles and panel chrome. */
#build-dock .dock-title{
  margin:-3px -2px 12px;
  padding:4px 3px 11px;
  border-bottom:1px solid var(--mc-panel-edge-soft);
}
#build-dock .dock-title h2,
dialog h2{
  color:#fff!important;
  text-shadow:0 0 16px rgba(131,228,238,.08);
  letter-spacing:.01em;
}
#close-build-dock,.close{
  border:1px solid rgba(137,191,207,.38)!important;
  border-radius:9px!important;
  background:rgba(10,22,29,.46)!important;
  color:#dff6fa!important;
}
#close-build-dock:hover,.close:hover{border-color:var(--mc-panel-cyan)!important;background:rgba(54,94,106,.54)!important;box-shadow:0 0 15px rgba(131,228,238,.12)}

/* Shared game-button language inside panels. */
#build-dock button:not(.item-slot),
dialog button:not(.close),
#craft-editor button,#craft-own button,#item-to-slot{
  border:1px solid rgba(113,157,171,.52)!important;
  border-radius:9px!important;
  background:linear-gradient(180deg,rgba(53,73,84,.82),rgba(31,48,57,.9))!important;
  color:#eaf7f9!important;
  box-shadow:inset 0 1px rgba(255,255,255,.035);
}
#build-dock button:not(.item-slot):hover,
dialog button:not(.close):hover,
#craft-editor button:hover,#craft-own button:hover,#item-to-slot:hover{
  border-color:rgba(131,228,238,.78)!important;
  background:linear-gradient(180deg,rgba(61,95,105,.9),rgba(37,63,72,.94))!important;
  box-shadow:0 0 16px rgba(131,228,238,.09),inset 0 1px rgba(255,255,255,.05);
}
#build-dock .primary,dialog .primary,#craft-save{
  border-color:rgba(232,181,107,.72)!important;
  background:linear-gradient(180deg,rgba(118,85,43,.94),rgba(77,57,34,.96))!important;
  color:#fff1d4!important;
  box-shadow:0 0 15px rgba(232,181,107,.08)!important;
}

/* Build menu / inventory: less form-like, more game loadout. */
#build-dock{backdrop-filter:blur(12px) saturate(.92)}
#build-dock .inventory-tabs{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px!important;
  min-height:0!important;
  padding:0!important;
  margin:0 0 10px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#build-dock .inventory-tabs::before{display:none!important}
#build-dock .inventory-tabs button{
  min-height:40px!important;height:40px!important;
  padding:6px 7px!important;
  gap:5px!important;
  border-radius:10px!important;
  border:1px solid rgba(102,143,157,.42)!important;
  background:rgba(18,34,43,.72)!important;
  color:#b9ced6!important;
  font-size:11px!important;
  font-weight:600!important;
  box-shadow:none!important;
}
#build-dock .inventory-tabs button[aria-pressed="true"]{
  color:#efffff!important;
  border-color:rgba(131,228,238,.9)!important;
  background:linear-gradient(180deg,rgba(45,92,100,.75),rgba(24,58,66,.86))!important;
  box-shadow:inset 0 -2px var(--mc-panel-cyan),0 0 14px rgba(131,228,238,.08)!important;
}
#build-dock .inventory-grid{
  border-radius:12px;
  background:rgba(8,20,27,.24);
  border:1px solid rgba(117,158,171,.16);
  padding:7px;
}
#build-dock .inventory-grid .item-slot{
  border-radius:9px!important;
  border:1px solid rgba(111,151,164,.35)!important;
  background:linear-gradient(145deg,rgba(45,61,70,.72),rgba(25,40,49,.82))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.025)!important;
}
#build-dock .inventory-grid .item-slot:hover,
#build-dock .inventory-grid .item-slot[aria-pressed="true"]{
  border-color:rgba(131,228,238,.78)!important;
  background:linear-gradient(145deg,rgba(48,82,91,.8),rgba(28,57,65,.88))!important;
  box-shadow:0 0 12px rgba(131,228,238,.08)!important;
}

/* Crafting/editor cards inherit the same game language. */
#craft-editor,#craft-own{color:var(--mc-panel-text)}
#craft-editor input,#craft-editor select{
  border:1px solid rgba(112,157,171,.5)!important;
  border-radius:9px!important;
  background:rgba(10,24,31,.66)!important;
  color:#eff9fb!important;
  box-shadow:inset 0 1px 8px rgba(0,0,0,.15);
}
#craft-editor input:focus,#craft-editor select:focus{outline:1px solid var(--mc-panel-cyan);border-color:var(--mc-panel-cyan)!important}
#craft-editor .craft-stage{
  border:1px solid rgba(126,183,201,.42)!important;
  border-radius:13px!important;
  background:
    radial-gradient(circle at 50% 30%,rgba(131,228,238,.05),transparent 45%),
    linear-gradient(180deg,rgba(13,28,36,.86),rgba(8,20,27,.94))!important;
  box-shadow:inset 0 0 22px rgba(0,0,0,.18);
}
#craft-editor .craft-palette button[aria-pressed="true"]{
  border-color:var(--mc-panel-cyan)!important;
  background:linear-gradient(180deg,rgba(48,102,108,.82),rgba(27,62,68,.9))!important;
  box-shadow:0 0 12px rgba(131,228,238,.09)!important;
}
#craft-library article{
  border:1px solid rgba(112,158,173,.34)!important;
  border-radius:12px!important;
  background:linear-gradient(145deg,rgba(38,55,65,.78),rgba(21,36,45,.9))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.025);
}
#craft-library article:hover{border-color:rgba(131,228,238,.62)!important;box-shadow:0 0 14px rgba(131,228,238,.07)}
#craft-assign-hint,.craft-intro,#craft-count,#craft-message{color:var(--mc-panel-muted)!important}
#craft-assign-hint{border-color:rgba(131,228,238,.42)!important;background:rgba(31,83,88,.22)!important}

/* Settings/account dialogs get the same shell without changing their layout logic. */
#display-settings,#account-dialog{padding:30px!important;max-width:min(560px,calc(100vw - 28px))}
#display-settings .eyebrow,#account-dialog .eyebrow{color:var(--mc-panel-cyan)!important}

/* Graphic help: visual, calm and unmistakably game UI. */
#guide.guide-graphic{
  width:min(900px,calc(100vw - 28px));max-width:900px;max-height:min(89vh,880px);
  padding:0!important;overflow:auto!important;
}
#guide .guide-shell{padding:24px 26px 22px}
#guide .guide-head{padding-right:42px;margin-bottom:16px}
#guide .guide-head .eyebrow{margin-bottom:7px;color:var(--mc-panel-cyan);letter-spacing:.14em}
#guide .guide-head h2{margin:0 0 6px;font-size:26px;line-height:1.1;color:#fff}
#guide .guide-head p{margin:0;color:var(--mc-panel-muted);font-size:13px;line-height:1.45}
#guide .guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#guide .guide-card{
  position:relative;min-width:0;padding:14px;
  border:1px solid rgba(115,162,177,.36);border-radius:var(--mc-card-radius);
  background:linear-gradient(145deg,rgba(31,49,59,.78),rgba(15,31,39,.82));
  box-shadow:inset 0 1px rgba(255,255,255,.025);
}
#guide .guide-card::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:2px;border-radius:2px;background:linear-gradient(var(--mc-panel-cyan),transparent 75%);opacity:.55}
#guide .guide-card h3{margin:0 0 10px;font-size:14px;color:#fff;display:flex;align-items:center;gap:8px}
#guide .guide-num{display:grid;place-items:center;width:23px;height:23px;border-radius:8px;background:rgba(42,88,96,.72);color:#9df5f1;font-size:12px;border:1px solid rgba(114,211,214,.46);box-shadow:0 0 10px rgba(131,228,238,.06)}
#guide .guide-card p{margin:8px 0 0;color:#c4d3d8;font-size:12px;line-height:1.48}
#guide .guide-card strong{color:#fff}
#guide .guide-visual{
  min-height:102px;border-radius:11px;padding:11px;display:flex;align-items:center;justify-content:center;gap:13px;overflow:hidden;
  background:linear-gradient(180deg,rgba(7,20,27,.7),rgba(12,27,34,.82));
  border:1px solid rgba(109,151,164,.28);
  box-shadow:inset 0 0 24px rgba(0,0,0,.16);
}
#guide .guide-key{display:inline-grid;place-items:center;min-width:31px;height:29px;padding:0 7px;border-radius:7px;background:linear-gradient(#4b5f6b,#2d3c46);border:1px solid #7e96a2;box-shadow:inset 0 -2px rgba(0,0,0,.28),0 2px 5px rgba(0,0,0,.18);color:#fff;font:700 12px/1 'Segoe UI',sans-serif}
#guide .guide-key.wide{min-width:67px}#guide .guide-key.accent{border-color:#70d9d6;background:linear-gradient(#3c7479,#285158)}
#guide .guide-keys{display:grid;grid-template-columns:repeat(3,31px);gap:4px;justify-content:center}
#guide .guide-keys .w{grid-column:2}#guide .guide-keys .a{grid-column:1}#guide .guide-keys .s{grid-column:2}#guide .guide-keys .d{grid-column:3}
#guide .guide-key-stack{display:grid;gap:5px}
#guide .guide-label{font-size:10px;color:#91a8b1;text-align:center;line-height:1.25;margin-top:5px}
#guide .guide-mouse{position:relative;width:43px;height:64px;border:2px solid #879da8;border-radius:22px;background:linear-gradient(180deg,#31414b,#23313a);flex:0 0 auto;overflow:hidden;box-shadow:inset 0 0 10px rgba(0,0,0,.18)}
#guide .guide-mouse::before{content:"";position:absolute;left:50%;top:10px;width:4px;height:13px;border-radius:3px;background:var(--mc-panel-cyan);transform:translateX(-50%);z-index:2}
#guide .guide-mouse-look::after{content:"";position:absolute;left:0;top:0;width:50%;height:29px;background:rgba(131,228,238,.22);border-right:1px solid rgba(131,228,238,.32)}
#guide .guide-wheel{display:grid;place-items:center;gap:2px;color:#d7edf2}
#guide .guide-wheel .wheel-body{display:grid;place-items:center;width:28px;height:48px;border:1px solid #78909b;border-radius:14px;background:#273741;color:var(--mc-panel-cyan);font-size:14px;line-height:1}
#guide .guide-wheel .wheel-up,#guide .guide-wheel .wheel-down{font-size:11px;color:#8fe9ec;line-height:1}
#guide .guide-mini-stack{display:flex;align-items:flex-end;gap:3px;height:56px}
#guide .guide-block{display:block;width:32px;height:32px;border:1px solid #9aa8af;background:linear-gradient(145deg,#d9dcda,#8f9899);box-shadow:inset -6px -6px rgba(40,50,53,.12)}
#guide .guide-block.small{width:22px;height:22px}#guide .guide-block.plate{width:38px;height:10px}
#guide .guide-crosshair{font:300 30px/1 monospace;color:#78dfdc;margin-right:2px}#guide .guide-tool{font-size:34px;line-height:1;filter:grayscale(.2)}
#guide .guide-hotbar-demo{display:flex;align-items:center;gap:6px}#guide .guide-drag-item{width:60px;height:52px;border-radius:9px;background:#2b3b45;border:1px solid #688694;display:grid;place-items:center;font-size:10px;color:#e9f1f4;position:relative}#guide .guide-drag-item::before{content:'▰';font-size:24px;color:#d0d6d4;line-height:.8}
#guide .guide-arrow{font-size:27px;color:#6be3dc}#guide .guide-slots{display:flex;gap:4px}#guide .guide-slot{width:31px;height:36px;border-radius:7px;border:1px solid #647e89;background:#2d3d47;display:grid;place-items:center;color:#8198a2;font-size:15px}#guide .guide-slot.free{border-style:dashed;color:#73e2de}
#guide .guide-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;width:100%}#guide .guide-step{min-width:0;text-align:center;border:1px solid rgba(102,148,161,.36);background:rgba(35,52,62,.72);border-radius:9px;padding:8px 5px;color:#cbd7dd;font-size:10px;line-height:1.2}#guide .guide-step b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;margin:0 auto 5px;background:#335b61;color:#91eee9;font-size:10px}
#guide .guide-wide{grid-column:1/-1}#guide .guide-wide .guide-visual{min-height:auto;justify-content:flex-start;gap:8px;flex-wrap:wrap}#guide .guide-chip{display:flex;align-items:center;gap:7px;padding:7px 9px;border-radius:9px;background:rgba(34,52,62,.7);border:1px solid rgba(102,147,160,.35);color:#cbd6dc;font-size:11px}#guide .guide-chip b{color:#fff}
#guide .guide-tip{margin-top:12px;padding:10px 12px;border:1px solid rgba(131,228,238,.34);background:rgba(34,72,78,.28);border-radius:11px;color:#cfe9e8;font-size:12px;line-height:1.45}#guide .guide-tip strong{color:#8eece8}
#guide .close{top:14px!important;right:14px!important}

@media(max-width:720px){
  #guide.guide-graphic{width:calc(100vw - 18px);max-height:92vh}
  #guide .guide-shell{padding:20px 14px 16px}
  #guide .guide-grid{grid-template-columns:1fr}
  #guide .guide-wide{grid-column:auto}
  #guide .guide-head h2{font-size:22px}
  #guide .guide-flow{grid-template-columns:repeat(2,1fr)}
  #guide .guide-visual{min-height:92px;gap:9px;flex-wrap:wrap}
  #display-settings,#account-dialog{padding:24px!important}
}


/* ==========================================================================\n   MarsClaims panel skin v2 — stronger game identity, still calm and readable.\n   ========================================================================== */
:root{
  --mc-void:#08141c;
  --mc-void-2:#0d2028;
  --mc-steel:#17313a;
  --mc-cyan:#67dce8;
  --mc-teal:#50c7b0;
  --mc-amber:#f0ad62;
  --mc-copper:#cb7046;
  --mc-blue:#79aee8;
  --mc-cream:#f7ead5;
}

/* More layered shell: blue-black space base + warm Mars light + technical cyan. */
#build-dock,dialog{
  background:
    radial-gradient(ellipse at 8% -8%,rgba(240,173,98,.18),transparent 31%),
    radial-gradient(ellipse at 104% 108%,rgba(103,220,232,.13),transparent 36%),
    linear-gradient(145deg,rgba(17,42,51,.985),rgba(7,20,28,.985))!important;
  border:1px solid rgba(109,193,207,.68)!important;
  box-shadow:
    0 24px 68px rgba(0,0,0,.58),
    0 0 0 1px rgba(240,173,98,.12),
    inset 0 1px rgba(255,255,255,.045),
    inset 0 -26px 70px rgba(0,0,0,.12)!important;
}
#build-dock::before,dialog::before{
  left:16px;right:16px;height:3px;
  background:linear-gradient(90deg,transparent 0%,var(--mc-copper) 14%,var(--mc-amber) 34%,var(--mc-cyan) 68%,transparent 100%);
  box-shadow:0 0 18px rgba(103,220,232,.18),0 0 12px rgba(240,173,98,.12);
  opacity:.95;
}
#build-dock::after,dialog::after{
  width:150px;height:150px;right:-82px;bottom:-88px;
  border-color:rgba(103,220,232,.15);
  box-shadow:0 0 0 20px rgba(103,220,232,.024),0 0 0 44px rgba(240,173,98,.014);
}

/* Header chrome looks like an in-game module, not an office title bar. */
#build-dock .dock-title{
  margin:-2px -2px 12px;padding:4px 3px 12px;
  border-bottom:1px solid rgba(112,178,193,.28);
  background:linear-gradient(90deg,rgba(240,173,98,.07),transparent 34%,rgba(103,220,232,.045));
}
#build-dock .dock-title h2{display:flex;align-items:center;gap:8px;text-transform:none}
#build-dock .dock-title h2::before{
  content:"◆";display:grid;place-items:center;width:25px;height:25px;border-radius:7px;
  color:#402511;background:linear-gradient(145deg,#ffd08c,#d9783e);border:1px solid #ffe2ad;
  box-shadow:0 0 13px rgba(240,173,98,.18);font-size:11px;
}

/* Close buttons: fixed geometry, centered glyph, always clickable above decoration. */
#close-build-dock,.close,#guide .close{
  position:absolute!important;z-index:50!important;
  display:grid!important;place-items:center!important;
  width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;
  padding:0!important;margin:0!important;line-height:1!important;font-size:22px!important;font-weight:500!important;
  border-radius:9px!important;border:1px solid rgba(125,201,214,.48)!important;
  background:linear-gradient(180deg,rgba(31,59,68,.96),rgba(13,34,42,.98))!important;
  color:#eaffff!important;box-shadow:inset 0 1px rgba(255,255,255,.05),0 0 0 1px rgba(0,0,0,.22)!important;
  pointer-events:auto!important;cursor:pointer!important;
}
#close-build-dock{position:relative!important;right:auto!important;top:auto!important}
#guide .close,#display-settings .close,#account-dialog .close{top:12px!important;right:12px!important}
#close-build-dock:hover,.close:hover,#guide .close:hover{
  border-color:#ffd18e!important;color:#fff7e9!important;
  background:linear-gradient(180deg,rgba(126,74,43,.98),rgba(66,40,28,.98))!important;
  box-shadow:0 0 14px rgba(240,173,98,.16),inset 0 1px rgba(255,255,255,.06)!important;
}

/* Inventory tabs: individual cockpit switches, stronger active state. */
#build-dock .inventory-tabs{gap:7px!important}
#build-dock .inventory-tabs button{
  position:relative;overflow:hidden;
  border-color:rgba(110,165,180,.36)!important;
  background:linear-gradient(180deg,rgba(22,48,58,.88),rgba(11,29,37,.92))!important;
  color:#bcd0d8!important;
}
#build-dock .inventory-tabs button::before{
  content:"";position:absolute;left:8px;right:8px;top:0;height:2px;border-radius:2px;
  background:linear-gradient(90deg,transparent,rgba(103,220,232,.42),transparent);opacity:.52;
}
#build-dock .inventory-tabs button:nth-child(2n)::before{background:linear-gradient(90deg,transparent,rgba(240,173,98,.5),transparent)}
#build-dock .inventory-tabs button:hover{transform:translateY(-1px)}
#build-dock .inventory-tabs button[aria-pressed="true"]{
  color:#fff!important;border-color:rgba(255,196,119,.78)!important;
  background:
    radial-gradient(circle at 50% 0%,rgba(240,173,98,.19),transparent 62%),
    linear-gradient(180deg,rgba(43,88,97,.96),rgba(18,53,62,.98))!important;
  box-shadow:inset 0 -3px var(--mc-cyan),0 0 15px rgba(103,220,232,.11),0 0 13px rgba(240,173,98,.06)!important;
}

/* Slots feel like game inventory cells with warmer selection feedback. */
#build-dock .inventory-grid{
  background:
    linear-gradient(rgba(103,220,232,.022) 1px,transparent 1px),
    linear-gradient(90deg,rgba(103,220,232,.022) 1px,transparent 1px),
    rgba(5,19,26,.36)!important;
  background-size:24px 24px!important;
  border-color:rgba(112,173,187,.22)!important;
  box-shadow:inset 0 0 28px rgba(0,0,0,.15);
}
#build-dock .inventory-grid .item-slot{
  background:linear-gradient(145deg,rgba(49,68,77,.82),rgba(20,38,47,.94))!important;
  border-color:rgba(126,171,184,.34)!important;
}
#build-dock .inventory-grid .item-slot:hover{
  border-color:rgba(240,173,98,.76)!important;
  box-shadow:0 0 13px rgba(240,173,98,.09),inset 0 1px rgba(255,255,255,.04)!important;
}
#build-dock .inventory-grid .item-slot[aria-pressed="true"]{
  border-color:#ffd08b!important;
  background:linear-gradient(145deg,rgba(105,73,43,.88),rgba(49,45,38,.94))!important;
  box-shadow:0 0 0 1px rgba(255,223,172,.22),0 0 17px rgba(240,173,98,.13)!important;
}

/* Item detail / secondary cards get a warm resource-card accent. */
#build-dock .item-detail,#craft-library article{
  position:relative;overflow:hidden;
  border-color:rgba(197,141,89,.38)!important;
  background:
    linear-gradient(90deg,rgba(240,173,98,.06),transparent 32%),
    linear-gradient(145deg,rgba(39,57,66,.9),rgba(17,34,43,.96))!important;
}
#build-dock .item-detail::before,#craft-library article::before{
  content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:3px;
  background:linear-gradient(var(--mc-amber),var(--mc-copper));opacity:.8;
}
#item-choose,#craft-save{
  border-color:rgba(103,220,232,.72)!important;
  background:linear-gradient(180deg,rgba(48,126,128,.98),rgba(27,83,88,.98))!important;
  box-shadow:0 0 16px rgba(103,220,232,.09)!important;
}
#item-to-slot,#own-claim{
  border-color:rgba(240,173,98,.46)!important;
  color:#ffe5bf!important;
}

/* Crafting receives its own warmer workbench identity without becoming noisy. */
#craft-editor .craft-stage{
  border-color:rgba(103,220,232,.46)!important;
  background:
    radial-gradient(circle at 50% 32%,rgba(103,220,232,.08),transparent 43%),
    radial-gradient(circle at 18% 90%,rgba(240,173,98,.06),transparent 30%),
    linear-gradient(180deg,rgba(7,25,33,.96),rgba(4,17,24,.98))!important;
}
#craft-editor .craft-actions button:first-child{border-color:rgba(240,173,98,.5)!important;color:#ffe0b0!important}
#craft-editor .craft-palette button[aria-pressed="true"]{
  border-color:#ffd08b!important;
  background:linear-gradient(180deg,rgba(97,72,46,.92),rgba(48,49,43,.96))!important;
  box-shadow:inset 0 -2px var(--mc-cyan),0 0 13px rgba(240,173,98,.1)!important;
}

/* Help cards use different subdued mission colors for quick scanning. */
#guide.guide-graphic{border-color:rgba(121,199,212,.72)!important}
#guide .guide-head{
  margin:-1px -1px 16px;padding:18px 44px 16px 18px;
  border-radius:13px;
  background:linear-gradient(100deg,rgba(240,173,98,.095),rgba(17,45,55,.38) 48%,rgba(103,220,232,.07));
  border:1px solid rgba(125,183,198,.16);
}
#guide .guide-head .eyebrow{color:#ffd08b!important}
#guide .guide-card{--gc:103,220,232;--ga:103,220,232;
  background:
    radial-gradient(circle at 100% 0%,rgba(var(--gc),.085),transparent 43%),
    linear-gradient(145deg,rgba(27,47,57,.91),rgba(10,27,35,.94))!important;
  border-color:rgba(var(--gc),.34)!important;
}
#guide .guide-card:nth-child(2){--gc:240,173,98}
#guide .guide-card:nth-child(3){--gc:80,199,176}
#guide .guide-card:nth-child(4){--gc:203,112,70}
#guide .guide-card:nth-child(5){--gc:121,174,232}
#guide .guide-card::before{
  width:3px!important;top:12px!important;bottom:12px!important;
  background:linear-gradient(rgb(var(--gc)),rgba(var(--gc),.08))!important;opacity:.9!important;
  box-shadow:0 0 11px rgba(var(--gc),.18);
}
#guide .guide-num{
  background:rgba(var(--gc),.16)!important;border-color:rgba(var(--gc),.5)!important;
  color:rgb(var(--gc))!important;box-shadow:0 0 10px rgba(var(--gc),.08)!important;
}
#guide .guide-visual{
  background:
    radial-gradient(circle at 50% 0%,rgba(var(--gc),.055),transparent 52%),
    linear-gradient(180deg,rgba(4,18,25,.82),rgba(9,25,32,.94))!important;
  border-color:rgba(var(--gc),.18)!important;
}
#guide .guide-key.accent{border-color:#ffd08b!important;background:linear-gradient(#85613d,#59442f)!important;color:#fff6e8!important}
#guide .guide-arrow{color:#f0ad62!important;text-shadow:0 0 10px rgba(240,173,98,.16)}
#guide .guide-slot.free{color:#ffd08b!important;border-color:rgba(240,173,98,.58)!important}
#guide .guide-step b{background:rgba(103,220,232,.16)!important;border:1px solid rgba(103,220,232,.3);color:#9df5f1!important}
#guide .guide-tip{border-color:rgba(240,173,98,.34)!important;background:linear-gradient(90deg,rgba(240,173,98,.09),rgba(103,220,232,.045))!important;color:#e2e9e6!important}
#guide .guide-tip strong{color:#ffd08b!important}

/* Settings/dialog internals: clearer game settings panel. */
#display-settings .eyebrow,#account-dialog .eyebrow{color:#ffd08b!important}
#display-settings .hud-setting,#account-dialog label{
  border:1px solid rgba(103,220,232,.2);border-radius:10px;padding:10px 12px;background:rgba(8,25,33,.34);
}

@media(max-width:720px){
  #guide .guide-head{padding:15px 38px 14px 13px}
  #guide .guide-card{padding:12px}
}

/* v02: Only the build menu shell gets a visibly translucent glass background.
   This overrides the near-opaque v2 panel rule above; dialogs stay unchanged. */
#build-dock{
  background:
    radial-gradient(ellipse at 8% -8%,rgba(240,173,98,.18),transparent 31%),
    radial-gradient(ellipse at 104% 108%,rgba(103,220,232,.13),transparent 36%),
    linear-gradient(145deg,rgba(17,42,51,.76),rgba(7,20,28,.73))!important;
  backdrop-filter:blur(7px) saturate(1.02);
  -webkit-backdrop-filter:blur(7px) saturate(1.02);
}

/* Material headings: same compact block language in inventory and crafting. */
#build-dock .inventory-material-heading,
#build-dock .craft-material-heading{
  margin:7px 2px 6px;
  color:#d9e9ed;
  font-size:12px;
  font-weight:650;
  letter-spacing:.02em;
}
#build-dock .inventory-material-heading[hidden]{display:none!important}
#build-dock #craft-editor .craft-palette{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:5px!important;
}
#build-dock #craft-editor .craft-palette button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  height:54px!important;
  min-height:54px!important;
  padding:4px!important;
  border-radius:9px!important;
}
#build-dock #craft-editor .craft-palette button img{
  display:block;
  width:100%!important;
  max-width:44px!important;
  height:100%!important;
  max-height:44px!important;
  object-fit:contain;
}
@media(max-width:700px){
  #build-dock #craft-editor .craft-palette{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}

/* Colony guide v03: short onboarding story, existing rendered resource models and current controls. */
#guide.guide-graphic{width:min(940px,calc(100vw - 28px));max-width:940px}
#guide .guide-head{margin-bottom:20px}
#guide .guide-head p{font-size:14px;line-height:1.65;color:#d7e3e4}
#guide .guide-head strong{color:#fff2d8}
#guide .guide-section{margin-top:19px}
#guide .guide-section-heading{display:flex;align-items:flex-start;gap:11px;margin-bottom:12px}
#guide .guide-section-number{display:grid;place-items:center;flex:0 0 27px;height:27px;border:1px solid rgba(110,224,221,.45);border-radius:8px;background:rgba(50,104,109,.4);color:#9af4ea;font-weight:700;font-size:12px}
#guide .guide-section-heading h3{margin:2px 0 3px;font-size:17px;line-height:1.2;color:#fff}
#guide .guide-section-heading p{margin:0;font-size:12px;line-height:1.4;color:#b9cdd3}
#guide .guide-resource-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#guide .guide-resource{margin:0;min-width:0;overflow:hidden;border:1px solid rgba(115,162,177,.37);border-radius:12px;background:linear-gradient(160deg,rgba(35,55,62,.9),rgba(12,28,37,.96));box-shadow:inset 0 1px rgba(255,255,255,.04)}
#guide .guide-resource img{display:block;width:100%;height:132px;object-fit:cover;object-position:center 48%;background:#b48c73}
#guide .guide-resource figcaption{display:block;padding:9px 10px 11px;min-height:82px}
#guide .guide-resource strong{display:block;color:#fff;font-size:15px;margin-bottom:4px}
#guide .guide-resource span{display:block;color:#c8d7dc;font-size:12px;line-height:1.35}
#guide .guide-note{margin:11px 0 0;padding:10px 12px;border:1px solid rgba(131,228,238,.27);border-radius:10px;background:linear-gradient(95deg,rgba(53,99,104,.23),rgba(35,56,63,.2));color:#d2e4e4;font-size:12px;line-height:1.55}
#guide .guide-note strong{color:#fce3b8}
#guide .guide-control-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#guide .guide-control-group{min-width:0;padding:12px 14px;border:1px solid rgba(115,162,177,.34);border-radius:11px;background:linear-gradient(150deg,rgba(29,50,59,.78),rgba(12,29,37,.92))}
#guide .guide-control-group h4{margin:0 0 10px;color:#fff;font-size:13px}
#guide .guide-control-group p{margin:8px 0;color:#cbdade;font-size:12px;line-height:1.8}
#guide .guide-control-group p:last-child{margin-bottom:0}
#guide .guide-control-group strong{color:#fff1d2}
#guide .guide-control-group kbd,#guide .guide-note kbd{display:inline-block;margin:0 2px 2px 0;padding:2px 5px;border-radius:5px;border:1px solid rgba(141,186,195,.46);background:rgba(53,73,82,.77);color:#eef9fa;font:600 11px/1.5 'Segoe UI',Arial,sans-serif;white-space:nowrap;letter-spacing:0}
@media(max-width:760px){
  #guide .guide-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #guide .guide-resource img{height:clamp(100px,30vw,180px)}
  #guide .guide-resource figcaption{min-height:75px}
  #guide .guide-control-grid{grid-template-columns:1fr}
}
@media(max-width:380px){
  #guide .guide-resource figcaption{padding:8px}
  #guide .guide-resource span{font-size:11px}
  #guide .guide-head p{font-size:13px}
}
