:root {
    --bg-dark: #0d1117;
    --panel-bg: #161b22;
    --text-main: #c9d1d9;
    --text-muted: #8b949e;
    --accent-green: #2ea043;
    --accent-red: #f85149;
    --border-color: #30363d;
    --accent-blue: #58a6ff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Courier New', monospace;
    overflow-x: hidden;
    overflow-y: auto;
}

#game-container {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 6px;
}

header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    background: var(--panel-bg);
    padding: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 6px;
    flex-shrink: 0;
    text-align: center;
}

.info-panel {
    font-size: 0.95rem;
    font-weight: bold;
    width: 100%;
}

.label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.alert-text {
    color: var(--accent-red);
}

.total-funds {
    color: var(--accent-green);
    font-size: 1.1rem;
}

.main-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 6px;
    height: auto;
}

.charts-area {
    order: 2;
    flex: 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 6px;
}

.stock-panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: 8px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.chart-fixed-area {
    flex-shrink: 0;
    height: 165px;
    display: flex;
    flex-direction: column;
}

.chart-fixed-area h3 {
    margin: 0 0 4px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    height: 16px;
}

.canvas-wrapper {
    height: 145px;
    position: relative;
    background: #000;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

.dynamic-content-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.invest-form {
    margin-top: 6px;
    display: flex;
    flex-shrink: 0;
}

.invest-form input {
    flex-grow: 1;
    background: var(--bg-dark);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 6px;
    font-family: inherit;
    font-size: 13px !important;
}

.invest-form input::placeholder {
    color: #484f58;
    font-size: 11px;
}

.stock-panel:has(.result-table) .invest-form {
    display: none !important;
}

#game-container:has(#current-wave:is(:empty)) .invest-form,
#game-container:has(#current-wave:is(:empty)) #btn-execute-trade,
#game-container:has(#player-role:is(:empty)) .invest-form,
#game-container:has(#player-role:is(:empty)) #btn-execute-trade {
    display: none !important;
}

.result-board {
    margin-top: 6px;
    flex-grow: 1;
    overflow-y: auto;
    min-height: 0;
    width: 100%;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    background: #0d1117;
    table-layout: fixed;
}

.result-table th,
.result-table td {
    border: 1px solid var(--border-color);
    padding: 3px 2px;
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-table th {
    background: #21262d;
    color: var(--text-muted);
    text-align: center;
}

.result-table th:nth-child(1),
.result-table td:nth-child(1) {
    text-align: left;
    width: 20%;
}

.result-table th:nth-child(2),
.result-table td:nth-child(2) {
    text-align: right;
    width: 45%;
}

.result-table th:nth-child(3),
.result-table td:nth-child(3) {
    text-align: right;
    width: 35%;
}

.side-area {
    display: contents;
}

.side-panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: 10px;
    display: flex;
    flex-direction: column;
}

#action-panel {
    order: 1;
    justify-content: flex-start;
}

#system-log {
    order: 3;
    font-size: 0.8rem;
}

#log-content {
    height: 120px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: 4px;
}

#system-log p {
    margin: 0 0 6px 0;
    line-height: 1.3;
    border-bottom: 1px solid #21262d;
    padding-bottom: 4px;
    word-break: break-all;
}

#voting-area,
#final-results {
    width: 100%;
    display: flex;
    flex-direction: column;
}

#final-standings {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 4px;
}

#voting-area select {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    margin-bottom: 8px;
    background: var(--bg-dark);
    color: white;
    border: 1px solid var(--border-color);
}

button {
    padding: 10px;
    font-size: 15px !important;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    width: 100%;
    margin-top: 4px;
    transition: 0.2s;
}

.btn-danger {
    background: var(--accent-red);
    color: white;
}

.btn-danger:hover {
    background: #ff6a6a;
}

.btn-danger:disabled {
    background: #4a2123;
    color: #888;
    cursor: not-allowed;
}

.btn-warning {
    background: #f2cc60;
    color: #000;
}

.btn-warning:hover {
    background: #ffe082;
}

.final-rank {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
}

.final-rank .rank-user {
    font-weight: bold;
}

.final-rank .rank-funds {
    font-size: 1rem;
    color: var(--accent-green);
    align-self: flex-end;
    margin-top: 2px;
}

.final-rank.insider-row .rank-user {
    color: var(--accent-red);
}

.winner-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #f2cc60;
    background: rgba(242, 204, 96, 0.1);
    padding: 6px !important;
    margin-bottom: 4px;
    animation: pulse 2s infinite;
}

