/* Extra styles gluing the unified dzingo app into the retro DZINGO.GAMES look. */

/* the "Własna gra" theme button — Win98 gray, matching the in-game look */
.blankdzingo {
    background: #c0c0c0;
    background-image: repeating-linear-gradient(
        45deg,
        #c0c0c0,
        #c0c0c0 12px,
        #b0b0b8 12px,
        #b0b0b8 24px
    );
}

.blankdzingo .game-title {
    color: #000080;
    text-shadow: 2px 2px 0px #fff;
    font-family: Tahoma, 'Trebuchet MS', sans-serif;
}

.blankdzingo .game-desc {
    background: #ffffff;
    color: #000;
    border-color: #000080;
    font-family: 'Courier New', monospace;
}

/* selected theme button */
.theme-pick.picked {
    outline: 6px dashed #ff0000;
    outline-offset: 4px;
    transform: rotate(-1deg) scale(1.02);
    box-shadow: 12px 12px 0px #000;
}

.theme-pick.picked::after {
    content: '✅ WYBRANO!!!';
    position: absolute;
    top: -18px;
    right: -10px;
    background: #ff0000;
    color: #ffff00;
    font-family: Impact, sans-serif;
    font-size: 16px;
    padding: 4px 10px;
    border: 3px solid #000;
    transform: rotate(4deg);
    animation: blink 0.5s infinite;
}

/* room creation box */
.retro-create-box {
    background: #c0c0c0;
    border: 4px outset #fff;
    padding: 20px;
    margin-top: 20px;
    font-family: 'Courier New', monospace;
}

.retro-form-row {
    margin-bottom: 15px;
}

.retro-form-row label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #000;
}

.retro-input {
    width: 100%;
    box-sizing: border-box;
    border: 3px inset #fff;
    background: #ffffff;
    padding: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.retro-checkbox-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.retro-checkbox-row input {
    width: 16px;
    height: 16px;
}

/* action buttons row */
.retro-actions {
    text-align: center;
    margin-top: 15px;
}

.end-btn {
    background: #ff0000;
    border-color: #000;
}

.end-btn:hover {
    background: #ff4444;
}

/* players inside the active-room button */
.retro-players {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 8px;
}

.retro-player {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 2px solid #000;
    padding: 2px 8px 2px 2px;
    font-size: 12px;
    font-weight: bold;
}

.retro-player img {
    width: 20px;
    height: 20px;
    border: 1px solid #000;
}

.active-room-button {
    cursor: default;
}

/* last game results */
.retro-results {
    background: #000;
    color: #00ff00;
    border: 3px solid #00ff00;
    font-family: 'Courier New', monospace;
    padding: 15px;
}

.retro-result-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #005500;
    font-weight: bold;
}

.retro-note {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    margin-top: 15px;
    color: #000;
    background: #ffff00;
    border: 3px dashed #ff0000;
    padding: 8px;
}

/* XP-gray utility button (admin actions, tabs) */
.retro-btn {
    background: #c0c0c0;
    border: 3px outset #fff;
    padding: 6px 14px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 13px;
    color: #000;
    cursor: pointer;
}

.retro-btn:active {
    border-style: inset;
}

.retro-btn.danger {
    background: #ff9c9c;
}

/* scoreboard tabs */
.retro-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.retro-tab {
    background: #c0c0c0;
    border: 3px outset #fff;
    padding: 8px 16px;
    font-family: Impact, sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    color: #000;
    cursor: pointer;
}

.retro-tab.active {
    border-style: inset;
    background: #ffff00;
    color: #ff0000;
}

/* console-style ranking rows (reuses the visitor-counter aesthetic) */
.retro-rank-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 8px;
    border-bottom: 1px dashed #005500;
    font-weight: bold;
}

.retro-rank-row .rank-place {
    width: 3em;
}

.retro-rank-row .rank-name {
    flex: 1;
    text-align: left;
}

.retro-rank-row.top-1 { color: #ffff00; }
.retro-rank-row.top-2 { color: #ffffff; }
.retro-rank-row.top-3 { color: #ff9c3c; }

/* white boxed tables (admin) */
.retro-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.retro-table th {
    background: #000080;
    color: #fff;
    padding: 6px 8px;
    text-align: left;
}

.retro-table td {
    border: 2px solid #000;
    padding: 5px 8px;
    color: #000;
}

.retro-table input[type="number"] {
    border: 2px inset #fff;
    font-family: 'Courier New', monospace;
    padding: 3px;
}

/* phrase chips list (admin) */
.retro-phrase-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 3px inset #fff;
}

.retro-phrase-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    border-bottom: 1px solid #bbb;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #000;
}

.phrase-add {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.retro-details summary {
    cursor: pointer;
    font-family: Impact, sans-serif;
    font-size: 18px;
    background: #ffff00;
    border: 3px solid #000;
    padding: 8px;
    margin-top: 12px;
    color: #ff0000;
    text-shadow: 1px 1px 0 #000;
}

/* discord user in the system tray */
.tray-user {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 11px;
    padding: 0 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.tray-user img {
    width: 18px;
    height: 18px;
    border-radius: 3px;
}

/* leave room for the taskbar at the bottom */
body {
    padding-bottom: 50px;
}
