.locale-switch {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 40;
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
}

.locale-switch form {
    margin: 0;
}

.locale-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
    text-decoration: none;
}

.locale-switch-btn.is-active {
    background: var(--adventure-green);
    color: #fff;
}

.locale-switch.is-inline {
    position: static;
    width: fit-content;
    box-shadow: none;
}

:root {
    --bg-canvas: #F8FAFC;
    --card-bg: #FFFFFF;
    --primary-yellow: #FFB703;
    --primary-orange: #FB8500;
    --adventure-green: #0D9488;
    --adventure-green-light: #CCFBF1;
    --sky-blue: #0284C7;
    --sky-blue-light: #E0F2FE;
    --coral-red: #E11D48;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --radius-xl: 20px;
    --radius-md: 12px;
    --app-width: 480px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
}

body {
    background-color: #E2E8F0;
    color: var(--text-dark);
}

.app-shell {
    background-color: var(--bg-canvas);
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    margin: 0 auto;
    max-width: var(--app-width);
    position: relative;
    box-shadow: 0 0 40px rgba(15, 23, 42, 0.08);
}

h1,
h2,
h3,
.heading-font {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    padding-bottom: 128px;
    animation: fadeIn 0.25s ease-out;
}

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

.header-banner {
    background: linear-gradient(135deg, #FFB703, #FB8500);
    border-radius: var(--radius-xl);
    padding: 24px;
    color: white;
    box-shadow: 0 12px 20px -5px rgba(251, 133, 0, 0.3);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.header-banner .banner-icon {
    position: absolute;
    right: -10px;
    bottom: -15px;
    opacity: 0.15;
    width: 140px;
    height: 140px;
    color: white;
}

.user-greeting {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 8px;
    font-weight: 700;
}

.section-heading {
    margin-bottom: 14px;
    color: var(--text-dark);
}

.page-title {
    color: var(--text-dark);
    margin-bottom: 16px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.dash-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dash-card .icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.dash-card .val {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
}

.dash-card .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

a.dash-card {
    color: inherit;
    text-decoration: none;
}

.leaderboard-switch {
    margin-bottom: 16px;
}

.leaderboard-switch .form-input {
    width: 100%;
    padding: 12px 40px 12px 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.leaderboard-switch + .page-kicker {
    margin-top: 0;
}

.adventure-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.adventure-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 16px 16px;
}

.adventure-card .adventure-card-actions .btn-action,
.adventure-card-actions .btn-action,
.adventure-card-actions form .btn-action {
    margin-top: 0;
}

.adventure-card-actions form + .btn-action,
.adventure-card-actions .is-current-action + .btn-action {
    margin-top: 10px;
}

.btn-action.is-current-action {
    cursor: default;
}

.photo-shot {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.photo-shot img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.photo-shot-body {
    padding: 14px 16px 16px;
}

.photo-shot-body h3 {
    margin: 0;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.photo-shot-body .btn-action {
    margin-top: 12px;
}

.progress-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}

.progress-card-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.9rem;
}

.progress-card-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.progress-percent {
    color: var(--adventure-green);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.2;
}

.progress-fraction {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.progress-bar-container {
    background: #F1F5F9;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--adventure-green), var(--sky-blue));
    height: 100%;
    width: var(--progress, 0%);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.challenge-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.challenge-card h3 {
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.challenge-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.challenge-card.active-preview {
    background: var(--sky-blue-light);
    border-color: #BAE6FD;
}

.challenge-card.active-preview h3 {
    color: #0369A1;
}

.challenge-card.active-preview p {
    color: #0C4A6E;
    margin-bottom: 12px;
}

.challenge-card.finished {
    text-align: center;
    background: var(--adventure-green-light);
    border-color: #99F6E4;
}

.finished-icon {
    width: 50px;
    height: 50px;
    background: var(--adventure-green);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.finished-icon i {
    width: 28px;
    height: 28px;
}

.challenge-card.finished h3 {
    justify-content: center;
    color: #115E59;
}

.challenge-card.finished p {
    color: #134E4A;
    margin-top: 6px;
}

.btn-action {
    background: var(--adventure-green);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    width: 100%;
    margin-top: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
    text-decoration: none;
}

.btn-action.sky {
    background: var(--sky-blue);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-action.orange {
    background: var(--primary-orange);
    box-shadow: 0 4px 12px rgba(251, 133, 0, 0.3);
}

.btn-action:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.btn-action:active {
    transform: translateY(0);
}

.btn-action:disabled {
    background: #94A3B8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.camera-stage {
    position: absolute;
    inset: 0;
    z-index: 120;
    background: #020617;
    display: flex;
}

.camera-stage.is-hidden {
    display: none;
}

.camera-stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-ui {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 18px 28px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.55) 0%, transparent 22%, transparent 68%, rgba(2, 6, 23, 0.72) 100%);
}

.camera-start {
    margin: auto;
    border: none;
    background: rgba(2, 132, 199, 0.95);
    color: white;
    border-radius: 22px;
    padding: 22px 20px;
    width: min(280px, 86%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 14px 28px -10px rgba(2, 132, 199, 0.5);
    cursor: pointer;
}

.camera-start .play-photo-icon {
    background: rgba(255, 255, 255, 0.18);
}

.camera-start strong {
    font-size: 1.1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.camera-start span {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.92;
}

.camera-start:disabled {
    opacity: 0.7;
    cursor: wait;
}

.camera-feedback {
    color: #fecaca;
    background: rgba(127, 29, 29, 0.88);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin: 0 8px auto;
}

#camera-live-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: auto;
}

#camera-live-ui.is-hidden {
    display: none !important;
}

.camera-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-close i {
    width: 20px;
    height: 20px;
}

.camera-caption {
    color: white;
    text-align: center;
    margin-top: auto;
    margin-bottom: 16px;
}

.camera-caption strong {
    display: block;
    font-size: 1.05rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.camera-caption span {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.9;
}

.camera-shutter {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.9);
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    align-self: center;
}

.camera-shutter:active {
    transform: scale(0.94);
}

.camera-shutter:disabled,
.camera-shutter.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.camera-location {
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
}

.camera-location.is-good {
    background: rgba(13, 148, 136, 0.88);
}

.camera-location.is-bad {
    background: rgba(127, 29, 29, 0.88);
}

body.camera-open .navbar {
    display: none;
}

body.camera-open .content {
    padding: 0;
    overflow: hidden;
}

body.camera-open .page-back,
body.camera-open .play-hero {
    display: none;
}

.play-hero {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 16px;
}

.play-hero-media {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EEF6FB;
    overflow: hidden;
}

.play-hero-media img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    display: block;
}

.play-hero-media i {
    width: 48px;
    height: 48px;
    color: var(--sky-blue);
}

.play-hero-body {
    padding: 16px;
}

.play-hero-body h2 {
    font-size: 1.22rem;
    margin-bottom: 4px;
}

.play-hero-body .page-kicker {
    margin: 0 0 8px;
}

.play-hero-body p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.play-photo-btn {
    width: 100%;
    border: none;
    background: linear-gradient(180deg, #0284C7, #0369A1);
    color: white;
    border-radius: 22px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 14px 28px -10px rgba(2, 132, 199, 0.42);
    cursor: pointer;
}

.play-photo-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-photo-icon i {
    width: 36px;
    height: 36px;
}

.play-photo-btn strong {
    font-size: 1.2rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.play-photo-btn span {
    font-size: 0.85rem;
    opacity: 0.92;
    font-weight: 600;
}

.play-shot {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    overflow: hidden;
    text-align: center;
    margin-bottom: 14px;
    box-shadow: var(--shadow-soft);
}

.play-shot.is-visible {
    display: block;
}

.play-shot img {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    background: #0F172A;
    display: block;
}

.play-shot p {
    padding: 12px;
    font-weight: 700;
    color: #0F766E;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

#btn-questions {
    flex-direction: column;
    gap: 4px;
}

.quiz-stage {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-stage.is-hidden {
    display: none !important;
}

.quiz-progress {
    --progress: 0%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--shadow-soft);
}

.quiz-progress .progress-bar-container {
    margin-top: 0;
}

.quiz-progress .progress-bar-fill {
    width: var(--progress);
}

.quiz-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: 800;
}

.quiz-progress-meta span:last-child {
    color: var(--primary-orange);
}

.quiz-photo {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.quiz-photo img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    background: #0F172A;
}

.quiz-photo span {
    display: block;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #0F766E;
}

.reto-card-photo-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(13, 148, 136, 0.92);
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
}

.play-view.is-quiz > .page-back,
.play-view.is-quiz .play-hero {
    display: none;
}

.btn-action-sub {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.95;
}

.photo-frame {
    border: 2px dashed var(--sky-blue);
    background: var(--sky-blue-light);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    margin-top: 15px;
    display: none;
}

.photo-frame.is-visible {
    display: block;
}

.photo-frame p {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--adventure-green);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.photo-frame img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: var(--shadow-soft);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.is-hidden {
    display: none !important;
}

.quiz-question {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 12px 0;
    color: var(--text-dark);
}

.quiz-opt {
    background: #F8FAFC;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin: 10px 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    width: 100%;
    text-align: left;
}

.quiz-opt:hover {
    border-color: var(--sky-blue);
    background: var(--sky-blue-light);
}

.quiz-opt.selected {
    border-color: var(--primary-orange);
    background: #FFF7ED;
    color: var(--primary-orange);
}

.quiz-opt-index {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #e2e8f0;
    font-weight: 800;
    color: #334155;
}

.quiz-opt.selected .quiz-opt-index {
    background: #ffedd5;
    color: #c2410c;
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 25px;
    padding-top: 15px;
}

.podium-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.podium-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border: 2px solid white;
    box-shadow: var(--shadow-soft);
    color: var(--text-dark);
}

.podium-avatar.gold {
    border-color: #F59E0B;
    background: #FEF3C7;
    color: #D97706;
}

.podium-name {
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    width: 100%;
    max-height: 2.4em;
    overflow: hidden;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.podium-name.is-empty {
    color: transparent;
}

.podium-box {
    width: 100%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.podium-box.first {
    height: 100px;
    background: linear-gradient(180deg, #F59E0B, #D97706);
    font-size: 1.25rem;
}

.podium-box.second {
    height: 80px;
    background: linear-gradient(180deg, #94A3B8, #64748B);
    font-size: 1.1rem;
}

.podium-box.third {
    height: 65px;
    background: linear-gradient(180deg, #D97706, #B45309);
    font-size: 1rem;
}

.podium-box small {
    font-size: 0.7rem;
}

.podium-box.first small {
    font-size: 0.75rem;
}

.leaderboard-list {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.leader-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
}

.leader-item:last-child {
    border-bottom: none;
}

.leader-item.is-me {
    background: #FFF7ED;
    border-left: 4px solid var(--primary-orange);
}

.leader-rank {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    width: 35px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.leader-avatar-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--text-dark);
}

.leader-info {
    flex: 1;
    min-width: 0;
}

.leader-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leader-pts {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: var(--adventure-green);
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: 10px;
}

.profile-header-card {
    background:
        linear-gradient(135deg, rgba(255, 183, 3, 0.22), rgba(2, 132, 199, 0.08) 55%, #fff),
        var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 18px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.profile-avatar-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.profile-avatar-open {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.profile-avatar-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    background: #fff;
    color: var(--sky-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: var(--shadow-soft);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

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

.profile-avatar-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sky-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    pointer-events: none;
}

.profile-avatar-badge svg {
    width: 12px;
    height: 12px;
}

.avatar-sheet {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: safe center;
    justify-content: center;
    overflow-y: auto;
    padding: 16px;
    background: rgba(15, 23, 42, 0.55);
}

.avatar-sheet[hidden] {
    display: none;
}

.avatar-sheet-card {
    display: flex;
    flex-direction: column;
    width: min(360px, 100%);
    margin: auto;
    padding: 18px 16px 16px;
    border-radius: 24px;
    background: #fff;
}

.avatar-sheet-card h3 {
    margin: 0 0 14px;
    text-align: center;
}

.avatar-sheet-media {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 0 auto 14px;
    flex-shrink: 0;
}

.avatar-sheet-preview {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: var(--sky-blue);
    border: 3px solid #fff;
    box-shadow: var(--shadow-soft);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
}

.avatar-sheet-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
}

.avatar-sheet-preview[hidden],
.avatar-camera-stage[hidden],
.avatar-camera-status[hidden] {
    display: none;
}

.avatar-camera-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #0f172a;
    z-index: 1;
}

.avatar-camera-stage video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    background: #0f172a;
}

.avatar-camera-status {
    margin: 0 0 10px;
    text-align: center;
    color: var(--coral-red);
    font-size: 0.85rem;
    font-weight: 700;
}

.avatar-sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 1;
    background: #fff;
    padding-top: 8px;
}

.avatar-sheet-save {
    margin: 0;
}

.avatar-sheet-actions .btn-action[hidden] {
    display: none;
}

.avatar-sheet-actions .btn-action {
    margin-top: 0;
    padding: 12px 16px;
}

.avatar-sheet-delete,
.avatar-sheet-cancel {
    background: #fff;
    box-shadow: none;
}

.avatar-sheet-delete {
    color: var(--coral-red);
    border: 1.5px solid #fecdd3;
}

.avatar-sheet-delete:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.avatar-sheet-cancel {
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
}

.profile-handle {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.profile-points {
    margin-left: auto;
    min-width: 72px;
    padding: 8px 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    text-align: center;
}

.profile-points strong {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    color: var(--adventure-green);
    line-height: 1.1;
}

.profile-points span {
    display: block;
    margin-top: 2px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.profile-title-container h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.sub-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
    display: block;
}

.school-meta {
    font-size: 0.8rem;
    color: var(--sky-blue);
    font-weight: 700;
    margin-top: 4px;
    display: inline-block;
}

.profile-section-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i,
.input-wrapper svg {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.form-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background: #F8FAFC;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--sky-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.toast-msg {
    display: none;
    background: #10B981;
    color: white;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
}

.toast-msg.is-visible {
    display: block;
}

.badges-row {
    display: flex;
    gap: 15px;
    justify-content: space-around;
    margin-top: 10px;
}

.badge-item {
    text-align: center;
    opacity: 0.4;
    filter: grayscale(1);
}

.badge-item.is-unlocked {
    opacity: 1;
    filter: none;
}

.badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
}

.badge-item span {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.navbar {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    width: 100%;
    min-height: 76px;
    height: auto;
    padding: 8px 6px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px #243e2910;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 48px;
    width: auto;
    color: #78818a;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
    background: none;
    border: none;
}

.navbar svg {
    display: block;
    flex-shrink: 0;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-item i,
.nav-item svg {
    width: 25px;
    height: 25px;
    min-width: 25px;
    min-height: 25px;
}

.nav-center-btn svg {
    width: 29px;
    height: 29px;
    min-width: 29px;
    min-height: 29px;
    color: #fff;
}

.nav-item.active {
    color: #073e2b;
    font-weight: 700;
}

#nav-inicio.active svg {
    fill: #073e2b;
}

.nav-center-btn {
    position: relative;
    top: 0;
    justify-self: center;
    align-self: start;
    margin-top: -18px;
    background: #ff571c;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 5px 12px #29352e25;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 3px solid #fff;
    flex-shrink: 0;
}

.nav-center-btn:active {
    transform: scale(0.92);
}

.nav-camera-label {
    display: none;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-md {
    width: 18px;
    height: 18px;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

.page-kicker {
    margin: -8px 0 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.reto-reference {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 12px;
}

.reto-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-soft);
    color: inherit;
    text-decoration: none;
}

.reto-row.is-current {
    border-color: #BAE6FD;
    background: var(--sky-blue-light);
}

.reto-row.is-done {
    border-color: #99F6E4;
}

.reto-row.is-locked {
    opacity: 0.62;
}

.reto-index {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.reto-copy {
    min-width: 0;
    flex: 1;
}

.reto-copy strong {
    display: block;
    font-size: 0.95rem;
}

.reto-copy p {
    margin: 3px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.reto-state {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

.reto-row.is-current .reto-state {
    color: #0369A1;
}

.reto-row.is-done .reto-state {
    color: #0F766E;
}

.reto-row.is-available .reto-state {
    color: var(--sky-blue);
}

.page-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: -4px 0 16px;
    color: var(--sky-blue);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.picker-intro,
.picker-hint {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
    font-weight: 500;
}

.picker-header {
    margin-bottom: 18px;
}

.picker-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sky-blue);
    margin-bottom: 4px;
}

.picker-header .page-title {
    margin-bottom: 8px;
}

.picker-header .section-heading {
    margin-bottom: 6px;
}

.picker-hint.is-required {
    color: #B45309;
    font-weight: 700;
}

.adventure-search {
    margin: 0 0 16px;
}

.adventure-search .form-label {
    margin-bottom: 8px;
}

.card-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
}

.home-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 16px;
    padding: 4px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
}

.home-switch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
}

.home-switch-btn svg {
    width: 18px;
    height: 18px;
}

.home-switch-btn.is-active {
    background: #fff;
    color: var(--sky-blue);
    box-shadow: var(--shadow-soft);
}

.home-panel[hidden] {
    display: none;
}

.academy-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: var(--card-bg);
    box-shadow: var(--shadow-soft);
}

.academy-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--sky-blue-light);
    color: var(--sky-blue);
}

.academy-card h3 {
    margin: 0 0 4px;
}

.academy-card p {
    margin: 0 0 8px;
    color: var(--text-muted);
}

.academy-card .btn-action {
    margin-top: 0;
}

.adventure-carousel {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    padding-bottom: 8px;
}

.adventure-carousel .adventure-card {
    flex: 0 0 86%;
    scroll-snap-align: start;
}

.adventure-card,
.reto-card {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    color: inherit;
    text-decoration: none;
}

a.adventure-card,
a.reto-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.adventure-card:active,
a.reto-card:active {
    transform: scale(0.985);
}

.adventure-card.is-selected,
.reto-card.is-current {
    border-color: #7DD3FC;
    box-shadow: 0 14px 28px -10px rgba(2, 132, 199, 0.28);
}

.adventure-card.is-detail {
    margin-bottom: 18px;
}

.reto-card.is-done {
    border-color: #99F6E4;
}

.reto-card.is-locked {
    border-color: #e2e8f0;
    background: #f8fafc;
    cursor: default;
}

.reto-card.is-locked .reto-card-cover,
.reto-card.is-locked .reto-card-body {
    opacity: 0.72;
}

.status-pill.is-locked {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e2e8f0;
    color: #475569;
    white-space: normal;
}

.adventure-card-cover,
.reto-card-cover {
    position: relative;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px 0;
    background: #EEF6FB;
    overflow: hidden;
}

.adventure-card-cover.is-tall {
    height: 118px;
    padding: 12px 14px 0;
}

.adventure-card-cover img,
.reto-card-cover img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 82px;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 10px;
}

.adventure-card-cover.is-tall img {
    max-height: 102px;
}

.reto-card-cover {
    height: 84px;
    background: #F1F5F9;
}

.reto-card-cover img {
    max-height: 70px;
}

.adventure-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sky-blue);
}

.adventure-card-fallback i {
    width: 36px;
    height: 36px;
}

.reto-card-number {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0369A1;
}

.adventure-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    max-width: calc(50% - 18px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.72);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
}

