/* Learning home feature: live records and stamps above an independently linked island route. */
.kp-learning-home{width:100%;overflow:visible}
.kp-study-record,.kp-study-stamps{margin:0 0 12px;padding:14px 16px;border:1px solid #e4eee8;border-radius:20px;background:#fff;box-shadow:0 5px 18px #2747370a}
.kp-study-record{display:grid;grid-template-columns:minmax(110px,.8fr) minmax(210px,1.7fr) auto;align-items:center;gap:12px}
.kp-study-record-main{display:grid;grid-template-columns:34px 1fr;align-items:center;column-gap:8px;color:#34483f}
.kp-study-record-main>.kp-study-flame{grid-row:span 2;font-size:27px;transform:scale(1.1);transform-origin:center}
.kp-study-record-main>div{display:grid;gap:4px}
.kp-study-record-main>div>b,.kp-study-stamps-head b{font-size:14px;line-height:1.25}
.kp-study-record-main>div>small,.kp-study-stamps-head small{color:#829088;font-size:11px}
.kp-study-record-main>strong{grid-column:2;color:#168968;font-size:30px;line-height:1.1}
.kp-study-record-main>strong small{margin-left:2px;font-size:14px}
.kp-study-goal-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.kp-study-goal-option{display:grid;justify-items:center;gap:3px;min-height:54px;padding:7px 4px;border:1px solid #e6eee8;border-radius:15px;background:#f8fbf9;color:#526b5e;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.kp-study-goal-option b{font-size:15px;line-height:1.15}.kp-study-goal-option small{color:#85938a;font-size:10px;white-space:nowrap}
.kp-study-goal-option.is-selected{border-color:#64c5a2;background:#eaf8f0;color:#168968;box-shadow:0 0 0 1px #64c5a255}
.kp-study-goal-option:active{transform:translateY(1px)}
.kp-study-link,.kp-study-stamps-head>a{display:inline-flex;align-items:center;gap:5px;color:#45816b;font-size:11px;font-weight:750;text-decoration:none;white-space:nowrap}
.kp-study-link span,.kp-study-stamps-head>a span{font-size:20px;line-height:1}
.kp-study-stamps{padding:12px 16px}
.kp-study-stamps-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.kp-study-stamps-head>div{display:flex;align-items:baseline;gap:8px;color:#34483f}
.kp-study-stamp-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;justify-items:center;gap:7px;min-height:56px;margin-top:8px;padding:5px 0;overflow:hidden}
.kp-study-stamp{display:grid;place-items:center;width:min(48px,100%);aspect-ratio:1;border:1px solid #f1e7d7;border-radius:16px;background:#fff9ed;overflow:hidden}
.kp-study-stamp img{display:block;width:84%;height:84%;object-fit:contain}
.kp-study-stamp-empty{padding:10px 12px;border-radius:13px;background:#f5f8f6;color:#89958e;font-size:12px}
.kp-learning-map{position:relative;width:100%;aspect-ratio:739 / 1454;overflow:hidden;border-radius:18px;background:#e9f7f7;isolation:isolate}
.kp-learning-art{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center bottom}
.kp-map-recovery{display:none}
.kp-pinyin-continue{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border:1px solid #d8e9df;border-radius:18px;background:#f4fbf6;color:#28554a}
.kp-pinyin-continue>div{display:grid;gap:4px;min-width:0}
.kp-pinyin-continue b{font-size:15px}
.kp-pinyin-continue small{font-size:12px;line-height:1.5}
.kp-pinyin-continue button{flex:none;min-height:46px;padding:9px 14px;border:1px solid #9fc9b5;border-radius:14px;background:#fff;color:#207255;font:700 14px/1.4 system-ui;cursor:pointer;touch-action:manipulation}
.kp-pinyin-continue button:active{transform:translateY(2px);background:#d9f4e3}
.kp-learning-map.is-failed{aspect-ratio:auto;min-height:280px;padding:24px;box-sizing:border-box}
.kp-learning-map.is-failed>.kp-learning-art,.kp-learning-map.is-failed>.kp-home-hotspot{display:none}
.kp-learning-map.is-failed>.kp-map-recovery{display:grid;gap:12px;text-align:center;color:#315f52}
.kp-map-recovery button,.kp-map-recovery a{display:block;padding:16px;border:1px solid #cce4d7;border-radius:16px;background:#fff;color:#26745c;text-decoration:none;font:700 16px/1.4 system-ui;cursor:pointer;touch-action:manipulation}
.kp-map-recovery button:active,.kp-map-recovery a:active{transform:translateY(2px);background:#e0f4e9}
.kp-home-hotspot{position:absolute;z-index:2;display:block;margin:0;padding:0;border:0;border-radius:30%;background:transparent;-webkit-tap-highlight-color:transparent;touch-action:manipulation;cursor:pointer}
.kp-home-hotspot:focus-visible{outline:3px solid #0ba983;outline-offset:-4px;background:#ffffff2b}
.kp-help-station{top:14.5%;left:5%;z-index:3;display:block;width:18%;height:auto;max-width:128px;aspect-ratio:5 / 3;padding:0;border:0;border-radius:24px;background:transparent;box-shadow:none;text-decoration:none;overflow:visible}
.kp-help-station img{display:block;width:100%;height:100%;object-fit:contain}
.kp-help-station:active{transform:scale(.96)}
/* Hotspots follow the standalone 739×1409 roadmap image in assets/home. */
.kp-home-pinyin{top:.69%;left:15%;width:53%;height:9.69%}
.kp-home-hanzi{top:10.79%;left:40%;width:53%;height:8.6%}
.kp-home-pre4{top:24.68%;left:23%;width:54%;height:10.06%}
.kp-home-grade4{top:34.71%;left:30%;width:56%;height:9.5%}
.kp-home-grade3{top:44.41%;left:15%;width:54%;height:9.4%}
.kp-home-grade2{top:54.24%;left:35%;width:53%;height:9.69%}
.kp-home-grade-pre1{top:64.66%;left:20%;width:60%;height:9.87%}
.kp-home-grade1{top:78.07%;left:15%;width:68%;height:18.9%}
@media(max-width:600px){
 .kp-pinyin-continue{align-items:stretch;flex-direction:column;padding:12px 13px}
 .kp-pinyin-continue button{align-self:flex-end}
 .kp-study-record{grid-template-columns:1fr;gap:10px;padding:12px 13px}
 .kp-study-record-main{grid-template-columns:30px 1fr auto;grid-template-rows:auto}
 .kp-study-record-main>.kp-study-flame{grid-row:auto;font-size:23px}
 .kp-study-record-main>strong{grid-column:3;grid-row:1/3;font-size:26px}
 .kp-study-goal-picker{gap:8px}
 .kp-study-goal-option{min-height:52px}
 .kp-study-link{justify-self:end}
 .kp-study-stamps{padding:11px 13px}
 .kp-study-stamp-row{gap:5px}
 .kp-study-stamp{width:min(42px,100%);border-radius:14px}
 .kp-learning-map{border-radius:15px}
}

.kp-study-stamp{box-sizing:border-box;min-width:0;max-width:100%}.kp-study-stamp-empty{grid-column:1/-1;box-sizing:border-box;max-width:100%;text-align:center}
