/* haru.club — Frutiger Aero glossy / Y2K-futurism */

:root {
    --bg-start: #c9e8ff;
    --bg-end: #d4f5e0;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-bg-strong: rgba(255, 255, 255, 0.62);
    --glass-border: rgba(255, 255, 255, 0.6);
    --text-primary: #1a4a5a;
    --text-muted: rgba(26, 74, 90, 0.65);
    --accent-action: #ff6b6b;
    --accent-success: #2dd4a8;
    --streak-gold: #ffb020;
    --orb-pink: #ff9ecb;
    --orb-blue: #7ec8f0;
    --orb-green: #2dd4a8;
    --shadow-soft: 0 8px 32px rgba(26, 74, 90, 0.08);
    --shadow-deep: 0 14px 50px rgba(26, 74, 90, 0.18);
}

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

html, body {
    min-height: 100vh;
    font-family: 'Rubik', system-ui, sans-serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body {
    position: relative;
    padding-bottom: 60px;
}

/* ================== ORBS ================== */
.orb-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.85;
    will-change: transform;
}

.orb.small {
    width: 140px;
    height: 140px;
}

.orb-pink   { background: radial-gradient(circle, var(--orb-pink) 0%, transparent 70%); animation: drift1 24s ease-in-out infinite; }
.orb-blue   { background: radial-gradient(circle, var(--orb-blue) 0%, transparent 70%); animation: drift2 28s ease-in-out infinite; }
.orb-green  { background: radial-gradient(circle, var(--orb-green) 0%, transparent 70%); animation: drift3 32s ease-in-out infinite; opacity: 0.7; }
.orb-amber  { background: radial-gradient(circle, var(--streak-gold) 0%, transparent 70%); animation: drift1 26s ease-in-out infinite reverse; opacity: 0.55; }

@keyframes drift1 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(40px, -30px) scale(1.08); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes drift2 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-50px, 40px) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes drift3 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(30px, 30px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

/* ================== GLASS PANEL ================== */
.glass-panel {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(rgba(255,255,255,0.32), transparent);
    border-radius: 22px 22px 0 0;
    pointer-events: none;
}

/* ================== HEADER ================== */
.club-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px clamp(20px, 4vw, 48px);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    background: rgba(255, 255, 255, 0.32);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, var(--accent-action) 60%, #c43c3c);
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.45), inset 0 1px 2px rgba(255,255,255,0.8);
}

.brand-name {
    font-family: 'Rubik', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.brand-dot-sep {
    color: var(--accent-action);
}

.brand-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.club-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 16px;
    border-radius: 999px;
    transition: background 0.25s, color 0.25s;
}

.nav-link:hover { background: rgba(255, 255, 255, 0.55); }

.nav-link.active {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 2px 8px rgba(26, 74, 90, 0.08);
}

.nav-cta {
    margin-left: 8px;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-success), #1eb38f);
    box-shadow: 0 6px 18px rgba(45, 212, 168, 0.5), inset 0 1px 0 rgba(255,255,255,0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(45, 212, 168, 0.6), inset 0 1px 0 rgba(255,255,255,0.7); }
.nav-cta:active { transform: translateY(1px); }

/* ================== MAIN ================== */
.club-main {
    position: relative;
    z-index: 5;
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 56px;
}

/* ================== HERO TODAY BOARD ================== */
.today-board {
    padding: clamp(28px, 5vw, 56px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 520px;
}

.today-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.today-pill {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
}

.today-status {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.today-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-success);
    box-shadow: 0 0 0 4px rgba(45, 212, 168, 0.25);
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(45, 212, 168, 0.25); }
    50% { box-shadow: 0 0 0 8px rgba(45, 212, 168, 0.05); }
}

.today-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #1a4a5a 0%, #2dd4a8 60%, #ff6b6b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.today-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 500;
    color: var(--text-primary);
    max-width: 760px;
}

.today-desc {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 640px;
}

.today-bottom {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.75);
    padding: 12px 18px;
    border-radius: 14px;
    min-width: 78px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 4px 14px rgba(26,74,90,0.08);
}

.cd-num {
    font-family: 'Bungee', cursive;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--text-primary);
    line-height: 1;
}

.cd-lbl {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.08em;
}

.cd-sep {
    font-family: 'Bungee', cursive;
    font-size: 1.6rem;
    color: var(--accent-action);
    transform: translateY(-6px);
    animation: blink 1s steps(2) infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Shiny accept button */
.shiny-btn {
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    padding: 18px 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8888 0%, var(--accent-action) 50%, #e04a4a 100%);
    box-shadow:
        0 10px 28px rgba(255, 107, 107, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.7),
        inset 0 -2px 4px rgba(196, 60, 60, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.shiny-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left 0.6s ease;
}

.shiny-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(rgba(255,255,255,0.35), transparent);
    border-radius: 999px 999px 0 0;
    pointer-events: none;
}

.shiny-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255, 107, 107, 0.55), inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -2px 4px rgba(196, 60, 60, 0.4); }
.shiny-btn:hover::before { left: 100%; }
.shiny-btn:active { transform: translateY(1px); }

