/* ============================================================
   Y2K Cyber Editorial — Daily Journal
   Lime green base + red pixel typography + 3D iridescent decor
   ============================================================ */

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

:root {
    --bg-green: #b8dc3c;
    --bg-yellow: #e8e54a;
    --bg-mist: #cee85a;
    --accent-red: #c8202a;
    --accent-red-deep: #8a1219;
    --white: #ffffff;
    --cream: #fdfbe8;
    --marble-purple: #9b7bb8;
    --marble-pink: #ff9ec7;
    --marble-cyan: #88d9e8;
    --text-dark: #1a1a1a;
    --text-soft: #3a3a3a;
    --line: rgba(26, 26, 26, 0.18);
    --shadow-card: 0 4px 0 rgba(26, 26, 26, 0.18);
}

@keyframes float-y {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50%      { transform: translateY(-14px) rotate(calc(var(--rot, 0deg) + 4deg)); }
}
@keyframes float-y-soft {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50%      { transform: translateY(-8px) rotate(calc(var(--rot, 0deg) - 3deg)); }
}
@keyframes dot-blink {
    0%, 80%, 100% { opacity: 0; }
    40%           { opacity: 1; }
}
@keyframes fade-up {
    0%   { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes shift-bg {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
@keyframes particle-fly {
    0%   { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; }
}

html, body { height: 100%; }

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        linear-gradient(135deg, var(--bg-green) 0%, var(--bg-yellow) 100%);
    background-size: 200% 200%;
    animation: shift-bg 30s ease infinite;
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

/* fine grid overlay + grain */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 32px 32px;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.18'/></svg>");
    opacity: 0.4;
    mix-blend-mode: multiply;
}

/* ============================================================
   Loader
   ============================================================ */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-green);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-text {
    font-family: 'VT323', 'Silkscreen', monospace;
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 400;
    color: var(--accent-red);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    text-shadow: 3px 3px 0 var(--text-dark);
}
.loader-dots {
    display: inline-flex;
    margin-left: 0.4em;
    gap: 0.05em;
    width: 1.6em;
}
.loader-dots span {
    display: inline-block;
    opacity: 0;
    animation: dot-blink 1.2s infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ============================================================
   3D Decorative Objects
   ============================================================ */
.deco {
    position: fixed;
    pointer-events: none;
    z-index: 3;
    user-select: none;
}
.deco-heart {
    top: 14%;
    right: 4%;
    font-size: 110px;
    line-height: 1;
    background: conic-gradient(from 120deg,
        var(--marble-purple), var(--bg-green),
        var(--marble-pink), var(--marble-purple),
        var(--marble-cyan), var(--marble-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter:
        drop-shadow(4px 4px 0 var(--text-dark))
        drop-shadow(0 8px 16px rgba(155, 123, 184, 0.6));
    --rot: -12deg;
    animation: float-y 5s ease-in-out infinite;
}
.deco-bubble {
    bottom: 8%;
    left: 3%;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, white 0%, transparent 40%),
        radial-gradient(circle at 70% 65%, var(--marble-cyan) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.4), rgba(155,123,184,0.3) 60%, transparent 100%);
    border: 2px solid white;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.18));
    --rot: 8deg;
    animation: float-y-soft 6s ease-in-out infinite;
}
/* SVG Y2K stamps */
.stamp {
    position: fixed;
    pointer-events: none;
    z-index: 3;
    user-select: none;
    filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, 0.4));
}
.stamp-chrome-star {
    top: 18%;
    right: 3%;
    width: 78px;
    height: 78px;
    --rot: -10deg;
    animation: float-y 5s ease-in-out infinite;
}
.stamp-cyber-flower {
    bottom: 14%;
    left: 6%;
    width: 88px;
    height: 88px;
    --rot: 8deg;
    animation: float-y-soft 6s ease-in-out infinite;
}
.stamp-checker-heart {
    top: 44%;
    right: 13%;
    width: 70px;
    height: 64px;
    --rot: 14deg;
    animation: float-y 4.5s ease-in-out infinite;
}
.stamp-sparkle {
    top: 30%;
    left: 5%;
    width: 58px;
    height: 58px;
    --rot: -15deg;
    animation: float-y-soft 5.5s ease-in-out infinite;
}

