:root { --text-scale: 1; font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace; color: #282831; background: #d9e2dd; font-synthesis: none; font-size: calc(14px * var(--text-scale)); line-height: 1.45; --cream: #fffbea; --cream-dark: #eee8ce; --ink: #282831; --blue: #2366a5; --blue-dark: #164875; } * { box-sizing: border-box; } [hidden] { display: none !important; } html, body, #app { min-width: 280px; min-height: 100%; } body { margin: 0; min-height: 100dvh; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); overflow-x: hidden; } button, input, select { font: inherit; color: inherit; } button, label { -webkit-tap-highlight-color: transparent; } button { min-height: 44px; cursor: pointer; border: 0; } button:disabled { cursor: default; opacity: 0.45; pointer-events: none; } button:focus-visible, input:focus-visible, select:focus-visible, canvas:focus-visible, label:focus-within { outline: 3px solid #5aa4de; outline-offset: 2px; } #app:has(#rom-file:focus-visible) label[for="rom-file"] { outline: 3px solid #5aa4de; outline-offset: 2px; } #app { height: 100dvh; display: grid; /* Named rows keep the main area flexible whether or not an update banner shows. */ grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "header" "banner" "main" "bar"; } #app > .site-header { grid-area: header; } #app > .update-banner { grid-area: banner; } #app > .app-shell { grid-area: main; } #app > .global-bar { grid-area: bar; } .site-header { min-height: 48px; padding: 6px clamp(10px, 2vw, 24px); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--cream); background: var(--blue-dark); border-bottom: 4px double #101d2b; } .brand { color: inherit; text-decoration: none; font-weight: 800; letter-spacing: 0.18em; } .header-state, .power { display: flex; align-items: center; gap: 12px; } .power { font-size: calc(10px * var(--text-scale)); letter-spacing: 0.08em; } .power i { display: block; width: 8px; height: 8px; border: 1px solid #0b1d2c; border-radius: 50%; background: #a0a692; } .power i.on { background: #8ee36f; box-shadow: 0 0 6px #b9ff9e; } .text-button { padding: 4px 12px; color: var(--cream); background: transparent; border: 2px solid #b4d6ed; } .app-shell { width: min(1500px, 100%); min-height: 0; margin: 0 auto; padding: 10px clamp(8px, 2vw, 24px) 6px; display: grid; grid-template-rows: auto minmax(0, 1fr); } .tabs { display: flex; align-items: end; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: thin; } .tabs button { flex: 1 0 auto; min-width: 92px; padding: 8px 13px; white-space: nowrap; background: #c8d8df; border: 2px solid #566675; border-bottom: 0; color: #27394a; font-size: calc(12px * var(--text-scale)); } .tabs button[aria-selected="true"] { position: relative; z-index: 1; color: #fff; background: var(--blue); font-weight: 700; } .tabs button span { margin-right: 5px; font-size: calc(9px * var(--text-scale)); } .tab-panel { min-height: 0; background: var(--cream); border: 4px double var(--ink); } .game-panel { overflow: hidden; } .console { height: 100%; min-height: 0; padding: 8px; display: grid; grid-template-columns: minmax(0, 1fr) 198px; gap: 10px; background: var(--cream); } .screen-bezel { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 5px; background: #202634; border: 4px double #080b10; } .screen { /* Lets the dialogue text size follow the width of the game screen. */ container-type: inline-size; position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #dce9ce; border: 2px solid #0a0c10; } #game-screen { display: block; width: 100%; height: 100%; image-rendering: pixelated; } .screen-caption { min-height: 26px; padding: 6px 5px 2px; display: flex; justify-content: space-between; gap: 12px; color: #c5dced; font-size: calc(9px * var(--text-scale)); letter-spacing: 0.06em; } .screen-empty, .pause-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(8px, 2.5vw, 28px); background: color-mix(in srgb, var(--cream) 96%, transparent); } .screen-empty { display: flex; align-items: safe center; justify-content: safe center; overflow: auto; } .load-card { flex: 0 0 auto; width: min(430px, 100%); margin: auto; padding: clamp(12px, 2vw, 22px); background: var(--cream); border: 4px double var(--ink); box-shadow: 6px 6px 0 #2d6685; } .menu-title { margin: 0 0 7px; color: var(--blue); font-size: calc(11px * var(--text-scale)); font-weight: 800; letter-spacing: 0.15em; } h1, h2, h3, p { overflow-wrap: anywhere; } .load-card h1, .menu-panel h2, dialog h2 { margin: 0 0 10px; font-size: calc(clamp(17px, 2.5vw, 25px) * var(--text-scale)); line-height: 1.15; } .load-card > p:not(.menu-title) { margin: 7px 0 12px; font-size: calc(11px * var(--text-scale)); } .primary-button, .menu-button { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 9px 13px; color: #fff; background: var(--blue); border: 3px double #102d4b; cursor: pointer; font-weight: 700; } .primary-button:hover, .menu-button:hover { background: var(--blue-dark); } .disabled { opacity: 0.45; pointer-events: none; } .privacy-note { color: #5e6464; text-align: center; } .file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .native-dialogue { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 12px; /* Large text scrolls inside its own paragraph; the choices float above. */ padding: 12px; color: var(--ink); background: var(--cream); border: 5px double var(--ink); box-shadow: 4px 4px 0 #0007; } .native-dialogue p { /* The box is wide and the ROM's lines are 18 characters, so the text scales with the screen; the text-size setting multiplies it. */ font-size: calc(clamp(15px, 2.2cqw, 40px) * var(--text-scale)); line-height: 1.4; max-height: 7em; overflow: auto; margin: 0; white-space: pre-line; } .native-dialogue > div { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; } /* As in the original, the choices (YES/NO, menus, amounts) are a box of their own above the text box, on the right. */ .native-dialogue > .dialogue-choice { position: absolute; right: -5px; bottom: calc(100% + 13px); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: calc(100% + 10px); max-height: min(60vh, 30em); margin: 0; overflow-y: auto; padding: 10px; background: var(--cream); border: 5px double var(--ink); box-shadow: 4px 4px 0 #0007; } .native-dialogue > .dialogue-choice[hidden] { display: none; } /* The original's YES/NO box is vertical, YES above NO, moved with Up/Down. */ .native-dialogue > .dialogue-choice[data-kind="yesno"], .native-dialogue > .dialogue-choice[data-kind="menu"] { flex-direction: column; flex-wrap: nowrap; align-items: flex-end; } /* YES and NO share one width, as the two rows of the original's box do. */ .native-dialogue > .dialogue-choice[data-kind="yesno"] { align-items: stretch; } /* Every entry shows (the bedroom PC has six). The dialogue box grows upward and scrolls only when the screen is too small. */ .dialogue-menu { display: flex; flex-direction: column; gap: 4px; } .dialogue-choice .mail-lines { display: grid; gap: 4px; flex: 1 1 auto; } .dialogue-choice .mail-lines input { width: calc(16ch + 22px); max-width: 100%; font-family: ui-monospace, monospace; } .dialogue-choice input { flex: 1 1 12ch; min-width: 0; max-width: 20ch; padding: 6px 8px; text-transform: none; background: #fff; border: 3px double var(--ink); } .battle { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-rows: 1fr 1fr auto; gap: 4px; padding: 10px; color: var(--ink); background: #f8f8f0; } .battle-foe, .battle-player { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 0; } .battle canvas { width: auto; height: min(100%, 168px); aspect-ratio: 1; image-rendering: pixelated; } .battle-hud { flex: 0 1 260px; padding: 6px 10px; border: 4px double var(--ink); border-top: 0; border-right: 0; } .battle-player .battle-hud { border-left: 0; border-right: 4px double var(--ink); } .battle-hud strong { margin-right: 8px; } .hp-row { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 800; } .hp-bar { flex: 1; height: 8px; background: #fff; border: 2px solid var(--ink); } .hp-bar i { display: block; height: 100%; background: #3aa54f; transition: width 0.4s linear; } .hp-bar i.low { background: #d9a91c; } .hp-bar i.critical { background: #d33b49; } .battle-numbers { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; } .battle-status { font-size: 0.8rem; font-weight: 800; } .battle-box { min-height: 96px; padding: 10px 12px; background: var(--cream); border: 5px double var(--ink); } .battle-box p { margin: 0 0 6px; white-space: pre-line; } .battle-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } /* Everything but the 2x2 battle menu is a vertical list, as in the original: YES above NO, one move or item per row. */ .battle-menu[data-layout="list"] { grid-template-columns: minmax(0, 1fr); } .battle-menu[data-kind="yesno"] button, .battle-menu[data-kind="contestswitch"] button:not(.wide) { justify-self: end; min-width: 6em; } .battle-menu button { padding: 6px 10px; text-align: left; color: var(--ink); background: var(--cream-dark); border: 3px double var(--ink); } .battle-menu button:disabled { opacity: 0.5; } .battle-menu button.battle-selected { outline: 2px solid currentColor; outline-offset: -4px; } .battle-menu button small { display: block; font-size: 0.75rem; } .battle-menu .wide { grid-column: 1 / -1; } /* The Pokémon stats screen over the battle: three pages, as the pink, green and blue pages of StatsScreenMain. */ .stats-screen { position: absolute; inset: 0; z-index: 4; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 10px; overflow-y: auto; color: var(--ink); background: #f8f8f0; border-top: 8px solid var(--stats-page, #e8a0b8); } .mail-view { position: absolute; inset: 0; z-index: 4; display: grid; grid-template-rows: auto 1fr auto auto; gap: 12px; padding: 16px; color: var(--ink); background: #f8f8f0; border: 8px double #a8b8d0; } .mail-type { margin: 0; font-weight: 700; } .mail-message { margin: 0; align-self: center; font-family: ui-monospace, monospace; font-size: 1.1rem; line-height: 1.8; white-space: pre; overflow-x: auto; } .mail-author { margin: 0; justify-self: end; } .mail-view button { justify-self: end; } .stats-screen[data-page="1"] { --stats-page: #88c888; } .stats-screen[data-page="2"] { --stats-page: #88a8e0; } .stats-top { display: flex; align-items: center; gap: 12px; } .stats-top canvas { width: min(28vw, 112px); aspect-ratio: 1; image-rendering: pixelated; } .stats-header p, .stats-page p { margin: 0; white-space: pre-line; } .stats-header strong { font-size: 1.1rem; } .stats-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; align-content: start; padding: 10px 12px; background: var(--cream); border: 5px double var(--ink); font-variant-numeric: tabular-nums; } .stats-page dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; margin: 0; } .stats-page dt { font-weight: 800; } .stats-page dd { margin: 0; } .stats-page .wide { grid-column: 1 / -1; } .stats-nav { display: flex; align-items: center; gap: 8px; } .stats-nav button { padding: 6px 12px; color: var(--ink); background: var(--cream-dark); border: 3px double var(--ink); } .stats-nav #stats-close { margin-left: auto; } @media (max-width: 480px) { .stats-page { grid-template-columns: minmax(0, 1fr); } } /* NewGame's screens: a plain background over the world until the introduction ends. */ .intro-screen { position: absolute; inset: 0; z-index: 2; background: #f8f8f0; } .intro-screen[hidden] { display: none; } .intro-screen:not([hidden]) ~ .minimap-overlay, .pokegear:not([hidden]) ~ .minimap-overlay, .trainer-card:not([hidden]) ~ .minimap-overlay, .pokedex-screen:not([hidden]) ~ .minimap-overlay, .options-screen:not([hidden]) ~ .minimap-overlay, .fly-map:not([hidden]) ~ .minimap-overlay { display: none; } .pokepic { position: absolute; z-index: 3; top: 18%; left: 50%; display: grid; justify-items: center; gap: 8px; padding: 10px; background: var(--cream); border: 5px double var(--ink); box-shadow: 4px 4px 0 #0007; transform: translateX(-50%); } .pokepic canvas { width: 168px; height: 168px; image-rendering: pixelated; } .pokepic button { padding: 7px 12px; color: #fff; background: var(--blue); border: 3px double #102d4b; } .mart { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-rows: auto 1fr; align-content: start; gap: 8px; padding: 10px; color: var(--ink); background: #f8f8f0; } .mart-money { justify-self: end; margin: 0; padding: 4px 10px; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--cream); border: 3px double var(--ink); } .mart-box { min-height: 96px; padding: 10px 12px; background: var(--cream); border: 5px double var(--ink); } .mart-box p { margin: 0 0 6px; white-space: pre-line; } .pack-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; } .pack-tabs button { padding: 4px; font-size: 0.75rem; color: var(--ink); background: var(--cream-dark); border: 3px double var(--ink); } .pack-tabs button[aria-pressed="true"] { color: #fff; background: var(--blue); } .mart-menu { display: grid; gap: 6px; max-height: 220px; overflow: auto; } .mart-menu button { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; text-align: left; color: var(--ink); background: var(--cream-dark); border: 3px double var(--ink); } .mart-menu button:disabled { opacity: 0.5; } .mart-menu button.battle-selected { outline: 2px solid currentColor; outline-offset: -4px; } .mart-menu button small { display: block; font-size: 0.75rem; } .mart-menu .wide { grid-column: 1 / -1; } .mart-quantity { display: flex; align-items: center; justify-content: center; gap: 6px; } .mart-quantity button { min-width: 40px; padding: 6px; color: var(--ink); background: var(--cream-dark); border: 3px double var(--ink); } .mart-quantity output { flex: 1; min-width: 0; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; } .dialogue-choice button { min-width: 64px; } /* BankOfMom's amount box: one row per amount, the cursor digit blinking 16 frames in 32 as hVBlankCounter's bit 4 does. */ .mom-bank { flex: 1 0 100%; margin: 0; } .mom-bank p { display: flex; justify-content: space-between; max-width: 22ch; margin: 0 0 2px; font-weight: 800; } .dialogue-choice .mom-bank output { min-width: 0; text-align: right; font-variant-numeric: tabular-nums; } .mom-bank-cursor { animation: mom-bank-blink 0.53s steps(1) infinite; } @keyframes mom-bank-blink { 50% { visibility: hidden; } } @media (prefers-reduced-motion: reduce) { .mom-bank-cursor { animation: none; text-decoration: underline; } } /* Every entry reserves the cursor's width, so the box keeps its size and the labels stay aligned as the cursor moves. */ .dialogue-choice button[aria-pressed]::before { content: "▶ "; } .dialogue-choice button[aria-pressed="false"]::before { visibility: hidden; } .dialogue-choice button[aria-pressed="false"] { color: var(--ink); background: var(--cream-dark); border-color: var(--ink); } .dialogue-choice output { align-self: center; min-width: 11ch; text-align: center; font-weight: 800; } .native-dialogue button, .pause-overlay button { padding: 7px 12px; color: #fff; background: var(--blue); border: 3px double #102d4b; } .pause-overlay { z-index: 4; align-content: center; gap: 12px; color: #fff; background: #162032d9; font-weight: 800; letter-spacing: 0.18em; } .minimap-overlay { display: none; position: absolute; z-index: 2; top: 8px; right: 8px; padding: 3px; background: var(--cream); border: 4px double var(--ink); box-shadow: 3px 3px 0 #0005; } .has-game .minimap-overlay { display: block; } #minimap { display: block; width: 128px; height: 102px; image-rendering: pixelated; } #minimap-position { max-width: 128px; margin: 3px 0 0; text-align: center; font-size: calc(8px * var(--text-scale)); } .controls { min-height: 0; display: grid; grid-template-rows: 1fr auto; grid-template-columns: 1fr 1fr; align-items: center; align-content: center; justify-items: center; gap: 10px 5px; padding: 4px; border-left: 2px solid #9b998c; } .game-key { min-width: 44px; min-height: 44px; touch-action: none; user-select: none; border: 2px solid #20242d; background: #53677a; color: #fff; font-weight: 800; } .game-key.pressed { translate: 0 2px; filter: brightness(1.35); } .dpad { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); grid-column: 1 / 3; } .dpad .game-key, .dpad-center { background: #394754; } .dpad [data-game-button="up"] { grid-column: 2; grid-row: 1; } .dpad [data-game-button="left"] { grid-column: 1; grid-row: 2; } .dpad-center { grid-column: 2; grid-row: 2; border: 2px solid #20242d; } .dpad [data-game-button="right"] { grid-column: 3; grid-row: 2; } .dpad [data-game-button="down"] { grid-column: 2; grid-row: 3; } .action-keys { display: flex; gap: 7px; } .action-keys .game-key { border-radius: 50%; background: var(--blue); } .system-keys { display: flex; flex-direction: column; gap: 4px; } .system-keys .game-key { padding: 4px 7px; font-size: calc(8px * var(--text-scale)); background: #6d7478; } .menu-panel { overflow: auto; padding: clamp(18px, 4vw, 48px); } .menu-panel > header { padding-bottom: 15px; border-bottom: 3px double #747269; } .save-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; } .save-actions button, .play-button { padding: 8px 14px; color: #fff; background: var(--blue); border: 3px double #102d4b; } .save-copy { max-width: 720px; color: #4e5157; } .replace-rom { max-width: 720px; margin-top: 24px; padding-top: 20px; border-top: 3px double #747269; } .replace-rom h3, .app-settings h3 { margin: 0; } .app-settings { max-width: 720px; margin-top: 24px; padding-top: 20px; border-top: 3px double #747269; } .app-settings p { color: #4e5157; } .app-settings .menu-button { width: fit-content; margin-bottom: 18px; } /* A waiting update: shown until the player chooses to reload. */ .update-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 6px 12px; color: var(--cream); background: var(--blue); } .replace-rom .menu-button { width: fit-content; } .map-panel-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px; margin-top: 16px; } .world-map-frame { min-height: 180px; height: 100%; display: grid; place-items: center; margin-top: 16px; padding: 10px; overflow: auto; background: #dce8d0; border: 4px double var(--ink); } #world-map { display: block; width: min(100%, 640px); height: auto; max-width: 100%; max-height: 100%; object-fit: contain; image-rendering: pixelated; } #map-empty { max-width: 460px; text-align: center; color: #5f6763; } /* The region atlas: the ROM's Town Map with flypoints and the player. */ .atlas { display: grid; gap: 10px; padding: 10px; background: var(--cream); border: 4px double var(--ink); } .atlas-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; } .atlas-header h3, .atlas h4 { margin: 0; font-size: 0.85rem; letter-spacing: 0.08em; } .atlas-regions { display: flex; gap: 6px; } .atlas-regions button { min-height: 32px; padding: 2px 10px; font: inherit; color: var(--ink); background: var(--cream-dark); border: 2px solid var(--ink); } .atlas-regions button[aria-pressed="true"] { color: #fff; background: var(--blue); } #atlas-map { justify-self: center; width: min(100%, 480px); height: auto; image-rendering: pixelated; } .atlas-here { margin: 0; } .atlas-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; } .atlas ul { margin: 4px 0 0; padding-left: 1.2em; } .atlas-legend { margin: 0; font-size: calc(12px * var(--text-scale)); color: #5f6763; } .atlas-legend span { display: inline-block; width: 10px; height: 10px; margin-left: 8px; vertical-align: middle; } .legend-player { background: #b32628; } .legend-visited { background: var(--blue); border-radius: 50%; } @media (max-width: 900px) { .map-panel-body { grid-template-columns: minmax(0, 1fr); } } .planned-panel { max-width: none; } .planned-panel > p:last-child { max-width: 680px; font-size: calc(15px * var(--text-scale)); line-height: 1.8; } .global-bar { min-height: 68px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "play status save" "play notice save"; align-items: center; gap: 0 14px; padding: 7px clamp(10px, 2vw, 24px); color: #eaf2f5; background: #263744; border-top: 4px double #0e161d; } .play-button { grid-area: play; min-width: 88px; } .status { grid-area: status; margin: 0; font-size: calc(11px * var(--text-scale)); } .game-notice { grid-area: notice; margin: 0; color: #b8d4e6; font-size: calc(10px * var(--text-scale)); } .game-notice:empty { display: none; } .save-status { grid-area: save; margin: 0; max-width: 280px; text-align: right; color: #b8c7ce; font-size: calc(9px * var(--text-scale)); } .error { color: #ffb0a1 !important; } dialog { width: min(520px, calc(100% - 24px)); padding: 24px; color: var(--ink); background: var(--cream); border: 5px double var(--ink); border-radius: 0; } dialog::backdrop { background: #111827b8; } dialog p { line-height: 1.65; } dialog dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } dialog dd { margin: 0; } /* Read by screen readers, not shown. */ .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* Settings: text size choices and the key table. */ #settings-dialog { max-height: calc(100% - 24px); overflow-y: auto; } .text-size { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 18px; padding: 10px 12px; border: 2px solid var(--ink); } .text-size label { display: flex; align-items: center; gap: 6px; min-height: 32px; } .key-settings h3 { margin: 0 0 6px; font-size: 0.95rem; } .key-settings table { width: 100%; margin: 10px 0; border-collapse: collapse; } .key-settings th, .key-settings td { padding: 4px 6px; text-align: left; border-bottom: 1px solid var(--cream-dark); } .key-settings td:last-child { text-align: right; } .key-settings td button { min-height: 32px; padding: 2px 10px; font: inherit; color: var(--ink); background: var(--cream-dark); border: 2px solid var(--ink); } .settings-status { min-height: 1.5em; margin: 8px 0 0; } .dialog-close { float: right; background: transparent; font-size: calc(22px * var(--text-scale)); } @media (max-width: 720px) { .site-header { min-height: 42px; } .app-shell { padding: 5px 5px 3px; } .tabs button { min-width: 83px; padding: 6px 9px; font-size: calc(10px * var(--text-scale)); } .console { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 132px; padding: 5px; gap: 4px; } .controls { grid-template-columns: 132px minmax(95px, 1fr) 48px; grid-template-rows: 1fr; border-left: 0; border-top: 2px solid #9b998c; padding: 2px; } .dpad { grid-column: 1; } .action-keys { grid-column: 2; } .system-keys { grid-column: 3; } #minimap { width: 96px; height: 77px; } #minimap-position { max-width: 96px; } .screen-caption { min-height: 22px; padding-top: 4px; } .global-bar { min-height: 76px; grid-template-columns: auto 1fr; /* The notice gets its own row: in the button's auto column, a long notice would widen it and crush the status text. */ grid-template-areas: "play status" "notice notice" "save save"; gap: 3px 9px; } .save-status { max-width: none; } } @media (max-width: 390px) { .header-state { gap: 6px; } .power { display: none; } .load-card { padding: 10px; box-shadow: 3px 3px 0 #2d6685; } .load-card h1 { font-size: calc(16px * var(--text-scale)); } .minimap-overlay { top: 4px; right: 4px; padding: 2px; } #minimap { width: 80px; height: 64px; } #minimap-position { display: none !important; } .global-bar { padding-block: 4px; } .status { font-size: calc(9px * var(--text-scale)); } .save-status { font-size: calc(8px * var(--text-scale)); } } @media (max-height: 540px) and (orientation: landscape) { #app { grid-template-rows: minmax(0, 1fr) auto; } .site-header { display: none; } .app-shell { padding-top: 2px; } .tabs button { min-height: 38px; padding-block: 4px; } .screen-empty { overflow: auto; } .screen-empty .load-card { width: min(600px, 100%); margin: auto; padding: 8px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 0.8fr); gap: 4px 10px; align-items: center; } .screen-empty .menu-title { display: none; } .screen-empty .load-card h1, .screen-empty .load-card > p:not(.privacy-note) { grid-column: 1; margin: 0; } .screen-empty .primary-button { grid-column: 2; grid-row: 1 / 3; } .screen-empty .privacy-note { grid-column: 2; margin: 0; } .console { grid-template-columns: minmax(0, 1fr) 188px; grid-template-rows: minmax(0, 1fr); padding: 3px; } .controls { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; border-top: 0; border-left: 2px solid #9b998c; } .dpad { grid-column: 1 / 3; } .action-keys { grid-column: 1; } .system-keys { grid-column: 2; } .global-bar { min-height: 48px; grid-template-columns: auto 1fr auto; grid-template-areas: "play status save"; } .game-notice { display: none; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } } .town-map-view { position: absolute; inset: 0; z-index: 7; background: #f8f4df; display: grid; place-items: center; padding: 0.5rem; } .town-map-view[hidden] { display: none; } #town-map-canvas { width: auto; height: calc(100% - 3rem); max-width: 100%; image-rendering: pixelated; object-fit: contain; } /* The Pokégear: card icons along the top, the card below and the textbox (the native dialogue) over its lower part. */ .pokegear { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: auto 1fr; gap: 8px; padding: 10px 10px 118px; color: var(--ink); background: var(--blue-dark); } .pokegear-cards { display: flex; gap: 4px; } .pokegear-cards span { padding: 2px 8px; font-size: 0.75rem; color: var(--cream); border: 3px double var(--cream); } .pokegear-cards span[aria-current="true"] { color: var(--ink); background: var(--cream); } .pokegear-card { min-height: 0; display: grid; place-items: center; padding: 8px; overflow: hidden; background: var(--cream); border: 5px double var(--ink); } .pokegear-clock { display: grid; gap: 4px; justify-items: center; } .pokegear-clock strong { font-size: 2rem; letter-spacing: 0.05em; white-space: pre; } .pokegear-map { width: 100%; height: 100%; min-height: 0; display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: 4px; } .pokegear-map canvas { width: auto; height: 100%; max-width: 100%; min-height: 0; image-rendering: pixelated; object-fit: contain; } .pokegear-phone { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 8px; } .pokegear-phone ol { margin: 0; padding: 0; list-style: none; } .pokegear-phone li { min-height: 2.9em; white-space: pre; } .pokegear-phone li::before { content: attr(data-mark) " "; } .pokegear-signal { grid-column: 1 / -1; justify-self: end; font-size: 0.75rem; } .pokegear-submenu { padding: 4px 8px; border: 3px double var(--ink); } /* TrainerCard: the card's frame takes the other gender's palette. */ .trainer-card { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: auto 1fr; gap: 8px; padding: 10px; overflow-y: auto; color: var(--ink); background: var(--trainer-card-frame, var(--blue-dark)); } .trainer-card-top, .trainer-card-page { padding: 8px 12px; background: #fff; border: 5px double var(--ink); font-variant-numeric: tabular-nums; } .trainer-card-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; } .trainer-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; } .trainer-card dt, .trainer-card dd { margin: 0; white-space: pre; } .trainer-card-top canvas { width: min(22vw, 100px); aspect-ratio: 40 / 56; image-rendering: pixelated; } .trainer-card-page { display: grid; align-content: start; gap: 8px; } .trainer-card-page h3 { margin: 0; font-size: 0.85rem; letter-spacing: 0.08em; } .trainer-card-page p { margin: 0; justify-self: end; } .trainer-card-page canvas { width: 100%; max-width: 512px; justify-self: center; aspect-ratio: 128 / 48; image-rendering: pixelated; } /* Pokedex: PREDEFPAL_POKEDEX's red frame around the list or the entry. */ .pokedex-screen { --dex-red: #d65231; position: absolute; inset: 0; z-index: 2; display: grid; gap: 8px; padding: 10px; overflow-y: auto; color: var(--ink); background: var(--dex-red); font-variant-numeric: tabular-nums; } .pokedex-screen[data-screen="list"] { grid-template-columns: auto minmax(0, 1fr) 8px; } .pokedex-screen[data-screen="entry"] { grid-template-rows: auto 1fr auto; } .pokedex-entry-top .pokedex-pic { width: min(22vw, 112px); } .pokedex-side, .pokedex-list, .pokedex-entry-top, .pokedex-text-box, .pokedex-actions { margin: 0; padding: 8px 10px; background: var(--cream); border: 5px double var(--ink); } .pokedex-side { display: grid; align-content: start; justify-items: center; gap: 10px; } .pokedex-pic { width: min(28vw, 112px); aspect-ratio: 1; image-rendering: pixelated; } .pokedex-counts { display: grid; grid-template-columns: auto auto; gap: 2px 10px; margin: 0; } .pokedex-counts dt, .pokedex-counts dd { margin: 0; white-space: pre; } .pokedex-list { display: grid; align-content: start; gap: 6px; list-style: none; } .pokedex-list li, .pokedex-tab-list li, .pokedex-tab-list button { display: flex; align-items: center; gap: 6px; white-space: pre; } .pokedex-list li::before, .pokedex-actions li::before { content: attr(data-mark); width: 1.2em; } /* The owned mark: a Poké Ball, or its empty space. */ .pokedex-ball { flex: none; width: 0.8em; height: 0.8em; border: 2px solid var(--ink); border-radius: 50%; background: linear-gradient(var(--dex-red, #d65231) 45%, var(--ink) 45% 55%, #fff 55%); } .pokedex-ball.empty { visibility: hidden; } .pokedex-scrollbar { position: relative; background: var(--cream); border: 2px solid var(--ink); } .pokedex-scrollbar i { position: absolute; left: 0; right: 0; height: 12px; background: var(--ink); } .pokedex-entry-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; } .pokedex-entry-details { display: grid; gap: 2px; white-space: pre; } .pokedex-footprint { width: 32px; height: 32px; image-rendering: pixelated; } .pokedex-text-box { display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 10px; } .pokedex-text { margin: 0; white-space: pre-line; } .pokedex-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; } .pokedex-actions li { display: flex; } /* The Pokédex tab: the New mode list beside the selected entry. */ .pokedex-panel { --dex-red: #d65231; } .pokedex-tab-status { max-width: 680px; font-size: calc(15px * var(--text-scale)); line-height: 1.8; } .pokedex-tab-body { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); align-items: start; gap: 18px; margin-top: 18px; } .pokedex-tab-list { display: grid; gap: 2px; margin: 0; padding: 8px; max-height: 60vh; overflow-y: auto; list-style: none; background: var(--cream); border: 5px double var(--ink); } .pokedex-tab-list li { min-height: 32px; padding: 0 6px; } .pokedex-tab-list button { width: 100%; min-height: 32px; padding: 0; font: inherit; color: inherit; text-align: left; background: none; border: 0; cursor: pointer; } .pokedex-tab-list button[aria-pressed="true"]::after { content: " ◀"; } .pokedex-tab-entry { display: grid; gap: 12px; padding: 12px; background: var(--cream); border: 5px double var(--ink); } .pokedex-tab-entry .pokedex-entry-top { padding: 0; border: 0; } @media (max-width: 480px) { .pokedex-screen { gap: 4px; padding: 6px; } .pokedex-side, .pokedex-list, .pokedex-entry-top, .pokedex-text-box, .pokedex-actions { padding: 4px 8px; border-width: 4px; } } @media (max-width: 720px) { .pokedex-tab-body { grid-template-columns: minmax(0, 1fr); } .pokedex-tab-list { max-height: 40vh; } } /* _Option: one framed box of options, settings beside their labels. */ .options-screen { position: absolute; inset: 0; z-index: 2; display: grid; padding: 10px; overflow-y: auto; color: var(--ink); background: var(--cream); } .options-screen ol { margin: 0; padding: 10px 14px; list-style: none; border: 5px double var(--ink); display: grid; align-content: start; gap: 8px; } /* _FlyMap: the Town Map under TownMapBubble's "Where?" and the selected flypoint, with the up/down arrows. */ .fly-map { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: 8px; padding: 10px; color: var(--ink); background: var(--cream); } .fly-map[hidden] { display: none; } .fly-map-bubble { justify-self: stretch; display: grid; grid-template-columns: 1fr auto; margin: 0; padding: 4px 10px; border: 5px double var(--ink); white-space: pre; } .fly-map-bubble span:last-child { grid-row: span 2; align-self: center; } .fly-map canvas { width: auto; height: 100%; max-width: 100%; min-height: 0; image-rendering: pixelated; object-fit: contain; } .options-screen li { display: grid; grid-template-columns: 1.4em 13ch auto; justify-content: start; gap: 8px; } .options-screen li::before { content: attr(data-mark); } .options-screen strong { min-width: 9ch; font-weight: normal; white-space: pre; }