:root {
    --ss-navy-900: #10263f;
    --ss-navy-800: #163656;
    --ss-bamboo-700: #547c58;
    --ss-bamboo-500: #7fa76c;
    --ss-yellow-400: #f0c94a;
    --ss-yellow-500: #e2b92d;
    --ss-ink: #1d2733;
    --ss-muted: #667381;
    --ss-bg: #eef4ec;
    --ss-cream: #f8f5eb;
    --ss-white: #ffffff;
    --ss-border: rgba(16, 38, 63, 0.08);
    --ss-shadow: 0 18px 50px rgba(16, 38, 63, 0.12);
}

.ss-body {
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(127, 167, 108, 0.24), transparent 22%),
        radial-gradient(circle at 82% 10%, rgba(22, 54, 86, 0.2), transparent 18%),
        radial-gradient(circle at 14% 82%, rgba(16, 38, 63, 0.1), transparent 24%),
        linear-gradient(180deg, #dbe6ef 0%, #e4eee7 34%, #dbe7ea 68%, #d7e2ea 100%);
    color: var(--ss-ink);
}

h1,
h2,
h3,
h4,
.navbar-brand,
.ss-display,
.ss-section-title {
    font-family: 'Sora', sans-serif;
}

a {
    color: var(--ss-navy-800);
}

a:hover {
    color: var(--ss-bamboo-700);
}

.ss-topband {
    padding: 0.65rem 1rem;
    background: linear-gradient(90deg, var(--ss-bamboo-700), var(--ss-navy-800));
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.ss-navbar {
    background: rgba(16, 38, 63, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(16, 38, 63, 0.16);
    transition: background-color 0.22s ease, box-shadow 0.22s ease, backdrop-filter 0.22s ease;
}

.ss-navbar.is-scrolled {
    background: rgba(16, 38, 63, 0.42);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(16, 38, 63, 0.1);
}

.ss-page-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    padding: clamp(1.4rem, 3vw, 2.4rem) 0;
    min-height: clamp(12rem, 19vw, 17rem);
    color: rgba(255, 255, 255, 0.96);
    background-color: var(--ss-navy-900);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    isolation: isolate;
}

.ss-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(16, 38, 63, 0.9) 0%, rgba(16, 38, 63, 0.62) 46%, rgba(16, 38, 63, 0.76) 100%),
        radial-gradient(circle at top right, rgba(240, 201, 74, 0.16), transparent 28%);
    z-index: 0;
}

.ss-page-header::after {
    content: '';
    position: absolute;
    inset: auto auto -28% -8%;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 201, 74, 0.18), transparent 66%);
    z-index: 0;
}

.ss-page-header__inner {
    position: relative;
    z-index: 1;
}

.ss-page-header__kicker {
    color: rgba(255, 255, 255, 0.82);
}

.ss-page-header__kicker::before {
    background: var(--ss-yellow-400);
}

.ss-page-header__title {
    max-width: 13ch;
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3.75rem);
    line-height: 1.04;
    color: #fff;
    text-shadow: 0 2px 22px rgba(16, 38, 63, 0.22);
}

.ss-page-header__description {
    max-width: 54ch;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
}

.ss-page-header__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.ss-page-header__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ss-page-header__chip:hover,
.ss-page-header__chip:focus-visible {
    color: #fff;
    background: rgba(240, 201, 74, 0.22);
    border-color: rgba(240, 201, 74, 0.45);
    transform: translateY(-1px);
}

.ss-page-header__chip:focus-visible {
    outline: 2px solid rgba(240, 201, 74, 0.7);
    outline-offset: 2px;
}

.ss-page-header__panel {
    padding: 1.2rem 1.25rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(16, 38, 63, 0.18);
}

.ss-page-header__panel-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.ss-body-home .ss-page-header {
    min-height: clamp(10.5rem, 16vw, 14rem);
}

.ss-logo-image {
    height: 2.6rem;
    width: auto;
    display: block;
    max-width: min(18rem, 56vw);
    border-radius: 0.9rem;
    box-shadow: 0 10px 24px rgba(16, 38, 63, 0.16);
}

.ss-footer-logo {
    height: 2.8rem;
    width: auto;
    display: block;
    max-width: min(18rem, 70vw);
    border-radius: 0.95rem;
    box-shadow: 0 10px 24px rgba(16, 38, 63, 0.18);
}

.ss-user-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.ss-hero {
    background:
    radial-gradient(circle at 80% 15%, rgba(22, 54, 86, 0.26), transparent 20%),
        radial-gradient(circle at 0% 100%, rgba(127, 167, 108, 0.25), transparent 28%);
}

