* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-width: 1250px;
  background-image: url('profile_assets/test3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}


/* Page layout */

.page-layout {
  width: min(1250px, 95%);
  margin: 40px auto;
  display: grid;

  grid-template-columns:
    145px
    minmax(600px, 800px)
    150px;

  column-gap: 12px;
  grid-row-gap: 12px;
  align-items: start;
}


/* Navigation */

.side-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-top: 38px;
  transform: translateX(48px);
  grid-column: 1;
  grid-row: 2;
}

.side-nav .frutiger-aero-button {
  --hue: 190;
  --sat: 0.42;
  --glow-intensity: 0.74;

  display: block;
  padding: 11px 12px;

  border-radius: 10px;
  font-size: 16px;
}


.side-nav .frutiger-aero-button:nth-child(1) {
  width: 149px;
}

.side-nav .frutiger-aero-button:nth-child(2) {
  width: 141px;
}

.side-nav .frutiger-aero-button:nth-child(3) {
  width: 133px;
}

.side-nav .frutiger-aero-button:nth-child(4) {
  width: 125px;
}

.side-nav .frutiger-aero-button:nth-child(5) {
  width: 117px;
}

/* Main area */

.main-panel {
  min-height: 700px;
  display: grid;

  grid-template-columns:
    110px
    1fr;

  gap: 28px;
  padding: 6px 36px 36px 36px;
  grid-column: 2;
  grid-row: 2;
}


/* Main Phos Panel Area */

.character-panel {
  position: relative;
  width: 110px;
  height: 580px;
  overflow: visible;
}

.phos-full {
  position: absolute;
  width: 540px;
  height: auto;
  left: -145%;
  top: 0px;
  max-width: none;
  z-index: 5;
  user-select: none;  
  pointer-events: none;
}

/* Profile stuff */

.profile-stuff {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Aero-style announcement ticker */

.top-ticker {
  position: relative;
  isolation: isolate;

  grid-column: 2;
  grid-row: 1;

  margin-left: 54px;
  width: calc(100% - 90px);
  height: 38px;

  overflow: hidden;
  white-space: nowrap;

  border: 1px solid hsl(182 60% 28% / 0.85);
  border-radius: 7px;

  background:
    linear-gradient(
      to bottom,
      hsl(182 85% 96% / 0.9),
      hsl(182 75% 82% / 0.6) 48%,
      hsl(182 75% 55% / 0.45) 52%,
      hsl(182 75% 84% / 0.65)
    );

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 4px 12px hsl(182 80% 25% / 0.2),
    0 0 12px hsl(182 90% 65% / 0.35);

  backdrop-filter: blur(10px) saturate(1.5);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);

  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #16343d;
}

/* Thin glossy reflection */

.top-ticker::before {
  content: "";
  position: absolute;
  inset: 1px 2px auto;
  height: 45%;

  border-radius: 5px 5px 50% 50%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.65),
    transparent
  );

  pointer-events: none;
  z-index: 1;
}

.ticker-text {
  position: relative;
  z-index: 2;

  display: inline-block;
  padding-left: 100%;
  line-height: 36px;

  font-size: 15px;

  animation: scroll-text 14s linear infinite;
}

@keyframes scroll-text {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Main window sizing */

.about-window {
  grid-column: 1 / 3;
  width: 100%;
  --hue: 195;
  --radius: 8px;
  --glass-opacity: 0.45;
}

.about-window .aero-body {
  min-height: 320px;
  white-space: normal;
  text-align: center;
}

.header_top {
  text-align: center;
}

/* .about-left {
  text-align: left;
}

.about-right {
  text-align: right;
} */

.miku_charge {
  position: absolute;
  left: 55%;
  bottom: 5px;
  transform: translateX(0%);

  display: block;
  width: 250px;
  height: auto;

  pointer-events: none;
}

.lower-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  height: 270px;
  min-height: 0;
}


/* Left window */

.love-window {
  --hue: 195;
  --glass-opacity: 0.45;

  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.love-window .aero-body {
  flex: 1;
  min-height: 0;
  font-size: 15px !important;
}

.love-window ul {
  margin: 0;
  padding-left: 25px;
}

.love-window li + li {
  margin-top: 10px;
}

/* Two windows stacked on the right */

.stacked-boxes {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.compact-window {
  --hue: 195;
  --glass-opacity: 0.45;

  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.compact-window .aero-body {
  flex: 1;
  min-height: 0;
}

.lower-row-grid .aero-body {
  white-space: normal;
  font-size: 18px;
  line-height: 1.4;
}

.compact-window .aero-body {
  display: flex;
  flex-direction: column;   
  justify-content: center;  
  align-items: center;
  text-align: center; 
}

.love-window .aero-body {
  display: block;
  padding: 16px 20px;
}


.compact-window .aero-body p {
  margin: 0;
}



/* Right area */

.right-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-top: 38px;
  transform: translateX(-15px);
  grid-column: 3;
  grid-row: 2;
}

.name-logo {
  position: absolute;
  width: 215px;
  height: 55px;

  top: -53px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 2;
  pointer-events: none;
}

.name-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.profile-picture {
  width: 180px;
  min-height: 170px;
  border: 2px solid black;
  overflow: hidden;
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.status-area {
  width: 100%;       
  padding: 0;        
  margin: 0;         
}

.chat-window-container {
  --hue: 195;
  --glass-opacity: 0.45;

  width: 175px;
}

.cbox-frame {
  display: block;
  width: 100%;
  height: 250px;
  margin: 0 0 var(--frame);
  padding: 0;
  border: 0;
  background: white;
}

.status-area iframe {
  display: block;    /* Removes inline spacing bugs at the bottom */
  width: 100%;
}


/* Lower panel */

.lower-panel.aero-window {
  --hue: 195;
  --glass-opacity: 0.45;
  grid-column: 2;
  grid-row: 3;
  margin-top: -25px;
  width: 100%;
  border: none;   
  padding: 0;     
}

.custom-split-body {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-height: 200px;

  /* Stops HTML indentation from creating visible blank space */
  white-space: normal;
}

/* Restore centered text column */

.body-text-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: 25px;
  text-align: center;
}

.body-text-column h2,
.body-text-column p {
  width: 100%;
  text-align: center;
}


/* Force a compact vertical image gallery */

.body-image-column {
  display: grid !important;
  grid-template-columns: 1fr;
  grid-auto-rows: max-content;

  justify-items: end;
  align-content: center;

  padding-right: 45px;
  row-gap: 16px !important;
  overflow: visible;
  white-space: normal;
}

.image-card {
  width: 85%;
  max-width: 290px;

  margin: 0 !important;
  padding: 0;

  background: none;
  border: none;
  box-shadow: none;
}

.image-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;

  border: 1px solid rgba(30, 65, 80, 0.7);
  border-radius: 3px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.image-card figcaption {
  margin: 4px 0 0;
  padding: 0;

  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 600px) {
  .about-window .aero-body {
    font-size: 12px;
    text-align: center;
    line-height: 1.35;
    padding-bottom: 125px;
  }
}