* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    background: none;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

#setupScreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: clamp(10px, 2vh, 20px);
    overflow-y: auto;
}

#setupScreen::before {
    content: '';
    position: fixed;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    z-index: -1;
    background: url('images/poster.jpg') center/cover no-repeat;
    opacity: 0.85;
    filter: blur(0px) brightness(0.8);
}

#gameContainer {
    background: rgba(74, 72, 72, 0.955);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    padding: 20px;
    max-width: 1400px;
    width: 100%;
    display: none;
    /* Hidden by default, shown when game starts */
    margin: 0 auto;
    overflow-x: hidden;
}

#setupScreen h1 {
    color: #fff;
    font-size: clamp(28px, 7vw, 64px);
    margin-bottom: clamp(15px, 4vh, 30px);
    text-shadow: 0 4px 24px #000, 0 1px 0 #764ba2;
    letter-spacing: clamp(1px, 0.3vw, 2px);
    font-weight: 900;
    line-height: 1.1;
    word-spacing: -0.1em;
}

.setup-form {
    max-width: 350px;
    width: 95%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.10);
    padding: clamp(12px, 2vh, 18px);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.form-group {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.form-group label {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: clamp(13px, 2.5vw, 15px);
    white-space: nowrap;
    flex-shrink: 0;
}

.form-group input,
.form-group select {
    padding: 8px 10px;
    border: 2px solid #fff;
    border-radius: 6px;
    font-size: clamp(13px, 2.5vw, 15px);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: border-color 0.3s, background 0.3s;
    min-width: 0;
    flex: 1;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.25);
}

.form-group select option {
    background: #333;
    color: #fff;
    padding: 8px;
}

.start-btn {
    background: linear-gradient(135deg, #b8157f 0%, #d42993 100%);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    font-size: clamp(14px, 3vw, 18px);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 32px rgba(142, 68, 173, 0.3);
    margin: 5px;
    transition: all 0.3s ease;
    min-width: 100px;
    backdrop-filter: blur(10px);
}

.start-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(142, 68, 173, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #d42993 0%, #b8157f 100%);
}

.continue-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    font-size: clamp(14px, 3vw, 18px);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 32px rgba(118, 75, 162, 0.3);
    margin: 5px;
    transition: all 0.3s ease;
    min-width: 100px;
    backdrop-filter: blur(10px);
}

.continue-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(118, 75, 162, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.clear-btn {
    background: linear-gradient(135deg, #e36918 0%, #cb2706 100%);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    font-size: clamp(14px, 3vw, 18px);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
    margin: 5px;
    transition: all 0.3s ease;
    min-width: 100px;
    backdrop-filter: blur(10px);
}

.clear-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(240, 147, 251, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #cb2706 0%, #e36918 100%);
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 15px;
}

/* Mode Selection Buttons */
.mode-btn {
    background: linear-gradient(135deg, #2549ea 0%, #7807e8 100%);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    font-size: clamp(15px, 3vw, 18px);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 32px rgba(118, 75, 162, 0.3);
    margin: 8px;
    transition: all 0.3s ease;
    min-width: 200px;
    backdrop-filter: blur(10px);
    text-align: center;
    display: block;
    width: 100%;
    max-width: 280px;
}

.mode-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(118, 75, 162, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #7807e8 0%, #2549ea 100%);
}

.mode-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.mode-btn:disabled {
    background: linear-gradient(135deg, #666 0%, #999 100%);
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}

.mode-btn:disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #666 0%, #999 100%);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Mode Selection Container */
.mode-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Multiplayer Notice */
.multiplayer-notice {
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(255, 193, 7, 0.15);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(8px);
}

.multiplayer-notice p {
    color: #ff8f07;
    font-size: clamp(13px, 2.5vw, 15px);
    font-weight: 600;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.3px;
}

#setupScreen p {
    color: #fff;
    font-size: 15px;
    font-style: italic;
    text-shadow: 0 2px 8px #000;
}

#gameScreen {
    display: none;
}

/* Game background - same as landing page */
body.game-active {
    position: relative;
}

body.game-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-color: #861ae969;
    opacity: 0.85;
    filter: blur(0px) brightness(0.8);
}

#boardContainer {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
    min-height: 80vh;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

#boardWrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
    flex: 0 0 auto;
    min-width: 350px;
}

