/* Fixed world screens: the case stays put; only repeated inventories scroll. */
#modal[data-view] .world-page.game-page { height:100%; min-height:0; display:flex; flex-direction:column; gap:10px; overflow:hidden; color:var(--page-ink,#093c50); }
#modal[data-view] .world-page .page-list { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; scrollbar-width:thin; scrollbar-color:#429bb0 #e8f0e9; }
#modal[data-view] .world-page :is(.page-toolbar,.page-tabs,.page-footer) { flex:none; }
#modal[data-view] .world-page :is(.world-stage,.world-tools-content,.world-aquarium-content,.world-travel-content,.world-trip-content) { display:flex; flex-direction:column; gap:10px; flex:1; min-height:0; min-width:0; overflow:hidden; }
#modal[data-view] .world-page h3 { margin:0; font-size:17px; font-weight:850; line-height:1.45; color:#07506d; }
#modal[data-view] .world-page p { margin:0; font-size:13px; line-height:1.7; color:#52717e; }
#modal[data-view] .world-page small { font-size:11px; line-height:1.5; color:#52717e; }
#modal[data-view] .world-page button { min-width:0; }
#modal[data-view] .world-page .world-page-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:34px; color:#52717e; font-size:12px; }
#modal[data-view] .world-page-toolbar b { color:#07506d; }
#modal[data-view] .world-wallet { display:inline-flex; align-items:center; gap:5px; margin-right:auto; white-space:nowrap; }
#modal[data-view] .world-wallet b { color:#07506d; font-size:20px; font-weight:850; font-variant-numeric:tabular-nums; }
#modal[data-view] .world-wallet .ui-sprite { width:24px; height:24px; }
#modal[data-view] .world-text-button { background:transparent; border:0; border-image:none; border-radius:7px; padding:6px 0; color:#087693; font-size:12px; font-weight:750; line-height:1.5; min-height:32px; }
#modal[data-view] .world-text-button:hover { color:#043f5b; text-decoration:underline; text-underline-offset:3px; }
dialog#modal[data-view] .world-page :is(.world-page-tabs,.shop-tabs,.world-tank-tabs) { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); width:100%; gap:6px; margin:0; padding:0 1px 4px; overflow:visible; }
dialog#modal[data-view] .world-page :is(.world-page-tabs,.shop-tabs,.world-tank-tabs)>button { min-width:0; padding-inline:3px; }
dialog#modal[data-view] .world-page .world-page-tabs[aria-label="筛选洲"] { grid-auto-flow:row; grid-template-columns:repeat(4,minmax(0,1fr)); }
#modal[data-view] .world-page :is(.world-page-tabs,.shop-tabs,.world-tank-tabs)>button { flex:1 0 auto; min-height:38px; padding:8px 12px; font-size:12px; border-radius:10px; }
#modal[data-view] .world-page .shop-tabs>button { padding-inline:10px; }
#modal[data-view] .world-page .world-tank-tabs>button { min-height:32px; padding:6px 8px; font-size:11px; }
#modal[data-view] .world-page .world-tank-tabs small { font-size:10px; color:inherit; margin-left:4px; }
#modal[data-view] .world-page .page-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0; padding:10px 0 0; border-top:1px solid #bad7dd; }
#modal[data-view] .world-page .world-inline-footer { min-height:33px; padding-top:4px; color:#52717e; font-size:11px; line-height:1.5; }
#modal[data-view] .world-page .world-inline-footer>button:only-child { margin-left:auto; }
#modal[data-view] .world-page .world-price-footer>div { min-width:0; }
#modal[data-view] .world-page .world-price-footer strong { display:block; font-size:22px; font-weight:850; color:#07506d; line-height:1.35; }
#modal[data-view] .world-page .world-price-footer small { display:block; font-size:10px; }
#modal[data-view] .world-page .world-price-footer>button { width:150px; flex:none; min-height:44px; font-size:13px; }
#modal[data-view] .world-page .world-note { color:#64808b; font-size:12px; line-height:1.7; }
#modal[data-view] .world-page .world-info-panel { padding:16px; border:1px solid #c3dce0; border-radius:13px; background:#f5faf4; }
#modal[data-view] .world-page .world-info-panel h3 { font-size:14px; margin:0 0 6px; }
#modal[data-view] .world-page .world-info-panel p+p { margin-top:7px; }
#modal[data-view] .world-page .world-page-lead { flex:none; }
#modal[data-view] .world-page .world-page-lead h3 { font-size:16px; margin:0 0 4px; }
#modal[data-view] .world-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:9px; min-height:120px; height:100%; padding:16px; color:#07506d; }
#modal[data-view] .world-empty b { font-size:17px; line-height:1.5; }
#modal[data-view] .world-empty p { font-size:12px; }
#modal[data-view] .world-empty>button { margin-top:4px; }

