/*
Theme Name: Rain City Theme
Theme URI: https://raincity.pesteczka.com
Author: A.F.
Author URI: https://raincity.pesteczka.com
Description: Custom neo-noir atmospheric theme for Rain City comic.
Version: 1.0.0
Text Domain: rain-city-theme
*/

/* =============================================
   RAIN CITY THEME v1.0
   Neo-noir • Rain • Romance
   ============================================= */

/* === DESIGN TOKENS === */
:root {
    /* Backgrounds - Deep ocean blues */
    --bg0: #030710;
    --bg1: #060c18;
    --bg2: #0a1020;
    --bg3: #10162e;
    --bg4: #161e3a;
    --card: #0c1428;
    --card-h: #111c38;
    --card-b: rgba(255,255,255,.022);
    --card-b-h: rgba(91,168,255,.07);
    
    /* Text hierarchy */
    --t1: #e8eaf4;
    --t1-5: #c8cce0;
    --t2: #8892b0;
    --t3: #4a5478;
    --t4: #2e3654;
    
    /* Brand colors */
    --blue: #5ba8ff;
    --blue2: #4090e8;
    --blue3: #3078cc;
    --blue-g: rgba(91,168,255,.06);
    --blue-gb: rgba(91,168,255,.1);
    --blue-glow: rgba(91,168,255,.15);
    --amber: #dfb050;
    --amber2: #c89a40;
    --amber-g: rgba(223,176,80,.05);
    --dc: #5865F2;
    --red: #e8564a;
    --green: #50c878;
    
    /* Typography */
    --f1: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --f2: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --fm: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
    
    /* Radii */
    --r: 10px;
    --r2: 14px;
    --r3: 20px;
    --r4: 28px;
    
    /* Easing */
    --ease: cubic-bezier(.4, 0, .12, 1);
    --ease-out: cubic-bezier(.0, 0, .2, 1);
    --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
    --fast: .18s;
    --med: .35s;
    --slow: .6s;
    
    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(0,0,0,.3);
    --shadow-sm: 0 2px 10px rgba(0,0,0,.35);
    --shadow-md: 0 8px 32px rgba(0,0,0,.45);
    --shadow-lg: 0 16px 56px rgba(0,0,0,.5);
    --shadow-xl: 0 24px 72px rgba(0,0,0,.55);
    --shadow-inset: inset 0 1px 0 rgba(255,255,255,.03);
    
    /* Layout */
    --max-w: 1200px;
    --nav-h: 68px;
    --gutter: 32px;
}

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

html { 
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.rc-body {
    background: var(--bg0);
    color: var(--t1);
    font-family: var(--f2);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
}

a { 
    color: inherit; 
    text-decoration: none; 
    transition: color var(--fast), opacity var(--fast);
}
img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}
ul { list-style: none; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* =============================================
   SCROLLBAR
   ============================================= */
body.rc-body { scrollbar-width: thin; scrollbar-color: var(--bg3) transparent; }
body.rc-body::-webkit-scrollbar { width: 6px; }
body.rc-body::-webkit-scrollbar-track { background: transparent; }
body.rc-body::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }
body.rc-body::-webkit-scrollbar-thumb:hover { background: var(--blue3); }
body.rc-body ::selection { background: rgba(91,168,255,.18); color: var(--t1); }

/* =============================================
   RAIN EFFECT
   ============================================= */
.rc-rain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.rc-d {
    position: absolute;
    top: -40px;
    width: 1px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(120,155,220,.15) 30%,
        rgba(120,155,220,.1) 60%,
        transparent 100%
    );
    animation: rc-fall linear infinite;
    will-change: transform;
}
@keyframes rc-fall {
    0%   { transform: translateY(-40px); opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.rc-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--slow) ease, transform var(--slow) var(--ease);
}
.rc-reveal.rc-visible {
    opacity: 1;
    transform: translateY(0);
}

.rc-scard:nth-child(1) { transition-delay: 0s; }
.rc-scard:nth-child(2) { transition-delay: .06s; }
.rc-scard:nth-child(3) { transition-delay: .12s; }
.rc-scard:nth-child(4) { transition-delay: .18s; }

.rc-ccard:nth-child(1) { transition-delay: 0s; }
.rc-ccard:nth-child(2) { transition-delay: .05s; }
.rc-ccard:nth-child(3) { transition-delay: .1s; }
.rc-ccard:nth-child(4) { transition-delay: .15s; }
.rc-ccard:nth-child(5) { transition-delay: .2s; }

.rc-socard:nth-child(1) { transition-delay: 0s; }
.rc-socard:nth-child(2) { transition-delay: .05s; }
.rc-socard:nth-child(3) { transition-delay: .1s; }
.rc-socard:nth-child(4) { transition-delay: .15s; }

.rc-lcard:nth-child(1) { transition-delay: 0s; }
.rc-lcard:nth-child(2) { transition-delay: .04s; }
.rc-lcard:nth-child(3) { transition-delay: .08s; }
.rc-lcard:nth-child(4) { transition-delay: .12s; }
.rc-lcard:nth-child(5) { transition-delay: .16s; }

/* =============================================
   LAYOUT
   ============================================= */
.rc-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.rc-main {
    flex: 1;
    position: relative;
    z-index: 2;
}

/* =============================================
   NAVIGATION
   ============================================= */
