/* =====================================================
   日本語ミームポートフォリオ — style.css
   深夜3時に書いたCSS（仕様）
   ===================================================== */

:root {
  --bg:         #0a0a14;
  --bg2:        #111124;
  --card:       #161628;
  --border:     #2a2a44;
  --txt:        #e8e8f0;
  --muted:      #888;
  --cyan:       #00f5ff;
  --pink:       #ff2d78;
  --yellow:     #ffe600;
  --green:      #39ff14;
  --red:        #ff3b3b;
  --orange:     #ff8c00;
  --font-main:  'DotGothic16', monospace;
  --font-head:  'RocknRoll One', sans-serif;
  --font-zen:   'Zen Antique Soft', serif;
}

/* ========== BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-main);
  overflow-x: hidden;
  cursor: none;
}

body * { cursor: none !important; }

/* ========== CUSTOM CURSOR ========== */
#cursor {
  position: fixed;
  width: 28px; height: 28px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  font-size: 22px;
  line-height: 1;
  transition: transform .1s;
  user-select: none;
}
#cursor::after { content: '(・ω・)'; }

#cursor-trail-wrap {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
}

.c-trail {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%,-50%);
  animation: trailFade .7s ease forwards;
  font-family: var(--font-main);
  font-size: .75rem;
  white-space: nowrap;
  color: var(--yellow);
  text-shadow: 0 0 6px var(--yellow);
}

@keyframes trailFade {
  0%   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-60%) scale(.5); }
}

/* ========== MODAL ========== */
#startup-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 20000;
  display: flex; align-items: center; justify-content: center;
}

.modal-box {
  background: var(--card);
  border: 3px solid var(--yellow);
  padding: 2.5rem 2rem;
  max-width: 380px; width: 90%;
  text-align: center;
  box-shadow: 0 0 40px rgba(255,230,0,.3), 8px 8px 0 var(--yellow);
  font-family: var(--font-main);
}

.modal-aa {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--yellow);
}

.modal-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--cyan);
  margin-bottom: .8rem;
}

.modal-box p { margin-bottom: .6rem; line-height: 1.7; font-size: .95rem; }
.modal-small { font-size: .8rem; color: var(--muted); }
.red { color: var(--red); font-weight: bold; }

.modal-btns { display: flex; gap: .8rem; justify-content: center; margin-top: 1.2rem; flex-wrap: wrap; }

.mbtn {
  padding: .6rem 1.2rem;
  border: 2px solid #000;
  font-family: var(--font-main);
  font-size: .85rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
  transition: transform .1s, box-shadow .1s;
}
.mbtn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 #000; }
.mbtn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 #000; }
.mbtn-yes { background: var(--yellow); color: #000; }
.mbtn-no  { background: var(--red);    color: #fff; }

/* ========== TOP BAR ========== */
#top-bar {
  background: var(--red);
  border-bottom: 2px solid var(--yellow);
  height: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

.tb-label {
  background: var(--yellow);
  color: #000;
  font-family: var(--font-main);
  font-size: .7rem;
  font-weight: bold;
  padding: 0 .5rem;
  height: 100%;
  display: flex; align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.tb-scroll-wrap { overflow: hidden; flex: 1; height: 100%; }

.tb-scroll {
  display: inline-block;
  white-space: nowrap;
  animation: tbMarquee 30s linear infinite;
  font-family: var(--font-main);
  font-size: .72rem;
  color: #fff;
  line-height: 30px;
  padding-left: 100%;
}

@keyframes tbMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ========== HEADER ========== */
#main-header {
  background: linear-gradient(135deg, #0a0a14 0%, #14042a 55%, #0a1428 100%);
  border-bottom: 3px solid var(--pink);
  position: relative;
  overflow: hidden;
}

#main-header::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(255,255,255,.015) 3px, rgba(255,255,255,.015) 4px
  );
  pointer-events: none;
}

.header-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  gap: 2rem; padding: 2.5rem 5vw;
}

/* name block */
.name-block { margin-bottom: 1rem; }

.name-aa {
  font-family: var(--font-main);
  font-size: 1.2rem;
  color: var(--yellow);
  margin-bottom: .3rem;
  text-shadow: 0 0 12px var(--yellow);
}

.site-name {
  font-family: var(--font-head);
  font-size: clamp(2rem,5vw,3.5rem);
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan), 3px 3px 0 rgba(0,0,0,.5);
  line-height: 1.1;
}

.name-ruby {
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .2rem;
  margin-top: .2rem;
}

