body[data-viewport] .explore-dashboard {
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.7fr);
  gap: 16px;
  flex: 1;
}
body[data-viewport] .explore-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 16px;
  overflow-y: auto;
}
/* Spacing is tight so 「探索の遊び方」 stays on the card with the ranking consent shown. */
.explore-hero .explore-hero-copy > strong { font-size: 32px; }
.explore-hero .explore-hero-copy p { margin: 4px 0 0; font-size: 16px; line-height: 1.5; }
.explore-hero .explore-record { padding: 10px 16px; }
.explore-hero .explore-record strong { line-height: 1.1; }
.explore-hero .explore-launch-button { align-self: stretch; flex-shrink: 0; min-height: 52px; }
.explore-hero .ranking-participation { gap: 4px; }
.explore-hero .ranking-sharing-note { line-height: 1.4; }
.explore-rules-toggle { margin-top: auto; color: #aec7ce; font-size: 15px; }
.explore-rules-toggle > summary { cursor: pointer; padding: 4px 0; }
.explore-rules-toggle p { font-size: 14px; line-height: 1.5; }
.exploration-ranking {
  flex: 1; min-width: 0; min-height: 0; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: #081519ed; border: 1px solid #34535c;
}
.ranking-head { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.ranking-head h3 { margin: 0; font-size: 24px; color: #5ce1ec; }
.ranking-beta { color: #aac2c9; font-size: 15px; }
.ranking-head button { margin-left: auto; }
.ranking-notice { margin: 0; font-size: 14px; line-height: 1.4; color: #a8c1c9; flex-shrink: 0; }
.ranking-notice.has-error { color: #efc27b; }
.ranking-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
.ranking-row { border-bottom: 1px solid #2a4148; }
.ranking-row.is-own { background: #12414a66; }
.ranking-row-summary { display: grid; grid-template-columns: 48px minmax(0, 1fr) 156px 104px; gap: 10px; align-items: center; min-height: 64px; padding: 4px 10px; cursor: pointer; list-style: none; }
.ranking-row-summary::-webkit-details-marker { display: none; }
.ranking-row-summary:focus-visible { outline: 2px solid #62dce5; outline-offset: -2px; }
.ranking-place { font-size: 20px; color: #89b6c1; }
.ranking-row:nth-child(-n+3) .ranking-place { color: #e6ce80; }
.ranking-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e4eef0; font-size: 20px; }
.ranking-party { display: flex; gap: 4px; }
.ranking-party-slot { display: grid; place-items: center; width: 48px; height: 48px; color: #647e85; }
.ranking-chibi { width: 100%; height: 100%; object-fit: contain; }
.ranking-stage { font-size: 20px; color: #7ee5eb; white-space: nowrap; text-align: right; }
.ranking-own { border-top: 1px solid #44636b; padding-top: 8px; flex-shrink: 0; }
.ranking-own > small { font-size: 14px; color: #a8cbd1; }
.ranking-own .ranking-row { border-bottom: 0; }
.ranking-empty { font-size: 16px; line-height: 1.5; color: #9ab5bc; margin: 14px 8px; }
.ranking-participation { display: grid; gap: 8px; }
.ranking-consent { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #d8ecef; font-size: 18px; }
.ranking-consent input { width: 22px; height: 22px; flex: 0 0 22px; accent-color: #43c9d7; margin: 0; }
.ranking-sharing-note { margin: 0; color: #a6bfc6; font-size: 14px; line-height: 1.5; }
.ranking-detail { padding: 4px 10px 12px; }
.ranking-detail-note { color: #aac6ce; font-size: 14px; }
.ranking-squad-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ranking-unit-detail { min-width: 0; padding: 10px; background: #0a1a20; border: 1px solid #2b4c56; color: #c3d6dc; font-size: 14px; }
.ranking-unit-detail > strong { display: block; color: #83d4df; font-size: 16px; margin-bottom: 8px; }
.ranking-unit-detail > small { color: #91adb7; font-size: 13px; }
.ranking-unit-detail p { margin: 4px 0; overflow-wrap: anywhere; }
.ranking-tactics > summary { padding: 10px 0; cursor: pointer; color: #65d6e2; }
.ranking-tactics ol { padding-left: 24px; margin: 0; }
.ranking-tactics li { margin-bottom: 6px; overflow-wrap: anywhere; }
.ranking-own .ranking-detail { max-height: 220px; overflow-y: auto; }
