/* Tokens live in tokens.css. Only page-specific colours remain here. */
:root {
  --header-background-color: rgb(203, 217, 230);
  --footer-background-color: rgb(205, 212, 203);
}

:root[data-theme="dark"] {
  --header-background-color: rgb(0, 0, 0);
  --footer-background-color: rgb(80, 84, 87);
}

/* Base rules that used to come from Bootstrap. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 1rem; line-height: 1.5; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5rem; line-height: 1.2; font-weight: 500; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 2rem; margin: 0 0 1rem; }
img, svg { vertical-align: middle; }
a { text-decoration: none; }
button, input, select, textarea { font: inherit; margin: 0; }
button { cursor: pointer; }
hr { margin: 1rem 0; border: 0; border-top: 1px solid var(--line); }
[hidden] { display: none !important; }
.container { width: 100%; margin: 0 auto; padding: 0 12px; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

@font-face {
  font-family: "Crowd Pleaser";
  src: url("../fonts/Crowd Pleaser.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next VF";
  src: url("../fonts/AtkinsonHyperlegibleNext.ttf") format("truetype-variations"),
       url("../fonts/AtkinsonHyperlegibleNext.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/

body {
  font-family: var(--font-body);
  color: var(--text-color);
  position: relative;
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  background: var(--background-color) !important;
  background-size: cover;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  z-index: -1;
}

select {
  background-color: var(--background-color);
  color: var(--text-color);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Open Sans", sans-serif;
}

.paragraph {
  color: var(--fade-text-color);
  padding-top: 10px;
  padding-bottom: 5px;
  font-size: 14px;
}

#photo-filename {
  color: #bbbaba;
  font-family: var(--datestamp-font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.85);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

#header {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  z-index: 997;
  overflow-y: auto;
  background-color: var(--background-color);
  overflow: hidden;
  transition: height 0.3s ease, background-color 0.3s ease;
}

#header .header-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

#header .header-photo.is-visible {
  opacity: 1;
}

#header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

#header > .container {
  position: relative;
  z-index: 2;
}

#header h1 {
  font-size: 48px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
}

#header h1 a,
#header h1 a:hover {
  color: white;
  line-height: 1;
  display: inline-block;
}

#header .intro {
  max-width: 720px;
  padding-top: 22px;
  word-break: break-word;
}

#header .intro p {
  font-size: 16px;
  line-height: 1.5;
  margin: 20px 0 0;
  color: white;
}

#header .intro p span {
  color: white;
  padding-bottom: 6px;
}

#header
#header



#header img {
  padding: 0;
  margin: 0;
}

#header .social-links {
  margin-top: 40px;
  display: flex;
  gap: 4px;
}

#header .social-links > a,
#header .social-links > .social-dropdown > a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  color: white;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.18s ease, color 0.18s ease;
}

#header .social-links > a:hover,
#header .social-links > a:focus-visible,
#header .social-links > .social-dropdown > a:hover,
#header .social-links > .social-dropdown > a:focus-visible,
#header .social-links > .social-dropdown.open > a {
  background: var(--paper);
  color: var(--green-ink) !important;
  outline: 0;
}

#header .social-links .icon {
  font-size: 18px;
}

/* label on hover: the same small tag the three toggles use */
#header .social-links [data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translate(-50%, 4px);
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
#header .social-links [data-tip]:hover::after,
#header .social-links [data-tip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
#header .social-links .social-dropdown.open.up [data-tip]::after { opacity: 0; }

/* icons with a menu carry a small caret so you can tell before you hover */
#header .social-links .social-caret {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  transition: background 0.18s ease, color 0.18s ease, transform 0.25s ease;
}
#header .social-links .social-caret .icon { font-size: 10px; }
#header .social-links .social-dropdown > a:hover .social-caret,
#header .social-links .social-dropdown.open > a .social-caret {
  background: var(--green-ink);
  color: var(--paper);
}
#header .social-links .social-dropdown.open .social-caret { transform: rotate(180deg); }

#header .social-links .social-dropdown {
  position: relative;
}

#header .social-links .social-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 190px;
  margin: 8px 0 0;
  padding: 4px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}
