/* ==========================================================================
   KARABO & KAZUMI'S HOMEPAGE · Y2K FAIRY REBRAND
   ========================================================================== */

:root {
  /* Fairy Kazumi palette: pearl → blue → indigo → emerald → pink/red → gold */
  --c-navy: #18233c;
  --c-navy-light: #2c3e66;
  --c-strawberry: #e63946;
  --c-strawberry-dark: #b91c1c;
  --c-sakura: #f7b6c2;
  --c-sakura-light: #eef6fc;
  --c-sakura-dark: #6f9fd0;
  --c-emerald: #059669;
  --c-cream: #fff7ee;
  --c-border: #8bb7e3;
  --c-gold: #d4af6a;
  --c-fairy-blue: #8bb7e3;
  --c-sky: #d6e8f6;
  --c-pearl: #fbfbfd;
  
  /* Fonts */
  --font-body: "MS PGothic", "ＭＳ Ｐゴシック", Osaka, Arial, sans-serif;
  --font-retro: "DotGothic16", "VT323", "Courier New", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--c-emerald);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  #sparkle-canvas {
    display: none;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--c-navy);
  line-height: 1.45;
  background-color: var(--c-sky);
  /* Small, obvious tile: early-web texture without sacrificing legibility */
  background-image:
    radial-gradient(circle at 8px 8px, rgba(251, 251, 253, 0.95) 1px, transparent 1.5px),
    linear-gradient(45deg, rgba(251, 251, 253, 0.5) 25%, transparent 25%, transparent 75%, rgba(251, 251, 253, 0.5) 75%);
  background-size: 16px 16px, 24px 24px;
  overflow-x: hidden;
}

a {
  color: #0000ee;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

a:hover {
  color: var(--c-strawberry);
}

/* Canvas Sparkles */
#sparkle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

/* ==========================================================================
   TOP HEISEI TICKER
   ========================================================================== */
.heisei-ticker {
  background: var(--c-navy);
  color: #fff;
  font-family: var(--font-retro);
  font-size: 13px;
  border-bottom: 2px solid var(--c-strawberry);
  padding: 3px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-block;
  animation: ticker-run 25s linear infinite;
}

.ticker-inner span {
  margin-right: 28px;
  color: var(--c-gold);
}

@keyframes ticker-run {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   CENTERED 2001 HOMEPAGE CONTAINER (780px - 820px)
   ========================================================================== */
.homepage-container {
  width: 100%;
  max-width: 820px;
  margin: 8px auto 24px;
  background: var(--c-pearl);
  border: 3px double var(--c-navy);
  box-shadow: 3px 3px 0 var(--c-navy);
  border-radius: 0;
}

/* ==========================================================================
   HEADER BANNER
   ========================================================================== */
.header-banner {
  background: linear-gradient(180deg, var(--c-pearl) 0%, var(--c-sky) 100%);
  border-bottom: 2px solid var(--c-navy);
  padding: 12px 14px 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-title-block {
  flex: 1;
}

.header-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-strawberry);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.header-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: var(--c-navy);
  text-shadow: 2px 2px 0px #fff, 3px 3px 0px var(--c-sakura);
  letter-spacing: 0.5px;
  margin: 2px 0 6px 0;
}

.header-tagline {
  font-size: 13px;
  color: #4a5568;
}

.header-tagline em {
  font-style: normal;
  color: var(--c-strawberry);
  font-weight: 700;
  background: #e8f2fa;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px dashed var(--c-strawberry);
}

.header-kazumi-wrap {
  position: relative;
  flex-shrink: 0;
}

.header-kazumi-img {
  width: 105px;
  height: 112px;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(2px 3px 0px rgba(24, 35, 60, 0.25));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  user-select: none;
}

.header-kazumi-img:hover {
  transform: scale(1.08) rotate(3deg);
}

.kazumi-speech-bubble {
  position: absolute;
  top: -12px;
  right: -10px;
  background: #fff;
  color: var(--c-strawberry);
  border: 2px solid var(--c-navy);
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 2px 2px 0px var(--c-navy);
  animation: bubble-float 2.5s ease-in-out infinite alternate;
}

@keyframes bubble-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.banner-bottom-ribbon {
  background: var(--c-navy);
  color: #fff;
  font-family: var(--font-retro);
  font-size: 12px;
  padding: 4px 10px;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--c-sakura);
}

.banner-bottom-ribbon span {
  color: var(--c-gold);
}

.retro-sound-btn {
  background: var(--c-strawberry);
  color: #fff;
  border: 1px solid #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.1s;
}

.retro-sound-btn:hover {
  background: var(--c-fairy-blue);
}

/* ==========================================================================
   2-COLUMN HOMEPAGE LAYOUT (Table / Grid 2001 Style)
   ========================================================================== */
.main-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 8px;
  padding: 8px;
}

@media (max-width: 720px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SIDEBAR & RETRO BOXES
   ========================================================================== */
.sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.retro-box {
  background: #fff;
  border: 2px outset var(--c-sky);
  box-shadow: 2px 2px 0 var(--c-navy);
  border-radius: 0;
}

.retro-box-header {
  background: linear-gradient(90deg, var(--c-navy), var(--c-navy-light));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 6px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--c-strawberry);
}