.winner-row .rank-funds {
    color: #f2cc60 !important;
    font-size: 1.2rem;
    font-weight: bold;
    align-self: flex-end;
    margin-top: 2px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(242, 204, 96, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(242, 204, 96, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(242, 204, 96, 0);
    }
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

#log-content p.latest-log {
    color: #f2cc60;
    font-weight: bold;
    border-bottom: 1px solid rgba(242, 204, 96, 0.3);
}

.latest-log-anim {
    animation: slideInDown 0.4s ease-out forwards;
    opacity: 0;
    transform: translateY(-12px);
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 769px) {
    body {
        overflow: hidden;
    }

    #game-container {
        height: 100vh;
        padding: 10px;
    }

    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px;
        gap: 8px;
        margin-bottom: 10px;
    }

    .info-panel {
        font-size: 1.2rem;
        width: auto;
    }

    .label {
        font-size: 0.9rem;
    }

    .total-funds {
        font-size: 1.5rem;
    }

    .main-content {
        flex-direction: row;
        height: calc(100vh - 90px);
        overflow: hidden;
        gap: 10px;
    }

    .charts-area {
        order: unset;
        grid-gap: 10px;
    }

    .stock-panel {
        padding: 10px;
    }

    .chart-fixed-area {
        height: 195px;
    }

    .chart-fixed-area h3 {
        font-size: 1rem;
        height: 20px;
        margin-bottom: 5px;
    }

    .canvas-wrapper {
        height: 160px;
    }

    .invest-form input {
        font-size: 0.9rem !important;
    }

    .result-board {
        font-size: 0.85rem;
        margin-top: 8px;
    }

    .result-table {
        table-layout: auto;
    }

    .result-table th,
    .result-table td {
        padding: 6px 4px;
        font-size: 0.85rem;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .result-table th {
        font-size: 0.85rem;
    }

    .result-table th:nth-child(n),
    .result-table td:nth-child(n) {
        width: auto;
    }

    .side-area {
        display: flex;
        flex-direction: column;
        gap: 10px;
        flex: 1;
        min-width: 280px;
        height: 100%;
    }

    .side-panel {
        padding: 15px;
    }

    #system-log {
        order: 1;
        flex: 1;
        min-height: 0;
        font-size: 0.85rem;
    }

    #log-content {
        height: auto;
        flex-grow: 1;
        min-height: 0;
        padding: 8px;
    }

    #action-panel {
        order: 2;
        flex: 1;
        overflow-y: hidden;
        min-height: 0;
    }

    #final-standings {
        max-height: none;
    }

    button {
        padding: 12px;
        font-size: 1.1rem !important;
        margin-top: 5px;
    }
}

.phase-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    opacity: 0;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15), opacity 0.3s ease;
    white-space: nowrap;
}

.phase-notification.show {
    bottom: 45%;
    opacity: 1;
}

@media (max-width: 768px) {
    .phase-notification {
        font-size: 1rem;
        padding: 10px 20px;
        max-width: 90%;
        text-align: center;
    }

    .phase-notification.show {
        bottom: 50%;
    }
}

.invest-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0;
}

.slider-label-zone {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invest-type-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.invest-amount-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
}

.invest-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    margin: 12px 0;
    background: linear-gradient(to right, #c586c0 0%, var(--border-color) 45%, var(--border-color) 55%, var(--accent-blue) 100%);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.invest-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--panel-bg);
    box-shadow: 0 0 0 2px var(--text-muted), 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s, background-color 0.1s;
}

.invest-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--text-main);
}

.invest-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--panel-bg);
    box-shadow: 0 0 0 2px var(--text-muted), 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s, background-color 0.1s;
}

.invest-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: var(--text-main);
}

.slider-sub-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0 2px;
}

.final-anim-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    max-width: 480px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    transform: translateX(150%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
}

.final-anim-card.slide-in {
    transform: translateX(0);
    opacity: 1;
}

.final-anim-card.slide-out {
    transform: translateX(-150%);
    opacity: 0;
}

.anim-rank-header {
    font-size: 1.6rem;
    font-weight: bold;
    border-bottom: 2px solid #30363d;
    padding-bottom: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.calc-process {
    font-family: monospace;
    font-size: 1.1rem;
    line-height: 1.8;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
    color: #8b949e;
}

.calc-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #30363d;
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
}

