/* Memory Pixel Club v2
   Neon 90s / Y2K / anime / old-web layout
*/

:root {
  --dark: #050019;
  --deep: #11003b;
  --panel: #f8eaff;
  --panel2: #e7fbff;
  --ink: #21005d;
  --pink: #ff2bd6;
  --hotpink: #ff008c;
  --blue: #00f0ff;
  --cyan: #8dfcff;
  --purple: #7427ff;
  --lavender: #c8a9ff;
  --cream: #fff8ce;
  --shadow: #1d0058;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-color: var(--pink) var(--dark);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 14px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 43, 214, .35), transparent 18%),
    linear-gradient(180deg, rgba(0, 240, 255, .18), rgba(255, 0, 140, .25) 40%, rgba(5, 0, 25, .95)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 5px),
    linear-gradient(90deg, #08002c, #210052 50%, #07001d);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 240, 255, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 43, 214, .28) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(500px) rotateX(55deg) scale(1.5);
  transform-origin: bottom;
  opacity: .22;
  top: 35%;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 25%, rgba(0, 240, 255, .18), transparent 14%),
    radial-gradient(circle at 90% 20%, rgba(255, 43, 214, .22), transparent 15%);
  mix-blend-mode: screen;
}

a {
  color: #3a00bd;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px dotted var(--hotpink);
}

a:hover {
  color: var(--hotpink);
  text-shadow: 0 0 6px var(--blue);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 54px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 6px 12px;
  background: rgba(5, 0, 25, .92);
  border-top: 4px solid var(--blue);
  border-bottom: 4px solid var(--pink);
  box-shadow: 0 0 18px var(--pink), 0 0 22px var(--blue);
}

.logo-wrap img {
  display: block;
  image-rendering: pixelated;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topnav a {
  border: 2px solid #2b0a75;
  border-radius: 4px;
  padding: 6px 10px;
  background: linear-gradient(#26105f, #07001d);
  color: white;
  text-transform: lowercase;
  box-shadow: inset 0 0 8px rgba(0,240,255,.35);
}

.music-player {
  position: fixed;
  left: 8px;
  bottom: 8px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 230px;
  padding: 6px 9px;
  color: white;
  font-size: 11px;
  background: rgba(5, 0, 25, .9);
  border: 2px solid var(--blue);
  border-radius: 12px;
  box-shadow: 0 0 12px var(--pink);
}

.round-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--dark);
  background: var(--cyan);
  border-radius: 50%;
}

.site-frame {
  position: relative;
  z-index: 1;
  width: min(1420px, calc(100% - 22px));
  margin: 24px auto 10px;
  display: grid;
  grid-template-columns: 300px minmax(360px, 1fr) 300px;
  gap: 14px;
}

.left-column,
.center-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.box {
  border: 3px solid var(--blue);
  border-radius: 12px;
  background: rgba(8, 0, 36, .9);
  box-shadow:
    0 0 0 3px var(--hotpink),
    0 0 18px rgba(0, 240, 255, .55),
    0 0 28px rgba(255, 43, 214, .5);
  overflow: hidden;
}