.box-star { color: var(--c-gold); }
.box-heart { color: var(--c-sakura); }

.retro-box-body {
  padding: 8px;
}

.profile-center {
  text-align: center;
}

.sidebar-avatar-frame {
  display: inline-block;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
}

.sidebar-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--c-navy);
  object-fit: cover;
  background: var(--c-sky);
  box-shadow: 3px 3px 0px var(--c-fairy-blue);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-avatar-frame:hover .sidebar-avatar {
  transform: scale(1.05) rotate(2deg);
}

.webmaster-title {
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--c-sakura);
  padding-bottom: 6px;
}

.wm-label {
  display: block;
  font-size: 11px;
  color: var(--c-strawberry);
  font-weight: 700;
}

.wm-name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--c-navy);
}

.wm-handle {
  display: block;
  font-size: 11px;
  color: #64748b;
}

.profile-bullets {
  text-align: left;
  font-size: 11.5px;
  color: #334155;
  margin-bottom: 10px;
  line-height: 1.5;
}

.profile-bullets p {
  margin-bottom: 3px;
}

.profile-bullets code {
  background: #e8f2fa;
  color: var(--c-strawberry);
  padding: 0 3px;
  border-radius: 2px;
  font-size: 10.5px;
}

.mood-box {
  background: #eef6fc;
  border: 1px dashed var(--c-strawberry);
  padding: 5px 6px;
  border-radius: 4px;
  font-size: 11px;
  margin-bottom: 10px;
  text-align: left;
}

.mood-title {
  font-weight: 700;
  color: var(--c-strawberry);
  margin-right: 4px;
}

.mood-val {
  font-weight: 700;
  color: var(--c-navy);
}

.poke-button {
  width: 100%;
  background: linear-gradient(180deg, var(--c-fairy-blue), #6f9fd0);
  color: #fff;
  border: 2px outset #fff;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--c-navy);
  transition: all 0.1s;
}

.poke-button:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--c-navy);
}

/* Sidebar Menu */
.sidebar-menu-list {
  list-style: none;
}

.sidebar-menu-list li {
  border-bottom: 1px dashed #bfd8ec;
}

.sidebar-menu-list li:last-child {
  border-bottom: none;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  text-decoration: none;
  font-size: 12px;
  color: var(--c-navy);
  transition: background 0.1s;
}

.menu-link:hover {
  background: #eef6fc;
  color: var(--c-strawberry);
}

.menu-link.active {
  background: var(--c-navy);
  color: #fff;
}

.menu-link.active .m-deco {
  color: var(--c-gold);
}

.menu-link.cv-link {
  background: #fff9db;
  color: #d97706;
}

.menu-link.cv-link:hover {
  background: #fef08a;
}

.badge-new {
  display: inline-block;
  background: var(--c-strawberry);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 0;
  margin-left: auto;
  animation: blink-badge 1s steps(2, start) infinite;
}

@keyframes blink-badge {
  to { visibility: hidden; }
}

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


.update-log {
  height: 62px;
  overflow-y: scroll;
  padding: 3px 4px;
  border: 1px inset var(--c-sky);
  background: #fff;
  font-size: 10px;
}

.update-log p {
  padding: 2px 0;
  border-bottom: 1px dotted var(--c-border);
}

.update-log time {
  color: var(--c-emerald);
  font-family: var(--font-retro);
  font-weight: 700;
}


.site-info-list {
  font-size: 10px;
}

.site-info-list div {
  display: grid;
  grid-template-columns: 58px 1fr;
  border-bottom: 1px dotted var(--c-border);
}

.site-info-list dt {
  color: var(--c-strawberry);
  font-family: var(--font-retro);
  font-weight: 700;
}

.site-info-list dd {
  margin: 0;
}

.art-policy {
  margin-top: 6px;
  padding: 4px;
  border: 1px dashed var(--c-strawberry);
  background: var(--c-sakura-light);
  font-size: 9px;
  line-height: 1.35;
  text-align: center;
}

/* 88x31 Badges */
.badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.badges-grid > * {
  width: 88px;
  height: 31px;
  justify-self: center;
}

.badges-grid img {
  display: block;
  image-rendering: pixelated;
}

.badge-8831 {
  font-family: var(--font-retro);
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
  padding: 3px 1px;
  border: 2px outset #eee;
  border-radius: 0;
  user-select: none;
}