#header .social-links .social-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 15px;
  top: -5px;
  width: 8px;
  height: 8px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
#header .social-links .social-dropdown.flip .social-dropdown-menu { left: auto; right: 0; }
#header .social-links .social-dropdown.up .social-dropdown-menu { top: auto; bottom: 100%; margin: 0 0 8px; transform: translateY(4px); }
#header .social-links .social-dropdown.open.up .social-dropdown-menu { transform: translateY(0); }
#header .social-links .social-dropdown.up .social-dropdown-menu::before { top: auto; bottom: -5px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#header .social-links .social-dropdown.up::after { top: auto; bottom: 100%; }
#header .social-links .social-dropdown.flip .social-dropdown-menu::before { left: auto; right: 15px; }
#header .social-links .social-dropdown::after {
  /* invisible bridge so the pointer can travel from the icon to the menu */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 10px;
}

#header .social-links .social-dropdown.open .social-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s;
}

#header .social-links .social-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px 6px 10px;
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
#header .social-links .social-dropdown-menu a .icon {
  font-size: 12px;
  color: var(--ink-faint);
  opacity: 0;
  transform: translate(-2px, 2px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

#header .social-links .social-dropdown-menu a:hover,
#header .social-links .social-dropdown-menu a:focus-visible {
  background: var(--accent-tint);
  color: var(--accent);
  outline: 0;
}
#header .social-links .social-dropdown-menu a:hover .icon,
#header .social-links .social-dropdown-menu a:focus-visible .icon {
  opacity: 1;
  transform: none;
  color: inherit;
}

@media (max-width: 992px) {

  #header h1 {
    font-size: 36px;
  }

  #header .social-links {
    margin-top: 15px;
  }

  #header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}


/**
* Header Top (every page except home; home folds into it on the way out)
*/
#header.header-top {
  height: 80px;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  background: var(--text-color);
  z-index: 997;
}
#header.header-top .header-photo,
#header.header-top .social-links,
#header.header-top .intro,
#header.header-top h1 { margin-right: auto; font-size: 32px; }
#header.header-top .container { position: relative; max-width: var(--page-width); padding: 0 var(--space-4); }
#header.header-top .navbar { position: absolute; top: 50%; right: 0; transform: translateY(-50%); margin: 0; padding: 0 var(--space-4) 0 0; z-index: 13; }
#header.header-top .navbar ul { margin: 0; }
@media (max-width: 991px) {
  #header.header-top .navbar { position: static; transform: none; padding: 0; }
}
@media (max-width: 768px) {
  #header.header-top { height: 60px; }
  #header.header-top h1 { font-size: 26px; }
}
body.page .site-main { padding-top: 110px; animation: page-in 0.25s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 768px) { body.page .site-main { padding-top: 84px; } }
/* home: name, nav and intro share one left edge */
#header .navbar { padding-left: 0; }
#header .navbar ul { padding-left: 0; }

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/

/**
* Desktop Navigation
*/
.navbar {
  padding-left: 12px;
  padding-right: 12px;
  margin-top: 35px;
  margin-bottom: 20px;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar li+li {
  margin-left: 30px;
}

.navbar a,
.navbar a:focus,
.nav-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: white;
  white-space: nowrap;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-green);
  visibility: hidden;
  width: 0px;
}

.navbar a:hover:before,
.navbar li:hover>a:before,
.navbar .active:before {
  visibility: visible;
  width: 25px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: var(--accent-green);
}

/**
* Mobile Navigation
*/
.mobile-nav-toggle {
  color: #fff !important;
  background: none;
  border: 0;
  padding: 0;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 999;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block !important;
  }

  .navbar ul {
    display: none;
  }

  .nav-divider {
    display: none;
  }
}

#navbar.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: var(--background-color);
  z-index: 999;
  margin: 0;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--header-text-color) !important;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 45px;
  left: 15px;
  padding: 10px 0;
  overflow-y: auto;
  border: 2px solid var(--line);
}

.navbar-mobile li {
  padding: 12px 20px;
}

