/* ==========================================================================
   reader.yada.hk — Reading Journey design system
   A self-contained stylesheet for the student portal + public campaign site.
   ========================================================================== */

:root {
    --rj-bg: #070b1c;
    --rj-bg-2: #0b1026;
    --rj-surface: rgba(255, 255, 255, 0.045);
    --rj-surface-2: rgba(255, 255, 255, 0.075);
    --rj-line: rgba(255, 255, 255, 0.1);
    --rj-line-strong: rgba(255, 255, 255, 0.16);
    --rj-text: #eef2ff;
    --rj-muted: #98a3c9;
    --rj-gold: #f8b84e;
    --rj-gold-2: #ffd479;
    --rj-coral: #ff6b6b;
    --rj-mint: #39d3a5;
    --rj-sky: #4ea8ff;
    --rj-violet: #a855f7;
    --rj-radius: 1.25rem;
    --rj-radius-sm: 0.85rem;
    --rj-shadow: 0 24px 70px -30px rgba(0, 0, 0, 0.9);
    --rj-glow: 0 0 60px -12px rgba(248, 184, 78, 0.55);
    --rj-font: 'Outfit', 'Noto Sans TC', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body.rj-site,
body.rj-app {
    font-family: var(--rj-font);
    background: var(--rj-bg);
    color: var(--rj-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.rj-app { padding-bottom: 6.5rem; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

h1, h2, h3, h4, p { margin: 0; }

/* ---------------------------------------------------------------- aurora -- */
.rj-aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(1100px 700px at 12% -10%, #1b2050 0%, transparent 62%),
        radial-gradient(900px 620px at 88% 4%, #142a4d 0%, transparent 60%),
        linear-gradient(180deg, var(--rj-bg-2) 0%, var(--rj-bg) 60%);
}

.rj-aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    animation: rj-float 20s ease-in-out infinite;
}

.rj-aurora-blob--1 { width: 34rem; height: 34rem; left: -10rem; top: -8rem; background: #4c2f9e; }
.rj-aurora-blob--2 { width: 30rem; height: 30rem; right: -8rem; top: 8rem; background: #0d5f7a; animation-delay: -6s; }
.rj-aurora-blob--3 { width: 26rem; height: 26rem; left: 40%; bottom: -12rem; background: #7a3f13; opacity: 0.35; animation-delay: -12s; }

@keyframes rj-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(2rem, -2rem, 0) scale(1.08); }
}

/* --------------------------------------------------------------- buttons -- */
.rj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.78rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.1;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.rj-btn:hover { transform: translateY(-2px); }
.rj-btn:active { transform: translateY(0); }

.rj-btn--gold {
    background: linear-gradient(135deg, var(--rj-gold) 0%, #ffcf76 55%, var(--rj-gold) 100%);
    color: #26170a;
    box-shadow: 0 12px 34px -12px rgba(248, 184, 78, 0.85);
}

.rj-btn--outline {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--rj-line-strong);
    color: var(--rj-text);
    backdrop-filter: blur(8px);
}

.rj-btn--outline:hover { background: rgba(255, 255, 255, 0.09); }
.rj-btn--ghost { background: transparent; color: var(--rj-muted); border-color: transparent; }
.rj-btn--ghost:hover { color: var(--rj-text); }
.rj-btn--sm { padding: 0.5rem 0.95rem; font-size: 0.84rem; }
.rj-btn--lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.rj-btn--block { width: 100%; }

/* ------------------------------------------------------------ site header -- */
.rj-site-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.35rem 1.5rem;
}

.rj-site-brand,
.rj-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.rj-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, rgba(248, 184, 78, 0.22), rgba(78, 168, 255, 0.16));
    border: 1px solid rgba(248, 184, 78, 0.35);
    color: var(--rj-gold-2);
    flex: 0 0 auto;
}

.rj-logo svg { width: 1.35rem; height: 1.35rem; }

.rj-site-brand small {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--rj-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rj-site-nav {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
    font-size: 0.92rem;
    color: var(--rj-muted);
}

.rj-site-nav a:hover { color: var(--rj-text); }

.rj-site-actions { display: flex; align-items: center; gap: 0.6rem; }

.rj-lang-switch {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rj-muted);
    border: 1px solid var(--rj-line);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
}

.rj-lang-switch:hover { color: var(--rj-gold); border-color: rgba(248, 184, 78, 0.5); }

/* ------------------------------------------------------------------- hero -- */
.rj-hero {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
}

.rj-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rj-gold);
}

.rj-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--rj-mint);
    box-shadow: 0 0 0 4px rgba(57, 211, 165, 0.18);
}

.rj-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.9rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 1.1rem 0 1.2rem;
}

.rj-gradient-text {
    background: linear-gradient(100deg, #ffd479 0%, #ffb04e 30%, #7fd4ff 70%, #b98bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rj-hero-sub {
    font-size: 1.06rem;
    line-height: 1.75;
    color: var(--rj-muted);
    max-width: 34rem;
}

.rj-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 2rem 0 2.4rem;
}

.rj-hero-proof {
    display: flex;
    gap: 2.2rem;
    flex-wrap: wrap;
    padding-top: 1.6rem;
    border-top: 1px solid var(--rj-line);
}

