:root{color-scheme:light;
  --paper:#f5f2ea;
  --ink:#292c29;
  --muted:#85877c;
  --orange:#eb633c;
  --line:#deded2;
  --board:#dedfd3;
  --gap:11px}
*{box-sizing:border-box}
body{margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"Avenir Next",Avenir,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;
  cursor:pointer}
button:focus-visible,a:focus-visible,.board:focus-visible{outline:3px solid var(--orange);
  outline-offset:5px}
.topbar{max-width:1240px;
  margin:auto;
  padding:30px 48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line)}
.brand{font-size:21px;
  font-weight:750;
  letter-spacing:-1px;
  color:var(--ink);
  text-decoration:none}
.brand-icon{font-size:30px;
  vertical-align:-2px;
  margin-right:9px}
.brand-dot{color:var(--orange)}
.edition{font-size:10px;
  font-weight:650;
  letter-spacing:1.8px}
.edition span{padding:0 13px;
  color:#b2b4a6}
main{max-width:1110px;
  margin:70px auto 65px;
  padding:0 40px;
  display:grid;
  grid-template-columns:1fr 470px;
  gap:70px;
  align-items:start}
.intro{padding-top:11px}
.eyebrow{display:flex;
  align-items:center;
  gap:9px;
  font-size:9px;
  font-weight:700;
  letter-spacing:1.25px;
  white-space:nowrap}
.eyebrow>span{height:6px;
  width:6px;
  border-radius:50%;
  background:var(--orange)}
h1{font-size:140px;
  letter-spacing:-12px;
  line-height:1.05;
  margin:21px 0 13px;
  font-weight:800}
h1>span{color:var(--orange)}
h1 .title-dot{color:var(--ink);
  font-size:90px;
  letter-spacing:-10px}
h2{font-size:28px;
  font-weight:650;
  letter-spacing:-1px;
  margin:0 0 14px}
.description{font-size:15px;
  line-height:1.9;
  color:#73776d;
  margin:0}
.description strong{font-weight:650;
  color:var(--ink)}
.howto{margin-top:37px}
.section-number{font-size:10px;
  letter-spacing:1.8px;
  font-weight:700;
  color:#838778}
.key-row{display:flex;
  align-items:center;
  gap:22px;
  margin:18px 0 23px}
.key-row p,.small-copy{font-size:12px;
  color:#808375;
  line-height:1.85;
  margin:0}
.key-row strong{color:#505649;
  font-weight:600}
.arrows{text-align:center;
  line-height:1}
.arrows>kbd{margin-bottom:4px}
.arrows>div{display:flex;
  gap:4px}
kbd{display:inline-flex;
  justify-content:center;
  align-items:center;
  border:1px solid #d5d7c9;
  border-bottom:3px solid #cfd2c3;
  border-radius:5px;
  background:#faf9f4;
  width:27px;
  height:27px;
  font:18px monospace}
.merge-example{display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:12px}
.merge-example span{width:37px;
  height:37px;
  display:grid;
  place-items:center;
  border-radius:7px;
  background:#e8e8dc;
  color:#646954;
  font-size:19px;
  font-weight:700}
.merge-example .example-result{background:#cad5ad;
  color:#485839}
.merge-example b{font-weight:400;
  color:#9b9d90}
.note{margin-top:32px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#919483;
  font-size:10px}
.note>span{font-size:24px;
  color:#9ca487}
.game-toolbar{display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
  gap:10px}
.scores{display:flex;
  gap:10px}
.score-box{position:relative;
  min-width:100px;
  padding:12px 17px 10px;
  background:#e8e9de;
  border-radius:10px;
  display:flex;
  flex-direction:column;
  gap:2px}
.score-box>span:first-child{font-size:9px;
  font-weight:700;
  letter-spacing:1.7px;
  color:#828873}
.score-box strong{font-size:27px;
  line-height:1.2;
  font-variant-numeric:tabular-nums;
  letter-spacing:-1px}
.best{background:transparent;
  border:1px solid #dbded0}
.best>span:first-child>span{padding-left:14px}
.new-button{border:0;
  border-radius:8px;
  background:var(--ink);
  color:var(--paper);
  padding:14px 17px;
  font-size:12px;
  font-weight:600;
  transition:background .15s,transform .15s}
.new-button:hover{background:#474d41}
.new-button:active{transform:scale(.97)}
.new-button>span{font-size:18px;
  vertical-align:-1px;
  margin-right:6px}
.board-wrap{position:relative}
.board{display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-template-rows:repeat(4,minmax(0,1fr));
  gap:var(--gap);
  background:var(--board);
  padding:var(--gap);
  aspect-ratio:1;
  border-radius:14px;
  touch-action:none;
  user-select:none;
  box-shadow:0 14px 28px -24px #5b634b}
.cell{display:grid;
  place-items:center;
  min-width:0;
  border-radius:8px;
  background:#eaece2;
  position:relative}
.tile{position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  border-radius:8px;
  font-size:43px;
  font-weight:750;
  letter-spacing:-2px;
  font-variant-numeric:tabular-nums;
  background:var(--tile-bg);
  color:var(--tile-fg);
  box-shadow:0 2px 1px #00000004}
.tile[data-value="2"]{--tile-bg:#f2f0e5;
  --tile-fg:#747866}
.tile[data-value="4"]{--tile-bg:#d3ddbb;
  --tile-fg:#516342}
.tile[data-value="8"]{--tile-bg:#a9bf8c;
  --tile-fg:#344d35}
.tile[data-value="16"]{--tile-bg:#759771;
  --tile-fg:#f4f5e8}
.tile[data-value="32"]{--tile-bg:#466d55;
  --tile-fg:#f4f5e8}
.tile[data-value="64"]{--tile-bg:#ed9f63;
  --tile-fg:#fff6e7}
.tile[data-value="128"]{--tile-bg:#e9824c;
  --tile-fg:#fff6e7}
.tile[data-value="256"]{--tile-bg:#e66c40;
  --tile-fg:#fff6e7}
.tile[data-value="512"]{--tile-bg:#cf4e31;
  --tile-fg:#fff6e7}
.tile[data-value="1024"]{--tile-bg:#aa4435;
  --tile-fg:#fff6e7}
.tile[data-value="2048"]{--tile-bg:#f0bd55;
  --tile-fg:#564320;
  box-shadow:0 0 22px #f0bd5555}
.tile.high{--tile-bg:#343f38;
  --tile-fg:#f7d689}
.tile.medium{font-size:34px}
.tile.long{font-size:27px;
  letter-spacing:-1px}
.tile.extra-long{font-size:20px;
  letter-spacing:-.8px}
.tile.spawn{animation:appear .2s ease-out}
.tile.merge{animation:merge .22s ease-out}
.board-caption{display:flex;
  justify-content:space-between;
  align-items:center;
  margin:18px 2px;
  font-size:10px;
  color:#818674}
.board-caption>span:first-child{display:flex;
  align-items:center;
  gap:7px}
.live-dot{height:5px;
  width:5px;
  background:#88a472;
  border-radius:100%}
.board-caption>span:last-child{letter-spacing:1.5px;
  font-size:9px}
.board-caption strong{margin-left:6px;
  color:#555e48;
  font-size:12px;
  letter-spacing:0}
.progress-panel{border-top:1px solid var(--line);
  margin-top:25px;
  padding-top:22px}
.progress-panel>div:first-child{display:flex;
  justify-content:space-between;
  font-size:8px;
  letter-spacing:1.3px;
  font-weight:650;
  color:#8a8f7c}
.progress-panel #milestone{letter-spacing:.6px}
.progress{display:flex;
  gap:5px;
  margin-top:11px}
.progress span{height:4px;
  flex:1;
  background:#dedfd3;
  border-radius:2px}
.progress span.active{background:#8da377}
.progress span.goal{background:var(--orange)}
footer{max-width:1144px;
  margin:0 auto;
  padding:22px 0;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#909482;
  font-size:9px;
  letter-spacing:1.2px}
footer>span:nth-child(2){letter-spacing:.1px;
  font-size:11px}
.footer-symbol{font-size:22px}
.overlay{position:absolute;
  inset:0;
  border-radius:14px;
  background:#f5f2eadb;
  backdrop-filter:blur(7px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  text-align:center;
  z-index:3}
.overlay[hidden]{display:none}
.end-card{max-width:310px;
  width:100%}
.end-icon{display:block;
  color:var(--orange);
  font-size:52px;
  margin-bottom:9px}
.end-card .section-number{display:block;
  margin-bottom:14px}
.end-card h2{font-size:34px}
.end-card p{font-size:13px;
  line-height:1.7;
  color:#727868;
  margin-bottom:22px}
.primary-button,.secondary-button{display:block;
  width:100%;
  padding:13px;
  border-radius:7px;
  font-weight:650;
  font-size:13px;
  margin-top:8px}
.primary-button{border:0;
  background:var(--orange);
  color:white}
.secondary-button{border:1px solid #b7bdab;
  background:transparent;
  color:var(--ink)}
.text-button{font-size:11px;
  border:0;
  background:transparent;
  color:#747d66;
  text-decoration:underline;
  margin-top:15px}
button[hidden]{display:none}
#gain{position:absolute;
  right:8px;
  top:24px;
  font-size:17px;
  font-weight:700;
  color:var(--orange);
  pointer-events:none}
#gain.animate{animation:gain .7s ease-out both}
.sr-only{position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0}
@keyframes appear{from{opacity:.3;
  transform:scale(.65)}
to{opacity:1;
  transform:scale(1)}
}
@keyframes merge{0%{transform:scale(.92)}
50%{transform:scale(1.1)}
100%{transform:scale(1)}
}
@keyframes gain{0%{opacity:1;
  transform:translateY(0)}
100%{opacity:0;
  transform:translateY(-36px)}
}
@media(min-width:1400px){main{margin-top:95px;
  margin-bottom:85px}
}
@media(max-width:1000px){main{gap:35px;
  grid-template-columns:1fr minmax(320px,440px);
  padding:0 30px}
.eyebrow{font-size:7px;
  letter-spacing:.5px}
h1{font-size:116px}
footer{margin:0 30px}
.intro h2{font-size:25px}
}
@media(max-width:740px){.topbar{padding:18px 23px}
.brand{font-size:18px}
.brand-icon{font-size:25px}
.edition{font-size:8px;
  letter-spacing:1px}
.edition span{padding:0 5px}
main{display:flex;
  flex-direction:column;
  gap:24px;
  max-width:500px;
  padding:0 20px;
  margin:28px auto 35px}
.intro{padding:0;
  width:100%}
.eyebrow{font-size:7px;
  letter-spacing:1px}
h1{font-size:80px;
  letter-spacing:-6px;
  margin:12px 0 5px;
  line-height:1}
h1 .title-dot{font-size:57px}
.intro h2{font-size:22px;
  margin-bottom:7px}
.description{font-size:12px;
  line-height:1.7}
.description br{display:none}
.howto,.note{display:none}
.game{width:100%}
.game-toolbar{margin-bottom:13px}
.score-box{min-width:85px;
  padding:9px 13px}
.score-box strong{font-size:24px}
.new-button{font-size:11px;
  padding:13px}
.board{--gap:9px}
.tile{font-size:36px}
.tile.medium{font-size:29px}
.tile.long{font-size:23px}
.tile.extra-long{font-size:17px}
.progress-panel{margin-top:20px;
  padding-top:17px}
footer{margin:0 20px;
  padding:17px 0}
footer>span:first-child{font-size:8px}
footer>span:nth-child(2){font-size:9px}
.end-icon{font-size:35px;
  margin-bottom:6px}
.end-card h2{font-size:28px}
.end-card p{margin-bottom:13px}
.end-card .section-number{margin-bottom:9px}
.primary-button,.secondary-button{padding:10px}
.text-button{margin-top:10px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;
  transition:none!important}
}