.adventure-card-badge.is-right {
    left: auto;
    right: 12px;
    background: var(--adventure-green);
}

.adventure-card-body,
.reto-card-body {
    padding: 16px;
}

.adventure-card-body .page-title {
    margin-bottom: 8px;
}

.adventure-card-body h3,
.reto-card-body h3 {
    font-size: 1.12rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--text-dark);
    overflow-wrap: anywhere;
}

.adventure-card-body p,
.reto-card-body p,
.adventure-lead {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
}

.adventure-lead {
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.adventure-more {
    margin-top: 8px;
}

.adventure-more summary {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: #073e2b;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.adventure-more summary::-webkit-details-marker {
    display: none;
}

.adventure-card-body .adventure-rich {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.adventure-card-body .adventure-rich p,
.adventure-card-body .adventure-rich ul,
.adventure-card-body .adventure-rich ol,
.adventure-card-body .adventure-rich blockquote,
.adventure-card-body .adventure-rich h2,
.adventure-card-body .adventure-rich h3 {
    margin: 0 0 10px;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.adventure-card-body .adventure-rich h2,
.adventure-card-body .adventure-rich h3 {
    color: var(--text-dark);
    font-weight: 800;
}

.adventure-card-body .adventure-rich ul,
.adventure-card-body .adventure-rich ol {
    padding-left: 1.2em;
}

.adventure-card-body .adventure-rich a {
    color: #0369a1;
    font-weight: 700;
}

.adventure-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F1F5F9;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
}

.chip i {
    width: 14px;
    height: 14px;
}

.chip.is-sky {
    background: #E0F2FE;
    color: #0369A1;
}

.chip.is-green {
    background: #CCFBF1;
    color: #0F766E;
}

.adventure-card .btn-action {
    margin-top: 14px;
}

.adventure-card .progress-bar-container {
    margin-top: 2px;
}

.adventure-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 14px 0 4px;
    padding-bottom: 2px;
}

.adventure-thumbs img {
    width: 88px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.adventure-video {
    width: 100%;
    border-radius: 14px;
    margin: 14px 0 4px;
    background: #0F172A;
}

.alert-success,
.alert-error {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.reto-date-label {
    margin: 10px 0 0;
    font-size: 0.85rem;
    font-weight: 800;
}

.reto-date-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.reto-date-choice {
    border: 1px solid #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    cursor: pointer;
}

.reto-card-points {
    margin: 8px 0 0;
    font-size: 0.78rem;
    font-weight: 800;
    color: #b45309;
}

.reto-card-foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 14px;
}

.status-pill {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 999px;
    background: #E0F2FE;
    color: #0369A1;
}

.status-pill.is-current {
    background: #FEF3C7;
    color: #B45309;
}

.status-pill.is-done {
    background: #CCFBF1;
    color: #0F766E;
}

.reto-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--sky-blue);
    text-align: right;
    flex: 1 1 8rem;
    min-width: 0;
    max-width: 100%;
    line-height: 1.25;
}

