/* 國中（7 年級以上）的配色：靛紫色系（使用者 2026-10-13：國中的部分配色不要跟國小的一樣，選了靛紫）。
   國中的頁面在 <body> 有 class「junior」（登入後的選擇頁、英文單字、數學、排行榜；體驗模式的 7～9 年級練習頁也是）。
   做法：換掉 site.css 的主色變數，再把 site.css 裡寫死的橘、黃色調蓋掉。國小的畫面不受影響。
   對（綠）、錯（紅）與闖關各關的顏色是有意思的，不換。排在 site.css 後面載入（_Layout）。 */
body.junior {
    --kid-bg: #f5f3ff;
    --kid-border: #c7d2fe;
    --kid-primary: #6366f1;
    --kid-primary-dark: #4338ca;
    background-image: radial-gradient(circle at 12% 18%, #e0e7ff 0, transparent 28%),
                      radial-gradient(circle at 88% 82%, #ede9fe 0, transparent 30%);
}

body.junior .app-header {
    background: #e0e7ff;
}

body.junior .app-footer {
    background: #f8f7ff;
}

body.junior .btn-kid:hover,
body.junior .btn-kid-sm:hover {
    background: #eef2ff;
}

body.junior .btn-start:disabled {
    background: #a5b4fc;
    border-color: #a5b4fc;
}

/* 數學：答案格、提示、這一回合第幾題 */
body.junior .mathlab-answer-pad {
    background: #fafaff;
}

body.junior .mathlab-tip,
body.junior .math-round {
    background: #eef2ff;
}

/* 英文單字：字卡、基本單字的標籤、按鍵、單字卡背面、配對的中文卡 */
body.junior .spell-tile.tried,
body.junior .spell-chip,
body.junior .flash-back,
body.junior .match-card.zh {
    background: #eef2ff;
}

body.junior .flash-back,
body.junior .match-card.zh {
    border-color: #a5b4fc;
}

body.junior .spell-basic {
    background: #e0e7ff;
    color: #3730a3;
}

body.junior .spell-key:active {
    background: #e0e7ff;
}

body.junior .spell-tiles.readonly .spell-tile.tried {
    background: #e0e7ff;
    color: #3730a3;
}

/* 排行榜：自己那一組、活動已經結束的說明 */
body.junior .contest-table tr.mine td {
    background: #e0e7ff;
}

body.junior .contest-ended {
    color: #6d28d9;
}

/* 國中「學會的字不再派」（2026-10-21）：右上角的統計可以按，打開說明（樣子和原本的文字一樣，多一條虛線底線） */
.word-modes .btn-bank-info {
    border: 0;
    background: transparent;
    cursor: pointer;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
}

.word-modes .btn-bank-info:hover,
.word-modes .btn-bank-info:focus-visible {
    color: var(--kid-primary, #6366f1);
}

.word-modes .word-bank-done {
    color: #15803d;
    font-weight: 600;
}

.bank-info {
    font-size: 1.1rem;
    line-height: 1.6;
}

.bank-info ul {
    margin-bottom: .6rem;
    padding-left: 1.4rem;
}

.bank-info li + li {
    margin-top: .35rem;
}

.bank-info-count {
    color: var(--kid-muted, #6b7280);
}

/* 國中（2026-10-15）：沒有點數，改標出算不算分組競賽。英文單字的練習方式按鈕裡、名稱後面的小字；數學在資訊列 */
/* 名稱後面多了小字，按鈕的字小一點才放得下（1366 寬量過） */
.junior .word-modes .btn-mode {
    font-size: 1.05rem;
}

/* 下一批／換一批、照順序／隨機（2026-11-12）：國中的練習方式有八顆、後面還有「算積分」的小字，右邊這兩顆再小一點，
   加起來和以前那一顆「換一批單字」差不多寬 */
.junior .word-modes .btn-redraw,
.junior .word-modes .btn-order {
    padding: 0 .3rem;
    font-size: .85rem;
}

.word-modes .btn-mode .contest-tag {
    margin-left: .15rem;
    font-size: .68rem;
    font-weight: 600;
    vertical-align: .1rem;
}

.word-modes .btn-mode .contest-tag.yes {
    color: #15803d;
}

.word-modes .btn-mode .contest-tag.no {
    color: #9ca3af;
}

.word-modes .btn-mode.active .contest-tag {
    color: #fff;
    opacity: .9;
}

.top-points.contest-yes {
    color: #15803d;
}

/* 國中的數學動手做（2026-11-10）：activity.css 寫死的橘色換成國中的靛紫色系 */
.junior .act-option:hover,
.junior .act-key:hover {
    background: #eef2ff;
}