@media (max-width: 900px) {
    .deco-heart { font-size: 70px; right: 3%; }
    .deco-bubble { width: 80px; height: 80px; }
    .stamp-chrome-star { width: 56px; height: 56px; top: 12%; }
    .stamp-cyber-flower { width: 64px; height: 64px; bottom: 8%; }
    .stamp-checker-heart { width: 50px; height: 46px; right: 4%; top: 30%; }
    .stamp-sparkle { width: 42px; height: 42px; }
}

/* ============================================================
   Hero
   ============================================================ */
.site-header {
    position: relative;
    z-index: 5;
    padding: 80px 5vw;
    min-height: 70vh;
    animation: fade-up 0.7s ease 0.2s both;
    overflow: hidden;
}

/* ===== Decoration Layer (chrome PNG objects) ===== */
.decoration-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.deco-item {
    position: absolute;
    will-change: transform;
}
.deco-image {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(8px 12px 16px rgba(0, 0, 0, 0.25));
}
/* Hero decorations - hugging the left/right edges, bleeding off-screen */
.deco-h1 { top: -3%;      left: -7%;     width: clamp(160px, 20vw, 260px); transform: rotate(-12deg); }
.deco-h2 { top: -2%;      right: -6%;    width: clamp(130px, 15vw, 210px); transform: rotate(14deg); }
.deco-h3 { top: 34%;      left: -8%;     width: clamp(140px, 17vw, 230px); transform: rotate(-4deg); }
.deco-h4 { top: 42%;      right: -6%;    width: clamp(120px, 14vw, 200px); transform: rotate(10deg); }
.deco-h5 { bottom: -60px; left: -5%;     width: clamp(150px, 18vw, 240px); transform: rotate(8deg); }
.deco-h6 { bottom: -40px; right: -7%;    width: clamp(140px, 16vw, 220px); transform: rotate(-11deg); }
.deco-h7 { bottom: 18%;   left: 16%;     width: clamp(80px, 9vw, 130px);  transform: rotate(-16deg); }
.deco-h8 { top: 6%;       right: 22%;    width: clamp(70px, 8vw, 110px);  transform: rotate(15deg); }

/* Content decorations - sprinkled along the feed/widgets */
.decoration-layer-content {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
/* Stay fully inside the container — no negative offsets */
.deco-c1 { top: 0;      right: 8px;   width: clamp(70px, 8vw, 110px); transform: rotate(10deg); }
.deco-c2 { top: 12%;    left: 8px;    width: clamp(70px, 8vw, 110px); transform: rotate(-7deg); }
.deco-c3 { top: 32%;    right: 8px;   width: clamp(70px, 8vw, 110px); transform: rotate(-12deg); }
.deco-c4 { top: 48%;    left: 8px;    width: clamp(70px, 8vw, 110px); transform: rotate(8deg); }
.deco-c5 { top: 68%;    right: 8px;   width: clamp(70px, 8vw, 110px); transform: rotate(13deg); }
.deco-c6 { bottom: 8px; left: 8px;    width: clamp(70px, 8vw, 110px); transform: rotate(-9deg); }

.content-wrap { position: relative; }

@keyframes deco-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-20px) rotate(2deg); }
}
@keyframes deco-float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-30px) rotate(-3deg); }
}
@keyframes deco-rotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50%      { transform: rotate(15deg) scale(1.05); }
}
@keyframes deco-wiggle {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50%      { transform: rotate(3deg) translateY(-10px); }
}
.anim-float       { animation: deco-float 5s ease-in-out infinite; }
.anim-float-slow  { animation: deco-float-slow 7s ease-in-out infinite; }
.anim-rotate      { animation: deco-rotate 8s ease-in-out infinite; }
.anim-wiggle      { animation: deco-wiggle 4s ease-in-out infinite; }

