/* Page-specific CSS for mode-atlas-kana-page.css. Shared repeated rules moved to mode-atlas-page-shared.css. */

:root {
  --ma-font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ma-font-display: Sora, Inter, ui-sans-serif, system-ui, sans-serif;
  --ma-font-jp: "Noto Sans JP", Inter, ui-sans-serif, system-ui, sans-serif;
}

:root {
        --bg-1: #090909;
        --bg-2: #131313;
        --panel: rgba(25,25,25,0.88);
        --panel-strong: rgba(19,19,19,0.96);
        --border: rgba(255,255,255,0.09);
        --text: #f4f4f4;
        --muted: #a4a4a4;
        --gold: #cba34a;
        --gold-soft: rgba(203,163,74,0.16);
        --blue: #66a8ff;
        --blue-soft: rgba(102,168,255,0.16);
        --pink: #ff7bb2;
        --pink-soft: rgba(255,123,178,0.14);
        --green: #67d78b;
        --green-soft: rgba(103,215,139,0.14);
        --shadow: 0 22px 70px rgba(0,0,0,0.42);
        --radius-xl: 28px;
        --radius-lg: 22px;
        --radius-md: 16px;
    }

body {
        margin: 0;
        min-height: 100vh;
        font-family: Arial, sans-serif;
        color: var(--text);
        background:
            radial-gradient(circle at 15% 10%, rgba(102,168,255,0.14), transparent 26%),
            radial-gradient(circle at 85% 0%, rgba(255,123,178,0.12), transparent 24%),
            radial-gradient(circle at 50% 100%, rgba(203,163,74,0.11), transparent 30%),
            linear-gradient(180deg, #171717 0%, #0a0a0a 100%);
        padding: 24px;
    }

body::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background-image:
            linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
        background-size: 34px 34px;
        mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
        opacity: 0.35;
    }

.shell {
        width: min(1260px, 100%);
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }

.glass {
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        background: linear-gradient(180deg, rgba(27,27,27,0.92), rgba(16,16,16,0.94));
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

.hero {
        border-radius: var(--radius-xl);
        padding: 30px;
        position: relative;
        overflow: hidden;
        margin-bottom: 22px;
    }

.hero::before,
    .hero::after {
        content: "";
        position: absolute;
        border-radius: 999px;
        filter: blur(10px);
        opacity: 0.9;
        pointer-events: none;
    }

.hero::before {
        width: 240px;
        height: 240px;
        top: -80px;
        right: -40px;
        background: radial-gradient(circle, rgba(102,168,255,0.26) 0%, rgba(102,168,255,0) 70%);
    }

.hero::after {
        width: 220px;
        height: 220px;
        left: -60px;
        bottom: -90px;
        background: radial-gradient(circle, rgba(255,123,178,0.22) 0%, rgba(255,123,178,0) 70%);
    }

.hero-grid {
        display: grid;
        grid-template-columns: 1.65fr 0.95fr;
        gap: 22px;
        align-items: stretch;
    }

.eyebrow-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 16px;
    }

.pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 13px;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 700;
        border: 1px solid var(--border);
        background: rgba(255,255,255,0.04);
    }

.pill.gold {
        background: var(--gold-soft);
        border-color: rgba(203,163,74,0.36);
        color: #ffe2a6;
    }

.pill.blue {
        background: var(--blue-soft);
        border-color: rgba(102,168,255,0.34);
        color: #d7e8ff;
    }

h1 {
        margin: 0 0 12px;
        font-size: 42px;
        line-height: 1.02;
        letter-spacing: -0.02em;
    }

.hero-lead {
        color: #d3d3d3;
        font-size: 16px;
        line-height: 1.65;
        max-width: 760px;
        margin-bottom: 22px;
    }

.hero-copy {
        color: #d9d9d9;
        font-size: 17px;
        line-height: 1.6;
        max-width: 760px;
        margin-bottom: 22px;
    }

.launch-row {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        margin-bottom: 18px;
    }

.launch-card {
        flex: 1 1 260px;
        min-width: 0;
        text-decoration: none;
        color: inherit;
        border-radius: 22px;
        padding: 18px;
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.08);
        transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

.launch-card:hover {
        transform: translateY(-2px);
        border-color: rgba(255,255,255,0.18);
        box-shadow: 0 18px 35px rgba(0,0,0,0.28);
    }

.launch-card.reading {
        background:
            radial-gradient(circle at top right, rgba(103,215,139,0.20), transparent 42%),
            linear-gradient(180deg, rgba(23,40,26,0.96), rgba(19,23,20,0.96));
    }

