/* Fonts: Latin and Cyrillic halves; a browser loads a half only when a page uses its letters. */
@font-face{font-family:Geologica;font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/geologica-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Geologica;font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/geologica-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Onest;font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/onest-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Onest;font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/onest-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Press Start 2P";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/press-start-2p-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* Colours and type, named as in docs/design/README.md. */
:root{
  --bog:#0D0B0E;--bog-veil:rgba(13,11,14,.6);--bog-shade:rgba(13,11,14,.75);--tussock:#17141A;--moss:#241E27;--moss-hover:#2E2732;--edge:#2E2830;
  --cranberry:#D4143C;--cranberry-hover:#E8264E;--cranberry-deep:#8A1024;--glint:#FF5C8A;--glint-hover:#FF8FB0;--leaf:#1FA463;
  --snow:#F4EEF0;--white:#FFFFFF;--text-soft:#D9CFD3;--text-card:#C9BEC3;--text-grey:#A99CA3;
  --tag:#3A0F1A;--tag-text:#FF8FB0;
  --font-head:Geologica,sans-serif;--font-text:Onest,system-ui,sans-serif;--font-count:"Press Start 2P",monospace;
  color-scheme:dark;
}

*,*::before,*::after{box-sizing:border-box}
/* The scrollbar's room is kept on every page, so short pages without one and long pages with one
   put their content at the same distance from the edge. */
html{background:var(--bog);scrollbar-gutter:stable}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bog);color:var(--snow);font-family:var(--font-text);font-size:16px;line-height:1.4;-webkit-font-smoothing:antialiased}
main{flex:1 0 auto;display:flex;flex-direction:column}
[hidden]{display:none!important}
h1,h2,h3,p{margin:0}
a{color:var(--glint)}
a:hover{color:var(--glint-hover)}
button,input{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--glint);outline-offset:2px}
.px:focus-visible,.pxs:focus-visible{outline-offset:-4px}
.wrap{width:100%;max-width:1280px;margin:0 auto;padding-left:24px;padding-right:24px}
.glint{color:var(--glint)}

/* Pixel corners: a corner is cut in steps instead of rounded, 8 and 4 pixels or 4 and 2. The cut
   takes the border too, so blocks stand out by colour, and fields are outlined by an inset shadow. */
.px{clip-path:polygon(0 8px,4px 8px,4px 4px,8px 4px,8px 0,calc(100% - 8px) 0,calc(100% - 8px) 4px,calc(100% - 4px) 4px,calc(100% - 4px) 8px,100% 8px,100% calc(100% - 8px),calc(100% - 4px) calc(100% - 8px),calc(100% - 4px) calc(100% - 4px),calc(100% - 8px) calc(100% - 4px),calc(100% - 8px) 100%,8px 100%,8px calc(100% - 4px),4px calc(100% - 4px),4px calc(100% - 8px),0 calc(100% - 8px))}
.pxs{clip-path:polygon(0 4px,2px 4px,2px 2px,4px 2px,4px 0,calc(100% - 4px) 0,calc(100% - 4px) 2px,calc(100% - 2px) 2px,calc(100% - 2px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 2px) calc(100% - 4px),calc(100% - 2px) calc(100% - 2px),calc(100% - 4px) calc(100% - 2px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 2px),2px calc(100% - 2px),2px calc(100% - 4px),0 calc(100% - 4px))}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:0 24px;border:0;font-size:15px;font-weight:700;text-decoration:none;text-align:center;cursor:pointer}
.btn-main{background:var(--cranberry);color:var(--white)}
.btn-main:hover{background:var(--cranberry-hover);color:var(--white)}
.btn-light{background:var(--snow);color:var(--bog)}
.btn-light:hover{background:var(--white);color:var(--bog)}
/* The outline follows the pixel corners: a 2px ring cut as the large step outside and the same
   step 2px further in, so the corners are stepped like the button's own. */
.btn-ghost{position:relative;background:var(--bog-veil);color:var(--snow)}
.btn-ghost::before{content:"";position:absolute;inset:0;pointer-events:none;background:var(--snow);clip-path:polygon(evenodd,0 8px,4px 8px,4px 4px,8px 4px,8px 0,calc(100% - 8px) 0,calc(100% - 8px) 4px,calc(100% - 4px) 4px,calc(100% - 4px) 8px,100% 8px,100% calc(100% - 8px),calc(100% - 4px) calc(100% - 8px),calc(100% - 4px) calc(100% - 4px),calc(100% - 8px) calc(100% - 4px),calc(100% - 8px) 100%,8px 100%,8px calc(100% - 4px),4px calc(100% - 4px),4px calc(100% - 8px),0 calc(100% - 8px),0 8px,2px 10px,2px calc(100% - 10px),6px calc(100% - 10px),6px calc(100% - 6px),10px calc(100% - 6px),10px calc(100% - 2px),calc(100% - 10px) calc(100% - 2px),calc(100% - 10px) calc(100% - 6px),calc(100% - 6px) calc(100% - 6px),calc(100% - 6px) calc(100% - 10px),calc(100% - 2px) calc(100% - 10px),calc(100% - 2px) 10px,calc(100% - 6px) 10px,calc(100% - 6px) 6px,calc(100% - 10px) 6px,calc(100% - 10px) 2px,10px 2px,10px 6px,6px 6px,6px 10px,2px 10px)}
.btn-ghost:hover{background:var(--snow);color:var(--bog)}
.btn-small{min-height:44px;padding:0 20px}
.btn-big{min-height:56px;padding:0 32px;font-size:17px}
.icon{width:18px;height:18px;flex-shrink:0}

