﻿.economy-course-mode {
    background:
        linear-gradient(180deg, rgba(221,243,255,0.92), rgba(249,253,255,0.96) 42%, rgba(240,246,255,0.98)),
        url("../assets/map/bg_lobby.png");
    background-size: cover;
    background-attachment: fixed;
}

.economy-course-shell {
    width: min(1540px, calc(100% - 40px));
    padding-bottom: 28px;
}

.economy-course-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 12px 0;
    backdrop-filter: blur(14px);
}

.economy-course-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.economy-course-top-actions .economy-status {
    margin: 0;
}

.economy-course-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 14px;
}

.economy-course-intro > div,
.economy-course-intro-card {
    border: 1px solid rgba(42,91,153,0.18);
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 16px 34px rgba(20,42,75,0.12);
    padding: 18px;
}

.economy-course-intro h1 {
    margin: 6px 0 8px;
    font-size: clamp(28px, 3.2vw, 46px);
    line-height: 1.1;
}

.economy-course-intro p,
.economy-course-intro-card p {
    margin: 0;
    color: var(--economy-muted);
    line-height: 1.55;
}

.economy-course-intro-card span,
.economy-course-intro-card p {
    font-weight: 800;
}

.economy-course-intro-card strong {
    display: block;
    margin: 8px 0;
    color: var(--economy-green);
    font-size: 34px;
}

.economy-course-rail {
    display: grid;
    grid-template-columns: repeat(10, minmax(82px, 1fr));
    gap: 8px;
    margin: 0 0 14px;
}

.economy-course-dot {
    min-height: 66px;
    border: 1px solid rgba(42,91,153,0.18);
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    color: var(--economy-ink);
    cursor: pointer;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px;
    text-align: left;
}

.economy-course-dot span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #eaf4ff;
    color: #1d5ec8;
    font-weight: 1000;
}

.economy-course-dot strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.economy-course-dot.is-active {
    border-color: #1d5ec8;
    box-shadow: 0 0 0 3px rgba(45,108,223,0.16);
}

.economy-course-dot.is-locked {
    color: #64748b;
    background: rgba(248, 250, 252, 0.9);
}

.economy-course-dot.is-locked .economy-feature-lock-badge {
    margin-left: 4px;
}

.economy-course-dot.is-complete span {
    background: #1f8a5b;
    color: #fff;
}

.economy-course-stage {
    min-height: calc(100vh - 230px);
}

.economy-course-page {
    min-height: calc(100vh - 248px);
    border: 1px solid rgba(42,91,153,0.22);
    border-radius: 8px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 18px 48px rgba(18,42,76,0.16);
    overflow: hidden;
}

.economy-course-layout {
    min-height: inherit;
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(420px, 1.35fr) minmax(240px, 0.55fr);
}

.economy-course-visual {
    margin: 0;
    min-height: 100%;
    padding: 22px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(160deg, rgba(255,244,205,0.76), rgba(214,239,255,0.9)),
        radial-gradient(circle at 35% 18%, rgba(244,183,64,0.45), transparent 32%);
}

.economy-visual-placeholder {
    width: min(100%, 420px);
    aspect-ratio: 4 / 3;
    border: 2px dashed rgba(29,94,200,0.36);
    border-radius: 8px;
    background: rgba(255,255,255,0.78);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 18px;
    text-align: center;
}

.economy-visual-icon {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff5cf;
    border: 4px solid #f2b233;
    font-size: 50px;
}

.economy-visual-placeholder strong {
    font-size: 24px;
}

.economy-visual-placeholder small {
    color: var(--economy-muted);
    font-weight: 800;
    line-height: 1.45;
}

.economy-course-main {
    padding: 28px;
    display: grid;
    align-content: start;
    gap: 14px;
}

.economy-course-main h1 {
    margin: 0;
    font-size: clamp(30px, 3.8vw, 52px);
    line-height: 1.08;
}

.economy-course-main > p {
    margin: 0;
    color: var(--economy-muted);
    font-size: 18px;
    line-height: 1.65;
}

.economy-course-match,
.economy-course-teacher-note,
.economy-course-side > * {
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #ffffff;
    padding: 14px;
}

.economy-course-match {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #f1fff6;
    border-color: #cde5d6;
}

.economy-course-match span,
.economy-course-teacher-note strong,
.economy-course-side span {
    color: #176444;
    font-size: 13px;
    font-weight: 1000;
}

.economy-course-match strong {
    color: #123d2d;
}

.economy-course-match em {
    margin-left: auto;
    border-radius: 999px;
    padding: 5px 9px;
    background: #eaf4ff;
    color: #1d5ec8;
    font-style: normal;
    font-size: 12px;
    font-weight: 1000;
}

.economy-course-teacher-note p {
    margin: 6px 0 0;
    color: var(--economy-muted);
    line-height: 1.55;
}

.economy-course-activity {
    display: grid;
    gap: 14px;
}

.economy-course-activity h3 {
    margin: 8px 0 0;
    font-size: 20px;
}

.economy-course-activity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.economy-game-launcher {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 24px rgba(35, 91, 122, 0.10);
}

.economy-game-play-intro {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.9));
}

.economy-game-play-intro h3 {
    margin: 0;
    color: #14324a;
    font-size: 24px;
}

.economy-game-play-intro p {
    margin: 0;
    color: var(--economy-muted);
    font-weight: 800;
    line-height: 1.5;
}

.economy-game-play-intro strong {
    color: #b45309;
    font-size: 13px;
}

