* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: "Times New Roman", Times, serif;
    font-weight: 400;
    background: #141923;
    color: #eef2f7;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-weight: 400;
}

h1,
h2,
h3,
strong,
b {
    font-weight: 400;
}

#app {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.view {
    display: none;
    height: 100%;
    width: 100%;
    padding: 24px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    overflow: auto;
    overscroll-behavior: contain;
    overflow-anchor: none;
}

.view::before,
.view::after {
    content: "";
    flex: 1 0 0;
    width: 0;
    min-height: 0;
}

.view > * {
    flex-shrink: 0;
}

.view.active {
    display: flex;
}

.view.view-leave,
.view.view-enter {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.view.view-leave {
    z-index: 1;
    animation: viewLeave 0.48s ease both;
}

.view.view-enter {
    z-index: 2;
    animation: viewEnter 0.48s ease both;
}

@keyframes viewLeave {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes viewEnter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.center-card,
.panel-card {
    background: #1d2433;
    border: 1px solid #2e384d;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 460px;
}

.panel-card {
    max-width: 820px;
}

.panel-card.narrow {
    max-width: 560px;
}

.panel-card.wide {
    max-width: 980px;
}

.game-title {
    width: min(400px, 100%);
    margin: 0 auto 16px;
    text-align: center;
}

.game-title-logo {
    display: block;
    width: 100%;
    height: auto;
}

.subtitle,
.muted {
    color: #9aa7bd;
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

h2 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.btn {
    border: none;
    border-radius: 8px;
    padding: 11px 18px;
    font-size: 0.96rem;
    font-weight: 400;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.15s ease, background 0.15s ease;
    color: #fff;
    background: #33415c;
}

.btn:hover:not(:disabled) {
    opacity: 0.92;
}

.btn:active:not(:disabled) {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn.primary {
    background: #2f7df6;
}

.btn.secondary {
    background: #3b475e;
}

.btn.accent {
    background: #d97706;
}

.btn.danger {
    background: #dc2626;
}

.btn.small {
    padding: 7px 12px;
    font-size: 0.85rem;
}

.btn.large {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn.link-btn {
    background: transparent;
    color: #7ab3ff;
    text-decoration: underline;
    width: 100%;
    margin-top: 12px;
}

.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.button-group .btn {
    flex: 1;
}

.home-meta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: -8px -8px 8px;
    padding: 10px 8px 14px;
    border-bottom: 1px solid rgba(138, 90, 50, 0.35);
    background: rgba(251, 246, 232, 0.96);
    border-radius: 10px;
}

.home-meta .user-badge {
    color: #1a120b;
    justify-content: flex-start;
    flex-wrap: wrap;
    line-height: 1.4;
}

.home-meta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.menu-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    color: #c7d1e0;
}

.auth-form input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #3c4a64;
    background: #121722;
    color: #fff;
    font-size: 0.95rem;
}

.feedback {
    min-height: 22px;
    margin-top: 12px;
    text-align: center;
    font-size: 0.9rem;
    color: #f87171;
}

.feedback.success {
    color: #4ade80;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 11, 18, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 50;
}

.modal-overlay.hidden,
.hidden {
    display: none !important;
}

.modal-box {
    position: relative;
    background: #1d2433;
    border: 1px solid #3c4a64;
    border-radius: 14px;
    padding: 28px;
    max-width: 560px;
    width: 100%;
    line-height: 1.55;
}

.intro-skip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    cursor: pointer;
    font-size: 0.92rem;
}

.intro-skip input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.modal-box ul {
    margin-top: 12px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #d0d8e6;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    color: #cfd8e8;
    font-size: 1.7rem;
    cursor: pointer;
    line-height: 1;
}

.lang-switch {
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 80;
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(15, 21, 32, 0.92);
    border: 1px solid #3c4a64;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.lang-switch button {
    border: none;
    background: transparent;
    color: #d5deea;
    border-radius: 999px;
    padding: 5px 11px;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.86rem;
}

.lang-switch button.active {
    background: #2f7df6;
    color: #fff;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 14px 176px 14px 24px;
    background: #181f2c;
    border-bottom: 1px solid #2b3548;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-right,
.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-pill,
.pill {
    background: #273247;
    border: 1px solid #3c4b68;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.9rem;
    display: inline-block;
}

.pill {
    background: #7c2d12;
    border-color: #c2410c;
    color: #fed7aa;
}

.tutorial-grid,
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.info-block,
.shop-card {
    background: #141a26;
    border: 1px solid #2b3548;
    border-radius: 10px;
    padding: 16px;
    line-height: 1.5;
}

.shop-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #c2cce0;
}

.panel-header,
.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.panel-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.cheat-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.cheat-option {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #141a26;
    border: 1px solid #2d374c;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
}

.cheat-option input {
    margin-top: 4px;
    transform: scale(1.25);
}

.cheat-option p {
    font-size: 0.88rem;
    color: #9aa7bd;
    margin-top: 4px;
}

.loader {
    width: 42px;
    height: 42px;
    border: 4px solid #2d384f;
    border-top-color: #2f7df6;
    border-radius: 50%;
    margin: 22px auto;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ready-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
}

.ready-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    background: #141a26;
    border: 1px solid #2e384d;
}