/* Merchandise: select an item to read its complete explanation. */
#modal[data-view] .world-supply-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:start; gap:10px; padding:2px 3px 6px 1px; }
#modal[data-view] :is(.world-supply-row,.world-care-row,.world-journal-card,.world-local-fish) { border:8px solid transparent; border-image:var(--page-card-art) 44 fill / 8px / 0 stretch; background:#fff9e9; border-radius:13px; padding:8px; box-shadow:0 2px 0 #0a5a7212; }
#modal[data-view] .world-supply-row { display:flex; align-items:center; gap:8px; min-height:110px; min-width:0; }
#modal[data-view] .world-item-main { display:flex; flex:1; align-items:center; gap:10px; padding:0; border:0; background:none; text-align:left; color:#07506d; }
#modal[data-view] .world-item-art { flex:none; display:grid; place-items:center; }
#modal[data-view] .world-item-art :is(.world-sprite,.ui-sprite) { width:58px; height:58px; }
#modal[data-view] .world-item-copy { display:flex; flex-direction:column; gap:4px; min-width:0; }
#modal[data-view] .world-item-copy>b { font-size:15px; line-height:1.45; font-weight:850; }
#modal[data-view] .world-item-copy>span { color:#23869b; font-size:10px; line-height:1.4; }
#modal[data-view] .world-item-copy>small { font-size:10px; line-height:1.5; }
#modal[data-view] .world-item-buy { display:flex; flex-direction:column; align-items:center; gap:5px; flex:0 0 72px; }
#modal[data-view] .world-item-buy>strong { display:flex; align-items:center; gap:4px; color:#07506d; font-size:19px; line-height:1.2; }
#modal[data-view] .world-item-buy>strong>.ui-sprite { width:20px; height:20px; }
#modal[data-view] .world-item-buy>button { width:72px; padding:3px 4px; min-height:38px; border-width:8px; border-image-width:8px; font-size:12px; line-height:1.3; }
#modal[data-view] .world-shop-footer>div { min-width:0; }
#modal[data-view] .world-shop-footer b { display:block; font-size:13px; color:#07506d; line-height:1.4; }
#modal[data-view] .world-shop-footer small { display:block; font-size:10px; margin-top:3px; }
#modal[data-view] .world-shop-footer>button { min-height:44px; font-size:12px; flex:none; }
#modal[data-view] .world-product-page>.world-page-toolbar>.world-wallet { margin-right:0; margin-left:auto; }
#modal[data-view] .world-product-content { justify-content:center; }
#modal[data-view] .world-product-hero { display:flex; align-items:center; justify-content:center; gap:22px; flex:none; }
#modal[data-view] .world-product-hero>:is(.ui-sprite,.world-sprite) { width:98px; height:98px; flex:none; }
#modal[data-view] .world-product-hero>div { display:flex; flex-direction:column; gap:7px; }
#modal[data-view] .world-product-hero b { color:#07506d; font-size:20px; }
#modal[data-view] .world-product-hero span { color:#52717e; font-size:12px; }
#modal[data-view] .world-product-equip { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:11px; color:#52717e; }
#modal[data-view] .world-product-equip>button { font-size:12px; min-height:42px; }
#modal[data-view] .world-tools-page>.world-page-toolbar .world-wallet { margin:0; }
#modal[data-view] .world-restock-list { display:flex; flex-direction:column; gap:8px; }
#modal[data-view] .world-restock-row { display:flex; align-items:center; justify-content:space-between; gap:14px; flex:none; padding:15px 16px; border:1px solid #c3dce0; border-radius:12px; background:#f6fbf4; color:#52717e; font-size:12px; }
#modal[data-view] .world-restock-row b { color:#07506d; font-size:14px; }
#modal[data-view] .world-job-panel,#modal[data-view] .world-upgrade-panel { display:flex; flex-direction:row; align-items:center; justify-content:center; gap:22px; }
#modal[data-view] :is(.world-job-art,.world-upgrade-art)>span { width:115px; height:115px; }
#modal[data-view] :is(.world-job-panel,.world-upgrade-panel)>div:last-child { max-width:380px; min-width:0; }
#modal[data-view] :is(.world-job-panel,.world-upgrade-panel) p { margin-top:9px; }
#modal[data-view] .world-rules-grid { justify-content:center; }
#modal[data-view] .world-rules-grid .world-info-panel { flex:none; }

/* Water occupies the remaining panel; the original swimmer animation survives. */
#modal[data-view] .world-aquarium-page>.world-page-toolbar { font-size:11px; }
#modal[data-view] .world-aquarium-page>.world-page-toolbar>.world-text-button { margin-left:auto; }
#modal[data-view] .world-aquarium-content { gap:8px; }
#modal[data-view] .world-tank-stage { position:relative; }
#modal[data-view] .world-aquarium-page .aquarium-window { flex:1; width:100%; height:auto; min-height:0; margin:0; border-radius:15px; border-width:2px; box-shadow:none; }
#modal[data-view] .world-aquarium-page .tank-title { left:16px; top:15px; max-width:62%; }
#modal[data-view] .world-aquarium-page .tank-title b { font-size:22px; }
#modal[data-view] .world-aquarium-page .tank-title span { font-size:10px; margin-top:4px; }
#modal[data-view] .world-aquarium-page .tank-expand { top:12px; right:12px; font-size:11px; padding:7px 9px; }
#modal[data-view] .world-aquarium-page .tank-caption { bottom:9px; font-size:10px; }
#modal[data-view] .world-aquarium-page .tank-empty { gap:6px; }
#modal[data-view] .world-aquarium-page .tank-empty>.world-sprite { width:68px; height:68px; }
#modal[data-view] .world-aquarium-page .tank-empty>b { font-size:18px; }
#modal[data-view] .world-aquarium-page .tank-empty p { margin:0 0 5px; color:#efffff; font-size:12px; }
#modal[data-view] .world-aquarium-page .tank-empty>button { min-height:42px; font-size:12px; }
#modal[data-view] .world-aquarium-immersive>.world-page-toolbar,#modal[data-view] .world-aquarium-immersive>.world-page-tabs,#modal[data-view] .world-aquarium-immersive>.page-footer,#modal[data-view] .world-aquarium-immersive .world-tank-tabs { display:none; }
#modal[data-view] .world-care-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:start; gap:10px; padding:2px 2px 6px; }
#modal[data-view] .world-care-row { display:grid; grid-template-columns:85px minmax(0,1fr); gap:9px 12px; min-width:0; }
#modal[data-view] .world-care-art { background:none; padding:0; align-self:center; }
#modal[data-view] .world-care-row .care-copy h3 { font-size:15px; margin:0 0 4px; }
#modal[data-view] .world-care-row .care-copy p { font-size:11px; line-height:1.5; margin:0 0 4px; }
#modal[data-view] .world-care-row .care-copy>span { font-size:10px; line-height:1.5; color:#52717e; }
#modal[data-view] .world-page .care-progress { background:#d6e9ed; border-radius:5px; height:5px; margin-top:7px; }
#modal[data-view] .world-page .care-progress>i { background:#23a9c3; }
#modal[data-view] .world-care-row .care-actions { grid-column:1/-1; display:flex; gap:7px; margin:0; }
#modal[data-view] .world-page .care-actions>button { flex:1; min-height:42px; padding:3px 5px; font-size:12px; }
#modal[data-view] .world-capacity { display:flex; align-items:baseline; gap:12px; margin:14px 0 8px; color:#07506d; }
#modal[data-view] .world-capacity b { font-size:38px; line-height:1.1; }
#modal[data-view] .world-capacity span { font-size:20px; }
#modal[data-view] .world-single-fish-content { align-items:center; justify-content:center; text-align:center; }
#modal[data-view] .world-single-fish-art { width:min(100%,330px); flex:0 1 auto; min-height:0; }
#modal[data-view] .world-single-fish-art>.fish-paint { width:100%; }
#modal[data-view] .world-single-care .care-copy { width:min(100%,350px); flex:none; }
#modal[data-view] .world-single-care .care-copy h3 { font-size:20px; margin:0 0 6px; }
#modal[data-view] .world-single-care .care-copy p { font-size:14px; }
#modal[data-view] .world-single-care .care-copy>span { display:block; font-size:12px; color:#52717e; margin-top:6px; }
#modal[data-view] .world-single-care .world-note { max-width:360px; font-size:12px; }