@media (max-width: 768px) {
    .deco-h3, .deco-h4, .deco-h7, .deco-h8 { display: none; }
    .deco-c2, .deco-c4, .deco-c6 { display: none; }
    .deco-h1 { width: 130px; }
    .deco-h2 { width: 90px; }
    .deco-h5 { width: 110px; bottom: -30px; }
    .deco-h6 { width: 80px; }
}
@media (prefers-reduced-motion: reduce) {
    .anim-float, .anim-float-slow, .anim-rotate, .anim-wiggle { animation: none; }
}

/* hero content sits above decoration */
.hero { position: relative; z-index: 10; }
.hero {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* ===== Profile Swiper (matching-app style) ===== */
.profile-swiper {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    user-select: none;
}
.indicator-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    padding: 0 4px;
}
.indicator-segment {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    transition: background 0.3s;
}
.indicator-segment.past { background: var(--accent-red); }
.indicator-segment.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-red);
    transform: translateX(-100%);
    animation: fillBar 4s linear forwards;
}
@keyframes fillBar {
    to { transform: translateX(0); }
}

.card-container {
    position: relative;
    aspect-ratio: 3 / 4;
    perspective: 1000px;
}
.profile-card {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    overflow: hidden;
    cursor: grab;
    border: 3px solid var(--text-dark);
    box-shadow: 8px 8px 0 var(--accent-red), 8px 8px 0 4px var(--text-dark);
    background: var(--bg-mist);
    touch-action: pan-y;
    transition: transform 0.32s cubic-bezier(.2,.8,.3,1.2), opacity 0.28s ease;
}
.profile-card.dragging { transition: none; cursor: grabbing; }
.profile-card.exit-left  { transform: translateX(-460px) rotate(-18deg); opacity: 0; }
.profile-card.exit-right { transform: translateX(460px) rotate(18deg); opacity: 0; }
.profile-card.enter-from-right { transform: translateX(460px) rotate(18deg); opacity: 0; transition: none; }
.profile-card.enter-from-left  { transform: translateX(-460px) rotate(-18deg); opacity: 0; transition: none; }

.profile-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(0.3) hue-rotate(40deg) saturate(1.4) contrast(1.1);
    pointer-events: none;
}

.card-caption {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 999px;
    border: 2px solid var(--accent-red);
    pointer-events: none;
}
.caption-number, .caption-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: var(--white);
    letter-spacing: 0.1em;
}
.caption-text { color: var(--accent-red); }

.swipe-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.65);
    padding: 12px 22px;
    border-radius: 999px;
    border: 2px solid var(--accent-red);
    pointer-events: none;
    text-shadow: 2px 2px 0 var(--accent-red);
    animation: hint-fade 4.5s ease forwards;
}
@keyframes hint-fade {
    0%, 50%   { opacity: 1; }
    100%      { opacity: 0; visibility: hidden; }
}

.like-stamp {
    position: absolute;
    top: 22px;
    font-family: 'Press Start 2P', monospace;
    font-size: 22px;
    padding: 10px 18px;
    border: 4px solid var(--accent-red);
    border-radius: 8px;
    color: var(--accent-red);
    background: rgba(255, 255, 255, 0.92);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    text-shadow: 2px 2px 0 var(--text-dark);
    z-index: 5;
}
.stamp-like { right: 18px; transform: rotate(14deg); }
.stamp-nope { left: 18px; transform: rotate(-14deg); border-color: var(--text-dark); color: var(--text-dark); }

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--text-dark);
    box-shadow: 4px 4px 0 var(--accent-red);
    font-family: 'Press Start 2P', monospace;
    font-size: 20px;
    color: var(--accent-red);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 10;
    line-height: 1;
    padding: 0;
}
.nav-button:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 6px 6px 0 var(--accent-red);
}
.nav-button:active {
    transform: translateY(-50%) scale(0.94);
    box-shadow: 2px 2px 0 var(--accent-red);
}
.nav-prev { left: -22px; }
.nav-next { right: -22px; }

@media (max-width: 640px) {
    .nav-button { display: none; }
    .nav-prev, .nav-next { display: none; }
}

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--accent-red);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}
.dot.active {
    background: var(--accent-red);
    transform: scale(1.3);
    box-shadow: 0 0 0 2px var(--text-dark);
}
.dot:hover { transform: scale(1.18); }

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 28px;
}
.hero-content > * { margin: 0; }

