/* Olict GAMES (games.js): the page is the featured game's colour (--gm, the game's own sky), its art over it, fading into that colour. The colour
   and the gradient's stops are registered, so they cross-fade (where @property is known; elsewhere they change at once). */
@property --gm { syntax: "<color>"; inherits: true; initial-value: #121C80; }
@property --gm-82 { syntax: "<color>"; inherits: true; initial-value: rgba(18, 28, 128, .82); }
@property --gm-0 { syntax: "<color>"; inherits: true; initial-value: rgba(18, 28, 128, 0); }
.sec-games { padding: 0; color: #fff; background: var(--gm, #121C80); overflow: hidden; display: flex; flex-direction: column;
  transition: --gm .9s var(--enter), --gm-82 .9s var(--enter), --gm-0 .9s var(--enter); }
.sec-games > [data-mount] { flex: 1; display: flex; flex-direction: column; }
.gm { flex: 1; position: relative; display: flex; }
.gm-art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.gm-pic { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: opacity .9s var(--enter); }
.gm-pic.wait, .gm-pic.out { opacity: 0; }
/* (the old picture under a new one, going in the second half of the cross-fade, games.js) */
.gm-pic.go { opacity: 0; transition-duration: .45s; }
/* web: the picture is never blown up past its own pixels on a 2x screen (1290 x 2796 drawn 645 px wide at most, the landscape 2400 x 1350 at most
   1200; on a 1x screen up to their full size). It stands at the page's foot, on the right: a portrait one (.tall, games.js) as wide as the page's
   height allows with its scene, the lower two thirds, in view (68 vh wide is 147 vh tall), and no nearer the left than 480 px, clear of the texts;
   its sky runs off the top. Its left and top edges fade into the page's colour (--fl, --ft), so no edge of a picture shows (its right and bottom
   ones are the page's). In a window tall enough to show a portrait picture's sky, the two fades are one curve round the scene, or the sky would
   stand as a pale column. */
@media not all and (max-width: 820px) {
  .gm-pic { --fl: linear-gradient(to right, transparent, #000 24%); --ft: linear-gradient(transparent, #000 24%);
    left: auto; top: auto; right: 0; bottom: 0; width: min(100%, 1200px); height: auto; object-fit: fill;
    -webkit-mask: var(--fl), var(--ft); -webkit-mask-composite: source-in; mask: var(--fl), var(--ft); mask-composite: intersect; }
  .gm-pic.tall { --ft: linear-gradient(transparent, #000 40%); width: min(100% - 480px, 68vh, 645px); }
  @media (max-resolution: 1.5dppx) { .gm-pic { width: min(100%, 2400px); } .gm-pic.tall { width: min(100% - 480px, 68vh, 1290px); } }
  @media (min-height: 1100px) { .gm-pic.tall { --fl: radial-gradient(100% 85% at 100% 100%, #000 70%, transparent); --ft: linear-gradient(#000, #000); } }
}
/* web: the page colour comes from the left, under the texts (the left-to-right stops are a share of the page's width, but never nearer than
   380 and 760 px: from 821 to 1100 px wide a share alone left the end of a long name over the raw art) */
.gm-art::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, var(--gm) 0, var(--gm-82) max(32%, 380px), var(--gm-0) max(64%, 760px)); }
/* The page is 100vh, Safari's screen with its toolbar collapsed, and the texts stand at its foot: they stand higher by the toolbar's height
   (100vh - 100svh), to be in view with it showing too. The shorthand's plain 56 px is the fallback where svh is unknown. */
.gm-ui { position: relative; z-index: 2; box-sizing: border-box; width: 100%; max-width: calc(560px + 12vw); padding: calc(110px + env(safe-area-inset-top, 0px)) 6vw 56px;
  padding-bottom: calc(56px + 100vh - 100svh); display: flex; flex-direction: column; justify-content: flex-end; }
/* (the texts and the picker) */
.gm-hold { display: flex; flex-direction: column; }
.sec-games .lk { display: inline-flex; flex-direction: column; align-items: flex-start; --h: 50px; }
.sec-games .lk-o { font-family: "CooperMed", Georgia, serif; font-size: calc(var(--h) * .5); line-height: 1; margin: 0 0 calc(var(--h) * .14) calc(var(--h) * .02); color: #fff; white-space: nowrap; }
.sec-games .lk-o sup { font: 500 .36em "Inter", system-ui, sans-serif; vertical-align: top; position: relative; top: .2em; margin-left: .05em; }
.sec-games .lk svg { height: var(--h); width: auto; display: block; color: #fff; }
.gm-lk { margin-bottom: 30px; }
.gm-top { display: flex; gap: 18px; align-items: center; min-width: 0; }
.gm-icon { width: 92px; height: 92px; flex: none; border-radius: 22%; object-fit: cover; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
.gm-name { flex: 1 1 auto; min-width: 0; font: 900 54px/1.05 "Nunito", system-ui, sans-serif; letter-spacing: -.01em; white-space: nowrap; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.gm-short { font: 700 19px/1.4 "Nunito", system-ui, sans-serif; max-width: 30ch; margin: 18px 0 24px; text-shadow: 0 1px 12px rgba(0, 0, 0, .3); }
[data-swap] { transition: opacity .5s, transform .7s var(--enter); }
[data-swap].swap { opacity: 0; transform: translateY(14px); }
.gm-pick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.gm-pick button { all: unset; position: relative; cursor: pointer; border-radius: 22%; transition: transform .3s var(--enter); }
.gm-pick-ic { width: 54px; height: 54px; display: block; border-radius: 22%; opacity: .75; }
/* an icon that failed to load: its initial in the middle of the squircle, at about 40 % of its size */
.gm-icon.ic-none, .gm-pick .ic-none { display: grid; place-items: center; }
.gm-icon.ic-none { font-size: 37px; }
.gm-pick .ic-none { font-size: 22px; }
.gm-pick [aria-pressed="true"] { transform: translateY(-4px) scale(1.06); }
.gm-pick [aria-pressed="true"] .gm-pick-ic { opacity: 1; box-shadow: 0 0 0 3px #fff; }
/* (7 px out: clear of the selected icon's own 3 px ring, so the two never merge) */
.gm-pick button:focus-visible { outline: 3px solid #fff; outline-offset: 7px; }
.gm.ticking .gm-pick [aria-pressed="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -12px; height: 3px; border-radius: 3px; background: #fff;
  transform-origin: left; animation: gm-fill 6s linear; }
@keyframes gm-fill { from { transform: scaleX(0); } }
/* without JavaScript, or before games.js has drawn the page: the games as a plain list (in Inter: Nunito must not load while the hero is on screen) */
.gm-list { box-sizing: border-box; list-style: none; margin: 0 auto; padding: calc(96px + env(safe-area-inset-top, 0px)) 16px 56px; display: grid; gap: 16px; font: 500 16px/1.45 "Inter", system-ui, sans-serif; }
.gm-list b { display: block; font: 700 24px/1.2 "Inter", system-ui, sans-serif; }

/* phones: one locked page (front.css gives it #sc's height less --peek; nothing scrolls inside). The art is zoomed (122 vw wide, 11 vw out to each side)
   and lifted (36 vw above the page's top, so it runs up under the head bar's long fade), and fades into the colour between 44 and 66 % of the page; the
   texts stand below it, and start no higher than --clear. The mask is on the art, so the old picture and the new one fade as one. */
@media (max-width: 820px) {
  html.js #sc > #games.sec-games { overflow: hidden; }
  .gm-art { -webkit-mask: linear-gradient(to bottom, #000 44%, transparent 66%); mask: linear-gradient(to bottom, #000 44%, transparent 66%); }
  .gm-pic { left: -11vw; top: -36vw; width: 122vw; height: auto; object-fit: fill; }
  .gm-art::after { display: none; }
  .gm-ui { max-width: none; padding: var(--clear) 20px 26px; }
  .sec-games .lk { --h: 34px; }
  .gm-lk { margin-bottom: 16px; }
  .gm-top { gap: 14px; }
  .gm-icon { width: 60px; height: 60px; }
  .gm-icon.ic-none { font-size: 24px; }
  .gm-pick .ic-none { font-size: 18px; }
  .gm-name { font-size: 34px; }
  .gm-short { font-size: 15px; margin: 10px 0 14px; }
  .gm-pick { gap: 10px; margin-top: 18px; }
  .gm-pick-ic { width: 44px; height: 44px; }
}
/* a short phone: the texts start at --clear and would run out of the page's foot. On a screen 480 px tall or less (a phone held sideways, a 320 px
   phone with Safari's bars showing) the lockup and the short line give way, and the foot is tighter: the name, the pill and the picker stay. (A
   4.7-inch iPhone in Safari, 375 x 548 or so, keeps its lockup: it fits) */
@media (max-width: 820px) and (max-height: 480px) {
  .gm-lk { display: none; }
  .gm-short { display: none; }
  .gm-ui { padding-bottom: 16px; }
  .gm-top { margin-bottom: 14px; }
}