.box h2 {
  margin: 0;
  padding: 7px 10px 8px;
  color: white;
  text-align: center;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: lowercase;
  background: linear-gradient(90deg, #170052, #2b006c 50%, #170052);
  text-shadow:
    2px 2px 0 var(--purple),
    -2px 0 0 var(--blue),
    0 0 8px var(--pink);
}

.inner {
  margin: 8px;
  padding: 14px;
  border: 2px solid var(--blue);
  border-radius: 9px;
  background:
    radial-gradient(circle at top right, rgba(255,43,214,.18), transparent 32%),
    linear-gradient(180deg, var(--panel), var(--panel2));
}

.character-card {
  position: relative;
  min-height: 135px;
}

.speech-bubble {
  position: absolute;
  right: 0;
  top: 20px;
  width: 190px;
  padding: 9px;
  color: #37106f;
  font-size: 11px;
  background: #fff0ff;
  border: 2px solid var(--pink);
  border-radius: 12px;
  box-shadow: 0 0 12px var(--blue);
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 25px;
  bottom: -12px;
  border-width: 12px 10px 0 0;
  border-style: solid;
  border-color: var(--pink) transparent transparent transparent;
}

.mascot {
  position: absolute;
  left: 15px;
  top: 8px;
  width: 120px;
  height: 120px;
  filter: drop-shadow(3px 3px 0 var(--pink)) drop-shadow(-3px -2px 0 var(--blue));
}

.mascot-head {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  font-size: 44px;
  color: var(--cream);
  background: linear-gradient(135deg, var(--blue), var(--pink));
  border: 4px solid #080025;
  border-radius: 45% 55% 50% 50%;
}

.mascot-body {
  width: 85px;
  margin: -8px 0 0 18px;
  padding: 7px;
  color: white;
  text-align: center;
  font-weight: bold;
  background: #16004d;
  border: 3px solid var(--blue);
  border-radius: 16px;
}

.mood {
  margin-top: 0;
  text-align: center;
  font-size: 12px;
}

.mood span {
  color: var(--hotpink);
  font-weight: bold;
}

.flag-row,
.stamp-row,
.social-row,
.button-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.flag-row span,
.stamp-row span {
  display: inline-block;
  padding: 5px 8px;
  color: white;
  font-size: 10px;
  font-weight: bold;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  border: 2px solid white;
  border-radius: 4px;
  box-shadow: 2px 2px 0 var(--purple);
}

.tagline {
  padding: 6px;
  text-align: center;
  color: #2c008c;
  font-weight: bold;
  border-top: 2px solid rgba(255,43,214,.3);
  border-bottom: 2px solid rgba(0,240,255,.35);
}

.button-grid a,
.social-row a,
.return-button,
.support-button,
.link-list a {
  display: inline-block;
  padding: 7px 12px;
  margin: 3px;
  color: white;
  text-transform: lowercase;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: linear-gradient(#ff2bd6, #3c00bf);
  box-shadow: 0 3px 0 #080025, 0 0 8px rgba(255,43,214,.65);
}

.button-grid a:hover,
.social-row a:hover,
.return-button:hover,
.support-button:hover,
.link-list a:hover {
  transform: translateY(1px);
  color: var(--cream);
}

.fake-gif {
  position: relative;
  min-height: 78px;
  margin: 14px auto;
  display: grid;
  place-items: center;
  color: white;
  text-align: center;
  font-weight: bold;
  background:
    radial-gradient(circle at 20% 40%, rgba(255,255,255,.25), transparent 10%),
    linear-gradient(135deg, #000a42, #ff2bd6 50%, #00f0ff);
  border: 3px solid var(--pink);
  overflow: hidden;
}

.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.12) 0 1px, transparent 1px 4px);
}

.support-button {
  display: block;
  text-align: center;
  margin: 10px auto;
}

.chatbox {
  max-height: 150px;
  overflow: auto;
  background: #ffa8f0;
}

.chatbox p {
  margin: 7px 0;
  padding: 6px;
  background: #f4fdff;
  border: 2px solid var(--blue);
  border-radius: 8px;
}

.notice-art {
  border: 4px solid #19004c;
  border-radius: 10px;
  overflow: hidden;
  background: #100033;
}

