/* Yahtzee Game Styles - Using Solitaire Green Theme with White Fonts */

body {
    background: #228B22;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-container {
    flex: 1;
    padding: 0 1rem;
}

.yahtzee-header {
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    margin: 2rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 3px;
}

.yahtzee-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.yahtzee-btn {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.yahtzee-btn:hover:not(:disabled) {
    background: linear-gradient(90deg, #45a049, #4CAF50);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.yahtzee-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.yahtzee-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.yahtzee-status > div {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 0.3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.yahtzee-status > div:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Specific status item styling */
#currentPlayer {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    color: #000;
    font-weight: bold;
}

#rollsLeft {
    background: linear-gradient(90deg, #2196F3, #1976D2);
}

#roundNumber {
    background: linear-gradient(90deg, #FF9800, #F57C00);
}

#movesDisplay {
    background: linear-gradient(90deg, #9C27B0, #7B1FA2);
}

#difficultyDisplay {
    background: linear-gradient(90deg, #F44336, #D32F2F);
    font-size: 0.7rem;
}

.yahtzee-board {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Dice Styles */
.dice-container {
    background: url('https://www.transparenttextures.com/patterns/asfalt-light.png') repeat, rgba(255,255,255,0.9);
    background-size: 100px 100px;
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.dice-title {
    font-family: 'Press Start 2P', cursive;
    color: #000;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.dice-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.die {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 3px solid #333;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    perspective: 1000px;
}

.die:hover {
    transform: scale(1.1) rotateY(5deg);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.die.kept {
    background: #FFD700;
    border-color: #FFA500;
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.5);
}

.die-face {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
    transition: all 0.3s;
}

.die.kept .die-face {
    color: #000;
}

.die-keep {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    color: #FFD700;
    opacity: 0;
    transition: opacity 0.3s;
}

.die.kept .die-keep {
    opacity: 1;
}

/* Scorecard Styles */
.scorecards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.scorecard {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    border: 2px solid #fff;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.player-scorecard {
    border-color: #4CAF50;
}

.ai-scorecard {
    border-color: #FF6B6B;
}

.scorecard-header {
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.player-scorecard .scorecard-header {
    background: #4CAF50;
}

.ai-scorecard .scorecard-header {
    background: #FF6B6B;
}

.scorecard-body {
    padding: 1rem;
}

.score-section {
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    color: #000;
    font-size: 0.7rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.score-row:hover {
    background: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
}

.score-row.clickable {
    background: rgba(76, 175, 80, 0.2);
    border-radius: 4px;
    animation: pulse 2s infinite;
}

.score-row.used {
    opacity: 0.6;
    cursor: not-allowed;
}

.score-row.used:hover {
    background: none;
}

.category-name {
    font-size: 0.8rem;
    color: #000;
    font-weight: bold;
}

.category-score {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: #4CAF50;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.bonus-row, .total-row, .grand-total-row {
    border-top: 2px solid #4CAF50;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    font-weight: bold;
}

.grand-total-row {
    border-color: #FFD700;
}

.grand-total-row .category-score {
    color: #FFD700;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
    font-size: 1rem;
}

/* Content Styles */
.yahtzee-content {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.yahtzee-content h2 {
    font-family: 'Press Start 2P', cursive;
    color: #228B22;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: none;
}

.yahtzee-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.yahtzee-content li {
    margin-bottom: 1rem;
    color: #333;
}

.yahtzee-content strong {
    color: #228B22;
}

.strategy {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: rgba(34, 139, 34, 0.1);
    border: 1px solid #228B22;
}

.strategy-title {
    color: #228B22;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.strategy p {
    color: #333;
}

/* SEO Content Sections */
.yahtzee-info-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.yahtzee-info-section h3 {
    font-family: 'Press Start 2P', cursive;
    color: #228B22;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: none;
}

.yahtzee-info-section h4 {
    font-family: 'Press Start 2P', cursive;
    color: #4CAF50;
    font-size: 0.9rem;
    margin: 1rem 0 0.5rem 0;
}

.yahtzee-info-section p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.yahtzee-mechanics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.mechanic-item {
    padding: 1rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.mechanic-item h4 {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.mechanic-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.scoring-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.scoring-section h4 {
    font-family: 'Press Start 2P', cursive;
    color: #4CAF50;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.scoring-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scoring-list li {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
    font-size: 0.9rem;
}

.scoring-list li:last-child {
    border-bottom: none;
}

.advanced-tips {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.advanced-tips h4 {
    font-family: 'Press Start 2P', cursive;
    color: #FFD700;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
}

.advanced-tips ul {
    margin-left: 1.5rem;
    color: #333;
}

.advanced-tips li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Enhanced Controls Styling */
.difficulty-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.difficulty-selector label {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
}

.yahtzee-select {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    color: #000;
    border: 2px solid #fff;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: bold;
    min-width: 80px;
}

.yahtzee-select:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

/* Also fix option text color for better visibility */
.yahtzee-select option {
    color: #000;
    background: #fff;
    font-weight: bold;
}

/* Enhanced Status Display */
.yahtzee-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.yahtzee-status > div {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 0.3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.yahtzee-status > div:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Specific status item styling */
#currentPlayer {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    color: #000;
    font-weight: bold;
}

#rollsLeft {
    background: linear-gradient(90deg, #2196F3, #1976D2);
}

#roundNumber {
    background: linear-gradient(90deg, #FF9800, #F57C00);
}

#movesDisplay {
    background: linear-gradient(90deg, #9C27B0, #7B1FA2);
}

#difficultyDisplay {
    background: linear-gradient(90deg, #F44336, #D32F2F);
    font-size: 0.7rem;
}

.yahtzee-board {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Dice Styles */
.dice-container {
    background: url('https://www.transparenttextures.com/patterns/asfalt-light.png') repeat, rgba(255,255,255,0.9);
    background-size: 100px 100px;
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.dice-title {
    font-family: 'Press Start 2P', cursive;
    color: #000;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.dice-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.die {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 3px solid #333;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    perspective: 1000px;
}

.die:hover {
    transform: scale(1.1) rotateY(5deg);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.die.kept {
    background: #FFD700;
    border-color: #FFA500;
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.5);
}

.die-face {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
    transition: all 0.3s;
}

.die.kept .die-face {
    color: #000;
}

.die-keep {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    color: #FFD700;
    opacity: 0;
    transition: opacity 0.3s;
}

.die.kept .die-keep {
    opacity: 1;
}

/* Scorecard Styles */
.scorecards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.scorecard {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    border: 2px solid #fff;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.player-scorecard {
    border-color: #4CAF50;
}

.ai-scorecard {
    border-color: #FF6B6B;
}

.scorecard-header {
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.player-scorecard .scorecard-header {
    background: #4CAF50;
}

.ai-scorecard .scorecard-header {
    background: #FF6B6B;
}

.scorecard-body {
    padding: 1rem;
}

.score-section {
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    color: #000;
    font-size: 0.7rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.score-row:hover {
    background: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
}

.score-row.clickable {
    background: rgba(76, 175, 80, 0.2);
    border-radius: 4px;
    animation: pulse 2s infinite;
}

.score-row.used {
    opacity: 0.6;
    cursor: not-allowed;
}

.score-row.used:hover {
    background: none;
}

.category-name {
    font-size: 0.8rem;
    color: #000;
    font-weight: bold;
}

.category-score {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: #4CAF50;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.bonus-row, .total-row, .grand-total-row {
    border-top: 2px solid #4CAF50;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    font-weight: bold;
}

.grand-total-row {
    border-color: #FFD700;
}

.grand-total-row .category-score {
    color: #FFD700;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
    font-size: 1rem;
}

/* Content Styles */
.yahtzee-content {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.yahtzee-content h2 {
    font-family: 'Press Start 2P', cursive;
    color: #228B22;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: none;
}

.yahtzee-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.yahtzee-content li {
    margin-bottom: 1rem;
    color: #333;
}

.yahtzee-content strong {
    color: #228B22;
}

.strategy {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: rgba(34, 139, 34, 0.1);
    border: 1px solid #228B22;
}

.strategy-title {
    color: #228B22;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.strategy p {
    color: #333;
}

/* SEO Content Sections */
.yahtzee-info-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.yahtzee-info-section h3 {
    font-family: 'Press Start 2P', cursive;
    color: #228B22;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: none;
}

.yahtzee-info-section h4 {
    font-family: 'Press Start 2P', cursive;
    color: #4CAF50;
    font-size: 0.9rem;
    margin: 1rem 0 0.5rem 0;
}

.yahtzee-info-section p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.yahtzee-mechanics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.mechanic-item {
    padding: 1rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.mechanic-item h4 {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.mechanic-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.scoring-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.scoring-section h4 {
    font-family: 'Press Start 2P', cursive;
    color: #4CAF50;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.scoring-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scoring-list li {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
    font-size: 0.9rem;
}

.scoring-list li:last-child {
    border-bottom: none;
}

.advanced-tips {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.advanced-tips h4 {
    font-family: 'Press Start 2P', cursive;
    color: #FFD700;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
}

.advanced-tips ul {
    margin-left: 1.5rem;
    color: #333;
}

.advanced-tips li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Enhanced Controls Styling */
.difficulty-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.difficulty-selector label {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
}

.yahtzee-select {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    color: #000;
    border: 2px solid #fff;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: bold;
    min-width: 80px;
}

.yahtzee-select:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

/* Also fix option text color for better visibility */
.yahtzee-select option {
    color: #000;
    background: #fff;
    font-weight: bold;
}

/* Enhanced Status Display */
.yahtzee-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.yahtzee-status > div {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 0.3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.yahtzee-status > div:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Specific status item styling */
#currentPlayer {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    color: #000;
    font-weight: bold;
}

#rollsLeft {
    background: linear-gradient(90deg, #2196F3, #1976D2);
}

#roundNumber {
    background: linear-gradient(90deg, #FF9800, #F57C00);
}

#movesDisplay {
    background: linear-gradient(90deg, #9C27B0, #7B1FA2);
}

#difficultyDisplay {
    background: linear-gradient(90deg, #F44336, #D32F2F);
    font-size: 0.7rem;
}

.yahtzee-board {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Dice Styles */
.dice-container {
    background: url('https://www.transparenttextures.com/patterns/asfalt-light.png') repeat, rgba(255,255,255,0.9);
    background-size: 100px 100px;
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.dice-title {
    font-family: 'Press Start 2P', cursive;
    color: #000;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.dice-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.die {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 3px solid #333;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    perspective: 1000px;
}

.die:hover {
    transform: scale(1.1) rotateY(5deg);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.die.kept {
    background: #FFD700;
    border-color: #FFA500;
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.5);
}

.die-face {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
    transition: all 0.3s;
}

.die.kept .die-face {
    color: #000;
}

.die-keep {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    color: #FFD700;
    opacity: 0;
    transition: opacity 0.3s;
}

.die.kept .die-keep {
    opacity: 1;
}

/* Scorecard Styles */
.scorecards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.scorecard {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    border: 2px solid #fff;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.player-scorecard {
    border-color: #4CAF50;
}

.ai-scorecard {
    border-color: #FF6B6B;
}

.scorecard-header {
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.player-scorecard .scorecard-header {
    background: #4CAF50;
}

.ai-scorecard .scorecard-header {
    background: #FF6B6B;
}

.scorecard-body {
    padding: 1rem;
}

.score-section {
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    color: #000;
    font-size: 0.7rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.score-row:hover {
    background: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
}

.score-row.clickable {
    background: rgba(76, 175, 80, 0.2);
    border-radius: 4px;
    animation: pulse 2s infinite;
}

.score-row.used {
    opacity: 0.6;
    cursor: not-allowed;
}

.score-row.used:hover {
    background: none;
}

.category-name {
    font-size: 0.8rem;
    color: #000;
    font-weight: bold;
}

.category-score {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: #4CAF50;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.bonus-row, .total-row, .grand-total-row {
    border-top: 2px solid #4CAF50;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    font-weight: bold;
}

.grand-total-row {
    border-color: #FFD700;
}

.grand-total-row .category-score {
    color: #FFD700;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
    font-size: 1rem;
}

/* Content Styles */
.yahtzee-content {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.yahtzee-content h2 {
    font-family: 'Press Start 2P', cursive;
    color: #228B22;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: none;
}

.yahtzee-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.yahtzee-content li {
    margin-bottom: 1rem;
    color: #333;
}

.yahtzee-content strong {
    color: #228B22;
}

.strategy {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: rgba(34, 139, 34, 0.1);
    border: 1px solid #228B22;
}

.strategy-title {
    color: #228B22;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.strategy p {
    color: #333;
}

/* SEO Content Sections */
.yahtzee-info-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.yahtzee-info-section h3 {
    font-family: 'Press Start 2P', cursive;
    color: #228B22;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: none;
}

.yahtzee-info-section h4 {
    font-family: 'Press Start 2P', cursive;
    color: #4CAF50;
    font-size: 0.9rem;
    margin: 1rem 0 0.5rem 0;
}

.yahtzee-info-section p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.yahtzee-mechanics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.mechanic-item {
    padding: 1rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.mechanic-item h4 {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.mechanic-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.scoring-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.scoring-section h4 {
    font-family: 'Press Start 2P', cursive;
    color: #4CAF50;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.scoring-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scoring-list li {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
    font-size: 0.9rem;
}

.scoring-list li:last-child {
    border-bottom: none;
}

.advanced-tips {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.advanced-tips h4 {
    font-family: 'Press Start 2P', cursive;
    color: #FFD700;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
}

.advanced-tips ul {
    margin-left: 1.5rem;
    color: #333;
}

.advanced-tips li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Enhanced Controls Styling */
.difficulty-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.difficulty-selector label {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
}

.yahtzee-select {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    color: #000;
    border: 2px solid #fff;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: bold;
    min-width: 80px;
}

.yahtzee-select:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

/* Also fix option text color for better visibility */
.yahtzee-select option {
    color: #000;
    background: #fff;
    font-weight: bold;
}

/* Enhanced Status Display */
.yahtzee-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.yahtzee-status > div {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 0.3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.yahtzee-status > div:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Specific status item styling */
#currentPlayer {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    color: #000;
    font-weight: bold;
}

#rollsLeft {
    background: linear-gradient(90deg, #2196F3, #1976D2);
}

#roundNumber {
    background: linear-gradient(90deg, #FF9800, #F57C00);
}

#movesDisplay {
    background: linear-gradient(90deg, #9C27B0, #7B1FA2);
}

#difficultyDisplay {
    background: linear-gradient(90deg, #F44336, #D32F2F);
    font-size: 0.7rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 2px solid #4CAF50;
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #4CAF50;
    color: #fff;
    border-radius: 10px 10px 0 0;
}

.modal-header h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    margin: 0;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.close:hover {
    transform: scale(1.2);
    color: #FFD700;
}

.modal-body {
    padding: 2rem;
    color: #333;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.stat-number {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: bold;
}

/* Difficulty Stats */
.difficulty-stats {
    margin: 2rem 0;
}

.difficulty-stats h3 {
    font-family: 'Press Start 2P', cursive;
    color: #4CAF50;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.difficulty-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.difficulty-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(76, 175, 80, 0.05);
    border-radius: 4px;
}

.difficulty-name {
    font-weight: bold;
    color: #4CAF50;
}

/* Achievements */
.achievements-section {
    margin: 2rem 0;
}

.achievements-section h3 {
    font-family: 'Press Start 2P', cursive;
    color: #4CAF50;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.achievements-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.achievement-item {
    display: grid;
    grid-template-columns: 40px 1fr 2fr;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.achievement-item.achievement-earned {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    opacity: 1;
}

.achievement-item.achievement-locked {
    background: rgba(128, 128, 128, 0.1);
    border: 1px solid rgba(128, 128, 128, 0.2);
    opacity: 0.6;
    filter: grayscale(1);
}

.achievement-icon {
    font-size: 1.5rem;
    text-align: center;
}

.achievement-name {
    font-weight: bold;
    color: #333;
}

.achievement-desc {
    font-size: 0.9rem;
    color: #666;
}

/* Modal Actions */
.modal-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(76, 175, 80, 0.3);
}

.yahtzee-btn.danger {
    background: linear-gradient(90deg, #ff4444, #cc0000);
    color: #fff;
}

.yahtzee-btn.danger:hover {
    background: linear-gradient(90deg, #cc0000, #ff4444);
}

/* Game Summary Popup */
.game-summary-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 2px solid #4CAF50;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    min-width: 300px;
    text-align: center;
}

.summary-content h3 {
    font-family: 'Press Start 2P', cursive;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.score-summary {
    margin: 1rem 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.game-stats, .overall-stats {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
}

.game-stats div, .overall-stats div {
    margin: 0.3rem 0;
}

.summary-content button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
}

/* Achievement Notification */
.achievement-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(76, 175, 80, 0.95);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInFromRight 0.5s ease-out;
    z-index: 9998;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid #FFD700;
}

.achievement-icon {
    font-size: 1.5rem;
}

.achievement-text {
    display: flex;
    flex-direction: column;
}

.achievement-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: #FFD700;
    margin-bottom: 0.2rem;
}

.achievement-name {
    font-size: 1rem;
    font-weight: bold;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { 
        background: rgba(76, 175, 80, 0.2);
        transform: scale(1); 
    }
    50% { 
        background: rgba(76, 175, 80, 0.4);
        transform: scale(1.02); 
    }
}

@keyframes diceRoll {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1.2); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes scoreGlow {
    0% { 
        background: rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
    50% { 
        background: rgba(255, 215, 0, 0.6);
        transform: scale(1.05);
    }
    100% { 
        background: rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
}

@keyframes yahtzeeShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Footer Styles - Brand Consistent */
.mega-footer {
    background: var(--dark-bg, #0a0a16);
    color: #fff;
    padding: 2rem 0 1rem 0;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    width: 100vw; /* Full viewport width */
    margin-left: calc(-50vw + 50%); /* Center it properly */
    left: 0;
    right: 0;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1200px; /* Set max-width instead of using Tailwind classes */
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.footer-title {
    font-family: 'Press Start 2P', cursive;
    color: #FFD700;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.4);
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    color: #4CAF50;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.7), 0 0 20px rgba(76, 175, 80, 0.4);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #FFD700;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-section ul li a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.4);
}

.btn-arcade {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(90deg, #FFD700, #4CAF50);
    color: #222;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-block;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-arcade:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.4);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(45deg, #4CAF50, #228B22);
    transition: all 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.7), 0 0 20px rgba(76, 175, 80, 0.4);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(76, 175, 80, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(76, 175, 80, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
    animation: gridMove 15s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0px 0px; }
    100% { background-position: 40px 40px; }
}

.shooting-star {
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff, rgba(255, 255, 255, 0));
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.7;
    z-index: 1;
    animation: shooting-star 5s linear infinite;
}

.star-1 {
    top: 20%;
    left: -100px;
    animation-delay: 0s;
}

.star-2 {
    top: 50%;
    left: -100px;
    animation-delay: 2s;
}

.star-3 {
    top: 70%;
    left: -100px;
    animation-delay: 4s;
}

@keyframes shooting-star {
    0% { transform: translateX(0) rotate(-45deg); opacity: 0; }
    10% { opacity: 0.7; }
    70% { opacity: 0.7; }
    100% { transform: translateX(calc(100vw + 200px)) rotate(-45deg); opacity: 0; }
}

.pixel-art {
    position: absolute;
    font-size: 24px;
    z-index: 1;
    animation: float 5s ease-in-out infinite;
}

.pixel-joystick {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.pixel-ghost {
    bottom: 30%;
    left: 15%;
    animation-delay: 1s;
}

.pixel-heart {
    top: 60%;
    right: 25%;
    animation-delay: 2.5s;
}

.pixel-star {
    bottom: 15%;
    left: 30%;
    animation-delay: 3.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.copyright {
    color: #fff;
    font-family: 'Roboto', sans-serif;
}

.legal-links a {
    color: #4CAF50;
    text-decoration: none;
    transition: all 0.2s;
}

.legal-links a:hover {
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .yahtzee-board {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .scorecards-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .yahtzee-header {
        font-size: 2rem;
    }
    
    .yahtzee-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .difficulty-selector {
        justify-content: center;
    }
    
    .yahtzee-select {
        color: #000; /* Ensure black text on mobile too */
        font-weight: bold;
    }
    
    .yahtzee-status {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.6rem;
        margin: 0.8rem 0;
    }
    
    .yahtzee-status > div {
        font-size: 0.6rem;
        padding: 0.4rem 0.2rem;
    }
    
    #difficultyDisplay {
        font-size: 0.5rem;
        grid-column: span 2;
    }
    
    .die {
        width: 60px;
        height: 60px;
    }
    
    .die-face {
        font-size: 1.2rem;
    }
    
    .dice-container {
        padding: 1rem;
    }
    
    .scoring-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .yahtzee-mechanics {
        gap: 1rem;
    }
    
    .yahtzee-info-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .yahtzee-info-section h3 {
        font-size: 1rem;
    }
    
    .mechanic-item h4,
    .scoring-section h4,
    .advanced-tips h4 {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .yahtzee-header {
        font-size: 1.5rem;
    }
    
    .yahtzee-btn {
        padding: 8px 16px;
        font-size: 0.7rem;
    }
    
    .die {
        width: 50px;
        height: 50px;
    }
    
    .die-face {
        font-size: 1rem;
    }
    
    .yahtzee-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .achievement-item {
        grid-template-columns: 30px 1fr;
        gap: 0.5rem;
    }
    
    .achievement-desc {
        grid-column: 2;
        font-size: 0.8rem;
    }
    
    /* Ensure footer spans full width on mobile */
    .mega-footer {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
}
