/* Keroppi Notes — Kero Keroppi / Sanrio themed PWA (Light Theme) */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg: #E8F5E9;
    --surface: #FFFFFF;
    --surface-hover: #F1F8F1;
    --surface-border: #C8E6C9;
    --green: #4CAF50;
    --green-glow: rgba(76, 175, 80, 0.3);
    --green-soft: rgba(76, 175, 80, 0.1);
    --light-green: #81C784;
    --pond: #64B5F6;
    --text: #222222;
    --text-muted: #555555;
    --text-dim: #888888;
    --coral: #EF5350;
    --success: #43A047;
    --radius: 16px;
    --radius-sm: 10px;

    /* Category colors */
    --cat-study: #6366F1;
    --cat-work: #F59E0B;
    --cat-meeting: #10B981;
    --cat-ideas: #EC4899;
    --cat-journal: #8B5CF6;
    --cat-research: #06B6D4;
    --cat-project: #EF4444;
    --cat-personal: #F97316;
    --cat-general: #78909C;
    --cat-error: #EF5350;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    background-image: url('/img/bg-pattern.png');
    background-size: 300px 300px;
    background-repeat: repeat;
    color: var(--text);
    overflow: hidden;
}

/* ── Login Screen ────────────────────────────────────────── */

.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    background: linear-gradient(180deg, rgba(200, 230, 201, 0.9) 0%, rgba(232, 245, 233, 0.85) 50%, rgba(255, 255, 255, 0.9) 100%);
    background-color: var(--bg);
    position: relative;
    overflow: hidden;
}

.login-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/img/bg-pattern.png');
    background-size: 250px 250px;
    background-repeat: repeat;
    opacity: 0.5;
    z-index: 0;
}

.login-screen::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: url('/img/keroppi-hero.png') center bottom / cover no-repeat;
    opacity: 0.25;
    z-index: 0;
}

.login-screen.hidden {
    display: none;
}

.login-card {
    width: 100%;
    max-width: 340px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-keroppi-img {
    width: 140px;
    height: 140px;
    margin: 0 auto 8px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.login-keroppi-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-logo {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 42px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--green), var(--light-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.login-logo span {
    -webkit-text-fill-color: var(--green);
    font-size: 24px;
    vertical-align: super;
    margin-left: 2px;
}

.login-subtitle {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 32px;
    font-weight: 600;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--surface-border);
    background: var(--surface);
    color: var(--text);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    outline: none;
    text-align: center;
    transition: border-color 0.2s;
}

.login-input:focus {
    border-color: var(--green);
}

.login-input::placeholder {
    color: var(--text-dim);
}

.login-error {
    margin-top: 12px;
    font-size: 13px;
    color: var(--coral);
    min-height: 20px;
}

/* ── App Shell ────────────────────────────────────────────── */

#app {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Header ───────────────────────────────────────────────── */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.logo {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 26px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--green), #2E7D32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.logo span {
    -webkit-text-fill-color: var(--light-green);
    font-size: 16px;
    vertical-align: super;
    margin-left: 2px;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.icon-btn:hover, .icon-btn.active {
    background: var(--green-soft);
    color: var(--green);
}

/* ── Navigation Tabs ──────────────────────────────────────── */

nav {
    display: flex;
    gap: 4px;
    padding: 4px 20px 12px;
    flex-shrink: 0;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, transparent 5%, var(--light-green) 30%, var(--pond) 50%, var(--light-green) 70%, transparent 95%) 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

nav button {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

nav button.active {
    background: var(--green-soft);
    color: var(--green);
}

nav button:hover:not(.active) {
    color: var(--text);
}

/* ── Screens ──────────────────────────────────────────────── */

.screen {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 100px;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

/* ── Record Screen ────────────────────────────────────────── */

#screen-record {
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-bottom: 60px;
}

.record-mascot-wrapper {
    width: 320px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -8px;
}

.record-mascot-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(76, 175, 80, 0.2));
}

.record-mascot-placeholder {
    font-size: 64px;
    line-height: 1;
}

.record-label {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
}

.record-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--green);
    background: var(--surface);
    color: var(--green);
    font-size: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 4px 20px var(--green-glow);
}

.record-btn::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid var(--green-glow);
    animation: none;
}

.record-btn.recording {
    background: var(--green);
    color: white;
    border-color: var(--green);
    box-shadow: 0 0 40px var(--green-glow), 0 0 80px var(--green-glow);
}

.record-btn.recording::before {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0; }
}

.record-timer {
    font-family: 'Nunito', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}

.record-timer.visible {
    opacity: 1;
}

.record-hint {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    background: rgba(255, 255, 255, 0.75);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.4s ease;
    max-width: 340px;
}

.record-hint.memory-active {
    font-style: italic;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    padding: 12px 20px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.85);
    max-height: 160px;
    overflow-y: auto;
    text-align: left;
    border-left: 3px solid var(--light-green);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

/* ── Processing overlay ───────────────────────────────────── */

.processing-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(232, 245, 233, 0.92);
    z-index: 100;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
}

.processing-overlay.active {
    display: flex;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--surface-border);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.processing-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 16px;
}

/* ── Notes List Screen ────────────────────────────────────── */

.filter-bar {
    display: flex;
    gap: 8px;
    padding-bottom: 16px;
    overflow-x: auto;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 20px;
    border: 2px solid var(--surface-border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-chip.active {
    border-color: var(--green);
    background: var(--green-soft);
    color: var(--green);
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.note-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid var(--cat-general);
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.note-card:hover {
    background: var(--surface-hover);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.note-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.note-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--green-soft);
    color: var(--green);
}

.note-date {
    font-size: 12px;
    color: var(--text-dim);
}

.note-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 6px;
    line-height: 1.3;
    color: var(--text);
}

.note-preview {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-meta {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-dim);
}

/* ── Note Detail Screen ───────────────────────────────────── */

#screen-detail {
    padding-top: 0;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0 16px;
    flex-shrink: 0;
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.detail-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 22px;
    flex: 1;
    line-height: 1.2;
}

