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

:root {
  --bg:        #efe6d2;
  --bg-2:      #e8dcc1;
  --paper:     #fdf8ec;
  --paper-2:   #f7eedc;
  --ink:       #2c1d36;
  --ink-soft:  #4a3658;
  --rule:      #6a4a64;
  --sakura:    #d96a8e;
  --sakura-2:  #b14668;
  --rose-bg:   #f6d4dd;
  --mint:      #6fae9b;
  --mint-bg:   #cfe6dc;
  --gold:      #c79a3a;
  --plum:      #5b2a4a;
  --shadow:    #b59a82;
}

html { background: var(--bg); }

body {
  font-family: 'Yusei Magic', 'Zen Kurenaido', 'MS PGothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg,  rgba(91,42,74,0.04) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(91,42,74,0.04) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at top, #f7efdb 0%, var(--bg) 60%, var(--bg-2) 100%);
  min-height: 100vh;
  padding: 18px 0 60px;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><polygon points='2,2 2,16 6,12 8,18 11,17 9,11 14,11' fill='%232c1d36' stroke='%23fdf8ec' stroke-width='1'/></svg>") 2 2, auto;
}

::selection { background: var(--sakura); color: var(--paper); }

a { color: var(--sakura-2); text-decoration: underline dotted; text-underline-offset: 2px; }
a:hover { color: var(--plum); background: var(--rose-bg); text-decoration: underline; }

img { display:block; image-rendering: -webkit-optimize-contrast; }

/* ============================================================
   PAGE FRAME - simulates a 2000s table layout w/ chunky borders
   ============================================================ */
.page {
  width: 920px;
  margin: 0 auto;
  background: var(--paper);
  border: 2px solid var(--ink);
  outline: 1px solid var(--paper);
  outline-offset: -6px;
  box-shadow:
    0 0 0 4px var(--paper),
    0 0 0 6px var(--ink),
    8px 8px 0 6px var(--shadow),
    20px 20px 50px rgba(44,29,54,0.18);
  position: relative;
}

/* tiny corner ornaments on the page frame */
.page::before, .page::after {
  content: '✿';
  position: absolute;
  top: -14px;
  font-family: 'Yusei Magic', serif;
  font-size: 22px;
  color: var(--sakura);
  background: var(--bg);
  padding: 0 8px;
}
.page::before { left: 24px; }
.page::after  { right: 24px; }

/* ============================================================
   TOPBAR – browser chrome / title bar
   ============================================================ */
