/* =====================================================
   USUI LAB - Immersive CRT TV Experience
   完全没入型ブラウン管テレビ体験
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=VT323&display=swap');

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
    /* Room */
    --room-dark: #050505;
    --room-glow: #0a0a08;

    /* CRT Colors - not pure black, phosphor off-state */
    --crt-off: #0d0d0d;
    --crt-dark: #0a120a;
    --crt-bg: #071007;

    /* Phosphor colors */
    --phosphor-green: #00ff41;
    --phosphor-amber: #ffb000;
    --phosphor-white: #e8e8e8;

    /* Accent */
    --accent-yellow: #ffd000;
    --accent-red: #ff3333;
    --accent-cyan: #00ffff;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden; /* NO SCROLL - Critical! */
    font-family: 'VT323', 'DotGothic16', monospace;
    background: var(--room-dark);
    color: var(--phosphor-white);
}

/* Retro cursor for screen area */
.screen-container,
.screen-container * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2300ff41' d='M0 0h4v4H0zM4 4h4v4H4zM8 8h4v4H8zM4 8h4v4H4zM0 8h4v4H0z'/%3E%3C/svg%3E") 0 0, auto;
}

/* =====================================================
   TV TERMINAL - Full Screen Container
   ===================================================== */
.tv-terminal {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* 背景は暗め（TV画像が背景を含む） */
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

/* 画面周囲のグロー効果 */
.room-ambient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
    /* TV ONで部屋に緑の光が反射 */
    background: radial-gradient(
        ellipse 80% 70% at 50% 45%,
        rgba(0, 255, 65, 0.05) 0%,
        transparent 50%
    );
}

body.tv-on .room-ambient {
    opacity: 1;
}

/* =====================================================
   CRT MONITOR - 全画面モード（背景兼TV）
   ===================================================== */
.crt-monitor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* TV Frame - 全画面背景として表示 */
.tv-frame-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* cover: 画面全体を埋める（余白なし） */
    background: url('assets/tv-frame.png') center/cover no-repeat;
    z-index: 50;
    pointer-events: none;
}

/* TV ON時は画面からのグローを追加 */
body.tv-on .tv-frame-image {
    filter: drop-shadow(0 0 50px rgba(0, 255, 65, 0.15));
}

/* =====================================================
   SCREEN CONTAINER - Inside TV Frame
   ===================================================== */
.screen-container {
    position: absolute;
    /* TV画像内のスクリーン位置（cover使用） */
    top: 50%;
    left: 49%;
    transform: translate(-50%, -60%);
    width: 56%;
    height: 73%;
    background: var(--crt-off);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
    pointer-events: auto;
}

/* =====================================================
   CRT VISUAL EFFECTS
   ===================================================== */
.crt-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 40;
}

/* Fine scanlines (1px) */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 1px,
        rgba(0, 0, 0, 0.3) 1px,
        rgba(0, 0, 0, 0.3) 2px
    );
    z-index: 41;
}

/* Thick scrolling scanline */
.scanline-thick {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%
    );
    animation: scanlineScroll 8s linear infinite;
    z-index: 42;
}

@keyframes scanlineScroll {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* Screen curvature (bulging glass effect) */
.screen-curve {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse 100% 100% at 50% 50%,
        transparent 0%,
        transparent 70%,
        rgba(0, 0, 0, 0.4) 90%,
        rgba(0, 0, 0, 0.8) 100%
    );
    border-radius: 50% / 10%;
    z-index: 43;
}

/* Vignette */
.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.9);
    z-index: 44;
}

/* Screen flicker */
.screen-flicker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    animation: flicker 0.15s infinite;
    opacity: 0;
    z-index: 45;
}

body.tv-on .screen-flicker {
    opacity: 1;
}

@keyframes flicker {
    0%, 100% { background: transparent; }
    50% { background: rgba(255, 255, 255, 0.01); }
}

/* RGB color shift layer */
.rgb-shift {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 46;
}

body.tv-on .rgb-shift {
    animation: rgbShift 0.1s steps(2) infinite;
    opacity: 0.3;
}

@keyframes rgbShift {
    0% {
        box-shadow:
            inset 1px 0 0 rgba(255, 0, 0, 0.1),
            inset -1px 0 0 rgba(0, 255, 255, 0.1);
    }
    50% {
        box-shadow:
            inset -1px 0 0 rgba(255, 0, 0, 0.1),
            inset 1px 0 0 rgba(0, 255, 255, 0.1);
    }
}

/* Static noise overlay */
.static-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 47;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    mix-blend-mode: overlay;
}

.static-noise.active {
    opacity: 0.8;
    animation: staticJitter 0.05s steps(10) infinite;
}

@keyframes staticJitter {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2%, 1%); }
    50% { transform: translate(1%, -2%); }
    75% { transform: translate(-1%, 2%); }
    100% { transform: translate(2%, -1%); }
}

/* =====================================================
   POWER SEQUENCE ANIMATION
   ===================================================== */
.power-sequence {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--crt-off);
    z-index: 30;
    opacity: 0;
    pointer-events: none;
}

.power-sequence.active {
    opacity: 1;
}

.power-line {
    width: 100%;
    height: 2px;
    background: #fff;
    box-shadow:
        0 0 20px #fff,
        0 0 40px #fff,
        0 0 60px rgba(255, 255, 255, 0.5);
    transform: scaleX(0);
}

.power-sequence.expanding .power-line {
    animation: powerLineExpand 0.3s ease-out forwards;
}

.power-sequence.filling {
    background: #fff;
    animation: powerFill 0.4s ease-out forwards;
}

@keyframes powerLineExpand {
    0% { transform: scaleX(0) scaleY(1); }
    100% { transform: scaleX(1) scaleY(1); }
}

@keyframes powerFill {
    0% {
        background: #fff;
        filter: brightness(2);
    }
    50% {
        background: var(--crt-bg);
        filter: brightness(1.5);
    }
    100% {
        background: var(--crt-bg);
        filter: brightness(1);
        opacity: 0;
    }
}

/* Screen wobble after power on */
body.tv-on .screen-container {
    animation: screenWobble 0.5s ease-out;
}

@keyframes screenWobble {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, -1px); }
}

/* =====================================================
   SCREEN OFF STATE
   ===================================================== */
.screen-off {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--crt-off);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: opacity 0.3s;
}

/* 電源OFF時でもガラスの反射を見せる */
.screen-off::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 40%;
    height: 30%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 60%
    );
    border-radius: 50%;
    pointer-events: none;
}

.crt-dot {
    width: 4px;
    height: 4px;
    background: #222;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(100, 100, 100, 0.3);
}

body.tv-on .screen-off {
    opacity: 0;
    pointer-events: none;
}

/* =====================================================
   VHS UI OVERLAY
   ===================================================== */
.vhs-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    pointer-events: none;
    z-index: 35;
    opacity: 0;
    font-family: 'VT323', monospace;
    color: rgba(255, 255, 255, 0.9);
    /* 控えめな色収差 */
    text-shadow:
        1px 1px 0 rgba(255, 0, 0, 0.3),
        -0.5px -0.5px 0 rgba(0, 255, 255, 0.3);
}

body.tv-on .vhs-ui {
    opacity: 1;
}

.vhs-top {
    display: flex;
    justify-content: space-between;
}

.vhs-rec {
    color: var(--accent-red);
    font-size: 1.2rem;
    letter-spacing: 2px;
    opacity: 0;
}

.vhs-play {
    font-size: 1.2rem;
    letter-spacing: 2px;
    animation: vhsBlink 1s steps(2) infinite;
}

.play-icon {
    display: inline-block;
    animation: playPulse 0.5s ease-in-out infinite;
}

@keyframes vhsBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes playPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.vhs-bottom {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
}

.vhs-mode {
    font-size: 1rem;
    opacity: 0.8;
}

.vhs-counter {
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
}

.vhs-channel {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--accent-yellow);
    text-shadow:
        0 0 10px var(--accent-yellow),
        2px 2px 0 rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.vhs-channel.show {
    opacity: 1;
    animation: chFlash 0.5s ease-out;
}

@keyframes chFlash {
    0% { transform: scale(1.5); opacity: 0; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* VHS Tracking lines */
.vhs-ui::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%
    );
    animation: vhsTracking 6s linear infinite;
    opacity: 0.5;
}

@keyframes vhsTracking {
    0% { top: -5%; }
    100% { top: 105%; }
}

/* =====================================================
   CHANNELS CONTAINER
   ===================================================== */
.channels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.tv-on .channels {
    opacity: 1;
}

.channel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background: var(--crt-bg);
    overflow: hidden;
}

.channel.active {
    display: block;
    animation: channelTuneIn 0.3s ease-out;
}

@keyframes channelTuneIn {
    0% {
        filter: brightness(2) saturate(0);
        transform: scaleY(0.8);
    }
    50% {
        filter: brightness(1.3) saturate(0.5);
        transform: scaleY(1.02);
    }
    100% {
        filter: brightness(1) saturate(1);
        transform: scaleY(1);
    }
}

/* =====================================================
   CHANNEL HEADER (common)
   ===================================================== */
.ch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
}

.ch-number {
    font-size: 1rem;
    color: var(--phosphor-green);
    letter-spacing: 2px;
}

.ch-title {
    font-size: 1.5rem;
    color: var(--accent-yellow);
    text-shadow: 0 0 10px var(--accent-yellow);
    letter-spacing: 3px;
}

.ch-status {
    font-size: 0.9rem;
    color: var(--phosphor-white);
    opacity: 0.7;
}

.ch-status.on-air {
    color: var(--accent-red);
    animation: statusPulse 1s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* =====================================================
   CH 0: STANDBY / WELCOME
   ===================================================== */
.ch-standby {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at center, var(--crt-bg) 0%, #030503 100%);
}

.standby-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.02;
    animation: noiseShift 0.1s steps(5) infinite;
}

@keyframes noiseShift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-1%, 1%); }
    50% { transform: translate(1%, -1%); }
    75% { transform: translate(-0.5%, -0.5%); }
    100% { transform: translate(0.5%, 0.5%); }
}

.standby-content {
    text-align: center;
    z-index: 2;
}

.standby-logo {
    margin-bottom: 40px;
}

.logo-welcome {
    display: block;
    font-size: 1.2rem;
    color: var(--phosphor-green);
    letter-spacing: 8px;
    margin-bottom: 10px;
    animation: textGlow 2s ease-in-out infinite;
}

.logo-main {
    display: block;
    font-size: 4rem;
    color: var(--accent-yellow);
    text-shadow:
        0 0 20px var(--accent-yellow),
        0 0 40px var(--accent-yellow),
        0 0 60px rgba(255, 208, 0, 0.3);
    letter-spacing: 8px;
    animation: logoFlicker 4s ease-in-out infinite;
}

.logo-sub {
    display: block;
    font-family: 'DotGothic16', monospace;
    font-size: 1.2rem;
    color: var(--phosphor-white);
    opacity: 0.7;
    margin-top: 10px;
    letter-spacing: 5px;
}

@keyframes textGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes logoFlicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
}

.standby-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: var(--phosphor-green);
    opacity: 0.6;
    animation: hintBlink 1.5s ease-in-out infinite;
}

.hint-arrow {
    animation: arrowPulse 1s ease-in-out infinite alternate;
}