#board {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    background-image: url('images/CHOGOPOLY.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: 5px solid #333;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    max-width: 100%;
    box-sizing: border-box;
}

.player-token {
    width: 5%;
    height: 5%;
    border-radius: 50%;
    position: absolute;
    border: 2px solid black;
    box-shadow: 0 0.35% 0.94% rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    transform: translate(-50%, -50%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.player1 {
    background-image: url('images/pawn.jpg');
}

.player2 {
    background-image: url('images/pawnblue.jpg');
}

.player3 {
    background-image: url('images/pawnyellow.jpg');
}

.player4 {
    background-image: url('images/pawnred.jpg');
}

.player5 {
    background-image: url('images/pawnblack.jpg');
}

/* Game controls section */
#gameControls {
    background: ivory;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1;
    width: 100%;
    justify-content: space-between;
}

#actionButtons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}



/* Game log section */
#gameLogSection {
    background: ivory;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1;
    width: 100%;
}

#currentPlayer {
    display: none;
}

#playerStats {
    margin-bottom: 10px;
}

.player-stat {
    padding: 8px 10px;
    margin-bottom: 6px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(12px, 2vw, 14px);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.player-stat.active {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border: 2px solid #764ba2;
    font-weight: bold;
}

#turnTimer {
    text-align: center;
    margin: 8px 0 12px 0;
    font-size: 16px;
    font-weight: bold;
    color: #764ba2;
}

#diceContainer {
    text-align: center;
    margin: 10px 0;
}

.dice {
    display: inline-block;
    width: clamp(50px, 8vw, 70px);
    height: clamp(50px, 8vw, 70px);
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 3px solid #333;
    border-radius: 12px;
    margin: 0 10px;
    font-size: clamp(32px, 5vw, 42px);
    line-height: clamp(44px, 7vw, 64px);
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #333;
}

.dice.rolling {
    animation: roll 0.6s ease-in-out;
}

@keyframes roll {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(90deg) scale(1.1);
    }

    50% {
        transform: rotate(180deg) scale(1);
    }

    75% {
        transform: rotate(270deg) scale(1.1);
    }
}

.action-btn {
    background: #764ba2;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: clamp(14px, 2vw, 16px);
    border-radius: 8px;
    cursor: pointer;
    margin: 3px 0;
    transition: background 0.3s;
    width: 90%;
    max-width: 200px;
}

.action-btn:hover {
    background: #5a3a7e;
}

.action-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#gameLog {
    flex: 1;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow-y: auto;
    font-size: clamp(11px, 1.8vw, 14px);
}

.log-entry {
    padding: 5px;
    margin-bottom: 5px;
    border-left: 3px solid #764ba2;
    padding-left: 10px;
    background: ivory;
}

.modal {
    display: none;
    position: absolute;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: #764ba2;
    margin-bottom: 20px;
    font-size: clamp(20px, 4vw, 28px);
}

.property-deed {
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.deed-color-bar {
    height: 30px;
    border-radius: 5px;
    margin-bottom: 15px;
}

#winnerModal {
    z-index: 1001;
}

.winner-content {
    animation: celebrate 1s ease-in-out;
}

@keyframes celebrate {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.winner-amount {
    font-size: clamp(24px, 5vw, 36px);
    color: #4CAF50;
    margin: 20px 0;
}

/* Card Modal Styling */
.card-content {
    animation: cardFlip 0.6s ease-in-out;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 20px;
}

@keyframes cardFlip {
    0% {
        transform: rotateY(-90deg) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: rotateY(0deg) scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
}

.card-display {
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
}

.card-text {
    font-size: clamp(16px, 3vw, 20px);
    color: #2F2F2F;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.card-message {
    margin-top: 15px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 165, 0, 0.15));
    border-radius: 8px;
    font-size: 16px;
    color: white;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    border: 1px solid rgba(255, 165, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    position: relative;
}

.card-effect {
    display: none; /* Hide this element completely since we're not using it */
    z-index: 1;
    backdrop-filter: blur(5px);
}

/* Show card-effect for rent modal */
#rentModal .card-effect {
    display: block;
    font-size: clamp(14px, 2.5vw, 18px);
    color: #2F2F2F;
    font-weight: 600;
    margin-top: 10px;
    line-height: 1.4;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

/* Card effect border colors for different card types */
.chog-chest .card-effect {
    border-color: #9370DB;
    background: rgba(255, 255, 255, 0.9);
}

.chog-pass .card-effect {
    border-color: #DAA520;
    background: rgba(255, 255, 255, 0.9);
}

/* Default card effect border */
.card-effect {
    border-color: #FF8C00;
}

.card-timer {
    font-size: clamp(12px, 2vw, 16px);
    color: #FF6B35;
    font-weight: bold;
    margin: 15px 0 5px 0;
    opacity: 0.8;
}

.card-timer span {
    color: #FF4500;
    font-size: 1.2em;
}

#web3Status {
    padding: 10px;
    background: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-size: clamp(12px, 2vw, 14px);
}