.launch-card.writing {
        background:
            radial-gradient(circle at top right, rgba(102,168,255,0.22), transparent 42%),
            linear-gradient(180deg, rgba(19,28,43,0.96), rgba(17,20,26,0.96));
    }

.launch-top {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: flex-start;
        margin-bottom: 18px;
    }

.launch-kicker {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: rgba(255,255,255,0.66);
        margin-bottom: 8px;
    }

.launch-title {
        font-size: 25px;
        font-weight: 800;
        margin-bottom: 8px;
    }

.launch-sub {
        color: #cfcfcf;
        font-size: 14px;
        line-height: 1.45;
        max-width: 30ch;
    }

.launch-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 62px;
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.1);
        white-space: nowrap;
    }

.launch-foot {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: center;
        color: #f1f1f1;
        font-size: 14px;
        font-weight: 700;
    }

.launch-arrow {
        font-size: 18px;
        opacity: 0.9;
    }

.hero-side {
        display: grid;
        gap: 14px;
        align-content: start;
    }

.mini-panel {
        border-radius: 22px;
        padding: 18px;
        background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.025));
        border: 1px solid rgba(255,255,255,0.08);
    }

.mini-label {
        color: var(--muted);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        margin-bottom: 10px;
    }

.duo-score {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

.duo-chip {
        padding: 12px;
        border-radius: 16px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.07);
    }

.duo-chip .name {
        color: var(--muted);
        font-size: 12px;
        margin-bottom: 6px;
    }

.duo-chip .value {
        font-size: 26px;
        font-weight: 800;
    }

.hero-note {
        color: #d0d0d0;
        font-size: 14px;
        line-height: 1.55;
    }

.stage {
        display: grid;
        gap: 18px;
        margin-top: 18px;
    }

.card {
        border-radius: var(--radius-lg);
        padding: 20px;
        min-width: 0;
    }

.card-head {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: flex-start;
        margin-bottom: 18px;
    }

.card-title {
        margin: 0 0 6px;
        font-size: 24px;
    }

.card-sub {
        color: var(--muted);
        font-size: 14px;
        line-height: 1.5;
    }

.accent {
        width: 12px;
        height: 12px;
        border-radius: 999px;
        margin-top: 8px;
        flex: 0 0 auto;
    }

.accent.green { background: var(--green); box-shadow: 0 0 16px rgba(103,215,139,0.45); }

.accent.blue { background: var(--blue); box-shadow: 0 0 16px rgba(102,168,255,0.45); }

.accent.gold { background: var(--gold); box-shadow: 0 0 16px rgba(203,163,74,0.45); }

.spotlight-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

.spotlight-panel {
        border-radius: 20px;
        padding: 16px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.08);
    }

.mode-tag {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 14px;
    }

.mode-tag.reading { background: var(--green-soft); color: #bdf3cf; }

.mode-tag.writing { background: var(--blue-soft); color: #d8e8ff; }

.hero-statline {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 14px;
    }

.metric {
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 16px;
        padding: 12px;
    }

.metric .label {
        font-size: 12px;
        color: var(--muted);
        margin-bottom: 7px;
    }

.metric .value {
        font-size: 27px;
        font-weight: 800;
        line-height: 1;
    }

.funline {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        align-items: center;
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.07);
        color: #d4d4d4;
        font-size: 14px;
    }

.funline strong {
        color: white;
        text-align: right;
        flex: 1 1 auto;
        min-width: 0;
        overflow-wrap: anywhere;
    }

.mid-band {
        display: grid;
        grid-template-columns: 1.15fr 0.85fr;
        gap: 18px;
        align-items: stretch;
    }

.gauge-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

.gauge-card {
        border-radius: 20px;
        padding: 18px;
        background: rgba(255,255,255,0.035);
        border: 1px solid rgba(255,255,255,0.08);
    }

.ring-wrap {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 14px;
    }

.ring {
        --size: 104px;
        width: var(--size);
        height: var(--size);
        border-radius: 50%;
        position: relative;
        background: conic-gradient(var(--ring-color) calc(var(--pct) * 1%), rgba(255,255,255,0.07) 0);
        flex: 0 0 auto;
    }

.ring::after {
        content: "";
        position: absolute;
        inset: 10px;
        border-radius: 50%;
        background: #121212;
        border: 1px solid rgba(255,255,255,0.06);
    }

.ring-center {
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        z-index: 1;
        text-align: center;
    }

.ring-center .big {
        font-size: 25px;
        font-weight: 800;
        line-height: 1;
    }

.ring-center .small {
        font-size: 11px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-top: 4px;
    }

.gauge-copy {
        min-width: 0;
    }

.gauge-copy h3 {
        margin: 0 0 8px;
        font-size: 22px;
    }

.gauge-copy p {
        margin: 0;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.5;
    }

.mini-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

.mini-stat {
        padding: 12px;
        border-radius: 14px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.07);
    }