.pixel-room {
  min-height: 210px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  font-size: 48px;
  background:
    linear-gradient(90deg, rgba(255,43,214,.25) 1px, transparent 1px),
    linear-gradient(rgba(0,240,255,.22) 1px, transparent 1px),
    linear-gradient(135deg, #42216e, #ff9ee8 55%, #94f6ff);
  background-size: 42px 42px, 42px 42px, auto;
}

.notice-art p {
  margin: 0;
  padding: 9px 12px;
  color: white;
  background: rgba(5,0,25,.92);
}

.about-box {
  text-align: center;
}

.about-box p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.update-log {
  max-height: 320px;
  overflow: auto;
  border-style: dashed;
  text-align: left;
}

.construction {
  text-align: center;
}

.mini-mascot {
  width: 90px;
  height: 90px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  font-size: 48px;
  color: var(--cream);
  background: linear-gradient(135deg, var(--pink), var(--blue));
  border: 4px solid #16004d;
  border-radius: 24px;
  transform: rotate(-8deg);
  filter: drop-shadow(4px 4px 0 var(--purple));
}

.site-button {
  display: block;
  margin: 0 auto 10px;
  image-rendering: pixelated;
  border: 2px solid var(--pink);
}

textarea {
  width: 100%;
  min-height: 72px;
  padding: 8px;
  color: #220061;
  background: #fff6ff;
  border: 2px solid var(--blue);
  border-radius: 6px;
  resize: vertical;
}

.pixel-feed p {
  padding: 8px;
  background: rgba(255,43,214,.12);
  border-left: 4px solid var(--pink);
}

.link-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.link-list a {
  text-align: center;
}

.bottom-marquee {
  position: relative;
  z-index: 1;
  width: min(1420px, calc(100% - 22px));
  margin: 0 auto;
  padding: 5px;
  color: var(--cream);
  background: rgba(5,0,25,.85);
  border: 2px solid var(--pink);
  box-shadow: 0 0 12px var(--blue);
}

footer {
  position: relative;
  z-index: 1;
  width: min(1420px, calc(100% - 22px));
  margin: 10px auto 28px;
  padding: 12px;
  color: white;
  text-align: center;
  background: rgba(5,0,25,.86);
  border: 2px solid var(--blue);
  border-radius: 8px;
}

.not-found-wrap {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 28px));
  margin: 60px auto;
}

.error-box .inner {
  text-align: center;
}

.big-error {
  color: var(--hotpink);
  font-size: 1.4rem;
  font-weight: bold;
}

@media (max-width: 1050px) {
  .site-frame {
    grid-template-columns: 260px 1fr;
  }

  .right-column {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    flex-direction: column;
  }

  .site-frame,
  .right-column {
    grid-template-columns: 1fr;
  }

  .music-player {
    display: none;
  }

  .character-card {
    min-height: 150px;
  }
}


/* Extra full-page styles for v3 */

.page-layout {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 24px));
  margin: 24px auto 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-hero .inner {
  text-align: center;
}

.page-subtitle {
  max-width: 760px;
  margin: 0 auto;
  color: #2b006d;
  font-size: 1.05rem;
  font-weight: bold;
}

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

.pixel-bullets {
  margin: 0;
  padding-left: 1.2rem;
}

.pixel-bullets li {
  margin-bottom: 9px;
  padding-left: 4px;
}

.pixel-bullets li::marker {
  color: var(--hotpink);
}

