/* =========================================================
   REGATUL ȘAHULUI — DESIGN SYSTEM
   Structurat pentru claritate și mentenanță
========================================================= */

:root {
    --regal: #6c5ce7;
    --regal-inchis: #5649c0;
    --auriu: #fdcb6e;
    --auriu-inchis: #e6b422;
    --rosu: #ff6b6b;
    --verde: #51cf66;
    --verde-inchis: #2f9e44;
    --albastru: #339af0;
    --text-inchis: #2d3436;
    --text-soft: #5f6b7a;
    --alb: #ffffff;
    --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
    --btn-shadow-regal: 0 7px 0 var(--regal-inchis);
    --btn-shadow-auriu: 0 7px 0 var(--auriu-inchis);
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text-inchis);
    overflow-x: hidden;
}

@keyframes pluteste {

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

    50% {
        transform: translateY(-10px);
    }
}

@keyframes regatFloat {

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

    50% {
        transform: translateY(-14px);
    }
}

/* =========================================================
   LECȚII / TABLĂ DE ȘAH
========================================================= */

.regatul-sah-lesson-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 16px 36px;
    position: relative;
}

.regatul-sah-floating {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.regatul-sah-floating-piece {
    position: absolute;
    opacity: 0.06;
    font-size: 3.2rem;
    animation: pluteste 8s ease-in-out infinite;
}

.regatul-sah-floating-piece.p1 {
    top: 3%;
    left: 2%;
    animation-delay: 0s;
}

.regatul-sah-floating-piece.p2 {
    top: 14%;
    right: 3%;
    animation-delay: 1.5s;
}

.regatul-sah-floating-piece.p3 {
    bottom: 14%;
    left: 7%;
    animation-delay: 3s;
}

.regatul-sah-floating-piece.p4 {
    bottom: 4%;
    right: 10%;
    animation-delay: 2s;
}

.regatul-sah-card {
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(249, 249, 255, 0.96));
    border-radius: 34px;
    padding: 24px;
    border: 4px solid var(--auriu);
    box-shadow: 0 14px 0 var(--auriu-inchis), var(--card-shadow);
}

.regatul-sah-hero {
    text-align: center;
    margin-bottom: 22px;
}

.regatul-sah-kicker {
    display: inline-block;
    background: rgba(108, 92, 231, 0.10);
    color: var(--regal);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 14px;
    border: 2px solid rgba(108, 92, 231, 0.12);
}

.regatul-sah-title {
    font-size: 2.9rem;
    line-height: 1.08;
    font-weight: 800;
    margin: 0 0 14px;
    color: var(--regal);
    text-shadow: 2px 2px 0 rgba(253, 203, 110, 0.9);
}

.regatul-sah-subtitle {
    font-size: 1.08rem;
    color: var(--text-inchis);
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.84);
    padding: 14px 22px;
    border-radius: 999px;
    border: 3px solid var(--auriu);
    box-shadow: 0 7px 0 var(--auriu-inchis);
}

.regatul-sah-main {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.regatul-sah-side {
    flex: 0.95;
    min-width: 260px;
}

.regatul-sah-board-col {
    flex: 1.05;
    min-width: 300px;
}

.regatul-sah-character {
    background: linear-gradient(145deg, #f7f1ff, #ede7ff);
    border-radius: 28px;
    padding: 22px 18px;
    border: 4px solid var(--regal);
    box-shadow: 0 10px 0 var(--regal-inchis);
    text-align: center;
    margin-bottom: 18px;
}

.regatul-sah-character-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--regal);
    border: 4px solid var(--alb);
    box-shadow: 0 7px 0 var(--regal-inchis);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #fff;
}

.regatul-sah-character h3 {
    margin: 0 0 10px;
    font-size: 1.9rem;
    color: var(--regal);
}

.regatul-sah-character p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--text-inchis);
}

.regatul-sah-board-shell {
    background: linear-gradient(145deg, #ffffff, #f7f8fc);
    border-radius: 28px;
    padding: 18px;
    border: 4px solid var(--verde);
    box-shadow: 0 10px 0 var(--verde-inchis);
    text-align: center;
}

.regatul-sah-board-wrap {
    max-width: 350px;
    margin: 0 auto 16px;
}

#board {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border: 5px solid var(--verde-inchis);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(81, 207, 102, 0.20);
    background: #fff;
    touch-action: manipulation;
}

#feedback {
    margin: 14px auto 4px;
    text-align: center;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--verde-inchis);
    min-height: 28px;
    max-width: 500px;
}

.regatul-sah-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 240px;
    margin: 20px auto 0;
}

.regatul-sah-stat {
    background: #f8efd1;
    color: var(--verde-inchis);
    text-align: center;
    border-radius: 18px;
    padding: 14px 12px;
    font-size: 1.08rem;
    font-weight: 800;
    border: 3px solid #fff6da;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.regatul-sah-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.regatul-sah-btn {
    appearance: none;
    border: 3px solid #fff;
    border-radius: 999px;
    padding: 14px 22px;
    background: var(--regal);
    color: #fff;
    font-size: 1.02rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--btn-shadow-regal);
    transition: all 0.25s ease;
    min-width: 190px;
}

.regatul-sah-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 0 var(--regal-inchis);
}

.regatul-sah-btn:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 var(--regal-inchis);
}

.regatul-sah-btn-secondary {
    background: var(--auriu);
    color: var(--text-inchis);
    box-shadow: var(--btn-shadow-auriu);
}

.regatul-sah-btn-secondary:hover {
    box-shadow: 0 10px 0 var(--auriu-inchis);
}

.regatul-sah-btn-secondary:active {
    box-shadow: 0 4px 0 var(--auriu-inchis);
}

.regatul-sah-tip {
    margin-top: 18px;
    background: rgba(51, 154, 240, 0.08);
    border: 3px solid rgba(51, 154, 240, 0.15);
    color: #23527c;
    border-radius: 20px;
    padding: 16px;
    font-size: 0.98rem;
    line-height: 1.55;
    text-align: center;
}

/* =========================================================
   AUDIO PLAYER
========================================================= */