/* typing role */
.typing-role {
  font-family: var(--font-main);
  font-size: 1.1rem;
  color: var(--yellow);
  margin-bottom: 1rem;
  min-height: 1.6rem;
  border-right: 2px solid var(--yellow);
  padding-right: .3rem;
  display: inline-block;
}

/* bio */
.header-bio {
  font-size: .9rem;
  line-height: 1.9;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 1.2rem;
}

.aa-inline { color: var(--cyan); font-size: 1rem; }
.hilight   { color: var(--cyan); font-weight: bold; }
.bold-red  { color: var(--red);  font-weight: bold; }
.muted     { color: var(--muted); }

/* header tags */
.header-tags {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1.4rem;
}

.htag {
  font-size: .72rem;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: bold;
  border: 2px solid transparent;
}
.htag-red    { background: rgba(255,59,59,.15);  border-color: var(--red);    color: var(--red); }
.htag-yellow { background: rgba(255,230,0,.15);  border-color: var(--yellow); color: var(--yellow); }
.htag-cyan   { background: rgba(0,245,255,.1);   border-color: var(--cyan);   color: var(--cyan); }
.htag-green  { background: rgba(57,255,20,.1);   border-color: var(--green);  color: var(--green); }

/* cta row */
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn-jp {
  padding: .7rem 1.3rem;
  border: 2px solid #000;
  font-family: var(--font-main);
  font-size: .85rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
  transition: transform .1s, box-shadow .1s;
  line-height: 1.4;
  text-align: center;
}
.btn-jp:hover  { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 #000; }
.btn-jp:active { transform: translate(2px,2px);   box-shadow: 2px 2px 0 #000; }
.btn-r { background: var(--red);    color: #fff; }
.btn-g { background: var(--green);  color: #000; }
.btn-b { background: var(--cyan);   color: #000; }

/* avatar */
.header-right { flex-shrink: 0; }

.avatar-box {
  position: relative;
  width: 200px; height: 200px;
}

.avatar-face {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #1a0a2e, #0a0a14);
  border: 4px solid var(--pink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 0 30px var(--pink), inset 0 0 20px rgba(0,0,0,.5);
  animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
  0%,100% { box-shadow: 0 0 30px var(--pink); }
  50%      { box-shadow: 0 0 50px var(--cyan); }
}

.face-main {
  font-family: var(--font-main);
  font-size: 1.4rem;
  color: var(--yellow);
  text-shadow: 0 0 10px var(--yellow);
}

.avatar-label {
  font-size: .7rem;
  color: var(--muted);
  margin-top: .3rem;
  font-family: var(--font-main);
}

.deco-words span {
  position: absolute;
  font-family: var(--font-main);
  font-size: .8rem;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  animation: decoFloat 3s ease-in-out infinite;
}

.deco-words span:nth-child(2) { animation-delay: .5s; color: var(--yellow); }
.deco-words span:nth-child(3) { animation-delay: 1s;  color: var(--green); }
.deco-words span:nth-child(4) { animation-delay: 1.5s;color: var(--cyan); }
.deco-words span:nth-child(5) { animation-delay: .3s; color: var(--pink); }

@keyframes decoFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(3deg); }
}

.avatar-stamp {
  position: absolute;
  bottom: 5px; right: -5px;
  background: var(--yellow);
  color: #000;
  font-size: .65rem;
  font-weight: bold;
  padding: 3px 8px;
  border: 2px solid #000;
  font-family: var(--font-main);
  transform: rotate(-8deg);
  box-shadow: 2px 2px 0 #000;
}

/* ========== NAV ========== */
#nav {
  position: sticky; top: 0; z-index: 200;
  background: #0e0e20;
  border-bottom: 2px solid var(--green);
  display: flex; align-items: center;
  justify-content: center; gap: 1rem;
  padding: .7rem 2rem;
  flex-wrap: wrap;
}

.nlink {
  color: var(--txt);
  text-decoration: none;
  font-family: var(--font-main);
  font-size: .85rem;
  padding: .4rem 1rem;
  border: 2px solid transparent;
  transition: all .2s;
  position: relative;
}

.nlink::after {
  content: attr(data-tip);
  position: absolute;
  top: -28px; left: 50%;
  transform: translateX(-50%);
  font-size: .85rem;
  opacity: 0;
  transition: opacity .2s, top .2s;
  white-space: nowrap;
  color: var(--yellow);
  pointer-events: none;
}

.nlink:hover {
  color: var(--green);
  border-color: var(--green);
  text-shadow: 0 0 8px var(--green);
}
.nlink:hover::after { opacity: 1; top: -34px; }

.nav-aa {
  font-size: 1.1rem;
  color: var(--yellow);
  animation: navBounce 1.2s ease infinite;
}

@keyframes navBounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* ========== SECTIONS ========== */
.sec {
  padding: 5rem 5vw;
  max-width: 1100px;
  margin: 0 auto;
}

.sec-dark {
  background: #0e0e1e;
  max-width: 100%;
  padding: 5rem 5vw;
}

.sec-dark > .sec-title,
.sec-dark > .works-grid,
.sec-dark > .voices-grid {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.sec-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem,3.5vw,2.4rem);
  text-align: center;
  margin-bottom: 3rem;
  text-shadow: 2px 2px 0 rgba(0,0,0,.5);
}

.rainbow-t {
  background: linear-gradient(90deg,#ff3b3b,#ff8c00,#ffe600,#39ff14,#00f5ff,#ff2d78);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; background-size: 200%;
  animation: rainbowShift 3s linear infinite;
}

@keyframes rainbowShift {
  0% { background-position: 0%; }
  100% { background-position: 200%; }
}

/* ========== SKILLS GRID ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.scard {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 1.4rem;
  transition: transform .25s;
}
.scard:hover { transform: rotate(-1deg) scale(1.02); }

.scard-cyan  { border-color: var(--cyan);   }
.scard-yellow{ border-color: var(--yellow); }
.scard-red   { border-color: var(--red);    }
.scard-pink  { border-color: var(--pink);   }

.scard-head {
  font-family: var(--font-head);
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--cyan);
}

/* skill bars */
.sbars { display: flex; flex-direction: column; gap: .6rem; }

.sbar-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
}

.sbar-row > span:first-child { width: 120px; flex-shrink: 0; }

.sbar {
  flex: 1; height: 16px;
  background: #222;
  border: 2px solid #333;
  border-radius: 3px;
  overflow: hidden;
}

.sfill {
  height: 100%;
  width: 0%;
  background: var(--c, var(--green));
  transition: width 1.6s cubic-bezier(.4,0,.2,1);
  border-radius: 2px;
}

.sfill.run { width: var(--w, 0%); }
.slabel { font-size: .7rem; color: var(--muted); white-space: nowrap; }

/* なんでやねんカード */
.nande-box { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .8rem; }

.nande-row {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem; border-radius: 4px;
  font-size: .85rem; border: 2px solid #333;
}

.bad-row  { background: #1a0a0a; border-color: var(--red); }
.good-row { background: #0a1a0a; border-color: var(--green); }

.nd-face { font-size: 1.5rem; flex-shrink: 0; font-family: var(--font-main); }
.nande-arrow { text-align: center; font-size: .75rem; color: var(--yellow); font-weight: bold; }
.nande-note  { font-size: .72rem; color: var(--muted); text-align: center; }

/* stonks chart */
.stonks-chart {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  height: 130px;
  border-left: 2px solid #444;
  border-bottom: 2px solid #444;
  padding: 0 .5rem;
  margin-bottom: .6rem;
}

.stbar {
  flex: 1;
  background: var(--red);
  height: var(--h, 20%);
  border-radius: 3px 3px 0 0;
  position: relative;
  transition: height 1.2s cubic-bezier(.4,0,.2,1);
  animation: barLoad 1s ease both;
}

.stbar-up { background: var(--green) !important; }

.stbar::after {
  content: attr(data-day);
  position: absolute;
  bottom: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .6rem;
  white-space: nowrap;
  color: var(--muted);
}

@keyframes barLoad {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.stonks-note {
  font-size: .75rem;
  color: var(--yellow);
  text-align: center;
  margin-top: 1.5rem;
}

/* genjitsu */
.genjitsu {
  text-align: center;
  padding: .8rem;
  background: #100808;
  border-radius: 4px;
  margin-bottom: .8rem;
  border: 1px solid var(--pink);
}

.gj-aa {
  font-family: var(--font-main);
  font-size: 1.5rem;
  color: var(--yellow);
  margin-bottom: .5rem;
}

.gj-fire {
  font-size: 1rem;
  letter-spacing: -4px;
  animation: flicker .4s ease infinite alternate;
}

@keyframes flicker {
  from { filter: brightness(1); }
  to   { filter: brightness(1.4) drop-shadow(0 0 6px orange); }
}

.gj-quote {
  font-style: italic;
  font-size: .8rem;
  color: var(--muted);
  margin-top: .4rem;
}

.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; }

.tpill {
  background: #1a1a2e;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .72rem;
  color: var(--cyan);
}

/* ========== WORKS GRID ========== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.wcard {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 1.4rem;
  transition: transform .3s, box-shadow .3s;
}

.wcard:hover {
  transform: translateY(-6px) rotate(.4deg);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}

.wcard-cyan   { border-color: var(--cyan); }
.wcard-green  { border-color: var(--green); }
.wcard-pink   { border-color: var(--pink); }
.wcard-yellow { border-color: var(--yellow); }

.wcard-top {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: .8rem;
}

.wemoji { font-size: 1.8rem; }

.wbadge {
  font-size: .65rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-family: var(--font-main);
}
.badge-cyan   { background: var(--cyan);   color: #000; }
.badge-green  { background: var(--green);  color: #000; }
.badge-pink   { background: var(--pink);   color: #fff; }
.badge-yellow { background: var(--yellow); color: #000; }

.wcard h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: .6rem;
}

.wcard p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: .8rem;
}

.wstack { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .8rem; }

.wstack code {
  background: #1a1a2e;
  border: 1px solid #333;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: .7rem;
  color: var(--green);
  font-family: var(--font-main);
}

.wbtns { display: flex; gap: .5rem; }

.wbtn {
  padding: .4rem .9rem;
  background: #1a1a2e;
  border: 2px solid #333;
  color: var(--txt);
  font-family: var(--font-main);
  font-size: .78rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all .2s;
}
.wbtn:hover { background: var(--yellow); color: #000; border-color: var(--yellow); }

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%; transform: translateX(-50%);
  top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--pink), var(--cyan));
}

.tl-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  position: relative;
}

.tl-l { justify-content: flex-end; padding-right: calc(50% + 3rem); }
.tl-r { justify-content: flex-start; padding-left: calc(50% + 3rem); }

.tl-dot {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  font-size: 1.4rem;
  z-index: 2;
  background: var(--bg); border-radius: 50%;
  padding: 2px;
}

.tl-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
  max-width: 340px;
  transition: transform .2s;
}
.tl-card:hover { transform: scale(1.02); }

.tl-date {
  font-size: .7rem;
  color: var(--cyan);
  margin-bottom: .5rem;
}

.tl-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: .3rem;
}

.tl-card h4 {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .7rem;
}

.aa-sm { font-family: var(--font-main); font-size: .9rem; }

.tl-card ul {
  list-style: none;
  font-size: .82rem;
  line-height: 1.8;
  margin-bottom: .8rem;
}
.tl-card ul li::before { content: '→ '; color: var(--green); }

.tl-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 3px;
}
.tl-red    { background: var(--red);    color: #fff; }
.tl-yellow { background: var(--yellow); color: #000; }
.tl-green  { background: var(--green);  color: #000; }

/* ========== VOICES ========== */
.voices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px,1fr));
  gap: 1.5rem;
}

.voice {
  background: #111124;
  border-left: 4px solid var(--pink);
  padding: 1.4rem;
  border-radius: 0 8px 8px 0;
  font-size: .88rem;
  line-height: 1.7;
  position: relative;
  transition: transform .2s;
}
.voice:hover { transform: translateX(4px); }

.voice::before {
  content: '"';
  font-size: 4rem;
  color: var(--pink);
  opacity: .2;
  position: absolute;
  top: -10px; left: 10px;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.voice p     { color: var(--muted); margin-bottom: .8rem; font-style: italic; }
.voice footer { font-size: .78rem; color: var(--cyan); }

/* ========== CONTACT ========== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 880px;
  margin: 0 auto;
}

.seiza-box {
  background: var(--card);
  border: 2px solid var(--yellow);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 0 20px rgba(255,230,0,.1);
}

.seiza-aa {
  font-family: var(--font-main);
  font-size: 2rem;
  color: var(--yellow);
  text-shadow: 0 0 12px var(--yellow);
  margin-bottom: .5rem;
  animation: seizaShake 3s ease-in-out infinite;
}

@keyframes seizaShake {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.seiza-msg { font-size: .9rem; line-height: 1.6; }
.small { font-size: .8rem; }
.tiny  { font-size: .65rem; }

.contact-resp {
  background: #0a1a0a;
  border: 2px solid var(--green);
  border-radius: 4px;
  padding: 1rem;
  font-size: .85rem;
  margin-bottom: 1rem;
  animation: slideIn .3s ease;
  line-height: 1.6;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contact-choices {
  display: flex; flex-direction: column; gap: .6rem;
}

.cbtn {
  padding: .7rem 1rem;
  border: 2px solid #000;
  font-family: var(--font-main);
  font-size: .82rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 3px 3px 0 #000;
  text-align: left;
  transition: transform .1s;
}
.cbtn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #000; }

.cbtn-a { background: var(--cyan);   color: #000; }
.cbtn-b { background: var(--yellow); color: #000; }
.cbtn-c { background: #333;          color: var(--txt); }

/* contact links */
.contact-right { display: flex; flex-direction: column; gap: .8rem; }

.clink {
  display: flex; align-items: center; gap: 1rem;
  color: var(--txt);
  text-decoration: none;
  padding: .8rem 1rem;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 8px;
  transition: all .2s;
  font-size: .85rem;
}
.clink:hover {
  border-color: var(--cyan);
  transform: translateX(6px);
  color: var(--cyan);
}
.clink > span:first-child { font-size: 1.4rem; }
.clink small { color: var(--muted); font-size: .72rem; }

/* ========== FOOTER ========== */
#footer {
  background: #050510;
  border-top: 3px solid var(--pink);
  padding: 2.5rem;
  text-align: center;
}

.footer-inner { max-width: 900px; margin: 0 auto; }

.footer-aa {
  font-family: var(--font-main);
  font-size: 1.5rem;
  color: var(--yellow);
  text-shadow: 0 0 12px var(--yellow);
  margin-bottom: .8rem;
}

#footer p {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .4rem;
  line-height: 1.7;
}

