/* drop-down menus */
.dropmenu { position: fixed; z-index: 750; padding: 2px; min-width: 150px; }
.dropmenu div { padding: 3px 20px; white-space: nowrap; position: relative; }
.dropmenu div:hover { background: var(--sel); color: #fff; }
.dropmenu div.chk::before { content: "\2713"; position: absolute; left: 6px; }
.dropmenu .smsep { padding: 0; }
.dropmenu .smsep:hover { background: none; }
.menubar span[data-game], .menubar span[data-file], .menubar span[data-help] { cursor: default; }

/* minesweeper */
.ms { padding: 6px; display: flex; flex-direction: column; gap: 6px; align-items: stretch; border-left: 1px solid var(--hilite); border-top: 1px solid var(--hilite); }
.in2 { border: 2px solid; border-color: var(--shadow) var(--hilite) var(--hilite) var(--shadow); }
.ms-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 5px; gap: 8px; }
.led { background: #000; color: #ff1a1a; font: bold 23px/1 "Courier New", monospace; padding: 1px 3px; letter-spacing: 1px; min-width: 43px; text-align: center; text-shadow: 0 0 5px rgba(255,0,0,.6);
  border: 1px solid; border-color: var(--shadow) var(--hilite) var(--hilite) var(--shadow); }
.face { width: 26px; height: 26px; padding: 0; display: flex; align-items: center; justify-content: center; }
.face svg { width: 20px; height: 20px; display: block; }
.face:active { border-color: var(--shadow); box-shadow: none; }
.ms-grid { display: grid; align-self: center; touch-action: manipulation; }
.ms-grid .c { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; font: bold 12px/1 Verdana, Tahoma, sans-serif;
  background: var(--face); border: 2px solid; border-color: var(--hilite) var(--shadow) var(--shadow) var(--hilite); }
