/* App version & author (top-left) */
.app-meta {
    position: fixed;
    top: calc(0.65rem + env(safe-area-inset-top, 0px));
    left: calc(0.75rem + env(safe-area-inset-left, 0px));
    z-index: 600;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    user-select: none;
    line-height: 1.2;
    pointer-events: auto;
}

.app-meta__version {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--chrome-100);
    opacity: 0.55;
}

.app-meta__author {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--chrome-100);
    opacity: 0.4;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.app-meta__author:hover {
    opacity: 0.75;
    text-decoration: underline;
}

body[data-brightness="light"] .app-meta__version,
body[data-brightness="light"] .app-meta__author {
    opacity: 0.65;
}

body[data-brightness="light"] .app-meta__author:hover {
    opacity: 0.9;
}

/* Glass components - web glass approximation */

.glass-panel {
    position: relative;
    isolation: isolate;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-card);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 16px 48px var(--shadow-tint), inset 0 1px 0 var(--glass-highlight);
}

.glass-panel::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius-card) - 1px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-btn);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--chrome-100);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.15s, border-color var(--transition-ui);
}

.glass-btn:active { transform: scale(0.98); }

.glass-btn--primary {
    background: var(--accent-rose);
    border-color: transparent;
    color: #fff;
}

.glass-btn--primary:active {
    background: var(--accent-rose-soft);
}

.glass-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(7, 7, 15, 0.72);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 44px;
    border: none;
    background: none;
    color: #fff;
    font-family: inherit;
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
}

.nav-item svg {
    width: 22px;
    height: 22px;
}

.nav-item.active {
    color: var(--accent-rose);
}

.stat-chip {
    padding: 0.65rem 0.85rem;
    text-align: center;
    min-width: 0;
}

.stats-bento .stat-chip {
    flex: unset;
}

.stat-chip__val {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stat-chip__label {
    font-size: 0.7rem;
    color: var(--chrome-400);
    margin-top: 0.15rem;
}

.progress-wrap {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.progress-track {
    height: 3px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-rose), var(--accent-violet));
    box-shadow: 0 0 12px rgba(255, 71, 87, 0.5);
    transition: width 0.8s var(--ease-out);
}

.progress-label {
    font-size: 0.8rem;
    color: var(--chrome-400);
    text-align: center;
    margin-top: 0.5rem;
}

.countdown-num {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    line-height: 1;
}

.countdown-label {
    font-size: 0.85rem;
    color: var(--chrome-400);
    margin-top: 0.25rem;
}

.bottom-sheet {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.bottom-sheet.open {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet__panel {
    width: 100%;
    max-width: 480px;
    max-height: 85dvh;
    padding: 1.5rem;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    transform: translateY(100%);
    transition: transform 0.35s var(--ease-out);
    overflow-y: auto;
}

.bottom-sheet.open .bottom-sheet__panel {
    transform: translateY(0);
}

.sheet-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-btn);
    background: var(--glass-bg);
    color: var(--chrome-100);
    font-size: 1.25rem;
    cursor: pointer;
}

.achievement-toast {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    z-index: 300;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-pill);
    background: var(--glass-bg);
    border: 1px solid var(--accent-gold);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 32px rgba(251, 191, 36, 0.25);
    transition: transform 0.5s var(--ease-out);
    text-align: center;
    font-weight: 500;
}

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

.music-fab {
    position: fixed;
    bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 1rem);
    right: 1rem;
    z-index: 40;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    color: var(--chrome-100);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-fab.active {
    color: var(--accent-violet);
    border-color: var(--accent-violet);
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    padding: 0.35rem 0 0.25rem;
}

