#qw-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 12px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111;
    position: relative;
}

.qw-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.qw-reset-btn {
    background: #f3e6e6;
    border: 1px solid #d8c4c4;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
}

.qw-timer {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
	color:#fff;
}

.qw-timer-icon {
    margin-right: 6px;
}

.qw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.qw-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
	color:#fff;
}

.qw-dark-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
}

body.qw-dark {
    background-color: #121213;
    color: #ffffff;
}

.qw-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.qw-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 65px;
    gap: 6px;
}


.qw-cell {
    border: 2px solid #3a3a3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    box-sizing: border-box;
	color:#fff;
}


body.qw-dark .qw-cell {
    border: 2px solid #3a3a3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    box-sizing: border-box;
}


.qw-cell-correct {
    background-color: #6aaa64;
    border-color: #6aaa64;
    color: #ffffff;
}

.qw-cell-present {
    background-color: #c9b458;
    border-color: #c9b458;
    color: #ffffff;
}

.qw-cell-absent {
    background-color: #3a3a3c;
    border-color: #3a3a3c;
    color: #ffffff;
}

.qw-keyboard {
    text-align: center;
}

.qw-keyboard-row {
    margin-bottom: 4px;
}

.qw-key {
    margin: 3px;
    padding: 10px 14px;
    min-width: 34px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    background-color: #d3d6da;
}


body.qw-dark .qw-key {
    margin: 3px;
    padding: 10px 14px;
    min-width: 34px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    background-color: #d3d6da;
}


.qw-key-correct {
    background-color: #6aaa64 !important;
    color: #ffffff !important;
}

.qw-key-present {
    background-color: #c9b458 !important;
    color: #ffffff !important;
}

.qw-key-absent {
    background-color: #3a3a3c !important;
    color: #ffffff !important;
}

.qw-share {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background-color: #538d4e;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.qw-stats {
    position: absolute;
    top: 70px;
    right: 16px;
    background: #222;
    color: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    width: 240px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    z-index: 10;
    font-size: 14px;
}

.qw-stats h3 {
    margin-top: 0;
}

.qw-stats button {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.qw-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .qw-grid-wrapper {
        grid-template-columns: 1fr;
    }
}


.qw-key-enter {
    padding: 10px 20px !important;
    font-size: 14px !important;
}

.qw-key-back {
    padding: 10px 16px !important;
    font-size: 18px !important;
}

