:root {
  --bg-dark: #0b0d14;
  --bg-mid: #11141e;
  --panel-bg: #1a1e2e;
  --panel-shadow: #080a10;
  --panel-highlight: #2e3448;
  --panel-border: #3a4058;
  --gold: #b8963e;
  --gold-bright: #d4b85a;
  --gold-dim: #7a6430;
  --cream: #ddd4c4;
  --cream-dim: #8a8278;
  --cream-bright: #f0e8d8;
}

body {
  background: var(--bg-dark);
  background-image:
    linear-gradient(45deg, var(--bg-mid) 25%, transparent 25%),
    linear-gradient(-45deg, var(--bg-mid) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--bg-mid) 75%),
    linear-gradient(-45deg, transparent 75%, var(--bg-mid) 75%);
  background-size: 16px 16px;
  color: var(--cream);
  font-family: 'Pixelify Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  line-height: 1.5;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  image-rendering: pixelated;
}

.stone-panel {
  background: var(--panel-bg);
  border: 2px solid var(--panel-shadow);
  box-shadow:
    inset 0 0 0 1px var(--panel-highlight),
    0 4px 16px rgba(0, 0, 0, 0.6);
  max-width: 420px;
  width: 100%;
  position: relative;
}

.panel-border-top,
.panel-border-bottom {
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold-dim) 15%,
    var(--gold) 50%,
    var(--gold-dim) 85%,
    transparent 100%
  );
}

.panel-border-top {
  margin-bottom: 0;
}

.panel-border-bottom {
  margin-top: 0;
}

.panel-content {
  padding: 32px 28px 24px;
}

.title-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.title-banner h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 22px;
  color: var(--gold-bright);
  text-shadow:
    2px 2px 0 var(--gold-dim),
    -1px -1px 0 var(--bg-dark);
  letter-spacing: 2px;
  margin: 0;
  line-height: 1.4;
  word-break: break-word;
}

.title-icon {
  color: var(--gold);
  font-size: 12px;
  opacity: 0.7;
}

.banner-corner {
  width: 24px;
  height: 2px;
  background: var(--gold-dim);
  flex-shrink: 0;
}

.subtitle {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 14px;
  color: var(--cream-dim);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.avatar-frame {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.avatar-border {
  position: relative;
  padding: 4px;
  background: var(--panel-shadow);
  box-shadow:
    inset 0 0 0 1px var(--panel-highlight),
    0 0 0 1px var(--gold-dim);
}

.avatar-border::before,
.avatar-border::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
}

.avatar-border::before {
  top: -3px;
  left: -3px;
  border-right: none;
  border-bottom: none;
}

.avatar-border::after {
  top: -3px;
  right: -3px;
  border-left: none;
  border-bottom: none;
}

.avatar-border .avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  display: block;
  image-rendering: auto;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  gap: 8px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.divider-diamond {
  color: var(--gold);
  font-size: 10px;
  opacity: 0.8;
}

.button-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0;
  background: #222738;
  border: 2px solid var(--panel-shadow);
  box-shadow:
    inset 0 0 0 1px #3a4058,
    inset 0 2px 0 rgba(255, 255, 255, 0.05);
  min-height: 48px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.btn:hover {
  background: #2a3042;
  box-shadow:
    inset 0 0 0 1px #4a5068,
    inset 0 2px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 0 0 1px #2a3042,
    inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 48px;
  flex-shrink: 0;
  border-right: 1px solid var(--panel-shadow);
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
}

.btn-icon img {
  width: 22px;
  height: 22px;
  display: block;
  image-rendering: auto;
}

.btn-github .btn-icon img {
  filter: brightness(0) invert(1);
}

.btn-text {
  flex: 1;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--cream-bright);
  padding: 0 14px;
  text-align: left;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.btn-arrow {
  padding: 0 14px;
  color: var(--gold-dim);
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn:hover .btn-arrow {
  opacity: 1;
  color: var(--gold);
}

.btn-mastodon:hover {
  border-color: #6364ff;
}
.btn-mastodon:hover .btn-icon {
  background: rgba(99, 100, 255, 0.15);
}

.btn-bluesky:hover {
  border-color: #1185fe;
}
.btn-bluesky:hover .btn-icon {
  background: rgba(17, 133, 254, 0.15);
}

.btn-youtube:hover {
  border-color: #ff0000;
}
.btn-youtube:hover .btn-icon {
  background: rgba(255, 0, 0, 0.15);
}

.btn-github:hover {
  border-color: #ffffff;
}
.btn-github:hover .btn-icon {
  background: rgba(255, 255, 255, 0.1);
}

.footer {
  text-align: center;
  font-size: 12px;
  color: var(--cream-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer a {
  color: var(--gold-dim);
  text-decoration: none;
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 12px;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--gold-bright);
}

.footer-pixel {
  font-size: 6px;
  color: var(--cream-dim);
  opacity: 0.5;
}

@media (max-width: 480px) {
  .panel-content {
    padding: 24px 16px 20px;
  }
  .title-banner h1 {
    font-size: 18px;
  }
  .btn-text {
    font-size: 10px;
  }
  .btn-icon img {
    width: 18px;
    height: 18px;
  }
}