.status-tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 400;
    background: #374151;
    color: #d1d5db;
}

.status-tag.ready {
    background: #15803d;
    color: #dcfce7;
}

.timer-badge {
    background: #273247;
    border: 1px solid #3c4b68;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 1rem;
}

.hero-tools {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.hero-card {
    position: relative;
    background: #141a26;
    border: 2px solid #2e3950;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.12s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-card:hover {
    border-color: #60a5fa;
    transform: translateY(-2px);
}

.hero-card.selected {
    border-color: #f59e0b;
    background: #20293d;
}

.hero-card.confirming {
    z-index: 4;
}

.swap-confirm-pop {
    position: absolute;
    top: 38px;
    right: 8px;
    width: 188px;
    background: #0f1520;
    border: 1px solid #f59e0b;
    border-radius: 10px;
    padding: 10px;
    z-index: 5;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.swap-confirm-pop p {
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 8px;
    color: #f8fafc;
}

.swap-confirm-actions {
    display: flex;
    gap: 6px;
}

.swap-confirm-actions .btn {
    flex: 1;
    padding: 6px 8px;
    font-size: 0.78rem;
}

.hero-swap-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #f59e0b;
    background: #b45309;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 400;
    cursor: pointer;
    z-index: 2;
}

.hero-swap-btn:hover:not(:disabled) {
    background: #d97706;
}

.hero-swap-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.hero-portrait {
    width: 100%;
    height: 176px;
    object-fit: cover;
    object-position: center 16%;
    border-radius: 8px;
    background: #1a2232;
    display: block;
}

.hero-title {
    font-size: 0.85rem;
    color: #9aa7bd;
}

.hero-buff {
    font-size: 0.88rem;
    color: #93c5fd;
    font-weight: 400;
}

.hero-skill {
    font-size: 0.78rem;
    line-height: 1.35;
    color: #c5d0e0;
}

.codex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 12px;
    margin: 8px 0 18px;
}

.codex-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(74, 48, 28, 0.28);
    background: rgba(251, 246, 232, 0.78);
    color: #1a120b;
    cursor: pointer;
    font: inherit;
}

.codex-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 8px;
}

.codex-card:hover {
    background: #6b3f22;
    color: #f8f1e3;
    border-color: #1a120b;
    transform: translateY(-2px);
}

.codex-detail {
    text-align: center;
}

.codex-portrait {
    width: 168px;
    height: 168px;
    object-fit: cover;
    object-position: center 16%;
    border-radius: 14px;
    display: block;
    margin: 0 auto 12px;
    border: 2px solid rgba(74, 48, 28, 0.35);
}

.codex-role {
    margin-bottom: 4px;
}

.codex-block {
    text-align: left;
    margin-top: 14px;
}

