/* =========================================================================
   MINEQUEST - style.css
   A love letter to Windows 95, classic Minesweeper and Web 1.0.
   Palette: face #c0c0c0, light #ffffff, shadow #808080, dark #0a0a0a.
   ========================================================================= */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #008080;               /* the one true desktop teal */
  color: #000;
  font-family: "MS Sans Serif", "Tahoma", "Geneva", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 12px;
  -webkit-font-smoothing: none;
}

body {
  padding: 14px 10px 28px;
  min-height: 100vh;
}

#desktop {
  max-width: 900px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------- bevels */

.window {
  background: #c0c0c0;
  padding: 3px;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset  1px  1px #ffffff,
    inset -2px -2px #808080,
    inset  2px  2px #dfdfdf;
}

.sunken {
  background: #c0c0c0;
  box-shadow:
    inset -1px -1px #ffffff,
    inset  1px  1px #808080,
    inset -2px -2px #dfdfdf,
    inset  2px  2px #0a0a0a;
}

/* ------------------------------------------------------------- title bar */

.titlebar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #fff;
  padding: 3px 3px 3px 4px;
  font-weight: bold;
  letter-spacing: 0.02em;
  user-select: none;
}

.titlebar-icon { font-size: 13px; line-height: 1; }

.titlebar-text {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.titlebar-buttons { display: flex; gap: 2px; flex: 0 0 auto; }

.tb-btn {
  width: 18px;
  height: 16px;
  padding: 0;
  border: 0;
  background: #c0c0c0;
  color: #000;
  font-family: inherit;
  font-size: 10px;
  line-height: 14px;
  cursor: default;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset  1px  1px #ffffff,
    inset -2px -2px #808080,
    inset  2px  2px #dfdfdf;
}
.tb-btn:active {
  box-shadow:
    inset  1px  1px #0a0a0a,
    inset -1px -1px #ffffff,
    inset  2px  2px #808080,
    inset -2px -2px #dfdfdf;
}

/* -------------------------------------------------------------- menu bar */

.menubar {
  display: flex;
  gap: 2px;
  padding: 2px 2px 3px;
  border-bottom: 1px solid #808080;
  margin-bottom: 3px;
}

.menu-item {
  padding: 2px 7px;
  cursor: default;
  user-select: none;
}
.menu-item:hover { background: #000080; color: #fff; }
.menu-item u { text-decoration: underline; }

/* ------------------------------------------------------------- workspace */

.workspace {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  padding: 0 3px;
}

.board-col { flex: 0 1 auto; min-width: 0; }

.board-frame {
  padding: 3px;
  background: #c0c0c0;
  box-shadow:
    inset -1px -1px #ffffff,
    inset  1px  1px #808080,
    inset -2px -2px #dfdfdf,
    inset  2px  2px #0a0a0a;
  line-height: 0;
}

#board {
  display: block;
  width: 640px;
  height: auto;          /* keeps 4:3 when max-width shrinks the board */
  max-width: 100%;
  background: #808080;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  outline: none;
  cursor: crosshair;
}

/* --------------------------------------------------------------- ticker */

.ticker {
  margin-top: 5px;
  height: 20px;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow:
    inset -1px -1px #ffffff,
    inset  1px  1px #808080,
    inset -2px -2px #dfdfdf,
    inset  2px  2px #0a0a0a;
}

.ticker-track {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  line-height: 20px;
  color: #00ff66;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  padding-left: 100%;
  animation: scrollticker 46s linear infinite;
}

@keyframes scrollticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* -------------------------------------------------------------- sidebar */

.side-col {
  flex: 1 1 208px;
  min-width: 190px;
  max-width: 230px;
}

.group {
  border: 0;
  margin: 0 0 6px;
  padding: 6px 7px 8px;
  background: #c0c0c0;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset  1px  1px #ffffff,
    inset -2px -2px #808080,
    inset  2px  2px #dfdfdf;
}

.group legend {
  padding: 0 4px;
  font-weight: bold;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1px 0;
}
.stat-row.tiny { font-size: 10px; color: #303030; }
.stat-key { color: #000080; font-weight: bold; }
.stat-val { font-family: "Courier New", Courier, monospace; font-weight: bold; }
.stat-val.gold { color: #806000; }

.bar {
  height: 14px;
  margin: 3px 0 5px;
  background: #000;
  overflow: hidden;
}
.bar.thin { height: 8px; }

.bar-fill {
  height: 100%;
  width: 100%;
  transition: width 0.12s linear;
}
.bar-fill.hp {
  background: repeating-linear-gradient(90deg, #00c000 0 6px, #00a000 6px 8px);
}
.bar-fill.hp.hurt {
  background: repeating-linear-gradient(90deg, #d0d000 0 6px, #a0a000 6px 8px);
}
.bar-fill.hp.danger {
  background: repeating-linear-gradient(90deg, #e00000 0 6px, #a00000 6px 8px);
}
.bar-fill.xp {
  background: repeating-linear-gradient(90deg, #3050d0 0 6px, #2038a0 6px 8px);
}

.depth-box {
  background: #000;
  color: #ff3030;
  font-family: "Courier New", Courier, monospace;
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 3px;
  padding: 2px 0 3px;
  margin-bottom: 3px;
}

.band-name {
  text-align: center;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.06em;
  color: #000080;
  margin-bottom: 4px;
  min-height: 12px;
}

/* -------------------------------------------------------------- buttons */

.btn {
  font-family: inherit;
  font-size: 11px;
  padding: 4px 6px;
  background: #c0c0c0;
  color: #000;
  border: 0;
  cursor: pointer;
  user-select: none;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset  1px  1px #ffffff,
    inset -2px -2px #808080,
    inset  2px  2px #dfdfdf;
}
.btn:active, .btn.pressed {
  padding: 5px 5px 3px 7px;
  box-shadow:
    inset  1px  1px #0a0a0a,
    inset -1px -1px #ffffff,
    inset  2px  2px #808080,
    inset -2px -2px #dfdfdf;
}
.btn:focus { outline: 1px dotted #000; outline-offset: -4px; }
.btn[disabled] { color: #808080; text-shadow: 1px 1px #fff; cursor: default; }
.btn.wide { display: block; width: 100%; margin-top: 6px; }
.btn.big { font-size: 13px; font-weight: bold; padding: 7px 14px; }
.btn.big:active { padding: 8px 13px 6px 15px; }

.btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

/* ------------------------------------------------------------ message log */

.log-wrap { padding: 6px 6px 0; }

.panel-label {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #000080;
  margin-bottom: 2px;
}

.log {
  height: 104px;
  overflow-y: scroll;
  background: #000;
  padding: 3px 5px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 14px;
  color: #c0c0c0;
}

.log div { white-space: pre-wrap; word-break: break-word; }
.log .m-good   { color: #40ff40; }
.log .m-bad    { color: #ff5050; }
.log .m-gold   { color: #ffd700; }
.log .m-level   { color: #ffff40; font-weight: bold; }
.log .m-sys    { color: #8080ff; }
.log .m-dim    { color: #808080; }
.log .m-crit   { color: #ff9020; font-weight: bold; }

/* ------------------------------------------------------------- status bar */

.statusbar {
  display: flex;
  gap: 3px;
  padding: 4px 3px 2px;
}

.status-cell {
  padding: 2px 6px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #c0c0c0;
  box-shadow:
    inset -1px -1px #ffffff,
    inset  1px  1px #808080,
    inset -2px -2px #dfdfdf,
    inset  2px  2px #0a0a0a;
}
.status-cell.grow { flex: 1 1 auto; min-width: 0; }

/* =================================================================== WEB 1.0 */

.web10 {
  margin-top: 14px;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  color: #ffffcc;
}

.construction {
  background: repeating-linear-gradient(45deg, #ffd800 0 10px, #000 10px 20px);
  color: #fff;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 0;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  animation: blinkbar 1.6s steps(1) infinite;
}
@keyframes blinkbar { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.72; } }

.counter-line { margin: 10px 0 6px; font-size: 14px; }

.counter {
  display: inline-block;
  background: #000;
  color: #00ff44;
  font-family: "Courier New", Courier, monospace;
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 3px;
  padding: 2px 7px;
  border: 2px inset #808080;
  vertical-align: middle;
}

.netscape { margin: 6px 0; }

.badge {
  display: inline-block;
  margin: 3px 4px;
  padding: 3px 7px;
  font-size: 10px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  color: #000;
  background: #c0c0c0;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset  1px  1px #ffffff,
    inset -2px -2px #808080,
    inset  2px  2px #dfdfdf;
}

.smallprint { font-size: 12px; margin: 8px 0 0; color: #cceeee; }
.smallprint a { color: #ffff66; }
.smallprint a:visited { color: #ff99ff; }

/* ================================================================== OVERLAY */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 40, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}
.overlay[hidden] { display: none; }

.dialog {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow: auto;
  padding: 3px;
}
.dialog.wide { max-width: 620px; }

.dialog-body { padding: 12px 14px 14px; }

.dialog-body h2 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: 0.06em;
}
.dialog-body p { margin: 0 0 8px; line-height: 1.45; }
.dialog-body ul { margin: 0 0 10px; padding-left: 18px; line-height: 1.5; }
.dialog-body .hint { font-size: 11px; color: #404040; }

.dialog-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

/* ------------------------------------------------------------- splash art */

.splash { text-align: center; }

.wordmark {
  font-family: "Courier New", Courier, monospace;
  font-size: 40px;
  font-weight: bold;
  letter-spacing: 5px;
  line-height: 1;
  margin: 6px 0 2px;
  color: #c0c0c0;
  text-shadow:
     2px  2px 0 #000080,
     4px  4px 0 #000040,
    -1px -1px 0 #ffffff;
}

.wordmark .q { color: #ff3030; text-shadow: 2px 2px 0 #600000, -1px -1px 0 #ffc0c0; }

.tagline {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 14px;
  margin: 6px 0 12px;
}

.splash-rule {
  height: 2px;
  background: linear-gradient(90deg, transparent, #000080, transparent);
  margin: 10px 0;
}

.seed-row {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  margin: 10px 0 4px;
  font-size: 11px;
}

.seed-row input {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  width: 150px;
  padding: 3px 4px;
  border: 0;
  background: #fff;
  box-shadow:
    inset -1px -1px #ffffff,
    inset  1px  1px #808080,
    inset -2px -2px #dfdfdf,
    inset  2px  2px #0a0a0a;
}

/* ------------------------------------------------------------------ combat */

.combat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.combat-portrait {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  background: #000;
  image-rendering: pixelated;
  box-shadow:
    inset -1px -1px #ffffff,
    inset  1px  1px #808080,
    inset -2px -2px #dfdfdf,
    inset  2px  2px #0a0a0a;
}

.combat-info { flex: 1 1 auto; min-width: 0; }
.combat-name { font-weight: bold; font-size: 14px; }
.combat-sub { font-size: 11px; color: #404040; margin-bottom: 3px; }

.combat-log {
  height: 116px;
  overflow-y: scroll;
  background: #000;
  color: #c0c0c0;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 15px;
  padding: 3px 5px;
  margin-top: 8px;
  box-shadow:
    inset -1px -1px #ffffff,
    inset  1px  1px #808080,
    inset -2px -2px #dfdfdf,
    inset  2px  2px #0a0a0a;
}
.combat-log .m-good { color: #40ff40; }
.combat-log .m-bad  { color: #ff5050; }
.combat-log .m-crit { color: #ff9020; font-weight: bold; }
.combat-log .m-gold { color: #ffd700; }
.combat-log .m-sys  { color: #8080ff; }
.combat-log .m-dim  { color: #808080; }

/* -------------------------------------------------------------------- shop */

table.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  background: #fff;
  box-shadow:
    inset -1px -1px #ffffff,
    inset  1px  1px #808080,
    inset -2px -2px #dfdfdf,
    inset  2px  2px #0a0a0a;
}
table.grid th,
table.grid td {
  border: 1px solid #c0c0c0;
  padding: 3px 5px;
  text-align: left;
}
table.grid th {
  background: #c0c0c0;
  font-size: 10px;
  letter-spacing: 0.06em;
}
table.grid td.num { text-align: right; font-family: "Courier New", monospace; }
table.grid tr.rank1 td { background: #ffffcc; font-weight: bold; }

.shop-row-btn { font-size: 10px; padding: 2px 6px; }

/* ------------------------------------------------------------------ misc */

.kbd {
  display: inline-block;
  min-width: 16px;
  text-align: center;
  padding: 1px 4px;
  margin: 0 1px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  background: #c0c0c0;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset  1px  1px #ffffff,
    inset -2px -2px #808080,
    inset  2px  2px #dfdfdf;
}

.blink { animation: blinktext 1s steps(1) infinite; }
@keyframes blinktext { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.center { text-align: center; }
.dead-stat { font-family: "Courier New", monospace; font-size: 13px; }
.dead-depth {
  font-family: "Courier New", monospace;
  font-size: 34px;
  font-weight: bold;
  color: #a00000;
  letter-spacing: 3px;
}

/* ==================================================== v2: STATUS EFFECTS */

.sbadges { display: flex; flex-wrap: wrap; gap: 3px; }

.sbadge {
  display: inline-block;
  padding: 1px 4px;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: bold;
  background: #000;
  box-shadow:
    inset -1px -1px #ffffff,
    inset  1px  1px #808080,
    inset -2px -2px #dfdfdf,
    inset  2px  2px #0a0a0a;
}
.sbadge.bad  { background: #1a0000; }
.sbadge.good { background: #001a00; }

/* ========================================================= v2: CONTRACTS */

.qlist { font-size: 10px; line-height: 13px; }
.qrow { padding: 1px 0; border-bottom: 1px dotted #a0a0a0; }
.qrow:last-child { border-bottom: 0; }
.qrow.qdone { color: #006000; font-weight: bold; }

/* ========================================================= v2: RARITIES */

.it { font-weight: bold; }

/* ========================================================= v2: PAPERDOLL */

.paperdoll {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}
.pd-col { flex: 1 1 0; display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.pd-slot {
  padding: 4px 5px;
  min-height: 54px;
  background: #c0c0c0;
  cursor: default;
  box-shadow:
    inset -1px -1px #ffffff,
    inset  1px  1px #808080,
    inset -2px -2px #dfdfdf,
    inset  2px  2px #0a0a0a;
}
.pd-slot.filled { cursor: pointer; background: #cdcdcd; }
.pd-slot.filled:hover { background: #d8d8d8; }

.pd-label {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #000080;
  font-weight: bold;
  margin-bottom: 2px;
}
.pd-item { font-size: 11px; line-height: 13px; word-break: break-word; }
.pd-stats { font-size: 10px; line-height: 12px; margin-top: 2px; }

.pd-totals {
  padding: 5px 7px;
  font-size: 11px;
  background: #000;
  color: #c0c0c0;
  font-family: "Courier New", Courier, monospace;
}
.pd-totals b { color: #ffd700; }

/* ============================================================ v2: COMBAT */

.foes { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }

.foe {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 6px;
  cursor: pointer;
  background: #c0c0c0;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset  1px  1px #ffffff,
    inset -2px -2px #808080,
    inset  2px  2px #dfdfdf;
}
.foe.targeted { background: #d4d4a0; }
.foe.dead { opacity: 0.5; cursor: default; }

.foe-portrait {
  width: 32px; height: 32px; flex: 0 0 32px;
  background: #000;
  image-rendering: pixelated;
  box-shadow:
    inset -1px -1px #ffffff,
    inset  1px  1px #808080,
    inset -2px -2px #dfdfdf,
    inset  2px  2px #0a0a0a;
}
.foe-info { flex: 1 1 auto; min-width: 0; }
.foe-name { font-weight: bold; font-size: 12px; }

.elite-tag {
  background: #800000;
  color: #ffd700;
  font-size: 9px;
  padding: 0 3px;
  letter-spacing: 0.1em;
}

.hero-bar {
  padding: 4px 6px;
  margin-bottom: 6px;
  background: #c0c0c0;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset  1px  1px #ffffff,
    inset -2px -2px #808080,
    inset  2px  2px #dfdfdf;
}

/* ============================================================== v2: TABS */

.tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  border-bottom: 2px solid #808080;
  margin-bottom: 6px;
  padding-bottom: 0;
}

.tab {
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 14px;
  border: 0;
  background: #b0b0b0;
  cursor: pointer;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset  1px  1px #ffffff,
    inset -2px -2px #808080,
    inset  2px  2px #dfdfdf;
}
.tab.on { background: #d4d4d4; padding-bottom: 6px; }

.tab-gold { margin-left: auto; font-size: 11px; padding: 0 4px 3px; }
.tab-gold .gold { color: #806000; }

.npc-greet {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 13px;
  margin: 0 0 8px;
}

/* ========================================================= v2: SHOP/QTY */

.shop-table { max-height: 230px; overflow-y: auto; margin-bottom: 6px; }

table.grid tr.selrow td { background: #000080; color: #fff; }
table.grid tr.selrow td .hint { color: #c0d0ff; }
table.grid tr[data-act] { cursor: pointer; }
table.grid td.poor { color: #a00000; font-size: 10px; }

.qty-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  padding: 6px 7px;
  margin-bottom: 8px;
}

.qty-label {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #000080;
}

.qty-input {
  width: 62px;
  padding: 3px 4px;
  border: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  background: #fff;
  box-shadow:
    inset -1px -1px #ffffff,
    inset  1px  1px #808080,
    inset -2px -2px #dfdfdf,
    inset  2px  2px #0a0a0a;
}

.btn.qbtn { padding: 3px 8px; font-size: 12px; font-weight: bold; }
.btn.qbtn.wide-btn { font-size: 10px; }
.qty-total { margin-left: auto; font-size: 12px; }
.qty-total .gold { color: #806000; }

/* ============================================================ v2: QUESTS */

.quest-card {
  padding: 6px 8px;
  margin-bottom: 6px;
  background: #c0c0c0;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset  1px  1px #ffffff,
    inset -2px -2px #808080,
    inset  2px  2px #dfdfdf;
}
.quest-card.ready { background: #cfe0cf; }

.quest-title { font-weight: bold; font-size: 12px; }
.qtier {
  font-size: 9px;
  background: #000080;
  color: #fff;
  padding: 0 4px;
  letter-spacing: 0.06em;
}
.quest-reward { font-size: 11px; margin-top: 3px; }
.quest-reward .gold { color: #806000; }
.quest-prog {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  margin-top: 2px;
  color: #000080;
}
.quest-offer, .quest-done { margin-bottom: 8px; }
.quest-done { background: #ffffcc; padding: 4px; }

/* ====================================================== v3: ACTION BAR */

.skillbar-wrap { margin-top: 5px; }

.skillbar {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px;
  background: #c0c0c0;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset  1px  1px #ffffff,
    inset -2px -2px #808080,
    inset  2px  2px #dfdfdf;
}

.sk-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px 3px 4px;
  border: 0;
  background: #c0c0c0;
  font-family: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  position: relative;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset  1px  1px #ffffff,
    inset -2px -2px #808080,
    inset  2px  2px #dfdfdf;
}
.sk-btn:active,
.sk-btn.armed {
  box-shadow:
    inset  1px  1px #0a0a0a,
    inset -1px -1px #ffffff,
    inset  2px  2px #808080,
    inset -2px -2px #dfdfdf;
}
.sk-btn.armed { background: #d4d4a0; }
.sk-btn[disabled] { color: #808080; cursor: default; }
.sk-btn[disabled] .sk-icon { opacity: 0.4; }
.sk-btn.small { font-size: 10px; }

.sk-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-block;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  background-color: #000;
  box-shadow:
    inset -1px -1px #ffffff,
    inset  1px  1px #808080,
    inset -2px -2px #dfdfdf,
    inset  2px  2px #0a0a0a;
}
.sk-icon-txt {
  color: #ffd700;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  font-family: "Courier New", monospace;
}

.sk-txt { display: flex; flex-direction: column; line-height: 12px; }
.sk-sub { font-size: 9px; color: #303030; }
.sk-btn.armed .sk-sub { color: #404000; }
.sk-btn[disabled] .sk-sub { color: #909090; }

.sk-key {
  position: absolute;
  top: 1px; right: 2px;
  font-family: "Courier New", monospace;
  font-size: 8px;
  color: #505050;
}

.sk-sep {
  width: 2px;
  align-self: stretch;
  margin: 0 3px;
  background: #808080;
  border-right: 1px solid #ffffff;
}

/* ======================================================== v3: RESOURCE */

.bar-fill.res {
  background: repeating-linear-gradient(90deg, #20b0c0 0 6px, #1080a0 6px 8px);
}

/* ========================================================== v3: REGION */

.region-name {
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 12px;
  font-weight: bold;
  color: #400000;
  background: #d8d4c0;
  padding: 2px 3px;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow:
    inset -1px -1px #ffffff,
    inset  1px  1px #808080;
}

/* ==================================================== v3: TITLE BANNER */

.title-banner {
  display: block;
  margin: 0 auto 4px;
  image-rendering: pixelated;
  max-width: 100%;
  height: auto;
}

.class-line {
  background: #d8d4c0;
  padding: 5px 7px;
  font-size: 11px;
  box-shadow:
    inset -1px -1px #ffffff,
    inset  1px  1px #808080,
    inset -2px -2px #dfdfdf,
    inset  2px  2px #0a0a0a;
}

/* --------------------------------------------------------- narrow screens */

@media (max-width: 880px) {
  .workspace { flex-wrap: wrap; }
  .side-col { max-width: none; flex: 1 1 100%; }
  .btn-grid { grid-template-columns: repeat(4, 1fr); }
}
