/* LAST RAMPART (templates/lastrampart.html, static/lastrampart.js). A wide
   stage (16:10) sized to the window's height, so a stage needs no scrolling;
   the bars lie over the field's top and bottom edges, where nothing can be
   placed. On a phone held upright the field is turned a quarter (the enemy
   comes from the top) and the bars sit above and below it instead. One look
   throughout: dark field-green panels with cut corners, a teal edge light,
   amber for what to press. How to play follows below the game. */
.rp-page{padding:var(--s3) 0 var(--s5);background:radial-gradient(900px 520px at 80% 0%,rgba(44,207,192,.08),transparent 60%),var(--bg);}
.rp-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 18px;margin-bottom:var(--s2);}
.rp-head .crumbs{flex-basis:100%;}
.rp-head h1{font-size:clamp(30px,3.6vw,44px);line-height:1.05;letter-spacing:.02em;font-weight:800;margin-top:6px;
  background:linear-gradient(90deg,#2CCFC0,#B8D66A 50%,#FFC93C);-webkit-background-clip:text;background-clip:text;color:transparent;padding-right:.15em;}
.rp-head .lede{margin:0;font-size:16px;}

.rp-shell{position:relative;width:min(100%,calc((100svh - 225px) * 16 / 10));margin:0 auto;scroll-margin:84px 0 8px;}
.rp-stage{--rp-cut:polygon(0 9px,9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%);
  position:relative;width:100%;aspect-ratio:16/10;min-height:300px;border-radius:14px;overflow:hidden;background:#0A0F0A;color:#EEF4EC;
  box-shadow:0 30px 70px -20px rgba(5,10,24,.75),0 0 0 1px rgba(44,207,192,.28),0 0 60px -10px rgba(44,207,192,.2);
  font-family:Manrope,system-ui,sans-serif;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none;}
.rp-field{position:absolute;inset:0;}
.rp-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;outline:none;touch-action:none;}
.rp-canvas:focus-visible{box-shadow:inset 0 0 0 2px rgba(255,201,60,.7);}
.rp-stage[data-state="prep"] .rp-canvas{cursor:grab;}
.rp-stage.is-carry .rp-canvas{cursor:grabbing;}
.rp-stage.is-aim .rp-canvas{cursor:crosshair;}

/* ---- The bars ---- */
.rp-top,.rp-bottom{position:absolute;left:0;right:0;z-index:2;display:flex;align-items:center;gap:6px;padding:5px 8px;pointer-events:none;}
.rp-top{top:0;background:linear-gradient(180deg,rgba(6,12,8,.82),rgba(6,12,8,.5) 70%,rgba(6,12,8,0));padding-bottom:9px;}
.rp-bottom{bottom:0;background:linear-gradient(0deg,rgba(6,12,8,.9),rgba(6,12,8,.72) 76%,rgba(6,12,8,0));padding-top:12px;}
.rp-top[hidden],.rp-bottom[hidden],.rp-prep[hidden],.rp-fight[hidden],.rp-chip[hidden]{display:none;}
.rp-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;white-space:nowrap;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#B9C8B6;
  background:rgba(8,16,12,.8);border:1px solid rgba(44,207,192,.35);clip-path:polygon(0 5px,5px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%);font-variant-numeric:tabular-nums;}
