/* Standard Embed Display Container Frame Rules */
#dcg-game-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    font-family: 'Courier New', Courier, monospace;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;
    overflow: hidden;
    background: #1a1613;
}

#dcg-game-wrapper *, #dcg-game-wrapper *::before, #dcg-game-wrapper *::after {
    box-sizing: border-box;
}

#dcg-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #EDC9AF;
    overflow: hidden;
    margin: 0 auto;
}

#dcg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

#dcg-ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.dcg-screen {
    background: rgba(45, 35, 25, 0.96);
    color: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    border: 3px solid #D2B48C;
    box-shadow: 0 16px 35px rgba(0,0,0,0.7);
    width: 90%;
    max-width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: auto;
}

.dcg-title {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 900;
    color: #EDC9AF;
    text-shadow: 3px 3px 0px #111;
    letter-spacing: 2px;
}

.dcg-instructions {
    font-size: 13px;
    margin: 5px 0 20px 0;
    color: #dfd5c6;
}

/* Difficulty Selection UI Elements */
.dcg-difficulty-selector {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 10px;
}

.dcg-difficulty-selector label {
    flex: 1;
    cursor: pointer;
}

.dcg-difficulty-selector input[type="radio"] {
    display: none;
}

.dcg-diff-btn {
    display: block;
    padding: 10px 4px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 6px;
    background: #4a3b32;
    border: 2px solid #6e584a;
    color: #fcf8f2;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.dcg-difficulty-selector input[type="radio"]:checked + .easy {
    background: #689F38;
    border-color: #DCEDC8;
    box-shadow: 0 0 12px #689F38;
}

.dcg-difficulty-selector input[type="radio"]:checked + .normal {
    background: #FBC02D;
    border-color: #FFF9C4;
    box-shadow: 0 0 12px #FBC02D;
    color: #212121;
}

.dcg-difficulty-selector input[type="radio"]:checked + .hard {
    background: #D32F2F;
    border-color: #FFCDD2;
    box-shadow: 0 0 12px #D32F2F;
}

.dcg-stats {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: left;
    border: 1px solid rgba(210, 180, 140, 0.25);
}

.dcg-stats p {
    margin: 8px 0;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
}

.dcg-btn {
    background: #2E7D32;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    border-radius: 6px;
    box-shadow: 0 5px #1B5E20;
    transition: all 0.05s ease;
    width: 100%;
}

.dcg-btn:active {
    box-shadow: 0 0px #1B5E20;
    transform: translateY(5px);
}

/* Full-screen Toggle Anchor System Widget */
#dcg-fullscreen-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#dcg-fullscreen-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Full-Screen Engine Mode Handling Override Triggers */
#dcg-game-wrapper:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    margin: 0 !important;
}

#dcg-game-wrapper:fullscreen #dcg-container {
    width: 100vw !important;
    height: 100vh !important;
}