/* =========================================================
   CHESS DNA — BLACK / FUCHSIA UI
   ========================================================= */

:root {
    --bg: #050505;
    --bg-soft: #090909;
    --surface: #0d0d0f;
    --surface-2: #111114;
    --surface-3: #17171b;

    --border: #242429;
    --border-soft: #1a1a1e;

    --text: #f7f7f8;
    --text-soft: #c6c6cc;
    --muted: #85858e;
    --muted-2: #5f5f68;

    --accent: #ff2bd6;
    --accent-2: #ff4de1;
    --accent-soft: #ff8ceb;
    --accent-dark: #a70084;

    --board-light: #ead8b8;
    --board-dark: #8a5a3b;

    --success: #74c88a;
    --warning: #e5b55e;
    --danger: #f06565;

    --transition: 150ms ease;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    min-width: 320px;

    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 50% -12rem,
            rgba(255, 43, 214, 0.12),
            transparent 35rem
        ),
        #050505;

    color: var(--text);

    -webkit-font-smoothing: antialiased;
}


button,
input {
    font: inherit;
}


button {
    cursor: pointer;
}


button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}


::selection {
    background: rgba(255, 43, 214, 0.36);
    color: #fff;
}


.hidden {
    display: none !important;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.page-shell {
    min-height: 100vh;
}


.topbar {
    width: min(1460px, calc(100% - 56px));
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 0 auto;

    border-bottom: 1px solid #17171b;
}


.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: inherit;
    text-decoration: none;
}


.brand-mark {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 43, 214, 0.45);

    background: #0b0b0d;
    color: var(--accent);

    font-size: 20px;
}


.brand-copy {
    display: grid;
    gap: 1px;
}


.brand-copy strong {
    font-size: 15px;
}


.brand-copy small {
    color: #666670;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.topbar-pill {
    padding: 7px 10px;

    border: 1px solid #202025;

    color: #777780;

    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* =========================================================
   MAIN / HERO
   ========================================================= */

.container {
    width: min(1460px, calc(100% - 56px));
    margin: 0 auto;
    padding: 0 0 90px;
}


.hero {
    min-height: calc(100vh - 78px);

    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(440px, 0.92fr);

    gap: clamp(60px, 8vw, 130px);
    align-items: center;

    padding: 80px 0 100px;
}


.eyebrow,
.card-kicker,
.game-header-kicker {
    color: var(--accent);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}


.hero h1 {
    max-width: 850px;

    margin: 16px 0 24px;

    font-size: clamp(50px, 6vw, 90px);
    font-weight: 760;

    line-height: 0.94;
    letter-spacing: -0.065em;
}


.hero h1 span {
    display: block;

    color: #898991;
}


.subtitle {
    max-width: 700px;

    margin: 0;

    color: #888891;

    font-size: 17px;
    line-height: 1.75;
}


.search-card {
    position: relative;

    padding: 38px;

    border: 1px solid #242429;

    background:
        linear-gradient(
            145deg,
            rgba(255, 43, 214, 0.055),
            transparent 50%
        ),
        #0b0b0d;
}


.search-card::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0;

    width: 58px;
    height: 2px;

    background: var(--accent);
}


.search-card-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 26px;
}


.search-label {
    display: block;

    margin-bottom: 7px;

    font-size: 18px;
    font-weight: 720;
}


.search-card-header p {
    margin: 0;

    color: #71717a;

    font-size: 13px;
    line-height: 1.55;
}


.search-step {
    color: rgba(255, 43, 214, 0.30);

    font-size: 38px;
    font-weight: 800;
}


.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}


.input-wrap {
    position: relative;
}


.input-icon {
    position: absolute;
    left: 19px;
    top: 50%;

    transform: translateY(-50%);

    color: #777780;
}


#username {
    width: 100%;
    height: 66px;

    padding: 0 18px 0 47px;

    border: 1px solid #29292f;
    outline: 0;

    background: #050506;
    color: #fff;

    font-size: 16px;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}


#username::placeholder {
    color: #55555e;
}


#username:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 3px rgba(255, 43, 214, 0.10);
}


.primary-button {
    min-width: 180px;
    height: 66px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    padding: 0 22px;

    border: 1px solid var(--accent);

    background: var(--accent);
    color: #080008;

    font-weight: 850;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}


.primary-button:hover:not(:disabled) {
    transform: translateY(-1px);

    background: #ff5de4;
}


.button-arrow {
    font-size: 18px;
}


.status {
    min-height: 20px;

    margin-top: 14px;

    color: #777780;
    font-size: 12px;
}


/* =========================================================
   GENERAL DASHBOARD
   ========================================================= */

.dashboard {
    display: grid;
    gap: 18px;
}


.section-block {
    padding-top: 12px;
}


.section-heading,
.card-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 28px;
}


.section-heading {
    margin-bottom: 20px;
}


.section-heading h2,
.card-heading h3 {
    margin: 8px 0 0;

    letter-spacing: -0.035em;
}


.section-heading h2 {
    font-size: 30px;
}


.card-heading h3 {
    font-size: 21px;
}


.section-heading > p,
.card-heading > p {
    max-width: 440px;

    margin: 0;

    color: #777780;

    font-size: 12px;
    line-height: 1.6;

    text-align: right;
}


.card {
    border: 1px solid var(--border-soft);
    background: #0a0a0c;

    padding: 28px;
}


.card-heading {
    margin-bottom: 24px;
    padding-bottom: 20px;

    border-bottom: 1px solid #1c1c20;
}


.metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}


.metric-card {
    min-width: 0;

    padding: 20px 18px;

    border: 1px solid #19191d;

    background: #0a0a0c;

    transition:
        border-color var(--transition),
        background var(--transition);
}


.metric-card:hover {
    border-color: rgba(255, 43, 214, 0.34);

    background: #0d0d10;
}


.metric-label {
    min-height: 31px;

    display: block;

    color: #75757e;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.09em;
    line-height: 1.4;
    text-transform: uppercase;
}


.big-number {
    margin: 14px 0 7px;

    font-size: clamp(28px, 3vw, 39px);
    font-weight: 760;

    letter-spacing: -0.045em;
}


.compact-number {
    font-size: clamp(23px, 2.3vw, 31px);
}


.metric-note {
    color: #55555d;

    font-size: 10px;
    line-height: 1.4;
}


/* =========================================================
   MOVE QUALITY
   ========================================================= */

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


.quality-item {
    position: relative;

    padding: 16px 13px;

    border: 1px solid #1d1d21;

    background: #0f0f12;
}


.quality-item::after {
    content: "";

    position: absolute;
    left: 0;
    top: 0;

    width: 100%;
    height: 2px;
}


.quality-item span {
    display: block;

    margin-bottom: 13px;

    color: #777780;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.quality-item strong {
    font-size: 26px;
}


.quality-brilliant-card::after {
    background: #66d4db;
}

.quality-best-card::after {
    background: #78c98e;
}

.quality-good-card::after {
    background: #a1d591;
}

.quality-inaccuracy-card::after {
    background: #e5c75f;
}

.quality-mistake-card::after {
    background: #ed9858;
}

.quality-miss-card::after {
    background: #b774dd;
}

.quality-blunder-card::after {
    background: #f06363;
}


/* =========================================================
   DNA / WEAKNESSES / TRAINING
   ========================================================= */

.chess-dna-card {
    border-top-color: rgba(255, 43, 214, 0.34);
}


.dna-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
}


.dna-label,
.dna-section-title,
.subsection-title {
    color: #777780;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.11em;
    text-transform: uppercase;
}


.dna-name {
    margin: 9px 0 6px;

    color: var(--accent);

    font-size: clamp(35px, 5vw, 54px);
    font-weight: 780;

    letter-spacing: -0.055em;
}


.dna-confidence {
    margin-bottom: 18px;

    color: #777780;
    font-size: 12px;
}


.dna-description {
    max-width: 680px;

    color: #b4b4bb;
    line-height: 1.7;
}


.dna-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}


.dna-column,
.weakness-main,
.training-day,
.color-panel,
.checkpoint {
    border: 1px solid #1e1e23;
    background: #0e0e11;
}


.dna-column {
    padding: 18px;
}


.dna-section-title {
    margin-bottom: 12px;
}


.dna-item {
    padding: 10px 0;

    border-top: 1px solid #1d1d21;

    color: #b8b8bf;
    font-size: 12px;
    line-height: 1.45;
}


.dna-item:first-child {
    border-top: 0;
}


.weakness-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;

    margin-bottom: 28px;
}


.weakness-main {
    padding: 18px;
}


.weakness-main span {
    display: block;

    margin-bottom: 8px;

    color: #74747d;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.weakness-main strong {
    font-size: 17px;
}


.phase-bars {
    display: grid;
    gap: 17px;

    margin-bottom: 28px;
}


.phase-header {
    display: flex;
    justify-content: space-between;

    margin-bottom: 7px;

    color: #aaaab1;
    font-size: 12px;
}


.phase-track {
    height: 6px;

    background: #202024;
}


.phase-fill {
    width: 0;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #8d006f,
            var(--accent)
        );

    transition: width 330ms ease;
}


.weakness-pattern {
    padding: 12px 0;

    border-top: 1px solid #1d1d21;

    color: #b5b5bc;
    font-size: 12px;
}


#trainingPlan {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}


.training-day {
    padding: 19px;
}


.training-day-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;

    margin-bottom: 15px;
}


.training-day-number {
    margin-bottom: 4px;

    color: var(--accent);

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.1em;
}


.training-day-title {
    font-size: 18px;
    font-weight: 720;
}


.training-focus {
    height: fit-content;

    padding: 5px 8px;

    border: 1px solid rgba(255, 43, 214, 0.28);

    color: var(--accent-soft);

    font-size: 9px;
    font-weight: 800;
}


.training-tasks {
    margin: 0 0 14px;
    padding-left: 18px;

    color: #b9b9c0;

    font-size: 12px;
    line-height: 1.55;
}


.training-reason {
    padding-top: 13px;

    border-top: 1px solid #1d1d21;

    color: #74747d;

    font-size: 11px;
    line-height: 1.55;
}


/* =========================================================
   OTHER DASHBOARD SECTIONS
   ========================================================= */

.color-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}


.color-panel {
    padding: 21px;
}


.color-panel-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 17px;

    font-size: 16px;
    font-weight: 720;
}


.side-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;
}


.white-dot {
    border: 1px solid #aaa;
    background: #eee;
}


.black-dot {
    border: 1px solid #555;
    background: #19191c;
}


.color-stat {
    display: flex;
    justify-content: space-between;
    gap: 18px;

    padding: 11px 0;

    border-top: 1px solid #1d1d21;
}


.color-stat span {
    color: #75757d;
    font-size: 11px;
}


.four-column {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}


.checkpoint {
    padding: 19px;
}


.checkpoint > span {
    color: #73737c;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.checkpoint .big-number {
    margin: 11px 0 4px;
}


.checkpoint p {
    margin: 0;

    color: #55555d;
    font-size: 10px;
}


.opening-row {
    display: grid;
    grid-template-columns: 2fr 0.6fr 0.8fr 1fr;
    gap: 15px;
    align-items: center;

    padding: 14px 2px;

    border-bottom: 1px solid #1d1d21;
}


.opening-name {
    font-weight: 650;
}


.opening-label {
    color: #5f5f68;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.opening-value {
    margin-top: 4px;

    color: #aaaab2;
    font-size: 12px;
}


.game-row {
    display: grid;
    grid-template-columns: 2fr 0.8fr 0.8fr 1fr 0.7fr;
    gap: 15px;
    align-items: center;

    padding: 15px 16px;
    margin-bottom: 5px;

    border: 1px solid #1b1b20;

    background: #0d0d10;

    cursor: pointer;

    transition:
        border-color var(--transition),
        background var(--transition);
}


.game-row:hover {
    border-color: rgba(255, 43, 214, 0.38);

    background:
        linear-gradient(
            90deg,
            rgba(255, 43, 214, 0.045),
            transparent 35%
        ),
        #0f0f12;
}


.game-opponent {
    font-weight: 700;
}


.game-meta {
    margin-top: 4px;

    color: #73737c;
    font-size: 10px;
}


.result-win {
    color: #7fd393;
    font-weight: 800;
}

.result-loss {
    color: #ef7474;
    font-weight: 800;
}

.result-draw {
    color: #b5b5bc;
    font-weight: 800;
}


/* =========================================================
   GAME REVIEW — CHESS.COM-LIKE WORKSPACE
   ========================================================= */

.game-analysis-card {
    padding: 0;

    border-color: #202025;

    background: #070708;

    scroll-margin-top: 14px;
}


.game-analysis-card > .card-heading {
    margin: 0;
    padding: 24px 26px;

    border-bottom: 1px solid #202025;
}


#gameDetails {
    width: 100%;
}


.game-review-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;

    padding: 22px 26px;

    border-bottom: 1px solid #202025;
}


.game-header {
    margin: 0;
}


.game-header-kicker {
    margin-bottom: 6px;
}


.game-header h2 {
    margin: 0 0 5px;

    font-size: 25px;
    letter-spacing: -0.04em;
}


.game-review-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;

    margin: 0;
}


.game-review-summary > div {
    min-width: 68px;

    padding: 8px 10px;

    border-left: 1px solid #25252a;

    background: transparent;
}


.game-review-summary span {
    display: block;

    margin-bottom: 3px;

    color: #66666f;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}


.game-review-summary strong {
    font-size: 15px;
}


.worst-move-button {
    padding: 8px 10px;

    border: 1px solid rgba(240, 101, 101, 0.28);

    background: transparent;
    color: #ef8181;

    font-size: 10px;
    font-weight: 750;
}


.worst-move-button:hover {
    background: rgba(240, 101, 101, 0.06);
}


.analysis-layout {
    display: grid;
    grid-template-columns:
        minmax(500px, 1.35fr)
        minmax(360px, 0.65fr);

    min-height: 690px;
}


.analysis-board-column {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 26px 30px;

    border-right: 1px solid #202025;

    background: #080809;
}


.board-with-eval {
    width: min(100%, 760px);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 8px;
}


.evaluation-bar {
    position: relative;

    overflow: hidden;

    border: 1px solid #25252a;

    background: #18181b;
}


.evaluation-white {
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;

    background: #efe4d2;

    transition: height 220ms ease;
}


.evaluation-value {
    position: absolute;
    left: 50%;
    top: 50%;

    z-index: 2;

    transform:
        translate(-50%, -50%)
        rotate(-90deg);

    color: #999;

    font-size: 8px;
    font-weight: 850;

    mix-blend-mode: difference;
}


#selectedBoard {
    width: 100%;
}


.fen-board {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 1;

    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);

    overflow: hidden;

    border: 1px solid #32251d;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.36);
}


.fen-square {
    min-width: 0;
    min-height: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #15100d;

    font-size: clamp(28px, 4.3vw, 56px);
    line-height: 1;

    user-select: none;
}


.fen-square.light {
    background: var(--board-light);
}


.fen-square.dark {
    background: var(--board-dark);
}


.fen-square.played-square {
    box-shadow:
        inset 0 0 0 999px rgba(255, 43, 214, 0.26);
}


.fen-square.best-square {
    box-shadow:
        inset 0 0 0 999px rgba(112, 207, 136, 0.24);
}


.board-toolbar {
    width: min(100%, 760px);
    min-height: 48px;

    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;

    margin: 10px auto 0;

    border-top: 1px solid #202025;
    border-bottom: 1px solid #202025;
}


.nav-button {
    height: 38px;

    border: 0;

    background: transparent;
    color: #8f8f98;

    font-size: 18px;

    transition:
        color var(--transition),
        background var(--transition);
}


.nav-button:hover:not(:disabled) {
    background: rgba(255, 43, 214, 0.07);
    color: var(--accent);
}


.move-counter {
    text-align: center;
}


.move-counter strong {
    display: block;

    font-size: 13px;
    font-weight: 750;
}


.move-counter span {
    display: block;

    margin-top: 2px;

    color: #65656e;
    font-size: 9px;
}


.board-caption {
    margin-top: 8px;

    color: #52525a;

    font-size: 9px;
    text-align: center;
}


.analysis-side-column {
    min-width: 0;

    display: grid;
    grid-template-rows: minmax(270px, 0.8fr) auto;

    background: #0b0b0d;
}


.notation-panel {
    min-height: 0;

    display: flex;
    flex-direction: column;

    border-bottom: 1px solid #202025;
}


.review-panel-heading {
    min-height: 61px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 13px 18px;

    border-bottom: 1px solid #202025;
}


.review-panel-heading > div {
    display: grid;
    gap: 3px;
}


.review-panel-heading span {
    color: #62626b;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}


.review-panel-heading strong {
    font-size: 13px;
    font-weight: 740;
}


.review-panel-hint {
    color: #505058 !important;

    font-size: 8px !important;
}


.move-list {
    flex: 1;
    min-height: 0;
    max-height: 350px;

    overflow-y: auto;

    display: grid;
    align-content: start;
    gap: 0;

    margin: 0;
    padding: 8px 10px;

    border: 0;

    background: #0b0b0d;

    scrollbar-width: thin;
    scrollbar-color: #35353a transparent;
}


.move-list-row {
    display: grid;
    grid-template-columns: 38px 1fr 1fr;
    gap: 2px;
    align-items: center;

    min-height: 34px;
}


.move-list-number {
    padding-right: 5px;

    color: #5d5d66;

    font-size: 10px;
    text-align: right;
}


.move-list-button {
    min-height: 30px;

    padding: 5px 8px !important;

    border: 0 !important;
    outline: 0;

    font-size: 11px !important;
    font-weight: 700 !important;

    transition:
        background var(--transition),
        color var(--transition);
}


.move-list-button:hover {
    filter: brightness(1.08);
}


.move-list-button.active {
    box-shadow:
        inset 2px 0 0 var(--accent) !important;

    filter: brightness(1.12);
}


.move-list-empty {
    min-height: 30px;

    border: 0;
    background: transparent;
}


.move-panel {
    min-width: 0;

    padding: 0;

    border: 0;

    background: #0d0d10;
}


.review-panel-heading-details {
    border-bottom: 1px solid #202025;
}


.move-quality-badge {
    margin: 0;

    padding: 5px 8px;

    border: 1px solid #28282e;

    background: #151518;

    font-size: 8px;
    font-weight: 850;

    letter-spacing: 0.07em;
}


.quality-brilliant {
    color: #80dce0;
}

.quality-best {
    color: #8bd09d;
}

.quality-good {
    color: #abd69e;
}

.quality-inaccuracy {
    color: #e2c96c;
}

.quality-mistake {
    color: #eda066;
}

.quality-miss {
    color: #c58be5;
}

.quality-blunder {
    color: #f47676;
}


.move-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    border-bottom: 1px solid #202025;
}


.move-detail-primary {
    padding: 15px 18px;

    border-right: 1px solid #202025;
}


.move-detail-primary:last-child {
    border-right: 0;
}


.move-detail-primary span {
    display: block;

    margin-bottom: 6px;

    color: #66666f;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.move-detail-primary strong {
    color: #fff;

    font-size: 21px;
    font-weight: 780;
}


.move-detail-best strong {
    color: var(--accent);
}


.move-panel-row {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;

    padding: 10px 18px;

    border-bottom: 1px solid #1b1b20;
}


.move-panel-row span {
    color: #696972;
    font-size: 10px;
}


.move-panel-row strong {
    color: #c6c6cd;

    font-size: 11px;
    font-weight: 650;
    line-height: 1.45;

    text-align: right;
    overflow-wrap: anywhere;
}


.move-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    padding: 12px 18px;

    border-bottom: 1px solid #202025;
}


.move-fact {
    padding: 4px 6px;

    border: 1px solid #2a2a30;

    color: #8b8b94;

    font-size: 7px;
    font-weight: 850;

    letter-spacing: 0.05em;
}


.move-fact-best,
.move-fact-positive {
    color: #89ce9a;
}


.move-fact-negative {
    color: #ef7878;
}


.coach-block {
    padding: 16px 18px 18px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 43, 214, 0.035),
            transparent 60%
        ),
        #0d0d10;
}


.coach-heading {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 12px;
}


.coach-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 14px rgba(255, 43, 214, 0.75);
}


.coach-heading > div {
    display: grid;
    gap: 2px;
}


.coach-heading span {
    color: var(--accent);

    font-size: 8px;
    font-weight: 850;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.coach-heading strong {
    font-size: 12px;
}


.coach-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;

    margin: 0;
}


.coach-question {
    min-height: 35px;

    padding: 7px 8px;

    border: 1px solid #28282e;

    background: #141417;
    color: #a8a8b0;

    font-size: 9px;
    font-weight: 750;

    transition:
        border-color var(--transition),
        color var(--transition),
        background var(--transition);
}


.coach-question:hover {
    border-color: rgba(255, 43, 214, 0.45);

    background: rgba(255, 43, 214, 0.055);
    color: #fff;
}


.coach-response {
    margin-top: 9px;
    padding: 12px;

    border-left: 2px solid var(--accent);

    background: #111114;
    color: #c3c3ca;

    font-size: 11px;
    line-height: 1.65;
}


.opponent-move-panel {
    padding: 0;
}


.opponent-note {
    margin: 0;
    padding: 14px 18px;

    color: #676770;

    font-size: 10px;
    line-height: 1.55;
}


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

.footer {
    width: min(1460px, calc(100% - 56px));

    display: flex;
    justify-content: space-between;

    margin: 0 auto;
    padding: 21px 0 30px;

    border-top: 1px solid #17171b;

    color: #52525a;
    font-size: 10px;
}


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

@media (max-width: 1220px) {

    .metric-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .move-quality-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .analysis-layout {
        grid-template-columns:
            minmax(460px, 1.12fr)
            minmax(330px, 0.88fr);
    }

}