.reto-card-cta i {
    width: 16px;
    height: 16px;
}

.reto-card.is-done .reto-card-cta {
    color: #0F766E;
}

.btn-link {
    display: block;
    text-align: center;
    margin: 12px 0 20px;
    color: #0369A1;
    font-weight: 700;
    font-size: 0.88rem;
}

.btn-link + .section-heading {
    margin-top: 4px;
}

.quiz-timer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.quiz-timer-label,
#quiz-timer-label {
    min-width: 3.2em;
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #0f766e;
}

.quiz-timer-track {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.quiz-timer-fill {
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: #14b8a6;
    transition: width 0.2s linear, background 0.2s ease;
}

.quiz-timer.is-warn #quiz-timer-label {
    color: #d97706;
}

.quiz-timer.is-warn .quiz-timer-fill {
    background: #f59e0b;
}

.quiz-timer.is-hot #quiz-timer-label {
    color: #be123c;
}

.quiz-timer.is-hot .quiz-timer-fill {
    background: #e11d48;
}

.quiz-score {
    font-size: 0.85rem;
    font-weight: 800;
    color: #b45309;
}

.quiz-points-hint {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-top: 8px;
}

.quiz-feedback {
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 10px;
}

.quiz-feedback.is-good {
    color: #0F766E;
}