.rj-hero-proof div { display: flex; flex-direction: column; gap: 0.15rem; }
.rj-hero-proof strong { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.rj-hero-proof span { font-size: 0.78rem; color: var(--rj-muted); }

/* hero card stage */
.rj-hero-stage {
    position: relative;
    min-height: 26rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rj-orbit {
    position: absolute;
    inset: 8% 4%;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    animation: rj-spin 46s linear infinite;
}

.rj-orbit--2 { inset: 20% 16%; animation-duration: 32s; animation-direction: reverse; border-style: solid; border-color: rgba(248, 184, 78, 0.12); }

@keyframes rj-spin { to { transform: rotate(360deg); } }

.rj-hero-cards { position: relative; width: 100%; height: 24rem; }

.rj-hero-card {
    position: absolute;
    width: 12.5rem;
    left: 50%;
    top: 50%;
    animation: rj-bob 6s ease-in-out infinite;
}

.rj-hero-card--1 { transform: translate(-50%, -50%) rotate(-9deg) translate(-8.5rem, 0.5rem); z-index: 1; opacity: 0.92; animation-delay: -1s; }
.rj-hero-card--2 { transform: translate(-50%, -50%) rotate(2deg) translateY(-1.2rem); z-index: 3; }
.rj-hero-card--3 { transform: translate(-50%, -50%) rotate(10deg) translate(8.5rem, 0.8rem); z-index: 2; opacity: 0.92; animation-delay: -3s; }

@keyframes rj-bob {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -0.9rem; }
}

/* ------------------------------------------------------- collectible card -- */
.rj-card {
    --hue: 258;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem;
    aspect-ratio: 3 / 4.25;
    border-radius: 1.1rem;
    background:
        linear-gradient(165deg, hsl(var(--hue) 55% 24% / 0.98) 0%, hsl(var(--hue) 60% 12% / 0.99) 55%, #0a0d1f 100%);
    border: 1px solid hsl(var(--hue) 70% 60% / 0.4);
    box-shadow: 0 20px 45px -22px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rj-card:hover { transform: translateY(-4px); box-shadow: 0 28px 55px -22px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.16); }

.rj-card-holo {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 80% at 20% 0%, hsl(var(--hue) 90% 70% / 0.3), transparent 55%),
        radial-gradient(90% 60% at 100% 100%, hsl(var(--hue) 90% 60% / 0.22), transparent 60%);
    pointer-events: none;
}

.rj-card--rare { border-color: rgba(78, 168, 255, 0.55); box-shadow: 0 20px 45px -22px rgba(0, 0, 0, 0.9), 0 0 26px -12px rgba(78, 168, 255, 0.8); }
.rj-card--epic { border-color: rgba(168, 85, 247, 0.6); box-shadow: 0 20px 45px -22px rgba(0, 0, 0, 0.9), 0 0 30px -12px rgba(168, 85, 247, 0.9); }
.rj-card--legendary {
    border-color: rgba(248, 184, 78, 0.8);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.95), 0 0 46px -10px rgba(248, 184, 78, 0.85);
}

.rj-card--legendary::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(255, 214, 130, 0.3) 12%, transparent 26%, transparent 50%, rgba(126, 212, 255, 0.22) 64%, transparent 78%);
    animation: rj-holo 7s linear infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes rj-holo { to { transform: rotate(360deg); } }

.rj-card-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

.rj-card-rarity {
    padding: 0.14rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.56rem;
}