.rc-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    transition: var(--med) var(--ease);
}
.rc-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(3,7,16,.5);
    backdrop-filter: blur(32px) saturate(1.6);
    -webkit-backdrop-filter: blur(32px) saturate(1.6);
    border-bottom: 1px solid rgba(91,168,255,.03);
    transition: var(--med);
}
.rc-nav.scrolled::before {
    background: rgba(3,7,16,.92);
    border-bottom-color: rgba(91,168,255,.06);
    box-shadow: 0 1px 40px rgba(0,0,0,.5);
}
.rc-nav-in {
    position: relative;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.rc-logo {
    font-family: var(--f1);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
    letter-spacing: .01em;
    position: relative;
    z-index: 10;
    transition: opacity var(--fast);
}
.rc-logo:hover { opacity: .75; }
.rc-logo-i {
    font-size: .85rem;
    color: var(--blue);
    opacity: .45;
    transition: opacity var(--fast);
}
.rc-logo:hover .rc-logo-i { opacity: .8; }

/* Hamburger */
.rc-ham {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}
.rc-ham span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--t1);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: var(--fast) var(--ease);
    transform-origin: center;
}
.rc-ham span:nth-child(1) { top: 0; }
.rc-ham span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.rc-ham span:nth-child(3) { bottom: 0; }
.rc-ham[aria-expanded="true"] span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.rc-ham[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rc-ham[aria-expanded="true"] span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Nav links */
.rc-nav-links {
    display: flex;
    gap: 6px;
    position: relative;
    z-index: 10;
    align-items: center;
}
.rc-nav-links a {
    color: var(--t2);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color var(--fast), background var(--fast);
    position: relative;
    padding: 8px 14px;
    border-radius: 8px;
}
.rc-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--blue);
    border-radius: 1px;
    transition: width var(--med) var(--ease), left var(--med) var(--ease);
}
.rc-nav-links a:hover {
    color: var(--t1);
    background: rgba(91,168,255,.04);
}
.rc-nav-links a:hover::after {
    width: calc(100% - 28px);
    left: 14px;
}

.rc-nav-dc {
    color: var(--amber) !important;
    background: rgba(223,176,80,.04) !important;
}
.rc-nav-dc:hover {
    color: var(--t1) !important;
    background: rgba(223,176,80,.08) !important;
}
.rc-nav-dc::after { background: var(--amber) !important; }
.rc-nav-dc i { margin-right: 4px; font-size: .8rem; }

.rc-nav-user {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid rgba(255,255,255,.04);
}
.rc-nav-user a {
    color: var(--t3);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all var(--fast);
}
.rc-nav-user a:hover {
    color: var(--t1);
    background: rgba(91,168,255,.04);
}
.rc-nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid rgba(91,168,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    color: var(--blue);
    cursor: pointer;
    transition: border-color var(--fast);
}
.rc-nav-avatar:hover { border-color: rgba(91,168,255,.3); }

/* Google avatar */
.rc-nav-goog-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(91,168,255,.16);
    box-shadow: 0 0 0 2px rgba(91,168,255,.03);
    transition: border-color var(--fast), transform var(--fast);
    max-width: 28px;
    max-height: 28px;
}
.rc-nav-goog-avatar:hover {
    border-color: rgba(91,168,255,.32);
    transform: scale(1.04);
}

/* Mobile nav */
@media (max-width: 860px) {
    :root { --gutter: 20px; }
    .rc-ham { display: block; }
    .rc-nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        background: rgba(3,7,16,.97);
        backdrop-filter: blur(32px);
        -webkit-backdrop-filter: blur(32px);
        flex-direction: column;
        padding: 12px 20px 24px;
        gap: 2px;
        border-bottom: 1px solid rgba(91,168,255,.05);
        animation: rc-nav-slide .25s var(--ease);
    }
    @keyframes rc-nav-slide {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .rc-nav-links.open { display: flex; }
    .rc-nav-links a {
        font-size: .8rem;
        padding: 10px 14px;
        width: 100%;
        border-radius: 10px;
    }
    .rc-nav-links a:hover { background: rgba(91,168,255,.06); }
    .rc-nav-links a::after { display: none; }
    .rc-nav-user {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 8px;
        margin-top: 4px;
        border-top: 1px solid rgba(255,255,255,.03);
        width: 100%;
    }
}

/* =============================================
   BUTTONS
   ============================================= */
.rc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--r);
    font-family: var(--f2);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
    transition: all var(--med) var(--ease);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.rc-btn i { font-size: .75rem; flex-shrink: 0; }

.rc-btn-glow {
    background: var(--blue);
    color: var(--bg0);
}
.rc-btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--fast);
}
.rc-btn-glow::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--blue);
    filter: blur(20px);
    opacity: 0;
    transition: opacity var(--med);
    z-index: -1;
    border-radius: inherit;
}
.rc-btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(91,168,255,.3);
}
.rc-btn-glow:hover::before { opacity: 1; }
.rc-btn-glow:hover::after { opacity: .2; }
.rc-btn-glow:active { transform: translateY(0); }

.rc-btn-ghost {
    background: transparent;
    color: var(--t1-5);
    border: 1px solid rgba(232,234,242,.08);
}
.rc-btn-ghost::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(91,168,255,.04) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--fast);
    border-radius: inherit;
}
.rc-btn-ghost:hover {
    border-color: rgba(91,168,255,.25);
    color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(91,168,255,.06);
}
.rc-btn-ghost:hover::before { opacity: 1; }
.rc-btn-ghost:active { transform: translateY(0); }

.rc-btn-amber {
    background: var(--amber);
    color: var(--bg0);
    font-weight: 700;
}
.rc-btn-amber:hover {
    background: var(--amber2);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(223,176,80,.25);
}
.rc-btn-amber:active { transform: translateY(0); }

.rc-btn-continue {
    background: linear-gradient(135deg, #14305e, #122444);
    color: var(--blue);
    border: 1px solid rgba(91,168,255,.12);
}
.rc-btn-continue:hover {
    background: linear-gradient(135deg, #183a6e, #152c52);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(91,168,255,.12);
    border-color: rgba(91,168,255,.3);
}
.rc-btn-continue i { color: rgba(91,168,255,.6); }

.rc-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    background: #ffffff;
    color: #3c4043 !important;
    border: 1px solid #dadce0;
    border-radius: var(--r);
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.2;
    transition: all var(--fast) var(--ease);
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.rc-btn-google:hover {
    background: #f8f9fa;
    color: #202124 !important;
    border-color: #c6c6c6;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.rc-btn-google:active { transform: translateY(0); }
.rc-btn-google svg { flex-shrink: 0; display: block; }

.rc-off {
    opacity: .18;
    pointer-events: none;
    cursor: default;
}

/* =============================================
   HERO
   ============================================= */
.rc-hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-h) + 40px) var(--gutter) 80px;
    position: relative;
    overflow: hidden;
}
.rc-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 20%, var(--blue-g), transparent),
        radial-gradient(ellipse 45% 30% at 25% 75%, var(--amber-g), transparent),
        radial-gradient(ellipse 30% 20% at 80% 80%, rgba(91,168,255,.025), transparent);
    pointer-events: none;
    animation: rc-ambpulse 12s ease-in-out infinite alternate;
}
@keyframes rc-ambpulse { 0% { opacity: .5; } 100% { opacity: 1; } }