.footer-emotes {
  font-family: var(--font-main);
  font-size: .9rem;
  margin-top: 1rem;
  color: var(--cyan);
  letter-spacing: .2rem;
  animation: emoteWave 2s ease-in-out infinite;
}

@keyframes emoteWave {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ========== SECRET BTN ========== */
#secret-btn {
  position: fixed;
  bottom: 20px; right: 20px;
  background: none;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-family: var(--font-main);
  font-size: .85rem;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 999;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(255,230,0,.3);
  animation: secretPulse 2s ease infinite;
}

@keyframes secretPulse {
  0%,100% { box-shadow: 0 0 12px rgba(255,230,0,.3); }
  50%      { box-shadow: 0 0 24px rgba(255,230,0,.7); }
}

/* ========== KONAMI ========== */
#konami-ov {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
}

.konami-box {
  text-align: center;
  font-family: var(--font-main);
  padding: 2.5rem;
  border: 3px solid var(--yellow);
  background: var(--card);
  max-width: 400px;
  box-shadow: 0 0 40px rgba(255,230,0,.4);
}

.konami-aa {
  font-size: 1.2rem;
  color: var(--yellow);
  margin-bottom: 1rem;
  text-shadow: 0 0 12px var(--yellow);
}

.konami-box h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.konami-box p {
  margin-bottom: .6rem;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.7;
}