.mini-stat .k {
        color: var(--muted);
        font-size: 12px;
        margin-bottom: 5px;
    }

.mini-stat .v {
        font-size: 22px;
        font-weight: 800;
    }

.bars {
        display: grid;
        gap: 14px;
    }

.bar-row {
        display: grid;
        gap: 8px;
    }

.bar-top {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        align-items: baseline;
        font-size: 14px;
    }

.bar-track {
        height: 12px;
        border-radius: 999px;
        background: rgba(255,255,255,0.07);
        overflow: hidden;
        position: relative;
    }

.bar-fill {
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, rgba(255,255,255,0.22), var(--bar-color));
        min-width: 6px;
    }

.summary-rows {
        display: grid;
        gap: 10px;
    }

.summary-row {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        align-items: center;
        padding: 14px 15px;
        border-radius: 16px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.075);
    }

.summary-main {
        min-width: 0;
    }

.summary-label {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 4px;
    }

.summary-extra {
        font-size: 12px;
        color: var(--muted);
        line-height: 1.4;
    }

.summary-value {
        font-size: 19px;
        font-weight: 800;
        white-space: nowrap;
    }

.daily-zone {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        align-items: start;
    }

.timeline {
        display: grid;
        gap: 12px;
    }

.timeline-item {
        display: grid;
        grid-template-columns: 108px 1fr;
        gap: 14px;
        align-items: stretch;
    }

.timeline-date {
        border-radius: 16px;
        padding: 14px 12px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.07);
        font-size: 13px;
        font-weight: 800;
        color: #f3f3f3;
        text-align: center;
    }

.timeline-card {
        border-radius: 16px;
        padding: 14px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.07);
    }

.timeline-score {
        font-size: 22px;
        font-weight: 800;
        margin-bottom: 6px;
    }

.timeline-meta {
        color: var(--muted);
        font-size: 13px;
        line-height: 1.45;
    }

.footer-band {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        align-items: stretch;
    }

.comparison-title {
        font-size: 15px;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: #e7c570;
        font-weight: 800;
    }

.comparison-copy {
        color: #d8d8d8;
        font-size: 16px;
        line-height: 1.6;
        max-width: 42ch;
    }

.pulse-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: start;
    }

.pulse-side {
        display: grid;
        gap: 14px;
    }

.pulse-panel {
        border-radius: 18px;
        padding: 16px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.075);
        min-height: 100%;
    }

.pulse-panel h3 {
        margin: 0 0 12px;
        font-size: 18px;
    }

.pulse-compare {
        display: grid;
        gap: 12px;
    }

.pulse-top-grid {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 18px;
        align-items: stretch;
    }

.pulse-key-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

.pulse-key-card {
        border-radius: 16px;
        padding: 14px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.07);
        display: grid;
        gap: 10px;
    }

.pulse-key-head {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        align-items: center;
    }

.pulse-key-head .k {
        font-size: 13px;
        color: var(--muted);
    }

.pulse-key-head .v {
        font-size: 18px;
        font-weight: 800;
    }

.pulse-mode-pair {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

.pulse-mode-box {
        border-radius: 12px;
        padding: 10px 11px;
        border: 1px solid rgba(255,255,255,0.07);
        background: rgba(255,255,255,0.03);
    }

.pulse-mode-box.reading {
        box-shadow: inset 0 0 0 1px rgba(103,215,139,0.08);
    }

.pulse-mode-box.writing {
        box-shadow: inset 0 0 0 1px rgba(102,168,255,0.08);
    }

.pulse-mode-name {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--muted);
        margin-bottom: 6px;
    }

.pulse-mode-box.reading .pulse-mode-name {
        color: #bdf3cf;
    }

.pulse-mode-box.writing .pulse-mode-name {
        color: #d8e8ff;
    }

.pulse-mode-value {
        font-size: 22px;
        font-weight: 800;
        line-height: 1.05;
    }

.pulse-mode-sub {
        margin-top: 4px;
        font-size: 12px;
        color: var(--muted);
        line-height: 1.35;
    }

.vs-row {
        display: grid;
        grid-template-columns: 92px 1fr 92px;
        align-items: center;
        gap: 12px;
    }

.vs-value {
        font-size: 22px;
        font-weight: 800;
        text-align: center;
    }