/* The real map keeps a 3:2 coordinate system, including letterboxing. */
#modal[data-view] .world-map-content { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); align-items:stretch; gap:18px; flex:1; min-height:0; }
#modal[data-view] .world-map-stage { position:relative; min-height:0; width:100%; container-type:size; display:grid; place-items:center; overflow:hidden; border-radius:16px; background:transparent; }
#modal[data-view] .world-travel-page .world-travel-map { position:relative; width:min(100cqw,150cqh); height:auto; max-height:100%; max-width:100%; aspect-ratio:3/2; min-height:0; margin:0; border:0; box-shadow:none; border-radius:0; background-size:100% 100%; }
#modal[data-view] .world-map-preview { display:flex; flex-direction:column; justify-content:center; gap:14px; min-height:0; border:8px solid transparent; border-image:var(--page-card-art) 44 fill / 8px / 0 stretch; background:#fff9e9; padding:14px; }
#modal[data-view] .world-preview-heading>span { display:block; color:#23869b; font-size:10px; margin-bottom:5px; }
#modal[data-view] .world-map-preview .world-preview-heading h3 { font-size:23px; }
#modal[data-view] .world-preview-heading small { display:block; margin-top:4px; }
#modal[data-view] .world-preview-fish { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
#modal[data-view] .world-preview-fish>button { background:transparent; padding:0; color:#315f73; min-width:0; }
#modal[data-view] .world-preview-fish>button>span:not(.fish-paint) { display:block; font-size:11px; margin-top:4px; line-height:1.4; }
#modal[data-view] .world-map-preview>.primary-button { min-height:44px; flex:none; font-size:13px; }
#modal[data-view] .world-travel-map .map-label { font-size:9px; bottom:12px; left:12px; }
#modal[data-view] .world-travel-map .map-pin { min-width:0; width:27px; height:27px; font-size:10px; }
#modal[data-view] .world-travel-content>.world-page-tabs>button { flex:0 0 auto; min-height:33px; font-size:11px; padding:6px 11px; }
#modal[data-view] .world-destination-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:start; gap:9px; padding:2px 2px 6px; }
#modal[data-view] .world-destination-row { display:flex; align-items:center; gap:11px; min-height:72px; padding:12px; border:1px solid #b8d7df; border-radius:13px; background:#f7fbf4; color:#07506d; text-align:left; }
#modal[data-view] .world-destination-row>span:nth-child(2) { min-width:0; flex:1; }
#modal[data-view] .world-destination-row b { display:block; font-size:15px; line-height:1.5; }
#modal[data-view] .world-destination-row small { display:block; font-size:10px; margin-top:3px; }
#modal[data-view] .world-destination-row em { font-size:10px; font-style:normal; color:#23869b; white-space:nowrap; }
#modal[data-view] .world-destination-row .destination-number { width:29px; height:32px; flex:none; display:grid; place-items:center; color:#07506d; background:#e0f0f3; font-size:13px; border-radius:8px; }
#modal[data-view] .world-trip-cost { justify-content:center; }
#modal[data-view] .world-destination-intro { color:#52717e; font-size:13px; }
#modal[data-view] .world-bill { padding:12px 17px; border:1px solid #b9d7de; background:#f6faf3; border-radius:13px; }
#modal[data-view] .world-bill>div { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:11px 0; font-size:13px; color:#52717e; }
#modal[data-view] .world-bill>div+div { border-top:1px dashed #c5dde0; }
#modal[data-view] .world-bill b { color:#07506d; white-space:nowrap; }
#modal[data-view] .world-detail-links { display:flex; align-items:center; justify-content:space-between; gap:15px; }
#modal[data-view] .world-detail-links .source-link { margin:0; font-size:11px; }
#modal[data-view] .world-destination-fish { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-content:start; gap:9px; padding:2px 2px 6px; }
#modal[data-view] .world-local-fish { min-width:0; text-align:center; }
#modal[data-view] .world-local-fish>span { display:block; }
#modal[data-view] .world-local-fish>b { display:block; font-size:14px; line-height:1.45; color:#07506d; margin:5px 0 3px; }
#modal[data-view] .world-local-fish>small { font-size:10px; }
#modal[data-view] .world-travel-prepare { justify-content:center; }
#modal[data-view] .world-bait-suggestions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; flex:none; }
#modal[data-view] .world-bait-suggestions>button { display:flex; align-items:center; flex-direction:column; gap:4px; padding:12px 5px; border:1px solid #c1dce0; background:#f7fbf4; color:#07506d; border-radius:12px; }
#modal[data-view] .world-bait-suggestions :is(.ui-sprite,.world-sprite) { width:52px; height:52px; }
#modal[data-view] .world-bait-suggestions b { font-size:12px; line-height:1.4; }
#modal[data-view] .world-bait-suggestions small { font-size:10px; }
#modal[data-view] .world-guide-copy { justify-content:center; gap:16px; padding:16px 20px; border:1px solid #c1dce0; background:#f7fbf4; border-radius:15px; }
#modal[data-view] .world-guide-copy h3 { font-size:18px; }
#modal[data-view] .world-guide-copy p { font-size:14px; line-height:1.85; }

