#home,#profile{padding:0 0 calc(85px + env(safe-area-inset-bottom));background:#fff6e7}.board-art{height:clamp(120px,23svh,210px);background:#f5d59c url(images/home_ref.png) center 15%/cover no-repeat}.board-body{margin:-14px 12px 0;padding:18px 14px 12px;background:#fffaf1;border:1px solid #e9ceaa;border-radius:18px}.board-heading,.rank-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.board-heading h1{font-size:28px}.board-heading .text-button{margin:0;padding:10px 3px}.board-body h2{font:700 22px serif;margin:10px 0 14px}.level-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.level-card{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:90px;padding:9px 2px;gap:4px;background:#ffedd7;border-color:#ffab70;text-align:center}.level-card .level-number{font:700 13px sans-serif;color:#965022;border:0;height:auto;width:auto;padding:0}.level-card strong{font:700 17px serif}.level-card em{font:12px sans-serif;color:#874618;margin:0;letter-spacing:0}.level-card.locked,.level-space{background:#f3efe8;border:1px solid #e4dacf;border-radius:12px;box-shadow:none;color:#76695a;opacity:1;cursor:default}.level-space{display:grid;place-items:center;font-size:13px;border-style:dashed}.board-notice,.rank-heading small{font-size:13px;color:#776852}.board-notice{margin:15px 0 3px;text-align:center}.bottom-tabs{position:fixed;z-index:4;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,480px);display:flex;background:#fffaf0;border-top:1px solid #e4c9a6;padding:5px 10px calc(5px + env(safe-area-inset-bottom))}.bottom-tabs button{flex:1;min-height:48px;display:grid;justify-items:center;align-content:center;gap:2px;background:transparent;color:#776a5d;font-size:13px}.bottom-tabs button[aria-current=page]{color:#953d08;font-weight:700}.bottom-tabs button[aria-current=page] i{background:#ff8a3d;border-radius:8px}.rank-list{padding:0;margin:0;list-style:none}.rank-columns,.rank-list li{display:grid;grid-template-columns:42px 1fr 50px 45px;align-items:center;gap:5px;padding:12px 6px}.rank-columns{background:#ffedd7;border-radius:8px;font-size:13px}.rank-list li{border-bottom:1px solid #eadbc6;font-size:14px}.rank-list li span{overflow-wrap:anywhere}
/* Crop the illustrated title and scholar, excluding the reference image's controls. */
#home,#profile{background:#eff6ff;color:#18395b}.board-art{height:auto;aspect-ratio:682/305;background-size:100% auto;background-position:center 12.25%}.board-heading{display:none}.board-body{margin:0;padding:16px 18px 20px;border:none;border-radius:0;background:transparent}.board-body h2{color:#173e6e}.level-card:not(.locked){background:#fff2cf;border-color:#f3c776;box-shadow:0 3px 0 #edcb91}.level-card:not(.locked) em{background:#ff8a3d;border-radius:16px;padding:4px 12px;color:#4d2304;font-weight:700}.level-card.locked{background:#e4efff;color:#486485;border-color:#c0d5f0}.level-card.locked em,.level-card.locked .level-number{color:#506985}.level-space{min-height:86px;background:#f5f8ff;color:#71839b;border-color:#cddcec}.rank-columns{background:#dfebfc}.bottom-tabs{background:#fbfdff;border-color:#d3def0}.bottom-tabs button{color:#65758d}.bottom-tabs button[aria-current=page]{color:#2268bc}.bottom-tabs button[aria-current=page] i{background:transparent}.board-notice:empty{display:none}
/* [STATE] 首页关卡与我的排行样式已接入。 */

.enter-level{display:block;width:100%;min-height:48px;margin:14px 0 0;border-radius:12px;background:#ff8a3d;color:#472308;font-size:17px;font-weight:700;touch-action:manipulation}.enter-level:active{background:#ff9d5c}.enter-level:disabled{background:#e4e9ee;color:#626c77}.level-card:focus-visible,.enter-level:focus-visible{outline:3px solid #225994;outline-offset:2px}

/* Keep the illustrated scholar above the live controls, not behind a tappable image. */
#home .board-body{padding-top:0;background:linear-gradient(#d9ebfc,#f0f7ff 180px)}
#home .enter-level{margin:0 auto;width:min(100%,360px);min-height:50px;border:1px solid #f99c24;border-radius:28px;background:linear-gradient(#ffc457,#ff8a3d);color:#442602;box-shadow:0 3px 0 #e59131}
#home .board-body h2{margin-top:20px}#home .level-card:not(.locked){background:linear-gradient(#fff3d5,#fffaf2)}
#game .choice,#game .submit-button,#game .hint-button{touch-action:manipulation}#game .hint-button{min-height:44px}
#game .choice:not(:disabled){background:#e5f1ff;border-color:#a5c7ee;box-shadow:0 3px 0 #afcae8;color:#183e69}#game .choice.highlight{background:#ffcf86}#game .submit-button{background:#ff8a3d;color:#462500;box-shadow:0 3px 0 #da8337}
.detail-sheet{max-height:92vh;overflow:auto;padding-bottom:max(24px,env(safe-area-inset-bottom))}
