.card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e3d4bd;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 16px;
}
.card h2 {
    margin-top: 0;
    margin-bottom: 0;
    vertical-align: middle;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 12px;
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
}
.results-grid {
    max-width: none;
}

.game-card {
    background: #fffaf3;
    border: 1px solid #e5d6c2;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}
.card-visual {
    height: 200px;
    background: linear-gradient(135deg, #f0d9b5, #f6b24f);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f6b24f;
    border: none;
    width: 100%;
    display: block;
    padding: 0;
}
.card-visual.hovering {
    cursor: zoom-in;
}
.card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.card-title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.title-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.title-meta .chip {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chip {
    background: #f1dfc5;
    color: #2c1c0d;
    padding: 2px 8px;
    border-radius: 999px;
    min-width: 30px;
    height: 30px;
    border: 1px solid transparent;
}
button .chip {
    cursor: pointer;
}
.chip.icon {
    padding: 2px;
    width: 30px;
    font-size: 18px;
}
.chip.link-chip {
    background: #d7e7ff;
    border: 1px solid #b9d1ff;
    color: #1b3d75;
}
.chip.danger-chip {
    background: #e0564f;
    border: 1px solid #c54740;
    color: #fffaf3;
}
.chip.danger-chip:hover {
    background: #c9473f;
    border-color: #a83a35;
}

.help-chip {
    background: #dff3ff;
    border-color: #b6ddff;
    color: #0f3a6f;
    font-weight: 700;
}
.help-chip:hover {
    background: #cde8ff;
}

.nav-btn {
    min-width: 64px;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid transparent;
}

.badge.warning {
    background: #fff0d6;
    color: #7a4a00;
    border-color: #f0c66b;
}

.toggle-row {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
}

.phase-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.phase-nav .nav-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #4b3a26;
}

.phase-nav .nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.warning-text {
    color: #b23b3b;
    font-weight: 600;
    margin-bottom: 6px;
}

.vote-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
}
.vote-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    margin-top: auto;
    padding-top: 6px;
}
.score {
    font-weight: 700;
    min-width: 36px;
    font-size: 24px;
    text-align: center;
}
.score-emoji {
    font-size: 24px;
    text-align: center;
}

.results-grid .game-card {
    border-color: #f0c56b;
}

.results-frame {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e3d4bd;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* Slider */
input[type="range"].full-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, #c52222, #d5c522, #22c55e);
    outline: none;
    box-shadow:
        inset 0 0 0 1px #e3d4bd,
        0 4px 12px rgba(0, 0, 0, 0.18);
}
input[type="range"].full-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fffaf3;
    border: 2px solid #d5c7b5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
input[type="range"].full-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fffaf3;
    border: 2px solid #d5c7b5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
input[type="range"].full-slider::-moz-range-track {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f28b3c, #f2c94c, #2ca25f);
    border: 1px solid #e3d4bd;
}

input[type="range"].full-slider:disabled {
    background: #c9c9c9;
}
input[type="range"].full-slider:disabled::-webkit-slider-thumb {
    background: #f1f1f1;
    border-color: #c1c1c1;
}
input[type="range"].full-slider:disabled::-moz-range-thumb {
    background: #f1f1f1;
    border-color: #c1c1c1;
}