.ss-status-card {
    background: rgba(251, 248, 241, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.ss-panel-highlight {
    position: relative;
    overflow: hidden;
}

.ss-panel-highlight::after {
    content: '';
    position: absolute;
    inset: auto -20% -30% auto;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(84, 124, 88, 0.18), transparent 68%);
}

.ss-display {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 1.03;
    max-width: 11ch;
}

.ss-copy {
    color: var(--ss-muted);
    max-width: 60ch;
}

.ss-kicker,
.ss-section-tag,
.ss-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ss-bamboo-700);
}

.ss-kicker::before,
.ss-section-tag::before,
.ss-card-kicker::before {
    content: '';
    width: 0.9rem;
    height: 0.15rem;
    border-radius: 999px;
    background: var(--ss-yellow-400);
}

.ss-section-title {
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.12;
}

.ss-surface-section {
    background: linear-gradient(180deg, rgba(219, 230, 239, 0.58), rgba(227, 238, 231, 0.88));
}

.ss-feature-card,
.ss-story-panel,
.ss-mini-panel,
.ss-quote-panel,
.ss-metric-card,
.ss-form-card {
    background: var(--ss-white);
    border-radius: 1.4rem;
    box-shadow: var(--ss-shadow);
    border: 1px solid var(--ss-border);
}

.ss-feature-card,
.ss-story-panel,
.ss-mini-panel,
.ss-quote-panel,
.ss-metric-card {
    padding: 1.75rem;
}

.ss-feature-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(251, 248, 241, 0.96), rgba(241, 246, 239, 0.92));
}

.ss-feature-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 0.35rem;
    background: linear-gradient(90deg, var(--ss-navy-800), var(--ss-bamboo-700));
}

.ss-feature-card-green::before {
    background: linear-gradient(90deg, var(--ss-bamboo-700), var(--ss-bamboo-500));
}

.ss-feature-card-yellow::before {
    background: linear-gradient(90deg, var(--ss-yellow-500), #ffd968);
}

.ss-feature-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    margin-bottom: 1rem;
    background: rgba(16, 38, 63, 0.07);
    color: var(--ss-navy-800);
    font-weight: 800;
}

.ss-metric-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 245, 235, 0.92));
}

.ss-metric-card span {
    color: var(--ss-muted);
    font-size: 0.92rem;
}

.ss-metric-card strong {
    color: var(--ss-navy-900);
    font-size: clamp(1.25rem, 3vw, 2rem);
}

.ss-story-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(240, 245, 239, 0.92));
}

.ss-mini-panel {
    background: linear-gradient(180deg, rgba(16, 38, 63, 0.04), rgba(84, 124, 88, 0.05));
}