@media (max-width: 950px) {

    .hero {
        grid-template-columns: 1fr;

        min-height: auto;

        padding: 70px 0 90px;
    }

    .search-card {
        max-width: 760px;
    }

    .dna-layout,
    .analysis-layout {
        grid-template-columns: 1fr;
    }

    .analysis-board-column {
        border-right: 0;
        border-bottom: 1px solid #202025;
    }

    .analysis-side-column {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .notation-panel {
        border-right: 1px solid #202025;
        border-bottom: 0;
    }

    .move-list {
        max-height: 430px;
    }

    #trainingPlan {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 720px) {

    .container,
    .topbar,
    .footer {
        width: calc(100% - 28px);
    }

    .topbar-pill {
        display: none;
    }

    .hero {
        padding: 52px 0 70px;
    }

    .hero h1 {
        font-size: clamp(44px, 13vw, 64px);
    }

    .search-card {
        padding: 24px;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .primary-button {
        width: 100%;
    }

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

    .section-heading,
    .card-heading,
    .game-review-top {
        display: block;
    }

    .section-heading > p,
    .card-heading > p {
        margin-top: 10px;

        text-align: left;
    }

    .game-review-summary {
        justify-content: flex-start;

        margin-top: 16px;
    }

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

    .weakness-summary,
    .color-comparison,
    .dna-side {
        grid-template-columns: 1fr;
    }

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

    .analysis-side-column {
        grid-template-columns: 1fr;
    }

    .notation-panel {
        border-right: 0;
        border-bottom: 1px solid #202025;
    }

    .move-list {
        max-height: 300px;
    }

    .coach-actions {
        grid-template-columns: 1fr;
    }

    .game-row {
        grid-template-columns: 1fr 1fr;
    }

    .game-opponent {
        grid-column: 1 / -1;
    }

    .footer {
        flex-direction: column;
        gap: 4px;
    }

}


@media (max-width: 480px) {

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 20px 15px;
    }

    .game-analysis-card {
        padding: 0;
    }

    .game-analysis-card > .card-heading {
        padding: 20px 16px;
    }

    .game-review-top {
        padding: 18px 16px;
    }

    .analysis-board-column {
        padding: 16px 10px;
    }

    .board-with-eval {
        grid-template-columns: 20px 1fr;
        gap: 5px;
    }

    .move-detail-grid {
        grid-template-columns: 1fr 1fr;
    }

    .move-panel-row {
        grid-template-columns: 92px 1fr;
        padding-inline: 14px;
    }

}


/* =========================================================
   MULTI-PAGE APP SHELL
   ========================================================= */

.site-nav {
    width: min(1460px, calc(100% - 56px));
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    margin: 0 auto;

    border-bottom: 1px solid #17171b;
}

.site-nav .brand {
    flex: 0 0 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;

    overflow-x: auto;

    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-link {
    padding: 9px 11px;

    border-bottom: 2px solid transparent;

    color: #777780;

    font-size: 11px;
    font-weight: 750;

    text-decoration: none;
    white-space: nowrap;

    transition:
        color var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.025);
}

.nav-link.active {
    border-bottom-color: var(--accent);
    color: #fff;
}

.nav-cta {
    padding: 9px 13px;

    border: 1px solid rgba(255, 43, 214, 0.42);

    color: var(--accent);

    font-size: 10px;
    font-weight: 850;

    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-cta:hover {
    background: rgba(255, 43, 214, 0.07);
}

.page-main {
    width: min(1460px, calc(100% - 56px));
    margin: 0 auto;
    padding: 54px 0 90px;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;

    margin-bottom: 30px;
    padding-bottom: 26px;

    border-bottom: 1px solid #1b1b20;
}

.page-header h1 {
    margin: 10px 0 8px;

    font-size: clamp(38px, 5vw, 64px);
    line-height: 1;

    letter-spacing: -0.055em;
}

.page-header p {
    max-width: 660px;
    margin: 0;

    color: #7d7d86;

    font-size: 14px;
    line-height: 1.7;
}

.player-context {
    flex: 0 0 auto;

    display: grid;
    gap: 3px;

    min-width: 180px;

    padding: 13px 15px;

    border-left: 2px solid var(--accent);

    background: #0b0b0e;
}

.player-context span {
    color: #64646d;

    font-size: 8px;
    font-weight: 850;

    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.player-context strong {
    color: #fff;
    font-size: 15px;
}

.empty-state {
    padding: 50px 24px;

    border: 1px solid #1d1d22;

    background: #0a0a0c;

    text-align: center;
}

.empty-state h2 {
    margin: 0 0 10px;

    font-size: 25px;
}

.empty-state p {
    max-width: 560px;
    margin: 0 auto 20px;

    color: #777780;
    line-height: 1.6;
}

.empty-state a {
    display: inline-flex;
    align-items: center;

    min-height: 44px;

    padding: 0 16px;

    border: 1px solid var(--accent);

    background: var(--accent);
    color: #080008;

    font-weight: 850;
    text-decoration: none;
}

.page-stack {
    display: grid;
    gap: 18px;
}

.stats-lead-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 10px;
}

.stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.stats-mini {
    padding: 18px;

    border: 1px solid #1d1d22;

    background: #0d0d10;
}

.stats-mini span {
    display: block;

    margin-bottom: 8px;

    color: #676770;

    font-size: 8px;
    font-weight: 850;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.stats-mini strong {
    font-size: 24px;
    letter-spacing: -0.04em;
}

.hero-home {
    min-height: calc(100vh - 78px);

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(470px, 0.85fr);
    align-items: center;
    gap: clamp(70px, 9vw, 150px);

    padding: 80px 0 105px;
}

.home-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 30px;
}

.home-proof span {
    padding: 7px 9px;

    border: 1px solid #202025;

    color: #6f6f78;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.home-search-card {
    padding: 42px;

    border: 1px solid #25252b;

    background:
        linear-gradient(
            145deg,
            rgba(255, 43, 214, 0.07),
            transparent 45%
        ),
        #0b0b0d;
}

.home-search-card h2 {
    margin: 0 0 8px;

    font-size: 28px;
    letter-spacing: -0.04em;
}

.home-search-card > p {
    margin: 0 0 25px;

    color: #777780;

    font-size: 13px;
    line-height: 1.6;
}

.home-search-card .search-box {
    grid-template-columns: 1fr;
}

.home-search-card #username {
    height: 72px;

    font-size: 17px;
}

.home-search-card .primary-button {
    width: 100%;
    height: 62px;
}

.home-status {
    min-height: 22px;

    margin-top: 14px;

    color: #7a7a83;
    font-size: 12px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.about-card {
    padding: 22px;

    border: 1px solid #1d1d22;

    background: #0c0c0f;
}

.about-card span {
    color: var(--accent);

    font-size: 9px;
    font-weight: 850;

    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-card h3 {
    margin: 10px 0 8px;

    font-size: 19px;
}

.about-card p {
    margin: 0;

    color: #777780;

    font-size: 12px;
    line-height: 1.65;
}

@media (max-width: 980px) {
    .site-nav {
        align-items: flex-start;
        flex-direction: column;

        padding: 15px 0;
    }

    .nav-links {
        width: 100%;
    }

    .nav-cta {
        display: none;
    }

    .hero-home,
    .stats-lead-grid {
        grid-template-columns: 1fr;
    }

    .hero-home {
        min-height: 0;

        padding: 70px 0 90px;
    }

    .home-search-card {
        max-width: 760px;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-context {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .site-nav,
    .page-main {
        width: calc(100% - 28px);
    }

    .stats-mini-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .home-search-card {
        padding: 24px;
    }
}


/* =========================================================
   GAME NOTATION V2 — CHESS.COM-LIKE
   ========================================================= */

.notation-panel {
    background: #1d1d1f;
}

.notation-panel .review-panel-heading {
    min-height: 52px;

    padding: 11px 14px;

    background: #242426;

    border-bottom: 1px solid #303034;
}

.notation-panel .review-panel-heading strong {
    font-size: 12px;
}

.move-list {
    max-height: 420px;

    padding: 0;

    background: #1d1d1f;
}

.move-list-row {
    min-height: 38px;

    grid-template-columns:
        48px
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.018);
}

.move-list-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.018);
}

.move-list-number {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding: 0 12px 0 4px;

    color: #85858b;

    font-size: 11px;
    font-weight: 650;

    text-align: right;
}

.move-list-button {
    position: relative;

    min-width: 0;
    min-height: 38px;

    display: flex;
    align-items: center;

    padding: 0 12px !important;

    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    color: #d7d7da;

    font-size: 13px !important;
    font-weight: 700 !important;

    text-align: left;

    box-shadow: none !important;

    transition:
        background 120ms ease,
        color 120ms ease;
}

.move-list-button:hover {
    transform: none !important;
    filter: none !important;

    background: #303033 !important;
}

.move-list-button.active {
    background: #3a3a3e !important;

    box-shadow:
        inset 3px 0 0 var(--accent) !important;
}

.move-list-button.active .move-san {
    color: #ffffff;
}

.move-san {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.move-list-empty {
    min-height: 38px;

    border: 0;
    border-radius: 0;

    background: transparent;
}


/* Classification colors — the move text itself */

.move-quality-brilliant .move-san {
    color: #55d6df;
}

.move-quality-best .move-san {
    color: #6fca89;
}

.move-quality-good .move-san {
    color: #a9cfa5;
}

.move-quality-inaccuracy .move-san {
    color: #e3c85d;
}

.move-quality-mistake .move-san {
    color: #ef9c5b;
}

.move-quality-miss .move-san {
    color: #c27be7;
}

.move-quality-blunder .move-san {
    color: #f06464;
}

.move-quality-opponent .move-san {
    color: #d2d2d5;
}


/* Selected move keeps the quality readable,
   but becomes brighter like a Chess.com selection. */

.move-list-button.active.move-quality-brilliant .move-san {
    color: #7ce9ef;
}

.move-list-button.active.move-quality-best .move-san {
    color: #8de0a3;
}

.move-list-button.active.move-quality-good .move-san {
    color: #c0e3bc;
}

.move-list-button.active.move-quality-inaccuracy .move-san {
    color: #f0d96f;
}

.move-list-button.active.move-quality-mistake .move-san {
    color: #ffaf72;
}

.move-list-button.active.move-quality-miss .move-san {
    color: #d99bf4;
}

.move-list-button.active.move-quality-blunder .move-san {
    color: #ff7a7a;
}

@media (max-width: 720px) {
    .move-list-row {
        grid-template-columns:
            40px
            minmax(0, 1fr)
            minmax(0, 1fr);
    }

    .move-list-button {
        padding-inline: 9px !important;
        font-size: 12px !important;
    }
}


/* =========================================================
   GAME REVIEW V3 — CLEANER RIGHT PANEL
   ========================================================= */

/* Give the notation more visual priority. */
.analysis-side-column {
    grid-template-rows:
        minmax(360px, 1.15fr)
        auto;
}

/* Slightly calmer right side. */
.notation-panel,
.move-panel {
    background: #19191c;
}

/* More space for the score sheet. */
.move-list {
    max-height: 460px;
    min-height: 300px;
}

/* Large navigation under notation, inspired by chess analysis apps. */
.notation-navigation {
    display: grid;
    grid-template-columns:
        minmax(92px, 1fr)
        minmax(120px, 1.25fr)
        minmax(92px, 1fr);

    min-height: 64px;

    border-top: 1px solid #303034;

    background: #202023;
}

.notation-nav-button {
    border: 0;
    border-right: 1px solid #303034;
    border-radius: 0;

    background: #242427;
    color: #c6c6cb;

    font-size: 27px;
    font-weight: 500;

    transition:
        background 120ms ease,
        color 120ms ease;
}

.notation-nav-button:last-child {
    border-right: 0;
    border-left: 1px solid #303034;
}

.notation-nav-button:hover:not(:disabled) {
    background: #303034;
    color: var(--accent);
}

.notation-nav-button:disabled {
    color: #55555d;
    background: #202023;
}

.notation-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 8px 14px;

    background: #202023;

    text-align: center;
}

.notation-position strong {
    color: #f5f5f7;

    font-size: 13px;
    font-weight: 800;
}

.notation-position span {
    margin-top: 3px;

    color: #686870;

    font-size: 9px;
}

/* Simplify move analysis: fewer rows, more room for what matters. */
.move-panel-row {
    min-height: 42px;

    align-items: center;
}

/* Make evaluation visually important because expected score/loss are removed. */
.move-panel-row span:first-child {
    color: #73737d;
}

.move-detail-grid {
    background: #101012;
}

.move-detail-primary {
    padding-top: 17px;
    padding-bottom: 17px;
}

/* Coach visually separated from raw engine facts. */
.coach-block {
    border-top: 1px solid #2a2a2f;

    background:
        linear-gradient(
            180deg,
            rgba(255, 43, 214, 0.045),
            transparent 55%
        ),
        #121214;
}

/* Tighten the technical fact chips. */
.move-facts {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* On shorter screens keep notation usable without crushing the coach. */
@media (max-height: 850px) and (min-width: 951px) {
    .analysis-side-column {
        grid-template-rows:
            minmax(315px, 1fr)
            auto;
    }

    .move-list {
        max-height: 360px;
        min-height: 250px;
    }

    .notation-navigation {
        min-height: 56px;
    }
}

@media (max-width: 950px) {
    .notation-navigation {
        grid-template-columns:
            minmax(80px, 1fr)
            minmax(110px, 1.3fr)
            minmax(80px, 1fr);
    }

    .move-list {
        min-height: 240px;
    }
}


/* =========================================================
   BOARD ARROWS V4
   ========================================================= */

/* No colored square overlays anymore. */
.fen-square.played-square,
.fen-square.best-square {
    box-shadow: none !important;
}

/* Keep arrows visually above squares but below any future UI overlay. */
.fen-board > svg {
    pointer-events: none;
}


/* =========================================================
   HOME HERO — KEEP THIS BLOCK
   ========================================================= */

.hero-title {
    margin: 18px 0 28px;

    font-size: clamp(58px, 6.5vw, 96px);
    font-weight: 780;

    line-height: 0.92;
    letter-spacing: -0.065em;
}

.hero-title-main,
.hero-title-soft {
    display: block;
}

.hero-title-main {
    color: #ffffff;
}

.hero-title-soft {
    margin-top: 6px;

    color: rgba(255, 255, 255, 0.24);
}

.subtitle {
    max-width: 720px;

    margin: 0;

    color: #8a8a93;

    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   BOARD POSITION STABILITY — KEEP BOARD AT TOP
   ========================================================= */

.analysis-layout {
    align-items: start !important;
}

.analysis-board-column {
    justify-content: flex-start !important;
    align-self: start !important;
}


/* =========================================================
   CLEAN BOARD ARROWS V5
   ========================================================= */

/*
   Arrow SVGs are deliberately subtle.
   The pieces and position remain the visual focus.
*/
.fen-board > svg {
    pointer-events: none;
    opacity: 1;
}


/* =========================================================
   HOME HERO — PRESERVE CUSTOM HERO
   ========================================================= */

.hero-title {
    margin: 18px 0 28px;

    font-size: clamp(58px, 6.5vw, 96px);
    font-weight: 780;

    line-height: 0.92;
    letter-spacing: -0.065em;
}

.hero-title-main,
.hero-title-soft {
    display: block;
}

.hero-title-main {
    color: #ffffff;
}

.hero-title-soft {
    margin-top: 6px;

    color: rgba(255, 255, 255, 0.24);
}

.subtitle {
    max-width: 720px;

    margin: 0;

    color: #8a8a93;

    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   EXTERNAL SVG PIECES + BOARD COORDINATES
   ========================================================= */

/* Preserve the board colors currently used in Game Review. */
.fen-board {
    background: #b98b67;
}

.fen-square.light {
    background: #ead6ad;
}

.fen-square.dark {
    background: #b98964;
}

.fen-square {
    position: relative;
    overflow: hidden;
}

.fen-piece {
    position: relative;
    z-index: 2;

    width: 84%;
    height: 84%;

    display: block;
    object-fit: contain;

    pointer-events: none;
    user-select: none;
}

.board-rank-label {
    position: absolute;
    z-index: 4;

    top: 5px;
    left: 6px;

    font-size: clamp(9px, 1vw, 13px);
    font-weight: 750;
    line-height: 1;

    pointer-events: none;
}

.board-file-label {
    position: absolute;
    z-index: 4;

    right: 6px;
    bottom: 5px;

    font-size: clamp(9px, 1vw, 13px);
    font-weight: 750;
    line-height: 1;

    pointer-events: none;
}

.coordinate-on-light {
    color: #a97855;
}

.coordinate-on-dark {
    color: #f0dcb7;
}


/* =========================================================
   NOTATION NAVIGATION V6
   first | previous | next | last
   ========================================================= */

.notation-navigation {
    display: grid !important;
    grid-template-columns:
        minmax(58px, 1fr)
        86px
        86px
        minmax(58px, 1fr) !important;

    align-items: stretch;
    gap: 1px;

    min-height: 66px;

    border-top: 1px solid #303035;
    background: #161618;
}

.notation-nav-button {
    appearance: none;

    min-width: 0;
    min-height: 66px;

    border: 0;
    border-radius: 0 !important;

    background: transparent;
    color: #a5a5ac;

    font: inherit;

    cursor: pointer;

    transition:
        background 120ms ease,
        color 120ms ease,
        opacity 120ms ease;
}

.notation-nav-button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.045);
    color: #ffffff;
}

.notation-nav-button:active:not(:disabled) {
    background: rgba(255, 43, 214, 0.07);
}

.notation-nav-button:disabled {
    opacity: 0.25;
    cursor: default;
}

.notation-nav-main {
    font-size: 29px;
    font-weight: 400;
}

.notation-nav-edge {
    font-size: 20px;
    font-weight: 500;
    color: #73737b;
}

#notationFirstMove {
    justify-self: start;
    width: 64px;
}

#notationLastMove {
    justify-self: end;
    width: 64px;
}


/* Old center move label is no longer used. */
.notation-position {
    display: none !important;
}


/* =========================================================
   BOARD POSITION STABILITY
   ========================================================= */

.analysis-layout {
    align-items: start !important;
}

.analysis-board-column {
    justify-content: flex-start !important;
    align-self: start !important;
}


/* =========================================================
   HOME HERO — KEEP
   ========================================================= */

.hero-title {
    margin: 18px 0 28px;

    font-size: clamp(58px, 6.5vw, 96px);
    font-weight: 780;

    line-height: 0.92;
    letter-spacing: -0.065em;
}

.hero-title-main,
.hero-title-soft {
    display: block;
}

.hero-title-main {
    color: #ffffff;
}

.hero-title-soft {
    margin-top: 6px;

    color: rgba(255, 255, 255, 0.24);
}

.subtitle {
    max-width: 720px;

    margin: 0;

    color: #8a8a93;

    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   GAME REVIEW HEADER V7 — CLEAN / SIMPLE
   ========================================================= */

.game-review-top-clean {
    display: grid;
    gap: 18px;

    margin-bottom: 22px;
}

.game-header-clean {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;

    padding: 0;

    border: 0;
    background: transparent;
}

.game-header-main {
    min-width: 0;
}

.game-header-clean h2 {
    margin: 4px 0 8px;

    color: #ffffff;

    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.game-header-kicker {
    color: #777780;

    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.game-meta-clean {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    color: #8d8d95;

    font-size: 13px;
}

.game-meta-separator {
    color: #4d4d53;
}

.game-meta-item {
    min-width: 0;
}

.game-review-summary-clean {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));

    border-top: 1px solid #2a2a2e;
    border-bottom: 1px solid #2a2a2e;

    background: #151517;
}

.game-review-summary-clean .summary-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;

    min-width: 0;
    padding: 14px 16px;

    border-right: 1px solid #252529;
}

.game-review-summary-clean .summary-item:last-child {
    border-right: 0;
}

.game-review-summary-clean .summary-item span {
    overflow: hidden;

    color: #7f7f87;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-review-summary-clean .summary-item strong {
    color: #ffffff;

    font-size: 20px;
    line-height: 1;
    font-weight: 720;
}

.summary-item-brilliant strong {
    color: #55d6df !important;
}

.summary-item-best strong {
    color: #6fca89 !important;
}

.summary-item-inaccuracy strong {
    color: #e3c85d !important;
}

.summary-item-mistake strong {
    color: #ef9c5b !important;
}

.summary-item-miss strong {
    color: #c27be7 !important;
}

.summary-item-blunder strong {
    color: #f06464 !important;
}

.worst-move-button-clean {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
        "label move"
        "label quality";
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;

    flex: 0 0 auto;

    min-width: 180px;
    padding: 11px 13px;

    border: 1px solid #313136 !important;
    border-radius: 0 !important;

    background: #171719 !important;
    color: #ffffff !important;

    text-align: left;
}

.worst-move-button-clean:hover {
    border-color: #4a4a50 !important;
    background: #1d1d20 !important;
}

.worst-move-button-clean > span {
    grid-area: label;

    align-self: stretch;

    display: flex;
    align-items: center;

    padding-right: 12px;

    border-right: 1px solid #2d2d31;

    color: #777780;

    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.worst-move-button-clean > strong {
    grid-area: move;

    color: #ffffff;

    font-size: 14px;
    line-height: 1.1;
}

.worst-move-button-clean > small {
    grid-area: quality;

    color: #f06464;

    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Reduce visual density above the board. */
.game-analysis-card > .card-heading {
    margin-bottom: 18px;
}

.game-analysis-card .card-heading p {
    max-width: 500px;
}

/* Slightly tighten the main review composition. */
.analysis-layout {
    gap: 24px !important;
}

.analysis-side-column {
    gap: 18px;
}

/* Responsive summary without creating a large block. */
@media (max-width: 980px) {
    .game-header-clean {
        align-items: stretch;
        flex-direction: column;
    }

    .worst-move-button-clean {
        width: fit-content;
    }

    .game-review-summary-clean {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .game-review-summary-clean .summary-item:nth-child(3) {
        border-right: 0;
    }

    .game-review-summary-clean .summary-item:nth-child(-n+3) {
        border-bottom: 1px solid #252529;
    }
}

@media (max-width: 560px) {
    .game-review-summary-clean {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-review-summary-clean .summary-item:nth-child(odd) {
        border-right: 1px solid #252529;
    }

    .game-review-summary-clean .summary-item:nth-child(even) {
        border-right: 0;
    }

    .game-review-summary-clean .summary-item:nth-child(-n+4) {
        border-bottom: 1px solid #252529;
    }

    .worst-move-button-clean {
        width: 100%;
    }
}


/* =========================================================
   WEAKNESS MAP V2
   Clean hierarchy, existing phase gradient bars preserved.
   ========================================================= */

.weakness-priority-section,
.weakness-signals-section {
    display: grid;
    gap: 18px;
}

.section-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.section-intro h2 {
    margin: 5px 0 0;

    color: #ffffff;

    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.section-intro > p {
    max-width: 470px;
    margin: 0;

    color: #777780;

    font-size: 13px;
    line-height: 1.55;
    text-align: right;
}


/* TOP PRIORITIES */

.weakness-priority-grid {
    display: grid;
    grid-template-columns:
        1.25fr 1fr 1fr;

    gap: 1px;

    border: 1px solid #29292d;
    background: #29292d;
}

.weakness-priority-card {
    position: relative;

    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 16px;

    min-height: 158px;
    padding: 22px;

    background: #121214;
}

.weakness-priority-card-primary {
    background:
        linear-gradient(
            135deg,
            rgba(255, 43, 214, 0.075),
            rgba(255, 43, 214, 0.01) 45%
        ),
        #121214;
}

.weakness-rank {
    color: #4e4e56;

    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.08em;
}

.weakness-priority-card-primary .weakness-rank {
    color: #ff2bd6;
}

.weakness-card-label {
    display: block;

    margin-bottom: 8px;

    color: #74747d;

    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0.095em;
    text-transform: uppercase;
}

.weakness-priority-card strong {
    display: block;

    color: #ffffff;

    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.weakness-priority-card p {
    max-width: 390px;
    margin: 12px 0 0;

    color: #87878f;

    font-size: 12px;
    line-height: 1.55;
}


/* PHASE CARD — wrapper only.
   phase-track / phase-fill are intentionally NOT restyled,
   so the current fuchsia gradient bars remain unchanged. */

.weakness-phase-card {
    padding: 24px;
}

.weakness-phase-heading {
    margin-bottom: 24px;
}

.weakness-phase-heading h3 {
    font-size: 20px;
}


/* DETECTED SIGNALS */

.weakness-signal-list {
    border-top: 1px solid #29292d;
}

.weakness-signal-row {
    display: grid;
    grid-template-columns:
        52px
        minmax(0, 1.25fr)
        minmax(260px, 0.85fr);

    gap: 22px;

    padding: 20px 0;

    border-bottom: 1px solid #29292d;
}

.weakness-signal-index {
    padding-top: 3px;

    color: #55555e;

    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.08em;
}

.weakness-signal-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
}

.weakness-signal-heading strong {
    color: #ffffff;

    font-size: 16px;
    font-weight: 690;
}

.weakness-signal-heading span {
    flex: 0 0 auto;

    color: #ff2bd6;

    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.weakness-signal-main p,
.weakness-signal-action p {
    margin: 7px 0 0;

    color: #85858d;

    font-size: 12px;
    line-height: 1.55;
}

.weakness-signal-action {
    padding-left: 22px;

    border-left: 1px solid #29292d;
}

.weakness-signal-action > span {
    color: #66666f;

    font-size: 9px;
    font-weight: 760;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.weakness-signal-action p {
    color: #b4b4bb;
}


/* BACKEND PATTERN NOTES */

.weakness-pattern-card {
    padding: 24px;
}

.weakness-pattern-card-muted {
    opacity: 0.78;
}

.weakness-pattern {
    padding: 13px 0;

    border-top: 1px solid #29292d;

    color: #b8b8bf;

    font-size: 12px;
    line-height: 1.55;
}

.weakness-pattern:last-child {
    border-bottom: 1px solid #29292d;
}


/* NEXT STEP */

.weakness-next-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;

    padding: 26px 28px;

    border: 1px solid #323238;

    background:
        linear-gradient(
            110deg,
            rgba(255, 43, 214, 0.055),
            transparent 42%
        ),
        #121214;
}

.weakness-next-step h2 {
    margin: 5px 0 8px;

    color: #ffffff;

    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.weakness-next-step p {
    max-width: 700px;
    margin: 0;

    color: #85858d;

    font-size: 13px;
    line-height: 1.6;
}

.weakness-next-actions {
    display: flex;
    align-items: center;
    gap: 10px;

    flex: 0 0 auto;
}

.weakness-primary-action,
.weakness-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    min-height: 46px;
    padding: 0 16px;

    border-radius: 0;

    font-size: 11px;
    font-weight: 760;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.weakness-primary-action {
    border: 1px solid #ff2bd6;

    background: #ff2bd6;
    color: #0a0a0b;
}

.weakness-primary-action:hover {
    filter: brightness(1.06);
}

.weakness-secondary-action {
    border: 1px solid #34343a;

    background: transparent;
    color: #a0a0a8;
}

.weakness-secondary-action:hover {
    border-color: #55555e;

    color: #ffffff;
}


@media (max-width: 980px) {

    .weakness-priority-grid {
        grid-template-columns: 1fr;
    }

    .weakness-priority-card {
        min-height: 0;
    }

    .weakness-signal-row {
        grid-template-columns:
            42px
            1fr;
    }

    .weakness-signal-action {
        grid-column: 2;

        padding: 12px 0 0;

        border-top: 1px solid #252529;
        border-left: 0;
    }

    .weakness-next-step {
        align-items: flex-start;
        flex-direction: column;
    }
}


@media (max-width: 640px) {

    .section-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .section-intro > p {
        text-align: left;
    }

    .weakness-signal-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .weakness-signal-index,
    .weakness-signal-action {
        grid-column: 1;
    }

    .weakness-signal-action {
        margin-top: 4px;
    }

    .weakness-signal-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .weakness-next-actions {
        align-items: stretch;
        flex-direction: column;

        width: 100%;
    }

    .weakness-primary-action,
    .weakness-secondary-action {
        width: 100%;
    }
}


/* =========================================================
   TRAINING V2 — 7 DAY GRID
   ========================================================= */

.training-focus-panel {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(360px, 0.85fr);

    gap: 1px;

    border: 1px solid #2c2c31;
    background: #2c2c31;
}

.training-focus-copy,
.training-focus-stats {
    background: #121214;
}

.training-focus-copy {
    padding: 28px 30px;

    background:
        linear-gradient(
            130deg,
            rgba(255, 43, 214, 0.07),
            transparent 48%
        ),
        #121214;
}

.training-focus-copy h2 {
    margin: 6px 0 10px;

    color: #ffffff;

    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.training-focus-copy p {
    max-width: 720px;
    margin: 0;

    color: #85858d;

    font-size: 13px;
    line-height: 1.65;
}

.training-focus-stats {
    display: grid;
    grid-template-columns: 1fr;

    padding: 8px 24px;
}

.training-focus-stats > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 15px 0;

    border-bottom: 1px solid #29292d;
}

.training-focus-stats > div:last-child {
    border-bottom: 0;
}

.training-focus-stats span {
    color: #777780;

    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.training-focus-stats strong {
    color: #ffffff;

    font-size: 14px;
    font-weight: 690;
    text-align: right;
}


/* WEEK GRID */

.training-week-section {
    display: grid;
    gap: 18px;
}

.training-grid-v2 {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 1px;

    border: 1px solid #2b2b30;
    background: #2b2b30;
}

.training-day-v2,
.training-summary-card,
.training-review-card {
    min-width: 0;

    background: #121214;
}

.training-day-v2 {
    display: flex;
    flex-direction: column;

    min-height: 310px;
    padding: 22px;
}

.training-day-v2-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 18px;
}

.training-day-v2-number {
    color: #ff2bd6;

    font-size: 10px;
    font-weight: 780;
    letter-spacing: 0.085em;
    text-transform: uppercase;
}

.training-day-v2-focus {
    overflow: hidden;

    max-width: 58%;

    color: #74747d;

    font-size: 9px;
    font-weight: 760;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.training-day-v2 h3 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: 20px;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.training-day-v2-tasks {
    display: grid;
    gap: 11px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.training-day-v2-tasks li {
    display: grid;
    grid-template-columns: 7px 1fr;
    gap: 10px;
    align-items: start;
}

.training-day-v2-tasks li > span {
    width: 5px;
    height: 5px;

    margin-top: 7px;

    border-radius: 50%;

    background: #ff2bd6;
}

.training-day-v2-tasks p {
    margin: 0;

    color: #b0b0b7;

    font-size: 12px;
    line-height: 1.55;
}

.training-day-v2-reason {
    margin-top: auto;
    padding-top: 18px;
}

.training-day-v2-reason > span,
.training-summary-kicker {
    display: block;

    margin-bottom: 6px;

    color: #696972;

    font-size: 9px;
    font-weight: 760;
    letter-spacing: 0.085em;
    text-transform: uppercase;
}

.training-day-v2-reason p {
    margin: 0;

    color: #7d7d85;

    font-size: 11px;
    line-height: 1.55;
}


/* SUMMARY CELLS
   7 days + 2 summary cells = 3x3 structure.
   The week summary takes two columns on the final row.
*/

.training-summary-card-wide {
    grid-column: span 2;

    padding: 26px 28px;

    background:
        linear-gradient(
            120deg,
            rgba(255, 43, 214, 0.06),
            transparent 48%
        ),
        #121214;
}

.training-summary-card h3,
.training-review-card h3 {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.training-summary-card p,
.training-review-card p {
    max-width: 760px;
    margin: 0;

    color: #85858d;

    font-size: 12px;
    line-height: 1.65;
}

.training-summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 18px;
}

.training-summary-tags span {
    padding: 7px 9px;

    border: 1px solid #333339;

    color: #a7a7ae;

    font-size: 9px;
    font-weight: 730;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.training-review-card {
    display: flex;
    flex-direction: column;

    padding: 26px 24px;
}

.training-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: auto;
    padding-top: 18px;
}

.training-review-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 42px;
    padding: 0 13px;

    border: 1px solid #34343a;

    color: #a7a7ae;

    font-size: 9px;
    font-weight: 760;
    letter-spacing: 0.055em;
    text-decoration: none;
    text-transform: uppercase;
}

.training-review-actions a:hover {
    border-color: #56565e;

    color: #ffffff;
}

.training-review-actions .training-review-primary {
    border-color: #ff2bd6;

    background: #ff2bd6;
    color: #0b0b0c;
}

.training-review-actions .training-review-primary:hover {
    color: #0b0b0c;

    filter: brightness(1.06);
}

.training-empty-state {
    grid-column: 1 / -1;
}


@media (max-width: 980px) {

    .training-focus-panel {
        grid-template-columns: 1fr;
    }

    .training-grid-v2 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .training-summary-card-wide {
        grid-column: span 2;
    }
}


@media (max-width: 640px) {

    .training-grid-v2 {
        grid-template-columns: 1fr;
    }

    .training-summary-card-wide {
        grid-column: span 1;
    }

    .training-day-v2 {
        min-height: 0;
    }

    .training-focus-copy {
        padding: 24px;
    }

    .training-focus-stats {
        padding: 6px 20px;
    }

    .training-review-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .training-review-actions a {
        width: 100%;
    }
}

/* =========================================================
   TRAINING V4 — SMOOTH 3x3 ENDING
   Paste at the VERY END of style.css
   ========================================================= */

.training-grid-v4 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;

    border: 0;
    background: transparent;
}

.training-grid-v4 .training-day-v2,
.training-grid-v4 .training-review-card,
.training-grid-v4 .training-summary-card {
    min-width: 0;
    min-height: 290px;

    padding: 22px;

    border: 1px solid #2b2b30;

    background: #121214;
}

/* Keep all 9 cells visually equal:
   Row 1: Day 1 / Day 2 / Day 3
   Row 2: Day 4 / Day 5 / Day 6
   Row 3: Day 7 / After Day 7 / Week Summary
*/

.training-grid-v4 .training-summary-card-wide {
    grid-column: auto;

    background:
        linear-gradient(
            120deg,
            rgba(255, 43, 214, 0.055),
            transparent 48%
        ),
        #121214;
}

.training-grid-v4 .training-day-v2 {
    display: flex;
    flex-direction: column;
}

.training-grid-v4 .training-review-card,
.training-grid-v4 .training-summary-card {
    display: flex;
    flex-direction: column;
}

.training-grid-v4 .training-day-v2-top {
    margin-bottom: 15px;
}

.training-grid-v4 .training-day-v2 h3,
.training-grid-v4 .training-review-card h3,
.training-grid-v4 .training-summary-card h3 {
    margin: 0 0 14px;
}

.training-grid-v4 .training-day-v2-tasks {
    gap: 9px;
}

.training-grid-v4 .training-day-v2-reason,
.training-grid-v4 .training-review-actions,
.training-grid-v4 .training-summary-tags {
    margin-top: auto;
    padding-top: 16px;
}

.training-grid-v4 .training-summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.training-grid-v4 .training-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* The old V3 bottom section is no longer used. */
.training-bottom-v3 {
    display: none !important;
}

@media (max-width: 980px) {

    .training-grid-v4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    .training-grid-v4 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .training-grid-v4 .training-day-v2,
    .training-grid-v4 .training-review-card,
    .training-grid-v4 .training-summary-card {
        min-height: 0;
    }
}

/* =========================================================
   WEAKNESS MAP — FINAL GAME PHASES FIX
   ========================================================= */

/* wyrównanie sekcji bardziej do lewej */
.weakness-phase-card {
    padding-left: 20px;
    padding-right: 20px;
}


/* nagłówek taki jak pozostałe główne sekcje */
.weakness-phase-heading {
    display: block;

    margin: 0 0 28px;
    padding: 0 0 20px;

    border-bottom: 1px solid #29292d;
}

.weakness-phase-heading h3 {
    margin: 6px 0 8px;

    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.weakness-phase-heading > p {
    max-width: 620px;
    margin: 0;

    color: #777780;

    font-size: 13px;
    line-height: 1.55;

    text-align: left;
}


/* Opening / Middlegame / Endgame */

.phase-bars {
    display: grid;
    gap: 20px;

    margin: 0;
    padding: 0;
}

.phase-item {
    display: grid;
    gap: 8px;
}

.phase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.phase-header span {
    color: #d2d2d8;

    font-size: 14px;
    font-weight: 560;
}

.phase-header strong {
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    text-align: right;
    font-variant-numeric: tabular-nums;
}


/* zaokrąglone końce pasków — bez zmiany ich grubości */

.phase-track {
    border-radius: 999px;
    overflow: hidden;
}

.phase-fill {
    border-radius: 999px;
}


/* =========================================================
   TWO-LEVEL NAVIGATION V1
   Site navigation + player analysis navigation
   Paste at the VERY END of style.css
   ========================================================= */

/* Top bar is now for the website itself, not the analyzed player. */
.site-nav-main {
    grid-template-columns: 1fr auto 1fr;
}

.nav-links-site {
    gap: 28px;
}

.nav-links-site .nav-link {
    padding-left: 2px;
    padding-right: 2px;
}

.site-nav-main .nav-cta {
    justify-self: end;
}


/* Page heading now owns the player context and analysis navigation. */
.page-header-player {
    display: block !important;

    padding-bottom: 0 !important;
}

.page-header-copy {
    max-width: 800px;
}

.page-header-player .page-header-copy > p {
    max-width: 760px;
}


/* Second navigation level */
.player-subnav {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;

    margin-top: 28px;

    border-bottom: 1px solid #29292d;
}


/* Current player moves from the top-right into the page hierarchy. */
.player-context-inline {
    position: relative;

    flex: 0 0 auto;

    min-width: 180px;

    margin: 0 !important;
    padding: 0 0 14px 14px !important;

    border: 0 !important;
    border-left: 2px solid #ff2bd6 !important;

    background: transparent !important;
}

.player-context-inline::after {
    content: "";

    position: absolute;
    left: 14px;
    bottom: -1px;

    width: 44px;
    height: 2px;

    background: #ff2bd6;
}

.player-context-inline > * {
    margin-left: 0 !important;
}

.player-context-inline small,
.player-context-inline span:first-child {
    color: #6f6f78 !important;
}

.player-context-inline strong {
    color: #ffffff !important;
}


/* Player-specific navigation */
.player-nav-links {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 30px;

    min-width: 0;
}

.player-nav-link {
    position: relative;

    display: inline-flex;
    align-items: center;

    min-height: 44px;
    padding: 0 1px 14px;

    color: #777780;

    font-size: 12px;
    font-weight: 690;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    transition:
        color 130ms ease;
}

.player-nav-link:hover {
    color: #d2d2d8;
}

.player-nav-link.active {
    color: #ffffff;
}

.player-nav-link.active::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;

    height: 2px;

    background: #ff2bd6;
}


/* Remove the old right-side player-context footprint if old rules
   assigned width / alignment to it. */
.page-header-player > .player-context {
    justify-self: auto !important;
}


/* Responsive */
@media (max-width: 900px) {

    .site-nav-main {
        grid-template-columns: 1fr auto;
    }

    .nav-links-site {
        display: none;
    }

    .player-subnav {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .player-context-inline {
        min-width: 0;
    }

    .player-nav-links {
        justify-content: flex-start;

        width: 100%;

        overflow-x: auto;
        gap: 24px;
    }
}

@media (max-width: 560px) {

    .player-nav-links {
        gap: 20px;
    }

    .player-nav-link {
        font-size: 11px;
    }
}

/* =========================================================
   PLAYER CONTEXT — CHESS.COM AVATAR
   Paste at the VERY END of style.css
   ========================================================= */

.player-context-inline {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 0 14px 0 !important;

    border: 0 !important;
    background: transparent !important;
}


/* Remove the old short horizontal pink underline under the player. */
.player-context-inline::after {
    display: none !important;
}


/* Square Chess.com profile image.
   46px is roughly the height of:
   CURRENT PLAYER + username/rating stacked together. */
.player-context-avatar-wrap {
    flex: 0 0 46px;

    width: 46px;
    height: 46px;
}

.player-context-avatar {
    display: block;

    width: 46px;
    height: 46px;

    object-fit: cover;

    border-radius: 0 !important;
}


/* Pink vertical separator sits BETWEEN avatar and text. */
.player-context-copy {
    position: relative;

    display: grid;
    gap: 4px;

    min-width: 0;

    padding-left: 14px;

    border-left: 0;
}

.player-context-copy::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;

    width: 3px;

    background: linear-gradient(
        180deg,
        #c8a46b 0%,
        #f3d89a 50%,
        #c8a46b 100%
    );
}


.player-context-copy span {
    color: #6f6f78 !important;

    font-size: 8px !important;
    font-weight: 850 !important;

    line-height: 1;

    text-transform: uppercase;
    letter-spacing: 0.1em;
}


.player-context-copy strong {
    color: #ffffff !important;

    font-size: 17px !important;
    font-weight: 760 !important;

    line-height: 1.08;

    white-space: nowrap;
}


/* Neutralize older spacing rule. */
.player-context-inline > * {
    margin-left: 0 !important;
}


@media (max-width: 560px) {

    .player-context-avatar-wrap,
    .player-context-avatar {
        width: 42px;
        height: 42px;
    }

    .player-context-avatar-wrap {
        flex-basis: 42px;
    }

    .player-context-copy strong {
        font-size: 15px !important;
    }
}

/* =========================================================
   PLAYER CONTEXT — LARGER VERSION
   ========================================================= */

.player-context-inline {
    gap: 16px !important;

    padding-bottom: 16px !important;
}


/* większy avatar */

.player-context-avatar-wrap,
.player-context-avatar {
    width: 58px !important;
    height: 58px !important;
}

.player-context-avatar-wrap {
    flex-basis: 64px !important;
}


/* dłuższa / mocniejsza pionowa kreska */

.player-context-copy {
    gap: 6px;

    min-height: 56px;

    padding-left: 16px;

    border-left-width: 3px;
}


/* większe CURRENT PLAYER */

.player-context-copy span {
    font-size: 14px !important;
    line-height: 1;

    letter-spacing: 0.11em;
}


/* dużo większy nick + rating */

.player-context-copy strong {
    font-size: 26px !important;
    line-height: 1.05;

    font-weight: 780 !important;
}

.player-context-copy strong {
    background: linear-gradient(
        90deg,
        #c8a46b 0%,
        #f3d89a 50%,
        #c8a46b 100%
    );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* =========================================================
   PLAYER PROFILE ABOVE PAGE TITLE
   ========================================================= */


/* cały header układamy pionowo */

.page-header-player {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;

    gap: 0 !important;

    padding-bottom: 28px !important;
}


/* profil + menu przenosimy NAD główny tytuł */

.page-header-player .player-subnav {
    order: 1;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;

    width: 100%;

    gap: 16px !important;

    margin-top: 0 !important;
    margin-bottom: 38px !important;

    padding-bottom: 0 !important;

    border-bottom: 0 !important;
}


/* główny tytuł Game Review / Chess DNA itd. */

.page-header-player .page-header-copy {
    order: 2;

    width: 100%;
    max-width: 800px;
}


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

.player-context-inline {
    display: flex !important;
    align-items: center !important;

    gap: 16px !important;

    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;
}


/* usuwamy stare różowe podkreślenie */

.player-context-inline::after {
    display: none !important;
}


/* zdjęcie */

.player-context-avatar-wrap,
.player-context-avatar {
    width: 58px !important;
    height: 58px !important;
}

.player-context-avatar-wrap {
    flex: 0 0 58px !important;
}

.player-context-avatar {
    display: block;

    object-fit: cover;

    border-radius: 0 !important;
}


/* tekst przy zdjęciu */

.player-context-copy {
    position: relative;

    display: grid;
    gap: 6px;

    min-height: 56px;

    padding-left: 16px;

    border-left: 0 !important;
}


/* złota pionowa kreska */

.player-context-copy::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 3px;

    background: linear-gradient(
        180deg,
        #c8a46b 0%,
        #f3d89a 50%,
        #c8a46b 100%
    );

    box-shadow:
        0 0 10px rgba(200, 164, 107, 0.18);
}


/* CURRENT PLAYER */

.player-context-copy span {
    color: #777780 !important;

    font-size: 14px !important;
    font-weight: 800 !important;

    line-height: 1;

    letter-spacing: 0.11em;
}


/* nick + rating */

.player-context-copy strong {
    font-size: 26px !important;
    font-weight: 780 !important;

    line-height: 1.05;

    background: linear-gradient(
        90deg,
        #c8a46b 0%,
        #f3d89a 50%,
        #c8a46b 100%
    );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
    color: transparent;

    white-space: nowrap;
}


/* =========================================================
   PLAYER MENU UNDER PROFILE
   ========================================================= */

.player-nav-links {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 32px !important;

    width: 100%;

    padding-bottom: 12px;

    border-bottom: 1px solid #29292d;
}


/* pojedyncze linki */

.player-nav-link {
    min-height: auto !important;

    padding: 8px 0 12px !important;

    font-size: 12px !important;
    font-weight: 700;

    color: #777780;

    text-decoration: none;
}


/* aktywna zakładka */

.player-nav-link.active {
    color: #ffffff;
}


/* różowe podkreślenie aktywnej zakładki */

.player-nav-link.active::after {
    bottom: -1px !important;

    height: 2px !important;

    background: #ff2bd6 !important;
}


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

@media (max-width: 700px) {

    .page-header-player .player-subnav {
        margin-bottom: 30px !important;
    }

    .player-nav-links {
        gap: 22px !important;

        overflow-x: auto;
    }

    .player-context-avatar-wrap,
    .player-context-avatar {
        width: 52px !important;
        height: 52px !important;
    }

    .player-context-avatar-wrap {
        flex-basis: 52px !important;
    }

    .player-context-copy strong {
        font-size: 22px !important;
    }

    .player-context-copy span {
        font-size: 11px !important;
    }
}

/* =========================================================
   CHESS DNA — KEY LESSONS V1
   APPEND TO THE END OF YOUR CURRENT style.css
   ========================================================= */

.key-lessons-card {
    overflow: hidden;
}

.key-lessons-list {
    display: grid;
    gap: 1px;
    margin-top: 6px;
    background: #29292d;
    border: 1px solid #29292d;
}

.key-lesson {
    min-width: 0;
    padding: 24px;
    background: #121214;
}

.key-lesson-header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.key-lesson-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-left: 2px solid #ff2bd6;
    color: #ff2bd6;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.key-lesson-heading h4 {
    margin: 0;
    color: #f6f6f7;
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.key-lesson-meta {
    margin-top: 8px;
    color: #777780;
    font-size: 12px;
    line-height: 1.45;
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.key-lesson-principle {
    max-width: 850px;
    margin: 22px 0 0 66px;
    color: #d2d2d8;
    font-size: 15px;
    line-height: 1.65;
}

.key-lesson-evidence {
    max-width: 850px;
    margin: 10px 0 0 66px;
    color: #8a8a93;
    font-size: 13px;
    line-height: 1.6;
}

.key-lesson-habit {
    display: grid;
    gap: 6px;
    margin: 20px 0 0 66px;
    padding: 16px 0 0;
    border-top: 1px solid #27272b;
}

.key-lesson-habit span {
    color: #777780;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.075em;
}

.key-lesson-habit strong {
    max-width: 900px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.key-lesson-examples {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0 0 66px;
}

.key-lesson-examples-title {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    color: #777780;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.075em;
}

.key-lesson-example {
    display: grid;
    gap: 9px;
    min-width: 0;
    padding: 15px;
    border: 1px solid #2b2b30;
    border-radius: 0;
    background: #171719;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 140ms ease,
        background 140ms ease;
}

.key-lesson-example:hover {
    border-color: #ff2bd6;
    background: #1b1b1e;
}

.key-lesson-example-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.key-lesson-example-opponent {
    min-width: 0;
    overflow: hidden;
    color: #f1f1f3;
    font-size: 13px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.key-lesson-example-classification {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.key-lesson-example-blunder {
    color: #f06464;
}

.key-lesson-example-mistake {
    color: #ef9c5b;
}

.key-lesson-example-miss {
    color: #c27be7;
}

.key-lesson-example-inaccuracy {
    color: #e3c85d;
}

.key-lesson-example-move {
    color: #9a9aa2;
    font-size: 12px;
    line-height: 1.45;
}

.key-lesson-example-action {
    color: #ff2bd6;
    font-size: 12px;
    font-weight: 700;
}

.key-lessons-empty {
    padding: 22px;
    background: #121214;
    color: #777780;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .key-lesson-examples {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .key-lesson {
        padding: 18px;
    }

    .key-lesson-header {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px;
    }

    .key-lesson-principle,
    .key-lesson-evidence,
    .key-lesson-habit,
    .key-lesson-examples {
        margin-left: 0;
    }
}


/* =========================================================
   CHESS DNA UX V3
   Append to the END of the current style.css.
   This intentionally does not replace existing Game Review,
   Weakness Map phase bars, Training or Key Lessons styles.
   ========================================================= */


/* ---------------------------------------------------------
   SHARED PAGE RHYTHM
   --------------------------------------------------------- */

.dna-page-v3 {
    gap: 34px;
}


/* ---------------------------------------------------------
   CHESS DNA — IDENTITY FIRST
   --------------------------------------------------------- */

.dna-hero-v3 {
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(330px, 0.75fr);

    border-top: 1px solid rgba(255, 43, 214, 0.52);
    border-bottom: 1px solid #252529;

    background:
        radial-gradient(
            circle at 12% 8%,
            rgba(255, 43, 214, 0.085),
            transparent 34%
        ),
        #0a0a0c;
}

.dna-hero-copy-v3 {
    display: grid;
    gap: 30px;

    padding: 34px 36px 30px;
}

.dna-name-v3 {
    margin-top: 10px;

    font-size: clamp(46px, 6vw, 72px);
}

.dna-confidence-v3 {
    margin-bottom: 14px;
}

.dna-description-v3 {
    max-width: 760px;

    font-size: 15px;
    line-height: 1.75;
}

.dna-hero-stats-v3 {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    border-top: 1px solid #242428;
}

.dna-hero-stat-v3 {
    padding: 18px 16px 4px 0;
}

.dna-hero-stat-v3 + .dna-hero-stat-v3 {
    padding-left: 18px;

    border-left: 1px solid #242428;
}

.dna-hero-stat-v3 > span {
    display: block;

    margin-bottom: 7px;

    color: #696972;

    font-size: 9px;
    font-weight: 780;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.dna-hero-stat-v3 strong {
    color: #ffffff;

    font-size: clamp(18px, 2vw, 27px);
    font-weight: 730;
    letter-spacing: -0.035em;
}

.dna-hero-stat-v3 small {
    color: #696972;

    font-size: 11px;
    font-weight: 600;
}

.dna-traits-v3 {
    display: grid;
    grid-template-rows: 1fr 1fr;

    border-left: 1px solid #252529;
}

.dna-trait-column-v3 {
    padding: 28px 28px 24px;
}

.dna-trait-column-v3 + .dna-trait-column-v3 {
    border-top: 1px solid #252529;
}

.dna-trait-column-v3 .dna-item {
    padding: 11px 0;

    font-size: 12px;
}


/* ---------------------------------------------------------
   CHESS DNA — MOVE QUALITY STRIP
   --------------------------------------------------------- */

.dna-decision-card-v3 {
    padding: 28px 30px 30px;
}

.dna-card-heading-v3 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.dna-card-heading-v3 > p {
    max-width: 460px;
}

.move-quality-strip-v3 {
    display: flex;

    overflow: hidden;

    width: 100%;
    height: 14px;

    margin: 6px 0 22px;

    background: #1b1b1f;
}

.quality-strip-segment {
    min-width: 3px;
    height: 100%;

    transition:
        flex-grow 280ms ease,
        opacity 180ms ease;
}

.quality-strip-brilliant {
    background: #66d4db;
}

.quality-strip-best {
    background: #78c98e;
}

.quality-strip-good {
    background: #a1d591;
}

.quality-strip-inaccuracy {
    background: #e5c75f;
}

.quality-strip-mistake {
    background: #ed9858;
}

.quality-strip-miss {
    background: #b774dd;
}

.quality-strip-blunder {
    background: #f06363;
}

.move-quality-legend-v3 {
    display: grid;
    grid-template-columns:
        repeat(7, minmax(0, 1fr));

    gap: 0;

    border-top: 1px solid #232327;
}

.quality-legend-item-v3 {
    display: grid;
    grid-template-columns:
        8px minmax(0, 1fr) auto;

    gap: 8px;
    align-items: center;

    min-width: 0;
    padding: 16px 11px 2px;

    color: #7f7f88;

    font-size: 10px;
}

.quality-legend-item-v3 + .quality-legend-item-v3 {
    border-left: 1px solid #202024;
}

.quality-legend-item-v3 > span:nth-child(2) {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.quality-legend-item-v3 strong {
    color: #ffffff;

    font-size: 17px;
    font-weight: 720;
}

.quality-dot {
    width: 6px;
    height: 6px;
}

.quality-dot-brilliant {
    background: #66d4db;
}

.quality-dot-best {
    background: #78c98e;
}

.quality-dot-good {
    background: #a1d591;
}

.quality-dot-inaccuracy {
    background: #e5c75f;
}

.quality-dot-mistake {
    background: #ed9858;
}

.quality-dot-miss {
    background: #b774dd;
}

.quality-dot-blunder {
    background: #f06363;
}


/* ---------------------------------------------------------
   CHESS DNA — POSITION SLIP VISUAL
   --------------------------------------------------------- */

.dna-slip-section-v3 {
    display: grid;
    grid-template-columns:
        minmax(270px, 0.72fr)
        minmax(0, 1.28fr);

    gap: 42px;

    padding: 34px 36px;

    border: 1px solid #252529;

    background:
        linear-gradient(
            115deg,
            rgba(255, 43, 214, 0.045),
            transparent 40%
        ),
        #0a0a0c;
}

.dna-slip-copy-v3 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dna-slip-copy-v3 h2 {
    max-width: 520px;

    margin: 8px 0 14px;

    color: #ffffff;

    font-size: clamp(27px, 3vw, 40px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.dna-slip-copy-v3 > p {
    max-width: 510px;

    margin: 0;

    color: #7f7f88;

    font-size: 13px;
    line-height: 1.65;
}

.dna-slip-highlight-v3 {
    display: grid;
    gap: 5px;

    margin-top: auto;
    padding-top: 26px;
}

.dna-slip-highlight-v3 span {
    color: #696972;

    font-size: 9px;
    font-weight: 760;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.dna-slip-highlight-v3 strong {
    color: #ff2bd6;

    font-size: 14px;
    font-weight: 720;
}

.dna-slip-chart-v3 {
    position: relative;

    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
    align-items: end;

    min-height: 260px;
    padding: 22px 6px 0;

    border-bottom: 1px solid #303035;

    background:
        repeating-linear-gradient(
            to top,
            transparent 0,
            transparent 24%,
            rgba(255, 255, 255, 0.035) 25%
        );
}

.slip-column-v3 {
    display: grid;
    grid-template-rows:
        auto
        190px
        auto;

    gap: 10px;
    align-items: end;

    min-width: 0;
}

.slip-value-v3 {
    color: #a0a0a8;

    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.slip-bar-v3 {
    position: relative;

    overflow: hidden;

    width: min(64px, 72%);
    height: 190px;

    margin: 0 auto;

    background: #151518;
}

.slip-bar-fill-v3 {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    min-height: 0;

    background:
        linear-gradient(
            to top,
            #7d0065,
            #ff2bd6
        );

    transition:
        height 360ms ease;
}

.slip-column-v3 > span {
    color: #6f6f78;

    font-size: 10px;
    font-weight: 720;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.slip-column-peak-v3 .slip-value-v3,
.slip-column-peak-v3 > span {
    color: #ffffff;
}

.slip-column-peak-v3 .slip-bar-v3 {
    outline: 1px solid rgba(255, 43, 214, 0.34);
}


/* ---------------------------------------------------------
   CHESS DNA — COLLAPSED SECONDARY DATA
   --------------------------------------------------------- */

.dna-details-v3 {
    border-top: 1px solid #2a2a2f;
    border-bottom: 1px solid #2a2a2f;

    background: #09090b;
}

.dna-details-v3 > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 20px 2px;

    cursor: pointer;

    list-style: none;
}

.dna-details-v3 > summary::-webkit-details-marker {
    display: none;
}

.dna-details-v3 > summary span {
    color: #d7d7dc;

    font-size: 13px;
    font-weight: 690;
}

.dna-details-v3 > summary small {
    color: #66666f;

    font-size: 11px;
}

.dna-details-v3 > summary::after {
    content: "+";

    margin-left: auto;

    color: #ff2bd6;

    font-size: 20px;
    font-weight: 400;
}

.dna-details-v3[open] > summary::after {
    content: "−";
}

.dna-details-content-v3 {
    display: grid;
    gap: 18px;

    padding: 4px 0 26px;
}

.dna-detail-metrics-v3 {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 1px;

    border: 1px solid #252529;

    background: #252529;
}

.dna-detail-metric-v3 {
    padding: 19px;

    background: #101012;
}

.dna-detail-metric-v3 span {
    display: block;

    margin-bottom: 8px;

    color: #707079;

    font-size: 9px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dna-detail-metric-v3 strong {
    color: #ffffff;

    font-size: 22px;
    font-weight: 720;
}

.dna-color-comparison-v3 {
    margin-top: 0;
}

.dna-key-lessons-v3 {
    margin-top: 8px;
}


/* ---------------------------------------------------------
   WEAKNESS MAP V3
   Keep priority cards and phase bars intact.
   Only reduce secondary density.
   --------------------------------------------------------- */

.weakness-supporting-details-v3 {
    border-top: 1px solid #29292d;
    border-bottom: 1px solid #29292d;

    background: #0a0a0c;
}

.weakness-supporting-details-v3 > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 21px 4px;

    cursor: pointer;

    list-style: none;
}

.weakness-supporting-details-v3 > summary::-webkit-details-marker {
    display: none;
}

.weakness-supporting-details-v3 > summary > div {
    display: grid;
    gap: 6px;
}

.weakness-supporting-details-v3 > summary strong {
    color: #d7d7dc;

    font-size: 14px;
    font-weight: 680;
}

.weakness-details-action-v3 {
    color: #ff2bd6;

    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.weakness-supporting-details-v3[open]
.weakness-details-action-v3 {
    font-size: 0;
}

.weakness-supporting-details-v3[open]
.weakness-details-action-v3::after {
    content: "Hide details";

    font-size: 10px;
}

.weakness-supporting-content-v3 {
    padding: 0 4px 22px;
}

.weakness-supporting-details-muted-v3 {
    opacity: 0.76;
}


/* Slightly more breathing room without changing the liked sections. */

.weakness-priority-section {
    margin-bottom: 6px;
}

.weakness-phase-card {
    margin-top: 2px;
    margin-bottom: 8px;
}

.weakness-signals-section {
    margin-top: 10px;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1050px) {

    .dna-hero-v3 {
        grid-template-columns: 1fr;
    }

    .dna-traits-v3 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;

        border-top: 1px solid #252529;
        border-left: 0;
    }

    .dna-trait-column-v3 + .dna-trait-column-v3 {
        border-top: 0;
        border-left: 1px solid #252529;
    }

    .move-quality-legend-v3 {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .quality-legend-item-v3:nth-child(5) {
        border-left: 0;
    }

    .dna-slip-section-v3 {
        grid-template-columns: 1fr;
    }

    .dna-slip-highlight-v3 {
        margin-top: 10px;
    }
}


@media (max-width: 720px) {

    .dna-page-v3 {
        gap: 24px;
    }

    .dna-hero-copy-v3 {
        padding: 26px 22px;
    }

    .dna-hero-stats-v3 {
        grid-template-columns: 1fr;
    }

    .dna-hero-stat-v3 {
        padding: 13px 0;
    }

    .dna-hero-stat-v3 + .dna-hero-stat-v3 {
        padding-left: 0;

        border-top: 1px solid #242428;
        border-left: 0;
    }

    .dna-traits-v3 {
        grid-template-columns: 1fr;
    }

    .dna-trait-column-v3 + .dna-trait-column-v3 {
        border-top: 1px solid #252529;
        border-left: 0;
    }

    .dna-card-heading-v3 {
        align-items: flex-start;
        flex-direction: column;
    }

    .move-quality-legend-v3 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .quality-legend-item-v3:nth-child(odd) {
        border-left: 0;
    }

    .dna-slip-section-v3 {
        gap: 28px;

        padding: 27px 22px;
    }

    .dna-slip-chart-v3 {
        gap: 8px;

        min-height: 220px;
    }

    .slip-column-v3 {
        grid-template-rows:
            auto
            150px
            auto;
    }

    .slip-bar-v3 {
        height: 150px;
    }

    .dna-detail-metrics-v3 {
        grid-template-columns: 1fr;
    }

    .dna-details-v3 > summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;

        padding-right: 32px;
    }

    .dna-details-v3 > summary::after {
        position: absolute;
        right: 0;
    }
}

/* =========================================================
   CHESS DNA UX V3.1
   Append this AFTER the existing UX V3 CSS.
   ========================================================= */

/*
   Permanent Detailed Performance section.
   The previous <details> component is no longer used.
*/

.dna-performance-static-v31 {
    padding: 28px 30px 30px;
}

.dna-performance-heading-v31 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.dna-performance-heading-v31 > p {
    max-width: 460px;
    margin: 0;
}

.dna-performance-static-v31 .dna-details-content-v3 {
    margin-top: 22px;
    padding: 0;
}

.dna-performance-static-v31 .dna-detail-metrics-v3 {
    margin-bottom: 18px;
}

@media (max-width: 760px) {
    .dna-performance-heading-v31 {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================================================
   CHESS DNA — HOME V2
   Append to the END of the current style.css.
   Keeps the existing clean Home visual direction.
   ========================================================= */


/* ---------------------------------------------------------
   ANALYSIS PROGRESS
   --------------------------------------------------------- */

.analysis-progress {
    margin-top: 20px;
    padding-top: 18px;

    border-top: 1px solid #29292d;
}

.analysis-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 10px;
}

.analysis-progress-top span {
    color: #a0a0aa;

    font-size: 12px;
    font-weight: 620;
}

.analysis-progress-top strong {
    color: #ffffff;

    font-size: 12px;
    font-weight: 760;
    font-variant-numeric: tabular-nums;
}

.analysis-progress-track {
    overflow: hidden;

    width: 100%;
    height: 4px;

    background: #222226;
}

.analysis-progress-fill {
    width: 0;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #8d0876 0%,
            #ff2bd6 68%,
            #ff77e8 100%
        );

    transition:
        width 340ms ease;
}

.analysis-progress-steps {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 8px;

    margin-top: 12px;
}

.analysis-progress-steps span {
    position: relative;

    padding-left: 13px;

    color: #55555e;

    font-size: 9px;
    font-weight: 720;
    letter-spacing: 0.065em;
    text-transform: uppercase;

    transition:
        color 160ms ease;
}

.analysis-progress-steps span::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 0;

    width: 5px;
    height: 5px;

    background: #3a3a40;

    transform:
        translateY(-50%);

    transition:
        background 160ms ease;
}

.analysis-progress-steps span.active {
    color: #f0f0f3;
}

.analysis-progress-steps span.active::before {
    background: #ff2bd6;
}

.analysis-progress-steps span.complete {
    color: #8a8a93;
}

.analysis-progress-steps span.complete::before {
    background: #8d0876;
}

.analysis-progress-error
.analysis-progress-fill {
    opacity: 0.35;
}


/* ---------------------------------------------------------
   WHAT THE ANALYSIS GIVES YOU
   --------------------------------------------------------- */

.home-output-preview {
    display: grid;
    grid-template-columns:
        minmax(280px, 0.72fr)
        minmax(0, 1.28fr);

    gap: 56px;

    margin-top: 58px;
    padding: 42px 0 16px;

    border-top: 1px solid #222226;
}

.home-output-heading {
    max-width: 470px;
}

.home-output-heading h2 {
    margin: 8px 0 14px;

    color: #ffffff;

    font-size: clamp(30px, 3.7vw, 48px);
    line-height: 1;
    letter-spacing: -0.048em;
}

.home-output-heading p {
    margin: 0;

    color: #777780;

    font-size: 13px;
    line-height: 1.72;
}

.home-output-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    border-top: 1px solid #29292e;
    border-left: 1px solid #29292e;
}

.home-output-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 15px;

    min-height: 142px;
    padding: 23px 22px;

    border-right: 1px solid #29292e;
    border-bottom: 1px solid #29292e;

    background: #0a0a0c;
}

.home-output-number {
    color: #ff2bd6;

    font-size: 10px;
    font-weight: 780;
    letter-spacing: 0.06em;
}

.home-output-item h3 {
    margin: 0 0 8px;

    color: #f2f2f4;

    font-size: 16px;
    font-weight: 690;
    letter-spacing: -0.025em;
}

.home-output-item p {
    margin: 0;

    color: #74747d;

    font-size: 11px;
    line-height: 1.6;
}


/* Keep the page clean rather than turning it into a long landing page. */

@media (max-width: 860px) {

    .home-output-preview {
        grid-template-columns: 1fr;
        gap: 30px;

        margin-top: 42px;
    }
}


@media (max-width: 620px) {

    .analysis-progress-steps {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        row-gap: 12px;
    }

    .home-output-grid {
        grid-template-columns: 1fr;
    }

    .home-output-item {
        min-height: auto;
    }
}

/* =========================================================
   CHESS DNA — HOME V2.1
   Append AFTER Home V2 CSS.
   ========================================================= */

/*
   Restore the original large Home headline exactly in the
   visual direction used before.
*/

.hero-home .hero-title {
    margin: 18px 0 28px;

    font-size: clamp(58px, 6.5vw, 96px);
    font-weight: 780;

    line-height: 0.92;
    letter-spacing: -0.065em;
}

.hero-home .hero-title-main,
.hero-home .hero-title-soft {
    display: block;
}

.hero-home .hero-title-main {
    color: #ffffff;
}

.hero-home .hero-title-soft {
    margin-top: 6px;

    color: rgba(255, 255, 255, 0.24);
}


/*
   Home V2 originally inherited:
       min-height: calc(100vh - 78px)
       padding-bottom: 105px

   That pushed "One analysis. Four useful answers." below the
   first screen. Keep the spacious hero, but stop forcing it to
   occupy a full viewport.
*/

.hero-home {
    min-height: auto;

    padding-top: 108px;
    padding-bottom: 38px;

    gap: clamp(54px, 7vw, 110px);
}


/*
   Bring the product preview visibly closer to the search area.
*/

.home-output-preview {
    margin-top: 18px;
    padding-top: 30px;
}


/*
   Slightly reduce the vertical footprint of the right-hand card
   without changing its design.
*/

.home-search-card {
    padding-top: 34px;
    padding-bottom: 34px;
}

.home-search-card > p {
    margin-bottom: 20px;
}

.home-proof {
    margin-top: 24px;
}


@media (max-width: 980px) {

    .hero-home {
        padding-top: 48px;
        padding-bottom: 30px;
    }

    .home-output-preview {
        margin-top: 12px;
    }
}


@media (max-width: 720px) {

    .hero-home .hero-title {
        font-size: clamp(46px, 13vw, 68px);
    }
}

/* =========================================================
   GAME REVIEW — INLINE GAME EXPANSION V1
   Append to the END of the current style.css.
   ========================================================= */


/*
   The selected game's full review card is moved by JS
   directly below the clicked game row.
*/

#recentGames .game-row {
    position: relative;

    cursor: pointer;

    transition:
        background 150ms ease,
        border-color 150ms ease;
}

#recentGames .game-row:hover {
    background: #17171a;
}

#recentGames .game-row-selected {
    background: #18181b;

    border-left: 2px solid #ff2bd6;
}

#recentGames .game-row-selected::after {
    content: "Review open";

    position: absolute;
    top: 50%;
    right: 18px;

    color: #ff2bd6;

    font-size: 9px;
    font-weight: 780;
    letter-spacing: 0.07em;
    text-transform: uppercase;

    transform:
        translateY(-50%);
}


/*
   The review card used to be a separate page section.
   Inline, it should visually belong to the selected row.
*/

#recentGames > #gameDetailsCard {
    width: 100%;

    margin: 0 0 14px;
    padding: 24px 0 30px;

    border-top: 1px solid rgba(255, 43, 214, 0.42);
    border-right: 0;
    border-bottom: 1px solid #29292e;
    border-left: 0;

    background: #0b0b0d;
}


/*
   The old card heading becomes redundant because the selected
   game row already gives context. Keep it compact rather than
   showing a second large heading before the board.
*/

#recentGames > #gameDetailsCard > .card-heading {
    margin-bottom: 18px;
    padding: 0 6px;
}

#recentGames > #gameDetailsCard > .card-heading h3 {
    font-size: 17px;
}

#recentGames > #gameDetailsCard > .card-heading p {
    max-width: 440px;

    font-size: 11px;
}


/*
   Make the boundary between row -> review very clear.
*/

#recentGames > #gameDetailsCard::before {
    content: "";

    display: block;

    width: 42px;
    height: 2px;

    margin: -25px 0 22px 0;

    background: #ff2bd6;
}


@media (max-width: 760px) {

    #recentGames .game-row-selected::after {
        display: none;
    }

    #recentGames > #gameDetailsCard {
        padding-top: 20px;
    }
}

/* =========================================================
   GUIDED FLOW V1
   Append to the END of the current style.css.
   ========================================================= */

.guided-next {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 42px;
    align-items: center;

    padding: 30px 32px;

    border-top: 1px solid #2a2a2f;
    border-bottom: 1px solid #2a2a2f;

    background:
        linear-gradient(
            110deg,
            rgba(255, 43, 214, 0.04),
            transparent 46%
        ),
        #0a0a0c;
}

.guided-next-primary {
    border-top-color:
        rgba(255, 43, 214, 0.42);
}

.guided-next-quiet {
    background: #09090b;
}

.guided-next-copy {
    max-width: 720px;
}

.guided-next-copy h2 {
    margin: 7px 0 10px;

    color: #f4f4f6;

    font-size: clamp(24px, 2.8vw, 35px);
    font-weight: 710;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.guided-next-copy p {
    max-width: 660px;

    margin: 0;

    color: #76767f;

    font-size: 12px;
    line-height: 1.68;
}

.guided-next-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    min-width: 205px;
    padding: 15px 17px;

    border: 1px solid #3a3a40;

    color: #f2f2f4;
    background: #111114;

    font-size: 11px;
    font-weight: 720;
    letter-spacing: -0.01em;
    text-decoration: none;

    transition:
        border-color 150ms ease,
        background 150ms ease,
        transform 150ms ease;
}

.guided-next-action span {
    color: #ff2bd6;

    font-size: 17px;
    line-height: 1;
}

.guided-next-action:hover {
    border-color: #ff2bd6;
    background: #171319;

    transform: translateY(-1px);
}


/*
   Weakness Map already has its own existing Next step section:
   Review games / Open training plan.
   We intentionally do not duplicate it.
*/

@media (max-width: 760px) {

    .guided-next {
        grid-template-columns: 1fr;
        gap: 22px;

        padding: 26px 22px;
    }

    .guided-next-action {
        width: 100%;
    }
}

/* =========================================================
   CHESS DNA — COMPACT KEY LESSONS + NEXT STEP V1
   Append to the END of the current style.css.
   ========================================================= */


/* ---------------------------------------------------------
   KEY LESSONS — LESS TEXT, MORE ACTION
   --------------------------------------------------------- */

.dna-key-lessons-v3 {
    padding: 24px 26px 26px;
}

.dna-key-lessons-v3 .card-heading {
    margin-bottom: 12px;
}

.dna-key-lessons-v3 .card-heading > p {
    max-width: 430px;

    font-size: 11px;
    line-height: 1.55;
}

.key-lessons-list {
    gap: 10px;

    margin-top: 12px;

    border: 0;
    background: transparent;
}

.key-lesson-compact-v1 {
    display: grid;
    grid-template-columns:
        minmax(250px, 0.82fr)
        minmax(0, 1.18fr);

    gap: 24px;

    padding: 20px 22px;

    border: 1px solid #2a2a2f;

    background: #111113;
}

.key-lesson-compact-v1 .key-lesson-header {
    grid-template-columns:
        36px minmax(0, 1fr);

    gap: 13px;
}

.key-lesson-compact-v1 .key-lesson-number {
    min-height: 34px;

    font-size: 11px;
}

.key-lesson-compact-v1 .key-lesson-heading h4 {
    font-size: clamp(17px, 1.55vw, 22px);
    line-height: 1.13;
}

.key-lesson-compact-v1 .key-lesson-meta {
    margin-top: 6px;

    font-size: 9px;
    line-height: 1.4;
}

.key-lesson-compact-body-v1 {
    display: grid;
    grid-template-columns:
        minmax(210px, 0.8fr)
        minmax(0, 1.2fr);

    gap: 18px;
    align-items: start;

    min-width: 0;
}

.key-lesson-action-v1 {
    display: grid;
    gap: 7px;

    padding-left: 16px;

    border-left: 1px solid #303035;
}

.key-lesson-action-v1 span {
    color: #ff2bd6;

    font-size: 9px;
    font-weight: 780;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.key-lesson-action-v1 strong {
    color: #f3f3f5;

    font-size: 12px;
    font-weight: 620;
    line-height: 1.55;
}

.key-lesson-examples-compact-v1 {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;

    margin: 0;
}

.key-lesson-examples-compact-v1
.key-lesson-examples-title {
    margin: 0 0 1px;

    font-size: 9px;
}

.key-lesson-examples-compact-v1
.key-lesson-example {
    gap: 6px;

    padding: 11px 12px;
}

.key-lesson-examples-compact-v1
.key-lesson-example-opponent {
    font-size: 11px;
}

.key-lesson-examples-compact-v1
.key-lesson-example-classification {
    font-size: 8px;
}

.key-lesson-examples-compact-v1
.key-lesson-example-move {
    font-size: 10px;
}

.key-lesson-examples-compact-v1
.key-lesson-example-action {
    font-size: 10px;
}


/*
   The compact renderer no longer creates the old explanatory
   paragraphs / habit blocks, but hide them defensively in case
   stale HTML is still present during testing.
*/

.key-lesson-compact-v1
.key-lesson-principle,
.key-lesson-compact-v1
.key-lesson-evidence,
.key-lesson-compact-v1
.key-lesson-habit {
    display: none;
}


/* ---------------------------------------------------------
   CHESS DNA -> WEAKNESS MAP
   Explicitly visible after Key Lessons.
   --------------------------------------------------------- */

.chess-dna-next-v1 {
    margin-top: 4px;
}


/* If Guided Flow CSS was never appended before, this keeps the CTA usable. */

.chess-dna-next-v1.guided-next {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 40px;
    align-items: center;

    padding: 30px 32px;

    border-top: 1px solid rgba(255, 43, 214, 0.42);
    border-bottom: 1px solid #2a2a2f;

    background:
        linear-gradient(
            110deg,
            rgba(255, 43, 214, 0.05),
            transparent 46%
        ),
        #0a0a0c;
}

.chess-dna-next-v1
.guided-next-copy h2 {
    margin: 7px 0 10px;

    color: #f4f4f6;

    font-size: clamp(24px, 2.8vw, 35px);
    font-weight: 710;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.chess-dna-next-v1
.guided-next-copy p {
    max-width: 650px;

    margin: 0;

    color: #76767f;

    font-size: 12px;
    line-height: 1.65;
}

.chess-dna-next-v1
.guided-next-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    min-width: 205px;
    padding: 15px 17px;

    border: 1px solid #3a3a40;

    color: #f2f2f4;
    background: #111114;

    font-size: 11px;
    font-weight: 720;
    text-decoration: none;
}

.chess-dna-next-v1
.guided-next-action span {
    color: #ff2bd6;

    font-size: 17px;
}

.chess-dna-next-v1
.guided-next-action:hover {
    border-color: #ff2bd6;
    background: #171319;
}


@media (max-width: 1050px) {

    .key-lesson-compact-v1 {
        grid-template-columns: 1fr;
    }

    .key-lesson-compact-body-v1 {
        padding-left: 49px;
    }
}


@media (max-width: 760px) {

    .key-lesson-compact-v1 {
        padding: 18px;
    }

    .key-lesson-compact-body-v1 {
        grid-template-columns: 1fr;

        padding-left: 0;
    }

    .key-lesson-examples-compact-v1 {
        grid-template-columns: 1fr;
    }

    .chess-dna-next-v1.guided-next {
        grid-template-columns: 1fr;
        gap: 22px;

        padding: 26px 22px;
    }

    .chess-dna-next-v1
    .guided-next-action {
        width: 100%;
    }
}


/* =========================================================
   GAME REVIEW V2 — COMPACT REVIEW WORKSPACE
   2026-08-28
   Keeps board, notation, selected-move context and Coach in
   one viewport on normal desktop screens.
   ========================================================= */

.game-review-page-v2 .page-main {
    padding-top: 38px;
}

.game-review-page-v2 .page-header-player {
    margin-bottom: 22px;
}

.game-review-page-v2 #recentGames > #gameDetailsCard.game-review-v2 {
    margin-bottom: 16px;
    padding: 16px 0 20px;
}

.game-review-page-v2 #gameDetailsCard.game-review-v2 > .card-heading {
    display: none;
}

.game-review-page-v2 #recentGames > #gameDetailsCard.game-review-v2::before {
    width: 58px;
    margin: -17px 0 16px;
}

/* Compact game identity and quality summary into one horizontal band. */
.game-review-page-v2 .game-review-top-v2 {
    display: grid;
    grid-template-columns: minmax(330px, 0.8fr) minmax(620px, 1.2fr);
    gap: 18px;
    align-items: stretch;

    margin: 0 0 14px;
    padding: 0;
}

.game-review-page-v2 .game-review-top-v2 .game-header-clean {
    align-items: center;
    gap: 14px;

    min-width: 0;
    padding: 12px 14px;

    border: 1px solid #25252a;
    background: #101012;
}

.game-review-page-v2 .game-review-top-v2 .game-header-clean h2 {
    margin: 3px 0 5px;
    font-size: clamp(22px, 2vw, 30px);
}

.game-review-page-v2 .game-review-top-v2 .game-header-kicker {
    font-size: 9px;
}

.game-review-page-v2 .game-review-top-v2 .game-meta-clean {
    gap: 6px;
    font-size: 11px;
}

.game-review-page-v2 .game-review-top-v2 .worst-move-button-clean {
    min-width: 146px;
    padding: 9px 10px;
}

.game-review-page-v2 .game-review-summary-clean {
    align-self: stretch;
    border: 1px solid #25252a;
    background: #101012;
}

.game-review-page-v2 .game-review-summary-clean .summary-item {
    min-height: 56px;
    padding: 10px 11px;
}

.game-review-page-v2 .game-review-summary-clean .summary-item span {
    font-size: 8px;
}

.game-review-page-v2 .game-review-summary-clean .summary-item strong {
    font-size: 18px;
}

/* Main workspace: controlled board width + fixed-information side rail. */
.game-review-page-v2 .analysis-layout-v2 {
    display: grid;
    grid-template-columns: minmax(520px, 1fr) minmax(400px, 460px);
    gap: 16px !important;
    align-items: start !important;

    min-height: 0;
}

.game-review-page-v2 .analysis-board-column-v2 {
    justify-content: flex-start !important;

    min-height: 0;
    padding: 18px 20px 14px;

    border: 1px solid #25252a;
    background: #0b0b0d;
}

.game-review-page-v2 .analysis-board-column-v2 .board-with-eval,
.game-review-page-v2 .analysis-board-column-v2 .board-toolbar {
    width: min(100%, 610px, calc(100vh - 260px));
}

.game-review-page-v2 .analysis-board-column-v2 .board-with-eval {
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 7px;
}

.game-review-page-v2 .analysis-board-column-v2 .board-toolbar {
    min-height: 43px;
    margin-top: 8px;
}

.game-review-page-v2 .analysis-board-column-v2 .nav-button {
    height: 34px;
}

.game-review-page-v2 .analysis-board-column-v2 .board-caption {
    margin-top: 6px;
    font-size: 8px;
}

.game-review-page-v2 .analysis-side-column-v2 {
    position: sticky;
    top: 14px;
    align-self: start !important;

    display: grid;
    grid-template-rows: minmax(200px, auto) auto;
    gap: 10px !important;

    min-width: 0;
    max-height: calc(100vh - 28px);
    overflow-y: auto;

    padding-right: 2px;
    background: transparent;

    scrollbar-width: thin;
    scrollbar-color: #34343a transparent;
}

.game-review-page-v2 .notation-panel-v2,
.game-review-page-v2 .move-panel-v2 {
    border: 1px solid #25252a;
    background: #101012;
}

.game-review-page-v2 .notation-panel-v2 {
    min-height: 0;
}

.game-review-page-v2 .notation-panel-v2 .review-panel-heading,
.game-review-page-v2 .move-panel-v2 .review-panel-heading {
    min-height: 48px;
    padding: 9px 13px;
}

.game-review-page-v2 .notation-panel-v2 .move-list {
    min-height: 150px;
    max-height: 230px;
    padding: 5px 8px;
}

.game-review-page-v2 .notation-panel-v2 .move-list-row {
    min-height: 30px;
}

.game-review-page-v2 .notation-panel-v2 .move-list-button {
    min-height: 27px;
    padding: 4px 7px !important;
    font-size: 10px !important;
}

.game-review-page-v2 .notation-panel-v2 .notation-navigation {
    grid-template-columns: 54px 1fr 1fr 54px !important;
    min-height: 44px;
}

.game-review-page-v2 .notation-panel-v2 .notation-nav-button {
    min-height: 44px;
}

.game-review-page-v2 .notation-panel-v2 .notation-nav-main {
    font-size: 21px;
}

.game-review-page-v2 .notation-panel-v2 .notation-nav-edge {
    width: 54px !important;
    font-size: 15px;
}

/* Selected move becomes a compact four-cell status bar. */
.game-review-page-v2 .move-detail-grid-v2 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #0d0d0f;
}

