.puzzle-tabs { display:flex;justify-content:center;gap:8px;margin:22px 0;flex-wrap:wrap; }
.puzzle-tabs a { padding:10px 18px;border:1px solid #d2ddda;border-radius:24px;text-decoration:none;background:#fff;font-weight:600;font-size:14px; }
.puzzle-tabs a[aria-current=page] { background:#146b64;color:white;border-color:#146b64; }
.ladder-shell { max-width:600px; }
.ladder-shell header { margin:22px 0 14px; }
.ladder-shell h1 { font-size:clamp(32px,8vw,44px); }
.journey { display:flex;align-items:center;justify-content:center;gap:20px;margin:18px 0;font-size:26px;font-weight:750;letter-spacing:.1em; }
.journey span:last-child { color:#146b64; }
.journey .journey-arrow { font-size:22px;font-weight:400;color:#6b847e; }
.ladder-scene { position:relative;height:336px;overflow:hidden;border:1px solid #c9dfd8;border-radius:18px;background:linear-gradient(180deg,#d8eee9,#eff8ee 70%,#d0e4d9);isolation:isolate; }
.ladder-scene::before,.ladder-scene::after { content:'';position:absolute;inset:25% -12% -4%;background:#afd1c2;clip-path:polygon(0 80%,25% 20%,45% 65%,70% 8%,100% 80%,100% 100%,0 100%);opacity:.6; }
.ladder-scene::after { background:#81b4a1;inset:48% -20% -10%;opacity:.4;clip-path:polygon(0 100%,30% 20%,60% 90%,83% 38%,100% 80%,100% 100%); }
.sun { position:absolute;top:25px;right:28px;width:48px;height:48px;border-radius:50%;background:#fff0ba;box-shadow:0 0 45px #ffefb5; }
.cloud { position:absolute;top:46px;left:24px;width:72px;height:12px;background:#ffffffb3;border-radius:20px; }
.cloud::after { content:'';position:absolute;bottom:0;left:16px;width:32px;height:28px;background:inherit;border-radius:50%; }
.ladder-world { position:absolute;top:42px;bottom:42px;left:50%;width:152px;margin-left:-76px;z-index:1; }
.ladder-world::before,.ladder-world::after { content:'';position:absolute;top:0;bottom:0;width:7px;border-radius:4px;background:linear-gradient(90deg,#8c6b41,#c7a578,#987b55);box-shadow:1px 0 0 #ffffff80;left:18px; }
.ladder-world::after { left:auto;right:18px; }
.ladder-structure { position:absolute;inset:12px 18px;display:flex;flex-direction:column;justify-content:space-between; }
.ladder-step { height:7px;border-radius:3px;background:linear-gradient(#d1b58c,#98784e);box-shadow:0 2px 1px #23413215; }
.ladder-end { position:absolute;left:50%;transform:translateX(-50%);padding:5px 14px;font-size:18px;letter-spacing:.14em;font-weight:750;background:#fff;border:1px solid #b4cdc1;border-radius:7px;z-index:4; }
.ladder-top { top:-23px;color:#146b64; }
.ladder-base { bottom:-23px; }
.ladder-marker { position:absolute;bottom:0;left:0;width:100%;height:50px;z-index:3;transition:bottom .75s cubic-bezier(.22,.8,.25,1),transform .75s cubic-bezier(.22,.8,.25,1); }
.ladder-current { position:absolute;left:calc(100% + 4px);top:10px;padding:6px 9px;font-size:16px;font-weight:750;letter-spacing:.1em;color:#146b64;background:#fff;border:1px solid #b4cdc1;border-radius:7px;box-shadow:0 3px 8px #123d3210; }
.ladder-path { margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:8px;justify-content:center; }
.ladder-rung { min-height:36px;display:flex;justify-content:center;align-items:center;gap:2px;padding:5px 8px;background:#fff;border:1px solid #d2ddda;border-radius:7px; }
.ladder-rung span { font-size:15px;font-weight:700;color:#344a43; }
.ladder-rung .changed { color:#146b64;background:#e0f2e9;border-radius:4px; }
.ladder-rung span { width:15px;text-align:center; }
.ladder-rung.current { border-color:#146b64;border-bottom-color:#09544d; }
.ladder-rung.fresh { animation:rung-arrive .6s ease both; }
.climber { position:absolute;left:16px;bottom:0;width:40px;height:50px;z-index:3;color:#146b64;filter:drop-shadow(0 3px 1px #123d3220); }
.climber svg { width:100%;height:100%; }
.climbing svg { animation:climb-bounce .7s ease; }
.ladder-scene.solved { border-color:#146b64;background:linear-gradient(180deg,#cdece2,#f9f7dd 70%,#c9e4cf); }
.solved .climber { color:#a67216; }
.summit-burst { position:absolute;left:50%;top:15%;width:8px;height:8px;pointer-events:none;opacity:0;z-index:3; }
.solved .summit-burst { animation:summit-celebration 1.3s ease-out forwards;box-shadow:55px 0 #146b64,-55px 0 #146b64,0 45px #c49831,0 -30px #c49831,40px 35px #81b4a1,-40px 35px #81b4a1,30px -20px #d8b256,-30px -20px #d8b256; }
.ladder-metrics { display:flex;justify-content:space-between;gap:12px;margin:12px 0;color:#526570;font-size:13px;flex-wrap:wrap; }
#ladder-status { min-height:40px;margin:12px 0 4px;text-align:center;font-size:15px; }
.ladder-form label { display:block;font-size:14px;font-weight:600;margin-bottom:8px; }
.ladder-entry { display:flex;gap:10px; }
.ladder-entry input { flex:1;min-width:0;border:2px solid #c4d5ce;border-radius:8px;background:white;padding:12px;font:inherit;font-size:24px;font-weight:700;line-height:1.2;letter-spacing:.2em;text-align:center;text-transform:uppercase; }
.ladder-entry button { padding:12px 24px;background:#146b64;color:white; }
.ladder-shell .game-actions { margin:18px 0;gap:8px; }
.ladder-shell .game-actions button { padding:10px 14px; }
button:disabled { opacity:.45;cursor:default; }
.ladder-help { font-size:14px;color:#526570;text-align:center;margin:12px 0; }
.ladder-history { margin-top:20px;border-top:1px solid #d2ddda;padding-top:15px;overflow-wrap:anywhere;color:#526570;font-size:14px;text-align:center; }
.ladder-explanation { font-size:15px;line-height:1.6;color:#526570;text-align:center;margin:12px auto;max-width:52ch; }
.ladder-guide { margin:24px 0 0;padding:20px 22px;border:1px solid #d2ddda;border-radius:12px;background:white; }
.ladder-guide h2 { font-size:22px;margin:0 0 12px; }
.ladder-guide p { font-size:14px;line-height:1.7;color:#526570; }
.ladder-guide code { display:inline-block;white-space:normal;font-size:13px;line-height:1.8;color:#146b64; }
@keyframes rung-arrive { from { opacity:0;transform:translateY(18px) scale(.95); } to { opacity:1;transform:translateY(0) scale(1); } }
@keyframes climb-bounce { 0%,100% { transform:rotate(0); } 35% { transform:rotate(-9deg) translateY(-6px); } 65% { transform:rotate(7deg); } }
@keyframes summit-celebration { 0% { opacity:1;transform:scale(.2) rotate(0); } 70% { opacity:1; } 100% { opacity:0;transform:scale(3) rotate(30deg); } }
@media(max-width:400px) { .ladder-entry button { padding:10px 14px; } .ladder-metrics { justify-content:center; } .ladder-scene { height:310px; } .ladder-world { left:45%; } }
@media(prefers-reduced-motion:reduce) { .ladder-marker { transition:none; } .ladder-rung.fresh,.climbing svg,.solved .summit-burst { animation:none; } }