.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  padding: 0 8px;
  background: linear-gradient(180deg, #5b2a4a 0%, #3a1a32 100%);
  color: #f6d4dd;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .5px;
  border-bottom: 2px solid var(--ink);
}
.titlebar .dot { width:10px; height:10px; border-radius:50%; border:1px solid #1a0a14; }
.titlebar .dot.r { background:#e26b8c; }
.titlebar .dot.y { background:#c79a3a; }
.titlebar .dot.g { background:#6fae9b; }
.titlebar .crumbs { margin-left: 12px; opacity:.85; }
.titlebar .clock { margin-left:auto; opacity:.85; }

/* ============================================================
   BANNER – the big header image + title
   ============================================================ */
.banner {
  position: relative;
  height: 178px;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: #1a0e22 url('assets/train.jpg') center 32% / cover no-repeat;
}
.banner::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(44,29,54,.05) 0%, rgba(44,29,54,.55) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.banner .grain {
  position:absolute; inset:0;
  background: url('assets/grain.jpg');
  background-size: 360px;
  mix-blend-mode: soft-light;
  opacity:.45;
  pointer-events:none;
}

.banner .title {
  position: relative;
  z-index: 2;
  padding: 22px 28px 0;
  color: #fdf8ec;
  text-shadow: 2px 2px 0 #2c1d36, 4px 4px 0 rgba(0,0,0,.3);
}
.banner .title h1 {
  font-family: 'DotGothic16', 'MS PGothic', sans-serif;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 2px;
}
.banner .title .ja {
  font-size: 14px; opacity:.9; margin-top:6px;
  letter-spacing: 6px;
}
.banner .title .romaji {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  margin-top: 4px;
  color: var(--rose-bg);
  letter-spacing: 3px;
}

.banner .sub {
  position:absolute; right:18px; bottom:14px; z-index:2;
  display:flex; flex-direction:column; align-items:flex-end; gap:4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #fdf8ec;
}
.banner .stamp {
  background: var(--sakura);
  color: var(--paper);
  padding: 3px 8px;
  border: 1px solid #2c1d36;
  box-shadow: 2px 2px 0 #2c1d36;
  transform: rotate(-2deg);
  font-family: 'DotGothic16', monospace;
  font-size: 11px;
  letter-spacing: 2px;
}
.banner .ver {
  background: rgba(44,29,54,.75);
  padding: 2px 6px;
  border: 1px solid #fdf8ec;
}

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.strip {
  display:flex;
  align-items:center;
  height: 26px;
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 12px, var(--rose-bg) 12px 24px);
  border-bottom: 1px solid var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--plum);
  padding-left: 0;
  overflow:hidden;
}
.strip .label {
  display:flex; align-items:center;
  background: var(--ink); color: var(--paper);
  padding: 0 10px; height:100%; gap:6px;
  font-family: 'DotGothic16', monospace;
  letter-spacing: 2px;
}
.strip .label .blink { color: var(--sakura); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity:0; } }
.strip marquee { flex:1; padding: 0 10px; }
.strip .right {
  background: var(--mint); color: var(--ink);
  border-left:1px solid var(--ink);
  padding: 0 10px; height:100%;
  display:flex; align-items:center; gap:6px;
  font-family: 'DotGothic16', monospace; letter-spacing:1px;
}

/* ============================================================
   MAIN GRID
   ============================================================ */
.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
}
.sidebar {
  background: var(--paper-2);
  border-right: 2px solid var(--ink);
  padding: 14px;
  display:flex; flex-direction:column; gap: 14px;
}
.main {
  padding: 18px;
  display:flex; flex-direction:column; gap: 18px;
  background:
    radial-gradient(circle at 10% 0%, #fff5e2 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, #fde7ec 0%, transparent 40%),
    var(--paper);
}

/* ============================================================
   SIDEBAR PIECES
   ============================================================ */
.card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink-soft);
  position: relative;
}
.card > .head {
  background: var(--ink);
  color: var(--paper);
  font-family: 'DotGothic16', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 4px 8px;
  display:flex; align-items:center; justify-content:space-between;
  border-bottom: 1px dashed var(--rose-bg);
}
.card > .head .x {
  color: var(--paper); border:1px solid var(--paper);
  font-size:10px; padding: 0 4px; line-height:1;
}
.card > .body { padding: 10px; }

/* avatar block */
.profile-card .pic {
  width: 100%; aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--sakura) 0%, var(--rose-bg) 60%, var(--paper) 100%);
  border: 2px solid var(--ink);
  outline: 4px solid var(--paper);
  outline-offset: -6px;
  filter: saturate(1.05) contrast(1.02);
  position: relative;
}
.profile-card .pic::after {
  content:'★ photo ★';
  position:absolute; bottom:-8px; left:50%;
  transform: translateX(-50%);
  background: var(--sakura);
  color: var(--paper);
  font-family: 'DotGothic16', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  padding: 1px 8px;
  border:1px solid var(--ink);
}
.profile-card .body { padding-top: 16px; }
.profile-card dl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  line-height: 1.55;
}
.profile-card dl div {
  display:grid; grid-template-columns: 60px 1fr;
  border-bottom: 1px dotted var(--shadow);
  padding: 3px 0;
}
.profile-card dl dt { color: var(--rule); }
.profile-card dl dd { color: var(--ink); }
.profile-card .bio {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
  font-size: 11.5px;
  line-height: 1.5;
}

