:root {
  --bg-page:        #222238;
  --bg-window:      #2a2a4a;
  --bg-titlebar-l:  #1a1a4a;
  --bg-titlebar-r:  #2a4a7a;
  --bg-btn:         #3a3a6a;
  --bg-btn-close:   #aa2222;

  --border-accent:  #328fc1;
  --border-btn:     #6060a0;
  --border-close:   #dd4444;

  --text-primary:   #e0e0ff;
  --text-white:     #ffffff;
}

html {
  min-width: fit-content;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: auto;
  margin: 0;
}

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

#header {
  display: flex;
  align-items: center;
  padding-top: 10px;
  padding-left: 20px;
}

#header img:first-child {
  width: 150px;
  height: 150px;
}

#header img {
  border: 2px solid var(--border-accent);
}

#name-img {
  display: flex;
  width: 500px;
  aspect-ratio: 3671 / 1278;
  overflow: hidden;
}

.flag-slice {
  width: 1px;
  height: 100%;
  background-image: url('name.png');
  background-size: 500px 100%;
  animation: wave 3s ease-in-out infinite alternate both;
}

@keyframes wave {
  from { transform: translateY(-5px); }
  to   { transform: translateY(5px); }
}

.window {
  width: 410px;
  border: 2px solid var(--border-accent);
  font-family: monospace;
  box-sizing: border-box;
}

.window.wide {
  width: 420px;
}

.window-titlebar {
  background: linear-gradient(to right, var(--bg-titlebar-l), var(--bg-titlebar-r));
  padding: 4px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-accent);
}

.window-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-white);
  font-size: 11px;
  font-weight: bold;
  text-shadow: 1px 1px 0 #000000;
}

.window-controls {
  display: flex;
  gap: 2px;
}

.window-controls button {
  width: 16px;
  height: 14px;
  background: var(--bg-btn);
  border: 1px solid var(--border-btn);
  font-size: 8px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
}

.window-controls button.close {
  background: var(--bg-btn-close);
  border-color: var(--border-close);
  color: var(--text-white);
}

.window-body {
  background: var(--bg-window);
  padding: 12px;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 2;
}

#links {
  width: 260px;
}

.links-label {
  font-family: monospace;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 8px;
  opacity: 0.7;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  font-family: monospace;
  font-size: 13px;
  font-weight: bold;
  color: var(--text-white);
  text-decoration: none;
  border-radius: 0;
  border: 1px solid var(--border-btn);
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
  transition: filter 0.15s, border-color 0.15s;
}

.link-btn:hover {
  filter: brightness(1.2);
  border-color: var(--border-accent);
  color: var(--text-white);
}

.link-btn.youtube   { background: #cd201f; }
.link-btn.musescore { background: #695ef5; }
.link-btn.xitter    { background: #1da1f2; }
.link-btn.discord   { background: #5865F2; }

.link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-name {
  font-size: 13px;
  font-weight: bold;
  line-height: 1;
}

.link-sub {
  font-size: 10px;
  font-weight: normal;
  opacity: 0.8;
  line-height: 1;
}

.link-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

img.link-icon {
  filter: brightness(0) invert(1);
  object-fit: contain;
}

#pfp-tooltip {
  position: fixed;
  display: none;
  background: var(--bg-window);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  font-family: monospace;
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1000;
}

.page-btn {
  display: block;
  padding: 6px 12px;
  background: var(--bg-btn);
  border: 1px solid var(--border-btn);
  color: var(--text-primary);
  font-family: monospace;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.page-btn:hover {
  background: var(--bg-titlebar-r);
  border-color: var(--border-accent);
  color: var(--text-white);
}

.window.narrow {
  width: 200px;
}

.send-btn {
  background: var(--bg-btn);
  border: 1px solid var(--border-btn);
  color: var(--text-primary);
  font-family: monospace;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s, border-color 0.15s;
}

.send-btn:hover:not(:disabled) {
  background: var(--bg-titlebar-r);
  border-color: var(--border-accent);
  color: var(--text-white);
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}