.ss-quote-panel {
    background: linear-gradient(135deg, var(--ss-navy-900), var(--ss-bamboo-700));
    color: rgba(255, 255, 255, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
}

.ss-quote-panel small {
    color: rgba(255, 255, 255, 0.65);
}

.ss-status-dot {
    width: 0.9rem;
    height: 0.9rem;
    display: inline-block;
    border-radius: 50%;
    margin-top: 0.35rem;
}

.ss-status-dot.is-ready {
    background: var(--ss-bamboo-700);
    box-shadow: 0 0 0 0.35rem rgba(84, 124, 88, 0.16);
}

.ss-status-dot.is-pending {
    background: var(--ss-yellow-500);
    box-shadow: 0 0 0 0.35rem rgba(240, 201, 74, 0.18);
}

.btn-warning {
    background-color: var(--ss-yellow-400);
    border-color: var(--ss-yellow-400);
    color: var(--ss-navy-900);
    font-weight: 800;
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: var(--ss-yellow-500);
    border-color: var(--ss-yellow-500);
    color: var(--ss-navy-900);
}

.btn-dark {
    background-color: var(--ss-navy-900);
    border-color: var(--ss-navy-900);
}

.btn-dark:hover,
.btn-dark:focus {
    background-color: var(--ss-navy-800);
    border-color: var(--ss-navy-800);
}

.btn-outline-dark {
    color: var(--ss-navy-900);
    border-color: rgba(16, 38, 63, 0.22);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background-color: rgba(16, 38, 63, 0.06);
    color: var(--ss-navy-900);
    border-color: rgba(16, 38, 63, 0.35);
}

.py-lg-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.card {
    border-radius: 1.25rem;
}

.form-control {
    border-radius: 0.95rem;
    border-color: rgba(16, 38, 63, 0.12);
    padding: 0.85rem 1rem;
}

.form-control:focus {
    border-color: rgba(84, 124, 88, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(84, 124, 88, 0.14);
}

.ss-auth-shell {
    position: relative;
}

.ss-form-card {
    background: rgba(251, 248, 241, 0.94);
    backdrop-filter: blur(10px);
}

.ss-footer {
    background: linear-gradient(135deg, var(--ss-navy-900), var(--ss-navy-800));
}

.ss-footer-label {
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.18em;
}

.ss-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ss-chip-green {
    background: rgba(84, 124, 88, 0.14);
    color: var(--ss-bamboo-700);
}

.ss-chip-navy {
    background: rgba(16, 38, 63, 0.1);
    color: var(--ss-navy-800);
}

.ss-chip-gold {
    background: rgba(240, 201, 74, 0.2);
    color: #8d6a00;
}

.ss-chip-muted {
    background: rgba(102, 115, 129, 0.14);
    color: var(--ss-muted);
}

.ss-admin-tabs {
    gap: 0.75rem;
}

.ss-admin-tabs .nav-link {
    border: 0;
    border-radius: 999px;
    color: var(--ss-navy-800);
    background: rgba(16, 38, 63, 0.05);
    padding: 0.7rem 1rem;
    font-weight: 700;
}

.ss-admin-tabs .nav-link.active {
    background: var(--ss-navy-900);
    color: #fff;
}

.ss-admin-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
    gap: 1.5rem;
    align-items: start;
}

.ss-admin-table-card,
.ss-filter-card,
.ss-empty-state {
    background: rgba(251, 248, 241, 0.92);
    border: 1px solid var(--ss-border);
    border-radius: 1.3rem;
    box-shadow: var(--ss-shadow);
}

.ss-admin-table-card,
.ss-filter-card,
.ss-empty-state {
    padding: 1.5rem;
}

.ss-sticky-panel {
    position: sticky;
    top: 6.5rem;
}

.ss-admin-table thead th {
    color: var(--ss-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom-width: 1px;
}

.ss-admin-table td,
.ss-admin-table th {
    vertical-align: middle;
}

.ss-admin-table .btn {
    white-space: nowrap;
}

.ss-admin-meta {
    color: var(--ss-muted);
    font-size: 0.9rem;
}

.ss-prose {
    color: var(--ss-ink);
    line-height: 1.75;
}

.ss-prose p:last-child {
    margin-bottom: 0;
}

.ss-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.ss-list-card {
    background: rgba(251, 248, 241, 0.94);
    border: 1px solid var(--ss-border);
    border-radius: 1.25rem;
    box-shadow: var(--ss-shadow);
    padding: 1.5rem;
    height: 100%;
}

.ss-answer-card {
    background: linear-gradient(180deg, rgba(251, 248, 241, 0.98), rgba(242, 239, 229, 0.96));
    border: 1px solid var(--ss-border);
    border-radius: 1.2rem;
    padding: 1.25rem;
}

.ss-empty-state {
    text-align: center;
}

.ss-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: var(--ss-muted);
    font-size: 0.92rem;
}

.ss-info-list {
    display: grid;
    gap: 0.9rem;
}

.ss-info-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
}

.ss-info-badge {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: rgba(16, 38, 63, 0.08);
    color: var(--ss-navy-800);
    font-size: 0.9rem;
    font-weight: 800;
}

.ss-duo-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ss-practice-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 420px);
    gap: 1.5rem;
    align-items: start;
    scroll-margin-top: 7.5rem;
}

.ss-practice-sidebar {
    display: grid;
    gap: 1rem;
}

.ss-practice-prompt {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    max-width: 14ch;
}

.ss-practice-prompt-detail {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    line-height: 1.45;
    font-weight: 700;
    max-width: 42ch;
}

.ss-quick-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.ss-quick-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--ss-border);
    background: linear-gradient(180deg, rgba(251, 248, 241, 0.98), rgba(242, 239, 229, 0.94));
}

.ss-quick-stat strong {
    color: var(--ss-navy-900);
}