/* A fixed discovery meter and filters frame the only scrolling fish grid. */
#modal[data-view] .world-journal-progress { display:flex; align-items:center; gap:16px; min-height:35px; color:#52717e; font-size:12px; }
#modal[data-view] .world-journal-progress b { color:#07506d; }
#modal[data-view] .world-journal-progress>div { height:6px; flex:1; background:#d3e9ec; border-radius:8px; overflow:hidden; }
#modal[data-view] .world-journal-progress i { display:block; height:100%; background:#23a9c3; border-radius:8px; }
#modal[data-view] .world-journal-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-content:start; gap:10px; padding:2px 2px 6px; }
#modal[data-view] .world-journal-card { min-width:0; text-align:left; }
#modal[data-view] .world-journal-card>small { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:10px; color:#4a8292; }
#modal[data-view] .world-journal-card>small>span { color:#63858f; font-size:9px; }
#modal[data-view] .world-journal-card>.fish-paint { margin:10px 0; background-color:transparent; }
#modal[data-view] .world-journal-card h3 { font-size:17px; margin:5px 0; }
#modal[data-view] .world-journal-card p { font-size:11px; line-height:1.7; }
#modal[data-view] .world-journal-card.locked .fish-paint { opacity:.4; filter:grayscale(1); }
#modal[data-view] .world-journal-list>.world-empty { grid-column:1/-1; }

