/* Highlight inactive account rows in admin table */
.cc-admin-account-inactive {
    background: #fbeaea !important;
    color: #a33 !important;
}

body {
    font-family: Calibri, Arial;
    margin-left: 10px;
    text-align:center;
}

.gameStateTable {
    margin-top: 12px;
    font-size:22px;
    font-weight: bold;
    text-align: center;
    width: auto;
}
.gameStateTable th, .gameStateTable td {
    padding: 6px;
}
i.fa-check-circle {
    color: green;
    font-size: 1.5em;
}
i.fa-plus-circle {
    color: blue;
    cursor: pointer;
    margin-right: 10px;
    font-size: 2.0em;
}

i.fa-minus-circle {
    color: rgb(225, 97, 97);
    cursor: pointer;
    font-size: 1.5em;
}

i.fa-plus-circle.btnDisabled,
i.fa-minus-circle.btnDisabled {
    opacity: 0.3;
    color: gray;
    pointer-events: none;
    cursor: not-allowed;
}

#divDialogMessage {
    padding: 15px 5px;
    font-size: 22px
}
.ui-dialog .ui-dialog-titlebar {
    background-color: #8b3a1e;
    background-image: none;
    color: #ffffff;
}


table {
    width:99.8%;
    text-align: center;
}
table, th, td {
    border-collapse: collapse;
    border: 1px solid black;
}

.metro {
    border: 1px solid black;
    border-radius:50%;
    width: 75px;
    height: 75px;
    cursor: pointer;
}
.metroSmall {
    display:inline-block;
    border: 1px solid black;
    border-radius:50%;
    width: 32px;
    height: 32px;
    margin-right:5px;
}
.metroYellow {
    background-color: #f9e812;
}
.metroBlue {
    background-color: #007bff;
}
.metroGreen {
    background-color: #0eb75e;
}

.board {
    margin-top: 20px;
    color: black;
    width: 99%;
}

.board th {
    font-size: 24px;
    padding: 2px 0;

    cursor:pointer
}
.board th:first-child {
    cursor:pointer;
    width: 245px;
}
.board th:not(:first-child) {
    width: 180px;
}

.board td {
    padding: 4px 0;
    text-align: center;
    font-weight: bold;
    cursor:pointer;
}
.board td:first-child {
    font-size:22px;
    width: 110px;
    padding:6px;
    text-align: left;
}
.monitorBoard td:first-child {
    background-color: rgb(236, 236, 238);
}

.board td:not(:first-child) {
    font-size: 28px;
    width: 120px;
    padding:6px;
}
.board th.notProtected, .board td.notProtected, .playerBoard th.notProtected, .playerBoard td.notProtected {
    color: white;
    background-color: #FF3344;
}
.board th.protected, .board td.protected, .playerBoard th.protected, .playerBoard td.protected {
    color: white;
    background-color: green;
}
#dlgAccount label {
    display: inline-block;
    font-size: 22px;
    font-weight: bold;
    width: 192px;
}

#dlgAccount span {
    font-size: 22px;
}

.actionButtons.selectGameButtons {
    margin-top: 26px;
}
.actionButtons.selectGameButtons button {
    margin: 0 0 16px 0;
    width: 350px;
    background-color: #22753a;
    border-color: #185c2c;
}
.actionButtons.selectGameButtons button:disabled,
.actionButtons.selectGameButtons button.unregisteredGameButton {
    background-color: rgb(155, 155, 155);
    color: rgb(230, 230, 230);
    cursor: not-allowed;
    opacity: 0.75;
}
.actionButtons {
    text-align: center;
    margin-top:35px;
}
.actionButtons button,
.ui-dialog.catanDialog .ui-dialog-content .actionButtons button,
.ui-dialog.catanDialog .ui-dialog-buttonpane button.ui-button {
    border-radius: 12px;
    color: white;
    background-color: rgb(79, 123, 235);
    font-weight: bold;
    text-align: center;
    margin-right:25px;
    font-size:22px;
    padding:12px 20px;
    width: auto
}
#diceRollButtons button {
    border-radius: 12px;
    color: white;
    background-color: rgb(55, 160, 95);
    font-weight: bold;
    text-align: center;
    font-size:22px;
    padding:12px 20px;
    width: auto
}
#mainButtons button {
height:54px;
font-size:22px;
padding:8px;
}

#diceRollButtons {
    margin-top: 55px;
}
#diceRollResult {
    margin-top: 45px;
    display:none;
}
#rollDiceTotal {
    margin-right: 20px;
    padding: 12px 24px;
    font-size: 45px;
    font-weight: bold;
    border-radius: 18px;
    border: 1px solid black;
    color: white;
    background-color: rgb(82 92 92);
}
#rollDiceColor {
    padding: 12px 24px;
    font-size: 45px;
    font-weight: bold;
    border-radius: 18px;
    border: 1px solid black;
    color: white;
}

.cc-roll-color-0 {
    background-color: black;
}

.cc-roll-color-1 {
    background-color: blue;
}

.cc-roll-color-2 {
    background-color: yellow;
}

.cc-roll-color-3 {
    background-color: green;
}

.cc-roll-text-light {
    color: white;
}

.cc-roll-text-dark {
    color: black;
}

#rollDiceColor.cc-roll-color-2 {
    color: black;
}

.cc-knight-protected {
    color: green;
}

.cc-knight-unprotected {
    color: red;
}

.cc-metro-disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

.tiedColor0 {
    background-color: white;
}
.tiedColor1 {
    background-color: rgb(10, 154, 10);
}
.tiedColor2 {
    background-color: rgb(174, 218, 182);
}
.tiedColor3 {
    background-color: rgb(151, 180, 240);
}
.tiedColor4 {
    background-color: rgb(237, 208, 120);
}

.cc-board-centered {
    width: auto;
    margin: 0 auto;
}

.cc-clickable-row {
    cursor: pointer;
}

.cc-monitor-stat-name-cell {
    text-align: left;
    padding: 2px 8px;
    vertical-align: middle;
}

.cc-monitor-stat-icon {
    vertical-align: middle;
    margin-right: 15px;
}

.cc-monitor-stat-value-boolean {
    height: 50px;
}

.cc-hidden {
    display: none;
}

.cc-clock-label {
    display: none;
    position: absolute;
    font-size: 26px;
    font-weight: bold;
    width: 125px;
    padding: 4px;
    background-color: black;
    color: green;
}

.cc-clock-paused {
    color: red;
}

.cc-clock-completed {
    color: white;
}

