@font-face {
  font-family: "Outfit";
  src: url("assets/outfit-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f5ed;
  --ink: #303d32;
  --muted: #7b8275;
  --line: #dcdfd2;
  --green: #465c3e;
  --orange: #d8874e;
  --font: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; min-height: 100svh; color: var(--ink); background: var(--paper); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .23; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23535f43' opacity='.15' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
button { font: inherit; cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent; }
button, a, .board { touch-action: manipulation; }
button { border: 0; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, .board:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
button { transition: background-color .18s ease, color .18s ease, transform .18s ease, opacity .18s ease; }
button:active:not(:disabled) { transform: translateY(2px); }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; flex-shrink: 0; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.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; }

.site-header { width: min(1184px, calc(100% - 96px)); min-height: 106px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; font-size: 17px; font-weight: 600; letter-spacing: 2px; }
.brand-mark { width: 33px; height: 33px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; transform: rotate(-7deg); }
.brand-mark i { background: var(--green); border-radius: 3px; }
.brand-mark i:nth-child(2) { background: var(--orange); }
.brand-mark i:nth-child(3) { opacity: .5; }
.brand-caption { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 500; letter-spacing: 1.75px; }
.header-actions { display: flex; align-items: center; gap: 17px; }
.edition { color: #8b9184; margin-right: 15px; font-size: 10px; font-weight: 500; letter-spacing: 1.45px; }
.icon-button { width: 43px; height: 43px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: transparent; }
.icon-button:hover:not(:disabled) { background: #e8ebdf; }
.sound-button { width: 38px; height: 38px; border: 0; color: #838c7c; }
.sound-button[aria-pressed="true"] { color: var(--green); background: #e5e9dc; }
.sound-button .icon { width: 19px; height: 19px; }
.help-button { display: flex; align-items: center; gap: 7px; padding: 8px 0 8px 3px; background: none; font-size: 12px; }
.help-button:hover { color: var(--orange); }
.help-button .icon { width: 17px; height: 17px; }

.playground { width: min(1024px, calc(100% - 112px)); margin: 58px auto 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 474px); column-gap: 92px; align-items: start; }
.introduction { padding-top: 8px; animation: arrive .7s ease both; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: 2.3px; color: #7d8672; }
.little-star { display: inline-flex; align-items: center; justify-content: center; color: #8b9b74; font-size: 20px; line-height: 1; }
h1 { margin: 14px 0 10px -6px; font-size: clamp(100px, 10.65vw, 146px); line-height: 1.06; letter-spacing: -9px; font-weight: 650; }
.title-dot { color: var(--orange); margin-left: 4px; }
.introduction h2 { margin: 0 0 17px; font-size: 28px; font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; font-weight: 600; letter-spacing: 3px; }
.intro-copy { margin: 0; font-size: 13px; line-height: 2; color: var(--muted); letter-spacing: .65px; }
.merge-example { position: relative; display: flex; width: fit-content; align-items: center; gap: 13px; margin: 30px 0 0; padding-bottom: 35px; }
.example-tile { display: flex; align-items: center; justify-content: center; width: 48px; height: 49px; border-radius: 9px; font-size: 28px; font-weight: 500; color: #68705a; background: #ebeadd; box-shadow: 0 3px 0 #dfdfce; }
.example-tile.first { transform: rotate(-7deg); }
.example-tile.second { transform: rotate(5deg); }
.example-tile.merged { background: #dfe5cb; color: #597047; box-shadow: 0 3px 0 #cbd5b6; transform: rotate(-5deg); }
.math-symbol { color: #a3aa98; font-size: 19px; font-weight: 300; }
.example-arrow { color: #a3aa98; width: 24px; margin: 0 2px; stroke-width: 1.2; }
.example-caption { position: absolute; bottom: 0; left: 1px; color: #909783; font-size: 10px; letter-spacing: 1px; }
.journey { max-width: 314px; margin-top: 38px; }
.journey-heading { display: flex; align-items: center; justify-content: space-between; font-size: 10px; letter-spacing: 1px; }
.next-goal { color: var(--muted); font-size: 10px; letter-spacing: 0; }
.next-goal strong { display: inline-block; min-width: 24px; text-align: center; margin-left: 4px; color: var(--green); background: #e7eadc; padding: 3px 7px; border-radius: 5px; font-size: 14px; line-height: 1; font-weight: 500; }
.journey-track { height: 5px; background: #e2e6d7; margin-top: 12px; border-radius: 10px; overflow: hidden; }
.journey-track > span { display: block; width: 0; height: 100%; background: #889d6d; border-radius: inherit; transition: width .4s ease; }
.journey-labels { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 10px; color: #949b88; }
.journey-labels > span:last-child { color: #798a65; }
.journey-labels .icon { width: 12px; height: 12px; margin: -2px 0 0 2px; }
.little-tip { display: flex; position: relative; max-width: 350px; margin-top: 35px; padding-top: 23px; border-top: 1px solid var(--line); gap: 12px; }
.tip-icon { width: 21px; height: 21px; margin-top: 2px; color: #8a977c; }
.little-tip h3 { margin: 0 0 7px; font-size: 11px; font-weight: 500; letter-spacing: 1px; }
.little-tip p { margin: 0; font-size: 11px; line-height: 1.85; color: #8a9180; }
.play-stamp { position: absolute; right: 0; top: 22px; width: 77px; height: 77px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid #d3a77a; border-radius: 50%; color: #b68b5d; transform: rotate(13deg); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px #e2cfb4; }
.play-stamp span { font-size: 7px; font-weight: 500; letter-spacing: 1.05px; }
.play-stamp .icon { width: 19px; height: 19px; stroke-width: 1; }

.game-panel { min-width: 0; animation: arrive .7s .1s ease both; }
.game-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 19px; }
.scores { display: flex; gap: 10px; min-width: 0; }
.score-card { position: relative; min-width: 107px; padding: 10px 17px 9px; background: #e9ecdf; border: 1px solid #e1e5d7; border-radius: 11px; }
.best-card { background: transparent; border-color: #dce0d1; }
.score-label { display: flex; align-items: center; justify-content: center; gap: 4px; color: #839071; font-size: 9px; letter-spacing: 1px; white-space: nowrap; }
.score-label .icon { width: 12px; height: 12px; stroke-width: 1.6; }
.score-value { display: block; text-align: center; font-size: 30px; line-height: 1.25; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.score-value[data-long="true"] { font-size: 23px; line-height: 1.63; }
.score-addition { position: absolute; left: 0; right: 0; top: 26px; color: #6b814f; font-size: 21px; font-weight: 600; text-align: center; pointer-events: none; opacity: 0; z-index: 5; }
.score-addition.is-active { animation: score-rise .7s ease-out both; }
.game-actions { display: flex; gap: 9px; }
.undo-button { background: #eeefe5; border-color: #dce0d1; }
.undo-button:disabled { opacity: .37; }
.undo-button .icon { width: 18px; height: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 11px 17px; border-radius: 10px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.button-primary { background: var(--green); color: #f7f7ef; box-shadow: 0 3px 0 #354b30; }
.button-primary:hover { background: #536b47; }
.button-primary .icon { width: 17px; height: 17px; }
.button-secondary { background: #e9ecdf; color: var(--green); }
.button-secondary:hover:not(:disabled) { background: #dfe5d1; }
.button-secondary:disabled { opacity: .45; }
.new-game-button { padding-inline: 14px; }

.board-wrap { position: relative; padding-bottom: 6px; }
.board { --gap: 11px; --padding: 14px; position: relative; width: 100%; aspect-ratio: 1; border-radius: 18px; background: #b8c3aa; box-shadow: 0 7px 0 -1px #a3b092, 0 17px 28px -16px #67775680; user-select: none; -webkit-user-select: none; touch-action: none; }
.board-cells, .tile-layer { position: absolute; inset: var(--padding); }
.board-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.board-cells > span { border-radius: 10px; background: #cad2bd; box-shadow: inset 0 1px 2px #8b9a7510; }
.tile { position: absolute; left: calc(var(--col) * (100% + var(--gap)) / 4); top: calc(var(--row) * (100% + var(--gap)) / 4); width: calc((100% - 3 * var(--gap)) / 4); height: calc((100% - 3 * var(--gap)) / 4); transition: left 135ms cubic-bezier(.25,.75,.35,1), top 135ms cubic-bezier(.25,.75,.35,1); z-index: 2; }
.tile-face { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #f5f2e6; color: #596148; font-size: 48px; line-height: 1; font-weight: 550; letter-spacing: -2px; box-shadow: 0 3px 0 #83906c26, inset 0 1px 0 #ffffff70; }
.tile[data-value="4"] .tile-face { background: #e6e8cf; color: #647146; }
.tile[data-value="8"] .tile-face { background: #e5c982; color: #6f592c; }
.tile[data-value="16"] .tile-face { background: #dbad63; color: #fff7df; }
.tile[data-value="32"] .tile-face { background: #d79262; color: #fff6e8; }
.tile[data-value="64"] .tile-face { background: #c7744d; color: #fff5e4; }
.tile[data-value="128"] .tile-face { background: #94a774; color: #fcfbe8; }
.tile[data-value="256"] .tile-face { background: #7c925d; color: #fcfbe8; }
.tile[data-value="512"] .tile-face { background: #617e4c; color: #fcfbe8; }
.tile[data-value="1024"] .tile-face { background: #486440; color: #fcfbe8; }
.tile[data-value="2048"] .tile-face { background: #ebc56e; color: #665129; box-shadow: 0 0 24px #e5c56b60, inset 0 1px 0 #fff4cd80; }
.tile[data-digits="3"] .tile-face { font-size: 39px; letter-spacing: -1.5px; }
.tile[data-digits="4"] .tile-face { font-size: 32px; letter-spacing: -1px; }
.tile[data-digits="5"] .tile-face { font-size: 26px; letter-spacing: -1px; }
.tile[data-digits="6"] .tile-face { font-size: 22px; letter-spacing: -1px; }
.tile.super-tile .tile-face { background: #334f39; color: #f7e8bd; }
.tile.new-tile .tile-face { animation: tile-appear .2s ease-out both; }
.tile.merged-tile .tile-face { animation: tile-merge .22s ease-in-out both; }
.tile.is-merging { z-index: 3; }
.board.is-blocked { animation: board-nudge .16s ease-in-out; }
.board-corner-note { position: absolute; right: 12px; bottom: -15px; color: #94a182; font-size: 8px; letter-spacing: .75px; }
.board-controls { display: flex; align-items: center; gap: 11px; margin-top: 33px; }
.direction-buttons { display: flex; gap: 4px; }
.direction-buttons button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 29px; padding: 5px; border: 1px solid #d6dcce; border-radius: 5px; background: #f0f1e7; color: #768467; box-shadow: 0 2px 0 #e0e4d6; }
.direction-buttons button:hover { background: #e4e9d9; }
.direction-buttons .icon { width: 15px; height: 15px; }
.arrow-left { transform: rotate(180deg); }
.arrow-up { transform: rotate(-90deg); }
.arrow-down { transform: rotate(90deg); }
.desktop-guide { font-size: 10px; letter-spacing: .2px; color: #8b9280; }
.desktop-guide b { font-size: 9px; font-weight: 500; }
.touch-guide { display: none; font-size: 10px; color: #8b9280; }
.move-count { margin-left: auto; color: #8b9280; font-size: 10px; white-space: nowrap; }
.move-count b { font-size: 12px; font-weight: 500; }
.game-footnote { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); font-size: 9px; color: #969d8c; letter-spacing: .4px; }
.game-footnote b { font-weight: 500; }
.save-status { display: inline-flex; align-items: center; gap: 5px; }
.save-status i { width: 5px; height: 5px; border-radius: 50%; background: #91a576; }
.save-status.is-unavailable i { background: #bc976e; }
.site-footer { display: flex; width: min(1184px, calc(100% - 96px)); margin: 0 auto; padding: 24px 0 29px; border-top: 1px solid var(--line); color: #929987; font-size: 10px; letter-spacing: .75px; justify-content: space-between; }
.site-footer > span:first-child { display: flex; align-items: center; gap: 10px; }
.site-footer .icon { width: 13px; height: 13px; color: #a9b49c; }
.footer-credit { color: #a0a693; font-size: 9px; }
.footer-credit i { margin: 0 8px; font-style: normal; }

.dialog { width: min(460px, calc(100% - 36px)); max-height: calc(100svh - 40px); padding: 37px; overflow-y: auto; border: 1px solid #e0e3d5; border-radius: 23px; color: var(--ink); background: var(--paper); box-shadow: 0 24px 100px #233a2b35; }
.dialog[open] { animation: dialog-appear .2s ease-out both; }
.dialog::backdrop { background: #26382bb3; backdrop-filter: blur(6px); }
.dialog-close { position: absolute; top: 15px; right: 15px; width: 33px; height: 33px; border: 0; }
.dialog-close .icon { width: 18px; height: 18px; }
.dialog-eyebrow { display: block; color: #8b9b75; font-size: 9px; font-weight: 500; letter-spacing: 2.2px; }
.dialog h2 { margin: 13px 0 20px; font-size: 24px; font-weight: 600; letter-spacing: -.4px; }
.rules { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 23px; }
.rules li { display: flex; align-items: flex-start; gap: 15px; }
.rule-number { display: flex; align-items: center; justify-content: center; min-width: 33px; height: 33px; border-radius: 9px; background: #e7ebdb; color: #778d5d; font-size: 13px; }
.rules h3 { margin: 2px 0 6px; font-size: 13px; font-weight: 500; }
.rules p { margin: 0; font-size: 11px; line-height: 1.9; color: #828a77; }
.help-note { display: flex; align-items: center; gap: 13px; margin: 28px 0; padding: 15px; background: #edeee3; border-radius: 10px; font-size: 10px; line-height: 1.9; color: #7a846d; }
kbd { display: inline-flex; width: 29px; height: 30px; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid #d3dcc8; border-radius: 5px; background: #f8f8f0; box-shadow: 0 2px 0 #dbe2d0; font: 14px var(--font); }
.button-wide { width: 100%; }
.attribution { margin: 18px 0 -8px; color: #a2a893; text-align: center; font-size: 8px; }
.compact-dialog { text-align: center; padding: 37px 28px 30px; max-width: 396px; }
.dialog-icon { display: inline-flex; justify-content: center; align-items: center; width: 58px; height: 58px; border-radius: 17px; background: #e7ebdb; color: #71885a; }
.dialog-icon .icon { width: 27px; height: 27px; }
.compact-dialog h2 { font-size: 22px; margin: 21px 0 14px; }
.compact-dialog > p { font-size: 12px; line-height: 1.9; color: #838b78; }
.dialog-actions { display: flex; gap: 11px; margin-top: 28px; }
.dialog-actions > button { flex: 1; padding-inline: 12px; }
.result-number { display: flex; align-items: center; justify-content: center; width: 91px; height: 91px; margin: 4px auto 26px; border-radius: 17px; background: #ebc56e; box-shadow: 0 5px 0 #d6b564; color: #665129; font-size: 31px; font-weight: 600; transform: rotate(-7deg); }
.result-dialog[data-result="loss"] .result-number { background: #dce5cc; color: #607449; box-shadow: 0 5px 0 #c9d5b6; }
.result-score { margin-top: 22px; color: #8a927d; font-size: 11px; }
.result-score strong { display: block; margin-top: 2px; color: var(--green); font-size: 33px; font-weight: 500; }
.toast { position: fixed; bottom: max(26px, env(safe-area-inset-bottom)); left: 50%; z-index: 10; padding: 12px 22px; border-radius: 40px; color: #f5f5eb; background: #3a5035; box-shadow: 0 5px 18px #33482c20; font-size: 12px; white-space: nowrap; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.noscript-message { position: fixed; inset: auto 15px 15px; padding: 18px; border-radius: 12px; text-align: center; background: #465c3e; color: white; }

@keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tile-appear { 0% { opacity: 0; transform: scale(.55); } 100% { opacity: 1; transform: scale(1); } }
@keyframes tile-merge { 0%,100% { transform: scale(1); } 45% { transform: scale(1.13); } }
@keyframes score-rise { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-43px); } }
@keyframes board-nudge { 0%,100% { transform: translateX(0); } 30% { transform: translateX(-2px); } 70% { transform: translateX(2px); } }
@keyframes dialog-appear { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (min-width: 1500px) { .playground { margin-top: 76px; margin-bottom: 79px; } }
@media (max-width: 1120px) {
  .playground { column-gap: 52px; grid-template-columns: minmax(0, 1fr) minmax(0, 444px); }
  .game-toolbar { gap: 9px; }
  .score-card { min-width: 95px; padding-inline: 13px; }
  .play-stamp { display: none; }
  .tile-face { font-size: 45px; }
  .tile[data-digits="3"] .tile-face { font-size: 36px; }
  .tile[data-digits="4"] .tile-face { font-size: 29px; }
}
@media (max-width: 920px) and (min-width: 761px) {
  .site-header, .site-footer { width: calc(100% - 64px); }
  .playground { width: calc(100% - 80px); column-gap: 36px; grid-template-columns: minmax(0, 1fr) minmax(0, 390px); }
  h1 { font-size: 108px; }
  .introduction h2 { font-size: 23px; letter-spacing: 1px; }
  .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .score-card { min-width: 85px; padding-inline: 8px; }
  .scores { gap: 7px; }
  .game-actions { gap: 6px; }
  .new-game-button { padding-inline: 11px; }
  .new-game-button .icon { display: none; }
  .merge-example { gap: 9px; }
  .example-tile { width: 42px; height: 43px; }
  .merge-example .icon { width: 17px; }
  .little-tip { margin-top: 26px; }
  .desktop-guide { font-size: 9px; }
  .tile-face { font-size: 40px; }
}
@media (max-width: 760px) {
  .site-header { width: calc(100% - 40px); min-height: 82px; }
  .brand { gap: 10px; font-size: 14px; letter-spacing: 1px; }
  .brand-mark { width: 28px; height: 28px; gap: 3px; }
  .brand-caption { font-size: 6px; letter-spacing: 1.2px; }
  .edition { display: none; }
  .header-actions { gap: 10px; }
  .help-button { font-size: 11px; }
  .playground { display: flex; flex-direction: column; width: min(474px, calc(100% - 40px)); margin: 28px auto 34px; gap: 27px; }
  .introduction { position: relative; width: 100%; padding: 0; }
  .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  .little-star { font-size: 17px; }
  h1 { margin: 9px 0 5px -3px; font-size: 91px; line-height: .98; letter-spacing: -6px; }
  .title-dot { margin-left: 1px; }
  .introduction h2 { margin: 11px 0 0; font-size: 18px; letter-spacing: 1.5px; }
  .intro-copy { position: absolute; top: 49px; right: 0; font-size: 10px; line-height: 2; letter-spacing: .2px; }
  .merge-example, .little-tip, .journey { display: none; }
  .game-panel { width: 100%; }
  .score-card { min-width: 100px; }
  .game-toolbar { margin-bottom: 16px; }
  .board { --gap: 10px; --padding: 12px; border-radius: 16px; }
  .board-cells > span, .tile-face { border-radius: 8px; }
  .board-controls { margin-top: 28px; gap: 10px; flex-wrap: wrap; }
  .direction-buttons { gap: 5px; }
  .direction-buttons button { width: 36px; height: 36px; }
  .desktop-guide { display: none; }
  .touch-guide { display: inline; }
  .game-footnote { margin-top: 19px; padding-top: 15px; }
  .site-footer { width: calc(100% - 40px); justify-content: center; padding-block: 20px 25px; font-size: 9px; }
  .footer-credit { display: none; }
  .tile-face { font-size: 47px; }
  .tile[data-digits="3"] .tile-face { font-size: 37px; }
  .tile[data-digits="4"] .tile-face { font-size: 30px; }
}
@media (max-width: 420px) {
  .playground { width: calc(100% - 36px); margin-top: 25px; gap: 23px; }
  .site-header, .site-footer { width: calc(100% - 36px); }
  h1 { font-size: 80px; }
  .introduction h2 { font-size: 17px; }
  .intro-copy { top: 45px; font-size: 9px; }
  .score-card { min-width: 79px; padding: 8px 9px 7px; }
  .score-label { font-size: 8px; letter-spacing: .5px; }
  .score-label .icon { width: 10px; }
  .score-value { font-size: 26px; }
  .score-value[data-long="true"] { font-size: 20px; }
  .scores { gap: 7px; }
  .game-actions { gap: 6px; }
  .undo-button { width: 38px; height: 40px; }
  .new-game-button { font-size: 11px; min-height: 40px; padding: 9px 12px; gap: 6px; }
  .new-game-button .icon { width: 15px; }
  .board { --gap: 9px; --padding: 11px; }
  .tile-face { font-size: 37px; }
  .tile[data-digits="3"] .tile-face { font-size: 30px; }
  .tile[data-digits="4"] .tile-face { font-size: 25px; }
  .tile[data-digits="5"] .tile-face { font-size: 21px; }
  .tile[data-digits="6"] .tile-face { font-size: 18px; }
  .direction-buttons button { width: 33px; height: 34px; }
  .touch-guide { font-size: 9px; }
  .move-count { font-size: 9px; }
  .game-footnote { font-size: 8px; letter-spacing: .2px; }
  .dialog { padding: 30px 24px; }
  .dialog h2 { font-size: 21px; }
}
@media (max-width: 350px) {
  .brand-caption { letter-spacing: .6px; }
  .header-actions { gap: 4px; }
  .intro-copy { display: none; }
  .score-card { min-width: 69px; padding-inline: 7px; }
  .new-game-button .icon { display: none; }
  .new-game-button { padding-inline: 10px; }
  .touch-guide { max-width: 76px; line-height: 1.7; }
  .tile-face { font-size: 32px; }
  .tile[data-digits="3"] .tile-face { font-size: 26px; }
  .tile[data-digits="4"] .tile-face { font-size: 21px; }
}
@media (min-width: 1000px) and (max-height: 900px) {
  .site-header { min-height: 84px; }
  .playground { width: min(980px, calc(100% - 96px)); grid-template-columns: minmax(0, 1fr) minmax(0, 430px); column-gap: 82px; margin: 32px auto 30px; }
  .introduction { padding-top: 4px; }
  h1 { font-size: 126px; margin: 12px 0 8px -5px; }
  .introduction h2 { font-size: 26px; margin-bottom: 13px; }
  .intro-copy { line-height: 1.85; }
  .merge-example { margin-top: 22px; padding-bottom: 28px; }
  .journey { margin-top: 27px; }
  .little-tip { margin-top: 25px; padding-top: 19px; }
  .game-toolbar { margin-bottom: 16px; }
  .board-controls { margin-top: 24px; }
  .game-footnote { margin-top: 18px; padding-top: 14px; }
  .tile-face { font-size: 43px; }
  .tile[data-digits="3"] .tile-face { font-size: 35px; }
  .tile[data-digits="4"] .tile-face { font-size: 29px; }
  .site-footer { padding-block: 18px; }
}
@media (min-width: 1000px) and (max-height: 790px) {
  .site-header { min-height: 76px; }
  .playground { width: min(960px, calc(100% - 96px)); grid-template-columns: minmax(0, 1fr) minmax(0, 400px); margin: 26px auto 20px; }
  h1 { font-size: 116px; }
  .introduction h2 { font-size: 24px; }
  .merge-example { margin-top: 20px; }
  .journey { margin-top: 24px; }
  .little-tip { margin-top: 22px; padding-top: 18px; }
  .site-footer { padding-block: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