.top-bar__cluster {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.top-bar__actions {
    display: flex;
    gap: 0.5rem;
}

.top-bar__date {
    font-size: 0.72rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--chrome-100);
    opacity: 0.6;
    line-height: 1.2;
    text-align: right;
    padding-right: 0.1rem;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    color: var(--chrome-100);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { transform: scale(0.96); }

.login-screen {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    padding-top: calc(1.5rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    pointer-events: auto;
    isolation: isolate;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

.login-card {
    width: 100%;
    max-width: 360px;
    padding: 2rem 1.75rem;
    text-align: center;
}

.login-card h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.login-card p {
    font-size: 0.9rem;
    color: var(--chrome-400);
    margin-bottom: 1.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pin-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 2.5rem;
    padding: 0.5rem 0;
}

.pin-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}

.pin-dot.is-filled {
    background: var(--chrome-100);
    border-color: var(--chrome-100);
    transform: scale(1.05);
}

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    touch-action: manipulation;
}

.pin-key {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1.15;
    min-height: 52px;
    padding: 0;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-btn);
    background: rgba(255, 255, 255, 0.12);
    color: var(--chrome-100);
    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    transition: transform 0.12s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (hover: none) and (pointer: coarse) {
    .login-card.glass-panel {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(18, 18, 28, 0.92);
    }

    .pin-key {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.14);
    }
}

.pin-key:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.pin-key:active {
    transform: scale(0.96);
}

.pin-key--action {
    font-size: 1.15rem;
    color: var(--chrome-400);
}

.pin-key--enter {
    aspect-ratio: auto;
    min-height: 52px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    grid-column: auto;
    display: flex;
}

body.theme-morning .pin-key,
body.theme-day .pin-key {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.55);
    color: rgba(30, 25, 35, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

body.theme-morning .pin-dot,
body.theme-day .pin-dot {
    border-color: rgba(30, 25, 35, 0.35);
}

body.theme-morning .pin-dot.is-filled,
body.theme-day .pin-dot.is-filled {
    background: rgba(30, 25, 35, 0.85);
    border-color: rgba(30, 25, 35, 0.85);
}

@media (hover: none) and (pointer: coarse) {
    body.theme-morning .login-card.glass-panel,
    body.theme-day .login-card.glass-panel {
        background: rgba(255, 255, 255, 0.94);
    }

    body.theme-morning .pin-key,
    body.theme-day .pin-key {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.login-error {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--accent-rose);
    min-height: 1.25rem;
}

.plus-one {
    position: absolute;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-rose);
    pointer-events: none;
    animation: plusFloat 0.8s var(--ease-out) forwards;
    z-index: 20;
}

@keyframes plusFloat {
    from { opacity: 1; transform: translate(-50%, -50%); }
    to { opacity: 0; transform: translate(-50%, -80px); }
}

.heart-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: calc(var(--heart-size) + 48px);
    height: calc(var(--heart-size) * 1.5);
    margin: 1.25rem auto 0.75rem;
    flex-shrink: 0;
}

.heart-wrapper {
    transform: rotate(45deg);
    cursor: pointer;
    width: var(--heart-size);
    height: var(--heart-size);
    transition: filter 0.2s;
    z-index: 10;
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: rotate(45deg) scale(1); filter: drop-shadow(0 0 8px rgba(255, 71, 87, 0.3)); }
    50% { transform: rotate(45deg) scale(1.04); filter: drop-shadow(0 0 20px rgba(255, 71, 87, 0.5)); }
}

.heart-wrapper.tap {
    animation: heartTap 0.65s var(--ease-out);
}

@keyframes heartTap {
    0% { transform: rotate(45deg) scale(1); }
    35% { transform: rotate(45deg) scale(1.35); }
    100% { transform: rotate(45deg) scale(1); }
}

.heart {
    width: var(--heart-size);
    height: var(--heart-size);
    background: var(--accent-rose);
    position: relative;
    border-radius: 6px;
}

.heart::before, .heart::after {
    content: '';
    position: absolute;
    width: var(--heart-size);
    height: var(--heart-size);
    background: inherit;
    border-radius: 50%;
}

.heart::before { top: calc(var(--heart-size) / -2); left: 0; }
.heart::after { left: calc(var(--heart-size) / -2); top: 0; }

.particle {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    animation: flyUp 1s ease-out forwards;
    font-size: 20px;
    z-index: 5;
    user-select: none;
}

@keyframes flyUp {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.2); opacity: 0; }
}