.regatul-sah-audio {
    background: linear-gradient(145deg, #fff7df, #fff1c9);
    border: 4px solid var(--auriu);
    box-shadow: 0 10px 0 var(--auriu-inchis);
    border-radius: 28px;
    padding: 18px;
    margin: 0 auto 18px;
    max-width: 100%;
    text-align: center;
}

.regatul-sah-audio h4 {
    margin: 0 0 10px;
    color: var(--regal);
    font-size: 1.25rem;
}

.regatul-sah-audio p {
    margin: 0 0 14px;
    color: var(--text-inchis);
    font-size: 0.98rem;
    line-height: 1.5;
}

.regatul-sah-audio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.regatul-sah-audio-btn {
    appearance: none;
    border: 3px solid #fff;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
}

.regatul-sah-audio-btn-play {
    background: var(--regal);
    color: #fff;
    box-shadow: var(--btn-shadow-regal);
}

.regatul-sah-audio-btn-stop {
    background: var(--auriu);
    color: var(--text-inchis);
    box-shadow: var(--btn-shadow-auriu);
}

.regatul-sah-audio-btn:hover {
    transform: translateY(-3px);
}

#audio-status {
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--verde-inchis);
    min-height: 22px;
}

/* =========================================================
   NAVIGARE LECȚII
========================================================= */

.regatul-sah-lessons-nav {
    margin-top: 28px;
    text-align: center;
}

.regatul-sah-lessons-nav-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-soft);
    margin-bottom: 14px;
}

.regatul-sah-lessons-nav-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.regatul-sah-lesson-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 220px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: #8b82f1;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 0 #6f63d9;
    transition: all 0.2s ease;
}

.regatul-sah-lesson-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #6f63d9;
    color: #fff;
}

.regatul-sah-lesson-chip-prev {
    background: var(--regal);
    box-shadow: 0 6px 0 var(--regal-inchis);
}

.regatul-sah-lesson-chip-prev:hover {
    box-shadow: 0 9px 0 var(--regal-inchis);
}

.regatul-sah-lesson-chip-next {
    background: #9188f5;
    box-shadow: 0 6px 0 #7065df;
}

.regatul-sah-lesson-chip-disabled {
    opacity: 0.55;
    pointer-events: none;
}

/* =========================================================
   MESAJ SALVARE PROGRES
========================================================= */

.regatul-sah-save-progress-box {
    margin: 18px auto 0;
    max-width: 520px;
    background: linear-gradient(145deg, #f7f1ff, #eee8ff);
    border: 3px solid var(--regal);
    box-shadow: 0 8px 0 var(--regal-inchis);
    border-radius: 22px;
    padding: 16px 18px;
    text-align: center;
}

.regatul-sah-save-progress-box p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-inchis);
    font-weight: 600;
}

.regatul-sah-save-progress-box a {
    color: var(--regal);
    font-weight: 800;
    text-decoration: none;
}

.regatul-sah-save-progress-box a:hover {
    text-decoration: underline;
}

/* =========================================================
   PAGINA CREARE CONT
========================================================= */

.regat-register-page {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    overflow: hidden;
}

.regat-register-floating {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.regat-register-piece {
    position: absolute;
    opacity: 0.06;
    font-size: 4rem;
    animation: pluteste 8s ease-in-out infinite;
}

.regat-register-piece.p1 {
    top: 6%;
    left: 4%;
}

.regat-register-piece.p2 {
    top: 15%;
    right: 5%;
    animation-delay: 1.4s;
}

.regat-register-piece.p3 {
    bottom: 16%;
    left: 8%;
    animation-delay: 2.6s;
}

.regat-register-piece.p4 {
    bottom: 10%;
    right: 10%;
    animation-delay: 3.4s;
}

.regat-register-shell {
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(249, 249, 255, 0.96));
    border-radius: 40px;
    border: 4px solid var(--auriu);
    box-shadow: 0 16px 0 var(--auriu-inchis), 0 18px 40px rgba(0, 0, 0, 0.10);
    padding: 34px;
}

.regat-register-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: start;
}

.regat-register-badge {
    display: inline-block;
    background: rgba(108, 92, 231, 0.1);
    color: var(--regal);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 999px;
    border: 2px solid rgba(108, 92, 231, 0.12);
    margin-bottom: 16px;
}

.regat-register-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--regal);
    margin: 0 0 18px;
    text-shadow: 2px 2px 0 rgba(253, 203, 110, 0.9);
}

.regat-register-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-inchis);
    background: rgba(255, 255, 255, 0.84);
    padding: 16px 22px;
    border-radius: 24px;
    border: 3px solid var(--auriu);
    box-shadow: 0 8px 0 var(--auriu-inchis);
    margin-bottom: 24px;
}

.regat-register-benefits {
    display: grid;
    gap: 14px;
}