.cc-game-display {
    font-size: 24px;
    margin-top: 12px;
}

.cc-game-controls {
    margin-top: 30px;
    font-size: 24px;
}

.cc-btn-large-icon {
    font-size: 32px;
    padding: 15px;
    vertical-align: middle;
}

.cc-inline-icon-middle {
    vertical-align: middle;
}

.cc-barbarian-status {
    margin-top: 30px;
}

.cc-barbarian-steps-pill {
    margin: 0 5px;
    padding: 12px 24px;
    border: 1px solid black;
    border-radius: 15px;
    color: white;
    background-color: red;
    font-weight: bold;
}

.cc-knight-protection-wrap {
    margin-top: 24px;
}

.cc-knight-protection-msg {
    margin-left: 18px;
    font-weight: bold;
    font-style: italic;
}

.cc-page-player .cc-game-controls.cc-game-controls-no-advance .cc-barbarian-status {
    margin-top: 0;
    margin-left: 18px;
    text-align: left;
    display: flex;
    justify-content: flex-start;
}

.cc-page-player .cc-game-controls.cc-game-controls-no-advance .cc-knight-protection-wrap {
    text-align: left;
}

.cc-page-player #diceRollButtons.cc-dice-display-only {
    margin-top: 0;
    display: flex;
    align-items: center;
}

.cc-page-player #diceRollButtons.cc-dice-display-only .cc-dice-output-row {
    margin-top: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    transform: translateY(-3px);
}

.cc-page-player .cc-monitor-controls-row.cc-monitor-controls-no-advance {
    align-items: center;
}

.cc-page-player .cc-monitor-controls-row.cc-monitor-controls-no-advance #diceRollResult {
    margin-top: 0;
}

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

.cc-overlay-modal-high {
    z-index: 1000;
}

.cc-modal-card {
    background-color: white;
    border-radius: 8px;
    width: auto;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cc-modal-card-sm {
    padding: 15px;
}

.cc-modal-card-md {
    padding: 30px;
}

.cc-modal-card-player-details {
    padding: 24px;
    width: 85%;
    max-width: 980px;
    max-height: 85%;
    overflow: auto;
}

.cc-metro-selector-body {
    margin-left: 20px;
    font-size: 24px;
}

.cc-metro-selector-row {
    margin-top: 12px;
    display: flex;
    align-items: center;
}

.cc-metro-owner-label {
    margin-left: 12px;
}

.cc-modal-actions-top40 {
    margin-top: 40px;
}

.cc-btn-modal-cancel {
    font-size: 24px;
    width: 60%;
    padding: 12px 24px;
}

.cc-btn-modal-close {
    font-size: 28px;
    width: 200px;
    padding: 12px 24px;
}

.cc-player-header-name {
    width: 200px;
}

.cc-player-row-click {
    cursor: pointer;
}

.cc-player-details-table {
    width: 100%;
    font-size: 24px;
    margin-top: 12px;
}

.cc-player-details-th-stat {
    width: 35%;
    text-align: left;
    padding: 8px;
}

.cc-player-details-th-value {
    width: 40%;
    text-align: left;
    padding: 8px;
}

.cc-player-details-th-action {
    width: 25%;
    text-align: center;
    padding: 8px;
}

.cc-player-details-td-left {
    text-align: left;
    padding: 8px;
}

.cc-player-details-td-center {
    text-align: center;
    padding: 8px;
}

.cc-btn-small-action {
    font-size: 18px;
    padding: 6px 10px;
}

.cc-btn-small-action:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cc-game-settings-dialog {
    min-width: 560px;
    max-width: 680px;
    padding: 10px 12px 0;
}

.cc-game-settings-row {
    display: grid;
    grid-template-columns: 380px 96px;
    align-items: center;
    justify-content: start;
    margin: 16px 0;
    margin-left: 20px;
    column-gap: 16px;
    text-align: left;
}

.cc-game-settings-row > label:first-child {
    font-size: 24px;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
}

.cc-game-settings-dialog .cc-game-settings-input {
    width: 92px !important;
    min-width: 92px !important;
    font-size: 22px !important;
    font-weight: 700;
    text-align: center;
    margin-top: 0 !important;
    padding: 4px 8px !important;
    box-sizing: border-box;
}

.cc-game-settings-row-points {
    grid-template-columns: max-content auto;
    column-gap: 20px;
}

.cc-game-settings-row-points .cc-game-settings-input {
    justify-self: start;
}

.cc-game-settings-dialog .actionButtons button {
    font-size: 20px;
}

.cc-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
    justify-self: start;
    margin-left: 10px;
}

.cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-switch-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background-color: #a8adb8;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

.cc-switch-slider:before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 4px;
    top: 4px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.cc-switch input:checked + .cc-switch-slider {
    background-color: #2b66e3;
}

.cc-switch input:checked + .cc-switch-slider:before {
    transform: translateX(24px);
}

.cc-switch input:focus + .cc-switch-slider {
    box-shadow: 0 0 0 3px rgba(43, 102, 227, 0.25);
}

@media only screen and (max-width: 900px) {
    .cc-game-settings-dialog {
        min-width: 0;
        width: min(94vw, 620px);
    }

    .cc-game-settings-row {
        grid-template-columns: 290px 84px;
        margin-left: 10px;
        column-gap: 12px;
    }

    .cc-game-settings-row > label:first-child {
        font-size: 20px;
    }

    .cc-game-settings-dialog .cc-game-settings-input {
        width: 84px !important;
        min-width: 84px !important;
        font-size: 20px !important;
    }

    .cc-game-settings-dialog .actionButtons button {
        font-size: 18px;
    }
}

.cc-player-details-actions {
    margin-top: 20px;
}

.cc-btn-player-done {
    font-size: 28px;
    padding: 10px 24px;
}

.cc-asset-icon {
    margin-right: 4px;
}

.cc-player-details-table td:nth-child(1),
.cc-player-details-table td:nth-child(2) {
    font-weight: bold;
}

.cc-player-details-table td:nth-child(1) {
    font-size: 26px;
}

.cc-player-details-table td:nth-child(2) {
    font-size: 26px;
}

.cc-player-details-table td:nth-child(1) .cc-asset-icon {
    width: 34px;
    height: 34px;
    margin-right: 8px;
    vertical-align: middle;
}

.cc-player-details-table td:nth-child(3) .fa-plus-circle {
    font-size: 2.2em;
}

.cc-player-details-table td:nth-child(3) .fa-minus-circle {
    font-size: 1.7em;
}