@media (max-width: 767px) {
    .heart-section {
        height: calc(var(--heart-size) * 1.2);
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .heart-section {
        height: calc(var(--heart-size) * 1.15);
    }
}

@media (prefers-reduced-motion: reduce) {
    .heart-wrapper { animation: none; }
}

.welcome-intro {
    position: fixed;
    inset: 0;
    z-index: 450;
    pointer-events: none;
    opacity: 1;
}

.welcome-intro__scrim {
    position: absolute;
    inset: 0;
    background: rgba(7, 7, 15, 0.42);
}

.welcome-intro__heart {
    position: absolute;
    inset: 0;
}

.welcome-intro__heart canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

body.is-welcome-intro {
    overflow: hidden;
    overscroll-behavior: none;
}

body.is-welcome-intro #skyWish {
    opacity: 0;
}

body.is-welcome-intro .app-meta {
    opacity: 0;
    pointer-events: none;
}

body.is-welcome-intro .view-home .heart-wrapper {
    opacity: 0;
    pointer-events: none;
}

body.is-welcome-handoff .heart-wrapper.is-intro-handoff {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 460;
    margin: 0;
    animation: none;
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
    filter: drop-shadow(0 0 12px rgba(255, 71, 87, 0.45));
    pointer-events: none;
}

.welcome-intro.is-handoff .welcome-intro__heart {
    pointer-events: none;
}

.app-shell.is-revealing,
.glass-nav.is-revealing {
    opacity: 0;
    animation: welcomeReveal 0.85s var(--ease-out) forwards;
}

@keyframes welcomeReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.glass-nav.is-revealing {
    animation-delay: 0.08s;
}

@media (prefers-reduced-motion: reduce) {
    .app-shell.is-revealing,
    .glass-nav.is-revealing {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

#appShell:not(.hidden) {
    position: fixed;
    inset: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 1;
    transform: none;
    z-index: 2;
}

html.app-is-active,
body.app-is-active {
    overflow: hidden;
}

/* Dev: preview sky/theme by month and time (localhost only) */
.dev-time-panel {
    position: fixed;
    left: 0.75rem;
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 9000;
    width: min(20.5rem, calc(100vw - 1.5rem));
    padding: 0.65rem 0.75rem 0.75rem;
    font-size: 0.78rem;
    color: var(--chrome-100);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.dev-time-panel[hidden] {
    display: none !important;
}

.dev-time-panel--collapsed {
    transform: translateX(calc(-100% + 2rem));
    opacity: 0.55;
}

.dev-time-panel--collapsed .dev-time-panel__toggle {
    transform: rotate(180deg);
}

.dev-time-panel__toggle {
    position: absolute;
    right: 0.35rem;
    top: 0.35rem;
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    font-size: 0.7rem;
    cursor: pointer;
    line-height: 1;
}

.dev-time-panel__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding-right: 1.75rem;
    margin-bottom: 0.15rem;
}

.dev-time-panel__title {
    font-weight: 600;
    opacity: 0.85;
}

.dev-time-panel__clock {
    font-variant-numeric: tabular-nums;
    font-size: 1.05rem;
    font-weight: 600;
}

.dev-time-panel__phase {
    margin: 0 0 0.5rem;
    opacity: 0.7;
    font-size: 0.72rem;
    line-height: 1.3;
}

.dev-month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
    margin-bottom: 0.45rem;
}