.regat-register-benefit {
    background: linear-gradient(145deg, #f7f1ff, #ede7ff);
    border: 3px solid var(--regal);
    box-shadow: 0 7px 0 var(--regal-inchis);
    border-radius: 20px;
    padding: 16px 18px;
    font-weight: 700;
    color: var(--text-inchis);
}

.regat-register-form-card {
    background: linear-gradient(145deg, #ffffff, #f7f8fc);
    border: 4px solid var(--verde);
    box-shadow: 0 12px 0 var(--verde-inchis);
    border-radius: 28px;
    padding: 26px 22px;
}

.regat-register-form-card h2 {
    margin: 0 0 18px;
    color: var(--verde-inchis);
    font-size: 1.8rem;
    text-align: center;
}

.regat-register-alert {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.regat-register-alert-error {
    background: #fff1f1;
    border: 2px solid #ffb8b8;
    color: #b42318;
}

.regat-register-alert-success {
    background: #eefbf1;
    border: 2px solid #b7ebc0;
    color: #1b7f38;
}

.regat-register-form {
    display: grid;
    gap: 12px;
}

.regat-register-form label {
    font-weight: 700;
    color: var(--text-inchis);
    font-size: 0.96rem;
}

.regat-register-form input {
    width: 100%;
    border: 3px solid #e4ddff;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 1rem;
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.regat-register-form input:focus {
    border-color: var(--regal);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

.regat-register-form button {
    margin-top: 8px;
    border: 3px solid #fff;
    border-radius: 999px;
    background: var(--regal);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    padding: 14px 18px;
    cursor: pointer;
    box-shadow: 0 8px 0 var(--regal-inchis);
    transition: all 0.2s ease;
}

.regat-register-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 11px 0 var(--regal-inchis);
}

.regat-register-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 0.96rem;
    color: var(--text-soft);
}

.regat-register-footer a {
    color: var(--regal);
    font-weight: 800;
    text-decoration: none;
}

.regat-register-footer a:hover {
    text-decoration: underline;
}

/* =========================================================
   DASHBOARD PĂRINTE
========================================================= */

.regat-parent-page {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 20px 60px;
    overflow: hidden;
}

.regat-parent-floating {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.regat-parent-piece {
    position: absolute;
    opacity: 0.06;
    font-size: 4rem;
    animation: pluteste 8s ease-in-out infinite;
}

.regat-parent-piece.p1 {
    top: 4%;
    left: 4%;
}

.regat-parent-piece.p2 {
    top: 16%;
    right: 5%;
    animation-delay: 1.3s;
}

.regat-parent-piece.p3 {
    bottom: 14%;
    left: 9%;
    animation-delay: 2.5s;
}

.regat-parent-piece.p4 {
    bottom: 10%;
    right: 11%;
    animation-delay: 3.1s;
}

.regat-parent-shell {
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(249, 249, 255, 0.96));
    border-radius: 40px;
    border: 4px solid var(--auriu);
    box-shadow: 0 16px 0 var(--auriu-inchis), 0 18px 40px rgba(0, 0, 0, 0.10);
    padding: 30px;
}

.regat-parent-hero {
    text-align: center;
    margin-bottom: 26px;
}

.regat-parent-badge {
    display: inline-block;
    background: rgba(108, 92, 231, 0.1);
    color: var(--regal);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 999px;
    border: 2px solid rgba(108, 92, 231, 0.12);
    margin-bottom: 16px;
}

.regat-parent-hero h1 {
    font-size: 2.7rem;
    line-height: 1.12;
    color: var(--regal);
    margin: 0 0 14px;
    text-shadow: 2px 2px 0 rgba(253, 203, 110, 0.9);
}

.regat-parent-subtitle {
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--text-inchis);
    background: rgba(255, 255, 255, 0.84);
    padding: 16px 22px;
    border-radius: 24px;
    border: 3px solid var(--auriu);
    box-shadow: 0 8px 0 var(--auriu-inchis);
    max-width: 860px;
    margin: 0 auto;
}

.regat-parent-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 28px 0 30px;
}

.regat-parent-stat {
    background: linear-gradient(145deg, #f7f1ff, #ede7ff);
    border: 3px solid var(--regal);
    box-shadow: 0 8px 0 var(--regal-inchis);
    border-radius: 24px;
    text-align: center;
    padding: 18px;
}

.regat-parent-stat .numar {
    display: block;
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--regal);
    line-height: 1;
    margin-bottom: 8px;
}

.regat-parent-stat .eticheta {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-inchis);
}

.regat-parent-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 24px;
    align-items: start;
}

.regat-parent-form-card,
.regat-parent-children-card {
    background: linear-gradient(145deg, #ffffff, #f7f8fc);
    border-radius: 28px;
    padding: 24px 20px;
}

.regat-parent-form-card {
    border: 4px solid var(--verde);
    box-shadow: 0 12px 0 var(--verde-inchis);
}

.regat-parent-children-card {
    border: 4px solid var(--regal);
    box-shadow: 0 12px 0 var(--regal-inchis);
}

.regat-parent-form-card h2,
.regat-parent-children-card h2 {
    margin: 0 0 18px;
    font-size: 1.7rem;
    color: var(--text-inchis);
}

.regat-parent-alert {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.regat-parent-alert-error {
    background: #fff1f1;
    border: 2px solid #ffb8b8;
    color: #b42318;
}

.regat-parent-alert-success {
    background: #eefbf1;
    border: 2px solid #b7ebc0;
    color: #1b7f38;
}

.regat-parent-alert-info {
    background: #f3f4ff;
    border: 2px solid #d7d9ff;
    color: #484f8b;
}

.regat-parent-form {
    display: grid;
    gap: 12px;
}

.regat-parent-form label {
    font-weight: 700;
    color: var(--text-inchis);
    font-size: 0.96rem;
}

.regat-parent-form input,
.regat-parent-form select {
    width: 100%;
    border: 3px solid #e4ddff;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 1rem;
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.regat-parent-form input:focus,
.regat-parent-form select:focus {
    border-color: var(--regal);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

.regat-parent-form button {
    margin-top: 8px;
    border: 3px solid #fff;
    border-radius: 999px;
    background: var(--regal);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    padding: 14px 18px;
    cursor: pointer;
    box-shadow: 0 8px 0 var(--regal-inchis);
    transition: all 0.2s ease;
}

.regat-parent-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 11px 0 var(--regal-inchis);
}

.regat-parent-note {
    margin-top: 16px;
    background: rgba(51, 154, 240, 0.08);
    border: 3px solid rgba(51, 154, 240, 0.15);
    color: #23527c;
    border-radius: 18px;
    padding: 14px 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

.regat-parent-children-list {
    display: grid;
    gap: 16px;
}

.regat-child-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(145deg, #fdf7ff, #f5efff);
    border: 3px solid #ddd2ff;
    border-radius: 22px;
    padding: 16px;
}

.regat-child-avatar {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 50%;
    background: var(--regal);
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 6px 0 var(--regal-inchis);
}

.regat-child-info h3 {
    margin: 0 0 6px;
    color: var(--regal);
    font-size: 1.3rem;
}

.regat-child-info p,
.regat-child-meta {
    margin: 0 0 6px;
    color: var(--text-inchis);
    font-size: 0.95rem;
}

.regat-child-pin {
    display: inline-block;
    background: #fff7df;
    border: 2px solid var(--auriu);
    border-radius: 14px;
    padding: 8px 12px;
    font-weight: 700;
    color: var(--text-inchis);
    margin-bottom: 8px;
}

.regat-parent-empty {
    background: #f8f9ff;
    border: 3px dashed #cccff7;
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    color: var(--text-soft);
    font-weight: 600;
}

/* =========================================================
   SELECTARE PERSONAJ
========================================================= */

.regat-avatar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.regat-avatar-option {
    display: block;
    cursor: pointer;
}

.regat-avatar-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.regat-avatar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 132px;
    padding: 14px 12px;
    border-radius: 20px;
    background: linear-gradient(145deg, #fdf7ff, #f5efff);
    border: 3px solid #ddd2ff;
    box-shadow: 0 6px 0 #cdbfff;
    transition: all 0.2s ease;
}

.regat-avatar-option:hover .regat-avatar-card {
    transform: translateY(-2px);
}

.regat-avatar-option input:checked+.regat-avatar-card {
    border-color: var(--regal);
    box-shadow: 0 8px 0 var(--regal-inchis);
    background: linear-gradient(145deg, #f7f1ff, #ede7ff);
}

.regat-avatar-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.regat-avatar-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-inchis);
    line-height: 1.35;
    margin-bottom: 6px;
}

.regat-avatar-type {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--regal);
    background: rgba(108, 92, 231, 0.08);
    padding: 5px 10px;
    border-radius: 999px;
}

/* =========================================================
   LOGIN COPIL
========================================================= */

.regat-child-login-page {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    overflow: hidden;
    min-height: 70vh;
}

.regat-child-login-fog {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.12), transparent 20%),
        radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.12), transparent 22%),
        linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.16));
    pointer-events: none;
    z-index: 1;
    filter: blur(6px);
}

