/* Baloo 2 for titles, figures and buttons; Montserrat (the logo's typeface) for text */
@font-face{font-family:"Baloo 2";src:url(assets/fonts/Baloo2.woff2) format("woff2");font-weight:400 800;font-style:normal;font-display:swap}
@font-face{font-family:Montserrat;src:url(assets/fonts/Montserrat.woff2) format("woff2");font-weight:300 900;font-style:normal;font-display:swap}
:root{
  /* warm near-black and cream come from the logo; the page is dark, colour comes from the games.
     --accent: buttons, highlighted words, figures. --warn: form errors only. */
  --ink:#14100c; --ink-2:#1d1814; --ink-line:#3a3027; --paper:#f4ede2; --mute:#b5a999;
  --accent:#ff7d5c; --warn:#f0c24b; --dusk:#2e2118; --dusk-line:#4a382a;
  /* one colour per game category (see tools/games.py): the background of that game's band */
  --survival:#8fbf6a; --reflex:#f0c24b; --arcade:#6fb6d9; --puzzle:#b796e0; --runner:#f28cb8; --memory:#5fd3c4; --rpg:#e25563;
  --display:"Baloo 2",Montserrat,system-ui,sans-serif;
  --top:62px; --focus:var(--accent);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:var(--top);-webkit-text-size-adjust:100%;background:var(--ink)}
body{background:var(--ink);color:var(--paper);font:400 17px/1.6 Montserrat,system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit}
img{display:block;max-width:100%;height:auto}
ul{list-style:none}
.wrap{width:min(1180px,100% - 36px);margin-inline:auto}
h1,h2,h3{font-family:var(--display);font-weight:800;line-height:1.02;letter-spacing:-.01em;text-wrap:balance}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:absolute;left:12px;top:-60px;z-index:60;background:var(--accent);color:var(--ink);padding:10px 16px;border-radius:6px;font-weight:800}
.skip:focus{top:10px}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}

/* BUTTONS: square-ish, heavy, no pills */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 26px;border-radius:10px;font:700 17.5px/1 var(--display);text-decoration:none;border:2px solid var(--paper);background:none;color:var(--paper);cursor:pointer;transition:background .15s,color .15s,transform .15s,box-shadow .15s}
.btn:hover{background:var(--paper);color:var(--ink)}
.btn--main{background:var(--accent);border-color:var(--accent);color:var(--ink)}
.btn--main:hover{background:var(--paper);border-color:var(--paper)}
.btn--ink{background:var(--ink);border-color:var(--ink);color:var(--paper);box-shadow:4px 4px 0 rgba(20,16,12,.28)}
.btn--ink:hover{background:var(--ink);color:var(--accent);transform:translate(-2px,-2px);box-shadow:6px 6px 0 rgba(20,16,12,.28)}
.btn--play::before{content:"";border-left:12px solid currentColor;border-block:8px solid transparent}
.btn:active{transform:translate(1px,1px)}

/* HEADER */
.top{position:sticky;top:0;z-index:40;height:var(--top);background:rgba(20,16,12,.92);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-bottom:1px solid var(--ink-line)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;height:100%}
.logo{display:block;padding:13px 0}
.logo img{height:17px;width:auto}
.top nav{display:flex;align-items:center;gap:26px;font-weight:600;font-size:14.5px}
.top nav a:not(.btn){position:relative;text-decoration:none;padding:10px 0}
/* a small bar under the link of the section being read (main.js) */
.top nav a:not(.btn)::after{content:"";position:absolute;left:0;right:0;bottom:3px;height:3px;border-radius:2px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .25s}
.top nav a.is-current::after{transform:scaleX(1)}
.top nav a:not(.btn):hover{color:var(--accent)}
.top .btn{min-height:42px;padding:0 18px;font-size:14.5px}
.top .logo{margin-right:auto}
.top .btn--play{margin-left:10px}
.top__contact{display:none}
/* phone: the bar keeps the logo, a Contact button and a menu button; the section links and the language menu are in a panel that
   drops under the bar, over a dark veil (main.js opens and closes it). On the narrowest screens the logo keeps its
   first word only ("Ludomensa"). */
.burger{display:none;flex:none;order:3;position:relative;width:42px;height:42px;padding:0;border:2px solid var(--paper);border-radius:10px;background:none;color:var(--paper);cursor:pointer}
.burger span,.burger span::before,.burger span::after{position:absolute;left:0;width:18px;height:2.5px;border-radius:2px;background:currentColor;transition:transform .2s,background-color .2s}
.burger span{left:50%;top:50%;margin:-1.25px 0 0 -9px}
.burger span::before,.burger span::after{content:""}
.burger span::before{top:-6px}
.burger span::after{top:6px}
.burger[aria-expanded="true"]{border-color:var(--accent);color:var(--accent)}
.burger[aria-expanded="true"] span{background-color:transparent}
.burger[aria-expanded="true"] span::before{transform:translateY(6px) rotate(45deg)}
.burger[aria-expanded="true"] span::after{transform:translateY(-6px) rotate(-45deg)}
html.menu-open{overflow:hidden}
html.menu-open .totop{display:none}
@media(max-width:700px){
  .burger{display:block}
  .top .wrap{gap:10px}
  .top .btn{padding:0 15px}
  .top nav{position:absolute;z-index:1;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;max-height:calc(100vh - var(--top));max-height:calc(100dvh - var(--top));overflow-y:auto;overscroll-behavior:contain;padding:4px 18px 22px;background:var(--ink);border-bottom:2px solid var(--paper);visibility:hidden;opacity:0;transform:translateY(-10px);transition:opacity .2s,transform .2s,visibility 0s .2s}
  .top.is-menu nav{visibility:visible;opacity:1;transform:none;transition:opacity .2s,transform .2s}
  .top::after{content:"";position:absolute;top:100%;left:0;right:0;height:100vh;background:rgba(14,11,8,.72);visibility:hidden;opacity:0;transition:opacity .2s,visibility 0s .2s}
  .top.is-menu::after{visibility:visible;opacity:1;transition:opacity .2s}
  .top nav > a:not(.btn){padding:17px 2px;border-bottom:1px solid var(--ink-line);font:800 24px/1.1 var(--display)}
  .top nav > a:not(.btn)::after{display:none}
  .top nav > a.is-current{color:var(--accent)}
  /* the language menu: a full-width row with its name ("Language", from the title), its list opening under it */
  .top .langs{margin-top:16px;font-size:15px}
  .top .langs summary{display:flex;min-height:50px;padding:0 12px 0 14px;border-width:2px;border-radius:10px;gap:9px}
  .top .langs summary::before{content:attr(title);margin-right:auto;color:var(--mute);font-weight:600;letter-spacing:0}
  .top .langs ul{position:static;margin-top:8px;box-shadow:none}
  /* in the bar: Contact, outlined, in place of Play */
  .top .btn--play{display:none}
  .top__contact{display:inline-flex}
}
}
/* phone without scripts: no menu button, the links in a line under the bar (the languages are in the footer) */
@media(max-width:700px) and (scripting:none){
  .burger,.top .langs,.top::after{display:none}
  .top nav{flex-direction:row;align-items:center;gap:22px;padding:2px 18px;overflow-x:auto;border-bottom:1px solid var(--ink-line);visibility:visible;opacity:1;transform:none}
  .top nav > a:not(.btn){padding:11px 0;border:0;font-family:inherit;font-weight:600;font-size:15px;line-height:1.2}
}
@media(prefers-reduced-motion:reduce){.top nav,.top.is-menu nav,.top::after,.top.is-menu::after,.burger span,.burger span::before,.burger span::after{transition:none}}
@media(max-width:480px){.logo{width:97px;overflow:hidden}.logo img{max-width:none}} /* 17px high: "Ludomensa" is the first 97px of 220 */

