/* The phone's soft head bar and its menu (front/headbar.js). Up to 820 px wide, with JavaScript on, once the intro has settled; wider, the
   island (front.css). Without JavaScript neither is there: nothing could open the menu. */
.hb, .hb-menu, .m-flood { display: none; }
@media (max-width: 820px) {
  /* (only once main.js has started the pages, html.paged: a head bar without its module would be a blue band with a dead button) */
  html.js.settled.paged .hb { display: block; }
  html.js.settled .hb-menu:not([hidden]) { display: block; }
  html.js.settled .m-flood { display: block; }
}
:root { --hb-spring: cubic-bezier(.3, 1.45, .5, 1); --hb-ease: cubic-bezier(.2, .9, .2, 1); }

/* ---------- the bar ----------
   A soft bar: its top is the page's own colour, solid, and it fades to nothing at the bottom, so there is never an edge. The colour is the fixed
   bar's OWN background-color (headbar.js sets it): with the colour on a child layer Safari left the bezel in the first page's colour. The fade
   is a mask over the whole bar, eased, as tall as --hbH (150 px over a page in one flat colour, 210 over the others, eased between with the
   scroll). The bar takes no taps but its button's: the page under its fade stays in reach. */
.hb { position: fixed; z-index: 50; left: 0; right: 0; top: 0; height: calc(var(--hbH, 210px) + env(safe-area-inset-top, 0px)); color: #fff; background-color: #1560FE; pointer-events: none;
  font: 500 15px/1.4 "Inter", system-ui, sans-serif; transition: color .25s;
  -webkit-mask: linear-gradient(to bottom, #000 0, #000 24.0%, rgba(0, 0, 0, .987) 29.4%, rgba(0, 0, 0, .950) 34.9%, rgba(0, 0, 0, .891) 40.3%, rgba(0, 0, 0, .812) 45.7%, rgba(0, 0, 0, .717) 51.1%, rgba(0, 0, 0, .611) 56.6%, rgba(0, 0, 0, .500) 62.0%, rgba(0, 0, 0, .389) 67.4%, rgba(0, 0, 0, .283) 72.9%, rgba(0, 0, 0, .188) 78.3%, rgba(0, 0, 0, .109) 83.7%, rgba(0, 0, 0, .050) 89.1%, rgba(0, 0, 0, .013) 94.6%, rgba(0, 0, 0, 0) 100%);
  mask: linear-gradient(to bottom, #000 0, #000 24.0%, rgba(0, 0, 0, .987) 29.4%, rgba(0, 0, 0, .950) 34.9%, rgba(0, 0, 0, .891) 40.3%, rgba(0, 0, 0, .812) 45.7%, rgba(0, 0, 0, .717) 51.1%, rgba(0, 0, 0, .611) 56.6%, rgba(0, 0, 0, .500) 62.0%, rgba(0, 0, 0, .389) 67.4%, rgba(0, 0, 0, .283) 72.9%, rgba(0, 0, 0, .188) 78.3%, rgba(0, 0, 0, .109) 83.7%, rgba(0, 0, 0, .050) 89.1%, rgba(0, 0, 0, .013) 94.6%, rgba(0, 0, 0, 0) 100%); }
/* (while the page moves the bar follows the scroll exactly; at rest a change of colour, the next game or the menu, fades) */
.hb.rest { transition: color .25s, background-color .7s var(--hb-ease); }

/* ---------- the bezel: the colours behind Safari's own bars ----------
   Safari 26 fills the areas behind its status bar and its toolbar with the OWN background-color of a fixed, bar-shaped element at that edge of the
   screen (at least 90% of it wide, more than 10 px tall, not see-through, and the topmost thing 4 px inside that edge). At the top that is the bar
   above. These two strips are that element at the bottom, and at the top until the bar is there (the intro): headbar.js gives them the colour.
   They paint nothing, their mask is empty, so they never lie over the page; Safari reads the style, not the pixels. Above the menu and its flood
   (48, 49): a layer as large as the screen at an edge makes Safari keep the colour it had. .bezel-n is the helper that turns fixed and back, which
   is what makes Safari read the colours again. Phones only, and only with JavaScript: nothing else could give them a colour. */
.bezel, .bezel-n { display: none; }
@media (max-width: 820px) {
  html.js .bezel.b, html.js:not(.settled) .bezel.t, html.js .bezel-n { display: block; }
  /* (once the pages are there the bar is: html.js.settled.paged, above. A page settled but never paged, main.js failing after this module ran,
     cannot be: the strips are made by the same module that pages it) */
}
.bezel { position: fixed; z-index: 60; left: 0; right: 0; height: 14px; background-color: #000; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, transparent); mask-image: linear-gradient(transparent, transparent); }
.bezel.t { top: 0; height: calc(14px + env(safe-area-inset-top, 0px)); }
.bezel.b { bottom: 0; }
.bezel-n { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.bezel-n.on { position: fixed; }
.hb-row { position: relative; height: 66px; margin-top: env(safe-area-inset-top, 0px); display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 18px; }
.hb-l { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.hb-o { flex: none; display: inline-flex; font: 500 25px/1 "CooperMed", Georgia, serif; letter-spacing: -.01em; white-space: nowrap; }
.hb-o span { display: inline-block; }
.hb-o sup { font: 500 .36em "Inter", system-ui, sans-serif; vertical-align: top; position: relative; top: .3em; margin-left: 1px; }
.hb-sep { flex: none; width: 1.5px; height: 24px; border-radius: 1px; background: currentColor; opacity: .3; transform: scaleY(var(--sep, 0)); }
.slot { position: relative; flex: 1; min-width: 0; height: 44px; margin-right: 8px; transition: opacity .25s; }
/* a mark: on only while its page is current or on its way in or out; a mark wider than the slot (a long word in some languages) is set smaller
   to fit it (--fit), and a text mark is moved to share Olict®'s baseline (--dy; both headbar.js) */
.scn { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; visibility: hidden;
  transform: translateY(var(--dy, 0px)) scale(var(--fit, 1)); transform-origin: 0 50%; }
.scn.on { visibility: visible; }
/* (the apps mark is set in Nunito, which is fetched only once Apps comes near: until its mark first comes on it has no box, so it asks for nothing) */
.s-apps:not(.on) { display: none; }
.s-apps svg { display: block; overflow: visible; }
.s-apps text { font: 900 30px "Nunito", system-ui, sans-serif; fill: #0B0B0C; stroke: #fff; stroke-width: 7px; paint-order: stroke; stroke-linejoin: round; letter-spacing: -1px; }
.s-apps .wd { display: block; transform-origin: 0 0; }
/* (the badge is painted over the letters: the word's span is turned, which paints it above anything unpositioned, so the badge is lifted over it) */
.s-apps .bd { position: relative; z-index: 1; min-width: 21px; height: 21px; box-sizing: border-box; border-radius: 11px; padding: 0 5px; margin: -18px 0 0 -18px; background: #FF2E1F; color: #fff; font: 600 12px/21px "Inter", system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px #fff; }
.s-games .gl { display: flex; gap: 2px; align-items: flex-end; }
.s-games .gl svg { display: block; height: 21px; width: auto; transform-origin: 50% 60%; }
/* Business. is one line of text: the word and its full stop (the font's own, in blue) share a baseline. Publico where the visitor has it,
   Georgia otherwise. The word is clipped along the bottom of its line, which it rises out of (a clip-path: overflow: hidden would move an inline
   block's baseline to its bottom edge) */
.s-biz { display: block; font: 700 24px/44px "Publico Headline", Georgia, serif; letter-spacing: -.015em; }
.s-biz .bw { display: inline-block; line-height: 1.25; -webkit-clip-path: inset(-14px -6px 0 -6px); clip-path: inset(-14px -6px 0 -6px); }
.s-biz b { display: inline-block; font: inherit; }
.s-biz i { display: inline-block; font-style: normal; color: #1560FE; }
.s-status { gap: 9px; font: 500 12.5px/1 ui-monospace, "SF Mono", Menlo, monospace; }
/* (the light is the system's state as Status last told it, front/headbar.js' data-sys, in colour and in four shapes, so the colour is never alone: a
   green dot; an amber dot inside a ring of its colour; a red diamond, a square turned 45 degrees (by rotate, which the mark's entrance, a transform
   headbar.js sets, leaves alone); a hollow ring in the ink while it is checking or cannot confirm it.
   Only the green one beats, and only while its mark is shown: a hidden mark's animation would keep ticking on every other page) */
.s-status .led { flex: none; box-sizing: border-box; width: 8px; height: 8px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.hb[data-sys="operational"] .s-status .led, .hb-menu[data-sys="operational"] .m-status i { background: #3DDC84; box-shadow: none; }
.hb[data-sys="degraded"] .s-status .led, .hb-menu[data-sys="degraded"] .m-status i { background: #FFB020; border-color: #FFB020; }
.hb[data-sys="degraded"] .s-status .led { width: 12px; height: 12px; padding: 1.5px; border-width: 1.5px; border-style: solid; background-clip: content-box; box-shadow: none; }
.hb[data-sys="outage"] .s-status .led, .hb-menu[data-sys="outage"] .m-status i { background: #FF5A4F; border-radius: 1px; box-shadow: none; rotate: 45deg; }
.hb[data-sys="operational"] .s-status.on .led { animation: hb-beat 1.6s infinite; }
@keyframes hb-beat { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); } 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.s-co { font: 500 22px/1 "CooperMed", Georgia, serif; letter-spacing: -.01em; }

/* the menu button: three lines that cross into an X */
.burger { flex: none; position: relative; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.burger i { position: absolute; left: 13px; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .55s var(--hb-spring), opacity .2s, width .4s var(--hb-spring), left .4s var(--hb-spring); }
.burger i:nth-child(1) { top: 17px; } .burger i:nth-child(2) { top: 24px; left: 21px; width: 16px; } .burger i:nth-child(3) { top: 31px; }
.burger:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
html.menu-open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
html.menu-open .burger i:nth-child(2) { opacity: 0; transform: translateX(14px); }
html.menu-open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
html.menu-open .slot, html.menu-open .hb-sep { opacity: 0; }
/* over the open menu the bar is only its row, Olict® and the cross, short and unfaded, so it veils no row. Its own background-color stays
   the colour on screen (the menu's black, a flood's colour: headbar.js), never transparent: Safari colours the strip behind the clock from the
   fixed bar's own background, and a transparent bar left it in the page's colour. Black on the menu's black, its edge cannot be seen */
html.menu-open .hb { height: calc(66px + env(safe-area-inset-top, 0px)); -webkit-mask: none; mask: none; }

/* ---------- the menu ----------
   Opening: five rings in the brand's colours burst out of the button, one inside the other, the last one black; the page under them stays as it
   is, its size and its place; the five sections come up one after another, each in its own lettering. Choosing one floods the screen with its
   page's colour from under the finger, and the colour lifts like a curtain on that page. Under the bar (its button turns into the cross), over
   everything else. */
.hb-menu { position: fixed; z-index: 48; inset: 0; --bx: 90%; --by: 40px; pointer-events: none; }
html.menu-open .hb-menu { pointer-events: auto; }
.m-ring { position: absolute; inset: 0; background: var(--c); -webkit-clip-path: circle(0px at var(--bx) var(--by)); clip-path: circle(0px at var(--bx) var(--by));
  transition: clip-path .5s cubic-bezier(.7, 0, .3, 1) calc((4 - var(--n)) * 45ms), -webkit-clip-path .5s cubic-bezier(.7, 0, .3, 1) calc((4 - var(--n)) * 45ms); }
html.menu-open .m-ring { -webkit-clip-path: circle(150vmax at var(--bx) var(--by)); clip-path: circle(150vmax at var(--bx) var(--by));
  transition: clip-path .85s cubic-bezier(.55, 0, .15, 1) calc(var(--n) * 75ms), -webkit-clip-path .85s cubic-bezier(.55, 0, .15, 1) calc(var(--n) * 75ms); }
/* (the prototype's layout: five rows of 13.4 % of the screen, at most 108 px, shrinking to fit between the paddings on a short one) */
.m-in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 96px 22px 84px; }
.mrow { position: relative; box-sizing: border-box; display: block; width: 100%; height: 13.4vh; max-height: 108px; min-height: 0; padding: 0; margin: 0;
  border: 0; background: none; color: #fff; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* the line under a row comes with the row's lettering, drawn from the left as it comes up, and goes with it: never on the page before the rings
   have covered it, nor left behind as they close */
.mrow::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .1); pointer-events: none;
  opacity: 0; transform: scaleX(0); transform-origin: 0 50%; transition: opacity .15s, transform .2s ease-in; }
html.menu-open .mrow::after { opacity: 1; transform: none; transition: opacity .4s calc(.4s + var(--i) * 75ms), transform .8s calc(.4s + var(--i) * 75ms) var(--hb-ease); }
.mrow.away::after, html.menu-open .hb-menu.langs .mrow::after { opacity: 0; transition: opacity .25s; }
html.menu-open .hb-menu.back .mrow::after { transition: opacity .3s calc(.1s + var(--i) * 45ms), transform .6s calc(.1s + var(--i) * 45ms) var(--hb-ease); }
/* the row's box stands still where it rests and takes a tap at once; its lettering comes up into it, and falls away from it */
/* (the lettering takes no pointer: on its way in it lies over the rows below its own, and a tap there is theirs) */
.mr { display: flex; align-items: center; justify-content: space-between; height: 100%; pointer-events: none; transform-origin: 0 50%; opacity: 0; transform: translateY(80px) rotate(6deg); filter: blur(10px);
  transition: opacity .2s, transform .3s ease-in, filter .2s; }
html.menu-open .mr { opacity: 1; transform: none; filter: none;
  transition: opacity .5s calc(.34s + var(--i) * 75ms), transform 1s calc(.34s + var(--i) * 75ms) var(--hb-spring), filter .5s calc(.34s + var(--i) * 75ms); }
.mrow.away .mr { opacity: 0 !important; transform: translateY(120px) rotate(calc(var(--i) * 5deg - 12deg)) !important; transition: opacity .3s, transform .45s cubic-bezier(.6, 0, 1, .6) !important; }
.mrow.picked .mr { transform: scale(1.06) translateX(6px) !important; transition: transform .4s var(--hb-spring) !important; }
.mrow:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 12px; }
.mrow small { font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; opacity: .4; }
.m-apps svg { display: block; overflow: visible; transform: rotate(-4deg); }
.m-apps text { font: 900 30px "Nunito", system-ui, sans-serif; fill: #0B0B0C; stroke: #fff; stroke-width: 7px; paint-order: stroke; stroke-linejoin: round; letter-spacing: -1px; }
.m-apps circle { fill: #FF2E1F; stroke: #fff; stroke-width: 2px; } .m-apps .n { font: 600 11px "Inter", system-ui, sans-serif; fill: #fff; stroke: none; letter-spacing: 0; }
.m-games svg { display: block; height: 44px; width: auto; color: #fff; }
.m-biz { font: 700 46px/1 "Publico Headline", Georgia, serif; letter-spacing: -.015em; white-space: nowrap; } .m-biz i { font-style: normal; color: #1560FE; }
.m-status { display: flex; align-items: center; gap: 14px; font: 500 34px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: -.03em; white-space: nowrap; }
.m-status i { flex: none; box-sizing: border-box; width: 14px; height: 14px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.hb-menu[data-sys="outage"] .m-status i { width: 13px; height: 13px; border-radius: 2px; }
.hb-menu[data-sys="degraded"] .m-status i { width: 18px; height: 18px; padding: 2px; border-width: 2px; border-style: solid; background-clip: content-box; box-shadow: none; }
.hb-menu[data-sys="operational"] .m-status i { animation: hb-beat 1.6s infinite; }
.m-co { font: 500 44px/1 "CooperMed", Georgia, serif; letter-spacing: -.01em; white-space: nowrap; }
/* (a row's lettering wider than the screen, a long word in some languages, is set smaller to fit: --fit, headbar.js; min-width 0, so that the word,
   which overflows its box, never pushes the row's number off the screen) */
.mr > span { display: block; min-width: 0; transform: scale(var(--fit, 1)); transform-origin: 0 50%; }
/* the languages: one button at the bottom, a globe, the word and, quieter, the current language's own name. It comes in after the rows */
.m-lang { position: absolute; left: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 9px; max-width: calc(100% - 44px); box-sizing: border-box; height: 46px; padding: 0 18px 0 14px;
  border: 0; border-radius: 99px; background: rgba(255, 255, 255, .09); color: #fff; font: 600 14.5px/1 "Inter", system-ui, sans-serif; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: translateY(14px); transition: opacity .2s, transform .2s; }
html.menu-open .m-lang { opacity: 1; transform: none; transition: opacity .5s .85s, transform .7s .85s var(--hb-ease); }
.m-lang svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.m-lang span { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; opacity: .5; }
.m-lang span::before { content: "·"; margin-right: 9px; }
.m-lang:focus-visible, .m-langs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* the list of the eleven, over the rows, in two columns: each language by its own name, its code quiet beside it as the rows have their
   numbers; the current one white. Opening it, the rows fall away and the button sinks; the list comes up, a name after another. Closed it
   is not there for a tap, a focus or a screen reader (visibility, once its fade has ended) */
.m-langs { position: absolute; inset: 0; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(80px + env(safe-area-inset-top, 0px)) 22px calc(30px + env(safe-area-inset-bottom, 0px));
  visibility: hidden; pointer-events: none; transition: visibility 0s .3s; }
.hb-menu.langs .m-langs { visibility: visible; pointer-events: auto; transition: none; }
.ml-top { display: flex; align-items: center; gap: 4px; height: 44px; margin-bottom: 8px; opacity: 0; transition: opacity .2s; }
.ml-top p { margin: 0; color: rgba(255, 255, 255, .45); font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; text-transform: uppercase; letter-spacing: .06em; }
/* (its close control is a way back to the rows, an arrow: the cross above is the menu's own, and closes it all) */
.ml-x { position: relative; flex: none; order: -1; width: 44px; height: 44px; margin-left: -12px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ml-x i { position: absolute; left: 15px; top: 21px; width: 11px; height: 2px; border-radius: 2px; background: currentColor; transform-origin: 1px 50%; transform: rotate(-45deg); } .ml-x i + i { transform: rotate(45deg); }
.ml-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.ml-list button { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; height: 54px; box-sizing: border-box; padding: 0 12px; margin: 0;
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); border-radius: 0; background: none; color: #fff; font: 500 19px/1 "Inter", system-ui, sans-serif; letter-spacing: -.01em; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: translateY(26px); transition: opacity .15s, transform .2s ease-in; }
.ml-list b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; }
.ml-list small { flex: none; font: 500 11px/1 ui-monospace, "SF Mono", Menlo, monospace; opacity: .4; }
.ml-list button[aria-pressed="true"] { border-radius: 12px; border-bottom-color: transparent; background: #fff; color: #0B0B0C; }
.ml-list button[aria-pressed="true"] small { opacity: .55; }
.hb-menu.langs .ml-top { opacity: 1; transition: opacity .3s .1s; }
.hb-menu.langs .ml-list button { opacity: 1; transform: none; transition: opacity .3s calc(.12s + var(--i) * 22ms), transform .55s calc(.12s + var(--i) * 22ms) var(--hb-spring); }
html.menu-open .hb-menu.langs .mr { opacity: 0; transform: translateY(120px) rotate(calc(var(--i) * 5deg - 12deg)); filter: none; transition: opacity .25s, transform .4s cubic-bezier(.6, 0, 1, .6); }
html.menu-open .hb-menu.langs .m-lang { opacity: 0; transform: translateY(14px); transition: opacity .15s, transform .2s; }
/* (and back: once the list has closed the rows come up again at once, not after the menu's own opening wait) */
html.menu-open .hb-menu.back .mr { transition: opacity .3s calc(.1s + var(--i) * 45ms), transform .7s calc(.1s + var(--i) * 45ms) var(--hb-spring), filter .3s; }
html.menu-open .hb-menu.back .m-lang { transition: opacity .3s .3s, transform .5s .3s var(--hb-ease); }
/* the flood of colour a chosen row sends over the screen, and its lift */
.m-flood { position: fixed; z-index: 49; inset: 0; pointer-events: none; background: var(--c); -webkit-clip-path: circle(0px at var(--x) var(--y)); clip-path: circle(0px at var(--x) var(--y)); }
.m-flood.go { -webkit-clip-path: circle(150vmax at var(--x) var(--y)); clip-path: circle(150vmax at var(--x) var(--y)); transition: clip-path .55s cubic-bezier(.6, 0, .2, 1), -webkit-clip-path .55s cubic-bezier(.6, 0, .2, 1); }
.m-flood.full { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); transition: none; }
.m-flood.up { -webkit-clip-path: inset(0 0 100% 0); clip-path: inset(0 0 100% 0); transition: clip-path .7s cubic-bezier(.7, 0, .15, 1), -webkit-clip-path .7s cubic-bezier(.7, 0, .15, 1); }

/* reduced motion: the menu is there at once and gone at once, nothing beats (index.html already switches every transition and animation off;
   the marks cut instead of being scrubbed: headbar.js) */
@media (prefers-reduced-motion: reduce) {
  .hb, .hb *, .hb-menu, .hb-menu *, .hb-menu *::after, .m-flood { transition: none !important; animation: none !important; }
}
