:root {
    --bg-dark: #fafbfd;
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-glass: rgba(0, 0, 0, 0.06);
    
    --primary-pink: #ff758f;
    --primary-glow: rgba(255, 117, 143, 0.25);
    --teal-water: #0d9488;
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --font-sans: 'Outfit', 'Noto Sans JP', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    background: radial-gradient(circle at 50% -20%, #e0f2fe 0%, var(--bg-dark) 70%);
}

.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem 6rem;
}

/* Header */
.site-header {
    text-align: center;
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
}

.logo-text {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, #0f172a 0%, var(--primary-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-pink), transparent);
}

.tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.08em;
}

/* Massive River Hero Section (FULL WIDTH) */
.river-hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 4rem;
    text-align: center;
}

.river-container {
    position: relative;
    width: 100%;
    height: 420px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(224, 242, 254, 0.4) 40%, rgba(255, 255, 255, 0) 100%);
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: inset 0 0 40px rgba(14, 165, 233, 0.06);
}

.river-current {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    overflow: hidden;
}

.bg-current {
    z-index: 1;
}

.fg-current {
    z-index: 6;
    pointer-events: none; /* Allows click events to pass through waves */
}

.river-waves {
    position: absolute;
    width: 200%;
    height: 100%;
    bottom: 0;
    left: 0;
}

/* Wave Layers Anim */
.wave-layer {
    animation: flow 18s linear infinite;
    transform-origin: center bottom;
}

.wave-1 {
    animation-duration: 12s;
    opacity: 0.95;
}

.wave-2 {
    animation-duration: 16s;
    animation-delay: -2s;
    opacity: 0.8;
}

.wave-3 {
    animation-duration: 22s;
    animation-delay: -5s;
    opacity: 0.6;
}

.wave-4 {
    animation-duration: 28s;
    animation-delay: -8s;
    opacity: 0.4;
}

@keyframes flow {
    0% { transform: translate3d(0, 0, 0) scaleY(1); }
    50% { transform: translate3d(-25%, 5px, 0) scaleY(1.05); }
    100% { transform: translate3d(-50%, 0, 0) scaleY(1); }
}

/* Drifting Peach Zone */
.peach-float-zone {
    position: absolute;
    top: 55%; /* Submerge further down into the waves */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4; /* Sandwiched between bg-current (1) and fg-current (6) */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Thought Bubble */
.thought-bubble-anchor {
    position: absolute;
    bottom: 120%;
    width: 260px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.thought-bubble {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 117, 143, 0.4);
    color: var(--text-main);
    padding: 0.7rem 1.2rem;
    border-radius: 16px;
    font-size: 0.85rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 10px rgba(255, 117, 143, 0.08);
    opacity: 0;
    transform: scale(0.9) translateY(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.thought-bubble.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Peach Visuals */
.peach-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    cursor: pointer;
    animation: donburako 6s ease-in-out infinite;
    transform-origin: bottom center;
}

.peach-body {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 35% 30%, #ffd3e0 0%, #ff8fa3 45%, #ff4d6d 80%, #c9184a 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 8px 25px rgba(255, 117, 143, 0.25), 0 6px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: transform 0.2s ease;
}

.peach-crease {
    position: absolute;
    top: 10%;
    left: 48%;
    width: 4px;
    height: 80%;
    background: linear-gradient(to bottom, rgba(162, 2, 45, 0.5) 0%, rgba(255, 143, 163, 0.1) 80%);
    border-radius: 2px;
}

.peach-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: breathe-glow 4s ease-in-out infinite;
}

.peach-ripple-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-pink);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: none;
}

/* Animations */
@keyframes donburako {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    33% { transform: translateY(-8px) rotate(3deg); }
    66% { transform: translateY(3px) rotate(-1deg); }
}

@keyframes breathe-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

.peach-wrapper.wobble .peach-body {
    animation: quick-wobble 0.6s ease-in-out;
}

.peach-wrapper.wobble .peach-ripple-ring {
    animation: out-ripple 0.8s cubic-bezier(0.1, 0.8, 0.3, 1);
}

@keyframes quick-wobble {
    0%, 100% { transform: scale(1) rotate(0); }
    15% { transform: scale(1.1, 0.9) rotate(-15deg); }
    30% { transform: scale(0.9, 1.1) rotate(12deg); }
    50% { transform: scale(1.05, 0.95) rotate(-8deg); }
    70% { transform: scale(0.98, 1.02) rotate(4deg); }
}

@keyframes out-ripple {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

/* Interactive Water Ripples overlay */
.ripples-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 7; /* Placed right above fg-current waves to look like surface ripples */
}

.interactive-ripple {
    position: absolute;
    border: 1.5px solid rgba(14, 165, 233, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.8;
    animation: ripple-grow 1.4s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes ripple-grow {
    to {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
        border-color: rgba(255, 117, 143, 0);
    }
}

.river-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    letter-spacing: 0.05em;
}

/* Split content grid layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Glass Cards */
.timeline-card, .cheer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.2rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    border-left: 3px solid var(--primary-pink);
    padding-left: 0.8rem;
}

/* Roadmap timeline styles */
.roadmap {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.roadmap-item {
    display: flex;
    gap: 1.2rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.roadmap-item.active {
    opacity: 1;
}

.roadmap-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-num {
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.03);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.roadmap-item.active .step-num {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    color: #fff;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.roadmap-body h3 {
    font-size: 1.05rem;
    display: inline-block;
}

.badge {
    display: inline-block;
    font-size: 0.68rem;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    margin-left: 0.6rem;
    vertical-align: middle;
}

.badge.current {
    background: rgba(255, 117, 143, 0.1);
    color: var(--primary-pink);
}

.roadmap-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Cheering Section */
.card-intro {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cheer-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-wrap textarea {
    width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
}

.input-wrap textarea:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 10px rgba(255, 117, 143, 0.1);
}

.throw-btn {
    background: linear-gradient(135deg, var(--primary-pink) 0%, #b53a55 100%);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 117, 143, 0.15);
}

.throw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 117, 143, 0.25);
}

.throw-btn:active {
    transform: translateY(0);
}

/* Stream Logs */
.stream-log {
    margin-top: 1.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.2rem;
}

.stream-log h4 {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.stream-list {
    max-height: 160px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.stream-list::-webkit-scrollbar {
    width: 6px;
}

.stream-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
}

.stream-item {
    background: rgba(0, 0, 0, 0.02);
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-pink);
    font-size: 0.85rem;
    animation: slide-up 0.5s ease-out;
}

.stream-item .timestamp {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

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

/* Footer */
.site-footer {
    text-align: center;
    padding: 2.5rem 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    border-top: 1px solid var(--border-glass);
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 850px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .river-container {
        height: 320px;
    }
    
    .peach-float-zone {
        top: 55%;
    }
}