/* FIRST SCREEN: the hero and the key figures are exactly as tall as the window under the top bar (never shorter than
   their content): the hero takes the room left above the figures and centres its content in it */
.first{display:flex;flex-direction:column;min-height:calc(100vh - var(--top));min-height:calc(100svh - var(--top))}
/* HERO */
.hero{position:relative;isolation:isolate;flex:1;display:flex;flex-direction:column;justify-content:center;padding:clamp(30px,6vw,88px) 0 clamp(34px,5vw,72px);overflow:hidden}
/* gameplay clips behind the hero, kept dark so that the text stays the subject */
.hero__bg{position:absolute;inset:0;z-index:-1;background:var(--ink)}
.hero__bg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1s}
.hero__bg img.is-on{opacity:1}
.hero__bg::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,var(--ink) 0,rgba(20,16,12,0) 34%),rgba(20,16,12,.88)}
@media(min-width:940px){.hero__bg::after{background:linear-gradient(to top,var(--ink) 0,rgba(20,16,12,0) 34%),linear-gradient(90deg,rgba(20,16,12,.94) 0,rgba(20,16,12,.88) 50%,rgba(20,16,12,.7) 100%)}}
.collage a.is-live{border-color:var(--accent)}
.hero .wrap{display:grid;gap:34px;align-items:center}
.hero h1{font-size:clamp(38px,6vw,78px);margin-bottom:20px}
.hero h1 em{font-style:normal;color:var(--accent)}
.hero__lead{font-size:clamp(17px,1.5vw,19px);color:#ddd3c4;max-width:32em}
.cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.collage{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:6px 2px 10px}
.collage a{position:relative;display:block;border-radius:10px;overflow:hidden;aspect-ratio:3/5;background:var(--ink-2);border:2px solid var(--paper);transition:transform .2s}
.collage li:nth-child(odd) a{transform:rotate(-2.5deg) translateY(8px)}
.collage li:nth-child(even) a{transform:rotate(2deg)}
.collage li a:hover,.collage li a:focus-visible{transform:rotate(0) translateY(-6px)}
.collage img{width:100%;height:100%;object-fit:cover}
.collage video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .25s}
.collage video.is-playing{opacity:1}
.collage span{position:absolute;inset:auto 0 0;z-index:1;padding:26px 6px 8px;font-weight:800;font-size:11.5px;line-height:1.2;color:#fff;background:linear-gradient(transparent,rgba(14,11,8,.9))}
.collage a::after{content:"";position:absolute;z-index:1;right:7px;top:7px;width:30px;height:30px;border-radius:50%;background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M12 9.5v11l9-5.5z' fill='%2314100c'/%3E%3C/svg%3E") center/contain no-repeat}
@media(min-width:940px){
  .hero .wrap{grid-template-columns:1.05fr 1fr;gap:60px}
  .collage{gap:16px}
  .collage a{border-width:3px;border-radius:14px}
  .collage li:nth-child(odd) a{transform:rotate(-2.5deg) translateY(18px)}
  .collage span{font-size:14px;padding:36px 12px 12px}
  .collage a::after{width:38px;height:38px;right:10px;top:10px}
}

/* NUMBERS */
.nums{border-block:1px solid var(--ink-line)}
.nums dl{display:grid;grid-template-columns:1fr 1fr}
.nums dl div{padding:20px 0 18px;display:flex;flex-direction:column}
.nums dl div:nth-child(odd){border-right:1px solid var(--ink-line);padding-right:14px}
.nums dl div:nth-child(even){padding-left:18px}
.nums dl div:nth-child(-n+2){border-bottom:1px solid var(--ink-line)}
.nums dt{font-size:14px;color:var(--mute);font-weight:500;margin-bottom:6px}
.nums dd{font-family:var(--display);font-weight:800;font-size:clamp(40px,5vw,64px);line-height:1;letter-spacing:-.01em;margin-top:auto}
.nums dd small{font-size:.36em;letter-spacing:0;margin-left:5px;color:var(--accent)}
@media(min-width:800px){
  .nums dl{grid-template-columns:repeat(4,1fr)}
  .nums dl div:nth-child(n){padding:28px 24px;border-bottom:0;border-right:1px solid var(--ink-line)}
  .nums dl div:first-child{padding-left:0}.nums dl div:last-child{border-right:0}
}

/* SECTIONS */
.sec{padding:clamp(56px,7vw,100px) 0}
.studio{padding-top:clamp(40px,5vw,70px)} /* a little less room above the studio than above the other sections */
h2{font-size:clamp(32px,4.8vw,58px);margin-bottom:14px}
.sub{color:var(--mute);max-width:38em}
#studioTitle + .sub{max-width:none} /* one line under "Light by design." wherever the screen is wide enough */

/* LATEST RELEASES: each game is a poster with a ticket stub. The poster is the game's art with its title on it,
   framed and slightly tilted like the tiles of the hero; a round "New" sticker sits on its corner; below a
   perforated line, the stub holds the pitch, the figures and the Play button. --c is the category colour. */
.gamesec .latest{padding-top:clamp(26px,3.2vw,44px)} /* room above "Latest releases", under the key figures */
.games{display:grid;gap:34px;margin-top:30px}
.game{position:relative;display:flex;flex-direction:column;background:var(--ink-2);border:3px solid var(--paper);border-radius:16px;box-shadow:8px 8px 0 var(--c);transition:transform .2s,box-shadow .2s}
.game__top{position:relative;border-radius:13px 13px 0 0;overflow:hidden}
.game__art{position:relative;display:block;aspect-ratio:16/10;background:var(--ink)}
.game__art img,.game__art video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.game__art video{opacity:0;transition:opacity .25s}
.game__art video.is-playing{opacity:1}
.game__art::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(14,11,8,.94) 0,rgba(14,11,8,.55) 26%,rgba(14,11,8,0) 56%)}
.game__title{position:absolute;inset:auto 0 0;padding:0 clamp(16px,2.2vw,26px) clamp(14px,1.8vw,20px);color:var(--paper);pointer-events:none}
/* the category: a paper tag stuck askew on the game's picture, with a punched hole and a band of the game's colour
   (posters, cards and game pages); the difficulty: five dots */