.codex-block h3 {
    margin-bottom: 6px;
}

.codex-block p {
    line-height: 1.5;
}

.game-layout {
    width: 100%;
    max-width: 1060px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.game-hud {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
    background: #1d2433;
    border: 1px solid #2e384d;
    border-radius: 12px;
    padding: 12px 20px;
}

.hud-player {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.hud-portrait-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
}

.hero-callout {
    position: absolute;
    top: 60px;
    left: 50%;
    z-index: 6;
    min-width: 118px;
    padding: 12px 18px 14px;
    background: transparent;
    color: #141414;
    font-size: 1.45rem;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    transform: translateX(-50%);
}

.hero-callout::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fffdf6;
    border: 2.5px solid #161616;
    border-radius: 48% 56% 42% 60% / 54% 36% 64% 46%;
    transform: rotate(-2.5deg);
    z-index: -1;
}

.hero-callout::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -9px;
    width: 16px;
    height: 16px;
    background: #fffdf6;
    border-top: 2.5px solid #161616;
    border-left: 2.5px solid #161616;
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
}

.hero-callout.pop {
    animation: callout-pop 2.1s ease forwards;
}

@keyframes callout-pop {
    0% { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(0.72) rotate(-4deg); }
    14% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.06) rotate(2deg); }
    26% { opacity: 1; transform: translateX(-50%) scale(1) rotate(-1.5deg); }
    78% { opacity: 1; transform: translateX(-50%) rotate(0.5deg); }
    100% { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.94) rotate(1deg); }
}

.hud-player-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hud-portrait {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 18%;
    border: 2px solid currentColor;
    background: #0f1520;
    flex: 0 0 auto;
}

.hud-player.side-a {
    color: #60a5fa;
}

.hud-player.side-b {
    color: #f87171;
    text-align: right;
    flex-direction: row-reverse;
    margin-left: auto;
}

.hud-center {
    display: flex;
    align-items: center;
    gap: 14px;
}

.match-timer {
    font-size: 1.5rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.canvas-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2e384d;
    background: #0f172a;
}

.map-stage {
    filter: blur(0px);
    transition: filter 0.35s ease;
}

.map-stage.blurred {
    filter: blur(8px);
}

.map-stage.ending-blur {
    transition: filter 1s ease;
    filter: blur(10px);
}

#game-canvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
}

.countdown-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 24, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.endgame-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 24, 0.52);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25;
    animation: endgameFadeIn 1s ease forwards;
}

.endgame-text {
    font-size: 4.5rem;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.65);
    animation: endgamePop 1s ease forwards;
}

.endgame-text.win {
    color: #4ade80;
}

.endgame-text.lose {
    color: #f87171;
}

.endgame-text.draw {
    color: #fbbf24;
}

@keyframes endgameFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes endgamePop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.countdown-box {
    text-align: center;
    background: rgba(20, 26, 38, 0.85);
    border: 1px solid #475569;
    border-radius: 16px;
    padding: 28px 46px;
}