.rj-card--legendary .rj-card-rarity { background: linear-gradient(135deg, #f8b84e, #ffe0a3); color: #2b1a05; }
.rj-card--epic .rj-card-rarity { background: linear-gradient(135deg, #a855f7, #d8b4fe); color: #1c0733; }
.rj-card--rare .rj-card-rarity { background: linear-gradient(135deg, #4ea8ff, #b6dcff); color: #04172b; }

.rj-card-id { color: rgba(255, 255, 255, 0.45); font-size: 0.54rem; }

.rj-card-art {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 0.7rem;
    background:
        radial-gradient(70% 70% at 50% 38%, hsl(var(--hue) 80% 60% / 0.32), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 0;
    overflow: hidden;
}

.rj-card-emoji { font-size: 2.6rem; filter: drop-shadow(0 8px 20px hsl(var(--hue) 90% 50% / 0.7)); }

.rj-card-genre {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.66);
    font-weight: 600;
}

.rj-card-title {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rj-card-author { position: relative; z-index: 2; font-size: 0.62rem; color: rgba(255, 255, 255, 0.55); }

.rj-card-foot {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.58rem;
    font-weight: 600;
}

.rj-card-rj { color: var(--rj-gold-2); }
.rj-card-scan { color: rgba(255, 255, 255, 0.5); }
.rj-card-locked { color: rgba(255, 255, 255, 0.55); }

.rj-card-quote {
    position: relative;
    z-index: 2;
    font-size: 0.58rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-top: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rj-card--locked { filter: grayscale(0.35); opacity: 0.62; }
.rj-card--locked .rj-card-emoji { filter: blur(2.5px) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.8)); }
.rj-card--locked .rj-card-title { color: rgba(255, 255, 255, 0.55); }

/* ---------------------------------------------------------------- section -- */
.rj-section {
    position: relative;
    z-index: 5;
    max-width: 80rem;
    margin: 0 auto;
    padding: 4.5rem 1.5rem;
}

.rj-section--alt::before {
    content: '';
    position: absolute;
    inset: 1rem 0;
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    border: 1px solid var(--rj-line);
    z-index: -1;
}

.rj-section-head { max-width: 42rem; margin-bottom: 2.6rem; }

.rj-section-title {
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0.75rem 0 0.9rem;
}

.rj-section-lead { color: var(--rj-muted); font-size: 1rem; line-height: 1.7; }

/* card types */
.rj-cardtypes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.rj-cardtype {
    --accent: 258;
    position: relative;
    padding: 1.7rem 1.5rem;
    border-radius: var(--rj-radius);
    background: linear-gradient(170deg, hsl(var(--accent) 50% 20% / 0.5), rgba(255, 255, 255, 0.03));
    border: 1px solid hsl(var(--accent) 60% 60% / 0.25);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.rj-cardtype:hover { transform: translateY(-5px); border-color: hsl(var(--accent) 70% 65% / 0.55); }

.rj-cardtype-icon {
    font-size: 2rem;
    width: 3.4rem;
    height: 3.4rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: hsl(var(--accent) 70% 55% / 0.15);
    border: 1px solid hsl(var(--accent) 70% 60% / 0.3);
    margin-bottom: 1.1rem;
}

.rj-cardtype-tag {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: hsl(var(--accent) 85% 75%);
    margin-bottom: 0.5rem;
}

.rj-cardtype h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 0.6rem; }
.rj-cardtype p { font-size: 0.9rem; line-height: 1.65; color: var(--rj-muted); }

.rj-cardtype-list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.rj-cardtype-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.82rem;
    color: var(--rj-text);
    opacity: 0.86;
}
.rj-cardtype-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: hsl(var(--accent) 85% 70%);
    font-size: 0.7rem;
}

/* steps */
.rj-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.rj-step {
    position: relative;
    padding: 1.6rem 1.3rem;
    border-radius: var(--rj-radius);
    background: var(--rj-surface);
    border: 1px solid var(--rj-line);
    text-align: center;
}

.rj-step-num {
    position: absolute;
    top: 0.9rem;
    left: 1rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.28);
}

.rj-step-icon { font-size: 1.9rem; display: block; margin-bottom: 0.7rem; }
.rj-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.45rem; }
.rj-step p { font-size: 0.82rem; line-height: 1.6; color: var(--rj-muted); }

/* split layout */
.rj-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.rj-split--reverse .rj-split-copy { order: 2; }
.rj-split--reverse .rj-split-visual { order: 1; }

.rj-milestones { display: grid; gap: 0.7rem; margin: 1.6rem 0; }

.rj-milestone {
    --hue: 45;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: var(--rj-radius-sm);
    background: linear-gradient(120deg, hsl(var(--hue) 60% 30% / 0.22), rgba(255, 255, 255, 0.03));
    border: 1px solid hsl(var(--hue) 60% 60% / 0.22);
}

.rj-milestone-emoji { font-size: 1.5rem; }
.rj-milestone strong { display: block; font-size: 0.9rem; }
.rj-milestone small { font-size: 0.76rem; color: var(--rj-muted); }
.rj-milestone-state { margin-left: auto; font-size: 0.9rem; }
.rj-milestone.is-reached { border-color: hsl(var(--hue) 70% 60% / 0.5); }
.rj-milestone.is-inline { margin: 0.5rem 0; }

/* progress */
.rj-progress-card,
.rj-panel {
    position: relative;
    padding: 1.5rem;
    border-radius: var(--rj-radius);
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    border: 1px solid var(--rj-line);
    box-shadow: var(--rj-shadow);
}

.rj-panel--tight { padding: 1.3rem 1.4rem; margin-top: 1.4rem; }
.rj-panel--tight h2 { font-size: 1.05rem; margin-bottom: 0.6rem; }

.rj-progress-head,
.rj-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.rj-panel-head h2 { font-size: 1.05rem; font-weight: 700; }
.rj-panel-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.24rem 0.6rem;
    border-radius: 999px;
    background: rgba(248, 184, 78, 0.14);
    color: var(--rj-gold-2);
    border: 1px solid rgba(248, 184, 78, 0.3);
}

.rj-progress-track,
.rj-bar {
    height: 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.rj-bar > span,
.rj-progress-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--rj-gold), #ffe1a3);
    box-shadow: 0 0 18px rgba(248, 184, 78, 0.6);
    transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rj-bar--lg { height: 0.9rem; }

.rj-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--rj-muted);
    margin: 0.7rem 0 1.3rem;
}

/* genre chart */
.rj-genre-chart { display: grid; gap: 0.6rem; }
.rj-genre-row { display: grid; grid-template-columns: 7.2rem 1fr 2.6rem; align-items: center; gap: 0.6rem; }
.rj-genre-name { font-size: 0.78rem; color: var(--rj-text); opacity: 0.85; }
.rj-genre-bar { height: 0.5rem; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.rj-genre-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, hsl(var(--hue) 80% 60%), hsl(var(--hue) 90% 75%));
    box-shadow: 0 0 14px hsl(var(--hue) 90% 60% / 0.6);
}
.rj-genre-pct { font-size: 0.74rem; color: var(--rj-muted); text-align: right; }

/* pools */
.rj-pools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.rj-pool {
    --hue: 258;
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    padding: 1.4rem;
    border-radius: var(--rj-radius);
    background:
        radial-gradient(120% 90% at 0% 0%, hsl(var(--hue) 70% 45% / 0.3), transparent 60%),
        rgba(255, 255, 255, 0.035);
    border: 1px solid hsl(var(--hue) 60% 60% / 0.28);
    color: inherit;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.rj-pool:hover,
.rj-pool.is-active { transform: translateY(-4px); border-color: hsl(var(--hue) 80% 65% / 0.7); }

.rj-pool-emoji { font-size: 1.8rem; }
.rj-pool h3 { font-size: 1.02rem; font-weight: 700; margin: 0.6rem 0 0.25rem; }
.rj-pool p { font-size: 0.78rem; color: var(--rj-muted); }
.rj-pool-blind {
    display: block;
    margin-top: 0.9rem;
    font-size: 1.1rem;
    letter-spacing: 0.4em;
    color: hsl(var(--hue) 80% 70%);
    opacity: 0.6;
}
.rj-pool-cta { display: inline-block; margin-top: 0.5rem; font-size: 0.78rem; font-weight: 700; color: var(--rj-gold-2); }
.rj-pool-form { display: block; }

/* funnel */
.rj-funnel { display: grid; gap: 0.55rem; margin: 1.4rem 0 1.6rem; }
.rj-funnel-row {
    display: grid;
    grid-template-columns: 8rem 4rem 1fr;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.8rem;
}
.rj-funnel-row span { color: var(--rj-muted); }
.rj-funnel-row b { font-weight: 700; }
.rj-funnel-row i {
    display: block;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--rj-sky), var(--rj-violet));
    opacity: 0.85;
}