.tag{position:absolute;left:14px;top:14px;z-index:2;rotate:-4deg;font-style:normal;background:var(--paper);color:var(--ink);font:800 15px/1 var(--display);letter-spacing:.06em;text-transform:uppercase;padding:9px 14px 8px 30px;border-radius:6px;border-left:8px solid var(--c);box-shadow:0 4px 0 rgba(0,0,0,.35);pointer-events:none}
.tag::before{content:"";position:absolute;left:9px;top:50%;translate:0 -50%;width:9px;height:9px;border-radius:50%;background:var(--ink)}
.tag--small{left:8px;top:auto;bottom:8px;rotate:-3deg;font-size:12px;padding:6px 9px 5px 22px;border-left-width:6px;border-radius:5px;box-shadow:0 2px 0 rgba(0,0,0,.35)}
.tag--small::before{left:7px;width:7px;height:7px}
/* a second tag, in the accent colour, on a game far bigger than the others ("Big game", see tools/games.py) */
.tag--big{top:56px;rotate:3deg;background:var(--accent);border-left:0;padding:8px 13px 7px}
.tag--big::before{display:none}
.tag--small.tag--big{top:8px;bottom:auto;left:8px;rotate:-3deg;padding:5px 9px 4px}
.gp__big{margin-top:8px;font-size:13.5px;font-weight:700;color:var(--accent)}
.scale__name em{font-style:normal;margin-left:8px;padding:2px 7px 1px;border-radius:5px;background:var(--accent);color:var(--ink);font:800 11px/1.3 var(--display);letter-spacing:.05em;text-transform:uppercase;vertical-align:1px;white-space:nowrap}
.scale__rows .is-big .scale__bar i{width:100%;background:repeating-linear-gradient(-45deg,var(--c) 0 7px,color-mix(in srgb,var(--c) 55%,var(--ink)) 7px 14px)} /* off the scale of the others */
.diff{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.pips{display:inline-flex;gap:3px}
.pips i{width:9px;height:9px;border-radius:50%;border:2px solid currentColor;opacity:.55}
.pips i.on{background:currentColor;opacity:1}
.game__meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-weight:800;font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--c)}
.game h4{font-family:var(--display);font-weight:800;font-size:clamp(30px,3.8vw,48px);line-height:1;letter-spacing:-.01em;margin-top:4px;text-shadow:0 2px 12px rgba(0,0,0,.6)}
.game__date{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin-top:6px;font-size:13.5px;font-weight:600;color:#ddd3c4;text-shadow:0 1px 6px rgba(0,0,0,.7)}
.game__date .diff{color:var(--paper)}
/* the sticker: a round badge with a dashed inner ring, stuck askew over the corner */
.game__new{position:absolute;right:12px;top:12px;width:68px;height:68px;display:grid;place-items:center;border-radius:50%;background:var(--accent);color:var(--ink);font:800 17px/1 var(--display);letter-spacing:.06em;text-transform:uppercase;rotate:12deg;box-shadow:0 4px 0 rgba(0,0,0,.35);pointer-events:none;z-index:2}
.game__new::before{content:"";position:absolute;inset:5px;border:2px dashed var(--ink);border-radius:50%;opacity:.55}
/* the stub: a perforated line with a notch on each side */
.game__stub{position:relative;display:flex;flex-direction:column;flex:1;padding:clamp(18px,2.2vw,26px);border-top:3px dashed var(--paper)}
.game__stub::before,.game__stub::after{content:"";position:absolute;top:-13px;width:23px;height:23px;border-radius:50%;background:var(--ink);border:3px solid var(--paper)}
.game__stub::before{left:-15px;clip-path:inset(0 0 0 12px)}
.game__stub::after{right:-15px;clip-path:inset(0 12px 0 0)}
.game__lead{font-size:clamp(16px,1.25vw,18px);color:#ddd3c4}
.facts{display:flex;flex-wrap:wrap;gap:6px 18px;margin:14px 0 20px;font-weight:700;font-size:14.5px;color:var(--paper)}
.facts li::before{content:"";display:inline-block;width:7px;height:7px;margin:0 8px 1px 0;border-radius:50%;background:var(--c)}
.game .btn{margin-top:auto;width:100%;min-height:56px;font-size:18px}
@media(min-width:820px){
  .games{grid-template-columns:1fr 1fr;gap:40px}
  .game:nth-child(odd){transform:rotate(-1deg)}
  .game:nth-child(even){transform:rotate(1deg)}
  .game:hover{transform:rotate(0) translate(-2px,-2px);box-shadow:12px 12px 0 var(--c)}
  .game__new{right:-14px;top:-16px;width:84px;height:84px;font-size:21px}
}

/* ALL GAMES: cards, 2 per row on a phone and a tablet, 3 on a computer; holds a long list */
.allgames{padding-block:clamp(40px,6vw,72px) clamp(8px,2vw,24px)}
.allgames__head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;border-bottom:2px solid var(--paper);padding-bottom:12px}
.allgames h2,.latest h2{font-size:clamp(24px,3vw,36px);margin:0}
.allgames__count{color:var(--mute);font-size:14.5px;font-weight:600}
.filters{display:flex;gap:8px;margin-top:16px;overflow-x:auto;padding:3px 3px 8px;scrollbar-width:thin}
.filters button{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 14px;font:700 14.5px/1 Montserrat,system-ui,sans-serif;color:var(--paper);background:none;border:2px solid var(--ink-line);border-radius:6px;cursor:pointer}
.filters button[style]::before{content:"";width:11px;height:11px;border-radius:2px;background:var(--c)}
.filters button i{font-style:normal;font-weight:600;color:var(--mute)}
.filters button:hover{border-color:var(--paper)}
.filters .is-active{background:var(--paper);border-color:var(--paper);color:var(--ink)}
.filters .is-active i{color:var(--ink)}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:18px}
.card{position:relative;scroll-margin-top:calc(var(--top) + 12px)}
/* the "i": a short summary of the game, shown over the picture on hover, on keyboard focus, or after a tap */
.card__info{position:absolute;z-index:4;top:3px;right:3px;width:40px;height:40px;padding:0;border:0;background:none;color:var(--paper);font:italic 800 16px/1 Georgia,"Times New Roman",serif;cursor:help;transition:color .15s}
.card__info::before{content:"";position:absolute;z-index:-1;inset:5px;border:2px solid var(--paper);border-radius:50%;background:rgba(20,16,12,.82);transition:background .15s} /* the visible disc is smaller than the touch area */
.card.is-open .card__info,.card__info:focus-visible{color:var(--ink)}
.card.is-open .card__info::before,.card__info:focus-visible::before{background:var(--paper)}
/* the summary lies over the paper tags of the picture (z-index 2), the "i" button over the summary.
   on a phone the summary covers the whole card (the picture alone is too small for the text); from 640 px it
   covers the picture only: a box as wide as the card and 9/16 as high, made with padding so that every browser agrees */