.badge-rust { background: #ce422b; color: #fff; }
.badge-nolinkedin { background: var(--c-navy); color: var(--c-sakura); }
.badge-kazumi { background: var(--c-fairy-blue); color: var(--c-navy); }
.badge-jit { background: #6b46c1; color: var(--c-gold); }
.badge-ie { background: #3b82f6; color: #fff; }
.badge-utf { background: #059669; color: #fff; }

/* ==========================================================================
   CONTENT COLUMN (RIGHT SIDE)
   ========================================================================== */
.content-col {
  min-width: 0;
}

.page-pane {
  min-height: 480px;
}

html.js .page-pane {
  display: none;
  animation: pane-fade 0.2s ease-out forwards;
}

html.js .page-pane.active {
  display: block;
}

@keyframes pane-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.project-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0;
  padding: 7px;
  background: #eef6fc;
  border: 1px dashed var(--c-sakura-dark);
}

.filter-label {
  color: var(--c-strawberry);
  font-size: 11px;
  font-weight: 800;
  margin-right: 3px;
}

.project-filter {
  background: #fff;
  color: var(--c-navy);
  border: 1px solid var(--c-navy);
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
}

.project-filter:hover,
.project-filter.active {
  background: var(--c-strawberry);
  color: #fff;
}

.project-entry[hidden] {
  display: none;
}

/* Shrine Box */
.shrine-box {
  background: #fff;
  border: 2px solid var(--c-navy);
  box-shadow: 3px 3px 0px var(--c-navy);
  border-radius: 2px;
  margin-bottom: 14px;
}

.shrine-header {
  background: linear-gradient(90deg, #ff9ebb, #ff6b8b);
  color: #fff;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--c-navy);
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.25);
}

.shrine-header h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.shrine-badge,
.shrine-date {
  background: var(--c-navy);
  color: var(--c-gold);
  font-family: var(--font-retro);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
}

.shrine-body {
  padding: 16px;
}

.retro-divider {
  text-align: center;
  color: var(--c-strawberry);
  font-size: 12px;
  letter-spacing: 2px;
  margin: 12px 0;
  user-select: none;
}

.retro-divider-sub {
  text-align: center;
  color: #ff9ebb;
  font-size: 11px;
  letter-spacing: 1px;
  margin: 16px 0;
}

.about-hero-layout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.about-hero-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.6;
}

.about-hero-text p {
  margin-bottom: 8px;
}

.about-hero-kazumi-render {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.kazumi-hero-render {
  width: 150px;
  height: 225px;
  object-fit: contain;
  border-radius: 12px;
  /* Full-body character art stays readable without cropping wings or boots */
  filter: drop-shadow(2px 3px 0px rgba(24, 35, 60, 0.25));
  animation: kazumi-sway 3.5s ease-in-out infinite alternate;
  cursor: pointer;
  transition: transform 0.15s;
}

.kazumi-hero-render:hover {
  transform: scale(1.06) rotate(2deg);
}

@keyframes kazumi-sway {
  0% { transform: translateY(0) rotate(-1deg); }
  100% { transform: translateY(-5px) rotate(1.5deg); }
}

@media (max-width: 580px) {
  .about-hero-layout {
    flex-direction: column-reverse;
  }
  .kazumi-hero-render {
    width: 140px;
    height: 210px;
  }
  .kazumi-shrine-hero {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .shrine-kazumi-art {
    width: 150px;
    height: 225px;
  }
  .kazumi-pet-widget {
    bottom: 6px;
    right: 6px;
  }

  .kazumi-pet-widget .pet-chibi-img {
    width: 72px;
  }
}

.welcome-lead {
  background: #eef6fc;
  border: 2px dashed var(--c-fairy-blue);
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 10px;
  text-align: center;
}

.lead-kaomoji {
  font-size: 16px;
  font-weight: 800;
  color: var(--c-strawberry);
  margin-bottom: 2px;
}

.lead-sub {
  font-size: 12.5px;
  color: #e63946;
  font-weight: 700;
}

.saikin-note {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--c-navy);
  background: #eef6fc;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px dashed var(--c-sakura);
}

.saikin-note strong {
  color: var(--c-strawberry);
}

.retro-alert {
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 12.5px;
  margin: 12px 0;
}

.info-alert {
  background: #fff5f8;
  border-left: 4px solid var(--c-sakura-dark);
}

.info-alert strong {
  color: var(--c-strawberry);
  display: block;
  margin-bottom: 2px;
}

.currently-making-alert {
  background: #fffaf0;
  border-left: 4px solid var(--c-gold);
}

.currently-making-alert strong {
  color: #b45309;
}

.currently-making-list {
  margin: 6px 0 8px 18px;
  font-size: 12px;
}

.currently-thinking {
  font-size: 11.5px;
  margin-top: 6px;
}

.warning-alert {
  background: #fff5f5;
  border-left: 4px solid var(--c-strawberry);
}

.warning-alert strong {
  color: var(--c-strawberry);
  display: block;
  margin-bottom: 2px;
}

.success-alert {
  background: #f0fdf4;
  border-left: 4px solid var(--c-emerald);
}

.success-alert strong {
  color: var(--c-emerald);
  display: block;
  margin-bottom: 2px;
}

.tech-shrine {
  margin: 14px 0;
}

.shrine-title {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--c-navy);
  margin-bottom: 6px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tech-pills span {
  background: #fff;
  border: 1px solid var(--c-navy);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  box-shadow: 1px 1px 0px var(--c-navy);
}

.shrine-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.retro-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(180deg, var(--c-fairy-blue), #6f9fd0);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border: 2px outset #fff;
  border-radius: 3px;
  box-shadow: 2px 2px 0px var(--c-navy);
  cursor: pointer;
  transition: all 0.1s;
}

.retro-btn:hover {
  transform: translateY(-1px);
  box-shadow: 2px 3px 0px var(--c-navy);
}

.retro-btn.secondary {
  background: #fff;
  color: var(--c-navy);
  border: 2px solid var(--c-navy);
}

.retro-btn.secondary:hover {
  background: #eef6fc;
}

.shrine-back-row {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-sakura);
  text-align: right;
}

.shrine-back-row.center-text {
  text-align: center;
}

.shrine-minilog {
  background: #fff9fb;
  border: 1px solid var(--c-sakura);
  padding: 10px 12px;
  border-radius: 3px;
  margin-top: 12px;
}

.minilog-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--c-strawberry);
  margin-bottom: 6px;
}

