dialog.classic-season,dialog.cs-sheet {font-family:ClassicMaru,"Hiragino Maru Gothic ProN",sans-serif}
dialog.classic-season {
  position:fixed;inset:0;margin:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;
  padding:0;border:0;border-radius:0;overflow:hidden;box-shadow:none;color:white;background:#71b7f4 url('/maps/sky/pz.jpg') center 42%/cover;
  font-size:clamp(13px,min(2.22vw,4.3vh),35px);line-height:1.15;
  --left:max(1vw,env(safe-area-inset-left));--right:max(1vw,env(safe-area-inset-right));
  --top:max(1.85vh,env(safe-area-inset-top));--bottom:max(3.7vh,env(safe-area-inset-bottom));
}
.classic-season::backdrop {background:#4095d8}
dialog.classic-season[data-scenery] {background-size:cover;background-position:center}
dialog.classic-season[data-scenery=tomb] {background-image:url('/classic/season/tomb-stage.webp')}
dialog.classic-season[data-scenery=beach] {background-image:url('/classic/season/beach-stage.webp')}
.classic-season[data-scenery] .cs-ground {display:none}
.classic-season .cs-ground {
  position:absolute;inset:49% -50% -50% -50%;background:#b9cbcf url('/classic/ground.webp') center top/12vh 12vh repeat;
  transform:perspective(40vh) rotateX(62deg);transform-origin:50% 0;pointer-events:none;
}
.cs-stage,.cs-frame {position:absolute;inset:0;width:100%;height:100%;display:block}
.cs-stage {opacity:0;pointer-events:none}.cs-stage.cs-loaded {opacity:1}
.cs-frame {pointer-events:none}.cs-frame button,.cs-frame .cs-row {pointer-events:auto}
.classic-season button,.cs-sheet button {
  margin:0;font-family:inherit;letter-spacing:0;border:0;box-shadow:none;text-shadow:none;color:inherit;font-weight:400;
  background:transparent;cursor:pointer;touch-action:manipulation;
}
.classic-season button:focus-visible,.cs-sheet button:focus-visible {outline:3px solid #ffff3c;outline-offset:2px}
.classic-season .cs-exit,.classic-season .cs-arrow {
  width:max(31px,min(5.8vw,9vh));height:max(31px,min(5.8vw,9vh));
  border-radius:100%;padding:0;background:transparent url('/classic/lobby/ring.png') center/100% 100% no-repeat;
  display:grid;place-items:center;
}
.classic-season .cs-exit {position:absolute;left:var(--left);top:var(--top);width:max(30px,min(4.2vw,7.4vh));height:max(30px,min(4.2vw,7.4vh))}
.cs-exit img {width:62%;height:62%;object-fit:contain}
.cs-header,.cs-selection {position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:min(1.15vw,1.8vh);z-index:2}
.cs-header {top:var(--top)}
.cs-arrow i {display:block;width:0;height:0;border-block:.43em solid transparent;border-right:.7em solid white}
.cs-arrow.cs-next i {border-right:0;border-left:.7em solid white}
.cs-header .cs-header-label,.cs-selection .cs-item-name {
  color:white;background:#394654ad;padding:.33em .9em;min-width:24vw;
  text-align:center;border-radius:.65em;white-space:nowrap;max-width:60vw;font-size:1.12em;
}
.cs-selection {bottom:var(--bottom)}
.cs-selection .cs-item-name {font-size:.92em;min-width:22vw}
.cs-action {display:flex;align-items:center;gap:.6em;line-height:1.2}
.classic-season .cs-action {
  position:absolute;padding:.66em .63em;border-radius:.6em;
  background:#4eaec6;color:white;min-height:34px;font-size:.8em;
}
.cs-action img {width:1.55em;height:1.55em;object-fit:contain}
.classic-season .cs-library {right:var(--right);bottom:var(--bottom)}
.classic-season .cs-about {right:var(--right);bottom:calc(var(--bottom) + max(46px,11vh));background:#586673}
.cs-poster {position:absolute;bottom:var(--bottom);left:var(--left);padding:0;width:min(23vw,35vh)}
.cs-poster img {width:100%;height:auto;display:block;border-radius:.3em}
.cs-row {position:absolute;inset:18% 0 19%;touch-action:pan-y}
.classic-season .cs-slot {
  width:15%;height:var(--actor-height);position:fixed;transform:translate(-50%,-100%);
  padding:0;border:0;background:none;color:white;display:flex;align-items:center;justify-content:center;
}
.cs-slot img {max-width:100%;height:100%;object-fit:contain}
.cs-slot.cs-model-ready img {visibility:hidden}
.cs-slot span {
  position:absolute;top:calc(100% + 2px);left:50%;transform:translateX(-50%);min-width:65%;max-width:124%;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.14em .49em;border-radius:.42em;
  background:#394654aa;color:white;font-size:.56em;
}
.cs-slot[aria-pressed=true] span {background:#fff2a1;color:#473b20}
.cs-loading,.cs-retry {
  position:absolute;top:45%;left:50%;transform:translateX(-50%);margin:0;border-radius:.5em;background:#394654bd;padding:.5em .9em;
}
.classic-season .cs-retry {top:55%;background:#00a9bc}
dialog.cs-sheet {
  position:fixed;inset:0;margin:auto;width:min(78vw,850px);max-width:95vw;max-height:89vh;padding:0;
  border:0;border-radius:clamp(8px,1.5vw,22px);box-shadow:none;background:white;color:#303841;
  overflow:auto;text-align:center;font:400 clamp(14px,min(2.3vw,3.7vh),26px)/1.45 ClassicMaru,sans-serif;
}
dialog.cs-sheet::backdrop {background:#10191fc0;backdrop-filter:none}
.cs-sheet h2 {display:block;margin:0;padding:.32em 2em;background:#01b2c6;color:white;font:inherit;font-size:1.2em}
.cs-sheet .cs-sheet-close {position:absolute;right:.4em;top:.15em;font-size:1.5em;color:white}
.cs-sheet-body {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.65em;padding:1em}
.cs-sheet-body>p {width:100%;margin:.3em 0 .5em;color:#34424b}
.cs-sheet-body>img {display:block;max-width:min(90%,510px);max-height:39vh;object-fit:contain}
.cs-group-list {display:flex;gap:.45em;flex-wrap:wrap;justify-content:center}
.cs-sheet .cs-pick-group,.cs-sheet .cs-period-choice {
  padding:.65em 1em;border-radius:.5em;background:#00aabc;color:white;font:inherit;line-height:1.15;
}
.cs-catalog-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,98px),1fr));gap:.45em;width:100%}
.cs-sheet .cs-tile {
  display:flex;align-items:center;flex-direction:column;justify-content:space-between;padding:.35em;
  border:2px solid #b9dce2;border-radius:.5em;background:#edf7fa;color:#283e46;
}
.cs-tile img {width:100%;height:min(15vh,105px);object-fit:contain}
.cs-tile span {font-size:.68em}.cs-sheet .cs-tile[aria-pressed=true] {border-color:#facb2f;background:#fff7d5}
.cs-rank-rule,.cs-rank-period {
  position:absolute;top:var(--top);height:13.6%;display:flex;
  align-items:center;justify-content:center;text-align:center;white-space:pre-line;
  background:#354251a8;border-radius:.7em;color:white;font:inherit;
}
.cs-rank-rule {left:10%;width:43%}
.classic-season .cs-rank-period {left:56%;width:29%;right:auto;background:#354251a8;font-size:1em}
.cs-rank-list {
  position:absolute;left:11%;top:21.5%;width:36%;height:60%;border-radius:.8em;
  background:rgba(255,255,255,.94);color:#273039;overflow:hidden;
}
.cs-rank-list header {width:100%;display:flex;align-items:center;justify-content:space-between;padding:.35em .45em;background:#536370;color:white}
.cs-rank-list h2 {font:inherit;margin:0}
.classic-season .cs-switch {position:static;min-height:0;padding:.25em .45em;font-size:.67em}
.cs-no-data {position:absolute;inset:45% 0 auto;text-align:center;margin:0;color:#555;font-size:.82em}
.cs-ranks {
  position:absolute;list-style:none;left:53%;top:22%;width:36%;height:53%;margin:0;padding:0;
  display:flex;flex-direction:column;color:white;
}
.cs-ranks li {flex:1;display:flex;align-items:center;justify-content:space-between;position:relative}
.cs-ranks li:before {content:"";position:absolute;top:50%;left:14%;right:0;height:2px;background:#fff}
.cs-rank-badge {
  position:relative;isolation:isolate;display:grid;place-items:center;width:57%;height:100%;color:#fff;font-weight:700;font-size:.83em;
  text-shadow:0 1px 2px #202b37;
}
.cs-rank-badge:before {
  content:"";position:absolute;inset:0;background-color:var(--badge);mask-image:var(--shape);
  mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-image:var(--shape);-webkit-mask-size:100% 100%;z-index:-1;
}
.cs-rank-range {position:relative;color:white;text-shadow:0 1px 2px #182730;font-size:.73em}
.cs-rank-note {position:absolute;bottom:8%;right:10%;padding:.45em 1em;border-radius:.55em;background:#ffeb21;color:#463c12;font-size:.87em}
@media (orientation:portrait) {
  dialog.classic-season {font-size:16px}
  .classic-season .cs-slot {width:27%}
  .cs-header {top:7%}
  .cs-header .cs-header-label {min-width:44vw}
  .cs-header,.cs-selection {gap:3vw}
  .cs-selection {bottom:max(87px,15%)}
  .cs-selection .cs-item-name {min-width:38vw}
  .cs-slot span {font-size:11px}
  .cs-poster {max-width:30vw}
  .classic-season .cs-about {bottom:calc(var(--bottom) + 44px)}
  dialog.cs-sheet {width:94vw}.cs-catalog-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
  .cs-rank-rule {left:14%;width:54%;height:8%;font-size:12px}
  .classic-season .cs-rank-period {left:70%;width:27%;height:8%;font-size:14px}
  .cs-rank-list {left:4%;width:43%;top:26%;height:43%}
  .cs-ranks {left:51%;width:46%;top:26%;height:40%}
  .cs-rank-range,.cs-rank-badge {font-size:10px}
  .cs-rank-note {right:4%;bottom:24%}
}