/* Header */
.top{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:16px 36px;padding-top:24px;padding-bottom:24px}
.brand{display:flex;align-items:center;gap:10px;color:var(--snow);text-decoration:none}
.brand:hover{color:var(--snow)}
.brand-mark{width:32px;height:32px}
.brand-word{font-family:var(--font-head);font-weight:800;font-size:26px;letter-spacing:.01em}
.nav{display:flex;flex-wrap:wrap;gap:8px 28px;font-size:16px;font-weight:600}
.nav a{color:var(--snow);text-decoration:none}
.nav a:hover{color:var(--glint-hover)}
.account{margin-left:auto;display:flex;align-items:center;gap:16px}
.sign-in{padding:12px 4px;color:var(--snow);font-size:16px;font-weight:600;text-decoration:none}
.sign-in:hover{color:var(--glint-hover)}
.nickname{font-size:16px;font-weight:600;overflow-wrap:anywhere}

/* Front page: the first screen, on pixel hills */
.scene{position:relative;min-height:760px;overflow:hidden;display:flex;flex-direction:column}
.hills{position:absolute;inset:0;width:100%;height:100%}
.hero{position:relative;flex-grow:1;display:flex;flex-wrap:wrap;align-content:flex-end;align-items:center;justify-content:space-between;gap:40px;padding-top:40px;padding-bottom:72px}
.hero-text{flex:1 1 520px;min-width:0;display:flex;flex-direction:column;gap:28px}
.online{align-self:flex-start;display:inline-flex;align-items:center;gap:10px;padding:8px 14px;background:var(--bog-shade);font-size:15px;font-weight:600}
.online-dot{flex-shrink:0;width:10px;height:10px;background:var(--leaf)}
.count{font-family:var(--font-count);font-size:14px;line-height:1}
.hero-title{font-family:var(--font-head);font-weight:800;font-size:clamp(44px,6.4vw,84px);line-height:.98;letter-spacing:-.035em}
.hero-lead{max-width:520px;font-size:19px;line-height:1.5;color:var(--text-soft)}
.actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-card{position:relative;flex:0 0 300px;height:300px;display:flex;align-items:center;justify-content:center;background:var(--tussock)}
.hero-mark{width:72%;height:72%}
.dot{position:absolute;display:block}
.dot-1{left:12%;top:14%;width:10px;height:10px;background:var(--glint)}
.dot-2{left:80%;top:10%;width:14px;height:14px;background:var(--cranberry)}
.dot-3{left:86%;top:72%;width:8px;height:8px;background:var(--cranberry-deep)}
.dot-4{left:18%;top:82%;width:12px;height:12px;background:var(--leaf)}
.dot-5{left:58%;top:88%;width:6px;height:6px;background:var(--glint)}

/* Front page: games, one big tile and two beside it */
.games{display:flex;flex-direction:column;gap:32px;padding-top:96px;padding-bottom:96px}
.games-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px}
.section-title{font-family:var(--font-head);font-weight:800;font-size:clamp(36px,4.6vw,58px);line-height:1}
.all-games{padding:8px 0;font-size:16px;font-weight:700;text-decoration:none}
.mosaic{display:flex;flex-wrap:wrap;gap:20px}
.mosaic-side{flex:2 1 320px;display:flex;flex-direction:column;gap:20px}
.tile{position:relative;display:block;overflow:hidden;flex:1 1 270px;min-height:270px;background:var(--tussock)}
.tile-big{flex:3 1 520px;min-height:560px}
.tile-cover{position:absolute;inset:0;width:100%;height:100%}
.tile-plate{position:absolute;left:16px;bottom:16px;display:flex;flex-direction:column;gap:6px;padding:14px 18px;background:var(--bog)}
.tile-big .tile-plate{left:20px;bottom:20px;gap:8px;padding:18px 22px}
.tile-title{font-family:var(--font-head);font-weight:800;font-size:26px;line-height:1}
.tile-big .tile-title{font-size:clamp(28px,3vw,40px)}
.tile-online{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--text-card)}
.tile-big .tile-online{font-size:15px}
.tile-online .online-dot{width:8px;height:8px}
.tile-online .count{font-size:12px;color:var(--snow)}
.tile-big .tile-online .count{font-size:13px}