.connected {
    color: #4CAF50;
}

.disconnected {
    color: #f44336;
}

/* Small screens - Under 480px: Column layout with all 3 parts stacked */
@media (max-width: 480px) {
    #setupScreen {
        justify-content: flex-start;
        padding-top: 20px;
    }

    #setupScreen h1 {
        font-size: 22px;
        margin-bottom: 15px;
        letter-spacing: 0.5px;
    }

    .setup-form {
        width: 98%;
        padding: 15px;
        max-height: 80vh;
        border-radius: 12px;
    }

    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 14px;
    }

    .start-btn {
        padding: 10px 25px;
        font-size: 16px;
        font-weight: 600;
    }

    #setupScreen p {
        font-size: 13px;
        margin-top: 10px;
    }

    body {
        padding: 10px;
    }

    #gameContainer {
        padding: 10px;
        width: 100%;
        border-radius: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #boardContainer {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 400px;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        min-height: auto;
    }

    #boardWrapper {
        width: 100%;
    }

    #board {
        border-width: 3px;
    }

    .controls-log-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    #gameControls,
    #gameLogSection {
        width: 100%;
        padding: 10px;
        border-radius: 8px;
        aspect-ratio: auto;
        height: auto;
    }

    #gameControls {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 8px;
    }

    #playerStats {
        margin-bottom: 6px;
    }

    #turnTimer {
        margin: 6px 0;
    }

    #diceContainer {
        margin: 8px 0;
    }

    #actionButtons {
        margin-top: 8px;
    }

    #gameLog {
        font-size: 11px;
        padding: 8px;
    }

    .dice {
        width: 40px;
        height: 40px;
        font-size: 22px;
        line-height: 34px;
        margin: 0 5px;
    }

    .action-btn {
        padding: 8px 12px;
        font-size: 13px;
        margin: 3px 0;
    }

    #currentPlayer {
        font-size: 14px;
        padding: 8px;
        margin-bottom: 8px;
    }

    .player-stat {
        padding: 6px 8px;
        margin-bottom: 4px;
        font-size: 11px;
    }

    #turnTimer {
        font-size: 14px !important;
        margin: 6px 0 8px 0 !important;
    }

    .log-entry {
        padding: 4px;
        margin-bottom: 4px;
        padding-left: 8px;
        font-size: 11px;
    }
}

/* Medium screens - 481px to 768px: Board on top, controls and log side by side below */
@media (min-width: 481px) and (max-width: 768px) {
    body {
        padding: 12px;
    }

    #gameContainer {
        padding: 15px;
        width: 100%;
        border-radius: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #boardContainer {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 650px;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        min-height: auto;
    }

    #boardWrapper {
        width: 100%;
    }

    .controls-log-row {
        display: flex;
        flex-direction: row;
        gap: 15px;
        width: 100%;
        justify-content: space-between;
        align-items: flex-start;
    }

    #gameControls,
    #gameLogSection {
        width: calc(50% - 7.5px);
        padding: 15px;
    }

    #gameLog {
        font-size: 12px;
    }

    .dice {
        width: 50px;
        height: 50px;
        font-size: 28px;
        line-height: 44px;
    }

    .action-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    #currentPlayer {
        font-size: 16px;
        padding: 10px;
    }

    .player-stat {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* Large tablets - 769px to 1024px: Same as medium but slightly bigger */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        padding: 15px;
    }

    #gameContainer {
        padding: 20px;
        width: 100%;
        border-radius: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #boardContainer {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 1000px;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        min-height: auto;
    }

    #boardWrapper {
        width: 100%;
    }

    .controls-log-row {
        display: flex;
        flex-direction: row;
        gap: 20px;
        width: 100%;
        justify-content: space-between;
        align-items: flex-start;
    }

    #gameControls,
    #gameLogSection {
        width: calc(50% - 10px);
        padding: 20px;
    }

    #gameLog {
        font-size: 13px;
    }

    .dice {
        width: 60px;
        height: 60px;
        font-size: 32px;
        line-height: 54px;
    }

    .action-btn {
        padding: 11px 20px;
        font-size: 15px;
    }

    #currentPlayer {
        font-size: 18px;
        padding: 12px;
    }

    .player-stat {
        padding: 9px 10px;
        font-size: 14px;
    }
}