.rc-hero-content { position: relative; z-index: 2; max-width: 700px; }
.rc-hero-pre {
    color: var(--t3);
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .25em;
    margin-bottom: 28px;
    font-weight: 500;
}
.rc-hero-title {
    font-family: var(--f1);
    font-size: clamp(4rem, 12vw, 8.5rem);
    font-weight: 700;
    line-height: .85;
    margin-bottom: 32px;
    letter-spacing: -.035em;
}
.rc-hero-title em {
    color: var(--blue);
    font-style: italic;
    animation: rc-title-breathe 8s ease-in-out infinite;
}
@keyframes rc-title-breathe {
    0%, 100% { text-shadow: 0 0 30px rgba(91,168,255,.04); }
    50%      { text-shadow: 0 0 50px rgba(91,168,255,.1); }
}
.rc-hero-sub {
    font-family: var(--f1);
    font-size: clamp(.88rem, 1.6vw, 1.05rem);
    color: var(--t2);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 44px;
    font-weight: 400;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.rc-hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 48px;
}
.rc-hs { display: flex; flex-direction: column; align-items: center; }
.rc-hs strong {
    font-family: var(--f1);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--t1);
}
.rc-hs span {
    font-size: .58rem;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-top: 7px;
    font-weight: 500;
}
.rc-hs-sep {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, transparent, rgba(91,168,255,.12), transparent);
}
.rc-hero-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
@media (max-width: 520px) {
    .rc-hero-stats { gap: 24px; }
    .rc-hs strong { font-size: 1.5rem; }
    .rc-hero-btns { flex-direction: column; align-items: stretch; }
    .rc-hero-btns .rc-btn { justify-content: center; }
    .rc-hero-sub br { display: none; }
}

/* =============================================
   SECTIONS / CONTAINERS
   ============================================= */
.rc-section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 100px var(--gutter);
    position: relative;
    z-index: 2;
}
.rc-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: calc(var(--nav-h) + 44px) var(--gutter) 80px;
    position: relative;
    z-index: 2;
}
.rc-sec-head {
    text-align: center;
    margin-bottom: 56px;
}
.rc-sec-head h1,
.rc-sec-head h2 {
    font-family: var(--f1);
    font-weight: 700;
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    margin-bottom: 10px;
    letter-spacing: -.015em;
    line-height: 1.15;
}
.rc-sec-head p {
    color: var(--t2);
    font-size: .92rem;
    font-family: var(--f1);
    font-style: italic;
    font-weight: 400;
}
.rc-line {
    width: 44px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    margin: 20px auto 0;
    opacity: .6;
}

/* =============================================
   STORY CARDS
   ============================================= */
.rc-story-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 960px) { .rc-story-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .rc-story-row { grid-template-columns: 1fr; } }

.rc-scard {
    background: var(--card);
    border-radius: var(--r2);
    padding: 32px 24px 28px;
    border: 1px solid var(--card-b);
    transition: all var(--med) var(--ease);
    position: relative;
    overflow: hidden;
}
.rc-scard::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91,168,255,.15), transparent);
    opacity: 0;
    transition: opacity var(--med);
}
.rc-scard::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(91,168,255,.03), transparent 70%);
    opacity: 0;
    transition: opacity var(--med);
    pointer-events: none;
}
.rc-scard:hover {
    transform: translateY(-4px);
    border-color: var(--card-b-h);
    box-shadow: var(--shadow-md);
}
.rc-scard:hover::before { opacity: 1; }
.rc-scard:hover::after { opacity: 1; }

.rc-scard-i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(91,168,255,.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--blue);
    font-size: .9rem;
    border: 1px solid rgba(91,168,255,.06);
    transition: all var(--fast);
}
.rc-scard:hover .rc-scard-i {
    background: rgba(91,168,255,.08);
    border-color: rgba(91,168,255,.12);
    box-shadow: 0 0 16px rgba(91,168,255,.06);
}
.rc-scard h3 {
    font-family: var(--f1);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}
.rc-scard p {
    color: var(--t2);
    font-size: .84rem;
    line-height: 1.65;
}

/* =============================================
   CHARACTER CARDS
   ============================================= */
.rc-cgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.rc-ccard {
    display: block;
    background: var(--card);
    border-radius: var(--r2);
    overflow: hidden;
    border: 1px solid var(--card-b);
    transition: all var(--med) var(--ease);
    position: relative;
    cursor: pointer;
}
.rc-ccard::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 3;
    opacity: 0;
    transition: opacity var(--med);
    pointer-events: none;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 15%, transparent);
}
.rc-ccard:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--cc) 20%, transparent);
    box-shadow: var(--shadow-lg), 0 0 40px color-mix(in srgb, var(--cc) 5%, transparent);
}
.rc-ccard:hover::before { opacity: 1; }
.rc-ccard:hover .rc-cc-body h3 { color: var(--cc); transition: color .3s; }

.rc-cc-img { position: relative; height: 300px; overflow: hidden; }
.rc-cc-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 12%;
    transition: transform .8s var(--ease);
}
.rc-ccard:hover .rc-cc-bg { transform: scale(1.05); }
.rc-cc-empty { background: linear-gradient(150deg, var(--card-h), var(--bg3)); }