.minilog-list {
  list-style: none;
  font-size: 12px;
}

.minilog-list li {
  margin-bottom: 4px;
}

.ml-date {
  font-family: var(--font-retro);
  color: #64748b;
  font-weight: 700;
}

/* ==========================================================================
   PROJECT ENTRIES (MINIATURE SHRINES)
   ========================================================================== */
.shrine-intro-text {
  font-size: 13px;
  color: #475569;
}

.project-entry {
  background: #fffafb;
  border: 2px solid var(--c-navy);
  border-radius: 4px;
  padding: 12px 14px;
  box-shadow: 2px 2px 0px var(--c-navy);
}

.project-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--c-sakura);
  padding-bottom: 4px;
}

.project-entry-header h3 {
  font-size: 14.5px;
  color: var(--c-navy);
  font-weight: 800;
}

.entry-tag {
  background: var(--c-navy);
  color: var(--c-sakura);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.entry-tag.live-tag {
  background: var(--c-emerald);
  color: #fff;
}

.project-quote {
  font-size: 12.5px;
  color: var(--c-strawberry);
  margin-bottom: 6px;
}

.project-summary {
  font-size: 13px;
  color: #334155;
  margin-bottom: 8px;
}

.project-artifact {
  margin: 10px 0 12px;
  padding: 8px 10px;
  background: #18233c;
  border: 2px solid var(--c-navy);
  box-shadow: 2px 2px 0 var(--c-sakura);
  color: #d1fae5;
}

.artifact-label {
  display: block;
  color: var(--c-gold);
  font-family: var(--font-retro);
  font-size: 11px;
  margin-bottom: 5px;
}

.project-artifact pre {
  background: transparent;
  box-shadow: none;
  color: #d1fae5;
  font-family: var(--font-retro);
  font-size: 11px;
  line-height: 1.45;
  overflow-x: auto;
  padding: 0;
  white-space: pre-wrap;
}

.project-artifact p {
  color: #fbcfe8;
  font-size: 11px;
  margin-top: 7px;
}

.kazumi-comment-box {
  background: #fff5f8;
  border: 1px dashed var(--c-sakura-dark);
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 10px;
  position: relative;
}

.kazumi-comment-tag {
  display: inline-block;
  background: var(--c-strawberry);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 2px;
  margin-bottom: 3px;
}

.kazumi-comment-box p {
  font-size: 11.5px;
  color: #4a5568;
  font-style: italic;
}

.project-highlight-box {
  background: #fff;
  border: 1px dashed #cbd5e1;
  padding: 8px 12px;
  border-radius: 3px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #475569;
}

.project-highlight-box ul {
  list-style: none;
}

.project-highlight-box li {
  margin-bottom: 3px;
}

.project-highlight-box code {
  background: #e8f2fa;
  color: var(--c-strawberry);
  padding: 0 4px;
  border-radius: 2px;
  font-size: 11px;
}

.project-tech-line {
  font-family: var(--font-retro);
  font-size: 11.5px;
  color: var(--c-strawberry);
  margin-bottom: 10px;
}

.project-button-row {
  display: flex;
  gap: 8px;
}

.p-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid var(--c-navy);
  box-shadow: 1px 1px 0px var(--c-navy);
  transition: all 0.1s;
}

.p-btn.github {
  background: var(--c-navy);
  color: #fff;
}

.p-btn.live {
  background: #2563eb;
  color: #fff;
}

.p-btn:hover {
  transform: translateY(-1px);
}

/* ==========================================================================
   DEV DIARY ENTRIES
   ========================================================================== */
.diary-post {
  background: #fff;
  border: 1px solid var(--c-sakura);
  padding: 10px 12px;
  border-radius: 3px;
}

.diary-post-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
  border-bottom: 1px dashed #bfd8ec;
  padding-bottom: 4px;
}

.dp-date {
  font-family: var(--font-retro);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-strawberry);
}

.dp-mood {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
}

.diary-post-body p {
  font-size: 12.5px;
  color: #334155;
  margin-bottom: 6px;
}

.diary-post-body p:last-child {
  margin-bottom: 0;
}

.diary-post-body code {
  background: #e8f2fa;
  color: var(--c-strawberry);
  padding: 0 4px;
  border-radius: 2px;
}

/* ==========================================================================
   WEBCLAP (Web拍手)
   ========================================================================== */
.webclap-container {
  max-width: 440px;
  margin: 0 auto;
  padding: 10px 0;
}

.clap-stars {
  font-size: 16px;
  margin-bottom: 6px;
}

.webclap-container h3 {
  font-size: 18px;
  color: var(--c-navy);
  font-weight: 800;
  margin-bottom: 4px;
}

.clap-desc {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 14px;
}

.clap-btn-wrapper {
  margin-bottom: 12px;
}

