/* Monster selection and the next-adventure loop share the existing space palette. */
.hunt-lobby{max-width:520px;margin:auto;padding:16px 4px 24px}.hunt-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.hunt-heading h1{font-size:24px;line-height:1.5;margin:0;letter-spacing:-.03em}.hunt-heading .eyebrow{margin:0 0 6px;color:#a9d6c9;font-size:10px;letter-spacing:.13em}.hunt-total{flex-shrink:0;text-align:center;color:#d3f7b9;font-size:10px}.hunt-total b{display:block;font-size:32px;line-height:1.1}.hunt-lead{font-size:13px;color:#b7c7df;margin:8px 0 20px}.hunt-settings{padding:14px;border:1px solid #b7d6ff30;border-radius:18px;background:#19233de0;margin-bottom:18px}.hunt-lengths{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.hunt-lengths button{min-height:66px;background:#0b132a;border:1px solid #7995ba55;border-radius:12px;color:#c7d4ed;font-size:12px;cursor:pointer}.hunt-lengths b{font-size:26px;margin-right:4px}.hunt-lengths small{display:block;font-size:10px;margin:3px 0}.hunt-lengths [aria-pressed=true]{background:#d5f5b7;color:#182d2e;border-color:#d5f5b7;box-shadow:0 0 16px #c7faab15}.hunt-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:13px}.hunt-options label{font-size:11px;color:#becbe1}.hunt-options select{width:100%;min-width:0;min-height:42px;padding:8px 5px;margin-top:5px;border:1px solid #94a6c966;border-radius:9px;background:#101a30;color:#f1f5ff;font:inherit;font-size:13px}.hunt-target{margin:12px 0 0;font-size:12px;color:#bfcde4;text-align:center}.hunt-target b{color:#d5f5b7;font-size:15px}.hunt-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hunt-card{position:relative;min-width:0;display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:14px 12px 10px;border:1px solid #b4c9ed40;border-radius:20px;background:radial-gradient(ellipse at 50% 38%,color-mix(in srgb,var(--monster-color) 40%,transparent),transparent 70%),#16213a;color:#edf4ff;cursor:pointer;transition:transform .15s,border-color .15s;overflow:hidden}.hunt-card:active{transform:scale(.97)}.hunt-card:focus-visible{outline:3px solid #d6ffb3;outline-offset:3px}.hunt-region{font-size:14px;font-weight:700;color:#d2f1bf}.hunt-card>img{display:block;width:100%;height:130px;object-fit:contain;margin:2px 0 7px;filter:drop-shadow(0 8px 12px #0006)}.hunt-card-copy b{font-size:18px;display:block}.hunt-card-copy small{font-size:10px;color:#b0c0da;display:block;margin-top:4px}.hunt-card-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #bfd1ed20;padding-top:9px;margin-top:11px;font-size:10px;color:#b6c7df}.hunt-card-bottom>b{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;color:#16223a;background:#d7efc6;font-size:20px}.hunt-resumes{margin:0 0 16px}.hunt-resumes h2{font-size:15px;margin:0 0 8px}.hunt-resumes button{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;background:#334663;border:1px solid #b6d0f955;border-radius:12px;padding:12px;color:#edf4ff;text-align:left;margin-top:7px;font-size:14px}.hunt-resumes small,.hunt-resumes b>span{display:block;font-size:10px;color:#c4d4ed;margin-top:5px}.hunt-resumes b{text-align:right;white-space:nowrap}.home-hunt-link{display:block;margin:18px auto 0;color:#d6efbd}.hunt-lobby>.defeated-history{margin:20px 0;border-top:1px solid #c6d5f033;padding-top:16px}.hunt-result-actions{margin:14px 0 20px}.hunt-result-actions .primary{font-size:17px;margin:0;min-height:54px}.hunt-result-actions>.text-button{display:block;margin:12px auto;color:#bed1e7}.hunt-results .rally-status>strong{font-size:clamp(22px,7vw,32px)}.hunt-results .rally-status>p{font-size:12px;margin:7px 0 0}.hunt-review{border:1px solid #afc6e43d;border-radius:15px;padding:14px;margin:16px 0;background:#152039}.hunt-review summary{font-size:14px;cursor:pointer}.hunt-review>div{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}.hunt-review article{background:#ffffff0c;border-radius:10px;padding:12px;text-align:center}.hunt-review img,.hunt-review svg{width:100%;height:65px;object-fit:contain;display:block;margin-bottom:8px}.hunt-review b{font-size:12px}.hunt-pause{display:block;margin:10px auto 2px;font-size:11px}.hunt-record-summary{margin-top:22px;border-top:1px solid #c5d4ed33;padding-top:18px}.hunt-record-summary>p{font-size:13px;line-height:1.8}.hunt-record-summary .defeated-history{margin:15px 0}.hunt-results .footnote{color:#9fb3cf}.hunt-results .personal-totals b{font-size:30px}
@media(max-width:360px){.hunt-heading h1{font-size:20px}.hunt-lobby{padding-top:12px}.hunt-grid{gap:9px}.hunt-card{padding:12px 10px 8px;border-radius:16px}.hunt-card>img{height:105px}.hunt-region{font-size:13px}.hunt-card-copy b{font-size:16px}.hunt-options select{font-size:12px}.hunt-card-bottom{font-size:9px}.hunt-settings{padding:11px}.hunt-result-actions .primary{font-size:15px}}

.hunt-review .prefecture-picture path{fill:#cbe9c4;stroke:#9cc0b4;stroke-width:1;vector-effect:non-scaling-stroke}

/* Inline selection: no standalone lobby or global length/filter controls. */
.monster-shelf{margin:20px 0;padding:16px 12px;border:1px solid #aec9ee30;border-radius:20px;background:#101d32;scroll-margin-top:20px}.monster-shelf h2{font-size:16px;color:#e8efff;margin:0 0 12px}.monster-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.monster-mini{min-width:0;border:1px solid #a3c2eb26;border-radius:13px;background:#1b2941;color:#edf5ff;padding:8px 4px;text-align:center}.monster-mini img{display:block;object-fit:contain;width:100%;height:76px;margin:0 auto 6px}.monster-mini b{display:block;font-size:12px;overflow-wrap:anywhere}.monster-mini small{display:block;color:#aebfd7;font-size:10px;margin-top:3px}.monster-mini:focus-visible{outline:3px solid #d8f8b6;outline-offset:2px}.home-battle>.monster-shelf{margin-top:24px}

.saved-hunt-picker h2{font-size:22px}.saved-hunt-picker p{font-size:13px;color:#becce0}.saved-hunt-picker small{display:block;font-size:12px;color:#becce0;margin-top:6px}

.monster-mini-meta{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:9px;padding-top:9px;border-top:1px solid #ffffff18}.monster-count{display:flex;align-items:baseline;justify-content:center;gap:1px;background:#cfeba6;color:#26394a;border-radius:99px;min-width:30px;height:30px;padding:5px}.monster-count b{font-size:16px;line-height:20px}.monster-mini .monster-count small{color:inherit;font-size:8px;margin:0}.monster-format{display:flex;align-items:center;gap:2px}.monster-format .format-icon{width:20px;height:19px}.monster-format .format-name-icon{font-size:12px;padding:2px;border-width:1px;border-radius:3px}.monster-format i{font-size:12px;font-style:normal}.monster-shelf h2{text-align:left;font-size:18px}
@media(max-width:360px){.monster-mini-meta{gap:3px}.monster-format .format-icon{width:17px}.monster-count{min-width:27px;width:27px;height:27px;padding:4px}.monster-count b{font-size:14px}}

.monster-mini{cursor:pointer;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease}.monster-mini:is(:hover,:focus-visible){background:#2b3e57;border-color:#d2f4a6;box-shadow:0 0 0 1px #d2f4a650,0 8px 22px #0003}.monster-mini:is(:hover,:focus-visible)>img{animation:monster-card-float 1.65s ease-in-out infinite}@keyframes monster-card-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}body.motion-reduced .monster-mini:is(:hover,:focus-visible)>img{animation:none}

.monster-mini[data-entering]:not(.is-seen){opacity:0;transform:translateY(20px)}.monster-mini[data-entering].is-seen{animation:monster-card-enter .5s cubic-bezier(.16,1,.3,1) var(--enter-delay,0ms) both}.monster-mini.is-choosing{background:#3d5264;border-color:#d2f4a6;box-shadow:0 0 0 2px #d2f4a675;opacity:1}.monster-mini.is-choosing>img{animation:monster-card-pick .34s cubic-bezier(.2,.7,.2,1) both}@keyframes monster-card-enter{from{opacity:0;transform:translateY(20px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes monster-card-pick{0%{transform:translateY(0) scale(1)}55%{transform:translateY(-11px) scale(1.08)}100%{transform:translateY(-5px) scale(1.03)}}body.motion-reduced .monster-mini[data-entering]:not(.is-seen){opacity:1;transform:none}body.motion-reduced .monster-mini[data-entering].is-seen,body.motion-reduced .monster-mini.is-choosing>img{animation:none}

.monster-count{flex:0 0 30px;width:30px;align-items:center;padding:0}.monster-count b{white-space:nowrap;overflow-wrap:normal;line-height:1}.monster-format{min-width:0;flex-shrink:0}@media(max-width:360px){.monster-mini-meta{gap:3px;justify-content:space-between}.monster-count{flex-basis:24px;width:24px;min-width:24px;height:24px}.monster-count b{font-size:12px}.monster-format{gap:1px}.monster-format .format-icon{width:15px;height:16px}.monster-format .format-name-icon{font-size:10px;padding:1px}.monster-format i{font-size:10px}.monster-mini{padding-inline:3px}.monster-mini-grid{gap:7px}}

/* Five visible segments + number communicate strength without relying on color. */
.monster-strength{--strength-color:#bfe999;display:block;margin:9px 3px 1px}.strength-label{display:flex;justify-content:space-between;align-items:baseline;color:#d1dced;font-size:10px;font-weight:600;line-height:1.3}.strength-label>span{color:var(--strength-color);font-size:12px;font-weight:800}.strength-max{color:#93a5bf;font-size:9px;font-weight:400;margin-left:1px}.strength-gauge{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;align-items:end;height:14px;margin-top:4px}.strength-gauge i{display:block;height:6px;border:1px solid #7486a24d;border-radius:2px;background:#0b1425}.strength-gauge i:nth-child(2){height:8px}.strength-gauge i:nth-child(3){height:10px}.strength-gauge i:nth-child(4){height:12px}.strength-gauge i:nth-child(5){height:14px}.strength-gauge .is-filled{background:var(--strength-color);border-color:var(--strength-color)}.monster-strength[data-strength="3"],.monster-strength[data-strength="4"]{--strength-color:#ffd37c}.monster-strength[data-strength="5"]{--strength-color:#ff9c92}
@media(max-width:360px){.monster-strength{margin-inline:2px}.strength-gauge{gap:2px}.strength-label{font-size:9px}}

/* Region belongs to the quiz specification, separate from the monster identity. */
.monster-mini{position:relative}.monster-quiz-info{display:block;border-top:1px solid #ffffff24;margin:9px 2px 0;padding-top:8px}.monster-area{display:block;border:1px solid #a6c7e650;border-radius:8px;background:#2a405b;color:#e5f2ff;font-size:12px;font-weight:700;line-height:1.7;padding:2px 1px}.monster-quiz-info .monster-mini-meta{border:0;margin-top:7px;padding-top:0}.monster-count{width:auto;min-width:36px;flex-basis:36px;border-radius:7px;gap:2px}.monster-count b{font-size:14px}.monster-cleared{position:absolute;top:5px;right:4px;padding:3px 5px;border:1px solid #d8f6a577;border-radius:99px;background:#21493deb;color:#dbffa9;font-size:9px;font-weight:700;box-shadow:0 2px 5px #0003}.monster-cleared reading-text{white-space:nowrap}
@media(max-width:360px){.monster-area{font-size:10px}.monster-count{min-width:31px;flex-basis:31px}.monster-count b{font-size:12px}.monster-cleared{font-size:8px;padding:2px 4px}}

/* Compact geographic tags retain the start of the full region name. */
.monster-areas{display:flex;justify-content:center;align-content:center;flex-wrap:wrap;gap:3px;min-height:46px}.monster-area{padding:1px 5px;font-size:11px;align-self:center;white-space:nowrap}.monster-mini .monster-choices{display:block;font-size:10px;color:#c2d4e8;margin-top:4px}.monster-resume-label{display:inline-block;font-size:10px;color:#d6f7ab}.monster-mini>img{contain:paint}.monster-mini{content-visibility:auto;contain-intrinsic-size:auto 230px}
@media(max-width:360px){.monster-area{font-size:10px;padding:1px 3px}.monster-areas{min-height:43px}}

@media(max-width:360px){.monster-format{gap:0}.monster-format .format-icon{width:12px;height:14px}.monster-format i{font-size:8px}.monster-format .format-name-icon{font-size:9px;padding:0}.monster-count{min-width:34px;flex-basis:34px}.monster-count b{font-size:11px}.monster-mini .monster-count small{font-size:7px}}

.monster-shelf-more{text-align:center;margin-top:14px;color:#aebfd7}.monster-shelf-more .text-button{min-height:44px;min-width:140px;margin:0 auto 6px}.monster-shelf-more small{display:block;font-size:11px}

/* Compact, tap-first filters. The cards and saved encounters keep their own rules. */
.shelf-filters{margin:0 0 14px}.shelf-status-filters,.shelf-strength-filters{display:grid;gap:5px}.shelf-status-filters{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr)}.shelf-strength-filters{grid-template-columns:repeat(6,minmax(0,1fr))}.shelf-filters button,.shelf-empty button{min-height:44px;min-width:0;border:1px solid #a6c7e650;border-radius:12px;background:#1b2941;color:#d9e7fb;font:inherit;font-size:12px;font-weight:700;padding:5px 2px;cursor:pointer}.shelf-filters button[aria-pressed="true"]{background:#d6f3ac;border-color:#d6f3ac;color:#1c3040;box-shadow:0 2px 0 #7c9d5a}.shelf-filters button:focus-visible,.shelf-empty button:focus-visible{outline:3px solid #fff;outline-offset:2px}.shelf-status-filters button>span{font-size:15px}.shelf-strength-heading{font-size:11px;color:#c2d4e8;margin:9px 0 5px}.shelf-strength-filters b{font-size:16px;line-height:1}.shelf-filter-gauge{display:flex;gap:2px;margin:4px auto 0;max-width:30px}.shelf-filter-gauge i{flex:1;height:4px;border-radius:2px;background:currentColor;opacity:.2}.shelf-filter-gauge i.is-filled{opacity:1}.shelf-empty{text-align:center;padding:12px 0;color:#c2d4e8;font-size:13px}.shelf-empty button{padding:8px 20px}

/* Preserve released phone layout for four-digit secret-boss HP. */
.monster-mini[data-hunt-monster^="enc-secret-"] .monster-count{width:auto;min-width:54px;flex-basis:54px;padding:3px}
.monster-mini[data-hunt-monster^="enc-secret-"] .monster-mini-meta{flex-wrap:wrap;justify-content:center;gap:4px}

.shelf-format-heading{margin:9px 0 5px;color:#c2d4e8;font-size:11px}.shelf-format-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.shelf-format-filters button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px 2px}.shelf-format-filters small{font-size:10px;line-height:1.4}.shelf-format-filters .monster-format{min-height:23px}.shelf-status-filters button{overflow-wrap:anywhere}