@media(max-width:760px) {
  #modal[data-view] .world-page.game-page { gap:8px; }
  #modal[data-view] .world-supply-list,#modal[data-view] .world-care-list,#modal[data-view] .world-destination-list { grid-template-columns:1fr; }
  #modal[data-view] .world-map-content { display:flex; flex-direction:column; gap:12px; }
  #modal[data-view] .world-map-stage { flex:none; width:100%; aspect-ratio:3/2; }
  #modal[data-view] .world-map-preview { flex:1; padding:12px; gap:12px; }
  #modal[data-view] .world-map-preview .world-preview-heading h3 { font-size:21px; }
  #modal[data-view] .world-journal-list,#modal[data-view] .world-destination-fish { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #modal[data-view] .world-supply-row { min-height:102px; }
  #modal[data-view] .world-item-art :is(.world-sprite,.ui-sprite) { width:53px; height:53px; }
  #modal[data-view] .world-page .world-price-footer strong { font-size:20px; }
  #modal[data-view] .world-page .world-price-footer>button { width:130px; font-size:12px; }
  #modal[data-view] .world-product-hero>:is(.ui-sprite,.world-sprite) { width:84px; height:84px; }
  #modal[data-view] .world-page .world-info-panel { padding:13px 15px; }
  #modal[data-view] .world-product-hero b { font-size:17px; }
  #modal[data-view] .world-page .world-product-content { gap:14px; }
  #modal[data-view] :is(.world-job-panel,.world-upgrade-panel) { flex-direction:column; gap:14px; text-align:center; }
  #modal[data-view] :is(.world-job-art,.world-upgrade-art)>span { width:80px; height:80px; }
  #modal[data-view] .world-capacity { justify-content:center; margin:10px 0 7px; }
  #modal[data-view] .world-capacity b { font-size:32px; }
  #modal[data-view] .world-single-fish-art { max-width:270px; }
  #modal[data-view] .world-page .world-tank-tabs>button { font-size:10px; padding:6px 5px; }
  #modal[data-view] .world-page .world-tank-tabs small { font-size:9px; margin-left:3px; }
  #modal[data-view] .world-page .tank-empty>.world-sprite { width:54px; height:54px; }
  #modal[data-view] .world-care-row { grid-template-columns:82px minmax(0,1fr); }
  #modal[data-view] .world-guide-copy { padding:16px; gap:13px; }
  #modal[data-view] .world-guide-copy h3 { font-size:17px; }
  #modal[data-view] .world-guide-copy p { font-size:13px; line-height:1.8; }
  #modal[data-view] .world-bill { padding:9px 14px; }
  #modal[data-view] .world-bill>div { padding:9px 0; font-size:12px; }
  #modal[data-view] .world-local-fish>b { font-size:13px; }
  #modal[data-view] .world-journal-card h3 { font-size:15px; }
  #modal[data-view] .world-journal-card p { font-size:10px; }
  #modal[data-view] .world-journal-card>small { font-size:9px; flex-wrap:wrap; gap:3px; }
}
@media(max-height:650px) and (orientation:portrait) {
  #modal[data-view] .world-map-preview { padding:8px 10px; gap:8px; }
  #modal[data-view] .world-map-preview :is(.world-preview-fish,.world-preview-description) { display:none; }
  #modal[data-view] .world-preview-heading>span { display:inline; font-size:9px; margin:0 8px 0 0; }
  #modal[data-view] .world-map-preview .world-preview-heading h3 { display:inline; font-size:18px; }
  #modal[data-view] .world-preview-heading small { font-size:10px; margin-top:3px; }
  #modal[data-view] .world-map-preview>.primary-button { min-height:38px; font-size:12px; }
}
@media(max-width:370px) {
  #modal[data-view] .world-page.game-page { gap:7px; }
  #modal[data-view] .world-page .world-page-toolbar { gap:7px; font-size:11px; min-height:29px; }
  #modal[data-view] .world-wallet b { font-size:18px; }
  #modal[data-view] .world-wallet .ui-sprite { width:22px; height:22px; }
  #modal[data-view] .world-page :is(.world-page-tabs,.shop-tabs)>button { padding:7px 9px; min-height:35px; font-size:11px; }
  #modal[data-view] .world-text-button { font-size:11px; min-height:30px; }
  #modal[data-view] .world-page p { font-size:12px; line-height:1.7; }
  #modal[data-view] .world-item-art :is(.world-sprite,.ui-sprite) { width:42px; height:42px; }
  #modal[data-view] .world-item-main { gap:7px; }
  #modal[data-view] .world-item-copy>b { font-size:14px; }
  #modal[data-view] .world-item-copy>small { font-size:9px; }
  #modal[data-view] .world-item-buy { flex-basis:62px; }
  #modal[data-view] .world-item-buy>button { width:62px; font-size:11px; padding-inline:2px; }
  #modal[data-view] .world-supply-row { padding:6px; gap:6px; }
  #modal[data-view] .world-shop-footer b { font-size:12px; }
  #modal[data-view] .world-shop-footer>button { font-size:11px; padding-inline:3px; }
  #modal[data-view] .world-page .world-price-footer strong { font-size:18px; }
  #modal[data-view] .world-page .world-price-footer>button { width:110px; font-size:11px; padding-inline:4px; }
  #modal[data-view] .world-page .world-price-footer small { font-size:9px; }
  #modal[data-view] .world-page .world-inline-footer { gap:7px; font-size:10px; }
  #modal[data-view] .world-product-hero { gap:14px; }
  #modal[data-view] .world-product-hero>:is(.ui-sprite,.world-sprite) { width:64px; height:64px; }
  #modal[data-view] .world-product-hero b { font-size:15px; }
  #modal[data-view] .world-product-hero span { font-size:11px; }
  #modal[data-view] .world-product-equip { gap:7px; font-size:10px; }
  #modal[data-view] .world-product-equip>button { font-size:11px; padding-inline:4px; }
  #modal[data-view] .world-page .world-info-panel { padding:11px 13px; }
  #modal[data-view] :is(.world-job-art,.world-upgrade-art)>span { width:64px; height:64px; }
  #modal[data-view] .world-page .world-tank-tabs { gap:4px; }
  #modal[data-view] .world-page .world-tank-tabs>button { padding-inline:3px; min-height:29px; font-size:9px; }
  #modal[data-view] .world-page .world-tank-tabs small { font-size:8px; margin-left:2px; }
  #modal[data-view] .world-page .tank-title { left:10px; top:10px; }
  #modal[data-view] .world-page .tank-title b { font-size:17px; }
  #modal[data-view] .world-page .tank-title span { font-size:9px; }
  #modal[data-view] .world-page .tank-expand { top:8px; right:7px; font-size:10px; padding:6px; }
  #modal[data-view] .world-page .tank-empty>b { font-size:16px; }
  #modal[data-view] .world-page .tank-empty>.world-sprite { width:36px; height:36px; }
  #modal[data-view] .world-page .tank-empty p { font-size:10px; }
  #modal[data-view] .world-page .tank-empty>button { min-height:36px; font-size:11px; padding-top:2px; padding-bottom:2px; }
  #modal[data-view] .world-page .tank-caption { font-size:8px; }
  #modal[data-view] .world-single-fish-art { max-width:200px; }
  #modal[data-view] .world-single-care .care-copy h3 { font-size:18px; }
  #modal[data-view] .world-care-row { grid-template-columns:65px minmax(0,1fr); gap:8px; padding:7px; }
  #modal[data-view] .world-guide-copy { padding:12px 14px; gap:10px; }
  #modal[data-view] .world-guide-copy h3 { font-size:16px; }
  #modal[data-view] .world-guide-copy p { font-size:12px; line-height:1.75; }
  #modal[data-view] .world-bill>div { font-size:11px; gap:8px; padding:8px 0; }
  #modal[data-view] .world-bill { padding:7px 12px; }
  #modal[data-view] .world-bait-suggestions { gap:6px; }
  #modal[data-view] .world-bait-suggestions>button { padding:8px 3px; }
  #modal[data-view] .world-bait-suggestions :is(.ui-sprite,.world-sprite) { width:40px; height:40px; }
  #modal[data-view] .world-bait-suggestions b { font-size:10px; }
  #modal[data-view] .world-bait-suggestions small { font-size:9px; }
  #modal[data-view] .world-travel-prepare .world-note { font-size:11px; }
  #modal[data-view] .world-destination-row { gap:8px; padding:10px; }
  #modal[data-view] .world-destination-row b { font-size:13px; }
  #modal[data-view] .world-destination-row em { font-size:9px; }
  #modal[data-view] .world-journal-card { padding:6px; }
  #modal[data-view] .world-journal-card h3 { font-size:14px; }
}

