@font-face {
  font-family: 'VT323';
  src: url('font/VT323-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  background: #000;
}

body {
  margin: 0;
  font-family: 'VT323', monospace;
  font-size: 1.125rem;
  line-height: 1.55;
  color: #fff;
  background: transparent;
  min-height: 100vh;
}

a {
  color: #fff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Falling stars (code-based, site-wide + boot overlay) ---- */

.falling-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#boot-overlay .falling-stars {
  position: absolute;
  inset: 0;
}

.falling-star {
  position: absolute;
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95));
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6), 0 0 12px rgba(255, 255, 255, 0.3);
  animation: star-fall linear infinite;
  will-change: transform, opacity;
}

@keyframes star-fall {
  0% {
    transform: translateY(-20px) translateX(0);
    opacity: 0;
  }
  5% {
    opacity: 0.9;
  }
  95% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(100vh) translateX(-80px);
    opacity: 0;
  }
}

/* ---- Boot overlay ---- */

#boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#boot-overlay[aria-hidden="true"] {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.boot-terminal {
  position: relative;
  z-index: 1;
  padding: 1.5rem 2rem;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  font-family: 'VT323', monospace;
  font-size: 1.25rem;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
  min-width: 320px;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.08), 0 0 32px rgba(255, 255, 255, 0.04);
}

.boot-log {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  text-shadow: inherit;
  white-space: pre-wrap;
  word-break: break-word;
}

.boot-cursor {
  animation: blink 0.8s step-end infinite;
  text-shadow: inherit;
}

.boot-cursor[aria-hidden="true"] {
  display: none;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---- Main content ---- */

.main-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 4rem 1.5rem 2rem;
}

.content-box {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.06), 0 0 32px rgba(255, 255, 255, 0.03);
}

.page-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.profile-sidebar {
  flex-shrink: 0;
  width: 200px;
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
}

.main-wrap {
  flex: 1;
  min-width: 0;
}