/* Desktop - Above 1024px: Board on left, controls and log stacked on right */
@media (min-width: 1025px) {
    body {
        padding: 20px;
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #gameContainer {
        max-width: 95vw;
        width: 100%;
        padding: 30px;
        margin: 0;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #boardContainer {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: clamp(20px, 2.5vw, 40px);
        width: auto;
        margin: 0 auto;
        height: auto;
    }

    #boardWrapper {
        flex: 0 0 auto;
        width: min(85vh, 60vw);
        height: min(85vh, 60vw);
        max-width: none;
        max-height: none;
    }

    #board {
        width: 100%;
        height: 100%;
    }

    .controls-log-row {
        display: flex;
        flex-direction: column;
        gap: clamp(15px, 2vh, 25px);
        width: min(42.5vh, 30vw);
        flex-shrink: 0;
        height: min(85vh, 60vw);
    }

    #gameControls {
        width: 100%;
        height: calc((min(85vh, 60vw) - clamp(15px, 2vh, 25px)) / 2);
        aspect-ratio: unset;
        padding: clamp(12px, 1.5vh, 20px);
        overflow-y: auto;
    }

    #gameLogSection {
        width: 100%;
        height: calc((min(85vh, 60vw) - clamp(15px, 2vh, 25px)) / 2);
        aspect-ratio: unset;
        padding: clamp(12px, 1.5vh, 20px);
        flex: 1;
    }

    #gameLog {
        font-size: clamp(11px, 1.2vh, 14px);
        padding: clamp(8px, 1.2vh, 15px);
    }

    .dice {
        width: clamp(40px, 4.5vh, 65px);
        height: clamp(40px, 4.5vh, 65px);
        font-size: clamp(24px, 2.8vh, 38px);
        line-height: clamp(34px, 4vh, 57px);
        margin: 0 clamp(5px, 0.8vh, 10px);
    }

    .action-btn {
        padding: clamp(7px, 1vh, 12px) clamp(12px, 1.8vh, 20px);
        font-size: clamp(12px, 1.3vh, 16px);
        max-width: clamp(160px, 18vh, 220px);
    }

    .player-stat {
        padding: clamp(5px, 0.7vh, 10px) clamp(7px, 0.9vh, 12px);
        font-size: clamp(11px, 1.2vh, 15px);
        margin-bottom: clamp(3px, 0.5vh, 6px);
    }

    #turnTimer {
        font-size: clamp(13px, 1.4vh, 18px);
        margin: clamp(5px, 0.7vh, 10px) 0 clamp(6px, 0.9vh, 12px) 0;
    }

    #playerStats {
        margin-bottom: clamp(6px, 0.9vh, 12px);
    }

    #diceContainer {
        margin: clamp(6px, 0.9vh, 12px) 0;
    }

    #actionButtons {
        margin-top: clamp(5px, 0.7vh, 10px);
    }
}

/* Music Toggle Button */
.music-toggle-corner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.music-toggle-corner:hover {
    transform: scale(1.2);
    color: #ffd700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
}

/* Pause Button */
.pause-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.pause-button:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.pause-button:active {
    transform: scale(0.95);
}

/* Property click areas */
.property-click-area {
    position: absolute;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
    border-radius: 4px;
    background-color: transparent;
    border: 2px solid transparent;
}