/* panel mock */
.rj-panel-mock {
    border-radius: var(--rj-radius);
    background: rgba(12, 16, 36, 0.72);
    border: 1px solid var(--rj-line);
    overflow: hidden;
    box-shadow: var(--rj-shadow);
}
.rj-panel-mock-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--rj-line);
}
.rj-panel-mock-head em { margin-left: auto; font-style: normal; font-size: 0.74rem; color: var(--rj-muted); }
.rj-panel-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.rj-panel-mock-body { padding: 1.1rem; }

.rj-heatmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.rj-heat-cell {
    --hue: 200;
    --intensity: 0.5;
    display: grid;
    place-items: center;
    gap: 0.2rem;
    padding: 0.9rem 0.5rem;
    border-radius: 0.7rem;
    background: hsl(var(--hue) 75% 50% / calc(0.1 + var(--intensity) * 0.5));
    border: 1px solid hsl(var(--hue) 75% 60% / 0.3);
}
.rj-heat-cell span { font-size: 1.3rem; }
.rj-heat-cell small { font-size: 0.68rem; color: rgba(255, 255, 255, 0.75); }

.rj-warn {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    margin-top: 0.9rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.7rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.28);
}
.rj-warn strong { display: block; font-size: 0.82rem; }
.rj-warn small { font-size: 0.72rem; color: var(--rj-muted); }

/* final CTA */
.rj-final-cta {
    position: relative;
    z-index: 5;
    max-width: 80rem;
    margin: 2rem auto 4rem;
    padding: 0 1.5rem;
}
.rj-final-inner {
    text-align: center;
    padding: 3.5rem 1.5rem;
    border-radius: 2rem;
    background:
        radial-gradient(90% 130% at 50% 0%, rgba(248, 184, 78, 0.2), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(248, 184, 78, 0.28);
}
.rj-final-inner h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0.8rem 0 1.6rem;
}
.rj-final-inner .rj-hero-cta { justify-content: center; margin-bottom: 0; }

/* footer */
.rj-site-footer {
    position: relative;
    z-index: 5;
    border-top: 1px solid var(--rj-line);
    padding: 1.8rem 1.5rem;
}
.rj-footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--rj-muted);
}
.rj-footer-inner p { margin: 0; }
.rj-footer-links { display: flex; gap: 1.1rem; margin-left: auto; }
.rj-footer-links a:hover { color: var(--rj-gold); }

/* ============================ APP SHELL ================================= */
.rj-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 44rem;
    margin: 0 auto;
    padding: 0.9rem 1.1rem;
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(7, 11, 28, 0.9), rgba(7, 11, 28, 0.55));
}

.rj-topbar-title { font-size: 0.98rem; letter-spacing: -0.01em; }
.rj-topbar-right { display: flex; align-items: center; gap: 0.55rem; }

.rj-rj-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(248, 184, 78, 0.12);
    border: 1px solid rgba(248, 184, 78, 0.34);
    font-size: 0.82rem;
    color: var(--rj-gold-2);
}
.rj-rj-spark { font-size: 0.7rem; }
.rj-rj-unit { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; opacity: 0.8; }

.rj-avatar-btn {
    width: 2.3rem;
    height: 2.3rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.15rem;
    background: linear-gradient(135deg, rgba(78, 168, 255, 0.22), rgba(168, 85, 247, 0.18));
    border: 1px solid var(--rj-line-strong);
}

.rj-main { position: relative; z-index: 5; }
.rj-container { max-width: 44rem; margin: 0 auto; padding: 0.6rem 1.1rem 2rem; }

.rj-bottomnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 0.5rem 0.9rem calc(0.5rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(7, 11, 28, 0.4), rgba(7, 11, 28, 0.95) 40%);
    backdrop-filter: blur(20px);
}
.rj-bottomnav-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 34rem;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--rj-line);
    border-radius: 1.3rem;
    padding: 0.35rem;
}
.rj-navlink {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.45rem 0.2rem;
    border-radius: 1rem;
    color: var(--rj-muted);
    transition: color 0.18s ease, background 0.18s ease;
}
.rj-navlink-icon { font-size: 1.15rem; line-height: 1; }
.rj-navlink-label { font-size: 0.62rem; font-weight: 600; }
.rj-navlink.is-active { color: var(--rj-gold-2); background: rgba(248, 184, 78, 0.12); }
.rj-navlink--scan .rj-navlink-icon {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    margin-top: -1.1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rj-gold), #ffd88f);
    box-shadow: 0 10px 26px -8px rgba(248, 184, 78, 0.9);
    font-size: 1.1rem;
}
.rj-navlink--scan .rj-navlink-label { margin-top: 0.15rem; }

/* greeting */
.rj-hero-greet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0 1.3rem;
}
.rj-greet-kicker { font-size: 0.76rem; color: var(--rj-muted); letter-spacing: 0.06em; }
.rj-greet-name { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; margin: 0.15rem 0 0.35rem; }
.rj-greet-wave { display: inline-block; animation: rj-wave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes rj-wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(14deg); } 80% { transform: rotate(-8deg); } 90% { transform: rotate(10deg); } }
.rj-greet-sub { font-size: 0.86rem; color: var(--rj-muted); }

