/* Local reading sizes and content flow. Keep prepare/signin composition independent. */
.interface-root .if-page-map .hf-map-current{height:auto;min-height:10cqw;padding:.7cqw 1cqw;gap:1cqw}
.interface-root .if-page-map .hf-map-current>img{width:5.8cqw;height:5.8cqw;flex:none}
.interface-root .if-page-map .hf-map-current>div{min-width:0}
.interface-root .if-page-map .hf-map-current strong{font-size:max(11px,3cqw);line-height:1.35;overflow:hidden;text-overflow:ellipsis}
.interface-root .if-page-map .hf-map-current small{font-size:max(10px,2.8cqw);line-height:1.35;margin-top:.25cqw}

/* Ball descriptions get a taller preview; the collection remains its own scroll region. */
.interface-root .if-page-balls .cf-ball-preview{height:47cqw;min-height:167px}
.interface-root .if-page-balls .cf-ball-description{font-size:max(11.5px,3.2cqw);line-height:1.4;min-height:0;margin:.7cqw 0 1cqw}
.interface-root .if-page-balls .cf-ball-stats>div{min-height:max(18px,4.8cqw);padding:.35cqw .6cqw;gap:.4cqw}
.interface-root .if-page-balls .cf-ball-stats dt{font-size:max(10.5px,2.95cqw);gap:.4cqw}
.interface-root .if-page-balls .cf-ball-stats dd{font-size:max(11px,3.1cqw)}
.interface-root .if-page-balls .cf-owned-seal{font-size:max(10px,2.8cqw);padding:.4cqw}
.interface-root .if-page-balls .cf-ball-caption>span{font-size:max(10.5px,2.9cqw)}
.interface-root .if-page-balls .cf-sidebar-tab>strong{font-size:max(11px,3.1cqw);letter-spacing:0}
.interface-root .if-page-balls .cf-ball-actions{height:11cqw;min-height:39px}
.interface-root .if-page-balls .cf-ball-actions>.cf-gloss-button{font-size:max(11.5px,3.2cqw);gap:.3cqw}
.interface-root .if-page-balls .cf-upgrade-caption{transform:translateY(-1.7cqw)}
.interface-root .if-page-balls .cf-button-price{font-size:max(10px,2.8cqw);height:1.2em;bottom:1cqw}
.interface-root .if-page-balls .cf-button-price>img{height:1em;width:1em}
.interface-root .if-page-balls .cf-unlock-ball .cf-cost{font-size:max(10.5px,2.9cqw)}
.interface-root .if-page-balls .cf-library-heading{height:9cqw;min-height:32px;gap:.7cqw}
.interface-root .if-page-balls .cf-library-count{font-size:max(10.5px,2.9cqw);gap:.3cqw}
.interface-root .if-page-balls .cf-sort{font-size:max(10.5px,2.9cqw);max-width:23cqw;min-width:0;padding:.7cqw .3cqw}
.interface-root .if-page-balls .cf-ball-search{font-size:max(11.5px,3.2cqw);line-height:1.4}
.interface-root .if-page-balls .cf-ball-grid{grid-auto-rows:27cqw;min-height:27cqw}
.interface-root .if-page-balls .cf-ball-card{height:27cqw;min-height:0}
.interface-root .if-page-balls .cf-card-ball{top:3cqw;height:15cqw;width:15cqw}
.interface-root .if-page-balls .cf-card-state{top:.4cqw;right:.4cqw;font-size:max(10px,2.8cqw);padding:.25cqw .6cqw;line-height:1.2}
.interface-root .if-page-balls .cf-card-name{bottom:6cqw;font-size:max(11.5px,3.2cqw);line-height:1.3}
.interface-root .if-page-balls .cf-card-level{bottom:1.1cqw;font-size:max(10.5px,2.9cqw);line-height:1.2;gap:.5cqw}
.interface-root .if-page-balls .cf-card-level .cf-stars>img{width:2.2cqw;height:2.5cqw}

/* Six talent steps keep their height. A short viewport scrolls rather than compressing copy. */
.interface-root .if-page-talent>.if-body{overflow-y:auto;overflow-x:hidden}
.interface-root .if-page-talent .cf-talent{height:auto;min-height:100%;grid-template-rows:minmax(100cqw,1fr) minmax(30cqw,auto)}
.interface-root .if-page-talent .cf-talent-upper{min-height:100cqw}
.interface-root .if-page-talent .cf-branch-header>small{font-size:max(10.5px,2.9cqw)}
.interface-root .if-page-talent .cf-node-level{font-size:max(10.5px,2.9cqw)}
.interface-root .if-page-talent .cf-detail-heading{font-size:max(12px,3.4cqw)}
.interface-root .if-page-talent .cf-detail-description{font-size:max(11.5px,3.2cqw);line-height:1.5;overflow-wrap:anywhere}
.interface-root .if-page-talent .cf-detail-stat{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.6cqw}
.interface-root .if-page-talent .cf-detail-stat>span{font-size:max(10.5px,2.9cqw);white-space:normal;line-height:1.3}
.interface-root .if-page-talent .cf-milestone-detail>strong{font-size:max(10.5px,2.9cqw);flex-wrap:wrap;white-space:normal;line-height:1.4}
.interface-root .if-page-talent .cf-milestone-detail>p{font-size:max(10.5px,2.9cqw);line-height:1.4}
.interface-root .if-page-talent .cf-talent-purse>small,.interface-root .if-page-talent .cf-level-total,
.interface-root .if-page-talent .cf-talent-upgrade>small{font-size:max(10.5px,2.9cqw);line-height:1.4}
.interface-root .if-page-talent .cf-upgrade-cost{font-size:max(11px,3.1cqw)}
.interface-root .if-page-talent .cf-talent-purse{margin-top:0;padding:1.5cqw 1cqw;gap:.4cqw}
.interface-root .if-page-talent .cf-level-total{position:static;transform:none;flex-wrap:wrap;justify-content:center;white-space:normal;max-width:100%}
.interface-root .if-page-talent .cf-talent-upgrade{padding-top:1cqw;gap:.8cqw}