.game-review-page-v2 .move-detail-grid-v2 .move-detail-primary {
    min-width: 0;
    padding: 11px 10px;
    border-right: 1px solid #25252a;
}

.game-review-page-v2 .move-detail-grid-v2 .move-detail-primary:last-child {
    border-right: 0;
}

.game-review-page-v2 .move-detail-grid-v2 .move-detail-primary span {
    margin-bottom: 4px;
    font-size: 7px;
}

.game-review-page-v2 .move-detail-grid-v2 .move-detail-primary strong {
    display: block;
    overflow: hidden;

    font-size: 15px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-review-page-v2 .move-detail-grid-v2 .move-detail-eval-v2 strong,
.game-review-page-v2 .move-detail-grid-v2 .move-detail-impact-v2 strong {
    color: #d4d4da;
    font-size: 11px;
}

/* Coach is intentionally moved above the long engine line. */
.game-review-page-v2 .coach-block-v2 {
    padding: 12px 13px 13px;
    border-top: 0;
    border-bottom: 1px solid #25252a;
}

.game-review-page-v2 .coach-block-v2 .coach-heading {
    margin-bottom: 9px;
}

.game-review-page-v2 .coach-block-v2 .coach-actions {
    gap: 4px;
}

.game-review-page-v2 .coach-block-v2 .coach-question {
    min-height: 31px;
    padding: 6px;
    font-size: 8px;
}

.game-review-page-v2 .coach-block-v2 .coach-response {
    max-height: 190px;
    overflow-y: auto;

    margin-top: 8px;
    padding: 10px;

    font-size: 10.5px;
    line-height: 1.55;
}

.game-review-page-v2 .move-panel-row-bestline-v2 {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;

    min-height: 0;
    padding: 9px 13px;
}

.game-review-page-v2 .move-panel-row-bestline-v2 span {
    font-size: 9px;
}

.game-review-page-v2 .move-panel-row-bestline-v2 strong {
    font-size: 10px;
    line-height: 1.4;
}

.game-review-page-v2 .move-facts-v2 {
    padding: 8px 13px;
}

/* Medium desktop/tablet: stack board above a two-column right area. */
@media (max-width: 1120px) {

    .game-review-page-v2 .game-review-top-v2 {
        grid-template-columns: 1fr;
    }

    .game-review-page-v2 .analysis-layout-v2 {
        grid-template-columns: 1fr;
    }

    .game-review-page-v2 .analysis-board-column-v2 {
        border-right: 1px solid #25252a;
    }

    .game-review-page-v2 .analysis-side-column-v2 {
        position: static;

        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        grid-template-rows: auto;
        gap: 12px !important;

        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .game-review-page-v2 .notation-panel-v2 {
        border-right: 1px solid #25252a;
        border-bottom: 1px solid #25252a;
    }
}

@media (max-width: 720px) {

    .game-review-page-v2 .page-main {
        padding-top: 28px;
    }

    .game-review-page-v2 .analysis-side-column-v2 {
        grid-template-columns: 1fr;
    }

    .game-review-page-v2 .move-detail-grid-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-review-page-v2 .move-detail-grid-v2 .move-detail-primary:nth-child(2) {
        border-right: 0;
    }

    .game-review-page-v2 .move-detail-grid-v2 .move-detail-primary:nth-child(-n+2) {
        border-bottom: 1px solid #25252a;
    }

    .game-review-page-v2 .game-review-summary-clean {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {

    .game-review-page-v2 .game-review-top-v2 .game-header-clean {
        align-items: stretch;
        flex-direction: column;
    }

    .game-review-page-v2 .game-review-top-v2 .worst-move-button-clean {
        width: 100%;
    }

    .game-review-page-v2 .analysis-board-column-v2 {
        padding: 12px 8px;
    }

    .game-review-page-v2 .game-review-summary-clean {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   GAME REVIEW V3 — FOCUSED DECISION WORKSPACE
   2026-08-28
   Visible product pass: smaller board, decision + Coach first,
   notation secondary, compact game summary.
   ========================================================= */

.game-review-page-v3 .page-main {
    padding-top: 30px;
}

.game-review-page-v3 .page-header-player {
    margin-bottom: 16px;
}

.game-review-page-v3 #recentGames > #gameDetailsCard.game-review-v3 {
    margin: 0 0 14px;
    padding: 14px 0 18px;
    background: #09090b;
}

.game-review-page-v3 #gameDetailsCard.game-review-v3 > .card-heading {
    display: none;
}

.game-review-page-v3 #recentGames > #gameDetailsCard.game-review-v3::before {
    width: 72px;
    height: 2px;
    margin: -15px 0 14px;
    background: linear-gradient(90deg, #ff2bd6, rgba(255,43,214,0));
}

/* Game identity becomes a compact band instead of a second hero section. */
.game-review-page-v3 .game-review-top-v3 {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(560px, 1.28fr);
    gap: 10px;
    align-items: stretch;
    margin: 0 0 10px;
}

.game-review-page-v3 .game-review-top-v3 .game-header-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #26262b;
    background: #101012;
}

.game-review-page-v3 .game-review-top-v3 .game-header-clean h2 {
    margin: 2px 0 4px;
    font-size: clamp(20px, 1.7vw, 27px);
}

.game-review-page-v3 .game-review-top-v3 .game-header-kicker {
    font-size: 8px;
}

.game-review-page-v3 .game-review-top-v3 .game-meta-clean {
    gap: 5px;
    font-size: 10px;
}

.game-review-page-v3 .game-review-top-v3 .worst-move-button-clean {
    min-width: 126px;
    padding: 7px 9px;
}

.game-review-page-v3 .game-review-summary-clean {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border: 1px solid #26262b;
    background: #101012;
}

.game-review-page-v3 .game-review-summary-clean .summary-item {
    min-height: 48px;
    padding: 8px 9px;
}

.game-review-page-v3 .game-review-summary-clean .summary-item span {
    font-size: 7px;
}

.game-review-page-v3 .game-review-summary-clean .summary-item strong {
    font-size: 16px;
}

/* Main workspace: the board no longer dominates the viewport. */
.game-review-page-v3 .analysis-layout-v3 {
    display: grid;
    grid-template-columns: minmax(500px, 0.95fr) minmax(430px, 1.05fr);
    gap: 12px !important;
    align-items: start !important;
    min-height: 0;
}

.game-review-page-v3 .analysis-board-column-v3 {
    justify-content: flex-start !important;
    min-height: 0;
    padding: 14px 16px 12px;
    border: 1px solid #26262b;
    background: #0b0b0d;
}

.game-review-page-v3 .analysis-board-column-v3 .board-with-eval,
.game-review-page-v3 .analysis-board-column-v3 .board-toolbar {
    width: min(100%, 540px, calc(100vh - 220px));
}

.game-review-page-v3 .analysis-board-column-v3 .board-with-eval {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px;
}

.game-review-page-v3 .analysis-board-column-v3 .board-toolbar {
    min-height: 38px;
    margin-top: 7px;
}

.game-review-page-v3 .analysis-board-column-v3 .nav-button {
    height: 31px;
}

.game-review-page-v3 .analysis-board-column-v3 .board-caption {
    margin-top: 5px;
    font-size: 7px;
}

/* Right side is the decision workspace. Coach is above notation. */
.game-review-page-v3 .analysis-side-column-v3 {
    position: sticky;
    top: 10px;
    align-self: start !important;
    display: grid;
    grid-template-rows: auto auto;
    gap: 10px !important;
    min-width: 0;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    padding-right: 2px;
    background: transparent;
    scrollbar-width: thin;
    scrollbar-color: #34343a transparent;
}

.game-review-page-v3 .move-panel-v3,
.game-review-page-v3 .notation-panel-v3 {
    border: 1px solid #29292f;
    background: #101012;
}

.game-review-page-v3 .move-panel-v3 {
    border-top: 2px solid #ff2bd6;
    box-shadow: 0 10px 32px rgba(0,0,0,.22);
}

.game-review-page-v3 .move-panel-v3 .review-panel-heading,
.game-review-page-v3 .notation-panel-v3 .review-panel-heading {
    min-height: 44px;
    padding: 8px 12px;
}

.game-review-page-v3 .move-panel-v3 .review-panel-heading > div > span,
.game-review-page-v3 .notation-panel-v3 .review-panel-heading > div > span {
    font-size: 7px;
}

.game-review-page-v3 .move-panel-v3 .review-panel-heading > div > strong,
.game-review-page-v3 .notation-panel-v3 .review-panel-heading > div > strong {
    font-size: 12px;
}

/* Played / best are primary; eval / impact are supporting facts. */
.game-review-page-v3 .move-detail-grid-v3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #0d0d10;
}

.game-review-page-v3 .move-detail-grid-v3 .move-detail-primary {
    min-width: 0;
    padding: 11px 12px;
    border-right: 1px solid #25252b;
    border-bottom: 1px solid #25252b;
}

.game-review-page-v3 .move-detail-grid-v3 .move-detail-primary:nth-child(2n) {
    border-right: 0;
}

.game-review-page-v3 .move-detail-grid-v3 .move-detail-primary:nth-last-child(-n+2) {
    border-bottom: 0;
}

.game-review-page-v3 .move-detail-grid-v3 .move-detail-primary span {
    display: block;
    margin-bottom: 4px;
    font-size: 7px;
}

.game-review-page-v3 .move-detail-grid-v3 .move-detail-primary strong {
    display: block;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-review-page-v3 .move-detail-grid-v3 .move-detail-best strong {
    color: #ff2bd6;
}

.game-review-page-v3 .move-detail-grid-v3 .move-detail-eval-v3 strong,
.game-review-page-v3 .move-detail-grid-v3 .move-detail-impact-v3 strong {
    color: #d2d2d7;
    font-size: 12px;
}

/* Coach is the central action of the right panel. */
.game-review-page-v3 .coach-block-v3 {
    padding: 12px;
    border-top: 1px solid #25252b;
    border-bottom: 1px solid #25252b;
    background: linear-gradient(180deg, rgba(255,43,214,.035), transparent 70%);
}

.game-review-page-v3 .coach-block-v3 .coach-heading {
    margin-bottom: 9px;
}

.game-review-page-v3 .coach-block-v3 .coach-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.game-review-page-v3 .coach-block-v3 .coach-question {
    min-height: 32px;
    padding: 6px 7px;
    font-size: 8px;
}

.game-review-page-v3 .coach-block-v3 .coach-response {
    max-height: 180px;
    overflow-y: auto;
    margin-top: 8px;
    padding: 10px;
    font-size: 10.5px;
    line-height: 1.5;
}

.game-review-page-v3 .move-panel-row-bestline-v3 {
    grid-template-columns: 62px minmax(0,1fr);
    gap: 9px;
    min-height: 0;
    padding: 8px 12px;
}

.game-review-page-v3 .move-panel-row-bestline-v3 span {
    font-size: 8px;
}

.game-review-page-v3 .move-panel-row-bestline-v3 strong {
    max-height: 32px;
    overflow: hidden;
    font-size: 9.5px;
    line-height: 1.35;
}

.game-review-page-v3 .move-facts-v3 {
    padding: 7px 12px 9px;
}

/* Notation is intentionally secondary and shorter. */
.game-review-page-v3 .notation-panel-v3 .move-list {
    min-height: 118px;
    max-height: 190px;
    padding: 4px 7px;
}

.game-review-page-v3 .notation-panel-v3 .move-list-row {
    min-height: 27px;
}

.game-review-page-v3 .notation-panel-v3 .move-list-button {
    min-height: 25px;
    padding: 3px 7px !important;
    font-size: 9.5px !important;
}

.game-review-page-v3 .notation-panel-v3 .notation-navigation {
    grid-template-columns: 48px 1fr 1fr 48px !important;
    min-height: 40px;
}

.game-review-page-v3 .notation-panel-v3 .notation-nav-button {
    min-height: 40px;
}

.game-review-page-v3 .notation-panel-v3 .notation-nav-main {
    font-size: 19px;
}

.game-review-page-v3 .notation-panel-v3 .notation-nav-edge {
    width: 48px !important;
    font-size: 14px;
}

@media (max-width: 1180px) {
    .game-review-page-v3 .game-review-top-v3 {
        grid-template-columns: 1fr;
    }

    .game-review-page-v3 .analysis-layout-v3 {
        grid-template-columns: minmax(470px, .9fr) minmax(380px, 1.1fr);
    }

    .game-review-page-v3 .analysis-board-column-v3 .board-with-eval,
    .game-review-page-v3 .analysis-board-column-v3 .board-toolbar {
        width: min(100%, 500px, calc(100vh - 210px));
    }
}

@media (max-width: 980px) {
    .game-review-page-v3 .analysis-layout-v3 {
        grid-template-columns: 1fr;
    }

    .game-review-page-v3 .analysis-side-column-v3 {
        position: static;
        max-height: none;
        overflow: visible;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .game-review-page-v3 .analysis-board-column-v3 .board-with-eval,
    .game-review-page-v3 .analysis-board-column-v3 .board-toolbar {
        width: min(100%, 560px);
    }
}

@media (max-width: 720px) {
    .game-review-page-v3 .analysis-side-column-v3 {
        grid-template-columns: 1fr;
    }

    .game-review-page-v3 .game-review-summary-clean {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

@media (max-width: 520px) {
    .game-review-page-v3 .game-review-top-v3 .game-header-clean {
        align-items: stretch;
        flex-direction: column;
    }

    .game-review-page-v3 .game-review-top-v3 .worst-move-button-clean {
        width: 100%;
    }

    .game-review-page-v3 .game-review-summary-clean {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .game-review-page-v3 .analysis-board-column-v3 {
        padding: 10px 7px;
    }
}


/* =========================================================
   HOME — ANALYSIS SAMPLE SELECTORS V1
   Rapid / Blitz / Bullet + 10 / 20 / 50
   ========================================================= */

.home-analysis-options {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-top: 2px;
}

.home-option-group {
    min-width: 0;

    padding: 14px;

    border: 1px solid #242429;

    background: #09090b;
}

.home-option-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 10px;
}

.home-option-heading span {
    color: #d9d9de;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-option-heading small {
    color: #5f5f68;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.home-option-buttons {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 5px;
}

.home-option-button {
    min-width: 0;
    min-height: 39px;

    padding: 0 9px;

    border: 1px solid #2b2b31;

    background: #111114;
    color: #7d7d86;

    font-size: 10px;
    font-weight: 780;

    letter-spacing: 0.025em;

    transition:
        border-color var(--transition),
        background var(--transition),
        color var(--transition);
}

.home-option-button:hover:not(:disabled) {
    border-color: #4a4a51;
    color: #ededf0;
}

.home-option-button.active {
    border-color: rgba(255, 43, 214, 0.72);

    background:
        linear-gradient(
            180deg,
            rgba(255, 43, 214, 0.10),
            rgba(255, 43, 214, 0.035)
        ),
        #121214;

    color: #ffffff;
}

.home-option-button.active::after {
    content: "";

    display: block;

    width: 16px;
    height: 1px;

    margin: 4px auto 0;

    background: #ff2bd6;
}

.home-option-button:disabled {
    opacity: 0.48;
}

.home-selection-summary {
    min-height: 18px;

    padding: 1px 2px 0;

    color: #777780;

    font-size: 9px;
    font-weight: 720;

    letter-spacing: 0.055em;
    text-transform: uppercase;
}

@media (max-width: 620px) {

    .home-analysis-options {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   HOME — ANALYSIS SAMPLE SELECTORS V1.1
   Compact dropdowns beside Analyze button
   ========================================================= */

.home-analysis-options,
.home-selection-summary {
    display: none !important;
}

.home-analysis-action-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        116px;

    gap: 8px;
    align-items: stretch;

    width: 100%;
}

.home-search-card .home-analyze-button {
    width: 100%;
    height: 62px;

    min-width: 0;
}

.home-analysis-selects {
    display: grid;
    grid-template-rows:
        repeat(2, minmax(0, 1fr));

    gap: 4px;

    height: 62px;
}

.home-compact-select {
    position: relative;

    display: grid;
    grid-template-columns:
        auto minmax(0, 1fr);

    align-items: center;
    gap: 7px;

    min-width: 0;
    min-height: 0;

    padding: 0 7px 0 9px;

    border: 1px solid #2b2b31;

    background: #101012;

    transition:
        border-color var(--transition),
        background var(--transition);
}

.home-compact-select:hover {
    border-color: #44444b;
    background: #121215;
}

.home-compact-select:focus-within {
    border-color: rgba(255, 43, 214, 0.72);
}

.home-compact-select > span {
    color: #5f5f68;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.home-compact-select select {
    min-width: 0;
    width: 100%;

    padding: 0 2px 0 0;

    border: 0;
    outline: 0;

    background: transparent;
    color: #f4f4f6;

    font: inherit;
    font-size: 10px;
    font-weight: 760;

    cursor: pointer;
}

.home-compact-select select:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.home-compact-select option {
    background: #111114;
    color: #ffffff;
}

@media (max-width: 520px) {

    .home-analysis-action-row {
        grid-template-columns:
            minmax(0, 1fr)
            104px;
    }

    .home-compact-select {
        gap: 5px;
        padding-inline: 6px;
    }

    .home-compact-select > span {
        font-size: 6px;
    }

    .home-compact-select select {
        font-size: 9px;
    }
}


/* =========================================================
   HOME — ANALYSIS SAMPLE SELECTORS V1.2
   Modern dropdown selectors
   ========================================================= */

.home-analysis-options,
.home-selection-summary,
.home-compact-select {
    display: none !important;
}

.home-search-card,
.home-search-card .search-box {
    overflow: visible;
}

.home-analysis-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.home-search-card .home-analyze-button {
    width: 100%;
    min-width: 0;
    height: 68px;
    border-radius: 18px;
}

.home-analysis-selects {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 6px;
    height: 68px;
}

.home-choice-menu {
    position: relative;
    min-width: 0;
}

.home-choice-trigger {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 8px 10px 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(19, 19, 23, 0.98) 0%, rgba(12, 12, 15, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    grid-template-areas: "meta chevron" "value chevron";
    align-items: center;
    gap: 1px 8px;
    text-align: left;
    transition: border-color var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.home-choice-trigger:hover:not(:disabled) {
    border-color: rgba(255, 43, 214, 0.28);
    background: linear-gradient(180deg, rgba(24, 24, 29, 1) 0%, rgba(14, 14, 18, 1) 100%);
}

.home-choice-trigger:focus-visible {
    outline: none;
    border-color: rgba(255, 43, 214, 0.64);
    box-shadow: 0 0 0 3px rgba(255, 43, 214, 0.14);
}

.home-choice-trigger:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.home-choice-meta {
    grid-area: meta;
    color: #6f6f79;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
}

.home-choice-selected {
    grid-area: value;
    min-width: 0;
    color: #f5f5f7;
    font-size: 12px;
    font-weight: 770;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-choice-chevron {
    grid-area: chevron;
    color: #8d8d96;
    font-size: 13px;
    line-height: 1;
    transform: translateY(1px) rotate(0deg);
    transition: transform var(--transition), color var(--transition);
}

.home-choice-menu.open .home-choice-trigger {
    border-color: rgba(255, 43, 214, 0.52);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 43, 214, 0.08);
}

.home-choice-menu.open .home-choice-chevron {
    color: var(--accent);
    transform: translateY(1px) rotate(180deg);
}

.home-choice-panel {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    z-index: 30;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(20, 20, 25, 0.98) 0%, rgba(12, 12, 15, 0.98) 100%);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.48);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.home-choice-menu.open .home-choice-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.home-choice-option {
    width: 100%;
    padding: 10px 11px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #e5e5ea;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.home-choice-option:hover:not(:disabled),
.home-choice-option:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.home-choice-option.active {
    background: rgba(255, 43, 214, 0.13);
    color: #ffffff;
}

@media (max-width: 700px) {
    .home-analysis-action-row {
        grid-template-columns: minmax(0, 1fr) 112px;
    }
}

@media (max-width: 520px) {
    .home-analysis-action-row {
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 8px;
    }

    .home-search-card .home-analyze-button,
    .home-analysis-selects {
        height: 64px;
    }

    .home-choice-trigger {
        padding-inline: 9px;
        border-radius: 12px;
    }

    .home-choice-selected {
        font-size: 11px;
    }

    .home-choice-option {
        font-size: 11px;
    }
}


/* =========================================================
   HOME — ANALYSIS SAMPLE SELECTORS V1.3
   Cleaner compact controls
   ========================================================= */

/* Analyze button returns to the original square-corner style. */
.home-search-card .home-analyze-button {
    border-radius: 0 !important;
}

/* Give more width back to Analyze; selectors stay compact. */
.home-analysis-action-row {
    grid-template-columns:
        minmax(0, 1fr)
        92px !important;

    gap: 10px !important;
}

/* The labels are unnecessary in this compact layout. */
.home-choice-meta {
    display: none !important;
}

/* Rebuild each small control around only the selected value + chevron. */
.home-choice-trigger {
    grid-template-columns:
        minmax(0, 1fr)
        auto !important;

    grid-template-rows:
        1fr !important;

    grid-template-areas:
        "value chevron" !important;

    padding:
        0 9px
        0 12px !important;

    border-radius:
        14px !important;
}

.home-choice-selected {
    align-self: center;

    font-size:
        11px !important;

    line-height:
        1 !important;
}

.home-choice-chevron {
    align-self: center;
}

/* Dropdown remains a little wider than the trigger if needed,
   but stays visually compact. */
.home-choice-panel {
    min-width: 100%;
}

.home-choice-option {
    padding:
        9px 10px !important;

    font-size:
        11px !important;
}

/* Keep proportions compact on smaller screens as well. */
@media (max-width: 700px) {

    .home-analysis-action-row {
        grid-template-columns:
            minmax(0, 1fr)
            88px !important;
    }
}

@media (max-width: 520px) {

    .home-analysis-action-row {
        grid-template-columns:
            minmax(0, 1fr)
            84px !important;
    }

    .home-choice-trigger {
        padding-left:
            10px !important;
    }

    .home-choice-selected {
        font-size:
            10px !important;
    }
}


/* =========================================================
   PLAYER CONTEXT — SMALLER SAMPLE LABEL
   ========================================================= */

.player-context-copy span {
    font-size: 11px !important;
    letter-spacing: 0.10em !important;
    line-height: 1.05 !important;
}

@media (max-width: 700px) {
    .player-context-copy span {
        font-size: 9px !important;
    }
}


/* =========================================================
   PLAYER CONTEXT — CHANGE SAMPLE V1
   ========================================================= */

.player-context-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px 0;

    min-width: 0;
}

.player-context-meta-row > span {
    min-width: 0;
}

.player-context-change-sample {
    flex: 0 0 auto;

    color: #86868f;

    font-size: 9px;
    font-weight: 760;

    line-height: 1;
    letter-spacing: 0.055em;

    text-decoration: none;
    text-transform: uppercase;

    transition:
        color var(--transition);
}

.player-context-change-sample::before {
    content: "·";

    margin:
        0 10px;

    color: #4e4e56;
}

.player-context-change-sample:hover {
    color: var(--accent);
}

@media (max-width: 700px) {

    .player-context-change-sample {
        font-size: 8px;
    }
}


/* =========================================================
   PLAYER PAGES — COMPACT HEADER V1
   Remove redundant large page-title area.
   Player identity + tab navigation become the page header.
   ========================================================= */

.page-header-player {
    margin-bottom: 26px !important;
    padding-bottom: 0 !important;

    border-bottom: 0 !important;
}

.page-header-player .page-header-copy {
    display: none !important;
}

.page-header-player .player-subnav {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.player-subnav {
    padding-bottom: 0 !important;
}

/* Keep the profile/nav composition compact before page content starts. */
.page-main {
    padding-top: 34px;
}

@media (max-width: 700px) {
    .page-main {
        padding-top: 26px;
    }

    .page-header-player {
        margin-bottom: 22px !important;
    }
}


/* =========================================================
   PLAYER PAGES — FINAL COMPACT SHELL V2
   The old page-header wrapper is gone from all four player pages.
   Only player identity + tab navigation remain above page content.
   ========================================================= */

.player-profile-shell {
    display: block;

    width: 100%;

    margin: 0 0 24px;
    padding: 0;

    border: 0;
}

.player-profile-shell .player-subnav {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;

    width: 100%;

    gap: 16px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
}

.player-profile-shell .player-context-inline {
    margin: 0 !important;
    padding: 0 !important;
}

.player-profile-shell .player-nav-links {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: 100%;

    gap: 32px !important;

    margin: 0 !important;
    padding: 0 0 12px !important;

    border-bottom: 1px solid #29292d !important;
}

/*
   No large page title area exists anymore.
   Keep the real content close to the player navigation.
*/
.page-main {
    padding-top: 34px !important;
}

.player-profile-shell + #emptyState,
.player-profile-shell + #pageContent,
.player-profile-shell ~ #pageContent {
    margin-top: 0 !important;
}

@media (max-width: 700px) {

    .player-profile-shell {
        margin-bottom: 20px;
    }

    .player-profile-shell .player-nav-links {
        gap: 22px !important;

        overflow-x: auto;
    }

    .page-main {
        padding-top: 26px !important;
    }
}

/* =========================================================
   CHESSREVEAL HOME V3 — PUBLIC PLAYER INTELLIGENCE
   2026-09-05
   Final Home-only visual layer. Existing product pages are untouched.
   ========================================================= */

.home-v3 {
    background:
        radial-gradient(
            circle at 72% 9%,
            rgba(255, 43, 214, 0.085),
            transparent 29rem
        ),
        radial-gradient(
            circle at 12% 28%,
            rgba(109, 67, 255, 0.045),
            transparent 26rem
        ),
        #050505;
}

.home-v3 .page-shell {
    overflow: hidden;
}

.home-v3 .container {
    padding-bottom: 72px;
}

.home-v3-nav {
    position: relative;
    z-index: 50;
}

.home-v3-nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.home-v3-current-analysis {
    color: #92929b;
    font-size: 10px;
    font-weight: 720;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition);
}

.home-v3-current-analysis:hover {
    color: #ffffff;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.home-v3-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1.02fr)
        minmax(510px, 0.98fr);
    gap: clamp(54px, 6vw, 104px);
    align-items: center;

    padding: 86px 0 66px;
}

.home-v3-hero-copy {
    min-width: 0;
}

.home-v3 .home-v3-title {
    max-width: 860px;
    margin: 19px 0 28px;
    font-size: clamp(58px, 6.3vw, 94px);
    font-weight: 780;
    line-height: 0.92;
    letter-spacing: -0.064em;
}

.home-v3 .home-v3-subtitle {
    max-width: 760px;
    color: #96969f;
    font-size: 18px;
    line-height: 1.72;
}

.home-v3-proof-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;

    max-width: 760px;
    margin-top: 32px;

    border: 1px solid #25252a;
    background: #25252a;
}

.home-v3-proof-row > div {
    min-width: 0;
    padding: 15px 16px;
    background: rgba(8, 8, 10, 0.88);
}

.home-v3-proof-row span {
    display: block;
    margin-bottom: 6px;
    color: #62626b;
    font-size: 8px;
    font-weight: 820;
    letter-spacing: 0.095em;
    text-transform: uppercase;
}

.home-v3-proof-row strong {
    display: block;
    overflow: hidden;
    color: #d8d8de;
    font-size: 11px;
    font-weight: 670;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-v3-method-note {
    display: flex;
    align-items: center;
    gap: 9px;

    max-width: 720px;
    margin-top: 18px;

    color: #62626b;
    font-size: 11px;
    line-height: 1.45;
}

.home-v3-method-dot {
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff2bd6;
    box-shadow: 0 0 16px rgba(255, 43, 214, 0.7);
}


/* ---------------------------------------------------------
   ANALYZER CARD — IDLE
   --------------------------------------------------------- */

.home-v3-analyzer {
    position: relative;
    min-width: 0;

    border: 1px solid #2a2a30;
    background:
        linear-gradient(
            145deg,
            rgba(255, 43, 214, 0.075),
            transparent 38%
        ),
        #0a0a0d;
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.home-v3-analyzer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 82px;
    height: 2px;
    background: linear-gradient(90deg, #ff2bd6, rgba(255, 43, 214, 0));
}

.home-v3-idle-panel,
.home-v3-analysis-panel {
    padding: 32px;
}

.home-v3-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.home-v3-card-head h2 {
    margin: 7px 0 0;
    color: #ffffff;
    font-size: clamp(25px, 2.2vw, 34px);
    line-height: 1.04;
    letter-spacing: -0.042em;
}

.home-v3-free-label {
    flex: 0 0 auto;
    padding: 7px 9px;
    border: 1px solid #2c2c32;
    color: #777780;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.home-v3-card-copy {
    max-width: 620px;
    margin: 16px 0 25px;
    color: #777780;
    font-size: 12px;
    line-height: 1.62;
}

.home-v3-search-stack {
    display: grid;
    gap: 10px;
}

.home-v3-input-label {
    color: #b9b9c0;
    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0.045em;
}

.home-v3-input-wrap #username {
    height: 66px;
    border-color: #303036;
    background: #050506;
    font-size: 17px;
}

.home-v3-input-wrap #username:focus {
    border-color: rgba(255, 43, 214, 0.72);
    box-shadow: 0 0 0 3px rgba(255, 43, 214, 0.085);
}

.home-v3-input-hint {
    margin-top: -2px;
    color: #55555e;
    font-size: 9px;
    line-height: 1.4;
}

.home-v3-sample-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 7px;
}

.home-v3 .home-v3-choice-trigger {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
        "label chevron"
        "value chevron" !important;
    align-items: center;
    gap: 4px 10px;

    min-height: 60px;
    padding: 10px 13px !important;

    border: 1px solid #2c2c32;
    border-radius: 0 !important;
    background: #101012;
}

.home-v3 .home-v3-choice-trigger:hover:not(:disabled) {
    border-color: #45454d;
    background: #131316;
}

.home-v3-choice-label {
    grid-area: label;
    color: #62626b;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.085em;
    text-transform: uppercase;
}

.home-v3 .home-choice-selected {
    grid-area: value;
    align-self: auto;
    color: #f0f0f3;
    font-size: 12px !important;
}

.home-v3 .home-choice-chevron {
    grid-area: chevron;
}

.home-v3 .home-v3-choice-panel {
    top: calc(100% + 6px);
    border-radius: 0;
}

.home-v3-analyze-button {
    width: 100%;
    height: 64px;
    margin-top: 2px;
    justify-content: space-between;
    padding-inline: 20px;
    border-radius: 0 !important;
    font-size: 13px;
    letter-spacing: -0.01em;
}

.home-v3-status {
    min-height: 17px;
    margin-top: 1px;
    color: #d47b7b;
    font-size: 10px;
}

.home-v3-recent {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: start;

    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #242429;
}

.home-v3-recent-label {
    padding-top: 9px;
    color: #5e5e67;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-v3-recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.home-v3-recent-player {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #28282e;
    background: #0e0e11;
    color: inherit;
    text-align: left;
    transition:
        border-color var(--transition),
        background var(--transition);
}

.home-v3-recent-player:hover {
    border-color: rgba(255, 43, 214, 0.42);
    background: #131316;
}

.home-v3-recent-player strong {
    color: #d9d9de;
    font-size: 10px;
    font-weight: 730;
}

.home-v3-recent-player span {
    color: #66666f;
    font-size: 8px;
}


/* ---------------------------------------------------------
   ANALYSIS EXPERIENCE
   --------------------------------------------------------- */

.home-v3-analysis-panel {
    display: grid;
    gap: 19px;
}

.home-v3-analysis-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.home-v3-analysis-player {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.home-v3-analysis-avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    background-color: #151519;
    background-position: center;
    background-size: cover;
    border: 1px solid #313137;
    color: #ff2bd6;
    font-size: 18px;
    font-weight: 800;
}

.home-v3-analysis-player > div:last-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.home-v3-analysis-player span {
    color: #696972;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.085em;
    text-transform: uppercase;
}

.home-v3-analysis-player strong {
    overflow: hidden;
    color: #f5f5f7;
    font-size: 19px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-v3-analysis-player small {
    color: #85858e;
    font-size: 10px;
}

.home-v3-analysis-badge {
    flex: 0 0 auto;
    padding: 7px 9px;
    border: 1px solid rgba(255, 43, 214, 0.32);
    color: #ff78e7;
    font-size: 8px;
    font-weight: 820;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-v3-analysis-badge.ready {
    border-color: rgba(116, 200, 138, 0.34);
    color: #83d799;
}

.home-v3-analysis-badge.error {
    border-color: rgba(240, 101, 101, 0.34);
    color: #f07a7a;
}

.home-v3-progress {
    margin-top: 0;
    padding-top: 17px;
}

.home-v3-progress .analysis-progress-track {
    height: 5px;
}

.home-v3-progress .analysis-progress-fill {
    position: relative;
}

.home-v3-progress .analysis-progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: homeV3ProgressShine 1.65s linear infinite;
}

@keyframes homeV3ProgressShine {
    to {
        transform: translateX(100%);
    }
}

.home-v3-progress-truth {
    margin-top: 10px;
    color: #505058;
    font-size: 8px;
    line-height: 1.45;
}

.home-v3-wait-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(260px, 1.16fr);
    gap: 10px;
}

.home-v3-sample-scan,
.home-v3-wait-puzzle {
    min-width: 0;
    padding: 15px;
    border: 1px solid #28282e;
    background: #0c0c0f;
}

.home-v3-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

.home-v3-mini-head > div {
    display: grid;
    gap: 3px;
}

.home-v3-mini-head span {
    color: #5f5f68;
    font-size: 7px;
    font-weight: 820;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-v3-mini-head strong {
    color: #d7d7dc;
    font-size: 11px;
    font-weight: 710;
}

.home-v3-mini-head small {
    color: #85858e;
    font-size: 8px;
    font-variant-numeric: tabular-nums;
}

.home-v3-scan-rows {
    display: grid;
    gap: 3px;
}

.home-v3-scan-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 7px;
    gap: 9px;
    align-items: center;

    min-height: 38px;
    padding: 7px 8px;
    border: 1px solid transparent;
    background: #101012;
    transition:
        border-color 150ms ease,
        background 150ms ease,
        opacity 150ms ease;
}

.home-v3-scan-index {
    color: #4f4f57;
    font-size: 8px;
    font-weight: 760;
}

.home-v3-scan-row > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.home-v3-scan-row strong {
    overflow: hidden;
    color: #8f8f98;
    font-size: 9px;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-v3-scan-row > div span {
    overflow: hidden;
    color: #505058;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-v3-scan-row > i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #323238;
}

.home-v3-scan-row.active {
    border-color: rgba(255, 43, 214, 0.22);
    background: rgba(255, 43, 214, 0.035);
}

.home-v3-scan-row.active strong {
    color: #e6e6e9;
}

.home-v3-scan-row.active > i {
    background: #ff2bd6;
    box-shadow: 0 0 12px rgba(255, 43, 214, 0.68);
    animation: homeV3ScanPulse 1s ease-in-out infinite alternate;
}

@keyframes homeV3ScanPulse {
    from { opacity: 0.4; transform: scale(0.75); }
    to { opacity: 1; transform: scale(1.1); }
}

.home-v3-scan-row.complete > i {
    background: #74c88a;
}

.home-v3-scan-row.complete strong {
    color: #bfc0c5;
}

.home-v3-scan-row.real-game {
    min-height: 42px;
}

.home-v3-scan-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #222227;
    color: #62626b;
    font-size: 8px;
    line-height: 1.4;
}

.home-v3-scan-pulse {
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff2bd6;
}


/* ---------------------------------------------------------
   WAIT PUZZLE
   --------------------------------------------------------- */

.home-v3-text-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #85858e;
    font-size: 8px;
    font-weight: 730;
    transition: color var(--transition);
}

.home-v3-text-button:hover {
    color: #ff2bd6;
}

.home-v3-puzzle-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.home-v3-puzzle-meta span {
    color: #ff65df;
    font-size: 8px;
    font-weight: 780;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-v3-puzzle-meta strong {
    color: #d5d5da;
    font-size: 9px;
    font-weight: 650;
    text-align: right;
}

.home-v3-puzzle-layout {
    display: grid;
    grid-template-columns: minmax(170px, 0.95fr) minmax(90px, 0.65fr);
    gap: 12px;
    align-items: stretch;
}

.home-v3-puzzle-board {
    width: min(100%, 224px);
    aspect-ratio: 1 / 1;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    overflow: hidden;
    border: 1px solid #36271f;
    background: #b98964;
}

.home-v3-puzzle-square {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

.home-v3-puzzle-square.light {
    background: #ead6ad;
}

.home-v3-puzzle-square.dark {
    background: #b98964;
}

.home-v3-puzzle-square img {
    position: relative;
    z-index: 2;
    display: block;
    width: 88%;
    height: 88%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.home-v3-puzzle-square.selected::after,
.home-v3-puzzle-square.correct::after,
.home-v3-puzzle-square.wrong::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.home-v3-puzzle-square.selected::after {
    background: rgba(255, 43, 214, 0.28);
    box-shadow: inset 0 0 0 2px rgba(255, 43, 214, 0.72);
}

.home-v3-puzzle-square.correct::after {
    background: rgba(69, 190, 105, 0.30);
    box-shadow: inset 0 0 0 2px rgba(95, 211, 129, 0.8);
}

.home-v3-puzzle-square.wrong::after {
    background: rgba(240, 101, 101, 0.33);
    box-shadow: inset 0 0 0 2px rgba(240, 101, 101, 0.82);
}

.home-v3-puzzle-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.home-v3-puzzle-status {
    padding: 11px;
    border-left: 2px solid #ff2bd6;
    background: #111114;
    color: #92929b;
    font-size: 9px;
    line-height: 1.52;
}

.home-v3-puzzle-status strong {
    color: #ffffff;
}

.home-v3-puzzle-rule {
    color: #4f4f57;
    font-size: 7px;
    line-height: 1.5;
}

.home-v3-analysis-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 14px;
    border-top: 1px solid #242429;
}

.home-v3-analysis-footer > div {
    display: grid;
    gap: 3px;
}

.home-v3-analysis-footer span {
    color: #5e5e67;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-v3-analysis-footer strong {
    color: #9898a1;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.45;
}

.home-v3-open-profile {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #ff2bd6;
    background: #ff2bd6;
    color: #090009;
    font-size: 9px;
    font-weight: 820;
}


/* ---------------------------------------------------------
   CONNECTED PRODUCT VIEWS
   --------------------------------------------------------- */

.home-v3-product {
    display: grid;
    grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
    gap: 54px;
    padding: 52px 0 56px;
    border-top: 1px solid #202025;
}

.home-v3-section-intro {
    max-width: 480px;
}

.home-v3-section-intro h2 {
    margin: 9px 0 15px;
    color: #ffffff;
    font-size: clamp(31px, 3.6vw, 49px);
    line-height: 0.98;
    letter-spacing: -0.048em;
}

.home-v3-section-intro p {
    margin: 0;
    color: #777780;
    font-size: 12px;
    line-height: 1.68;
}

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

.home-v3-view-card {
    min-width: 0;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #28282e;
    background: #0b0b0e;
    transition:
        border-color var(--transition),
        transform var(--transition),
        background var(--transition);
}

.home-v3-view-card:hover {
    transform: translateY(-2px);
    border-color: #3b3b42;
    background: #0e0e11;
}

.home-v3-view-card-profile {
    border-top-color: rgba(255, 43, 214, 0.58);
    background:
        linear-gradient(
            140deg,
            rgba(255, 43, 214, 0.055),
            transparent 45%
        ),
        #0b0b0e;
}

.home-v3-view-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.home-v3-view-top span {
    color: #696972;
    font-size: 8px;
    font-weight: 780;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.home-v3-view-top strong {
    color: #ff2bd6;
    font-size: 8px;
    font-weight: 760;
    text-transform: uppercase;
}

.home-v3-view-card > p {
    margin: auto 0 0;
    padding-top: 20px;
    color: #777780;
    font-size: 10px;
    line-height: 1.62;
}

.home-v3-profile-preview {
    display: grid;
    gap: 7px;
    padding: 17px;
    border: 1px solid #242429;
    background: #101012;
}

.home-v3-profile-preview > span {
    color: #62626b;
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 0.075em;
}

.home-v3-profile-preview > strong {
    color: #eeeeF1;
    font-size: 13px;
    font-weight: 660;
}

.home-v3-preview-lines {
    display: grid;
    gap: 5px;
    margin-top: 5px;
}

.home-v3-preview-lines i {
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #ff2bd6, #26262b);
}

.home-v3-preview-lines i:nth-child(1) { width: 88%; }
.home-v3-preview-lines i:nth-child(2) { width: 68%; opacity: 0.68; }
.home-v3-preview-lines i:nth-child(3) { width: 52%; opacity: 0.4; }

.home-v3-review-preview {
    display: grid;
    grid-template-columns: 102px 1fr;
    gap: 13px;
    align-items: center;
}

.home-v3-mini-board {
    aspect-ratio: 1 / 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid #31251d;
}

.home-v3-mini-board i:nth-child(odd) { background: #ead6ad; }
.home-v3-mini-board i:nth-child(even) { background: #b98964; }
.home-v3-mini-board i:nth-child(5),
.home-v3-mini-board i:nth-child(7),
.home-v3-mini-board i:nth-child(10),
.home-v3-mini-board i:nth-child(12) { background: #b98964; }
.home-v3-mini-board i:nth-child(6),
.home-v3-mini-board i:nth-child(8),
.home-v3-mini-board i:nth-child(9),
.home-v3-mini-board i:nth-child(11) { background: #ead6ad; }

.home-v3-review-preview > div:last-child {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    padding: 12px;
    border-top: 1px solid #26262b;
    border-bottom: 1px solid #26262b;
}

.home-v3-review-preview span {
    color: #777780;
    font-size: 8px;
    text-transform: uppercase;
}

.home-v3-review-preview strong {
    color: #7fc994;
    font-size: 12px;
}

.home-v3-review-preview .home-v3-pink {
    color: #ff2bd6;
}

.home-v3-weak-preview {
    display: grid;
    gap: 13px;
    padding: 5px 0;
}

.home-v3-weak-preview > div {
    display: grid;
    gap: 6px;
}

.home-v3-weak-preview span {
    color: #777780;
    font-size: 8px;
}

.home-v3-weak-preview i {
    position: relative;
    display: block;
    height: 5px;
    background: #222227;
    overflow: hidden;
}

.home-v3-weak-preview i::after {
    content: "";
    display: block;
    width: var(--w);
    height: 100%;
    background: linear-gradient(90deg, #83006a, #ff2bd6);
}

.home-v3-training-preview {
    display: grid;
    border-top: 1px solid #25252a;
}

.home-v3-training-preview > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    padding: 10px 0;
    border-bottom: 1px solid #25252a;
}

.home-v3-training-preview span {
    color: #ff2bd6;
    font-size: 8px;
    font-weight: 760;
    text-transform: uppercase;
}

.home-v3-training-preview strong {
    color: #a7a7ae;
    font-size: 9px;
    font-weight: 610;
    text-align: right;
}


/* ---------------------------------------------------------
   PIPELINE + COMPARE CTA
   --------------------------------------------------------- */

.home-v3-pipeline {
    display: grid;
    grid-template-columns: minmax(240px, 0.52fr) minmax(0, 1.48fr);
    gap: 48px;
    align-items: center;

    padding: 30px 0;
    border-top: 1px solid #202025;
    border-bottom: 1px solid #202025;
}

.home-v3-pipeline-copy h2 {
    margin: 7px 0 0;
    color: #efeff2;
    font-size: clamp(22px, 2.5vw, 34px);
    line-height: 1.05;
    letter-spacing: -0.038em;
}

.home-v3-pipeline-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-left: 1px solid #29292e;
}

.home-v3-pipeline-steps > div {
    display: grid;
    gap: 8px;
    min-height: 82px;
    padding: 13px 16px;
    border-right: 1px solid #29292e;
}

.home-v3-pipeline-steps span {
    color: #ff2bd6;
    font-size: 8px;
    font-weight: 800;
}

.home-v3-pipeline-steps strong {
    color: #8e8e97;
    font-size: 9px;
    font-weight: 630;
    line-height: 1.45;
}

.home-v3-compare-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;

    margin-top: 52px;
    padding: 31px 32px;
    border: 1px solid #29292f;
    background:
        linear-gradient(
            105deg,
            rgba(255, 43, 214, 0.055),
            transparent 38%
        ),
        #0b0b0e;
}

.home-v3-compare-cta h2 {
    margin: 7px 0 8px;
    color: #f4f4f6;
    font-size: clamp(25px, 3vw, 37px);
    line-height: 1.02;
    letter-spacing: -0.042em;
}

.home-v3-compare-cta p {
    margin: 0;
    color: #74747d;
    font-size: 11px;
}

.home-v3-compare-cta > a {
    flex: 0 0 auto;
    min-width: 172px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 15px;
    border: 1px solid #3a3a41;
    background: #111114;
    color: #eeeeF1;
    font-size: 10px;
    font-weight: 720;
    text-decoration: none;
    transition:
        border-color var(--transition),
        background var(--transition);
}

.home-v3-compare-cta > a span {
    color: #ff2bd6;
    font-size: 16px;
}

.home-v3-compare-cta > a:hover {
    border-color: #ff2bd6;
    background: #151116;
}

.home-v3-footer {
    margin-top: 8px;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1120px) {

    .home-v3-hero {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-top: 64px;
    }

    .home-v3-hero-copy {
        max-width: 900px;
    }

    .home-v3-analyzer {
        max-width: 880px;
    }

    .home-v3-product {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home-v3-section-intro {
        max-width: 720px;
    }
}


@media (max-width: 900px) {

    .home-v3-nav-actions {
        width: 100%;
        justify-content: space-between;
    }

    .home-v3-current-analysis {
        display: none !important;
    }

    .home-v3-wait-grid {
        grid-template-columns: 1fr;
    }

    .home-v3-puzzle-layout {
        grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    }

    .home-v3-view-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-v3-pipeline {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


@media (max-width: 720px) {

    .home-v3 .container,
    .home-v3 .site-nav,
    .home-v3 .footer {
        width: calc(100% - 28px);
    }

    .home-v3-hero {
        padding: 46px 0 48px;
    }

    .home-v3 .home-v3-title {
        font-size: clamp(46px, 13vw, 68px);
    }

    .home-v3 .home-v3-subtitle {
        font-size: 15px;
    }

    .home-v3-proof-row {
        grid-template-columns: 1fr;
    }

    .home-v3-idle-panel,
    .home-v3-analysis-panel {
        padding: 23px;
    }

    .home-v3-card-head {
        display: grid;
        gap: 12px;
    }

    .home-v3-free-label {
        justify-self: start;
    }

    .home-v3-sample-row {
        grid-template-columns: 1fr;
    }

    .home-v3 .home-v3-choice-trigger {
        min-height: 56px;
    }

    .home-v3-recent {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .home-v3-analysis-head,
    .home-v3-analysis-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-v3-puzzle-layout {
        grid-template-columns: 1fr;
    }

    .home-v3-puzzle-board {
        width: min(100%, 300px);
    }

    .home-v3-view-grid {
        grid-template-columns: 1fr;
    }

    .home-v3-view-card {
        min-height: 230px;
    }

    .home-v3-pipeline-steps {
        grid-template-columns: repeat(2, 1fr);
        border-top: 1px solid #29292e;
    }

    .home-v3-pipeline-steps > div:nth-child(-n+2) {
        border-bottom: 1px solid #29292e;
    }

    .home-v3-compare-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 26px 22px;
    }

    .home-v3-compare-cta > a {
        width: 100%;
    }
}


@media (max-width: 480px) {

    .home-v3-idle-panel,
    .home-v3-analysis-panel {
        padding: 19px;
    }

    .home-v3-analysis-player strong {
        max-width: 190px;
    }

    .home-v3-analysis-badge {
        align-self: flex-start;
    }

    .home-v3-progress .analysis-progress-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-v3-review-preview {
        grid-template-columns: 88px 1fr;
    }

    .home-v3-pipeline-steps {
        grid-template-columns: 1fr;
    }

    .home-v3-pipeline-steps > div {
        border-bottom: 1px solid #29292e;
    }

    .home-v3-pipeline-steps > div:last-child {
        border-bottom: 0;
    }
}
/* =========================================================
   CHESSREVEAL HOME V3.1
   Requested adjustments only:
   - Analyze + stacked compact selectors
   - no game-number scan during analysis
   - larger Training-style waiting puzzle
   ========================================================= */


/* ---------------------------------------------------------
   IDLE ANALYZER — RESTORE COMPACT ACTION ROW
   --------------------------------------------------------- */

.home-v3 .home-v3-sample-row {
    display: none !important;
}

.home-v3 .home-v3-action-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        96px;
    gap: 10px;
    align-items: stretch;
    margin-top: 7px;
}

.home-v3 .home-v3-action-row .home-v3-analyze-button {
    width: 100%;
    height: 68px;
    min-width: 0;
    margin: 0;
    padding-inline: 19px;
}

.home-v3 .home-v3-compact-selects {
    position: relative;
    z-index: 8;

    display: grid;
    grid-template-rows:
        repeat(2, minmax(0, 1fr));

    gap: 6px;
    height: 68px;
}

.home-v3 .home-v3-compact-selects .home-choice-menu {
    min-height: 0;
}

.home-v3 .home-v3-compact-selects .home-v3-choice-trigger {
    width: 100%;
    height: 100%;
    min-height: 0;

    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr)
        auto !important;
    grid-template-rows:
        1fr !important;
    grid-template-areas:
        "value chevron" !important;

    gap: 7px;

    padding:
        0 9px
        0 11px !important;

    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 13px !important;

    background:
        linear-gradient(
            180deg,
            rgba(20, 20, 24, .98),
            rgba(12, 12, 15, .98)
        );
}

.home-v3 .home-v3-compact-selects .home-choice-selected {
    grid-area: value;
    align-self: center;

    font-size: 10.5px !important;
    font-weight: 770;
    line-height: 1;

    text-align: left;
}

.home-v3 .home-v3-compact-selects .home-choice-chevron {
    grid-area: chevron;
    align-self: center;
}

.home-v3 .home-v3-compact-selects .home-v3-choice-panel {
    min-width: 116px;
    right: 0;
    left: auto;
}


/* ---------------------------------------------------------
   ANALYSIS WAIT — PUZZLE TAKES THE SPACE
   --------------------------------------------------------- */

.home-v3 .home-v3-wait-grid {
    display: block;
}

.home-v3 .home-v3-sample-scan {
    display: none !important;
}

.home-v3 .home-v3-wait-puzzle-large {
    width: 100%;
    padding: 17px 18px 18px;
}

.home-v3 .home-v3-puzzle-head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-v3 .home-v3-puzzle-head-actions small {
    color: #6e6e78;
    font-size: 8px;
    font-weight: 760;
    font-variant-numeric: tabular-nums;
}

.home-v3 .home-v3-puzzle-layout-large {
    display: grid;
    grid-template-columns:
        minmax(300px, 368px)
        minmax(125px, 1fr);
    gap: 16px;
    align-items: stretch;
}

.home-v3 .home-v3-puzzle-board-wrap {
    position: relative;
    width: min(100%, 368px);
    max-width: 368px;
}

.home-v3 .home-v3-puzzle-board {
    position: relative;

    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;

    display: grid;
    grid-template-columns:
        repeat(8, minmax(0, 1fr));
    grid-template-rows:
        repeat(8, minmax(0, 1fr));

    overflow: hidden;

    border: 1px solid #3a2b22;

    background: #b98964;

    box-shadow:
        0 20px 46px rgba(0, 0, 0, .26);

    touch-action: none;
}

.home-v3 .home-v3-puzzle-square {
    position: relative;

    min-width: 0;
    min-height: 0;

    display: grid;
    place-items: center;

    overflow: hidden;

    border: 0;
    padding: 0;
}

.home-v3 .home-v3-puzzle-square.light {
    background: #ead6ad;
}

.home-v3 .home-v3-puzzle-square.dark {
    background: #b98964;
}

.home-v3 .home-v3-puzzle-square .fen-piece {
    position: relative;
    z-index: 5;

    display: block;

    width: 88%;
    height: 88%;

    object-fit: contain;

    pointer-events: auto !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;
    touch-action: none !important;

    cursor: grab !important;
}

.home-v3 .home-v3-puzzle-square .fen-piece:active {
    cursor: grabbing !important;
}

.home-v3 .home-v3-puzzle-square .fen-piece.is-disabled {
    pointer-events: none !important;
    cursor: default !important;
}

.home-v3 .home-v3-puzzle-square.is-drag-source .fen-piece {
    opacity: 0 !important;
}


/* Selected source uses the same clear translucent treatment as Training. */
.home-v3 .home-v3-puzzle-square.is-selected::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 2;

    background: rgba(255, 28, 207, .27);

    pointer-events: none;
}


/* Legal destinations: dot / capture ring, not underlines. */
.home-v3 .home-v3-puzzle-square.is-legal-target::after {
    content: "";

    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;

    width: 42%;
    min-width: 18px;
    aspect-ratio: 1 / 1;

    border-radius: 999px;

    background: rgba(20, 20, 24, .28);

    transform: translate(-50%, -50%);

    pointer-events: none;
}

.home-v3 .home-v3-puzzle-square.is-legal-capture::after {
    width: 92%;
    min-width: 0;

    border: 4px solid rgba(20, 20, 24, .24);
    background: transparent;

    box-sizing: border-box;
}


/* Wrong move feedback: same full-square red pulse as Training. */
.home-v3 .home-v3-puzzle-square.is-wrong::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 3;

    background: rgba(235, 68, 78, .34);

    pointer-events: none;

    animation:
        homeV31WrongSquarePulse
        520ms
        cubic-bezier(.20, .72, .20, 1);
}

@keyframes homeV31WrongSquarePulse {
    0% {
        opacity: .35;
    }

    35% {
        opacity: 1;
    }

    100% {
        opacity: .86;
    }
}


/* Real pointer-drag ghost. */
.home-v3-puzzle-drag-ghost {
    position: fixed !important;
    z-index: 99999 !important;

    margin: 0 !important;
    padding: 0 !important;

    pointer-events: none !important;
    user-select: none !important;

    object-fit: contain;

    opacity: .95;

    filter:
        drop-shadow(
            0 10px 18px rgba(0, 0, 0, .34)
        );

    transform: scale(1.035);
}


/* Smooth user/opponent move animation. */
.home-v3 .home-v3-puzzle-motion-piece {
    position: absolute !important;
    z-index: 18 !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain;

    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;

    transition:
        transform var(--home-puzzle-motion-duration, 300ms)
        cubic-bezier(.20, .76, .24, 1);

    will-change: transform;

    filter:
        drop-shadow(
            0 5px 10px rgba(0, 0, 0, .16)
        );
}

.home-v3 .home-v3-puzzle-square .fen-piece.is-motion-source-hidden {
    visibility: hidden !important;
}

.home-v3 .home-v3-puzzle-square .fen-piece.is-motion-capture-fade {
    opacity: .18 !important;

    transition:
        opacity 145ms ease-out;
}


/* Final full-puzzle feedback. */
.home-v3 .home-v3-puzzle-feedback {
    position: absolute;
    inset: 0;
    z-index: 30;

    display: grid;
    place-items: center;

    pointer-events: none;

    background: rgba(5, 5, 7, .08);

    backdrop-filter: blur(1.25px);
}

.home-v3 .home-v3-puzzle-feedback.hidden {
    display: none !important;
}

.home-v3 .home-v3-puzzle-feedback-badge {
    width: 102px;
    height: 102px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 28px;

    box-shadow:
        0 24px 64px rgba(0, 0, 0, .42),
        inset 0 1px 0 rgba(255, 255, 255, .08);

    transform: scale(.88);
    opacity: 0;

    animation:
        homeV31FeedbackIn
        180ms
        cubic-bezier(.16, .84, .26, 1)
        forwards;
}

.home-v3 .home-v3-puzzle-feedback.is-correct .home-v3-puzzle-feedback-badge {
    background:
        linear-gradient(
            145deg,
            rgba(27, 77, 54, .94),
            rgba(9, 29, 20, .96)
        );

    border-color:
        rgba(99, 230, 163, .28);
}

.home-v3 .home-v3-puzzle-feedback.is-wrong .home-v3-puzzle-feedback-badge {
    background:
        linear-gradient(
            145deg,
            rgba(84, 29, 34, .95),
            rgba(31, 10, 13, .97)
        );

    border-color:
        rgba(240, 80, 80, .30);
}

.home-v3 .home-v3-puzzle-feedback svg {
    width: 58px;
    height: 58px;

    overflow: visible;
}

.home-v3 .home-v3-puzzle-feedback path {
    fill: none;

    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;

    vector-effect: non-scaling-stroke;
}

.home-v3 .home-v3-puzzle-feedback.is-correct path {
    stroke: #73e6ad;
}

.home-v3 .home-v3-puzzle-feedback.is-wrong path {
    stroke: #f16a73;
}

@keyframes homeV31FeedbackIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}


.home-v3 .home-v3-puzzle-side {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    gap: 12px;
}

.home-v3 .home-v3-puzzle-context {
    display: grid;
    gap: 5px;

    padding: 12px 13px;

    border: 1px solid #25252a;

    background: #101012;
}

.home-v3 .home-v3-puzzle-context span {
    color: #64646d;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-v3 .home-v3-puzzle-context strong {
    color: #f0f0f3;

    font-size: 12px;
    font-weight: 690;
    line-height: 1.3;
}

.home-v3 .home-v3-puzzle-status {
    min-height: 78px;

    padding: 12px 13px;

    font-size: 9px;
    line-height: 1.55;
}

.home-v3 .home-v3-puzzle-rule {
    margin-top: auto;

    padding-top: 10px;

    border-top: 1px solid #242429;

    font-size: 7.5px;
    line-height: 1.55;
}


@media (max-width: 1180px) {

    .home-v3 .home-v3-puzzle-layout-large {
        grid-template-columns:
            minmax(280px, 340px)
            minmax(115px, 1fr);
    }

    .home-v3 .home-v3-puzzle-board-wrap {
        max-width: 340px;
    }
}


@media (max-width: 980px) {

    .home-v3 .home-v3-puzzle-layout-large {
        grid-template-columns:
            minmax(300px, 420px)
            minmax(170px, 1fr);
    }

    .home-v3 .home-v3-puzzle-board-wrap {
        max-width: 420px;
    }
}


@media (max-width: 640px) {

    .home-v3 .home-v3-action-row {
        grid-template-columns:
            minmax(0, 1fr)
            88px;
        gap: 8px;
    }

    .home-v3 .home-v3-puzzle-layout-large {
        grid-template-columns: 1fr;
    }

    .home-v3 .home-v3-puzzle-board-wrap {
        width: min(100%, 430px);
        max-width: 430px;
        margin: 0 auto;
    }

    .home-v3 .home-v3-puzzle-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .home-v3 .home-v3-puzzle-rule {
        grid-column: 1 / -1;
        margin-top: 0;
    }
}


@media (max-width: 460px) {

    .home-v3 .home-v3-action-row {
        grid-template-columns:
            minmax(0, 1fr)
            82px;
    }

    .home-v3 .home-v3-action-row .home-v3-analyze-button {
        padding-inline: 14px;
        font-size: 12px;
    }

    .home-v3 .home-v3-compact-selects .home-choice-selected {
        font-size: 9.5px !important;
    }

    .home-v3 .home-v3-puzzle-side {
        grid-template-columns: 1fr;
    }

    .home-v3 .home-v3-puzzle-rule {
        grid-column: auto;
    }
}

/* =========================================================
   CHESSREVEAL HOME V3.2
   Requested refinement:
   - cleaner connected-output section, no fake mini chessboard
   - output rows are real links to product pages
   - waiting puzzle uses full width; Focus is above the board
   - larger board
   ========================================================= */


/* ---------------------------------------------------------
   WAITING PUZZLE — FULL-WIDTH BOARD COMPOSITION
   --------------------------------------------------------- */

.home-v3 .home-v3-wait-puzzle-large {
    padding: 18px 20px 20px;
}

.home-v3 .home-v3-puzzle-head-actions {
    gap: 14px;
}

.home-v3 .home-v3-puzzle-toolbar {
    display: grid;
    grid-template-columns:
        minmax(105px, .72fr)
        minmax(130px, .9fr)
        minmax(0, 1.38fr);

    gap: 1px;

    margin-bottom: 13px;

    border: 1px solid #28282e;
    background: #28282e;
}

.home-v3 .home-v3-puzzle-toolbar-item {
    min-width: 0;

    display: grid;
    gap: 5px;

    padding: 11px 13px;

    background: #101012;
}

.home-v3 .home-v3-puzzle-toolbar-item span {
    color: #5f5f68;

    font-size: 7px;
    font-weight: 820;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-v3 .home-v3-puzzle-toolbar-item strong {
    overflow: hidden;

    color: #d8d8dd;

    font-size: 10px;
    font-weight: 690;
    line-height: 1.25;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-v3 .home-v3-puzzle-toolbar-focus {
    background:
        linear-gradient(
            120deg,
            rgba(255, 43, 214, .07),
            transparent 72%
        ),
        #101012;
}

.home-v3 .home-v3-puzzle-toolbar-focus strong {
    color: #ff72e4;
}

.home-v3 .home-v3-puzzle-toolbar-goal strong {
    color: #f0f0f3;
}

.home-v3 .home-v3-puzzle-layout-large {
    display: flex !important;
    flex-direction: column;
    align-items: center;

    gap: 10px;

    width: 100%;
}

.home-v3 .home-v3-puzzle-board-wrap {
    width: min(100%, 470px) !important;
    max-width: 470px !important;

    margin: 0 auto;
}

.home-v3 .home-v3-puzzle-board {
    width: 100% !important;
    max-width: none !important;

    box-shadow:
        0 22px 55px rgba(0, 0, 0, .32);
}

.home-v3 .home-v3-puzzle-status-under {
    width: min(100%, 470px);

    min-height: 0;

    margin: 0 auto;
    padding: 10px 12px;

    border-top: 1px solid #29292e;
    border-right: 1px solid #29292e;
    border-bottom: 1px solid #29292e;
    border-left: 2px solid #ff2bd6;

    background: #101012;

    color: #92929b;

    font-size: 9px;
    line-height: 1.5;
}

.home-v3 .home-v3-puzzle-rule-under {
    width: min(100%, 470px);

    margin: -2px auto 0;
    padding: 0 2px;

    border: 0;

    color: #505058;

    font-size: 7px;
    line-height: 1.45;
    text-align: left;
}


/* Old side rail is intentionally gone. */
.home-v3 .home-v3-puzzle-side,
.home-v3 .home-v3-puzzle-context {
    display: none !important;
}


/* ---------------------------------------------------------
   CONNECTED OUTPUTS — CLEAN FUNCTIONAL NAVIGATOR
   --------------------------------------------------------- */

.home-v3-output-section {
    display: grid;
    gap: 30px;

    padding: 56px 0 58px;

    border-top: 1px solid #222227;
}

.home-v3-output-heading {
    display: grid;
    grid-template-columns:
        minmax(320px, .78fr)
        minmax(280px, .52fr);

    justify-content: space-between;
    gap: 70px;
    align-items: end;
}

.home-v3-output-heading h2 {
    max-width: 700px;

    margin: 9px 0 0;

    color: #ffffff;

    font-size: clamp(34px, 4.25vw, 58px);
    font-weight: 760;

    line-height: .98;
    letter-spacing: -.052em;
}

.home-v3-output-heading > p {
    max-width: 500px;

    margin: 0 0 3px;

    color: #7e7e87;

    font-size: 12px;
    line-height: 1.72;
}

.home-v3-output-list {
    border-top: 1px solid #2a2a2f;
}

.home-v3-output-row {
    position: relative;

    display: grid;
    grid-template-columns:
        48px
        minmax(245px, .9fr)
        minmax(260px, 1.1fr)
        82px
        30px;

    gap: 20px;
    align-items: center;

    min-height: 112px;
    padding: 20px 4px;

    border-bottom: 1px solid #2a2a2f;

    color: inherit;
    text-decoration: none;

    transition:
        background 150ms ease,
        padding 150ms ease,
        border-color 150ms ease;
}

.home-v3-output-row::before {
    content: "";

    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;

    width: 2px;

    background: #ff2bd6;

    transform: scaleY(0);
    transform-origin: center;

    transition:
        transform 150ms ease;
}

.home-v3-output-row:hover {
    padding-left: 14px;
    padding-right: 14px;

    border-bottom-color: #3a3038;

    background:
        linear-gradient(
            90deg,
            rgba(255, 43, 214, .05),
            transparent 46%
        ),
        rgba(255, 255, 255, .008);
}

.home-v3-output-row:hover::before {
    transform: scaleY(1);
}

.home-v3-output-number {
    color: #5d5d66;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .08em;

    transition:
        color 150ms ease;
}

.home-v3-output-row:hover .home-v3-output-number {
    color: #ff2bd6;
}

.home-v3-output-name {
    display: grid;
    gap: 7px;
}

.home-v3-output-name small {
    color: #ff5fdd;

    font-size: 8px;
    font-weight: 820;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-v3-output-name strong {
    color: #f3f3f5;

    font-size: clamp(16px, 1.55vw, 21px);
    font-weight: 690;

    line-height: 1.22;
    letter-spacing: -.025em;
}

.home-v3-output-row > p {
    max-width: 560px;

    margin: 0;

    color: #777780;

    font-size: 10.5px;
    line-height: 1.62;
}

.home-v3-output-tag {
    justify-self: end;

    padding: 6px 8px;

    border: 1px solid #2d2d33;

    color: #73737c;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .08em;
    text-transform: uppercase;

    transition:
        border-color 150ms ease,
        color 150ms ease,
        background 150ms ease;
}

.home-v3-output-row:hover .home-v3-output-tag {
    border-color: rgba(255, 43, 214, .34);

    background: rgba(255, 43, 214, .045);
    color: #d9a1ce;
}

.home-v3-output-arrow {
    justify-self: end;

    color: #64646d;

    font-size: 18px;

    transform: translateX(0);

    transition:
        color 150ms ease,
        transform 150ms ease;
}

.home-v3-output-row:hover .home-v3-output-arrow {
    color: #ff2bd6;

    transform: translateX(4px);
}


/* One slim method strip replaces the redundant second section. */
.home-v3-method-strip {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        26px
        minmax(0, 1fr)
        26px
        minmax(0, 1fr)
        26px
        minmax(0, 1fr);

    gap: 8px;
    align-items: center;

    padding: 15px 18px;

    border: 1px solid #27272c;

    background: #0b0b0d;
}

.home-v3-method-strip > div {
    display: flex;
    align-items: baseline;
    gap: 9px;

    min-width: 0;
}

.home-v3-method-strip > div span {
    flex: 0 0 auto;

    color: #ff2bd6;

    font-size: 7px;
    font-weight: 820;
}

.home-v3-method-strip > div strong {
    overflow: hidden;

    color: #85858e;

    font-size: 9px;
    font-weight: 650;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-v3-method-strip > i {
    color: #3f3f46;

    font-size: 13px;
    font-style: normal;
    text-align: center;
}


/* Old preview/pipeline components are no longer rendered. */
.home-v3-product,
.home-v3-pipeline,
.home-v3-view-grid,
.home-v3-mini-board {
    display: none !important;
}


@media (max-width: 1040px) {

    .home-v3-output-heading {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .home-v3-output-heading > p {
        max-width: 660px;
    }

    .home-v3-output-row {
        grid-template-columns:
            42px
            minmax(220px, .9fr)
            minmax(220px, 1.1fr)
            28px;
    }

    .home-v3-output-tag {
        display: none;
    }
}


@media (max-width: 760px) {

    .home-v3 .home-v3-puzzle-toolbar {
        grid-template-columns:
            1fr 1fr;
    }

    .home-v3 .home-v3-puzzle-toolbar-goal {
        grid-column: 1 / -1;
    }

    .home-v3 .home-v3-puzzle-board-wrap {
        width: min(100%, 520px) !important;
        max-width: 520px !important;
    }

    .home-v3 .home-v3-puzzle-status-under,
    .home-v3 .home-v3-puzzle-rule-under {
        width: min(100%, 520px);
    }

    .home-v3-output-row {
        grid-template-columns:
            36px
            minmax(0, 1fr)
            26px;

        gap: 14px;

        min-height: 0;
        padding: 20px 2px;
    }

    .home-v3-output-row > p {
        grid-column:
            2 / 3;

        margin-top: -6px;
    }

    .home-v3-output-arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .home-v3-method-strip {
        grid-template-columns:
            1fr 1fr;

        gap: 1px;

        padding: 1px;

        background: #28282d;
    }

    .home-v3-method-strip > div {
        min-height: 46px;
        padding: 10px 12px;
        background: #0b0b0d;
    }

    .home-v3-method-strip > i {
        display: none;
    }
}


@media (max-width: 520px) {

    .home-v3 .home-v3-wait-puzzle-large {
        padding-inline: 14px;
    }

    .home-v3-output-section {
        padding-top: 44px;
    }

    .home-v3-output-heading h2 {
        font-size: clamp(32px, 10vw, 44px);
    }

    .home-v3-output-row {
        grid-template-columns:
            31px
            minmax(0, 1fr)
            22px;

        gap: 10px;
    }

    .home-v3-output-name strong {
        font-size: 16px;
    }

    .home-v3-output-row > p {
        font-size: 10px;
    }

    .home-v3-method-strip {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   HOME V4.5 — WAITING PUZZLE UX
   Training-style interaction pass
   2026-09-05
   ========================================================= */


/* ---------------------------------------------------------
   Selected source square
   Different overlays compensate for the light/dark board base.
   --------------------------------------------------------- */

.home-v3 .home-v3-puzzle-square.light.is-selected::before {
    background:
        rgba(
            176,
            0,
            85,
            .50
        ) !important;
}

.home-v3 .home-v3-puzzle-square.dark.is-selected::before {
    background:
        rgba(
            255,
            28,
            207,
            .28
        ) !important;
}


/* ---------------------------------------------------------
   Smaller legal move indicators
   --------------------------------------------------------- */

.home-v3 .home-v3-puzzle-square
.is-legal-target:not(.is-legal-capture)::after,
.home-v3 .home-v3-puzzle-square.is-legal-target:not(.is-legal-capture)::after {
    width:
        28% !important;

    min-width:
        14px !important;
}

.home-v3 .home-v3-puzzle-square.is-legal-capture::after {
    width:
        84% !important;

    min-width:
        0 !important;

    border-width:
        3px !important;
}


/* ---------------------------------------------------------
   Correct move = green FROM + TO squares
   --------------------------------------------------------- */

.home-v3 .home-v3-puzzle-square.is-correct-move {
    box-shadow:
        none !important;
}

.home-v3 .home-v3-puzzle-square.is-correct-move::before {
    content: "";

    position:
        absolute;

    inset:
        0;

    z-index:
        3;

    background:
        rgba(
            55,
            168,
            94,
            .43
        );

    pointer-events:
        none;
}

.home-v3 .home-v3-puzzle-square.light.is-correct-move::before {
    background:
        rgba(
            39,
            139,
            75,
            .52
        );
}

.home-v3 .home-v3-puzzle-square.dark.is-correct-move::before {
    background:
        rgba(
            64,
            186,
            105,
            .40
        );
}


/* ---------------------------------------------------------
   Wrong move stays red, but no pulse / pass-fail animation.
   --------------------------------------------------------- */

.home-v3 .home-v3-puzzle-square.is-wrong::before {
    animation:
        none !important;

    opacity:
        1 !important;
}


/* ---------------------------------------------------------
   Remove old large centered ✓ / ✕ feedback entirely.
   --------------------------------------------------------- */

.home-v3 .home-v3-puzzle-feedback,
.home-v3 .home-v3-puzzle-feedback:not(.hidden) {
    display:
        none !important;

    visibility:
        hidden !important;

    opacity:
        0 !important;

    pointer-events:
        none !important;
}


/* Pieces always stay above square feedback fills. */

.home-v3 .home-v3-puzzle-square.is-correct-move .fen-piece,
.home-v3 .home-v3-puzzle-square.is-wrong .fen-piece {
    position:
        relative;

    z-index:
        5;
}


/* =========================================================
   PLAYER REPORT CONTEXT V3
   Compact shared identity header for:
   Player Profile / Game Review / Weakness Map / Training

   Goal:
   clearly identify WHO the report belongs to without creating
   a second hero above the actual page content.
   ========================================================= */


/* ---------------------------------------------------------
   SHELL RHYTHM
   --------------------------------------------------------- */

.player-profile-shell {
    margin-bottom:
        22px !important;
}

.player-profile-shell .player-subnav {
    gap:
        11px !important;
}


/* ---------------------------------------------------------
   REPORT IDENTITY
   --------------------------------------------------------- */

.player-profile-shell .player-context-inline {
    width:
        100% !important;

    min-width:
        0 !important;

    min-height:
        50px !important;

    display:
        flex !important;

    align-items:
        center !important;

    gap:
        12px !important;

    margin:
        0 !important;

    padding:
        0 !important;

    border:
        0 !important;

    background:
        transparent !important;
}


/* Remove every older decorative line / underline. */
.player-profile-shell .player-context-inline::after,
.player-profile-shell .player-context-copy::before {
    display:
        none !important;

    content:
        none !important;
}


/* Smaller avatar: identity cue, not a profile-card hero. */
.player-profile-shell .player-context-avatar-wrap,
.player-profile-shell .player-context-avatar {
    width:
        46px !important;

    height:
        46px !important;
}

.player-profile-shell .player-context-avatar-wrap {
    flex:
        0 0 46px !important;

    overflow:
        hidden;

    border:
        1px solid #2b2b30;

    background:
        #111114;
}

.player-profile-shell .player-context-avatar {
    display:
        block;

    object-fit:
        cover;

    border-radius:
        0 !important;
}


/* The text area occupies the remaining row width. */
.player-profile-shell .player-context-copy {
    position:
        static !important;

    flex:
        1 1 auto !important;

    min-width:
        0 !important;

    min-height:
        0 !important;

    display:
        grid !important;

    gap:
        5px !important;

    margin:
        0 !important;

    padding:
        0 !important;

    border:
        0 !important;
}


/* REPORT FOR — deliberately quiet. */
.player-profile-shell .player-context-label {
    display:
        block !important;

    margin:
        0 !important;

    color:
        #62626b !important;

    font-size:
        7px !important;

    font-weight:
        850 !important;

    line-height:
        1 !important;

    letter-spacing:
        .105em !important;

    text-transform:
        uppercase !important;
}


/* Username + sample metadata + action share one compact row. */
.player-profile-shell .player-context-main-row {
    width:
        100%;

    min-width:
        0;

    display:
        flex;

    align-items:
        baseline;

    gap:
        10px;
}


/* Username stays distinctive, but no longer competes with page content. */
.player-profile-shell .player-context-name {
    flex:
        0 1 auto;

    min-width:
        0;

    overflow:
        hidden;

    margin:
        0 !important;

    color:
        #e3c486 !important;

    background:
        linear-gradient(
            90deg,
            #cda96f 0%,
            #efd79f 52%,
            #cda96f 100%
        ) !important;

    -webkit-background-clip:
        text !important;

    background-clip:
        text !important;

    -webkit-text-fill-color:
        transparent !important;

    font-size:
        20px !important;

    font-weight:
        760 !important;

    line-height:
        1.05 !important;

    letter-spacing:
        -.025em !important;

    text-overflow:
        ellipsis;

    text-transform:
        none !important;

    white-space:
        nowrap;
}


/* ---------------------------------------------------------
   SAMPLE META
   --------------------------------------------------------- */

.player-profile-shell .player-context-meta-row {
    flex:
        0 1 auto;

    min-width:
        0;

    display:
        flex !important;

    align-items:
        baseline !important;

    flex-wrap:
        nowrap !important;

    gap:
        7px !important;

    margin:
        0 !important;
}


.player-profile-shell .player-context-meta-row > span {
    margin:
        0 !important;

    color:
        #74747d !important;

    font-size:
        9px !important;

    font-weight:
        690 !important;

    line-height:
        1.1 !important;

    letter-spacing:
        .025em !important;

    text-transform:
        none !important;

    white-space:
        nowrap;
}


.player-profile-shell .player-context-meta-row .player-context-rating {
    color:
        #a8a8af !important;
}


.player-profile-shell .player-context-meta-row .player-context-dot {
    color:
        #414147 !important;

    font-weight:
        800 !important;
}


/* ---------------------------------------------------------
   CHANGE SAMPLE
   --------------------------------------------------------- */

.player-profile-shell .player-context-change-sample,
.player-profile-shell .player-context-start-analysis {
    flex:
        0 0 auto;

    min-height:
        30px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        9px;

    margin-left:
        auto !important;

    padding:
        0 10px;

    border:
        1px solid #303036;

    background:
        #0d0d10;

    color:
        #a0a0a8;

    font-size:
        8px !important;

    font-weight:
        820 !important;

    line-height:
        1 !important;

    letter-spacing:
        .055em !important;

    text-decoration:
        none;

    text-transform:
        uppercase !important;

    white-space:
        nowrap;

    transition:
        border-color 140ms ease,
        color 140ms ease,
        background 140ms ease;
}


/* Kill the older pseudo separator before Change sample. */
.player-profile-shell .player-context-change-sample::before {
    display:
        none !important;

    content:
        none !important;

    margin:
        0 !important;
}


.player-profile-shell .player-context-change-sample > span,
.player-profile-shell .player-context-start-analysis > span {
    color:
        var(--accent) !important;

    font-size:
        12px !important;

    letter-spacing:
        0 !important;

    text-transform:
        none !important;
}


.player-profile-shell .player-context-change-sample:hover,
.player-profile-shell .player-context-start-analysis:hover {
    border-color:
        rgba(255, 43, 214, .55);

    background:
        rgba(255, 43, 214, .035);

    color:
        #ffffff;
}


/* ---------------------------------------------------------
   PLAYER TABS
   --------------------------------------------------------- */

.player-profile-shell .player-nav-links {
    width:
        100% !important;

    min-height:
        38px;

    display:
        flex !important;

    align-items:
        flex-end !important;

    justify-content:
        flex-start !important;

    gap:
        30px !important;

    margin:
        0 !important;

    padding:
        0 !important;

    border-bottom:
        1px solid #29292d !important;
}


.player-profile-shell .player-nav-link {
    min-height:
        38px !important;

    display:
        inline-flex !important;

    align-items:
        center !important;

    padding:
        0 0 11px !important;

    color:
        #777780;

    font-size:
        11px !important;

    font-weight:
        700 !important;

    line-height:
        1 !important;
}


.player-profile-shell .player-nav-link.active {
    color:
        #ffffff;
}


.player-profile-shell .player-nav-link.active::after {
    bottom:
        -1px !important;

    height:
        2px !important;

    background:
        var(--accent) !important;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 760px) {

    .player-profile-shell {
        margin-bottom:
            18px !important;
    }

    .player-profile-shell .player-context-inline {
        align-items:
            flex-start !important;
    }

    .player-profile-shell .player-context-avatar-wrap,
    .player-profile-shell .player-context-avatar {
        width:
            42px !important;

        height:
            42px !important;
    }

    .player-profile-shell .player-context-avatar-wrap {
        flex-basis:
            42px !important;
    }

    .player-profile-shell .player-context-main-row {
        align-items:
            flex-start;

        flex-wrap:
            wrap;

        gap:
            5px 9px;
    }

    .player-profile-shell .player-context-name {
        width:
            100%;

        font-size:
            18px !important;
    }

    .player-profile-shell .player-context-meta-row {
        flex-wrap:
            wrap !important;
    }

    .player-profile-shell .player-context-change-sample,
    .player-profile-shell .player-context-start-analysis {
        margin-left:
            0 !important;
    }

    .player-profile-shell .player-nav-links {
        gap:
            22px !important;

        overflow-x:
            auto;
    }
}


@media (max-width: 480px) {

    .player-profile-shell .player-context-meta-row .player-context-dot {
        display:
            none !important;
    }

    .player-profile-shell .player-context-meta-row {
        display:
            grid !important;

        gap:
            3px !important;
    }

    .player-profile-shell .player-context-change-sample,
    .player-profile-shell .player-context-start-analysis {
        width:
            auto;
    }
}


/* =========================================================
   PLAYER REPORT HEADER V4
   Identity + report navigation as one coherent component.
   ========================================================= */

.player-profile-shell {
    margin: 0 0 24px !important;
    padding: 0 !important;
}

.player-profile-shell .player-subnav {
    display: grid !important;
    gap: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #29292f !important;

    background: #0a0a0d !important;
}


/* ---------- identity row ---------- */

.player-profile-shell .player-context-inline {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 74px !important;

    display: grid !important;
    grid-template-columns:
        minmax(280px, 1fr)
        auto
        auto !important;

    align-items: stretch !important;
    gap: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-bottom: 1px solid #25252a !important;

    background:
        linear-gradient(
            90deg,
            rgba(255, 43, 214, .035),
            transparent 32%
        ),
        #0d0d10 !important;
}

.player-profile-shell .player-context-inline::after,
.player-profile-shell .player-context-copy::before,
.player-profile-shell .player-context-change-sample::before {
    display: none !important;
    content: none !important;
}

.player-profile-shell .player-context-identity {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 13px;

    padding: 12px 16px;
}

.player-profile-shell .player-context-avatar-wrap,
.player-profile-shell .player-context-avatar {
    width: 48px !important;
    height: 48px !important;
}

.player-profile-shell .player-context-avatar-wrap {
    flex: 0 0 48px !important;

    overflow: hidden;

    border: 1px solid #34343a;

    background: #151518;
}

.player-profile-shell .player-context-avatar {
    display: block;
    object-fit: cover;

    border-radius: 0 !important;
}

.player-profile-shell .player-context-copy {
    position: static !important;
    min-width: 0 !important;

    display: grid !important;
    gap: 5px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
}

.player-profile-shell .player-context-label {
    display: block !important;

    margin: 0 !important;

    color: #6e6e78 !important;

    font-size: 7px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    letter-spacing: .105em !important;
    text-transform: uppercase !important;
}

.player-profile-shell .player-context-name {
    display: block;
    max-width: 100%;

    overflow: hidden;

    margin: 0 !important;

    color: #e4c687 !important;

    background:
        linear-gradient(
            90deg,
            #cba76b 0%,
            #efd79c 50%,
            #cba76b 100%
        ) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;

    font-size: 22px !important;
    font-weight: 770 !important;
    line-height: 1 !important;
    letter-spacing: -.028em !important;

    text-overflow: ellipsis;
    text-transform: none !important;
    white-space: nowrap;
}


/* ---------- sample facts ---------- */

.player-profile-shell .player-context-facts {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(135px, auto));

    align-self: stretch;

    border-left: 1px solid #25252a;
}

.player-profile-shell .player-context-fact {
    min-width: 135px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;

    padding: 11px 16px;
}

.player-profile-shell .player-context-fact + .player-context-fact {
    border-left: 1px solid #25252a;
}

.player-profile-shell .player-context-fact > span {
    color: #5f5f69;

    font-size: 7px;
    font-weight: 840;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.player-profile-shell .player-context-fact > strong {
    color: #d6d6dc;

    font-size: 12px;
    font-weight: 720;
    line-height: 1.1;

    white-space: nowrap;
}

.player-profile-shell .player-context-fact > strong b {
    margin-left: 4px;

    color: #777780;

    font-size: 8px;
    font-weight: 680;
}


/* ---------- change sample ---------- */

.player-profile-shell .player-context-change-sample,
.player-profile-shell .player-context-start-analysis {
    align-self: stretch;

    min-width: 142px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    margin: 0 !important;
    padding: 0 14px;

    border: 0 !important;
    border-left: 1px solid #25252a !important;

    background: #0b0b0e !important;
    color: #a8a8b0 !important;

    font-size: 8px !important;
    font-weight: 840 !important;
    line-height: 1 !important;
    letter-spacing: .06em !important;

    text-decoration: none;
    text-transform: uppercase !important;
    white-space: nowrap;

    transition:
        background 140ms ease,
        color 140ms ease;
}

.player-profile-shell .player-context-change-sample > span,
.player-profile-shell .player-context-start-analysis > span {
    color: var(--accent) !important;

    font-size: 13px !important;
    letter-spacing: 0 !important;
}

.player-profile-shell .player-context-change-sample:hover,
.player-profile-shell .player-context-start-analysis:hover {
    background: rgba(255, 43, 214, .045) !important;
    color: #ffffff !important;
}


/* ---------- report navigation ---------- */

.player-profile-shell .player-report-nav-bar {
    display: grid;
    grid-template-columns:
        160px
        minmax(0, 1fr);

    min-width: 0;

    background: #09090c;
}

.player-profile-shell .player-report-nav-intro {
    min-height: 58px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;

    padding: 0 16px;

    border-right: 1px solid #25252a;
}

.player-profile-shell .player-report-nav-intro > span {
    color: #8a8a93;

    font-size: 8px;
    font-weight: 850;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.player-profile-shell .player-report-nav-intro > small {
    color: #51515a;

    font-size: 7px;
    font-weight: 650;
}

.player-profile-shell .player-nav-links {
    width: 100% !important;
    min-width: 0;
    min-height: 58px !important;

    display: grid !important;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    align-items: stretch !important;
    justify-content: stretch !important;

    gap: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;

    border: 0 !important;
}

.player-profile-shell .player-nav-link {
    position: relative;

    min-width: 0;
    min-height: 58px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 10px;

    margin: 0 !important;
    padding: 0 15px !important;

    border: 0;
    border-right: 1px solid #222227;

    background: transparent;

    color: #777780 !important;

    font-size: 10px !important;
    font-weight: 720 !important;
    line-height: 1 !important;

    text-decoration: none;

    transition:
        background 140ms ease,
        color 140ms ease;
}

.player-profile-shell .player-nav-link:last-child {
    border-right: 0;
}

.player-profile-shell .player-nav-link::after {
    content: "" !important;

    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: auto !important;
    height: 2px !important;

    background: transparent !important;

    transform: none !important;
}

.player-profile-shell .player-nav-link:hover {
    background: #101013;
    color: #d8d8dd !important;
}

.player-profile-shell .player-nav-link.active,
.player-profile-shell .player-nav-link[aria-current="page"] {
    background:
        linear-gradient(
            180deg,
            rgba(255, 43, 214, .075),
            rgba(255, 43, 214, .018)
        ),
        #101013;

    color: #ffffff !important;
}

.player-profile-shell .player-nav-link.active::after,
.player-profile-shell .player-nav-link[aria-current="page"]::after {
    background: var(--accent) !important;
}

.player-profile-shell .player-nav-index {
    flex: 0 0 auto;

    color: #505059;

    font-size: 7px;
    font-weight: 900;
    letter-spacing: .04em;
}

.player-profile-shell .player-nav-link.active .player-nav-index,
.player-profile-shell .player-nav-link[aria-current="page"] .player-nav-index {
    color: var(--accent);
}

.player-profile-shell .player-nav-text {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ---------- responsive ---------- */

@media (max-width: 900px) {

    .player-profile-shell .player-context-inline {
        grid-template-columns:
            minmax(240px, 1fr)
            auto !important;
    }

    .player-profile-shell .player-context-facts {
        grid-column: 1 / -1;
        grid-row: 2;

        border-top: 1px solid #25252a;
        border-left: 0;
    }

    .player-profile-shell .player-context-change-sample,
    .player-profile-shell .player-context-start-analysis {
        grid-column: 2;
        grid-row: 1;

        min-width: 132px;
    }

    .player-profile-shell .player-report-nav-bar {
        grid-template-columns: 1fr;
    }

    .player-profile-shell .player-report-nav-intro {
        min-height: 39px;

        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        border-right: 0;
        border-bottom: 1px solid #25252a;
    }
}


@media (max-width: 680px) {

    .player-profile-shell .player-context-inline {
        grid-template-columns: 1fr !important;
    }

    .player-profile-shell .player-context-change-sample,
    .player-profile-shell .player-context-start-analysis {
        grid-column: 1;
        grid-row: auto;

        min-height: 42px;

        border-top: 1px solid #25252a !important;
        border-left: 0 !important;
    }

    .player-profile-shell .player-context-facts {
        grid-column: 1;
        grid-row: auto;
    }

    .player-profile-shell .player-nav-links {
        grid-template-columns:
            repeat(4, minmax(125px, 1fr));

        overflow-x: auto !important;
    }
}


@media (max-width: 480px) {

    .player-profile-shell .player-context-identity {
        padding: 11px 12px;
    }

    .player-profile-shell .player-context-avatar-wrap,
    .player-profile-shell .player-context-avatar {
        width: 44px !important;
        height: 44px !important;
    }

    .player-profile-shell .player-context-avatar-wrap {
        flex-basis: 44px !important;
    }

    .player-profile-shell .player-context-name {
        font-size: 19px !important;
    }

    .player-profile-shell .player-context-facts {
        grid-template-columns: 1fr 1fr;
    }

    .player-profile-shell .player-context-fact {
        min-width: 0;
        padding: 10px 12px;
    }
}


/* =========================================================
   HOME USERNAME INPUT — FINAL FUCHSIA GLOW + RGB DUST V3.1

   ONLY the Home Chess.com username field is changed here.

   Preserved:
   - @ prefix
   - Player Report Header V4
   - avatar / report identity
   - sample facts
   - player tabs
   - all existing page effects and layouts
   ========================================================= */


/* Keep the field wrapper as the local glow canvas only. */
body.home-v4 .home-v3-input-wrap {
    position: relative;
    isolation: isolate;
}


/* Keep the @ prefix clearly above all decorative glow layers. */
body.home-v4 .home-v3-input-wrap .input-icon,
body.home-v4 .home-v3-input-wrap > span {
    position: absolute;
    z-index: 5;
}


/* Input itself. */
body.home-v4 .home-v3-input-wrap #username {
    position: relative;
    z-index: 2;

    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background-color 150ms ease;
}


/* ---------------------------------------------------------
   RGB / FUCHSIA DUST
   --------------------------------------------------------- */

body.home-v4 .home-v3-input-wrap::after {
    content: "";

    position: absolute;
    inset: -16px -18px;

    z-index: 0;

    pointer-events: none;

    opacity: 0;

    background:
        radial-gradient(circle at 3% 18%, rgba(255,43,214,.62) 0 1px, transparent 2.6px),
        radial-gradient(circle at 7% 70%, rgba(116,239,255,.46) 0 1px, transparent 2.6px),
        radial-gradient(circle at 11% 35%, rgba(190,100,255,.42) 0 1px, transparent 2.5px),
        radial-gradient(circle at 16% 91%, rgba(255,43,214,.48) 0 1px, transparent 2.7px),
        radial-gradient(circle at 20% 8%, rgba(116,239,255,.38) 0 1px, transparent 2.5px),
        radial-gradient(circle at 24% 62%, rgba(255,43,214,.38) 0 1px, transparent 2.5px),
        radial-gradient(circle at 29% 28%, rgba(190,100,255,.36) 0 1px, transparent 2.5px),
        radial-gradient(circle at 33% 86%, rgba(116,239,255,.42) 0 1px, transparent 2.6px),
        radial-gradient(circle at 38% 12%, rgba(255,43,214,.46) 0 1px, transparent 2.7px),
        radial-gradient(circle at 42% 74%, rgba(190,100,255,.35) 0 1px, transparent 2.5px),
        radial-gradient(circle at 47% 4%, rgba(116,239,255,.44) 0 1px, transparent 2.6px),
        radial-gradient(circle at 51% 94%, rgba(255,43,214,.42) 0 1px, transparent 2.6px),
        radial-gradient(circle at 56% 24%, rgba(190,100,255,.34) 0 1px, transparent 2.5px),
        radial-gradient(circle at 60% 78%, rgba(116,239,255,.42) 0 1px, transparent 2.6px),
        radial-gradient(circle at 64% 10%, rgba(255,43,214,.48) 0 1px, transparent 2.7px),
        radial-gradient(circle at 68% 58%, rgba(190,100,255,.36) 0 1px, transparent 2.5px),
        radial-gradient(circle at 72% 90%, rgba(116,239,255,.40) 0 1px, transparent 2.6px),
        radial-gradient(circle at 77% 16%, rgba(255,43,214,.44) 0 1px, transparent 2.6px),
        radial-gradient(circle at 81% 68%, rgba(190,100,255,.36) 0 1px, transparent 2.5px),
        radial-gradient(circle at 86% 5%, rgba(116,239,255,.42) 0 1px, transparent 2.6px),
        radial-gradient(circle at 90% 84%, rgba(255,43,214,.52) 0 1px, transparent 2.7px),
        radial-gradient(circle at 94% 40%, rgba(190,100,255,.38) 0 1px, transparent 2.5px),
        radial-gradient(circle at 97% 18%, rgba(116,239,255,.46) 0 1px, transparent 2.6px),

        radial-gradient(circle at 13% 4%, rgba(255,43,214,.30) 0 1px, transparent 2.3px),
        radial-gradient(circle at 35% 96%, rgba(116,239,255,.30) 0 1px, transparent 2.3px),
        radial-gradient(circle at 58% 3%, rgba(255,43,214,.28) 0 1px, transparent 2.3px),
        radial-gradient(circle at 74% 97%, rgba(116,239,255,.28) 0 1px, transparent 2.3px),
        radial-gradient(circle at 88% 30%, rgba(255,43,214,.28) 0 1px, transparent 2.3px),

        radial-gradient(
            560px 82px at 50% 50%,
            rgba(255,43,214,.095),
            transparent 72%
        );

    filter: blur(.32px);

    transform: scale(.985);

    transition:
        opacity 150ms ease,
        transform 170ms ease;
}


/* ---------------------------------------------------------
   HOVER
   --------------------------------------------------------- */

body.home-v4 .home-v3-input-wrap:hover::after {
    opacity: .66;
    transform: scale(1);
}


body.home-v4 .home-v3-input-wrap:hover #username {
    border-color: rgba(255,43,214,.50);

    background: #050506;

    box-shadow:
        0 0 0 1px rgba(255,43,214,.13),
        0 0 10px rgba(255,43,214,.16),
        0 0 24px rgba(255,43,214,.082),
        inset 0 0 14px rgba(255,43,214,.020);
}


/* ---------------------------------------------------------
   FOCUS / ACTIVE
   --------------------------------------------------------- */

body.home-v4 .home-v3-input-wrap:focus-within::after {
    opacity: .96;
    transform: scale(1.014);

    background:
        radial-gradient(circle at 3% 18%, rgba(255,43,214,.82) 0 1.1px, transparent 2.9px),
        radial-gradient(circle at 7% 70%, rgba(116,239,255,.58) 0 1px, transparent 2.9px),
        radial-gradient(circle at 11% 35%, rgba(190,100,255,.54) 0 1px, transparent 2.8px),
        radial-gradient(circle at 16% 91%, rgba(255,43,214,.62) 0 1.1px, transparent 2.9px),
        radial-gradient(circle at 20% 8%, rgba(116,239,255,.50) 0 1px, transparent 2.8px),
        radial-gradient(circle at 24% 62%, rgba(255,43,214,.50) 0 1px, transparent 2.8px),
        radial-gradient(circle at 29% 28%, rgba(190,100,255,.48) 0 1px, transparent 2.8px),
        radial-gradient(circle at 33% 86%, rgba(116,239,255,.54) 0 1px, transparent 2.9px),
        radial-gradient(circle at 38% 12%, rgba(255,43,214,.60) 0 1.1px, transparent 2.9px),
        radial-gradient(circle at 42% 74%, rgba(190,100,255,.46) 0 1px, transparent 2.8px),
        radial-gradient(circle at 47% 4%, rgba(116,239,255,.56) 0 1px, transparent 2.9px),
        radial-gradient(circle at 51% 94%, rgba(255,43,214,.56) 0 1px, transparent 2.9px),
        radial-gradient(circle at 56% 24%, rgba(190,100,255,.46) 0 1px, transparent 2.8px),
        radial-gradient(circle at 60% 78%, rgba(116,239,255,.54) 0 1px, transparent 2.9px),
        radial-gradient(circle at 64% 10%, rgba(255,43,214,.62) 0 1.1px, transparent 2.9px),
        radial-gradient(circle at 68% 58%, rgba(190,100,255,.48) 0 1px, transparent 2.8px),
        radial-gradient(circle at 72% 90%, rgba(116,239,255,.52) 0 1px, transparent 2.9px),
        radial-gradient(circle at 77% 16%, rgba(255,43,214,.58) 0 1.1px, transparent 2.9px),
        radial-gradient(circle at 81% 68%, rgba(190,100,255,.48) 0 1px, transparent 2.8px),
        radial-gradient(circle at 86% 5%, rgba(116,239,255,.54) 0 1px, transparent 2.9px),
        radial-gradient(circle at 90% 84%, rgba(255,43,214,.66) 0 1.1px, transparent 2.9px),
        radial-gradient(circle at 94% 40%, rgba(190,100,255,.50) 0 1px, transparent 2.8px),
        radial-gradient(circle at 97% 18%, rgba(116,239,255,.58) 0 1px, transparent 2.9px),

        radial-gradient(circle at 13% 4%, rgba(255,43,214,.42) 0 1px, transparent 2.6px),
        radial-gradient(circle at 35% 96%, rgba(116,239,255,.42) 0 1px, transparent 2.6px),
        radial-gradient(circle at 58% 3%, rgba(255,43,214,.40) 0 1px, transparent 2.6px),
        radial-gradient(circle at 74% 97%, rgba(116,239,255,.40) 0 1px, transparent 2.6px),
        radial-gradient(circle at 88% 30%, rgba(255,43,214,.40) 0 1px, transparent 2.6px),

        radial-gradient(
            580px 86px at 50% 50%,
            rgba(255,43,214,.12),
            transparent 72%
        );
}


body.home-v4 .home-v3-input-wrap #username:focus {
    outline: 0;

    border-color: rgba(255,43,214,.80);

    background: #050506;

    box-shadow:
        0 0 0 1px rgba(255,43,214,.24),
        0 0 7px rgba(255,43,214,.28),
        0 0 17px rgba(255,43,214,.19),
        0 0 32px rgba(255,43,214,.10),
        0 0 46px rgba(116,239,255,.030),
        inset 0 0 18px rgba(255,43,214,.030);
}


body.home-v4 .home-v3-input-wrap #username:focus-visible {
    outline: 0;
}


@media (prefers-reduced-motion: reduce) {
    body.home-v4 .home-v3-input-wrap::after,
    body.home-v4 .home-v3-input-wrap #username {
        transition: none;
    }
}


@media (prefers-contrast: more) {
    body.home-v4 .home-v3-input-wrap::after {
        display: none;
    }

    body.home-v4 .home-v3-input-wrap #username:focus {
        box-shadow: 0 0 0 2px rgba(255,43,214,.45);
    }
}

/* =========================================================
   CHESSREVEAL — FULL WORDMARK NAV LOGO V1
   Replaces the old knight box + stacked text visually.
   Existing HTML stays unchanged.
   ========================================================= */

.brand{
    width:180px;
    height:44px;

    display:inline-block;
    flex:0 0 180px;

    background:
        url("chessreveal-nav-logo.png")
        left center / contain
        no-repeat;

    text-decoration:none;
}

/* Keep the existing semantic link, but hide the old visual pieces. */
.brand .brand-mark,
.brand .brand-copy{
    display:none !important;
}

@media (max-width: 700px){
    .brand{
        width:158px;
        height:39px;
        flex-basis:158px;
    }
}

/* =========================================================
   CHESSREVEAL — REPORT HEADER FACTS LEFT ALIGN V1
   Desktop only:
   keep Time Control / Current Sample / Change Sample close
   to the player identity instead of pushing them to the right.
   ========================================================= */

@media (min-width: 901px) {

    .player-profile-shell .player-context-inline {
        grid-template-columns:
            300px
            270px
            150px
            minmax(0, 1fr) !important;

        justify-content: start !important;
    }

    .player-profile-shell .player-context-identity {
        grid-column: 1 !important;
    }

    .player-profile-shell .player-context-facts {
        grid-column: 2 !important;
        width: 270px !important;
    }

    .player-profile-shell .player-context-change-sample,
    .player-profile-shell .player-context-start-analysis {
        grid-column: 3 !important;
        min-width: 150px !important;
        width: 150px !important;
    }
}

/* =========================================================
   CHESSREVEAL — EXACT MOBILE V1 RESTORE
   Copied from ChessReveal-Mobile-V1.zip.
   This restores the original mobile header/menu and the full-width
   2x2 report navigation without changing desktop behavior.
   ========================================================= */

/* Mobile V1 — shared navigation only; desktop rules remain unchanged. */
.mobile-nav-toggle { display: none; }
@media (max-width: 768px) {
    body .site-nav.site-nav-main {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 12px !important;
        align-items: center;
        padding: 14px 0 !important;
        min-width: 0;
    }
    body .site-nav-main .brand { min-width: 0; }
    body .site-nav-main .mobile-nav-toggle {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        color: #f5f5f7;
        background: #17171c;
        border: 1px solid #41414a;
        border-radius: 8px;
        font-size: 25px;
        cursor: pointer;
    }
    body .site-nav-main .mobile-nav-toggle:focus-visible,
    body .site-nav-main .nav-link:focus-visible { outline: 2px solid #ff2bd6; outline-offset: 3px; }
    body .site-nav-main .nav-links-site {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: visible !important;
        white-space: normal;
        gap: 4px !important;
    }
    body .site-nav-main .nav-links-site .nav-link {
        min-width: 0;
        min-height: 44px;
        padding: 12px 14px;
        white-space: normal;
    }
    body .site-nav-main > .nav-cta { grid-column: 1 / -1; min-height: 44px; }
    body .site-nav-main.mobile-nav-ready:not(.mobile-nav-open) .nav-links-site,
    body .site-nav-main.mobile-nav-ready:not(.mobile-nav-open) > .nav-cta { display: none !important; }
    body .player-profile-shell .player-report-nav-bar { grid-template-columns: minmax(0, 1fr) !important; }
    body .player-profile-shell .player-nav-links {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        overflow: visible !important;
        width: 100%;
        min-width: 0;
    }
    body .player-profile-shell .player-nav-link {
        min-width: 0 !important;
        min-height: 48px;
        padding: 12px 10px !important;
        gap: 6px;
        white-space: normal !important;
    }
    body .player-profile-shell .player-nav-text { white-space: normal; font-size: 12px; }
    body .player-profile-shell .player-nav-link.active { background: rgba(255,43,214,.12); box-shadow: inset 0 -2px #ff2bd6; }
}
@media (max-width: 768px) {
    body .player-profile-shell .player-subnav { grid-template-columns: minmax(0, 1fr) !important; }
    body .player-profile-shell .player-report-nav-bar { width: 100%; }
}