.card__tip{position:absolute;z-index:3;inset:2px;border-radius:12px;background:rgba(20,16,12,.95);color:var(--paper);font-size:12.5px;line-height:1.35;font-weight:500;opacity:0;visibility:hidden;transition:opacity .18s,visibility 0s .18s;pointer-events:none;overflow:hidden}
.card__tip span{position:absolute;inset:0;display:flex;align-items:center;padding:34px 12px 10px}
.card__info:focus-visible + .card__tip,.card.is-open .card__tip{opacity:1;visibility:visible;transition:opacity .18s}
@media(hover:hover){ /* a real mouse only: on a touch screen "hover" sticks after a tap and would keep the summary open */
  .card__info:hover{color:var(--ink)}
  .card__info:hover::before{background:var(--paper)}
  .card__info:hover + .card__tip{opacity:1;visibility:visible;transition:opacity .18s}
}
.card[hidden]{display:none}
.card a{display:flex;flex-direction:column;height:100%;text-decoration:none;background:var(--ink-2);border:2px solid var(--ink-line);border-radius:14px;overflow:hidden;transition:transform .15s,border-color .15s}
.card a:hover{transform:translateY(-4px);border-color:var(--c)}
.card__media{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;border-bottom:4px solid var(--c);background:#000}
.card__media img,.card__media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.card__media video{opacity:0;transition:opacity .25s}
.card__media video.is-playing{opacity:1}
.card__body{position:relative;display:flex;flex-direction:column;gap:3px;padding:10px 46px 12px 12px;flex:1}
.card__body b{font-family:var(--display);font-weight:700;font-size:16px;line-height:1.2}
.card__cat{display:flex;flex-wrap:wrap;align-items:center;gap:2px 7px;font-size:12.5px;font-weight:600;color:var(--mute)}
.card__cat > i{font-style:normal;opacity:.6}
@media(max-width:639px){.card__cat > i{display:none}} /* phone: the dots go under the date, no dangling separator */
.card__cat .pips i{width:8px;height:8px}
.card__body::after{content:"";position:absolute;right:10px;top:50%;translate:0 -50%;width:30px;height:30px;border-radius:50%;background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M12 9.5v11l9-5.5z' fill='%2314100c'/%3E%3C/svg%3E") center/contain no-repeat}
@media(min-width:640px){
  .grid{gap:20px}
  .card__body{padding:16px 62px 18px 18px;gap:4px}
  .card__body b{font-size:21px}
  .card__cat{font-size:14.5px}
  .card__body::after{right:16px;width:38px;height:38px}
  .card__info{top:7px;right:7px;width:44px;height:44px;font-size:18px}
  .card__tip{inset:2px 2px auto 2px;height:0;padding-bottom:calc(56.25% - 2px);border-radius:12px 12px 0 0;font-size:16px;line-height:1.4}
  .card__tip span{padding:18px 58px 18px 20px}
}
@media(min-width:960px){.grid{grid-template-columns:repeat(3,1fr);gap:24px}}

/* STUDIO: a framed "weigh-in" (one bar per game, in its category colour), three traits as tickets of the same height, then what the
   games are built with and what each one contains */
/* a thin line separates the games from the studio */
#studio{border-top:1px solid var(--ink-line)}
.studio h3{font-size:22px}
.studio svg{flex:none}
.studio__grid{display:grid;gap:34px;margin-top:36px}
.scale{background:var(--ink-2);border:3px solid var(--paper);border-radius:16px;box-shadow:8px 8px 0 var(--accent);padding:clamp(18px,2.4vw,28px)}
.scale__head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:8px 20px;padding-bottom:16px;border-bottom:3px dashed var(--paper)}
.scale__head h3{font-size:clamp(24px,2.6vw,32px)}
.scale__avg{display:flex;align-items:baseline;gap:6px;color:var(--mute);font-size:14px;font-weight:600}
.scale__avg b{font-family:var(--display);font-weight:800;font-size:clamp(44px,5vw,60px);line-height:.8;color:var(--accent)}
.scale__avg small{font-family:var(--display);font-weight:800;font-size:20px;color:var(--paper);margin-right:6px}
.scale__rows{list-style:none;display:grid;gap:12px;margin-top:18px}
.scale__rows li{display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-areas:"pic name size" "pic bar size";column-gap:12px;row-gap:5px;align-items:center}
.scale__rows img{grid-area:pic;width:44px;height:44px;object-fit:cover;border-radius:9px;border:2px solid var(--c)}
.scale__name{grid-area:name;font-weight:700;font-size:15px;line-height:1.2}
.scale__bar{grid-area:bar;height:10px;border-radius:5px;background:var(--ink-line);overflow:hidden}
.scale__bar i{display:block;width:var(--w);height:100%;border-radius:5px;background:var(--c)}
.scale__rows b{grid-area:size;font-family:var(--display);font-weight:800;font-size:22px;min-width:3.6em;text-align:right}
.scale__rows b small{font-size:13px;color:var(--mute)}
.scale__note{margin-top:18px;color:var(--mute);font-size:14.5px}
/* the traits: three tickets, in the site's own vocabulary (the posters' perforated stub, the "NEW" sticker): a stub
   on the left holds the icon on a round sticker stuck askew, a dashed line with a notch at each end separates it from
   the text. Next to the weigh-in they share its height, top to bottom. */
.traits{list-style:none;display:grid;gap:16px;align-content:start}
.traits li{--stub:92px;position:relative;display:grid;grid-template-columns:var(--stub) 1fr;align-items:center;background:var(--ink-2);border:2px solid var(--paper);border-radius:14px}
.traits li::before{content:"";position:absolute;left:var(--stub);top:12px;bottom:12px;border-left:3px dashed var(--paper);opacity:.75}
.traits li::after{content:"";position:absolute;left:calc(var(--stub) - 10px);top:-3px;bottom:-3px;width:23px;pointer-events:none;
  background:radial-gradient(circle at 50% 0,var(--ink) 10px,transparent 10.5px),radial-gradient(circle at 50% 100%,var(--ink) 10px,transparent 10.5px)}
.traits svg{justify-self:center;width:30px;height:30px;padding:13px;box-sizing:content-box;border-radius:50%;background:var(--accent);color:var(--ink);stroke-width:2.2;rotate:-9deg;outline:2px dashed rgba(20,16,12,.5);outline-offset:-6px;box-shadow:0 4px 0 rgba(0,0,0,.35)}
.traits li:nth-child(even) svg{rotate:7deg}
.traits li > div{padding:18px 22px 18px 26px}
.traits h3{margin-bottom:4px}
.traits p{color:var(--mute);font-size:16px;max-width:32em}
.kit{display:grid;gap:clamp(30px,4vw,44px);margin-top:clamp(40px,5vw,60px);padding-top:clamp(28px,4vw,40px);border-top:1px solid var(--ink-line)}
/* the technology: one tile per tool, its logo on a paper plate stuck slightly askew, in the tool's own colour (--b) */
.kit > div:first-child h3{font-size:clamp(24px,2.6vw,30px)}
.kit__list{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}
.kit__list li{display:flex}
.kit__list a{flex:1;display:flex;flex-direction:column;align-items:flex-start;padding:16px 16px 18px;border:2px solid var(--ink-line);border-radius:14px;background:var(--ink-2);color:inherit;text-decoration:none;transition:border-color .15s,transform .15s}
.kit__icons{display:grid;place-items:center;width:52px;height:52px;margin-bottom:14px;border-radius:13px;background:var(--paper);color:var(--b,var(--ink));rotate:-5deg;box-shadow:0 4px 0 rgba(0,0,0,.4)}
.kit__list li:nth-child(even) .kit__icons{rotate:4deg}
.kit__icons svg{width:30px;height:30px}
.kit__list b{font-size:17px;line-height:1.25}
.kit__list a > span:last-child{margin-top:4px;color:var(--mute);font-size:14px;line-height:1.4}
@media(hover:hover){.kit__list a:hover{border-color:var(--b,var(--paper));transform:translateY(-3px)}}
/* what every game has: a framed band, its title on the left like a ticket's stub, then one round sticker per item */
.kit__every{display:grid;border:2px solid var(--paper);border-radius:14px;background:var(--ink-2)}
.kit__every h3{padding:18px 20px 16px;border-bottom:3px dashed rgba(244,237,226,.75)}
.kit__chips{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:20px 10px;padding:22px 14px}
.kit__chips li{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;font-weight:700;font-size:14.5px;line-height:1.25}
.kit__chips svg{width:26px;height:26px;padding:12px;box-sizing:content-box;border-radius:50%;background:var(--accent);color:var(--ink);stroke-width:2.2;rotate:-8deg;outline:2px dashed rgba(20,16,12,.5);outline-offset:-6px;box-shadow:0 4px 0 rgba(0,0,0,.35)}
.kit__chips li:nth-child(even) svg{rotate:7deg}
/* the asterisk after what is made with the help of AI (artwork, music, sound effects) and the note it points to, under the band */
.ast{color:var(--accent);font-style:normal;font-weight:800}
.kit__chips .ast{display:inline-block;width:0;text-indent:2px} /* no width of its own: the label stays centred under its sticker, and the asterisk follows its last word */
.kit__note{margin-top:-18px;color:var(--mute);font-size:14px;line-height:1.5;max-width:62em}
.kit__note .ast{margin-right:5px;font-size:17px}
.kit__note a{padding-block:13px;color:inherit;text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:3px}
.kit__note a:hover{color:var(--paper)}
@media(min-width:640px){
  .kit__list{grid-template-columns:repeat(3,1fr);gap:14px}
  .kit__chips{grid-template-columns:repeat(4,1fr)}
}
@media(min-width:1000px){
  .kit__list{grid-template-columns:repeat(6,1fr)}
  .kit__every{grid-template-columns:auto 1fr;align-items:center}
  .kit__every h3{padding:0 30px;border-bottom:0}
  .kit__chips{border-left:3px dashed rgba(244,237,226,.75);padding:24px 18px}
}
@media(min-width:900px){
  .studio__grid{grid-template-columns:1.15fr 1fr;gap:56px;align-items:stretch}
  .traits{grid-auto-rows:1fr;align-content:stretch;gap:20px}
  .traits li{--stub:104px}
  .traits li:nth-child(odd){transform:rotate(.5deg)}
  .traits li:nth-child(even){transform:rotate(-.5deg)}
  .scale{transform:rotate(-.8deg)}
}

/* CONTACT: the page's warm dark, lifting to a brown dusk above the night skyline */
.contactsec{position:relative;background:linear-gradient(var(--ink),var(--dusk) 70%);color:var(--paper);border-top:1px solid var(--dusk-line);padding-bottom:0;overflow:hidden}
.contactsec .sub{color:var(--mute);font-weight:500}
.contact{display:grid;gap:30px}
.mail{display:inline-block;padding:8px 0;color:var(--accent);font-family:var(--display);font-weight:800;font-size:clamp(21px,3vw,34px);letter-spacing:-.02em;text-decoration-thickness:3px;text-underline-offset:7px;overflow-wrap:anywhere}
.mail:hover{text-decoration-thickness:5px}
/* the address and its Copy button on one line; the button turns to "Copied" with a tick for two seconds */
.mailrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:14px}
.copy{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 13px 0 10px;border:2px solid var(--ink-line);border-radius:10px;background:var(--ink-2);color:var(--paper);font:700 14.5px/1 Montserrat,system-ui,sans-serif;cursor:pointer;transition:border-color .15s,color .15s}
.copy:hover{border-color:var(--paper)}
.copy svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.copy__ok{display:none}
.copy.is-done{border-color:var(--survival);color:var(--survival)}
.copy.is-done .copy__i{display:none}
.copy.is-done .copy__ok{display:block;stroke-width:3}
/* WhatsApp: a quiet outlined button under the address; the green is WhatsApp's own, kept to the logo */
.wa{display:flex;align-items:center;gap:12px;width:fit-content;margin-top:18px;padding:10px 18px 10px 12px;border:2px solid var(--ink-line);border-radius:12px;background:var(--ink-2);color:var(--paper);text-decoration:none;transition:border-color .15s,transform .15s}
.wa[hidden]{display:none}
.wa:hover{border-color:#25d366;transform:translateY(-2px)}
.wa svg{width:30px;height:30px;flex:none;color:#25d366}
.wa span{display:grid;gap:2px}
.wa b{font-family:var(--display);font-weight:700;font-size:18px;line-height:1.1}
.wa small{font-size:13px;color:var(--mute)}
.form{position:relative;display:grid;background:var(--ink);color:var(--paper);border-radius:10px;padding:22px;border:2px solid var(--dusk-line);box-shadow:8px 8px 0 rgba(0,0,0,.35)}
.form__fields{display:grid;gap:14px}
.form label{display:grid;gap:6px;font-size:14.5px;font-weight:700}
.form label > span{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.field__count{font-style:normal;font-weight:500;font-size:13px;color:var(--mute)}
.field__err{font-size:13.5px;font-weight:600;color:var(--warn);line-height:1.35}
.field__err:empty{display:none}
.field__err::before{content:"! ";font-weight:900}
.form input,.form select,.form textarea{font:400 16px/1.4 Montserrat,system-ui,sans-serif;padding:12px 13px;border:2px solid #6d5f51;border-radius:6px;background:var(--ink-2);color:var(--paper);width:100%}
.form select{appearance:none;-webkit-appearance:none;background:var(--ink-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23f4ede2' stroke-width='1.8'/%3E%3C/svg%3E") right 14px center/12px no-repeat;padding-right:38px}
.form textarea{resize:vertical;min-height:120px}
.form input:focus,.form select:focus,.form textarea:focus{border-color:var(--paper)}
.form .invalid{border-color:var(--warn);background-color:#2a2114}
.captcha{display:grid;gap:6px}
.captcha[hidden]{display:none}
#captcha{min-height:65px}
.captcha__note{font-size:12.5px;color:var(--mute);line-height:1.4}
.form .btn{justify-self:start}
.form__send{position:relative;min-width:132px}
.form__send.is-sending{cursor:progress}
.form__send.is-sending span{visibility:hidden}
.form__send.is-sending::after{content:"";position:absolute;inset:0;margin:auto;width:22px;height:22px;border:3px solid rgba(20,16,12,.25);border-top-color:var(--ink);border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.form__status{font-size:15px;font-weight:700}
.form__status:empty{display:none}
.form__status.err{color:var(--warn)}
.form__status.ok{color:var(--survival)}
.hp{position:absolute;left:-9999px}

/* Confirmation: takes the place of the fields once the message is sent */
.form.is-sent .form__fields{display:none}
.sent{display:grid;justify-items:center;align-content:center;gap:10px;text-align:center;padding:26px 8px;outline:0}
.sent[hidden]{display:none}
.sent h3{font-size:clamp(26px,3vw,34px);animation:rise .5s 1.55s both}
.sent p{color:var(--mute);animation:rise .5s 1.7s both}
.sent .btn{margin-top:16px;justify-self:center;animation:rise .5s 1.9s both}
/* The catch, 2.4 s on one clock: the firefly flies in, the frog snaps it with its tongue, gulps, then cheers.
   Four poses of the frog are stacked and shown in turn; everything else moves with transforms only. */
.snap{--t:2.4s;position:relative;width:260px;height:262px;margin-bottom:4px}
.snap img,.snap i{position:absolute;left:0;right:0;margin-inline:auto;animation-duration:var(--t);animation-fill-mode:both;animation-timing-function:linear}
.snap__pad{bottom:0;width:186px;height:auto}
.snap__ring{bottom:26px;width:150px;height:56px;border:3px solid #35e0d0;border-radius:50%;opacity:0;animation-name:ring}
.snap__frog{bottom:52px;height:auto;transform-origin:50% 100%;opacity:0}
.f-idle{width:139px;animation-name:f-idle}
.f-snap{width:157px;animation-name:f-snap}
.f-munch{width:139px;animation-name:f-munch}
.f-cheer{width:141px;animation-name:f-cheer}
.snap__tongue{bottom:128px;width:9px;height:88px;border-radius:5px;background:#f2558f;box-shadow:0 0 0 2px #8a1f4d;transform-origin:50% 100%;transform:scaleY(0);animation-name:tongue}
.snap__fly{bottom:183px;width:72px;height:auto;filter:drop-shadow(0 0 10px rgba(255,236,90,.75));animation-name:fly}
.snap__star{width:26px;height:auto;opacity:0;animation-name:star}
.snap__star.s1{left:-170px;bottom:176px}
.snap__star.s2{left:176px;bottom:150px;width:34px;animation-delay:.1s}
.snap__star.s3{left:-200px;bottom:92px;width:20px;animation-delay:.2s}
.snap__star.s4{left:204px;bottom:214px;width:20px;animation-delay:.3s}
@keyframes f-idle{0%{opacity:1;transform:none}22%{opacity:1;transform:none}29.9%{opacity:1;transform:scale(1.04,.93)}30%,100%{opacity:0}}
@keyframes f-snap{0%,29.9%{opacity:0}30%{opacity:1;transform:translateY(4px) scale(.96,1.04)}33%{opacity:1;transform:translateY(-12px) scale(1,1.05)}41.9%{opacity:1;transform:translateY(-3px)}42%,100%{opacity:0}}
@keyframes f-munch{0%,41.9%{opacity:0}42%{opacity:1;transform:scale(1.08,.88)}48%{opacity:1;transform:scale(.96,1.06)}54%{opacity:1;transform:scale(1.03,.96)}61.9%{opacity:1;transform:none}62%,100%{opacity:0}}
@keyframes f-cheer{0%,61.9%{opacity:0}62%{opacity:1;transform:scale(1.06,.9);animation-timing-function:cubic-bezier(.2,.8,.3,1)}72%{opacity:1;transform:translateY(-24px) scale(.97,1.04);animation-timing-function:cubic-bezier(.6,0,.9,.5)}81%{opacity:1;transform:scale(1.06,.93)}88%,100%{opacity:1;transform:none}}
@keyframes tongue{0%,30%{transform:scaleY(0);animation-timing-function:cubic-bezier(.1,.8,.2,1)}33%,34%{transform:scaleY(1)}41%,100%{transform:scaleY(0)}}
@keyframes fly{0%{opacity:0;transform:translate(120px,-50px) scale(.55) rotate(-18deg);animation-timing-function:cubic-bezier(.3,.1,.3,1)}8%{opacity:1}17%{opacity:1;transform:translate(46px,14px) scale(.85) rotate(-8deg);animation-timing-function:cubic-bezier(.3,0,.3,1)}28%,34%{opacity:1;transform:none}41%{opacity:1;transform:translateY(88px) scale(.15)}41.5%,100%{opacity:0;transform:translateY(88px) scale(.15)}}
@keyframes ring{0%,61.9%{opacity:0;transform:scale(.5)}62%{opacity:.8;transform:scale(.5);animation-timing-function:ease-out}85%,100%{opacity:0;transform:scale(1.5)}}
@keyframes star{0%,63%{opacity:0;transform:scale(0) rotate(-40deg)}64%{opacity:1;animation-timing-function:cubic-bezier(.2,1.4,.4,1)}74%{opacity:1;transform:scale(1.15) rotate(0)}100%{opacity:.9;transform:scale(.85) rotate(10deg)}}
@keyframes rise{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
/* the skyline rises behind the form: the towers show beside it while the form is on screen */
.skyline{--sky:clamp(110px,15vw,210px);display:flex;justify-content:center;margin-top:calc(var(--sky) * -.3);pointer-events:none}
.contactsec > .wrap{position:relative;z-index:1}
@media(min-width:900px){.skyline{margin-top:calc(var(--sky) * -.72)}}
.skyline img{flex:none;height:var(--sky);width:auto;max-width:none}
.skyline img:nth-child(even){transform:scaleX(-1)}
@media(min-width:900px){.contact{grid-template-columns:1fr 1.1fr;gap:64px}}

/* FOOTER: links and place on the left, ownership notice on the right; below, copyright on the left, logo on the right */
.footer{padding:30px 0 calc(22px + env(safe-area-inset-bottom));font-size:14px;color:var(--mute)}
.footer__main{display:grid;gap:14px}
.footer nav{display:flex;gap:22px;font-weight:700;color:var(--paper)}
.footer nav a{text-decoration:none;padding:12px 0}
.footer nav a:hover{color:var(--accent)}
.footer__from{display:flex;align-items:center;gap:6px;color:var(--paper);font-weight:600}
.footer__from svg{width:16px;height:16px;color:var(--accent)}
.footer__legal{max-width:62em;font-size:13px;line-height:1.55}
.footer__base{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 24px;margin-top:22px;padding-top:14px;border-top:1px solid var(--ink-line)}
.footer__logo{display:block;padding:13px 0}
.footer__logo img{height:17px;width:auto}
@media(min-width:860px){
  .footer__main{grid-template-columns:auto minmax(0,1fr);gap:56px;align-items:start}
  .footer__legal{justify-self:end;padding-top:12px}
}

/* BACK TO TOP: bottom right, hidden on the first screen; --p is how far the page is read (0 to 1), --lift keeps it
   above the footer */
.totop{position:fixed;z-index:30;right:max(14px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom) + var(--lift,0px));width:50px;height:50px;padding:0;border:0;border-radius:50%;cursor:pointer;color:var(--paper);
  background:conic-gradient(var(--accent) calc(var(--p,0)*360deg),var(--ink-line) 0);box-shadow:0 6px 18px rgba(0,0,0,.45);
  opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .25s,transform .25s,visibility 0s .25s,color .15s}
.totop::before{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--ink-2)}
.totop svg{position:relative;width:22px;height:22px;display:block;margin:auto}
.totop.is-on{opacity:1;visibility:visible;transform:none;transition:opacity .25s,transform .25s,color .15s}
.totop:hover{color:var(--accent)}
.totop:hover svg{transform:translateY(-2px)}
.totop svg{transition:transform .15s}
html.demo-open .totop{display:none}

/* DEMO PLAYER: the whole screen on a phone, a window on a computer */
html.demo-open{overflow:hidden}
.demo{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#0e0b08;color:var(--paper);overflow:hidden}
.demo::backdrop{background:rgba(8,6,4,.86)}
.demo__inner{display:flex;flex-direction:column;width:100%;height:100%;background:#0e0b08}
.demo__bar{flex:none;display:flex;align-items:center;gap:8px;min-height:52px;padding:4px 6px 4px 16px;padding-top:calc(4px + env(safe-area-inset-top));border-bottom:1px solid var(--ink-line)}
.demo__name{flex:1;min-width:0;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.demo__name em{font-style:normal;font-size:11.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);margin-right:6px}
.demo__modes{display:none;align-items:center;gap:0}
/* two segmented controls side by side (device, then that device's screen shapes), a "turn" button, the size;
   everything in the bar has the same height and sits on one line */
.demo__modes button{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.demo__modes svg{width:19px;height:19px;flex:none}
.seg{display:flex;border:1px solid var(--ink-line);border-radius:8px;padding:2px;gap:2px;background:var(--ink-2)}
.demo__modes .seg button{border:0;border-radius:6px;min-height:32px;padding:0 11px}
.demo__modes .seg button:hover{background:rgba(244,237,226,.1)}
.demo__modes .seg .is-active,.demo__modes .seg .is-active:hover{background:var(--paper);color:var(--ink)}
.seg--shapes{margin-left:6px}
.demo__modes .seg--shapes button{min-width:52px;font-variant-numeric:tabular-nums}
.demo__turn{width:38px;padding:0;margin-left:6px}
.demo__turn:disabled{opacity:.35;cursor:default;border-color:var(--ink-line)}
.demo__turn.is-active svg{rotate:90deg}
.demo__size{min-width:104px;margin:0 6px 0 8px;font-size:12.5px;font-weight:600;color:var(--mute);font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:1279px){.seg button span{display:none}} /* narrower window: device icons only (their name shows on hover) */
@media(max-width:1099px){.demo__size{display:none}}
.demo__modes button,.demo__btn{font:700 13.5px/1 Montserrat,system-ui,sans-serif;color:var(--paper);background:none;border:1px solid var(--ink-line);border-radius:6px;min-height:38px;padding:0 14px;cursor:pointer}
.demo__modes button:hover,.demo__btn:hover{border-color:var(--paper)}
.demo__modes .is-active,.demo__btn.is-active{background:var(--paper);color:var(--ink);border-color:var(--paper)}
#demoFs{display:none}
.demo__close{flex:none;width:44px;height:44px;display:grid;place-items:center;background:none;border:0;border-radius:6px;color:var(--paper);cursor:pointer}
.demo__close:hover{background:var(--ink-2)}
.demo__close svg{width:22px;height:22px}
.demo__stage{position:relative;flex:1;min-height:0;display:grid;place-items:center;background:#000}
/* the studio intro covers the game while it loads, then fades out */
.demo__intro{position:absolute;inset:0;z-index:2;background:#000;transition:opacity .35s}
.demo__intro[hidden]{display:none}
.demo__intro.is-out{opacity:0;pointer-events:none}
.demo__intro video{width:100%;height:100%;object-fit:contain;display:block}
.demo__skip{position:absolute;right:max(14px,env(safe-area-inset-right));bottom:calc(14px + env(safe-area-inset-bottom));min-height:42px;padding:0 16px;font:700 14.5px/1 Montserrat,system-ui,sans-serif;color:var(--paper);background:rgba(20,16,12,.7);border:1px solid var(--ink-line);border-radius:8px;cursor:pointer}
.demo__skip:hover{border-color:var(--paper)}
.demo__device{width:100%;height:100%}
.demo__frame{display:block;width:100%;height:100%;border:0;background:#000}
@media(min-width:900px) and (min-height:560px){
  .demo{inset:0;margin:auto;width:min(1240px,94vw);height:min(860px,92dvh);border-radius:12px;border:2px solid var(--paper);box-shadow:0 30px 80px rgba(0,0,0,.6)}
  .demo__modes{display:flex}
  #demoFs{display:inline-block}
  /* a chosen shape (device or format): the game area is sized by main.js inside a margin */
  .demo[data-mode="framed"] .demo__stage{background:var(--ink-2);padding:14px}
  .demo[data-mode="framed"] .demo__frame{border-radius:10px;box-shadow:0 0 0 2px var(--ink-line)}
}
.demo__inner:fullscreen{width:100vw;height:100vh}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
  /* no movement: the frog simply cheers on its pad */
  .sent *{animation:none!important}
  .f-cheer{opacity:1}
  .snap__fly,.snap__tongue,.snap__ring,.snap__star{display:none}
}

/* GAME PAGES (games/<slug>/index.html) and the 404 page, both written by tools/games.py */
.crumbs{padding-top:16px;font-size:13.5px;font-weight:600;color:var(--mute)}
.crumbs ol{display:flex;flex-wrap:wrap;gap:0 8px;list-style:none}
.crumbs li{display:flex;align-items:center;gap:8px;min-height:40px}
.crumbs li+li::before{content:"/";opacity:.6}
.crumbs a{display:inline-flex;align-items:center;min-height:40px}
.crumbs a:hover{color:var(--accent)}
.gp__head{display:grid;gap:22px;padding:10px 0 clamp(36px,5vw,64px)}
.gp__art{position:relative;display:block;aspect-ratio:16/9;border-radius:16px;overflow:hidden;border:2px solid var(--ink-line);border-bottom:6px solid var(--c);background:#000}
.gp__art img,.gp__art video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gp__art video{opacity:0;transition:opacity .25s}
.gp__art video.is-playing{opacity:1}
.gp__diff{font-size:13.5px;font-weight:700;color:var(--mute)}
.gp h1{font-size:clamp(38px,5.4vw,68px);margin:8px 0 12px}
.gp__lead{font-size:clamp(17px,1.4vw,20px);color:#ddd3c4;max-width:34em;margin-bottom:22px}
.gp__note{margin-top:12px;font-size:13.5px;font-weight:600;color:var(--mute)}
.gp__body{display:grid;gap:32px;padding:clamp(28px,4vw,48px) 0;border-top:2px solid var(--paper)}
.gp h2{font-size:clamp(24px,3vw,36px)}
.gp__body p{max-width:40em;color:#ddd3c4}
.gp__by{margin-top:14px;font-size:14.5px}
.gp .facts{flex-direction:column;gap:10px;margin:0;font-size:16px}
.gp__more{padding-top:clamp(28px,4vw,48px)}
.gp__more .allgames__head h2{margin:0}
.gp__more .allgames__head{align-items:center}
.gp__more .allgames__head a{display:inline-flex;align-items:center;min-height:44px;font-weight:700;font-size:14.5px;white-space:nowrap}
.gp__more .allgames__head a:hover{color:var(--accent)}
.gp .card__body{padding-right:12px}
.gp .card__body::after{display:none}
.gp__contact{padding:clamp(36px,5vw,64px) 0;color:var(--mute)}
.gp__contact a{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);font-weight:700}
@media(min-width:900px){
  .gp__head{grid-template-columns:1.15fr 1fr;gap:48px;align-items:center}
  .gp__body{grid-template-columns:1.4fr 1fr;gap:64px}
}
.lost{padding:clamp(48px,9vw,120px) 0}
.lost__games{display:flex;flex-wrap:wrap;gap:4px 22px;margin-top:36px;list-style:none;font-weight:700}
.lost__games a{display:inline-flex;align-items:center;min-height:44px}
.lost__games a:hover{color:var(--accent)}

/* "Show more games" (shown by main.js when the list is longer than one page): the button sits on a dashed line that
   runs out from each of its sides and fades away before the edges of the grid */
.more{display:flex;align-items:center;justify-content:center;gap:clamp(12px,2vw,22px);margin-top:38px}
.more[hidden]{display:none}
.more::before,.more::after{content:"";flex:1 1 24px;min-width:14px;border-top:3px dashed var(--ink-line)}
.more::before{-webkit-mask-image:linear-gradient(90deg,transparent,#000 55%);mask-image:linear-gradient(90deg,transparent,#000 55%)}
.more::after{-webkit-mask-image:linear-gradient(270deg,transparent,#000 55%);mask-image:linear-gradient(270deg,transparent,#000 55%)}
@media(max-width:639px){.more::before,.more::after{display:none}} /* on a phone the button takes the whole width: no room for the line */
.more__btn{display:inline-flex;align-items:center;justify-content:center;gap:6px 14px;flex-wrap:wrap;min-height:58px;flex:0 1 460px;padding:10px 26px;border:3px solid var(--paper);border-radius:14px;background:var(--ink-2);color:var(--paper);font:800 18px/1.1 var(--display);cursor:pointer;box-shadow:6px 6px 0 var(--accent);transition:transform .15s,box-shadow .15s}
.more__btn:hover{transform:translate(-2px,-2px);box-shadow:8px 8px 0 var(--accent)}
.more__btn:active{transform:translate(2px,2px);box-shadow:3px 3px 0 var(--accent)}
.more__btn span{font:600 14px/1 Montserrat,system-ui,sans-serif;color:var(--mute)}
.more__btn span:empty{display:none}
.more__btn svg{width:22px;height:22px;color:var(--accent);transition:rotate .2s}
.more.is-all .more__btn svg{rotate:180deg}
/* the wait: the label fades, the firefly of Frog Reflex hovers and glows in the stub */
.more__btn{position:relative}
.more__btn b,.more__btn span:not(.more__fly),.more__btn svg{transition:opacity .15s}
.more__fly{position:absolute;inset:0;display:grid;place-items:center;opacity:0;pointer-events:none;transition:opacity .15s}
.more__fly img{width:auto;height:44px;filter:drop-shadow(0 0 0 rgba(240,194,75,0))}
.more.is-loading .more__btn{cursor:progress}
.more.is-loading .more__btn b,.more.is-loading .more__btn span:not(.more__fly),.more.is-loading .more__btn svg{opacity:0}
.more.is-loading .more__fly{opacity:1}
.more.is-loading .more__fly img{animation:flyhover .65s ease-in-out both}
@keyframes flyhover{
  0%{transform:translate(-46px,6px) rotate(-10deg) scale(.8);filter:drop-shadow(0 0 2px rgba(240,194,75,.2))}
  35%{transform:translate(-12px,-7px) rotate(6deg) scale(1);filter:drop-shadow(0 0 12px rgba(240,194,75,.95))}
  65%{transform:translate(14px,5px) rotate(-5deg) scale(1);filter:drop-shadow(0 0 5px rgba(240,194,75,.45))}
  100%{transform:translate(46px,-6px) rotate(8deg) scale(.85);filter:drop-shadow(0 0 14px rgba(240,194,75,1))}
}
.card.is-new{animation:cardin .35s both;animation-delay:calc(var(--i,0) * 45ms)}
@keyframes cardin{from{opacity:0;transform:translateY(14px)}}
@media(prefers-reduced-motion:reduce){.card.is-new{animation:none}}

/* Language menu (a <details>: opens without any script), in the header and in the footer: each language with its
   flag and its name in that language. The footer's opens upwards and shows the name of the current language. */
.flag{flex:none;width:21px;height:14px;border-radius:2px;box-shadow:0 0 0 1px rgba(244,237,226,.28)}
.langs{position:relative;font-weight:700;font-size:13.5px}
.langs summary{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 9px 0 10px;border:1px solid var(--ink-line);border-radius:8px;cursor:pointer;list-style:none;letter-spacing:.04em;user-select:none}
.langs summary::-webkit-details-marker{display:none}
.langs summary:hover,.langs[open] summary{border-color:var(--paper)}
.langs__arrow{width:14px;height:14px;transition:rotate .2s}
.langs[open] .langs__arrow{rotate:180deg}
.langs ul{position:absolute;z-index:50;right:0;top:calc(100% + 8px);min-width:178px;padding:6px;background:var(--ink-2);border:2px solid var(--paper);border-radius:12px;box-shadow:5px 5px 0 var(--accent)}
.langs li a,.top nav .langs li a{display:flex;align-items:center;gap:10px;min-height:42px;padding:0 12px;border-radius:7px;text-decoration:none;white-space:nowrap}
.top nav .langs a::after{display:none}
.langs li a:hover,.top nav .langs li a:hover{background:rgba(244,237,226,.1);color:var(--paper)}
.langs li a[aria-current]{color:var(--accent)}
.langs li a[aria-current]::before{content:"";order:3;margin-left:auto;width:7px;height:7px;border-radius:50%;background:var(--accent)}
/* in the footer's bottom line: copyright on the left, then the language menu and the logo on the right
   (phone: the copyright on its own line, the menu under it on the left, the logo on the right) */
.footer__base > p{margin-right:auto}
.footer__base .langs{color:var(--paper)}
@media(max-width:699px){.footer__base > p{flex-basis:100%}.footer__logo{margin-left:auto}}
@media(min-width:700px){.footer__base .langs--up ul{left:auto;right:0}}
.langs--up summary{letter-spacing:0;padding:0 11px 0 12px;gap:9px}
.langs--up ul{top:auto;bottom:calc(100% + 8px);right:auto;left:0}
.langs--up .langs__arrow{rotate:180deg}
.langs--up[open] .langs__arrow{rotate:0deg}
html[lang="fr"] .game__new{font-size:12.5px;letter-spacing:.02em}
@media(min-width:820px){html[lang="fr"] .game__new{font-size:15px}}
html[lang="es"] .game__new,html[lang="it"] .game__new{font-size:14.5px;letter-spacing:.03em}
@media(min-width:820px){html[lang="es"] .game__new,html[lang="it"] .game__new{font-size:18px}}
@media(max-width:430px){.logo{flex:none}} /* phones: the logo's word is never cut, whatever the language */
}