/* Product text determines card height; the catalogue scrolls independently of its tabs. */
.interface-root .if-page-shop .hf-shop{grid-template-rows:30cqw 7.5cqw minmax(0,1fr) 15cqw}
.interface-root .if-page-shop .hf-shop-promo p{font-size:max(11px,3.1cqw);line-height:1.35}
.interface-root .if-page-shop .hf-shop-items{grid-template-rows:none;grid-auto-rows:auto;align-content:start;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-bottom:1cqw}
.interface-root .if-page-shop .hf-shop-item{grid-template-rows:12cqw auto minmax(2.7em,auto) 9cqw;gap:.6cqw;min-height:39cqw;padding:2cqw 1.7cqw;font-size:max(11.5px,3.2cqw)}
.interface-root .if-page-shop .hf-shop-item>h3{font-size:max(12px,3.35cqw);line-height:1.3;white-space:normal}
.interface-root .if-page-shop .hf-shop-item>p{font-size:max(11.5px,3.2cqw);line-height:1.4;overflow-wrap:anywhere}
.interface-root .if-page-shop .hf-shop-item>.hf-action{font-size:max(11.5px,3.2cqw);height:9cqw;max-height:none}
.interface-root .if-page-shop .hf-shop-item.is-wide{grid-template-rows:auto minmax(2.7em,auto) 9cqw;min-height:29cqw;padding:2cqw 3cqw}
.interface-root .if-page-shop .hf-shop-item.is-wide>h3{font-size:max(12.5px,3.5cqw)}
.interface-root .if-page-shop .hf-shop-item.is-wide>p{font-size:max(11.5px,3.2cqw);line-height:1.4}
.interface-root .if-page-shop .hf-shop-quick{min-height:23cqw;padding-bottom:1cqw}
.interface-root .if-page-shop .hf-shop-mini>strong{font-size:max(11px,3.1cqw);line-height:1.3}
.interface-root .if-page-shop .hf-shop-footer>p{font-size:max(11px,3.1cqw);line-height:1.4;padding:1cqw 2cqw}

/* Settings also appears in a named dialog, so scope by its unique content class. */
.interface-root .if-page-settings>.if-body{overflow-y:auto;overflow-x:hidden}
.interface-root .if-page-settings .hf-settings,.interface-root .if-dialog-body>.hf-settings{height:auto;min-height:100%;padding:0 2cqw 19cqw}
.interface-root .hf-settings .hf-settings-box{height:auto;grid-template-rows:27cqw 34cqw auto 4cqw auto auto;gap:2cqw;padding:3cqw 4cqw 6cqw;overflow:visible}
.interface-root .hf-settings .hf-setting-cards{padding:1cqw 1cqw 0}
.interface-root .hf-settings .hf-setting-card{padding:2.5cqw 1.3cqw 2cqw}
.interface-root .hf-settings .hf-setting-card>strong{font-size:max(13px,3.7cqw);letter-spacing:.025em;line-height:1.3}
.interface-root .hf-settings .hf-setting-switch{height:8cqw;min-height:28px}
.interface-root .hf-settings .hf-setting-switch>span{font-size:max(11px,3.1cqw);line-height:1.4}
.interface-root .hf-settings .hf-setting-card>.hf-action{height:8cqw;min-height:28px;font-size:max(11.5px,3.2cqw)}
.interface-root .hf-settings .hf-nickname-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;padding:1cqw 1cqw 0}
.interface-root .hf-settings .hf-nickname-row>label{font-size:max(11.5px,3.2cqw)}
.interface-root .hf-settings .hf-nickname{font-size:max(12px,3.3cqw);max-width:none;width:100%;height:9cqw;min-height:32px}
.interface-root .hf-settings .hf-nickname-row>.hf-action{font-size:max(11.5px,3.2cqw);height:9cqw;min-height:32px;padding:1cqw 2cqw}
.interface-root .hf-settings .hf-save-actions>.hf-action{font-size:max(12px,3.4cqw);height:11cqw;min-height:39px;padding:1cqw 1.5cqw;gap:.6cqw}
.interface-root .hf-settings .hf-settings-note{font-size:max(11px,3.1cqw)!important;line-height:1.5;overflow-wrap:anywhere}
.interface-root .hf-settings .hf-settings-bottom-witch{height:17cqw;bottom:1cqw}