@keyframes hintBlink {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

@keyframes arrowPulse {
    0% { transform: translateX(-3px); }
    100% { transform: translateX(3px); }
}

.standby-channels {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 2.25rem;
    color: var(--phosphor-white);
    opacity: 0.5;
}

/* =====================================================
   CH 1: PROJECTS
   ===================================================== */
/* =====================================================
   CH 2: BLOG  — Bold program identity
   ===================================================== */
.ch-blog {
    width: 100%;
    height: 100%;
    position: relative;
    background: #ff5c1a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bold diagonal color stripes */
.blog-bg-stripe {
    position: absolute;
    height: 100%;
    pointer-events: none;
}
.blog-bg-stripe.s1 {
    width: 50%;
    right: -5%;
    background: #ff9900;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}
.blog-bg-stripe.s2 {
    width: 32%;
    right: -5%;
    background: #ffcc00;
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.blog-bg-stripe.s3 {
    width: 16%;
    right: -5%;
    background: #fff8e0;
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
}

/* Center body */
.blog-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 32px;
    width: 100%;
    text-align: center;
}

/* jidori demo — photo strip */
.demo-jidori {
    width: 100%;
    height: 140px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.jidori-strip {
    display: flex;
    gap: 8px;
    width: 100%;
    height: 100px;
}
.jidori-card {
    flex: 1;
    background: linear-gradient(160deg, #f0ede6, #e4ded5);
    border-radius: 10px;
    border: 1.5px solid rgba(168,132,110,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(12px) scale(0.92);
    animation: jcReveal 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
}
.jc0 { animation-delay: 0.2s; }
.jc1 { animation-delay: 0.5s; }
.jc2 { animation-delay: 0.8s; }
.jc3 { animation-delay: 1.1s; }
@keyframes jcReveal {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.jc-face {
    width: 36px;
    height: 42px;
    background: radial-gradient(ellipse at 50% 38%, rgba(168,132,110,0.35), rgba(168,132,110,0.1));
    border-radius: 50% 50% 44% 44%;
    border: 1.5px solid rgba(168,132,110,0.2);
}
.jc-day {
    font-size: 0.6rem;
    font-weight: 800;
    color: #a8846e;
    letter-spacing: 0.1em;
}
.jidori-card.jc-active {
    border-color: #c47a4e;
    box-shadow: 0 0 12px rgba(196,122,78,0.2);
}
.jidori-card.jc-active .jc-face {
    background: radial-gradient(ellipse at 50% 38%, rgba(196,122,78,0.4), rgba(168,132,110,0.15));
}
.jidori-counter {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.jidori-counter-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: #c47a4e;
    letter-spacing: -0.03em;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.jidori-counter-unit {
    font-size: 0.6rem;
    font-weight: 800;
    color: rgba(168,132,110,0.5);
    letter-spacing: 0.15em;
}

/* Program badge */
.blog-program-badge {
    font-size: 0.65rem;
    letter-spacing: .16em;
    color: rgba(255,255,255,.75);
    background: rgba(0,0,0,.35);
    padding: 4px 12px;
    border-radius: 2px;
    display: inline-block;
    opacity: 0;
}
.channel.active .blog-program-badge {
    animation: bp-in .4s ease forwards .1s;
}

/* Main catchphrase — BIG and BOLD */
.blog-main-catch {
    font-size: clamp(3.8rem, 10vw, 6rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin: 0;
    letter-spacing: -.02em;
    text-shadow: 0 4px 32px rgba(0,0,0,.35);
    opacity: 0;
    transform: translateY(24px);
}
.channel.active .blog-main-catch {
    animation: bp-rise .55s cubic-bezier(.16,1,.3,1) forwards .28s;
}

/* Sub catchphrase */
.blog-sub-catch {
    font-size: clamp(1.1rem, 2.8vw, 1.6rem);
    font-weight: 600;
    color: rgba(255,255,255,.92);
    letter-spacing: .12em;
    margin: 0;
    opacity: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.channel.active .blog-sub-catch {
    animation: bp-in .45s ease forwards .52s;
}

/* Read button — big, clear, unmissable */
.blog-read-btn {
    display: inline-block;
    margin-top: 12px;
    background: #fff;
    color: #0d0d0d;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: .1em;
    padding: 18px 48px;
    border-radius: 4px;
    transition: background .2s, transform .2s, box-shadow .2s;
    opacity: 0;
    box-shadow: 0 8px 36px rgba(0,0,0,.3);
}
.blog-read-btn:hover {
    background: #ffcc00;
    transform: translateY(-3px);
    box-shadow: 0 14px 48px rgba(0,0,0,.35);
}
.channel.active .blog-read-btn {
    animation: bp-in .45s ease forwards .75s;
}

/* ── Background blobs ── */
.blog-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    opacity: .18;
}
.blog-blob.b1 {
    width: 180px; height: 180px;
    background: #fff;
    top: -40px; left: 10%;
    animation: blob-drift1 7s ease-in-out infinite;
}
.blog-blob.b2 {
    width: 120px; height: 120px;
    background: #ffcc00;
    bottom: 10%; left: 5%;
    animation: blob-drift2 9s ease-in-out infinite;
}
.blog-blob.b3 {
    width: 90px; height: 90px;
    background: #fff;
    top: 20%; right: 8%;
    animation: blob-drift1 6s ease-in-out infinite reverse;
}
.blog-blob.b4 {
    width: 140px; height: 140px;
    background: #ffaa00;
    bottom: -20px; right: 15%;
    animation: blob-drift2 11s ease-in-out infinite reverse;
}
@keyframes blob-drift1 {
    0%,100% { transform: translate(0,0) scale(1); }
    33%     { transform: translate(14px,-18px) scale(1.08); }
    66%     { transform: translate(-10px,12px) scale(.94); }
}
@keyframes blob-drift2 {
    0%,100% { transform: translate(0,0) scale(1); }
    40%     { transform: translate(-16px,14px) scale(1.1); }
    70%     { transform: translate(10px,-10px) scale(.96); }
}

/* ── Floating side cards ── */
.blog-float-col {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 3;
}
.blog-float-col.left  { left: 18px; align-items: flex-start; }
.blog-float-col.right { right: 18px; align-items: flex-end; }

.bfc-card {
    background: rgba(255,255,255,.95);
    border-radius: 16px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 200px;
    box-shadow: 0 6px 28px rgba(0,0,0,.15);
    transform: rotate(var(--r, 0deg)) translateY(16px);
    opacity: 0;
    cursor: pointer;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
}
.bfc-card:hover {
    transform: rotate(0deg) translateY(-4px) !important;
    box-shadow: 0 14px 40px rgba(0,0,0,.22);
}
.channel.active .bfc-card {
    animation: bfc-in .55s cubic-bezier(.34,1.56,.64,1) forwards var(--delay, .5s);
}
@keyframes bfc-in {
    to { opacity: 1; transform: rotate(var(--r, 0deg)) translateY(0); }
}

.bfc-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 4px 12px;
    border-radius: 8px;
    color: var(--tc);
    background: var(--tb);
    align-self: flex-start;
}
.bfc-text {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    letter-spacing: .01em;
}

/* ── Mascot ── */
.blog-mascot {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    z-index: 4;
    opacity: 0;
}
.channel.active .blog-mascot {
    animation: bp-in .5s ease forwards 1.3s;
}

.blog-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    flex-shrink: 0;
}

.blog-bubble {
    background: #fff;
    color: #1a1a1a;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .02em;
    padding: 22px 36px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    white-space: nowrap;
    animation: bubble-hover 2.4s ease-in-out infinite;
}
/* しっぽ：左向き（アバター側へ） */
.bubble-tail {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 11px solid #fff;
}

@keyframes bubble-hover {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-6px); }
}

/* ── Keyframes ── */
@keyframes bp-in   { to { opacity: 1; } }
@keyframes bp-rise { to { opacity: 1; transform: translateY(0); } }

/* ── Shared ── */
@keyframes b-fadein  { to { opacity: 1; } }
@keyframes b-slidein { to { opacity: 1; transform: translateX(0); } }
@keyframes b-itemin  { to { opacity: 1; transform: translateX(0); } }

/* =====================================================
   CH 1: PROJECTS
   ===================================================== */
.ch-projects {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.projects-carousel {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.project-slide.active {
    display: flex;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.project-badge {
    font-size: 1rem;
    padding: 6px 19px;
    border: 2px solid;
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.project-badge.released {
    color: var(--phosphor-green);
    border-color: var(--phosphor-green);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.3);
}

.project-badge.dev {
    color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

.project-badge.unknown {
    color: #888;
    border-color: #888;
}

.project-badge.indev {
    color: #4fc3f7;
    border-color: #4fc3f7;
}

/* ── Dropper demo ── */
.demo-dropper {
    position: relative;
    width: 100%;
    height: 220px;
    background: #060c18;
    border: 1px solid rgba(79,195,247,0.2);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.drop-hud {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #4fc3f7;
    padding: 6px 10px;
    background: rgba(79,195,247,0.05);
    border-bottom: 1px solid rgba(79,195,247,0.1);
    flex-shrink: 0;
}

.drop-lanes {
    position: absolute;
    inset: 28px 0 0 0;
    display: flex;
    justify-content: center;
    gap: 0;
}

.drop-lane {
    flex: 1;
    border-right: 1px solid rgba(255,255,255,0.04);
    max-width: 80px;
}

.drop-lane:last-child { border-right: none; }

.drop-player {
    position: absolute;
    bottom: 14px;
    font-size: 1.1rem;
    color: #ff4d6d;
    text-shadow: 0 0 12px rgba(255,77,109,0.7);
    transition: left 0.18s cubic-bezier(0.16,1,0.3,1);
    z-index: 5;
    user-select: none;
}

.drop-block {
    position: absolute;
    height: 18px;
    border-radius: 2px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    font-family: 'Courier New', monospace;
    font-size: 8px;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.drop-hit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(0);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    color: #ff4d6d;
    text-shadow: 0 0 20px rgba(255,77,109,0.8);
    transition: transform 0.15s, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.drop-hit.show {
    transform: translate(-50%,-50%) scale(1);
    opacity: 1;
}

.project-icon {
    font-size: 3.9rem;
    margin-bottom: 13px;
}

.project-name {
    font-size: 2.6rem;
    color: var(--accent-yellow);
    text-shadow: 0 0 18px var(--accent-yellow);
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.project-category {
    font-size: 1.15rem;
    color: var(--phosphor-green);
    margin-bottom: 18px;
    opacity: 0.8;
}

.project-desc {
    font-family: 'DotGothic16', monospace;
    font-size: 1.2rem;
    color: var(--phosphor-white);
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 520px;
}

/* Project demo area */
.project-demo {
    width: 85%;
    max-width: 320px;
    height: 260px;
    margin: 0 auto 18px;
}

.demo-game {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--phosphor-green);
    position: relative;
    overflow: hidden;
}

.demo-game.hit .demo-player {
    animation: playerHit 0.1s ease-in-out 3;
    color: #ff4444;
}

.demo-game.gameover .demo-bullets {
    animation-play-state: paused;
}

.demo-game.gameover .demo-bullet {
    animation-play-state: paused;
}

.demo-score {
    position: absolute;
    top: 10px;
    left: 13px;
    font-size: 1.3rem;
    color: var(--accent-yellow);
    z-index: 10;
}

.demo-bullets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.demo-bullet {
    position: absolute;
    font-family: 'DotGothic16', monospace;
    font-size: 1.15rem;
    color: var(--phosphor-white);
    white-space: nowrap;
    animation: bulletFly 3s linear infinite;
    animation-delay: calc(var(--i) * 1s);
    top: calc(45px + var(--i) * 32px);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

@keyframes bulletFly {
    0% { left: 100%; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { left: -50%; opacity: 0; }
}

.demo-player {
    position: absolute;
    bottom: 50%;
    left: 20px;
    font-size: 1.95rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 13px var(--accent-cyan);
    transition: bottom 0.3s ease-out;
    transform: rotate(90deg);
}

@keyframes playerHit {
    0%, 100% { transform: rotate(90deg) translateX(0); }
    50% { transform: translateX(-5px); }
}

.demo-gameover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 20;
}

.demo-game.gameover .demo-gameover {
    opacity: 1;
}

.gameover-text {
    font-family: 'VT323', monospace;
    font-size: 2.3rem;
    color: #ff4444;
    text-shadow: 0 0 13px #ff4444;
    animation: gameover-blink 0.5s ease-in-out infinite;
}

@keyframes gameover-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.demo-static {
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.demo-static::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.2;
    animation: staticJitter 0.05s steps(8) infinite;
}

.static-text {
    font-size: 1rem;
    color: var(--phosphor-white);
    z-index: 2;
    animation: staticTextBlink 0.5s steps(2) infinite;
}

.static-text.blink {
    animation: cursorBlink 1s steps(2) infinite;
}

@keyframes staticTextBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ─── Brainrot Catch Demo ─── */
.demo-catch {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #7ADCB0 0%, #C2F2DC 100%);
    position: relative;
    overflow: hidden;
}

.demo-catch::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    pointer-events: none;
}

.catch-hud {
    position: absolute;
    top: 10px;
    left: 12px;
    font-family: 'DotGothic16', monospace;
    font-size: 1.2rem;
    color: #1A1A1A;
    background: rgba(255,255,255,0.75);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1.5px solid #1A1A1A;
    z-index: 10;
}

.catch-char {
    position: absolute;
    font-size: 1.1rem;
    line-height: 1;
    filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.2));
    transition: none;
    user-select: none;
}

.catch-char.bob {
    animation: catch-bob 1.8s ease-in-out infinite;
}
.catch-char:nth-child(2) { animation-delay: 0s; }
.catch-char:nth-child(3) { animation-delay: 0.4s; }
.catch-char:nth-child(4) { animation-delay: 0.8s; }
.catch-char:nth-child(5) { animation-delay: 1.2s; }

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

.catch-char.caught {
    animation: catch-flash 0.45s ease-out forwards !important;
}

@keyframes catch-flash {
    0%   { transform: scale(1);   filter: brightness(1) drop-shadow(2px 3px 4px rgba(0,0,0,0.2)); }
    35%  { transform: scale(1.5); filter: brightness(3) drop-shadow(0 0 12px #FFD93D); }
    100% { transform: scale(0);   opacity: 0; }
}

.catch-net {
    position: absolute;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0;
    z-index: 20;
    pointer-events: none;
    user-select: none;
    transition: left 0.45s cubic-bezier(.4,0,.2,1), top 0.45s cubic-bezier(.4,0,.2,1), opacity 0.25s;
    animation: net-spin 0.6s linear infinite;
}

@keyframes net-spin {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.catch-get {
    position: absolute;
    font-family: 'DotGothic16', monospace;
    font-size: 1.4rem;
    color: #FF3B3B;
    font-weight: 900;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.25);
}

.catch-get.pop {
    animation: get-pop 0.85s ease-out forwards;
}

@keyframes get-pop {
    0%   { opacity: 0; transform: scale(0.4) translateY(0); }
    25%  { opacity: 1; transform: scale(1.3) translateY(-4px); }
    65%  { opacity: 1; transform: scale(1)   translateY(-12px); }
    100% { opacity: 0; transform: scale(0.8) translateY(-22px); }
}

/* Project links */
.project-links {
    display: flex;
    gap: 19px;
}

.project-btn {
    padding: 13px 32px;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    text-decoration: none;
    border: 2px solid var(--phosphor-green);
    color: var(--phosphor-green);
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.project-btn:hover {
    background: var(--phosphor-green);
    color: var(--crt-bg);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.project-btn.primary {
    background: var(--phosphor-green);
    color: var(--crt-bg);
}

.project-btn.primary:hover {
    background: #00ff66;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.7);
}

.project-btn.disabled {
    border-color: #555;
    color: #555;
    cursor: not-allowed;
}

.project-btn.disabled:hover {
    background: transparent;
    box-shadow: none;
}

/* Carousel navigation */
/* ドットインジケーターのみ（ボタンは外部） */
/* ドットインジケーター（ボタンは外部） */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    margin-top: auto;
}

.dot {
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    transition: all 0.3s;
}

.dot.active {
    background: var(--phosphor-green);
    box-shadow: 0 0 10px var(--phosphor-green);
}

/* =====================================================
   CH 2: ABOUT - PROFILE SHOWCASE
   ===================================================== */
.ch-about {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Profile Design Base */
.profile-design {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-design.active {
    display: flex;
    opacity: 1;
}

/* Glitch Overlay */
.profile-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
}

.profile-glitch.active {
    animation: profileGlitch 0.3s ease-out;
}

@keyframes profileGlitch {
    0% {
        opacity: 1;
        background: linear-gradient(90deg, #ff0040 25%, transparent 25%, transparent 50%, #00ff41 50%, #00ff41 75%, transparent 75%);
        background-size: 4px 100%;
    }
    25% {
        opacity: 0.8;
        transform: translateX(-5px);
        background: linear-gradient(90deg, #00ff41 25%, transparent 25%, transparent 50%, #ff0040 50%, #ff0040 75%, transparent 75%);
    }
    50% {
        opacity: 1;
        transform: translateX(5px) skewX(-2deg);
        background: linear-gradient(90deg, #ff0040 33%, #00ff41 33%, #00ff41 66%, #0040ff 66%);
        background-size: 6px 100%;
    }
    75% {
        opacity: 0.8;
        transform: translateX(-3px) skewX(1deg);
    }
    100% {
        opacity: 0;
        transform: translateX(0);
    }
}

/* Terminal (shared) */
.profile-terminal {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 350px;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid var(--phosphor-green);
    border-radius: 8px;
    overflow: hidden;
    z-index: 50;
}

/* =====================================================
   PERSONA 5 STYLE
   ===================================================== */
.profile-design.persona5 {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    padding-bottom: 100px;
}

/* P5 Background Stripes */
.p5-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.p5-stripe {
    position: absolute;
    background: #ff0040;
    transform-origin: center;
}

.p5-stripe.stripe-1 {
    width: 200%;
    height: 70px;
    top: 8%;
    left: -50%;
    transform: rotate(-10deg);
    background: linear-gradient(90deg, #ff0040 0%, #ff0040 48%, #fff 48%, #fff 52%, #ff0040 52%);
    animation: stripeSlide1 3s ease-in-out infinite;
}

.p5-stripe.stripe-2 {
    width: 200%;
    height: 50px;
    top: 45%;
    left: -50%;
    transform: rotate(6deg);
    background: #1a1a1a;
    border-top: 4px solid #ff0040;
    border-bottom: 4px solid #ff0040;
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.3);
    animation: stripeSlide2 4s ease-in-out infinite;
}

.p5-stripe.stripe-3 {
    width: 200%;
    height: 90px;
    bottom: 18%;
    left: -50%;
    transform: rotate(-4deg);
    background: linear-gradient(90deg, #ff0040, #ff2050, #ff0040);
    box-shadow: 0 0 30px rgba(255, 0, 64, 0.4);
    animation: stripeSlide3 5s ease-in-out infinite;
}

.p5-stripe.stripe-4 {
    width: 200%;
    height: 25px;
    top: 72%;
    left: -50%;
    transform: rotate(3deg);
    background: repeating-linear-gradient(
        90deg,
        #ff0040 0px,
        #ff0040 20px,
        #fff 20px,
        #fff 25px
    );
    animation: stripeSlide4 6s linear infinite;
}

@keyframes stripeSlide1 {
    0%, 100% { transform: rotate(-10deg) translateX(0); }
    50% { transform: rotate(-10deg) translateX(30px); }
}

@keyframes stripeSlide2 {
    0%, 100% { transform: rotate(6deg) translateX(0); }
    50% { transform: rotate(6deg) translateX(-40px); }
}

@keyframes stripeSlide3 {
    0%, 100% { transform: rotate(-4deg) translateX(0); }
    50% { transform: rotate(-4deg) translateX(20px); }
}

@keyframes stripeSlide4 {
    0% { transform: rotate(3deg) translateX(0); }
    100% { transform: rotate(3deg) translateX(-45px); }
}

/* P5 Decorations */
.p5-decos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

/* Stars */
.p5-star {
    position: absolute;
    font-size: 2.5rem;
    animation: starPulse 2s ease-in-out infinite;
}

.p5-star.star-1 {
    top: 5%;
    right: 8%;
    color: #ff0040;
    text-shadow:
        2px 2px 0 #fff,
        -2px -2px 0 #fff,
        4px 4px 0 #ff0040;
    animation-delay: 0s;
    transform: rotate(15deg);
}

.p5-star.star-2 {
    top: 25%;
    left: 5%;
    color: #fff;
    font-size: 2rem;
    text-shadow:
        2px 2px 0 #ff0040,
        -1px -1px 0 #ff0040;
    animation-delay: 0.5s;
    transform: rotate(-10deg);
}

.p5-star.star-3 {
    bottom: 25%;
    right: 5%;
    color: #ff0040;
    font-size: 1.8rem;
    text-shadow: 2px 2px 0 #fff;
    animation-delay: 1s;
    transform: rotate(25deg);
}

@keyframes starPulse {
    0%, 100% { transform: scale(1) rotate(var(--rot, 0deg)); opacity: 1; }
    50% { transform: scale(1.2) rotate(var(--rot, 0deg)); opacity: 0.8; }
}

/* Diamonds */
.p5-diamond {
    position: absolute;
    font-size: 1.5rem;
    animation: diamondFloat 3s ease-in-out infinite;
}

.p5-diamond.diamond-1 {
    top: 12%;
    left: 15%;
    color: #fff;
    text-shadow: 2px 2px 0 #ff0040;
}

.p5-diamond.diamond-2 {
    bottom: 35%;
    left: 8%;
    color: #ff0040;
    font-size: 1.2rem;
    text-shadow: 1px 1px 0 #fff;
    animation-delay: 1.5s;
}

@keyframes diamondFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(10deg); }
}

/* Lines */
.p5-line {
    position: absolute;
    background: #ff0040;
    box-shadow: 3px 3px 0 #fff;
}

.p5-line.line-1 {
    width: 80px;
    height: 4px;
    top: 18%;
    right: 20%;
    transform: rotate(-45deg);
}

.p5-line.line-2 {
    width: 60px;
    height: 4px;
    bottom: 30%;
    left: 12%;
    transform: rotate(30deg);
    background: #fff;
    box-shadow: 3px 3px 0 #ff0040;
}

.p5-line.line-3 {
    width: 40px;
    height: 4px;
    top: 35%;
    right: 10%;
    transform: rotate(-20deg);
}

/* Circles */
.p5-circle {
    position: absolute;
    border: 4px solid #ff0040;
    border-radius: 50%;
    box-shadow: 3px 3px 0 #fff;
}

.p5-circle.circle-1 {
    width: 30px;
    height: 30px;
    top: 8%;
    left: 25%;
    animation: circleRotate 4s linear infinite;
}

.p5-circle.circle-2 {
    width: 20px;
    height: 20px;
    bottom: 28%;
    right: 15%;
    border-color: #fff;
    box-shadow: 2px 2px 0 #ff0040;
    animation: circleRotate 3s linear infinite reverse;
}

@keyframes circleRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Slashes */
.p5-slash {
    position: absolute;
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    color: #ff0040;
    text-shadow: 2px 2px 0 #fff;
    opacity: 0.7;
}

.p5-slash.slash-1 {
    top: 30%;
    left: 3%;
    transform: rotate(-15deg);
}

.p5-slash.slash-2 {
    top: 15%;
    right: 3%;
    color: #fff;
    text-shadow: 2px 2px 0 #ff0040;
    transform: rotate(15deg);
}

/* P5 Content */
.p5-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* P5 Cut-in Avatar */
.p5-cutin {
    position: relative;
    width: 130px;
    height: 130px;
    transform: skewX(-5deg);
    animation: cutinEnter 0.5s ease-out;
}

@keyframes cutinEnter {
    0% {
        transform: skewX(-5deg) translateX(-100px) scale(0.5);
        opacity: 0;
    }
    60% {
        transform: skewX(-5deg) translateX(10px) scale(1.1);
    }
    100% {
        transform: skewX(-5deg) translateX(0) scale(1);
        opacity: 1;
    }
}

.p5-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 5px solid #ff0040;
    background: #1a1a1a;
    box-shadow: 8px 8px 0 #fff, 12px 12px 0 #ff0040;
}

.p5-avatar-frame {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid #fff;
    transform: skewX(5deg);
}

.p5-avatar-shadow {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 100%;
    height: 100%;
    background: #ff0040;
    z-index: -1;
    transform: skewX(-3deg);
}

/* P5 Info */
.p5-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: skewX(-3deg);
}

.p5-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: nameSlideIn 0.6s ease-out 0.2s both;
}

@keyframes nameSlideIn {
    0% {
        transform: translateX(50px) skewX(-10deg);
        opacity: 0;
    }
    100% {
        transform: translateX(0) skewX(0);
        opacity: 1;
    }
}

.p5-name-main {
    font-family: 'Anton', 'Impact', sans-serif;
    font-size: 5rem;
    color: #fff;
    text-shadow:
        0 0 0 #0a0a0a,
        4px 4px 0 #ff0040,
        8px 8px 0 #0a0a0a;
    letter-spacing: 15px;
    line-height: 1;
    -webkit-text-stroke: 2px #0a0a0a;
    paint-order: stroke fill;
}

.p5-name-sub {
    font-size: 1.6rem;
    color: #fff;
    background: #ff0040;
    padding: 4px 20px;
    letter-spacing: 12px;
    margin-top: 8px;
    box-shadow: 3px 3px 0 #0a0a0a;
}

.p5-title {
    font-family: 'Bebas Neue', 'VT323', monospace;
    font-size: 1.5rem;
    color: #0a0a0a;
    background: #fff;
    padding: 8px 28px;
    transform: skewX(-12deg);
    box-shadow: 4px 4px 0 #ff0040;
    animation: titlePop 0.4s ease-out 0.4s both;
    letter-spacing: 4px;
    border: 3px solid #ff0040;
}

@keyframes titlePop {
    0% {
        transform: skewX(-12deg) scale(0);
    }
    70% {
        transform: skewX(-12deg) scale(1.1);
    }
    100% {
        transform: skewX(-12deg) scale(1);
    }
}

/* P5 Services */
.p5-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 300px;
    animation: statsSlideIn 0.5s ease-out 0.5s both;
}

@keyframes statsSlideIn {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.p5-service {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    padding: 6px 10px;
    transform: skewX(-5deg);
    box-shadow: 3px 3px 0 #ff0040;
    border: 2px solid #0a0a0a;
}

.p5-service .service-icon {
    font-size: 1rem;
    color: #ff0040;
    transform: skewX(5deg);
    text-shadow: 1px 1px 0 #0a0a0a;
}

.p5-service .service-text {
    font-family: 'DotGothic16', monospace;
    font-size: 0.85rem;
    color: #0a0a0a;
    font-weight: bold;
    transform: skewX(5deg);
}

/* P5 Skills */
.p5-skills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 320px;
    animation: skillsAppear 0.6s ease-out 0.7s both;
}

@keyframes skillsAppear {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.p5-skill {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    color: #0a0a0a;
    background: #fff;
    border: 2px solid #ff0040;
    padding: 3px 10px;
    transform: skewX(-8deg);
    transition: all 0.2s;
    box-shadow: 2px 2px 0 #ff0040;
}

.p5-skill:hover {
    background: #ff0040;
    color: #fff;
    transform: skewX(-8deg) scale(1.1);
    box-shadow: 3px 3px 0 #fff;
}

/* P5 CTA Button */
.p5-cta {
    font-family: 'Bebas Neue', 'VT323', monospace;
    font-size: 1.4rem;
    color: #0a0a0a;
    background: #fff;
    padding: 10px 30px;
    border: 3px solid #ff0040;
    transform: skewX(-10deg);
    box-shadow: 5px 5px 0 #ff0040;
    margin-top: 8px;
    animation: ctaPulse 2s ease-in-out infinite, mottoFade 0.8s ease-out 0.9s both;
    cursor: pointer;
    letter-spacing: 3px;
    transition: all 0.2s;
}

.p5-cta:hover {
    background: #ff0040;
    color: #fff;
    box-shadow: 5px 5px 0 #fff;
    transform: skewX(-10deg) scale(1.05);
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 5px 5px 0 #ff0040; }
    50% { box-shadow: 5px 5px 0 #ff0040, 0 0 15px rgba(255, 0, 64, 0.5); }
}

@keyframes mottoFade {
    0% { opacity: 0; transform: translateY(10px) skewX(-10deg); }
    100% { opacity: 1; transform: translateY(0) skewX(-10deg); }
}

/* P5 Corners */
.p5-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid #ff0040;
    z-index: 5;
    box-shadow: 3px 3px 0 #fff;
}

.p5-corner.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.p5-corner.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.p5-corner.bl { bottom: 110px; left: 10px; border-right: none; border-top: none; }
.p5-corner.br { bottom: 110px; right: 10px; border-left: none; border-top: none; }

/* P5 Terminal */
.p5-terminal {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) skewX(-3deg);
    width: 85%;
    max-width: 380px;
    background: #0a0a0a;
    border: 3px solid #ff0040;
    box-shadow: 6px 6px 0 #fff, 10px 10px 0 #ff0040;
    z-index: 50;
    overflow: hidden;
}

.p5-terminal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: #ff0040;
    border-bottom: 2px solid #fff;
}

.p5-terminal-icon {
    color: #fff;
    font-size: 1rem;
    animation: terminalIconPulse 1s ease-in-out infinite;
}

@keyframes terminalIconPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.p5-terminal-title {
    font-family: 'Bebas Neue', 'VT323', monospace;
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: 4px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.p5-terminal-hint {
    margin-left: auto;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    color: #fff;
    opacity: 0.8;
}

.p5-terminal-body {
    padding: 12px 15px;
    background: #0a0a0a;
}

.p5-terminal-output {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: #ff0040;
    margin-bottom: 10px;
    min-height: 24px;
    text-shadow: 0 0 8px rgba(255, 0, 64, 0.5);
    letter-spacing: 1px;
}

.p5-terminal-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 2px solid #ff0040;
    transform: skewX(-5deg);
}

.p5-terminal-prompt {
    color: #ff0040;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    text-shadow: 0 0 5px #ff0040;
}

.p5-terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: #fff;
    caret-color: #ff0040;
    transform: skewX(5deg);
}

.p5-terminal-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Terminal Focus State */
.p5-terminal-input-row.focused {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 64, 0.6), inset 0 0 5px rgba(255, 0, 64, 0.2);
    animation: terminalFocusPulse 1s ease-in-out infinite;
}

.p5-terminal-input-row.focused .p5-terminal-prompt {
    color: #fff;
    animation: promptBlink 0.5s steps(2) infinite;
}

@keyframes terminalFocusPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 0, 64, 0.6), inset 0 0 5px rgba(255, 0, 64, 0.2); }
    50% { box-shadow: 0 0 15px rgba(255, 0, 64, 0.8), inset 0 0 8px rgba(255, 0, 64, 0.3); }
}

@keyframes promptBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hide shared terminal placeholder */
.profile-terminal-placeholder {
    display: none;
}

/* =====================================================
   POOLSUITE / WINDOWS STYLE
   ===================================================== */
.profile-design.windows {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #a18cd1 100%);
}

.win-desktop {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 10px;
    padding-bottom: 35px;
}

/* Desktop Icons */
.win-icons {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.win-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.win-icon .icon-img {
    font-size: 1.8rem;
    filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.2));
}

.win-icon span {
    font-family: 'VT323', monospace;
    font-size: 0.85rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Windows */
.win-window {
    position: absolute;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.win-window.main-window {
    top: 5%;
    left: 12%;
    width: 60%;
    max-width: 300px;
    z-index: 10;
}

.win-window.skills-window {
    top: 52%;
    right: 5%;
    width: 38%;
    max-width: 150px;
    z-index: 8;
}

.win-window.memo-window {
    top: 3%;
    right: 5%;
    width: 30%;
    max-width: 140px;
    z-index: 7;
}

.win-window.tips-window {
    bottom: 18%;
    left: 5%;
    width: 55%;
    max-width: 250px;
    z-index: 9;
}

.tips-titlebar {
    background: linear-gradient(90deg, #808000, #c0c000) !important;
}

.win-content.tips-content {
    font-family: 'DotGothic16', monospace;
    font-size: 0.8rem;
    color: #000;
    line-height: 1.5;
    min-height: auto;
    padding: 8px;
}

.tips-q {
    color: #808000;
    font-weight: bold;
    margin: 0 0 3px;
}

.tips-a {
    margin: 0;
}

.tips-a strong {
    color: #c00000;
}

.win-window.error-window {
    top: 35%;
    left: 25%;
    width: 50%;
    max-width: 220px;
    z-index: 20;
    animation: errorShake 0.3s ease-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.error-titlebar {
    background: linear-gradient(90deg, #800000, #c00000) !important;
}

.win-content.error-content {
    padding: 10px;
    min-height: auto;
    text-align: center;
}

.error-body {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.error-icon {
    font-size: 1.8rem;
}

.error-msg {
    font-family: 'DotGothic16', monospace;
    font-size: 0.8rem;
    color: #000;
    text-align: left;
    line-height: 1.4;
}

.error-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.error-btn {
    font-family: 'VT323', monospace;
    font-size: 0.85rem;
    padding: 3px 18px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    cursor: pointer;
    color: #000;
}

.error-btn.active {
    border-color: #808080 #fff #fff #808080;
    background: #a0a0a0;
}

/* Run / Command Window */
.win-window.run-window {
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    max-width: 300px;
    z-index: 30;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
}

.win-content.run-content {
    padding: 10px;
    min-height: auto;
    background: #ffffee;
}

.run-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.run-label {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    color: #000;
    white-space: nowrap;
    font-weight: bold;
}

.run-input {
    flex: 1;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    background: #fff;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    padding: 5px 8px;
    color: #000;
    outline: none;
}

.run-input:focus {
    border-color: #000080 #a0a0ff #a0a0ff #000080;
    box-shadow: inset 0 0 4px rgba(0,0,128,0.2);
}

.run-output {
    font-family: 'DotGothic16', monospace;
    font-size: 0.85rem;
    color: #000080;
    min-height: 16px;
}

.run-output.secret-active {
    color: #c00000;
}

/* Titlebar */
.win-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 5px;
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #fff;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    font-weight: bold;
}

.win-title {
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

.win-buttons {
    display: flex;
    gap: 2px;
}

.win-btn {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #fff #808080 #808080 #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #000;
    cursor: pointer;
}

.win-btn:active {
    border-color: #808080 #fff #fff #808080;
}

/* Menubar */
.win-menubar {
    display: flex;
    gap: 15px;
    padding: 3px 8px;
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    font-family: 'VT323', monospace;
    font-size: 0.85rem;
    color: #000;
}

.win-menubar span {
    cursor: pointer;
}

.win-menubar span:first-letter {
    text-decoration: underline;
}

/* Content */
.win-content {
    padding: 10px;
    background: #fff;
    min-height: 120px;
}

.win-content.notepad {
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    color: #000;
    line-height: 1.4;
    min-height: 80px;
}

.win-content.notepad p {
    margin: 0;
}

/* Profile inside window */
.win-profile {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.win-avatar {
    width: 50px;
    height: 50px;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    overflow: hidden;
}

.win-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.win-info {
    flex: 1;
}

.win-name {
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    color: #000080;
    font-weight: bold;
}

.win-role {
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    color: #444;
}

.win-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'VT323', monospace;
    font-size: 0.8rem;
    color: #008000;
    margin-top: 3px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: statusBlink 1s ease-in-out infinite;
}

/* Services */
.win-services {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    color: #000;
}

.win-service {
    padding: 2px 0;
}

/* Statusbar */
.win-statusbar {
    display: flex;
    justify-content: space-between;
    padding: 3px 8px;
    background: #c0c0c0;
    border-top: 1px solid #fff;
    font-family: 'VT323', monospace;
    font-size: 0.75rem;
    color: #444;
}

/* Taskbar */
.win-taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    display: flex;
    align-items: center;
    padding: 0 3px;
    gap: 5px;
}

.win-start {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    color: #000;
    cursor: pointer;
}

.win-start:active {
    border-color: #808080 #fff #fff #808080;
}

.start-logo {
    color: #ff0000;
}

.win-tasks {
    flex: 1;
    display: flex;
    gap: 3px;
}

.win-task {
    padding: 2px 10px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    font-family: 'VT323', monospace;
    font-size: 0.8rem;
    color: #000;
}

.win-task.active {
    border-color: #808080 #fff #fff #808080;
    background: #a0a0a0;
}

.win-tray {
    display: flex;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid;
    border-color: #808080 #fff #fff #808080;
    font-family: 'VT323', monospace;
    font-size: 0.85rem;
    color: #000;
}

/* =====================================================
   CAFE / WARM STYLE
   ===================================================== */
.profile-design.cafe {
    background: #f5efe6;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 20px 90px;
    overflow: hidden;
}

/* Rain - diagonal streaks */
.cafe-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    top: -20%;
    width: 1px;
    height: 25px;
    background: linear-gradient(180deg, transparent, rgba(140, 180, 210, 0.35));
    transform: rotate(20deg);
    animation: rainFall linear infinite;
}

@keyframes rainFall {
    0% { top: -20%; left: var(--x); opacity: 0; }
    5% { opacity: 0.5; }
    100% { top: 110%; left: calc(var(--x) - 30px); opacity: 0; }
}

/* Coffee Spill Animation */
.cafe-spill {
    position: relative;
    z-index: 5;
}

.spill-cup {
    font-size: 2.5rem;
    transform: rotate(25deg);
    transform-origin: bottom left;
    animation: cupTilt 6s ease-in-out infinite;
}

@keyframes cupTilt {
    0%, 70%, 100% { transform: rotate(0deg); }
    78% { transform: rotate(25deg); }
    85% { transform: rotate(35deg); }
    92% { transform: rotate(25deg); }
}

.spill-drop {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #8B6914;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    opacity: 0;
}

.spill-drop.drop-1 {
    top: 30px;
    left: 5px;
    animation: dropFall1 6s ease-in infinite;
}

.spill-drop.drop-2 {
    top: 30px;
    left: 15px;
    animation: dropFall2 6s ease-in infinite;
    animation-delay: 0.3s;
}

@keyframes dropFall1 {
    0%, 75% { top: 30px; opacity: 0; }
    78% { opacity: 1; }
    90% { top: 120px; opacity: 0.5; }
    91% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes dropFall2 {
    0%, 78% { top: 30px; opacity: 0; }
    81% { opacity: 1; }
    92% { top: 140px; opacity: 0.5; }
    93% { opacity: 0; }
    100% { opacity: 0; }
}

.spill-stain {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(139, 105, 20, 0.25) 0%, rgba(139, 105, 20, 0.08) 60%, transparent 70%);
    transform: scale(0);
}

.spill-stain.stain-1 {
    width: 80px;
    height: 60px;
    top: 110px;
    left: -25px;
    animation: stainSpread1 6s ease-out infinite;
}

.spill-stain.stain-2 {
    width: 50px;
    height: 40px;
    top: 130px;
    left: 5px;
    animation: stainSpread2 6s ease-out infinite;
    animation-delay: 0.4s;
}

.spill-stain.stain-3 {
    width: 35px;
    height: 30px;
    top: 100px;
    left: -10px;
    animation: stainSpread3 6s ease-out infinite;
    animation-delay: 0.2s;
}

@keyframes stainSpread1 {
    0%, 85% { transform: scale(0); opacity: 0; }
    90% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}

@keyframes stainSpread2 {
    0%, 88% { transform: scale(0); opacity: 0; }
    93% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1); opacity: 0.5; }
}

@keyframes stainSpread3 {
    0%, 86% { transform: scale(0); opacity: 0; }
    91% { transform: scale(0.4); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.4; }
}

/* Cafe Content */
.cafe-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cafe-header {
    text-align: center;
    margin-bottom: 10px;
}

.cafe-label {
    font-family: 'Bebas Neue', serif;
    font-size: 2.2rem;
    color: #5d4037;
    letter-spacing: 10px;
}

.cafe-line {
    width: 120px;
    height: 1px;
    background: #c4a882;
    margin: 8px auto;
}

/* Cafe Profile */
.cafe-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.cafe-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #c4a882;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(93, 64, 55, 0.2);
}

.cafe-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cafe-name {
    font-family: 'Bebas Neue', serif;
    font-size: 2rem;
    color: #3e2723;
    letter-spacing: 5px;
}

.cafe-role {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    color: #8d6e63;
    letter-spacing: 2px;
}

/* Cafe Menu */
.cafe-menu {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #d7ccc8;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 10px;
}

.cafe-section {
    text-align: center;
    margin-bottom: 8px;
}

.cafe-section.sub {
    margin-top: 10px;
    margin-bottom: 5px;
}

.section-title {
    font-family: 'DotGothic16', monospace;
    font-size: 0.9rem;
    color: #8d6e63;
    letter-spacing: 3px;
}

.cafe-item {
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding: 4px 0;
    font-family: 'DotGothic16', monospace;
    font-size: 1rem;
    color: #3e2723;
}

.item-name {
    white-space: nowrap;
}

.item-dots {
    flex: 1;
    border-bottom: 1px dotted #bcaaa4;
    margin: 0 3px;
    min-width: 20px;
    height: 0.8em;
}

.item-price {
    color: #8d6e63;
    font-size: 0.9rem;
}

.cafe-techs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    color: #8d6e63;
}

/* Cafe Footer */
.cafe-footer {
    text-align: center;
}

.cafe-hours {
    font-family: 'DotGothic16', monospace;
    font-size: 0.8rem;
    color: #a1887f;
}

/* Cafe Bottom: Terminal + Table */
.cafe-bottom {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    padding: 0 12px;
    z-index: 50;
}

/* Cafe Table */
.cafe-table {
    flex-shrink: 0;
}

.table-surface {
    width: 80px;
    height: 65px;
    background: linear-gradient(135deg, #8B6914 0%, #a0792a 40%, #6d5010 100%);
    border-radius: 6px;
    border: 2px solid #5a4210;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Wood grain */
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 8px,
            rgba(0,0,0,0.05) 8px,
            rgba(0,0,0,0.05) 9px
        );
}

/* Cafe Terminal */
.cafe-terminal {
    flex: 1;
    max-width: 280px;
    background: #fff;
    border: 2px solid #d7ccc8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(93, 64, 55, 0.15);
}

.cafe-terminal-header {
    font-family: 'DotGothic16', monospace;
    font-size: 0.85rem;
    color: #8d6e63;
    padding: 6px 15px;
    background: #efebe9;
    border-bottom: 1px solid #d7ccc8;
    text-align: center;
}

.cafe-terminal-body {
    padding: 10px 15px;
}

.cafe-terminal-output {
    font-family: 'DotGothic16', monospace;
    font-size: 0.95rem;
    color: #5d4037;
    margin-bottom: 8px;
    min-height: 20px;
}

.cafe-terminal-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #fafafa;
    border: 1px solid #d7ccc8;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.cafe-terminal-input-row.focused {
    border-color: #8d6e63;
    box-shadow: 0 0 5px rgba(141, 110, 99, 0.2);
}

.cafe-terminal-prompt {
    color: #c4a882;
    font-size: 1.1rem;
}

.cafe-terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'DotGothic16', monospace;
    font-size: 0.95rem;
    color: #3e2723;
    caret-color: #8d6e63;
}

.cafe-terminal-input::placeholder {
    color: #bcaaa4;
}

/* =====================================================
   FGL SECRET DESIGN - ウスイラボ
   90年代個人サイト風
   ===================================================== */
.profile-design.fgl {
    align-items: stretch;
    justify-content: stretch;
    background: #c0c0c0;
    font-family: 'MS PGothic', 'MS Gothic', 'DotGothic16', sans-serif;
    color: #000;
    overflow: hidden;
    padding: 0;
    flex-direction: column;
}

/* 工事中バー */
.fgl-construction-bar {
    width: 100%;
    background: repeating-linear-gradient(
        -45deg,
        #ff0 0px, #ff0 10px,
        #000 10px, #000 20px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 3px 0;
    font-size: 0.7rem;
    font-weight: bold;
    color: #f00;
    text-shadow: 0 0 2px #fff;
    flex-shrink: 0;
}

.fgl-page {
    width: 100%;
    flex: 1;
    min-height: 0;
    padding: 6px 12px 6px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* Visitor counter marquee */
.fgl-counter {
    background: #000;
    color: #0f0;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 1rem;
    padding: 3px 8px;
    margin-bottom: 5px;
    border: 1px solid #333;
    flex-shrink: 0;
}

.fgl-counter marquee {
    font-size: 1rem;
}

#fgl-visitor {
    color: #ff0;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Title area */
.fgl-title-area {
    text-align: center;
    margin-bottom: 4px;
    padding: 5px 8px;
    background: linear-gradient(180deg, #eef, #ddf, #eef);
    border: 2px ridge #aac;
    flex-shrink: 0;
}

.fgl-welcome {
    font-size: 1rem;
    color: #f00;
    font-weight: bold;
    animation: fglBlink 1.2s step-end infinite;
}

.fgl-title {
    font-family: 'DotGothic16', 'MS PGothic', sans-serif;
    font-size: 1.6rem;
    color: #000080;
    text-shadow: 2px 2px 0 #ccc;
    margin: 3px 0 2px;
    letter-spacing: 3px;
}

.fgl-subtitle {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 1.1rem;
    color: #800000;
    font-weight: normal;
    margin-bottom: 2px;
}

.fgl-est {
    font-size: 0.85rem;
    color: #666;
}

/* NEW! badge */
.fgl-new {
    color: #f00;
    font-size: 0.8rem;
    font-weight: bold;
    animation: fglBlink 0.8s step-end infinite;
}

/* HR - animated rainbow */
.fgl-hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
    background-size: 200% 100%;
    animation: fglRainbow 3s linear infinite;
    margin: 4px 0;
    flex-shrink: 0;
}

@keyframes fglRainbow {
    to { background-position: 200% 0; }
}

/* Two-column body */
.fgl-body {
    display: flex;
    gap: 10px;
    flex: 1;
    min-height: 0;
}

.fgl-left {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.fgl-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

/* Notice area */
.fgl-notice {
    padding: 6px 8px;
    background: #ffe0e0;
    border: 2px solid #c00;
    border-left: 5px solid #c00;
}

.fgl-notice-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: #c00;
    margin-bottom: 3px;
}

.fgl-notice-text {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.5;
}

/* Hitokoto */
.fgl-hitokoto {
    padding: 6px 8px;
    background: #f0f0ff;
    border: 2px dotted #009;
    margin-top: auto;
}

.fgl-hitokoto-text {
    font-size: 0.9rem;
    color: #333;
    font-style: italic;
    text-align: center;
}

/* Section title */
.fgl-section-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: #000080;
    margin: 2px 0;
    padding: 3px 6px;
    background: #dde;
    border-bottom: 2px solid #000080;
}

/* Profile table */
.fgl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border: 2px solid #000080;
}

.fgl-table td {
    padding: 3px 6px;
    border: 1px solid #808080;
    vertical-align: top;
    line-height: 1.35;
}

.fgl-label {
    background: #000080;
    color: #fff;
    font-weight: bold;
    width: 50px;
    white-space: nowrap;
    font-size: 0.85rem;
}

/* Blink animation */
.fgl-blink {
    animation: fglBlink 1s step-end infinite;
    color: #f00;
    font-weight: bold;
}

@keyframes fglBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Links section */
.fgl-links {
    padding: 6px 8px;
    background: #ffffcc;
    border: 2px dashed #cc9900;
}

.fgl-link {
    color: #0000ee;
    text-decoration: underline;
    font-size: 0.9rem;
    line-height: 1.8;
    cursor: pointer;
}

.fgl-link:hover {
    color: #f00;
    background: #ffe0e0;
}

/* Footer */
.fgl-footer {
    text-align: center;
    padding: 3px 0 0;
    margin-top: auto;
}

.fgl-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 3px;
}

.fgl-badge {
    height: 16px;
    image-rendering: pixelated;
}

.fgl-banner {
    display: inline-block;
    width: 60px;
    height: 20px;
    background: #000080;
    color: #fff;
    font-family: 'VT323', monospace;
    font-size: 0.5rem;
    line-height: 1.15;
    text-align: center;
    padding-top: 1px;
    border: 1px solid #000;
}

.fgl-copy {
    font-size: 0.7rem;
    color: #888;
}

/* FGL Terminal - prominent */
.fgl-terminal {
    margin-top: 5px;
    border: 2px solid #0f0;
    background: #000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

.fgl-terminal-header {
    background: linear-gradient(90deg, #000080, #1010b0, #000080);
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 3px 8px;
    font-family: 'DotGothic16', 'MS PGothic', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fgl-terminal-hint {
    font-size: 0.7rem;
    color: #aaa;
    font-weight: normal;
}

.fgl-terminal-body {
    padding: 6px 8px;
}

.fgl-terminal-output {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 1.1rem;
    color: #0f0;
    min-height: 18px;
    margin-bottom: 5px;
    text-shadow: 0 0 4px #0f0;
    transition: all 0.3s;
}

.fgl-terminal-output.secret-active {
    color: #ff0;
    text-shadow: 0 0 5px #ff0, 0 0 15px #f90;
    animation: secretFlash 0.5s ease-out;
}

.fgl-terminal-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    background: #111;
    border: 1px solid #0f0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fgl-terminal-input-row.focused {
    border-color: #0f0;
    box-shadow: 0 0 6px rgba(0, 255, 0, 0.5);
}

.fgl-terminal-prompt {
    color: #0f0;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 1.1rem;
}

.fgl-terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 1.1rem;
    color: #0f0;
    caret-color: #0f0;
}

.fgl-terminal-input::placeholder {
    color: #080;
}

/* =====================================================
   LEGACY Y2K DESIGN (keeping for reference)
   ===================================================== */
.ch-about.y2k-legacy {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    /* Y2K グラデーション背景 */
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255, 0, 128, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 200, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(128, 0, 255, 0.1) 0%, transparent 70%),
        linear-gradient(180deg, #0a0015 0%, #1a0030 100%);
}

/* Y2K Header */
.y2k-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.y2k-star {
    font-size: 1.5rem;
    color: #ff69b4;
    animation: y2kSpin 4s linear infinite;
    text-shadow: 0 0 10px #ff69b4;
}

@keyframes y2kSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.y2k-title {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(90deg, #ff69b4, #00d4ff, #ff69b4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: y2kGradient 3s linear infinite;
    letter-spacing: 5px;
}

@keyframes y2kGradient {
    to { background-position: 200% center; }
}

/* Y2K Profile Card */
.y2k-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px 30px;
    background: linear-gradient(135deg,
        rgba(255, 105, 180, 0.1) 0%,
        rgba(138, 43, 226, 0.15) 50%,
        rgba(0, 212, 255, 0.1) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, #ff69b4, #00d4ff) 1;
    border-radius: 20px;
    position: relative;
    width: 100%;
    max-width: 350px;
}

.y2k-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ff69b4, #8a2be2, #00d4ff);
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

/* Y2K Avatar */
.y2k-avatar {
    position: relative;
    width: 100px;
    height: 100px;
}

.avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ff69b4, #8a2be2, #00d4ff, #ff69b4);
    animation: y2kRingSpin 3s linear infinite;
}

@keyframes y2kRingSpin {
    to { transform: rotate(360deg); }
}

.y2k-avatar-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #1a0030;
    z-index: 1;
}

.avatar-glow {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.4) 0%, transparent 70%);
    animation: y2kPulse 2s ease-in-out infinite;
    z-index: 0;
}