.main-content.hidden {
  visibility: hidden;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.header--with-profile {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.profile-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-inline .pfp-box {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-inline .pfp-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 0;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.profile-info .profile-name {
  margin: 0;
  font-size: 1.15rem;
}

.profile-info .profile-status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.profile-info .profile-song {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.profile-info .profile-song .label {
  display: inline;
  margin-right: 0.25rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.nav-sep {
  color: rgba(255, 255, 255, 0.5);
  user-select: none;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* ---- Soft glow (boxes, pfp, status text) ---- */

.glow-box {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.08), 0 0 24px rgba(255, 255, 255, 0.04);
}

.glow-text {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2), 0 0 16px rgba(255, 255, 255, 0.08);
}

/* ---- Main: dimden-style thin borders + soft glow ---- */

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.06), 0 0 32px rgba(255, 255, 255, 0.03);
}

.content-box main {
  border: none;
  box-shadow: none;
}

.section {
  margin-bottom: 1rem;
}

.section:last-child {
  margin-bottom: 0;
}

.section--center {
  text-align: center;
}

/* ---- Profile (home): dimden-style sidebar ---- */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.profile--dimden .pfp-box {
  width: 100px;
  height: 100px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.profile--dimden .pfp-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 0;
}

.profile-name {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  text-align: center;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.profile-song {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.profile-song .label {
  display: block;
  margin-bottom: 0.15rem;
}

.pfp-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pfp-img {
  display: block;
  object-fit: cover;
  border-radius: 0;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  overflow: visible;
}

.status-dot {
  position: relative;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  animation: status-breathe 2.2s ease-in-out infinite;
  overflow: visible;
}

.status-dot::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: status-ping 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes status-breathe {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    background: transparent;
  }
  50% {
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.7);
  }
}

@keyframes status-ping {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  80%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.fave-song {
  font-size: 0.95rem;
  opacity: 0.9;
}

.label {
  margin: 0 0 0.25rem;
  opacity: 0.9;
}

.section p {
  margin: 0;
}

.divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 1rem 0;
}

.quick-links,
.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.reports-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.report-item {
  margin-bottom: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.report-item:first-child {
  padding-top: 0;
  border-top: none;
}

.report-item:last-child {
  margin-bottom: 0;
}

.report-meta {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  opacity: 0.75;
}

.report-title {
  margin: 0 0 0.25rem;
}

.report-title a {
  text-decoration: none;
}

.report-title a:hover {
  text-decoration: underline;
}

.report-summary {
  margin: 0 0 0.35rem;
  opacity: 0.9;
}

.report-item details {
  margin-top: 0.5rem;
}

.report-item details[open] summary {
  margin-bottom: 0.5rem;
}

.report-item details p {
  margin: 0;
  opacity: 0.9;
}

.quick-links a,
.links-list a {
  text-decoration: none;
}

.quick-links a:hover,
.links-list a:hover {
  text-decoration: underline;
}

.home-image {
  display: inline-block;
  max-width: 120px;
  height: auto;
}

h1 {
  font-size: 1.5rem;
  font-weight: normal;
  margin: 0 0 0.75rem;
}

/* ---- Selfies scrapbook ---- */

.scrapbook {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.polaroid {
  flex-shrink: 0;
}

.polaroid__frame {
  width: 180px;
  padding: 8px 8px 28px;
  background: #f5f5f0;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 255, 255, 0.06);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.polaroid:hover .polaroid__frame {
  transform: rotate(var(--r, 0deg)) scale(1.03);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 255, 255, 0.08);
}

.polaroid--r1 { --r: -2deg; }
.polaroid--r2 { --r: 1.5deg; }
.polaroid--r3 { --r: 2deg; }
.polaroid--r4 { --r: -1deg; }
.polaroid--r5 { --r: 1deg; }
.polaroid--r6 { --r: -2.5deg; }

.polaroid__img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  vertical-align: bottom;
}

.polaroid__caption {
  margin: 6px 0 0;
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  color: #1a1a1a;
  text-align: center;
  min-height: 1.2em;
}

/* ---- Music player (bottom right, rectangle) ---- */

.music-player {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.4rem 0.75rem;
  min-width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  background: rgba(10, 10, 10, 0.9);
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: #fff;
}

.music-player__track {
  flex-shrink: 0;
  opacity: 0.9;
}

.music-btn {
  flex-shrink: 0;
  padding: 0.2rem 0.4rem;
  font-family: inherit;
  font-size: 1rem;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.music-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  opacity: 0.95;
}

.music-player__vol-label {
  flex-shrink: 0;
  opacity: 0.9;
}

.music-volume {
  width: 64px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0;
}

.music-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  cursor: pointer;
}

.music-volume::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  cursor: pointer;
}

/* ---- Site footer ---- */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem 1.5rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

/* ---- Trip report page (Wikipedia-style) ---- */

.report-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.report-content {
  flex: 1;
  min-width: 0;
}

.report-sidebar {
  flex-shrink: 0;
  width: 280px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
}

.report-sidebar__title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.report-sidebar__image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

.report-sidebar__info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.report-sidebar__info-item {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.report-sidebar__info-item:last-child {
  border-bottom: none;
}

.report-sidebar__label {
  display: block;
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.report-content h2 {
  font-size: 1.35rem;
  font-weight: normal;
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.report-content h2:first-child {
  margin-top: 0;
}

.report-content h3 {
  font-size: 1.15rem;
  font-weight: normal;
  margin: 1.25rem 0 0.5rem;
}

.report-content p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.report-content ul,
.report-content ol {
  margin: 0 0 0.75rem;
  padding-left: 1.5rem;
}

.report-content li {
  margin-bottom: 0.35rem;
}

@media (max-width: 900px) {
  .report-layout {
    flex-direction: column;
  }
  
  .report-sidebar {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}