.vs-value.reading { color: #bdf3cf; }

.vs-value.writing { color: #d8e8ff; }

.vs-center {
        min-width: 0;
    }

.vs-label {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        align-items: baseline;
        font-size: 14px;
        margin-bottom: 7px;
    }

.vs-track {
        height: 12px;
        border-radius: 999px;
        background: rgba(255,255,255,0.07);
        overflow: hidden;
        display: flex;
    }

.vs-fill.reading {
        background: linear-gradient(90deg, rgba(255,255,255,0.18), #67d78b);
    }

.vs-fill.writing {
        background: linear-gradient(90deg, rgba(255,255,255,0.18), #66a8ff);
    }

.pulse-badges {
        display: grid;
        gap: 10px;
    }

.pulse-badge {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: center;
        border-radius: 14px;
        padding: 12px 14px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.07);
    }

.pulse-badge .k {
        font-size: 13px;
        color: var(--muted);
        margin-bottom: 4px;
    }

.pulse-badge .v {
        font-size: 16px;
        font-weight: 800;
    }

.pulse-winner {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-weight: 800;
        padding: 6px 10px;
        border-radius: 999px;
        white-space: nowrap;
    }

.pulse-winner.reading {
        background: var(--green-soft);
        color: #bdf3cf;
    }

.pulse-winner.writing {
        background: var(--blue-soft);
        color: #d8e8ff;
    }

.pulse-winner.tie {
        background: var(--gold-soft);
        color: #ffe2a6;
    }

.pulse-split {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

.pulse-split-card {
        border-radius: 14px;
        padding: 13px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.07);
    }

.pulse-split-card .k {
        font-size: 12px;
        color: var(--muted);
        margin-bottom: 6px;
    }

.pulse-split-card .v {
        font-size: 20px;
        font-weight: 800;
        margin-bottom: 4px;
    }

.pulse-split-card .sub {
        font-size: 12px;
        color: var(--muted);
    }

.empty {
        min-height: 84px;
        padding: 18px;
        border-radius: 16px;
        background: rgba(255,255,255,0.03);
        border: 1px dashed rgba(255,255,255,0.12);
        color: var(--muted);
        font-size: 14px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.footer-note {
        margin-top: 18px;
        text-align: center;
        color: var(--muted);
        font-size: 13px;
    }

.branch-nav {
        position: sticky;
        top: 14px;
        z-index: 70;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 14px;
        margin-bottom: 18px;
        border-radius: 24px;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        background: linear-gradient(180deg, rgba(24,27,35,0.82), rgba(12,14,19,0.74));
        border: 1px solid rgba(255,255,255,0.10);
        box-shadow: 0 18px 45px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.035);
    }

.branch-brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; color: inherit; text-decoration: none; }

.branch-mark { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; font-weight: 900; letter-spacing: -0.08em; background: radial-gradient(circle at 28% 24%, rgba(255,255,255,0.20), transparent 30%), linear-gradient(135deg, rgba(103,215,139,0.90), rgba(102,168,255,0.94)); box-shadow: 0 14px 30px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.18); }

.branch-mark.kana-mark { color: #061018; font-size: 15px; letter-spacing: -0.14em; }

.branch-meta { min-width: 0; }

.branch-kicker { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 800; margin-bottom: 3px; }

.branch-name { font-size: 18px; font-weight: 900; letter-spacing: -0.03em; white-space: nowrap; }

.branch-links { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }

.branch-link, .profile-trigger, .drawer-close { appearance: none; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); color: var(--text); border-radius: 999px; padding: 10px 13px; font: inherit; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease; white-space: nowrap; }

.profile-trigger { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.06); padding: 9px 13px 9px 10px; }

.branch-link:hover, .profile-trigger:hover, .drawer-close:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.07); }