.ss-stack > * + * {
    margin-top: 1rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ss-practice-shell [data-reveal] {
    opacity: 1;
    transform: none;
}

.ss-bubble-layout {
    align-items: start;
}

.ss-bubble-layout--fullscreen {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.ss-bubble-game-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    background: linear-gradient(135deg, rgba(16, 38, 63, 0.98), rgba(84, 124, 88, 0.92));
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ss-bubble-game-topbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.75rem;
}

.ss-bubble-game-topbar__settings {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.75rem;
    margin: 0;
}

.ss-bubble-game-topbar__field {
    display: grid;
    gap: 0.35rem;
    min-width: 11rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ss-bubble-game-topbar__field .form-select {
    min-height: 2.4rem;
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.92);
}

.ss-bubble-game-card {
    border-radius: 1.4rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(16, 38, 63, 0.98), rgba(84, 124, 88, 0.92));
    box-shadow: 0 24px 60px rgba(16, 38, 63, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ss-bubble-game-card--fullscreen {
    min-height: calc(100vh - 5.25rem);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
}

.ss-bubble-game {
    position: relative;
    min-height: 40rem;
    padding: 1.4rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.08), transparent 20%),
        radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(16, 38, 63, 0.35), rgba(84, 124, 88, 0.12));
}

.ss-bubble-game--fullscreen {
    min-height: calc(100vh - 5.25rem);
    padding: 1.25rem 1.5rem 1.5rem;
}

.ss-bubble-game__hud {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.ss-bubble-game__hud-group,
.ss-bubble-game__hud-side {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ss-bubble-game__hud-side {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ss-bubble-game__score {
    display: inline-flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    backdrop-filter: blur(8px);
}

.ss-bubble-game__score--current strong {
    color: var(--ss-yellow-400);
}

.ss-bubble-game__score-label,
.ss-bubble-game__progress,
.ss-bubble-game__question-label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ss-bubble-game__score strong {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1;
}

.ss-bubble-game__progress {
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
}

.ss-bubble-game__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.96);
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.ss-bubble-game__back:hover,
.ss-bubble-game__back:focus-visible {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.14);
}

.ss-bubble-game__sky {
    position: relative;
    min-height: 32rem;
    isolation: isolate;
}

.ss-bubble-game--fullscreen .ss-bubble-game__sky {
    min-height: calc(100vh - 14rem);
}

.ss-bubble-game__sky::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 24%),
        radial-gradient(circle at 12% 28%, rgba(255, 255, 255, 0.08), transparent 12%),
        radial-gradient(circle at 68% 42%, rgba(255, 255, 255, 0.06), transparent 10%);
    pointer-events: none;
}

.ss-bubble-game__bubble {
    position: absolute;
    left: var(--bubble-left, 50%);
    bottom: -16%;
    width: var(--bubble-size, 128px);
    height: var(--bubble-size, 128px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.96), rgba(224, 241, 245, 0.82) 22%, rgba(173, 210, 216, 0.38) 55%, rgba(84, 124, 88, 0.18) 78%, rgba(16, 38, 63, 0.12) 100%);
    box-shadow:
        0 22px 45px rgba(16, 38, 63, 0.22),
        inset 0 0 18px rgba(255, 255, 255, 0.45);
    color: var(--ss-navy-900);
    text-align: center;
    font-weight: 800;
    line-height: 1.2;
    animation: ss-bubble-rise var(--bubble-duration, 13s) linear infinite;
    animation-delay: var(--bubble-delay, 0s);
    cursor: pointer;
    transform: translateX(-50%);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    z-index: 1;
}

.ss-bubble-game[data-bubble-game-kind="concept"] .ss-bubble-game__bubble {
    min-width: 7rem;
    min-height: 7rem;
}


.ss-bubble-game__bubble span {
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-size: 1.1rem;
    padding: 0.1em 0.2em;
    word-break: break-word;
    line-height: 1.2;
    text-align: center;
}

.ss-bubble-game__bubble::after {
    content: '';
    position: absolute;
    inset: 12% auto auto 18%;
    width: 26%;
    height: 18%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    filter: blur(2px);
}

.ss-bubble-game__bubble:hover,
.ss-bubble-game__bubble:focus-visible {
    box-shadow:
        0 28px 52px rgba(16, 38, 63, 0.26),
        inset 0 0 18px rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.36);
    outline: none;
}

.ss-bubble-game__bubble.is-correct-answer {
    border-color: rgba(240, 201, 74, 0.9);
    box-shadow:
        0 0 0 4px rgba(240, 201, 74, 0.18),
        0 28px 52px rgba(16, 38, 63, 0.26);
}

.ss-bubble-game__bubble.is-popped {
    animation: none;
    opacity: 0;
    transform: translateX(-50%) scale(1.22);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.ss-bubble-game__bubble.is-correct {
    background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.96), rgba(224, 245, 227, 0.88) 22%, rgba(127, 167, 108, 0.48) 62%, rgba(84, 124, 88, 0.26) 100%);
}

