@font-face {
  font-family: "AngelEmoji";
  src: url("../assets/shared/fonts/EmojiFont.ttf") format("truetype");
  font-display: block;
  font-style: normal;
  font-weight: 400;
}

:root {
  --page-width: 820px;
  --page-pink: #f7aac8;
  --page-pink-light: #ffe9f2;
  --page-pink-pale: #fff8fb;
  --page-pink-dark: #c83f78;
  --page-text: #5e3c49;
  --page-border: #efb1c9;
  --page-shadow: rgba(176, 64, 112, 0.14);
  --page-background-image: url("../assets/decorations/base/background_tile.svg");
  --site-background-color: #f7bfd3;
  --body-font: "DotGothic16", "MS Gothic", "Osaka", monospace;
  --heading-font: "Silkscreen", "DotGothic16", monospace;
  --emoji-font: "AngelEmoji", sans-serif;

  --browser-scrollbar-size: 16px;
  --scrollbar-width: 18px;
  --scrollbar-button-face: #f4b8d0;
  --scrollbar-button-highlight: #fff5fa;
  --scrollbar-button-shadow: #d56f9a;
  --scrollbar-track: #f8d5e3;
  --scrollbar-track-mark: rgba(191, 76, 121, 0.18);
  --scrollbar-thumb-top: #ffe2ed;
  --scrollbar-thumb-bottom: #efa3c1;
  --scrollbar-thumb-hover-top: #fff0f6;
  --scrollbar-thumb-hover-bottom: #f58ab5;
  --scrollbar-edge-light: #ffffff;
  --scrollbar-edge-mid: #e48aac;
  --scrollbar-edge-dark: #9f4168;
  --scrollbar-arrow: #8e3157;
  --scrollbar-grip: rgba(151, 55, 92, 0.48);

  --cursor-default: url("../assets/shared/cursors/cursor-default.png") 2 1, auto;
  --cursor-action: url("../assets/shared/cursors/cursor-action.png") 12 3, pointer;
  --cursor-click: url("../assets/shared/cursors/cursor-click.png") 12 6, pointer;
  --cursor-text: url("../assets/shared/cursors/cursor-text.png") 15 14, text;
  --cursor-grab: url("../assets/shared/cursors/cursor-grab.png") 15 15, grab;
  --cursor-grabbing: url("../assets/shared/cursors/cursor-grabbing.png") 15 15, grabbing;

  --sparkle-pink: #f47eae;
  --sparkle-light-pink: #ffd0e2;
  --sparkle-white: #ffffff;
  --sparkle-gold: #fff0a6;
  --click-ring: #df6195;
  --click-ring-soft: rgba(255, 188, 215, 0.42);
  --click-ring-highlight: #fff9fc;
  --scrollbar-click-glow: rgba(218, 72, 132, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f6bfd3;
  scrollbar-color: var(--scrollbar-thumb-bottom) var(--scrollbar-track);
  scrollbar-width: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--page-text);
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 1.52;
  background-color: var(--site-background-color);
  background-image: var(--page-background-image);
  background-repeat: repeat;
}


::-webkit-scrollbar {
  width: var(--browser-scrollbar-size);
  height: var(--browser-scrollbar-size);
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  border: 1px solid var(--scrollbar-edge-mid);
  background:
    repeating-linear-gradient(135deg, var(--scrollbar-track-mark) 0 1px, transparent 1px 4px),
    var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  min-height: 34px;
  min-width: 34px;
  border-top: 2px solid var(--scrollbar-edge-light);
  border-left: 2px solid var(--scrollbar-edge-light);
  border-right: 2px solid var(--scrollbar-edge-dark);
  border-bottom: 2px solid var(--scrollbar-edge-dark);
  border-radius: 0;
  background: linear-gradient(90deg, var(--scrollbar-thumb-top), var(--scrollbar-thumb-bottom));
  box-shadow: inset -3px -3px 0 rgba(188, 72, 116, 0.16);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, var(--scrollbar-thumb-hover-top), var(--scrollbar-thumb-hover-bottom));
}

::-webkit-scrollbar-thumb:active {
  border-top-color: var(--scrollbar-edge-dark);
  border-left-color: var(--scrollbar-edge-dark);
  border-right-color: var(--scrollbar-edge-light);
  border-bottom-color: var(--scrollbar-edge-light);
}

::-webkit-scrollbar-button:single-button {
  display: block;
  width: var(--browser-scrollbar-size);
  height: var(--browser-scrollbar-size);
  border-top: 1px solid var(--scrollbar-edge-light);
  border-left: 1px solid var(--scrollbar-edge-light);
  border-right: 1px solid var(--scrollbar-edge-dark);
  border-bottom: 1px solid var(--scrollbar-edge-dark);
  background-color: var(--scrollbar-button-face);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 8px 8px;
}

::-webkit-scrollbar-button:single-button:hover {
  background-color: var(--scrollbar-button-highlight);
}

::-webkit-scrollbar-button:single-button:active {
  border-top-color: var(--scrollbar-edge-dark);
  border-left-color: var(--scrollbar-edge-dark);
  border-right-color: var(--scrollbar-edge-light);
  border-bottom-color: var(--scrollbar-edge-light);
}

::-webkit-scrollbar-button:vertical:decrement {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M1 6L4 2l3 4z' fill='%238e3157'/%3E%3C/svg%3E");
}

::-webkit-scrollbar-button:vertical:increment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M1 2l3 4 3-4z' fill='%238e3157'/%3E%3C/svg%3E");
}

::-webkit-scrollbar-button:horizontal:decrement {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M6 1L2 4l4 3z' fill='%238e3157'/%3E%3C/svg%3E");
}

::-webkit-scrollbar-button:horizontal:increment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2 1l4 3-4 3z' fill='%238e3157'/%3E%3C/svg%3E");
}

.site-stage {
  position: relative;
  width: min(1220px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.page-shell {
  position: relative;
  width: var(--page-width);
  margin: 0 auto;
  padding: 0 28px 28px;
  background: rgba(255, 255, 255, 0.96);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-image: url("../assets/decorations/base/lace_edge.svg") 0 42 repeat;
  box-shadow: 0 0 22px var(--page-shadow);
}

.site-header {
  height: 142px;
  margin: 0 -28px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255,255,255,.13), rgba(255,255,255,.13)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.32) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.32) 0 1px, transparent 1px 18px),
    #f6bfd3;
}

.site-header img {
  width: min(430px, 86%);
  max-height: 96px;
}

.lace-divider {
  height: 42px;
  margin: -5px -28px 18px;
  background-image: url("../assets/decorations/base/lace_divider.svg");
  background-repeat: repeat-x;
  background-size: auto 42px;
}

.content-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.profile-column,
.main-column {
  min-width: 0;
}

.panel {
  border: 1px solid var(--page-border);
  background: var(--page-pink-pale);
  box-shadow:
    inset 0 0 0 5px #fff,
    0 2px 8px rgba(173, 64, 111, 0.08);
}