.shiny-btn.accepted {
    background: linear-gradient(135deg, #4be3bb 0%, var(--accent-success) 50%, #1eb38f 100%);
    box-shadow: 0 10px 28px rgba(45, 212, 168, 0.5), inset 0 1px 0 rgba(255,255,255,0.7);
}

.btn-icon { font-size: 1.2rem; transition: transform 0.25s ease; }
.shiny-btn:hover .btn-icon { transform: translateX(4px); }

/* progress */
.today-progress {
    margin-top: 8px;
}

.progress-track {
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.7);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-success), var(--orb-blue));
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 0 14px rgba(45, 212, 168, 0.4);
    transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.progress-meta strong { color: var(--text-primary); font-weight: 700; }

/* ================== SECTION HEADS ================== */
.section-head {
    margin-bottom: 22px;
}
.section-head.light .section-title,
.section-head.light .section-sub { color: #fff; }
.section-head.light .section-sub { color: rgba(255,255,255,0.85); }

.section-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.02em;
}

.section-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ================== STREAK GRID ================== */
.streak-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.streak-card {
    position: relative;
    padding: 22px 18px;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.streak-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(rgba(255,255,255,0.35), transparent);
    border-radius: 18px 18px 0 0;
    pointer-events: none;
}

.streak-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-deep);
}

.avatar {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4), 0 6px 18px rgba(26,74,90,0.15);
    background: linear-gradient(135deg, var(--orb-pink), var(--orb-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Rubik', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.avatar::after {
    content: '';
    position: absolute;
    top: 6px; left: 14px;
    width: 18px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.65);
    filter: blur(2px);
}

.streak-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.streak-count {
    font-family: 'Bungee', cursive;
    font-size: clamp(2rem, 4vw, 2.6rem);
    color: var(--text-primary);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.streak-count.gold { color: var(--streak-gold); }

.streak-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* spark flame */
.spark {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 22px;
}
.spark span {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 12px solid var(--streak-gold);
    filter: drop-shadow(0 0 4px rgba(255, 176, 32, 0.7));
    animation: flicker 0.9s ease-in-out infinite;
    transform-origin: center bottom;
}
.spark span:nth-child(1) { animation-delay: 0s; border-bottom-color: #ff8c2e; }
.spark span:nth-child(2) { animation-delay: 0.25s; border-bottom-color: var(--streak-gold); height: 0; border-bottom-width: 14px; }
.spark span:nth-child(3) { animation-delay: 0.5s; border-bottom-color: #ffd86b; }

@keyframes flicker {
    0%, 100% { opacity: 0.6; transform: scaleY(1); }
    50%      { opacity: 1;   transform: scaleY(1.25); }
}

/* ================== HISTORY DIAGONAL BAND ================== */
.history-band {
    position: relative;
    padding: 90px 0;
    margin: 20px 0;
    background: linear-gradient(120deg, #7ec8f0 0%, #2dd4a8 60%, #ff9ecb 110%);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    box-shadow: 0 30px 60px rgba(26, 74, 90, 0.18);
}

.history-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 40%);
    pointer-events: none;
}

.history-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

.history-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 4px 18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.history-scroll::-webkit-scrollbar {
    height: 8px;
}
.history-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}
.history-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.7);
    border-radius: 4px;
}

.history-card {
    position: relative;
    flex: 0 0 240px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 10px 30px rgba(26,74,90,0.18);
    scroll-snap-align: start;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.history-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(rgba(255,255,255,0.4), transparent);
    border-radius: 18px 18px 0 0;
    pointer-events: none;
}

.history-card:hover { transform: translateY(-4px); }

.history-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.history-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 8px 0 12px;
    color: var(--text-primary);
}

.history-pct {
    font-family: 'Bungee', cursive;
    font-size: 1.8rem;
    color: var(--accent-success);
    line-height: 1;
}

.history-pct.coral { color: var(--accent-action); }
.history-pct.gold { color: var(--streak-gold); }
.history-pct.blue { color: #3b9bd1; }

.history-bar {
    margin-top: 10px;
    height: 8px;
    border-radius: 999px;
    background: rgba(26, 74, 90, 0.1);
    overflow: hidden;
}

.history-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-success), var(--orb-blue));
}

/* ================== CLUB FEED ================== */
.feed-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 760px;
}

.feed-bubble {
    position: relative;
    padding: 16px 22px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 22px 22px 22px 6px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
}

.feed-bubble::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(rgba(255,255,255,0.32), transparent);
    border-radius: 22px 22px 0 0;
    pointer-events: none;
}

.feed-bubble.right {
    align-self: flex-end;
    border-radius: 22px 22px 6px 22px;
}

.feed-avatar {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.85);
    background: linear-gradient(135deg, var(--orb-blue), var(--accent-success));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 4px 10px rgba(26,74,90,0.15);
}

.feed-body { flex: 1; }

.feed-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
}
.feed-text strong { font-weight: 700; }
.feed-text .accent-coral { color: var(--accent-action); font-weight: 700; }
.feed-text .accent-mint { color: var(--accent-success); font-weight: 700; }
.feed-text .accent-gold { color: var(--streak-gold); font-weight: 700; }

.feed-time {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ================== FOOTER ================== */
.club-footer {
    margin-top: 24px;
    padding: 22px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}

.footer-tag {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 14px;
}

.footer-right .ts {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 720px) {
    .club-nav .nav-link { display: none; }
    .club-nav .nav-link:last-of-type { display: inline-flex; }
    .today-bottom { flex-direction: column; align-items: flex-start; }
    .countdown { width: 100%; justify-content: space-between; }
    .cd-block { min-width: 0; flex: 1; padding: 10px 8px; }
    .feed-bubble.right { align-self: stretch; }
}