.regat-child-login-floating {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.regat-child-login-piece {
    position: absolute;
    opacity: 0.08;
    font-size: 4rem;
    animation: pluteste 8s ease-in-out infinite;
}

.regat-child-login-piece.p1 {
    top: 4%;
    left: 4%;
}

.regat-child-login-piece.p2 {
    top: 14%;
    right: 5%;
    animation-delay: 1.2s;
}

.regat-child-login-piece.p3 {
    top: 35%;
    left: 10%;
    animation-delay: 2.2s;
}

.regat-child-login-piece.p4 {
    top: 55%;
    right: 8%;
    animation-delay: 2.8s;
}

.regat-child-login-piece.p5 {
    bottom: 16%;
    left: 6%;
    animation-delay: 3.2s;
}

.regat-child-login-piece.p6 {
    bottom: 10%;
    right: 10%;
    animation-delay: 3.8s;
}

.regat-child-login-piece.p7 {
    top: 75%;
    left: 45%;
    animation-delay: 1.8s;
}

.regat-child-login-piece.p8 {
    top: 22%;
    left: 48%;
    animation-delay: 2.9s;
}

.regat-child-login-shell {
    position: relative;
    z-index: 3;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(249, 249, 255, 0.96));
    border-radius: 42px;
    border: 4px solid var(--auriu);
    box-shadow: 0 18px 0 var(--auriu-inchis), 0 22px 46px rgba(0, 0, 0, 0.12);
    padding: 32px;
}

.regat-child-login-hero {
    text-align: center;
    margin-bottom: 28px;
}

.regat-child-login-badge {
    display: inline-block;
    background: rgba(108, 92, 231, 0.10);
    color: var(--regal);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 999px;
    border: 2px solid rgba(108, 92, 231, 0.12);
    margin-bottom: 16px;
}

.regat-child-login-hero h1 {
    font-size: 2.9rem;
    line-height: 1.1;
    color: var(--regal);
    margin: 0 0 14px;
    text-shadow: 2px 2px 0 rgba(253, 203, 110, 0.9);
}

.regat-child-login-subtitle {
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--text-inchis);
    background: rgba(255, 255, 255, 0.84);
    padding: 16px 22px;
    border-radius: 24px;
    border: 3px solid var(--auriu);
    box-shadow: 0 8px 0 var(--auriu-inchis);
    max-width: 840px;
    margin: 0 auto;
}

.regat-child-login-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: start;
}

.regat-child-login-form-card,
.regat-child-login-avatar-card {
    background: linear-gradient(145deg, #ffffff, #f7f8fc);
    border-radius: 30px;
    padding: 24px 20px;
}

.regat-child-login-form-card {
    border: 4px solid var(--verde);
    box-shadow: 0 12px 0 var(--verde-inchis);
}

.regat-child-login-avatar-card {
    border: 4px solid var(--regal);
    box-shadow: 0 12px 0 var(--regal-inchis);
}

.regat-child-login-form-card h2,
.regat-child-login-avatar-card h2 {
    margin: 0 0 18px;
    font-size: 1.7rem;
    color: var(--text-inchis);
}

.regat-child-login-field {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.regat-child-login-field label {
    font-weight: 700;
    font-size: 0.96rem;
    color: var(--text-inchis);
}

.regat-child-login-field input,
.regat-child-login-field select {
    width: 100%;
    border: 3px solid #e4ddff;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 1rem;
    outline: none;
    background: #fff;
}

.regat-child-login-field input:focus,
.regat-child-login-field select:focus {
    border-color: var(--regal);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

.regat-child-login-btn,
.regat-child-login-secondary-btn {
    width: 100%;
    border: 3px solid #fff;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 800;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.regat-child-login-btn {
    background: var(--regal);
    color: #fff;
    box-shadow: 0 8px 0 var(--regal-inchis);
}

.regat-child-login-secondary-btn {
    background: var(--auriu);
    color: var(--text-inchis);
    box-shadow: 0 8px 0 var(--auriu-inchis);
    margin-top: 16px;
}

.regat-child-login-btn:hover,
.regat-child-login-secondary-btn:hover {
    transform: translateY(-3px);
}

.regat-child-login-message {
    min-height: 24px;
    margin: 8px 0 14px;
    font-weight: 700;
    line-height: 1.5;
}

.regat-child-login-message.type-error {
    color: #b42318;
}

.regat-child-login-message.type-success {
    color: #1b7f38;
}

.regat-child-login-tip {
    margin-top: 14px;
    background: rgba(51, 154, 240, 0.08);
    border: 3px solid rgba(51, 154, 240, 0.15);
    color: #23527c;
    border-radius: 18px;
    padding: 14px 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

.regat-child-login-current {
    margin-bottom: 16px;
    background: rgba(108, 92, 231, 0.08);
    border: 3px solid rgba(108, 92, 231, 0.14);
    border-radius: 18px;
    padding: 14px 16px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--text-inchis);
}

.regat-child-login-avatar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.regat-child-avatar-option {
    border: 3px solid #ddd2ff;
    border-radius: 20px;
    background: linear-gradient(145deg, #fdf7ff, #f5efff);
    box-shadow: 0 6px 0 #cdbfff;
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.regat-child-avatar-option .icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 8px;
}

.regat-child-avatar-option .name {
    display: block;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-inchis);
    line-height: 1.35;
    margin-bottom: 6px;
}

.regat-child-avatar-option .type {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--regal);
    background: rgba(108, 92, 231, 0.08);
    padding: 5px 10px;
    border-radius: 999px;
}

.regat-child-avatar-option:hover {
    transform: translateY(-2px);
}

.regat-child-avatar-option.is-selected {
    border-color: var(--regal);
    box-shadow: 0 8px 0 var(--regal-inchis);
    background: linear-gradient(145deg, #f7f1ff, #ede7ff);
}

/* =========================================================
   HARTA REGATULUI
========================================================= */

.regat-map-page {
    position: relative;
    min-height: 100vh;
    padding: 28px 16px 56px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 22%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.32), transparent 18%),
        linear-gradient(180deg, #f4f1ff 0%, #ece8ff 100%);
    overflow-x: hidden;
}

.regat-map-overlay-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.34), transparent 20%),
        radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.22), transparent 18%),
        radial-gradient(circle at 52% 78%, rgba(255, 255, 255, 0.18), transparent 24%);
    z-index: 1;
}