.heisei-clap-btn {
  background: linear-gradient(180deg, var(--c-fairy-blue) 0%, #6f9fd0 100%);
  color: #fff;
  border: 3px outset #fff;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0px #b91c1c, 0 6px 12px rgba(255, 77, 109, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: all 0.1s;
}

.heisei-clap-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0px #b91c1c;
}

.clap-counter-pill {
  background: #fff;
  color: var(--c-strawberry);
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 10px;
  border: 1px solid var(--c-strawberry);
}

.clap-reaction-bubble {
  background: #fff;
  border: 2px solid var(--c-strawberry);
  color: var(--c-strawberry);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 14px;
  box-shadow: 2px 2px 0px var(--c-navy);
  animation: popBounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clap-reaction-bubble.hidden {
  display: none;
}

@keyframes popBounce {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.secret-guestbook {
  background: #eef6fc;
  border: 1px dashed var(--c-strawberry);
  border-radius: 4px;
  padding: 12px;
  text-align: left;
}

.gb-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--c-strawberry);
  margin-bottom: 6px;
}

.gb-input-row {
  display: flex;
  gap: 6px;
}

.gb-input-row input {
  flex: 1;
  border: 1px solid var(--c-navy);
  border-radius: 3px;
  padding: 6px 8px;
  font-family: var(--font-body);
  font-size: 12px;
  outline: none;
}

.note-success-text {
  font-size: 11.5px;
  color: var(--c-emerald);
  font-weight: 700;
  margin-top: 6px;
}

.note-success-text.hidden {
  display: none;
}

/* ==========================================================================
   LINKS & CONTACT SHRINE
   ========================================================================== */
.links-shrine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 620px) {
  .links-shrine-grid {
    grid-template-columns: 1fr;
  }
}

.link-shrine-card {
  background: #fff;
  border: 2px solid var(--c-navy);
  border-radius: 4px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--c-navy);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 2px 2px 0px var(--c-navy);
  transition: all 0.1s;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.link-shrine-card:hover {
  transform: translateY(-2px);
  background: #eef6fc;
  border-color: var(--c-strawberry);
}

.link-shrine-card.cv-card {
  background: #fffbeb;
}

.lc-icon {
  font-size: 20px;
}

.lc-details {
  flex: 1;
  min-width: 0;
}