.about-badge {
  width: 128px;
  min-height: 72px;
  margin: -22px 0 -12px -24px;
  padding: 17px 14px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 3;
  border: 2px dotted #df6c9b;
  border-radius: 50%;
  color: #c42f69;
  font: 700 18px/1.05 var(--heading-font);
  text-align: center;
  text-shadow: 1px 1px #fff;
  background: radial-gradient(circle at 34% 30%, #fff7fb 0 9%, #f8c8db 10% 100%);
  transform: rotate(-4deg);
}

.profile-card {
  padding: 24px 14px 16px;
  text-align: left;
}

.profile-avatar {
  display: block;
  width: 168px;
  aspect-ratio: 1;
  margin: 0 auto 9px;
  border: 7px solid #fff;
  outline: 1px solid var(--page-border);
  border-radius: 14px;
  object-fit: cover;
  background: #ffe6ef;
}

.profile-card h2 {
  margin: 0 0 9px;
  padding: 3px 8px;
  font-size: 15px;
  color: #c83068;
  background: #ffd5e5;
}

.heart-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.heart-list li {
  position: relative;
  padding-left: 17px;
  margin: 4px 0;
}

.heart-list li::before {
  content: "♥";
  position: absolute;
  left: 0;
  color: #cb3e73;
}

.calendar-card {
  margin-top: 14px;
  padding: 10px 14px 18px;
}

.calendar-card h2 {
  margin: -10px -14px 4px;
  padding: 5px;
  color: white;
  font: 700 18px/1.2 var(--heading-font);
  letter-spacing: .2em;
  text-align: center;
  text-transform: uppercase;
  background: linear-gradient(#f5b1cb, #ee8db3);
}

.calendar-month {
  margin: 8px 0 5px;
  text-align: center;
  color: #d24f82;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
  color: #d34d80;
}

.calendar-weekdays {
  font-weight: 700;
}

.calendar-days > span {
  position: relative;
  z-index: 0;
  min-width: 0;
}

.calendar-day.is-today {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px rgba(164, 47, 94, 0.35);
}

.calendar-day.is-today::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 1.65em;
  height: 1.65em;
  border: 1px solid #d85b8d;
  border-radius: 50%;
  background: linear-gradient(#f6aec9, #eb82ad);
  box-shadow:
    inset 1px 1px rgba(255, 255, 255, 0.65),
    0 1px rgba(189, 65, 112, 0.2);
  transform: translate(-50%, -50%);
}

.visitors-card {
  margin-top: 18px;
  text-align: center;
}

.visitors-title {
  padding: 5px 14px;
  display: inline-block;
  border: 1px solid #d55f8e;
  border-radius: 50%;
  color: #c43067;
  font: 700 16px/1 var(--heading-font);
  background: #fff6fa;
}

.visitor-tags {
  margin-top: 7px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.visitor-tags div {
  display: grid;
  gap: 4px;
}

.visitor-tags strong,
.visitor-tags span {
  padding: 3px 7px;
  border: 1px solid #f1b5ca;
  background: #ffe0eb;
}

.visitor-tags strong {
  color: #c83f78;
  font-style: italic;
}

.visitors-card img {
  width: 82px;
  margin-top: 7px;
}

.welcome-card {
  position: relative;
  padding: 28px 15px 15px;
}

.welcome-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 8px solid rgba(248, 200, 219, 0.35);
}

.bow-decoration {
  position: absolute;
  z-index: 4;
  top: -25px;
  left: 50%;
  width: 340px;
  max-width: 86%;
  transform: translateX(-50%);
  pointer-events: none;
}

.welcome-card h1 {
  position: relative;
  z-index: 2;
  margin: 0 25px 8px;
  color: #ef8eb5;
  font: 700 18px/1.2 var(--heading-font);
  text-align: center;
}

.retro-scroll {
  position: relative;
  z-index: 2;
  height: 226px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--scrollbar-width);
  border: 1px solid #f0b8cd;
  background: #fff;
}

.retro-scroll-viewport {
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  outline: none;
  overscroll-behavior: contain;
}

.retro-scroll-viewport::-webkit-scrollbar {
  display: none;
}

.retro-scroll-viewport:focus-visible {
  box-shadow: inset 0 0 0 2px #e99ab9;
}

.retro-scroll-content {
  padding: 11px 14px 16px;
  font-size: 15px;
}

.retro-scroll-content p {
  margin: 0 0 13px;
}

.retro-scrollbar {
  display: grid;
  grid-template-rows: var(--scrollbar-width) minmax(0, 1fr) var(--scrollbar-width);
  width: var(--scrollbar-width);
  border-left: 1px solid var(--scrollbar-edge-dark);
  background: var(--scrollbar-button-face);
  user-select: none;
  touch-action: none;
}

.retro-scroll-button {
  position: relative;
  width: 100%;
  height: var(--scrollbar-width);
  padding: 0;
  border: 0;
  border-top: 1px solid var(--scrollbar-edge-light);
  border-left: 1px solid var(--scrollbar-edge-light);
  border-right: 1px solid var(--scrollbar-edge-dark);
  border-bottom: 1px solid var(--scrollbar-edge-dark);
  background: linear-gradient(135deg, var(--scrollbar-button-highlight), var(--scrollbar-button-face));
  box-shadow: inset -1px -1px 0 var(--scrollbar-button-shadow);
}

.retro-scroll-button:hover,
.retro-scroll-button:focus-visible {
  background: linear-gradient(135deg, #ffffff, var(--scrollbar-thumb-top));
  outline: none;
}

.retro-scroll-button:active,
.retro-scroll-button.is-pointer-pressed {
  border-top-color: var(--scrollbar-edge-dark);
  border-left-color: var(--scrollbar-edge-dark);
  border-right-color: var(--scrollbar-edge-light);
  border-bottom-color: var(--scrollbar-edge-light);
  background: linear-gradient(135deg, var(--scrollbar-button-shadow), var(--scrollbar-button-face));
  box-shadow: inset 1px 1px 0 rgba(111, 42, 70, 0.25);
}

.retro-scroll-button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.retro-scroll-up::before {
  border-bottom: 6px solid var(--scrollbar-arrow);
}

.retro-scroll-down::before {
  border-top: 6px solid var(--scrollbar-arrow);
}

.retro-scroll-track {
  position: relative;
  min-height: 1px;
  overflow: hidden;
  border-left: 1px solid var(--scrollbar-edge-mid);
  border-right: 1px solid var(--scrollbar-edge-light);
  background:
    repeating-linear-gradient(135deg, var(--scrollbar-track-mark) 0 1px, transparent 1px 4px),
    var(--scrollbar-track);
}

.retro-scroll-track:hover {
  background:
    repeating-linear-gradient(135deg, rgba(191, 76, 121, 0.25) 0 1px, transparent 1px 4px),
    #fbe0ea;
}

.retro-scroll-track.is-pointer-pressed {
  background:
    repeating-linear-gradient(135deg, rgba(151, 55, 92, 0.28) 0 1px, transparent 1px 4px),
    #edb5cc;
  box-shadow: inset 1px 1px 0 rgba(124, 42, 73, 0.18);
}

.retro-scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 25px;
  border-top: 2px solid var(--scrollbar-edge-light);
  border-left: 2px solid var(--scrollbar-edge-light);
  border-right: 2px solid var(--scrollbar-edge-dark);
  border-bottom: 2px solid var(--scrollbar-edge-dark);
  background: linear-gradient(90deg, var(--scrollbar-thumb-top), var(--scrollbar-thumb-bottom));
  box-shadow: inset -2px -2px 0 rgba(180, 63, 108, 0.14);
}

.retro-scroll-thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 11px;
  transform: translate(-50%, -50%);
  background: repeating-linear-gradient(90deg, var(--scrollbar-grip) 0 1px, transparent 1px 3px);
}

.retro-scroll-thumb:hover {
  background: linear-gradient(90deg, var(--scrollbar-thumb-hover-top), var(--scrollbar-thumb-hover-bottom));
}

.retro-scroll-thumb:active,
.retro-scroll.is-dragging .retro-scroll-thumb {
  border-top-color: var(--scrollbar-edge-dark);
  border-left-color: var(--scrollbar-edge-dark);
  border-right-color: var(--scrollbar-edge-light);
  border-bottom-color: var(--scrollbar-edge-light);
  background: linear-gradient(90deg, var(--scrollbar-thumb-bottom), var(--scrollbar-thumb-top));
}

.retro-scroll.is-disabled .retro-scroll-thumb {
  opacity: .56;
}

.retro-scroll.has-scroll-click .retro-scrollbar {
  animation: retro-scrollbar-pulse 300ms ease-out;
}

.retro-scroll-button.has-strong-click,
.retro-scroll-track.has-strong-click,
.retro-scroll-thumb.has-strong-click {
  z-index: 3;
  animation: retro-scroll-control-flash 300ms ease-out;
}

.update-card {
  margin-top: 18px;
  padding: 14px;
}

.section-label {
  padding: 3px 8px;
  color: #c63069;
  font-weight: 700;
  background: linear-gradient(90deg, #ffd1e2, #f9c2d6 62%, transparent 62%);
  border: 1px solid #efb3c9;
}

.update-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: center;
  gap: 8px;
}

.update-layout p {
  margin: 10px 0 0;
}

