/* Small-window policy: preserve the full desktop canvas and allow horizontal
   scrolling instead of rearranging or compressing the original blog art.
   Historical narrow-screen rules below remain inactive on purpose. */
/* Soft cream-and-peach watercolor daisy paper. */
.neighbors-room {
  position: relative;
  height: 100%;
  min-height: 600px;
  overflow-x: hidden;
  overflow-y: auto;
  color: #765c37;
  background: #fff2e7 url('/assets/blog/patterns/home-brush-bunnies.jpg') center / 500px 500px repeat;
  scrollbar-color: #cda68b transparent;
}

/* A tiny watercolor sign, rather than a harsh UI banner. */
.neighbors-heading {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min(90%, 370px);
  min-height: 86px;
  margin: 76px auto 8px;
  padding: 15px 20px 12px;
  border: 2px solid #d9b99d;
  border-radius: 21px;
  background:
    radial-gradient(ellipse at 20% 20%,#fffdf4 0,transparent 70%),
    linear-gradient(135deg,#fff5e4ed,#ffeddded);
  box-shadow: 0 4px 0 #bc967333, 0 7px 17px #9b98792a, inset 0 0 0 3px #fffaf09c;
  text-align: center;
  transform: rotate(-.4deg);
}
.neighbors-heading::before, .neighbors-heading::after {
  content: "✿";
  position: absolute;
  top: 23px;
  color: #d7a0a9;
  font: 20px/1 Georgia,serif;
  opacity: .8;
  pointer-events: none;
}
.neighbors-heading::before { left: 13px; transform: rotate(-18deg); }
.neighbors-heading::after { right: 13px; transform: rotate(20deg); }
/* Two original animated Pompompurin sprites frame the hanging sign.
   They are non-interactive and never cover the title or neighbor links. */
.neighbors-heading-pompom {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 90px;
  height: 90px;
  object-fit: contain;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  image-rendering: pixelated;
}
.neighbors-heading-pompom-left { left: -103px; }
.neighbors-heading-pompom-right { right: -103px; }

.neighbors-heading h1 {
  margin: 0;
  padding: 0;
  color: #b27e74;
  font: normal clamp(23px,2.25vw,29px)/1.25 Basiic,RainyHearts,"Courier New",sans-serif;
  letter-spacing: .3px;
  text-transform: lowercase;
}
.neighbors-heading p {
  margin: 3px 0 0;
  color: #ab947d;
  font-size: 13px;
  line-height: 1.35;
}

/* A borderless link-button nook centered above the Neighbors title.
   Copy still writes the original 88x31 linking HTML to the clipboard. */
/* Keep the enlarged preview above adjacent content at rest, not just on hover. */
.neighbors-sidebar-button {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: min(600px, calc(100% - 48px));
  max-width: 100%;
  margin: 87px auto 19px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #ad8390;
}
.neighbors-sidebar-button-title {
  color: #8d5530;
  font: normal clamp(23px,2.25vw,29px)/1.25 Basiic,RainyHearts,"Courier New",sans-serif;
  letter-spacing: .3px;
  text-align: center;
}
.neighbors-button-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.neighbors-button-html-group {
  display: flex;
  flex-direction: column;
  width: min(330px, 100%);
  max-width: 100%;
  min-width: 0;
}
.neighbors-sidebar-preview, .neighbors-sidebar-preview img {
  display: block;
  width: 100px;
  height: 35px;
}
.neighbors-sidebar-preview {
  position: relative;
  z-index: 2;
  flex: 0 0 35px;
  overflow: visible;
  line-height: 0;
}
/* Downscale the 238x83 GIF smoothly at 100x35. Pixelated nearest-neighbor
   sampling drops fine lower-border pixels at some browser zoom levels. */
.neighbors-sidebar-preview img {
  object-fit: fill;
  image-rendering: auto;
}
.neighbors-sidebar-html {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 52px;
  min-height: 52px;
  padding: 6px 9px;
  border: 1.5px solid #d8b291;
  border-radius: 10px;
  background: #fffaf1d9;
  color: #8d5530;
  font: 12px/1.35 Basiic,RainyHearts,"Courier New",monospace;
  overflow-wrap: anywhere;
  resize: none;
  cursor: text;
}
.neighbors-sidebar-html:focus-visible {
  outline: 2px dashed #b88a77;
  outline-offset: 2px;
}
/* A compact old-web button wall, like a friend's 88 x 31 link gallery.
   Genuine neighbors only: do not repeat or invent buttons to fill rows. */
.neighbors-playground {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, 88px);
  justify-content: center;
  align-content: start;
  gap: 8px 10px;
  width: min(calc(100% - 32px), 398px);
  /* Seven rows per page, without an inner scrollbar. */
  height: 293px;
  min-height: 293px;
  overflow: visible;
  margin: 21px auto 32px;
  padding: 10px 8px 18px;
}
.neighbor-slot {
  position: relative;
  width: 88px;
  height: 31px;
}
.neighbor-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 31px;
  text-decoration: none;
  filter: drop-shadow(0 1px 1px #6c6b3333);
  transition: transform .16s ease, filter .16s ease;
}
.neighbor-button img {
  display: block;
  width: 88px;
  height: 31px;
  object-fit: fill;
  image-rendering: pixelated;
}
.neighbor-button:hover,.neighbor-button:focus-visible {
  z-index: 1;
  transform: translateY(-2px) scale(1.045);
  filter: brightness(1.08) drop-shadow(0 2px 3px #6c6b3355);
  outline: 2px solid #fff8d8;
  outline-offset: 2px;
}
.neighbor-text-fallback {
  box-sizing: border-box;
  padding: 2px;
  border: 1px solid #a29560;
  background: #fff5d9;
  color: #705735;
  font-size: 11px;
  text-align: center;
}

/* Preserve the same little room navigation used by the Melody blog. */
.painted-room-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 190px;
  margin: 38px auto 0;
}
.painted-room-nav a {
  display: block;
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #8a583b;
  text-decoration: none;
  transition: color .16s ease;
}
.painted-room-nav a:hover {
  color: #ae715f;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.painted-room-nav a[aria-current] {
  color: #ab6559;
  background: transparent;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .painted-room-nav a { transition: none; }
}

@media (max-width: 0px) {
  .neighbors-heading { width: min(73%,350px); margin-top: 72px; }
  .neighbors-heading-pompom {
    width: clamp(42px,11vw,70px);
    height: clamp(42px,11vw,70px);
  }
  .neighbors-heading-pompom-left { left: calc(-1 * clamp(39px,11vw,70px)); }
  .neighbors-heading-pompom-right { right: calc(-1 * clamp(39px,11vw,70px)); }
  .neighbors-own-button { width: min(94%,370px); }
  .neighbors-playground {
    width: calc(100% - 16px);
    gap: 7px 6px;
    margin: 10px auto 24px;
    padding: 8px 4px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .neighbor-button { transition: none; }
}

/* Floating heading with a divider and lower neighbor buttons. */
.neighbors-heading{box-sizing:border-box;width:min(82%,400px);min-height:0;margin:24px auto 0;padding:0 12px;border:0;border-radius:0;background:none;box-shadow:none;transform:none}
.neighbors-heading::before,.neighbors-heading::after{content:none}

.neighbors-heading h1{color:#8d5530}
.neighbors-heading p{color:#987147}
.neighbors-heading-pompom{top:33px;width:82px;height:82px}
.neighbors-divider{display:block;width:218px;max-width:65%;height:auto;max-height:70px;object-fit:contain;margin:11px auto 0}
.neighbors-playground{margin-top:32px}
@media (max-width: 0px){
  .neighbors-sidebar-button{margin-top:25px}
  .neighbors-heading{width:min(75%,360px);margin-top:12px;padding:0 4px}
  .neighbors-heading-pompom{top:26px}
  .neighbors-divider{width:215px;max-width:68%;max-height:65px;margin-top:11px}
  .neighbors-playground{margin-top:24px}
}

/* Six room links stay within the existing desktop sidebar. */
.painted-room-nav:has([data-guestbook]){gap:8px;margin-top:30px}
.painted-room-nav:has([data-guestbook]) a{padding-top:8px;padding-bottom:8px}

/* Keep the original vertical navigation at every browser width. */
@media (max-width: 0px) {
  .sidebar .painted-room-nav,
  .sidebar .painted-room-nav:has([data-guestbook]) {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(190px,100%);
    max-width: 100%;
    margin: 22px auto 0;
  }
  .sidebar .painted-room-nav a,
  .sidebar .painted-room-nav:has([data-guestbook]) a {
    display: block;
    min-height: 0;
    padding: 8px 10px;
    font-size: clamp(12px,1.7vw,15px);
    line-height: 1.3;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 0px) {
  .sidebar .painted-room-nav,
  .sidebar .painted-room-nav:has([data-guestbook]) { gap: 7px; margin-top: 14px; }
  .sidebar .painted-room-nav a,
  .sidebar .painted-room-nav:has([data-guestbook]) a {
    padding: 7px 6px;
    font-size: 11px;
  }
}

/* Balanced animated friends around the centered heading. */
.neighbors-heading-pompom-left{left:-96px}
.neighbors-heading-pompom-right{right:-96px}

/* Keep the 5-column neighbor button wall centered without extra decorations. */
.neighbors-buttons-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 410px;
  max-width: calc(100% - 24px);
  margin: 23px auto 32px;
  gap: 0;
}
.neighbors-buttons-stage .neighbors-playground {
  flex: none;
  width: 398px;
  max-width: 100%;
  margin: 0;
}
/* Six existing sticker assets accompany the text-only room navigation.
   Decorative icons have no extra borders, panels, hearts, or labels. */
.sidebar .painted-room-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 3px 9px;
  line-height: 1.35;
}
.sidebar .painted-room-nav a::before {
  content: "";
  display: block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
.sidebar .painted-room-nav a[data-room="melody"]::before {
  background-image: url("/pompompurin/tumblr_671961833139ffd3f8b9342c43aed0ae_7024d4b8_1280.webp");
}
.sidebar .painted-room-nav a[data-gif-gallery]::before {
  background-image: url("/pompompurin/tumblr_532b980c9fecf2f40649226d357b3fc0_f16cd22a_500.webp");
}
.sidebar .painted-room-nav a[data-room="chatroom"]::before {
  background-image: url("/pompompurin/tumblr_d9651878238e83290f590e87c5a77f09_7434b52f_540.webp");
}
.sidebar .painted-room-nav a[data-neighbors]::before {
  background-image: url("/pompompurin/tumblr_478dbe4e227f49efca164d733541ec54_a335a102_400.webp");
}
.sidebar .painted-room-nav a[data-story]::before {
  background-image: url("/pompompurin/tumblr_eabb68291120e58b88419c38f1342ca3_7f88e67b_400.webp");
}
.sidebar .painted-room-nav a[data-guestbook]::before {
  background-image: url("/pompompurin/tumblr_fd7bd9944f82be9409174ea80087c80a_765788c4_400.webp");
}

/* Readable sticker menu shifted right by 20px, with no decoration. */
.sidebar .painted-room-nav,
.sidebar .painted-room-nav:has([data-guestbook]) {
  width: 198px;
  max-width: calc(100% - 20px);
  margin: 31px auto 0;
  gap: 4px;
  transform: translateX(20px);
}
.sidebar .painted-room-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 54px;
  gap: 10px;
  padding: 3px 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #754832;
  font-size: 15.5px;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
}
.sidebar .painted-room-nav a:hover,
.sidebar .painted-room-nav a[aria-current] {
  color: #754832;
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.sidebar .painted-room-nav a[aria-current] { font-weight: normal; }
.sidebar .painted-room-nav a::before {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  background-size: contain;
}

/* Pompompurin navigation: a tiny lean on hover and press on click.
   Preserve the original text-only menu and its 20px right offset. */
.sidebar .painted-room-nav a{
 transform-origin:left center;
 transition:transform .18s cubic-bezier(.2,.8,.2,1),color .18s ease,text-shadow .18s ease
}
.sidebar .painted-room-nav a::before{
 transform-origin:center;
 transition:transform .21s cubic-bezier(.2,.8,.2,1)
}
.sidebar .painted-room-nav a:is(:hover,:focus-visible){
 transform:translate(4px,-1px);color:#8c543a;text-shadow:0 1px 0 #fffaf2
}
.sidebar .painted-room-nav a:is(:hover,:focus-visible)::before{transform:rotate(-7deg) scale(1.07)}
.sidebar .painted-room-nav a:active{transform:translate(2px,1px) scale(.985);color:#a06a50;text-shadow:none}
.sidebar .painted-room-nav a:active::before{transform:rotate(4deg) scale(.95)}
.neighbors-sidebar-preview{transition:transform .18s ease}
.neighbors-sidebar-preview:is(:hover,:focus-visible){transform:translateY(-1px)}
.neighbors-sidebar-preview:active{transform:translateY(1px) scale(.97)}
.neighbors-room .neighbor-button:active{transform:translateY(1px) scale(.97);filter:drop-shadow(0 1px 1px #6c6b3333)}
@media(prefers-reduced-motion:reduce){
 .sidebar .painted-room-nav a,.sidebar .painted-room-nav a::before,.neighbors-sidebar-preview{transition:none}
 .sidebar .painted-room-nav a:is(:hover,:focus-visible,:active),
 .sidebar .painted-room-nav a:is(:hover,:focus-visible,:active)::before,
 .neighbors-sidebar-preview:is(:hover,:focus-visible,:active),.neighbors-room .neighbor-button:active{transform:none}
}


/* One cream-peach paper palette connects this room to the blog sidebar. */
.neighbors-room{background-blend-mode:multiply}


/* Soft, compact pagination centered beneath the 88x31 button grid. */
.neighbors-playground .neighbor-slot[hidden] { display: none !important; }
.neighbors-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin: 7px auto 0;
  text-align: center;
}
.neighbors-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  border: 1px solid #d7b67d;
  border-radius: 8px;
  background: #fff7dc;
  box-shadow: 0 2px 0 #e4d0a7;
  color: #826139;
  font: 11px/1 Basiic,RainyHearts,"Courier New",sans-serif;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.neighbors-page-button:hover:not(:disabled),
.neighbors-page-button:focus-visible {
  background: #ffebbc;
  border-color: #be985c;
  transform: translateY(-1px);
}
.neighbors-page-button[aria-current="page"] {
  background: #f4ce75;
  border-color: #c9a462;
  color: #715331;
  box-shadow: 0 2px 0 #d3b47a;
}
.neighbors-page-button:focus-visible { outline: 2px solid #a9844b; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .neighbors-page-button { transition: none; }
  .neighbors-page-button:hover, .neighbors-page-button:focus-visible { transform: none; }
}

/* Match GIF Collection's previous/next pagination behavior. */
.neighbors-page-button:disabled {opacity:.45;cursor:default;transform:none;}


/* Symbols & Kaomoji sits below GIF Collection with its own caramel icon. */
.sidebar .painted-room-nav a[data-symbols-kaomoji]::before {
  content: "";
  display: block;
  background: url("/pompompurin/tumblr_a24dbd80751e676c7ae45a607aae9a0f_dbc30225_400.webp") center / contain no-repeat;
  image-rendering: pixelated;
}
.sidebar .painted-room-nav:has([data-symbols-kaomoji]) {
  gap: 2px;
  margin-top: 25px;
}
.sidebar .painted-room-nav:has([data-symbols-kaomoji]) a {
  min-height: 49px;
}


/* Original Pompompurin pixel-art menu stickers beside the blog's colored text links. */
#blog-layout .sidebar .painted-room-nav {
  width: 198px;
  max-width: calc(100% - 20px);
  margin: 25px auto 0;
  gap: 2px;
  transform: translateX(20px);
}
#blog-layout .sidebar .painted-room-nav a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 49px;
  min-height: 49px;
  gap: 10px;
  padding: 3px 5px;
  border: 0;
  background-image: none;
  background-color: transparent;
  color: var(--room-ink, var(--ink-cocoa, #754832));
  font-size: 15.5px;
  line-height: 1.25;
  text-decoration: none;
  white-space: normal;
}
#blog-layout .sidebar .painted-room-nav a::before {
  content: "" !important;
  display: block !important;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: -2px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  image-rendering: pixelated;
}
#blog-layout .sidebar .painted-room-nav a:is(:hover,:focus-visible) {
  transform: translate(4px,-1px);
  text-decoration: underline;
  text-underline-offset: 4px;
}
#blog-layout .sidebar .painted-room-nav a[data-room="melody"]::before {
  background-image: url("/pompompurin/tumblr_671961833139ffd3f8b9342c43aed0ae_7024d4b8_1280.webp");
}
#blog-layout .sidebar .painted-room-nav a[data-gif-gallery]::before {
  background-image: url("/pompompurin/tumblr_532b980c9fecf2f40649226d357b3fc0_f16cd22a_500.webp");
}
#blog-layout .sidebar .painted-room-nav a[data-symbols-kaomoji]::before {
  background-image: url("/pompompurin/tumblr_a24dbd80751e676c7ae45a607aae9a0f_dbc30225_400.webp");
}
#blog-layout .sidebar .painted-room-nav a[data-room="chatroom"]::before {
  background-image: url("/pompompurin/tumblr_d9651878238e83290f590e87c5a77f09_7434b52f_540.webp");
}
#blog-layout .sidebar .painted-room-nav a[data-neighbors]::before {
  background-image: url("/pompompurin/tumblr_478dbe4e227f49efca164d733541ec54_a335a102_400.webp");
}
#blog-layout .sidebar .painted-room-nav a[data-story]::before {
  background-image: url("/pompompurin/tumblr_eabb68291120e58b88419c38f1342ca3_7f88e67b_400.webp");
}
#blog-layout .sidebar .painted-room-nav a[data-guestbook]::before {
  background-image: url("/pompompurin/tumblr_fd7bd9944f82be9409174ea80087c80a_765788c4_400.webp");
}
#blog-layout .sidebar .painted-room-nav a[data-widget-guide]::before {
  background-image: url("/assets/blog/ui/pompompurin-guide.png");
}