@keyframes y2kPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Y2K Info */
.y2k-info {
    text-align: center;
}

.y2k-name {
    margin-bottom: 8px;
}

.y2k-name .name-en {
    font-family: 'VT323', monospace;
    font-size: 2.2rem;
    color: #fff;
    text-shadow:
        0 0 5px #ff69b4,
        0 0 10px #ff69b4,
        0 0 20px #8a2be2;
    letter-spacing: 3px;
}

.y2k-name .name-jp {
    display: block;
    font-family: 'DotGothic16', monospace;
    font-size: 0.85rem;
    color: #00d4ff;
    margin-top: 3px;
}

.y2k-bio {
    font-family: 'DotGothic16', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0;
}

.y2k-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 8px 0;
}

.y2k-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(138, 43, 226, 0.3);
    border: 1px solid rgba(255, 105, 180, 0.5);
    border-radius: 12px;
    color: #fff;
}

.y2k-skills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 8px 0;
}

.y2k-skills .skill {
    font-family: 'VT323', monospace;
    font-size: 0.7rem;
    padding: 2px 8px;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.3), rgba(138, 43, 226, 0.3));
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 5px;
    color: #00d4ff;
}

.y2k-motto {
    font-family: 'DotGothic16', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 5px;
    padding: 8px 15px;
    background: rgba(255, 105, 180, 0.1);
    border-radius: 8px;
    border-left: 3px solid #ff69b4;
}