.rj-streak-chip {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    padding: 0.6rem 0.9rem;
    border-radius: 1rem;
    background: linear-gradient(140deg, rgba(255, 107, 107, 0.16), rgba(248, 184, 78, 0.1));
    border: 1px solid rgba(255, 150, 100, 0.32);
    flex: 0 0 auto;
}
.rj-streak-chip strong { font-size: 1.3rem; }
.rj-streak-chip small { font-size: 0.7rem; color: var(--rj-muted); }

/* RJ hero */
.rj-rj-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.3rem;
    align-items: center;
    padding: 1.4rem;
    border-radius: var(--rj-radius);
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(248, 184, 78, 0.16), transparent 58%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(248, 184, 78, 0.24);
    box-shadow: var(--rj-shadow);
    margin-bottom: 1.1rem;
}

.rj-rj-ring-wrap { position: relative; width: 8.2rem; height: 8.2rem; flex: 0 0 auto; }
.rj-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.rj-ring-track { fill: none; stroke: rgba(255, 255, 255, 0.09); stroke-width: 9; }
.rj-ring-fill {
    fill: none;
    stroke: var(--rj-gold);
    stroke-width: 9;
    stroke-linecap: round;
    filter: drop-shadow(0 0 10px rgba(248, 184, 78, 0.7));
    transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rj-ring-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
}
.rj-ring-center strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; }
.rj-ring-center span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; color: var(--rj-gold-2); }

.rj-rj-next { font-size: 1.15rem; font-weight: 700; margin: 0.35rem 0 0.7rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.rj-rj-next-at {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--rj-muted);
}
.rj-rj-hint { font-size: 0.8rem; color: var(--rj-muted); margin-top: 0.5rem; }
.rj-rj-hint strong { color: var(--rj-gold-2); }

.rj-mini-stats { display: flex; gap: 1.4rem; margin-top: 1rem; flex-wrap: wrap; }
.rj-mini-stats div { display: flex; flex-direction: column; }
.rj-mini-stats strong { font-size: 1.1rem; font-weight: 700; }
.rj-mini-stats span { font-size: 0.68rem; color: var(--rj-muted); }

/* quick actions */
.rj-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    margin-bottom: 1.1rem;
}
.rj-quick-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem;
    border-radius: var(--rj-radius-sm);
    background: var(--rj-surface);
    border: 1px solid var(--rj-line);
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.rj-quick-btn:hover { transform: translateY(-3px); border-color: var(--rj-line-strong); }
.rj-quick-icon {
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    border-radius: 0.7rem;
    font-size: 1.05rem;
    flex: 0 0 auto;
}
.rj-quick-btn--scan .rj-quick-icon { background: rgba(248, 184, 78, 0.16); }
.rj-quick-btn--draw .rj-quick-icon { background: rgba(168, 85, 247, 0.16); }
.rj-quick-btn--reflect .rj-quick-icon { background: rgba(57, 211, 165, 0.16); }
.rj-quick-btn strong { display: block; font-size: 0.8rem; }
.rj-quick-btn small { font-size: 0.68rem; color: var(--rj-muted); }

/* week chart */
.rj-weekchart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 7rem;
    padding-top: 0.6rem;
}
.rj-weekbar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
    height: 100%;
}
.rj-weekbar-fill {
    width: 100%;
    max-width: 1.6rem;
    border-radius: 0.4rem;
    background: linear-gradient(180deg, var(--rj-gold), rgba(248, 184, 78, 0.18));
    box-shadow: 0 0 14px rgba(248, 184, 78, 0.3);
    min-height: 0.3rem;
    transition: height 0.6s ease;
}
.rj-weekbar-val { font-size: 0.6rem; color: var(--rj-muted); }
.rj-weekbar-day { font-size: 0.66rem; color: var(--rj-muted); }

/* blocks */
.rj-block { margin: 1.5rem 0; }
.rj-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}
.rj-block-head h2 { font-size: 1.05rem; font-weight: 700; }
.rj-block-head small { font-size: 0.75rem; color: var(--rj-muted); margin-left: 0.3rem; }
.rj-link { font-size: 0.78rem; color: var(--rj-gold-2); }
.rj-muted { font-size: 0.84rem; color: var(--rj-muted); line-height: 1.65; }

.rj-card-rail {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.rj-card--rail {
    flex: 0 0 9.2rem;
    width: 9.2rem;
    scroll-snap-align: start;
}

.rj-ach-row {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
}
.rj-ach {
    flex: 0 0 8.2rem;
    padding: 0.9rem 0.8rem;
    border-radius: var(--rj-radius-sm);
    background: var(--rj-surface);
    border: 1px solid var(--rj-line);
    text-align: center;
    opacity: 0.55;
    filter: grayscale(0.7);
}
.rj-ach.is-earned { opacity: 1; filter: none; border-color: rgba(248, 184, 78, 0.32); background: linear-gradient(160deg, rgba(248, 184, 78, 0.12), rgba(255, 255, 255, 0.03)); }
.rj-ach-emoji { font-size: 1.5rem; display: block; margin-bottom: 0.35rem; }
.rj-ach strong { display: block; font-size: 0.74rem; line-height: 1.25; }
.rj-ach small { font-size: 0.64rem; color: var(--rj-muted); }

.rj-ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.7rem; }
.rj-ach-grid .rj-ach { flex: none; }

/* page head */
.rj-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0 1.2rem;
    flex-wrap: wrap;
}
.rj-page-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em; margin: 0.25rem 0 0.3rem; }
.rj-page-sub { font-size: 0.84rem; color: var(--rj-muted); }
.rj-page-sub strong { color: var(--rj-gold-2); }