.regat-map-hero,
.regat-map-board-wrap,
.regat-map-summary-wrap {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    margin: 0 auto;
}

.regat-map-hero {
    margin-bottom: 24px;
}

.regat-map-hero-inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: stretch;
}

.regat-map-player-card,
.regat-map-title-box {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(8px);
    border-radius: 26px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 14px 36px rgba(83, 69, 162, 0.14);
}

.regat-map-player-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.avatar-icon {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    background: linear-gradient(135deg, #7760ff, #5f4cd7);
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(95, 76, 215, 0.28);
}

.avatar-meta {
    flex: 1;
}

.avatar-meta .welcome {
    font-size: 1.18rem;
    font-weight: 800;
    color: #403370;
    margin-bottom: 6px;
}

.avatar-meta .welcome span {
    color: #6650ff;
}

.avatar-label {
    font-size: 0.95rem;
    color: #6d6886;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.avatar-label strong {
    color: #2f8b54;
}

.avatar-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mini-stat {
    min-width: 90px;
    padding: 9px 12px;
    border-radius: 16px;
    background: #f8f6ff;
    border: 2px solid #ebe7ff;
    text-align: center;
}

.mini-stat-label {
    display: block;
    font-size: 0.74rem;
    color: #87829e;
    margin-bottom: 3px;
}

.mini-stat strong {
    font-size: 1.08rem;
    color: #45388a;
}

.regat-map-title-box {
    padding: 24px 26px;
}

.regat-map-title-box--center {
    text-align: center;
}

.map-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6d57ff, #8d78ff);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(109, 87, 255, 0.22);
    margin-bottom: 14px;
}

.regat-map-title-box h1 {
    margin: 0 0 8px;
    font-size: 2.2rem;
    line-height: 1.14;
    color: #47378a;
}

.hero-main-text {
    margin: 0 0 10px;
    color: #66637d;
    font-size: 1.02rem;
    line-height: 1.65;
}

.hero-current-lesson {
    margin: 0;
    color: #2d8a52;
    font-size: 1rem;
    font-weight: 700;
}

.regat-map-board {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 22px 54px rgba(77, 63, 149, 0.22);
    border: 4px solid rgba(255, 255, 255, 0.9);
}

.regat-map-image {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

.regat-map-paths {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.regat-map-paths svg {
    width: 100%;
    height: 100%;
    display: block;
}

.regat-map-paths path {
    fill: none;
    stroke: rgba(255, 223, 120, 0.72);
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-dasharray: 2.5 2.5;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.30));
}