.detail-actions {
    display: flex;
    gap: 8px;
}

.detail-meta {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-top: 2px solid var(--surface-border);
    border-bottom: 2px solid var(--surface-border);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.detail-meta-item {
    font-size: 13px;
    color: var(--text-muted);
}

.detail-meta-item strong {
    color: var(--text);
}

.detail-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    flex-shrink: 0;
}

.detail-content .caps-section {
    margin-bottom: 20px;
}

.detail-content .caps-header {
    color: var(--green);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--surface-border);
}

.detail-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-content li {
    padding-left: 16px;
    position: relative;
    color: var(--text);
    line-height: 1.6;
}

.detail-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.detail-content li.indent {
    padding-left: 32px;
}

.detail-content li.indent::before {
    left: 16px;
    background: var(--text-dim);
}

.detail-content li.checkbox {
    padding-left: 28px;
}

.detail-content li.checkbox::before {
    content: '';
    left: 0;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: none;
    border: 2px solid var(--green);
}

.detail-content p {
    margin: 0 0 6px;
    color: var(--text-muted);
    line-height: 1.6;
}

.detail-transcript {
    margin-top: 24px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.detail-transcript-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.detail-transcript-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
}

.detail-transcript-arrow {
    font-size: 12px;
    color: var(--text-dim);
    transition: transform 0.2s;
}

.detail-transcript.open .detail-transcript-arrow {
    transform: rotate(180deg);
}

.detail-transcript-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.detail-transcript.open .detail-transcript-body {
    max-height: 150px;
    overflow-y: auto;
}

.detail-transcript-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    font-style: italic;
    padding: 0 16px 12px;
}

/* ── Ask Screen ───────────────────────────────────────────── */

#screen-ask {
    padding-bottom: 80px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 16px;
}

.chat-bubble {
    max-width: 90%;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.6;
    animation: slideIn 0.3s ease-out;
}

.chat-bubble.user {
    align-self: flex-end;
    background: var(--green);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble.assistant {
    align-self: flex-start;
    background: var(--surface);
    color: var(--text);
    border-bottom-left-radius: 4px;
    white-space: pre-wrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.chat-input-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    border-top: 2px solid var(--surface-border);
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 24px;
    border: 2px solid var(--surface-border);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: var(--green);
}

.chat-input::placeholder {
    color: var(--text-dim);
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--green);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    box-shadow: 0 2px 8px var(--green-glow);
}

.chat-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Settings Screen ──────────────────────────────────────── */

#screen-settings {
    gap: 16px;
}

.settings-group {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.settings-group h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--text);
}

.settings-field {
    margin-bottom: 16px;
}

.settings-field:last-child {
    margin-bottom: 0;
}

.settings-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.settings-field input {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--surface-border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.settings-field input:focus {
    border-color: var(--green);
}

.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-green {
    background: var(--green);
    color: white;
}

.btn-green:hover {
    box-shadow: 0 0 20px var(--green-glow);
}

.btn-outline {
    background: var(--surface);
    color: var(--text-muted);
    border: 2px solid var(--surface-border);
}

.btn-danger {
    background: transparent;
    color: var(--coral);
    border: 2px solid var(--coral);
}

.btn-block {
    width: 100%;
}

/* ── Empty State ──────────────────────────────────────────── */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    gap: 12px;
}

.empty-icon {
    font-size: 64px;
    opacity: 0.6;
}

.empty-icon img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    opacity: 1;
}

.empty-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-muted);
}

.empty-hint {
    font-size: 14px;
    color: var(--text-dim);
}

/* ── Toast ────────────────────────────────────────────────── */

.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 12px 24px;
    border-radius: 24px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 200;
    transition: transform 0.3s ease-out;
    white-space: nowrap;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    border: 2px solid var(--coral);
}

.toast.success {
    border: 2px solid var(--success);
}

/* ── Install Banner ───────────────────────────────────────── */

.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 20px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-top: 2px solid var(--green);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 150;
    max-width: 480px;
    margin: 0 auto;
    animation: slideIn 0.3s ease-out;
}

.install-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.install-text strong {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    color: var(--text);
}

.install-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.install-dismiss {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: var(--text-dim);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Keroppi Decorative Elements ──────────────────────────── */

.keroppi-border-top {
    height: 4px;
    background: linear-gradient(90deg, var(--light-green), var(--green), var(--pond), var(--green), var(--light-green));
    border-radius: 2px;
}

.keroppi-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.keroppi-divider::before,
.keroppi-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--surface-border), transparent);
}

.keroppi-divider img {
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

/* Floating lily pad decorations on screens */
.screen::after {
    content: '';
    position: fixed;
    bottom: 70px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: url('/img/keroppi-mascot.png') center / contain no-repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

/* Chat assistant bubble Keroppi avatar */
.chat-bubble.assistant {
    position: relative;
    padding-left: 16px;
}

.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-bottom: 4px;
    border: 2px solid var(--surface-border);
}

/* Processing overlay Keroppi */
.processing-keroppi {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Settings Keroppi decoration */
.settings-keroppi {
    text-align: center;
    padding: 12px 0;
}

.settings-keroppi img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.6;
}

/* ── Scrollbar ────────────────────────────────────────────── */

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--surface-border);
    border-radius: 2px;
}

/* ── Responsive safe area ─────────────────────────────────── */

@supports (padding: env(safe-area-inset-bottom)) {
    #app {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