.big-links a {
  font-size: 1rem;
  margin: 5px 0;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-card {
  padding: 12px;
  background: rgba(255, 43, 214, .12);
  border: 2px solid var(--pink);
  border-radius: 10px;
  box-shadow: 4px 4px 0 rgba(0, 240, 255, .35);
}

.mini-card h3 {
  margin: 0 0 8px;
  color: #35008d;
}

.project-list p {
  padding: 10px;
  background: rgba(0, 240, 255, .12);
  border-left: 5px solid var(--blue);
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 2px solid var(--blue);
}

.status-table th,
.status-table td {
  padding: 9px;
  border: 2px solid rgba(116, 39, 255, .35);
}

.status-table th {
  color: white;
  background: linear-gradient(90deg, var(--purple), var(--hotpink));
}

.status-table td {
  background: rgba(255, 255, 255, .55);
}

.journal-entry .date {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 9px;
  color: white;
  background: var(--hotpink);
  border-radius: 999px;
  box-shadow: 0 0 8px var(--blue);
}

.journal-entry h3 {
  margin-top: 0;
  color: #35008d;
  font-size: 1.5rem;
}

.tall-log {
  max-height: 420px;
}

.button-wall-page {
  text-align: center;
}

.button-wall-page img {
  image-rendering: pixelated;
  border: 2px solid var(--pink);
  box-shadow: 0 0 12px var(--blue);
}

.button-wall-page textarea {
  margin-top: 10px;
  max-width: 560px;
}

@media (max-width: 760px) {
  .page-grid,
  .card-row {
    grid-template-columns: 1fr;
  }
}


/* Guestbook + Visit Counter additions */

.counter-box {
  text-align: center;
}

.counter-label {
  margin: 0 0 6px;
  color: #310080;
  font-weight: bold;
  text-transform: lowercase;
}

.counter-number {
  display: inline-block;
  padding: 8px 14px;
  color: var(--cream);
  font-family: "Courier New", monospace;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 3px;
  background: #07001d;
  border: 3px solid var(--pink);
  box-shadow:
    inset 0 0 10px rgba(0, 240, 255, .45),
    0 0 12px var(--pink);
}

.counter-note,
.small-note {
  color: #5c3a91;
  font-size: .78rem;
  font-style: italic;
}

.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guestbook-form label {
  color: #33008a;
  font-weight: bold;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  padding: 9px;
  color: #220061;
  background: #fff6ff;
  border: 2px solid var(--blue);
  border-radius: 8px;
  box-shadow: inset 0 0 8px rgba(255, 43, 214, .15);
}

.guestbook-form textarea {
  min-height: 120px;
}

.guestbook-form button {
  align-self: center;
  margin-top: 8px;
  padding: 9px 16px;
  color: white;
  font-weight: bold;
  text-transform: lowercase;
  background: linear-gradient(#ff2bd6, #3c00bf);
  border: 2px solid var(--blue);
  border-radius: 999px;
  box-shadow: 0 3px 0 #080025, 0 0 8px rgba(255,43,214,.65);
  cursor: pointer;
}

.guestbook-form button:hover {
  transform: translateY(1px);
  color: var(--cream);
}

.guestbook-entries {
  display: grid;
  gap: 10px;
}

.guest-entry {
  padding: 10px;
  background: rgba(255, 43, 214, .12);
  border: 2px solid rgba(0, 240, 255, .8);
  border-radius: 10px;
  box-shadow: 4px 4px 0 rgba(116, 39, 255, .28);
}

.guest-entry p {
  margin: 6px 0;
}

.guest-meta {
  color: #35008d;
  border-bottom: 1px dotted var(--pink);
}


/* Real music player additions */

.real-player {
  width: 250px;
}

.music-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: var(--dark);
  font-weight: bold;
  background: var(--cyan);
  border: 2px solid var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blue);
  cursor: pointer;
}

.music-toggle:hover {
  color: white;
  background: var(--hotpink);
}

.music-info {
  min-width: 0;
}

#track-title {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}


/* Real Chattable chatbox additions */

.chatbox-live {
  padding: 8px;
}

.chatbox-live iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 3px solid var(--pink);
  border-radius: 10px;
  background: #fff6ff;
  box-shadow:
    inset 0 0 12px rgba(0, 240, 255, .25),
    0 0 12px rgba(255, 43, 214, .55);
}

.left-column .chatbox-live iframe {
  height: 340px;
}


/* Atabook guestbook additions */

.guestbook-live iframe {
  display: block;
  width: 100%;
  height: 720px;
  margin: 12px 0;
  border: 3px solid var(--blue);
  border-radius: 10px;
  background: #fff6ff;
  box-shadow:
    inset 0 0 12px rgba(0, 240, 255, .25),
    0 0 12px rgba(255, 43, 214, .55);
}

.guestbook-mini {
  text-align: center;
}

.guestbook-mini .return-button {
  margin-top: 6px;
}


/* Notice board slider additions */

.notice-slider {
  padding: 12px;
}

.notice-window {
  position: relative;
  min-height: 260px;
  border: 3px solid var(--blue);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 246, 255, .92), rgba(231, 251, 255, .92));
  overflow: hidden;
}

.notice-slide {
  display: none;
  padding: 14px;
}

.notice-slide.active {
  display: block;
}

.slide-art {
  min-height: 220px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  font-size: 48px;
  border: 4px solid #19004c;
  border-radius: 10px 10px 0 0;
  background-size: 42px 42px, 42px 42px, auto;
  background-position: center;
}

