:root {
  --bg: #bdbdbd;
  --panel: #d7d7d7;
  --panel-2: #cfcfcf;
  --shadow: #808080;
  --shadow-dark: #404040;
  --highlight: #ffffff;
  --blue: #000080;
  --blue-dark: #00005a;
  --text: #111;
  --link: #0000ff;
  --terminal: #000000;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  background: var(--bg);
  font-family: "MS Sans Serif", Tahoma, Verdana, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.2;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.desktop {
  min-height: 100vh;
  padding: 12px;
}

.window,
.stat-box,
.sponsor-card,
.btc-card {
  border-style: solid;
  border-width: 2px;
  border-top-color: var(--highlight);
  border-left-color: var(--highlight);
  border-right-color: var(--shadow-dark);
  border-bottom-color: var(--shadow-dark);
  background: var(--panel);
}

.shell {
  display: grid;
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto;
}

.window {
  box-shadow: inset 1px 1px 0 var(--highlight), inset -1px -1px 0 var(--shadow);
}

.title-bar {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2px;
  min-height: 20px;
  padding: 0;
  color: #fff;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  font-weight: 700;
  font-size: 11px;
}

.title-bar > span {
  justify-self: center;
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}

.window-controls {
  display: flex;
  gap: 0;
  align-items: center;
  z-index: 1;
}

.window-controls-left {
  justify-self: start;
  transform: translateX(1px);
}

.window-controls-right {
  justify-self: end;
  transform: translateX(1px);
}

.window-controls .control {
  position: relative;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  background: var(--panel);
  border-top: 1px solid var(--highlight);
  border-left: 1px solid var(--highlight);
  border-right: 1px solid var(--shadow-dark);
  border-bottom: 1px solid var(--shadow-dark);
  box-shadow: inset 1px 1px 0 #ffffff80;
}

.window-controls .control svg {
  display: block;
  width: 10px;
  height: 10px;
}

.window-controls .control path {
  fill: #000;
  stroke: #000;
  stroke-width: 0;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.window-controls .minus svg {
  width: 10px;
  height: 10px;
}

.window-body {
  padding: 5px 7px 7px;
}

.hero-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(280px, 1.4fr) minmax(260px, 0.9fr);
  align-items: stretch;
}

.profile-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 6px;
  align-items: center;
  padding: 0;
}

.portrait {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: cover;
  object-position: center;
  background: #000080;
  border: 1px solid #000;
  box-shadow:
    1px 1px 0 var(--highlight),
    -1px -1px 0 var(--shadow-dark);
}

.card-desc,
.donate-body p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: 16px;
  font-weight: 700;
}

.profile-lines {
  display: grid;
  gap: 1px;
}

.profile-line {
  margin: 0;
  font-size: 11px;
  line-height: 1.05;
}

#hero-company,
#hero-country {
  color: #111;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  align-content: start;
}

.stat-box {
  padding: 5px 7px 4px;
  background: var(--panel);
}

.stat-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 2px;
  font-size: 10px;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.section-title {
  margin-bottom: 4px;
  font-size: 13px;
}

.cards {
  display: grid;
  gap: 5px;
}

.card {
  padding: 5px 6px;
  background: var(--panel);
  border: 1px solid #999;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #b0b0b0;
}

.card-top,
.card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}

.card-title {
  font-size: 11px;
  line-height: 1.15;
  min-width: 0;
}

.chip {
  margin-top: 2px;
  padding: 2px 4px 0;
  font-size: 9px;
  line-height: 1;
  background: var(--panel);
  border: 1px solid #777;
  box-shadow: inset 1px 1px 0 #fff;
  white-space: nowrap;
}

.card-desc {
  margin: 3px 0 5px;
  line-height: 1.25;
  font-size: 11px;
}

.card-stats {
  font-size: 10px;
  color: #333;
}

.card-link,
.button {
  display: inline-block;
  padding: 1px 5px;
  color: #000;
  background: var(--panel);
  border: 1px solid;
  border-top-color: #fff;
  border-left-color: #fff;
  border-right-color: #5a5a5a;
  border-bottom-color: #5a5a5a;
  box-shadow: inset 1px 1px 0 #ffffff66;
  font-size: 10px;
}

.donate-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 360px);
  gap: 6px;
  align-items: start;
}

.support-copy {
  display: grid;
  gap: 3px;
}

.donate-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  align-self: start;
}

.sponsor-card,
.btc-card {
  display: grid;
  gap: 3px;
  padding: 4px 5px;
  background: var(--panel);
}

.donate-label {
  font-size: 9px;
  font-weight: 700;
}

.sponsor-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 19px;
  padding: 1px 8px 0;
  text-align: center;
}

.btc-card code {
  display: block;
  padding: 3px 4px;
  overflow-wrap: anywhere;
  word-break: break-all;
  background: var(--terminal);
  color: #8cff8c;
  border: 2px inset #999;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-layout,
  .donate-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .desktop {
    padding: 8px;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .portrait {
    width: 64px;
    height: 64px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .donate-actions {
    grid-template-columns: 1fr;
  }

  .btc-card code {
    word-break: normal;
  }
}