.navbar-mobile li a {
  color: var(--fade-text-color) !important;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile .active:focus,
.navbar-mobile li:hover>a {
  color: var(--header-text-color) !important;
}

.navbar-mobile a:before {
  background-color: var(--header-text-color) !important;
}

.navbar-mobile li+li {
  margin: 0;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  font-size: 16px;
  position: relative;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.footer {
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0;
  padding: 15px;
  text-align: right;
  font-size: 13px;
  color: var(--text-color);
  z-index: 999998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.footer.is-visible {
  opacity: 1;
  pointer-events: auto;
}


.footer span {
  background: none;
}

@media (max-width: 992px) {
  .footer {
    text-align: center;
    padding: 10px;
  }
}

.footer a {
  color: var(--header-text-color);
  /*  ; */
}

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

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/

.wobble {
  -webkit-animation-name: wobble;
  animation-name: wobble;
  -webkit-animation-duration:          0.8s;
  -webkit-animation-iteration-count:   infinite;
  -webkit-animation-timing-function:   linear;
  -webkit-transform-origin:            50% 100%;
  will-change: transform;
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/

@-webkit-keyframes wobble {
  0% {
    -webkit-transform: none;
    transform: none;
  }
  15% {
    -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
    transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
  }
  30% {
    -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
    transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
  }
  45% {
    -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
    transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
  }
  60% {
    -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
    transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
  }
  75% {
    -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
    transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
  }
  100% {
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes wobble {
  0% {
    -webkit-transform: none;
    transform: none;
  }
  15% {
    -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
    transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
  }
  30% {
    -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
    transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
  }
  45% {
    -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
    transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
  }
  60% {
    -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
    transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
  }
  75% {
    -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
    transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
  }
  100% {
    -webkit-transform: none;
    transform: none;
  }
}

a,
.navbar a,
.social-links a,
.window-button,
.music-tabs .nav-link,
#toggle-button,
#btn-code,
#btn-play {
  transition: color 0.15s ease, background-color 0.15s ease,
              opacity 0.15s ease, border-color 0.15s ease !important;
}

a,
button,
[role="button"],
.tooltips,
.window-button,
.navbar a,
.social-links a,
.mobile-nav-toggle,
.project-box {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tooltip {
  transition: opacity 0.15s linear !important;
}

.tooltips:hover {
  cursor: pointer;
}

#header h1 .tooltips {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
}
#header h1 .h1-tools { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 16px; }
#header h1 .h1-tools .tooltips:first-child { margin-left: 0; }

#header h1 .tooltips .icon {
  font-size: 0.82em;
  display: block;
}
#header.header-top h1 .tooltips .icon { font-size: 27px; }

/* the toggles' labels open below the icons: above the nav on home, and out of the folded bar on subpages */
#header h1 { position: relative; z-index: 12; }
#header.header-top:not(.leaving) { overflow: visible; }

#header h1 .tooltips:hover a {
  color: var(--green);
}

#header h1 .tooltips.a-active a {
  color: var(--green);
}

.icon { display: inline-block; fill: currentColor; vertical-align: -0.15em; }
:root:not([data-theme="dark"]) .when-dark { display: none !important; }
:root[data-theme="dark"] .when-light { display: none !important; }

/* small label above a control, from its data-tip attribute */
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 4px 8px;
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* the three toggles and the copy button sit at the top of the screen, so their labels open downward */
#header h1 [data-tip]::after,
.now-copy[data-tip]::after {
  bottom: auto;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-4px);
}
#header h1 [data-tip]:hover::after,
#header h1 [data-tip]:focus-visible::after,
.now-copy[data-tip]:hover::after,
.now-copy[data-tip]:focus-visible::after {
  transform: translateX(-50%) translateY(0);
}

.mobile-nav-toggle .icon { display: block; }
.mobile-nav-toggle .when-open { display: none; }
#navbar.navbar-mobile .mobile-nav-toggle .when-closed { display: none; }
#navbar.navbar-mobile .mobile-nav-toggle .when-open { display: block; }

#header.no-transition { transition: none; }

/*--------------------------------------------------------------
# Now card: the Discord profile's layout, the site's clothes
--------------------------------------------------------------*/
/* desktop: the card sits in its own column, centred on the span from the name's top to the social row's bottom */
@media (min-width: 992px) {
  #header:not(.header-top) > .container.hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 48px; align-items: center; }
  #header:not(.header-top) .hero-main { min-width: 0; }
}
@media (max-width: 991px) {
  .now-card { display: none; }
  body > .footer { position: static; display: block; text-align: right; padding: 6px 16px 22px; }
  #header:not(.header-top) { height: auto; min-height: 100vh; align-items: center; }
  #header:not(.header-top) > .container.hero { padding-top: 28px; padding-bottom: 28px; }
}
/* phones and tablets: name centred, the three icons drop to their own centred line when they don't fit */
@media (max-width: 991px) {
  #header:not(.header-top) > .container.hero { padding-left: 28px; padding-right: 28px; padding-top: 72px; }
  #header:not(.header-top) h1 { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 14px; text-align: center; }
  #header:not(.header-top) h1 > a { white-space: nowrap; }
}
@media (max-width: 575px) { #header:not(.header-top) h1 { font-size: 32px; } #header:not(.header-top) h1 .h1-tools { margin-left: 12px; } }
/* leaving home: the hero's body goes at once, only the name and nav ride the fold */
#header.leaving .intro, #header.leaving .social-links, #header.leaving .now-card { opacity: 0; pointer-events: none; }
.now-card { max-width: 420px; } }
@media (max-width: 991px) { #header:not(.header-top) { height: auto; min-height: 100vh; align-items: flex-start; } #header:not(.header-top) > .container.hero { padding-top: 28px; padding-bottom: 12px; } }
.now-card {
  position: relative;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(0, 0, 0, 0.55);
}
.now-banner { height: 76px; background: url("/img/banner.jpg") center/cover no-repeat; }
.now-banner::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 76px; background: linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0,0.18)); }
.now-head { position: relative; height: 40px; padding: 0 16px; }
.now-avatar-wrap { position: absolute; left: 16px; top: -36px; width: 72px; height: 72px; }
.now-avatar { width: 72px; height: 72px; border-radius: 50%; border: 4px solid var(--surface); background: var(--surface); display: block; object-fit: cover; }
.now-status { position: absolute; right: 2px; bottom: 2px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--surface); background: rgb(128, 132, 142); box-sizing: border-box; }
.now-status::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.now-status[data-status="offline"]::after { width: 6px; height: 6px; border-radius: 50%; background: var(--surface); }
.now-status[data-status="online"] { background: rgb(35, 165, 90); }
.now-status[data-status="idle"] { background: rgb(240, 178, 50); box-shadow: inset 3px -2px 0 0 var(--surface); }
.now-status[data-status="dnd"] { background: rgb(242, 63, 67); }
.now-status[data-status="dnd"]::after { width: 7px; height: 2px; border-radius: 2px; background: var(--surface); }
/* custom status: Discord's speech bubble, measured from the real one. body with a
   deep radius, a 14px bubble merged into its top-left corner, a 7px bubble drifting
   toward the avatar. sits a hair lighter than the card so it reads as its own layer. */