.rc-cc-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(to top, var(--card) 5%, transparent);
    pointer-events: none;
}
.rc-cc-glow {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--cc);
    opacity: 0;
    transition: opacity var(--med);
    box-shadow: 0 0 20px var(--cc), 0 -4px 16px color-mix(in srgb, var(--cc) 20%, transparent);
}
.rc-ccard:hover .rc-cc-glow { opacity: .6; }

.rc-cc-body { padding: 20px 24px 24px; }
.rc-cc-body h3 {
    font-family: var(--f1);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: -.01em;
    transition: color var(--med);
}
.rc-cc-sp {
    color: var(--t3);
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 500;
}
.rc-cc-qt {
    color: var(--t2);
    font-style: italic;
    font-size: .82rem;
    margin-top: 12px;
    line-height: 1.5;
    font-family: var(--f1);
    font-weight: 400;
}
.rc-cc-bar {
    height: 2px;
    background: var(--cc);
    opacity: .2;
    transition: opacity var(--fast);
}
.rc-ccard:hover .rc-cc-bar { opacity: .5; }

.rc-ccard.rc-locked {
    opacity: .55;
    cursor: default;
    filter: grayscale(.4);
}
.rc-ccard.rc-locked:hover {
    transform: none;
    box-shadow: none;
}
.rc-ccard.rc-locked::before { display: none; }
.rc-ccard.rc-locked .rc-cc-bar { background: rgba(255,255,255,.03) !important; }
.rc-ccard.rc-locked .rc-cc-body h3 { color: var(--t3) !important; font-size: .9rem; }
.rc-ccard.rc-locked .rc-cc-sp { color: var(--t4); font-size: .65rem; }
.rc-ccard.rc-locked .rc-cc-glow { display: none; }
.rc-ccard.rc-locked .rc-cc-qt { color: var(--t4); font-size: .75rem; }

/* =============================================
   BIG QUOTE
   ============================================= */
.rc-quote-sec { text-align: center; }
.rc-bigquote {
    max-width: 620px;
    margin: 0 auto;
    padding: 0;
    border: none;
    background: none;
    position: relative;
}
.rc-bq-mark {
    color: var(--amber);
    opacity: .08;
    font-size: 3.5rem;
    margin-bottom: 14px;
    line-height: 1;
}
.rc-bigquote p {
    font-family: var(--f1);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
    color: var(--t1);
    letter-spacing: -.01em;
}
.rc-bigquote cite {
    display: block;
    margin-top: 22px;
    color: var(--t3);
    font-size: .72rem;
    font-style: normal;
    font-family: var(--f2);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 500;
}

/* =============================================
   SOCIAL CARDS
   ============================================= */
.rc-social-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}
.rc-socard {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card);
    border-radius: var(--r2);
    padding: 28px 24px;
    text-align: center;
    border: 1px solid var(--card-b);
    transition: all var(--med) var(--ease);
    position: relative;
    overflow: hidden;
    width: 200px;
    flex-shrink: 0;
}
.rc-socard::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 20%, rgba(91,168,255,.03), transparent 70%);
    opacity: 0;
    transition: opacity var(--med);
    pointer-events: none;
}
.rc-socard:hover {
    transform: translateY(-4px);
    border-color: rgba(91,168,255,.1);
    box-shadow: var(--shadow-md);
}
.rc-socard:hover::before { opacity: 1; }
.rc-so-i {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 12px;
    color: var(--t3);
    transition: color var(--med), transform var(--med) var(--ease-bounce);
}
.rc-socard:hover .rc-so-i { color: var(--blue); transform: scale(1.1); }
.rc-socard h3 {
    font-family: var(--f1);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 3px;
}
.rc-socard p { color: var(--t3); font-size: .74rem; }
.rc-socard-dc { border-color: rgba(88,101,242,.08); }
.rc-socard-dc:hover {
    border-color: rgba(88,101,242,.25);
    box-shadow: 0 8px 32px rgba(88,101,242,.1);
}
.rc-socard-dc:hover::before { background: radial-gradient(ellipse at 50% 20%, rgba(88,101,242,.04), transparent 70%); }
.rc-socard-dc .rc-so-i { color: var(--dc); }

@media (max-width: 900px) { .rc-socard { width: calc(50% - 10px); min-width: 160px; } }
@media (max-width: 480px) { .rc-socard { width: 100%; } }

/* =============================================
   COMIC READER
   ============================================= */
.rc-reader {
    max-width: 740px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 28px) 20px 60px;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}
.rc-reader-head { text-align: center; margin-bottom: 28px; }
.rc-r-ch {
    color: var(--t3);
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 500;
}
.rc-r-title {
    font-family: var(--f1);
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 600;
    font-style: italic;
    margin-bottom: 4px;
    letter-spacing: -.01em;
    line-height: 1.2;
}
.rc-r-num {
    color: var(--t3);
    font-family: var(--fm);
    font-size: .72rem;
}

/* Chapter navigation */
.rc-r-chapnav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}
.rc-chapdd { position: relative; }
.rc-chapdd-btn {
    background: var(--bg3);
    border: 1px solid rgba(255,255,255,.022);
    border-radius: 7px;
    color: var(--t3);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .6rem;
    transition: .18s;
}
.rc-chapdd-btn:hover {
    border-color: rgba(91,168,255,.15);
    color: var(--blue);
}
.rc-chapdd-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px) scale(.96);
    opacity: 0;
    pointer-events: none;
    background: var(--bg2);
    border: 1px solid rgba(91,168,255,.06);
    border-radius: 12px;
    padding: 6px;
    min-width: 150px;
    z-index: 100;
    transition: .2s;
    box-shadow: var(--shadow-lg);
}
.rc-chapdd-menu.rc-chapdd-open {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}
.rc-chapdd-menu a {
    display: block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: .76rem;
    color: var(--t2);
    transition: .15s;
}
.rc-chapdd-menu a:hover {
    background: rgba(91,168,255,.06);
    color: var(--t1);
}
.rc-chapdd-menu .rc-chapdd-active {
    color: var(--blue);
    background: rgba(91,168,255,.06);
    font-weight: 600;
}

