@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;
}


body {
  background: #111;
  color: #eee;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.page-title {
  font-family: "Ryujin", sans-serif;
  /* font-weight: 400; */
  font-size: 2.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin: 1.2rem 0 0.5rem 0;

  /* Gradient text */
  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;

  /* Gradient text */
  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;      /* makes ::after sizing predictable */
  text-decoration: none;      /* kill default underline */
  padding-bottom: 5px;       /* space for underline so it won't overlap text */
  
  /* gradient TEXT (underline unaffected) */
  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;

  /* IMPORTANT: keep it below the text */
  bottom: 2px; /* move farther down if it still touches letters */
  height: 3px;

  /* dotted "KITT lights" look */
  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; }

} 

/* Cal-HeatMap V4 Styles */
#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;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  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%;
}

/* WebKit (Chrome, Edge, Safari) */
#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);
}


/* Optional: Make it responsive-ish */
@media (max-width: 768px) {
  #cal-heatmap { padding: 1rem; }
}
.ch-plugin-calendar-label-text {
    fill: white !important;
}

/* Empty days = day cells with no inline fill set by cal-heatmap */
#cal-heatmap svg rect.ch-subdomain-bg:not([style*="fill:"]) {
  fill: #0b0b0b !important;     /* empty color */
  opacity: 0.55;
  stroke: rgba(255, 255, 255, 0.404);
  stroke-width: 0.25;
}

/* Today highlight */
#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;
}

/* Legend */
#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) {
  .plot-container { height: 480px; }
}


/* --------------------------- Books --------------------------- */
.book-shelf {
  display: grid;
  grid-template-columns: 1fr 320px; /* left strip + right featured cover */
  gap: 18px;
  align-items: stretch;

  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(41, 38, 38, 0.25);
  backdrop-filter: blur(8px);
}

.previous {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0; /* lets the scroller behave inside grid */
}

.rolodex {
  display: flex;
  gap: 12px;
  padding: 20px 2px 10px;

  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;

  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.rolodex.is-dragging {
  cursor: grabbing;
  user-select: none;
}

/* optional nicer scrollbar */
.rolodex::-webkit-scrollbar { height: 10px; }
.rolodex::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}
.rolodex::-webkit-scrollbar-track { background: transparent; }

.thumb {
  flex: 0 0 auto;
  width: 110px;
  aspect-ratio: 2 / 3;

  border-radius: 14px;
  overflow: hidden;
  position: relative;

  transform: translateZ(0);
  transition: transform 140ms ease, box-shadow 140ms ease, outline-color 140ms ease;
  outline: 2px solid transparent;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb:hover,
.thumb:focus-visible {
  transform: translateY(-4px) scale(1.03);
  outline-color: rgba(255,255,255,0.25);
  box-shadow: 0 16px 30px rgba(0,0,0,0.45);
}

.thumb.is-active {
  outline-color: rgba(255,255,255,0.52);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.22), 0 16px 30px rgba(0,0,0,0.45);
}

.hint {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.7;
  user-select: none;
}

.current {
  margin: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.current img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;

  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.12);
}

.current figcaption {
  padding: 10px 2px 0;
}

.now-reading {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.title {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  margin-top: 4px;
}

.meta {
  font-size: 13px;
  opacity: 0.75;
  margin-top: 4px;
}

.back-btn {
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.08);
  color: inherit;
  border-radius: 10px;
  font-size: 12px;
  padding: 6px 10px;
  cursor: pointer;
}

.back-btn:hover,
.back-btn:focus-visible {
  background: rgba(255,255,255,0.16);
}

.app-shell {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 8px 16px 18px;
}

.visit-counter {
  font-family: "Bitcount", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #f0cd72;
  text-transform: uppercase;
}

:root {
  --color-white: rgba(255,255,255,1);
  --color-damn-light: rgb(236, 192, 45);  /* Active Tab Glow */
  --color-light: rgb(228, 161, 18);      /* Active Tab fill */
  --color-black: rgba(33,33,33,1);
}

.scifiUI {
  list-style: none;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 560px;
  color: var(--color-light);
}

.scifiUI li {
  display: inline-block;
}

.scifiUI input[type="radio"] {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.scifiUI > li > label {
  display: block;
  width: 120px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  color: rgba(255, 255, 255, 0.7);  /* Inactive Tab Text */
  line-height: 50px;
  text-align: center;
  cursor: pointer;
  transition: all 200ms ease-in-out;
  margin-right: 8px;
}

.scifiUI > li > label:hover {
  height: 50px;
  border-color: var(--color-light);
  color: var(--color-light);
}

.scifiUI .section {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  padding: 18px 0 0;
  border-top: 1px solid var(--color-light);
  color: var(--color-white);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 260ms ease, transform 320ms ease, visibility 0ms linear 320ms;
  z-index: 1;
}

.scifiUI > li > input[type="radio"]:checked + label {
  background: var(--color-light);
  color: var(--color-black);
  height: 50px;
  font-size: 1.1em;
  cursor: default;
  box-shadow: 0 0 10px var(--color-damn-light);
}

.scifiUI input[type="radio"]:checked ~ .section {
  color: var(--color-damn-light);
  letter-spacing: 0.04em;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 320ms ease;
  z-index: 2;
}

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

/* Responsive: on narrow screens, stack with current on top */
@media (max-width: 720px) {
  .scifiUI {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .scifiUI li {
    flex: 1 1 calc((100% - 16px) / 3);
    min-width: 0;
  }

  .scifiUI > li > label {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0;
    box-sizing: border-box;
    line-height: 40px;
    font-size: 0.95rem;
    padding: 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .scifiUI > li > input[type="radio"]:checked + label {
    font-size: 1rem;
  }

  .scifiUI .section {
    top: 58px;
  }

  .book-shelf {
    grid-template-columns: 1fr;
  }

  .current {
    order: -1;
  }

  .thumb {
    width: 96px;
  }
}

/* --------------------------------- Travel Map --------------------------------- */
#map {
  width: 100%;
  height: 100vh;
  border: 1px solid #d0d7de;
  border-radius: 8px;
}

.map-controls {
  position: absolute;
  top: 24px;
  left: 10px;
  z-index: 3;
  min-width: 240px;
  padding: 12px 14px;
  border: 1px solid rgba(95, 196, 255, 0.45);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(10, 18, 28, 0.9), rgba(15, 34, 51, 0.86));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  font-family: "Orbitron", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.map-controls label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fdcff;
}

.map-controls select {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid rgba(159, 220, 255, 0.4);
  border-radius: 8px;
  background: rgba(7, 16, 24, 0.9);
  color: #eaf8ff;
  outline: none;
}

.map-controls select:hover {
  border-color: rgba(159, 220, 255, 0.7);
}

.map-controls select:focus-visible {
  border-color: #f4b53f;
  box-shadow: 0 0 0 2px rgba(244, 181, 63, 0.25);
}

@media (max-width: 720px) {
  .map-controls {
    left: 10px;
    right: 10px;
    min-width: 0;
  }
}