.update-layout img {
  width: 112px;
  justify-self: center;
}

.two-column-card {
  margin-top: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background:
    repeating-linear-gradient(0deg, rgba(231,143,178,.14) 0 1px, transparent 1px 4px),
    #fff9fc;
}

.mini-panel {
  min-height: 226px;
  padding: 10px;
  border: 1px solid #e8a9c2;
  background: #fff;
}

.mini-panel > label {
  display: block;
  margin: 6px 0;
}

.mini-panel input {
  accent-color: #dc6d99;
}

.tiny-buttons {
  margin-top: 12px;
  text-align: center;
}

.tiny-buttons button {
  margin: 0 2px;
  padding: 3px 11px;
  border: 1px solid #e6a5bf;
  border-radius: 8px;
  color: #bc366a;
  background: linear-gradient(#fff, #f7cade);
}

.todo-list {
  margin-top: 10px;
}

.chatbox-placeholder {
  margin-top: 34px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #efb0c8;
  color: #8f4b64;
  font-size: 16px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.6) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 10px, transparent 10px 20px),
    #f8d5e3;
}

.left-sidebar-stack {
  --sidebar-width: 206px;
  --sidebar-gap: 12px;

  position: absolute;
  z-index: 7;
  top: 110px;
  /* Keep the complete sidebar stack visually outside the centered site shell. */
  left: -26px;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sidebar-gap);
}

.floating-menu {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 7px solid rgba(255, 220, 232, 0.8);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(166, 55, 100, .12);
  background: #fff;
}

.floating-menu a {
  min-height: 37px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c6326b;
  font-weight: 700;
  text-decoration: none;
  border-top: 1px solid #efb7cc;
  background: linear-gradient(#fff, #fce5ee);
}

.floating-menu a:hover,
.floating-menu a:focus-visible {
  color: #9e164d;
  background: #ffd4e4;
}

.floating-menu a span {
  color: #b94b75;
  text-shadow: 1px 1px #fff;
}

.menu-heading {
  padding: 4px 8px;
  color: #fff;
  font: 700 20px/1.2 var(--heading-font);
  text-shadow: 1px 1px #b43266;
  background:
    radial-gradient(circle, #fff 0 1px, transparent 2px) 0 0 / 13px 13px,
    #efa2bf;
}

.menu-heading-secondary {
  font-size: 19px;
}

.hanging-photo {
  position: absolute;
  z-index: 6;
  top: 37px;
  right: 44px;
  width: 120px;
  padding: 20px 10px 10px;
  border: 6px solid rgba(255,255,255,.72);
  background: rgba(249, 194, 215, .9);
  box-shadow: 0 4px 12px rgba(156, 48, 91, .12);
}

.hanging-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 6px solid #fff;
  object-fit: cover;
}

.hanging-ribbon {
  position: absolute;
  left: 50%;
  bottom: 100%;
  height: 78px;
  border-left: 3px dotted #764b5b;
  transform: translateX(-50%);
}

.photo-topper {
  position: absolute;
  top: -17px;
  left: 50%;
  width: 58px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 24px;
  border-radius: 50% 50% 28% 28%;
  background: #ef8db2;
  transform: translateX(-50%);
}

.boombox-player {
  position: relative;
  width: 100%;
  color: #9b315d;
  text-align: center;
}

.boombox-art {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sidebar-gap, 12px);
}

.boombox-machine {
  position: relative;
  width: 190px;
}

.boombox-decoration {
  display: block;
  width: 190px;
  filter: drop-shadow(0 4px 4px rgba(160, 45, 90, .12));
}