/* Reader frame */
.rc-r-frame {
    position: relative;
    background: #000;
    border-radius: var(--r3);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.025);
    cursor: pointer;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
}
.rc-r-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
    pointer-events: none;
    z-index: 10;
}
.rc-r-frame img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity .35s;
}
.rc-r-frame img.rc-img-loaded { opacity: 1; }

/* Swipe feedback */
.rc-r-frame.rc-swipe-left { transform: translateX(-8px); transition: transform .1s; }
.rc-r-frame.rc-swipe-right { transform: translateX(8px); transition: transform .1s; }

/* Fullscreen */
.rc-r-frame:fullscreen,
.rc-r-frame:-webkit-full-screen {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}
.rc-r-frame:fullscreen img,
.rc-r-frame:-webkit-full-screen img {
    max-height: 100vh;
    width: auto;
    max-width: 100vw;
    object-fit: contain;
    opacity: 1 !important;
}

/* Skeleton loader */
.rc-r-skeleton {
    position: absolute;
    inset: 0;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: opacity .4s;
}
.rc-r-skeleton-shimmer {
    width: 50%;
    height: 50%;
    max-width: 200px;
    max-height: 200px;
    background: linear-gradient(110deg,
        transparent 25%,
        rgba(91,168,255,.03) 45%,
        rgba(91,168,255,.05) 50%,
        rgba(91,168,255,.03) 55%,
        transparent 75%
    );
    background-size: 250% 100%;
    animation: rc-shimmer 2s ease-in-out infinite;
    border-radius: 12px;
}
@keyframes rc-shimmer {
    0%   { background-position: 250% 0; }
    100% { background-position: -250% 0; }
}
.rc-r-skeleton-hide {
    opacity: 0;
    pointer-events: none;
}

/* Reader navigation */
.rc-r-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.rc-r-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--card);
    color: var(--t1-5);
    border: 1px solid var(--card-b);
    border-radius: var(--r);
    font-size: .78rem;
    font-weight: 500;
    transition: all var(--fast) var(--ease);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.rc-r-btn i { font-size: .6rem; }
.rc-r-btn:hover:not(.rc-off) {
    background: var(--card-h);
    border-color: rgba(91,168,255,.15);
    color: var(--blue);
    transform: translateY(-2px);
}
.rc-r-btn:active:not(.rc-off) { transform: translateY(0); }

.rc-r-btn-next {
    background: var(--blue);
    color: var(--bg0);
    border-color: var(--blue);
    font-weight: 600;
}
.rc-r-btn-next:hover:not(.rc-off) {
    background: var(--blue2);
    border-color: var(--blue2);
    color: var(--bg0);
    box-shadow: 0 4px 16px rgba(91,168,255,.2);
}

.rc-r-count {
    font-family: var(--fm);
    color: var(--t3);
    font-size: .7rem;
    letter-spacing: .04em;
}
.rc-r-count span { opacity: .35; }

/* Share button */
.rc-r-actions {
    text-align: center;
    margin-top: 14px;
}
.rc-share-btn {
    background: var(--card);
    color: var(--t3);
    border: 1px solid rgba(255,255,255,.022);
    border-radius: var(--r);
    padding: 7px 18px;
    font-size: .72rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.rc-share-btn:hover {
    border-color: rgba(91,168,255,.15);
    color: var(--blue);
    transform: translateY(-1px);
}
.rc-share-btn i { font-size: .65rem; }
.rc-share-copied {
    border-color: rgba(80,200,120,.25) !important;
    color: var(--green) !important;
}

/* Hints */
.rc-r-hint {
    text-align: center;
    margin-top: 20px;
    color: var(--t4);
    font-size: .62rem;
    letter-spacing: .02em;
}
.rc-r-hint kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg3);
    padding: 3px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.04);
    font-family: var(--fm);
    font-size: .52rem;
    margin: 0 1px;
    min-width: 22px;
    color: var(--t3);
}
.rc-r-hint-mobile { display: none; }

/* Transcript */
.rc-transcript summary {
    list-style: none;
    color: var(--t4);
    font-size: .7rem;
    cursor: pointer;
    padding: 6px 0;
}
.rc-transcript summary::-webkit-details-marker { display: none; }
.rc-transcript summary::before { content: "▸ "; transition: transform .2s; }
.rc-transcript[open] summary::before { content: "▾ "; }
.rc-transcript p {
    color: var(--t3);
    font-size: .82rem;
    line-height: 1.7;
    margin-top: 8px;
    padding: 12px;
    background: var(--bg2);
    border-radius: 8px;
}

/* Reading progress bar */
.rc-progress {
    margin-top: 18px;
    position: relative;
    height: 2px;
    background: rgba(255,255,255,.03);
    border-radius: 2px;
    overflow: visible;
}
.rc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue3), var(--blue));
    border-radius: 2px;
    position: relative;
    transition: width .8s var(--ease);
}
.rc-progress-fill::after {
    content: "";
    position: absolute;
    right: -3px;
    top: -3px;
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(91,168,255,.4);
}
.rc-progress-label {
    text-align: center;
    margin-top: 10px;
    font-family: var(--fm);
    font-size: .6rem;
    color: rgba(255,255,255,.15);
    letter-spacing: .06em;
}

/* Mobile reader */
@media (max-width: 768px) {
    .rc-r-hint-desktop { display: none; }
    .rc-r-hint-mobile { display: inline; }
    .rc-r-frame { border-radius: 14px; }
    .rc-r-btn { padding: 13px 18px; font-size: .82rem; }
}

