:root {
    --primary-color: #25a7cc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', 'Inter', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

body.live-bg-theme {
    background:
        radial-gradient(circle at 10% -20%, rgba(37, 167, 204, 0.18), transparent 38%),
        radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.14), transparent 42%),
        linear-gradient(180deg, #f5f9ff 0%, #eef4ff 100%);
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo img {
    height: 90px;
    width: auto;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 600;
}

.setup-container {
    background: transparent;
    padding: 2.5rem;
}

.setup-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center !important;
}

.setup-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    font-weight: 300;
}

.landing-home .setup-container {
    padding: 2.9rem 2.8rem 2.4rem;
}

.landing-home .setup-title {
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.85rem;
    padding: 0 0.5rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.landing-home .setup-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 400;
    line-height: 1.7;
    color: color-mix(in srgb, var(--text-secondary) 92%, #334155);
    margin: 0 auto 2.2rem;
    padding: 0 1rem;
    max-width: 58ch;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* Aktif ziyaretçi: main-buttons dışında, transform/box-shadow animasyonu yok */
.landing-home .site-active-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    max-width: 100%;
    margin: -1.25rem auto 2rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    text-align: center;
    box-sizing: border-box;
}

.landing-home .site-active-now__text {
    min-width: 0;
}

.landing-home .site-active-now strong {
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.landing-home .site-active-now__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

.individual-entry-page .classroom-mode-note {
    position: relative;
    overflow: hidden;
    margin: 1.15rem auto 0;
    max-width: 62ch;
    padding: 1rem 1.1rem 1rem 3rem;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 22%, #ffffff);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.97), rgba(238, 247, 255, 0.95));
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.09);
    color: #334155;
    font-size: 0.94rem;
    line-height: 1.65;
    text-align: center;
}

.individual-entry-page .classroom-mode-note::before {
    content: "\f19d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 85%, #1e293b), color-mix(in srgb, var(--primary-color) 60%, #0f172a));
    color: #ffffff;
    box-shadow: 0 8px 16px color-mix(in srgb, var(--primary-color) 28%, transparent);
}

.individual-entry-page .form-input-container {
    margin-bottom: 2.2rem;
}

.individual-entry-page .form-input {
    border: 1px solid color-mix(in srgb, var(--primary-color) 16%, #ffffff);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    padding: 2rem 1.35rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.individual-entry-page .form-input:focus {
    border-color: color-mix(in srgb, var(--primary-color) 48%, #ffffff);
    background: #ffffff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 16%, transparent), 0 12px 28px rgba(37, 167, 204, 0.16);
    transform: translateY(-1px);
}

.individual-entry-page .form-input-placeholder {
    font-size: 1.15rem;
    font-weight: 700;
    color: #475569;
}

.individual-entry-page .form-input:focus + .form-input-placeholder,
.individual-entry-page .form-input:not(:placeholder-shown) + .form-input-placeholder {
    font-size: 0.93rem;
    font-weight: 600;
}

.individual-entry-page .language-option,
.individual-entry-page .stat-box,
.individual-entry-page .individual-lang-tile,
.individual-entry-page .individual-segment__face {
    border: 1px solid color-mix(in srgb, var(--primary-color) 14%, #ffffff);
    border-radius: 16px;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 255, 0.96));
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.individual-entry-page .language-option:hover,
.individual-entry-page .stat-box:hover,
.individual-entry-page .individual-lang-tile:hover,
.individual-entry-page .individual-segment__option:hover .individual-segment__face {
    border-color: color-mix(in srgb, var(--primary-color) 38%, #ffffff);
    box-shadow: 0 12px 24px rgba(37, 167, 204, 0.13);
}

.individual-entry-page .individual-segment--three .individual-segment__face span {
    font-size: 1.02rem;
    line-height: 1.2;
}

.individual-entry-page #customTextField > .individual-field__label {
    margin-top: 15px;
}

.individual-entry-page .individual-custom-editor {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.individual-entry-page .individual-custom-editor__input.form-input-container {
    margin-bottom: 0;
}

.individual-entry-page .individual-custom-textarea {
    min-height: 6.5rem;
    resize: vertical;
    line-height: 1.55;
    padding-top: 1.35rem;
}

.individual-entry-page .individual-custom-editor__input .form-input-placeholder {
    top: 1.35rem;
    transform: none;
    white-space: normal;
    max-width: calc(100% - 2.5rem);
    line-height: 1.4;
}

.individual-entry-page .individual-custom-textarea:focus + .form-input-placeholder,
.individual-entry-page .individual-custom-textarea:not(:placeholder-shown) + .form-input-placeholder {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    top: 1.35rem;
    left: 1.5rem;
    font-size: inherit;
    font-weight: inherit;
    background: none;
    -webkit-text-fill-color: currentColor;
    transform: none;
}

.individual-entry-page .individual-custom-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.individual-entry-page .individual-custom-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid color-mix(in srgb, var(--primary-color) 16%, #ffffff);
    border-radius: 999px;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 255, 0.96));
    color: #0f172a;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.45rem 0.8rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.individual-entry-page .individual-custom-tool:hover {
    border-color: color-mix(in srgb, var(--primary-color) 42%, #ffffff);
    box-shadow: 0 8px 18px rgba(37, 167, 204, 0.12);
    transform: translateY(-1px);
}

.individual-entry-page .individual-custom-tool--danger {
    color: #b91c1c;
}

.individual-entry-page .individual-custom-count {
    margin-left: auto;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

.individual-entry-page .individual-custom-count.is-below-min {
    color: #dc2626;
}

@media (max-width: 640px) {
    .individual-entry-page .individual-segment--three .individual-segment__face span {
        font-size: 1.05rem;
    }

    .individual-entry-page .individual-custom-count {
        width: 100%;
        margin-left: 0;
    }
}

/* Individual entry — practice type + language picker */
.individual-entry-page .individual-field {
    margin-bottom: 2.2rem;
    overflow: visible;
}

.individual-entry-page .individual-field__label {
    display: block;
    margin: 0 0 0.55rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
}

.individual-entry-page .individual-segment {
    display: flex;
    gap: 0.55rem;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.individual-entry-page .individual-segment__option {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.individual-entry-page .individual-segment__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.individual-entry-page .individual-segment__face {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    min-height: 88px;
    padding: 0.62rem 1rem;
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    color: #64748b;
    line-height: 1.2;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.individual-entry-page .individual-segment__option:hover .individual-segment__face {
    transform: translateY(-2px);
}

.individual-entry-page .individual-segment__face span {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-transform: none;
    color: inherit;
    text-align: left;
}

.individual-entry-page .individual-segment__face .stat-icon {
    flex-shrink: 0;
}

.individual-entry-page .individual-segment__option:has(input:checked) .individual-segment__face {
    border-color: color-mix(in srgb, var(--primary-color) 52%, #ffffff);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--primary-color) 7%, white));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--primary-color) 12%, transparent),
        0 12px 26px color-mix(in srgb, var(--primary-color) 16%, transparent);
    transform: none;
}

.individual-entry-page .individual-segment__option:has(input:checked) .individual-segment__face span {
    color: color-mix(in srgb, var(--primary-color) 72%, #0f172a);
}

.individual-entry-page .individual-segment__option:has(input:checked) .individual-segment__face .stat-icon {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.06);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--primary-color) 18%, white),
        0 8px 16px rgba(15, 23, 42, 0.14);
}

.individual-entry-page .individual-segment__option:has(input:disabled) {
    opacity: 0.42;
    cursor: not-allowed;
}

.individual-entry-page .individual-segment__tooltip {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    z-index: 30;
    min-width: 210px;
    max-width: min(280px, 72vw);
    padding: 0.65rem 0.8rem;
    border: 1px solid #e2e8f3;
    border-radius: 12px;
    background: #fff;
    box-shadow:
        0 -10px 28px rgba(15, 23, 42, 0.12),
        0 16px 34px rgba(15, 23, 42, 0.14),
        0 4px 10px rgba(15, 23, 42, 0.06);
    color: #475569;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.55;
    text-align: center;
    text-transform: none;
    letter-spacing: normal;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.individual-entry-page .individual-segment__option:hover .individual-segment__tooltip,
.individual-entry-page .individual-segment__option:focus-within .individual-segment__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.individual-entry-page .individual-lang-carousel-shell {
    width: 100%;
}

.individual-entry-page .individual-lang-carousel {
    width: 100%;
}

.individual-entry-page .individual-lang-carousel__viewport {
    width: 100%;
    min-width: 0;
    padding: 10px 0 30px 0;
}

.individual-entry-page .individual-lang-carousel-shell--paged {
    position: relative;
    overflow: visible;
}

.individual-entry-page .individual-lang-carousel--paged {
    width: 100%;
}

.individual-entry-page .individual-lang-carousel__track-row {
    position: relative;
    width: 100%;
}

.individual-entry-page .individual-lang-carousel--paged .individual-lang-carousel__viewport {
    overflow: hidden;
}

.individual-entry-page .individual-lang-carousel__track-row .individual-lang-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
}

.individual-entry-page .individual-lang-carousel__track-row .individual-lang-carousel__arrow--prev {
    left: 0;
    transform: translate(calc(-100% - 0.65rem), -50%);
}

.individual-entry-page .individual-lang-carousel__track-row .individual-lang-carousel__arrow--next {
    right: 0;
    transform: translate(calc(100% + 0.65rem), -50%);
}

.individual-entry-page .individual-lang-carousel__track-row .individual-lang-carousel__arrow--prev:hover:not(:disabled) {
    transform: translate(calc(-100% - 0.65rem), calc(-50% - 1px));
}

.individual-entry-page .individual-lang-carousel__track-row .individual-lang-carousel__arrow--next:hover:not(:disabled) {
    transform: translate(calc(100% + 0.65rem), calc(-50% - 1px));
}

.individual-entry-page .individual-lang-carousel--paged .individual-lang-carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    min-height: 1rem;
    margin-top: 0.15rem;
}

.individual-entry-page .individual-lang-carousel__arrow {
    width: 38px;
    height: 38px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, #e2e8f0);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.individual-entry-page .individual-lang-carousel__arrow:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--primary-color) 42%, #ffffff);
    color: color-mix(in srgb, var(--primary-color) 78%, #0f172a);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--primary-color) 14%, transparent);
}

.individual-entry-page .individual-lang-carousel__arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.individual-entry-page .individual-lang-carousel__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.individual-entry-page .individual-lang-carousel__dot.is-active {
    width: 22px;
    background: var(--primary-color);
}

.individual-entry-page .individual-lang-grid {
    display: grid;
    grid-template-columns: repeat(var(--lang-cols, 8), minmax(0, 1fr));
    gap: 0.55rem;
}

.individual-entry-page .individual-lang-carousel--paged .individual-lang-grid {
    display: flex;
    gap: 0.55rem;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.individual-entry-page .individual-lang-carousel--paged .individual-lang-tile {
    flex-shrink: 0;
}

.individual-entry-page .individual-lang-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 88px;
    padding: 0.62rem 0.4rem 0.5rem;
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.individual-entry-page .individual-lang-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.individual-entry-page .individual-lang-tile__flag {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.individual-entry-page .individual-lang-tile__flag--tr {
    object-position: 68% center;
}

.individual-entry-page .individual-lang-tile__name {
    max-width: 100%;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.individual-entry-page .individual-lang-tile__check {
    position: absolute;
    top: 0.38rem;
    right: 0.38rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 90%, #38bdf8), color-mix(in srgb, var(--primary-color) 72%, #2563eb));
    color: #ffffff;
    font-size: 0.52rem;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--primary-color) 30%, transparent);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.34, 1.25, 0.64, 1);
}

.individual-entry-page .individual-lang-tile:hover {
    transform: translateY(-2px);
}

.individual-entry-page .individual-lang-tile:has(input:checked) {
    border-color: color-mix(in srgb, var(--primary-color) 52%, #ffffff);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--primary-color) 7%, white));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--primary-color) 12%, transparent),
        0 12px 26px color-mix(in srgb, var(--primary-color) 16%, transparent);
}

.individual-entry-page .individual-lang-tile:has(input:checked) .individual-lang-tile__check {
    opacity: 1;
    transform: scale(1);
}

.individual-entry-page .individual-lang-tile:has(input:checked) .individual-lang-tile__flag {
    transform: scale(1.06);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--primary-color) 18%, white),
        0 8px 16px rgba(15, 23, 42, 0.14);
}

.individual-entry-page .individual-lang-tile:has(input:checked) .individual-lang-tile__name {
    color: color-mix(in srgb, var(--primary-color) 72%, #0f172a);
}

.individual-entry-page .stat-box.is-selected,
.individual-entry-page .stat-box:has(input:checked) {
    border: 2px solid color-mix(in srgb, var(--primary-color) 52%, #ffffff);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--primary-color) 7%, white));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--primary-color) 12%, transparent),
        0 12px 26px color-mix(in srgb, var(--primary-color) 16%, transparent);
}

.individual-entry-page .stat-box.is-selected .stat-icon,
.individual-entry-page .stat-box:has(input:checked) .stat-icon {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.06);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--primary-color) 18%, white),
        0 8px 16px rgba(15, 23, 42, 0.14);
}

.individual-entry-page .submit-button {
    width: 100%;
    min-height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.72rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid color-mix(in srgb, var(--primary-color) 34%, #ffffff);
    border-radius: 18px;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.26), transparent 34%),
        linear-gradient(
            138deg,
            color-mix(in srgb, var(--primary-color) 92%, #38bdf8),
            color-mix(in srgb, var(--primary-color) 76%, #2563eb)
        );
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow:
        0 14px 30px color-mix(in srgb, var(--primary-color) 34%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
    font-family: 'Manrope', 'Inter', sans-serif !important;

}

.individual-entry-page .submit-button i {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.16));
    
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
    transition: transform 0.2s ease, background 0.2s ease;
}

.individual-entry-page .submit-button:hover {
    transform: translateY(-2px);
    filter: saturate(1.08) brightness(1.03);
    border-color: color-mix(in srgb, var(--primary-color) 50%, #ffffff);
    box-shadow:
        0 18px 36px color-mix(in srgb, var(--primary-color) 40%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.individual-entry-page .submit-button:hover i {
    transform: translateX(2px);
}

.individual-entry-page .submit-button:active {
    transform: translateY(0);
}

.individual-entry-page .submit-button:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--primary-color) 28%, transparent),
        0 14px 28px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 2rem 1.5rem;
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    background: white;
    border: 2px solid transparent;
    border-radius: 16px;
    transition: all 0.3s;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder {
    opacity: 0;
}

.form-input-container {
    position: relative;
    margin-bottom: 3.5rem;
}

.form-input-placeholder {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.02em;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #f8fafc;
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.form-input:focus + .form-input-placeholder,
.form-input:not(:placeholder-shown) + .form-input-placeholder {
    top: -1.75rem;
    left: 0;
    font-size: 1.12rem;
    font-weight: 500;
    background: var(--primary-color);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
}

.form-input:focus::after {
    content: '|';
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1 }
    50% { opacity: 0 }
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.individual-entry-page .language-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.language-option {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: white;
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.language-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.15);
}

.language-option input {
    position: absolute;
    opacity: 0;
}

.language-option input:checked + .language-flag {
    transform: scale(1.1);
}

.language-option input:checked ~ .language-content .language-name {
    color: var(--primary-color);
    font-weight: 600;
}

.language-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.3s;
    object-fit: cover;
}

.language-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.language-name {
    font-size: 1.25rem;
    color: var(--text-primary);
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s;
}

.check-icon {
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-box {
    background: white;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.15);
}

.stat-box input:checked ~ .stat-icon {
    background: var(--primary-color);
    color: white;
}

.stat-box input:checked {
    background: #f8fafc;
}

.stat-box input:checked + .stat-icon {
    transform: scale(1.1);
}

.stat-box input:checked ~ .stat-content .stat-value {
    color: var(--primary-color);
}

.stat-box:has(input:checked) {
    border-color: var(--primary-color);
    background: #f8fafc;
}

.stat-icon {
    background: #f1f5f9;
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.stat-content {
    text-align: left;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.submit-button {

    width: 100%;
    padding: 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.submit-button:hover {
    
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.3);
}

.submit-button i {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    body {
        padding: 0.5rem;
        overflow-x: hidden;
    }

    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        width: 100%;
        max-width: 100%;
    }

    .logo img {
        height: 52px;
        max-width: 160px;
        width: auto;
        object-fit: contain;
    }

    .individual-entry-page .individual-segment {
        flex-direction: column;
        gap: 0.65rem;
    }

    .individual-entry-page .individual-segment__option {
        flex: 1 1 auto;
        width: 100%;
    }

    .individual-entry-page .individual-segment__face {
        justify-content: flex-start;
        text-align: left;
        padding-inline: 0.9rem;
    }

    .individual-entry-page .individual-segment__face .stat-icon {
        flex-shrink: 0;
        margin-right: 0.15rem;
    }

    .individual-entry-page .individual-segment__face span {
        text-align: left;
    }

    .individual-entry-page .stats-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        margin: 1.25rem 0;
    }

    .individual-entry-page .stat-box,
    .stat-box {
        padding: 0.85rem 0.75rem;
        gap: 0.65rem;
        min-width: 0;
    }

    .setup-container {
        padding: 1.15rem 0.55rem;
    }

    .language-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .individual-entry-page .language-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .individual-entry-page .individual-lang-carousel:not(.individual-lang-carousel--paged) .individual-lang-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .individual-entry-page .individual-lang-carousel__track-row .individual-lang-carousel__arrow--prev {
        transform: translate(calc(-100% - 0.45rem), -50%);
    }

    .individual-entry-page .individual-lang-carousel__track-row .individual-lang-carousel__arrow--next {
        transform: translate(calc(100% + 0.45rem), -50%);
    }

    .individual-entry-page .individual-lang-carousel__track-row .individual-lang-carousel__arrow--prev:hover:not(:disabled) {
        transform: translate(calc(-100% - 0.45rem), calc(-50% - 1px));
    }

    .individual-entry-page .individual-lang-carousel__track-row .individual-lang-carousel__arrow--next:hover:not(:disabled) {
        transform: translate(calc(100% + 0.45rem), calc(-50% - 1px));
    }

    .individual-entry-page .individual-lang-carousel__arrow {
        width: 34px;
        height: 34px;
    }

    .individual-entry-page .individual-segment__face {
        min-height: 76px;
        padding-inline: 0.65rem;
    }
}

/* Ana Sayfa Stilleri */
.landing-home .main-buttons,
.main-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    margin-bottom: 3rem;
    box-sizing: border-box;
}

.landing-home .main-button,
.main-button {
    position: relative;
    display: block;
    overflow: hidden;
    /* Solid color under gradient — prevents “empty” look if gradient fails/composites */
    background-color: #ffffff;
    background-image: linear-gradient(160deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid #e2eef5;
    border-radius: 22px;
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    opacity: 1;
    /* Never transition background: gradient↔gradient often flashes transparent */
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.main-button:hover,
.main-button:focus-visible {
    transform: translateY(-5px) translateZ(0);
    border-color: #b7dde9;
    background-color: #ffffff;
    background-image: linear-gradient(160deg, #ffffff 0%, #eef8ff 100%);
    box-shadow: 0 16px 34px rgba(37, 167, 204, 0.2);
    color: var(--text-primary);
    text-decoration: none;
    opacity: 1;
}

.main-button:visited,
.main-button:active {
    background-color: #ffffff;
    background-image: linear-gradient(160deg, #ffffff 0%, #f7fbff 100%);
    color: var(--text-primary);
    opacity: 1;
}

.main-button::before {
    content: "";
    position: absolute;
    inset: -35% auto auto -30%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 167, 204, 0.14), transparent 68%);
    pointer-events: none;
    z-index: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.main-button:hover::before {
    transform: translate(16px, 10px) scale(1.06);
}

.main-button > * {
    position: relative;
    z-index: 1;
}

.main-button--friends,
.main-button--friends:visited,
.main-button--friends:active {
    background-color: #ffffff;
    background-image: linear-gradient(160deg, #ffffff 0%, #f7fbff 100%);
}

.main-button--friends:hover,
.main-button--friends:focus-visible {
    background-color: #ffffff;
    background-image: linear-gradient(160deg, #ffffff 0%, #eef8ff 100%);
}

.main-button i {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.35rem;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    color: color-mix(in srgb, var(--primary-color) 82%, #0f172a);
    background: linear-gradient(145deg, color-mix(in srgb, var(--primary-color) 16%, #ffffff), #ffffff);
    box-shadow: 0 8px 18px rgba(37, 167, 204, 0.18);
}

.main-button-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.main-button-description {
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.55;
    max-width: 32ch;
    margin: 0 auto;
}

.main-button--horizontal {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.35rem;
    text-align: left;
}

.main-buttons-pair {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.main-button--horizontal::before {
    inset: -40% auto auto -20%;
    width: 180px;
    height: 180px;
}

.main-button--horizontal > i {
    width: 52px;
    height: 52px;
    margin: 0;
    flex: 0 0 52px;
    border-radius: 14px;
    font-size: 1.35rem;
}

.main-button--horizontal .main-button-content {
    flex: 1;
    min-width: 0;
}

.main-button--horizontal .main-button-title {
    margin-bottom: 0.2rem;
    font-size: 1.12rem;
}

.main-button--horizontal .main-button-description {
    margin: 0;
    max-width: none;
    font-size: 0.88rem;
    line-height: 1.45;
}

.main-button--games > i {
    background: linear-gradient(145deg, color-mix(in srgb, var(--primary-color) 16%, #ffffff), #ffffff);
}

.main-button--academy > i {
    color: color-mix(in srgb, var(--primary-color) 82%, #0f172a);
    background: linear-gradient(145deg, color-mix(in srgb, var(--primary-color) 16%, #ffffff), #ffffff);
    box-shadow: 0 8px 18px rgba(37, 167, 204, 0.18);
}

.main-button-demo-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #ea580c);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
    pointer-events: none;
}

/* Skor Tablosu Stilleri */
.high-scores {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 15%, #ffffff);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.96));
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
    padding: 1.2rem 1.2rem 1rem;
}

.high-scores::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    top: -140px;
    right: -110px;
    border-radius: 999px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 14%, transparent), transparent 68%);
    pointer-events: none;
}

.high-scores h2,
.leaderboard-title {
    margin: 0;
    padding: 0.25rem 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.leaderboard-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.leaderboard-title__icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: color-mix(in srgb, var(--primary-color) 82%, #0f172a);
    background: linear-gradient(145deg, color-mix(in srgb, var(--primary-color) 16%, #ffffff), #ffffff);
    box-shadow: 0 8px 18px rgba(37, 167, 204, 0.18);
}

.leaderboard-title__text {
    line-height: 1.2;
}

.leaderboard-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
}

.leaderboard-top10s-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 167, 204, 0.35);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(232, 248, 255, 0.95));
    color: #0f4c5c;
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(37, 167, 204, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.leaderboard-top10s-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 167, 204, 0.55);
    box-shadow: 0 10px 18px rgba(37, 167, 204, 0.18);
    color: #0a3a47;
}

.leaderboard-top10s-btn i {
    color: #25a7cc;
}

button.leaderboard-top10s-btn {
    cursor: pointer;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
}

.leaderboard-month-top10-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    background: linear-gradient(180deg, #fff8e8, #ffe8b8);
    color: #8a5300;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.14);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.leaderboard-month-top10-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(217, 119, 6, 0.55);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.2);
    color: #7a4500;
}

.leaderboard-month-top10-btn.is-active {
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 16px rgba(217, 119, 6, 0.28);
}

.leaderboard-month-top10-btn.is-active i {
    color: #fff;
}

.leaderboard-month-top10-btn i {
    color: #d97706;
}

button.leaderboard-month-top10-btn {
    cursor: pointer;
    font-family: inherit;
}

.leaderboard-years {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.leaderboard-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.25rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 76, 92, 0.14);
    background: rgba(255, 255, 255, 0.88);
    color: #0f4c5c;
    font-size: 0.92rem;
    font-weight: 750;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.leaderboard-year:hover {
    border-color: rgba(37, 167, 204, 0.45);
    color: #0f4c5c;
}

.leaderboard-year.is-active {
    background: linear-gradient(180deg, #0f4c5c, #163a46);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 16px rgba(15, 76, 92, 0.22);
}

.leaderboard-months {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.leaderboard-month {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 76, 92, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: #35566a;
    font-size: 0.84rem;
    font-weight: 650;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.leaderboard-month:hover {
    border-color: rgba(37, 167, 204, 0.4);
    color: #0f4c5c;
}

.leaderboard-month.is-active {
    background: linear-gradient(180deg, #2bb4d8, #1f93b5);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 16px rgba(37, 167, 204, 0.22);
}

.top10-archive__header {
    margin-bottom: 1.25rem;
}

.top10-archive__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.55rem;
    color: #1f93b5;
    font-weight: 700;
    font-size: 0.9rem;
}

.leaderboard-head {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .leaderboard-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .leaderboard-top10s-btn {
        width: 100%;
        justify-content: center;
    }

    .leaderboard-filters-bar {
        flex-wrap: wrap;
    }

    .leaderboard-month-top10-btn {
        order: 3;
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .leaderboard-months {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .leaderboard-months::-webkit-scrollbar {
        display: none;
    }

    .leaderboard-month {
        flex: 0 0 auto;
    }
}

.leaderboard-filters-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.leaderboard-filters-carousel {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-width: 0;
}

.leaderboard-filters-carousel:not(.is-scrollable) .leaderboard-filters-carousel__arrow {
    display: none;
}

.leaderboard-filters-carousel__viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.leaderboard-filters-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.leaderboard-filters-carousel__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    width: max-content;
    padding: 0.1rem 0;
}

.leaderboard-filters-carousel__arrow {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, #e2e8f0);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
    transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.leaderboard-filters-carousel__arrow:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--primary-color) 42%, #ffffff);
    color: color-mix(in srgb, var(--primary-color) 78%, #0f172a);
    transform: translateY(-1px);
}

.leaderboard-filters-carousel__arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.leaderboard-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.88);
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.leaderboard-filter img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.leaderboard-filter:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--primary-color) 35%, #ffffff);
    color: color-mix(in srgb, var(--primary-color) 72%, #0f172a);
    background: #ffffff;
}

.leaderboard-filter.is-active {
    border-color: color-mix(in srgb, var(--primary-color) 48%, #ffffff);
    background: color-mix(in srgb, var(--primary-color) 10%, white);
    color: color-mix(in srgb, var(--primary-color) 78%, #0f172a);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--primary-color) 14%, transparent);
}

.leaderboard-filter.leaderboard-filter--pinned {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    min-height: auto;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 167, 204, 0.4);
    background: linear-gradient(180deg, #eef9fc, #d7f1f8);
    color: #0f4c5c;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37, 167, 204, 0.14);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.leaderboard-filter.leaderboard-filter--pinned:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 167, 204, 0.55);
    box-shadow: 0 8px 16px rgba(37, 167, 204, 0.2);
    color: #0a3a47;
    background: linear-gradient(180deg, #f4fcff, #cceef8);
}

.leaderboard-filter.leaderboard-filter--pinned.is-active {
    background: linear-gradient(180deg, #2bb4d8, #1f93b5);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 16px rgba(37, 167, 204, 0.28);
}

.leaderboard-list-wrap {
    position: relative;
    z-index: 1;
    min-height: 120px;
}

.leaderboard-list-wrap.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.leaderboard-item:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--primary-color) 24%, #ffffff);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.leaderboard-item.is-rank-gold {
    background: linear-gradient(135deg, #fffdf5, #fffaf0);
    border-color: rgba(234, 179, 8, 0.28);
}

.leaderboard-item.is-rank-silver {
    background: linear-gradient(135deg, #fbfdff, #f8fbff);
    border-color: rgba(148, 163, 184, 0.32);
}

.leaderboard-item.is-rank-bronze {
    background: linear-gradient(135deg, #fffdfa, #fff8f3);
    border-color: rgba(217, 119, 6, 0.24);
}

.leaderboard-item__rank {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1rem;
    font-weight: 800;
}

.leaderboard-item.is-rank-gold .leaderboard-item__rank {
    background: linear-gradient(145deg, #fef3c7, #fde68a);
    color: #b45309;
}

.leaderboard-item.is-rank-gold .leaderboard-item__rank i {
    font-size: 1.2rem;
}

.leaderboard-item.is-rank-silver .leaderboard-item__rank {
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    color: #475569;
}

.leaderboard-item.is-rank-silver .leaderboard-item__rank i {
    font-size: 1.1rem;
}

.leaderboard-item.is-rank-bronze .leaderboard-item__rank {
    background: linear-gradient(145deg, #ffedd5, #fed7aa);
    color: #c2410c;
}

.leaderboard-item.is-rank-bronze .leaderboard-item__rank i {
    font-size: 1.1rem;
}

.leaderboard-item__main {
    min-width: 0;
}

.leaderboard-item__name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    word-break: break-word;
}

.leaderboard-item__stats {
    margin: 0.28rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.3;
}

.leaderboard-item__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.3rem;
    text-align: right;
    flex-shrink: 0;
}

.leaderboard-item__score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.08rem;
}

.leaderboard-item__score-value {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    color: color-mix(in srgb, var(--primary-color) 82%, #0f172a);
}

.leaderboard-item__score-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.leaderboard-item__foot {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.74rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.2;
}

.leaderboard-item__foot time {
    color: inherit;
    font-weight: inherit;
}

.leaderboard-item__flag {
    width: 18px;
    height: 18px;
    margin-left: 0.1rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.leaderboard-item__flag--tr {
    object-position: 68% center;
}

.leaderboard-item__sep {
    color: #cbd5e1;
    user-select: none;
}

.leaderboard-empty {
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed rgba(148, 163, 184, 0.35);
}

.leaderboard-empty.is-error {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.25);
    background: #fef2f2;
}

.leaderboard-pagination {
    margin-top: 1rem;
}

/* Wordper Nedir? — ana sayfa */
.wordper-about {
    position: relative;
    overflow: hidden;
    margin-top: 2.5rem;
    padding: 1.5rem 1.35rem 1.35rem;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 15%, #ffffff);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.96));
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.wordper-about::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -120px;
    border-radius: 999px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 12%, transparent), transparent 68%);
    pointer-events: none;
}

.wordper-about__head {
    position: relative;
    max-width: 68ch;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.wordper-about__title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin: 0 0 0.75rem;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.wordper-about__title-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    color: color-mix(in srgb, var(--primary-color) 82%, #0f172a);
    background: linear-gradient(145deg, color-mix(in srgb, var(--primary-color) 16%, #ffffff), #ffffff);
    box-shadow: 0 8px 18px rgba(37, 167, 204, 0.16);
}

.wordper-about__lead {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.wordper-about__origin {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.wordper-about__origin-card {
    padding: 1.1rem 1.15rem;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 20%, #ffffff);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--primary-color) 5%, white));
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.wordper-about__origin-card--wpm {
    border-color: color-mix(in srgb, var(--primary-color) 32%, #ffffff);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.99), color-mix(in srgb, var(--primary-color) 9%, white));
}

.wordper-about__origin-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.wordper-about__origin-title i {
    color: var(--primary-color);
}

.wordper-about__origin-text {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.65;
}

.wordper-about__compare {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.wordper-about__panel {
    padding: 1.1rem 1.15rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.wordper-about__panel--others {
    border-color: rgba(148, 163, 184, 0.28);
    background: linear-gradient(165deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.92));
}

.wordper-about__panel--wordper {
    border-color: color-mix(in srgb, var(--primary-color) 28%, #ffffff);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--primary-color) 6%, white));
}

.wordper-about__panel-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.85rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
}

.wordper-about__panel--others .wordper-about__panel-title i {
    color: #94a3b8;
}

.wordper-about__panel--wordper .wordper-about__panel-title i {
    color: var(--primary-color);
}

.wordper-about__panel-lead {
    margin: 0 0 0.75rem;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
}

.wordper-about__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.wordper-about__list li {
    position: relative;
    padding-left: 1.15rem;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
}

.wordper-about__panel--others .wordper-about__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
}

.wordper-about__list--checks li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 0.72rem;
    color: var(--primary-color);
}

.wordper-about__features {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.85rem;
}

.wordper-about__feature {
    padding: 1rem 1rem 0.95rem;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 12%, #ffffff);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wordper-about__feature:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--primary-color) 32%, #ffffff);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.wordper-about__feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: color-mix(in srgb, var(--primary-color) 82%, #0f172a);
    background: linear-gradient(145deg, color-mix(in srgb, var(--primary-color) 14%, #ffffff), #ffffff);
    box-shadow: 0 6px 14px rgba(37, 167, 204, 0.14);
}

.wordper-about__feature-title {
    margin: 0 0 0.45rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.wordper-about__feature-text {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.55;
}

.pagination {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
}

.page-link {
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #ffffff;
    color: #475569;
    text-decoration: none;
    display: inline-grid;
    place-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.page-link:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--primary-color) 45%, #ffffff);
    color: color-mix(in srgb, var(--primary-color) 86%, #0f172a);
    background: #f4faff;
}

.page-link.active {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 92%, #2d8cff), color-mix(in srgb, var(--primary-color) 75%, #1d4ed8));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

@media (max-width: 992px) {
    .landing-home .main-buttons,
    .main-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .main-buttons-pair {
        grid-column: auto;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .main-button--horizontal {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .main-button--horizontal {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 1.35rem 1.25rem;
    }

    .main-button--horizontal > i {
        width: 56px;
        height: 56px;
        flex: 0 0 56px;
    }

    .landing-home .setup-container {
        padding: 1.15rem 0.55rem 1.1rem;
    }

    .landing-home .setup-title {
        font-size: clamp(1.55rem, 7vw, 2rem);
        line-height: 1.2;
        padding: 0 0.15rem;
        margin-bottom: 0.7rem;
    }

    .landing-home .setup-subtitle {
        font-size: 0.98rem;
        line-height: 1.55;
        padding: 0 0.25rem;
        margin-bottom: 1.5rem;
        max-width: none;
    }

    .landing-home .site-active-now {
        margin: -0.75rem auto 1.5rem;
        font-size: 0.86rem;
    }

    .high-scores {
        padding: 1rem 0.75rem 0.85rem;
        border-radius: 18px;
    }

    .leaderboard-title {
        gap: 0.6rem;
    }

    .leaderboard-title__icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 13px;
        font-size: 1.05rem;
    }

    .high-scores h2,
    .leaderboard-title {
        font-size: 1.15rem;
        padding: 0.15rem 0.1rem;
    }

    .leaderboard-head {
        gap: 0.7rem;
        margin-bottom: 0.85rem;
    }

    .leaderboard-filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .leaderboard-filter--pinned {
        align-self: flex-start;
    }

    .leaderboard-filters-carousel {
        width: 100%;
    }

    .leaderboard-filters-carousel__arrow {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .leaderboard-filter {
        min-height: 34px;
        padding: 0.3rem 0.62rem;
        font-size: 0.76rem;
    }

    .leaderboard-list {
        gap: 0.5rem;
    }

    .leaderboard-item {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        gap: 0.35rem 0.6rem;
        align-items: start;
        padding: 0.7rem 0.65rem;
        border-radius: 14px;
    }

    .leaderboard-item__rank {
        grid-row: 1 / span 2;
        align-self: start;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 0.88rem;
    }

    .leaderboard-item__main {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .leaderboard-item__aside {
        display: contents;
    }

    .leaderboard-item__score {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
        flex-direction: row;
        align-items: baseline;
        gap: 0.28rem;
    }

    .leaderboard-item__score-value {
        font-size: 1rem;
        white-space: nowrap;
    }

    .leaderboard-item__score-label {
        font-size: 0.62rem;
        letter-spacing: 0.03em;
    }

    .leaderboard-item__foot {
        grid-column: 2 / -1;
        grid-row: 2;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.28rem 0.4rem;
        padding-top: 0.42rem;
        margin-top: 0.1rem;
        border-top: 1px solid rgba(148, 163, 184, 0.14);
        font-size: 0.68rem;
    }

    .leaderboard-item__name {
        font-size: 0.9rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .leaderboard-item__stats {
        margin-top: 0.22rem;
        font-size: 0.74rem;
        gap: 0.32rem;
    }

    .leaderboard-item__flag {
        width: 16px;
        height: 16px;
    }

    .leaderboard-pagination {
        margin-top: 0.85rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.15rem;
    }

    .leaderboard-pagination::-webkit-scrollbar {
        display: none;
    }

    .leaderboard-pagination.pagination {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
    }

    .leaderboard-pagination .page-link {
        flex: 0 0 auto;
        min-width: 34px;
        height: 34px;
        font-size: 0.84rem;
        border-radius: 9px;
    }

    .leaderboard-empty {
        padding: 1.35rem 0.75rem;
        font-size: 0.88rem;
    }

    .wordper-about {
        margin-top: 2rem;
        padding: 1.1rem 0.9rem 1rem;
    }

    .wordper-about__compare {
        grid-template-columns: 1fr;
    }

    .wordper-about__origin {
        grid-template-columns: 1fr;
    }

    .wordper-about__features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .high-scores {
        padding: 0.85rem 0.6rem 0.75rem;
    }

    .leaderboard-filters-carousel .leaderboard-filter span {
        display: none;
    }

    .leaderboard-filters-carousel .leaderboard-filter {
        min-width: 34px;
        padding: 0.28rem 0.42rem;
        justify-content: center;
    }

    .leaderboard-filters-carousel .leaderboard-filter img {
        width: 20px;
        height: 20px;
    }

    .leaderboard-item {
        grid-template-columns: 38px minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        gap: 0.3rem 0.55rem;
        padding: 0.62rem 0.55rem;
    }

    .leaderboard-item__rank {
        grid-row: 1 / span 3;
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 0.82rem;
    }

    .leaderboard-item.is-rank-gold .leaderboard-item__rank i,
    .leaderboard-item.is-rank-silver .leaderboard-item__rank i,
    .leaderboard-item.is-rank-bronze .leaderboard-item__rank i {
        font-size: 0.95rem;
    }

    .leaderboard-item__main {
        grid-column: 2;
        grid-row: 1;
    }

    .leaderboard-item__score {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        margin-top: 0.05rem;
    }

    .leaderboard-item__score-value {
        font-size: 0.98rem;
    }

    .leaderboard-item__foot {
        grid-column: 2;
        grid-row: 3;
        border-top: none;
        padding-top: 0.2rem;
        margin-top: 0;
    }

    .leaderboard-item__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.2rem 0.45rem;
    }

    .leaderboard-item__stats .leaderboard-item__sep {
        display: none;
    }
}

/* Sonuç Sayfası Stilleri */
.result-container {
    text-align: center;
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.result-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.rank-notice {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.rank-notice i {
    font-size: 2.5rem;
    color: #fbbf24;
}

.rank-content {
    flex: 1;
    text-align: left;
}

.rank-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.rank-content p {
    color: var(--text-secondary);
}

.success-message {
    background: #ecfdf5;
    color: #059669;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem 0;
}

.success-message i {
    font-size: 1.25rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.share-button {
    padding: 1.5rem;
    background: #f1f5f9;
    color: var(--text-primary);
    border: none;
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.share-button:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.share-button i {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .rank-notice {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .rank-content {
        text-align: center;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }
}

/* Yeni Sonuç Sayfası Stilleri */
.stats-display {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.score-circle {
    width: 148px;
    height: 148px;
    container-type: inline-size;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    padding: 0 0.65rem;
    box-sizing: border-box;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.score-circle .score-value {
    position: relative;
    z-index: 1;
    max-width: 100%;
    font-size: clamp(0.95rem, 15.5cqi, 2.25rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-bottom: 0.2rem;
    text-align: center;
    white-space: nowrap;
}

.score-circle .score-label {
    position: relative;
    z-index: 1;
    max-width: 100%;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.15;
}

.result-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.result-button {
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.result-button.play-again {
    background: var(--primary-color);
    color: white;
}

.result-button.home {
    background: #f1f5f9;
}

.result-button.certificate {
    background: #10b981;
    color: white;
}

.result-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-button i {
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .result-buttons {
        grid-template-columns: 1fr;
    }
    
    .stats-display {
        padding: 1.5rem;
    }
    
    .score-circle {
        width: 136px;
        height: 136px;
        padding: 0 0.55rem;
    }
    
    .score-circle .score-value {
        font-size: clamp(0.9rem, 14.5cqi, 1.95rem);
    }

    .score-circle .score-label {
        font-size: 0.68rem;
    }
}

/* Sertifika Tarzı İstatistik Kutuları */
.cert-stat-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.cert-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.cert-stat-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.cert-stat-box:hover .cert-stat-icon {
    background: var(--primary-color);
    color: white;
}

.cert-stat-info {
    flex: 1;
}

.cert-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.cert-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .cert-stat-box {
        padding: 1rem;
    }

    .cert-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .cert-stat-value {
        font-size: 1.25rem;
    }

    .cert-stat-label {
        font-size: 0.75rem;
    }
}

/* Öğretmen Butonu */
.teacher-button {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #1e7a94;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.teacher-button:hover {
    background: #1e7a94;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.teacher-button i {
    font-size: 16px;
}

/* Aşama Göstergesi */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.step {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s;
}

.step.active {
    background: #1e7a94;
    transform: scale(1.2);
}

/* İleri/Geri Butonları */
.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.nav-button.primary {
    background: #1e7a94;
    color: white;
}

.nav-button.primary:hover {
    background: #1e7a94;
}

.nav-button.secondary {
    background: #f1f5f9;
    color: #64748b;
}

.nav-button.secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Bekleme Odası */
.waiting-room {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.waiting-room h2 {
    color: #1e293b;
    font-size: 24px;
    margin-bottom: 16px;
}

.waiting-room p {
    color: #64748b;
    margin-bottom: 24px;
}

.waiting-animation {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
}

.waiting-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1e7a94;
    animation: pulse 1.5s infinite;
}

.waiting-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.waiting-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Mesaj Kutuları */
.message-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin: 1rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: slideIn 0.3s ease-out;
}

.message-box i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.message-box.error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

.message-box.success {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #dcfce7;
}

.message-box.warning {
    background-color: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
}

.message-box.info {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

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

/* Keyboard Games */
.keyboard-games-page .container {
    max-width: min(1120px, 100%);
}

.keyboard-games-page .games-shell,
.meteor-game-page .meteor-shell,
.maze-game-page .maze-shell,
.builder-game-page .builder-shell,
.zombie-game-page .zombie-shell,
.lane-dash-game-page .lane-dash-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.games-hero {
    text-align: center;
    margin-bottom: 1.4rem;
}

.games-seo-intro {
    max-width: 68ch;
    margin: 1rem auto 0;
    text-align: left;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.65;
}

.games-seo-intro p {
    margin: 0 0 0.75rem;
}

.games-seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
}

.games-seo-links a {
    color: color-mix(in srgb, var(--primary-color) 82%, #0f172a);
    font-weight: 700;
    text-decoration: none;
}

.games-seo-links a:hover {
    text-decoration: underline;
}

.games-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 24%, #ffffff);
    background: rgba(255, 255, 255, 0.86);
    color: color-mix(in srgb, var(--primary-color) 78%, #0f172a);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.game-card {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    padding: 1.25rem;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at 18% 16%, rgba(37, 167, 204, 0.18), transparent 32%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
    color: #0f172a;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary-color) 38%, #ffffff);
    box-shadow: 0 20px 42px rgba(37, 167, 204, 0.18);
}

.game-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.28);
}

.game-card-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 36%),
        linear-gradient(145deg, #f97316, #dc2626);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
    font-size: 1.9rem;
}

.game-card:nth-child(2) .game-card-icon {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 36%),
        linear-gradient(145deg, #7c3aed, #2563eb);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.28);
}

.game-card:nth-child(3) .game-card-icon {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 36%),
        linear-gradient(145deg, #f59e0b, #16a34a);
    box-shadow: 0 14px 28px rgba(22, 163, 74, 0.24);
}

.game-card:nth-child(4) .game-card-icon {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 36%),
        linear-gradient(145deg, #22c55e, #0f172a);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
}

.game-card:nth-child(5) .game-card-icon {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 36%),
        linear-gradient(145deg, #38bdf8, #2563eb);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.game-card-title {
    margin: 1.1rem 0 0.35rem;
    padding-right: 4.5rem;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #0f172a;
}

.game-card-subtitle {
    margin: 0 0 0.45rem;
    color: color-mix(in srgb, var(--primary-color) 78%, #0f172a);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
}

.game-card-description {
    margin: 0;
    flex: 1 1 auto;
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.55;
}

.game-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: color-mix(in srgb, var(--primary-color) 82%, #0f172a);
    transition: gap 0.2s ease;
}

.game-card:hover .game-card-cta {
    gap: 0.65rem;
}

.game-card-cta i {
    font-size: 0.8rem;
}

/* legacy aliases (unused markup) */
.game-card-content {
    display: grid;
    gap: 0.35rem;
    margin-top: 2rem;
}

.game-card-content strong {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.game-card-content em {
    color: color-mix(in srgb, var(--primary-color) 78%, #0f172a);
    font-style: normal;
    font-weight: 800;
}

.game-card-content small {
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.55;
}

.game-card-action {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: color-mix(in srgb, var(--primary-color) 82%, #0f172a);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.meteor-container {
    max-width: 1220px;
}

.meteor-shell {
    display: grid;
    gap: 1rem;
}

.meteor-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.meteor-panel h1 {
    margin: 0.65rem 0 0.35rem;
    color: #0f172a;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.meteor-panel p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.meteor-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(86px, 1fr));
    gap: 0.65rem;
}

.meteor-stat {
    min-height: 72px;
    padding: 0.75rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.meteor-stat span {
    display: block;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.meteor-stat strong {
    display: block;
    margin-top: 0.28rem;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 900;
}

.meteor-stage {
    position: relative;
    overflow: hidden;
    height: min(64vh, 560px);
    min-height: 430px;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background:
        radial-gradient(circle at 50% -10%, rgba(59, 130, 246, 0.28), transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(249, 115, 22, 0.18), transparent 28%),
        linear-gradient(180deg, #07111f 0%, #111827 62%, #18243a 100%);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
    outline: none;
}

.meteor-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 64px 64px, 96px 96px;
    background-position: 0 0, 32px 20px;
    opacity: 0.28;
    pointer-events: none;
}

.meteor-ground {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.22));
    border-top: 1px solid rgba(134, 239, 172, 0.32);
}

.meteor {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 48% 52% 46% 54%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(145deg, #fb923c 0%, #f97316 58%, #c2410c 100%);
    box-shadow:
        0 10px 18px rgba(249, 115, 22, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    user-select: none;
    pointer-events: none;
    will-change: transform;
    z-index: 2;
}

.meteor::before {
    content: "";
    position: absolute;
    top: -54px;
    left: 50%;
    width: 20px;
    height: 62px;
    border-radius: 999px 999px 8px 8px;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0), rgba(251, 191, 36, 0.34) 42%, rgba(249, 115, 22, 0.78));
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    transform: translateX(-50%) rotate(-4deg);
    transform-origin: 50% 100%;
    z-index: -1;
}

.meteor::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 38%;
    height: 22%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    transform: translateX(-50%) rotate(-18deg);
    z-index: 1;
}

.meteor.is-hit {
    animation: meteorPop 0.26s ease forwards;
}

.meteor.is-missed {
    animation: meteorMiss 0.22s ease forwards;
}

.meteor-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.52);
    backdrop-filter: blur(6px);
    z-index: 5;
}

.meteor-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.meteor-overlay-card {
    width: min(420px, 100%);
    padding: 1.4rem;
    border-radius: 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
}

.meteor-overlay-card > i {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(145deg, #f97316, #dc2626);
    font-size: 1.85rem;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.meteor-overlay-card h2 {
    margin: 0.9rem 0 0.4rem;
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f172a;
}

.meteor-overlay-card p {
    margin: 0 0 1rem;
    color: #64748b;
    line-height: 1.55;
}

.meteor-difficulty {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 1rem 0;
    padding: 0.35rem;
    border-radius: 16px;
    background: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.meteor-difficulty-button {
    min-height: 40px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.meteor-difficulty-button:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.76);
}

.meteor-difficulty-button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.24);
}

.meteor-start-button {
    min-height: 50px;
    padding: 0 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.meteor-start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(220, 38, 38, 0.34);
}

.meteor-help {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.meteor-help span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.58rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #334155;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.lane-dash-stage {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #5ec46f;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
    outline: none;
}

.lane-grass {
    position: absolute;
    left: 0;
    right: 0;
    height: 108px;
    overflow: hidden;
    background:
        radial-gradient(circle at 16px 18px, #fef08a 0 3px, transparent 4px),
        radial-gradient(circle at 52px 70px, #f472b6 0 3px, transparent 4px),
        radial-gradient(circle at 92px 42px, #60a5fa 0 3px, transparent 4px),
        linear-gradient(135deg, #7ddf82, #48b85b);
    background-size: 132px 88px, 148px 94px, 164px 86px, 100% 100%;
    background-position: 0 0, 0 0, 0 0, 0 0;
}

.lane-grass-top {
    top: 0;
    border-bottom: 5px solid rgba(22, 101, 52, 0.32);
}

.lane-grass-bottom {
    bottom: 0;
    border-top: 5px solid rgba(22, 101, 52, 0.32);
}

.lane-tree,
.lane-flower {
    position: absolute;
    display: block;
}

.lane-tree {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 28%),
        #16803a;
    box-shadow: inset 0 -8px 0 rgba(21, 128, 61, 0.36), 0 10px 14px rgba(21, 83, 45, 0.18);
    will-change: transform;
}

.lane-tree::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -13px;
    width: 12px;
    height: 18px;
    border-radius: 4px;
    background: #8b5a2b;
    transform: translateX(-50%);
    z-index: -1;
}

.tree-one {
    top: 18px;
    left: 8%;
}

.tree-two {
    top: 34px;
    right: 15%;
}

.tree-three {
    top: 34px;
    left: 18%;
}

.lane-flower {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fde68a 0 3px, transparent 4px),
        radial-gradient(circle at 50% 0, #fb7185 0 5px, transparent 6px),
        radial-gradient(circle at 100% 50%, #fb7185 0 5px, transparent 6px),
        radial-gradient(circle at 50% 100%, #fb7185 0 5px, transparent 6px),
        radial-gradient(circle at 0 50%, #fb7185 0 5px, transparent 6px);
    will-change: transform;
}

.flower-one {
    top: 28px;
    left: 26%;
}

.flower-two {
    top: 68px;
    left: 58%;
}

.flower-three {
    top: 24px;
    right: 30%;
}

.flower-four {
    top: 30px;
    right: 22%;
}

.flower-five {
    top: 70px;
    left: 42%;
}

.flower-six {
    top: 24px;
    left: 72%;
}

.lane-road {
    position: absolute;
    left: 0;
    right: 0;
    top: 108px;
    bottom: 108px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.08)),
        #29313d;
    box-shadow:
        inset 0 8px 0 rgba(255, 255, 255, 0.08),
        inset 0 -8px 0 rgba(0, 0, 0, 0.14);
}

.lane-road-lines {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0 58px, transparent 58px 112px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0 58px, transparent 58px 112px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0 58px, transparent 58px 112px);
    background-size: 168px 4px;
    background-position: 0 25%, 0 50%, 0 75%;
    background-repeat: repeat-x;
}

.lane-letter-board {
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
}

.lane-letter-pill {
    position: absolute;
    top: calc((100% / 4) * var(--lane) + ((100% / 4) - 48px) / 2);
    left: 0;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #0f172a;
    background: #ffffff;
    border: 2px solid rgba(37, 99, 235, 0.28);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
    font-size: 1.28rem;
    font-weight: 900;
}

.lane-obstacle-layer,
.lane-delivery-layer,
.lane-pickup-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.lane-delivery-layer {
    z-index: 4;
    pointer-events: none;
}

.lane-pickup-layer {
    z-index: 5;
    pointer-events: none;
}

.courier-truck {
    position: absolute;
    top: 0;
    left: 0;
    width: 96px;
    height: 56px;
    border-radius: 18px;
    transition: transform 0.13s ease-out, opacity 0.18s ease;
    z-index: 4;
}

.truck-box {
    position: absolute;
    left: 4px;
    top: 8px;
    width: 58px;
    height: 40px;
    border-radius: 14px 8px 8px 14px;
    display: grid;
    place-items: center;
    color: #92400e;
    background:
        linear-gradient(90deg, rgba(146, 64, 14, 0.12) 0 2px, transparent 2px 12px),
        linear-gradient(135deg, #fde68a, #f59e0b);
    border: 2px solid rgba(146, 64, 14, 0.26);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.38);
    z-index: 2;
}

.truck-cabin {
    position: absolute;
    right: 4px;
    top: 8px;
    width: 36px;
    height: 40px;
    border-radius: 8px 18px 18px 8px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.46) 0 12px, transparent 12px),
        linear-gradient(135deg, #38bdf8, #2563eb);
    border: 2px solid rgba(30, 64, 175, 0.28);
    box-shadow: inset -5px 0 0 rgba(30, 64, 175, 0.2);
    z-index: 3;
}

.truck-wheel {
    position: absolute;
    width: 18px;
    height: 9px;
    border-radius: 999px;
    background: #0f172a;
    box-shadow: inset 0 0 0 2px rgba(148, 163, 184, 0.28);
    z-index: 1;
}

.wheel-front-left,
.wheel-front-right {
    right: 14px;
}

.wheel-back-left,
.wheel-back-right {
    left: 14px;
}

.wheel-front-left,
.wheel-back-left {
    top: 1px;
}

.wheel-front-right,
.wheel-back-right {
    bottom: 1px;
}

.courier-truck.is-invincible {
    opacity: 0.45;
    animation: courierBlink 0.28s linear infinite;
}

.lane-obstacle {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    z-index: 3;
}

.lane-obstacle.crate {
    border-radius: 8px;
    background:
        linear-gradient(45deg, transparent 44%, rgba(120, 53, 15, 0.34) 45% 55%, transparent 56%),
        linear-gradient(-45deg, transparent 44%, rgba(120, 53, 15, 0.34) 45% 55%, transparent 56%),
        linear-gradient(135deg, #d97706, #92400e);
    border: 3px solid #78350f;
    box-shadow: 0 10px 14px rgba(15, 23, 42, 0.22);
}

.lane-obstacle.cone {
    clip-path: polygon(50% 0, 92% 100%, 8% 100%);
    background:
        linear-gradient(180deg, transparent 28%, rgba(255, 255, 255, 0.92) 28% 42%, transparent 42% 62%, rgba(255, 255, 255, 0.92) 62% 74%, transparent 74%),
        #f97316;
    filter: drop-shadow(0 10px 10px rgba(15, 23, 42, 0.24));
}

.lane-obstacle.barrier {
    border-radius: 9px;
    background:
        repeating-linear-gradient(135deg, #fef2f2 0 10px, #ef4444 10px 20px);
    border: 3px solid rgba(127, 29, 29, 0.72);
    box-shadow: 0 10px 14px rgba(15, 23, 42, 0.22);
}

.lane-heart-pickup {
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 18px rgba(220, 38, 38, 0.24);
    font-size: 1.25rem;
    animation: laneHeartPulse 0.8s ease-in-out infinite;
}

.lane-delivery-point {
    position: absolute;
    top: 0;
    left: 0;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background:
        linear-gradient(135deg, #fef08a, #f59e0b);
    border: 2px solid rgba(146, 64, 14, 0.28);
    color: #92400e;
    font-size: 1.4rem;
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
    animation: laneDeliveryPulse 0.95s ease-in-out infinite;
}

.lane-dash-stage.is-damaged {
    animation: courierDamage 0.22s linear;
}

.lane-letter-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 0.7rem 0 1rem;
}

.lane-letter-option {
    min-height: 38px;
    border: none;
    border-radius: 13px;
    background: rgba(241, 245, 249, 0.88);
    color: #64748b;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.lane-letter-option:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.94);
    transform: translateY(-1px);
}

.lane-letter-option.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.lane-custom-letters {
    display: grid;
    gap: 0.35rem;
    margin: 0 0 1rem;
    text-align: left;
}

.lane-custom-letters span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lane-custom-letters input {
    min-height: 42px;
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 14px;
    padding: 0 0.85rem;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    font: inherit;
    font-weight: 800;
    outline: none;
}

.lane-custom-letters input:focus {
    border-color: rgba(37, 99, 235, 0.48);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.zombie-stage {
    background:
        radial-gradient(circle at 13% 13%, #fff7b8 0 38px, rgba(255, 247, 184, 0.35) 39px 70px, transparent 72px),
        linear-gradient(180deg, #7dd3fc 0%, #bae6fd 42%, #e0f2fe 70%, #f8fafc 100%);
}

.zombie-stage.is-danger {
    box-shadow: 0 20px 44px rgba(220, 38, 38, 0.22);
}

.zombie-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.78) 0 18px, transparent 19px),
        radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.72) 0 26px, transparent 27px),
        radial-gradient(circle at 31% 22%, rgba(255, 255, 255, 0.68) 0 19px, transparent 20px),
        radial-gradient(circle at 72% 17%, rgba(255, 255, 255, 0.58) 0 16px, transparent 17px),
        radial-gradient(circle at 78% 17%, rgba(255, 255, 255, 0.52) 0 24px, transparent 25px);
    opacity: 0.62;
    pointer-events: none;
    animation: cityClouds 24s linear infinite;
    z-index: 1;
}

.zombie-stage.is-hit {
    animation: mazeWrong 0.28s ease;
}

.zombie-runway {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.zombie-zone-bg {
    position: absolute;
    inset: 0;
    transition: background 0.3s ease;
    z-index: 0;
}

.zombie-zone-bg::before,
.zombie-zone-bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: -480px;
    bottom: 138px;
    height: 210px;
    background-repeat: repeat-x;
    animation: cityScroll 12s linear infinite;
}

.zombie-zone-bg::before {
    opacity: 0.5;
    background:
        repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.34) 18px 23px, transparent 23px 42px),
        repeating-linear-gradient(
            90deg,
            rgba(125, 151, 176, 0.78) 0 74px,
            transparent 74px 96px,
            rgba(100, 116, 139, 0.74) 96px 178px,
            transparent 178px 220px,
            rgba(148, 163, 184, 0.68) 220px 286px,
            transparent 286px 480px
        );
    background-size: 480px 210px;
}

.zombie-zone-bg::after {
    bottom: 124px;
    height: 248px;
    opacity: 0.9;
    background:
        repeating-linear-gradient(0deg, transparent 0 18px, rgba(255, 255, 255, 0.1) 18px 20px, transparent 20px 38px),
        repeating-linear-gradient(
            90deg,
            #334155 0 86px,
            transparent 86px 114px,
            #475569 114px 186px,
            transparent 186px 226px,
            #1e293b 226px 322px,
            transparent 322px 480px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0 18px,
            rgba(251, 191, 36, 0.8) 18px 24px,
            transparent 24px 46px
        );
    background-size: 480px 248px, 480px 248px, 46px 248px;
    animation-duration: 7.5s;
}

.zombie-zone-bg.zone-city {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 42%),
        linear-gradient(180deg, rgba(14, 165, 233, 0.12), rgba(37, 99, 235, 0.08));
}

.zombie-zone-bg.zone-forest {
    background:
        radial-gradient(circle at 20% 70%, rgba(34, 197, 94, 0.24), transparent 18%),
        radial-gradient(circle at 76% 68%, rgba(22, 163, 74, 0.22), transparent 18%),
        linear-gradient(180deg, rgba(20, 83, 45, 0.18), transparent 62%);
}

.zombie-zone-bg.zone-lab {
    background:
        linear-gradient(90deg, rgba(56, 189, 248, 0.12) 1px, transparent 1px),
        linear-gradient(0deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
}

.zombie-runway::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 138px;
    background:
        linear-gradient(180deg, #64748b 0 34px, #475569 34px 58px, transparent 58px),
        radial-gradient(circle at 16px 92px, rgba(120, 53, 15, 0.34) 0 3px, transparent 4px),
        radial-gradient(circle at 62px 118px, rgba(146, 64, 14, 0.28) 0 4px, transparent 5px),
        radial-gradient(circle at 116px 82px, rgba(69, 26, 3, 0.22) 0 3px, transparent 4px),
        linear-gradient(180deg, #92400e 58px, #78350f 100%);
    background-size: 100% 100%, 140px 138px, 180px 138px, 220px 138px, 100% 100%;
    border-top: 5px solid rgba(255, 255, 255, 0.42);
    animation: dirtScroll 1.4s linear infinite;
    z-index: 1;
}

.zombie-runway::before {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: 112px;
    height: 32px;
    background:
        repeating-linear-gradient(90deg, #f8fafc 0 34px, #cbd5e1 34px 68px);
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    border-bottom: 1px solid rgba(15, 23, 42, 0.16);
    transform: skewX(-10deg);
    animation: sidewalkScroll 1.4s linear infinite;
    z-index: 1;
}

.zombie-runner,
.zombie-enemy {
    position: absolute;
    bottom: 98px;
    width: 86px;
    height: 104px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 2;
    transition: left 0.25s ease, transform 0.2s ease;
}

.zombie-runner {
    left: 76%;
    background: transparent;
    box-shadow: none;
    animation: zombieRun 0.55s ease-in-out infinite;
    z-index: 3;
}

.zombie-stage.is-sprint .zombie-runner {
    filter: drop-shadow(0 0 18px rgba(250, 204, 21, 0.75));
}

.runner-gif {
    width: 118px;
    height: 118px;
    object-fit: contain;
    object-position: center bottom;
    display: block;
    filter: drop-shadow(0 12px 12px rgba(15, 23, 42, 0.24));
    transform: scaleX(-1);
}

.zombie-gif {
    width: 112px;
    height: 112px;
    object-fit: contain;
    object-position: center bottom;
    display: block;
    filter: drop-shadow(0 12px 12px rgba(15, 23, 42, 0.26));
}

.zombie-enemy {
    width: 96px;
    height: 112px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation: zombieWobble 0.72s ease-in-out infinite;
}

.zombie-shadow {
    position: absolute;
    left: 12px;
    right: 10px;
    bottom: -7px;
    height: 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.22);
    filter: blur(2px);
}

.zombie-body {
    position: relative;
    width: 56px;
    height: 64px;
    border-radius: 18px 18px 14px 14px;
    background:
        radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.24), transparent 28%),
        linear-gradient(145deg, #86efac, #16a34a 60%, #14532d);
    border: 3px solid rgba(20, 83, 45, 0.45);
    box-shadow: 0 10px 18px rgba(20, 83, 45, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

.zombie-head {
    position: absolute;
    left: 50%;
    top: -18px;
    width: 44px;
    height: 36px;
    transform: translateX(-50%);
    border-radius: 16px 16px 13px 13px;
    background: linear-gradient(145deg, #bbf7d0, #22c55e);
    border: 3px solid rgba(20, 83, 45, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.zombie-eye {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
}

.zombie-arms {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 82px;
    height: 10px;
    transform: translateX(-50%) rotate(-6deg);
    border-radius: 999px;
    background: linear-gradient(90deg, #16a34a, #bbf7d0, #16a34a);
    border: 2px solid rgba(20, 83, 45, 0.3);
}

.zombie-kind {
    position: absolute;
    left: 50%;
    top: -36px;
    transform: translateX(-50%);
    padding: 0.16rem 0.42rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.zombie-word-card {
    position: absolute;
    left: 50%;
    top: 1.1rem;
    width: min(520px, calc(100% - 2rem));
    transform: translateX(-50%);
    z-index: 3;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
    text-align: center;
}

.zombie-distance-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 4;
    min-width: 132px;
    padding: 0.72rem 0.85rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
    color: #ffffff;
}

.zombie-distance-badge span {
    display: block;
    color: #bfdbfe;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zombie-distance-badge strong {
    display: block;
    margin-top: 0.22rem;
    font-size: 1.35rem;
    font-weight: 900;
}

.zombie-word-label {
    display: block;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.zombie-word-card strong {
    display: block;
    margin: 0.25rem 0 0.65rem;
    color: #0f172a;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 900;
    letter-spacing: 0.04em;
}

.zombie-input-preview {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.28rem;
    min-height: 32px;
}

.zombie-input-preview span {
    width: 28px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
    font-weight: 900;
    text-transform: uppercase;
}

.zombie-input-preview span.is-correct {
    background: #dcfce7;
    color: #15803d;
}

.zombie-input-preview span.is-wrong {
    background: #fee2e2;
    color: #b91c1c;
}

.zombie-word-card p {
    margin: 0.65rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
}

.zombie-difficulty {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 1rem 0;
    padding: 0.35rem;
    border-radius: 16px;
    background: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.zombie-difficulty-button {
    min-height: 40px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.zombie-difficulty-button:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.76);
}

.zombie-difficulty-button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #22c55e, #15803d);
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.24);
}

.zombie-game-page .meteor-overlay-card > i,
.zombie-start-button {
    background: linear-gradient(145deg, #22c55e, #14532d);
}

.maze-container {
    max-width: 1220px;
}

.maze-shell {
    display: grid;
    gap: 1rem;
}

.maze-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.maze-panel h1 {
    margin: 0.65rem 0 0.35rem;
    color: #0f172a;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.maze-panel p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.maze-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(86px, 1fr));
    gap: 0.65rem;
}

.maze-stat {
    min-height: 72px;
    padding: 0.75rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.maze-stat span {
    display: block;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.maze-stat strong {
    display: block;
    margin-top: 0.28rem;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 900;
}

.maze-game-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.maze-side-card {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.maze-command-card,
.maze-minimap-card {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.maze-command-label,
.maze-mini-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.maze-command-card strong {
    width: 86px;
    height: 86px;
    margin: 0.9rem 0 0.7rem;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.3), transparent 38%),
        linear-gradient(145deg, #7c3aed, #2563eb);
    font-size: 2.6rem;
    font-weight: 900;
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.25);
}

.maze-command-card p {
    margin: 0;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 800;
}

.maze-command-card small {
    display: block;
    margin-top: 0.5rem;
    color: #64748b;
    line-height: 1.45;
}

.maze-command-card.is-hidden-letter strong {
    background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
    color: #475569;
}

.maze-command-card.is-wrong {
    animation: mazeWrong 0.28s ease;
}

.maze-command-card.is-success strong {
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.3), transparent 38%),
        linear-gradient(145deg, #22c55e, #16a34a);
}

.maze-minimap {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 3px;
}

.maze-mini-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    background: #e2e8f0;
}

.maze-mini-cell.is-wall {
    background: #0f172a;
}

.maze-mini-cell.is-key {
    background: #f59e0b;
}

.maze-mini-cell.is-trap {
    background: #dc2626;
}

.maze-mini-cell.is-exit {
    background: #22c55e;
}

.maze-mini-cell.is-player {
    background: #2563eb;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(37, 99, 235, 0.3);
}

.maze-board-shell {
    position: relative;
    min-height: 560px;
    padding: 1rem;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background:
        radial-gradient(circle at 18% 12%, rgba(124, 58, 237, 0.2), transparent 34%),
        radial-gradient(circle at 80% 18%, rgba(37, 99, 235, 0.2), transparent 30%),
        linear-gradient(180deg, #0f172a, #111827);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
}

.maze-board {
    height: 100%;
    min-height: 528px;
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    grid-template-rows: repeat(9, 1fr);
    gap: 7px;
    outline: none;
}

.maze-cell {
    position: relative;
    min-height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 1.15rem;
    overflow: hidden;
}

.maze-cell.is-wall {
    background:
        linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.maze-cell.is-path {
    background: rgba(248, 250, 252, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.maze-cell.is-trap {
    background: rgba(220, 38, 38, 0.18);
    color: #fecaca;
}

.maze-cell.is-key {
    background: rgba(245, 158, 11, 0.2);
    color: #fde68a;
    text-shadow: 0 0 16px rgba(245, 158, 11, 0.65);
}

.maze-cell.is-exit {
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
    text-shadow: 0 0 16px rgba(34, 197, 94, 0.6);
}

.maze-cell.is-player {
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.32), transparent 36%),
        linear-gradient(145deg, #38bdf8, #2563eb);
    color: #ffffff;
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.56);
    animation: mazePulse 1.2s ease-in-out infinite;
}

.maze-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    border-radius: 28px;
    background: rgba(2, 6, 23, 0.58);
    backdrop-filter: blur(6px);
    z-index: 5;
}

.maze-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.maze-overlay-card {
    width: min(430px, 100%);
    padding: 1.4rem;
    border-radius: 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
}

.maze-overlay-card > i {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(145deg, #7c3aed, #2563eb);
    font-size: 1.85rem;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.28);
}

.maze-overlay-card h2 {
    margin: 0.9rem 0 0.4rem;
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f172a;
}

.maze-overlay-card p {
    margin: 0 0 1rem;
    color: #64748b;
    line-height: 1.55;
}

.maze-control-panel {
    position: relative;
    overflow: hidden;
    align-self: stretch;
    padding: 1.2rem;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        #101827;
    border: 1px solid rgba(226, 232, 240, 0.12);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.2);
}

.maze-control-header {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.32rem;
    margin-bottom: 1.15rem;
}

.maze-control-header span {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.maze-control-header strong {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.maze-control-header small {
    width: fit-content;
    margin-top: 0.38rem;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(147, 197, 253, 0.16);
    font-size: 0.78rem;
    font-weight: 800;
}

.maze-direction-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
        ". up ."
        "left down right";
    gap: 0.62rem;
}

.maze-direction-card {
    min-height: 98px;
    border: 1px solid rgba(226, 232, 240, 0.12);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
    display: grid;
    grid-template-rows: 1fr auto;
    place-items: center;
    gap: 0.55rem;
    padding: 0.72rem;
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 20px rgba(2, 6, 23, 0.16);
}

.maze-direction-card[data-dir="up"] {
    grid-area: up;
}

.maze-direction-card[data-dir="down"] {
    grid-area: down;
}

.maze-direction-card[data-dir="left"] {
    grid-area: left;
}

.maze-direction-card[data-dir="right"] {
    grid-area: right;
}

.maze-direction-card:hover {
    border-color: rgba(147, 197, 253, 0.28);
    background:
        linear-gradient(180deg, rgba(59, 130, 246, 0.18), rgba(255, 255, 255, 0.05));
}

.maze-direction-arrow {
    color: #93c5fd;
    font-size: 1rem;
    font-weight: 900;
}

.maze-direction-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.maze-direction-name {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 800;
}

.maze-direction-key {
    width: 56px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 900;
    background:
        linear-gradient(180deg, #ffffff, #dbeafe);
    box-shadow:
        0 7px 0 rgba(15, 23, 42, 0.34),
        0 14px 22px rgba(2, 6, 23, 0.22);
}

.maze-control-note {
    position: relative;
    z-index: 1;
    margin: 1rem 0 0;
    padding: 0.85rem;
    border-radius: 16px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.38);
    border: 1px solid rgba(226, 232, 240, 0.08);
    line-height: 1.55;
    font-size: 0.86rem;
    font-weight: 700;
}

.maze-board.is-hit {
    animation: mazeWrong 0.28s ease;
}

.builder-container {
    max-width: 1220px;
}

.builder-shell {
    display: grid;
    gap: 1rem;
}

.builder-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.builder-panel h1 {
    margin: 0.65rem 0 0.35rem;
    color: #0f172a;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.builder-panel p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.builder-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(86px, 1fr));
    gap: 0.65rem;
}

.builder-stat {
    min-height: 72px;
    padding: 0.75rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.builder-stat span {
    display: block;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.builder-stat strong {
    display: block;
    margin-top: 0.28rem;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 900;
}

.builder-difficulty {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 1rem 0;
    padding: 0.35rem;
    border-radius: 16px;
    background: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.builder-difficulty-button {
    min-height: 40px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.builder-difficulty-button:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.76);
}

.builder-difficulty-button.is-active {
    color: #78350f;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.24);
}

.builder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.builder-stage {
    --altitude: 0;
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background:
        radial-gradient(circle at 28% 8%, rgba(56, 189, 248, 0.22), transparent 36%),
        linear-gradient(180deg, #e0f2fe 0%, #eff6ff 38%, #f8fafc 100%);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
    outline: none;
}

.builder-stage::before,
.builder-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.builder-stage::before {
    z-index: 0;
    opacity: var(--altitude);
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
        radial-gradient(circle at 68% 18%, rgba(255, 255, 255, 0.75) 0 1px, transparent 2px),
        radial-gradient(circle at 82% 48%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px),
        radial-gradient(circle at 42% 62%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
        linear-gradient(180deg, #172554 0%, #0f172a 48%, #020617 100%);
    background-size: 160px 160px, 220px 220px, 190px 190px, 260px 260px, 100% 100%;
    transition: opacity 0.4s ease;
}

.builder-stage::after {
    z-index: 1;
    opacity: calc(1 - var(--altitude));
    background:
        radial-gradient(circle at 18% 34%, rgba(255, 255, 255, 0.82) 0 28px, transparent 29px),
        radial-gradient(circle at 28% 34%, rgba(255, 255, 255, 0.72) 0 42px, transparent 43px),
        radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.72) 0 30px, transparent 31px),
        radial-gradient(circle at 88% 28%, rgba(255, 255, 255, 0.62) 0 45px, transparent 46px);
    animation: builderClouds 22s linear infinite;
    transform: translateY(var(--cloud-shift, 0px));
    transition: opacity 0.4s ease;
}

.builder-time-readout,
.builder-height-readout {
    position: absolute;
    top: 1rem;
    z-index: 4;
    padding: 0.65rem 0.85rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.builder-time-readout {
    left: 1rem;
}

.builder-height-readout {
    right: 1rem;
}

.builder-time-readout span,
.builder-height-readout span {
    display: block;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.builder-time-readout strong,
.builder-height-readout strong {
    display: block;
    margin-top: 0.18rem;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 900;
}

.builder-wrecking-ball {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 4;
    width: 92px;
    height: 172px;
    margin-left: -46px;
    transform-origin: 50% 0;
    animation: wreckingIdle var(--swing-duration, 1.65s) ease-in-out infinite;
}

.builder-wrecking-ball.from-left {
    animation: wreckingSwingLeft 0.82s ease-out, wreckingIdle var(--swing-duration, 1.65s) ease-in-out 0.82s infinite;
}

.builder-wrecking-ball.from-right {
    animation: wreckingSwingRight 0.82s ease-out, wreckingIdle var(--swing-duration, 1.65s) ease-in-out 0.82s infinite;
}

.builder-wrecking-ball.is-dropping {
    animation: none;
}

.builder-wrecking-ball.is-dropping .builder-ball-cable {
    animation: cableSnap 0.2s ease-out forwards;
}

.builder-wrecking-ball.is-dropping .builder-ball {
    animation: wreckingDrop 0.42s cubic-bezier(0.7, 0, 0.95, 0.55) forwards;
}

.builder-ball-cable {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 101px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, #94a3b8, #475569);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.builder-ball {
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 74px;
    height: 74px;
    transform: translateX(-50%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: lowercase;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.42), transparent 24%),
        linear-gradient(145deg, #64748b 0%, #475569 58%, #334155 100%);
    border: 3px solid #cbd5e1;
    box-shadow:
        0 14px 24px rgba(15, 23, 42, 0.28),
        inset 0 4px 0 rgba(255, 255, 255, 0.18),
        inset 0 -8px 0 rgba(15, 23, 42, 0.18);
}

.builder-result-height {
    display: inline-block;
    padding: 0.18rem 0.48rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #78350f;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.24);
}

.builder-ball::before,
.builder-ball::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.28);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.34);
}

.builder-ball::before {
    width: 10px;
    height: 10px;
    left: 15px;
    bottom: 18px;
}

.builder-ball::after {
    width: 10px;
    height: 10px;
    right: 15px;
    top: 18px;
}

.builder-skyline {
    position: absolute;
    inset: auto 0 54px;
    height: 120px;
    background:
        linear-gradient(90deg, transparent 0 5%, rgba(15, 23, 42, 0.08) 5% 12%, transparent 12% 18%, rgba(15, 23, 42, 0.1) 18% 28%, transparent 28% 35%, rgba(15, 23, 42, 0.07) 35% 48%, transparent 48% 100%);
    opacity: 0.7;
    transform: translateY(var(--tower-shift, 0px));
    transition: transform 0.28s ease;
    z-index: 1;
}

.builder-ground {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58px;
    background: linear-gradient(180deg, #94a3b8, #475569);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
    transform: translateY(var(--tower-shift, 0px));
    transition: transform 0.28s ease;
    z-index: 2;
}

.builder-structure {
    position: absolute;
    left: 50%;
    bottom: 58px;
    width: min(260px, 54%);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    transform: translate(-50%, var(--tower-shift, 0px));
    transition: transform 0.28s ease;
    z-index: 3;
}

.builder-stage.is-reviewing .builder-structure {
    animation: builderReviewPan 7s ease-in-out forwards;
}

.builder-stage.is-reviewing::before {
    animation: builderSpaceReview 7s ease-in-out forwards;
}

.builder-stage.is-reviewing::after {
    animation: builderCloudReview 7s ease-in-out forwards;
}

.builder-stage.is-reviewing .builder-ground,
.builder-stage.is-reviewing .builder-skyline {
    animation: builderGroundReviewPan 7s ease-in-out forwards;
}

.builder-block {
    width: 100%;
    max-width: 250px;
    height: 22px;
    margin-top: 3px;
    border-radius: 6px;
    transform: translateX(var(--lean, 0));
    display: grid;
    place-items: center;
    color: #92400e;
    font-size: 0.8rem;
    font-weight: 900;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 42%),
        repeating-linear-gradient(90deg, rgba(127, 29, 29, 0.18) 0 2px, transparent 2px 48px),
        repeating-linear-gradient(0deg, rgba(127, 29, 29, 0.22) 0 2px, transparent 2px 11px),
        linear-gradient(145deg, #f97316, #b45309);
    box-shadow: 0 5px 10px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: blockDrop 0.18s ease both;
}

.builder-block:nth-child(3n) {
    width: 88%;
}

.builder-block:nth-child(4n) {
    width: 96%;
}

.builder-block.time {
    color: #78350f;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.34), transparent 42%),
        repeating-linear-gradient(90deg, rgba(146, 64, 14, 0.18) 0 2px, transparent 2px 48px),
        repeating-linear-gradient(0deg, rgba(146, 64, 14, 0.2) 0 2px, transparent 2px 11px),
        linear-gradient(145deg, #fde047, #f59e0b);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.38);
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
}

.builder-block.time i {
    font-size: 0.8rem;
}

.builder-block.time span {
    font-size: 0.75rem;
    font-weight: 900;
}

.builder-block.solid {
    color: transparent;
}

.builder-block.is-cracked {
    position: relative;
    filter: saturate(0.75) brightness(0.9);
    animation: brickCrack 0.18s ease both;
}

.builder-block.is-cracked::before,
.builder-block.is-cracked::after {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    width: 3px;
    border-radius: 999px;
    background: rgba(69, 26, 3, 0.68);
    transform: rotate(18deg);
}

.builder-block.is-cracked::before {
    left: 38%;
}

.builder-block.is-cracked::after {
    right: 30%;
    transform: rotate(-22deg);
}

@keyframes meteorPop {
    to {
        opacity: 0;
        transform: scale(1.8) !important;
        filter: brightness(1.4);
    }
}

@keyframes meteorMiss {
    to {
        opacity: 0;
        transform: scale(0.55) !important;
    }
}

@keyframes zombieRun {
    50% {
        transform: translateY(-5px);
    }
}

@keyframes zombieWobble {
    50% {
        transform: translateY(-4px) rotate(-2deg);
    }
}

@keyframes cityScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-480px);
    }
}

@keyframes roadScroll {
    from {
        background-position: 0 0, 0 0, 0 0;
    }

    to {
        background-position: 0 0, -300px 0, 0 0;
    }
}

@keyframes laneHeartPulse {
    50% {
        filter: brightness(1.08);
        box-shadow: 0 12px 24px rgba(220, 38, 38, 0.34);
    }
}

@keyframes laneDeliveryPulse {
    50% {
        filter: brightness(1.04);
        box-shadow: 0 14px 28px rgba(245, 158, 11, 0.36);
    }
}

@keyframes courierDamage {
    20%, 60% {
        transform: translateX(-7px);
    }

    40%, 80% {
        transform: translateX(7px);
    }
}

@keyframes courierBlink {
    50% {
        opacity: 0.22;
    }
}

@keyframes dirtScroll {
    from {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
    }

    to {
        background-position: 0 0, -140px 0, -180px 0, -220px 0, 0 0;
    }
}

@keyframes sidewalkScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -68px 0;
    }
}

@keyframes cityClouds {
    from {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
    }

    to {
        background-position: 180px 0, 180px 0, 180px 0, -140px 0, -140px 0;
    }
}

@keyframes mazePulse {
    50% {
        transform: scale(1.05);
    }
}

@keyframes mazeWrong {
    20%, 60% {
        transform: translateX(-5px);
    }

    40%, 80% {
        transform: translateX(5px);
    }
}

@keyframes blockDrop {
    from {
        opacity: 0;
        transform: translateY(-14px) translateX(var(--lean, 0));
    }

    to {
        opacity: 1;
        transform: translateY(0) translateX(var(--lean, 0));
    }
}

@keyframes builderClouds {
    from {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }

    to {
        background-position: 180px 0, 180px 0, -160px 0, -160px 0;
    }
}

@keyframes wreckingIdle {
    0%, 100% {
        transform: rotate(calc(var(--swing-angle, 11deg) * -1));
    }

    50% {
        transform: rotate(var(--swing-angle, 11deg));
    }
}

@keyframes wreckingSwingLeft {
    0% {
        transform: translateX(-34vw) rotate(-36deg);
    }

    70% {
        transform: translateX(0) rotate(10deg);
    }

    100% {
        transform: translateX(0) rotate(calc(var(--swing-angle, 11deg) * -1));
    }
}

@keyframes wreckingSwingRight {
    0% {
        transform: translateX(34vw) rotate(36deg);
    }

    70% {
        transform: translateX(0) rotate(-10deg);
    }

    100% {
        transform: translateX(0) rotate(var(--swing-angle, 11deg));
    }
}

@keyframes wreckingDrop {
    0% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }

    72% {
        transform: translateX(-50%) translateY(var(--impact-drop, 220px)) rotate(12deg);
    }

    100% {
        transform: translateX(-50%) translateY(calc(var(--impact-drop, 220px) - 8px)) rotate(-6deg);
    }
}

@keyframes cableSnap {
    to {
        height: 22px;
        opacity: 0.25;
    }
}

@keyframes brickCrack {
    0% {
        transform: translateX(var(--lean, 0));
    }

    45% {
        transform: translateX(calc(var(--lean, 0) - 6px)) rotate(-1deg);
    }

    100% {
        transform: translateX(calc(var(--lean, 0) + 5px)) rotate(1deg);
    }
}

@keyframes builderReviewPan {
    0% {
        transform: translate(-50%, var(--review-start, 0px));
    }

    14% {
        transform: translate(-50%, var(--review-start, 0px));
    }

    100% {
        transform: translate(-50%, 0);
    }
}

@keyframes builderSpaceReview {
    0% {
        opacity: var(--altitude);
    }

    18% {
        opacity: var(--altitude);
    }

    100% {
        opacity: 0;
    }
}

@keyframes builderCloudReview {
    0% {
        opacity: calc(1 - var(--altitude));
        transform: translateY(var(--cloud-shift, 0px));
    }

    18% {
        opacity: calc(1 - var(--altitude));
        transform: translateY(var(--cloud-shift, 0px));
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes builderGroundReviewPan {
    0% {
        transform: translateY(var(--review-start, 0px));
    }

    14% {
        transform: translateY(var(--review-start, 0px));
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .meteor-panel,
    .maze-panel,
    .builder-panel {
        grid-template-columns: 1fr;
    }

    .meteor-stats,
    .maze-stats,
    .builder-stats,
    .lane-dash-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .maze-game-layout,
    .builder-layout {
        grid-template-columns: 1fr;
    }

    .maze-side-card {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .meteor-stage {
        min-height: 390px;
        height: 58vh;
    }

    .lane-dash-stage {
        min-height: 460px;
    }

    .lane-grass {
        height: 86px;
    }

    .lane-road {
        top: 86px;
        bottom: 86px;
    }

    .courier-truck {
        width: 78px;
        height: 46px;
    }

    .truck-box {
        width: 50px;
        height: 34px;
    }

    .truck-cabin {
        width: 32px;
        height: 32px;
    }

    .lane-letter-options {
        grid-template-columns: 1fr;
    }

    .zombie-runner {
        width: 72px;
        height: 92px;
        border-radius: 0;
        bottom: 90px;
    }

    .runner-gif {
        width: 92px;
        height: 98px;
    }

    .zombie-gif {
        width: 86px;
        height: 88px;
    }

    .zombie-enemy {
        width: 76px;
        height: 88px;
        bottom: 90px;
    }

    .zombie-body {
        width: 46px;
        height: 54px;
    }

    .zombie-head {
        width: 38px;
        height: 31px;
    }

    .zombie-arms {
        width: 68px;
    }

    .zombie-word-card {
        top: 0.75rem;
        padding: 0.8rem;
    }

    .game-card {
        min-height: 230px;
    }

    .maze-side-card {
        grid-template-columns: 1fr;
    }

    .maze-board-shell {
        min-height: 420px;
        padding: 0.7rem;
    }

    .maze-board {
        min-height: 390px;
        gap: 4px;
    }

    .maze-cell {
        border-radius: 8px;
        min-height: 32px;
        font-size: 0.9rem;
    }

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

    .builder-stage {
        min-height: 430px;
    }

    .builder-time-readout,
    .builder-height-readout {
        top: 0.65rem;
        padding: 0.5rem 0.65rem;
    }

    .builder-time-readout {
        left: 0.65rem;
    }

    .builder-height-readout {
        right: 0.65rem;
    }

    .builder-time-readout strong,
    .builder-height-readout strong {
        font-size: 1rem;
    }

    .builder-wrecking-ball {
        width: 70px;
        height: 132px;
    }

    .builder-ball-cable {
        height: 88px;
    }

    .builder-ball {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .builder-structure {
        width: min(220px, 68%);
    }
}

/* AdSense placement rails */
.wordper-ads-rails {
    pointer-events: none;
}

.wordper-ads-rail {
    position: fixed;
    top: 7.5rem;
    z-index: 40;
    width: 160px;
    max-height: calc(100vh - 9rem);
    pointer-events: auto;
}

.wordper-ads-rail--left {
    left: max(6px, env(safe-area-inset-left, 0px));
}

.wordper-ads-rail--right {
    right: max(6px, env(safe-area-inset-right, 0px));
}

.wordper-adsense-slot {
    overflow: hidden;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px dashed rgba(148, 163, 184, 0.45);
}

.wordper-adsense-slot--vertical {
    min-height: 250px;
    width: 100%;
}

.wordper-adsense-slot--horizontal {
    min-height: 90px;
    width: 100%;
    margin: 1rem 0;
}

.wordper-adsense-slot--placeholder {
    min-height: 90px;
    background: repeating-linear-gradient(
        -45deg,
        rgba(241, 245, 249, 0.95),
        rgba(241, 245, 249, 0.95) 10px,
        rgba(226, 232, 240, 0.75) 10px,
        rgba(226, 232, 240, 0.75) 20px
    );
}

.wordper-adsense-slot--vertical.wordper-adsense-slot--placeholder {
    min-height: 600px;
}

.wordper-ads-page-footer {
    width: 100%;
    margin-top: 1.5rem;
}

/* —— Site footer + content / blog / legal pages —— */
.site-footer {
    margin-top: 2.5rem;
    padding: 1.75rem 0 0.5rem;
    border-top: 1px solid rgba(37, 167, 204, 0.18);
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.site-footer__logo {
    font-weight: 800;
    font-size: 1.15rem;
    color: #0f172a;
    text-decoration: none;
}

.site-footer__tagline {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.92rem;
    max-width: 36rem;
    line-height: 1.5;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.site-footer__nav a {
    color: #0f4c5c;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.site-footer__nav a:hover {
    color: #25a7cc;
    text-decoration: underline;
}

.site-footer__copy {
    margin: 0;
    color: #94a3b8;
    font-size: 0.82rem;
}

.content-page {
    width: min(860px, 100%);
    margin: 0 auto 1rem;
    padding: 0.5rem 0.15rem 1rem;
    box-sizing: border-box;
}

.content-page--article {
    width: min(760px, 100%);
}

.content-page__header {
    margin-bottom: 1.25rem;
}

.content-page__brand {
    margin: 0 0 1.1rem;
}

.content-page__brand--in-body {
    margin: 0 0 1.35rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    display: flex;
    justify-content: center;
}

.content-page__brand-logo {
    display: block;
    height: 72px;
    width: auto;
    max-width: min(220px, 70vw);
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}

.content-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.65rem;
    color: #25a7cc;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.content-page__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.2;
    color: #0f172a;
    font-weight: 800;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.content-page__lead {
    margin: 0;
    color: #475569;
    font-size: clamp(1rem, 2.6vw, 1.1rem);
    font-weight: 400;
    line-height: 1.65;
    max-width: 58ch;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.content-page__back {
    margin: 0 0 1.25rem;
}

.content-page__back a {
    color: #0f4c5c;
    font-weight: 600;
    text-decoration: none;
}

.content-page__back a:hover {
    color: #25a7cc;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

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

.blog-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    border-color: rgba(37, 167, 204, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 76, 92, 0.08);
}

.blog-card__link {
    display: block;
    padding: 1.15rem 1.2rem 1.25rem;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.blog-card__date {
    display: block;
    margin-bottom: 0.45rem;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
}

.blog-card__title {
    margin: 0 0 0.55rem;
    font-size: 1.08rem;
    line-height: 1.35;
    color: #0f172a;
    font-weight: 750;
}

.blog-card__excerpt {
    margin: 0 0 0.9rem;
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.55;
}

.blog-card__cta {
    color: #25a7cc;
    font-weight: 700;
    font-size: 0.9rem;
}

.article-prose {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    padding: 1.5rem 1.4rem 1.75rem;
}

.article-prose__header {
    margin-bottom: 1.35rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.article-prose__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.35rem 0 0.85rem;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 600;
}

.article-prose__body {
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.75;
}

.article-prose__body h2 {
    margin: 1.75rem 0 0.7rem;
    font-size: 1.28rem;
    color: #0f172a;
    line-height: 1.3;
}

.article-prose__body h2:first-child {
    margin-top: 0;
}

.article-prose__body p {
    margin: 0 0 1rem;
}

.article-prose__body ul {
    margin: 0 0 1.1rem;
    padding-left: 1.25rem;
}

.article-prose__body li {
    margin-bottom: 0.4rem;
}

.article-prose__body strong {
    color: #0f172a;
}

.blog-related {
    margin-top: 2rem;
}

.blog-related__title {
    margin: 0 0 0.85rem;
    font-size: 1.2rem;
    color: #0f172a;
}

@media (max-width: 760px) {
    .content-page {
        width: 100%;
        padding: 0.35rem 0 1rem;
    }

    .content-page__title {
        font-size: clamp(1.45rem, 6.5vw, 1.9rem);
        line-height: 1.22;
        margin-bottom: 0.55rem;
    }

    .content-page__brand-logo {
        height: 56px;
        max-width: min(180px, 65vw);
    }

    .content-page__lead {
        font-size: 0.98rem;
        line-height: 1.55;
        max-width: none;
        width: 100%;
    }

    .blog-grid,
    .blog-grid--compact {
        grid-template-columns: 1fr;
    }

    .article-prose {
        padding: 1.15rem 0.85rem 1.35rem;
    }
}

.wordper-adsense-slot ins.adsbygoogle {
    display: block;
}

@media (max-width: 1120px) {
    .wordper-ads-rail {
        display: none;
    }
}

[data-adsense-rails="practice"] .wordper-ads-rail {
    top: 5.5rem;
}

.practice.css ~ body .wordper-ads-rail,
body:has(.word-display-container) .wordper-ads-rail {
    top: 5.5rem;
}

/* ========== Keyboard Academy ========== */
.keyboard-academy-page .container {
    max-width: min(1120px, 100%);
}

.keyboard-academy-page .academy-shell,
.keyboard-academy-page .academy-lesson-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding-bottom: 2.5rem;
}

.keyboard-academy-page .academy-stats {
    margin: 0 0 1.35rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.keyboard-academy-page .academy-stats .academy-stat {
    min-width: 0;
    padding: 1rem 0.9rem;
    gap: 0.85rem;
}

@media (max-width: 768px) {
    .keyboard-academy-page .academy-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .keyboard-academy-page .academy-stats .academy-stat {
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
        flex-direction: column;
        text-align: center;
    }

    .keyboard-academy-page .academy-stats .stat-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.keyboard-academy-page .academy-stat {
    cursor: default;
    pointer-events: none;
}

.keyboard-academy-page .academy-stat:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.keyboard-academy-page .academy-stat .stat-icon {
    background: linear-gradient(145deg, color-mix(in srgb, var(--primary-color) 14%, #ffffff), #ffffff);
    color: color-mix(in srgb, var(--primary-color) 82%, #0f172a);
}

.keyboard-academy-page .academy-continue {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.75rem;
    box-sizing: border-box;
}

.keyboard-academy-page .academy-continue > i {
    width: 52px;
    height: 52px;
    margin: 0;
    flex: 0 0 52px;
}

.keyboard-academy-page .academy-continue .main-button-content {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.keyboard-academy-page .academy-continue-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--primary-color) 78%, #0f172a);
}

.keyboard-academy-page .academy-continue-arrow {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 1.05rem;
    border-radius: 14px;
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(37, 167, 204, 0.28);
}

.keyboard-academy-page .academy-continue-arrow i,
.keyboard-academy-page .academy-continue-arrow .fas {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
    border-radius: 0 !important;
    display: inline-block !important;
    place-items: unset !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
    color: #ffffff !important;
    background: none !important;
    box-shadow: none !important;
}

.keyboard-academy-page .academy-units-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0 0 0.85rem;
}

.keyboard-academy-page .academy-units-header .leaderboard-title {
    margin: 0;
    padding: 0;
}

.keyboard-academy-page .academy-units-tools {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.keyboard-academy-page .academy-units-count {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, #ffffff);
}

.keyboard-academy-page .academy-progress-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.keyboard-academy-page .academy-hub-tool-btn {
    cursor: pointer;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
}

.keyboard-academy-page .academy-hub-tool-btn.is-active {
    border-color: rgba(22, 163, 74, 0.45);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(220, 252, 231, 0.95));
    color: #166534;
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.12);
}

.keyboard-academy-page .academy-hub-tool-btn.is-active i {
    color: #16a34a;
}

.keyboard-academy-page .academy-hub-tool-btn--danger {
    border-color: rgba(225, 29, 72, 0.32);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 241, 242, 0.95));
    color: #9f1239;
    box-shadow: 0 6px 14px rgba(225, 29, 72, 0.1);
}

.keyboard-academy-page .academy-hub-tool-btn--danger i {
    color: #e11d48;
}

.keyboard-academy-page .academy-hub-tool-btn--danger:hover {
    border-color: rgba(225, 29, 72, 0.5);
    box-shadow: 0 10px 18px rgba(225, 29, 72, 0.16);
    color: #881337;
}

.keyboard-academy-page .academy-unit {
    margin-bottom: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.keyboard-academy-page .academy-unit.is-complete {
    border-color: color-mix(in srgb, #16a34a 28%, #ffffff);
    background:
        radial-gradient(circle at 100% 0%, rgba(22, 163, 74, 0.08), transparent 42%),
        rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.08);
}

.keyboard-academy-page .academy-unit .leaderboard-title-row {
    margin-bottom: 0.65rem;
}

.keyboard-academy-page .academy-unit.is-complete .academy-unit-icon {
    background: linear-gradient(145deg, #dcfce7, #ffffff);
    color: #15803d;
    border-color: #bbf7d0;
}

.keyboard-academy-page .academy-unit-progress {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #f1f5f9;
}

.keyboard-academy-page .academy-unit-progress.is-complete {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.keyboard-academy-page .academy-lesson-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.keyboard-academy-page .academy-lesson-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0.65rem;
    border-radius: 16px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.keyboard-academy-page .academy-lesson-row:hover:not(.is-locked) {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--primary-color) 28%, #ffffff);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.keyboard-academy-page .academy-lesson-row.is-locked {
    opacity: 0.5;
    pointer-events: none;
}

.keyboard-academy-page .academy-lesson-row.is-next {
    border-color: color-mix(in srgb, var(--primary-color) 38%, #ffffff);
    background: linear-gradient(135deg, rgba(37, 167, 204, 0.08), rgba(255, 255, 255, 0.96));
    box-shadow: 0 10px 24px rgba(37, 167, 204, 0.1);
}

.keyboard-academy-page .academy-lesson-row.is-done {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.07), rgba(255, 255, 255, 0.96));
    border-color: color-mix(in srgb, #16a34a 22%, #ffffff);
}

.keyboard-academy-page .academy-lesson-row.is-done .academy-lesson-num,
.keyboard-academy-page .academy-lesson-num.is-complete {
    background: linear-gradient(145deg, #16a34a, #15803d);
    color: #fff;
    border-color: color-mix(in srgb, #16a34a 40%, #ffffff);
    font-size: 0.78rem;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.28);
}

.keyboard-academy-page .academy-lesson-num {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 800;
    background: #eef2f7;
    border: 1px solid #e2e8f0;
    color: var(--text-primary);
}

.keyboard-academy-page .academy-lesson-body strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.keyboard-academy-page .academy-lesson-body small {
    display: block;
    margin-top: 0.15rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

.keyboard-academy-page .academy-lesson-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.28rem;
}

.keyboard-academy-page .academy-lesson-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.keyboard-academy-page .academy-lesson-stars {
    letter-spacing: 0.08em;
    color: #dbe3ee;
    font-size: 1rem;
    font-weight: 700;
}

.keyboard-academy-page .academy-lesson-stars .on {
    color: #f59e0b;
}

.keyboard-academy-page .academy-lesson-lock {
    color: #94a3b8;
    font-size: 0.85rem;
}

.keyboard-academy-page .academy-problems {
    margin-top: 1.35rem;
}

.keyboard-academy-page .academy-problems-empty {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin: 0 0 0.35rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid #e8eef5;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--primary-color) 7%, #ffffff), #ffffff);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.keyboard-academy-page .academy-problems-empty[hidden] {
    display: none !important;
}

.keyboard-academy-page .academy-problems-empty__icon {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: color-mix(in srgb, var(--primary-color) 85%, #0f172a);
    background: linear-gradient(145deg, color-mix(in srgb, var(--primary-color) 16%, #ffffff), #ffffff);
    border: 1px solid color-mix(in srgb, var(--primary-color) 22%, #ffffff);
    font-size: 0.95rem;
}

.keyboard-academy-page .academy-problems-empty__body {
    min-width: 0;
}

.keyboard-academy-page .academy-problems-empty__body strong {
    display: block;
    margin: 0.05rem 0 0.2rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.keyboard-academy-page .academy-problems-empty__body p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-secondary);
    font-weight: 600;
}

.keyboard-academy-page .academy-problem-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 0.95rem;
}

.keyboard-academy-page .academy-problem-keys[hidden] {
    display: none !important;
}

.keyboard-academy-page .academy-problem-key {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 2.8rem;
    justify-content: center;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #fecdd3;
    background: linear-gradient(180deg, #fff1f2, #ffe4e6);
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 800;
    color: #9f1239;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.08);
}

.keyboard-academy-page .academy-problem-key small {
    font-family: Manrope, system-ui, sans-serif;
    font-weight: 700;
    opacity: 0.75;
}

.keyboard-academy-page .academy-problem-cta {
    margin-top: 0.15rem;
}

.keyboard-academy-page .academy-problem-cta[hidden] {
    display: none !important;
}

.keyboard-academy-page .academy-problem-cta i {
    color: #d97706;
}

.keyboard-academy-page a.academy-problem-cta {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(180deg, #fff8e8, #ffe8b8);
    color: #8a5300;
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.14);
}

.keyboard-academy-page a.academy-problem-cta:hover {
    border-color: rgba(217, 119, 6, 0.55);
    box-shadow: 0 10px 18px rgba(245, 158, 11, 0.2);
    color: #7a4500;
}

/* Lesson player */
.keyboard-academy-lesson .academy-lesson-panel {
    padding: 1.15rem 1.2rem 1.25rem;
}

.keyboard-academy-lesson .academy-lesson-brand-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem 1rem;
    flex-wrap: nowrap;
    margin-bottom: 0.35rem;
}

.keyboard-academy-lesson .academy-lesson-heading {
    margin: 0;
    min-width: 0;
    justify-self: start;
}

.keyboard-academy-lesson .academy-lesson-heading .leaderboard-title__text {
    font-size: clamp(1rem, 2.4vw, 1.25rem);
}

.keyboard-academy-lesson .academy-lesson-logo {
    justify-self: center;
    display: flex;
    align-items: center;
    margin: 0;
}

.keyboard-academy-lesson .academy-lesson-logo img {
    height: 52px;
    width: auto;
    display: block;
}

.keyboard-academy-lesson .academy-lesson-brand-spacer {
    justify-self: end;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.keyboard-academy-lesson .academy-lesson-hub-btn {
    flex-shrink: 0;
}

/* Lesson page has no site header — language dock (bottom-left) */
.keyboard-academy-lesson .site-language-switcher {
    position: relative;
    display: inline-flex;
}

.keyboard-academy-lesson .site-language-switcher--dock {
    position: fixed;
    left: max(1rem, env(safe-area-inset-left, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    z-index: 1300;
    margin: 0;
}

.keyboard-academy-lesson .lang-switch-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.4rem 0.8rem;
    border: 1px solid color-mix(in srgb, var(--primary-color) 22%, #dbe6ff);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #1e293b;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.12),
        0 2px 6px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.2s;
}

.keyboard-academy-lesson .lang-switch-toggle:hover,
.keyboard-academy-lesson .site-language-switcher.is-open .lang-switch-toggle {
    border-color: color-mix(in srgb, var(--primary-color) 45%, #ffffff);
    background: #fff;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.keyboard-academy-lesson .lang-switch-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.keyboard-academy-lesson .lang-switch-current {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.keyboard-academy-lesson .lang-switch-caret {
    display: inline-flex;
    color: #64748b;
    font-size: 0.68rem;
    transition: transform 0.2s ease;
}

.keyboard-academy-lesson .site-language-switcher.is-open .lang-switch-caret {
    transform: rotate(180deg);
}

.keyboard-academy-lesson .lang-switch-menu {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 0;
    top: auto;
    right: auto;
    z-index: 1200;
    min-width: 196px;
    max-height: min(60vh, 320px);
    overflow-y: auto;
    padding: 0.35rem;
    border: 1px solid #e2e8f3;
    border-radius: 12px;
    background: #fff;
    box-shadow:
        0 -10px 28px rgba(15, 23, 42, 0.12),
        0 16px 34px rgba(15, 23, 42, 0.14),
        0 4px 10px rgba(15, 23, 42, 0.06);
}

.keyboard-academy-lesson .lang-switch-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.keyboard-academy-lesson .lang-switch-option img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.keyboard-academy-lesson .lang-switch-option-label {
    flex: 1 1 auto;
    min-width: 0;
}

.keyboard-academy-lesson .lang-switch-option-check {
    color: var(--primary-color);
    font-size: 0.75rem;
}

.keyboard-academy-lesson .lang-switch-option:hover,
.keyboard-academy-lesson .lang-switch-option.is-active {
    background: color-mix(in srgb, var(--primary-color) 8%, white);
    color: #0f172a;
}

.keyboard-academy-page .academy-lesson-subtitle {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.keyboard-academy-page .academy-screen-chunks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.75rem 0 1rem;
}

.keyboard-academy-page .ka-screen-pill {
    flex: 1 1 0;
    min-width: 32px;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    font-size: 0;
    color: transparent;
    overflow: hidden;
}

.keyboard-academy-page .ka-screen-pill.is-done {
    background: #22c55e;
}

.keyboard-academy-page .ka-screen-pill.is-active {
    background: var(--primary-color);
    height: 10px;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 22%, #ffffff);
}

.keyboard-academy-page .academy-type-hint {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 0 0.85rem;
    transition: color 0.2s ease;
}

.keyboard-academy-page .academy-type-hint.is-streak-warn {
    color: #be123c;
}

.keyboard-academy-page .ka-char--space {
    display: inline-flex;
    min-width: 0.58em;
    width: 0.58em;
    padding: 0.08em 0;
    color: transparent;
    border-radius: 4px;
}

.keyboard-academy-page .ka-char--space.ka-char--current {
    color: transparent;
    background: color-mix(in srgb, var(--primary-color) 18%, #ffffff);
    box-shadow:
        0 0 0 2px color-mix(in srgb, var(--primary-color) 55%, #ffffff),
        0 8px 18px rgba(37, 167, 204, 0.16);
}

.keyboard-academy-page .ka-char--space.ka-char--correct,
.keyboard-academy-page .ka-char--space.ka-char--corrected {
    background: rgba(22, 163, 74, 0.12);
}

.keyboard-academy-page .ka-char--space.ka-char--wrong {
    background: rgba(225, 29, 72, 0.14);
    text-decoration: none;
}

.keyboard-academy-page .academy-hud {
    margin: 0 0 1rem;
}

.keyboard-academy-page .academy-hud[hidden],
.keyboard-academy-lesson.academy-intro-open .academy-hud,
.keyboard-academy-lesson.academy-intro-open .academy-typing-wrap {
    display: none !important;
}

.keyboard-academy-page .academy-hud .academy-stat {
    padding: 1rem 1.15rem;
}

.keyboard-academy-page .academy-hud .stat-value {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.keyboard-academy-page .academy-hud .stat-label {
    font-size: 0.78rem;
}

.keyboard-academy-page .academy-keyboard-shell {
    padding: 0.85rem;
    border-radius: 16px;
    background: #eef2f7;
    border: 1px solid #dde5ef;
    box-shadow: none;
    overflow: visible;
}

.keyboard-academy-lesson {
    overflow-x: hidden;
}

.keyboard-academy-lesson.academy-result-open {
    overflow: hidden;
}

.keyboard-academy-page .academy-typing-wrap {
    position: relative;
    margin-bottom: 1rem;
    overflow: hidden;
    overscroll-behavior: contain;
    border-radius: 18px;
}

.keyboard-academy-page .academy-keyboard-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: transparent;
    caret-color: transparent;
    opacity: 0;
    z-index: 2;
    cursor: text;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 16px;
    line-height: 1.5;
}

.keyboard-academy-page .academy-typing {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    gap: 0.18rem 0.12rem;
    width: 100%;
    box-sizing: border-box;
    padding: 1.65rem 1.35rem;
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--primary-color) 10%, transparent), transparent 55%),
        #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0.06em;
    min-height: 7.5rem;
    max-height: 11rem;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: center;
    user-select: none;
    pointer-events: none;
    scrollbar-width: thin;
}

.keyboard-academy-page .academy-typing-wrap.is-long .academy-typing {
    font-size: 1.35rem;
    letter-spacing: 0.045em;
    line-height: 1.75;
    min-height: 8rem;
    max-height: 11rem;
    padding: 1.35rem 1.2rem;
}

.keyboard-academy-page .ka-char {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0.78em;
    text-align: center;
    color: #94a3b8;
    border-radius: 8px;
    padding: 0.08em 0.04em;
    font-variant-ligatures: none;
}

.keyboard-academy-page .ka-char--current {
    color: #0f172a;
    background: #ffffff;
    box-shadow:
        0 0 0 2px color-mix(in srgb, var(--primary-color) 55%, #ffffff),
        0 8px 18px rgba(37, 167, 204, 0.16);
}

.keyboard-academy-page .ka-char--correct {
    color: #15803d;
    background: rgba(22, 163, 74, 0.16);
}

.keyboard-academy-page .ka-char--wrong {
    color: #be123c;
    background: rgba(225, 29, 72, 0.16);
    text-decoration: none;
}

.keyboard-academy-page .ka-char--corrected {
    color: #b45309;
    background: rgba(245, 158, 11, 0.16);
}

.keyboard-academy-page .ka-keyboard {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    user-select: none;
}

.keyboard-academy-page .ka-keyboard__row {
    display: flex;
    gap: 0.34rem;
    width: 100%;
}

.keyboard-academy-page .ka-key {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    min-height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid #dbe3ee;
    background: #ffffff;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: none;
    transition: background 0.08s ease, border-color 0.08s ease, color 0.08s ease;
    cursor: default;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.keyboard-academy-page .ka-key[data-width="1.25"] { flex: 1.25 1 0; }
.keyboard-academy-page .ka-key[data-width="1.5"] { flex: 1.5 1 0; }
.keyboard-academy-page .ka-key[data-width="1.75"] { flex: 1.75 1 0; }
.keyboard-academy-page .ka-key[data-width="2"] { flex: 2 1 0; }
.keyboard-academy-page .ka-key[data-width="2.25"] { flex: 2.25 1 0; }
.keyboard-academy-page .ka-key[data-width="2.75"] { flex: 2.75 1 0; }
.keyboard-academy-page .ka-key[data-width="5"],
.keyboard-academy-page .ka-key--space { flex: 5 1 0; }
.keyboard-academy-page .ka-key[data-width="6.5"] { flex: 6.5 1 0; }

.keyboard-academy-page .ka-key--special {
    font-size: 0.62rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    text-transform: none;
    letter-spacing: 0;
}

.keyboard-academy-page .ka-key__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
    line-height: 1.05;
    pointer-events: none;
}

.keyboard-academy-page .ka-key__shift {
    display: block;
    opacity: 0.42;
    font-size: 0.58em;
    font-weight: 650;
    line-height: 1;
}

.keyboard-academy-page .ka-keyboard.ka-keyboard--simple .ka-key__label {
    gap: 0;
}

.keyboard-academy-page .ka-keyboard.ka-keyboard--simple .ka-key__main,
.keyboard-academy-page .ka-keyboard.ka-keyboard--simple .ka-key__label {
    font-size: 1em;
    font-weight: 750;
}

.keyboard-academy-page .ka-key__main {
    display: block;
    font-size: 1em;
    font-weight: 750;
    line-height: 1;
}

.keyboard-academy-page .ka-keyboard.is-altgr .ka-key.is-altgr-active {
    background: linear-gradient(180deg, #fff7ed, #ffedd5);
    border-color: #f59e0b;
    color: #9a3412;
}

.keyboard-academy-page .ka-keyboard.is-altgr .ka-key.is-altgr-active .ka-key__main {
    color: #9a3412;
    font-weight: 800;
}

.keyboard-academy-page .ka-key.has-altgr .ka-key__shift {
    color: #b45309;
}

.keyboard-academy-page .ka-key.is-modifier-on,
.keyboard-academy-page .ka-keyboard.is-caps .ka-key[data-code="CapsLock"],
.keyboard-academy-page .ka-keyboard.is-shift-held .ka-key[data-code="ShiftLeft"],
.keyboard-academy-page .ka-keyboard.is-shift-held .ka-key[data-code="ShiftRight"] {
    background: linear-gradient(180deg, #e8f8fd, #cfeef8);
    border-color: var(--primary-color);
    color: #0c4a6e;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 2px 0 #5bb8d4;
}

.keyboard-academy-page .ka-key--space .ka-key__label {
    font-size: 0;
}

.keyboard-academy-page .ka-key--home {
    border-color: #94a3b8;
}

.keyboard-academy-page .ka-key__bump {
    position: absolute;
    bottom: 7px;
    left: 50%;
    width: 12px;
    height: 2px;
    margin-left: -6px;
    border-radius: 2px;
    background: #64748b;
}

.keyboard-academy-page .ka-key.is-expected {
    z-index: 2;
    border-color: var(--primary-color);
    background: #e8f8fd;
    color: #0c4a6e;
    box-shadow: 0 0 0 2px rgba(37, 167, 204, 0.22);
}

.keyboard-academy-page .ka-keyboard.is-intro-mode {
    overflow: visible;
    padding-top: 3.6rem;
}

.keyboard-academy-page .ka-keyboard.is-intro-mode .ka-key:not(.is-intro) {
    opacity: 0.28;
    filter: grayscale(0.35);
}

.keyboard-academy-page .ka-key.is-intro {
    z-index: 6;
    opacity: 1 !important;
    filter: none !important;
    border-color: color-mix(in srgb, var(--primary-color) 70%, #ffffff);
    background: linear-gradient(180deg, #f0fbff, #daf3fa);
    color: #0c4a6e;
    box-shadow:
        0 0 0 2px rgba(37, 167, 204, 0.35),
        0 12px 24px rgba(37, 167, 204, 0.2);
    transform: translateY(-3px) scale(1.08);
    animation: academy-intro-pulse 1.8s ease-in-out infinite;
}

.keyboard-academy-page .ka-key.is-intro-mod {
    transform: none;
    animation: none;
    background: linear-gradient(180deg, #fff8ef, #ffedd5);
    border-color: #f59e0b;
    color: #9a3412;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.28);
}

.keyboard-academy-page .ka-key.is-intro-mod .ka-key__intro-tip {
    display: none;
}

.keyboard-academy-page .ka-key__intro-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    pointer-events: none;
    z-index: 10;
    animation: academy-intro-tip 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--intro-delay, 0s);
}

.keyboard-academy-page .ka-key.is-intro:nth-child(1) .ka-key__intro-tip { animation-delay: var(--intro-delay, 0.05s); }
.keyboard-academy-page .ka-key.is-intro:nth-child(2) .ka-key__intro-tip { animation-delay: var(--intro-delay, 0.12s); }
.keyboard-academy-page .ka-key.is-intro:nth-child(3) .ka-key__intro-tip { animation-delay: var(--intro-delay, 0.18s); }
.keyboard-academy-page .ka-key.is-intro:nth-child(4) .ka-key__intro-tip { animation-delay: var(--intro-delay, 0.24s); }

.keyboard-academy-page .ka-key__intro-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    min-width: 2.6rem;
    padding: 0.45rem 0.65rem 0.4rem;
    border-radius: 14px;
    background:
        linear-gradient(165deg, #ffffff 0%, #f2fafd 100%);
    border: 1px solid color-mix(in srgb, var(--primary-color) 32%, #ffffff);
    box-shadow:
        0 14px 28px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.keyboard-academy-page .ka-key__intro-letter {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    color: color-mix(in srgb, var(--primary-color) 78%, #0f172a);
}

.keyboard-academy-page .ka-key__intro-caption {
    font-size: 0.58rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1;
}

.keyboard-academy-page .ka-key__intro-stem {
    width: 2px;
    height: 12px;
    margin-top: 2px;
    border-radius: 2px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--primary-color) 70%, #ffffff),
        color-mix(in srgb, var(--primary-color) 35%, transparent)
    );
}

.keyboard-academy-page .ka-key__intro-point {
    width: 8px;
    height: 8px;
    margin-top: -1px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--primary-color) 22%, transparent),
        0 4px 10px rgba(37, 167, 204, 0.35);
    animation: academy-intro-dot 1.6s ease-in-out infinite;
}

@keyframes academy-intro-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 2px rgba(37, 167, 204, 0.35),
            0 12px 24px rgba(37, 167, 204, 0.2);
    }
    50% {
        box-shadow:
            0 0 0 5px rgba(37, 167, 204, 0.14),
            0 14px 28px rgba(37, 167, 204, 0.26);
    }
}

@keyframes academy-intro-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.85; }
}

@keyframes academy-intro-tip {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.keyboard-academy-page .academy-key-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin: 0 0 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 24%, #ffffff);
    background:
        radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--primary-color) 12%, transparent), transparent 46%),
        linear-gradient(165deg, #ffffff, #f3fafd);
    text-align: left;
    box-shadow: 0 10px 24px rgba(37, 167, 204, 0.08);
}

.keyboard-academy-page .academy-key-intro[hidden] {
    display: none !important;
}

.keyboard-academy-page .academy-key-intro__main {
    min-width: 0;
    flex: 1 1 auto;
}

.keyboard-academy-page .academy-key-intro__eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--primary-color) 78%, #0f172a);
}

.keyboard-academy-page .academy-key-intro__keys {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
}

.keyboard-academy-page .academy-key-chip {
    position: relative;
    min-width: 2.4rem;
    min-height: 2.4rem;
    display: inline-grid;
    place-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 12px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--primary-color) 16%, #ffffff), #ffffff);
    border: 2px solid color-mix(in srgb, var(--primary-color) 42%, #ffffff);
    color: #0c4a6e;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(37, 167, 204, 0.12);
    animation: academy-intro-tip 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.keyboard-academy-page .academy-key-chip i {
    position: absolute;
    right: -0.2rem;
    top: -0.25rem;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.55rem;
    background: #16a34a;
    color: #fff;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35);
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.keyboard-academy-page .academy-key-chip.is-found {
    background: linear-gradient(145deg, #dcfce7, #ffffff);
    border-color: #86efac;
    color: #166534;
}

.keyboard-academy-page .academy-key-chip.is-found i {
    opacity: 1;
    transform: scale(1);
}

.keyboard-academy-page .ka-key.is-intro-found {
    animation: none;
    border-color: #16a34a;
    background: linear-gradient(180deg, #ecfdf5, #dcfce7);
    color: #166534;
    box-shadow:
        0 0 0 2px rgba(22, 163, 74, 0.28),
        0 10px 20px rgba(22, 163, 74, 0.16);
}

.keyboard-academy-page .ka-key__intro-bubble.is-found {
    border-color: #86efac;
    background: linear-gradient(165deg, #ffffff, #ecfdf5);
}

.keyboard-academy-page .ka-key__intro-bubble.is-found .ka-key__intro-letter {
    color: #166534;
}

.keyboard-academy-page .ka-key__intro-bubble.is-found .ka-key__intro-caption {
    color: #15803d;
}

.keyboard-academy-page .ka-key.is-intro-found .ka-key__intro-point {
    background: #16a34a;
    box-shadow:
        0 0 0 3px rgba(22, 163, 74, 0.2),
        0 4px 10px rgba(22, 163, 74, 0.3);
    animation: none;
}

.keyboard-academy-page .academy-key-intro__btn:disabled,
.keyboard-academy-page .academy-key-intro__btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(0.2);
}

.keyboard-academy-page .academy-key-intro__btn.is-ready {
    opacity: 1;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(37, 167, 204, 0.28);
}

.keyboard-academy-page .academy-key-intro__hint {
    margin: 0;
    max-width: 36rem;
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--text-secondary);
    font-weight: 600;
}

.keyboard-academy-page .academy-key-intro__btn {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    margin: 0;
    padding: 0.75rem 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    font-size: 0.9rem;
}

.keyboard-academy-lesson.academy-intro-open .academy-keyboard-shell {
    overflow: visible;
}

.keyboard-academy-page .ka-key.is-expected-mod {
    border-color: #f59e0b;
    background: #fff7ed;
    color: #9a3412;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
}

.keyboard-academy-page .ka-key.is-pressed {
    background: #dbeafe;
    transform: none;
    box-shadow: none;
}

.keyboard-academy-page .ka-key.is-correct-flash {
    background: #dcfce7;
    border-color: #16a34a;
}

.keyboard-academy-page .ka-key.is-wrong {
    background: #ffe4e6;
    border-color: #e11d48;
    animation: academy-key-shake 160ms ease-in-out;
}

@keyframes academy-key-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.keyboard-academy-page .academy-result-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(10px);
    animation: academy-result-fade 220ms ease-out;
}

@keyframes academy-result-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.keyboard-academy-page .academy-result-overlay[hidden] {
    display: none !important;
}

.keyboard-academy-page .academy-result-panel {
    position: relative;
    width: min(540px, 100%);
    padding: 1.75rem 1.45rem 1.4rem;
    border-radius: 28px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 26%, #ffffff);
    background:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--primary-color) 18%, transparent), transparent 42%),
        radial-gradient(circle at 92% 8%, rgba(245, 158, 11, 0.14), transparent 36%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.99), rgba(241, 249, 253, 0.98));
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.24),
        0 0 0 1px rgba(255, 255, 255, 0.55) inset;
    text-align: center;
    overflow: hidden;
    animation: academy-result-pop 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes academy-result-pop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.keyboard-academy-page .academy-result-glow {
    position: absolute;
    inset: auto -20% -35% -20%;
    height: 55%;
    background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--primary-color) 22%, transparent), transparent 70%);
    pointer-events: none;
}

.keyboard-academy-page .academy-result-panel.is-lesson {
    border-color: color-mix(in srgb, var(--primary-color) 38%, #ffffff);
}

.keyboard-academy-page .academy-result-panel.is-retry {
    border-color: color-mix(in srgb, #e11d48 28%, #ffffff);
    background:
        radial-gradient(circle at 50% 0%, rgba(225, 29, 72, 0.1), transparent 42%),
        linear-gradient(165deg, #fff, #fff7f8);
}

.keyboard-academy-page .academy-result-hero {
    position: relative;
    margin-bottom: 0.85rem;
}

.keyboard-academy-page .academy-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color) 14%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--primary-color) 28%, #ffffff);
    color: color-mix(in srgb, var(--primary-color) 82%, #0f172a);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.keyboard-academy-page .academy-result-panel.is-lesson .academy-result-badge {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 22%, #ffffff), #ffffff);
}

.keyboard-academy-page .academy-result-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.45rem, 4vw, 1.8rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    color: var(--text-primary);
}

.keyboard-academy-page .academy-result-stars {
    display: inline-flex;
    gap: 0.28rem;
    font-size: 2.35rem;
    letter-spacing: 0.08em;
    color: #e2e8f0;
    margin-bottom: 0.35rem;
    line-height: 1;
}

.keyboard-academy-page .academy-result-score-note {
    margin: 0.35rem auto 0;
    max-width: 28rem;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-secondary);
    font-weight: 600;
}

.keyboard-academy-page .ka-star {
    display: inline-block;
    transform: scale(0.92);
    transition: color 0.2s ease, transform 0.25s ease, text-shadow 0.25s ease;
}

.keyboard-academy-page .ka-star.is-on {
    color: #f59e0b;
    transform: scale(1.08);
    text-shadow: 0 8px 18px rgba(245, 158, 11, 0.4);
    animation: academy-star-pop 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes academy-star-pop {
    0% { transform: scale(0.6); opacity: 0.4; }
    60% { transform: scale(1.18); }
    100% { transform: scale(1.08); opacity: 1; }
}

.keyboard-academy-page .academy-result-highlight {
    position: relative;
    margin: 0.75rem 0 1.05rem;
    padding: 0.85rem 1rem;
    border-radius: 22px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--primary-color) 12%, #ffffff), #ffffff);
    border: 1px solid color-mix(in srgb, var(--primary-color) 22%, #ffffff);
    box-shadow: 0 14px 30px rgba(37, 167, 204, 0.1);
    display: grid;
    place-items: center;
}

.keyboard-academy-page .academy-result-ring {
    position: relative;
    width: 118px;
    height: 118px;
}

.keyboard-academy-page .academy-result-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.keyboard-academy-page .academy-result-ring__track {
    fill: none;
    stroke: #e8eef5;
    stroke-width: 8;
}

.keyboard-academy-page .academy-result-ring__value {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 520ms cubic-bezier(0.22, 1, 0.36, 1), stroke 220ms ease;
}

.keyboard-academy-page .academy-result-ring[data-level="high"] .academy-result-ring__value {
    stroke: #16a34a;
}

.keyboard-academy-page .academy-result-ring[data-level="mid"] .academy-result-ring__value {
    stroke: var(--primary-color);
}

.keyboard-academy-page .academy-result-ring[data-level="low"] .academy-result-ring__value {
    stroke: #e11d48;
}

.keyboard-academy-page .academy-result-ring__label {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 0.1rem;
}

.keyboard-academy-page .academy-result-ring__label span {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.keyboard-academy-page .academy-result-ring__label strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: color-mix(in srgb, var(--primary-color) 78%, #0f172a);
}

.keyboard-academy-page .academy-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-bottom: 0.95rem;
    text-align: left;
}

.keyboard-academy-page .academy-result-stat {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 0.85rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e8eef5;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
}

.keyboard-academy-page .academy-result-stat__icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    color: color-mix(in srgb, var(--primary-color) 82%, #0f172a);
    background: linear-gradient(145deg, color-mix(in srgb, var(--primary-color) 16%, #ffffff), #ffffff);
}

.keyboard-academy-page .academy-result-stat small {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.keyboard-academy-page .academy-result-stat strong {
    display: block;
    margin-top: 0.12rem;
    font-size: 1.14rem;
    font-weight: 800;
    color: var(--text-primary);
}

.keyboard-academy-page .academy-result-problems[hidden] {
    display: none !important;
}

.keyboard-academy-page .academy-result-problems {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0 0 1.15rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e8eef5;
    text-align: left;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.keyboard-academy-page .academy-result-problems__icon {
    width: 2.15rem;
    height: 2.15rem;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: #64748b;
    background: #eef2f7;
}

.keyboard-academy-page .academy-result-problems__body {
    min-width: 0;
    flex: 1 1 auto;
}

.keyboard-academy-page .academy-result-problems__title {
    display: block;
    margin: 0.05rem 0 0.15rem;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.keyboard-academy-page .academy-result-problems__text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--text-secondary);
    font-weight: 600;
}

.keyboard-academy-page .academy-result-problems__keys {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.45rem;
}

.keyboard-academy-page .academy-result-problem-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem 0.28rem 0.45rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid color-mix(in srgb, #e11d48 18%, #ffffff);
    box-shadow: 0 3px 8px rgba(225, 29, 72, 0.08);
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.keyboard-academy-page .academy-result-problem-chip em {
    font-style: normal;
    font-weight: 800;
    font-size: 0.92rem;
    color: #9f1239;
    min-width: 1.1rem;
    text-align: center;
}

.keyboard-academy-page .academy-result-problem-chip small {
    font-family: Manrope, system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: #be123c;
    background: color-mix(in srgb, #e11d48 10%, #ffffff);
    border-radius: 999px;
    padding: 0.12rem 0.4rem;
    line-height: 1.2;
}

.keyboard-academy-page .academy-result-problems.is-good {
    background:
        linear-gradient(145deg, color-mix(in srgb, #16a34a 10%, #ffffff), #ffffff);
    border-color: color-mix(in srgb, #16a34a 26%, #ffffff);
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.1);
}

.keyboard-academy-page .academy-result-problems.is-good .academy-result-problems__icon {
    color: #15803d;
    background: linear-gradient(145deg, #dcfce7, #f0fdf4);
    border: 1px solid color-mix(in srgb, #16a34a 22%, #ffffff);
}

.keyboard-academy-page .academy-result-problems.is-good .academy-result-problems__title {
    color: #166534;
}

.keyboard-academy-page .academy-result-problems.is-good .academy-result-problems__text {
    color: #15803d;
}

.keyboard-academy-page .academy-result-problems.is-warn {
    background:
        linear-gradient(145deg, color-mix(in srgb, #e11d48 7%, #ffffff), #ffffff);
    border-color: color-mix(in srgb, #e11d48 20%, #ffffff);
}

.keyboard-academy-page .academy-result-problems.is-warn .academy-result-problems__icon {
    color: #be123c;
    background: linear-gradient(145deg, #ffe4e6, #fff1f2);
    border: 1px solid color-mix(in srgb, #e11d48 18%, #ffffff);
}

.keyboard-academy-page .academy-result-problems.is-warn .academy-result-problems__title {
    color: #9f1239;
}

.keyboard-academy-page .academy-result-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}

.keyboard-academy-page .academy-result-actions .submit-button,
.keyboard-academy-page .academy-result-actions .academy-btn-hub {
    width: auto;
    min-width: 158px;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    gap: 0.55rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.keyboard-academy-page .academy-result-actions .submit-button[hidden],
.keyboard-academy-page .academy-result-actions .academy-btn-hub[hidden] {
    display: none !important;
}

.keyboard-academy-page .academy-result-actions .submit-button i,
.keyboard-academy-page .academy-result-actions .academy-btn-hub i {
    font-size: 0.9rem;
    opacity: 0.95;
}

.keyboard-academy-page .academy-result-panel.is-lesson .academy-btn-hub,
.keyboard-academy-page .academy-result-actions .academy-btn-primary {
    box-shadow: 0 12px 28px rgba(37, 167, 204, 0.28);
}

.keyboard-academy-page .submit-button.academy-btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 2px solid #dbe3ee;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.keyboard-academy-page .submit-button.academy-btn-secondary:hover {
    background: #f8fafc;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
    .keyboard-academy-page .academy-continue {
        flex-wrap: wrap;
    }

    .keyboard-academy-page .academy-continue-arrow {
        width: 100%;
        justify-content: center;
    }

    .keyboard-academy-page .academy-lesson-row {
        grid-template-columns: auto 1fr auto;
    }

    .keyboard-academy-page .academy-lesson-lock {
        display: none;
    }

    .keyboard-academy-page .academy-key-intro {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .keyboard-academy-page .academy-key-intro__btn {
        margin-left: auto;
    }

    .keyboard-academy-page .ka-key {
        min-height: 42px;
        font-size: 0.78rem;
        border-radius: 8px;
    }

    .keyboard-academy-page .academy-keyboard-shell {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .keyboard-academy-page .ka-keyboard {
        min-width: 720px;
    }
}

@media (max-width: 560px) {
    .keyboard-academy-page .academy-lesson-panel {
        padding: 0.95rem 0.8rem 1rem;
    }

    .keyboard-academy-lesson .academy-lesson-brand-row {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 0.55rem;
    }

    .keyboard-academy-lesson .academy-lesson-heading {
        justify-self: center;
        order: 2;
        text-align: center;
    }

    .keyboard-academy-lesson .academy-lesson-heading .leaderboard-title__text {
        justify-content: center;
        text-align: center;
    }

    .keyboard-academy-lesson .academy-lesson-logo {
        order: 1;
    }

    .keyboard-academy-lesson .academy-lesson-logo img {
        height: 44px;
    }

    .keyboard-academy-lesson .academy-lesson-brand-spacer {
        order: 3;
        justify-self: center;
        width: 100%;
        justify-content: center;
    }

    .keyboard-academy-lesson .site-language-switcher--dock {
        left: max(0.75rem, env(safe-area-inset-left, 0px));
        bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    }

    .keyboard-academy-lesson .lang-switch-current {
        max-width: 5.5rem;
    }

    .keyboard-academy-page .academy-typing {
        font-size: 1.55rem;
        min-height: 6.4rem;
        padding: 1.2rem 0.85rem;
    }

    .keyboard-academy-page .academy-typing-wrap.is-long .academy-typing {
        font-size: 1.15rem;
        min-height: 7rem;
    }

    .keyboard-academy-page .academy-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .keyboard-academy-page .academy-stats .academy-stat {
        padding: 0.7rem 0.45rem;
        gap: 0.45rem;
        flex-direction: column;
        text-align: center;
    }

    .keyboard-academy-page .academy-stats .stat-icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .keyboard-academy-page .academy-stats .stat-value {
        font-size: 1.05rem;
    }

    .keyboard-academy-page .academy-hud {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