.ss-bubble-game__bubble.is-wrong {
    background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.96), rgba(255, 236, 207, 0.88) 22%, rgba(240, 201, 74, 0.48) 62%, rgba(176, 122, 33, 0.26) 100%);
}

.ss-bubble-game__feedback {
    position: absolute;
    top: 5.3rem;
    left: 1.4rem;
    z-index: 3;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ss-bubble-game__feedback.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ss-bubble-game__feedback.is-correct {
    background: rgba(84, 124, 88, 0.92);
}

.ss-bubble-game__feedback.is-wrong {
    background: rgba(226, 185, 45, 0.92);
    color: var(--ss-navy-900);
}

.ss-bubble-game__question {
    position: absolute;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 3;
    width: min(25rem, calc(100% - 2.8rem));
    padding: 1.15rem 1.2rem;
    border-radius: 1.2rem;
    background: rgba(16, 38, 63, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 35px rgba(16, 38, 63, 0.24);
    backdrop-filter: blur(10px);
    color: #fff;
}

.ss-bubble-game--fullscreen .ss-bubble-game__question {
    width: min(32rem, calc(100% - 3rem));
}

.ss-bubble-game__question-label {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes ss-bubble-rise {
    0% {
        opacity: 0;
        transform: translate3d(-50%, 0, 0) scale(0.9);
    }

    8% {
        opacity: 1;
    }

    50% {
        opacity: 1;
        transform: translate3d(calc(-50% + var(--bubble-drift, 0px)), -18rem, 0) scale(1);
    }

    100% {
        opacity: 0.24;
        transform: translate3d(calc(-50% - var(--bubble-drift, 0px)), -34rem, 0) scale(1.08);
    }
}

@media (max-width: 991.98px) {
    .ss-display {
        max-width: none;
    }

    .ss-navbar .navbar-collapse.show,
    .ss-navbar .navbar-collapse.collapsing {
        margin-top: 0.85rem;
        padding: 0.9rem;
        border-radius: 1rem;
        background: rgba(16, 38, 63, 0.82);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 12px 28px rgba(16, 38, 63, 0.16);
    }

    .ss-topband {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .ss-admin-shell {
        grid-template-columns: 1fr;
    }

    .ss-practice-shell {
        grid-template-columns: 1fr;
    }

    .ss-bubble-game {
        min-height: 34rem;
    }

    .ss-bubble-game-card--fullscreen,
    .ss-bubble-game--fullscreen {
        min-height: calc(100vh - 4.75rem);
    }

    .ss-bubble-game__sky {
        min-height: 27rem;
    }

    .ss-bubble-game--fullscreen .ss-bubble-game__sky {
        min-height: calc(100vh - 15rem);
    }

    .ss-sticky-panel {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .ss-feature-card,
    .ss-story-panel,
    .ss-mini-panel,
    .ss-quote-panel,
    .ss-metric-card,
    .ss-form-card {
        border-radius: 1.1rem;
    }

    .ss-user-pill {
        width: 100%;
        justify-content: center;
    }

    .ss-logo-image {
        height: 2.2rem;
    }

    .ss-duo-fields,
    .ss-quick-stats {
        grid-template-columns: 1fr;
    }

    .ss-bubble-game {
        min-height: 32rem;
        padding: 1rem;
    }

    .ss-bubble-game__hud {
        flex-direction: column;
        align-items: stretch;
    }

    .ss-bubble-game__hud-group,
    .ss-bubble-game__hud-side {
        width: 100%;
        justify-content: space-between;
    }

    .ss-bubble-game-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ss-bubble-game-topbar__actions {
        width: 100%;
    }

    .ss-bubble-game-topbar__settings {
        width: 100%;
    }

    .ss-bubble-game-topbar__field {
        flex: 1 1 12rem;
    }

    .ss-bubble-game__hud-group {
        flex-wrap: wrap;
    }

    .ss-bubble-game__score {
        flex: 1 1 10rem;
    }

    .ss-bubble-game__progress,
    .ss-bubble-game__feedback {
        position: static;
    }

    .ss-bubble-game__sky {
        min-height: 22rem;
    }

    .ss-bubble-game__question {
        position: static;
        width: 100%;
        margin-top: 0.75rem;
    }

    .ss-bubble-game--fullscreen,
    .ss-bubble-game-card--fullscreen {
        min-height: calc(100vh - 4.2rem);
    }

    .ss-bubble-game--fullscreen .ss-bubble-game__sky {
        min-height: calc(100vh - 18rem);
    }

    .ss-bubble-game__bubble {
        width: min(var(--bubble-size, 128px), 120px);
        font-size: 0.9rem;
    }
}