/* Palette-specific reader glows */
.rc-palette-cold-blue .rc-r-frame { box-shadow: var(--shadow-xl), 0 0 60px rgba(91,168,255,.06), 0 0 0 1px rgba(255,255,255,.025); }
.rc-palette-warm-amber .rc-r-frame { box-shadow: var(--shadow-xl), 0 0 60px rgba(223,176,80,.06), 0 0 0 1px rgba(255,255,255,.025); }
.rc-palette-cool-gray .rc-r-frame { box-shadow: var(--shadow-xl), 0 0 60px rgba(140,150,180,.04), 0 0 0 1px rgba(255,255,255,.025); }
.rc-palette-kade-warm .rc-r-frame { box-shadow: var(--shadow-xl), 0 0 60px rgba(200,168,74,.06), 0 0 0 1px rgba(255,255,255,.025); }

/* =============================================
   CHARACTER PROFILE
   ============================================= */
.rc-profile {
    max-width: 1000px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 44px) var(--gutter) 60px;
    position: relative;
    z-index: 2;
}
.rc-p-hero {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    margin-bottom: 48px;
    align-items: start;
}
@media (max-width: 768px) {
    .rc-p-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    .rc-p-imgwrap { max-width: 240px; margin: 0 auto; }
    .rc-p-meta { justify-content: center; }
}
.rc-p-imgwrap {
    position: relative;
    border-radius: var(--r2);
    overflow: visible;
}
.rc-p-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--r2);
    display: block;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,.04);
    box-shadow: var(--shadow-lg);
}
.rc-p-imgglow {
    position: absolute;
    bottom: -14px;
    left: 18%;
    right: 18%;
    height: 40px;
    filter: blur(24px);
    opacity: .1;
    border-radius: 50%;
    z-index: 0;
}
.rc-p-info h1 {
    font-family: var(--f1);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.05;
    letter-spacing: -.015em;
}
.rc-p-quote {
    border-left: 2px solid;
    padding: 8px 18px;
    margin: 0 0 22px;
    background: none;
}
.rc-p-quote p {
    font-family: var(--f1);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--t2);
}
.rc-p-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.rc-p-m {
    background: var(--bg3);
    padding: 8px 14px;
    border-radius: var(--r);
    border: 1px solid var(--card-b);
    font-size: .82rem;
    color: var(--t1-5);
    transition: border-color var(--fast);
}
.rc-p-m:hover { border-color: var(--card-b-h); }
.rc-p-m span {
    display: block;
    color: var(--t4);
    font-size: .55rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 2px;
    font-weight: 600;
}
.rc-p-body {
    color: var(--t2);
    font-size: .98rem;
    line-height: 1.85;
}
.rc-p-body h2,
.rc-p-body h3 {
    color: var(--t1);
    font-family: var(--f1);
    font-weight: 600;
}
.rc-p-body h2 {
    font-size: 1.6rem;
    margin: 36px 0 12px;
    letter-spacing: -.01em;
}
.rc-p-body h3 {
    font-size: 1.2rem;
    margin: 28px 0 10px;
}
.rc-p-body ul {
    padding-left: 18px;
    margin: 12px 0;
    list-style: disc;
}
.rc-p-body li {
    margin-bottom: 7px;
    color: var(--t2);
}
.rc-p-body li::marker { color: var(--t4); }
.rc-p-body em,
.rc-p-body strong { color: var(--t1); }
.rc-p-body p { margin-bottom: 12px; }
.rc-p-body p:last-child { margin-bottom: 0; }

/* =============================================
   ARCHIVE / READ PAGE
   ============================================= */
.rc-read-btns {
    text-align: center;
    margin-bottom: 52px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.rc-chblock { margin-bottom: 52px; }
.rc-chblock h2 {
    font-family: var(--f1);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    letter-spacing: -.01em;
}
.rc-chblock h2 span {
    font-family: var(--fm);
    font-size: .62rem;
    color: var(--t4);
    font-weight: 400;
    letter-spacing: .04em;
}
.rc-pgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}
.rc-pthumb {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    aspect-ratio: 9/16;
    display: block;
    border: 1px solid var(--card-b);
    transition: all var(--med) var(--ease);
    background: var(--bg3);
}
.rc-pthumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(91,168,255,.025) 100%);
    opacity: 0;
    transition: opacity .3s;
    z-index: 2;
    pointer-events: none;
}
.rc-pthumb:hover::before { opacity: 1; }
.rc-pthumb:hover {
    transform: translateY(-4px);
    border-color: rgba(91,168,255,.15);
    box-shadow: var(--shadow-md);
}
.rc-pthumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.rc-pthumb:hover img { transform: scale(1.04); }
.rc-pthumb-ov {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 8px 8px;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 3;
}
.rc-pthumb-n {
    font-family: var(--fm);
    font-size: .55rem;
    color: var(--t3);
    letter-spacing: .04em;
}
.rc-pthumb-t {
    font-family: var(--f1);
    font-style: italic;
    font-size: .7rem;
    color: var(--t1-5);
    line-height: 1.3;
}
@media (max-width: 480px) {
    .rc-pgrid { grid-template-columns: repeat(3, 1fr); gap: 5px; }
    .rc-pthumb { border-radius: 6px; }
}

/* =============================================
   LORE CARDS
   ============================================= */
.rc-lcard {
    background: var(--card);
    border-radius: var(--r2);
    padding: 40px 36px;
    margin-bottom: 14px;
    border: 1px solid var(--card-b);
    position: relative;
    overflow: hidden;
    transition: border-color var(--fast), box-shadow var(--med);
}
.rc-lcard:hover {
    border-color: var(--card-b-h);
    box-shadow: var(--shadow-sm);
}
.rc-lcard-accent {
    position: absolute;
    top: 0; left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--blue), transparent);
    opacity: .35;
    transition: opacity var(--fast);
}
.rc-lcard:hover .rc-lcard-accent { opacity: .6; }
.rc-lcard h2 {
    font-family: var(--f1);
    font-size: 1.45rem;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: -.01em;
}
.rc-lcard h2 i {
    margin-right: 10px;
    font-size: .85rem;
    color: var(--blue);
    opacity: .4;
    transition: opacity var(--fast);
}
.rc-lcard:hover h2 i { opacity: .7; }
.rc-lcard p {
    color: var(--t2);
    line-height: 1.8;
    font-size: .92rem;
    margin-bottom: 10px;
}
.rc-lcard p:last-child { margin-bottom: 0; }
.rc-lcard em { color: var(--t1-5); }
@media (max-width: 600px) { .rc-lcard { padding: 28px 22px; } }

