/* Rungs (v2): the word ladder board. Tiles mark which letter changed, never whether a letter is
   "right", so there is no letter-by-letter color feedback. */
.rg-level{display:flex;gap:6px;justify-content:center;margin:0 0 10px;flex-wrap:wrap}
.rg-level button{min-height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--line2);background:#132433;color:var(--dim);font:700 12.5px "Archivo",sans-serif;cursor:pointer}
.rg-level button[aria-pressed=true]{background:var(--amber2);border-color:var(--amber2);color:#1a1205}
.rg-board{max-width:520px;margin:0 auto;padding:12px 10px 14px;border-radius:22px;background:linear-gradient(180deg,#132433,#0e1c29);border:1px solid var(--line)}
.rg-msg{min-height:44px;display:block;margin:0;text-align:center;padding:6px 10px 8px;color:var(--dim);font:500 14.5px/1.35 "Public Sans",sans-serif}
.rg-msg b{color:var(--ink);letter-spacing:.04em}
.rg-msg.good{color:#5fe3c0}.rg-msg.far{color:#ff9a90}.rg-msg.hint{color:var(--amber2)}
.rg-ladder{position:relative;list-style:none;margin:0 auto;padding:4px 0;width:max-content;min-width:300px}
.rg-ladder::before,.rg-ladder::after{content:"";position:absolute;top:0;bottom:0;width:7px;border-radius:4px;background:linear-gradient(180deg,#8d6a3a,#6b4f2a);box-shadow:inset 0 0 0 1px rgba(0,0,0,.25)}
.rg-ladder::before{left:52px}.rg-ladder::after{right:8px}
.rg-art{opacity:.22}
.rg-rung{position:relative;display:flex;align-items:center;gap:10px;padding:6px 26px 6px 0}
.rg-rung::before{content:"";position:absolute;left:58px;right:12px;top:50%;height:6px;margin-top:-3px;border-radius:3px;background:#5a4324;opacity:.75}
.rg-lab{width:48px;flex:none;text-align:right;color:var(--dim);font:700 10.5px "IBM Plex Mono",monospace;letter-spacing:.12em;text-transform:uppercase}
.rg-tiles{position:relative;display:inline-flex;gap:6px;margin-left:12px}
.rg-t{display:grid;place-items:center;width:44px;height:48px;border-radius:10px;border:0;padding:0;background:#f3efe6;color:#13202c;font:900 24px "Archivo",sans-serif;box-shadow:0 3px 0 rgba(0,0,0,.35)}
.rg-ladder.five .rg-t{width:40px;height:46px;font-size:22px}
.rg-t.chg{box-shadow:0 3px 0 rgba(0,0,0,.35),inset 0 -5px 0 var(--amber2)}
.goal .rg-t{background:#1b2c3b;color:var(--amber2);border:2px dashed var(--amber2);box-shadow:none}
.rg-goal.got .rg-t{background:var(--amber2);color:#1a1205;border-style:solid}
.cur .rg-t{cursor:pointer;transition:transform .12s}
.cur .rg-t.on{outline:3px solid #5fe3c0;outline-offset:2px;transform:translateY(-3px)}
.past .rg-t{width:36px;height:38px;font-size:18px;opacity:.88}
.rg-ladder.five .past .rg-t{width:33px;height:36px;font-size:17px}
.rg-gap .rg-t{background:rgba(9,18,27,.55);border:2px dashed rgba(255,255,255,.14);box-shadow:none}
.rg-gap::before{opacity:.45}
.rg-more{justify-content:center;padding:2px 0 4px 58px;color:var(--dim);font:700 12px "IBM Plex Mono",monospace}
.rg-more::before{display:none}
.rg-kb{max-width:500px;margin:10px auto 0;user-select:none;-webkit-user-select:none}
.rg-kb.off{opacity:.4;pointer-events:none}
.rg-kr{display:flex;justify-content:center;gap:5px;margin:5px 0}
.rg-k{flex:1;max-width:44px;height:52px;padding:0;border-radius:9px;border:1px solid var(--line2);background:#1d3041;color:var(--ink);font:800 17px "Archivo",sans-serif;cursor:pointer;touch-action:manipulation}
.rg-k:active{background:#2a4258}
.rg-note{max-width:520px;margin:8px auto 0;text-align:center;color:var(--dim);font-size:13px}
@media (max-width:380px){.rg-t{width:40px;height:44px;font-size:22px}.rg-ladder.five .rg-t{width:36px;height:42px;font-size:20px}.rg-ladder{min-width:0}.rg-lab{width:40px}.rg-ladder::before{left:44px}.rg-rung::before{left:50px}}
@media (prefers-reduced-motion:reduce){.cur .rg-t{transition:none}.cur .rg-t.on{transform:none}}
.rg-k.wide{flex:1.6;max-width:66px;font-size:13px;background:#25384a}
.rg-k:disabled{opacity:.45;cursor:default}
/* v2: fit the ladder and keyboard on a phone screen with the browser's bars showing */
@media (max-width:600px){
  .g-main{padding-top:10px}
  .g-hud{margin-bottom:8px;gap:6px}
  .g-hud .g-stat{padding-top:6px;padding-bottom:6px}
  .g-hud .g-stat b{font-size:19px}
  .rg-level{margin-bottom:8px}.rg-level button{min-height:30px}
  .rg-board{padding:8px 6px 10px;border-radius:18px}
  .rg-msg{min-height:38px;padding:2px 8px 6px;font-size:13.5px}
  .rg-rung{padding-top:4px;padding-bottom:4px}
  .rg-t{width:42px;height:44px;font-size:22px}
  .rg-ladder.five .rg-t{width:38px;height:42px;font-size:20px}
  .past .rg-t,.rg-ladder.five .past .rg-t{width:30px;height:32px;font-size:15px}
  .rg-gap .rg-t,.rg-ladder.five .rg-gap .rg-t{height:22px}
  .rg-more{padding-top:0;padding-bottom:0;font-size:11px}
  .rg-kb{margin-top:8px}
  .rg-kr{gap:4px;margin:4px 0}
  .rg-k{height:46px;font-size:16px}
  .rg-note{display:none}
}
@media (max-width:600px) and (max-height:620px){
  .g-hud .g-stat span{font-size:9px}
  .g-hud .g-stat b{font-size:17px}
  .rg-msg{min-height:34px;font-size:13px}
  .rg-t{height:40px}.rg-ladder.five .rg-t{height:38px}
  .rg-k{height:42px}
}