.cc-dialog-box {
    display: none;
    padding: 30px;
    text-align: center;
}

.cc-dialog-box-actions {
    margin-top: 20px;
    text-align: center;
}

.cc-dialog-btn {
    display: none;
    padding: 6px 25px;
    font-size: 22px;
}

.cc-top-right-links {
    position: absolute;
    top: 15px;
    right: 15px;
}

.cc-top-right-link {
    font-size: 18px;
}

.cc-mr-15 {
    margin-right: 15px;
}

.cc-startup-entry {
    margin-top: 30px;
}

.cc-join-code-input {
    text-align: center;
    margin-top: 25px;
    font-size: 32px;
    padding: 36px;
    width: 215px;
    background-color: #ececec;
    border: 1px solid black;
    border-radius: 4px;
}

.cc-join-code-input:not(:placeholder-shown) {
    letter-spacing: 0.35em;
}

.cc-player-name-input {
    text-align: center;
    margin-top: 25px;
    font-size: 32px;
    padding: 22px;
    width: 240px;
    background-color: #ececec;
}

.cc-temp-view-current-btn {
    margin-top: 65px;
    font-size: 20px;
}

.cc-hidden-block {
    display: none;
}

.cc-login-input {
    text-align: center;
    margin-top: 25px;
    font-size: 32px;
    padding: 22px 0px;
    width: 315px;
}

.cc-password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cc-password-input-wrap .cc-login-input,
.cc-password-input-wrap .cc-signup-input {
    margin-top: 0;
}

.cc-password-eye {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 18px;
    line-height: 1;
}

.cc-page-startup #dlgLogin .cc-login-input {
    box-sizing: border-box;
}

.cc-page-startup #dlgLogin .cc-password-input-wrap {
    width: 315px;
    margin: 36px auto 0;
}

.cc-join-code-label {
    font-size: 36px;
    vertical-align: middle;
    margin-top: 240px;
    padding: 45px 42px;
    background-color: #dfdfdf;
    border: 1px solid black;
    border-radius: 4px;
}

.cc-join-qrcode {
    display: inline-block;
    margin-left: 35px;
    vertical-align: middle;
}

.cc-newgame-players-wrap {
    width: 40%;
    text-align: left;
    margin: 22px auto 0;
}

.cc-newgame-order-help {
    display: block;
    margin: 3px 0 10px 0;
    font-size: 18px;
}

.cc-players-table {
    font-size: 24px;
}

.cc-players-th-index {
    width: 30px;
    text-align: left;
    padding: 2px 10px;
}

.cc-players-th-name {
    width: 200px;
    text-align: left;
    padding: 2px 10px;
}

.cc-players-th-action {
    width: 75px;
    padding: 2px 10px;
}

.cc-add-players-row {
    margin-top: 6px;
}

.cc-btn-add-players {
    font-size: 16px;
    padding: 5px 8px;
    margin-right: 4px;
}

.cc-modal-card-add-players {
    width: 300px;
}

.cc-new-player-names {
    font-size: 22px;
    padding: 12px;
    width: 80%;
    height: 150px;
}

.cc-btn-modal-primary {
    font-size: 22px;
    padding: 12px 24px;
    margin-top: 20px;
}

.cc-ml-15 {
    margin-left: 15px;
}

.cc-account-dialog {
    display: none;
}

.cc-account-dialog-content {
    padding: 0 24px;
    text-align: left;
}

.cc-player-order-row {
    cursor: move;
}

.cc-player-order-name-cell {
    text-align: left;
    padding: 2px 10px;
}

.cc-remove-player-link {
    color: blue;
    text-decoration: underline;
}
/* ---------- Responsive layout tuning ---------- */

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.cc-page-monitor,
.cc-page-player,
.cc-page-startup,
.cc-page-select {
    margin: 0;
    padding: 8px;
}

.cc-monitor-player-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Monitor page defaults: fit up to 6 player columns without horizontal scroll */
.cc-page-monitor .cc-monitor-board-wrap {
    width: min(98vw, 1600px);
    margin: 4px auto 2px auto;
}

.cc-page-monitor .cc-monitor-game-meta {
    width: 100%;
    margin: 0 0 2px 0;
    padding-left: clamp(8px, 0.8vw, 14px);
    box-sizing: border-box;
    text-align: left;
    font-size: clamp(15px, 1.25vw, 20px);
    font-style: italic;
    color: #1e1e1e;
}

.cc-page-monitor .cc-monitor-meta-admin-link {
    margin-left: 25px;
}

.cc-page-monitor .cc-monitor-board-wrap .monitorBoard {
    width: 100%;
    margin: 6px 0;
    table-layout: fixed;
}

.cc-page-monitor .monitorBoard th:first-child,
.cc-page-monitor .monitorBoard td:first-child {
    width: clamp(120px, 15vw, 165px);
}

.cc-page-monitor .monitorBoard th:not(:first-child),
.cc-page-monitor .monitorBoard td:not(:first-child) {
    width: auto;
}

.cc-page-monitor .monitorBoard th {
    font-size: clamp(15px, 1.55vw, 24px);
    padding: 6px 4px;
}

.cc-page-monitor .monitorBoard td:first-child {
    font-size: clamp(14px, 1.3vw, 21px);
    padding: 5px 6px;
}

.cc-page-monitor .monitorBoard td:not(:first-child) {
    font-size: clamp(16px, 1.75vw, 30px);
    padding: 5px 2px;
}

.cc-page-monitor .cc-monitor-stat-value-count {
    font-size: clamp(22px, 2.35vw, 42px);
}

.cc-page-monitor .cc-monitor-stat-icon {
    width: clamp(24px, 1.9vw, 38px);
    height: clamp(24px, 1.9vw, 38px);
}

.cc-page-monitor .cc-monitor-player-name {
    font-size: clamp(14px, 1.45vw, 22px);
}

.cc-page-monitor .cc-monitor-stat-name-cell {
    font-size: clamp(14px, 1.2vw, 20px);
    white-space: nowrap;
}

.cc-page-monitor .cc-monitor-stat-name-cell span {
    white-space: nowrap;
}

.cc-page-monitor .monitorBoard td.cc-monitor-stat-value-metro {
    padding: 8px !important;
}

.cc-page-monitor .cc-monitor-metro-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 6px;
    padding: 0 8px;
    box-sizing: border-box;
}

.cc-page-monitor .cc-monitor-metro-row .metroSmall {
    margin-right: 0;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}

