        .div-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            padding: 20px;
            box-sizing: border-box;
        }

        .div-container {
            background: #2c3e50;
            border: 4px solid #3f8fef;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            max-width: 800px;
            padding: 24px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

        }
        .heading { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 20px; }
        .title { font-size: 60px; font-weight: bold; color: #eee4da; margin: 0; }
        .score-container { display: flex; gap: 5px; }
        .score-box { background: #bbada0; padding: 5px 15px; border-radius: 6px; color: white; text-align: center; min-width: 80px; }
        .score-label { font-size: 12px; font-weight: bold; display: block; color: #eee4da; }
        .score-value { font-size: 20px; font-weight: bold; }
        
        .controls { margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
        .btn-size { font-size: 32px; padding: 8px 12px; background: #eee4da; border: 2px solid #bbada0; border-radius: 6px; color: #776e65; cursor: pointer; font-weight: bold; }
        .btn-size.active { background: #8f7a66; color: white; border-color: #8f7a66; }
        .btn-reset { padding: 10px 20px; background: #f65e3b; border: none; border-radius: 6px; color: white; cursor: pointer; font-weight: bold; }

        #game-board { 
            background: #bbada0; border-radius: 6px; padding: 15px; 
            display: grid; grid-gap: 12px; user-select: none; touch-action: none;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            width: fit-content; /* 타일 개수에 따라 늘어남 */
        }
        .tile { 
            width: 100px; height: 100px; background: rgba(238, 228, 218, 0.35); border-radius: 4px; 
            display: flex; justify-content: center; align-items: center; font-size: 40px; font-weight: bold; color: #776e65;
            transition: transform 0.1s, background-color 0.1s;
        }
        /* 색상 코드 */
        .v-2 { background: #eee4da; } .v-4 { background: #ede0c8; } .v-8 { background: #f2b179; color: white; }
        .v-16 { background: #f59563; color: white; } .v-32 { background: #f67c5f; color: white; }
        .v-64 { background: #f65e3b; color: white; } .v-128 { background: #edcf72; color: white; font-size: 35px; }
        .v-256 { background: #edcc61; color: white; font-size: 35px; } .v-512 { background: #edc850; color: white; font-size: 35px; }
        .v-1024 { background: #edc53f; color: white; font-size: 30px; } .v-2048 { background: #edc22e; color: white; font-size: 30px; }