/* foggame.css — The Fog Valley (js/foggame.js): the chart of a path and the map.
   The shell (header, buttons, tables, the stage) is css/lockgame.css, which this page loads first.
   Colours come from the site tokens (css/tokens.css); every class here is prefixed fg-. */
.fg .lg-steps li.part{background:var(--ml-bg);border-color:transparent;color:var(--ink)}

/* the picture of a path */
.fg-chart{display:block;width:100%;height:auto;cursor:crosshair;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.fg-fog{fill:var(--panel-2);stroke:var(--line)}
.fg-fog.clear{fill:var(--panel)}
.fg-mist{fill:none;stroke:var(--line);stroke-width:7;stroke-linecap:round}
.fg-axis{stroke:var(--muted);stroke-width:1}
.fg-ax{font:500 10px var(--mono);fill:var(--muted)}
.fg-under{fill:var(--panel-2)}
.fg-ground{fill:none;stroke:var(--ink);stroke-width:2;stroke-linejoin:round}
.fg-post{stroke:var(--muted);stroke-width:1;stroke-dasharray:2 3}
.fg-dot{fill:var(--ink)}
.fg-slope{fill:none;stroke:var(--accent-ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fg-low{fill:var(--accent)}
.fg-rival{font:700 11px var(--sans);fill:var(--ink);paint-order:stroke;stroke:var(--panel);stroke-width:3px}
.fg-lead{stroke:var(--muted);stroke-width:1;stroke-dasharray:1 3}
.fg-pole{stroke:var(--ink);stroke-width:2;stroke-linecap:round}
.fg-flag{fill:var(--accent)}
.fg-cur line{stroke:var(--accent);stroke-width:1.5;stroke-dasharray:4 3}
.fg-cur path{fill:var(--accent)}

/* the marker of a path: one place left, the slider, one place right */
.fg-pos{display:flex;align-items:center;gap:8px}
.fg-pos input[type=range]{flex:1 1 auto;min-width:0;height:48px;margin:0;accent-color:var(--accent)}
.fg-step{flex:0 0 48px;height:48px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font:500 22px var(--mono);cursor:pointer}
.fg-info{margin:0;font-size:15px;font-weight:600;min-height:3em}

/* the map: a column of row numbers, then eight squares a row */
.fg-grid{display:grid;grid-template-columns:20px repeat(8,minmax(0,1fr));gap:3px;direction:ltr}
.fg-gh{display:grid;place-items:center;font:500 12px var(--mono);color:var(--muted)}
.fg-cell{aspect-ratio:1;min-width:0;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);color:var(--ink);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font:500 12px/1.05 var(--mono);cursor:pointer;-webkit-tap-highlight-color:transparent}
.fg-cell b{font-weight:600;font-size:13px}
.fg-cell i{font-style:normal;font-size:11px;color:var(--accent-ink)}
.fg-cell.read{background:var(--panel)}
.fg-cell.sel{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
.fg-cell.shown{cursor:default;background:color-mix(in srgb,var(--ink) calc(var(--fg-t) * 34%),var(--panel))}
.fg-cell.shown i{color:var(--ink);font-weight:700}
.fg-cell.low{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
.fg-cell.mine{border-color:var(--ink)}
.fg .lg-log li span:last-child{text-align:end}

/* a valley's three numbers in one row, and its buttons two to a row, also at phone width */
.fg-stat3{grid-template-columns:repeat(3,minmax(0,1fr))}
.fg-stat3>div{padding:8px 10px}
.fg-stat3 b{font-size:22px}
.fg-acts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.fg-acts .lg-btn{padding:0 10px}
/* the table of the four surveyors has four columns: tighter at phone width, so a name stays on one line */
@media (max-width:480px){.fg .lg-table{font-size:15px}.fg .lg-table th,.fg .lg-table td{padding:9px 8px}.fg .lg-table th{font-size:11px}}