.cc-page-monitor .cc-game-controls,
.cc-page-player .cc-game-controls {
    margin-top: 22px;
}

.cc-page-monitor .cc-btn-large-icon,
.cc-page-player .cc-btn-large-icon {
    font-size: clamp(18px, 2.2vw, 32px);
    padding: clamp(8px, 1.1vw, 15px);
}

.cc-page-monitor #rollDiceTotal,
.cc-page-monitor #rollDiceColor,
.cc-page-player #rollDiceTotal,
.cc-page-player #rollDiceColor {
    font-size: clamp(26px, 3vw, 45px);
    padding: clamp(8px, 1.1vw, 14px) clamp(14px, 1.8vw, 24px);
}

/* Startup/select tuning for tablets and larger screens */
.cc-page-startup .actionButtons button,
.cc-page-select .actionButtons button {
    font-size: clamp(18px, 2.2vw, 24px);
}

#btnJoinGame:disabled {
    background-color: rgb(155, 155, 155);
    color: rgb(220, 220, 220);
    cursor: not-allowed;
    opacity: 0.75;
}

.cc-page-startup .cc-join-code-input,
.cc-page-startup .cc-player-name-input {
    width: min(80vw, 380px);
}

.cc-page-startup .cc-login-dialog-wrap {
    max-height: calc(100dvh - 16px);
}

.cc-page-startup .cc-login-dialog-wrap .ui-dialog-content {
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
}

.cc-page-select #divStartup {
    min-height: calc(100dvh - 16px);
    overflow-y: auto;
    padding-bottom: 14px;
}

@media only screen and (min-width: 768px) {
    .cc-page-monitor .cc-monitor-controls-row {
        display: flex;
        align-items: flex-start;
        margin-top: 8px;
        margin-left: clamp(120px, 15vw, 165px);
    }

    .cc-page-monitor .cc-game-controls {
        margin-top: 0;
    }

    .cc-page-monitor #diceRollButtons {
        position: relative;
        margin-left: 40px;
        margin-top: 0;
    }

    .cc-page-monitor .cc-dice-output-row {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: calc(100% + 22px);
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
    }

    .cc-page-monitor .cc-game-controls .actionButtons,
    .cc-page-monitor #diceRollButtons > div:first-child {
        margin-top: 0;
        text-align: left;
    }

    .cc-page-monitor #ytzcup {
        min-height: 72px;
        display: inline-flex;
        align-items: center;
    }

    .cc-page-monitor #ytzcup img {
        height: 72px;
        width: auto;
    }

    .cc-page-monitor #diceRollResult {
        margin-top: 0;
    }
}

/* Tablet portrait (iPad mini and up): tighten monitor spacing */
@media only screen and (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
    .cc-page-monitor #divGameDisplay {
        padding-bottom: calc(30px + env(safe-area-inset-bottom));
    }

    .cc-page-monitor .monitorBoard th:first-child,
    .cc-page-monitor .monitorBoard td:first-child {
        width: 152px;
    }

    .cc-page-monitor .monitorBoard th {
        font-size: 14px;
        padding: 4px 2px;
    }

    .cc-page-monitor .monitorBoard td:first-child {
        font-size: 15px;
    }

    .cc-page-monitor .monitorBoard td:not(:first-child) {
        font-size: 15px;
        padding: 4px 1px;
    }

    .cc-page-monitor .cc-monitor-stat-icon {
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }

    .cc-page-monitor .cc-monitor-stat-name-cell span {
        white-space: nowrap;
    }

    .cc-page-monitor .monitorBoard td.cc-monitor-stat-value-count:not(:first-child) {
        font-size: 26px !important;
    }

    .cc-page-monitor #diceRollButtons {
        margin-bottom: 10px;
        margin-top: 0;
        margin-left: 50px;
    }

    /* Portrait monitor controls: tuned spacing + right-side dice output */
    .cc-page-monitor .cc-monitor-controls-row {
        margin-left: 20px;
    }

    .cc-page-monitor .cc-game-controls {
        width: 300px;
        position: relative;
        left: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cc-page-monitor .cc-game-controls .actionButtons {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .cc-page-monitor .cc-game-controls .actionButtons button {
        white-space: nowrap;
        width: 100%;
        text-align: center;
    }

    .cc-page-monitor .cc-barbarian-status {
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-align: center;
        margin-top: 10px;
        width: 100%;
    }

    .cc-page-monitor .cc-barbarian-steps-pill {
        margin: 0 0 0 3px;
    }

    .cc-page-monitor .cc-knight-protection-wrap {
        text-align: center;
        width: max-content;
        max-width: none;
    }

    .cc-page-monitor .cc-knight-protection-msg {
        margin-left: 0;
        white-space: nowrap;
        font-size: 20px;
        display: inline-block;
    }

    .cc-page-monitor .cc-dice-output-row {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: calc(100% + 12px);
        margin-top: 0;
        flex-wrap: nowrap;
    }

    .cc-page-monitor #diceRollResult {
        margin-bottom: 8px;
    }
}

@media only screen and (max-width: 900px) and (orientation: portrait) {
    .cc-page-startup .cc-login-dialog-wrap {
        width: min(92vw, 460px) !important;
        max-height: calc(100dvh - 12px);
        top: 8px !important;
    }

    .cc-page-startup .cc-login-dialog-wrap .ui-dialog-content {
        overflow-x: hidden;
    }

    .cc-page-startup #dlgLogin .cc-login-input {
        width: 100%;
        box-sizing: border-box;
        display: block;
        font-size: 24px;
        padding: 14px;
    }

    .cc-page-startup #dlgLogin .cc-password-input-wrap {
        width: 100%;
        margin-top: 36px;
    }

    .cc-page-startup #dlgLogin .actionButtons {
        margin-top: 65px;
        display: flex;
        justify-content: center;
        gap: 30px;
    }

    .cc-page-startup #dlgLogin .actionButtons button {
        font-size: 20px;
        margin-right: 0;
        padding: 10px 20px;
    }

    .cc-page-select .actionButtons.selectGameButtons {
        margin-top: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cc-page-select .actionButtons.selectGameButtons > div {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 14px;
    }

    .cc-page-select .actionButtons.selectGameButtons button {
        margin: 0;
        width: min(84vw, 420px);
        font-size: clamp(21px, 6.1vw, 30px);
        padding: 12px 16px;
    }

    .cc-page-select h1 {
        margin: 46px 0 8px;
        font-size: clamp(24px, 7.1vw, 34px);
        line-height: 1.08;
    }

    .cc-page-select h2 {
        margin: 0 0 18px;
        font-size: clamp(20px, 5.9vw, 28px);
        line-height: 1.12;
    }

    .cc-page-select h3 {
        margin: 2px 0 0;
        font-size: clamp(16px, 4.4vw, 22px);
        line-height: 1.2;
    }

    .cc-page-select #divStartup {
        padding: 0 5vw 8vh;
        box-sizing: border-box;
    }

    .cc-page-select .selectGameButtons > br {
        display: none;
    }

    .cc-page-select .cc-top-right-link {
        font-size: clamp(16px, 4.2vw, 22px);
    }

    .cc-page-select #divNewGame .cc-join-code-label {
        width: 134px;
        height: 120px;
        margin-top: 0;
        padding: 0;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 34px;
        line-height: 1;
    }

    .cc-page-select #divNewGame .cc-join-code-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        width: 100%;
    }

    .cc-page-select #divNewGame .cc-join-qrcode {
        width: 120px;
        height: 120px;
        margin-left: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .cc-page-select #divNewGame #joinQRcode img {
        width: 120px !important;
        height: 120px !important;
    }
}