/* === Title block (3 lines) === */
.hero-title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.hero-eyebrow {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(10px, 1vw, 14px);
    color: var(--accent-red);
    letter-spacing: 0.15em;
    line-height: 1.4;
}
.hero-name-jp {
    font-family: 'DotGothic16', monospace;
    font-size: clamp(28px, 3.5vw, 48px);
    color: var(--accent-red);
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    text-shadow: 3px 3px 0 #000;
    white-space: nowrap;
}
.hero-title-main {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(72px, 10vw, 140px);
    color: var(--accent-red);
    letter-spacing: 0.05em;
    line-height: 1;
    text-shadow: 5px 5px 0 #000;
    white-space: nowrap;
    font-weight: 400;
}

/* === Description block (tagline + divider + bio) === */
.hero-description-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 520px;
}
.hero-tagline {
    font-family: 'DotGothic16', monospace;
    font-size: clamp(16px, 1.8vw, 22px);
    color: var(--accent-red);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 0 #000;
}
.hero-divider {
    width: 80px;
    height: 0;
    border-top: 2px dashed var(--accent-red);
    margin: 4px 0;
}
.hero-bio {
    font-family: 'DotGothic16', monospace;
    font-size: clamp(13px, 1.3vw, 16px);
    color: var(--accent-red);
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: 0.03em;
    text-shadow: none;
    white-space: pre-wrap;
}

/* ============================================================
   Social Icons
   ============================================================ */
.hero-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
}
.hero-socials::before {
    content: "▶ FOLLOW";
    font-family: 'VT323', monospace;
    font-size: 14px;
    letter-spacing: 0.16em;
    color: var(--text-dark);
    margin-right: 12px;
}
.social-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid var(--text-dark);
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s ease;
    box-shadow: 3px 3px 0 var(--text-dark);
}
.social-icon svg { width: 19px; height: 19px; display: block; }
.social-icon:hover {
    background: var(--accent-red);
    color: var(--white);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--text-dark);
}

/* ============================================================
   Layout
   ============================================================ */
.content-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 60px 40px 80px;
    position: relative;
    z-index: 5;
}

/* ============================================================
   Feed
   ============================================================ */
.feed-wrap { animation: fade-up 0.7s ease 0.4s both; }

.feed-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--text-dark);
    gap: 14px;
    flex-wrap: wrap;
}
.feed-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.feed-title-num {
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: var(--accent-red);
    letter-spacing: 0.18em;
}
.feed-title {
    font-family: 'VT323', 'Silkscreen', monospace;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    color: var(--accent-red);
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-shadow: 3px 3px 0 var(--text-dark);
}
.feed-search {
    padding: 9px 18px;
    background: var(--white);
    border: 2px solid var(--text-dark);
    border-radius: 999px;
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: var(--text-dark);
    width: 240px;
    transition: all 0.2s;
    letter-spacing: 0.06em;
    box-shadow: 3px 3px 0 var(--text-dark);
}
.feed-search::placeholder { color: var(--text-soft); }
.feed-search:focus {
    outline: none;
    border-color: var(--accent-red);
}

.feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feed-card {
    background: var(--white);
    padding: 22px;
    cursor: pointer;
    border: 2px solid var(--text-dark);
    border-radius: 16px;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 5px 5px 0 var(--text-dark);
    position: relative;
    animation: fade-up 0.5s ease both;
}
.feed-card:hover {
    transform: translate(-3px, -5px);
    box-shadow: 10px 10px 0 var(--text-dark);
}
.feed-card:hover .feed-card-cover img {
    transform: scale(1.05);
}