/* Y2K Status */
.y2k-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    background: linear-gradient(90deg, rgba(0, 255, 128, 0.2), rgba(0, 212, 255, 0.2));
    border-radius: 15px;
    font-size: 0.8rem;
    color: #00ff80;
    letter-spacing: 2px;
}

.status-bubble {
    width: 8px;
    height: 8px;
    background: #00ff80;
    border-radius: 50%;
    animation: statusBlink 1s ease-in-out infinite;
    box-shadow: 0 0 8px #00ff80;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Y2K Terminal */
.y2k-terminal {
    width: 100%;
    max-width: 350px;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.5);
    box-shadow:
        0 0 20px rgba(138, 43, 226, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: linear-gradient(90deg, #2a0040, #1a0030);
    border-bottom: 1px solid rgba(255, 105, 180, 0.3);
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff69b4;
}

.terminal-dot:nth-child(2) { background: #8a2be2; }
.terminal-dot:nth-child(3) { background: #00d4ff; }

.terminal-title {
    margin-left: auto;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'VT323', monospace;
}

.terminal-body {
    padding: 15px;
}

.terminal-output {
    font-family: 'DotGothic16', monospace;
    font-size: 1rem;
    color: #00ff80;
    margin-bottom: 12px;
    min-height: 24px;
    text-shadow: 0 0 5px #00ff80;
    transition: all 0.3s;
}

.terminal-output.secret-active {
    color: #ff69b4;
    text-shadow:
        0 0 5px #ff69b4,
        0 0 15px #ff69b4,
        0 0 30px #8a2be2;
    animation: secretFlash 0.5s ease-out;
}

@keyframes secretFlash {
    0% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(138, 43, 226, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(255, 105, 180, 0.3);
}

.terminal-input-row .terminal-prompt {
    color: #ff69b4;
    font-family: 'VT323', monospace;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: #fff;
    caret-color: #00d4ff;
}

.terminal-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Y2K Decorations */
.y2k-deco {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: y2kFloat 5s ease-in-out infinite;
}

.deco-1 {
    top: 10%;
    left: 10%;
    color: #ff69b4;
    animation-delay: 0s;
}

.deco-2 {
    top: 20%;
    right: 15%;
    color: #00d4ff;
    animation-delay: 1s;
}

.deco-3 {
    bottom: 15%;
    left: 20%;
    color: #8a2be2;
    animation-delay: 2s;
}

@keyframes y2kFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(10deg); }
}

/* =====================================================
   CH 3: CONTACT - CAROUSEL STRUCTURE
   ===================================================== */
.ch-contact {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.contact-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.contact-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Contact Carousel Dots */
.contact-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.contact-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.contact-dots .dot.active {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
}

/* =====================================================
   CH 3: CONTACT - AD STYLE PROGRAM
   ===================================================== */
.ad-program {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 20px 15px 20px;
    /* クリーム背景（Contact共通） */
    background: linear-gradient(180deg, #fbf3ee 0%, #f5ebe4 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Ad Header */
.ad-header {
    margin-bottom: 20px;
}

.ad-badge {
    display: inline-block;
    background: #d4a574;
    color: #fff;
    font-family: 'DotGothic16', monospace;
    font-size: 1.1rem;
    padding: 6px 14px;
    border-radius: 5px;
    margin-bottom: 12px;
    animation: adPulse 1.5s ease-in-out infinite;
}

@keyframes adPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.ad-header-text {
    display: block;
    font-family: 'DotGothic16', monospace;
    font-size: 1.8rem;
    color: #8b6914;
    font-weight: bold;
}

/* Ad Problems List */
.ad-problems {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.ad-problem {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.9);
    padding: 14px 20px;
    border-radius: 10px;
    border-left: 5px solid #d4a574;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.problem-icon {
    font-size: 2rem;
}

.problem-text {
    font-family: 'DotGothic16', monospace;
    font-size: 1.3rem;
    color: #5d4037;
}

/* Ad Solution */
.ad-solution {
    margin-bottom: 20px;
}

.solution-arrow {
    font-size: 2.2rem;
    color: #c49a6c;
    animation: bounceDown 1s ease-in-out infinite;
}

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

.solution-text {
    font-family: 'DotGothic16', monospace;
    font-size: 1.6rem;
    color: #8b6914;
    font-weight: bold;
}

/* Ad CTA */
.ad-cta {
    background: linear-gradient(135deg, #d4a574 0%, #c49a6c 100%);
    padding: 20px 35px;
    border-radius: 15px;
    box-shadow:
        0 4px 15px rgba(180, 140, 100, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
}

.cta-main {
    font-family: 'VT323', monospace;
    font-size: 2.8rem;
    color: #fff;
    letter-spacing: 4px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
}

.cta-sub {
    font-family: 'DotGothic16', monospace;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 8px;
}

.cta-hint {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 12px;
    animation: hintBlink 2s ease-in-out infinite;
}

@keyframes hintBlink {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Ad Disclaimer */
.ad-disclaimer {
    font-family: 'DotGothic16', monospace;
    font-size: 1rem;
    color: #a08070;
    margin-top: 15px;
    margin-bottom: 30px;
}

/* =====================================================
   CH 3: CONTACT - CREAM DESIGN (Program 1)
   ===================================================== */
.cream-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 50px 25px 45px 25px;
    /* クリーム背景 */
    background: linear-gradient(180deg, #fbf3ee 0%, #f5ebe4 100%);
}

/* Cream Header */
.cream-header {
    text-align: center;
    margin-bottom: 30px;
}

.cream-title {
    display: block;
    font-family: 'VT323', monospace;
    font-size: 3.5rem;
    color: #4a4a4a;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.cream-subtitle {
    font-family: 'DotGothic16', monospace;
    font-size: 1.3rem;
    color: #8b8b8b;
}

/* Cream Links Container */
.cream-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
}

/* Cream Card */
.cream-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 25px;
    background: #fff;
    border-radius: 18px;
    text-decoration: none;
    color: #4a4a4a;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.cream-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Card Icon */
.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.card-icon.github {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: #fff;
}

.card-icon.twitter {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
}

/* Card Info */
.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card-name {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: #333;
    letter-spacing: 2px;
}

.card-handle {
    font-size: 1.1rem;
    color: #999;
}

/* Card Arrow */
.card-arrow {
    font-size: 1.8rem;
    color: #ccc;
    transition: all 0.2s;
}

.cream-card:hover .card-arrow {
    color: #57c3e8;
    transform: translateX(5px);
}

/* Cream Footer */
.cream-footer {
    margin-top: 35px;
    margin-bottom: 25px;
    text-align: center;
}

.footer-brand {
    font-family: 'VT323', monospace;
    font-size: 1.6rem;
    color: #666;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.cream-footer .footer-copy {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 5px;
}

.cream-footer .footer-note {
    font-family: 'DotGothic16', monospace;
    font-size: 0.95rem;
    color: #bbb;
}

/* =====================================================
   CH 4: NEWS - BROADCAST STYLE
   ===================================================== */
.ch-news {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}

.news-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.news-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.news-slide.active {
    opacity: 1;
    visibility: visible;
}

/* News Dots */
.news-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.news-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.news-dots .dot.active {
    background: #cc0000;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(204, 0, 0, 0.5);
}

/* =====================================================
   NEWS PROGRAM 0: CASTER SCREEN
   ===================================================== */
.news-studio {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #222 100%);
    overflow: hidden;
}

/* Station Logo - 左上ブロック */
.news-logo {
    position: absolute;
    top: 5%;
    left: 5%;
    font-family: 'VT323', monospace;
    font-weight: bold;
    color: #cc0000;
    padding: 8px 12px;
    line-height: 1.1;
    background: rgba(255, 255, 255, 0.95);
    z-index: 5;
    text-align: center;
}

.news-logo .logo-top {
    display: block;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.news-logo .logo-bottom {
    display: block;
    font-size: 1.2rem;
    letter-spacing: 3px;
}

/* Caster Image - Full screen background */
.news-caster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.caster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Telop - Bottom bar, full width */
.news-telop {
    position: absolute;
    bottom: 12%;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
}

/* 速報 badge + 番組名 row */
.telop-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.telop-category {
    display: inline-block;
    font-family: 'DotGothic16', monospace;
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    background: #cc0000;
    padding: 8px 22px;
}

.telop-program-name {
    font-family: 'VT323', monospace;
    font-size: 1.6rem;
    color: #cc0000;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    margin-right: 5%;
}

/* 見出し */
.telop-headline {
    font-family: 'DotGothic16', monospace;
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a1a1a;
    background: #fff;
    padding: 14px 22px;
    text-shadow: none;
    border-top: 4px solid #cc0000;
}

/* サブ */
.telop-sub {
    font-family: 'DotGothic16', monospace;
    font-size: 1.2rem;
    color: #555;
    background: #fff;
    padding: 8px 22px 12px;
}

/* Breaking Badge - not needed separately, merged into telop */
.news-breaking {
    display: none;
}

.breaking-label {
    display: none;
}

/* Time Display */
.news-time {
    position: absolute;
    top: 3%;
    right: 3%;
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    letter-spacing: 2px;
    z-index: 5;
}

/* Hint - テロップ内に配置 */
.news-hint {
    font-family: 'VT323', monospace;
    font-size: 0.85rem;
    color: #999;
    background: #fff;
    padding: 4px 22px 8px;
    animation: hintBlink 2s ease-in-out infinite;
}

/* =====================================================
   NEWS PROGRAM 1: PHOTO SLIDESHOW
   ===================================================== */
.news-slideshow {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    overflow: hidden;
}

/* Photo Container */
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slideshow-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow-photo.active {
    opacity: 1;
}

/* Slideshow UI */
.slideshow-ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    z-index: 5;
}

.slideshow-logo {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    padding: 4px 10px;
    background: #cc0000;
}

.slideshow-counter {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    letter-spacing: 1px;
}

/* Progress Bar */
.slideshow-progress {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 5;
}

.progress-bar {
    height: 100%;
    background: #cc0000;
    width: 0%;
    transition: width 0.1s linear;
}

/* =====================================================
   TV CONTROLS
   ===================================================== */
.tv-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px;
    background: transparent;
    /* 画面下部に固定 */
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

/* 電源ボタンへの誘導テキスト */
.power-hint {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'VT323', monospace;
    font-size: 0.7rem;
    color: rgba(0, 255, 65, 0.6);
    opacity: 0;
    animation: hintFloat 1.5s ease-in-out infinite;
    pointer-events: none;
}

body.tv-off .power-hint {
    opacity: 1;
}

body.tv-on .power-hint {
    display: none;
}

@keyframes hintFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) translateY(3px);
        opacity: 0.9;
    }
}

.ctrl-power {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(30, 30, 30, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    box-shadow:
        inset 0 1px 3px rgba(255,255,255,0.1),
        inset 0 -2px 4px rgba(0,0,0,0.5),
        0 2px 8px rgba(0,0,0,0.6);
}

.ctrl-power:hover {
    background: rgba(50, 50, 50, 0.9);
}

.ctrl-power:active {
    transform: scale(0.95);
}

/* TV OFF時：電源ボタンを目立たせる */
body.tv-off .ctrl-power {
    animation: powerHint 2s ease-in-out infinite;
}

@keyframes powerHint {
    0%, 100% {
        box-shadow:
            inset 0 1px 3px rgba(255,255,255,0.1),
            0 0 8px rgba(0, 255, 65, 0.3);
    }
    50% {
        box-shadow:
            inset 0 1px 3px rgba(255,255,255,0.1),
            0 0 15px rgba(0, 255, 65, 0.5);
    }
}

body.tv-off .power-icon {
    color: rgba(0, 255, 65, 0.7);
}

body.tv-on .ctrl-power {
    background: rgba(0, 180, 50, 0.9);
    box-shadow:
        inset 0 1px 3px rgba(255,255,255,0.2),
        0 0 15px rgba(0, 255, 65, 0.5);
}

.power-icon {
    width: 20px;
    height: 20px;
    color: #555;
    transition: all 0.3s;
}

body.tv-on .power-icon {
    color: #fff;
    filter: drop-shadow(0 0 3px #fff);
}

.ctrl-channels {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ctrl-ch {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.ctrl-ch.ch-down {
    background: rgba(180, 150, 50, 0.85);
    color: #222;
    box-shadow:
        inset 0 1px 2px rgba(255,255,200,0.3),
        0 2px 6px rgba(0,0,0,0.5);
}

.ctrl-ch.ch-up {
    background: rgba(180, 50, 50, 0.85);
    color: #fff;
    box-shadow:
        inset 0 1px 2px rgba(255,200,200,0.3),
        0 2px 6px rgba(0,0,0,0.5);
}

.ctrl-ch:hover {
    filter: brightness(1.15);
}

.ctrl-ch:active {
    transform: scale(0.95);
}

.ctrl-ch-display {
    font-family: 'VT323', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

/* Program Buttons - 番組切り替え */
.ctrl-programs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctrl-prog {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.15s;
    background: rgba(80, 80, 80, 0.85);
    color: #fff;
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.2),
        0 2px 6px rgba(0,0,0,0.5);
}

.ctrl-prog:hover:not(:disabled) {
    filter: brightness(1.2);
}

.ctrl-prog:active:not(:disabled) {
    transform: scale(0.95);
}

.ctrl-prog:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Volume Controls */
.ctrl-volume {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ctrl-vol {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.15s;
    background: rgba(80, 80, 80, 0.85);
    color: #fff;
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.2),
        0 2px 6px rgba(0,0,0,0.5);
}

.ctrl-vol:hover {
    filter: brightness(1.2);
}

.ctrl-vol:active {
    transform: scale(0.95);
}

/* Language Toggle */
.ctrl-lang {
    display: flex;
    align-items: center;
}

.ctrl-lang-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 0.65rem;
    font-weight: bold;
    transition: all 0.15s;
    background: rgba(80, 80, 80, 0.85);
    color: #fff;
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.2),
        0 2px 6px rgba(0,0,0,0.5);
}

.ctrl-lang-btn:hover {
    filter: brightness(1.2);
}

.ctrl-lang-btn:active {
    transform: scale(0.95);
}

/* Volume OSD (on-screen display) */
.volume-osd {
    position: absolute;
    top: 8%;
    left: 8%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 14px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    letter-spacing: 1px;
}

.volume-osd.show {
    opacity: 1;
}

.volume-bar {
    letter-spacing: 2px;
}

.volume-level {
    min-width: 1ch;
    text-align: right;
}

/* =====================================================
   KEYBOARD HINTS
   ===================================================== */
.keyboard-hints {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    background: transparent;
    padding: 5px 10px;
    opacity: 0.6;
    transition: opacity 0.3s;
    z-index: 99;
}

.keyboard-hints:hover {
    opacity: 1;
    color: rgba(255,255,255,0.6);
}

/* TV OFF時はスペースキーを強調 */
body.tv-off .keyboard-hints span:first-child {
    color: var(--phosphor-green);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 800px) {
    .screen-container {
        width: 50%;
        height: 50%;
    }

    .vhs-ui {
        padding: 12px;
        font-size: 0.9rem;
    }

    .vhs-play, .vhs-counter {
        font-size: 1rem;
    }

    .logo-main {
        font-size: 2.5rem;
    }

    .project-name {
        font-size: 1.5rem;
    }

    .project-desc {
        font-size: 0.85rem;
    }

    .about-card {
        flex-direction: column;
        gap: 20px;
    }

    .about-avatar {
        width: 100px;
        height: 100px;
    }

    .info-value.name {
        font-size: 1.4rem;
    }

    .tv-controls {
        gap: 20px;
        padding: 12px 25px;
    }

    .ctrl-power {
        width: 48px;
        height: 48px;
    }

    .ctrl-ch {
        width: 35px;
        height: 35px;
    }

    .ctrl-prog, .ctrl-vol, .ctrl-lang-btn {
        width: 32px;
        height: 32px;
    }

    .keyboard-hints {
        display: none;
    }
}

@media (max-width: 500px) {
    .screen-container {
        width: 60%;
        height: 45%;
        border-radius: 6px;
    }

    .ch-header {
        padding: 10px 15px;
    }

    .ch-title {
        font-size: 1.2rem;
    }

    .logo-main {
        font-size: 2rem;
    }

    .contact-list {
        padding: 15px 20px;
    }

    .contact-item {
        padding: 12px 15px;
    }

    .contact-name {
        font-size: 1.1rem;
    }

    .contact-handle {
        display: none;
    }

    .tv-controls {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 15px;
        background: rgba(0, 0, 0, 0.9);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
    }

    .power-hint {
        display: none;
    }

    .ctrl-power {
        width: 50px;
        height: 50px;
    }

    .ctrl-ch {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .ctrl-prog, .ctrl-vol, .ctrl-lang-btn {
        width: 38px;
        height: 38px;
        font-size: 0.8rem;
    }

    .ctrl-ch-display {
        font-size: 0.9rem;
    }
}

/* =====================================================
   MOBILE SITE — Apple-bold × warm parchment
   ===================================================== */

#mobile-site {
    display: none;
}

@media (max-width: 768px) {

    html, body {
        overflow: auto !important;
        height: auto !important;
        scroll-behavior: smooth;
    }
    .tv-terminal { display: none !important; }

    #mobile-site {
        display: block;
        min-height: 100vh;
        font-family: 'Noto Sans JP', -apple-system, sans-serif;
        overflow-x: hidden;
        --parchment: #f5f4ed;
        --ivory: #faf9f5;
        --near-black: #141413;
        --warm-dark: #1c1c1a;
        --terra: #c96442;
        --text-sub: #5e5d59;
        --text-muted: #87867f;
        --border: #e8e6dc;
    }

    /* ── NAV ── */
    .m-nav {
        position: sticky; top: 0; z-index: 200;
        background: rgba(20,20,19,0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 16px 24px;
        display: flex; justify-content: space-between; align-items: center;
    }
    .m-nav-logo {
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 1.05rem; font-weight: 500;
        color: #faf9f5; letter-spacing: 0.08em;
    }
    .m-lang-btn {
        font-family: Georgia, serif;
        font-size: 0.72rem; letter-spacing: 0.1em;
        padding: 5px 12px;
        border: 1px solid rgba(250,249,245,0.25);
        background: transparent; color: #faf9f5;
        border-radius: 6px; cursor: pointer;
        transition: border-color 0.2s;
    }
    .m-lang-btn:active { border-color: var(--terra); }

    /* ── HERO (dark) ── */
    .m-hero {
        background: var(--near-black);
        padding: 80px 28px 72px;
        text-align: center;
    }
    .m-hero-inner { max-width: 400px; margin: 0 auto; }
    .m-hero-avatar {
        width: 80px; height: 80px;
        border-radius: 50%;
        border: 2px solid rgba(250,249,245,0.12);
        margin-bottom: 28px;
    }
    .m-hero-name {
        font-family: Georgia, serif;
        font-size: clamp(3.2rem, 14vw, 5rem);
        font-weight: 700; color: #faf9f5;
        letter-spacing: -0.03em; line-height: 0.92;
        margin-bottom: 12px;
    }
    .m-hero-role {
        font-size: 0.82rem; font-weight: 500;
        color: var(--terra);
        letter-spacing: 0.18em;
        text-transform: uppercase;
        margin-bottom: 24px;
    }
    .m-hero-desc {
        font-size: 0.92rem; line-height: 1.8;
        color: rgba(250,249,245,0.6);
        max-width: 320px; margin: 0 auto 28px;
    }
    .m-hero-tags {
        display: flex; flex-wrap: wrap;
        justify-content: center; gap: 8px;
    }
    .m-hero-tags span {
        font-size: 0.68rem; font-weight: 500;
        letter-spacing: 0.08em;
        padding: 5px 14px;
        border: 1px solid rgba(250,249,245,0.12);
        color: rgba(250,249,245,0.5);
        border-radius: 20px;
    }

    /* ── SECTION LABEL ── */
    .m-sec-label {
        font-family: Georgia, serif;
        font-size: clamp(2.4rem, 10vw, 3.4rem);
        font-weight: 700; letter-spacing: -0.03em;
        line-height: 1; margin-bottom: 36px;
    }

    /* ── WORKS (light) ── */
    .m-works {
        background: var(--parchment);
        padding: 64px 24px;
    }
    .m-works .m-sec-label { color: var(--near-black); }
    .m-work {
        display: flex; align-items: flex-start; gap: 16px;
        padding: 24px 0;
        border-bottom: 1px solid var(--border);
        text-decoration: none; color: inherit;
        transition: opacity 0.15s;
    }
    .m-work:first-of-type { border-top: 1px solid var(--border); }
    .m-work:active { opacity: 0.7; }
    .m-work-num {
        font-family: Georgia, serif;
        font-size: 0.78rem; font-weight: 500;
        color: var(--terra);
        padding-top: 3px; flex-shrink: 0;
        min-width: 24px;
    }
    .m-work-body { flex: 1; min-width: 0; }
    .m-work-name {
        font-family: Georgia, serif;
        font-size: 1.2rem; font-weight: 700;
        color: var(--near-black);
        letter-spacing: -0.01em;
        line-height: 1.3; margin-bottom: 4px;
    }
    .m-work-badge {
        font-size: 0.58rem; font-weight: 600;
        letter-spacing: 0.1em;
        padding: 2px 8px;
        background: rgba(201,100,66,0.12);
        color: var(--terra);
        border-radius: 4px;
        margin-left: 8px;
        vertical-align: middle;
    }
    .m-work-cat {
        font-size: 0.72rem; color: var(--text-muted);
        letter-spacing: 0.04em; margin-bottom: 8px;
    }
    .m-work-desc {
        font-size: 0.85rem; line-height: 1.7;
        color: var(--text-sub);
    }
    .m-work-arrow {
        font-family: Georgia, serif;
        font-size: 1.1rem; color: var(--text-muted);
        padding-top: 4px; flex-shrink: 0;
        transition: transform 0.2s;
    }
    .m-work:active .m-work-arrow { transform: translateX(4px); }

    /* ── DARK SECTIONS ── */
    .m-dark {
        background: var(--near-black);
        padding: 64px 24px;
    }
    .m-dark .m-sec-label { color: #faf9f5; }
    .m-dark-catch {
        font-family: Georgia, serif;
        font-size: 1.6rem; font-weight: 700;
        color: rgba(250,249,245,0.85);
        letter-spacing: -0.01em;
        margin-bottom: 32px;
    }

    /* ── BLOG LIST ── */
    .m-blog-list { display: flex; flex-direction: column; }
    .m-blog-row {
        display: flex; align-items: center; gap: 12px;
        padding: 16px 0;
        border-bottom: 1px solid rgba(250,249,245,0.08);
        text-decoration: none; color: #faf9f5;
        transition: opacity 0.15s;
    }
    .m-blog-row:active { opacity: 0.6; }
    .m-blog-tag {
        font-size: 0.58rem; font-weight: 600;
        letter-spacing: 0.06em;
        padding: 3px 10px;
        background: rgba(201,100,66,0.18);
        color: #d97757;
        border-radius: 4px;
        white-space: nowrap; flex-shrink: 0;
    }
    .m-blog-tag.t2 { background: rgba(160,140,200,0.15); color: #a08cc8; }
    .m-blog-tag.t3 { background: rgba(100,180,140,0.15); color: #64b48c; }
    .m-blog-tag.t4 { background: rgba(200,170,80,0.15); color: #c8aa50; }
    .m-blog-title {
        flex: 1; font-size: 0.88rem; font-weight: 500;
        color: rgba(250,249,245,0.8);
    }
    .m-blog-more {
        display: inline-block;
        margin-top: 24px;
        font-size: 0.82rem; font-weight: 600;
        color: var(--terra);
        text-decoration: none;
        letter-spacing: 0.04em;
        border-bottom: 1px solid transparent;
        transition: border-color 0.2s;
    }
    .m-blog-more:active { border-color: var(--terra); }

    /* ── ABOUT (light) ── */
    .m-about {
        background: var(--ivory);
        padding: 64px 24px;
    }
    .m-about-bio {
        font-size: 0.88rem; line-height: 1.9;
        color: var(--text-sub);
        margin-bottom: 28px;
    }
    .m-about .m-sec-label { color: var(--near-black); }
    .m-about-card {
        display: flex; align-items: center; gap: 18px;
        margin-bottom: 32px;
    }
    .m-about-avatar {
        width: 64px; height: 64px;
        border-radius: 50%;
        border: 2px solid var(--border);
    }
    .m-about-name {
        font-family: Georgia, serif;
        font-size: 1.6rem; font-weight: 700;
        color: var(--near-black);
        letter-spacing: -0.02em;
    }
    .m-about-role {
        font-size: 0.78rem; color: var(--text-muted);
        letter-spacing: 0.04em; margin-top: 2px;
    }
    .m-about-services {
        display: flex; flex-wrap: wrap; gap: 8px;
        margin-bottom: 20px;
    }
    .m-about-services span {
        font-size: 0.78rem; font-weight: 600;
        color: var(--near-black);
        padding: 8px 16px;
        background: var(--parchment);
        border: 1px solid var(--border);
        border-radius: 8px;
    }
    .m-about-stack {
        display: flex; flex-wrap: wrap; gap: 6px;
    }
    .m-about-stack span {
        font-size: 0.7rem; font-weight: 500;
        color: var(--text-muted);
        padding: 5px 12px;
        border: 1px solid var(--border);
        border-radius: 16px;
    }

    /* ── CONTACT (dark) ── */
    .m-contact { padding-bottom: 48px; }
    .m-contact-links {
        display: flex; flex-direction: column; gap: 0;
    }
    .m-cta-link {
        display: flex; align-items: center; gap: 14px;
        padding: 20px 0;
        border-bottom: 1px solid rgba(250,249,245,0.08);
        text-decoration: none; color: #faf9f5;
        transition: opacity 0.15s;
    }
    .m-cta-link:active { opacity: 0.6; }
    .m-cta-link svg { flex-shrink: 0; fill: rgba(250,249,245,0.5); }
    .m-cta-link span:nth-child(2) {
        font-family: Georgia, serif;
        font-size: 1rem; font-weight: 600;
    }
    .m-cta-handle {
        margin-left: auto;
        font-size: 0.75rem; color: var(--text-muted);
    }

    /* ── GALLERY ── */
    .m-gallery {
        background: var(--parchment);
        padding: 8px;
    }
    .m-gallery-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    .m-gal-item {
        aspect-ratio: 1;
        overflow: hidden;
        border-radius: 2px;
    }
    .m-gal-item img {
        width: 100%; height: 100%;
        object-fit: cover; display: block;
        transition: transform 0.4s cubic-bezier(0.5,0,0.14,1);
    }
    .m-gal-item:active img { transform: scale(1.05); }

    /* ── FOOTER ── */
    .m-footer {
        background: var(--near-black);
        padding: 32px 24px;
        display: flex; justify-content: space-between; align-items: center;
        border-top: 1px solid rgba(250,249,245,0.06);
    }
    .m-footer-logo {
        font-family: Georgia, serif;
        font-size: 0.85rem; font-weight: 500;
        color: rgba(250,249,245,0.4);
        letter-spacing: 0.08em;
    }
    .m-footer-copy {
        font-size: 0.7rem;
        color: rgba(250,249,245,0.2);
    }

    /* ── SCROLL REVEAL ── */
    .m-anim {
        opacity: 0; transform: translateY(28px);
        transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
                    transform 0.7s cubic-bezier(0.16,1,0.3,1);
    }
    .m-anim.m-anim-visible {
        opacity: 1; transform: translateY(0);
    }

    /* ── HERO STAGGER (CSS only) ── */
    .m-hero .m-anim:nth-child(1) { transition-delay: 0.1s; }
    .m-hero .m-anim:nth-child(2) { transition-delay: 0.2s; }
    .m-hero .m-anim:nth-child(3) { transition-delay: 0.35s; }
    .m-hero .m-anim:nth-child(4) { transition-delay: 0.5s; }
    .m-hero .m-anim:nth-child(5) { transition-delay: 0.65s; }
}



/* ── Mobile: blog float cards limit to left col (3 cards) ── */
@media(max-width: 700px) {
    .blog-float-col.right { display: none; }
}

/* Direct site navigation is independent of the interactive TV. */
.site-directory { position:fixed; top:16px; left:16px; z-index:100; max-width:330px; padding:14px 16px; border:1px solid #43443a; border-radius:12px; background:rgba(14,16,13,.94); color:#f5f4ed; font:12px/1.7 'Noto Sans JP',sans-serif; }
.directory-brand { color:#fff; font-weight:700; text-decoration:none; }
.site-directory p { margin:7px 0; color:#c9cabf; }
.site-directory nav { display:flex; flex-wrap:wrap; gap:6px 14px; }
.site-directory nav a { color:#d8e9ac; text-underline-offset:3px; }
.site-directory a:focus-visible { outline:2px solid #ffd000; outline-offset:3px; }
@media (max-width:768px) { .site-directory { position:relative; inset:auto; max-width:none; border-radius:0; border:0; border-bottom:1px solid #deded3; background:#f5f4ed; color:#141413; padding:16px 24px; } .directory-brand { color:#141413; } .site-directory p { color:#5e5d59; } .site-directory nav a { color:#6e482e; } }