@media only screen and (max-width: 1366px) and (orientation: landscape) {
    .cc-page-startup .cc-login-dialog-wrap {
        width: min(76vw, 620px) !important;
        max-height: calc(100dvh - 12px);
        top: 8px !important;
    }

    .cc-page-startup #dlgLogin .cc-login-input {
        width: min(68vw, 420px);
        font-size: 24px;
        padding: 14px;
    }

    .cc-page-startup #dlgLogin .cc-password-input-wrap {
        width: min(68vw, 420px);
        margin: 36px auto 0;
    }

    .cc-page-startup #dlgLogin .actionButtons {
        margin-top: 8px;
        display: flex;
        justify-content: center;
        gap: 30px;
    }

    .cc-page-startup #dlgLogin .actionButtons button {
        font-size: 20px;
        margin-right: 0;
        padding: 10px 20px;
    }
}

/* Tablet landscape / small laptop */
@media only screen and (min-width: 768px) and (max-width: 1366px) {
    .cc-page-monitor .cc-game-display,
    .cc-page-player .cc-game-display {
        margin-top: 8px;
    }

    .cc-page-monitor .actionButtons,
    .cc-page-player .actionButtons {
        margin-top: 20px;
    }

    .cc-page-monitor .monitorBoard th {
        font-size: clamp(16px, 1.8vw, 22px);
    }

    .cc-page-monitor .monitorBoard td:first-child {
        font-size: clamp(14px, 1.5vw, 20px);
    }

    .cc-page-select .actionButtons.selectGameButtons {
        margin-top: 18px;
    }

    .cc-page-select .actionButtons.selectGameButtons button {
        margin: 0 0 12px 0;
        width: min(70vw, 420px);
        font-size: 20px;
        padding: 10px 14px;
    }

    .cc-page-select h1 {
        margin: 8px 0 2px;
        font-size: 36px;
        line-height: 1.1;
    }

    .cc-page-select h2 {
        margin: 0 0 8px;
        font-size: 26px;
        line-height: 1.15;
    }

    .cc-page-select h3 {
        margin: 8px 0 4px;
        font-size: 22px;
        line-height: 1.15;
    }

    .cc-page-select #divNewGame {
        min-height: calc(100dvh - 16px);
        overflow-y: auto;
        padding-bottom: 14px;
    }

    .cc-page-select .cc-join-code-label {
        font-size: 28px;
        padding: 22px 26px;
    }

    .cc-page-select .cc-join-qrcode {
        margin-left: 16px;
    }

    .cc-page-select #joinQRcode img {
        width: 96px !important;
        height: 96px !important;
    }

    .cc-page-select .cc-newgame-players-wrap {
        margin-top: 24px;
    }

    .cc-page-select .cc-newgame-order-help,
    .cc-page-select .cc-players-table {
        font-size: 20px;
    }

    .cc-page-select #divNewGame .actionButtons {
        margin-top: 18px;
        margin-bottom: 10px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
    .cc-page-monitor #divGameDisplay {
        width: min(98vw, 1600px);
        max-height: calc(100dvh - 92px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 auto;
        text-align: left;
        padding-bottom: 12px;
    }

    .cc-page-monitor h1 {
        margin: 6px 0 6px;
    }

    .cc-page-monitor #mainButtons {
        margin-top: 6px;
    }

    .cc-page-monitor .monitorBoard {
        margin-top: 6px;
    }

    .cc-page-monitor .monitorBoard th,
    .cc-page-monitor .monitorBoard td {
        padding-top: 3px;
        padding-bottom: 3px;
    }

    .cc-page-monitor .cc-monitor-stat-icon {
        width: 22px;
        height: 22px;
        margin-right: 6px;
    }

    .cc-page-monitor .monitorBoard td.cc-monitor-stat-value-count:not(:first-child) {
        font-size: 25px !important;
    }

    .cc-page-monitor .cc-monitor-controls-row {
        margin-top: 4px;
    }

    .cc-page-monitor .cc-game-controls {
        margin-top: 0;
    }

    .cc-page-monitor .cc-btn-large-icon {
        font-size: 20px;
        padding: 7px 10px;
    }

    .cc-page-monitor #diceRollButtons .cc-btn-large-icon {
        font-size: 20px;
        padding: 7px 10px;
    }

    .cc-page-monitor .cc-game-controls .actionButtons,
    .cc-page-monitor #diceRollButtons > div:first-child {
        margin-top: 0;
        text-align: left;
    }

    .cc-page-monitor #ytzcup {
        min-height: 72px;
        display: inline-flex;
        align-items: center;
    }

    .cc-page-monitor #ytzcup img {
        height: 72px;
        width: auto;
    }

    .cc-page-monitor .cc-game-controls .cc-btn-large-icon img,
    .cc-page-monitor #diceRollButtons .cc-btn-large-icon img {
        width: 44px;
        height: 44px;
    }

    .cc-page-monitor .cc-barbarian-status {
        margin-top: 6px;
    }

    .cc-page-monitor .cc-barbarian-steps-pill {
        padding: 5px 10px;
        margin: 0 3px;
        border-radius: 10px;
        font-size: 18px;
    }

    .cc-page-monitor .cc-knight-protection-wrap {
        margin-top: 4px;
    }

    .cc-page-monitor .cc-knight-protection-msg {
        margin-left: 0;
        font-size: 16px;
        line-height: 1.2;
    }

    .cc-page-monitor #rollDiceTotal,
    .cc-page-monitor #rollDiceColor {
        font-size: 34px;
        padding: 7px 14px;
        line-height: 1;
    }

    .cc-page-monitor #diceRollResult {
        margin-top: 0;
    }

    .cc-page-monitor #divBarbarianAttack .cc-modal-card-md {
        width: min(78vw, 560px);
        max-height: 84dvh;
        overflow-y: auto;
        padding: 16px 18px;
    }

    .cc-page-monitor #divBarbarianAttack h1 {
        font-size: 34px;
        margin: 0 0 8px;
        line-height: 1.1;
    }

    .cc-page-monitor #divBarbarianAttack h2 {
        font-size: 24px;
        margin: 0 0 8px;
        line-height: 1.2;
    }

    .cc-page-monitor #divBarbarianAttack h3 {
        font-size: 20px;
        margin: 0 0 8px;
        line-height: 1.2;
    }

    .cc-page-monitor #divBarbarianAttack .cc-btn-modal-close {
        font-size: 22px;
        width: 160px;
        padding: 8px 14px;
    }
}