.boombox-display {
  position: absolute;
  top: 35.2%;
  left: 33.6%;
  width: 32.8%;
  height: 14.5%;
  overflow: hidden;
  color: #8b2953;
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.boombox-marquee {
  position: absolute;
  top: 50%;
  left: 100%;
  display: block;
  width: max-content;
  padding-right: 12px;
  white-space: nowrap;
  text-shadow: 1px 1px 0 rgba(255,255,255,.72);
  transform: translateY(-50%);
  animation: boombox-marquee var(--marquee-duration, 13s) linear infinite;
  will-change: left, transform;
}

.boombox-toggle {
  position: absolute;
  z-index: 4;
  left: calc(50% - 18px);
  top: 64.3%;
  width: 36px;
  height: 22px;
  min-width: 36px;
  min-height: 22px;
  padding: 0;
  display: grid;
  place-items: center;
  transform: none !important;
  translate: none !important;
  margin: 0;
  color: #8e2853;
  font: 700 12px/1 var(--body-font);
  border-top: 2px solid #fff7fb;
  border-left: 2px solid #fff7fb;
  border-right: 2px solid #9f4168;
  border-bottom: 2px solid #9f4168;
  border-radius: 2px;
  background: linear-gradient(#ffe7f0, #e88fb2);
  box-shadow: 0 0 0 1px rgba(182, 72, 115, .12);
}

.boombox-toggle:hover,
.boombox-toggle:focus-visible {
  background: linear-gradient(#fff7fb, #f5b6ce);
  outline: 2px solid rgba(255, 239, 247, .92);
  outline-offset: 1px;
}

.boombox-toggle:active,
.boombox-toggle.is-pointer-pressed,
.boombox-toggle[aria-pressed="true"] {
  left: calc(50% - 18px) !important;
  top: 64.3% !important;
  transform: none !important;
  translate: none !important;
  animation: none !important;
  filter: none !important;
  border-top-color: #9f4168;
  border-left-color: #9f4168;
  border-right-color: #fff7fb;
  border-bottom-color: #fff7fb;
  background: linear-gradient(#d9799f, #f4b7ce);
  box-shadow: inset 2px 2px 0 rgba(118, 40, 72, .18);
}

.boombox-toggle.has-click-pop,
.boombox-toggle:hover,
.boombox-toggle:focus-visible {
  left: calc(50% - 18px) !important;
  top: 64.3% !important;
  transform: none !important;
  translate: none !important;
}

.boombox-youtube-shell {
  box-sizing: border-box;
  width: 100%;
  height: 206px;
  overflow: hidden;
  border: 3px solid #b85279;
  border-radius: 4px;
  background: #000;
  box-shadow:
    0 0 0 2px #ffe9f2,
    0 4px 8px rgba(160, 45, 90, .16);
}

.boombox-youtube-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@keyframes boombox-marquee {
  from {
    left: 100%;
    transform: translate(0, -50%);
  }

  to {
    left: 0;
    transform: translate(-100%, -50%);
  }
}

@media (max-width: 1320px) {
  .site-stage {
    padding-top: 35px;
  }

  .left-sidebar-stack,
  .hanging-photo {
    position: relative;
    inset: auto;
  }

  .left-sidebar-stack {
    width: 100%;
    margin: 0 auto 18px;
    gap: 14px;
  }

  .floating-menu {
    width: min(var(--page-width), calc(100% - 24px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .floating-menu .menu-heading {
    grid-column: 1 / -1;
  }

  .floating-menu a {
    border-right: 1px solid #efb7cc;
  }

  .hanging-photo {
    display: none;
  }

  .boombox-player {
    display: block;
    width: 206px;
    margin: 0 auto;
  }
}

@media (max-width: 860px) {
  :root {
    --page-width: 100%;
  }

  .site-stage {
    padding: 20px 0 60px;
  }

  .page-shell {
    width: 100%;
    border-left-width: 8px;
    border-right-width: 8px;
    padding-inline: 16px;
  }

  .site-header,
  .lace-divider {
    margin-inline: -16px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .profile-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .about-badge {
    grid-column: 1 / -1;
    margin: -18px auto -8px;
  }

  .visitors-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 570px) {
  body {
    font-size: 13px;
  }

  .floating-menu {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-column,
  .two-column-card {
    grid-template-columns: 1fr;
  }

  .update-layout {
    grid-template-columns: 1fr 86px;
  }

  .welcome-card {
    padding-inline: 9px;
  }

  .retro-scroll-content {
    padding-inline: 10px;
  }
}


@media (pointer: coarse) {
  .boombox-button {
    min-width: 48px;
    min-height: 40px;
  }
}

@media (pointer: fine) {
  html[data-custom-cursors="on"],
  html[data-custom-cursors="on"] body,
  html[data-custom-cursors="on"] body * {
    cursor: var(--cursor-default);
  }

  html[data-custom-cursors="on"] a,
  html[data-custom-cursors="on"] button,
  html[data-custom-cursors="on"] label,
  html[data-custom-cursors="on"] select,
  html[data-custom-cursors="on"] input[type="button"],
  html[data-custom-cursors="on"] input[type="submit"],
  html[data-custom-cursors="on"] input[type="checkbox"],
  html[data-custom-cursors="on"] input[type="radio"],
  html[data-custom-cursors="on"] [role="button"],
  html[data-custom-cursors="on"] .retro-scroll-track,
  html[data-custom-cursors="on"] .retro-scroll-button {
    cursor: var(--cursor-action);
  }

  html[data-custom-cursors="on"] input[type="text"],
  html[data-custom-cursors="on"] input[type="email"],
  html[data-custom-cursors="on"] input[type="search"],
  html[data-custom-cursors="on"] input[type="url"],
  html[data-custom-cursors="on"] textarea,
  html[data-custom-cursors="on"] [contenteditable="true"] {
    cursor: var(--cursor-text);
  }

  html[data-custom-cursors="on"] .retro-scroll-thumb {
    cursor: var(--cursor-grab);
  }

  html[data-custom-cursors="on"] body.is-pressing-interactive,
  html[data-custom-cursors="on"] body.is-pressing-interactive * {
    cursor: var(--cursor-click) !important;
  }

  html[data-custom-cursors="on"] body.is-dragging-scrollbar,
  html[data-custom-cursors="on"] body.is-dragging-scrollbar * {
    cursor: var(--cursor-grabbing) !important;
  }

  /* Keep the boombox control on one stable interactive cursor.
     The child glyph must not fall back to the page's default cursor. */
  html[data-custom-cursors="on"] body .boombox-toggle,
  html[data-custom-cursors="on"] body .boombox-toggle *,
  html[data-custom-cursors="on"] body.is-pressing-interactive .boombox-toggle,
  html[data-custom-cursors="on"] body.is-pressing-interactive .boombox-toggle * {
    cursor: var(--cursor-action) !important;
  }
}

:is(a, button, input[type="button"], input[type="submit"], input[type="checkbox"], input[type="radio"], [role="button"]) {
  -webkit-tap-highlight-color: transparent;
}

:is(a, button, input[type="button"], input[type="submit"], [role="button"]).is-pointer-pressed {
  transform: translateY(1px) scale(.985);
  filter: saturate(1.12) brightness(.98);
}

.floating-menu a.is-pointer-pressed {
  color: #991347;
  background: #f6bdd3;
  box-shadow: inset 2px 2px 0 rgba(151, 52, 91, .22);
}

.tiny-buttons button.is-pointer-pressed {
  box-shadow: inset 2px 2px 0 rgba(151, 52, 91, .22);
}

input:is([type="checkbox"], [type="radio"]).is-pointer-pressed {
  transform: scale(.82);
}

.has-click-pop {
  animation: interactive-click-pop 180ms ease-out;
}

.cursor-effect-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.cursor-sparkle {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--sparkle-size);
  height: var(--sparkle-size);
  color: var(--sparkle-color);
  opacity: 0;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95));
  animation: cursor-sparkle-fall var(--sparkle-duration) cubic-bezier(.17,.67,.34,1) forwards;
  will-change: transform, opacity;
}

.cursor-sparkle::before,
.cursor-sparkle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.cursor-sparkle::before {
  width: 100%;
  height: 28%;
}

.cursor-sparkle::after {
  width: 28%;
  height: 100%;
}

.cursor-sparkle.is-diamond::before,
.cursor-sparkle.is-diamond::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

.click-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border: 0;
  background-color: transparent;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30'%3E%3Cpath d='M16 27.5S2 18.7 2 9.4C2 5.2 5.2 2 9.2 2c3 0 5.5 1.7 6.8 4.1C17.3 3.7 19.8 2 22.8 2 26.8 2 30 5.2 30 9.4 30 18.7 16 27.5 16 27.5Z' fill='none' stroke='%23d34a82' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter:
    drop-shadow(0 0 1px var(--click-ring-highlight))
    drop-shadow(0 0 4px var(--click-ring-soft));
  transform: translate(-50%, -50%) scale(.24);
  animation: click-ring-expand 400ms cubic-bezier(.12,.75,.25,1) forwards;
}

.click-ring.is-strong {
  width: 24px;
  height: 24px;
  filter:
    drop-shadow(0 0 2px var(--click-ring-highlight))
    drop-shadow(0 0 7px var(--scrollbar-click-glow));
  animation-duration: 480ms;
}

.click-ring.is-echo {
  width: 12px;
  height: 12px;
  opacity: .92;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30'%3E%3Cpath d='M16 27.5S2 18.7 2 9.4C2 5.2 5.2 2 9.2 2c3 0 5.5 1.7 6.8 4.1C17.3 3.7 19.8 2 22.8 2 26.8 2 30 5.2 30 9.4 30 18.7 16 27.5 16 27.5Z' fill='none' stroke='%23fff2f8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  filter:
    drop-shadow(0 0 1px #ffffff)
    drop-shadow(0 0 3px rgba(255, 209, 227, .78));
  animation-delay: 34ms;
}

/* Touchscreens need a larger click confirmation than desktop pointers. */
@media (hover: none), (pointer: coarse) {
  .click-ring {
    width: 31.5px;
    height: 31.5px;
  }

  .click-ring.is-strong {
    width: 42px;
    height: 42px;
  }

  .click-ring.is-echo {
    width: 21px;
    height: 21px;
  }
}

.click-spark {
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 4px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: var(--click-spark-color);
  box-shadow: 0 0 3px #fff, 0 0 5px rgba(218, 72, 132, .22);
  transform: translate(-50%, -50%);
  animation: click-spark-burst 420ms ease-out forwards;
}

.click-spark.is-strong {
  width: 6px;
  height: 6px;
  animation-duration: 500ms;
}

.click-spark.is-diamond {
  border-radius: 1px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

@keyframes cursor-sparkle-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -3px, 0) rotate(0deg) scale(.25);
  }
  16% {
    opacity: 1;
    transform: translate3d(calc(var(--sparkle-drift) * .12), 2px, 0) rotate(calc(var(--sparkle-spin) * .12)) scale(1);
  }
  68% {
    opacity: .92;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--sparkle-drift), var(--sparkle-fall), 0) rotate(var(--sparkle-spin)) scale(.08);
  }
}

@keyframes click-ring-expand {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(.24); }
  58% { opacity: .72; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.65); }
}

@keyframes click-spark-burst {
  0% { opacity: .9; transform: translate(-50%, -50%) rotate(var(--click-angle)) translateX(0) scale(1); }
  65% { opacity: .7; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--click-angle)) translateX(var(--click-distance)) scale(.12); }
}

@keyframes retro-scrollbar-pulse {
  0% { filter: brightness(1) saturate(1); }
  38% { filter: brightness(1.09) saturate(1.22) drop-shadow(0 0 3px var(--scrollbar-click-glow)); }
  100% { filter: brightness(1) saturate(1); }
}

@keyframes retro-scroll-control-flash {
  0% { outline: 0 solid transparent; filter: brightness(.94) saturate(1.12); }
  38% { outline: 2px solid var(--click-ring-highlight); outline-offset: -2px; filter: brightness(1.1) saturate(1.28); }
  62% { outline: 1px solid var(--scrollbar-click-glow); outline-offset: -1px; }
  100% { outline: 0 solid transparent; filter: brightness(1) saturate(1); }
}

