:root {
  --accent: #32C1B5;
  --bg: #041f1d;
  --panel: #073734;
  --muted: #7aaea6;
  --mono: 'Inter Tight', monospace;
  --cursive: 'Playwrite DE SAS', monospace;
}

* {
  box-sizing: border-box
}
body {
  margin: 0;
  background: var(--bg);
  color: #e7f6f4;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  padding: 28px;
}

/* Layout */
.container {
  display: grid;
  grid-template-columns: 1fr 405px;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
  font-optical-sizing: auto;
  font-weight: 300px;
  font-style: normal;
}

.card {
  background: var(--panel);
  border-radius: 30px;
  padding: 25px;
  border: 1px;
}

.card {
  h1 {
    margin-top: 0px;
    margin-bottom: -5px;
    padding-bottom: 0px;
  }
}

.nick {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 25px;
  text-align: left;
}
.subtitle {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  font-family: var(--cursive);
}
.profile-card {
  position: relative;
}
.avatar-wrap {
  position: absolute;
  right: 50px;
  bottom: 230px;
  z-index: 2;
}
.avatar {
  width: 180px;
  height: auto;
  image-rendering: pixelated;
  user-drag: none;
  user-select: none;
  transition: transform 0.25s ease-out;
}

.avatar:hover {
  transform: scale(1.02);
}

span {
  color: rgba(122, 174, 166, 0.70);
}

.meta {
  margin-top: 30px;
}
.meta-row {
  margin-top: 12px;
}
.meta-value {
  font-family: var(--mono);
  font-size: 12px;
  color: #e7f6f4;
}

.flip-counter {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.12);
  padding: 8px;
  border-radius: 10px;
}

.flip {
  position: relative;
  width: 35px;
  height: 45px;
  overflow: visible;
  perspective: 800px;
  border-radius: 10px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Digit elements */
.digit {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent);
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.digit.old {
  transform-origin: center bottom;
  animation: flipDown 360ms ease-in forwards;
}

.digit.new {
  transform-origin: center top;
  transform: rotateX(-90deg);
  animation: flipUp 360ms ease-out forwards;
}

.dot {
  margin-top: 15px;
  color: var(--accent);
}

@keyframes flipDown{
  0% {
    transform: rotateX(0deg);
    opacity: 1;
  }
  100% {
    transform: rotateX(90deg);
    opacity: 0;
  }
}
@keyframes flipUp{
  0% {
    transform: rotateX(-90deg);
    opacity: 0;
  }
  100% {
    transform: rotateX(0deg);
    opacity: 1;
  }
}

/* About/tracks */
.about-card h2 {
  font-family: var(--mono);
  color: var(--accent);
  margin-top: 0;
}
.section-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 15px;
}
.cards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.panel {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 160px;
  align-items: center;
  cursor: pointer;
  transition: transform 0.25s ease-out;
}
.panel:hover {
  transform: scale(1.02);
}
.panel-thumb {
  font-size: 22px;
  display: flex;
  align-items: center;
}
.panel-thumb img {
  display: block;
}
.panel-title {
  font-weight: 700;
}
.panel-sub {
  color: var(--muted);
  font-size: 11px;
}

@media(max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }
}