.rc-lgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.rc-lloc {
    background: var(--bg3);
    padding: 20px 18px;
    border-radius: var(--r);
    border: 1px solid var(--card-b);
    transition: all var(--fast);
}
.rc-lloc:hover {
    border-color: rgba(91,168,255,.08);
    background: var(--bg4);
}
.rc-lloc h4 {
    font-size: .86rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--t1);
}
.rc-lloc h4 i {
    margin-right: 6px;
    font-size: .7rem;
    color: var(--blue);
    opacity: .4;
}
.rc-lloc p {
    color: var(--t2);
    font-size: .78rem;
    line-height: 1.55;
    margin: 0;
}

/* =============================================
   ANTI-SPOILER SYSTEM
   ============================================= */
.rc-spoiler-toggle {
    text-align: center;
    margin-bottom: 28px;
}
.rc-spoiler-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--t3);
    font-size: .75rem;
    cursor: pointer;
    padding: 10px 20px;
    background: var(--card);
    border: 1px solid var(--card-b);
    border-radius: var(--r);
    transition: all var(--med) var(--ease);
    user-select: none;
}
.rc-spoiler-toggle label:hover {
    border-color: rgba(91,168,255,.12);
    color: var(--t2);
    background: var(--card-h);
}
.rc-spoiler-toggle input[type=checkbox] {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--t4);
    border-radius: 4px;
    background: var(--bg2);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all var(--fast);
}
.rc-spoiler-toggle input[type=checkbox]:checked {
    background: var(--blue);
    border-color: var(--blue);
}
.rc-spoiler-toggle input[type=checkbox]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid var(--bg0);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.rc-spoiler-toggle input[type=checkbox]:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
.rc-spoiler-toggle small {
    font-size: .62rem;
    padding: 2px 6px;
    background: rgba(232,86,74,.06);
    border-radius: 4px;
    color: rgba(232,86,74,.5);
    letter-spacing: .02em;
}
.rc-lore-gated-hidden {
    opacity: .25;
    filter: blur(4px);
    pointer-events: none;
    transition: all var(--med);
}

/* =============================================
   AUTH PAGES
   ============================================= */
.rc-auth {
    max-width: 420px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 60px) var(--gutter) 80px;
    position: relative;
    z-index: 2;
}
.rc-auth-card {
    background: var(--card);
    border: 1px solid var(--card-b);
    border-radius: var(--r3);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.rc-auth-card h1 {
    font-family: var(--f1);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}
.rc-auth-card .rc-auth-sub {
    text-align: center;
    color: var(--t3);
    font-size: .82rem;
    margin-bottom: 32px;
    font-family: var(--f1);
    font-style: italic;
}
.rc-auth-field { margin-bottom: 18px; }
.rc-auth-field label {
    display: block;
    color: var(--t3);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
    margin-bottom: 6px;
}
.rc-auth-field input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: var(--r);
    color: var(--t1);
    font-family: var(--f2);
    font-size: .88rem;
    transition: border-color var(--fast), box-shadow var(--fast);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.rc-auth-field input:focus {
    border-color: rgba(91,168,255,.25);
    box-shadow: 0 0 0 3px rgba(91,168,255,.06);
}
.rc-auth-field input::placeholder { color: var(--t4); }
.rc-auth-submit { width: 100%; margin-top: 8px; }

.rc-auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--t3);
    font-size: .78rem;
}
.rc-auth-footer a { color: var(--blue); }
.rc-auth-footer a:hover { text-decoration: underline; }

.rc-auth-error {
    background: rgba(232,86,74,.06);
    border: 1px solid rgba(232,86,74,.15);
    border-radius: var(--r);
    padding: 10px 14px;
    color: var(--red);
    font-size: .8rem;
    margin-bottom: 18px;
    text-align: center;
}
.rc-auth-success {
    background: rgba(80,200,120,.06);
    border: 1px solid rgba(80,200,120,.15);
    border-radius: var(--r);
    padding: 10px 14px;
    color: var(--green);
    font-size: .8rem;
    margin-bottom: 18px;
    text-align: center;
}

.rc-auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
}
.rc-auth-divider::before,
.rc-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,.05);
}
.rc-auth-divider span {
    color: var(--t4);
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 600;
}

@media (max-width: 480px) {
    .rc-auth {
        padding: calc(var(--nav-h) + 36px) 16px 56px;
    }
    .rc-auth-card {
        padding: 30px 22px;
        border-radius: 18px;
    }
    .rc-btn-google,
    .rc-auth-submit {
        width: 100%;
    }
}

/* =============================================
   COMMENTS
   ============================================= */
.rc-comments {
    max-width: 740px;
    margin: 32px auto 0;
    padding: 0 20px;
}
.rc-comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.rc-comments-head h3 {
    font-family: var(--f1);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--t1-5);
}
.rc-comments-head span {
    color: var(--t4);
    font-size: .7rem;
    font-family: var(--fm);
}
.rc-comment {
    background: var(--card);
    border: 1px solid var(--card-b);
    border-radius: var(--r2);
    padding: 18px 22px;
    margin-bottom: 8px;
    transition: border-color var(--fast);
}
.rc-comment:hover { border-color: var(--card-b-h); }
.rc-comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.rc-comment-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid rgba(91,168,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .55rem;
    color: var(--blue);
    flex-shrink: 0;
}
.rc-comment-name {
    font-size: .78rem;
    font-weight: 600;
    color: var(--t1-5);
}
.rc-comment-date {
    color: var(--t4);
    font-size: .62rem;
    font-family: var(--fm);
    margin-left: auto;
}
.rc-comment-body {
    color: var(--t2);
    font-size: .86rem;
    line-height: 1.65;
}
.rc-comment-form { margin-top: 16px; }
.rc-comment-form textarea {
    width: 100%;
    padding: 14px 16px;
    min-height: 80px;
    resize: vertical;
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: var(--r);
    color: var(--t1);
    font-family: var(--f2);
    font-size: .86rem;
    line-height: 1.6;
    outline: none;
    transition: border-color var(--fast);
}
.rc-comment-form textarea:focus {
    border-color: rgba(91,168,255,.25);
    box-shadow: 0 0 0 3px rgba(91,168,255,.06);
}
.rc-comment-form textarea::placeholder { color: var(--t4); }
.rc-comment-form .rc-btn { margin-top: 10px; }
.rc-comment-login {
    text-align: center;
    padding: 24px;
    color: var(--t3);
    font-size: .82rem;
}
.rc-comment-login a { color: var(--blue); }