.now-custom { position: absolute; left: 92px; right: 12px; top: -7px; z-index: 2; }
.now-custom:empty { display: none; }
.now-custom-box { position: relative; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 7px 12px; border-radius: 12px; background: var(--bubble); box-shadow: var(--bubble-shadow); font-size: 13px; line-height: 1.35; transition: box-shadow 0.15s ease; }
.now-custom-box::before, .now-custom-box::after { content: ""; position: absolute; border-radius: 50%; background: var(--bubble); box-shadow: var(--bubble-shadow); }
.now-custom-box::before { left: 6px; top: -7px; width: 14px; height: 14px; box-shadow: none; }
.now-custom-box::after { left: -1px; top: -12px; width: 7px; height: 7px; }
.now-custom-box > span:last-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.now-custom:hover .now-custom-box > span:last-child, .now-custom:focus-within .now-custom-box > span:last-child { display: block; -webkit-line-clamp: unset; }
.now-custom:hover .now-custom-box { box-shadow: var(--bubble-shadow), 0 10px 24px -10px rgba(0, 0, 0, 0.45); }
.now-card { --bubble: color-mix(in srgb, var(--surface), var(--ink) 4%); --bubble-shadow: 0 1px 3px rgba(0, 0, 0, 0.10); }
:root[data-theme="dark"] .now-card { --bubble: color-mix(in srgb, var(--surface), var(--ink) 7%); --bubble-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.now-custom-emoji { width: 16px; height: 16px; flex: none; }
.now-body { padding: 0 16px 14px; }
.now-name { display: flex; align-items: center; gap: 2px; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.2; }
.now-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); font-family: var(--font-display); font-size: 10.5px; font-weight: 600; letter-spacing: 0.6px; color: var(--ink-muted); text-decoration: none; line-height: 1.5; }
.now-badge:hover { color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.now-badge img { width: 12px; height: 12px; }
.now-copy { position: relative; border: 0; background: none; color: var(--ink-faint); cursor: pointer; font-size: 14px; padding: 4px; line-height: 0; border-radius: 4px; transition: color 0.15s ease; }
.now-copy:hover, .now-copy:focus-visible { color: var(--ink-muted); }
.now-copy.copied { color: var(--green-ink); }
.now-handle { display: flex; align-items: center; gap: 6px; color: var(--ink-muted); font-size: 12.5px; margin-top: 3px; }
.now-handle > span { opacity: 0.6; }
.now-label { font-family: var(--font-display); font-size: 10.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-muted); }
.now-feed, .now-roles { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.now-activity + .now-activity { margin-top: 10px; }
.now-activity .now-label { display: block; margin-bottom: 6px; }
.now-activity-row { display: flex; gap: 10px; align-items: center; }
.now-thumb-wrap { position: relative; flex: none; width: 52px; height: 52px; }
.now-thumb { width: 52px; height: 52px; border-radius: 8px; display: block; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.now-thumb-empty { background: var(--accent-tint); }
.now-thumb-small { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--surface); }
.now-activity-info { min-width: 0; }
.now-activity-name { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-activity-detail { color: var(--ink-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-timer { font-family: var(--font-stamp); font-weight: 700; font-size: 12px; letter-spacing: 1px; color: var(--accent); margin-top: 2px; }
.now-roles { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.now-role { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 6px; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); font-size: 11.5px; line-height: 1.5; color: var(--ink-muted); }
.now-message { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-top: 12px; padding: 0 10px; border-radius: 8px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.15s ease, opacity 0.15s ease; }
.now-message:focus-within { box-shadow: 0 0 0 1px var(--accent); }
.now-message.sending { opacity: 0.55; pointer-events: none; }
.now-message-input { flex: 1 1 0; min-width: 0; height: 36px; border: 0; padding: 0; background: none; color: var(--ink); font-size: 13px; outline: none; }
.now-message-input::placeholder { color: var(--ink-muted); opacity: 0.55; }
.now-message-mark, .now-message-send, .now-message-who { flex: none; border: 0; padding: 0; background: none; line-height: 0; font-size: 16px; }
.now-message-mark { color: var(--ink-muted); opacity: 0.45; }
.now-message-send { display: none; color: var(--accent); cursor: pointer; transition: transform 0.15s ease; }
.now-message-send:hover, .now-message-send:focus-visible { transform: translateX(2px); }
.now-message.has-text .now-message-send { display: block; }
.now-message.has-text .now-message-mark, .now-message.signed-in .now-message-mark { display: none; }
.now-message-done { display: none; flex: none; line-height: 0; font-size: 16px; color: var(--green-ink); }
.now-message.sent .now-message-done { display: block; }
.now-message.sent .now-message-mark { display: none; }
.now-message-who { cursor: pointer; }
.now-message-who img { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.now-message-who:hover img { opacity: 0.7; }
.now-message-note { flex-basis: 100%; margin-top: -6px; padding-bottom: 8px; font-size: 11.5px; color: var(--ink-muted); }
.now-message-note:empty { display: none; }
.now-message-note[data-kind="ok"] { color: var(--green-ink); }
.now-message-note[data-kind="err"] { color: rgb(206, 62, 62); }
.now-role::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--role); flex: none; }