.economy-game-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.economy-game-category-card {
    min-width: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    align-items: center;
    padding: 14px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: rgba(255, 253, 250, 0.96);
    color: #17324a;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.economy-game-category-card:hover,
.economy-game-category-card:focus-visible,
.economy-game-category-card.is-active {
    border-color: #4aa4ff;
    box-shadow: 0 10px 20px rgba(29, 94, 200, 0.14);
    transform: translateY(-2px);
    outline: none;
}

.economy-game-category-card.is-active {
    background: #eef7ff;
}

.economy-game-category-card .economy-game-launch-icon {
    grid-row: span 3;
}

.economy-game-category-card small {
    color: #1d5ec8;
    font-size: 12px;
    font-weight: 1000;
}

.economy-game-category-card strong {
    color: #14324a;
    font-size: 18px;
    font-weight: 1000;
}

.economy-game-category-card p {
    grid-column: 2;
    margin: 0;
    color: var(--economy-muted);
    font-size: 13px;
    line-height: 1.35;
}

.economy-game-category-card em {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e9f7ef;
    color: #176444;
    font-style: normal;
    font-size: 12px;
    font-weight: 1000;
}

.economy-game-launcher-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.economy-game-launcher-head h3 {
    margin: 4px 0 4px;
    color: #14324a;
    font-size: 22px;
}

.economy-game-launcher-head p {
    margin: 0;
    color: var(--economy-muted);
    line-height: 1.5;
}

.economy-game-launcher-head > span {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef7ff;
    color: #1762b8;
    font-size: 12px;
    font-weight: 1000;
}

.economy-game-launch-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.economy-game-launch-card {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 7px;
    min-height: 180px;
    padding: 14px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #fffdfa;
    color: #17324a;
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.economy-home-student-menu-card.is-coming-soon {
    cursor: default;
    opacity: .64;
}

.economy-game-launch-card--button {
    width: 100%;
    border-style: solid;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.economy-game-launch-card:hover,
.economy-game-launch-card:focus-visible {
    border-color: #4aa4ff;
    box-shadow: 0 10px 20px rgba(29, 94, 200, 0.14);
    transform: translateY(-2px);
    outline: none;
}

.economy-game-launch-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #e9f7ef;
    color: #176444;
    font-size: 18px;
    font-weight: 1000;
}

.economy-game-launch-card small {
    color: #1d5ec8;
    font-size: 12px;
    font-weight: 1000;
}

.economy-game-launch-card strong {
    color: #14324a;
    font-size: 18px;
    font-weight: 1000;
}

.economy-game-launch-card p {
    margin: 0;
    color: var(--economy-muted);
    font-size: 13px;
    line-height: 1.45;
}

.economy-game-launch-card .economy-game-launch-meta {
    color: #315276;
    font-weight: 900;
}

.economy-game-launch-card em {
    align-self: end;
    margin-top: auto;
    color: #176444;
    font-style: normal;
    font-size: 12px;
    font-weight: 1000;
}

.economy-game-launch-empty {
    min-height: 64px;
    display: grid;
    place-items: center;
    padding: 16px;
    border: 1px dashed #bfd3ea;
    border-radius: 8px;
    background: #f8fbff;
    color: var(--economy-muted);
    font-weight: 900;
    text-align: center;
}

.economy-avatar-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin-top: 0;
}

.economy-explain-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.economy-explain-strip article {
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #fffdfa;
    padding: 14px;
}

.economy-explain-strip strong,
.economy-explain-strip span {
    display: block;
}

.economy-explain-strip span {
    margin-top: 6px;
    color: var(--economy-muted);
    line-height: 1.45;
}

.economy-course-vote-list {
    display: grid;
    gap: 8px;
}

.economy-course-side {
    padding: 22px;
    display: grid;
    align-content: start;
    gap: 12px;
    background: rgba(241,247,255,0.82);
    border-left: 1px solid #dbe6f4;
}

.economy-course-wallet strong,
.economy-course-progress-card strong {
    display: block;
    margin-top: 6px;
    font-size: 28px;
    color: var(--economy-green);
}

.economy-course-wallet div {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    color: var(--economy-muted);
    font-weight: 800;
}

.economy-course-mini-bar {
    height: 10px;
    margin-top: 10px;
    border-radius: 999px;
    background: #e6edf7;
    overflow: hidden;
}

.economy-course-mini-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--economy-green), var(--economy-blue));
}

.economy-course-link-card p {
    color: var(--economy-muted);
    line-height: 1.5;
}

@media (max-width: 1120px) {
    .economy-course-layout {
        grid-template-columns: 1fr;
    }

    .economy-course-side {
        border-left: 0;
        border-top: 1px solid #dbe6f4;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .economy-wallet-showcase,
    .economy-market-lab,
    .economy-saving-lab,
    .economy-quiz-card {
        grid-template-columns: 1fr;
    }

    .economy-game-launch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .economy-game-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .economy-course-shell {
        width: min(100% - 20px, 760px);
    }

    .economy-course-topbar,
    .economy-course-intro {
        grid-template-columns: 1fr;
    }

    .economy-course-top-actions {
        width: 100%;
        justify-content: space-between;
    }

    .economy-course-rail {
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .economy-course-rail.is-open {
        display: grid;
    }

    .economy-course-activity-grid,
    .economy-explain-strip,
    .economy-game-category-grid,
    .economy-game-launch-grid,
    .economy-course-side,
    .economy-wallet-subgrid,
    .economy-wallet-detail-grid,
    .economy-market-values,
    .economy-saving-controls {
        grid-template-columns: 1fr;
    }

    .economy-course-main,
    .economy-course-visual,
    .economy-course-side {
        padding: 18px;
    }

}
