/*
  Slumber Realm: the game's website, ported from its Google Site (2026-11-01).
  Colours, faces and sizes are the ones that site used, read from the live page.
*/
@font-face{
  font-family:"Grandstander";
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url(fonts/Grandstander-latin.woff2) format("woff2");
}
@font-face{
  font-family:"Manjari";
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url(fonts/Manjari-Bold.ttf) format("truetype");
}
:root{
  --deep:#00003F;
  --mid:#18164E;
  --teal:#4CD9AB;
  --pink:#FF36BC;
  --text:#F9F9F9;
  --ink:#1C1C1C;
  --bar:rgba(31,32,32,.92);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--deep);
  color:var(--text);
  font-family:"Manjari","Trebuchet MS",sans-serif;
  font-weight:700;
  font-size:16px;
  line-height:24px;
  -webkit-text-size-adjust:100%;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--teal);outline-offset:3px}

/* The bar across the top, as Google Sites drew it once the page scrolled. */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  align-items:center;
  height:56px;
  padding:0 16px;
  background:var(--bar);
}
.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font-size:18px;line-height:1;font-weight:400}
.brand img{width:72px;height:auto}
.brand span{padding-top:4px}

.banner{
  height:clamp(200px,42vw,430px);
  background:var(--deep) url(img/banner.webp) 50% 50%/cover no-repeat;
}

.band{padding:40px 16px}
/* Anchors land below the sticky bar. */
[id]{scroll-margin-top:64px}
.band--deep{background:var(--deep)}
.band--mid{background:var(--mid)}
.band p{margin:0 0 16px}

.buttons{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px 24px;
  padding-block:24px;
}
.pill{
  display:inline-block;
  min-width:150px;
  padding:8px 18px 5px;
  border:1px solid var(--teal);
  border-radius:4px;
  background:var(--teal);
  color:var(--ink);
  font:inherit;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
}
.pill:hover{background:#6FE6BF}

.title{
  margin:0 0 32px;
  font-family:"Grandstander","Trebuchet MS",sans-serif;
  font-weight:800;
  font-size:clamp(34px,8vw,45.33px);
  line-height:1.38;
  color:var(--teal);
  text-align:center;
}
.title--left{text-align:left;margin-bottom:20px}
.title--pink{color:var(--pink)}
.sub{
  margin:32px 0 16px;
  font-family:"Grandstander","Trebuchet MS",sans-serif;
  font-weight:800;
  font-size:24px;
  line-height:36px;
  color:var(--teal);
}
.sub:first-child{margin-top:0}
.sub a{text-decoration:none}
.sub a:hover{text-decoration:underline}

.column{max-width:900px;margin:0 auto}
.column ul{margin:0 0 16px;padding-left:20px}
.column li{margin:0 0 6px}

.split{
  max-width:900px;
  margin:0 auto;
  display:grid;
  gap:24px;
  align-items:center;
}
.split-art{display:block;width:min(283px,80%);margin:0 auto}

.stars{width:min(743px,100%);margin:40px auto 0}
.stars--top{margin:0 auto 24px}

.video{max-width:744px;margin:0 auto;aspect-ratio:16/9}
.video iframe{display:block;width:100%;height:100%;border:0}

/* The screenshot gallery: one screenshot per view, snapped; gallery.js adds the arrows and dots. */
.gallery{position:relative;max-width:896px;margin:0 auto}
.gallery-track{
  display:flex;
  margin:0;
  padding:0;
  list-style:none;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  border-radius:6px;
  background:#000;
}
.gallery-track::-webkit-scrollbar{display:none}
.gallery-track li{flex:0 0 100%;scroll-snap-align:start}
.gallery-track img{width:100%;aspect-ratio:16/9;object-fit:cover}
.gallery-arrow{
  position:absolute;
  top:50%;
  translate:0 -50%;
  width:44px;
  height:44px;
  border:2px solid var(--teal);
  border-radius:50%;
  background:rgba(0,0,63,.75);
  color:var(--teal);
  font:800 30px/1 "Grandstander","Trebuchet MS",sans-serif;
  cursor:pointer;
}
.gallery-arrow:hover{background:var(--deep)}
.gallery-arrow--prev{left:10px}
.gallery-arrow--next{right:10px}
@media (max-width:599px){
  .gallery-arrow{width:34px;height:34px;font-size:24px}
  .gallery-arrow--prev{left:6px}
  .gallery-arrow--next{right:6px}
}
.gallery-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin-top:14px}
.gallery-dots button{
  width:24px;
  height:24px;
  padding:0;
  border:0;
  background:none;
  cursor:pointer;
}
.gallery-dots button::before{
  content:"";
  display:block;
  width:10px;
  height:10px;
  margin:auto;
  border-radius:50%;
  background:rgba(249,249,249,.35);
}
.gallery-dots button[aria-current="true"]::before{background:var(--teal)}

.social{list-style:none;margin:0 0 40px;padding:0;display:flex;justify-content:center;gap:18px}
.social a{display:block;width:48px;height:48px}

.pair{max-width:960px;margin:0 auto;display:grid;gap:40px}
.card{text-align:center}
.card .sub{margin-top:0}
.card img{width:min(437px,100%);margin:0 auto 20px}

.team{display:block;width:min(590px,100%);margin:0 auto 24px}
.centre{text-align:center}

.signup{max-width:560px;margin:0 auto;text-align:center}
.signup label{display:block;margin-bottom:8px;color:var(--teal)}
.signup-row{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.signup input{
  flex:1 1 240px;
  min-width:0;
  padding:10px 12px 7px;
  border:2px solid var(--teal);
  border-radius:4px;
  background:#fff;
  color:var(--ink);
  font:inherit;
}
.signup input[aria-invalid="true"]{border-color:var(--pink)}
.signup button:disabled{opacity:.6;cursor:default}
.signup-status{min-height:24px;margin:14px 0 0}
.signup-status.is-error{color:#FF8AD8}
.signup-status.is-done{color:var(--teal)}

@media (min-width:768px){
  .band{padding:56px 32px}
  .split{grid-template-columns:283px minmax(0,1fr);gap:56px}
  .split-art{width:100%}
  .pair{grid-template-columns:1fr 1fr}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