/* date as small badge top-left, larger pixel font */
.feed-card-date {
    display: flex;
    align-items: baseline;
    gap: 8px;
    border: none;
    padding: 0;
    margin: 0;
    font-family: 'VT323', monospace;
}
.feed-card-day {
    font-family: 'VT323', monospace;
    font-size: 44px;
    color: var(--accent-red);
    line-height: 0.9;
    font-weight: 400;
    letter-spacing: -0.03em;
}
.feed-card-month {
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: var(--text-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.feed-card-year {
    font-family: 'VT323', monospace;
    font-size: 12px;
    color: var(--text-soft);
    letter-spacing: 0.1em;
    margin-left: auto;
}

.feed-card-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.feed-card-cover {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-mist);
    border: 2px solid var(--text-dark);
}
.feed-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.feed-card-cover-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--accent-red);
    color: var(--white);
    padding: 3px 9px;
    font-family: 'VT323', monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
    border-radius: 4px;
}

.feed-card-title {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.feed-card-body {
    font-family: 'VT323', 'Noto Sans JP', monospace;
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
    letter-spacing: 0.02em;
}
.feed-card-body a, .reader-body a {
    color: var(--accent-red);
    text-decoration: none;
    border-bottom: 1.5px solid var(--accent-red);
    word-break: break-all;
    font-weight: 700;
    transition: all 0.2s;
}
.feed-card-body a:hover, .reader-body a:hover {
    background: var(--accent-red);
    color: var(--white);
}

.feed-card-meta {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.feed-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feed-tag {
    font-family: 'VT323', monospace;
    font-size: 13px;
    color: var(--text-dark);
    background: var(--bg-green);
    padding: 2px 9px;
    border: 1.5px solid var(--text-dark);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
}
.feed-likes {
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: var(--accent-red);
    letter-spacing: 0.06em;
    font-weight: 400;
    background:
        radial-gradient(circle at 30% 30%, white 0%, transparent 40%),
        linear-gradient(135deg, var(--accent-red) 0%, var(--marble-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(1px 1px 0 var(--text-dark));
}

.feed-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-dark);
    padding: 80px 0;
    font-family: 'VT323', monospace;
    font-size: 22px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ============================================================
   Widgets row (Calendar + Popular below feed)
   ============================================================ */
.widgets-row {
    margin-top: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    animation: fade-up 0.7s ease 0.6s both;
}

.side-block {
    background: var(--white);
    padding: 22px;
    border: 2px solid var(--text-dark);
    border-radius: 16px;
    box-shadow: 5px 5px 0 var(--text-dark);
}

.side-title {
    font-family: 'VT323', 'Silkscreen', monospace;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--accent-red);
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--text-dark);
    margin-bottom: 18px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    text-shadow: 2px 2px 0 var(--text-dark);
}
.side-title-en {
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: var(--text-soft);
    letter-spacing: 0.1em;
    text-shadow: none;
}

/* ============================================================
   Calendar
   ============================================================ */
.calendar-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
}
.cal-nav {
    width: 38px;
    height: 38px;
    border: 2px solid var(--text-dark);
    background: var(--white);
    color: var(--accent-red);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'VT323', monospace;
    line-height: 1;
    border-radius: 50%;
    box-shadow: 3px 3px 0 var(--text-dark);
}
.cal-nav:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--text-dark);
    background: var(--accent-red);
    color: var(--white);
}
.cal-label {
    text-align: center;
    font-family: 'VT323', monospace;
    font-weight: 400;
    font-size: 24px;
    letter-spacing: 0.08em;
    color: var(--text-dark);
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    font-family: 'VT323', monospace;
    font-size: 14px;
    font-weight: 400;
}
.cal-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all 0.15s;
    position: relative;
    border-radius: 8px;
}
.cal-cell.head {
    color: var(--accent-red);
    font-size: 12px;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.cal-cell.has-entry {
    color: var(--white);
    font-weight: 400;
    background: var(--accent-red);
    cursor: pointer;
    border: 1.5px solid var(--text-dark);
}
.cal-cell.has-entry:hover {
    background: var(--text-dark);
}
.cal-cell.today {
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    font-weight: 700;
}
.cal-cell.today.has-entry {
    color: var(--white);
}

/* ============================================================
   Popular
   ============================================================ */
.popular-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}
.popular-item {
    cursor: pointer;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
    transition: all 0.2s;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: start;
}
.popular-item:last-child { border-bottom: none; }
.popular-item:hover { padding-left: 6px; background: var(--bg-mist); }
.popular-rank {
    font-family: 'VT323', monospace;
    font-size: 32px;
    color: var(--accent-red);
    line-height: 0.85;
    text-shadow: 2px 2px 0 var(--text-dark);
    grid-row: 1 / span 2;
    align-self: start;
}
.popular-head {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
    grid-column: 2;
    flex-wrap: wrap;
}
.popular-date {
    font-family: 'VT323', monospace;
    font-size: 13px;
    color: var(--text-soft);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.popular-likes {
    font-family: 'VT323', monospace;
    font-size: 13px;
    color: var(--accent-red);
    margin-left: auto;
    font-weight: 700;
}
.popular-preview {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    grid-column: 2;
    font-weight: 700;
}
.popular-empty {
    text-align: center;
    color: var(--text-soft);
    font-size: 14px;
    padding: 24px 0;
    list-style: none;
    font-family: 'VT323', monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    text-align: center;
    padding: 40px 24px 60px;
    color: var(--text-dark);
    font-family: 'VT323', monospace;
    font-size: 14px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    position: relative;
    z-index: 5;
}

/* ============================================================
   Reader Modal
   ============================================================ */
.reader-modal[hidden] { display: none; }
.reader-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.reader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(184, 220, 60, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.reader-card {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    max-width: 720px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 56px 48px 56px;
    border: 2px solid var(--text-dark);
    box-shadow: 12px 12px 0 var(--text-dark);
    animation: fade-up 0.4s ease both;
}
.reader-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: var(--white);
    border: 2px solid var(--text-dark);
    font-family: 'VT323', monospace;
    font-size: 22px;
    color: var(--accent-red);
    cursor: pointer;
    width: 40px;
    height: 40px;
    transition: all 0.2s;
    line-height: 1;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 3px 3px 0 var(--text-dark);
}
.reader-close:hover {
    background: var(--accent-red);
    color: var(--white);
    transform: rotate(90deg);
}

.reader-date {
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: var(--accent-red);
    margin-bottom: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 2px dashed var(--accent-red);
    font-weight: 400;
}
.reader-title {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 28px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}
.reader-title[hidden] { display: none; }
.reader-images {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.reader-images[hidden] { display: none; }
.reader-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    cursor: zoom-in;
    background: var(--bg-mist);
    display: block;
    border: 2px solid var(--text-dark);
    border-radius: 10px;
}
.reader-body {
    font-family: 'VT323', 'Noto Sans JP', monospace;
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.95;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-weight: 400;
    letter-spacing: 0.02em;
}
.reader-tags {
    margin-top: 36px;
    padding: 20px 0 0 0;
    border-top: 2px solid var(--text-dark);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.reader-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-start;
}
.reader-like {
    background: var(--white);
    border: 2px solid var(--text-dark);
    border-radius: 999px;
    padding: 12px 26px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: var(--text-dark);
    transition: all 0.2s;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 var(--text-dark);
}
.reader-like:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text-dark);
    background: var(--accent-red);
    color: var(--white);
}
.reader-like[aria-pressed="true"] {
    background: var(--accent-red);
    color: var(--white);
}
.reader-like .heart { font-size: 20px; line-height: 1; }

