/* =========================================================
   KEEP ORIGINAL DESIGN — PREMIUM UPGRADE ONLY
========================================================= */

.container,
.board-layout {
    overflow: visible !important;
}

/* BOARD LAYOUT */
.board-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 22px;
    align-items: start;
    justify-content: center;
    margin: 20px auto;
    width: 100%;
    max-width: 1280px;
}

/* =========================================================
   BOARD GRID
========================================================= */

.board-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 16px;
}

.board-layout.board-images .board-grid,
.board-layout.board-colors .board-grid {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.board-layout.board-counts .board-grid {
    grid-template-columns: repeat(8, minmax(70px, 1fr));
}

.board-layout.board-months .board-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.board-layout.board-gurus .board-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

/* =========================================================
   BOARD CARD
========================================================= */

.board-card {
    background: #ffffff;
    border: 1px solid #f2f2f2;
    border-radius: 18px;
    padding: 10px;
    min-height: 42px;
    text-align: center;
    justify-content: center;
    display: flex;
    gap: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.04);
}

/* SOFT TOP LIGHT */
.board-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 45%;

    pointer-events: none;
}

/* HOVER */
.board-card:hover {
    transform: translateY(-4px);

    border-color: #ffb03f;

    box-shadow:
        0 12px 25px rgba(255, 176, 63, 0.18);
}

/* SELECTED */
.board-card.selected-card {
    background:
        linear-gradient(
            135deg,
            #FF9600,
            #ffb03f
        );

    color: #fff;

    border-color: #ff9600;

    box-shadow:
        0 10px 28px rgba(255, 150, 0, 0.28);
}

.board-card.selected-card .board-text,
.board-card.selected-card .board-fruit-pronunciation {
    color: rgba(255,255,255,0.92);
}

/* =========================================================
   IMAGE CARD
========================================================= */

.board-card.board-image-card {
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    min-height: auto;
    width: 100%;
    max-width: 100%;
}

.board-card.board-count-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    min-height: 100px;
    padding: 12px;
}

.board-card.board-month-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
    width: 100%;
    min-height: 120px;
}

.board-layout.board-counts .board-card,
.board-layout.board-months .board-card {
    justify-self: center;
}

.board-card.board-count-card .board-symbol {
    font-size: 32px;
    margin-bottom: 8px;
}

.board-card.board-count-card .board-text {
    font-size: 14px;
    color: #444;
    margin: 0;
}

.board-card.board-count-card .board-pronunciation {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* IMAGE */
.board-fruit-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 12px;

    transition: transform 0.3s ease;
}

.board-card:hover .board-fruit-image {
    transform: scale(1.06);
}

/* =========================================================
   TEXTS
========================================================= */

.board-symbol {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.1;
}

.board-layout.board-images .board-symbol {
    font-size: 24px;
}

.board-fruit-name {
    font-size: 15px;
    color: #333;
    margin: 0;
    font-weight: 700;
}

.board-fruit-pronunciation {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.board-text {
    display: flex;
    flex-direction: column-reverse;
    font-size: 15px;
    color: #8a8a8a;
    margin-left: 2px;
}

/* =========================================================
   HEADER
========================================================= */

.board-header-top {
    position: sticky;
    top: 20px;

    align-self: flex-start;

    z-index: 999;

    display: flex;
    flex-direction: column;
    gap: 16px;

    width: 100%;

    max-height: calc(100vh - 40px);

    overflow-y: auto;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* =========================================================
   SUMMARY CARD
========================================================= */

.selected-summary-card {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    background:
        linear-gradient(
            135deg,
            #FF9600,
            #ffb03f
        );

    color: #fff;

    padding: 18px;

    min-height: 240px;

    width: 100%;

    text-align: center;

    overflow: hidden;

    border-radius: 24px;

    position: relative;

    box-shadow:
        0 15px 35px rgba(255, 150, 0, 0.25);
}

/* LIGHT EFFECT */
.selected-summary-card::before {
    content: "";

    position: absolute;

    top: -50px;
    right: -50px;

    width: 140px;
    height: 140px;

    border-radius: 50%;

    background: rgba(255,255,255,0.14);
}

/* =========================================================
   SELECTED TEXT
========================================================= */

.selected-symbol {
    width: 100%;

    text-align: center;

    font-weight: 700;

    line-height: 1.1;

    font-size: 96px;

    overflow-wrap: break-word;

    word-break: break-word;
}

.selected-title {
    font-size: 28px;
    font-weight: 700;
    margin-top: 10px;
    line-height: 1.1;
}

.selected-subtitle {
    font-size: 22px;
    opacity: 0.92;
    line-height: 1.1;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
    margin: 0 5px;
    border-radius: 14px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

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

.btn.btn-white {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.06);
}

.btn.btn-white:hover {
    box-shadow:
        0 10px 20px rgba(0,0,0,0.08);
}

.btn.btn-animated {
    text-decoration: none;
    position: relative;
    width: fit-content;
    padding: 10px 28px;
    overflow: hidden;

    box-shadow:
        0 8px 18px rgba(255, 150, 0, 0.2);
}

.btn.btn-auto {

    text-decoration: none;

    position: relative;

    width: fit-content;

    overflow: hidden;

    gap: 50px;

    margin-left: 24px;

    box-shadow:
        0 8px 18px rgba(255, 150, 0, 0.2);
}


/* =========================================================
   AUDIO BUTTON
========================================================= */

.audio-control-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.audio-btn {
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    padding: 10px;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 10px 22px rgba(255, 149, 0, 0.16);
}

/* =========================================================
   NAVIGATION
========================================================= */

.board-nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 8px;
    margin-top: 22px;
}

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

@media (max-width: 1024px) {

    .board-layout {
        grid-template-columns: 1fr;
    }

    .board-grid {
        grid-template-columns: repeat(4, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {

    .board-grid {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
    }

    .selected-symbol {
        font-size: 70px;
    }

    .selected-title {
        font-size: 24px;
    }

    .selected-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 520px) {

    .board-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .selected-symbol {
        font-size: 56px;
    }
}

@media (max-width: 420px) {

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

/* =========================================================
   COLOR BOARD FIX
========================================================= */

.board-card.board-color-card {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    padding: 14px 12px;

    min-height: 220px;

    width: 100%;

    border-radius: 20px;
}

/* COLOR BOX */
.board-color-swatch {
    width: 100%;
    height: 95px;
    min-height: 95px;

    border-radius: 18px;

    display: block;

    background-clip: padding-box;

    margin-bottom: 14px;

    border: 1px solid rgba(0,0,0,0.08);

    box-shadow:
        inset 0 0 0 1px rgba(0,0,0,0.05),
        0 8px 18px rgba(0,0,0,0.08);
}

.special-direct-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 16px;
}

/* LARGE CARD */
.large-special-card {
    grid-column: span 2;
    grid-row: span 2;

    min-height: 320px;

    padding: 24px;

    border-radius: 26px;
}

.large-special-card .board-symbol {
    font-size: 38px;
}

.large-special-card .board-color-name,
.large-special-card .board-fruit-name {
    font-size: 22px;
    font-weight: 700;
}

.large-special-card .board-pronunciation,
.large-special-card .board-fruit-pronunciation {
    font-size: 17px;
}

.large-special-card .board-fruit-image {
    width: 170px;
    height: 170px;
}

/* MOBILE */
@media (max-width: 768px) {

    .large-special-card {
        grid-column: span 1;
        grid-row: span 1;

        min-height: auto;
    }

    .special-color-image {
        width: 120px;
        height: 120px;
    }
}