.ms-grid .c.o { border-width: 1px 0 0 1px; border-color: var(--shadow); }
.ms-grid .c.boom { background: #ff0000; }
.ms-grid .c svg { width: 12px; height: 12px; display: block; }
.n1 { color: #0000ff; } .n2 { color: #008000; } .n3 { color: #ff0000; } .n4 { color: #000080; }
.n5 { color: #800000; } .n6 { color: #008080; } .n7 { color: #000; } .n8 { color: #808080; }

/* paint */
.paint { flex: 1; display: flex; min-height: 0; gap: 2px; }
.ptools { width: 54px; padding: 3px; display: grid; grid-template-columns: 24px 24px; grid-auto-rows: 24px; gap: 1px; align-content: start; flex: none; }
.ptools button { width: 24px; height: 24px; padding: 0; display: flex; align-items: center; justify-content: center; }
.ptools button.on { border-color: var(--dark) var(--hilite) var(--hilite) var(--dark); box-shadow: inset 1px 1px var(--shadow);
  background-image: conic-gradient(var(--hilite) 25%, var(--face) 0 50%, var(--hilite) 0 75%, var(--face) 0); background-size: 2px 2px; }
.ptools svg { width: 16px; height: 16px; display: block; }
.pwrap { flex: 1; background: #808080; overflow: auto; padding: 4px; min-width: 0; }
.pstack { position: relative; display: inline-block; box-shadow: 1px 1px 0 #404040; }
.pstack canvas { display: block; }
canvas.pc { background: #fff; touch-action: none; cursor: crosshair; }
canvas.po { position: absolute; left: 0; top: 0; pointer-events: none; }
.palette { display: flex; gap: 6px; padding: 4px 2px; align-items: center; flex: none; }
.pcur { width: 32px; height: 32px; position: relative; flex: none; background: var(--face); }
.pcur span { position: absolute; width: 14px; height: 14px; border: 1px solid; border-color: var(--shadow) var(--hilite) var(--hilite) var(--shadow); }
.pcur .fgc { left: 4px; top: 4px; z-index: 1; }
.pcur .bgc { left: 12px; top: 12px; }
.swatches { display: grid; grid-template-columns: repeat(14, 15px); grid-auto-rows: 15px; gap: 1px; }
.swatches i { border: 1px solid; border-color: var(--shadow) var(--hilite) var(--hilite) var(--shadow); }

/* coreamp */
.amp { flex: 1; min-height: 0; background: linear-gradient(#2c2c3c, #1b1b26); color: #00e000; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.amp-lcd { display: flex; gap: 6px; background: #000; border: 1px solid; border-color: #0c0c12 #4a4a5c #4a4a5c #0c0c12; padding: 4px; height: 56px; flex: none; }
.amp-time { width: 78px; display: flex; flex-direction: column; justify-content: space-between; flex: none; }
.amp-time span { font: bold 25px/1 "Lucida Console", "Courier New", monospace; color: #00ff00; text-shadow: 0 0 6px rgba(0,255,0,.55); }
.amp-time small { font: 9px/1 Tahoma, sans-serif; color: #00a000; letter-spacing: .08em; }
canvas.amp-vis { flex: 1; min-width: 0; height: 100%; display: block; }
.amp-title { background: #000; border: 1px solid; border-color: #0c0c12 #4a4a5c #4a4a5c #0c0c12; padding: 3px 0; overflow: hidden; white-space: nowrap; flex: none; }
.amp-title span { display: inline-block; padding-left: 100%; font: 11px/1 "Lucida Console", "Courier New", monospace; color: #00e000; animation: ampmarquee 14s linear infinite; }
@keyframes ampmarquee { to { transform: translateX(-100%); } }
.amp-info { display: flex; gap: 4px; align-items: center; font: 10px Tahoma, sans-serif; color: #8a8aa8; flex: none; }
.amp-info b { color: #00e000; background: #000; padding: 1px 3px; font-weight: normal; }
.amp-info .on { color: #00e000; }
.amp-seek { height: 10px; background: #000; border: 1px solid; border-color: #0c0c12 #4a4a5c #4a4a5c #0c0c12; position: relative; flex: none; }
.amp-seek i { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: linear-gradient(90deg, #a06000, #ffb000); }
.amp-ctrl { display: flex; align-items: center; gap: 8px; flex: none; }
.amp-btns { display: flex; gap: 2px; }
.amp-btns button { width: 25px; height: 19px; padding: 0; color: #d8d8e8; font: bold 9px/1 Tahoma, sans-serif;
  background: linear-gradient(#5e5e74, #2e2e3c); border: 1px solid; border-color: #9a9ab4 #0c0c12 #0c0c12 #9a9ab4; display: flex; align-items: center; justify-content: center; }
.amp-btns button:active { background: linear-gradient(#2e2e3c, #5e5e74); border-color: #0c0c12 #9a9ab4 #9a9ab4 #0c0c12; }
.amp-vol { display: flex; align-items: center; gap: 4px; margin-left: auto; font: 9px Tahoma, sans-serif; color: #8a8aa8; }
.amp-vol input { width: 80px; accent-color: #ffb000; }
.amp-pl { flex: 1; min-height: 64px; overflow: auto; background: #000; border: 1px solid; border-color: #0c0c12 #4a4a5c #4a4a5c #0c0c12; font: 11px/1.5 "Lucida Console", "Courier New", monospace; }
.amp-pl div { padding: 0 5px; display: flex; gap: 8px; color: #00c000; cursor: default; }
.amp-pl div span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amp-pl div.on { color: #fff; background: #0000c6; }

/* calculator */
.calc { padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 8px; }
.cdisp { background: #fff; text-align: right; padding: 3px 6px; font: 15px/18px Tahoma, sans-serif; height: 26px; overflow: hidden; white-space: nowrap; }
.crow1 { display: grid; grid-template-columns: 34px 1fr 1fr 1fr; gap: 6px; }
.cmem { height: 28px; }
.cgrid { display: grid; grid-template-columns: 34px repeat(5, 1fr); gap: 5px; }
.cgrid .gap { width: 34px; }
.calc button { height: 28px; min-width: 0; padding: 0; color: #0000c0; font: 12px Tahoma, sans-serif; }
.calc button.r { color: #c00000; }
.calc .cmem-col { display: flex; flex-direction: column; gap: 5px; }

/* screensaver */
#saver { position: fixed; inset: 0; z-index: 1150; display: none; width: 100%; height: 100%; background: #000; cursor: none; }