.rank-1st-card {
    border: 2px solid #f2cc60;
    background: linear-gradient(145deg, #211c0e, #0d1117);
}

.rank-1st-card .anim-rank-header {
    color: #f2cc60;
    font-size: 2.2rem;
    text-shadow: 0 0 12px rgba(242, 204, 96, 0.6);
    border-bottom-color: #f2cc60;
}

@keyframes goldGlow {
    0% {
        box-shadow: 0 0 20px rgba(242, 204, 96, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 40px rgba(242, 204, 96, 0.8);
        transform: scale(1.03);
    }

    100% {
        box-shadow: 0 0 20px rgba(242, 204, 96, 0.3);
        transform: scale(1);
    }
}

.winner-celebration {
    animation: goldGlow 2.5s infinite ease-in-out;
}

.final-summary-table {
    max-width: 480px;
    margin: 25px auto 0 auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #30363d;
}

.final-summary-title {
    text-align: center;
    margin-bottom: 12px;
    color: #f2cc60;
}

.summary-row,
.summary-row-winner {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #30363d;
}

.summary-row-winner {
    color: #f2cc60;
    font-weight: bold;
}

.insider-wait-box {
    color: #8b949e;
    text-align: center;
    padding: 15px;
    border: 1px dashed #30363d;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    border-radius: 6px;
    font-weight: bold;
}

.invest-short {
    color: #c586c0;
}

.invest-long {
    color: var(--accent-blue);
}

.profit-positive {
    color: var(--accent-green);
}

.profit-negative {
    color: var(--accent-red);
}

.profit-zero {
    color: #ffffff;
}

#cinema-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #161b22 0%, #0d1117 100%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #c9d1d9;
    overflow: hidden;
    padding: 20px;
    transition: opacity 1s ease;
}

.cinema-text-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    transform: translateY(120px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.cinema-text-container.active {
    transform: translateY(0);
    opacity: 1;
}

.cinema-text-container.exit {
    transform: translateY(-800px);
    opacity: 0;
}

.cinema-flash-text {
    font-size: 6vw;
    font-weight: 900;
    letter-spacing: 4px;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    white-space: nowrap;
}

@media (min-width: 769px) {
    .cinema-flash-text {
        font-size: 3.5rem;
        letter-spacing: 6px;
    }
}

.cinema-flash-text.title-sub {
    font-size: 5vw;
}

@media (min-width: 769px) {
    .cinema-flash-text.title-sub {
        font-size: 2.8rem;
    }
}

.cinema-flash-text.status-success {
    color: #f2cc60;
    font-size: 8vw;
    text-shadow: 0 0 30px rgba(242, 204, 96, 0.6), 0 0 60px rgba(242, 204, 96, 0.3);
}

@media (min-width: 769px) {
    .cinema-flash-text.status-success {
        font-size: 5rem;
    }
}

.cinema-flash-text.status-fail {
    color: #ff6b6b;
    font-size: 8vw;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.5), 0 0 60px rgba(255, 107, 107, 0.2);
}

@media (min-width: 769px) {
    .cinema-flash-text.status-fail {
        font-size: 5rem;
    }
}

.cinema-sub-message {
    font-size: 0.95rem;
    color: #c9d1d9;
    line-height: 1.6;
    text-align: center;
    background: rgba(22, 27, 34, 0.6);
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid rgba(48, 54, 61, 0.5);
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeInShort 1s ease forwards;
}

@media (min-width: 769px) {
    .cinema-sub-message {
        font-size: 1.4rem;
        padding: 15px 30px;
        line-height: 1.8;
    }
}

@keyframes fadeInShort {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cinema-player-card {
    position: absolute;
    width: 100%;
    max-width: 650px;
    background: rgba(22, 27, 34, 0.85);
    border: 2px solid #30363d;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.cinema-player-card.slide-in {
    transform: translateX(0);
    opacity: 1;
}

.cinema-player-card.slide-out {
    transform: translateX(-120%);
    opacity: 0;
}

.cinema-rank-header {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #30363d;
    color: #ffffff;
}

@media (min-width: 769px) {
    .cinema-player-card {
        padding: 35px;
    }

    .cinema-rank-header {
        font-size: 2.2rem;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
}

.cinema-calc-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cin-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: #8b949e;
}

.cin-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #30363d;
    font-size: 1.4rem;
    font-weight: bold;
    color: #58a6ff;
}

@media (min-width: 769px) {
    .cinema-calc-box {
        gap: 14px;
    }

    .cin-row {
        font-size: 1.2rem;
    }

    .cin-total {
        margin-top: 15px;
        padding-top: 15px;
        font-size: 1.8rem;
    }
}

.cinema-player-card.rank-1st-gold {
    border-color: #f2cc60;
    background: linear-gradient(135deg, rgba(26, 22, 11, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
    top: 10%;
}

.cinema-player-card.rank-1st-gold .cinema-rank-header,
.cinema-player-card.rank-1st-gold .cin-total {
    color: #f2cc60;
}

.cinema-player-card.rank-1st-gold .cinema-rank-header {
    text-shadow: 0 0 15px rgba(242, 204, 96, 0.4);
}

@keyframes goldPulse {
    0% {
        box-shadow: 0 0 30px rgba(242, 204, 96, 0.2);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 60px rgba(242, 204, 96, 0.6);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 30px rgba(242, 204, 96, 0.2);
        transform: scale(1);
    }
}

.winner-glow-effect {
    animation: goldPulse 3s infinite ease-in-out;
}

.cinema-summary-board {
    position: absolute;
    bottom: 5%;
    width: 90%;
    max-width: 650px;
    background: rgba(13, 17, 23, 0.9);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 15px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinema-summary-board.fade-in-active {
    opacity: 1;
    transform: translateY(0);
}

.cinema-summary-board h3 {
    text-align: center;
    color: #f2cc60;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cin-sum-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #21262d;
}

.cin-sum-row.winner-row {
    color: #f2cc60;
    font-weight: bold;
    font-size: 1rem;
}

@media (min-width: 769px) {
    .cinema-summary-board {
        bottom: 8%;
        width: 100%;
        padding: 25px;
    }

    .cinema-summary-board h3 {
        margin-bottom: 18px;
        font-size: 1.5rem;
    }

    .cin-sum-row {
        padding: 10px 0;
        font-size: 1.1rem;
    }

    .cin-sum-row.winner-row {
        font-size: 1.2rem;
    }
}

.cinema-close-btn {
    margin-top: 15px;
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, color 0.2s;
}

.cinema-close-btn:hover {
    background: #30363d;
    color: #ffffff;
}

@media (min-width: 769px) {
    .cinema-close-btn {
        margin-top: 20px;
        padding: 12px;
        font-size: 1rem;
    }
}

.cin-row.cin-highlight {
    color: #ffb74d;
    font-weight: bold;
    background: rgba(255, 183, 77, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #ffb74d;
}

.rank-1st-gold .cin-row.cin-highlight {
    color: #f2cc60;
    background: rgba(242, 204, 96, 0.1);
    border-left-color: #f2cc60;
}

#start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0d1117;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    overflow-y: auto;
}

.start-box {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    margin: auto;
}

.start-title {
    color: #58a6ff;
    font-size: 1.8rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
}

.start-description {
    color: #c9d1d9;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #f2cc60;
}

.desc-highlight {
    color: #f2cc60;
    font-weight: bold;
    margin-bottom: 8px;
}

.start-description p {
    margin: 6px 0;
}

.start-btn {
    background: linear-gradient(135deg, #238636 0%, #2ea44f 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(46, 164, 79, 0.3);
    transition: all 0.2s ease;
    width: auto;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 164, 79, 0.5);
    background: linear-gradient(135deg, #2ea44f 0%, #3fb950 100%);
}

.start-btn:active {
    transform: translateY(1px);
}

@media (min-width: 769px) {
    .start-box {
        padding: 40px;
    }

    .start-title {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }

    .start-description {
        font-size: 0.95rem;
        line-height: 1.8;
        margin-bottom: 35px;
        padding: 20px;
    }

    .start-btn {
        padding: 16px 40px;
        font-size: 1.2rem;
    }
}

.result-table tr.current-user-row {
    background-color: rgba(56, 139, 253, 0.15) !important;
    border-left: 3px solid var(--accent-blue);
}

.result-table tr.current-user-row td {
    font-weight: bold;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    table-layout: auto;
}

.result-table th,
.result-table td {
    padding: 8px 6px;
    text-align: center;
    white-space: nowrap;
}

.result-table tr.current-user-row {
    background-color: rgba(56, 139, 253, 0.1) !important;
}

.result-table tr.current-user-row td:first-child {
    font-weight: bold;
    color: var(--accent-blue);
}

@media (max-width: 768px) {
    .result-table {
        font-size: 0.82rem !important;
    }

    .result-table th,
    .result-table td {
        padding: 6px 4px !important;
    }

    .result-table .inv-amount {
        display: none !important;
    }

    .result-table th:nth-child(1),
    .result-table td:nth-child(1) {
        width: 45%;
        text-align: left;
        padding-left: 8px !important;
    }

    .result-table th:nth-child(2),
    .result-table td:nth-child(2) {
        width: 25%;
    }

    .result-table th:nth-child(3),
    .result-table td:nth-child(3) {
        width: 30%;
        text-align: right;
        padding-right: 8px !important;
    }
}