.rp-chip b{font-size:14px;font-weight:800;color:#fff;}
.rp-name{color:#9AF7EA;min-width:0;overflow:hidden;}
.rp-name b{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 4px;border-radius:5px;background:#2CCFC0;color:#04201C;font-size:12px;}
.rp-name span{overflow:hidden;text-overflow:ellipsis;}
.rp-supply{border-color:rgba(255,201,60,.6);color:#FFE08A;}
.rp-supply b{color:#FFC93C;font-size:16px;}
.rp-supply.is-short b{color:#FF7A6A;}
.rp-scorebox b{font-size:17px;}
.rp-scorebox em{font-style:normal;font-weight:800;color:#8FA38F;}
.rp-scorebox.is-on{border-color:#FFC93C;box-shadow:0 0 14px rgba(255,201,60,.35);}
.rp-scorebox.is-on em{color:#FFE08A;}
.rp-wave{margin-left:auto;}
.rp-bar{display:inline-block;width:70px;height:7px;background:rgba(255,255,255,.16);vertical-align:middle;}
.rp-bar i{display:block;height:100%;width:0;background:#2CCFC0;transition:width .15s linear;}
.rp-wave .rp-bar i{background:linear-gradient(90deg,#E8643C,#FFC93C);}
.rp-boss{border-color:#FF6A5A;color:#FFC8C0;}
.rp-boss .rp-bar{width:min(18vw,150px);height:8px;}
.rp-boss .rp-bar i{background:linear-gradient(90deg,#A8241C,#FF6A5A);}
.rp-hq .rp-bar{width:86px;height:9px;}
.rp-hq .rp-bar i{background:linear-gradient(90deg,#18B45A,#7CFFB0);}
.rp-hq.is-low{border-color:#FF6A5A;}
.rp-hq.is-low .rp-bar i{background:linear-gradient(90deg,#A8241C,#FF6A5A);}
.rp-icon{pointer-events:auto;flex:none;width:38px;height:34px;border-radius:8px;border:1px solid rgba(44,207,192,.4);background:rgba(8,16,12,.8);color:#EEF4EC;font-size:11px;cursor:pointer;}
.rp-icon:hover{background:rgba(18,137,138,.5);}
.rp-icon:focus-visible,.rp-item:focus-visible,.rp-tool:focus-visible,.rp-sup:focus-visible,.rp-mend:focus-visible{outline:2px solid #FFC93C;outline-offset:2px;}

.rp-prep,.rp-fight{display:flex;align-items:center;gap:8px;width:100%;min-width:0;pointer-events:auto;}
.rp-build{display:flex;gap:4px;flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;padding:2px;scrollbar-width:thin;scrollbar-color:rgba(44,207,192,.5) transparent;touch-action:pan-x;}
.rp-item{font:inherit;position:relative;flex:none;display:flex;flex-direction:column;align-items:center;gap:0;width:54px;padding:2px 2px 3px;cursor:grab;color:#EEF4EC;
  background:linear-gradient(180deg,rgba(30,48,34,.95),rgba(10,20,14,.95));border:1px solid rgba(124,245,236,.3);border-radius:8px;touch-action:pan-x;}
.rp-item canvas{display:block;width:40px;height:40px;pointer-events:none;}
.rp-item b{font-size:11.5px;font-weight:800;line-height:1.1;color:#FFC93C;font-variant-numeric:tabular-nums;}
.rp-item:hover{border-color:rgba(124,245,236,.8);}
.rp-item.is-armed{border-color:#FFC93C;box-shadow:0 0 0 1px #FFC93C,0 0 14px rgba(255,201,60,.4);}
.rp-item.is-dear{opacity:.45;}
.rp-item.is-dear b{color:#FF7A6A;}
.rp-item.is-new::after{content:"New";position:absolute;right:-1px;top:-1px;padding:0 4px;border-radius:0 7px 0 6px;background:#2CCFC0;color:#04201C;font-size:8.5px;font-weight:800;letter-spacing:.04em;line-height:13px;}
.rp-tools{flex:none;display:grid;grid-template-columns:auto auto;gap:3px;}
.rp-tool{font:inherit;font-size:11px;font-weight:800;min-width:48px;height:25px;padding:0 8px;cursor:pointer;color:#D6F4F2;background:rgba(8,16,12,.85);border:1px solid rgba(44,207,192,.45);border-radius:6px;}
.rp-tool:hover{background:rgba(18,137,138,.45);}
.rp-tool:disabled{opacity:.4;cursor:default;}
.rp-go{font:inherit;flex:none;font-size:13.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;height:52px;padding:0 16px;border:0;cursor:pointer;color:#221400;
  background:linear-gradient(90deg,#FFE08A,#FFC93C 50%,#F08A2C);clip-path:var(--rp-cut);filter:drop-shadow(0 6px 14px rgba(255,201,60,.4));}
.rp-go:hover{filter:drop-shadow(0 6px 18px rgba(255,201,60,.7)) brightness(1.08);}
.rp-go:focus-visible,.rp-play:focus-visible,.rp-ghost:focus-visible,.rp-stagecard:focus-visible,.rp-up:focus-visible{outline:2px solid #fff;outline-offset:3px;}

.rp-weapon{display:flex;align-items:center;gap:8px;padding:4px 10px 4px 4px;min-width:0;background:rgba(8,16,12,.82);border:1px solid rgba(44,207,192,.35);border-radius:9px;}
.rp-weapon canvas{display:block;width:36px;height:36px;flex:none;}
.rp-weapon div{display:flex;flex-direction:column;gap:2px;min-width:0;}
.rp-weapon strong{font-size:12px;font-weight:800;color:#fff;white-space:nowrap;}
.rp-weapon .rp-bar{width:92px;height:6px;}
.rp-weapon .rp-bar i{background:linear-gradient(90deg,#12898A,#7CF5EC);}
.rp-weapon small{font-size:10.5px;font-weight:700;color:#FFE08A;white-space:nowrap;min-height:1.2em;}
.rp-sups{display:flex;gap:6px;margin-left:auto;}
.rp-sup{font:inherit;position:relative;display:flex;flex-direction:column;align-items:center;width:62px;padding:2px 2px 3px;cursor:pointer;color:#C8D6C8;
  background:linear-gradient(180deg,rgba(30,48,34,.95),rgba(10,20,14,.95));border:1px solid rgba(124,245,236,.3);border-radius:9px;}
.rp-sup canvas{display:block;width:42px;height:42px;}
.rp-sup kbd{position:absolute;left:3px;top:3px;padding:0 5px;border-radius:4px;background:rgba(4,8,6,.85);border:1px solid rgba(44,207,192,.5);font:800 10px/1.5 Manrope,system-ui,sans-serif;color:#fff;}
.rp-sup span{font-size:9.5px;font-weight:800;letter-spacing:.02em;white-space:nowrap;}
.rp-sup.is-ready{border-color:#FFC93C;color:#FFE08A;box-shadow:0 0 12px rgba(255,201,60,.35);}
.rp-sup.is-on{border-color:#7CF5EC;box-shadow:0 0 0 2px #7CF5EC;}
.rp-sup[hidden]{display:none;}
.rp-mend{font:inherit;flex:none;display:none;width:64px;height:56px;font-size:12px;font-weight:800;cursor:pointer;color:#06140C;background:linear-gradient(180deg,#B8FFD0,#3CCB7A);border:0;border-radius:10px;touch-action:none;}
.rp-mend.is-held{filter:brightness(1.2);}
@media (hover:none),(pointer:coarse){ .rp-mend{display:block;} .rp-sup kbd{display:none;} }

/* A card across the field: a wave, a boss, a crate. And one line of advice. */
.rp-card{position:absolute;left:0;right:0;top:9%;z-index:1;display:flex;flex-direction:column;align-items:center;gap:0;padding:5px 16px 6px;text-align:center;pointer-events:none;opacity:0;visibility:hidden;
  background:linear-gradient(90deg,rgba(6,12,8,0),rgba(6,12,8,.7) 30%,rgba(6,12,8,.7) 70%,rgba(6,12,8,0));border-top:1px solid rgba(255,201,60,.45);border-bottom:1px solid rgba(255,201,60,.45);}
.rp-card.is-on{visibility:visible;animation:rpCard var(--rp-card-time,2.2s) ease both;}
@keyframes rpCard{0%{opacity:0;transform:translateX(-24px);}12%{opacity:1;transform:none;}84%{opacity:1;transform:none;}100%{opacity:0;transform:translateX(24px);}}
.rp-card p{margin:0;}
.rp-card-top{font-size:11px;font-weight:800;letter-spacing:.24em;text-transform:uppercase;color:#FFC93C;}
.rp-card-name{font-size:clamp(16px,2.4vw,23px);font-weight:800;letter-spacing:.04em;line-height:1.1;text-transform:uppercase;color:#fff;text-shadow:0 2px 0 #3A2A08,0 0 20px rgba(255,201,60,.5);}
.rp-card-top:empty,.rp-card-tip:empty{display:none;}
.rp-card-tip{font-size:12.5px;font-weight:700;color:#DCEBD8;}
.rp-hint{position:absolute;left:50%;bottom:86px;z-index:1;transform:translateX(-50%);margin:0;max-width:min(92%,640px);padding:6px 14px;text-align:center;pointer-events:none;
  font-size:13px;font-weight:700;line-height:1.35;color:#F4F8EC;background:rgba(6,12,8,.84);border:1px solid rgba(124,245,236,.45);border-radius:9px;}
.rp-hint[hidden]{display:none;}

/* ---- The screens ---- */
.rp-screen{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:safe center;gap:10px;padding:14px 20px;text-align:center;
  overflow-y:auto;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:rgba(44,207,192,.5) transparent;}
.rp-screen[hidden]{display:none;}
.rp-screen p{margin:0;}
.rp-title{background:radial-gradient(120% 90% at 50% 40%,rgba(6,12,8,.34),rgba(6,12,8,.82));}
.rp-panel{background:rgba(6,12,8,.88);}
.rp-logo{font-weight:800;font-size:clamp(34px,6vw,64px);letter-spacing:.07em;line-height:1;color:#fff;text-shadow:0 3px 0 #0B4F48,0 0 26px rgba(44,207,192,.7);padding:0 .1em;}
.rp-logo span{color:#FFC93C;text-shadow:0 3px 0 #5A3A06,0 0 26px rgba(255,201,60,.6);}
.rp-tag{font-size:12px;font-weight:800;letter-spacing:.22em;text-transform:uppercase;color:#C8E6B0;text-shadow:0 1px 3px rgba(0,0,0,.8);}
.rp-play{font:inherit;font-size:17px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;min-width:180px;min-height:52px;padding:12px 28px;border:0;cursor:pointer;color:#221400;
  background:linear-gradient(90deg,#FFE08A,#FFC93C 50%,#F08A2C);clip-path:var(--rp-cut);filter:drop-shadow(0 8px 18px rgba(255,201,60,.4));}
.rp-play:hover{filter:drop-shadow(0 8px 22px rgba(255,201,60,.65)) brightness(1.08);}
.rp-play:disabled{filter:grayscale(1) brightness(.7);cursor:default;}
.rp-ghost{font:inherit;font-size:13px;font-weight:700;min-height:44px;padding:8px 16px;cursor:pointer;color:#D6F4F2;background:rgba(6,12,8,.6);border:1px solid rgba(44,207,192,.45);border-radius:8px;}
.rp-ghost:hover{background:rgba(18,137,138,.45);}
.rp-ghost[hidden],.rp-play[hidden]{display:none;}
.rp-small{font-size:12.5px;}
.rp-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;}
.rp-bestline{font-size:13px;color:#B9C8B6;text-shadow:0 1px 3px rgba(0,0,0,.8);}
.rp-bestline strong{color:#fff;font-size:14.5px;font-variant-numeric:tabular-nums;}
.rp-dotsep{margin:0 4px;opacity:.6;}
.rp-medals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px 6px;width:min(100%,720px);margin:0;padding:0;list-style:none;}
.rp-medals li{display:grid;grid-template-columns:auto 1fr;column-gap:7px;align-items:center;padding:4px 8px;text-align:left;background:rgba(10,20,14,.72);border:1px solid rgba(255,255,255,.1);border-radius:7px;}
.rp-medals li::before{content:"";grid-row:1 / 3;width:16px;height:16px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#5A6A5A,#2A342A);box-shadow:inset 0 0 0 2px rgba(255,255,255,.12);}
.rp-medals strong{font-size:11px;font-weight:800;color:#C8D6C8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.rp-medals span{font-size:10px;line-height:1.2;color:#8FA38F;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.rp-medals li.is-done{border-color:rgba(255,201,60,.55);}
.rp-medals li.is-done::before{background:radial-gradient(circle at 35% 30%,#FFF0A8,#F0A020);box-shadow:inset 0 0 0 2px rgba(120,70,0,.5),0 0 8px rgba(255,201,60,.5);}
.rp-medals li.is-done strong{color:#FFE08A;}
.rp-keys{display:flex;flex-wrap:wrap;justify-content:center;gap:5px 14px;margin:0;padding:0;list-style:none;font-size:12px;font-weight:700;color:#C8D6C8;text-shadow:0 1px 3px rgba(0,0,0,.8);}
.rp-keys kbd,.rp-keep kbd,.rp-up kbd{display:inline-block;margin-right:3px;padding:1px 7px;border-radius:5px;border:1px solid rgba(44,207,192,.5);border-bottom-width:2px;background:rgba(6,12,8,.7);
  font:800 11.5px/1.5 Manrope,system-ui,sans-serif;color:#fff;text-shadow:none;}
.rp-keys-touch{display:none;}
@media (hover:none),(pointer:coarse){ .rp-keys-desk{display:none;} .rp-keys-touch{display:flex;} .rp-up kbd{display:none;} }
.rp-panel-title{font-size:13px;font-weight:800;letter-spacing:.24em;text-transform:uppercase;color:#FFC93C;}
.rp-keep{font-size:12.5px;color:#B9C8B6;}

/* The stages. */
.rp-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;width:min(100%,940px);}
.rp-stagecard{font:inherit;position:relative;display:flex;flex-direction:column;gap:2px;padding:0 0 5px;overflow:hidden;cursor:pointer;text-align:left;color:#EEF4EC;
  background:rgba(10,20,14,.9);border:1px solid rgba(124,245,236,.3);border-radius:9px;}
.rp-stagecard canvas{display:block;width:100%;aspect-ratio:16/10;background:#16241A;}
.rp-stagecard strong{padding:2px 7px 0;font-size:11.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.rp-stagecard span{padding:0 8px;font-size:13px;letter-spacing:.1em;color:#5A6A5A;}
.rp-stagecard span b{color:#FFC93C;font-weight:400;}
.rp-stagecard small{padding:0 8px;font-size:10.5px;color:#9AB09A;font-variant-numeric:tabular-nums;}
.rp-stagecard em{position:absolute;left:5px;top:5px;min-width:20px;padding:0 5px;border-radius:5px;background:rgba(6,12,8,.85);font-style:normal;font-size:11.5px;font-weight:800;line-height:20px;text-align:center;color:#7CF5EC;}
.rp-stagecard:hover{border-color:#FFC93C;}
.rp-stagecard.is-locked{cursor:default;border-style:dashed;}
.rp-stagecard.is-locked canvas{filter:grayscale(1) brightness(.45);}
.rp-stagecard.is-next{border-color:#FFC93C;box-shadow:0 0 14px rgba(255,201,60,.35);}

/* ---- The results ---- */
.rp-over{gap:7px;}
.rp-over-name{font-size:clamp(20px,3.2vw,30px);font-weight:800;letter-spacing:.04em;text-transform:uppercase;line-height:1;color:#fff;text-shadow:0 2px 0 #0B4F48,0 0 20px rgba(44,207,192,.6);}
.rp-over[data-result="lose"] .rp-over-name{text-shadow:0 2px 0 #5A1408,0 0 20px rgba(255,106,90,.6);}
.rp-over[data-result="lose"] .rp-panel-title{color:#FF8A7A;}
.rp-stars{display:flex;gap:10px;}
.rp-stars i{display:block;width:44px;height:44px;background:rgba(255,255,255,.12);clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);}
.rp-stars i.on{background:linear-gradient(160deg,#FFF0A8,#FFC93C 50%,#F08A2C);animation:rpStar .45s cubic-bezier(.3,1.6,.5,1) both;}
.rp-stars i.on:nth-child(2){animation-delay:.3s;}
.rp-stars i.on:nth-child(3){animation-delay:.6s;}
@keyframes rpStar{from{transform:scale(0) rotate(-40deg);}to{transform:none;}}
.rp-over[data-result="lose"] .rp-stars,.rp-over[data-result="end"] .rp-stars{display:none;}
.rp-stats{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 16px;margin:0;}
.rp-stats div{display:flex;align-items:baseline;gap:6px;}
.rp-stats dt{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#8FA38F;}
.rp-stats dd{margin:0;font-size:15px;font-weight:800;color:#fff;font-variant-numeric:tabular-nums;}
.rp-final{font-size:38px;font-weight:800;line-height:1;color:#fff;text-shadow:0 3px 0 #0B4F48,0 0 22px rgba(44,207,192,.6);font-variant-numeric:tabular-nums;}
.rp-line{font-size:14px;font-weight:700;color:#DCEBD8;max-width:40em;}
.rp-fresh{font-size:13px;font-weight:800;color:#FFE08A;max-width:42em;}
.rp-fresh[hidden],.rp-pick[hidden]{display:none;}
.rp-pick{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;}
.rp-ups{display:flex;justify-content:center;align-items:stretch;gap:10px;width:100%;}
.rp-up{font:inherit;position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;flex:0 1 220px;min-width:0;padding:10px 12px;cursor:pointer;text-align:center;color:#DCEBD8;
  background:linear-gradient(180deg,rgba(30,52,38,.96),rgba(10,20,14,.96));border:1px solid rgba(124,245,236,.45);border-radius:11px;}
.rp-up strong{font-size:15px;font-weight:800;color:#fff;}
.rp-up span{font-size:12px;line-height:1.35;}
.rp-up small{font-size:10.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#7CF5EC;}
.rp-up kbd{position:absolute;left:6px;top:6px;margin:0;}
.rp-up:hover{border-color:#FFC93C;}
.rp-up.is-sel{border-color:#FFC93C;background:linear-gradient(180deg,rgba(86,62,10,.96),rgba(30,20,4,.96));box-shadow:0 0 0 2px rgba(255,201,60,.5),0 0 22px rgba(255,201,60,.3);}
.rp-up.is-off{opacity:.4;}
.rp-over .champ-entry{width:min(340px,92%);margin:2px 0;padding:10px 12px;}

@media (hover:none),(pointer:coarse){
  .rp-shell{width:min(100%,calc((100svh - 150px) * 16 / 10));}
  .rp-stage{min-height:0;}
}
/* A phone held sideways: the stage as tall as the window, the bars thinner. */
@media (pointer:coarse) and (orientation:landscape) and (max-height:540px){
  .rp-shell{width:min(100%,calc((100svh - 70px) * 16 / 10));}
  .rp-top{padding:2px 6px 6px;}
  .rp-chip{padding:2px 7px;font-size:9.5px;}
  .rp-chip b{font-size:12px;}
  .rp-icon{height:26px;}
  .rp-bottom{padding:6px 6px 3px;}
  .rp-item{width:44px;} .rp-item canvas{width:30px;height:30px;}
  .rp-go{height:44px;font-size:12px;padding:0 10px;}
  .rp-sup{width:50px;} .rp-sup canvas{width:32px;height:32px;} .rp-sup span{display:none;}
  .rp-mend{height:44px;}
  .rp-weapon small{display:none;}
  .rp-hint{bottom:62px;font-size:11.5px;padding:3px 10px;}
  .rp-screen{gap:6px;padding:8px 14px;}
  .rp-logo{font-size:30px;}
  .rp-medals{display:none;}
  .rp-stars i{width:30px;height:30px;}
  .rp-final{font-size:26px;}
  .rp-up{padding:6px 8px;} .rp-up span{font-size:11px;}
  .rp-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;}
  .rp-stagecard small{display:none;}
}

.rp-info{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:var(--s4);margin-top:var(--s4);}
.rp-how{margin:0;padding:0;list-style:none;display:grid;gap:10px;}
.rp-how li{position:relative;padding-left:24px;font-size:15px;line-height:1.55;color:var(--text-2);}
.rp-how li::before{content:"";position:absolute;left:3px;top:.5em;width:9px;height:9px;transform:rotate(45deg);background:#2CCFC0;}
.rp-notes{display:grid;gap:10px;align-content:start;}
.rp-notes p{margin:0;}
.rp-info kbd{display:inline-block;min-width:22px;padding:1px 6px;border:1px solid var(--border-strong,var(--border));
  border-bottom-width:2px;border-radius:5px;font:700 12px/1.5 ui-monospace,Menlo,Consolas,monospace;text-align:center;background:var(--surface);}

@media (max-width:860px){
  .rp-info{grid-template-columns:1fr;gap:var(--s3);}
  .rp-medals{grid-template-columns:repeat(2,minmax(0,1fr));}
  .rp-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
  .rp-wave .rp-bar{width:44px;}
  .rp-men{display:none;}
}
/* A phone held upright: the field turned a quarter and as tall as the window allows, the bars above and below it. */
@media (max-width:620px){
  .rp-page{padding-top:var(--s2);}
  .rp-head .lede{font-size:14.5px;}
  .rp-shell{width:100%;}
  .rp-stage{display:flex;flex-direction:column;border-radius:10px;aspect-ratio:auto;height:max(480px,calc(100svh - 84px));}
  .rp-field{position:relative;inset:auto;flex:1 1 auto;min-height:0;order:1;}
  .rp-top{position:static;order:0;flex-wrap:wrap;gap:4px;padding:5px 6px;background:#0A140E;}
  .rp-bottom{position:static;order:2;padding:5px 6px;background:#0A140E;}
  .rp-chip{padding:3px 7px;font-size:9.5px;gap:4px;}
  .rp-chip b{font-size:12.5px;}
  .rp-name span{display:none;}
  .rp-hq .rp-bar{width:56px;}
  .rp-wave{margin-left:0;}
  .rp-icon{margin-left:auto;width:34px;height:28px;}
  .rp-prep{flex-wrap:wrap;gap:5px;}
  .rp-build{flex-basis:100%;}
  .rp-tools{grid-template-columns:repeat(4,auto);flex:1 1 auto;}
  .rp-tool{min-width:0;height:40px;padding:0 6px;}
  .rp-go{height:40px;font-size:12px;padding:0 12px;}
  .rp-fight{gap:5px;}
  .rp-weapon{padding:3px 6px 3px 3px;gap:5px;}
  .rp-weapon canvas{width:28px;height:28px;}
  .rp-weapon strong{font-size:10.5px;}
  .rp-weapon .rp-bar{width:60px;}
  .rp-sups{gap:4px;}
  .rp-sup{width:48px;} .rp-sup canvas{width:36px;height:36px;} .rp-sup span{display:none;}
  .rp-mend{width:52px;height:46px;}
  .rp-hint{bottom:auto;top:6px;font-size:12px;padding:5px 10px;width:max-content;}
  .rp-card{top:17%;padding:5px 10px;}
  .rp-screen{gap:9px;padding:14px 12px;}
  .rp-tag{font-size:10.5px;letter-spacing:.14em;}
  .rp-play{min-height:46px;font-size:15px;min-width:140px;}
  .rp-ghost{min-height:40px;padding:6px 12px;font-size:12.5px;}
  .rp-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .rp-ups{flex-direction:column;align-items:stretch;gap:6px;}
  .rp-up{flex:none;padding:8px 10px;}
  .rp-final{font-size:32px;}
  .rp-stars i{width:38px;height:38px;}
}
@media (prefers-reduced-motion:reduce){
  .rp-stars i.on{animation:none;}
  .rp-card.is-on{animation:rpCardCalm var(--rp-card-time,2.2s) linear both;}
  .rp-bar i{transition:none;}
}
.rp-stage.is-calm .rp-stars i.on{animation:none;}
.rp-stage.is-calm .rp-card.is-on{animation:rpCardCalm var(--rp-card-time,2.2s) linear both;}
@keyframes rpCardCalm{0%,96%{opacity:1;}100%{opacity:0;}}