.dev-month-pick {
    padding: 0.35rem 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.dev-month-pick--has-photo {
    border-color: rgba(74, 222, 128, 0.55);
    background: rgba(34, 197, 94, 0.22);
    color: #dcfce7;
}

.dev-month-pick--no-photo {
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(239, 68, 68, 0.22);
    color: #fee2e2;
}

.dev-month-pick--has-photo:hover,
.dev-month-pick--has-photo.is-active {
    border-color: rgba(134, 239, 172, 0.85);
    background: rgba(34, 197, 94, 0.38);
}

.dev-month-pick--no-photo:hover,
.dev-month-pick--no-photo.is-active {
    border-color: rgba(252, 165, 165, 0.85);
    background: rgba(239, 68, 68, 0.38);
}

.dev-time-btn.is-active {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
}

.dev-time-range {
    width: 100%;
    margin: 0 0 0.45rem;
    accent-color: var(--glow-2, #a78bfa);
}

.dev-time-panel__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.dev-time-panel__speed {
    margin-top: 0.35rem;
}

.dev-time-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.72rem;
    min-width: 0;
    flex: 1;
}

.dev-time-btn--ghost {
    opacity: 0.75;
}

@media (max-width: 480px) {
    .dev-time-panel {
        bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
        width: calc(100vw - 1rem);
        left: 0.5rem;
    }
}

/* Auth & onboarding (preserve app glass + rose accent) */

.auth-screen {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    padding-top: calc(1.25rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
    isolation: isolate;
    touch-action: manipulation;
}

.auth-screen:not(.hidden) .auth-card {
    animation: authCardIn 0.55s var(--ease-out) both;
}

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-screen:not(.hidden) .auth-card {
        animation: none;
    }
}

.auth-card {
    text-align: left;
    max-width: 380px;
}

.auth-card--wide {
    max-width: 440px;
}

.auth-card h1 {
    text-align: center;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.auth-card > p:not(.auth-hint):not(.login-error) {
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-card__lead {
    text-align: center;
    color: var(--chrome-400);
    font-size: 0.92rem;
    margin-bottom: 1.35rem !important;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-field span {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--chrome-400);
}

.auth-field input,
.auth-field textarea {
    width: 100%;
    padding: 0.72rem 0.85rem;
    border-radius: var(--radius-btn);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.28);
    color: var(--chrome-100);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.auth-field input:focus,
.auth-field textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 3px rgba(232, 160, 176, 0.18);
}

.auth-gender {
    border: none;
    padding: 0;
    margin: 0.15rem 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.auth-gender legend {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--chrome-400);
    margin-bottom: 0.15rem;
}

.auth-gender__opt {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-btn);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.auth-gender__opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-gender__opt:has(input:checked) {
    border-color: var(--accent-rose-soft);
    background: rgba(232, 160, 176, 0.12);
    color: #fff;
}

.auth-gender__opt:active {
    transform: scale(0.98);
}

.auth-submit {
    width: 100%;
    margin-top: 0.35rem;
    white-space: nowrap;
}

.auth-link-btn {
    width: 100%;
    margin-top: 0.55rem;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--chrome-400);
}

.auth-hint {
    font-size: 0.82rem;
    color: var(--chrome-400);
    text-align: center;
    margin: 0.85rem 0 0;
    line-height: 1.45;
}

.room-code-display {
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: clamp(1.15rem, 4.5vw, 1.55rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-align: center;
    padding: 1.1rem 0.85rem;
    margin: 0.25rem 0 0.85rem;
    border-radius: var(--radius-btn);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(0, 0, 0, 0.35);
    border: 1px dashed rgba(232, 160, 176, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    word-break: break-all;
    user-select: all;
}

.room-code-display.is-copied {
    border-color: var(--accent-rose-soft);
    color: var(--accent-rose-soft);
}

.invite-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 1rem 0;
    max-height: min(50vh, 320px);
    overflow-y: auto;
}

.invite-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}

.invite-row__name {
    font-weight: 500;
    font-size: 0.95rem;
}

.invite-row__actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.invite-row__actions .glass-btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
    white-space: nowrap;
}

.setup-progress {
    display: flex;
    gap: 0.55rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.15rem;
}

.setup-chip {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0.55;
}

.setup-chip.is-done {
    opacity: 1;
    border-color: var(--accent-rose-soft);
    color: var(--accent-rose-soft);
    background: rgba(232, 160, 176, 0.1);
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.88rem;
    line-height: 1.4;
    margin: 0.35rem 0 0.65rem;
    color: var(--chrome-400);
}

.guy-mood-fields {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.mood-picker {
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
}

.mood-picker__label {
    font-size: 0.85rem;
    color: var(--chrome-400);
    margin-bottom: 0.65rem;
}

.mood-picker__btns {
    display: flex;
    gap: 0.45rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mood-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
}

.mood-btn.is-active {
    border-color: var(--accent-rose-soft);
    background: rgba(232, 160, 176, 0.14);
}

.guy-editor {
    margin-top: 1.25rem;
    padding: 1.1rem;
    text-align: left;
}

.guy-editor h3 {
    margin-bottom: 0.35rem;
    font-size: 1rem;
    font-weight: 600;
}

.view-guy-home,
.view-guy-capsule {
    padding: 1rem 1rem calc(var(--nav-height) + 1.5rem);
}

#roomPinScreen .login-card {
    text-align: center;
}

#roomPinScreen .login-card h1,
#roomPinScreen .login-card > p {
    text-align: center;
}