.konami-box button {
  margin-top: 1rem;
  padding: .7rem 2rem;
  background: var(--yellow);
  color: #000;
  border: 2px solid #000;
  font-family: var(--font-main);
  font-size: .85rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
}

/* ========== NICO COMMENT LAYER ========== */
#nico-layer {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 500;
  overflow: hidden;
}

.nico-comment {
  position: absolute;
  right: -100%;
  white-space: nowrap;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: bold;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
  animation: nicoScroll linear forwards;
  pointer-events: none;
}

@keyframes nicoScroll {
  from { right: -300px; }
  to   { right: 110vw; transform: translateX(100%); }
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--card);
  border: 2px solid var(--yellow);
  color: var(--txt);
  padding: .7rem 1.4rem;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: .85rem;
  font-weight: bold;
  z-index: 9999;
  opacity: 0;
  transition: all .3s;
  box-shadow: 0 4px 20px rgba(0,0,0,.5), 0 0 12px rgba(255,230,0,.2);
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== SCROLL ANIMATION ========== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--pink), var(--cyan));
  border-radius: 4px;
}

/* ========== SELECTION ========== */
::selection { background: var(--pink); color: #fff; }

/* ========== RESPONSIVE ========== */
@media (max-width: 700px) {
  .header-inner { flex-direction: column; }
  .avatar-box { width: 160px; height: 160px; }

  .timeline::before { left: 1.5rem; }
  .tl-l, .tl-r {
    padding: 0 0 0 3.5rem;
    justify-content: flex-start;
  }
  .tl-dot { left: 1.5rem; transform: translateX(-50%); }

  .contact-wrap { grid-template-columns: 1fr; }
}
