/* Colours are the game's own: the app icon's night for the page, and from game/ui/theme.tres the
   lavender of buttons and the shopping list, its ink, the dark panels and the yellow of every target. */
:root{
  --night:#120f46;
  --deep:#0c0a33;
  --panel:#353556;
  --slate:#4f5379;
  --ink:#404064;
  --paper:#ebe1f6;
  --paper-dim:#d8cce4;
  --text:#ebe1f6;
  --muted:#b3aac6;
  --yellow:#ffd933;
  --cream:#fff0a8;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:4.5rem}
body{margin:0;color:var(--text);background:var(--night);font:1rem/1.6 "Open Sans","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
img{max-width:100%;height:auto}
a{color:var(--yellow)}
:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
h2{font-size:clamp(1.5rem,1.1rem + 1.6vw,2.1rem);line-height:1.2;margin:0 0 1rem;color:var(--yellow)}
h3{font-size:1.05rem;line-height:1.3;margin:0 0 .3rem}
p{margin:0 0 1rem}
.wrap{max-width:70rem;margin-inline:auto;padding-inline:1.25rem}
section{padding-block:3.5rem}
.measure{max-width:46rem}
.note{color:var(--muted);font-size:.9rem}

/* Top bar */
.bar{position:sticky;top:0;z-index:10;background:var(--night);border-bottom:1px solid var(--slate)}
.bar .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;height:3.5rem}
.brand{display:flex;align-items:center;gap:.6rem;color:var(--text);text-decoration:none;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.brand img{border-radius:6px}
.bar nav{display:flex;gap:1.25rem}
.bar nav a{color:var(--muted);text-decoration:none;font-size:.92rem}
.bar nav a:hover{color:var(--text)}
@media (max-width:30rem){.brand span{display:none}.bar nav{gap:1rem}}

/* Hero */
.hero{padding-block:1rem 3rem}
.hero h1{margin:0 auto;max-width:72rem;line-height:0}
.key{
  display:block;width:100%;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent),linear-gradient(transparent,#000 5%,#000 85%,transparent);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent),linear-gradient(transparent,#000 5%,#000 85%,transparent);
  mask-composite:intersect;
}
.hero-copy{display:grid;gap:1.5rem 3rem;align-items:end;margin-top:.5rem}
@media (min-width:56rem){.hero-copy{grid-template-columns:1.3fr 1fr}}
.lede{font-size:clamp(1.2rem,1rem + 1.1vw,1.65rem);line-height:1.35;margin:0}
.cta{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:1rem}
/* The game's buttons: a lavender bubble with a heavier bottom edge, warmer on hover, sunk when pressed. */
.btn{
  display:inline-block;padding:.75rem 1.3rem;
  background:var(--paper);color:var(--ink);border:2px solid var(--ink);border-bottom-width:5px;border-radius:10px;
  text-decoration:none;font-weight:700;font-size:.95rem;
}
.btn:hover{background:var(--cream)}
.btn:active{border-bottom-width:2px;transform:translateY(3px)}
.btn.alt{background:var(--panel);color:var(--text);border-color:var(--paper-dim)}
.btn.alt:hover{background:var(--slate)}
.chips{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.2rem 1.1rem;color:var(--muted);font-size:.9rem}

/* How a level goes */
.band{background:var(--deep);border-block:1px solid var(--slate)}
.split{display:grid;gap:2.5rem}
@media (min-width:56rem){.split{grid-template-columns:1fr 24rem;gap:4rem;align-items:start}}
.steps{list-style:none;padding:0;margin:1.5rem 0 0;counter-reset:step}
.steps li{counter-increment:step;position:relative;padding:1rem 0 1rem 3.25rem;border-top:1px solid var(--slate);color:var(--muted)}
.steps li strong{color:var(--text)}
.steps li::before{
  content:counter(step);position:absolute;left:0;top:1rem;width:2.1rem;height:2.1rem;
  display:grid;place-items:center;border-radius:50%;background:var(--yellow);color:var(--ink);font-weight:800;
}

/* The shopping list as the HUD draws it: the clock over a lavender note, a ticked line greyed out */
.list-demo{margin:0}
.clock{margin:0 0 .6rem;text-align:center;font-size:1.6rem;font-weight:700;font-variant-numeric:tabular-nums;color:#fff;text-shadow:0 0 3px #000,0 2px 0 #000}
.paper{padding:.8rem 1rem 1rem;background:var(--paper);color:var(--ink);border:2px solid var(--ink);border-radius:6px;box-shadow:0 6px 0 rgb(0 0 0/.35)}
.paper .head{margin:0 0 .35rem;font-weight:700}
.paper ul{list-style:none;margin:0;padding:0}
.paper li{display:flex;align-items:center;gap:.5rem;padding:.15rem 0;font-size:.95rem;line-height:1.3}
.paper li img{width:2rem;height:2rem;flex:none}
.paper .done{color:#635f80}
.paper .done img{opacity:.55}
.list-demo figcaption{margin-top:.9rem;font-size:.85rem;color:var(--muted)}

/* Store chains, as the level select lists them */
.chains{list-style:none;padding:0;margin:1.5rem 0 2rem;display:grid;gap:.75rem}
@media (min-width:48rem){.chains{grid-template-columns:1fr 1fr}}
.chains li{padding:1.1rem 1.25rem;background:var(--paper);color:var(--ink);border:2px solid var(--ink);border-bottom-width:5px;border-radius:10px}
.chains h3{margin:0}
.chains .meta{margin:.1rem 0 .6rem;font-size:.85rem;font-weight:600;color:var(--slate)}
.chains p:last-child{margin:0}

/* Screenshots: a swipe row on phones, two columns from tablet up */
.shots{
  list-style:none;margin:1.5rem 0 0;padding:0 0 .5rem;
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(16rem,85%);gap:1rem;
  overflow-x:auto;scroll-snap-type:x mandatory;
}
.shots li{scroll-snap-align:start}
@media (min-width:48rem){.shots{grid-auto-flow:row;grid-template-columns:1fr 1fr;gap:1.75rem 1.5rem;overflow:visible}}
.pair{display:grid;gap:1.5rem;margin:1.5rem 0 2rem}
@media (min-width:48rem){.pair{grid-template-columns:1fr 1fr}}
.shots figure,.pair figure{margin:0}
.shots a,.pair a{display:block;border:1px solid var(--slate);border-radius:10px;overflow:hidden;transition:border-color .2s}
.shots a:hover,.pair a:hover{border-color:var(--yellow)}
.shots img,.pair img{display:block;width:100%}
.shots figcaption,.pair figcaption{margin-top:.6rem;font-size:.88rem;line-height:1.45;color:var(--muted)}

/* Hazards and mini-games: groups that balance themselves into two columns */
.groups{columns:2 22rem;column-gap:2rem;margin-top:1.5rem}
.groups > div{break-inside:avoid;padding-bottom:1.5rem}
.groups h3{color:var(--yellow);margin-bottom:.6rem}
.cards{list-style:none;padding:0;margin:0;display:grid;gap:.5rem}
.cards li{padding:.55rem .9rem;background:var(--panel);border-left:4px solid var(--yellow);border-radius:0 6px 6px 0}
.cards strong{display:block}
.cards span{display:block;font-size:.88rem;line-height:1.4;color:var(--muted)}

/* Achievements, on tiles like the game's own */
.awards{list-style:none;padding:0;margin:1.5rem 0 2rem;display:grid;gap:.6rem;grid-template-columns:repeat(auto-fill,minmax(19rem,1fr))}
.awards li{display:flex;align-items:center;gap:.9rem;padding:.6rem .9rem .6rem .6rem;background:var(--paper);color:var(--ink);border-radius:10px}
.awards img{width:4rem;height:4rem;flex:none;border-radius:8px}
.awards h3{margin:0;font-size:1rem}
.awards h3 span{margin-left:.35rem;font-size:.85rem;color:var(--slate);white-space:nowrap}
.awards p{margin:.1rem 0 0;font-size:.88rem;line-height:1.35}

/* Details */
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(19rem,1fr));gap:1px;margin:1.5rem 0 0;background:var(--slate);border:1px solid var(--slate)}
.facts div{padding:1.1rem 1.25rem;background:var(--night)}
.facts dt{margin-bottom:.3rem;font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:var(--yellow)}
.facts dd{margin:0}

.get{padding:clamp(1.5rem,4vw,2.5rem);background:var(--panel);border-left:5px solid var(--yellow);border-radius:0 10px 10px 0}
.get h2{margin-bottom:.5rem}
.get p:last-child{margin:0}
footer{padding-block:1.5rem 2.5rem;border-top:1px solid var(--slate);font-size:.88rem;color:var(--muted)}
footer p{margin:0 0 .3rem}

/* Changelog page */
.changelog{padding-block:3rem 4rem}
.changelog h1{font-size:clamp(1.8rem,1.3rem + 2vw,2.6rem);line-height:1.1;margin:0 0 .5rem}
.release{display:grid;gap:.4rem 2rem;padding-block:1.5rem;border-top:1px solid var(--slate)}
.release:first-of-type{margin-top:2rem}
@media (min-width:48rem){.release{grid-template-columns:10rem 1fr}}
.release h2{margin:0;font-size:1.5rem;font-variant-numeric:tabular-nums}
.release time{font-size:.85rem;color:var(--muted)}
.release ul{margin:0;padding-left:1.1rem;max-width:46rem}
.release li{margin:.3rem 0}
.release li::marker{color:var(--yellow)}

/* Screenshot viewer */
.viewer{padding:0;border:0;background:none;max-width:94vw;max-height:94vh;overflow:visible}
.viewer::backdrop{background:rgb(6 5 24/.9)}
.viewer img{display:block;width:auto;height:auto;max-width:94vw;max-height:94vh;border-radius:12px;cursor:zoom-out}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
}