/* rarity tabs */
.rj-rarity-tabs {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.9rem;
}
.rj-tab {
    flex: 0 0 auto;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--rj-line);
    background: transparent;
    color: var(--rj-muted);
    font-size: 0.76rem;
    font-weight: 600;
    transition: all 0.18s ease;
}
.rj-tab span { opacity: 0.7; margin-left: 0.2rem; }
.rj-tab.is-active { background: rgba(248, 184, 78, 0.16); border-color: rgba(248, 184, 78, 0.5); color: var(--rj-gold-2); }
.rj-tab--rare.is-active { background: rgba(78, 168, 255, 0.16); border-color: rgba(78, 168, 255, 0.5); color: #b6dcff; }
.rj-tab--epic.is-active { background: rgba(168, 85, 247, 0.16); border-color: rgba(168, 85, 247, 0.5); color: #d8b4fe; }
.rj-tab--legendary.is-active { background: rgba(248, 184, 78, 0.2); border-color: rgba(248, 184, 78, 0.6); color: var(--rj-gold-2); }

.rj-shelf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.2rem, 1fr));
    gap: 0.8rem;
}
.rj-empty-note { padding: 2rem; text-align: center; color: var(--rj-muted); font-size: 0.85rem; }

/* scanner */
.rj-scan-layout { display: grid; gap: 1.1rem; }
.rj-scanner {
    border-radius: var(--rj-radius);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--rj-line);
    overflow: hidden;
}
.rj-scanner-view {
    position: relative;
    aspect-ratio: 1 / 1;
    max-height: 24rem;
    background:
        radial-gradient(60% 60% at 50% 45%, rgba(248, 184, 78, 0.1), transparent 70%),
        linear-gradient(180deg, #0a0f24, #070b1c);
    overflow: hidden;
}
.rj-scanner-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 2rem 2rem;
    mask-image: radial-gradient(60% 60% at 50% 50%, #000 40%, transparent 85%);
}
.rj-scanner-frame { position: absolute; inset: 18%; }
.rj-scanner-frame span {
    position: absolute;
    width: 2.2rem;
    height: 2.2rem;
    border: 3px solid var(--rj-gold);
    filter: drop-shadow(0 0 10px rgba(248, 184, 78, 0.7));
}
.rj-scanner-frame span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 0.6rem 0 0 0; }
.rj-scanner-frame span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 0.6rem 0 0; }
.rj-scanner-frame span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 0.6rem; }
.rj-scanner-frame span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 0.6rem 0; }
.rj-scanner-laser {
    position: absolute;
    left: 18%;
    right: 18%;
    height: 2px;
    top: 22%;
    background: linear-gradient(90deg, transparent, var(--rj-gold), transparent);
    box-shadow: 0 0 18px 3px rgba(248, 184, 78, 0.6);
    animation: rj-scan 2.4s ease-in-out infinite;
}
@keyframes rj-scan {
    0%, 100% { top: 22%; opacity: 0.4; }
    50% { top: 76%; opacity: 1; }
}
.rj-scanner-corner-label {
    position: absolute;
    bottom: 0.9rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.72rem;
    color: var(--rj-muted);
}
.rj-scanner-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem;
    border-top: 1px solid var(--rj-line);
}
.rj-scanner-foot small { font-size: 0.7rem; color: var(--rj-muted); }

.rj-scan-side { display: grid; gap: 1rem; }
.rj-scan-result-label { font-size: 0.74rem; color: var(--rj-muted); margin-bottom: 0.5rem; }
.rj-scan-result { display: grid; gap: 0.7rem; justify-items: center; }
.rj-card--result { width: 11rem; }

.rj-demo-codes {
    padding: 1.1rem;
    border-radius: var(--rj-radius);
    background: var(--rj-surface);
    border: 1px solid var(--rj-line);
}
.rj-demo-codes h3 { font-size: 0.9rem; margin-bottom: 0.3rem; }
.rj-demo-codes p { font-size: 0.74rem; color: var(--rj-muted); margin-bottom: 0.8rem; }
.rj-demo-list { display: grid; gap: 0.45rem; }
.rj-demo-code {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rj-line);
    color: var(--rj-text);
    font-size: 0.78rem;
    text-align: left;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.rj-demo-code:hover { border-color: rgba(248, 184, 78, 0.5); background: rgba(248, 184, 78, 0.08); }
.rj-demo-qr { font-size: 1.1rem; color: var(--rj-gold-2); }
.rj-demo-code code { margin-left: auto; font-size: 0.66rem; color: var(--rj-muted); }