.quiz-feedback.is-bad {
    color: #BE123C;
}

.auth-body {
    background-color: #E2E8F0;
}

.auth-shell .auth-content {
    padding-bottom: 32px;
}

.auth-brand {
    text-align: center;
    margin: 12px 0 24px;
}

.auth-brand-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-yellow), var(--primary-orange));
    color: #111827;
}

.auth-brand-mark i,
.auth-brand-mark svg {
    width: 28px;
    height: 28px;
}

.auth-brand h1 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.auth-brand p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.4;
}

.auth-form .form-group {
    margin-bottom: 14px;
}

.auth-alert {
    background: #FFF1F2;
    color: #BE123C;
    border: 1px solid #FECDD3;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 4px 0 8px;
}

.auth-check input {
    width: auto;
}

.auth-switch {
    text-align: center;
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--sky-blue);
    font-weight: 700;
}

.form-input.is-plain {
    padding-left: 14px;
}

.register-event {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.register-event[hidden] {
    display: none;
}

.register-event-empty {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.register-event-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.register-event-nav[hidden] {
    display: none;
}

.register-event-arrow {
    border: 0;
    background: #fff;
    color: var(--sky-blue);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 0;
}

.register-event-preview {
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.register-event-preview.is-selected {
    border-color: var(--sky-blue);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.register-reto-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.register-reto-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    color: var(--text-dark);
    font-weight: 700;
    cursor: pointer;
}

.register-reto-option input {
    width: auto;
    margin: 0;
}

.register-reto-option.is-on {
    border-color: var(--sky-blue);
    background: #e0f2fe;
    color: #0369a1;
}

.register-event-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.register-event-choice {
    border: 1.5px solid var(--border-color);
    background: #fff;
    color: var(--text-dark);
    border-radius: 12px;
    min-height: 44px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.register-event-choice.is-on {
    border-color: var(--sky-blue);
    background: #e0f2fe;
    color: #0369a1;
}

.register-event-preview[hidden] {
    display: none;
}

.register-event-photo {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #e2e8f0;
}

.register-event-photo[hidden] {
    display: none;
}

.register-event-body {
    padding: 14px 14px 16px;
}

.register-event-body h2 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.register-event-body p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
    white-space: pre-line;
}

.register-event-lead {
    margin: 0 0 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.register-event .btn-action {
    margin-top: 2px;
}

.auth-account {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin: 0 0 16px;
    padding: 8px 8px 8px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #f8fafc;
}

.auth-account-icon {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex: none;
}

.auth-account-icon svg {
    width: 18px;
    height: 18px;
}

.auth-account-email {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-account-change {
    flex: none;
    margin: 0;
    border: 0;
    background: #fff;
    color: var(--sky-blue);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1;
    border-radius: 999px;
    padding: 8px 12px;
    box-shadow: inset 0 0 0 1.5px #bae6fd;
    cursor: pointer;
    white-space: nowrap;
}

.login-face-stage {
    position: relative;
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.login-face-stage video,
.login-face-still {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f172a;
}

.login-face-still {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.login-face-still[hidden] {
    display: none !important;
}

.login-face-guide {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.login-face-oval {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 58%;
    height: 72%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.35);
}

.login-face-guide.is-locked .login-face-oval {
    border-color: #4ade80;
}

.login-face-status {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.login-face-status.is-error {
    background: #fff1f2;
    color: #be123c;
}

.login-face-status.is-success {
    background: #ecfdf5;
    color: #047857;
}

.logout-form {
    margin-top: 12px;
}

.logout-btn {
    background: #fff;
    color: var(--coral-red);
    border: 1px solid #FECDD3;
    box-shadow: none;
}

.face-card-hint {
    margin: -6px 0 14px;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.face-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
}

.face-status svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.face-status.is-ok {
    background: #ecfdf5;
    color: #047857;
}

.face-status.is-missing {
    background: #fff7ed;
    color: #c2410c;
}

.face-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.92rem;
    text-align: left;
    cursor: pointer;
}

.face-toggle-track {
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: #cbd5e1;
    padding: 3px;
    flex: none;
    transition: background 0.2s ease;
}

.face-toggle-knob {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease;
}

.face-toggle.is-on .face-toggle-track {
    background: var(--adventure-green);
}

.face-toggle.is-on .face-toggle-knob {
    transform: translateX(18px);
}

#face-actions[hidden],
.face-remove[hidden],
.btn-action[hidden] {
    display: none;
}

.face-remove {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--coral-red);
    font-weight: 700;
    cursor: pointer;
}

.face-sheet {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    background: rgba(15, 23, 42, 0.55);
    overflow: hidden;
}

.face-sheet[hidden] {
    display: none;
}

.face-sheet-card {
    width: min(var(--app-width), 100%);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 auto;
    padding: 18px 16px 22px;
    border-radius: 24px;
    background: #fff;
}

.face-sheet-card h3,
.face-sheet .face-card-hint {
    margin-bottom: 6px;
    text-align: center;
}

.face-sheet .login-face-stage {
    margin: 0 auto;
    max-height: min(38dvh, 280px);
}

.face-sheet .login-face-oval {
    top: 50%;
}

@media (min-width: 768px) {
    .face-sheet {
        align-items: center;
        padding: 32px;
    }

    .face-sheet-card {
        width: min(500px, 86vw);
        border-radius: 20px;
    }

    .login-face-stage,
    .face-sheet .login-face-stage {
        width: min(420px, 78vw, calc(72dvh * 0.8));
        max-height: none;
        aspect-ratio: 4 / 5;
        margin-inline: auto;
    }

    .face-sheet .login-face-stage {
        width: min(400px, 72vw, calc(50dvh * 0.8));
    }

    .login-face-stage video,
    .login-face-still {
        transform: scaleX(-1);
    }

    .login-face-oval,
    .face-sheet .login-face-oval {
        top: 46%;
        width: 62%;
        height: 54%;
        box-shadow: 0 0 0 200vmax rgba(15, 23, 42, 0.32);
    }
}

.face-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.face-thumbs span {
    display: block;
    aspect-ratio: 1;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1.5px dashed #cbd5e1;
    overflow: hidden;
}

.face-thumbs span.is-filled {
    border-style: solid;
    border-color: #86efac;
}

.face-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.face-sheet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: sticky;
    bottom: 0;
    background: #fff;
}

.face-sheet-actions .btn-action {
    margin-top: 12px;
}

.face-sheet-cancel {
    background: #fff;
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
    box-shadow: none;
}

.block-calendar {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.block-calendar h3 {
    margin: 0 0 6px;
}

.block-calendar-head,
.block-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.block-calendar-close,
.block-calendar-nav button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 22px;
    cursor: pointer;
}

.block-calendar-week,
.block-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.block-calendar-week {
    margin: 12px 0 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.block-calendar-day {
    min-height: 72px;
    padding: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    text-align: left;
}

.block-calendar-day strong {
    display: block;
}

.block-calendar-day small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
}

.block-calendar-day:disabled {
    color: #cbd5e1;
    background: #f8fafc;
}

.block-calendar-day.is-available {
    border-color: #99f6e4;
    background: #f0fdfa;
    cursor: pointer;
}

.block-calendar-day.is-in-block {
    border-color: #0f766e;
    background: #ccfbf1;
}

.block-calendar-summary {
    margin: 14px 0;
}

.block-calendar-summary p {
    margin: 0 0 6px;
    font-weight: 700;
}

@media (min-width: 768px) {
    body {
        background-color: var(--bg-canvas);
    }

    .app-shell {
        width: 100%;
        max-width: none;
        margin: 0;
        box-shadow: none;
    }

    .content {
        padding: 28px 32px 128px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .adventure-carousel .adventure-card {
        flex-basis: calc((100% - 48px) / 4);
    }

    .card-stack {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .auth-shell .auth-content {
        width: min(520px, 100%);
        margin: 0 auto;
    }
}

@media (min-width: 1100px) {
    .app-shell {
        flex-direction: row;
        align-items: stretch;
    }

    .content {
        padding: 28px 36px 36px;
    }

    .navbar {
        order: -1;
        position: relative;
        bottom: auto;
        left: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 6px;
        width: 248px;
        min-width: 248px;
        height: 100%;
        min-height: 0;
        padding: 28px 16px 24px;
        border-radius: 0;
        box-shadow: none;
        border-right: 1px solid #e6e8ea;
    }

    .nav-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        min-height: 48px;
        padding: 0 14px;
        border-radius: 12px;
        font-size: 15px;
    }

    .nav-item.active {
        background: #e7f6df;
    }

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

    .nav-center-btn {
        order: 2;
        top: auto;
        justify-self: stretch;
        align-self: stretch;
        flex-direction: row;
        gap: 10px;
        width: 100%;
        height: 52px;
        margin-top: auto;
        border: 0;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 700;
    }

    .nav-center-btn svg {
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
    }

    .nav-camera-label {
        display: inline;
        color: #fff;
    }

    .card-stack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 350px) {
    .nav-item {
        font-size: 9px;
    }
}

body[data-page="home"] {
    background: #faf9f6;
}

body[data-page="home"] .app-shell {
    max-width: 560px;
    background: #faf9f6;
}

body[data-page="home"] .content {
    padding: 0 0 calc(106px + env(safe-area-inset-bottom, 0px));
    background: #faf9f6;
}

.pass-hero {
    padding: 24px 20px 20px;
    color: #fff;
    background: linear-gradient(120deg, #124731, #073e2b);
    border-radius: 0 0 22px 22px;
}

.pass-top {
    display: flex;
    justify-content: flex-end;
    height: 29px;
}

.pass-bell {
    position: relative;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #fff;
    background: none;
    border: 0;
    cursor: pointer;
}

.pass-bell.is-quiet::after {
    opacity: 0;
    transform: scale(0);
}

.pass-bell.is-dismissing::after {
    opacity: 0;
    transform: scale(0);
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.pass-bell svg {
    transform-origin: 50% 0;
}

.pass-bell.is-ringing svg {
    animation: bell-ring 0.65s ease;
}

@keyframes bell-ring {
    0% { transform: rotate(0); }
    12% { transform: rotate(16deg); }
    28% { transform: rotate(-14deg); }
    44% { transform: rotate(10deg); }
    60% { transform: rotate(-6deg); }
    76% { transform: rotate(3deg); }
    100% { transform: rotate(0); }
}

.pass-bell::after {
    content: "";
    position: absolute;
    top: 1px;
    right: 3px;
    width: 8px;
    height: 8px;
    background: #ff571c;
    border-radius: 50%;
    transform-origin: center;
}

.pass-bell svg,
.pass-medal svg,
.pass-available svg,
.pass-primary svg,
.pass-more svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pass-bell svg {
    width: 24px;
    height: 24px;
}

.pass-hello {
    margin: 9px 0 6px;
    color: #fff;
    font-size: clamp(24px, 6.4vw, 32px);
    line-height: 1.2;
    letter-spacing: -0.7px;
}

.pass-hello span {
    color: #d6fa80;
}

.pass-subtitle {
    margin: 0;
    font-size: 16px;
}

.pass-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 14px 12px;
    background: #ffffff07;
    border: 1px solid #ffffff30;
    border-radius: 12px;
}

.pass-medal {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    color: #073e2b;
    background: #d6fa80;
    border-radius: 50%;
}

.pass-medal svg {
    width: 24px;
    height: 24px;
}

.pass-progress-copy {
    flex: 1;
    min-width: 0;
}

.pass-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    font-weight: 650;
}

.pass-track {
    height: 8px;
    margin: 8px 0;
    overflow: hidden;
    background: #ffffff30;
    border-radius: 8px;
}

.pass-fill {
    height: 100%;
    background: #d6fa80;
    border-radius: 8px;
}

.pass-progress-copy p {
    margin: 0;
    color: #f0f5ed;
    font-size: 12px;
}

.pass-body {
    padding: 0 14px;
}

.pass-body h2 {
    margin: 0 0 12px;
    font-size: 20px;
    letter-spacing: -0.4px;
}

.pass-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 10px 0 24px;
    padding: 12px 4px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 5px 20px #273c2510;
}

.pass-stat {
    text-align: center;
    border-right: 1px solid #e3e5e7;
    color: inherit;
}

.pass-stat:last-child {
    border: 0;
}

.pass-stat svg {
    display: block;
    width: 21px;
    height: 21px;
    margin: 0 auto 4px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pass-stat strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
}

.pass-stat span {
    color: #727c87;
    font-size: 11px;
}

.pass-stat .is-gold {
    color: #ffa800;
}

.pass-stat .is-orange {
    color: #ff571c;
}

.pass-stat .is-green {
    color: #21ac16;
}

.pass-course,
.pass-mini {
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 5px 24px #273c2510;
    color: inherit;
}

.pass-mini {
    border-radius: 12px;
    box-shadow: 0 5px 20px #273c2510;
}

.pass-photo {
    position: relative;
    height: 180px;
    background: #124731;
}

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

.pass-photo.is-short {
    height: 96px;
}

.pass-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    color: #101c1a;
    background: #d6fa80;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 650;
}

.pass-course-body {
    padding: 14px;
}

.pass-eyebrow {
    margin: 0 0 4px;
    color: #727c87;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pass-course h3,
.pass-mini h3 {
    margin: 0;
    letter-spacing: -0.4px;
}

.pass-course h3 {
    margin-bottom: 6px;
    font-size: 19px;
    line-height: 1.25;
}

.pass-description {
    margin: 0 0 10px;
    color: #727c87;
    font-size: 14px;
    line-height: 1.5;
}

.pass-available {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 14px;
    color: #56616d;
    font-size: 13px;
    font-weight: 600;
}

.pass-available svg {
    width: 18px;
    height: 18px;
}

.pass-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 13px;
    color: #fff;
    background: #ff571c;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 650;
}

.pass-primary svg {
    width: 20px;
    height: 20px;
}

.pass-certificate {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    padding: 12px;
    color: #073e2b;
    background: #fff;
    border: 1.5px solid #073e2b;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
}

.pass-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    margin-bottom: 12px;
}

.pass-section-head h2 {
    margin: 0;
}

.pass-more {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #073e2b;
}

.pass-more svg {
    width: 24px;
    height: 24px;
}

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

.pass-mini-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 8px;
}

.pass-mini h3 {
    font-size: 14px;
}

.pass-pill {
    min-height: 32px;
    padding: 7px 10px;
    color: #46515d;
    background: #f0f1f2;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 650;
}

@media (min-width: 560px) and (max-width: 767px) {
    body[data-page="home"] .app-shell {
        margin-top: 20px;
        height: calc(100dvh - 20px);
    }

    body[data-page="home"] .pass-hero {
        border-radius: 22px;
    }

    body[data-page="home"] .pass-body {
        padding: 0 18px;
    }

    body[data-page="home"] .pass-photo {
        height: 220px;
    }

    body[data-page="home"] .pass-photo.is-short {
        height: 96px;
    }
}

@media (min-width: 560px) {
    body[data-page="home"] .pass-stat {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: center;
        column-gap: 7px;
        align-content: center;
    }

    body[data-page="home"] .pass-stat svg {
        grid-row: span 2;
        align-self: center;
        width: 26px;
        height: 26px;
        margin: 0;
    }

    body[data-page="home"] .pass-stat span,
    body[data-page="home"] .pass-stat strong {
        text-align: left;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    body[data-page="home"] .app-shell {
        width: 100%;
        max-width: none;
        height: 100dvh;
        margin: 0;
        box-shadow: none;
    }

    body[data-page="home"] .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 16px 20px calc(110px + env(safe-area-inset-bottom, 0px));
    }

    body[data-page="home"] .pass-hero,
    body[data-page="home"] .pass-body {
        width: min(960px, 100%);
    }

    body[data-page="home"] .pass-hero {
        border-radius: 22px;
    }

    body[data-page="home"] .pass-body {
        padding: 0;
    }

    body[data-page="home"] .pass-course {
        display: grid;
        grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
    }

    body[data-page="home"] .pass-course .pass-photo {
        height: 100%;
        min-height: 260px;
    }

    body[data-page="home"] .pass-course .pass-photo img {
        position: absolute;
        inset: 0;
    }

    body[data-page="home"] .pass-course-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 22px;
    }

    body[data-page="home"] .pass-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 14px;
    }

    body[data-page="home"] .pass-photo.is-short {
        height: 140px;
    }

    .navbar {
        padding-right: 6%;
        padding-left: 6%;
    }

    .nav-item {
        font-size: 12px;
    }
}