.regat-map-nodes {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.regat-map-node {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 150px;
    z-index: 5;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.regat-map-node:disabled {
    cursor: not-allowed;
}

.regat-map-node .node-inner {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #fff;
    border-radius: 20px;
    padding: 12px 10px 10px;
    text-align: center;
    box-shadow: 0 10px 22px rgba(68, 57, 128, 0.20);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.regat-map-node:hover .node-inner {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(68, 57, 128, 0.24);
}

.node-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 8px;
    background: linear-gradient(135deg, #745eff, #5b47cf);
    color: #fff;
    border: 3px solid #fff;
    box-shadow: 0 8px 16px rgba(91, 71, 207, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.node-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.28;
    color: #4a3c85;
    margin-bottom: 6px;
}

.node-status {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: #7a7398;
    margin-bottom: 5px;
}

.node-stars {
    display: block;
    min-height: 18px;
    font-size: 0.9rem;
    color: #f2b313;
    letter-spacing: 1px;
}

.regat-map-node.type-bonus .node-inner {
    background: rgba(255, 247, 220, 0.96);
    border-color: #ffd471;
}

.regat-map-node.type-bonus .node-icon {
    background: linear-gradient(135deg, #ffbc35, #ff9900);
    box-shadow: 0 8px 16px rgba(255, 153, 0, 0.25);
}

.regat-map-node.status-locked .node-inner,
.regat-map-node .node-inner.is-locked {
    opacity: 0.72;
    pointer-events: none;
    filter: grayscale(0.12);
}

.regat-map-node.status-locked .node-icon,
.regat-map-node .node-inner.is-locked .node-icon,
.node-icon[data-state="locked"] {
    background: linear-gradient(135deg, #b2aec8, #8f8aa9);
    box-shadow: none;
}

.regat-map-node.status-active .node-inner,
.regat-map-node .node-inner.is-active {
    border-color: #57c96d;
    box-shadow: 0 0 0 4px rgba(87, 201, 109, 0.18), 0 16px 28px rgba(45, 129, 69, 0.22);
}

.regat-map-node.status-active .node-icon,
.regat-map-node .node-inner.is-active .node-icon,
.node-icon[data-state="active"] {
    background: linear-gradient(135deg, #4fd36f, #2a9f52);
}

.regat-map-node.status-done .node-inner,
.regat-map-node .node-inner.is-done {
    border-color: #ffd86e;
    box-shadow: 0 0 0 4px rgba(255, 216, 110, 0.18), 0 14px 26px rgba(219, 165, 23, 0.20);
}

.regat-map-node.status-done .node-icon,
.regat-map-node .node-inner.is-done .node-icon,
.node-icon[data-state="done"] {
    background: linear-gradient(135deg, #ffcb49, #f1a500);
}

.regat-map-summary-wrap {
    margin-top: 22px;
}

.regat-map-summary-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(8px);
    border-radius: 22px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 28px rgba(83, 69, 162, 0.12);
    padding: 16px 18px;
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #87829e;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-card strong {
    display: block;
    font-size: 1.12rem;
    color: #45388a;
    line-height: 1.4;
}

.regat-map-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    color: #655f7f;
    font-weight: 700;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.72);
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.92);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-done {
    background: #f1b300;
}

.legend-active {
    background: #38c96a;
}

.legend-locked {
    background: #9d98b7;
}

/* =========================================================
   PAGINA ACASĂ
========================================================= */

.regat-home-page {
    background: linear-gradient(180deg, #f4f1ff 0%, #ffffff 100%);
    color: #2f2a44;
    overflow: hidden;
}

.regat-home-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.regat-home-hero {
    position: relative;
    padding: 44px 0 70px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 28%),
        linear-gradient(135deg, #e9e2ff 0%, #f8f5ff 52%, #fffaf1 100%);
}

.regat-home-floating-pieces {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.regat-home-floating-pieces .piece {
    position: absolute;
    font-size: 3rem;
    opacity: 0.12;
    animation: regatFloat 8s ease-in-out infinite;
}

.regat-home-floating-pieces .piece-1 {
    top: 12%;
    left: 5%;
}

.regat-home-floating-pieces .piece-2 {
    top: 24%;
    right: 8%;
    animation-delay: 1s;
}

.regat-home-floating-pieces .piece-3 {
    bottom: 18%;
    left: 12%;
    animation-delay: 2s;
}

.regat-home-floating-pieces .piece-4 {
    bottom: 16%;
    right: 16%;
    animation-delay: 3s;
}

.regat-home-floating-pieces .piece-5 {
    top: 55%;
    left: 48%;
    animation-delay: 1.5s;
}

.regat-home-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: center;
}

.hero-badge,
.section-kicker,
.split-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6c57ff, #8d79ff);
    color: #fff;
    box-shadow: 0 10px 24px rgba(108, 87, 255, 0.18);
    margin-bottom: 16px;
}

.regat-home-hero-copy h1 {
    margin: 0 0 16px;
    font-size: 3.2rem;
    line-height: 1.06;
    color: #40316d;
}

.hero-subtitle {
    margin: 0 0 22px;
    font-size: 1.1rem;
    line-height: 1.75;
    color: #665f80;
    max-width: 720px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero-buttons-center {
    justify-content: center;
}

.hero-mini-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-mini-links a {
    color: #5d47de;
    font-weight: 700;
    text-decoration: none;
}

.regat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    border: 2px solid transparent;
}

.regat-btn:hover {
    transform: translateY(-2px);
}

.regat-btn-primary {
    background: linear-gradient(135deg, #4cc96d, #24934a);
    color: #fff;
    box-shadow: 0 12px 24px rgba(36, 147, 74, 0.22);
}

.regat-btn-secondary {
    background: linear-gradient(135deg, #6c57ff, #5643d9);
    color: #fff;
    box-shadow: 0 12px 24px rgba(86, 67, 217, 0.22);
}

.regat-btn-outline {
    background: #fff;
    color: #5d47de;
    border-color: #d8d1ff;
}

.regat-btn-gold {
    background: linear-gradient(135deg, #ffd56b, #f0b429);
    color: #4a3510;
    box-shadow: 0 12px 24px rgba(240, 180, 41, 0.22);
}

.regat-btn-small {
    padding: 12px 18px;
    font-size: 0.95rem;
}

.regat-home-hero-card {
    background: rgba(255, 255, 255, 0.86);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    box-shadow: 0 18px 42px rgba(91, 73, 161, 0.16);
    backdrop-filter: blur(10px);
}

.hero-card-inner {
    padding: 28px;
}

.hero-card-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #715dff, #5540d8);
    color: #fff;
    box-shadow: 0 12px 26px rgba(85, 64, 216, 0.24);
}

.regat-home-hero-card h2 {
    margin: 0 0 12px;
    text-align: center;
    color: #46368d;
    font-size: 1.45rem;
}

.regat-home-hero-card p {
    margin: 0 0 18px;
    text-align: center;
    line-height: 1.7;
    color: #67617d;
}

.hero-card-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.hero-card-stats .mini-stat {
    background: #f8f6ff;
    border: 2px solid #ece7ff;
    border-radius: 18px;
    padding: 12px;
    text-align: center;
}

.hero-card-stats .mini-stat strong {
    display: block;
    font-size: 1.2rem;
    color: #443789;
    margin-bottom: 4px;
}

.hero-card-stats .mini-stat span {
    font-size: 0.82rem;
    color: #7a7493;
}

.regat-home-section {
    padding: 74px 0;
}

.regat-home-section-alt {
    background: linear-gradient(180deg, #faf8ff 0%, #f1ecff 100%);
}

.section-heading {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 34px;
}

.section-heading h2 {
    margin: 0 0 12px;
    font-size: 2.35rem;
    color: #43337c;
}

.section-heading p {
    margin: 0;
    color: #68627e;
    line-height: 1.75;
}

.regat-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.regat-feature-card {
    background: #fff;
    border: 2px solid #efebff;
    border-radius: 24px;
    padding: 28px 22px;
    box-shadow: 0 14px 30px rgba(83, 69, 162, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.regat-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(83, 69, 162, 0.12);
}

.feature-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #efe9ff, #fff5dc);
    font-size: 1.7rem;
}

.regat-feature-card h3 {
    margin: 0 0 10px;
    color: #46388a;
    font-size: 1.2rem;
}

.regat-feature-card p {
    margin: 0;
    color: #68627e;
    line-height: 1.7;
}

.regat-split-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.regat-split-card {
    background: #fff;
    border: 2px solid #ece7ff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 16px 34px rgba(83, 69, 162, 0.08);
}

.regat-split-card h2 {
    margin: 0 0 12px;
    color: #43337c;
    font-size: 1.9rem;
}

.regat-split-card p {
    margin: 0 0 16px;
    color: #68627e;
    line-height: 1.75;
}

.regat-check-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.regat-check-list li {
    margin-bottom: 10px;
    color: #504a66;
    font-weight: 600;
}

.split-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.regat-roadmap-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.roadmap-card,
.faq-card {
    background: #fff;
    border: 2px solid #ece7ff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 30px rgba(83, 69, 162, 0.08);
}

.roadmap-top {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f0ebff;
    color: #5c48df;
    font-size: 0.82rem;
    font-weight: 800;
}

.roadmap-card h3,
.faq-card h3 {
    margin: 0 0 10px;
    color: #45378c;
}

.roadmap-card p,
.faq-card p {
    margin: 0 0 12px;
    color: #68627e;
    line-height: 1.7;
}

.roadmap-card a {
    color: #5d47de;
    font-weight: 800;
    text-decoration: none;
}

.regat-home-final-cta {
    background: linear-gradient(180deg, #f6f2ff 0%, #fff 100%);
}

.final-cta-box {
    background: #fff;
    border: 2px solid #ece7ff;
    border-radius: 30px;
    padding: 34px 24px;
    box-shadow: 0 18px 36px rgba(83, 69, 162, 0.10);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.final-cta-box h2 {
    margin: 0 0 12px;
    color: #43337c;
    font-size: 2.2rem;
}

.final-cta-box p {
    margin: 0 0 20px;
    color: #68627e;
    line-height: 1.8;
}

.regat-home-footer {
    background: linear-gradient(145deg, #2f2750, #1f1937);
    color: #fff;
    padding: 52px 0 22px;
}

.regat-home-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.regat-home-footer h4 {
    margin: 0 0 14px;
    color: #ffd56b;
}

.regat-home-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.regat-home-footer li {
    margin-bottom: 10px;
}

.regat-home-footer a {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
}

.regat-home-footer a:hover {
    color: #fff;
}

.regat-home-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.footer-sep {
    margin: 0 8px;
}

/* =========================================================
   FOOTER CREDIT
========================================================= */

.nikki-footer-credit {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    padding: 10px 15px 20px;
    line-height: 1.6;
}

.nikki-footer-credit a {
    color: var(--regal);
    font-weight: 700;
    text-decoration: none;
}

.nikki-footer-credit a:hover {
    text-decoration: underline;
}

/* =========================================================
   RESPONSIVE GLOBAL
========================================================= */

@media (max-width: 1024px) {

    .regat-home-hero-grid,
    .regat-feature-grid,
    .regat-split-grid,
    .regat-roadmap-grid,
    .faq-grid,
    .regat-home-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .regat-home-hero-copy h1 {
        font-size: 2.6rem;
    }

    .regat-map-hero-inner {
        grid-template-columns: 1fr;
    }

    .regat-map-node {
        width: 132px;
    }

    .node-title {
        font-size: 0.76rem;
    }

    .regat-map-summary-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .regatul-sah-title {
        font-size: 2.3rem;
    }

    .regatul-sah-subtitle {
        font-size: 1rem;
        border-radius: 28px;
        max-width: 100%;
    }

    .regatul-sah-main {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .regatul-sah-side,
    .regatul-sah-board-col {
        width: 100%;
        max-width: 560px;
    }

    .regatul-sah-character,
    .regatul-sah-board-shell,
    .regatul-sah-tip {
        margin-left: auto;
        margin-right: auto;
    }

    .regat-register-grid {
        grid-template-columns: 1fr;
    }

    .regat-register-content h1 {
        font-size: 2.3rem;
    }

    .regat-parent-stats {
        grid-template-columns: 1fr;
    }

    .regat-parent-grid {
        grid-template-columns: 1fr;
    }

    .regat-parent-hero h1 {
        font-size: 2.2rem;
    }

    .regat-child-login-grid {
        grid-template-columns: 1fr;
    }

    .regat-child-login-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {

    html,
    body {
        overflow-x: hidden;
    }

    .regatul-sah-lesson-wrap {
        padding: 16px 10px 32px;
    }

    .regatul-sah-card {
        padding: 16px 12px;
        border-radius: 24px;
    }

    .regatul-sah-kicker {
        font-size: 0.8rem;
        padding: 7px 12px;
    }

    .regatul-sah-title {
        font-size: 1.95rem;
        text-shadow: 1px 1px 0 rgba(253, 203, 110, 0.9);
        text-align: center;
    }

    .regatul-sah-subtitle {
        font-size: 0.96rem;
        line-height: 1.45;
        padding: 12px 14px;
        margin-top: 8px;
        box-shadow: 0 5px 0 var(--auriu-inchis);
        border-radius: 22px;
    }

    .regatul-sah-main {
        margin-top: 18px;
        gap: 18px;
    }

    .regatul-sah-side,
    .regatul-sah-board-col {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .regatul-sah-character {
        padding: 18px 14px;
        border-radius: 24px;
        box-shadow: 0 8px 0 var(--regal-inchis);
        max-width: 100%;
    }

    .regatul-sah-character-avatar {
        width: 78px;
        height: 78px;
        font-size: 2rem;
    }

    .regatul-sah-character h3 {
        font-size: 1.55rem;
    }

    .regatul-sah-character p {
        font-size: 0.96rem;
    }

    .regatul-sah-tip {
        font-size: 0.94rem;
        padding: 14px 12px;
        border-radius: 18px;
        max-width: 100%;
    }

    .regatul-sah-board-shell {
        padding: 14px 10px;
        border-radius: 24px;
        box-shadow: 0 8px 0 var(--verde-inchis);
        width: 100%;
        max-width: 100%;
    }

    .regatul-sah-board-wrap {
        width: 100%;
        max-width: 290px;
        margin: 0 auto 14px;
    }

    #board {
        width: 100%;
        max-width: 280px;
        border-radius: 14px;
    }

    #feedback {
        font-size: 0.98rem;
        min-height: 24px;
        max-width: 100%;
        padding: 0 4px;
    }

    .regatul-sah-stats {
        max-width: 220px;
        gap: 12px;
    }

    .regatul-sah-stat {
        font-size: 1rem;
        padding: 12px 10px;
    }

    .regatul-sah-actions {
        gap: 12px;
        width: 100%;
    }

    .regatul-sah-btn {
        width: 100%;
        min-width: 100%;
        padding: 13px 16px;
        font-size: 0.98rem;
    }

    .regatul-sah-floating-piece {
        font-size: 2.1rem;
        opacity: 0.05;
    }

    .regatul-sah-board-wrap,
    #board,
    #board .board-b72b1,
    #board .square-55d63,
    #board .piece-417db {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }

    .regatul-sah-board-wrap,
    #board,
    #board .board-b72b1 {
        touch-action: none !important;
    }

    .regatul-sah-card,
    .regatul-sah-main,
    .regatul-sah-side,
    .regatul-sah-board-col {
        align-items: center;
        justify-content: center;
    }

    .regatul-sah-character,
    .regatul-sah-tip,
    .regatul-sah-board-shell {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .regatul-sah-audio {
        padding: 16px 12px;
        border-radius: 22px;
    }

    .regatul-sah-audio h4 {
        font-size: 1.08rem;
    }

    .regatul-sah-audio p {
        font-size: 0.93rem;
    }

    .regatul-sah-audio-btn {
        width: 100%;
        min-width: 100%;
    }

    .regatul-sah-lessons-nav {
        margin-top: 22px;
    }

    .regatul-sah-lessons-nav-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .regatul-sah-lessons-nav-grid {
        gap: 10px;
    }

    .regatul-sah-lesson-chip {
        width: 100%;
        min-width: 100%;
        font-size: 0.95rem;
        padding: 11px 14px;
    }

    .regatul-sah-save-progress-box {
        max-width: 100%;
        border-radius: 18px;
        padding: 14px 12px;
    }

    .regatul-sah-save-progress-box p {
        font-size: 0.93rem;
    }

    .regat-register-page {
        padding: 20px 10px 40px;
    }

    .regat-register-shell {
        padding: 18px 14px;
        border-radius: 26px;
    }

    .regat-register-content h1 {
        font-size: 1.9rem;
    }

    .regat-register-subtitle {
        font-size: 0.98rem;
        padding: 14px 16px;
        border-radius: 18px;
    }

    .regat-register-form-card {
        padding: 18px 14px;
        border-radius: 22px;
    }

    .regat-register-benefit {
        padding: 14px;
        font-size: 0.95rem;
    }

    .regat-register-piece {
        font-size: 2.5rem;
    }

    .regat-parent-page {
        padding: 20px 10px 40px;
    }

    .regat-parent-shell {
        padding: 18px 14px;
        border-radius: 26px;
    }

    .regat-parent-hero h1 {
        font-size: 1.85rem;
    }

    .regat-parent-subtitle {
        font-size: 0.96rem;
        padding: 14px 16px;
        border-radius: 18px;
    }

    .regat-parent-form-card,
    .regat-parent-children-card {
        padding: 18px 14px;
        border-radius: 22px;
    }

    .regat-child-card {
        flex-direction: column;
        text-align: center;
    }

    .regat-parent-piece {
        font-size: 2.5rem;
    }

    .regat-avatar-grid {
        grid-template-columns: 1fr;
    }

    .regat-avatar-card {
        min-height: 110px;
    }

    .regat-child-login-page {
        padding: 20px 10px 40px;
    }

    .regat-child-login-shell {
        padding: 18px 14px;
        border-radius: 26px;
    }

    .regat-child-login-hero h1 {
        font-size: 1.95rem;
    }

    .regat-child-login-subtitle {
        font-size: 0.96rem;
        padding: 14px 16px;
        border-radius: 18px;
    }

    .regat-child-login-form-card,
    .regat-child-login-avatar-card {
        padding: 18px 14px;
        border-radius: 22px;
    }

    .regat-child-login-avatar-grid {
        grid-template-columns: 1fr;
    }

    .regat-child-login-piece {
        font-size: 2.4rem;
    }

    .regat-map-page {
        padding: 16px 8px 34px;
    }

    .regat-map-player-card,
    .regat-map-title-box {
        border-radius: 20px;
    }

    .regat-map-player-card {
        padding: 14px;
        gap: 12px;
    }

    .avatar-icon {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }

    .regat-map-title-box {
        padding: 16px;
    }

    .regat-map-title-box h1 {
        font-size: 1.45rem;
    }

    .hero-main-text,
    .hero-current-lesson {
        font-size: 0.92rem;
    }

    .regat-map-board {
        border-radius: 24px;
    }

    .regat-map-node {
        width: 104px;
    }

    .regat-map-node .node-inner {
        padding: 10px 7px 8px;
        border-radius: 16px;
    }

    .node-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
        margin-bottom: 6px;
    }

    .node-title {
        font-size: 0.66rem;
        line-height: 1.2;
        margin-bottom: 4px;
    }

    .node-status {
        font-size: 0.62rem;
        margin-bottom: 3px;
    }

    .node-stars {
        font-size: 0.72rem;
    }

    .summary-card {
        padding: 14px 14px;
    }

    .summary-card strong {
        font-size: 1rem;
    }

    .regat-map-legend {
        gap: 10px;
    }

    .legend-item {
        font-size: 0.86rem;
        padding: 8px 10px;
    }

    .regat-home-hero-grid,
    .regat-feature-grid,
    .regat-split-grid,
    .regat-roadmap-grid,
    .faq-grid,
    .regat-home-footer-grid,
    .hero-card-stats {
        grid-template-columns: 1fr;
    }

    .regat-home-container {
        padding: 0 14px;
    }

    .regat-home-hero {
        padding: 26px 0 42px;
    }

    .regat-home-hero-copy h1 {
        font-size: 2rem;
    }

    .section-heading h2,
    .final-cta-box h2 {
        font-size: 1.7rem;
    }

    .regat-home-section {
        padding: 48px 0;
    }

    .regat-home-footer-bottom {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .footer-sep {
        display: none;
    }

    .site-info {
        text-align: center;
        line-height: 1.7;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }

    .site-info>* {
        display: block;
    }

    .ast-footer-copyright,
    .footer-adv,
    .site-primary-footer-wrap {
        text-align: center;
    }

    .site-info .sep,
    .site-info .separator,
    .site-info .ast-footer-separator,
    .site-info span[aria-hidden="true"],
    .site-info .ast-footer-copyright .sep {
        display: none !important;
    }

    .site-info a[href*="nikki.ro"] {
        display: block !important;
        margin-top: 4px;
    }

    .nikki-footer-credit {
        font-size: 0.88rem;
        padding: 8px 12px 18px;
    }
}

@media (max-width: 480px) {
    .regat-map-node {
        width: 96px;
    }

    .node-title {
        font-size: 0.62rem;
    }

    .node-status {
        font-size: 0.58rem;
    }

    .node-stars {
        font-size: 0.68rem;
    }
}

@media (max-width: 380px) {
    .regatul-sah-title {
        font-size: 1.72rem;
    }

    .regatul-sah-subtitle {
        font-size: 0.92rem;
    }

    .regatul-sah-board-wrap {
        max-width: 270px;
    }

    #board {
        max-width: 260px;
    }
}