/* draw result */
.rj-draw-result {
    position: relative;
    margin: 1.4rem 0;
    padding: 2rem 1.2rem;
    border-radius: var(--rj-radius);
    text-align: center;
    background:
        radial-gradient(80% 100% at 50% 0%, rgba(168, 85, 247, 0.22), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(168, 85, 247, 0.35);
    overflow: hidden;
    animation: rj-pop 0.5s cubic-bezier(0.2, 0.9, 0.2, 1);
}
@keyframes rj-pop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rj-draw-burst { position: absolute; inset: 0; pointer-events: none; }
.rj-draw-burst span {
    position: absolute;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--rj-gold);
    opacity: 0.7;
    animation: rj-burst 1.8s ease-out infinite;
}
.rj-draw-burst span:nth-child(1) { left: 12%; top: 20%; animation-delay: 0s; }
.rj-draw-burst span:nth-child(2) { left: 82%; top: 26%; animation-delay: 0.3s; }
.rj-draw-burst span:nth-child(3) { left: 24%; top: 70%; animation-delay: 0.6s; }
.rj-draw-burst span:nth-child(4) { left: 70%; top: 78%; animation-delay: 0.15s; }
.rj-draw-burst span:nth-child(5) { left: 50%; top: 8%; animation-delay: 0.45s; }
.rj-draw-burst span:nth-child(6) { left: 90%; top: 60%; animation-delay: 0.75s; }
@keyframes rj-burst {
    0% { transform: scale(0); opacity: 0.9; }
    100% { transform: scale(2.6); opacity: 0; }
}
.rj-draw-book { margin: 1rem 0 1.4rem; }
.rj-draw-emoji { font-size: 3rem; display: block; filter: drop-shadow(0 10px 24px hsl(var(--hue) 90% 55% / 0.7)); }
.rj-draw-book h2 { font-size: 1.4rem; font-weight: 800; margin: 0.6rem 0 0.3rem; letter-spacing: -0.02em; }
.rj-draw-book p { font-size: 0.8rem; color: var(--rj-muted); }
.rj-draw-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* feed */
.rj-composer {
    display: flex;
    gap: 0.7rem;
    padding: 0.9rem;
    border-radius: var(--rj-radius);
    background: var(--rj-surface);
    border: 1px solid var(--rj-line);
    margin-bottom: 1.1rem;
}
.rj-composer-avatar { font-size: 1.4rem; }
.rj-composer-body { flex: 1; }
.rj-composer-body p { font-size: 0.84rem; color: var(--rj-muted); margin-bottom: 0.7rem; }
.rj-composer-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.rj-chip {
    font-size: 0.7rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--rj-line);
    color: var(--rj-muted);
}
.rj-composer-post {
    margin-left: auto;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rj-gold), #ffd88f);
    color: #26170a;
}

.rj-feed { display: grid; gap: 0.9rem; }
.rj-post {
    padding: 1rem;
    border-radius: var(--rj-radius);
    background: var(--rj-surface);
    border: 1px solid var(--rj-line);
}
.rj-post-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.rj-post-avatar {
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
}
.rj-post-head strong { display: block; font-size: 0.82rem; }
.rj-post-head small { font-size: 0.68rem; color: var(--rj-muted); }
.rj-post-book {
    margin-left: auto;
    font-size: 0.68rem;
    padding: 0.26rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--rj-line);
    color: var(--rj-muted);
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rj-post-book--legendary { border-color: rgba(248, 184, 78, 0.45); color: var(--rj-gold-2); }
.rj-post-book--rare { border-color: rgba(78, 168, 255, 0.4); color: #b6dcff; }
.rj-post-text { font-size: 0.86rem; line-height: 1.7; margin: 0.8rem 0; }

.rj-stickers { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.7rem; }
.rj-sticker {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--rj-line);
}
.rj-sticker--add { opacity: 0.45; }

.rj-post-foot {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--rj-muted);
    padding-top: 0.6rem;
    border-top: 1px solid var(--rj-line);
}
.rj-like-form { display: inline; }
.rj-like {
    background: none;
    border: 0;
    color: var(--rj-muted);
    font-size: 0.78rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.rj-like.is-liked { color: var(--rj-coral); }

/* reflection */
.rj-reflect-book {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border-radius: var(--rj-radius-sm);
    background: linear-gradient(120deg, hsl(var(--hue) 60% 30% / 0.28), rgba(255, 255, 255, 0.03));
    border: 1px solid hsl(var(--hue) 60% 60% / 0.3);
    margin-bottom: 1.1rem;
}
.rj-reflect-book-emoji { font-size: 1.8rem; }
.rj-reflect-book small { display: block; font-size: 0.66rem; color: var(--rj-muted); }
.rj-reflect-book strong { display: block; font-size: 0.9rem; }
.rj-reflect-book span { font-size: 0.72rem; color: var(--rj-muted); }

.rj-tasks { display: grid; gap: 0.9rem; }
.rj-task-card {
    position: relative;
    padding: 1.15rem;
    border-radius: var(--rj-radius);
    background: var(--rj-surface);
    border: 1px solid var(--rj-line);
    transition: border-color 0.2s ease;
}
.rj-task-card:focus-within { border-color: rgba(248, 184, 78, 0.45); }
.rj-task-card.is-done { border-color: rgba(57, 211, 165, 0.4); background: linear-gradient(160deg, rgba(57, 211, 165, 0.08), rgba(255, 255, 255, 0.02)); }
.rj-task-head { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 0.85rem; }
.rj-task-emoji { font-size: 1.4rem; }
.rj-task-head h2 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.rj-task-head p { font-size: 0.78rem; color: var(--rj-muted); line-height: 1.55; }
.rj-task-rj {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--rj-gold-2);
    white-space: nowrap;
}
.rj-textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--rj-line);
    color: var(--rj-text);
    font-family: inherit;
    font-size: 0.84rem;
    line-height: 1.6;
    resize: vertical;
}
.rj-textarea::placeholder { color: rgba(255, 255, 255, 0.3); }
.rj-textarea:focus { outline: none; border-color: rgba(248, 184, 78, 0.5); }
.rj-task-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.7rem; }
.rj-count { font-size: 0.7rem; color: var(--rj-muted); }
.rj-task-hint { font-size: 0.7rem; color: var(--rj-muted); }
.rj-task-done {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--rj-mint);
    background: rgba(57, 211, 165, 0.12);
    border: 1px solid rgba(57, 211, 165, 0.35);
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
}

.rj-emoji-pick { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rj-emoji-opt { position: relative; cursor: pointer; }
.rj-emoji-opt input { position: absolute; opacity: 0; pointer-events: none; }
.rj-emoji-opt span {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--rj-line);
    font-size: 1.25rem;
    transition: all 0.16s ease;
}
.rj-emoji-opt input:checked + span { background: rgba(248, 184, 78, 0.18); border-color: rgba(248, 184, 78, 0.6); transform: scale(1.08); }
.rj-emoji-opt input:disabled + span { opacity: 0.25; }