/* Phone portrait: maximise font sizes for startup page */
@media only screen and (max-width: 480px) {
    .cc-page-startup {
        padding-left: 0;
        padding-right: 0;
    }

    .cc-page-startup #divStartup {
        padding: 0 5vw;             /* symmetric left/right breathing room */
        box-sizing: border-box;
        padding-bottom: 25vh;       /* leave ~25% empty at the bottom */
    }
    .cc-page-startup h1 {
        font-size: clamp(23px, 7.5vw, 33px);
        margin-top: 62px;           /* push below Login/Signup while keeping title higher */
        margin-bottom: 0;
    }
    .cc-startup-entry {
        margin-top: 22px;
    }
    .cc-startup-entry h2 {
        font-size: clamp(17px, 5.6vw, 24px);
        margin: 0 0 16px;
    }
    .cc-page-startup .cc-join-code-input {
        font-size: clamp(24px, 8.25vw, 35px);
        padding: 12px 18px;
        margin-top: 0;
        width: min(48vw, 228px);
    }
    .cc-page-startup .cc-player-name-input {
        font-size: clamp(24px, 8.25vw, 35px);
        padding: 12px 18px;
        margin-top: 20px;
        width: min(48vw, 228px);
    }
    .cc-page-startup .actionButtons {
        margin-top: 26px;
    }
    .cc-page-startup .actionButtons button {
        font-size: clamp(20px, 6vw, 27px);
        padding: 12px 24px;
    }
    .cc-page-startup #btnJoinGame {
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 50px;
    }
    .cc-temp-view-current-btn {
        margin-top: 20px;
    }
}

/* Wide desktop monitors */
@media only screen and (min-width: 1600px) {
    .cc-page-monitor .monitorBoard {
        width: min(96vw, 2200px);
    }

    .cc-page-monitor .monitorBoard th:first-child,
    .cc-page-monitor .monitorBoard td:first-child {
        width: 220px;
    }

    .cc-page-monitor .monitorBoard th {
        font-size: 26px;
    }

    .cc-page-monitor .monitorBoard td:not(:first-child) {
        font-size: 32px;
    }

    .cc-page-monitor .cc-monitor-controls-row {
        margin-left: 220px;
    }

    .cc-page-monitor #ytzcup img {
        height: 75px;
    }
}

@media only screen and (min-width: 1367px) and (max-width: 1599px) {
    .cc-page-monitor .monitorBoard th:first-child,
    .cc-page-monitor .monitorBoard td:first-child {
        width: 200px;
    }

    .cc-page-monitor .cc-monitor-controls-row {
        margin-left: 200px;
    }

    .cc-page-monitor #ytzcup img {
        height: 75px;
    }
}