@media (min-width: 1100px) {
    body[data-page="home"] .app-shell {
        max-width: none;
        width: 100%;
        height: 100dvh;
        margin: 0;
        box-shadow: none;
    }

    body[data-page="home"] .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 28px 36px 40px;
    }

    body[data-page="home"] .pass-hero,
    body[data-page="home"] .pass-body {
        width: min(1080px, 100%);
    }

    body[data-page="home"] .pass-hero {
        border-radius: 22px;
        padding: 28px 28px 24px;
    }

    body[data-page="home"] .pass-hello {
        font-size: 36px;
    }

    body[data-page="home"] .pass-body {
        padding: 0;
    }

    body[data-page="home"] .pass-stats {
        margin-top: 18px;
        padding: 16px 12px;
    }

    body[data-page="home"] .pass-split {
        display: grid;
        grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
        gap: 22px;
        align-items: start;
    }

    body[data-page="home"] .pass-split .pass-section-head {
        margin-top: 0;
    }

    body[data-page="home"] .pass-split .pass-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body[data-page="home"] .pass-split .pass-photo.is-short {
        height: 128px;
    }

    body[data-page="home"] .pass-course {
        display: grid;
        grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
    }

    body[data-page="home"] .pass-course .pass-photo {
        height: 100%;
        min-height: 260px;
    }

    body[data-page="home"] .pass-course .pass-photo img {
        position: absolute;
        inset: 0;
    }

    body[data-page="home"] .pass-course-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 22px 22px 22px 20px;
    }
}

