/* Dipogon, the GREY look (SETTINGS > LOOK; html.look-grey, the default): a plain grey metal panel, black chicken-head
   knobs over a printed scale, a plain condensed type. Only colours, type and the knobs' drawing change: every box keeps
   the LCD look's size and place, so the grid is the same in both. The LCD look (css/lcd.css) hides the knobs' parts */
.knob .sc, .knob .skirt, .knob .skirt-top, .knob .chh, .knob .chl { display: none; }
.knob :is(.rdc, .rdl, .rbb, .rbr, .rbt, .rbl, .rub, .rut, .rud) { display: none; }

html.look-grey {
  /* the two colours every shade comes from (over SCREEN COLOURS, which is the LCD look's) */
  --panel-rgb: 172 174 172 !important; --ink-rgb: 24 25 27 !important; --shade-rgb: 0 0 0 !important; --glow: 0 !important;
  --font: "Barlow Condensed", "Arial Narrow", sans-serif;
  --shadow: none; --ghost: rgb(var(--ink-rgb) / .13);
  --accent: #e2561b; /* modulation: the range arc and the live dot */
}
html.look-grey * { font-size-adjust: cap-height 0.6; }
html.look-grey body { background: #1d1e1f; }
html.look-grey .screen {
  border-color: #2b2c2d;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, .06)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 2px, rgba(0, 0, 0, .02) 2px 3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 6px rgba(0, 0, 0, .18);
}
/* buttons: raised, lighter keys with a dark edge; pressed or chosen, dark */
html.look-grey .btn { background: linear-gradient(180deg, rgb(255 255 255 / .34), rgb(255 255 255 / .1)); border-width: 2px; border-color: rgb(var(--ink-rgb) / .7);
  box-shadow: 0 1px 0 rgb(0 0 0 / .25); }
html.look-grey .btn:hover { background: rgb(255 255 255 / .42); }
html.look-grey .btn:active, html.look-grey .btn[aria-pressed="true"], html.look-grey .btn[aria-selected="true"], html.look-grey .btn.big { background: var(--ink); color: rgb(var(--panel-rgb)); }
html.look-grey .btn:disabled { background: transparent; }
html.look-grey .lcdbox { background: rgb(0 0 0 / .06); border-color: rgb(var(--ink-rgb) / .7); }

/* the chicken-head knob: a black skirt, the head turned to the value, a white line along it; the scale printed round */
html.look-grey .knob svg { filter: drop-shadow(0 2px 1.5px rgb(0 0 0 / .4)); }
html.look-grey .knob .tk, html.look-grey .knob .ptr { display: none; }
html.look-grey .knob .sc { display: inline; stroke: var(--ink); stroke-width: 1.5; }
html.look-grey .knob .skirt { display: inline; fill: #6b6d70; stroke: #3a3b3d; stroke-width: .8; }
html.look-grey .knob .skirt-top { display: inline; fill: #85878a; }
html.look-grey .knob .chh { display: inline; fill: #141516; stroke: #050505; stroke-width: .7; }
html.look-grey .knob .chl { display: inline; stroke: #f4f3ee; stroke-width: 2; stroke-linecap: round; }
html.look-grey .knob .notch { stroke: var(--ink); }
/* the other KNOB STYLEs (SETTINGS > KNOB STYLE): each hides the chicken head and shows its own parts */
html.look-grey:is(.knob-round, .knob-ribbed, .knob-rubber) .knob :is(.chh, .chl) { display: none; }
html.look-grey:is(.knob-ribbed, .knob-rubber) .knob :is(.skirt, .skirt-top) { display: none; }
html.look-grey.knob-round .knob .rdc { display: inline; fill: #141516; stroke: #050505; stroke-width: .7; }
html.look-grey.knob-round .knob .rdl { display: inline; stroke: #f4f3ee; stroke-width: 1.8; stroke-linecap: round; }
/* ROUND, RIBBED and RUBBER are round, smaller than the chicken head inside the scale, so the scale and markers come in snug round them (Johnny,
   2026-11-19: "fit the markings to these"): ticks from just outside its flange, a little bolder to read at that size */
html.look-grey:is(.knob-round, .knob-ribbed, .knob-rubber) { --ring-r: 19.5; } /* (the scale pulled in, with room for the modulation arc) */
html.look-grey:is(.knob-round, .knob-ribbed, .knob-rubber) .knob .ring { transform: scale(.64); transform-origin: 32px 32px; }
html.look-grey:is(.knob-round, .knob-ribbed, .knob-rubber) .knob .sc { stroke-width: 2.2; }
html.look-grey:is(.knob-round, .knob-ribbed, .knob-rubber) .knob .mrange { stroke-width: 3.8; }
html.look-grey:is(.knob-round, .knob-ribbed, .knob-rubber) .knob .notch { stroke-width: 5.6; }
html.look-grey.knob-ribbed .knob .rbb { display: inline; fill: #18191b; stroke: #050505; stroke-width: .7; }
html.look-grey.knob-ribbed .knob .rbr { display: inline; stroke: #3a3c40; stroke-width: .9; }
html.look-grey.knob-ribbed .knob .rbt { display: inline; fill: #0e0f10; }
html.look-grey.knob-ribbed .knob .rbl { display: inline; stroke: #f4f3ee; stroke-width: 1.7; stroke-linecap: round; }
html.look-grey.knob-rubber .knob .rub { display: inline; fill: #2b2d30; stroke: #17181a; stroke-width: .7; }
html.look-grey.knob-rubber .knob .rut { display: inline; fill: #36383c; opacity: .8; }
html.look-grey.knob-rubber .knob .rud { display: inline; fill: #f4f3ee; }
html.look-grey .knob .mrange { stroke: var(--accent); stroke-width: 2.6; opacity: .95; }
html.look-grey .knob .mdot { fill: var(--accent); stroke: #fff; stroke-width: .6; }

/* the subtle depth (app/panel3d.js, html.panel3d: the GREY look on the big screen): three.js draws the panel and the
   knobs' heads on a canvas behind everything, so the flat background and the SVG heads give way; the printed scale,
   the modulation arc and every box stay the page's own, where they were */
html.panel3d #screen { isolation: isolate; background: none; box-shadow: none; }
#screen > canvas.panel3d { display: none; }
html.panel3d #screen > canvas.panel3d { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; border-radius: 6px; pointer-events: none; }
html.panel3d .knob:not(#fxside .knob) svg { filter: none; }
html.panel3d .knob:not(#fxside .knob) :is(.skirt, .skirt-top, .chh, .chl, .rdc, .rdl, .rbb, .rbr, .rbt, .rbl, .rub, .rut, .rud) { display: none !important; }
html.panel3d .start { background-color: rgb(172 174 172); }

/* a rocker switch (vtoggle in app/main.js), like a black KCD1: a matte black rocker in a black bezel, seen from above,
   O and I printed white. The raised end is lit along its edge and the rocker's face falls away from it; the pressed end
   sinks into a shadow. With the three.js panel on, app/panel3d.js builds it in 3D instead (html.panel3d below) */
html.look-grey .tog svg { filter: drop-shadow(0 2.4px 1.8px rgb(0 0 0 / .45)); }
html.look-grey .tog .rbz2, html.look-grey .tog .rgap, html.look-grey .tog .rface, html.look-grey .tog .rsh, html.look-grey .tog .rhl { display: inline; }
html.look-grey .tog .rbez { fill: #1d1e20; stroke: #070708; stroke-width: .8; }
html.look-grey .tog .rbz2 { fill: #131415; }
html.look-grey .tog .rgap { fill: #030303; }
html.look-grey .tog .rface { fill: #232427; }
html.look-grey .tog .rup, html.look-grey .tog .rdn { fill: #fff; opacity: .08; }
html.look-grey .tog[aria-checked="true"] .rdn, html.look-grey .tog[aria-checked="false"] .rup { fill: #000; opacity: .42; }
html.look-grey .tog .rsh { fill: #000; opacity: .75; }
html.look-grey .tog[aria-checked="true"] .rsh-up, html.look-grey .tog[aria-checked="false"] .rsh-dn { display: none; }
html.look-grey .tog .rhl { stroke: #fff; stroke-width: 1.3; stroke-linecap: round; opacity: .38; }
html.look-grey .tog[aria-checked="true"] .rhl-dn, html.look-grey .tog[aria-checked="false"] .rhl-up { display: none; }
html.look-grey .tog .rmk { fill: none; stroke: #f4f3ee; stroke-width: 1.7; stroke-linecap: butt; }
html.look-grey .tog[aria-checked="true"] line.rmk, html.look-grey .tog[aria-checked="false"] circle.rmk { opacity: .7; }
html.look-grey .tog .mrange { stroke: var(--accent); stroke-width: 2.6; opacity: .95; }
html.look-grey .tog .mdot { fill: var(--accent); stroke: #fff; stroke-width: .6; }
html.panel3d .tog:not(#fxside .tog) svg { filter: none; }
html.panel3d .tog:not(#fxside .tog) svg > :not(.mrange):not(.mdot) { display: none; }

/* LEVEL's fader in the GREY look: a black cap with a white line over a dark slot (html.panel3d: three.js draws the cap) */
html.look-grey .knob.fslide svg { filter: drop-shadow(0 2px 1.5px rgb(0 0 0 / .4)); }
html.look-grey .knob.fslide .slot { fill: #232425; }
html.look-grey .knob.fslide .fcap { fill: #141516; stroke: #050505; stroke-width: .8; }
html.look-grey .knob.fslide .fcl { stroke: #f4f3ee; stroke-width: 2; }
html.look-grey .knob.fslide .mrange { stroke: var(--accent); stroke-width: 2.6; }
html.panel3d .knob.fslide svg { filter: none; }
html.panel3d .knob.fslide .fcap, html.panel3d .knob.fslide .fcl, html.panel3d .knob.fslide .slot { display: none; }

/* PANEL COLOUR (SETTINGS; html.panel-own): the GREY look's panel in a colour of your own, the ink light on a dark one */
html.look-grey.panel-own { --panel-rgb: var(--grey-panel) !important; --ink-rgb: var(--grey-ink) !important; }
html.look-grey.panel-own .btn:active, html.look-grey.panel-own .btn[aria-pressed="true"], html.look-grey.panel-own .btn[aria-selected="true"] { color: rgb(var(--panel-rgb)); }
/* the piano keys on the GREY panel: ivory keys and black keys, the key on screen in the modulation orange */
html.look-grey .keyhead .keystrip { --kselc: var(--accent); }
html.look-grey .keyhead .piano .k:not(.blk) { background: linear-gradient(180deg, #f3f2ec 0%, #e3e2db 85%, #cfcec7 100%); border-color: #3a3b3d; color: #222; }
html.look-grey .keyhead .piano .k.blk { background: linear-gradient(180deg, #2a2b2d, #111 80%, #2c2d2f); border-color: #050505; color: #ddd;
  box-shadow: 0 2px 2px rgb(0 0 0 / .35); }
html.look-grey .keyhead .piano .k:not(.blk):hover { background: #fff; }
html.look-grey .keyhead .piano .k.sel:not(.blk) { background: linear-gradient(180deg, #f08a5c, var(--accent)); color: #fff; }
html.look-grey .keyhead .piano .k.blk.sel { background: linear-gradient(180deg, #c8501c, var(--accent)); box-shadow: 0 2px 2px rgb(0 0 0 / .35); color: #fff; }
html.look-grey .keyhead .piano .k.hit:not(.sel):not(.blk) { background: #fbd9c8; }
html.look-grey .keyhead .piano .k.blk.hit:not(.sel) { background: #6a3420; }
/* the key on screen on the GREY panel: orange with a dark frame, and the bar under the keyboard in orange */
html.look-grey .keyhead .piano .k.sel:not(.blk) { background: repeating-linear-gradient(135deg, #f39a70 0 3px, var(--accent) 3px 7px); box-shadow: inset 0 0 0 3px #3a1a0c; color: #fff; }
html.look-grey .keyhead .piano .k.blk.sel { background: repeating-linear-gradient(135deg, #f39a70 0 3px, var(--accent) 3px 7px); box-shadow: inset 0 0 0 3px #3a1a0c, 0 2px 2px rgb(0 0 0 / .35); color: #fff; }
html.look-grey .keyhead .piano .k.sel::before { background: var(--accent); }