/* ============================================================
   Visitor Counter (90s-style top bar)
   ============================================================ */
.visitor-counter {
    position: relative;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-red) 0%, #e8404a 50%, var(--accent-red) 100%);
    border-bottom: 3px solid var(--text-dark);
    z-index: 60;
    overflow: hidden;
}
.visitor-counter::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0.1) 20px
    );
    pointer-events: none;
}
.counter-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 20px;
    flex-wrap: wrap;
}
.counter-label-left {
    font-family: 'Press Start 2P', monospace;
    font-size: 11px;
    color: #ffe600;
    letter-spacing: 0.15em;
    text-shadow: 2px 2px 0 var(--text-dark);
    animation: counter-blink 1.5s ease-in-out infinite;
}
@keyframes counter-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}
.counter-display {
    display: flex;
    gap: 4px;
    background: var(--text-dark);
    padding: 6px 8px;
    border-radius: 6px;
    border: 2px solid #ffe600;
    box-shadow:
        inset 0 0 8px rgba(255, 230, 0, 0.3),
        0 0 0 3px var(--text-dark),
        4px 4px 0 #ffe600;
    position: relative;
}
.counter-display::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.18) 2px,
        rgba(0, 0, 0, 0.18) 3px
    );
    pointer-events: none;
    border-radius: 4px;
}
.counter-digit {
    font-family: 'VT323', 'Press Start 2P', monospace;
    font-size: 28px;
    font-weight: 700;
    color: #00ff66;
    background: rgba(0, 50, 0, 0.5);
    padding: 2px 8px;
    min-width: 24px;
    text-align: center;
    border-radius: 3px;
    line-height: 1;
    text-shadow:
        0 0 4px #00ff66,
        0 0 8px #00ff66,
        0 0 12px rgba(0, 255, 102, 0.5);
}
.counter-label-right {
    font-family: 'DotGothic16', monospace;
    font-size: 13px;
    color: var(--white);
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 0 var(--text-dark);
}
.counter-label-right strong {
    font-family: 'Press Start 2P', monospace;
    color: #ffe600;
    font-size: 14px;
    margin: 0 4px;
    text-shadow: 2px 2px 0 var(--text-dark);
}