@keyframes interactive-click-pop {
  0% { transform: scale(1); }
  45% { transform: scale(.965); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-effect-layer {
    display: none;
  }

  .has-click-pop,
  .boombox-marquee {
    animation: none;
  }
}


/* Pixel typography and the user-provided monochrome emoji/icon font. */
.emoji-icon {
  display: inline-block;
  width: 1.32em;
  font-family: var(--emoji-font) !important;
  font-size: 1.18em;
  font-style: normal;
  font-weight: 400 !important;
  line-height: 1;
  text-align: center;
  vertical-align: -.08em;
  speak: none;
}

small[lang="ja"] {
  margin-left: .32em;
  color: #b65b7e;
  font-family: "DotGothic16", monospace;
  font-size: .68em;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.menu-heading {
  font-family: var(--heading-font);
  font-size: 17px;
  letter-spacing: -.04em;
}

.menu-heading small[lang="ja"] {
  color: #fff5fa;
  font-size: 9px;
  text-shadow: 1px 1px #b43266;
}

.floating-menu a {
  gap: 5px;
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 400;
}

.menu-copy {
  display: flex;
  min-width: 0;
  align-items: baseline;
  flex-wrap: wrap;
}

.floating-menu a .emoji-icon {
  flex: 0 0 1.35em;
  font-size: 1.25em;
}

.menu-heading .emoji-icon {
  width: 1.25em;
  font-size: 1.12em;
}

.profile-card h2,
.calendar-card h2,
.visitors-title,
.welcome-card h1,
.section-label {
  font-family: var(--heading-font);
  letter-spacing: -.035em;
}

.profile-card h2,
.calendar-card h2 {
  font-size: 13px;
}

.welcome-card h1 {
  font-size: 15px;
}

.section-label {
  font-size: 11px;
}

.heart-list li::before {
  content: "B";
  font-family: var(--emoji-font);
  font-size: .9em;
}

.profile-card .heart-list .emoji-icon {
  margin-right: 4px;
}

@media (max-width: 1160px) {
  .boombox-player {
    width: min(206px, calc(100% - 20px));
  }
}

@media (max-width: 570px) {
  .floating-menu a {
    font-size: 13px;
  }

  .menu-copy small[lang="ja"] {
    display: block;
    width: 100%;
    margin-left: 0;
  }

  .boombox-machine,
  .boombox-decoration {
    width: 180px;
  }
}

@media (pointer: coarse) {
  .boombox-toggle {
    left: calc(50% - 20px);
    top: 62.8%;
    width: 40px;
    height: 26px;
    min-width: 40px;
    min-height: 26px;
    font-size: 13px;
  }

  .boombox-toggle:active,
  .boombox-toggle.is-pointer-pressed,
  .boombox-toggle[aria-pressed="true"],
  .boombox-toggle.has-click-pop {
    left: calc(50% - 20px) !important;
    top: 62.8% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boombox-marquee {
    top: 50%;
    left: 0;
    max-width: 100%;
    overflow: hidden;
    padding-right: 0;
    text-overflow: ellipsis;
    transform: translateY(-50%);
    animation: none;
  }
}

/* ========================================================================== 
   ANGELCITY VISUAL CUSTOMIZER
   Edit the values in this block to restyle the complete site without changing
   the HTML structure or JavaScript behavior.
   ========================================================================== */
:root {
  /* PAGE BACKGROUND */
  --custom-page-background-color: #f7bfd3;
  --custom-page-background-image: url("../assets/decorations/base/background_tile.svg");
  --custom-page-background-repeat: repeat;
  --custom-page-background-size: auto;

  /* CENTRAL WHITE SITE BODY */
  --custom-site-width: 820px;
  --custom-site-surface: rgba(255, 255, 255, 0.985);
  --custom-site-frame-image: url("../assets/decorations/base/lace_edge.svg");
  --custom-site-frame-width: 18px;
  --custom-site-frame-outline: rgba(232, 132, 172, 0.42);
  --custom-site-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72), 0 0 30px rgba(166, 55, 100, 0.16);

  /* MAIN COLORS */
  --custom-text-color: #5e3c49;
  --custom-accent-color: #c83f78;
  --custom-accent-soft: #ef8db3;
  --custom-accent-pale: #ffd9e7;
  --custom-surface-color: #fffdfd;
  --custom-surface-soft: #fff5f9;

  /* SHARED CARD / PANEL BORDERS */
  --custom-panel-border-color: #eca9c3;
  --custom-panel-border-width: 1px;
  --custom-panel-inner-color: rgba(255, 226, 238, 0.72);
  --custom-panel-inner-width: 6px;
  --custom-panel-radius: 0px;
  --custom-panel-shadow: 0 2px 9px rgba(173, 64, 111, 0.09);

  /* HEADER */
  --custom-header-height: 142px;
  --custom-header-base-color: #f6bfd3;
  --custom-header-grid-color: rgba(255, 255, 255, 0.34);

  /* CONTENT LAYOUT */
  --custom-profile-column-width: 240px;
  --custom-content-gap: 22px;
  --custom-section-gap: 18px;

  /* MENU */
  --custom-menu-frame-color: rgba(255, 220, 232, 0.92);
  --custom-menu-frame-width: 7px;
  --custom-menu-radius: 14px;
  --custom-menu-surface: #fffdfd;
  --custom-menu-heading-color: #efa2bf;
  --custom-menu-row-top: #ffffff;
  --custom-menu-row-bottom: #fce5ee;
  --custom-menu-row-border: #efb7cc;
  --custom-menu-hover: #ffd4e4;

  /* PROFILE / CALENDAR */
  --custom-avatar-frame-color: #ffffff;
  --custom-avatar-outline-color: #eaa6c0;
  --custom-profile-title-color: #ffd5e5;
  --custom-calendar-heading-top: #f5b1cb;
  --custom-calendar-heading-bottom: #ee8db3;
  --custom-calendar-today-top: #f6aec9;
  --custom-calendar-today-bottom: #eb82ad;

  /* CONTENT SECTION LABELS */
  --custom-section-label-start: #ffd1e2;
  --custom-section-label-end: #f9c2d6;
  --custom-section-label-border: #efb3c9;

  /* BUTTONS */
  --custom-button-text: #bc366a;
  --custom-button-border: #e6a5bf;
  --custom-button-top: #ffffff;
  --custom-button-bottom: #f7cade;
  --custom-button-radius: 8px;

  /* YOUTUBE / BOOMBOX */
  --custom-player-border: #b85279;
  --custom-player-border-width: 3px;
  --custom-player-radius: 4px;
  --custom-player-shadow: 0 0 0 2px #ffe9f2, 0 4px 8px rgba(160, 45, 90, 0.16);

  /* HANGING PHOTO */
  --custom-photo-frame: rgba(255, 255, 255, 0.82);
  --custom-photo-surface: rgba(249, 194, 215, 0.94);

  /* SCROLLBOX */
  --custom-scrollbox-surface: #ffffff;
  --custom-scrollbox-border: #efacc6;

  /* CLICK EFFECT */
  --click-ring: #df6195;
  --click-ring-highlight: #fff9fc;
}

/* Map the customizer controls to the existing design. */
:root {
  --page-width: var(--custom-site-width);
  --page-text: var(--custom-text-color);
  --page-pink-dark: var(--custom-accent-color);
  --page-background-image: var(--custom-page-background-image);
}

html,
body {
  background-color: var(--custom-page-background-color);
}

body {
  color: var(--custom-text-color);
  background-image: var(--custom-page-background-image);
  background-repeat: var(--custom-page-background-repeat);
  background-size: var(--custom-page-background-size);
}

.page-shell {
  background: var(--custom-site-surface);
  border-left-width: var(--custom-site-frame-width);
  border-right-width: var(--custom-site-frame-width);
  border-image-source: var(--custom-site-frame-image);
  outline: 1px solid var(--custom-site-frame-outline);
  outline-offset: -1px;
  box-shadow: var(--custom-site-shadow);
}

.site-header {
  height: var(--custom-header-height);
  background:
    linear-gradient(rgba(255,255,255,.13), rgba(255,255,255,.13)),
    repeating-linear-gradient(0deg, var(--custom-header-grid-color) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, var(--custom-header-grid-color) 0 1px, transparent 1px 18px),
    var(--custom-header-base-color);
}

.content-grid {
  grid-template-columns: var(--custom-profile-column-width) minmax(0, 1fr);
  gap: var(--custom-content-gap);
}

.panel {
  border: var(--custom-panel-border-width) solid var(--custom-panel-border-color);
  border-radius: var(--custom-panel-radius);
  background: var(--custom-surface-color);
  box-shadow:
    inset 0 0 0 var(--custom-panel-inner-width) var(--custom-panel-inner-color),
    var(--custom-panel-shadow);
}

.floating-menu {
  border-color: var(--custom-menu-frame-color);
  border-width: var(--custom-menu-frame-width);
  border-radius: var(--custom-menu-radius);
  background: var(--custom-menu-surface);
}

.floating-menu a {
  border-top-color: var(--custom-menu-row-border);
  background: linear-gradient(var(--custom-menu-row-top), var(--custom-menu-row-bottom));
}

.floating-menu a:hover,
.floating-menu a:focus-visible {
  background: var(--custom-menu-hover);
}

.menu-heading {
  background:
    radial-gradient(circle, #fff 0 1px, transparent 2px) 0 0 / 13px 13px,
    var(--custom-menu-heading-color);
}

.profile-avatar {
  border-color: var(--custom-avatar-frame-color);
  outline-color: var(--custom-avatar-outline-color);
}

.profile-card h2 {
  background: var(--custom-profile-title-color);
}

.calendar-card h2 {
  background: linear-gradient(var(--custom-calendar-heading-top), var(--custom-calendar-heading-bottom));
}

.calendar-day.is-today::before {
  background: linear-gradient(var(--custom-calendar-today-top), var(--custom-calendar-today-bottom));
}

.update-card,
.two-column-card,
.calendar-card {
  margin-top: var(--custom-section-gap);
}

.section-label {
  border-color: var(--custom-section-label-border);
  background: linear-gradient(90deg, var(--custom-section-label-start), var(--custom-section-label-end) 62%, transparent 62%);
}

.two-column-card {
  background:
    repeating-linear-gradient(0deg, rgba(231, 143, 178, .14) 0 1px, transparent 1px 4px),
    var(--custom-surface-soft);
}

.mini-panel {
  border-color: var(--custom-panel-border-color);
  background: var(--custom-surface-color);
  box-shadow: inset 0 0 0 3px rgba(255, 233, 242, 0.52);
}

.retro-scroll {
  border-color: var(--custom-scrollbox-border);
  background: var(--custom-scrollbox-surface);
}

.tiny-buttons button {
  color: var(--custom-button-text);
  border-color: var(--custom-button-border);
  border-radius: var(--custom-button-radius);
  background: linear-gradient(var(--custom-button-top), var(--custom-button-bottom));
}

.visitors-title,
.visitor-tags strong,
.visitor-tags span,
.chatbox-placeholder {
  border-color: var(--custom-panel-border-color);
}

.boombox-youtube-shell {
  border-color: var(--custom-player-border);
  border-width: var(--custom-player-border-width);
  border-radius: var(--custom-player-radius);
  box-shadow: var(--custom-player-shadow);
}

.hanging-photo {
  border-color: var(--custom-photo-frame);
  background: var(--custom-photo-surface);
}

/* Keep the custom frame responsive. */
@media (max-width: 860px) {
  .page-shell {
    border-left-width: min(8px, var(--custom-site-frame-width));
    border-right-width: min(8px, var(--custom-site-frame-width));
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================
   ANGELCITY IMAGE FRAME CUSTOMIZER
   The files below let you swap the major borders with editable
   SVG templates. Edit the stroke / fill colors directly inside:
   assets/decorations/base/page_shell_frame.svg
   assets/decorations/base/container_menu_frame.svg
   assets/decorations/base/container_panel_frame.svg
   assets/decorations/base/container_mini_panel_frame.svg
   assets/decorations/base/container_chatbox_frame.svg
   assets/decorations/base/container_pill_frame.svg
   ========================================================== */

:root {
  --image-frame-shell: url("../assets/decorations/base/page_shell_frame.svg");
  --image-frame-menu: url("../assets/decorations/base/container_menu_frame.svg");
  --image-frame-panel: url("../assets/decorations/base/container_panel_frame.svg");
  --image-frame-mini-panel: url("../assets/decorations/base/container_mini_panel_frame.svg");
  --image-frame-chatbox: url("../assets/decorations/base/container_chatbox_frame.svg");
  --image-frame-pill: url("../assets/decorations/base/container_pill_frame.svg");

  --image-frame-shell-inset: -30px -42px -30px -42px;
  --image-frame-menu-inset: -14px -14px -14px -14px;
  --image-frame-panel-inset: -10px -10px -10px -10px;
  --image-frame-mini-panel-inset: -8px -8px -8px -8px;
  --image-frame-chatbox-inset: -10px -10px -10px -10px;
  --image-frame-pill-inset: -7px -16px -8px -16px;

  --image-frame-menu-surface: rgba(255, 255, 255, 0.94);
  --image-frame-panel-surface: rgba(255, 252, 254, 0.96);
  --image-frame-mini-panel-surface: rgba(255, 252, 254, 0.97);
  --image-frame-chatbox-surface: rgba(255, 248, 251, 0.96);
}

.page-shell,
.floating-menu,
.panel,
.mini-panel,
.chatbox-placeholder,
.visitors-title {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.page-shell {
  padding: 0 30px 30px;
  border-left: 0;
  border-right: 0;
  border-image: none;
  outline: none;
  background: var(--custom-site-surface);
  box-shadow: none;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: var(--image-frame-shell-inset);
  z-index: -1;
  pointer-events: none;
  background: center / 100% 100% no-repeat var(--image-frame-shell);
}

.site-header {
  margin: 14px 0 0;
}

.lace-divider {
  margin-left: -2px;
  margin-right: -2px;
}

.floating-menu {
  border: 0;
  border-radius: 18px;
  background: var(--image-frame-menu-surface);
  box-shadow: none;
}

.floating-menu::before {
  content: "";
  position: absolute;
  inset: var(--image-frame-menu-inset);
  z-index: -1;
  pointer-events: none;
  background: center / 100% 100% no-repeat var(--image-frame-menu);
}

.menu-heading {
  border-radius: 12px;
}

.panel {
  border: 0;
  border-radius: 0;
  background: var(--image-frame-panel-surface);
  box-shadow: none;
}

.panel::before {
  content: "";
  position: absolute;
  inset: var(--image-frame-panel-inset);
  z-index: -1;
  pointer-events: none;
  background: center / 100% 100% no-repeat var(--image-frame-panel);
}

.mini-panel {
  border: 0;
  background: var(--image-frame-mini-panel-surface);
  box-shadow: none;
}

.mini-panel::before {
  content: "";
  position: absolute;
  inset: var(--image-frame-mini-panel-inset);
  z-index: -1;
  pointer-events: none;
  background: center / 100% 100% no-repeat var(--image-frame-mini-panel);
}

.chatbox-placeholder {
  border: 0;
  background: var(--image-frame-chatbox-surface);
}

.chatbox-placeholder::before {
  content: "";
  position: absolute;
  inset: var(--image-frame-chatbox-inset);
  z-index: -1;
  pointer-events: none;
  background: center / 100% 100% no-repeat var(--image-frame-chatbox);
}

.visitors-title {
  border: 0;
  background: transparent;
  padding: 12px 30px 14px;
}

.visitors-title::before {
  content: "";
  position: absolute;
  inset: var(--image-frame-pill-inset);
  z-index: -1;
  pointer-events: none;
  background: center / 100% 100% no-repeat var(--image-frame-pill);
}

/* Keep content safely above the decorative frame layers. */
.panel > *,
.mini-panel > *,
.chatbox-placeholder > *,
.floating-menu > * {
  position: relative;
  z-index: 1;
}

/* Welcome / calendar / update cards look better with a little more breathing room
   once image frames are enabled. */
.profile-card,
.calendar-card,
.welcome-card,
.update-card,
.two-column-card {
  padding-left: 16px;
  padding-right: 16px;
}

.calendar-card {
  padding-bottom: 20px;
}

.welcome-card {
  padding-top: 30px;
}

@media (max-width: 860px) {
  :root {
    --image-frame-shell-inset: -22px -18px -22px -18px;
  }

  .page-shell {
    padding-left: 18px;
    padding-right: 18px;
  }
}


/* ==========================================================
   ANGELCITY AUDIT FIXES v16
   ========================================================== */

/* The image-frame layer previously changed the ribbon from absolute to
   relative positioning. Restore the intended overlay position. */
.welcome-card > .bow-decoration {
  position: absolute;
  z-index: 4;
}

/* Alias anchors make every menu link land on a real section without adding
   visible layout content. */
.section-anchor {
  position: absolute !important;
  top: -18px;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

/* Keep decorative frame overflow inside narrow viewports instead of creating
   a hidden horizontal overhang and clipping one side of the frame. */
@media (max-width: 940px) {
  :root {
    --image-frame-shell-inset: -18px -12px -18px -12px;
  }

  .page-shell {
    width: min(var(--page-width), calc(100% - 24px));
    margin-inline: auto;
  }
}

/* Optional Unicode fallback used only when EmojiFont.ttf is not installed in
   assets/shared/fonts. The original icon font remains the first choice. */
html.emoji-font-fallback .emoji-icon {
  font-family: var(--body-font);
  font-size: .92em;
  line-height: 1;
}

html.emoji-font-fallback .heart-list li::before {
  content: "♥";
  font-family: inherit;
}

/* Clear feedback when the external YouTube iframe API is blocked or the
   selected video cannot be embedded. */
.boombox-youtube-shell {
  position: relative;
}

.boombox-player-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 18px;
  display: grid;
  place-content: center;
  gap: 10px;
  color: #8f315b;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 241, 247, .96);
}

.boombox-player-fallback:hover,
.boombox-player-fallback:focus-visible {
  color: #a71955;
  background: rgba(255, 250, 252, .98);
  outline: 2px dotted #b84d78;
  outline-offset: -6px;
}

.boombox-toggle:disabled,
.retro-scroll-button:disabled {
  opacity: .58;
  cursor: var(--cursor-default) !important;
}

@media (max-width: 1320px) {
  :root {
    --image-frame-menu-inset: -12px -12px -12px -12px;
  }
}

/* Content-driven list wrapper used by the visual editor. */
#favorites-list > label {
  display: block;
  margin: 6px 0;
}

/* ==========================================================
   LARSHEEN RESPONSIVE VISUAL LAYOUT RUNTIME
   Values are generated by editor.html and stored in
   content/site-layout.js. These rules intentionally sit last.
   ========================================================== */
:root {
  --layout-home-max-width: 760px;
  --layout-home-profile-width: 240px;
  --layout-home-content-gap: 22px;
  --layout-home-outer-padding: 20px;
  --layout-home-shell-padding: 30px;
  --layout-home-dock-width: 206px;
  --layout-home-dock-top: 110px;
  --layout-home-dock-offset-x: -26px;
  --layout-home-header-height: 142px;
  --layout-home-component-gap: 16px;
  --layout-decoration-x: 0px;
  --layout-decoration-y: 0px;
  --layout-decoration-scale: 1;
  --layout-decoration-rotation: 0deg;
}

body[data-layout-page="homepage"] .site-stage {
  padding-left: var(--layout-home-outer-padding);
  padding-right: var(--layout-home-outer-padding);
}

body[data-layout-page="homepage"] .page-shell {
  width: min(var(--layout-home-max-width), 100%);
  padding-left: var(--layout-home-shell-padding);
  padding-right: var(--layout-home-shell-padding);
}

body[data-layout-page="homepage"] .site-header {
  height: var(--layout-home-header-height);
}

body[data-layout-page="homepage"] .content-grid {
  grid-template-columns: minmax(150px, var(--layout-home-profile-width)) minmax(0, 1fr);
  gap: var(--layout-home-content-gap);
}

body[data-layout-page="homepage"] .profile-column,
body[data-layout-page="homepage"] .main-column,
body[data-layout-page="homepage"] .left-sidebar-stack {
  gap: var(--layout-home-component-gap);
}

body[data-layout-page="homepage"] .profile-column,
body[data-layout-page="homepage"] .main-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body[data-layout-page="homepage"] .profile-component-group {
  position: relative;
  min-width: 0;
}

body[data-layout-page="homepage"] .left-sidebar-stack {
  top: var(--layout-home-dock-top);
  left: var(--layout-home-dock-offset-x);
  width: var(--layout-home-dock-width);
}

body[data-layout-page="homepage"] .hanging-photo {
  transform:
    translate(var(--layout-decoration-x), var(--layout-decoration-y))
    scale(var(--layout-decoration-scale))
    rotate(var(--layout-decoration-rotation));
  transform-origin: center top;
}

body[data-layout-page="homepage"] [data-layout-id] {
  box-sizing: border-box;
}

body[data-layout-page="homepage"] [data-layout-zone].is-layout-empty {
  display: none !important;
}

html[data-layout-device="mobile"] body[data-layout-page="homepage"] .content-grid {
  display: block;
}

html[data-layout-device="mobile"] body[data-layout-page="homepage"] .main-column {
  width: 100%;
}

html[data-layout-device="mobile"] body[data-layout-page="homepage"] .left-sidebar-stack {
  position: static;
  width: 100%;
  margin: 0;
}

html[data-layout-device="mobile"] body[data-layout-page="homepage"] .about-badge {
  margin-left: 0;
}

html[data-layout-device="mobile"] body[data-layout-page="homepage"] .page-shell {
  padding-left: var(--layout-home-shell-padding);
  padding-right: var(--layout-home-shell-padding);
}

html[data-layout-device="tablet"] body[data-layout-page="homepage"] .left-sidebar-stack {
  z-index: 9;
}

/* Visual editor selection and touch drag helpers. */
html.layout-preview-mode [data-layout-id] {
  position: relative;
  cursor: pointer !important;
  outline: 2px dashed transparent;
  outline-offset: 3px;
  transition: outline-color 120ms ease, box-shadow 120ms ease;
}

.layout-preview-drag-handle {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  position: absolute;
  z-index: 10002;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  color: #fff;
  font: 700 18px/1 Arial, sans-serif;
  touch-action: none;
  cursor: grab !important;
  border: 1px solid #8b2657;
  border-radius: 5px;
  background: linear-gradient(#ef86b7, #c74782);
  box-shadow: 0 2px 6px rgba(69,20,43,.28);
}

.layout-preview-drag-handle:active { cursor: grabbing !important; }
html.is-layout-dragging, html.is-layout-dragging * { cursor: grabbing !important; user-select: none !important; }
html.is-layout-dragging [data-layout-id] { pointer-events: auto; }
html.is-layout-dragging [data-layout-id].is-layout-drag-source { pointer-events: none; opacity: .58; }

html.layout-preview-mode [data-layout-id].is-layout-drop-before::before,
html.layout-preview-mode [data-layout-id].is-layout-drop-after::before {
  content: "";
  position: absolute;
  z-index: 10005;
  left: 0;
  right: 0;
  height: 5px;
  pointer-events: none;
  border-radius: 5px;
  background: #16a4c7;
  box-shadow: 0 0 0 2px #fff;
}
html.layout-preview-mode [data-layout-id].is-layout-drop-before::before { top: -8px; }
html.layout-preview-mode [data-layout-id].is-layout-drop-after::before { bottom: -8px; }
html.layout-preview-mode [data-layout-zone].is-layout-drop-zone { outline: 4px dashed #16a4c7; outline-offset: 3px; min-height: 56px; }

html.layout-home-sidebar-empty body[data-layout-page="homepage"] .content-grid,
html.layout-home-main-empty body[data-layout-page="homepage"] .content-grid {
  grid-template-columns: minmax(0, 1fr);
}
html.layout-home-sidebar-empty body[data-layout-page="homepage"] .main-column,
html.layout-home-main-empty body[data-layout-page="homepage"] .profile-column {
  grid-column: 1 / -1;
}
html[data-layout-device="mobile"] { overflow-x: hidden; }

/* ==========================================================
   LARSHEEN PAGE / FLOATING-AREA GEOMETRY v5.2
   The page is a bounded center frame with TOP, HEADER, BODY,
   and BOTTOM structural zones. Floating areas live outside the
   page and are vertically clipped to the page limits.
   ========================================================== */
:root {
  --layout-page-left: 420px;
  --layout-page-right: 1180px;
  --layout-page-width: 760px;
  --layout-page-height: 1100px;
  --layout-page-top-height: 24px;
  --layout-page-header-height: 142px;
  --layout-page-bottom-height: 74px;
  --layout-page-body-height: 860px;
}

body[data-layout-page="homepage"] {
  min-width: 0;
  overflow-x: hidden;
}

body[data-layout-page="homepage"] .site-stage[data-layout-canvas="homepage"] {
  width: 100%;
  min-height: var(--layout-page-height);
  padding: 0 !important;
  position: relative;
  overflow: visible;
}

body[data-layout-page="homepage"] .page-shell[data-layout-page-frame="homepage"] {
  width: var(--layout-page-width) !important;
  min-width: 0;
  max-width: none;
  min-height: var(--layout-page-height);
  height: var(--layout-page-height);
  margin: 0;
  padding: var(--layout-page-top-offset, 0px) 0 var(--layout-page-bottom-offset, 0px);
  position: absolute;
  left: var(--layout-page-left);
  top: 0;
  display: grid;
  grid-template-rows:
    var(--layout-page-top-height)
    var(--layout-page-header-height)
    minmax(0, var(--layout-page-body-height))
    var(--layout-page-bottom-height);
  box-sizing: border-box;
  transform: none !important;
}

body[data-layout-page="homepage"] .layout-page-top-zone,
body[data-layout-page="homepage"] .layout-page-header-zone,
body[data-layout-page="homepage"] .layout-page-body-zone,
body[data-layout-page="homepage"] .layout-page-bottom-zone {
  min-width: 0;
  min-height: 0;
  position: relative;
  box-sizing: border-box;
}

body[data-layout-page="homepage"] .layout-page-top-zone {
  height: var(--layout-page-top-height);
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
body[data-layout-page="homepage"] .layout-page-header-zone {
  height: var(--layout-page-header-height);
  padding-inline: var(--layout-home-shell-padding);
  overflow: hidden;
}
body[data-layout-page="homepage"] .layout-page-header-zone .site-header {
  width: 100%;
  height: 100% !important;
  min-height: 0;
}
body[data-layout-page="homepage"] .layout-page-header-zone .lace-divider {
  position: absolute;
  left: var(--layout-home-shell-padding);
  right: var(--layout-home-shell-padding);
  bottom: 0;
}
body[data-layout-page="homepage"] .layout-page-body-zone {
  height: var(--layout-page-body-height);
  padding: var(--layout-home-shell-padding);
  align-content: start;
  overflow: hidden;
  grid-template-columns: minmax(150px, var(--layout-home-profile-width)) minmax(0, 1fr);
  gap: var(--layout-home-component-gap) var(--layout-home-content-gap);
}
body[data-layout-page="homepage"] .layout-page-body-zone > [data-layout-id] {
  min-width: 0;
  align-self: start;
}
body[data-layout-page="homepage"] .layout-page-body-zone > [data-layout-body-column="left"] { grid-column: 1; }
body[data-layout-page="homepage"] .layout-page-body-zone > [data-layout-body-column="right"] { grid-column: 2; }
body[data-layout-page="homepage"] .layout-page-bottom-zone {
  height: var(--layout-page-bottom-height);
  padding-inline: var(--layout-home-shell-padding);
  overflow: hidden;
  display: flex;
  align-items: end;
}
body[data-layout-page="homepage"] .layout-page-bottom-zone > [data-layout-id] {
  width: 100%;
  margin: 0 !important;
}

body[data-layout-page="homepage"] .layout-floating-area {
  min-width: 0;
  height: var(--layout-page-height);
  position: absolute !important;
  top: 0 !important;
  bottom: auto !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--layout-home-component-gap);
  overflow: hidden;
  box-sizing: border-box;
  transform: none !important;
}
body[data-layout-page="homepage"] .layout-floating-left {
  left: 0 !important;
  width: max(0px, calc(var(--layout-page-left) - 1px)) !important;
  padding-top: var(--layout-home-dock-top);
  padding-left: max(0px, calc(var(--layout-page-left) - var(--layout-home-dock-width) - 1px + var(--layout-home-dock-offset-x)));
}
body[data-layout-page="homepage"] .layout-floating-right {
  left: calc(var(--layout-page-right) + 1px) !important;
  right: 0 !important;
  width: auto !important;
  padding-top: var(--layout-home-dock-top);
  padding-left: 1px;
}
body[data-layout-page="homepage"] .layout-floating-left > [data-layout-id] {
  width: min(var(--layout-home-dock-width), calc(100% - 1px));
  flex: 0 0 auto;
}
body[data-layout-page="homepage"] .layout-floating-right > [data-layout-id] {
  flex: 0 0 auto;
}

html[data-layout-device="mobile"] body[data-layout-page="homepage"] .page-shell[data-layout-page-frame="homepage"] {
  position: absolute;
}
html[data-layout-device="mobile"] body[data-layout-page="homepage"] .layout-page-body-zone {
  display: flex;
  flex-direction: column;
  gap: var(--layout-home-component-gap);
}
html[data-layout-device="mobile"] body[data-layout-page="homepage"] .layout-page-body-zone > [data-layout-id] {
  width: 100%;
}

html.layout-preview-mode [data-layout-structural-zone] {
  outline: 1px dashed rgba(26, 152, 83, .55);
  outline-offset: -1px;
}
html.layout-preview-mode [data-layout-structural-zone="top"],
html.layout-preview-mode [data-layout-structural-zone="bottom"] {
  outline-color: rgba(35, 77, 220, .72);
}
html.layout-preview-mode [data-layout-structural-zone].is-layout-empty,
body[data-layout-page="homepage"] [data-layout-structural-zone].is-layout-empty {
  display: block !important;
}


/* Top is a transparent structural placement region. */
body[data-layout-page="homepage"] .page-shell[data-layout-page-frame="homepage"] {
  background: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  border-image: none;
  box-shadow: none;
}
body[data-layout-page="homepage"] .layout-page-header-zone,
body[data-layout-page="homepage"] .layout-page-body-zone,
body[data-layout-page="homepage"] .layout-page-bottom-zone {
  background-color: rgba(255,255,255,.96);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-image: url("../assets/decorations/base/lace_edge.svg") 0 42 repeat;
}
body[data-layout-page="homepage"] .layout-page-header-zone {
  box-shadow: 0 -8px 22px -18px var(--page-shadow);
}
body[data-layout-page="homepage"] .layout-page-bottom-zone {
  box-shadow: 0 12px 22px -18px var(--page-shadow);
}


.layout-independent-flow-placeholder {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  background: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}


/* v5.4.6 — editor-only label cleanup and runway background consistency.
   Labels are rendered by the dedicated overlay layer, so component pseudo
   elements remain available for their native decorative artwork. */
html[data-layout-page="homepage"] {
  background-color: var(--site-background-color);
  background-image: var(--page-background-image);
  background-repeat: repeat;
  background-position: left top;
}


/* v5.6 — safe user-added content blocks */
.custom-content { box-sizing: border-box; position: relative; min-width: 1px; min-height: 1px; }
.custom-content-text { padding: 12px; color: var(--page-text, #5e3c49); border: 1px solid var(--page-border, #efb1c9); background: rgba(255,255,255,.92); }
.custom-content-text p { margin: 0 0 .65em; white-space: pre-wrap; }
.custom-content-text p:last-child { margin-bottom: 0; }
.custom-content-image { margin: 0; padding: 5px; border: 1px solid var(--page-border, #efb1c9); background: rgba(255,255,255,.9); }
.custom-content-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
.custom-content-link { min-height: 44px; padding: 9px 14px; display: inline-flex; align-items: center; justify-content: center; color: var(--page-pink-dark, #c83f78); font-weight: 700; text-decoration: none; border: 1px solid var(--page-border, #efb1c9); border-radius: 8px; background: linear-gradient(#fff, var(--page-pink-light, #ffe9f2)); }
.custom-content-link:hover, .custom-content-link:focus-visible { filter: brightness(.98); }
body.diary-page .custom-content-text, body.diary-page .custom-content-image, body.diary-page .custom-content-link { border-color: var(--diary-line, #d7a7bf); }