.lc-details strong {
  display: block;
  font-size: 12.5px;
  color: var(--c-navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-details span {
  display: block;
  font-size: 11px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-arrow {
  font-size: 14px;
  font-weight: 800;
  color: var(--c-strawberry);
}

/* ==========================================================================
   2001 FOOTER
   ========================================================================== */
.heisei-footer {
  text-align: center;
  padding: 14px 16px 20px 16px;
  border-top: 2px solid var(--c-navy);
  background: #eef6fc;
}

.footer-ie-badge {
  font-family: var(--font-retro);
  font-size: 11.5px;
  color: #475569;
  margin-bottom: 4px;
}

.footer-copyright {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 2px;
}

.footer-fineprint {
  font-size: 10.5px;
  color: #8c7590;
}

/* ==========================================================================
   POKE TRACKER & EASTER EGG WIDGETS
   ========================================================================== */
.poke-tracker-line {
  margin-top: 4px;
}

.poke-tracker-line small {
  font-size: 10.5px;
  color: var(--c-strawberry);
  font-weight: 700;
  font-family: var(--font-retro);
}

.badge-secret {
  background: #7c3aed;
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 2px;
  margin-left: auto;
  letter-spacing: 0.5px;
}

/* Kazumi Recommendation Widget */
.reco-content {
  background: #fff5f8;
  border: 1px dashed var(--c-sakura-dark);
  padding: 8px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.reco-project-title {
  display: block;
  font-size: 12px;
  color: var(--c-navy);
  margin-bottom: 2px;
}

.reco-text {
  font-size: 11px;
  color: #4a5568;
  font-style: italic;
}

.mini-reco-btn {
  width: 100%;
  background: #fff;
  color: var(--c-navy);
  border: 1px solid var(--c-navy);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  cursor: pointer;
  box-shadow: 1px 1px 0px var(--c-navy);
  transition: all 0.1s;
}

.mini-reco-btn:hover {
  background: #eef6fc;
  transform: translateY(-1px);
}

/* Omikuji Fortune Widget */
.omikuji-prompt {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 6px;
}

.omikuji-draw-btn {
  background: linear-gradient(180deg, #ff9ebb, #ff6b8b);
  color: #fff;
  border: 2px outset #fff;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--c-navy);
  transition: all 0.1s;
}

.omikuji-draw-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--c-navy);
}

.omikuji-result {
  margin-top: 8px;
  background: #fff9db;
  border: 1px solid #eab308;
  border-radius: 4px;
  padding: 6px 8px;
  animation: popBounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.omikuji-result.hidden {
  display: none;
}

#omikuji-rank {
  display: block;
  font-size: 12.5px;
  color: #b45309;
  margin-bottom: 2px;
}

#omikuji-msg {
  font-size: 11px;
  color: #451a03;
}

/* ==========================================================================
   KAZUMI'S FAIRY ROOM (#kazumi)
   ========================================================================== */
.kazumi-shrine-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--c-pearl), #eef6fc);
  border: 2px dashed var(--c-fairy-blue);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.shrine-kazumi-art {
  width: 180px;
  height: 270px;
  object-fit: contain;
  border-radius: 12px;
  border: 3px solid var(--c-navy);
  background: var(--c-sky);
  box-shadow: 2px 2px 0px var(--c-fairy-blue);
}

.kazumi-shrine-intro h3 {
  font-size: 16px;
  color: var(--c-navy);
  font-weight: 800;
}

.shrine-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.shrine-quote {
  font-size: 12px;
  color: var(--c-strawberry);
  font-weight: 700;
}

.shrine-profile-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.shrine-profile-table th {
  width: 25%;
  text-align: left;
  padding: 6px 8px;
  background: #eef6fc;
  color: var(--c-navy);
  border: 1px solid #bfd8ec;
  vertical-align: top;
}

.shrine-profile-table td {
  padding: 6px 8px;
  border: 1px solid #bfd8ec;
  color: #334155;
  background: #fff;
}

.shrine-profile-table code {
  background: #e8f2fa;
  color: var(--c-strawberry);
  padding: 0 3px;
  border-radius: 2px;
}

.kazumi-secret-fan-note {
  background: #f0fdf4;
  border: 1px dashed var(--c-emerald);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 12px;
  color: #166534;
}

.kazumi-secret-fan-note strong {
  display: block;
  color: var(--c-emerald);
  margin-bottom: 3px;
}

/* ==========================================================================
   FLOATING FAIRY MASCOT
   ========================================================================== */
.kazumi-pet-widget {
  position: fixed;
  bottom: 12px;
  right: 18px;
  z-index: 9999;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pet-chibi-img {
  width: 96px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(2px 3px 0px rgba(0, 0, 0, 0.3));
  animation: pet-bob 2.8s ease-in-out infinite alternate;
  transition: transform 0.15s;
}

.kazumi-pet-widget:hover .pet-chibi-img {
  transform: scale(1.15) rotate(4deg);
}

@keyframes pet-bob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.pet-speech-bubble {
  position: absolute;
  bottom: 80px;
  right: 0;
  background: #fff;
  color: var(--c-navy);
  border: 2px solid var(--c-navy);
  border-radius: 12px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 2px 2px 0px var(--c-strawberry);
  animation: popBounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pet-speech-bubble.hidden {
  display: none;
}

/* ==========================================================================
   🌸 100 POKES ACHIEVEMENT MODAL
   ========================================================================== */
.achievement-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.achievement-modal.hidden {
  display: none;
}

.achievement-modal-box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 3px double var(--c-navy);
  box-shadow: 4px 4px 0px var(--c-navy);
  border-radius: 4px;
  overflow: hidden;
  animation: popBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: #fff;
  font-family: var(--font-retro);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--c-navy);
}

.modal-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.modal-body {
  padding: 16px;
}

.achieve-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.modal-body h3 {
  font-size: 18px;
  color: var(--c-navy);
  font-weight: 800;
  margin-bottom: 4px;
}

.achieve-quote {
  font-size: 12px;
  color: #64748b;
  margin: 10px 0;
}

.gold-strawberry-badge {
  background: #fef08a;
  color: #854d0e;
  border: 2px dashed #ca8a04;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-retro);
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
  margin: 8px 0;
}

/* ==========================================================================
   2001 NIGHT MODE (Late-night Starry Navy / Purple Theme)
   ========================================================================== */
body.night-mode {
  background-color: #0b0f19;
  background-image: 
    radial-gradient(#818cf8 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 41, 59, 0.5) 50%, transparent 50%),
    linear-gradient(rgba(30, 41, 59, 0.5) 50%, transparent 50%);
  color: #f1f5f9;
}

body.night-mode .homepage-container {
  background: #111827;
  border-color: #ec4899;
  box-shadow: 4px 4px 0px #ec4899, 0 8px 24px rgba(236, 72, 153, 0.2);
}

body.night-mode .header-banner {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  border-bottom-color: #ec4899;
}

body.night-mode .header-title {
  color: #f472b6;
  text-shadow: 2px 2px 0px #000, 3px 3px 0px #831843;
}

body.night-mode .retro-box,
body.night-mode .shrine-box {
  background: #111827;
  border-color: #ec4899;
  box-shadow: 3px 3px 0px #ec4899;
  color: #f1f5f9;
}

body.night-mode .retro-box-header,
body.night-mode .shrine-header {
  background: linear-gradient(90deg, #831843, #be185d);
  border-bottom-color: #ec4899;
  color: #fff;
}

body.night-mode .menu-link {
  color: #f1f5f9;
}

body.night-mode .menu-link:hover {
  background: #374151;
  color: #f472b6;
}

body.night-mode .menu-link.active {
  background: #be185d;
  color: #fff;
}

body.night-mode .welcome-lead,
body.night-mode .kazumi-shrine-hero {
  background: #1e1b4b;
  border-color: #f472b6;
  color: #f1f5f9;
}

body.night-mode .lead-kaomoji {
  color: #f472b6;
}

body.night-mode .lead-sub,
body.night-mode .about-hero-text p {
  color: #cbd5e1;
}

body.night-mode .saikin-note {
  background: #1e1b4b;
  border-color: #ec4899;
  color: #f1f5f9;
}

body.night-mode .saikin-note strong {
  color: #f472b6;
}

body.night-mode .retro-alert.info-alert {
  background: #1e1b4b;
  border-color: #ec4899;
  color: #e2e8f0;
}

body.night-mode .retro-alert.info-alert strong {
  color: #f472b6;
}

body.night-mode .currently-making-alert {
  background: #422006;
  border-color: #fbbf24;
  color: #fef3c7;
}

body.night-mode .currently-making-alert strong {
  color: #fcd34d;
}

body.night-mode .retro-alert.info-alert p {
  color: #cbd5e1;
}

body.night-mode .retro-alert.success-alert {
  background: #064e3b;
  border-color: #10b981;
  color: #e2e8f0;
}

body.night-mode .retro-alert.success-alert strong {
  color: #6ee7b7;
}

body.night-mode .retro-alert.success-alert p {
  color: #cbd5e1;
}

body.night-mode .tech-shrine .shrine-title {
  color: #f472b6;
}

body.night-mode .tech-pills .tp-ts { background: #1e293b; color: #60a5fa; border-color: #3b82f6; }
body.night-mode .tech-pills .tp-csharp { background: #1e1b4b; color: #c084fc; border-color: #a855f7; }
body.night-mode .tech-pills .tp-rust { background: #3f1d1d; color: #f87171; border-color: #ef4444; }
body.night-mode .tech-pills .tp-react { background: #082f49; color: #38bdf8; border-color: #0ea5e9; }
body.night-mode .tech-pills .tp-sql { background: #064e3b; color: #34d399; border-color: #10b981; }
body.night-mode .tech-pills .tp-php { background: #2e1065; color: #d8b4fe; border-color: #9333ea; }
body.night-mode .tech-pills .tp-payfast { background: #362b00; color: #fde047; border-color: #eab308; }
body.night-mode .tech-pills .tp-vitest { background: #3b0764; color: #f472b6; border-color: #ec4899; }

body.night-mode .news-table th {
  background: #1e1b4b;
  color: #f472b6;
  border-color: #374151;
}

body.night-mode .news-table td {
  background: #111827;
  color: #cbd5e1;
  border-color: #374151;
}

body.night-mode .news-table tr:hover td {
  background: #1e293b;
}

body.night-mode .mood-box {
  background: #1e1b4b;
  border-color: #ec4899;
}

body.night-mode .mood-title {
  color: #f472b6;
}

body.night-mode .mood-val {
  color: #cbd5e1;
}

body.night-mode .omikuji-result {
  background: #1e1b4b;
  border-color: #ec4899;
}

body.night-mode .omikuji-result p {
  color: #cbd5e1;
}

body.night-mode .project-entry,
body.night-mode .diary-post,
body.night-mode .link-shrine-card {
  background: #1e1b4b;
  border-color: #ec4899;
  color: #f1f5f9;
}

body.night-mode .project-entry-header {
  background: #111827;
  border-bottom-color: #374151;
}

body.night-mode .project-entry-header h3,
body.night-mode .lc-details strong,
body.night-mode .webmaster-title .wm-name {
  color: #f472b6;
}

body.night-mode .project-summary,
body.night-mode .diary-post-body p,
body.night-mode .profile-bullets,
body.night-mode .shrine-intro-text,
body.night-mode .clap-desc {
  color: #cbd5e1;
}

body.night-mode .kazumi-comment-box {
  background: #111827;
  border-color: #ec4899;
  color: #cbd5e1;
}

body.night-mode .kazumi-comment-tag {
  background: #be185d;
  color: #fff;
}

body.night-mode .qa-category-title {
  background: #831843;
  color: #fdf2f8;
  border-left-color: #ec4899;
}

body.night-mode .qa-item {
  background: #1e1b4b;
  border-color: #374151;
}

body.night-mode .qa-q {
  color: #f472b6;
}

body.night-mode .qa-a {
  color: #cbd5e1;
  border-left-color: #ec4899;
}

body.night-mode .stamp-board-wrapper {
  background: #1e1b4b;
  border-color: #ec4899;
}

body.night-mode .stamp-palette-header span {
  color: #f472b6;
}

body.night-mode .stamp-palette-header small {
  color: #94a3b8;
}

body.night-mode .stamp-wall-display {
  background: #111827;
  border-color: #374151;
}

body.night-mode .stamp-pick-btn {
  background: #111827;
  border-color: #ec4899;
}

body.night-mode .stamp-pick-btn:hover {
  background: #374151;
}

body.night-mode .shrine-profile-table th {
  background: #1e1b4b;
  color: #f472b6;
  border-color: #374151;
}

body.night-mode .shrine-profile-table td {
  background: #111827;
  color: #cbd5e1;
  border-color: #374151;
}

body.night-mode .secret-guestbook {
  background: #1e1b4b;
  border-color: #ec4899;
}

body.night-mode .secret-guestbook input {
  background: #111827;
  color: #f1f5f9;
  border-color: #ec4899;
}

body.night-mode .heisei-footer {
  background: #111827;
  border-top-color: #ec4899;
  color: #94a3b8;
}

body.night-mode .footer-copyright {
  color: #f472b6;
}

/* ==========================================================================
   BGM EQUALIZER ANIMATION
   ========================================================================== */
.bgm-eq-anim {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
  margin-left: 3px;
  vertical-align: middle;
}

.bgm-eq-anim.hidden {
  display: none;
}

.bgm-eq-anim i {
  display: inline-block;
  width: 2px;
  background: #fff;
  border-radius: 1px;
  animation: eq-bounce 0.6s ease-in-out infinite alternate;
}

.bgm-eq-anim i:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.bgm-eq-anim i:nth-child(2) { height: 9px; animation-delay: 0.3s; }
.bgm-eq-anim i:nth-child(3) { height: 6px; animation-delay: 0.2s; }

@keyframes eq-bounce {
  0% { height: 3px; }
  100% { height: 10px; }
}

/* ==========================================================================
   DOUMEI WEB ALLIANCES (同盟バナー)
   ========================================================================== */
.doumei-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doumei-badge {
  font-family: var(--font-retro);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border: 1px solid var(--c-navy);
  border-radius: 3px;
  box-shadow: 2px 2px 0px var(--c-navy);
  cursor: pointer;
  transition: transform 0.1s;
}

.doumei-badge:hover {
  transform: translateY(-1px);
}

.db-rust { background: #fee2e2; color: #991b1b; border-color: #991b1b; }
.db-midnight { background: #ede9fe; color: #5b21b6; border-color: #5b21b6; }
.db-html { background: #fdf2f8; color: #9d174d; border-color: #9d174d; }
.db-sys { background: #fef9c3; color: #854d0e; border-color: #854d0e; }

/* ==========================================================================
   2001 STAMP PALETTE & BOARD (スタンプ帳)
   ========================================================================== */
.stamp-board-wrapper {
  background: #fffdf9;
  border: 2px dashed var(--c-strawberry);
  border-radius: 4px;
  padding: 12px;
  margin: 16px 0;
}

.stamp-palette-header {
  margin-bottom: 8px;
}

.stamp-palette-header span {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--c-navy);
}

.stamp-palette-header small {
  font-size: 11px;
  color: #64748b;
}

.stamp-palette-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 10px;
}

.stamp-pick-btn {
  background: #fff;
  border: 1px solid var(--c-navy);
  border-radius: 4px;
  font-size: 18px;
  padding: 4px 8px;
  cursor: pointer;
  box-shadow: 1px 1px 0px var(--c-navy);
  transition: all 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stamp-pick-btn:hover {
  transform: scale(1.2) rotate(6deg);
  background: #eef6fc;
}

.stamp-pick-btn:active {
  transform: scale(0.95);
}

.stamp-wall-display {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  background: #fff;
  border: 1px solid #fed7aa;
  padding: 8px;
  border-radius: 4px;
  min-height: 36px;
}

.stamp-badge {
  background: #fff7ed;
  border: 1px solid #ea580c;
  color: #9a3412;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 12px;
  animation: popBounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   50 QUESTIONS FOR THE WEBMASTER (#qa)
   ========================================================================== */
.qa-section-block {
  margin-bottom: 14px;
}

.qa-category-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--c-navy);
  background: var(--c-sky);
  border-left: 4px solid var(--c-strawberry);
  padding: 4px 8px;
  margin-bottom: 8px;
  border-radius: 0 3px 3px 0;
}

.qa-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 8px;
  box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.05);
}

.qa-q {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--c-strawberry);
  margin-bottom: 4px;
}

.qa-a {
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
  padding-left: 6px;
  border-left: 2px solid #fed7aa;
}

/* ==========================================================================
   SECRET DEV SKETCHBOOK (#secret)
   ========================================================================== */
.ascii-sketchbook {
  background: #18233c;
  color: #34d399;
  border: 2px solid var(--c-navy);
  border-radius: 4px;
  padding: 12px;
  margin: 12px 0;
  box-shadow: 3px 3px 0px var(--c-strawberry);
}

.ascii-title {
  font-family: var(--font-retro);
  font-size: 11.5px;
  color: #f472b6;
  border-bottom: 1px dashed #34d399;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.ascii-art {
  font-family: var(--font-retro);
  font-size: 12.5px;
  line-height: 1.35;
  white-space: pre;
  overflow-x: auto;
}

.retro-construction-badge {
  background: #fef08a;
  border: 2px dashed #ca8a04;
  color: #854d0e;
  padding: 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 12px;
}

/* ==========================================================================
   HIDDEN 1-PIXEL LINK
   ========================================================================== */
.hidden-pixel-link {
  display: inline-block;
  color: var(--c-strawberry);
  cursor: pointer;
  opacity: 0.35;
  transition: all 0.2s;
  font-size: 10px;
  margin-left: 4px;
}

.hidden-pixel-link:hover {
  opacity: 1;
  transform: scale(1.6) rotate(180deg);
  color: #ff0055;
}

@media print {
  #sparkle-canvas,
  .heisei-ticker,
  .sidebar-col,
  .kazumi-pet-widget,
  .shrine-actions,
  .project-filters,
  .banner-bottom-ribbon {
    display: none !important;
  }

  .homepage-container {
    border: none;
    box-shadow: none;
    max-width: none;
  }

  html.js .page-pane {
    display: block !important;
    animation: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .project-artifact {
    color: #000;
    background: #f8fafc;
    box-shadow: none;
  }
}