.branch-link.active { background: rgba(203,163,74,0.16); border-color: rgba(203,163,74,0.32); color: #ffe2a6; }

.branch-link.atlas:hover { border-color: rgba(182,148,255,0.42); background: rgba(182,148,255,0.14); color: #eadfff; box-shadow: 0 10px 24px rgba(182,148,255,0.10); }

.branch-link.reading:hover { border-color: rgba(103,215,139,0.42); background: rgba(103,215,139,0.14); color: #c9f7d8; box-shadow: 0 10px 24px rgba(103,215,139,0.10); }

.branch-link.writing:hover { border-color: rgba(102,168,255,0.44); background: rgba(102,168,255,0.14); color: #d8e8ff; box-shadow: 0 10px 24px rgba(102,168,255,0.10); }

.branch-link.results:hover { border-color: rgba(203,163,74,0.46); background: rgba(203,163,74,0.16); color: #ffe2a6; box-shadow: 0 10px 24px rgba(203,163,74,0.10); }

.profile-trigger:hover { border-color: rgba(255,159,202,0.42); background: rgba(255,159,202,0.12); color: #ffd8e9; }

.profile-trigger { display: inline-flex; align-items: center; gap: 9px; padding: 8px 9px 8px 12px; background: rgba(255,255,255,0.055); }

.profile-dot { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 900; background: linear-gradient(135deg, rgba(117,227,168,0.95), rgba(125,181,255,0.95)); color: #061018; overflow: hidden; line-height: 1; }

.profile-dot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(0,0,0,0.52); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.drawer-backdrop.open { display: block; }

.profile-drawer { position: fixed; top: 18px; right: 18px; z-index: 90; width: min(390px, calc(100vw - 36px)); max-height: calc(100vh - 36px); overflow-y: auto; padding: 18px; border-radius: 28px; background: radial-gradient(circle at top right, rgba(102,168,255,0.18), transparent 34%), linear-gradient(180deg, rgba(22,25,34,0.98), rgba(9,11,16,0.98)); border: 1px solid rgba(255,255,255,0.10); box-shadow: 0 32px 90px rgba(0,0,0,0.55); transform: translateX(calc(100% + 40px)); transition: transform 0.24s ease; }

.profile-drawer.open { transform: translateX(0); }

.drawer-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; }

.drawer-title { font-size: 20px; font-weight: 900; letter-spacing: -0.03em; }

.drawer-close { padding: 8px 11px; border-radius: 12px; }

.drawer-user { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); margin-bottom: 14px; }

.drawer-avatar { width: 56px; height: 56px; border-radius: 18px; object-fit: cover; display: none; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }

.drawer-name { font-size: 17px; font-weight: 900; margin-bottom: 4px; }

.drawer-email, .drawer-status { color: var(--muted); font-size: 13px; line-height: 1.45; }

.drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

.drawer-action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.05); color: var(--text); text-decoration: none; font-weight: 800; font-size: 13px; cursor: pointer; }

.drawer-action.primary { background: rgba(102,168,255,0.16); border-color: rgba(102,168,255,0.30); }

.hero-topline { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(203,163,74,0.28); background: rgba(203,163,74,0.12); color: #ffe2a6; font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }

@media (max-width: 1080px) {
        .hero-grid,
        .mid-band,
        .gauge-grid,
        .daily-zone,
        .footer-band {
            grid-template-columns: 1fr;
        }
    }

@media (max-width: 760px) {
        body { padding: 14px; }
        .branch-nav { align-items: flex-start; flex-direction: column; }
        .branch-links { justify-content: flex-start; }
        .profile-trigger { width: 100%; justify-content: space-between; }
        .drawer-actions { grid-template-columns: 1fr; }
        .hero, .card { padding: 18px; }
        h1 { font-size: 34px; }
        .hero-lead {
        color: #d3d3d3;
        font-size: 16px;
        line-height: 1.65;
        max-width: 760px;
        margin-bottom: 22px;
    }

    .hero-copy { font-size: 15px; }
        .spotlight-grid,
        .duo-score,
        .hero-statline,
        .mini-stats {
            grid-template-columns: 1fr;
        }
        .timeline-item {
            grid-template-columns: 1fr;
        }
        .timeline-date {
            text-align: left;
        }
        .ring-wrap {
            flex-direction: column;
            align-items: flex-start;
        }
        .pulse-layout,
        .pulse-top-grid,
        .pulse-split,
        .pulse-key-grid,
        .pulse-mode-pair {
            grid-template-columns: 1fr;
        }
        .vs-row {
            grid-template-columns: 72px 1fr 72px;
            gap: 8px;
        }
        .vs-value {
            font-size: 18px;
        }
    }

.main-title {
        margin: 0 0 10px;
        font-size: 56px;
        font-weight: 900;
        letter-spacing: -0.03em;
        line-height: 0.96;
        color: #ffffff;
        text-shadow: 0 0 24px rgba(255,255,255,0.08), 0 0 42px rgba(102,168,255,0.10);
    }

.hero-tagline {
        font-size: 22px;
        font-weight: 700;
        color: #f0f0f0;
        margin-bottom: 14px;
        max-width: 760px;
        line-height: 1.35;
        letter-spacing: -0.01em;
    }

@media (max-width: 760px) {
  .branch-links .profile-trigger { order: 99 !important; }
  .branch-links { -webkit-overflow-scrolling: touch; }
  .branch-links::-webkit-scrollbar { display: none !important; }
}