/* Front page: your game will be here */
.create-section{padding-bottom:112px}
.create{position:relative;overflow:hidden;display:flex;flex-wrap:wrap;align-items:center;gap:48px;padding:clamp(32px,6vw,72px);background:var(--tussock)}
.create-text{position:relative;flex:1 1 380px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:32px}
.create-title{font-family:var(--font-head);font-weight:800;font-size:clamp(40px,5.6vw,76px);line-height:.98}
.create-lead{max-width:440px;font-size:18px;line-height:1.5;color:var(--text-card)}
.create-art{position:relative;flex:1 1 420px;min-width:0;height:340px}
.art-card{position:absolute;width:40%;height:250px;display:flex;flex-direction:column;background:var(--bog)}
.art-card svg{display:block;flex-grow:1;min-height:0;width:100%}
.art-card b{padding:12px 14px;font-family:var(--font-head);font-weight:800;font-size:18px}
.art-left{left:0;top:50px;transform:rotate(-9deg)}
.art-right{right:0;top:40px;transform:rotate(8deg)}
.art-slot{position:absolute;left:28%;top:0;width:44%;height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:var(--bog);border:3px dashed var(--glint)}
.art-slot svg{width:60px;height:60px}
.art-slot span{font-family:var(--font-head);font-weight:800;font-size:20px;color:var(--glint);text-align:center}

/* Footer */
.foot{box-shadow:inset 0 1px 0 var(--moss)}
.foot-row{display:flex;flex-wrap:wrap;align-items:center;gap:16px 32px;padding-top:32px;padding-bottom:40px}
.foot-brand{display:flex;align-items:center;gap:10px;font-family:var(--font-head);font-weight:800;font-size:16px}
.foot-mark{width:14px;height:16px}
.nav-foot{gap:8px 24px;font-size:14px;font-weight:500}
.foot-end{margin-left:auto;display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px}
.foot-note{font-size:13px;color:var(--text-grey)}
.socials{display:flex;gap:8px}
.social{width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:var(--tussock);color:var(--text-soft)}
.social:hover{background:var(--cranberry);color:var(--white)}
.social-icon{width:20px;height:20px}

/* Pages with a form: signing in and up */
.narrow{display:flex;justify-content:center;padding-top:56px;padding-bottom:96px}
.form{width:100%;max-width:380px;display:flex;flex-direction:column;gap:20px}
.form-head{display:flex;flex-direction:column;gap:10px;margin-bottom:8px}
.form-lead{font-size:15px;line-height:1.5;color:var(--text-grey)}
.form-error{padding:12px 14px;background:var(--tag);color:var(--tag-text);font-size:14px;font-weight:500;line-height:1.45}
.field-label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;color:var(--text-card)}
.field{width:100%;height:48px;padding:0 14px;border:0;outline:none;background:var(--bog);box-shadow:inset 0 0 0 1px var(--edge);color:var(--snow);font-size:15px;font-weight:400}
.field:focus{box-shadow:inset 0 0 0 2px var(--glint)}
.field-hint{font-size:12px;font-weight:400;color:var(--text-grey)}
.btn-submit{margin-top:8px;min-height:56px;font-size:17px}
.form-foot{margin:0;font-size:14px;color:var(--text-grey);text-align:center}
.form-foot a{font-weight:600;text-decoration:none}
.form-part{display:flex;flex-direction:column;gap:20px}
.form-notice{padding:12px 14px;background:var(--moss);color:var(--snow);font-size:14px;font-weight:500;line-height:1.45}
.field-code{font-family:var(--font-count);font-size:20px;letter-spacing:.3em}
a.field-hint{align-self:flex-start;color:var(--glint);font-weight:600;text-decoration:none}
a.field-hint:hover{color:var(--glint-hover)}
.link-button{padding:0;border:0;background:none;color:var(--glint);font-size:inherit;font-weight:600;cursor:pointer}
.link-button:hover{color:var(--glint-hover)}

/* Pages around a code from a letter: a form on the hills of the front page */
.auth{position:relative;flex-grow:1;overflow:hidden;display:flex;justify-content:center;padding:56px 24px 200px}
.auth-hills{position:absolute;left:0;right:0;bottom:0;width:100%;height:200px}
.auth-body{position:relative;width:100%;max-width:400px;display:flex;flex-direction:column;gap:24px}
.auth-icon{width:64px;height:64px;display:flex;align-items:center;justify-content:center;background:var(--tussock)}
.auth-icon-mail{width:36px;height:28px}
.auth-icon-lock{width:28px;height:32px}
.auth-head{display:flex;flex-direction:column;gap:12px}
.auth-title{font-family:var(--font-head);font-weight:800;font-size:40px;line-height:1.05;letter-spacing:-.03em}
.auth-lead{font-size:16px;line-height:1.5;color:var(--text-grey)}
.auth-lead b{color:var(--snow);font-weight:600}
/* The code is one field; with the script, six cells show its digits and the field lies over them
   unseen, so pasting and the browser's offer of a code from mail still work. */
