.burger-overlay,
.settings-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.8), rgba(255, 215, 0, 0.7));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: -4px 0 12px rgba(255, 165, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    overflow: auto;
}


.burger-overlay.open,
.settings-overlay.open {
    transform: translateX(0);
}


.burger-header,
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    border-image: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent) 1;
}


.burger-title img {
    width: 28px;
    height: 28px;
}


.burger-overlay ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.burger-overlay li {
    width: 100%;
}


.copyright {
    font-size: 10px;
    text-align: center;
    opacity: 0.7;
    text-transform: none;
}


.copyright::first-letter {
    font-size: 12px;
}


.menu-btn {
    font-size: 16px;
    padding: 10px 14px;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
}


.menu-icon {
    width: 30px;
}


.overlay-style {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.65);
}


.settings-button,
.close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}


.setting-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    border-image: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent) 1;
}


.setting-row {
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}


.language-btn {
    padding: 10px 24px;
    font-size: 20px;
    background-color: rgb(155, 200, 2);
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}


.language-btn:hover,
.language-btn:focus-visible {
    background-color: rgb(135, 180, 0);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
    outline: none;
}


.icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    pointer-events: none;
}


.modal-overlay {
    position: absolute;
    inset: 0;
    z-index: 120;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}


.modal-card {
    width: 260px;
    max-width: 90%;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .25);
}


.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    background: #ffe7d6;
    border-bottom: 1px solid #ffd0b0;
    border-radius: 8px;
    padding: 8px;
}


.modal-content {
    display: grid;
    gap: 8px;
}


.lang-opt {
    padding: 8px 12px;
    text-transform: none;
}


.lang-opt.is-active {
    border: 2px solid rgb(155, 200, 2);
    transform: scale(1.02);
}


.story-card,
.key-help-card,
.ranking-card,
.impressum-card {
    background: #fff;
    border-radius: 14px;
    width: min(92vw, 640px);
    max-height: 80vh;
    overflow: auto;
    box-sizing: border-box;
}


.story-header,
.key-help-header,
.ranking-header,
.impressum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: linear-gradient(270deg, #f3e5da, #f3bc88);
    border-bottom: 2px solid #ffa94d;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    text-shadow: 0 0 2px black;
}


.padding-overlays {
    padding: 24px;
}


.key-help-keys-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}


.key-help-keys-table th,
.key-help-keys-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    text-align: left;
}


.key-help-th {
    font-weight: 700;
}


.key-help-hint {
    margin: 6px 0 0;
    font-size: .9rem;
}


.ranking-empty {
    text-align: center;
    padding: 8px 0 24px;
    margin: 0;
    border-bottom: 2px solid #ffa94d;
}


.ranking-table {
    width: 100%;
    border-collapse: collapse;
}


.ranking-table th,
.ranking-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 14px;
}


.ranking-table th {
    font-weight: 700;
}


.ranking-footer {
    display: flex;
    justify-content: center;
    padding: 18px 0;
}


.ranking-clear-btn,
.ranking-clear-ok,
.ranking-clear-cancel {
    font-size: 16px;
    padding: 10px 14px;
}


#rankingClear:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.ranking-confirm-card {
    width: min(520px, 90%);
    border-radius: 16px;
    padding: 18px;
    background: #ffe7d6;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.ranking-confirm-text {
    margin: 0;
    font-size: 16px;
}


.ranking-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
}


.impressum-card {
    font-family: system-ui, sans-serif;
    text-transform: none;
}


.impressum-body p {
    margin: 6px 0 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
}