/* =============================================
   CUSTOM WP-LOGIN
   ============================================= */
.login body {
    background: var(--bg0) !important;
    font-family: var(--f2) !important;
}
.login #login {
    padding-top: calc(var(--nav-h) + 60px);
}
.login #login h1 a {
    background-image: none !important;
    font-family: var(--f1) !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: var(--t1) !important;
    text-indent: 0 !important;
    width: auto !important;
    height: auto !important;
    outline: none !important;
}
.login #login h1 a::after { content: 'Rain City'; }
.login form {
    background: var(--card) !important;
    border: 1px solid var(--card-b) !important;
    border-radius: var(--r3) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 32px 28px !important;
}
.login form .input,
.login form input[type="text"],
.login form input[type="password"] {
    background: var(--bg2) !important;
    border: 1px solid rgba(255,255,255,.04) !important;
    border-radius: var(--r) !important;
    color: var(--t1) !important;
    font-family: var(--f2) !important;
    box-shadow: none !important;
    padding: 10px 14px !important;
}
.login form .input:focus,
.login form input[type="text"]:focus,
.login form input[type="password"]:focus {
    border-color: rgba(91,168,255,.25) !important;
    box-shadow: 0 0 0 3px rgba(91,168,255,.06) !important;
}
.login label {
    color: var(--t2) !important;
    font-size: .8rem !important;
}
.login .button-primary {
    background: var(--blue) !important;
    border: none !important;
    border-radius: var(--r) !important;
    font-family: var(--f2) !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: all var(--fast) !important;
}
.login .button-primary:hover {
    background: var(--blue2) !important;
    box-shadow: 0 4px 16px rgba(91,168,255,.2) !important;
}
.login #nav,
.login #backtoblog {
    text-align: center;
}
.login #nav a,
.login #backtoblog a {
    color: var(--t3) !important;
    transition: color var(--fast) !important;
}
.login #nav a:hover,
.login #backtoblog a:hover {
    color: var(--blue) !important;
}
.login .message,
.login .success {
    border-left-color: var(--blue) !important;
    background: rgba(91,168,255,.04) !important;
    color: var(--t2) !important;
    box-shadow: none !important;
}
.login #login_error {
    border-left-color: var(--red) !important;
    background: rgba(232,86,74,.04) !important;
    color: var(--red) !important;
    box-shadow: none !important;
}

/* =============================================
   FOOTER
   ============================================= */
.rc-foot {
    background: var(--bg1);
    border-top: 1px solid rgba(91,168,255,.03);
    padding: 56px var(--gutter) 32px;
    position: relative;
    z-index: 2;
}
.rc-foot-in {
    max-width: var(--max-w);
    margin: 0 auto;
}
.rc-foot-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 44px;
    margin-bottom: 44px;
}
@media (max-width: 768px) {
    .rc-foot-top { grid-template-columns: 1fr; gap: 28px; }
}
.rc-foot-brand .rc-logo {
    margin-bottom: 12px;
    font-size: 1.25rem;
}
.rc-foot-brand p {
    color: var(--t4);
    font-size: .82rem;
    line-height: 1.6;
    max-width: 280px;
}
.rc-foot-col h4 {
    font-family: var(--f1);
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--t1-5);
}
.rc-foot-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--t3);
    font-size: .78rem;
    padding: 4px 0;
    transition: color var(--fast);
}
.rc-foot-col a:hover { color: var(--blue); }
.rc-foot-col a i {
    width: 14px;
    text-align: center;
    font-size: .7rem;
    opacity: .5;
    flex-shrink: 0;
}
.rc-foot-bottom {
    border-top: 1px solid rgba(255,255,255,.025);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.rc-foot-bottom span {
    color: var(--t4);
    font-size: .68rem;
}
.rc-foot-q {
    font-family: var(--f1);
    font-style: italic;
    opacity: .5;
}

/* =============================================
   EMPTY STATE
   ============================================= */
.rc-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--t4);
    font-family: var(--f1);
    font-style: italic;
    font-size: 1rem;
}

/* =============================================
   FOCUS / A11Y
   ============================================= */
.rc-btn:focus-visible,
.rc-r-btn:focus-visible,
.rc-ccard:focus-visible,
.rc-pthumb:focus-visible,
.rc-socard:focus-visible,
.rc-nav-links a:focus-visible,
.rc-share-btn:focus-visible,
.rc-chapdd-btn:focus-visible,
.rc-auth-field input:focus-visible,
.rc-comment-form textarea:focus-visible,
.rc-btn-google:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* =============================================
   PRINT
   ============================================= */
@media print {
    .rc-rain, .rc-nav, .rc-foot, .rc-r-hint, .rc-r-actions,
    .rc-r-nav, .rc-hero-bg, .rc-progress, .rc-spoiler-toggle,
    .rc-comments, .rc-nav-user {
        display: none !important;
    }
    body.rc-body { background: #fff; color: #111; }
    .rc-r-frame { box-shadow: none; border: 1px solid #ddd; border-radius: 0; }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
