.dex-device[data-mode=pokerate] .dex-controls a[aria-current]{background:linear-gradient(#9bf5d3,#5aceaa);outline-color:#c7ffe5}
.dex-device[data-mode=pokerate] .dex-rate-screen{display:block;padding:0;border:0;background:#2b2427;overflow:visible}
.rate-game{--rate-ink:#192d24;--rate-muted:#395844;--rate-border:#54765e;--rate-action:#ffd057;--rate-active:#8af1c1;
  color:var(--rate-ink);display:grid;gap:5px;border:4px solid #272124;border-radius:12px;background:#272124;min-width:0;
  grid-template-columns:minmax(155px,.8fr) minmax(210px,1.42fr) minmax(260px,1.25fr)}
.rate-panel{min-width:0;padding:clamp(.8rem,1.35vw,1.4rem);border:1px solid #7a9b81;border-radius:7px;
  background:linear-gradient(#aecfb0,#c6dfc1);box-shadow:inset 0 2px 8px #14332646}
.rate-home{grid-column:1/-1;min-height:290px}
.rate-game h1,.rate-game h2,.rate-game h3,.rate-game legend{font-family:Nunito,system-ui,sans-serif;color:var(--rate-ink)}
.rate-game h1{font-size:clamp(1.5rem,2.8vw,2.7rem);line-height:1.08;margin:0 0 .6rem}
.rate-game h2{font-size:clamp(1.15rem,1.9vw,1.55rem);margin:0 0 .65rem}
.rate-game h3{margin:1.15rem 0 .5rem}.rate-game p{margin:.35rem 0 .85rem}
.rate-game small{color:var(--rate-muted)}
.rate-game button{min-height:44px;padding:.45rem .66rem;border:1px solid #4f7358;border-radius:8px;color:var(--rate-ink);
  background:linear-gradient(#e5efd6,#c9dec1);box-shadow:0 2px #45684b71;font-weight:800}
.rate-game button:hover{filter:brightness(1.06)}.rate-game button:focus-visible{outline:3px solid #2d6c52;outline-offset:2px}
.rate-game button[aria-pressed=true]{background:linear-gradient(#adeacc,#83dbac);border-color:#1f644f;box-shadow:0 0 0 2px #f2fff5}
.rate-game button.rate-primary{border-color:#886036;background:linear-gradient(#ffe394,#ffc23e);box-shadow:0 2px #956135}
.rate-game button:disabled{opacity:.53;cursor:default}
.rate-home-head{display:flex;justify-content:space-between;align-items:start;gap:.7rem;flex-wrap:wrap}
.rate-balance{display:flex;align-items:center;gap:.6rem;background:#e4edcc;border:1px solid #849773;border-radius:9px;
  padding:.55rem .7rem;width:fit-content;max-width:100%;margin:.2rem 0 .8rem}
.rate-balance>span{font-size:1.5rem;color:#9c6310}
.rate-balance strong,.rate-balance small{display:block;overflow-wrap:anywhere}
.rate-balance small{font-variant-numeric:tabular-nums}
.rate-era-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:.7rem;margin-top:.6rem}
.rate-era{background:#e2eed6;border:1px solid #83a486;border-radius:11px;padding:.9rem}
.rate-era h2{margin:0}.rate-era progress{margin-bottom:.7rem}
.rate-badge{display:block;margin-top:.7rem}.rate-unlock{padding-top:1rem}
.rate-unlock small{display:block;margin-top:.25rem}
.rate-game progress{display:block;appearance:none;width:100%;height:.6rem;margin:.5rem 0 .9rem;
  background:#789987;border:1px solid #57785d;border-radius:9px;overflow:hidden;accent-color:#3aa67c}
.rate-game progress::-webkit-progress-bar{background:#8bad98}
.rate-game progress::-webkit-progress-value{background:#368f71}
.rate-art{display:grid;place-content:center;justify-items:center;background:
  repeating-linear-gradient(0deg,#425f5012 0 1px,transparent 1px 17px),
  repeating-linear-gradient(90deg,#425f5012 0 1px,transparent 1px 17px),linear-gradient(#b2d3b3,#c8e0c1)}
.rate-card{display:grid;justify-items:center;gap:.5rem;text-align:center;font-weight:800;margin:0}
.rate-card img{display:block;max-width:100%;width:auto;height:min(46vh,475px);aspect-ratio:63/88;object-fit:contain;
  border-radius:11px;filter:drop-shadow(0 6px 7px #29463955)}
.rate-no-art{display:grid;place-items:center;border-radius:8px;background:#d8e8ce;padding:1rem}
.rate-game fieldset{border:0;padding:0;margin:0 0 .85rem;min-width:0}
.rate-game legend{font-size:clamp(1rem,1.6vw,1.32rem);font-weight:900;margin-bottom:.5rem;padding:0}
.rate-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.42rem}
.rate-choices button{font-size:.82rem}
.rate-appeal button{display:grid;align-content:center;gap:.1rem;text-align:center;min-height:59px}
.rate-mood{font-size:1.15rem;font-weight:950;justify-self:center;line-height:1;display:grid;place-items:center;border:1px solid #5f725d;
  border-radius:50%;width:1.65rem;height:1.65rem;background:#f9e2a2}
.rate-appeal button:last-child{grid-column:1/-1}
.rate-appeal button:last-child .rate-mood{background:#ffd078;color:#794806}
.rate-actions{display:flex;flex-wrap:wrap;gap:.4rem}
.rate-prompt{font-size:clamp(1rem,1.9vw,1.35rem);font-weight:800}
.rate-duel{display:grid;width:100%;grid-template-columns:1fr 1fr;gap:.55rem;align-items:stretch}
.rate-duel button{min-width:0;padding:.3rem;font-size:.8rem}
.rate-duel-art{display:flex;align-items:center;justify-content:center;margin-bottom:.35rem;min-height:0}
.rate-duel-art img{display:block;max-width:100%;min-width:0;width:100%;max-height:min(35vh,340px);object-fit:contain;border-radius:6px}
.rate-duel-art:has(img:nth-child(2)) img{width:42%}.rate-duel-art img+img{margin-left:-12%;transform:rotate(3deg)}
.rate-error{margin-top:.7rem;color:#752c2b}.rate-error button{margin-left:.35rem}
.rate-step-back,.rate-step-next{display:none}
.rate-postcard{text-align:center;display:grid;justify-items:center;gap:.3rem;
  background:radial-gradient(ellipse at 65% 0,#375b79,transparent 80%),#10263d;color:#fff1ce;
  border:6px solid #f5dfaf;box-shadow:0 5px 13px #142a2255;border-radius:10px;width:min(100%,310px);padding:.85rem}
.rate-postcard h2,.rate-postcard p,.rate-postcard strong{color:#fff1ce;margin:0}.rate-postcard img{max-width:100%;max-height:82px;object-fit:contain}
.rate-champion{display:grid;justify-items:center;gap:.2rem;margin-top:.85rem}
.rate-champion img{max-width:100px;max-height:150px;border-radius:5px}
.rate-screen-reveal .rate-questions{max-height:63vh;overflow:auto;overscroll-behavior:contain}
.rate-results{margin:.5rem 0 0;padding-inline-start:1.65rem}
.rate-results li{margin:.4rem 0;padding:.37rem;border-bottom:1px solid #65856c}
.rate-results img{max-width:42px;border-radius:4px;vertical-align:middle;margin-inline-end:.35rem}
.rate-results small{display:block;margin-top:.15rem}
@media(max-width:1060px) and (min-width:761px){.rate-game{grid-template-columns:minmax(116px,.75fr) minmax(130px,1fr) minmax(195px,1.35fr)}}
@media(max-width:760px){
  .rate-game{grid-template-columns:minmax(0,1fr);border-width:2px;gap:3px}
  .rate-panel{padding:.7rem}
  .rate-progress{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}
  .rate-progress h1{font-size:1.05rem;margin:0 auto 0 0}
  .rate-progress strong{font-size:.74rem}
  .rate-progress .rate-balance,.rate-progress progress{display:none}
  .rate-progress button{font-size:.72rem;min-height:36px}
  .rate-card img{height:clamp(110px,29dvh,280px)}
  .rate-card figcaption{font-size:.8rem}
  .rate-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rate-appeal button{min-height:44px}
  .rate-appeal button .rate-mood{height:1.25rem;width:1.25rem;font-size:.87rem}
  .rate-game[data-step=appeal] .rate-collect,.rate-game[data-step=appeal] .rate-save,
  .rate-game[data-step=collect] .rate-appeal,.rate-game[data-step=collect] .rate-step-next{display:none}
  .rate-game[data-step=appeal] .rate-step-next,.rate-game[data-step=collect] .rate-step-back{display:inline-block}
  .rate-screen-reveal .rate-questions{max-height:none}
}
.dex-android .dex-device[data-mode=pokerate] .dex-rate-screen{overflow:auto;overscroll-behavior:contain}
.dex-android .rate-screen-reveal .rate-questions{max-height:none}

.rate-postcard{overflow:hidden;position:relative;min-height:185px;padding:0;display:grid;align-items:end;
  border:6px dotted #f5dfaf;outline:2px solid #f5dfaf}
.rate-postcard-picture{position:absolute;inset:0;overflow:hidden;opacity:.68}
.rate-postcard-picture img{width:100%;height:155%;max-height:none;object-fit:cover;object-position:center 29%}
.rate-postcard::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent,#101a36ca 70%,#101a36)}
.rate-postcard-copy{position:relative;z-index:1;display:grid;justify-items:center;gap:.4rem;padding:.8rem}
.rate-postcard-copy>img{max-height:48px;filter:drop-shadow(0 1px 3px #000)}
.rate-timeline{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr));gap:.75rem;padding:0;margin:.8rem 0}
.rate-timeline .rate-era{border-top:5px solid #67997d}.rate-timeline .rate-era small{font-weight:800}
.rate-timeline .rate-era p{font-weight:800}
.rate-locked{font-size:.86rem;font-weight:800;color:#3e5947}
.rate-archive,.rate-chapter-sources{border-top:1px solid #8ca98a;margin-top:1.05rem;padding-top:.65rem}
.rate-archive summary,.rate-chapter-sources summary{cursor:pointer;font-weight:900}
.rate-chapter{max-width:1000px;margin:auto}
.rate-chapter-cover{display:grid;grid-template-columns:minmax(0,1fr) minmax(75px,28%);align-items:center;gap:1rem;
  color:#fff0ce;border-radius:13px;padding:clamp(.85rem,2.5vw,2rem);border:1px solid #426a60;
  background:radial-gradient(ellipse at 90% 25%,#43816a,transparent 68%),#133e3a}
.rate-chapter-cover:not(:has(img)){grid-template-columns:minmax(0,1fr)}
.rate-chapter-cover h1{font-weight:950;font-size:clamp(1.85rem,4.1vw,3.65rem);line-height:1;
  color:#fff0ce;margin:.3rem 0 .6rem;text-wrap:balance}
.rate-chapter-cover img{display:block;width:100%;height:auto;filter:drop-shadow(0 4px 4px #10241b)}
.rate-chapter small.rate-chapter-date{font:800 .78rem ui-monospace,monospace;text-transform:uppercase;letter-spacing:.08em;color:#c8f5dc}
.rate-chapter-hook{color:#fff0ce;line-height:1.45;font-weight:750}
.rate-chapter-notes{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin:.8rem 0}
.rate-chapter-notes section,.rate-chapter-gallery{padding:.8rem;border-radius:10px;background:#e5edd1;border:1px solid #90ac84}
.rate-chapter-notes h2,.rate-chapter-gallery h2{font-size:1.15rem;font-weight:950;margin:0 0 .3rem}
.rate-chapter-notes p{line-height:1.5;margin:0}.rate-chapter-sources a{text-decoration:underline}
.rate-chapter-gallery{margin:.65rem 0}
.rate-chapter-gallery>div{display:flex;align-items:start;justify-content:center;gap:.75rem;flex-wrap:wrap}
.rate-chapter-gallery figure{margin:0;display:grid;justify-items:center;gap:.4rem;max-width:min(31%,220px);
  font-weight:800;text-align:center;line-height:1.25;font-size:.82rem}
.rate-chapter-gallery img{display:block;width:min(100%,190px);height:auto;aspect-ratio:63/88;object-fit:contain;
  border-radius:8px;filter:drop-shadow(0 4px 3px #233b2b88)}
@media(max-width:600px){
  .rate-chapter-notes{grid-template-columns:1fr}
  .rate-chapter-cover{grid-template-columns:minmax(0,1fr) minmax(68px,23%);gap:.45rem}
  .rate-chapter-gallery figure{max-width:45%}
}

.dex-android .rate-game{min-height:100%}
@media(max-width:760px){
  .dex-android .rate-screen-play{grid-template-rows:auto minmax(min-content,1fr) auto}
  .rate-screen-reveal .rate-art{place-content:center stretch}
  .rate-screen-reveal .rate-postcard{justify-self:center}
}
