body {
    background-color: #1a1a1a;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    justify-content: center;
    padding-top: 50px;
}

#scoreboardContainer {
    display: grid;
    grid-template-columns: 200px 120px 200px;
    grid-template-rows: auto auto auto auto 40px;
    gap: 15px;
    padding: 30px;
    background-color: #000033;
    border: 8px solid #333;
    border-radius: 15px;
    box-shadow: inset 0 0 20px #000;
    align-items: center;
}

#playerScoreboard {
    grid-column: 1;
    grid-row: 3;
}
#computerScoreboard {
    grid-column: 3;
    grid-row: 3;
}
.center-info {
    grid-column: 2;
    grid-row: 3;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border: 2px solid #444;
    padding: 10px;
    background: #000;
    gap: 10px;
}

.yellow {
    color: #ffcc00;
    text-shadow: 0 0 15px #ffcc00;
    font-size: 3rem;
}

.tally-label {
    font-size: 0.7rem;
    color: #aaa;
}

.tally-marks {
    color: #00ff00;
    text-shadow: 0 0 8px #00ff00;
    font-size: 1.5rem;
    letter-spacing: 5px;
    font-weight: bold;
}

#choiceContainer {
    grid-column: 1/4;
    grid-row: 4;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;

}

.title {
    grid-column: 1/4;
    text-align: center;
    margin-bottom: 20px;
    color: #eee;
    text-shadow: 2px 2px #000;
    letter-spacing: 4px;
}



.score-box {
    border: 4px solid #555;
    background-color: #050505;
    padding: 15px;
    border-radius: 5px;
}
.score-box:nth-of-type(1){
    grid-column: 1;
    grid-row: 3;
}

.score-box:nth-of-type(2){
    grid-column: 3;
    grid-row: 3;
}

.score-box, .center-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    height: 250px;
    padding: 20px 15px;
    box-sizing: border-box;
}
.label {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
    border-bottom: 2px solid #333;
}

.display {
    font-size: 5rem;
    padding: 10px;
    width: 100%;
}

.red {
    color: #ff0000;
    text-shadow: 0 0 15px #ff0000;
}

.retro-btn {
    background: #222;
    color: #00ff00;
    border: 3px solid #444;
    padding: 15px 25px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px #000;
    transition: all 0.1s;
    border-radius: 4px;
}

.retro-btn:hover {
    background: #333;
    color: #fff;
    border-color: #666;
}

.retro-btn:active{
    box-shadow: 0 0px #000;
    transform: translateY(4px);
}

.ticker-wrap {
    grid-column: 1/4;
    grid-row: 2;
    background: #000;
    border: 2px solid #333;
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px; 
}

.ticker-text {
    white-space: nowrap;
    color: #ffcc00;
    font-size: 1rem;
    letter-spacing: 2px;
    
}

#system {
    grid-column: 1;
    grid-row: 5;
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 5px;
    justify-self: start;
}

#system .retro-btn {
    padding: 6px 12px;
    font-size: 0.65rem;
    border: 2px solid #333;
    box-shadow: none;
    background: #111;
    letter-spacing: 1px;
    border-color: #333;
    width: fit-content;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s, border-color 0.2s;
    filter: grayscale(50%);
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: none;
}

#system .reset:hover {
    color: #ff0000;
    border-color: #ff0000;
    opacity: 1;
    filter: grayscale(0%);
}

#system .rules:hover {
    color: #ffcc00;
    border-color: #ffcc00;
}

.system-label {
    font-size: 0.6rem;
    color: #444;
    align-self: center;
    margin-right: 5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content{
    background-color: #000033;
    margin: 10% auto;
    padding: 30px;
    border: 4px solid #00ff00;
    width: 350px;
    color: #00ff00;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 20px #00ff00;
    text-align: center;
}

.modal-content h2 { 
    border-bottom: 2px solid #00ff00;
    padding-bottom: 10px;
}

.modal-content ul {
    list-style: none;
    padding: 0;
    line-height: 2;
}

.close-btn {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #ff0000;
}

@keyframes flicker {
  0% { opacity: 0.97; }
  50% { opacity: 1; }
  100% { opacity: 0.98; }
}
.display { animation: flicker 0.1s infinite; }