/* nav list */
.nav { font-family: 'Yusei Magic', sans-serif; }
.nav ul { list-style:none; }
.nav li {
  padding: 6px 4px 6px 18px;
  position: relative;
  border-bottom: 1px dotted var(--shadow);
  font-size: 13px;
}
.nav li::before {
  content:'❀';
  position:absolute; left: 2px; top:6px;
  color: var(--sakura);
  font-size: 11px;
}
.nav li:nth-child(2)::before { content:'☆'; color: var(--gold); }
.nav li:nth-child(3)::before { content:'♪'; color: var(--mint); }
.nav li:nth-child(4)::before { content:'♡'; color: var(--sakura-2); }
.nav li:nth-child(5)::before { content:'✉'; color: var(--plum); }
.nav li:nth-child(6)::before { content:'★'; color: var(--gold); }
.nav li a { text-decoration: none; display:flex; justify-content:space-between; align-items:baseline; color: var(--ink); }
.nav li a:hover { color: var(--sakura-2); background: transparent; }
.nav li a .jp { font-family:'DotGothic16', monospace; font-size: 11px; color: var(--rule); letter-spacing: 1px; }

/* counter */
.counter {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--ink);
  text-align: center;
}
.counter .display {
  display: inline-flex;
  gap: 1px;
  margin: 4px 0;
}
.counter .display span {
  background: #1a0e22;
  color: #ffd34a;
  padding: 3px 5px;
  font-family: 'DotGothic16', monospace;
  font-size: 16px;
  letter-spacing: 1px;
  border: 1px solid var(--ink);
  text-shadow: 0 0 4px #ffae00;
}
.counter .stats {
  display:grid; grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 6px;
  font-size: 9.5px;
  color: var(--rule);
}
.counter .stats div { background: var(--paper-2); padding: 2px 4px; border:1px dotted var(--rule); }

/* now-playing card */
.np {
  background: linear-gradient(180deg, var(--paper) 0%, var(--rose-bg) 100%);
}
.np .body { display:flex; gap:10px; }
.np .cover {
  width: 56px; height: 56px;
  background: url('assets/miku-dance.gif') center/cover no-repeat;
  border: 1.5px solid var(--ink);
  flex-shrink:0;
  image-rendering: pixelated;
}
.np .info { font-size: 11px; line-height: 1.45; }
.np .info .label { font-family:'IBM Plex Mono', monospace; font-size: 9.5px; color: var(--rule); letter-spacing:1px; }
.np .info .song { font-weight:600; color: var(--plum); }
.np .info .bar {
  height: 4px; background: var(--paper-2); border:1px solid var(--ink); margin-top: 4px; position:relative;
}
.np .info .bar::after {
  content:''; position:absolute; left:0; top:0; bottom:0; width: 38%;
  background: repeating-linear-gradient(90deg, var(--sakura) 0 4px, var(--sakura-2) 4px 8px);
}
.np .info .meta { font-family:'IBM Plex Mono', monospace; font-size:9.5px; color: var(--rule); margin-top:3px; }