/* Short landscape screens use the width for fixed details, never a page scroll. */
@media(max-height:480px) and (orientation:landscape) {
  #modal[data-view] .world-page.game-page { gap:6px; }
  #modal[data-view] .world-page .world-page-toolbar { min-height:26px; font-size:11px; }
  #modal[data-view] .world-text-button { padding:2px 0; min-height:26px; font-size:11px; }
  #modal[data-view] .world-page :is(.world-page-tabs,.shop-tabs)>button { min-height:31px; padding:5px 11px; font-size:11px; }
  #modal[data-view] .world-page .page-footer { padding-top:5px; gap:9px; }
  #modal[data-view] .world-page .world-inline-footer { min-height:26px; }
  #modal[data-view] .world-page .world-price-footer strong { font-size:20px; }
  #modal[data-view] .world-page .world-price-footer>button { min-height:38px; }
  #modal[data-view] .world-page .world-stage { gap:7px; }
  #modal[data-view] .world-page .world-info-panel { padding:10px 13px; }
  #modal[data-view] .world-page h3 { font-size:15px; }
  #modal[data-view] .world-page p { font-size:11px; line-height:1.65; }
  #modal[data-view] .world-supply-list,#modal[data-view] .world-care-list,#modal[data-view] .world-destination-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #modal[data-view] .world-map-content { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:14px; }
  #modal[data-view] .world-map-stage { aspect-ratio:auto; height:100%; }
  #modal[data-view] .world-map-preview { gap:6px; padding:7px 10px; }
  #modal[data-view] .world-map-preview .world-preview-heading h3 { font-size:18px; }
  #modal[data-view] .world-preview-heading>span { display:none; }
  #modal[data-view] .world-preview-heading small { font-size:9px; margin-top:2px; }
  #modal[data-view] .world-map-preview .world-preview-description { display:none; }
  #modal[data-view] .world-preview-fish { gap:7px; }
  #modal[data-view] .world-preview-fish>button>.fish-paint { width:80%; margin:auto; }
  #modal[data-view] .world-preview-fish>button>span:not(.fish-paint) { font-size:9px; margin-top:2px; }
  #modal[data-view] .world-map-preview>.primary-button { min-height:35px; font-size:11px; padding-block:1px; }
  #modal[data-view] .world-journal-list,#modal[data-view] .world-destination-fish { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #modal[data-view] .world-item-art :is(.ui-sprite,.world-sprite) { width:42px; height:42px; }
  #modal[data-view] .world-supply-row { min-height:90px; padding:5px; }
  #modal[data-view] .world-item-copy>b { font-size:13px; }
  #modal[data-view] .world-item-copy>small { font-size:9px; }
  #modal[data-view] .world-item-buy { flex-basis:62px; }
  #modal[data-view] .world-item-buy>button { width:62px; }
  #modal[data-view] .world-product-page.game-page,#modal[data-view] .world-single-care.game-page { display:grid; grid-template-columns:minmax(0,1fr) 170px; grid-template-rows:28px minmax(0,1fr); gap:7px 16px; }
  #modal[data-view] .world-product-page>.world-page-toolbar,#modal[data-view] .world-single-care>.world-page-toolbar { grid-column:1; grid-row:1; }
  #modal[data-view] .world-product-page>.world-product-content,#modal[data-view] .world-single-care>.world-single-fish-content { grid-column:1; grid-row:2; }
  #modal[data-view] .world-product-page>.page-footer,#modal[data-view] .world-single-care>.page-footer { grid-column:2; grid-row:1/3; flex-direction:column; align-items:stretch; justify-content:center; border-top:0; border-left:1px solid #bad7dd; padding:10px 0 10px 15px; }
  #modal[data-view] .world-product-page>.page-footer>button { width:100%; }
  #modal[data-view] .world-product-page .world-product-content { display:grid; grid-template-columns:100px minmax(0,1fr); grid-template-rows:1fr auto; gap:7px 12px; }
  #modal[data-view] .world-product-hero { flex-direction:column; gap:4px; text-align:center; }
  #modal[data-view] .world-product-hero>:is(.ui-sprite,.world-sprite) { width:54px; height:54px; }
  #modal[data-view] .world-product-hero>div { gap:2px; }
  #modal[data-view] .world-product-hero b { font-size:12px; }
  #modal[data-view] .world-product-hero span { font-size:9px; }
  #modal[data-view] .world-product-content .world-info-panel { align-self:center; }
  #modal[data-view] .world-product-equip { grid-column:1/-1; }
  #modal[data-view] .world-product-equip>button { min-height:35px; padding-block:1px; }
  #modal[data-view] .world-product-content .world-info-panel h3 { font-size:13px; margin-bottom:3px; }
  #modal[data-view] .world-product-content .world-note { font-size:10px; }
  #modal[data-view] .world-single-fish-content { display:grid; grid-template-columns:45% minmax(0,1fr); text-align:left; gap:7px 15px; }
  #modal[data-view] .world-single-fish-art { grid-row:1/3; max-width:none; }
  #modal[data-view] .world-single-care .care-copy h3 { font-size:16px; }
  #modal[data-view] .world-single-care .care-copy p { font-size:12px; }
  #modal[data-view] .world-single-care .care-copy>span { font-size:10px; }
  #modal[data-view] .world-single-care .world-note { grid-column:2; font-size:10px; }
  #modal[data-view] .world-single-care .care-actions>button { flex:none; min-height:42px; }
  #modal[data-view] :is(.world-job-panel,.world-upgrade-panel) { flex-direction:row; gap:20px; text-align:left; }
  #modal[data-view] :is(.world-job-art,.world-upgrade-art)>span { width:70px; height:70px; }
  #modal[data-view] .world-capacity { justify-content:flex-start; margin:5px 0; }
  #modal[data-view] .world-capacity b { font-size:27px; }
  #modal[data-view] .world-upgrade-panel p { margin-top:3px; }
  #modal[data-view] .world-rules-grid { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:12px; }
  #modal[data-view] .world-tools-page.game-page { display:grid; grid-template-columns:minmax(0,1fr) 166px; grid-template-rows:28px 34px minmax(0,1fr); gap:6px 16px; }
  #modal[data-view] .world-tools-page>.world-page-toolbar { grid-column:1; grid-row:1; }
  #modal[data-view] .world-tools-page>.world-page-tabs { grid-column:1; grid-row:2; }
  #modal[data-view] .world-tools-page>.world-tools-content { grid-column:1; grid-row:3; }
  #modal[data-view] .world-tools-page>.page-footer { grid-column:2; grid-row:1/4; flex-direction:column; align-items:stretch; justify-content:center; padding-left:14px; border:0; border-left:1px solid #bad7dd; }
  #modal[data-view] .world-tools-page>.page-footer>button { width:100%; margin:0; }
  #modal[data-view] .world-tools-page .world-page-lead h3 { font-size:14px; margin-bottom:2px; }
  #modal[data-view] .world-guide-page.game-page,#modal[data-view] .world-trip-detail-page.game-page { display:grid; grid-template-columns:minmax(0,1fr) 166px; grid-template-rows:28px 34px minmax(0,1fr); gap:6px 16px; }
  #modal[data-view] :is(.world-guide-page,.world-trip-detail-page)>.world-page-toolbar { grid-column:1; grid-row:1; }
  #modal[data-view] :is(.world-guide-page,.world-trip-detail-page)>.world-page-tabs { grid-column:1; grid-row:2; }
  #modal[data-view] :is(.world-guide-page,.world-trip-detail-page)>:is(.world-guide-copy,.world-trip-content) { grid-column:1; grid-row:3; }
  #modal[data-view] :is(.world-guide-page,.world-trip-detail-page)>.page-footer { grid-column:2; grid-row:1/4; flex-direction:column; align-items:stretch; justify-content:center; padding-left:14px; border:0; border-left:1px solid #bad7dd; }
  #modal[data-view] :is(.world-guide-page,.world-trip-detail-page)>.page-footer>button { width:100%; margin:0; }
  #modal[data-view] .world-guide-copy { display:grid; grid-template-columns:1fr 1fr; gap:6px 15px; justify-content:start; align-content:center; padding:10px 14px; }
  #modal[data-view] .world-guide-copy h3 { grid-column:1/-1; font-size:14px; }
  #modal[data-view] .world-guide-copy p { font-size:11px; line-height:1.65; }
  #modal[data-view] .world-trip-cost { display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr auto; align-items:center; gap:4px 12px; }
  #modal[data-view] .world-destination-intro { font-size:11px; }
  #modal[data-view] .world-bill { padding:3px 10px; }
  #modal[data-view] .world-bill>div { padding:6px 0; font-size:10px; gap:5px; }
  #modal[data-view] .world-detail-links { grid-column:1/-1; }
  #modal[data-view] .world-detail-links .source-link { font-size:10px; }
  #modal[data-view] .world-trip-detail-page .world-destination-fish { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #modal[data-view] .world-local-fish>b { font-size:12px; }
  #modal[data-view] .world-local-fish>small { font-size:9px; }
  #modal[data-view] .world-travel-prepare { display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr auto; gap:5px 12px; align-items:center; }
  #modal[data-view] .world-travel-prepare .world-page-lead h3 { font-size:14px; }
  #modal[data-view] .world-travel-prepare .world-note { grid-column:1/-1; font-size:10px; }
  #modal[data-view] .world-bait-suggestions { gap:4px; }
  #modal[data-view] .world-bait-suggestions>button { padding:5px 3px; }
  #modal[data-view] .world-bait-suggestions :is(.ui-sprite,.world-sprite) { width:32px; height:32px; }
  #modal[data-view] .world-bait-suggestions b { font-size:10px; }
  #modal[data-view] .world-bait-suggestions small { font-size:9px; }
  #modal[data-view] .world-aquarium-page.game-page { display:grid; grid-template-columns:155px minmax(0,1fr); grid-template-rows:auto minmax(0,1fr) auto; gap:7px 14px; }
  #modal[data-view] .world-aquarium-page>.world-page-toolbar { grid-column:1; grid-row:1; flex-wrap:wrap; gap:2px 8px; justify-content:flex-start; }
  #modal[data-view] .world-aquarium-page>.world-page-toolbar>.world-text-button { margin:0; }
  dialog#modal[data-view] .world-page.world-aquarium-page>.world-page-tabs { display:flex; grid-column:1; grid-row:2; flex-direction:column; padding:0 2px; align-self:start; }
  #modal[data-view] .world-aquarium-page>.world-page-tabs>button { flex:none; }
  #modal[data-view] .world-aquarium-page>.world-aquarium-content { grid-column:2; grid-row:1/4; }
  #modal[data-view] .world-aquarium-page>.page-footer { grid-column:1; grid-row:3; flex-direction:column; align-items:stretch; gap:3px; font-size:10px; }
  #modal[data-view] .world-aquarium-page>.page-footer>button { width:100%; min-height:35px; font-size:11px; }
  #modal[data-view] .world-aquarium-page .world-care-list { grid-template-columns:1fr; }
  #modal[data-view] .world-aquarium-page .tank-title { top:10px; left:12px; }
  #modal[data-view] .world-aquarium-page .tank-title b { font-size:18px; }
  #modal[data-view] .world-aquarium-page .tank-title span { font-size:9px; }
  #modal[data-view] .world-aquarium-page .tank-empty { display:grid; grid-template-columns:auto auto; justify-content:center; align-content:center; gap:4px 12px; }
  #modal[data-view] .world-aquarium-page .tank-empty>.world-sprite { width:58px; height:58px; grid-row:1/4; }
  #modal[data-view] .world-aquarium-page .tank-empty>b { font-size:15px; }
  #modal[data-view] .world-aquarium-page .tank-empty p { font-size:10px; }
  #modal[data-view] .world-aquarium-page .tank-empty>button { min-height:34px; padding-block:1px; font-size:11px; }
  #modal[data-view] .world-aquarium-immersive.game-page { display:flex; }
}