@media (max-width: 640px) {
    .counter-inner { gap: 8px; padding: 6px 12px; }
    .counter-label-left, .counter-label-right { font-size: 9px; }
    .counter-digit { font-size: 20px; min-width: 18px; padding: 2px 5px; }
    .counter-label-right strong { font-size: 11px; }
}
@media (max-width: 420px) {
    .counter-label-right { display: none; }
}

/* ============================================================
   Star Rain (background animation)
   ============================================================ */
.star-rain {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}
.star-wrapper {
    position: absolute;
    top: -10%;
    animation: fall-sway linear infinite;
    will-change: transform;
}
@keyframes fall-sway {
    0%   { transform: translateY(-10vh) translateX(0); }
    25%  { transform: translateY(25vh) translateX(28px); }
    50%  { transform: translateY(50vh) translateX(-22px); }
    75%  { transform: translateY(75vh) translateX(24px); }
    100% { transform: translateY(118vh) translateX(0); }
}
.star-spin {
    animation: star-spin linear infinite;
    filter: drop-shadow(2px 2px 0 #000);
    display: block;
}
@keyframes star-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.star-spin svg { display: block; width: 100%; height: 100%; }

@media (max-width: 768px) {
    .star-wrapper:nth-child(n + 21) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .star-rain { display: none; }
}

/* keep main content above star rain */
.site-header, .content-wrap, .site-footer { position: relative; z-index: 5; }

/* ============================================================
   Heart particle (clicked likes)
   ============================================================ */
.heart-particle {
    position: fixed;
    pointer-events: none;
    font-size: 22px;
    color: var(--accent-red);
    z-index: 9000;
    animation: particle-fly 0.9s ease-out forwards;
    text-shadow: 1px 1px 0 var(--text-dark);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .feed { grid-template-columns: repeat(2, 1fr); }
    .hero { grid-template-columns: 1fr; gap: 32px; }
    .hero-photo-wrap { max-width: 360px; margin: 0 auto; }
    .hero-content { text-align: left; }
}
@media (max-width: 760px) {
    .site-header { padding: 32px 18px; }
    .hero-name { font-size: clamp(56px, 16vw, 100px); }
    .content-wrap { padding: 32px 18px 60px; }
    .feed { grid-template-columns: 1fr; gap: 18px; }
    .feed-search { width: 100%; }
    .feed-toolbar { flex-direction: column; align-items: stretch; gap: 14px; }
    .widgets-row { grid-template-columns: 1fr; gap: 18px; }
    .reader-card { padding: 50px 22px 40px; box-shadow: 6px 6px 0 var(--text-dark); }
    .social-icon { width: 60px; height: 60px; box-shadow: 4px 4px 0 var(--text-dark); }
    .social-icon svg { width: 28px; height: 28px; }
    .hero-socials { gap: 14px; }
}