.code-cells{position:relative;display:flex;gap:10px}
.code-cells .cell{display:none}
.js .code-cells .cell{flex:1 1 0;height:64px;display:flex;align-items:center;justify-content:center;background:var(--bog);box-shadow:inset 0 0 0 1px var(--edge);font-family:var(--font-count);font-size:20px;color:var(--snow)}
.js .code-cells .cell.filled{background:var(--tussock);box-shadow:none}
.js .code-cells .cell.current{box-shadow:inset 0 0 0 2px var(--glint)}
.js .code-cells .cell.current::after{content:"";width:3px;height:26px;background:var(--glint);animation:caret 1s steps(1) infinite}
.js .code-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;caret-color:transparent;cursor:text}
@keyframes caret{50%{opacity:0}}
.password-field{position:relative;display:block}
.password-field .field{padding-right:52px}
.eye{position:absolute;top:0;right:0;width:48px;height:48px;display:flex;align-items:center;justify-content:center;padding:0;border:0;background:none;color:var(--text-grey);cursor:pointer}
.eye:hover,.eye[aria-pressed="true"]{color:var(--snow)}
.eye svg{width:20px;height:20px}
.resend{display:flex;flex-direction:column;gap:8px;align-items:center;text-align:center;font-size:14px;line-height:1.5;color:var(--text-grey)}
.resend form{margin:0}
.resend .count{font-family:var(--font-count);font-size:11px;color:var(--snow)}

/* The studio's pages, in the site's style until the design draws them */
.mono{font-family:var(--font-count);font-size:12px;font-weight:400;color:var(--snow)}
.section-small{font-family:var(--font-head);font-weight:800;font-size:22px;line-height:1.2}
.members{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;width:100%}
.member{display:flex;align-items:center;gap:16px;padding:12px 16px;background:var(--tussock)}
.member-name{font-weight:600}
.member-role{color:var(--text-grey);font-size:14px}
.member form{margin:0 0 0 auto}
select.field{appearance:none;cursor:pointer}
.page-wide{max-width:960px}
.diff{width:100%;max-height:600px;overflow:auto;margin:0;padding:16px;background:var(--tussock);font-family:Consolas,"Courier New",monospace;font-size:13px;line-height:1.5;color:var(--text-soft);white-space:pre}
.page-body .form{max-width:none}

/* Pages of text: the launcher */
.page{padding-top:56px;padding-bottom:96px}
.page-body{max-width:680px;display:flex;flex-direction:column;align-items:flex-start;gap:24px}
.page-title{font-family:var(--font-head);font-weight:800;font-size:clamp(32px,4vw,44px);line-height:1.05;letter-spacing:-.02em}
.page-lead{font-size:17px;line-height:1.6;color:var(--text-soft)}
.page-text{font-size:15px;line-height:1.55;color:var(--text-grey)}
.note{padding:12px 16px;background:var(--tussock);color:var(--text-soft)}
.install-steps{margin:0;padding:0;list-style:none;counter-reset:step;display:flex;flex-direction:column;gap:18px}
.install-steps li{counter-increment:step;display:flex;gap:16px;font-size:15px;line-height:1.55;color:var(--text-soft)}
.install-steps li::before{content:counter(step,decimal-leading-zero);flex-shrink:0;width:44px;font-family:var(--font-head);font-weight:800;font-size:26px;line-height:1.05;color:var(--cranberry)}

/* Phones: a narrower gutter, the menu on a line of its own under the logo and the account, and
   shorter blocks. */
@media (max-width:720px){
  .wrap{padding-left:16px;padding-right:16px}
  .top{column-gap:16px;padding-top:16px;padding-bottom:16px}
  .top .nav{order:3;width:100%}
  .account{gap:8px}
  .scene{min-height:0}
  .hero{padding-bottom:56px}
  .hero-card{flex-basis:100%;height:auto;aspect-ratio:1/1;max-width:300px}
  .games{padding-top:64px;padding-bottom:64px}
  .tile-big{min-height:360px}
  .tile{min-height:220px}
  .create-section{padding-bottom:64px}
  .auth{padding:32px 16px 160px}
  .auth-hills{height:160px}
  .auth-title{font-size:32px}
  .create-art{height:280px}
  .art-card{height:200px}
  .art-slot{height:250px}
}
@media (max-width:400px){
  .brand-mark{width:28px;height:28px}
  .brand-word{font-size:22px}
}