/* Keep the edge markers inside the map even when the map itself is only 150px
   wide. Clamps preserve the coordinate everywhere that has room for the pin. */
#modal[data-view] .world-travel-map .map-pin[data-id=taupo] { left:min(95%,calc(100% - 18px))!important; }
#modal[data-view] .world-travel-map .map-pin[data-id=kenai] { left:max(8.1944%,18px)!important; top:max(16.3889%,18px)!important; }
#modal[data-view] .world-travel-map .map-pin[data-id=lofoten] { top:max(12.1111%,18px)!important; }

@media(max-height:400px) and (orientation:landscape) {
  /* Sharing the top row gives the actual map and destination enough height. */
  dialog#modal[data-view] .world-page.world-travel-page { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:32px minmax(0,1fr) 34px; gap:5px 12px; }
  dialog#modal[data-view] .world-travel-page>.world-page-toolbar { grid-column:1; grid-row:1; }
  dialog#modal[data-view] .world-travel-page>.world-page-tabs { grid-column:2; grid-row:1; }
  dialog#modal[data-view] .world-travel-page>.world-travel-content { grid-column:1/-1; grid-row:2; }
  dialog#modal[data-view] .world-travel-page>.page-footer { grid-column:1/-1; grid-row:3; }
  #modal[data-view] .world-map-preview { gap:7px; padding:8px 10px; }
  #modal[data-view] .world-map-preview :is(.world-preview-fish,.world-preview-description) { display:none; }
  #modal[data-view] .world-map-preview .world-preview-heading h3 { font-size:18px; line-height:1.35; }
  #modal[data-view] .world-map-preview>.primary-button { min-height:34px; font-size:11px; padding-block:1px; }
}

