.game2048{--tile-bg:#cdc1b4;max-width:520px;margin:20px auto;padding:18px;background:#faf8ef;color:#776e65;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;border-radius:12px}.game2048 *{box-sizing:border-box}.game2048-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.game2048 h2{font-size:clamp(32px,8vw,58px);line-height:1.1;margin:0;font-weight:800;color:#776e65}.game2048 p{margin:8px 0}.game2048-scores{display:flex;gap:7px}.game2048-scores>div{min-width:67px;padding:8px 10px;text-align:center;background:#bbada0;color:#eee4da;border-radius:5px;font-size:12px;font-weight:bold;text-transform:uppercase}.game2048-scores strong{display:block;font-size:22px;color:#fff}.game2048-toolbar{display:flex;align-items:center;gap:12px;margin:15px 0}.game2048 button{background:#8f7a66;border:0;border-radius:5px;padding:11px 15px;color:#fff;font-weight:bold;cursor:pointer;font-size:14px}.game2048 button:hover{background:#9f8b78}.game2048-toolbar span{font-size:13px}.game2048-board{position:relative;width:100%;aspect-ratio:1;background:#bbada0;border-radius:7px;padding:10px;outline-offset:3px;touch-action:none;user-select:none}.game2048-cells{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:10px;width:100%;height:100%}.game2048-cell{display:flex;align-items:center;justify-content:center;border-radius:4px;background:#cdc1b4;font-weight:800;font-size:clamp(19px,6vw,38px);line-height:1;color:#776e65}.game2048-cell[data-value="2"]{background:#eee4da}.game2048-cell[data-value="4"]{background:#ede0c8}.game2048-cell[data-value="8"]{background:#f2b179;color:#f9f6f2}.game2048-cell[data-value="16"]{background:#f59563;color:#f9f6f2}.game2048-cell[data-value="32"]{background:#f67c5f;color:#f9f6f2}.game2048-cell[data-value="64"]{background:#f65e3b;color:#f9f6f2}.game2048-cell[data-value="128"]{background:#edcf72;color:#f9f6f2;font-size:clamp(17px,5vw,32px)}.game2048-cell[data-value="256"]{background:#edcc61;color:#f9f6f2;font-size:clamp(17px,5vw,32px)}.game2048-cell[data-value="512"]{background:#edc850;color:#f9f6f2;font-size:clamp(17px,5vw,32px)}.game2048-cell[data-value="1024"]{background:#edc53f;color:#f9f6f2;font-size:clamp(15px,4.5vw,27px)}.game2048-cell[data-value="2048"]{background:#edc22e;color:#f9f6f2;font-size:clamp(15px,4.5vw,27px)}.game2048-cell[data-value="super"]{background:#3c3a32;color:#fff;font-size:clamp(15px,4.5vw,27px)}.game2048-overlay{position:absolute;inset:0;background:rgba(238,228,218,.78);display:flex;align-items:center;justify-content:center;text-align:center;border-radius:7px;z-index:2}.game2048-overlay[hidden],.game2048-overlay button[hidden]{display:none}.game2048-overlay h3{font-size:35px;margin:0 0 16px}.game2048-overlay button{margin:4px}.game2048-help{font-size:13px;text-align:center}@media(max-width:420px){.game2048{padding:10px}.game2048-board{padding:7px}.game2048-cells{gap:7px}.game2048-toolbar{align-items:flex-start;flex-direction:column}.game2048-scores>div{min-width:55px;padding:6px}.game2048-scores strong{font-size:18px}}

/* Responsive ad containers: clearly separate advertising from gameplay. */
.game2048-ad{width:100%;max-width:100%;text-align:center;clear:both;margin-left:auto;margin-right:auto;overflow:hidden;min-height:90px;}
.game2048-ad-top{margin-bottom:28px;}
.game2048-ad-bottom{margin-top:28px;}
.game2048-ad-label{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;font-size:12px;font-weight:400;color:#404040;margin-bottom:5px;text-align:center;}