.rj-list { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; font-size: 0.82rem; color: var(--rj-muted); }

/* leaderboard */
.rj-switcher {
    display: inline-flex;
    padding: 0.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--rj-line);
    margin-bottom: 1rem;
}
.rj-switch {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--rj-muted);
    font-size: 0.78rem;
    font-weight: 600;
}
.rj-switch.is-active { background: rgba(248, 184, 78, 0.18); color: var(--rj-gold-2); }

.rj-board-list { display: grid; gap: 0.45rem; }
.rj-board-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.85rem;
    background: var(--rj-surface);
    border: 1px solid var(--rj-line);
}
.rj-board-row.is-me { background: linear-gradient(120deg, rgba(248, 184, 78, 0.15), rgba(255, 255, 255, 0.03)); border-color: rgba(248, 184, 78, 0.45); }
.rj-board-rank { font-size: 1rem; width: 1.8rem; text-align: center; flex: 0 0 auto; }
.rj-board-avatar { font-size: 1.25rem; }
.rj-board-who { flex: 1; min-width: 0; }
.rj-board-who strong { display: block; font-size: 0.82rem; }
.rj-board-who small { font-size: 0.68rem; color: var(--rj-muted); }
.rj-board-delta { font-size: 0.66rem; color: var(--rj-muted); }
.rj-board-delta.is-up { color: var(--rj-mint); }
.rj-board-delta.is-down { color: var(--rj-coral); }
.rj-board-rj { font-size: 0.95rem; font-weight: 700; color: var(--rj-gold-2); }
.rj-board-rj small { font-size: 0.6rem; color: var(--rj-muted); }

/* passport */
.rj-passport-hero { padding: 0.6rem 0 1.2rem; }
.rj-passport-card {
    position: relative;
    padding: 1.4rem;
    border-radius: 1.5rem;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(248, 184, 78, 0.22), transparent 55%),
        radial-gradient(100% 120% at 100% 100%, rgba(78, 168, 255, 0.18), transparent 60%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(248, 184, 78, 0.32);
    box-shadow: var(--rj-shadow), var(--rj-glow);
    overflow: hidden;
}
.rj-passport-watermark {
    position: absolute;
    right: -1rem;
    bottom: -2rem;
    font-size: 9rem;
    opacity: 0.06;
    pointer-events: none;
}
.rj-passport-head { display: flex; align-items: center; justify-content: space-between; }
.rj-passport-year {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--rj-muted);
}
.rj-passport-body { display: flex; align-items: center; gap: 0.9rem; margin: 1rem 0 1.2rem; }
.rj-passport-avatar {
    width: 3.4rem;
    height: 3.4rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid var(--rj-line-strong);
}
.rj-passport-body h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.rj-passport-body p { font-size: 0.76rem; color: var(--rj-muted); }
.rj-passport-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.rj-passport-stats div { text-align: center; }
.rj-passport-stats strong { display: block; font-size: 1.15rem; font-weight: 800; }
.rj-passport-stats span { font-size: 0.66rem; color: var(--rj-muted); }
.rj-passport-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* toast */
.rj-toast {
    position: fixed;
    left: 50%;
    bottom: 6.2rem;
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rj-gold), #ffd88f);
    color: #26170a;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 18px 40px -14px rgba(248, 184, 78, 0.9);
    animation: rj-toast-in 0.45s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
@keyframes rj-toast-in {
    from { opacity: 0; transform: translate(-50%, 1.4rem) scale(0.94); }
    to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.rj-toast.is-leaving { animation: rj-toast-out 0.4s ease forwards; }
@keyframes rj-toast-out { to { opacity: 0; transform: translate(-50%, 1rem) scale(0.95); } }

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 64rem) {
    .rj-site-nav { display: none; }
    .rj-hero { grid-template-columns: 1fr; padding-top: 1.5rem; }
    .rj-hero-stage { min-height: 21rem; order: -1; }
    .rj-hero-cards { height: 19rem; }
    .rj-hero-card { width: 10.5rem; }
    .rj-cardtypes { grid-template-columns: 1fr; }
    .rj-steps { grid-template-columns: repeat(2, 1fr); }
    .rj-split { grid-template-columns: 1fr; gap: 2rem; }
    .rj-split--reverse .rj-split-copy { order: 1; }
    .rj-split--reverse .rj-split-visual { order: 2; }
    .rj-pools { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 40rem) {
    .rj-site-header { padding: 1rem; gap: 0.7rem; }
    .rj-site-actions .rj-btn--ghost { display: none; }
    .rj-hero { padding: 1rem 1.1rem 3rem; }
    .rj-section { padding: 3rem 1.1rem; }
    .rj-steps { grid-template-columns: 1fr; }
    .rj-pools { grid-template-columns: 1fr; }
    .rj-hero-proof { gap: 1.2rem; }
    .rj-rj-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .rj-rj-copy { text-align: center; }
    .rj-rj-next { justify-content: center; }
    .rj-mini-stats { justify-content: center; }
    .rj-quick { grid-template-columns: 1fr; }
    .rj-quick-btn { justify-content: flex-start; }
    .rj-genre-row { grid-template-columns: 6.2rem 1fr 2.4rem; }
    .rj-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rj-card--rail { flex-basis: 8.4rem; width: 8.4rem; }
    .rj-passport-stats { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .rj-board-delta { display: none; }
    .rj-hero-card--1 { transform: translate(-50%, -50%) rotate(-8deg) translate(-6rem, 0.5rem); }
    .rj-hero-card--3 { transform: translate(-50%, -50%) rotate(9deg) translate(6rem, 0.8rem); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