@media(max-height:340px) and (orientation:landscape) {
  #modal[data-view] .world-page.game-page { gap:5px; }
  #modal[data-view] .world-product-page.game-page,#modal[data-view] .world-single-care.game-page { grid-template-columns:minmax(0,1fr) 140px; gap:6px 12px; }
  #modal[data-view] .world-product-page .world-product-content { grid-template-columns:70px minmax(0,1fr); gap:5px 9px; }
  #modal[data-view] .world-product-page .world-info-panel { padding:6px 10px; }
  #modal[data-view] .world-product-page .world-info-panel p { font-size:10px; line-height:1.55; }
  #modal[data-view] .world-product-page .world-info-panel h3 { font-size:12px; line-height:1.4; }
  #modal[data-view] .world-product-hero>:is(.world-sprite,.ui-sprite) { width:42px; height:42px; }
  #modal[data-view] .world-product-equip>button { min-height:31px; font-size:10px; }
  #modal[data-view] .world-product-page>.page-footer,#modal[data-view] .world-single-care>.page-footer { padding-left:10px; }
  #modal[data-view] .world-guide-page.game-page,#modal[data-view] .world-trip-detail-page.game-page { grid-template-columns:minmax(0,1fr) 134px; gap:5px 12px; }
  #modal[data-view] .world-tools-page.game-page { grid-template-columns:minmax(0,1fr) 134px; gap:5px 12px; }
  #modal[data-view] .world-tools-page .world-rules-grid { gap:9px; }
  #modal[data-view] .world-tools-page .world-rules-grid .world-info-panel { padding:8px 11px; }
  #modal[data-view] .world-tools-page .world-info-panel h3 { font-size:12px; margin-bottom:4px; }
  #modal[data-view] .world-tools-page .world-info-panel p { font-size:10px; line-height:1.6; }
  #modal[data-view] .world-tools-page .world-job-panel { gap:12px; }
  #modal[data-view] .world-tools-page .world-job-art>span { width:48px; height:48px; }
  #modal[data-view] .world-tools-page .world-job-panel h3 { font-size:13px; }
  #modal[data-view] .world-tools-page .world-job-panel p { font-size:10px; margin-top:6px; line-height:1.6; }
  #modal[data-view] .world-guide-copy { gap:4px 10px; padding:6px 12px; }
  #modal[data-view] .world-guide-copy h3 { font-size:13px; line-height:1.4; }
  #modal[data-view] .world-guide-copy p { font-size:11px; line-height:1.5; }
  #modal[data-view] .world-bill>div { padding:4px 0; }
  #modal[data-view] .world-detail-links .world-text-button { min-height:22px; font-size:10px; }
  #modal[data-view] .world-travel-prepare .world-note { font-size:9px; line-height:1.5; }
  #modal[data-view] .world-travel-prepare .world-page-lead p { font-size:10px; }
  #modal[data-view] .world-aquarium-page.game-page { grid-template-columns:145px minmax(0,1fr); gap:5px 10px; }
  #modal[data-view] .world-aquarium-page>.world-page-toolbar { font-size:10px; gap:0 7px; }
  #modal[data-view] .world-aquarium-page>.world-page-toolbar>.world-text-button { min-height:20px; font-size:10px; padding:0; }
  dialog#modal[data-view] .world-page.world-aquarium-page>.world-page-tabs { gap:4px; }
  dialog#modal[data-view] .world-page.world-aquarium-page>.world-page-tabs>button { min-height:26px; padding:3px 8px; font-size:10px; }
  #modal[data-view] .world-aquarium-page>.page-footer { font-size:9px; line-height:1.35; gap:2px; }
  #modal[data-view] .world-aquarium-page>.page-footer>.world-text-button { min-height:20px; padding:0; font-size:10px; }
  #modal[data-view] .world-aquarium-page:has(.world-upgrade-panel) { grid-template-rows:36px minmax(0,1fr) 45px; }
  #modal[data-view] .world-aquarium-page:has(.world-upgrade-panel)>.world-aquarium-content { grid-row:1/3; }
  #modal[data-view] .world-aquarium-page:has(.world-upgrade-panel)>.page-footer { grid-column:1/-1; flex-direction:row; align-items:center; }
  #modal[data-view] .world-aquarium-page:has(.world-upgrade-panel)>.page-footer>button { width:145px; min-height:35px; }
  #modal[data-view] .world-upgrade-panel { gap:10px; }
  #modal[data-view] .world-upgrade-art>span { width:52px; height:52px; }
  #modal[data-view] .world-capacity b { font-size:23px; }
  #modal[data-view] .world-upgrade-panel h3 { font-size:13px; }
  #modal[data-view] .world-upgrade-panel .world-text-button { font-size:10px; min-height:22px; }
}
dialog#modal[data-view] .world-page.world-aquarium-immersive>.world-page-tabs { display:none; }
@media(max-height:340px) and (orientation:landscape) {
  dialog#modal[data-view] .world-page .world-travel-prepare { gap:3px 10px; }
  dialog#modal[data-view] .world-page .world-travel-prepare .world-note { margin:0; font-size:9px; line-height:1.35; }
  dialog#modal[data-view] .world-page .world-travel-prepare .world-page-lead p { margin:4px 0 0; }
  dialog#modal[data-view] .world-page .world-rules-grid { gap:5px; }
  dialog#modal[data-view] .world-page .world-rules-grid>.world-info-panel { padding:6px 8px; }
  dialog#modal[data-view] .world-page .world-rules-grid h3 { font-size:12px; margin:0 0 3px; }
  dialog#modal[data-view] .world-page .world-rules-grid p { font-size:10px; line-height:1.5; margin:0; }
}