/* Player page: phone-first optimization */
@media only screen and (max-width: 767px) {
    .cc-page-player .playerBoard {
        width: min(96vw, 520px);
        margin: 6px auto;
        table-layout: fixed;
    }

    .cc-page-player .playerBoard th,
    .cc-page-player .playerBoard td {
        font-size: clamp(18px, 5vw, 22px);
        padding: 6px 3px;
    }

    .cc-page-player .playerBoard .cc-player-header-name,
    .cc-page-player .playerBoard th:first-child,
    .cc-page-player .playerBoard td:first-child {
        width: 32%;
        font-size: clamp(20px, 5.4vw, 24px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cc-page-player .playerBoard th:nth-child(2),
    .cc-page-player .playerBoard td:nth-child(2) {
        width: 20%;
        font-size: clamp(20px, 5.4vw, 24px);
    }

    .cc-page-player .playerBoard th:nth-child(3),
    .cc-page-player .playerBoard td:nth-child(3) {
        width: 27%;
        font-size: clamp(20px, 5.4vw, 24px);
    }

    .cc-page-player .playerBoard th:last-child,
    .cc-page-player .playerBoard td:last-child {
        width: 21%;
    }

    /* Shrink metro circles in Assets column so all 3 fit on one row */
    .cc-page-player .playerBoard .metroSmall {
        width: 20px;
        height: 20px;
        margin-right: 1px;
    }

    /* Remove inline-block whitespace gap so 3 circles always fit on one row */
    .cc-page-player .playerBoard td:last-child {
        font-size: 0;
    }

    /* Ensure Knights header is centered and fits on one line */
    .cc-page-player .playerBoard th:nth-child(3) {
        text-align: center;
        white-space: nowrap;
        padding-left: 4px;
        padding-right: 4px;
        box-sizing: border-box;
    }

    /* Controls side-by-side on phone portrait */
    .cc-page-player .cc-monitor-controls-row {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
        margin-top: 14px;
        padding: 0 4px;
    }

    .cc-page-player .cc-game-controls,
    .cc-page-player #diceRollButtons {
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    .cc-page-player .cc-game-controls {
        margin-top: 0;
    }

    .cc-page-player #diceRollButtons {
        margin-top: 0;
    }

    .cc-page-player .cc-game-controls .cc-btn-large-icon,
    .cc-page-player #diceRollButtons .cc-btn-large-icon {
        width: auto;
        min-height: 60px;
        font-size: clamp(13px, 3.6vw, 16px);
        padding: 1px 8px;
        margin-right: 0;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        line-height: 1;
        white-space: nowrap;
    }

    .cc-page-player .cc-game-controls .cc-btn-large-icon img {
        width: 34px;
        height: 34px;
    }

    .cc-page-player #diceRollButtons .cc-btn-large-icon img {
        width: 37px;
        height: 37px;
    }

    .cc-page-player #diceRollButtons .cc-btn-large-icon {
        min-width: clamp(148px, 41vw, 170px);
        gap: 7px;
    }

    .cc-page-player .cc-game-controls .actionButtons,
    .cc-page-player #diceRollButtons > div:first-child {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 60px;
        margin-top: 0;
    }

    .cc-page-player .cc-barbarian-status {
        font-size: clamp(13px, 3.6vw, 16px);
        margin-top: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }

    .cc-page-player .cc-barbarian-steps-pill {
        padding: 4px 10px;
        font-size: clamp(13px, 3.6vw, 16px);
    }

    .cc-page-player .cc-knight-protection-msg {
        font-size: clamp(13px, 3.6vw, 16px);
        margin-left: 0;
        white-space: nowrap;
        display: inline-block;
    }

    .cc-page-player .cc-knight-protection-wrap {
        margin-top: 6px;
        text-align: left;
        padding-left: 10px;
    }

    .cc-page-player #rollDiceTotal,
    .cc-page-player #rollDiceColor {
        font-size: clamp(22px, 6vw, 30px);
        padding: 6px 10px;
    }

    .cc-page-player #diceRollButtons .cc-dice-output-row {
        margin-top: 4px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* When player cannot roll, keep dice output in the top control row area. */
    .cc-page-player #diceRollButtons.cc-dice-display-only .cc-dice-output-row {
        margin-top: 0;
        min-height: 60px;
    }

    /* No-advance mode: keep left text and right dice in separate non-overlapping columns. */
    .cc-page-player .cc-monitor-controls-row.cc-monitor-controls-no-advance {
        align-items: flex-start;
        justify-content: flex-start;
        gap: 13px;
        padding-left: 10px;
    }

    .cc-page-player .cc-monitor-controls-row.cc-monitor-controls-no-advance .cc-barbarian-status {
        margin-top: 10px;
        margin-left: 0;
        padding-left: 10px;
        justify-content: flex-start;
        text-align: left;
    }

    .cc-page-player .cc-monitor-controls-row.cc-monitor-controls-no-advance .cc-game-controls {
        flex: none !important;
        width: auto;
        max-width: 45vw;
        min-width: 0;
    }

    .cc-page-player .cc-monitor-controls-row.cc-monitor-controls-no-advance #diceRollButtons.cc-dice-display-only {
        flex: 0 0 auto;
        width: auto;
        margin-top: 0;
        margin-left: 0;
        align-items: flex-start;
    }

    .cc-page-player .cc-monitor-controls-row.cc-monitor-controls-no-advance #diceRollButtons.cc-dice-display-only .cc-dice-output-row {
        min-height: 44px;
        margin-top: 0;
        transform: translateY(-2px);
    }

    .cc-page-player .cc-game-controls.cc-game-controls-no-advance .cc-knight-protection-wrap {
        padding-right: 8px;
    }

    .cc-page-player .cc-game-controls.cc-game-controls-no-advance .cc-knight-protection-msg {
        white-space: normal;
        line-height: 1.15;
        display: block;
        max-width: 100%;
    }

    .cc-page-player #ytzcup {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transform: translateX(-25px);
    }

    .cc-page-player #ytzcup:empty {
        display: none;
    }

    .cc-page-player #ytzcup img {
        height: 58px;
        width: auto;
        max-width: none;
        object-fit: contain;
    }

    .cc-page-player #diceRollResult {
        margin-top: 0;
        white-space: nowrap;
        line-height: 1;
    }

    .cc-page-player #rollDiceTotal {
        width: clamp(40px, 10.8vw, 48px);
        height: clamp(40px, 10.8vw, 48px);
        padding: 0;
        border-radius: 10px;
        font-size: clamp(15px, 4.2vw, 19px);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: clamp(6px, 2.2vw, 10px);
    }

    .cc-page-player #rollDiceColor:not(.cc-roll-color-0) {
        width: clamp(40px, 10.8vw, 48px);
        height: clamp(40px, 10.8vw, 48px);
        min-width: 0;
        padding: 0;
        border-radius: 10px;
        font-size: clamp(15px, 4.2vw, 19px);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .cc-page-player #rollDiceColor.cc-roll-color-0 {
        font-size: clamp(14px, 3.8vw, 19px);
        height: clamp(40px, 10.8vw, 48px);
        padding: 0 10px;
        min-width: 88px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        box-sizing: border-box;
    }

    .cc-page-player .cc-asset-icon {
        width: 22px !important;
        height: 22px !important;
    }

    .cc-page-player .cc-modal-card-player-details {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        max-height: 95vh;
        padding: 10px 8px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .cc-page-player #playerDetailsName {
        margin: 8px 0 16px;
    }

    .cc-page-player #divMetroSelector .cc-modal-card-sm {
        width: min(calc(100vw - 60px), 420px) !important;
        max-width: min(calc(100vw - 60px), 420px) !important;
        padding: 12px 16px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .cc-page-player #divMetroSelector h2 {
        font-size: clamp(22px, 5.8vw, 30px);
        line-height: 1.1;
        margin: 6px 0 35px;
    }

    .cc-page-player #divMetroSelector .cc-metro-selector-body {
        margin: 0 auto;
        width: fit-content;
        max-width: 100%;
        padding-left: 9px;
        font-size: clamp(16px, 4.3vw, 22px);
        text-align: left;
    }

    .cc-page-player #divMetroSelector .cc-metro-owner-label {
        max-width: 220px;
    }

    .cc-page-player #divMetroSelector .cc-metro-selector-row {
        margin-top: 10px;
        gap: 10px;
        align-items: center;
        padding-left: 0;
    }

    .cc-page-player #divMetroSelector .metro {
        width: 56px;
        height: 56px;
        min-width: 56px;
        min-height: 56px;
        border-radius: 50%;
        aspect-ratio: 1 / 1;
        box-sizing: border-box;
        display: inline-block;
    }

    .cc-page-player #divMetroSelector .cc-metro-owner-label {
        margin-left: 0;
        font-size: clamp(14px, 3.8vw, 20px);
        line-height: 1.2;
        text-align: left;
    }

    .cc-page-player #divMetroSelector .cc-btn-modal-cancel {
        border-radius: 12px;
        color: white;
        background-color: rgb(79, 123, 235);
        font-weight: bold;
        font-size: 20px;
        padding: 11px 24px;
        width: auto;
    }

    .cc-page-player #divMetroSelector .cc-modal-card-sm {
        box-sizing: border-box;
    }

    .cc-page-player #divWinner .cc-modal-card-md {
        width: min(calc(100vw - 40px), 420px);
        max-width: min(calc(100vw - 40px), 420px);
        box-sizing: border-box;
    }

    .cc-page-player #divWinner h1,
    .cc-page-player #divBarbarianAttack h1 {
        font-size: 31px;
        white-space: nowrap;
    }

    .cc-page-player #divBarbarianAttack h1 {
        margin-bottom: 0;
    }

    .cc-page-player #divBarbarianAttack h2 {
        margin-top: 13px;
    }

    .cc-page-player #divWinner h2,
    .cc-page-player #divBarbarianAttack h2 {
        font-size: 21px;
    }

    .cc-page-player #divBarbarianAttack h3 {
        font-size: 17px;
    }

    .cc-page-player #divWinner .cc-btn-modal-close,
    .cc-page-player #divBarbarianAttack .cc-btn-modal-close {
        font-size: 20px;
        border-radius: 12px;
        color: white;
        background-color: rgb(79, 123, 235);
        font-weight: bold;
        padding: 11px 24px;
        width: auto;
        border: none;
        cursor: pointer;
    }

    .cc-page-player .cc-player-details-table {
        margin-top: 6px;
        width: 100%;
        table-layout: fixed;
        font-size: 17px;
    }

    .cc-page-player .cc-player-details-th-stat,
    .cc-page-player .cc-player-details-th-value,
    .cc-page-player .cc-player-details-th-action,
    .cc-page-player .cc-player-details-td-left,
    .cc-page-player .cc-player-details-td-center {
        padding: 5px 4px;
    }

    .cc-page-player .cc-player-details-th-stat,
    .cc-page-player .cc-player-details-table td:nth-child(1) {
        width: 47%;
        font-size: 19px;
    }

    .cc-page-player .cc-player-details-th-value,
    .cc-page-player .cc-player-details-table td:nth-child(2) {
        width: 18%;
        font-size: 19px;
    }

    .cc-page-player .cc-player-details-th-action,
    .cc-page-player .cc-player-details-table td:nth-child(3) {
        width: 35%;
    }

    .cc-page-player .cc-player-details-table td:nth-child(1) {
        text-align: left;
        white-space: nowrap;
    }

    .cc-page-player .cc-player-details-table td:nth-child(1) .cc-asset-icon {
        width: 28px !important;
        height: 28px !important;
        margin-right: 8px;
        vertical-align: middle;
    }

    .cc-page-player .cc-player-details-table td:nth-child(1) span {
        vertical-align: middle;
    }

    .cc-page-player .cc-player-details-table td:nth-child(2),
    .cc-page-player .cc-player-details-th-value {
        text-align: center;
    }

    .cc-page-player .cc-player-details-table td:nth-child(2) .metroSmall {
        width: 24px;
        height: 24px;
        margin-right: 3px;
    }

    .cc-page-player .cc-player-details-table td:nth-child(2) .fa-check-circle {
        font-size: 1.35em;
    }

    .cc-page-player .cc-btn-small-action {
        font-size: 18px;
        padding: 9px 12px;
    }

    .cc-page-player .cc-btn-player-done {
        font-size: 20px;
        padding: 11px 24px;
    }

    .cc-page-player .cc-player-details-actions {
        margin-top: 23px;
    }

    .cc-page-player .cc-player-details-table td:nth-child(3) {
        white-space: nowrap;
    }

    .cc-page-player .cc-player-details-table td:nth-child(3) .fa-plus-circle {
        font-size: 2.25em;
        margin-right: 10px;
    }

    .cc-page-player .cc-player-details-table td:nth-child(3) .fa-minus-circle {
        font-size: 1.7em;
    }

    .cc-page-player .fa-check-circle {
        font-size: 1.2em;
    }
}