/* webrings/buttons */
.buttons-card .body { display:grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.btn88 {
  height: 31px;
  border: 1px solid var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  display:flex; align-items:center; justify-content:center;
  text-align: center;
  letter-spacing: .5px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .1s;
}
.btn88:hover { transform: translate(-1px,-1px); }
.btn88.a { background: linear-gradient(90deg,#1a0e22,#5b2a4a); color: var(--rose-bg); }
.btn88.b { background: linear-gradient(90deg, var(--sakura), var(--sakura-2)); color: var(--paper); }
.btn88.c { background: var(--mint-bg); color: var(--plum); }
.btn88.d { background: repeating-linear-gradient(135deg, var(--gold) 0 4px, #b6892a 4px 8px); color: var(--ink); }
.btn88.e { background: var(--paper); color: var(--ink); border-style: dashed; }
.btn88.f { background: #1a0e22; color: #6fff9b; font-family: 'DotGothic16', monospace; }

/* ============================================================
   MAIN PIECES – section panels
   ============================================================ */
.section {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  position: relative;
  box-shadow: 4px 4px 0 var(--ink-soft);
}
.section > h2 {
  font-family: 'DotGothic16', 'MS PGothic', monospace;
  font-size: 14px;
  letter-spacing: 3px;
  background:
    repeating-linear-gradient(135deg, var(--ink) 0 4px, #3a1f32 4px 8px);
  color: var(--paper);
  padding: 6px 12px;
  display:flex; align-items:center; gap: 10px;
  border-bottom: 1px solid var(--ink);
}
.section > h2::before {
  content:'■'; color: var(--sakura);
}
.section > h2 .en {
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--rose-bg);
  font-weight: normal;
}
.section > .inner { padding: 14px 16px; }

/* news ribbon at top of main */
.news {
  border: 2px dashed var(--sakura-2);
  background: var(--paper-2);
  padding: 10px 14px;
  display:flex; gap: 14px; align-items:flex-start;
  font-size: 12.5px; line-height: 1.55;
}
.news .badge {
  flex-shrink:0;
  background: var(--sakura);
  color: var(--paper);
  font-family: 'DotGothic16', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 4px 10px;
  border:1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink-soft);
  transform: rotate(-3deg);
}
.news ul { list-style: none; flex:1; }
.news li {
  padding: 2px 0;
  border-bottom: 1px dotted var(--shadow);
  display:grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
}
.news li:last-child { border-bottom: none; }
.news li .date { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--rule); }
.news li .new {
  display:inline-block;
  background: var(--sakura-2);
  color: var(--paper);
  font-family: 'DotGothic16', monospace;
  font-size: 9px;
  padding: 1px 4px; margin-left: 6px;
  letter-spacing:1px;
  animation: blink 1.2s steps(2) infinite;
}

/* about section */
.about-grid {
  display:grid; grid-template-columns: 1fr 200px; gap: 18px;
}
.about-grid p {
  font-size: 13px; line-height: 1.7; margin-bottom: 8px;
}
.about-grid p .kanji { font-family:'DotGothic16',monospace; color: var(--plum); }
.about-grid .side {
  border:1px solid var(--ink);
  background: var(--paper-2);
  padding: 8px;
  font-family:'IBM Plex Mono', monospace;
  font-size:10.5px;
  line-height:1.55;
}
.about-grid .side h3 {
  font-family:'DotGothic16',monospace;
  font-size:11px; letter-spacing:2px;
  color: var(--plum);
  border-bottom:1px dashed var(--rule);
  margin-bottom:6px; padding-bottom:3px;
}
.about-grid .side ul { list-style:none; }
.about-grid .side li { padding: 2px 0; display:flex; justify-content:space-between; }
.about-grid .side li .v { color: var(--sakura-2); }

/* projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.proj {
  border: 1px solid var(--ink);
  background: var(--paper-2);
  display:flex; flex-direction:column;
  position: relative;
  transition: transform .1s;
}
.proj:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--sakura); }
.proj .thumb {
  height: 88px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.proj .thumb::after {
  content:'';
  position:absolute; inset:0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.1) 0 1px, transparent 1px 3px);
}
.proj .thumb.a { background-image: url('assets/snap1.jpg'); }
.proj .thumb.b { background-image: url('assets/wind.png'); }
.proj .thumb.c { background-image: url('assets/pixeltown.png'); image-rendering: pixelated; background-size: 220px; }
.proj .thumb.d { background-image: url('assets/windy.jpg'); }
.proj .thumb.e { background-image: url('assets/decor.webp'); }
.proj .thumb.f { background-image: url('assets/kagami.jpg'); }
.proj .body { padding: 8px 10px; flex:1; display:flex; flex-direction:column; gap:4px; }
.proj h4 {
  font-family:'DotGothic16', monospace;
  font-size: 12px;
  color: var(--plum);
  letter-spacing: 1px;
}
.proj .lang {
  font-family:'IBM Plex Mono', monospace;
  font-size: 9.5px;
  color: var(--rule);
}
.proj p { font-size: 11px; line-height: 1.4; color: var(--ink); }
.proj .tag {
  align-self:flex-start;
  font-family:'IBM Plex Mono', monospace;
  font-size: 9px;
  background: var(--sakura);
  color: var(--paper);
  padding: 1px 5px;
  margin-top: auto;
  border:1px solid var(--ink);
}
.proj .tag.wip { background: var(--gold); }
.proj .tag.live { background: var(--mint); color: var(--ink); }
.proj .tag.archive { background: var(--paper); color: var(--ink); }

/* diary list */
.diary {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0;
  font-size: 12.5px;
}
.diary article {
  display: contents;
}
.diary .date {
  background: var(--ink);
  color: var(--paper);
  padding: 8px 6px;
  text-align: center;
  font-family: 'DotGothic16', monospace;
  border-top: 1px solid var(--paper-2);
  border-right: 1px solid var(--ink);
}
.diary .date .d { font-size: 18px; line-height:1; }
.diary .date .m { font-size: 9px; letter-spacing:1px; opacity:.85; }
.diary .date .y { font-size: 8px; letter-spacing:2px; opacity:.65; margin-top:2px;}
.diary .entry {
  padding: 8px 12px;
  border-bottom: 1px dashed var(--rule);
  background: var(--paper);
}
.diary article:nth-child(even) .entry { background: var(--paper-2); }
.diary .entry h4 {
  font-family:'DotGothic16', monospace;
  font-size:13px;
  color: var(--plum);
  margin-bottom: 3px;
}
.diary .entry h4 .mood {
  font-family:'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--rule);
  margin-left:6px;
  letter-spacing:1px;
}
.diary .entry p { line-height:1.55; }
.diary .entry .tags {
  margin-top: 5px;
  font-family:'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--sakura-2);
}
.diary .entry .tags span::before { content:'#'; }

/* contact */
.contact-grid { display:grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: stretch; }
.contact-card {
  border:1px solid var(--ink);
  background: var(--paper-2);
  padding: 12px;
  font-size: 12px;
  line-height: 1.55;
}
.contact-card h3 {
  font-family:'DotGothic16', monospace;
  font-size: 12px;
  letter-spacing:2px;
  color: var(--plum);
  margin-bottom: 6px;
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 3px;
}
.email-box {
  margin-top: 8px;
  background: #1a0e22;
  color: #ffd34a;
  font-family:'DotGothic16', monospace;
  font-size:13px;
  padding: 8px 10px;
  border:1px solid var(--ink);
  letter-spacing: 1px;
  display:flex; justify-content:space-between; align-items:center;
}
.email-box button {
  background: var(--sakura);
  color: var(--paper);
  font-family:'DotGothic16', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  border: 1px solid #fdf8ec;
  padding: 2px 8px;
  cursor: pointer;
}
.email-box button:hover { background: var(--paper); color: var(--sakura-2); }

.social-list { list-style: none; margin-top: 6px; }
.social-list li {
  padding: 4px 0;
  border-bottom: 1px dotted var(--shadow);
  display: grid;
  grid-template-columns: 60px 1fr;
  font-family:'IBM Plex Mono', monospace;
  font-size: 11px;
}
.social-list li:last-child { border-bottom:none; }
.social-list li .key { color: var(--rule); }

.guestform { display:flex; flex-direction:column; gap:6px; }
.guestform label { font-family:'IBM Plex Mono', monospace; font-size: 10px; color: var(--rule); }
.guestform input, .guestform textarea {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 4px 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink);
  border-radius: 0;
}
.guestform input:focus, .guestform textarea:focus { outline: 2px dashed var(--sakura); }
.guestform textarea { resize: vertical; min-height: 60px; }
.guestform .send {
  align-self: flex-start;
  background: var(--sakura);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 4px 14px;
  font-family: 'DotGothic16', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}
.guestform .send:hover { background: var(--plum); }

/* links / friend banners */
.link-banners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

/* footer pieces */
.under-construction {
  margin: 14px 18px 0;
  border:1px dashed var(--gold);
  background:
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(199,154,58,.1) 8px 16px),
    var(--paper-2);
  padding: 6px 10px;
  font-family:'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--rule);
  display:flex; align-items:center; gap: 8px;
}
.under-construction::before {
  content:'⚠';
  color: var(--gold);
  font-size: 16px;
}

footer.foot {
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
  padding: 12px 18px;
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  font-family:'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--rule);
  align-items:center;
}
footer.foot .center { text-align:center; color: var(--ink); font-family:'DotGothic16', monospace; font-size: 11px; letter-spacing: 2px; }
footer.foot .right { text-align:right; }
footer.foot a { color: var(--plum); }

.signature {
  text-align:center;
  padding: 10px 0 4px;
  font-family:'Yusei Magic', sans-serif;
  font-size: 10.5px;
  color: var(--rule);
}
.signature .ascii { font-family:'IBM Plex Mono', monospace; color: var(--sakura-2); }

/* miku floating decor */
.deco-miku {
  position: absolute;
  right: -54px;
  top: 220px;
  width: 92px;
  pointer-events: none;
  image-rendering: pixelated;
  filter: drop-shadow(2px 2px 0 var(--ink));
  z-index: 3;
}
.deco-miku2 {
  position: absolute;
  left: -64px;
  top: 540px;
  width: 88px;
  image-rendering: pixelated;
  filter: drop-shadow(2px 2px 0 var(--ink));
  z-index: 3;
}

/* sparkle dots scattered */
.sparkle {
  display:inline-block;
  color: var(--gold);
  text-shadow: 0 0 3px #ffd34a;
  animation: spin 6s linear infinite;
  transform-origin: center;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* responsiveness fallback - reading on phones */
@media (max-width: 940px) {
  body { padding: 0; }
  .page { width: 100%; box-shadow: none; outline: none; border: none; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 2px solid var(--ink); }
  .deco-miku, .deco-miku2 { display:none; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .banner { height: 140px; }
  .banner .title h1 { font-size: 32px; }
}

/* ============================================================
   MULTI-PAGE ADDITIONS
   ============================================================ */
/* active page in sidebar nav */
.nav li a.here {
  color: var(--plum);
  font-weight: bold;
}
.nav li a.here::after {
  content: ' ◀';
  color: var(--sakura);
  font-size: 10px;
}
.nav li a.here .jp { color: var(--sakura-2); }

/* entrance / genkan room cards on the landing page */
.rooms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}
.room {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
}
.room:hover {
  background: linear-gradient(180deg, var(--rose-bg) 0%, var(--paper) 100%);
  transform: translate(-1px,-1px);
  box-shadow: 5px 5px 0 var(--shadow);
}
.room .rk {
  font-family: 'DotGothic16', monospace;
  font-size: 14px;
  color: var(--plum);
  letter-spacing: 1px;
}
.room .re {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--rule);
}
@media (max-width: 940px) {
  .rooms { grid-template-columns: repeat(2, 1fr); }
}

/* see-all link in section headers (landing previews) */
.see-all {
  float: right;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .5px;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--sakura-2);
  background: var(--rose-bg);
  border: 1px solid var(--sakura);
  border-radius: 2px;
  padding: 2px 8px;
  margin-top: -2px;
}
.see-all:hover { background: var(--sakura); color: var(--paper); }
