@font-face {
  font-family: "Archistico";
  src: url("./fonts/Archistico_Simple.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Archistico";
  src: url("./fonts/Archistico_Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: bold;
}

@font-face {
  font-family: "Ryujin";
  src: url("./fonts/RyujinAttack.otf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Bitcount";
  src: url("./fonts/BitcountSingle.ttf") format("truetype");
  font-style: normal;
}

.page-title {
  font-family: "Ryujin", sans-serif;
  font-size: 2.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin: 1.2rem 0 0.5rem 0;
  background: linear-gradient(90deg, #e98808 30%, #df5a0e 40%, #ec0b0b 50%, #dfdc06 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-title2 {
  font-family: "Archistico", sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin: 1.2rem 0 0.5rem 0;
  background: linear-gradient(90deg, #f6f3f6 27%, #d7a722 40%, #e47012 55%, #8a10be 61%, #f6f3f6 67%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.regtext {
  text-align: center;
  justify-content: center;
}

.shortcut {
  font-family: "Bitcount", sans-serif;
  font-weight: 325;
  font-size: 2rem;
  position: relative;
  display: inline-block;
  text-decoration: none;
  padding-bottom: 5px;
  background: linear-gradient(0deg,#ff6b6b 40%, #feca57 45%, #485dfb 52%, #feca57 60%, #ff6b6b 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shortcut::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.0) 0 6px, rgba(226, 18, 18, 0.85) 6px 8px);
  background-size: 60px 100%;
  background-position: 0 0;
  animation: kittUnderline 1.5s linear infinite;
  pointer-events: none;
}

@keyframes kittUnderline {
  to { background-position: 60px 0; }
}

.tab-empty {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(0,190,190,0.6);
  background: #111;
}

#cal-heatmap {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  padding-top: 1.5rem;
  padding-bottom: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  width: 100%;
  max-width: 1150px;
  height: 200px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) rgba(0,0,0,0.12);
}

.calwrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

#cal-heatmap::-webkit-scrollbar { height: 8px; }
#cal-heatmap::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.12);
  border-radius: 8px;
}
#cal-heatmap::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
}
#cal-heatmap::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.18);
}

.ch-plugin-calendar-label-text { fill: white !important; }

#cal-heatmap svg rect.ch-subdomain-bg:not([style*="fill:"]) {
  fill: #0b0b0b !important;
  opacity: 0.55;
  stroke: rgba(255, 255, 255, 0.404);
  stroke-width: 0.25;
}

#cal-heatmap rect.is-today {
  stroke: rgba(236, 222, 23, 0.9);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}

#cal-heatmap svg text.ch-mile-text {
  font-family: 'orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  fill: #fff;
  stroke: rgba(0,0,0,0.65);
  stroke-width: 1.5px;
  paint-order: stroke fill;
  pointer-events: none;
  user-select: none;
}

#cal-legend {
  display: flex;
  width: calc(100% - 32px);
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
  color: #d8d8d8;
  font-size: 12px;
  user-select: none;
  padding: 10px 6px;
}

#cal-legend .legend-end {
  color: #bfbfbf;
  font-weight: 600;
}

#cal-legend .legend-scale {
  display: flex;
  gap: 6px;
  align-items: center;
}

#cal-legend .legend-box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 0.8px rgba(0,0,0,0.2);
}

.legend-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
}

#punchcard {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  border: 2px, solid, red;
  gap: 10px;
}

.plot-container {
  width: 100%;
  height: 650px;
}

@media (max-width: 768px) {
  #cal-heatmap { padding: 1rem; }
  .plot-container { height: 480px; }
}
