*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #fce8f1;
  color: #2D1B2E;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── shake animation ── */
@keyframes shake {
  0%   { transform: translateX(0); }
  10%  { transform: translateX(-10px); }
  20%  { transform: translateX(10px); }
  30%  { transform: translateX(-10px); }
  40%  { transform: translateX(10px); }
  50%  { transform: translateX(-10px); }
  60%  { transform: translateX(10px); }
  70%  { transform: translateX(-10px); }
  80%  { transform: translateX(10px); }
  90%  { transform: translateX(-10px); }
  100% { transform: translateX(0); }
}
.page.shake { animation: shake 600ms ease; }

/* ── main layout ── */
.page {
  display: flex;
  flex-direction: column;
  width: min(393px, 100vw);
  height: min(852px, 100dvh);
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(74,32,64,0.25);
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 18px,
      rgba(74,32,64,0.07) 18px,
      rgba(74,32,64,0.07) 19px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 18px,
      rgba(74,32,64,0.07) 18px,
      rgba(74,32,64,0.07) 19px
    ),
    #F9C8D8;
}

/* ── header image ── */
.header-img {
  width: 100%;
  flex: 0 0 auto;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

/* ── music player ── */
.player-wrap {
  flex: 0 0 auto;
  padding: 10px 16px;
  background: #FAE0EC;
  border-bottom: 1px solid rgba(74,32,64,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}
.player-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #4A2040;
  background: #F9C8D8;
  color: #4A2040;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(74,32,64,0.15);
  transition: background 0.2s;
}
.player-btn:active { background: #4A2040; color: #FAE0EC; }
.player-progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.player-label {
  font-size: 11px;
  font-weight: 600;
  color: #4A2040;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(74,32,64,0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.player-bar-fill {
  height: 100%;
  background: #4A2040;
  border-radius: 2px;
  width: 0%;
  pointer-events: none;
}
.player-time {
  font-size: 10px;
  color: rgba(74,32,64,0.6);
  align-self: flex-end;
}

/* ── links section ── */
.links {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 16px 20px;
}

/* ── name title ── */
.name-title {
  font-family: 'Commissioner', sans-serif;
  font-weight: 300;
  font-size: 28px;
  letter-spacing: 0.08em;
  color: #4A2040;
  text-align: center;
  margin-bottom: 10px;
  text-shadow:
    -1px -1px 0 rgba(255,255,255,0.85),
     1px -1px 0 rgba(255,255,255,0.85),
    -1px  1px 0 rgba(255,255,255,0.85),
     1px  1px 0 rgba(255,255,255,0.85),
     0 3px 12px rgba(74,32,64,0.25);
}

/* ── social buttons ── */
.btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 18px 20px;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(74,32,64,0.15);
  transition: filter 0.15s, transform 0.15s;
  position: relative;
  overflow: hidden;
}
.btn > span {
  flex: 1;
  text-align: center;
}
.btn:active { filter: brightness(0.92); transform: scale(0.98); }

.btn-discord  { background: #5865F2; color: #fff; }
.btn-telegram { background: #26A5E4; color: #fff; }
.btn-mystery  { background: #7C3AED; color: #fff; }
.btn-onlyfans { background: #00AFF0; color: #fff; }
.btn-mail     { background: #D44638; color: #fff; }

/* ── badge wrapper (thumbs up overlay) ── */
.btn-wrap {
  position: relative;
}
.btn-badge {
  position: absolute;
  top: -12px;
  right: -6px;
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

.btn svg { flex-shrink: 0; }

/* ── Windows XP error dialogs ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 900;
  display: none;
}
.overlay.visible { display: block; }

.win-dialog {
  position: fixed;
  width: 300px;
  border: 2px solid #0a246a;
  border-radius: 4px;
  background: #f0f0f0;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.5), inset 0 0 0 1px #fff;
  z-index: 1000;
  display: none;
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
}
.win-dialog.visible { display: block; }

.win-titlebar {
  background: linear-gradient(to bottom, #0a246a, #3a6ea5);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 2px 2px 0 0;
  user-select: none;
}
.win-title-text {
  display: flex;
  align-items: center;
  gap: 5px;
}
.win-close {
  background: #c0392b;
  color: #fff;
  border: 1px solid #8e0000;
  border-radius: 2px;
  width: 18px;
  height: 16px;
  font-size: 11px;
  font-weight: bold;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.win-body {
  padding: 16px 14px 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.win-icon { font-size: 28px; flex-shrink: 0; }
.win-message { font-size: 13px; color: #000; line-height: 1.4; }

.win-footer {
  padding: 8px 14px 12px;
  display: flex;
  justify-content: center;
}
.win-ok {
  background: linear-gradient(to bottom, #f0f0f0, #d8d8d8);
  border: 1px solid #888;
  border-radius: 3px;
  padding: 4px 24px;
  font-size: 13px;
  font-family: 'Tahoma', 'Segoe UI', sans-serif;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.win-ok:active { background: linear-gradient(to bottom, #d0d0d0, #c0c0c0); }
