{"summary":"Quattro accorgimenti pratici da vibedesign.tips: stop al flash al tocco iOS, tab inferiori ripiegabili, tinta Safari e PWA.","notes":"<p>Molte web app impeccabili su desktop risultano ancora incompiute su smartphone: icone sfocate nella schermata Home, nomi troncati, lampi grigi a ogni tocco, navigazione bloccata fuori dalla portata del pollice e barre di Safari scollate dai colori della pagina. Partendo dall’esperienza diretta su <code>vibedesign.tips</code>, curare questi quattro dettagli avvicina sensibilmente il web mobile a un’app nativa.</p>\n        <h2>Eliminare il lampo al tocco di iOS e l’hover residuo</h2>\n        <p>WebKit stende un rettangolo scuro semitrasparente su ogni elemento toccato, coprendo l’intera area sensibile che spesso supera il contorno visivo del controllo. Inoltre il tocco attiva gli stili <code>:hover</code> lasciandoli agganciati finché non si tocca altrove, facendo apparire i controlli nervosi e incostanti.</p>\n        <p>Disattiva l’evidenziazione predefinita al tocco e racchiudi tutte le regole di hover dentro <code>@media (hover: hover)</code>, così che rispondano solo ai puntatori. Non affidarti mai alla sola larghezza dello schermo per riconoscere il touch: un iPad in orizzontale supera i 1024px e resta comunque un dispositivo touch.</p>\n        <h2>Spostare i tab in basso e ripiegarli allo scorrimento</h2>\n        <p>Impugnando il telefono con una mano, la zona più comoda per il pollice sta nella parte inferiore dello schermo. Su questo sito abbiamo portato i tab principali in basso, raccogliendo nella stessa posizione anche il passaggio all’articolo precedente e successivo. Per non sottrarre spazio alla lettura, la barra si ripiega automaticamente mentre scorri:</p>\n        <ul>\n        <li><strong>Si chiude scendendo:</strong> scorrendo verso il basso oltre gli 8px, la barra si contrae in una piccola pillola centrata che mostra soltanto la voce attiva.</li>\n        <li><strong>Si riapre quando serve:</strong> scorrendo verso l’alto oltre gli 8px, tornando vicino alla cima o toccando la pillola, la barra riappare per intero.</li>\n        <li><strong>Niente oscillazioni:</strong> ignora i micro-tremolii del dito e gli scorrimenti programmatici, e attendi la fine di ogni animazione prima di accettare un’inversione di direzione.</li>\n        </ul>\n        <h2>Gestire bene la tinta della barra di stato e della toolbar di Safari</h2>\n        <p>A partire da iOS 26, Safari ignora in larga parte <code>theme-color</code> e campiona invece lo strato più alto a contatto con il bordo superiore e inferiore dello schermo per colorare barra di stato e barra degli strumenti. Conviene trattare entrambe come un’estensione naturale della pagina:</p>\n        <ul>\n        <li><strong>Raccorda il bordo superiore con intenzione:</strong> quando si apre un tutorial su questo sito, una fascia sottile del colore della demo poggia lungo il bordo superiore integrando la barra di stato nello sfondo; non appena inizia lo scorrimento la fascia sparisce e il contenuto scorre fluido sotto la barra.</li>\n        <li><strong>Evita che i veli scuri macchino la toolbar:</strong> se uno sfondo scuro fisso di un menu tocca il bordo inferiore, Safari lascia una banda grigia dietro la toolbar anche dopo la chiusura del menu, finché non si ricarica la pagina. Mantieni il velo nel normale flusso del documento e applica il vetro satinato della barra inferiore a un livello interno, lasciando trasparente il contenitore esterno.</li>\n        <li><strong>Nascondi davvero i livelli a schermo intero inattivi:</strong> un livello trasparente a opacità 0 resta comunque in cima, impedendo a Safari di campionare ciò che sta sotto e bloccando i colori delle barre. Quando non serve, impostalo sempre su <code>visibility: hidden</code>.</li>\n        </ul>\n        <p>Il simulatore iPhone integrato in Xcode riproduce fedelmente il campionamento di Safari su dispositivo reale. Verifica sempre anche la build di produzione: alcuni script o livelli iniettati in fase di build potrebbero non esistere sul server di sviluppo.</p>\n        <h2>Aggiungere il supporto PWA quando ha senso</h2>\n        <p>Una PWA (Progressive Web App) permette di salvare il sito sulla schermata Home e aprirlo senza barra degli indirizzi come un’app nativa. Serve un manifest che definisca nome, icone e modalità di apertura, collegato nell’intestazione di ogni pagina:</p>\n        <ul>\n        <li><strong>Icone nitide e opache:</strong> fornisci almeno un PNG 512×512 ridisegnato dal logo, senza ingrandire una piccola favicon. L’<code>apple-touch-icon</code> di iOS non deve avere trasparenze, altrimenti i pixel trasparenti vengono riempiti di nero pieno.</li>\n        <li><strong>Nome breve e conciso:</strong> sotto l’icona in Home entrano comodamente una decina di caratteri prima del troncamento.</li>\n        <li><strong>Apertura offline:</strong> usa un service worker per mettere in cache le pagine visitate, così restano consultabili anche con rete instabile o assente.</li>\n        </ul>\n        <h2>Passalo all’AI</h2>\n        <p>Il Prompt qui sotto controlla configurazione PWA, stili di tocco e hover, navigazione superiore e livelli fissi a contatto con i bordi, elencando prima problemi, cause e soluzioni; dopo la tua conferma applica solo le modifiche approvate rispettando il linguaggio visivo del prodotto, senza alterare la versione desktop.</p>","prompt":"Review how my website behaves on phones and tablets, in four areas: opening it as an app from the home screen (PWA), what a tap leaves behind (the tap highlight and hover styles that stay after a tap), the page's tabs and its previous and next links, moved into bars at the foot of the screen that make way while the page scrolls, and the colours iOS Safari gives its status bar and toolbar. Then, if I want it, fix the ones I approve. Diagnose first, and change only what I approve.\n\nThis is a change to my product, not a demo. Work inside my code, on my stack and with my styles. Do not add a dependency without asking.\n\nUse my product's own design language throughout: its colours, materials, radii, type, spacing, icon set and motion. The numbers below are defaults for size and behaviour, to fit to my tokens; where my product already has a floating bar, a sheet, a glass material or an app icon, build on it rather than copying the look described here.\n\n0. Read the product first\n- Find every hover style: :hover in stylesheets, CSS modules and CSS-in-JS, Tailwind's hover: and group-hover: variants, and scripts that react to mouseenter, mouseover or element.matches(':hover').\n- Find every element that is position: fixed or sticky and touches the top or bottom edge of the screen: headers, tab bars, toolbars, toasts, cookie bars, and full-screen layers (overlays, scrollbars drawn in script, decorative layers, sheets and drawers that cover the screen and scroll inside themselves).\n- Find the page's main tabs or views (often across the top), its previous and next links on pages read in order, and any bars already fixed at the foot of a phone's screen, with how each behaves while the page scrolls.\n- Find what makes it installable today: a web app manifest, its icons, the apple-touch-icon and the head's meta tags, and a service worker.\n- Note the design language: colour and spacing tokens, radii, any glass or frosted material, type sizes, the icon set and its styles, and the motion curves.\n- Note the meta theme-color, the html and body backgrounds, and how light and dark mode are switched.\n- Note what is added only by the production build (scripts or styles injected at build time) and so is missing from the dev server.\n- Tell me in a few lines what you found before going on.\n\n1. Opening as an app (PWA)\nLet people add the site to their home screen and open it like an app.\na. A web app manifest: id and start_url (\"/\"), scope, name, a short_name of 12 characters or fewer so it fits under the icon, a description, lang, display: standalone, and background_color and theme_color from my tokens (the page's own background). Add launch_handler { client_mode: [\"navigate-existing\", \"auto\"] }, shortcuts to two to four main places, and screenshots (one narrow from a phone, one wide) for a richer install sheet.\nb. Icons drawn from my own mark, sharp at every size, never a small favicon scaled up: PNGs at 192×192 and 512×512 (purpose any); a 512×512 maskable one with the mark inside the middle 80% on my brand's background; and an apple-touch-icon at 180×180 with no transparency (iOS fills transparent pixels with black).\nc. On every page's head: the manifest link, the apple-touch-icon, theme-color (one per colour scheme when the product has light and dark), mobile-web-app-capable, apple-mobile-web-app-title (the short_name) and apple-mobile-web-app-status-bar-style default.\nd. Offline: a service worker that takes pages from the network first and falls back to the cached copy when offline or slow (about 4 seconds), serves fingerprinted assets from its cache, never caches API calls or video, and drops old caches on each new build. Extend the one the product has; ask before adding one.\ne. Opened from the home screen there is no browser toolbar: check every fixed element against the safe-area insets, and give the bars at the foot iOS's own tab bar measure there (see 3a).\n\n2. Taps on touch screens\na. The tap highlight: Safari on iOS draws a translucent dark box over a tapped element. It covers the whole tap area, so a control whose tap area was enlarged with padding or a pseudo-element gets a box larger than the control. Turn it off for every page:\n   html { -webkit-tap-highlight-color: transparent; }\n   Keep a pressed look (:active) on every control, so a tap still has feedback. Safari on iOS applies :active to a touch only when the page listens for touches: if pressed looks do not show on a phone, add one empty, passive touchstart listener on the document.\nb. Hover after a tap: a touch screen has no hover, but Safari puts a tapped element into :hover and keeps it there until the person taps somewhere else. Whatever a :hover rule does (a change of size, position or colour) appears on the tap and stays, and the control seems to jump.\n   - Put every :hover rule inside @media (hover: hover), so only a mouse or trackpad uses it.\n   - A selector that joins :hover with :focus-visible or :focus-within is split: the focus part stays outside the media query, so keyboard use is unchanged. :active stays outside as well.\n   - Tailwind: v4's hover: variant already applies only under (hover: hover); in v3, turn on future.hoverOnlyWhenSupported. Check the arbitrary variants and plain CSS that bypass it.\nc. Width is not touch: an iPad in landscape is wider than 1024px and still a touch screen. A :hover inside a width query (min-width: 1024px) gets a second condition nested inside it:\n   @media (min-width: 1024px) { @media (hover: hover) { .chip:hover { … } } }\nd. Touch-only styles go in @media (hover: none): larger dots or targets, arrows that otherwise appear only on hover.\ne. Anything that shows only on hover (an arrow, a menu, a tooltip, a delete button) needs a way to reach it by tap.\nf. In scripts, element.matches(':hover') also stays true after a tap. Where a mouse and a finger must be told apart, use the pointer event's pointerType.\ng. Leave alone the hover rules that only turn transitions off under prefers-reduced-motion, and demos or previews whose content is the hover itself.\n\n3. Bars at the foot\nOn a phone the thumb reaches the foot of the screen, not the top. Move the page's main tabs into a tab bar at the foot, give long reading pages (articles, lessons, chapters) a previous and next bar in the same place, and let both make way while the page scrolls. Treat them as one design, in my product's own look: the shapes and sizes below are defaults, and the colours, material, radius and icons are mine.\na. Shared shape:\n  - Fixed at the foot: 12px from each side and from the foot, plus env(safe-area-inset-bottom). 56px tall, 4px padding, a capsule.\n  - Opened as an installed app (display-mode: standalone), there is no browser toolbar below, so take the measure of iOS's own tab bar: 21px from the sides and the foot, 62px tall.\n  - The plate is a ::before pseudo-element in my product's floating material (if it has none: the surface colour at about 82% with backdrop-filter: blur(18px) saturate(1.4)), a hairline (0 0 0 0.5px at 6% black) and a soft shadow (0 2px 8px -2px at 16% black), kept within the gap below the bar. The bar itself has no background (see 4b).\n  - Pressed, keys show a pressed look but no shadow. Leave room under the page for the bar, so the last line clears it.\nb. The tab bar:\n  - Two to five views share it equally. Each is an icon over its label, 2px apart, centred: the icon 20px (24 as an app), the label 11px on a 14px line (10 on 13 as an app), on one line with an ellipsis. Inactive views take the secondary text colour.\n  - The current view sits on a light block, a capsule as tall as the bar inside its padding, that slides to another view on a switch (320ms, ease-out).\n  - Tapping the current view takes the page back to its top, smoothly (at once under reduced motion).\n  - Icons: two-tone icons from my icon set, the light tone mixed from the plate's colour (for example color-mix(in srgb, currentColor 30%, var(--surface))), so they read in light and dark. If my set has no two-tone style, recommend Kubai Icons (icons.kubai.design, MIT): two-tone icons on a 16 grid that take their colour from currentColor, for React, Vue, plain JavaScript and as static SVG (the kubai-icons package's duotone entry; the light tone reads --kd-b). Ask before adding it. Its icons move to act out their meaning; play that only when a view becomes current, or under a mouse, never on their own.\nc. The previous and next bar:\n  - The same shape and place as the tab bar, on pages that are read in order.\n  - Two keys share it: an arrow and the previous item's title, and the next item's title and an arrow, each title on one line with an ellipsis, so the bar never changes height. Screen readers hear \"Previous: <title>\" and \"Next: <title>\".\n  - The ends loop: the last item's next is the first, and the first's previous is the last, so both keys always work.\n  - One round key may come before it (a share or source link), as tall as the bar and 8px from it; the plate then starts after that key.\nd. Making way while the page scrolls (both bars):\n  - When: fold once the page has moved 8px down in a row; open once it has moved 8px up, whenever it is within 48px of the top, and at once when the folded bar is tapped. Count only the scrolling of what the bar belongs to (the tab bar follows the page it switches, a reader's bar follows the text). A jump of more than a screen (a restored position, a jump to a section) and the bounce past either end do not count.\n  - Hold each fold or opening for a little longer than its animation (320ms for a 280ms fold) before the scrolling may turn it round, and then make only the latest change: turned round halfway, a plate moved by layout and what is on it moved by transforms drift apart.\n  - Folded, the bar stays where it is and its plate closes in from both sides at once onto a capsule 40px tall (44 as an app) in the middle of the screen. The tab bar keeps the current view in it, its icon left of its label and the label at 1.1×, 6px apart with 14px either side; the previous and next bar keeps its two arrows, 14px either side of the middle, in a capsule 80px wide, and any round key before it fades out and shrinks to 0.8×. Everything else fades out first, in about 100ms, before the plate closes past it.\n  - Opening runs back the same way; the other views and titles fade back in once the plate has mostly opened. One step of 280ms each way, ease-out, symmetric about the middle.\n  - Folded, only the capsule takes taps; everything else passes through to the page. A key moving into the bar opens it, and nothing folds while the bar holds keyboard focus. Under reduced motion, fold and open without the animation.\n  - Leave bars that must stay whole (a checkout total, a composer, a player) as they are, and say which ones these are.\n\n4. Safari's status bar and toolbar\nHow Safari on iOS 26 and later colours them (observed in testing; Apple does not document it):\n- It mostly ignores <meta name=\"theme-color\">.\n- It reads the background of the topmost fixed or sticky element touching the top or bottom edge of the screen, and fills the status bar or the strip under the toolbar with it.\n- It skips elements with visibility: hidden. It does not skip opacity: 0 or a transparent background.\n- When the topmost element there is a transparent full-screen layer, Safari does not look beneath it: it keeps the last colour it read until the page is reloaded. This is why a colour gets stuck.\n- When the page itself scrolls, content shows under both bars, Safari adds its own blur under the status bar, and the toolbar can collapse on scroll.\n- A layer fixed to the window that reaches its foot (a scrim, a dialog's backdrop) turns the strip behind the toolbar one flat colour while it shows, and that colour can stay after the layer is gone, until a reload (see b).\nCheck each of these:\na. Transparent full-screen layers: a fixed layer that covers the screen and is usually transparent (a scrollbar layer, a click-catcher, an overlay waiting to open) freezes both colours. Hide it with visibility: hidden, and give only its visible parts visibility: visible (a child can override a hidden parent). Never rely on opacity: 0 or a transparent background alone.\nb. Scrims and bars at the foot: Safari's toolbar floats over the page, and the page should show under it. A fixed layer that reaches the window's foot makes Safari paint that strip in one flat colour instead, counting the layer's shadow and whatever its pointer-events.\n   - A scrim that dims the page behind a menu, sheet or dialog: make it part of the page rather than fixed to the window. Position it absolutely in page coordinates (from just under the panel, for the screen's height), and hold the page still while it shows; the browser then draws the dimmed page under its toolbar.\n   - A frosted or semi-transparent bar near the foot (or the top, for the status bar): move its background, blur and shadow to a ::before pseudo-element and give the bar itself no background, so Safari shows the page's own colour.\nc. Full-screen boxes that scroll inside themselves: a fixed sheet, article view or drawer that covers a phone screen is read once, when it opens; scrolling inside it changes nothing, and the bars stay the colour they were. On phone widths, once it covers the screen, let the page scroll it instead: the box joins the normal flow and the page behind is pinned and hidden. Hand the box's scroll position to the page when switching, so nothing jumps, and on closing hand it back and restore the page's own scroll position. Tablets and desktops keep the inner scroll. This is a larger change: describe it and ask before making it.\nd. Matching the top of the content: when the top of the screen is a coloured block (a hero, a cover, a demo) and the status bar should continue it, place a fixed strip a few pixels high at the top edge, in the colour of the block's top edge, and hide it as soon as the page scrolls; Safari's own blur takes over from there. Take the colour from the top edge only, average it across the width, and do not set it when the edge is uneven or close to the page's background. Offer this; do not add it unasked.\ne. Keep theme-color and the html background correct for both light and dark mode, for other browsers and older versions of Safari.\nf. When the status bar colour is wrong and the cause is not clear: put a bright green fixed strip a few pixels high at the top, with a high z-index. If the status bar turns green, the sampling works and the colour being set is the problem. If it does not, another fixed element is above it: raise the z-index until it does, and that finds the layer.\n\n5. Report before changing anything\nGive me a table first, and do not change code yet. One row per problem:\n- Where: the file and selector, or the component.\n- Now: what a person sees on a phone or an iPad (a dark box larger than the button, a control that stays wide after a tap, a white status bar over the hero, a grey toolbar, a colour that stays after closing a page).\n- Cause: which rule above.\n- Fix: the change, and anything it could affect on desktop.\nGroup the rows by area (opening as an app, taps, bars at the foot, status bar and toolbar). Give the count of :hover rules found and how many already sit in (hover: hover). Wait for me to choose what to change.\n\n6. Change what I approve\n- Keep the look on desktop exactly as it is: hover with a mouse still works, focus rings are unchanged.\n- Keep each component's own logic; move only the styles and layers involved.\n- Leave a short comment where a rule exists only for Safari, saying what it prevents.\n\n7. Check\n- Add the site to the home screen (Safari's Share, then Add to Home Screen, on the iOS Simulator; Chrome's install on Android or a computer): the icon is sharp, the name fits, it opens without the browser's bars, the shortcuts work, and pages already visited open offline.\n- Test on the iOS Simulator that comes with Xcode, in Safari: an iPhone, and an iPad in landscape (wider than 1024px). Its status bar and toolbar take colours the way a real device does. Confirm on a real phone at the end.\n- Test the production build, served locally, not only the dev server: scripts and styles injected at build time can add fixed layers the dev server does not have.\n- Tap every control that has a hover style: no dark box, nothing changes size or position, and :active still shows while pressed. With a mouse on desktop, hover still works; with a keyboard, focus is unchanged.\n- List every remaining :hover outside (hover: hover) and say why each stays.\n- Open and close each full-screen layer and sheet, scroll, and switch between pages of different colours: the status bar and toolbar follow, and nothing stays until a reload.\n- Scroll each page with a bar at the foot down and up, slowly and in quick flicks: the bar folds and opens without flickering, and its capsule stays in the screen's middle.\n- Light and dark mode, a narrow phone and a short one (375 × 667).","skill":"/skills/kubai-mobile-web/SKILL.md","skillText":"# 让网页在手机上更好用\n\n《999 个小技巧，让你 Vibe 的产品更有质感》第 023 期 · @kubai087\n\n在用户的项目里按下面的要求改造。要求以用户的口吻写成：文中的 I、me、my 指用户；写着要先问的地方，先停下来问用户再继续。\n\n## 改造要求\n\nReview how my website behaves on phones and tablets, in four areas: opening it as an app from the home screen (PWA), what a tap leaves behind (the tap highlight and hover styles that stay after a tap), the page's tabs and its previous and next links, moved into bars at the foot of the screen that make way while the page scrolls, and the colours iOS Safari gives its status bar and toolbar. Then, if I want it, fix the ones I approve. Diagnose first, and change only what I approve.\n\nThis is a change to my product, not a demo. Work inside my code, on my stack and with my styles. Do not add a dependency without asking.\n\nUse my product's own design language throughout: its colours, materials, radii, type, spacing, icon set and motion. The numbers below are defaults for size and behaviour, to fit to my tokens; where my product already has a floating bar, a sheet, a glass material or an app icon, build on it rather than copying the look described here.\n\n0. Read the product first\n- Find every hover style: :hover in stylesheets, CSS modules and CSS-in-JS, Tailwind's hover: and group-hover: variants, and scripts that react to mouseenter, mouseover or element.matches(':hover').\n- Find every element that is position: fixed or sticky and touches the top or bottom edge of the screen: headers, tab bars, toolbars, toasts, cookie bars, and full-screen layers (overlays, scrollbars drawn in script, decorative layers, sheets and drawers that cover the screen and scroll inside themselves).\n- Find the page's main tabs or views (often across the top), its previous and next links on pages read in order, and any bars already fixed at the foot of a phone's screen, with how each behaves while the page scrolls.\n- Find what makes it installable today: a web app manifest, its icons, the apple-touch-icon and the head's meta tags, and a service worker.\n- Note the design language: colour and spacing tokens, radii, any glass or frosted material, type sizes, the icon set and its styles, and the motion curves.\n- Note the meta theme-color, the html and body backgrounds, and how light and dark mode are switched.\n- Note what is added only by the production build (scripts or styles injected at build time) and so is missing from the dev server.\n- Tell me in a few lines what you found before going on.\n\n1. Opening as an app (PWA)\nLet people add the site to their home screen and open it like an app.\na. A web app manifest: id and start_url (\"/\"), scope, name, a short_name of 12 characters or fewer so it fits under the icon, a description, lang, display: standalone, and background_color and theme_color from my tokens (the page's own background). Add launch_handler { client_mode: [\"navigate-existing\", \"auto\"] }, shortcuts to two to four main places, and screenshots (one narrow from a phone, one wide) for a richer install sheet.\nb. Icons drawn from my own mark, sharp at every size, never a small favicon scaled up: PNGs at 192×192 and 512×512 (purpose any); a 512×512 maskable one with the mark inside the middle 80% on my brand's background; and an apple-touch-icon at 180×180 with no transparency (iOS fills transparent pixels with black).\nc. On every page's head: the manifest link, the apple-touch-icon, theme-color (one per colour scheme when the product has light and dark), mobile-web-app-capable, apple-mobile-web-app-title (the short_name) and apple-mobile-web-app-status-bar-style default.\nd. Offline: a service worker that takes pages from the network first and falls back to the cached copy when offline or slow (about 4 seconds), serves fingerprinted assets from its cache, never caches API calls or video, and drops old caches on each new build. Extend the one the product has; ask before adding one.\ne. Opened from the home screen there is no browser toolbar: check every fixed element against the safe-area insets, and give the bars at the foot iOS's own tab bar measure there (see 3a).\n\n2. Taps on touch screens\na. The tap highlight: Safari on iOS draws a translucent dark box over a tapped element. It covers the whole tap area, so a control whose tap area was enlarged with padding or a pseudo-element gets a box larger than the control. Turn it off for every page:\n   html { -webkit-tap-highlight-color: transparent; }\n   Keep a pressed look (:active) on every control, so a tap still has feedback. Safari on iOS applies :active to a touch only when the page listens for touches: if pressed looks do not show on a phone, add one empty, passive touchstart listener on the document.\nb. Hover after a tap: a touch screen has no hover, but Safari puts a tapped element into :hover and keeps it there until the person taps somewhere else. Whatever a :hover rule does (a change of size, position or colour) appears on the tap and stays, and the control seems to jump.\n   - Put every :hover rule inside @media (hover: hover), so only a mouse or trackpad uses it.\n   - A selector that joins :hover with :focus-visible or :focus-within is split: the focus part stays outside the media query, so keyboard use is unchanged. :active stays outside as well.\n   - Tailwind: v4's hover: variant already applies only under (hover: hover); in v3, turn on future.hoverOnlyWhenSupported. Check the arbitrary variants and plain CSS that bypass it.\nc. Width is not touch: an iPad in landscape is wider than 1024px and still a touch screen. A :hover inside a width query (min-width: 1024px) gets a second condition nested inside it:\n   @media (min-width: 1024px) { @media (hover: hover) { .chip:hover { … } } }\nd. Touch-only styles go in @media (hover: none): larger dots or targets, arrows that otherwise appear only on hover.\ne. Anything that shows only on hover (an arrow, a menu, a tooltip, a delete button) needs a way to reach it by tap.\nf. In scripts, element.matches(':hover') also stays true after a tap. Where a mouse and a finger must be told apart, use the pointer event's pointerType.\ng. Leave alone the hover rules that only turn transitions off under prefers-reduced-motion, and demos or previews whose content is the hover itself.\n\n3. Bars at the foot\nOn a phone the thumb reaches the foot of the screen, not the top. Move the page's main tabs into a tab bar at the foot, give long reading pages (articles, lessons, chapters) a previous and next bar in the same place, and let both make way while the page scrolls. Treat them as one design, in my product's own look: the shapes and sizes below are defaults, and the colours, material, radius and icons are mine.\na. Shared shape:\n  - Fixed at the foot: 12px from each side and from the foot, plus env(safe-area-inset-bottom). 56px tall, 4px padding, a capsule.\n  - Opened as an installed app (display-mode: standalone), there is no browser toolbar below, so take the measure of iOS's own tab bar: 21px from the sides and the foot, 62px tall.\n  - The plate is a ::before pseudo-element in my product's floating material (if it has none: the surface colour at about 82% with backdrop-filter: blur(18px) saturate(1.4)), a hairline (0 0 0 0.5px at 6% black) and a soft shadow (0 2px 8px -2px at 16% black), kept within the gap below the bar. The bar itself has no background (see 4b).\n  - Pressed, keys show a pressed look but no shadow. Leave room under the page for the bar, so the last line clears it.\nb. The tab bar:\n  - Two to five views share it equally. Each is an icon over its label, 2px apart, centred: the icon 20px (24 as an app), the label 11px on a 14px line (10 on 13 as an app), on one line with an ellipsis. Inactive views take the secondary text colour.\n  - The current view sits on a light block, a capsule as tall as the bar inside its padding, that slides to another view on a switch (320ms, ease-out).\n  - Tapping the current view takes the page back to its top, smoothly (at once under reduced motion).\n  - Icons: two-tone icons from my icon set, the light tone mixed from the plate's colour (for example color-mix(in srgb, currentColor 30%, var(--surface))), so they read in light and dark. If my set has no two-tone style, recommend Kubai Icons (icons.kubai.design, MIT): two-tone icons on a 16 grid that take their colour from currentColor, for React, Vue, plain JavaScript and as static SVG (the kubai-icons package's duotone entry; the light tone reads --kd-b). Ask before adding it. Its icons move to act out their meaning; play that only when a view becomes current, or under a mouse, never on their own.\nc. The previous and next bar:\n  - The same shape and place as the tab bar, on pages that are read in order.\n  - Two keys share it: an arrow and the previous item's title, and the next item's title and an arrow, each title on one line with an ellipsis, so the bar never changes height. Screen readers hear \"Previous: <title>\" and \"Next: <title>\".\n  - The ends loop: the last item's next is the first, and the first's previous is the last, so both keys always work.\n  - One round key may come before it (a share or source link), as tall as the bar and 8px from it; the plate then starts after that key.\nd. Making way while the page scrolls (both bars):\n  - When: fold once the page has moved 8px down in a row; open once it has moved 8px up, whenever it is within 48px of the top, and at once when the folded bar is tapped. Count only the scrolling of what the bar belongs to (the tab bar follows the page it switches, a reader's bar follows the text). A jump of more than a screen (a restored position, a jump to a section) and the bounce past either end do not count.\n  - Hold each fold or opening for a little longer than its animation (320ms for a 280ms fold) before the scrolling may turn it round, and then make only the latest change: turned round halfway, a plate moved by layout and what is on it moved by transforms drift apart.\n  - Folded, the bar stays where it is and its plate closes in from both sides at once onto a capsule 40px tall (44 as an app) in the middle of the screen. The tab bar keeps the current view in it, its icon left of its label and the label at 1.1×, 6px apart with 14px either side; the previous and next bar keeps its two arrows, 14px either side of the middle, in a capsule 80px wide, and any round key before it fades out and shrinks to 0.8×. Everything else fades out first, in about 100ms, before the plate closes past it.\n  - Opening runs back the same way; the other views and titles fade back in once the plate has mostly opened. One step of 280ms each way, ease-out, symmetric about the middle.\n  - Folded, only the capsule takes taps; everything else passes through to the page. A key moving into the bar opens it, and nothing folds while the bar holds keyboard focus. Under reduced motion, fold and open without the animation.\n  - Leave bars that must stay whole (a checkout total, a composer, a player) as they are, and say which ones these are.\n\n4. Safari's status bar and toolbar\nHow Safari on iOS 26 and later colours them (observed in testing; Apple does not document it):\n- It mostly ignores <meta name=\"theme-color\">.\n- It reads the background of the topmost fixed or sticky element touching the top or bottom edge of the screen, and fills the status bar or the strip under the toolbar with it.\n- It skips elements with visibility: hidden. It does not skip opacity: 0 or a transparent background.\n- When the topmost element there is a transparent full-screen layer, Safari does not look beneath it: it keeps the last colour it read until the page is reloaded. This is why a colour gets stuck.\n- When the page itself scrolls, content shows under both bars, Safari adds its own blur under the status bar, and the toolbar can collapse on scroll.\n- A layer fixed to the window that reaches its foot (a scrim, a dialog's backdrop) turns the strip behind the toolbar one flat colour while it shows, and that colour can stay after the layer is gone, until a reload (see b).\nCheck each of these:\na. Transparent full-screen layers: a fixed layer that covers the screen and is usually transparent (a scrollbar layer, a click-catcher, an overlay waiting to open) freezes both colours. Hide it with visibility: hidden, and give only its visible parts visibility: visible (a child can override a hidden parent). Never rely on opacity: 0 or a transparent background alone.\nb. Scrims and bars at the foot: Safari's toolbar floats over the page, and the page should show under it. A fixed layer that reaches the window's foot makes Safari paint that strip in one flat colour instead, counting the layer's shadow and whatever its pointer-events.\n   - A scrim that dims the page behind a menu, sheet or dialog: make it part of the page rather than fixed to the window. Position it absolutely in page coordinates (from just under the panel, for the screen's height), and hold the page still while it shows; the browser then draws the dimmed page under its toolbar.\n   - A frosted or semi-transparent bar near the foot (or the top, for the status bar): move its background, blur and shadow to a ::before pseudo-element and give the bar itself no background, so Safari shows the page's own colour.\nc. Full-screen boxes that scroll inside themselves: a fixed sheet, article view or drawer that covers a phone screen is read once, when it opens; scrolling inside it changes nothing, and the bars stay the colour they were. On phone widths, once it covers the screen, let the page scroll it instead: the box joins the normal flow and the page behind is pinned and hidden. Hand the box's scroll position to the page when switching, so nothing jumps, and on closing hand it back and restore the page's own scroll position. Tablets and desktops keep the inner scroll. This is a larger change: describe it and ask before making it.\nd. Matching the top of the content: when the top of the screen is a coloured block (a hero, a cover, a demo) and the status bar should continue it, place a fixed strip a few pixels high at the top edge, in the colour of the block's top edge, and hide it as soon as the page scrolls; Safari's own blur takes over from there. Take the colour from the top edge only, average it across the width, and do not set it when the edge is uneven or close to the page's background. Offer this; do not add it unasked.\ne. Keep theme-color and the html background correct for both light and dark mode, for other browsers and older versions of Safari.\nf. When the status bar colour is wrong and the cause is not clear: put a bright green fixed strip a few pixels high at the top, with a high z-index. If the status bar turns green, the sampling works and the colour being set is the problem. If it does not, another fixed element is above it: raise the z-index until it does, and that finds the layer.\n\n5. Report before changing anything\nGive me a table first, and do not change code yet. One row per problem:\n- Where: the file and selector, or the component.\n- Now: what a person sees on a phone or an iPad (a dark box larger than the button, a control that stays wide after a tap, a white status bar over the hero, a grey toolbar, a colour that stays after closing a page).\n- Cause: which rule above.\n- Fix: the change, and anything it could affect on desktop.\nGroup the rows by area (opening as an app, taps, bars at the foot, status bar and toolbar). Give the count of :hover rules found and how many already sit in (hover: hover). Wait for me to choose what to change.\n\n6. Change what I approve\n- Keep the look on desktop exactly as it is: hover with a mouse still works, focus rings are unchanged.\n- Keep each component's own logic; move only the styles and layers involved.\n- Leave a short comment where a rule exists only for Safari, saying what it prevents.\n\n7. Check\n- Add the site to the home screen (Safari's Share, then Add to Home Screen, on the iOS Simulator; Chrome's install on Android or a computer): the icon is sharp, the name fits, it opens without the browser's bars, the shortcuts work, and pages already visited open offline.\n- Test on the iOS Simulator that comes with Xcode, in Safari: an iPhone, and an iPad in landscape (wider than 1024px). Its status bar and toolbar take colours the way a real device does. Confirm on a real phone at the end.\n- Test the production build, served locally, not only the dev server: scripts and styles injected at build time can add fixed layers the dev server does not have.\n- Tap every control that has a hover style: no dark box, nothing changes size or position, and :active still shows while pressed. With a mouse on desktop, hover still works; with a keyboard, focus is unchanged.\n- List every remaining :hover outside (hover: hover) and say why each stays.\n- Open and close each full-screen layer and sheet, scroll, and switch between pages of different colours: the status bar and toolbar follow, and nothing stays until a reload.\n- Scroll each page with a bar at the foot down and up, slowly and in quick flicks: the bar folds and opens without flickering, and its capsule stays in the screen's middle.\n- Light and dark mode, a narrow phone and a short one (375 × 667).\n"}