@media (max-width: 350px) {
    body[data-page="home"] .pass-mini-footer {
        display: block;
    }

    body[data-page="home"] .pass-pill {
        display: inline-block;
        margin-top: 7px;
    }

    body[data-page="home"] .pass-hero {
        padding-right: 16px;
        padding-left: 16px;
    }
}

.notice-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(420px, calc(100% - 32px));
    height: fit-content;
    max-height: min(78dvh, 640px);
    margin: 0;
    padding: 0;
    color: #101c1a;
    background: #fff;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 15px 80px #0003;
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0;
}

.notice-dialog[open] {
    animation: notice-in 0.28s ease forwards;
}

.notice-dialog.is-closing {
    animation: notice-out 0.22s ease forwards;
}

.notice-dialog::backdrop {
    background: #06291d00;
}

.notice-dialog[open]::backdrop {
    animation: notice-fade 0.28s ease forwards;
}

.notice-dialog.is-closing::backdrop {
    animation: notice-fade-out 0.22s ease forwards;
}

@keyframes notice-in {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes notice-out {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.96);
    }
}

@keyframes notice-fade {
    from { background: #06291d00; }
    to { background: #06291d88; }
}

@keyframes notice-fade-out {
    from { background: #06291d88; }
    to { background: #06291d00; }
}

@media (prefers-reduced-motion: reduce) {
    .pass-bell.is-ringing svg,
    .notice-dialog[open],
    .notice-dialog.is-closing,
    .notice-dialog[open]::backdrop,
    .notice-dialog.is-closing::backdrop {
        animation: none;
    }

    .notice-dialog[open] {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    .notice-dialog[open]::backdrop {
        background: #06291d88;
    }
}

.notice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 16px 8px 20px;
}

.notice-dialog h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.4px;
}

.notice-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #073e2b;
    background: none;
    border: 0;
    border-radius: 10px;
    appearance: none;
    cursor: pointer;
}

.notice-close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.notice-list {
    margin: 0;
    padding: 8px 12px 16px;
    list-style: none;
    overflow: auto;
    max-height: calc(70dvh - 88px);
}

.notice-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px;
    border-radius: 12px;
}

.notice-item:hover,
.notice-item:focus-visible {
    background: #f4f7f2;
}

.notice-item strong {
    font-size: 15px;
}

.notice-item span {
    color: #727c87;
    font-size: 13px;
    line-height: 1.4;
}

.notice-empty {
    margin: 0;
    padding: 8px 20px 22px;
    color: #727c87;
    font-size: 14px;
    line-height: 1.5;
}
