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

:root {
        --ma-active-rgb: 103,215,139;
        --ma-active-text: #d9ffe7;
  --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: #0d0d0d;
        --panel: #171717;
        --panel-2: #111111;
        --border: #3a3a3a;
        --text: #f3f3f3;
        --muted: #8e8e8e;
        --green: #2e7d32;
        --reading-accent: #67d78b;
        --reading-accent-strong: #7fe3a0;
        --reading-bg: #1e3a28;
        --reading-border: #3f8f5a;
        --reading-soft: rgba(103,215,139,0.14);
        --red: #b23b3b;
        --yellow: #9a8c25;
        --neutral: #555;
        --card-bg-top: #1c1c1c;
        --card-bg-bottom: #151515;
    }

body {
        margin: 0;
        min-height: 100vh;
        font-family: Arial, sans-serif;
        color: var(--text);
        background:
            radial-gradient(circle at top, rgba(103,215,139,0.22) 0%, transparent 34%),
            radial-gradient(circle at top, #242424 0%, var(--bg-1) 55%);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 24px;
    }

.main {
        width: min(540px, calc(100vw - 32px));
        background: linear-gradient(180deg, var(--card-bg-top), var(--card-bg-bottom));
        border: 1px solid rgba(103,215,139,0.16);
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(103,215,139,0.05);
        padding: 24px 30px 145px;
        text-align: center;
        position: relative;
    }

h1 {
        margin: 0 0 10px;
        font-size: 28px;
        font-weight: 700;
        letter-spacing: -0.01em;
        text-shadow: 0 0 22px rgba(103,215,139,0.12);
    }

.subline {
        color: #d8e8ff;
        font-size: 15px;
        margin-bottom: 20px;
    }

.score-pill {
        background: linear-gradient(180deg, rgba(103,215,139,0.08), rgba(255,255,255,0.02));
        border: 1px solid rgba(103,215,139,0.16);
        border-radius: 999px;
        padding: 8px 14px;
    }

input[type="text"]:focus,
    input[type="number"]:focus,
    textarea:focus {
        border-color: var(--reading-border);
        box-shadow: 0 0 0 3px rgba(103,215,139,0.10);
    }

.btn:hover {
        border-color: var(--reading-border);
        box-shadow: 0 0 0 1px rgba(103,215,139,0.25);
    }

.btn.active,
    .btn:active {
        background: var(--reading-bg);
        border-color: var(--reading-border);
        color: #d8ffe8;
        box-shadow: inset 0 0 0 1px rgba(103,215,139,0.2);
    }

.btn-start {
        background: var(--reading-bg);
        border-color: var(--reading-border);
        font-weight: 700;
        box-shadow: inset 0 0 0 1px rgba(103,215,139,0.08);
    }

.btn-start:hover { background: #2a5e34; }

.btn-secondary {
        /* inherit base */
    }

.btn-secondary:hover {
        border-color: var(--reading-border);
    }

.side-panel {
        position: fixed;
        top: 12px;
        width: 248px;
        max-height: calc(100vh - 110px);
        background: linear-gradient(180deg, rgba(23,29,38,0.96), rgba(17,19,23,0.96));
        border: 1px solid rgba(103,215,139,0.12);
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 12px 32px rgba(0,0,0,0.28);
        z-index: 5;
        display: flex;
        flex-direction: column;
    }

.panel-header {
        background: linear-gradient(180deg, rgba(31,47,71,0.54), rgba(17,17,17,0.96));
        border-bottom: 1px solid rgba(103,215,139,0.12);
        padding: 10px 12px;
        cursor: pointer;
        user-select: none;
        font-weight: 700;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
    }

.cell:hover { outline: 2px solid rgba(103,215,139,0.24); }

.score-block {
        background: linear-gradient(180deg, rgba(103,215,139,0.06), rgba(255,255,255,0.02));
        border: 1px solid rgba(103,215,139,0.10);
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 12px;
    }

.score-row {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        padding: 4px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 14px;
    }

.popup {
        position: fixed;
        display: none;
        z-index: 50;
        background: linear-gradient(180deg, rgba(24,29,37,0.98), rgba(20,20,20,0.98));
        border: 1px solid rgba(103,215,139,0.16);
        border-radius: 12px;
        padding: 10px 12px;
        min-width: 160px;
        box-shadow: 0 12px 28px rgba(0,0,0,0.35);
        font-size: 14px;
        line-height: 1.45;
    }

.bottom-shell {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 20;
        background: linear-gradient(180deg, rgba(15,18,23,0.98), rgba(12,12,12,0.98));
        border-top: 1px solid rgba(103,215,139,0.14);
    }

.tab-button.active {
        background: linear-gradient(180deg, rgba(31,47,71,0.46), rgba(23,23,23,0.96));
        color: #d8e8ff;
    }

.drawer-content {
        display: none;
        padding: 14px 16px 16px;
        background: linear-gradient(180deg, rgba(18,22,30,0.98), rgba(20,20,20,0.98));
        border-top: 1px solid rgba(103,215,139,0.08);
        width: 100%;
        height: 360px;
        max-height: 50vh;
        overflow-y: auto;
    }

.toggle-btn {
        background: #242424;
        border: 1px solid #444;
        border-radius: 10px;
        padding: 11px 12px;
        cursor: pointer;
        user-select: none;
        font-size: 15px;
        font-weight: 600;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        line-height: 1.15;
        transition: all 0.15s ease;
    }

.toggle-btn:hover {
        border-color: var(--reading-border);
        box-shadow: 0 0 0 1px rgba(103,215,139,0.25);
    }

.toggle-btn.active {
        background: var(--reading-bg);
        border-color: var(--reading-border);
        color: white;
    }

.session-list-item {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 4px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

body.test-mode-active .main {
        border-color: #2f8f68;
        box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(103, 215, 139, 0.14);
    }

body.test-mode-active {
        background: radial-gradient(circle at top, #133127 0%, var(--bg-1) 58%);
    }

.study-link.active {
        border-color: #67d78b;
        background: rgba(255,255,255,0.05);
        color: #fff;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 0 0 1px #67d78b;
    }

.profile-overlay {
        position: fixed;
        inset: 0;
        z-index: 120;
        background: rgba(0,0,0,0.52);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
    }

.bottom-shell.ma-modifiers-only .toggle-btn.active,
.bottom-shell.ma-modifiers-only .btn.active{background:linear-gradient(180deg, rgba(103,215,139,.24), rgba(103,215,139,.12)) !important;border-color:rgba(103,215,139,.72) !important;color:#d9ffe7 !important;box-shadow:inset 0 0 0 1px rgba(103,215,139,.22), 0 0 0 1px rgba(103,215,139,.14), 0 10px 24px rgba(103,215,139,.10) !important;}