.site-launch-art {
  background:
    linear-gradient(90deg, rgba(255,43,214,.25) 1px, transparent 1px),
    linear-gradient(rgba(0,240,255,.22) 1px, transparent 1px),
    linear-gradient(135deg, #42216e, #ff9ee8 55%, #94f6ff);
}

.pixel-journeys-art {
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 43, 214, .35), transparent 22%),
    linear-gradient(90deg, rgba(0,240,255,.22) 1px, transparent 1px),
    linear-gradient(rgba(255,43,214,.18) 1px, transparent 1px),
    linear-gradient(135deg, #07001d, #25135e 50%, #00d4ff);
}

.tiny-tech-art {
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 43, 214, .35), transparent 18%),
    linear-gradient(90deg, rgba(255,43,214,.20) 1px, transparent 1px),
    linear-gradient(rgba(0,240,255,.20) 1px, transparent 1px),
    linear-gradient(135deg, #13002e, #a65cff 50%, #8dfcff);
}

.kisuucon-art {
  background:
    radial-gradient(circle at 45% 15%, rgba(255, 248, 206, .5), transparent 16%),
    linear-gradient(90deg, rgba(0,240,255,.18) 1px, transparent 1px),
    linear-gradient(rgba(255,43,214,.20) 1px, transparent 1px),
    linear-gradient(135deg, #250052, #ff2bd6 52%, #00f0ff);
}

.slide-caption {
  margin: 0;
  padding: 10px 12px;
  color: white;
  background: rgba(5,0,25,.92);
  border: 4px solid #19004c;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  text-align: left;
}

.notice-controls {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.notice-arrow,
.notice-thumb {
  color: white;
  font-weight: bold;
  text-transform: lowercase;
  background: linear-gradient(#ff2bd6, #3c00bf);
  border: 2px solid var(--blue);
  box-shadow: 0 3px 0 #080025, 0 0 8px rgba(255,43,214,.65);
  cursor: pointer;
}

.notice-arrow {
  width: 42px;
  height: 38px;
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
}

.notice-thumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.notice-thumb {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.notice-thumb.active {
  color: #050019;
  background: linear-gradient(#8dfcff, #ff9be8);
  border-color: white;
}

.notice-arrow:hover,
.notice-thumb:hover {
  transform: translateY(1px);
}

@media (max-width: 760px) {
  .notice-window {
    min-height: 220px;
  }

  .slide-art {
    min-height: 170px;
    font-size: 34px;
  }

  .notice-controls {
    grid-template-columns: 1fr;
  }

  .notice-arrow {
    margin: 0 auto;
  }
}

/* Notice slider CSS is also included inline in index.html for cache safety. */


/* Latest journals and index reorg additions */

.latest-journals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  text-align: left;
}

.latest-journal-card {
  padding: 10px;
  background: rgba(255, 43, 214, .12);
  border: 2px solid rgba(0, 240, 255, .8);
  border-radius: 10px;
  box-shadow: 4px 4px 0 rgba(116, 39, 255, .25);
}

.latest-journal-card .date {
  display: inline-block;
  margin: 0 0 6px;
  padding: 3px 7px;
  color: white;
  background: var(--hotpink);
  border-radius: 999px;
  font-size: .75rem;
}

.latest-journal-card h3 {
  margin: 0 0 6px;
  color: #35008d;
  font-size: 1rem;
}

.latest-journal-card p {
  margin: 6px 0;
}

.latest-artwork {
  text-align: center;
}

.art-preview {
  width: 180px;
  height: 130px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  font-size: 48px;
  background:
    linear-gradient(90deg, rgba(255,43,214,.18) 1px, transparent 1px),
    linear-gradient(rgba(0,240,255,.18) 1px, transparent 1px),
    linear-gradient(135deg, #120035, #ff9be8 52%, #8dfcff);
  background-size: 24px 24px, 24px 24px, auto;
  border: 3px solid var(--pink);
  border-radius: 10px;
  box-shadow: 4px 4px 0 rgba(0, 240, 255, .32);
}

@media (max-width: 760px) {
  .latest-journals {
    grid-template-columns: 1fr;
  }
}