/* Player page phone landscape: extra compaction */
@media only screen and (max-width: 900px) and (orientation: landscape) {
    .cc-page-player .playerBoard th,
    .cc-page-player .playerBoard td {
        font-size: 13px;
    }

    .cc-page-player .cc-modal-card-player-details {
        max-height: 92vh;
        padding: 8px;
    }

    .cc-page-player .cc-player-details-table {
        font-size: 12px;
    }
}

@media only screen and (max-width: 430px) {
    .cc-page-player .cc-player-details-th-stat,
    .cc-page-player .cc-player-details-table td:nth-child(1) {
        width: 52%;
        font-size: 18px;
    }

    .cc-page-player .cc-player-details-th-value,
    .cc-page-player .cc-player-details-table td:nth-child(2) {
        width: 18%;
    }

    .cc-page-player .cc-player-details-th-action,
    .cc-page-player .cc-player-details-table td:nth-child(3) {
        width: 30%;
    }

    .cc-page-player .cc-player-details-th-stat,
    .cc-page-player .cc-player-details-th-value,
    .cc-page-player .cc-player-details-th-action,
    .cc-page-player .cc-player-details-td-left,
    .cc-page-player .cc-player-details-td-center {
        padding-left: 3px;
        padding-right: 3px;
    }

    .cc-page-player .cc-player-details-table td:nth-child(1) .cc-asset-icon {
        width: 26px !important;
        height: 26px !important;
        margin-right: 5px;
    }

    .cc-page-player #divMetroSelector .cc-modal-card-sm {
        width: min(calc(100vw - 60px), 420px) !important;
        max-width: min(calc(100vw - 60px), 420px) !important;
    }
}

/* ===================== Select Game View — Account game picker ===================== */

.cc-account-games-section {
    margin-top: 20px;
    padding-top: 8px;
}

.cc-account-games-rule {
    border: 0;
    border-top: 1px solid #d6dde7;
    margin: 0 0 14px;
}

.cc-account-games-help {
    margin: 25px 0 25px 12px;
    font-size: 18px;
    font-weight: 700;
    color: #234;
}

.cc-account-games-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.cc-account-game-option {
    width: min(340px, 72vw);
    border-radius: 10px;
    border: 1px solid #7d8ca4;
    background: #eef2f7;
    color: #213;
    font-weight: 700;
    font-size: 18px;
    padding: 10px 12px;
    cursor: pointer;
    text-align: center;
}

.cc-account-game-option.cc-account-game-option-selected {
    background: #22753a;
    border-color: #185c2c;
    color: #fff;
}

.cc-account-games-error {
    min-height: 22px;
    color: #8d1818;
    font-weight: 700;
}