.countdown-matchup {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.countdown-number {
    font-size: 5rem;
    font-weight: 400;
    color: #f59e0b;
    line-height: 1;
}

.countdown-label {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #9aa7bd;
}

.surrender-confirm {
    position: fixed;
    inset: 0;
    background: rgba(8, 11, 18, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 40;
}

.surrender-confirm-card {
    width: 100%;
    max-width: 380px;
    background: #1d2433;
    border: 1px solid #dc2626;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.surrender-confirm-card h3 {
    margin-bottom: 8px;
}

.surrender-confirm-card p {
    color: #dbe4f0;
    line-height: 1.45;
    margin-bottom: 16px;
}

.surrender-confirm-card .button-group {
    display: flex;
    gap: 10px;
}

.surrender-confirm-card .button-group .btn {
    flex: 1;
}

.order-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.order-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    line-height: 1.15;
    background: #fff;
    color: #111;
    border: 2px solid #111;
    padding: 6px 12px;
}

.order-hint {
    font-size: 0.78rem;
    color: #3f3a32;
}

.skill-btn.active {
    background: #b45309;
    color: #fff7ed;
}

.practice-bubble {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 6;
    width: min(360px, calc(100% - 32px));
    padding: 14px 14px 12px 58px;
    background: rgba(251, 246, 232, 0.96);
    color: #1a120b;
    border: 1px solid #1a120b;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(42, 24, 10, 0.28);
}

.practice-step {
    position: absolute;
    left: 12px;
    top: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #6b3f22;
    color: #f8f1e3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.practice-bubble p {
    line-height: 1.45;
    margin-bottom: 10px;
}

.practice-target {
    outline: 3px solid #facc15;
    outline-offset: 2px;
    animation: practicePulse 1s ease-in-out infinite;
}

@keyframes practicePulse {
    50% {
        outline-color: #fff7ed;
    }
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #1d2433;
    border: 1px solid #2e384d;
    border-radius: 12px;
    padding: 12px 18px;
}

.control-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

.notice-text {
    color: #fbbf24;
    font-size: 0.85rem;
    min-height: 18px;
}

.ratio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ratio-btn.active {
    background: #2f7df6;
}

.gameover-header {
    text-align: center;
    margin-bottom: 24px;
}

.gameover-banner {
    font-size: 2.5rem;
    margin-bottom: 6px;
}

.gameover-banner.win {
    color: #4ade80;
}

.gameover-banner.lose {
    color: #f87171;
}

.gameover-banner.draw {
    color: #fbbf24;
}

.stats-section {
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #2d374c;
    text-align: left;
}

.data-table th {
    background: #141a26;
    color: #9aa7bd;
}

html[lang="zh-Hans"] body,
html[lang="zh-Hant"] body {
    font-family: "SimSun", "宋体", "NSimSun", "STSong", "华文宋体", "PMingLiU", "Songti SC", "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.45;
}

.deploy-custom {
    width: 84px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #3c4a64;
    background: #121722;
    color: #fff;
    font-size: 0.85rem;
}

.deploy-custom.active-count {
    border-color: #f5d76e;
    outline: 2px solid #f5d76e;
}

body.menu-bg {
    background-color: #cbb89a;
    background-image:
        linear-gradient(rgba(255, 246, 232, 0.2), rgba(255, 246, 232, 0.2)),
        url("/graphics/open.jpg");
    background-position: center center;
    background-size: cover, cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #4a301c;
}

body.menu-bg .center-card,
body.menu-bg .panel-card,
body.menu-bg .modal-box,
body.menu-bg .info-block,
body.menu-bg .shop-card,
body.menu-bg .cheat-option,
body.menu-bg .ready-row,
body.menu-bg .hero-card {
    background: rgba(247, 237, 212, 0.86);
    border-color: rgba(138, 90, 50, 0.55);
    box-shadow: 0 12px 28px rgba(42, 24, 10, 0.18);
    color: #4a301c;
}

body.menu-bg .game-title {
    color: #1a120b;
}

body.menu-bg h1,
body.menu-bg h2,
body.menu-bg h3,
body.menu-bg p,
body.menu-bg li,
body.menu-bg label,
body.menu-bg td,
body.menu-bg th,
body.menu-bg .subtitle,
body.menu-bg .muted,
body.menu-bg .auth-form label,
body.menu-bg .hero-title,
body.menu-bg .hero-buff,
body.menu-bg .hero-skill,
body.menu-bg .shop-meta,
body.menu-bg .cheat-option p {
    color: #5c3a1e;
}

body.menu-bg .coin-pill,
body.menu-bg .timer-badge,
body.menu-bg .status-tag {
    background: rgba(255, 246, 232, 0.2);
    border-color: rgba(255, 228, 186, 0.4);
    color: #f6efe2;
}

body.menu-bg .center-card .coin-pill,
body.menu-bg .center-card .status-tag,
body.menu-bg .panel-card .coin-pill,
body.menu-bg .panel-card .timer-badge,
body.menu-bg .panel-card .status-tag {
    background: rgba(251, 246, 232, 0.72);
    border-color: rgba(138, 90, 50, 0.45);
    color: #5c3a1e;
}

body.menu-bg .status-tag.ready {
    background: rgba(228, 196, 138, 0.9);
    color: #3f2918;
}

body.menu-bg .lang-switch {
    background: rgba(36, 22, 14, 0.58);
    border-color: rgba(255, 228, 186, 0.35);
    box-shadow: none;
    backdrop-filter: blur(3px);
}

body.menu-bg .lang-switch button {
    color: #f6efe2;
}

body.menu-bg .lang-switch button.active {
    background: rgba(244, 214, 160, 0.92);
    color: #3a2616;
}

body.menu-bg .btn {
    background: rgba(231, 211, 168, 0.92);
    color: #4a301c;
    border: 1px solid rgba(107, 68, 35, 0.45);
    cursor: pointer;
}

body.menu-bg .btn.primary {
    background: rgba(196, 146, 74, 0.92);
    color: #1a120b;
    border-color: rgba(74, 42, 18, 0.55);
}

body.menu-bg .btn.secondary,
body.menu-bg .btn.accent {
    background: rgba(243, 230, 200, 0.9);
    color: #4a301c;
    border-color: rgba(138, 90, 50, 0.5);
}

body.menu-bg .btn.danger {
    background: rgba(214, 148, 118, 0.9);
    color: #3a160e;
    border-color: rgba(122, 52, 32, 0.45);
}

body.menu-bg .btn.link-btn {
    background: transparent;
    color: #3a2616;
    border-color: transparent;
}

body.menu-bg .auth-form input {
    background: rgba(251, 246, 232, 0.9);
    color: #3f2918;
    border-color: rgba(138, 90, 50, 0.5);
}

body.menu-bg .modal-overlay {
    background: rgba(42, 24, 12, 0.35);
}

body.menu-bg .modal-box ul,
body.menu-bg .modal-close {
    color: #5c3a1e;
}

body.menu-bg .data-table th,
body.menu-bg .data-table td {
    border-bottom-color: rgba(180, 140, 86, 0.45);
    color: #4a301c;
}

body.menu-bg .data-table th {
    background: rgba(234, 215, 178, 0.72);
}

body.menu-bg .feedback {
    color: #8f3d2c;
}

body.menu-bg .feedback.success {
    color: #5c3a1e;
}

body.menu-bg .gameover-banner,
body.menu-bg .gameover-banner.win,
body.menu-bg .gameover-banner.lose,
body.menu-bg .gameover-banner.draw {
    color: #1a120b;
}

body.menu-bg .hero-card:hover,
body.menu-bg .hero-card.selected {
    border-color: #8a5a32;
    background: rgba(236, 214, 168, 0.92);
}

#view-landing .btn,
#view-home .menu-stack .btn,
#view-home .home-meta .btn,
#view-gameover .panel-actions .btn,
.lang-switch button {
    cursor: pointer;
}

#view-landing .btn:hover:not(:disabled),
#view-home .menu-stack .btn:hover:not(:disabled),
#view-home .home-meta .btn:hover:not(:disabled),
#view-gameover .panel-actions .btn:hover:not(:disabled) {
    cursor: pointer;
    opacity: 1;
    transform: translateY(-2px);
    background: #6b3f22;
    color: #f8f1e3;
    border-color: #1a120b;
    box-shadow: inset 8px 0 0 #1a120b, 0 8px 18px rgba(42, 24, 10, 0.32);
}

#view-home .menu-stack .btn.danger:hover:not(:disabled) {
    background: #7a2a18;
    color: #f8efe6;
    border-color: #2a0e08;
}

#view-landing .btn.link-btn:hover {
    background: rgba(107, 63, 34, 0.16);
    color: #1a120b;
    border-color: transparent;
    box-shadow: inset 8px 0 0 #1a120b;
}

.lang-switch button:hover {
    background: rgba(244, 214, 160, 0.72);
    color: #1a120b;
}
