@import url('https://fonts.cdnfonts.com/css/gg-sans');

html {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

a {
  color: #fff;
  text-decoration: none;
}

body,
input {
  color: #fff;
  background-color: #000;
}

* {
  padding: 0;
  margin: 0;
  font-family: monospace;
}

body {
  overflow-x: hidden;
}

input {
  outline: 0;
  border: none;
}

td {
  padding: 3px;
}

hr {
  margin-top: 15px;
  margin-bottom: 15px;
  border-style: dashed;
}

pre {
  font-size: 1.15em;
}

.box,
body,
input {
  background-color: #000;
}

.box {
  padding: 15px;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.top-right {
  position: fixed;
  text-align: center;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  overflow: hidden;
  color: #fff;
}

.top-right a {
  color: #fff;
}

.top-right .skip {
  cursor: pointer;
}

.container {
  position: fixed;
  text-align: center;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  padding: 10px 10px;
  -moz-opacity: 0.85;
  -khtml-opacity: 0.85;
  opacity: 0.85;
  background-color: #0e0e0e00;
  color: #fff;
  pointer-events: auto;
  transition: opacity 0.5s ease;
}

.container.hidden {
  opacity: 0;
  pointer-events: none;
}

.main {
  overflow: hidden;
}

main {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -3;
}

.background {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -3;
}

#pattern {
  background: transparent url('../assets/dot.png') repeat 0 0;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  z-index: 1;
  opacity: 1;
}

#pattern,
#background {
  position: absolute;
  width: 100%;
  height: 100%;
}

#background {
  z-index: -2;
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 135%;
  min-height: 110%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  background-size: cover;
  overflow: hidden;
  -webkit-filter: blur(5px) brightness(0.55);
  -moz-filter: blur(5px) brightness(0.55);
  -o-filter: blur(5px) brightness(0.55);
  -ms-filter: blur(5px) brightness(0.55);
  filter: blur(5px) brightness(0.55);
}

/* Hover-reveal nav — slides out from under the logo --------- */
.container .logo {
  position: relative;
  z-index: 2;
}

.menu-reveal {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-reveal-clip {
  overflow: hidden;
}

.menu-reveal-content {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ASCII box rows — borders always aligned, links perfectly centered */
.ascii-box {
  display: inline-block;
  text-align: left;
}

.ascii-row {
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
}

.ascii-mid {
  flex: 1;
  text-align: center;
}

.container:hover .menu-reveal,
.container.hover-preview .menu-reveal {
  max-height: 125px;
}

.container:hover .menu-reveal-content,
.container.hover-preview .menu-reveal-content {
  opacity: 1;
  transform: translateY(0);
}

::-webkit-scrollbar {
  width: 0;
}

.container a {
  color: #fff;
  text-decoration: none;
  padding: 2px 0;
  transition: all 0.3s ease;
}

.container a:hover {
  color: #ffffff;
  text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 0 20px #ffffff;
}

/* Discord widget */
#discord-widget {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #0e0e0e00;
  padding: 20px 10px;
  border-radius: 6px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 20;
}

#discord-widget.show {
  opacity: 1;
  pointer-events: auto;
}

#discord-widget > button {
  position: absolute;
  top: -10px;
  left: 0px;
  cursor: pointer;
  background: none;
  color: #fff;
  border: none;
  padding: 10px 10px;
  font-size: 12px;
  opacity: 0.8;
}

#close-discord {
  font-size: 16px;
  transition: all 0.3s ease;
}

#close-discord:hover {
  color: #ffffff;
  text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 0 20px #ffffff;
}

/* ============================================================
   Discord profile card  (Discord-accurate redesign)
   ============================================================ */

.discord-card,
.discord-card * {
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.discord-card {
  --dc-bg: #232428;
  --dc-bg-2: #111214;
  --dc-text: #f2f3f5;
  --dc-muted: #b5bac1;
  --dc-faint: #949ba4;
  --dc-divider: #3f4147;
  --dc-accent: #5865f2;

  width: 340px;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--dc-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  position: relative;
  text-align: left;
  color: var(--dc-text);
  -webkit-font-smoothing: antialiased;
}

/* Banner ----------------------------------------------------- */
.dc-banner {
  height: 76px;
  width: 100%;
  background-color: var(--dc-bg);
  background-size: cover;
  background-position: center;
}

/* Avatar ----------------------------------------------------- */
.dc-avatar-wrapper {
  position: absolute;
  top: 76px;
  left: 16px;
  width: 74px;
  height: 74px;
  transform: translateY(-50%);
  z-index: 2;
}

.dc-avatar-mask {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background-color: var(--dc-bg);
  padding: 5px;
  box-sizing: border-box;
  position: relative;
}

.dc-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.dc-avatar-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85px;
  height: 85px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.dc-status {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 4px solid var(--dc-bg);
  box-sizing: content-box;
  z-index: 3;
}

.status-online  { background-color: #23a55a; }
.status-idle    { background-color: #f0b232; }
.status-dnd     { background-color: #f23f43; }
.status-offline { background-color: #80848e; }

/* Body ------------------------------------------------------- */
.dc-body {
  padding: 45px 16px 14px;
}

.dc-id-box {
  background-color: var(--dc-bg-2);
  border-radius: 8px;
  padding: 11px;
}

.dc-names {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.dc-displayname {
  font-size: 18px;
  font-weight: 700;
  color: var(--dc-text);
}

.dc-username-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dc-username {
  font-size: 14px;
  font-weight: 500;
  color: var(--dc-muted);
}

.dc-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--dc-faint);
  cursor: pointer;
  opacity: 1;
  transition: color 0.12s ease, background 0.12s ease;
}

.dc-copy-btn:hover {
  color: var(--dc-text);
  background: rgba(255, 255, 255, 0.08);
}

.dc-copy-btn svg {
  width: 14px;
  height: 14px;
}

.dc-copy-btn.copied {
  opacity: 1;
  color: #23a55a;
}

/* Badges ----------------------------------------------------- */
.dc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.dc-badges:empty { display: none; }

.badge-wrapper {
  position: relative;
  display: inline-flex;
}

.dc-badges img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
}

.badge-wrapper .tooltip {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: #111214;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  z-index: 5;
}

.badge-wrapper:hover .tooltip { opacity: 1; }

/* Custom status ---------------------------------------------- */
.dc-divider-line {
  height: 1px;
  background: var(--dc-divider);
  margin: 12px 0;
}

.dc-customstatus {
  margin-top: 10px;
  font-size: 14px;
  color: var(--dc-text);
  display: flex;
  align-items: center;
  gap: 6px;
  word-break: break-word;
}

.dc-cs-emoji img { width: 18px; height: 18px; vertical-align: middle; }

/* Activities ------------------------------------------------- */
.dc-activities {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dc-activities:empty { display: none; }

.dc-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--dc-muted);
  margin: 9px 0 5px;
}

.activity {
  display: flex;
  gap: 12px;
  align-items: center;
}

.activity-art {
  position: relative;
  flex-shrink: 0;
}

.activity-art img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.activity-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.activity-info .a-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-info .a-line {
  font-size: 13px;
  color: var(--dc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Spotify progress bar */
.spotify-progress {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--dc-faint);
  font-variant-numeric: tabular-nums;
}

.spotify-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}

.spotify-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: #fff;
  transition: width 0.5s linear;
}

.spotify .activity-art .spotify-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1db954;
  border: 2px solid var(--dc-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotify .activity-art .spotify-badge svg { width: 11px; height: 11px; }
