* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #111111;
    color: #ffffff;
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
}

.game {
    width: 100%;
    max-width: 480px;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding-bottom: 0;
    border-bottom: none;
}

.logo {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.puzzle-number {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #777;
}

.date-separator {
    padding: 0 8px;
    color: #555;
}

.instructions {
    text-align: center;
    padding: 30px 0 26px;
}

.instructions strong {
    display: block;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.2px;
    margin-bottom: 6px;
}

.instructions span {
    display: block;
    color: #b0b0b0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.clues {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin-top: 24px;
}

#actor-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.actor-box {
    position: relative;
    height: 64px;
    width: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 22px;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease;
}

.actor-box.revealed {
    background: #303030;
    color: #fff;
}

.actor-box.hidden {
    background: #1b1b1b;
    border: 1px solid #303030;
    color: #555;
}

.actor-name {
    display: block;
    text-align: left;
    padding: 0 75px 0 20px;
}

.box-points {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 700;
    color: #555;
    white-space: nowrap;
}

.actor-box.active .box-points {
    color: #EBC76B;
}

.actor-box.revealed:not(.active) .box-points {
    color: #666;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 30px;
    padding-top: 12px;
}

input {
    width: 100%;
    height: 56px;
    border: 1px solid #444;
    border-radius: 12px;
    background: #222;
    color: #fff;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
}

input:focus {
    border-color: #fff;
}

button {
    width: 100%;
    min-height: 56px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 1px;
    cursor: pointer;
}

button:active {
    transform: scale(0.98);
}

.primary {
    background: #fff;
    color: #111;
}

.secondary {
    background: #287D73;
    color: #fff;
}

.secondary:hover {
    background: #329487;
}

footer {
    text-align: center;
    min-height: 20px;
    font-size: 14px;
}

.result-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-top: 0;
}

.result-verdict {
    text-align: center;
    padding: 12px 0 24px;
    padding-top: 0;
    padding-bottom: 4px;
}

.verdict-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.verdict-correct {
    color: #329487;
}

.verdict-wrong {
    color: #E76F6F;
}

.verdict-gave-up {
    color: #999;
}

.result-film {
    border-top: 1px solid #444;
    border-bottom: none;
    padding: 18px 0 12px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.result-label {
    color: #777;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.result-film h1 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin: 14px 0 8px;
    margin-top: 0;
}

.result-year {
    color: #888;
    font-size: 14px;
}

.result-heading {
    border: none;
    padding: 18px 0 10px;
    margin: 0;
    padding-top: 8px;
    padding-bottom: 14px;
}

.result-heading-hidden {
    display: none;
}

.result-stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    font-size: 37px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.star-earned {
    color: #EBC76B;
}

.star-unearned {
    color: #444;
}

.result-status {
    margin-top: 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.result-score {
    margin-top: 5px;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.result-cast {
    border-bottom: none;
    padding: 12px 0 24px;
    padding-bottom: 22px;
    padding-top: 4px;
}

.result-actors {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px 16px;
    margin-top: 0;
}

.cast-row {
    display: inline;
    min-width: 0;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    color: #aaa;
}

.cast-row span {
    background: none;
    border-radius: 0;
    padding: 0;
    font-size: inherit;
    font-weight: 500;
    color: inherit;
}

.cast-correct,
.cast-correct span {
    color: #EBC76B;
}

.cast-wrong,
.cast-wrong span {
    color: #329487;
}

.result-trivia {
    border-top: 1px solid #333;
    border-bottom: none;
    padding: 24px 10px 12px;
    padding-top: 18px;
    padding-bottom: 12px;
}

.result-trivia p {
    color: #bbb;
    font-size: 14px;
    line-height: 1.6;
    margin: 12px 0 0;
}

.result-bottom {
    margin-top: 20px;
    padding: 14px 0 12px;
}

.share-button {
    opacity: 1;
    cursor: pointer;
    background: #287D73;
    color: #fff;
}

.share-button:hover {
    background: #329487;
}

.result-tomorrow {
    margin-top: 12px;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    font-variant-numeric: tabular-nums;
}

.result-statistics {
    border-top: none;
    padding: 12px 0 0;
    text-align: center;
    padding-top: 18px;
}

.stats-title {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat strong {
    font-size: 23px;
    font-weight: 700;
    color: #eee;
}

.stat span {
    font-size: 8px;
    line-height: 1.4;
    letter-spacing: 0.3px;
    color: #777;
}

#next-clue {
    margin-top: 12px;
    margin-bottom: 12px;
    margin: 0;
}
/* Film autocomplete */

.guess-wrapper {
    position: relative;
    min-width: 0;
}

.guess-wrapper > input {
    width: 100%;
    box-sizing: border-box;
}

.film-suggestions {
    position: absolute;
    z-index: 100;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: #202020;
    border: 1px solid #444;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}

.film-suggestions[hidden] {
    display: none;
}

.film-suggestion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #333;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.film-suggestion:last-child {
    border-bottom: 0;
}

.film-suggestion:hover,
.film-suggestion.active {
    background: #353535;
}

.film-suggestion-year {
    color: #999;
    font-size: 12px;
    flex-shrink: 0;
}
