/* ORIGIN INTL. RO: blood, gold and black game interface */
:root {
    --theme-ink: #080707;
    --theme-surface: #121011;
    --theme-surface-raised: #1b1516;
    --theme-border: rgba(206, 49, 59, .34);
    --theme-blood: #a91f2d;
    --theme-blood-bright: #dc3545;
    --theme-gold: #e8bd61;
    --theme-gold-light: #f6dc98;
    --theme-text: #f6f1e8;
    --theme-muted: #c2b9ad;
    --theme-green: #75d39a;
    color-scheme: dark;
}

html { scroll-behavior: smooth; }
body {
    color: var(--theme-text);
    background:
        radial-gradient(ellipse at 12% 4%, rgba(116, 19, 28, .27), transparent 35rem),
        radial-gradient(ellipse at 88% 28%, rgba(117, 78, 24, .11), transparent 34rem),
        linear-gradient(180deg, #0c090a 0%, #080707 48%, #100b0c 100%);
    font-family: 'Rajdhani', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}
::selection { color: #120d08; background: var(--theme-gold); }
a { color: var(--theme-gold-light); text-underline-offset: .2em; }
a:hover { color: #fff0c2; }
:focus-visible { outline: 2px solid var(--theme-gold-light) !important; outline-offset: 3px; }

/* Shared surfaces and controls */
.card, .panel, .content-panel, .sidebar-panel, .market-panel, .market-wrapper,
.stat-card, .char-card, .checker-card, .feature-card, .stat-box, .board, .left, .right,
.modal-box, .modal-content, .rewardGrid, .rewardItem, .item-card {
    color: var(--theme-text);
    background-color: rgba(20, 15, 16, .96);
    border-color: var(--theme-border);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .32);
}
button, input[type="submit"], input[type="button"], .btn, .button {
    border-color: rgba(232, 189, 97, .7);
    border-radius: 4px;
    background: linear-gradient(135deg, #f0cc78 0%, #d9a846 100%);
    color: #1b1008;
    font-family: inherit;
    font-weight: 800;
    letter-spacing: .04em;
    box-shadow: 0 5px 18px rgba(165, 29, 41, .22);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
button:hover, input[type="submit"]:hover, input[type="button"]:hover, .btn:hover, .button:hover {
    color: #160d08;
    filter: brightness(1.09);
    box-shadow: 0 7px 22px rgba(232, 189, 97, .2);
}
button:disabled, input:disabled, select:disabled {
    cursor: not-allowed;
    filter: grayscale(.65);
    opacity: .62;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
select, textarea {
    color: var(--theme-text);
    background-color: #100d0e;
    border: 1px solid rgba(232, 189, 97, .32);
    border-radius: 4px;
}
input::placeholder, textarea::placeholder { color: #b8ada0; opacity: 1; }
label, small, .subtitle, .description, .muted, .text-muted { color: var(--theme-muted); }
table { border-color: rgba(232, 189, 97, .2); }
th { color: var(--theme-gold-light); background: #211719; }
td { color: var(--theme-text); border-color: rgba(255, 255, 255, .08); }
hr { border: 0; border-top: 1px solid var(--theme-border); }

/* Landing page */
.diagonal-bg {
    background:
        radial-gradient(ellipse at 14% 12%, rgba(132, 24, 35, .22), transparent 33%),
        linear-gradient(145deg, #100c0d 0%, #181314 44%, #080707 100%);
}
.grid-overlay {
    background-image:
        linear-gradient(rgba(232, 189, 97, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 189, 97, .025) 1px, transparent 1px);
    background-size: 48px 48px;
}
.main-nav {
    background: rgba(10, 8, 9, .95);
    border-bottom: 1px solid rgba(232, 189, 97, .62);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .48);
}
.nav-container { min-height: 72px; }
.nav-logo {
    color: var(--theme-gold-light);
    text-shadow: 0 0 18px rgba(232, 189, 97, .38);
}
.nav-link { color: #f1eadd; }
.nav-link::after { background: var(--theme-gold); box-shadow: 0 0 12px rgba(232, 189, 97, .58); }
.nav-link:hover, .nav-link.active { color: var(--theme-gold-light); text-shadow: none; }
.hero-section {
    border-bottom-color: rgba(232, 189, 97, .4);
    background-position: center 38%;
}
.hero-section::before {
    background: linear-gradient(90deg, rgba(10, 7, 8, .91), rgba(20, 8, 11, .58) 54%, rgba(10, 7, 8, .76)) !important;
}
.hero-section::after {
    background: linear-gradient(110deg, rgba(153, 20, 35, .13), transparent 52%, rgba(232, 189, 97, .08)) !important;
}
.game-logo {
    color: #fff5dc;
    text-shadow: 0 3px 0 #5a1119, 0 0 24px rgba(222, 65, 70, .42);
}
.game-tagline { color: var(--theme-gold-light); text-shadow: none; }
.download-btn {
    color: #190e08;
    background: linear-gradient(130deg, #f5d889 0%, #dcaa48 58%, #f1ca6c 100%);
    box-shadow: 0 8px 28px rgba(168, 32, 42, .38);
    clip-path: none;
    border: 1px solid rgba(255, 232, 174, .65);
    border-radius: 4px;
}
.download-btn:hover { box-shadow: 0 8px 32px rgba(232, 189, 97, .3); }
.players-online { color: var(--theme-green); }
.status-dot, .server-dot.online { background: var(--theme-green); box-shadow: 0 0 10px rgba(117, 211, 154, .6); }
.character-silhouette {
    border-color: var(--theme-gold);
    box-shadow: 0 0 38px rgba(164, 30, 41, .42), 0 0 72px rgba(0, 0, 0, .45), inset 0 0 90px rgba(111, 20, 29, .14);
    filter: contrast(1.08) saturate(.88);
}
.character-silhouette::before { background: linear-gradient(135deg, rgba(161, 25, 38, .2), transparent 54%, rgba(232, 189, 97, .12)); }
.character-silhouette::after { background: linear-gradient(45deg, #8d1725, #e8bd61, #8d1725); }
.free-badge {
    background: linear-gradient(135deg, #f4d889, #d5a344);
    color: #1a1009;
    box-shadow: 0 0 24px rgba(232, 189, 97, .24);
    animation: none;
    border: 1px solid rgba(255, 238, 188, .5);
    clip-path: none;
    border-radius: 3px;
}
.main-container { align-items: start; }
.sidebar-panel, .content-panel {
    background: linear-gradient(155deg, rgba(28, 20, 21, .97), rgba(15, 12, 13, .97));
    border: 1px solid rgba(193, 73, 65, .34);
    border-radius: 5px;
    clip-path: none;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .34);
}
.sidebar-panel::before, .content-panel::before { background: var(--theme-gold); opacity: .72; }
.panel-title {
    color: var(--theme-gold-light);
    border-bottom-color: rgba(232, 189, 97, .32);
    text-shadow: none;
}
.leaderboard-item, .server-item, .news-item, .discord-stat, .screenshot-placeholder {
    background-color: rgba(9, 8, 9, .74);
    border-color: rgba(173, 52, 56, .38);
}
.leaderboard-item { border-left-color: var(--theme-gold); }
.leaderboard-item:hover, .server-item:hover, .news-item:hover {
    background-color: rgba(102, 20, 29, .26);
    border-color: rgba(232, 189, 97, .58);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
    transform: translateY(-1px);
}
.player-name, .server-name, .news-title { color: #fff7e9; }
.player-stats, .server-ping, .news-text, .promo-desc, .footer-text { color: #d1c6b8; }
.rank-badge { color: #f9ebd1; border-color: var(--theme-gold); }
.rank-badge.gold { background: var(--theme-gold); border-color: var(--theme-gold); color: #201309; box-shadow: none; }
.rank-badge.silver { background: #c5c1bb; border-color: #c5c1bb; color: #171515; box-shadow: none; }
.rank-badge.bronze { background: #b98257; border-color: #b98257; color: #17100c; box-shadow: none; }
.sidebar-btn, .login-btn, .promo-btn, .carousel-btn, .social-btn {
    clip-path: none;
    border-radius: 4px;
}
.sidebar-btn {
    color: var(--theme-gold-light);
    border-color: rgba(232, 189, 97, .65);
    background: linear-gradient(135deg, rgba(135, 26, 38, .54), rgba(44, 27, 19, .72));
}
.sidebar-btn:hover { background: linear-gradient(135deg, #e8bd61, #f4d889); color: #1b1008; box-shadow: 0 8px 24px rgba(232, 189, 97, .19); }
.server-item { border-left-color: var(--theme-green); }
.server-dot.maintenance { background: #efaa62; box-shadow: 0 0 10px rgba(239, 170, 98, .45); }
.screenshot-placeholder { border-color: rgba(232, 189, 97, .32); }
.screenshot-text, .stat-number { color: var(--theme-gold-light); text-shadow: 0 0 18px rgba(232, 189, 97, .2); }
.carousel-btn { color: var(--theme-gold-light); background: rgba(12, 9, 9, .82); border-color: var(--theme-gold); }
.carousel-btn:hover { color: #1b1008; background: var(--theme-gold); box-shadow: 0 0 18px rgba(232, 189, 97, .28); }
.dot { border-color: var(--theme-gold); }
.dot.active, .dot:hover { background: var(--theme-gold); box-shadow: 0 0 9px rgba(232, 189, 97, .4); }
.tabs { border-bottom-color: rgba(232, 189, 97, .3); }
.tab-btn { color: #d1c6b8; }
.tab-btn::after { background: var(--theme-gold); box-shadow: 0 0 10px rgba(232, 189, 97, .38); }
.tab-btn.active, .tab-btn:hover { color: var(--theme-gold-light); text-shadow: none; }
.tab-btn.active { background: rgba(126, 27, 35, .36); }
.news-item { border-left-color: var(--theme-blood-bright); }
.news-date, .form-link, .quick-link:hover { color: var(--theme-gold-light); }
.login-panel .form-input {
    color: #fff7e9;
    background: #0d0b0c;
    border-color: rgba(232, 189, 97, .3);
}
.login-panel .form-input:focus { border-color: var(--theme-gold); box-shadow: 0 0 0 3px rgba(232, 189, 97, .12); }
.login-btn { color: #1b1008; background: linear-gradient(135deg, #f1d080, #d5a344); }
.login-btn:hover { box-shadow: 0 7px 20px rgba(232, 189, 97, .24); }
.form-links a, .quick-link { color: #e1d5c5; }
.promo-banner { background: rgba(11, 9, 10, .9); border-radius: 4px; clip-path: none; }
.gold-banner, .battle-pass-banner { border-color: rgba(232, 189, 97, .7); }
.battle-pass-banner:hover, .gold-banner:hover { box-shadow: 0 8px 22px rgba(232, 189, 97, .14); }
.promo-title { color: #fff4de; }
.promo-btn { color: var(--theme-gold-light); border-color: var(--theme-gold); background: rgba(124, 26, 34, .28); }
.promo-btn:hover { color: #1b1008; background: var(--theme-gold); box-shadow: 0 0 14px rgba(232, 189, 97, .22); }
.social-btn { color: var(--theme-gold-light); border-color: rgba(232, 189, 97, .48); background: rgba(12, 10, 10, .82); }
.social-btn:hover { color: #1b1008; border-color: var(--theme-gold); background: var(--theme-gold); box-shadow: 0 7px 18px rgba(232, 189, 97, .18); }
.discord-btn, .twitter-btn, .youtube-btn, .twitch-btn { color: var(--theme-gold-light); border-color: rgba(232, 189, 97, .48); }
.main-footer { background: rgba(10, 8, 9, .96); border-top-color: var(--theme-gold); }
.footer-link { color: var(--theme-gold-light); }

/* Community, forums and gameplay pages */
.community-hero, .forum-hero, .gameplay-section::before {
    background-image: linear-gradient(135deg, rgba(12, 7, 9, .88), rgba(35, 9, 13, .88), rgba(9, 8, 8, .94)),
        radial-gradient(ellipse at 50% 0%, rgba(140, 26, 38, .4), transparent 65%) !important;
}
.community-hero, .forum-hero { border-bottom: 1px solid rgba(232, 189, 97, .42); }
.community-title, .forum-title, .section-title {
    background: linear-gradient(90deg, #fff0bf, #e5b954 48%, #fff0bf);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--theme-gold-light);
    text-shadow: 0 5px 22px rgba(155, 34, 43, .2);
}
.community-sub, .forum-sub { color: #e0d3c4; }
.community-stats, .community-features, .forum-container { color: var(--theme-text); }
.stat-box, .feature-card, .board { background: rgba(18, 14, 15, .94); border-color: rgba(232, 189, 97, .3); border-radius: 5px; }
.stat-box:hover, .feature-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .38), 0 0 20px rgba(148, 27, 38, .16); }
.stat-number, .feature-title, .category-title { color: var(--theme-gold-light); }
.stat-label, .feature-text, .board-desc, .last-post { color: #d0c5b9; }
.join-btn { color: #1b1008; background: linear-gradient(135deg, #f3d486, #d5a344); box-shadow: 0 8px 24px rgba(232, 189, 97, .16); }
.board-row { border-bottom-color: rgba(232, 189, 97, .14); }
.board-row.header { background: rgba(125, 25, 35, .42); color: var(--theme-gold-light); }
.board-row:not(.header):hover { background: rgba(134, 28, 37, .2); }
.board-title { color: #fff4e1; }
.board-stats { color: #e3d8ca; }
.icon { color: var(--theme-gold); }
.icon-list li { border-bottom-color: rgba(232, 189, 97, .15); color: #eee5d8; }
.counter label { color: #d3c8ba; }
.counter span { color: var(--theme-gold-light); }

/* Player dashboard and inventory */
.container .header, .container .card, .container .market-panel,
.market-wrapper, .market-panel, .checker-card, .char-card, .stat-card,
.payment-option, .payment-option.active, .log-item {
    color: var(--theme-text);
    background: linear-gradient(150deg, rgba(30, 20, 21, .98), rgba(14, 11, 12, .98));
    border: 1px solid rgba(199, 67, 61, .34);
    border-radius: 5px;
}
.container .header { box-shadow: 0 14px 38px rgba(0, 0, 0, .4); }
.logo h1 { background: none; -webkit-text-fill-color: var(--theme-gold-light); color: var(--theme-gold-light); }
.logo p, .stat-label, .stat-title, .checker-owner, .item-meta { color: #d0c4b5; }
.container .btn.home { color: #f3d17e; background: rgba(122, 25, 35, .3); border: 1px solid rgba(232, 189, 97, .48); }
.container .btn.home:hover { color: #1b1008; background: var(--theme-gold); }
.container .btn.logout { color: #fff4e6; background: linear-gradient(135deg, #a51e2d, #68131d); border: 1px solid rgba(227, 73, 77, .6); }
.avatar { color: #1b1008; background: radial-gradient(circle at 35% 25%, #f7dd9a, #aa7229 76%); }
.status-offline { color: #c4b8aa; }
.stat, .market-stats .stat-card { background: rgba(8, 7, 8, .62); border: 1px solid rgba(232, 189, 97, .2); }
.stat-value, .stat-value, .market-stats .stat-value { color: #fff0c2; }
.msg-box.success { color: #b8f0cb; background: rgba(35, 107, 63, .18); border-color: rgba(117, 211, 154, .35); }
.msg-box.error { color: #ffd2d0; background: rgba(129, 24, 34, .25); border-color: rgba(220, 53, 69, .42); }
.toast.success { color: #102016; background: #75d39a; }
.toast.error { color: #fff; background: #a91f2d; }
.table-dark th, .table-dark thead th { color: var(--theme-gold-light); background: #261719; }
.table-dark td { color: #f1e9dd; border-color: rgba(232, 189, 97, .15); }

/* Cart */
.card h1, h1, h2, h3 { color: #fff0ce; }
body .card { border-color: rgba(232, 189, 97, .3); }
body .balance, body .summary, body .cart-item { background-color: rgba(9, 8, 9, .72); border-color: rgba(232, 189, 97, .24); }
body .balance .value, body .item-subtotal .amount, body .summary-total span { color: var(--theme-gold-light); }
body .subtitle, body .item-meta, body .item-subtotal .label, body .empty { color: #d0c4b5; }
body .btn-back { color: #f7e4bf; background: #342023; border: 1px solid rgba(232, 189, 97, .28); }
body .btn-remove { color: #fff5ed; background: linear-gradient(135deg, #b22b37, #7f1823); }
body .btn-checkout { color: #1b1008; background: linear-gradient(135deg, #f3d486, #d5a344); }
body .modal-box { background: linear-gradient(145deg, #211718, #0d0a0b); border-color: rgba(232, 189, 97, .34); }
body .modal-icon { color: #1b1008; background: linear-gradient(135deg, #f3d486, #d5a344); box-shadow: 0 0 26px rgba(232, 189, 97, .25); }
body .modal-title { color: var(--theme-gold-light); }
body .modal-message { color: #d0c4b5; }

/* Game utilities */
#wheel { border-color: var(--theme-gold); box-shadow: 0 0 24px rgba(232, 189, 97, .24); }
#wheel::after, #pointer { background-color: var(--theme-gold); }
#pointer { border-top-color: var(--theme-gold); }
.glow { box-shadow: 0 0 40px rgba(232, 189, 97, .2), 0 0 92px rgba(137, 25, 36, .25); }
.center-dot { background: radial-gradient(circle, #fff0c2, #d5a344); box-shadow: 0 0 20px rgba(232, 189, 97, .35); }
.rewardItem { border: 1px solid rgba(232, 189, 97, .14); }
#result, .ok { color: var(--theme-green); }
.gold, .gold-banner { color: var(--theme-gold-light); }

@media (max-width: 900px) {
    .nav-container { height: auto; min-height: 68px; padding-top: 10px; padding-bottom: 10px; gap: 12px; flex-wrap: wrap; }
    .nav-menu { gap: 6px 10px; flex-wrap: wrap; justify-content: flex-end; }
    .nav-link { padding: 8px 10px; font-size: 14px; }
    .hero-section { min-height: 430px; }
    .game-logo { font-size: clamp(42px, 9vw, 68px); letter-spacing: .08em; }
    .free-badge { font-size: 14px; padding: 10px 14px; }
    .character-silhouette { max-width: 48vw; }
    .dashboard { grid-template-columns: 1fr !important; }
    .board-row { grid-template-columns: minmax(150px, 1fr) 64px 64px 100px; padding: 12px 10px; gap: 6px; }
}
@media (max-width: 600px) {
    body { font-size: 15px; }
    .hero-content { flex-direction: column; align-items: flex-start; }
    .hero-left { width: 100%; }
    .hero-right { width: 100%; }
    .character-silhouette { width: 100%; max-width: 100%; height: 320px; min-height: 280px; }
    .free-badge { top: 12px; right: 12px; }
    .download-btn { padding: 15px 22px; font-size: 18px; }
    .nav-container { justify-content: center; }
    .nav-menu { justify-content: center; width: 100%; }
    .main-container { padding: 0 12px; }
    .container { width: 100% !important; padding: 14px !important; }
    .board-row { grid-template-columns: minmax(110px, 1fr) 48px 48px 82px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.gameplay-section .tab-btn { border-color: rgba(232, 189, 97, .48); color: var(--theme-gold-light); background: rgba(14, 10, 11, .78); }
.gameplay-section .tab-btn.active, .gameplay-section .tab-btn:hover { border-color: var(--theme-gold); color: #1b1008; background: linear-gradient(135deg, #f1d080, #d5a344); }

/* Legacy Bootstrap based store pages */
.page-wrapper, .page-body-wrapper, .page-body, .container-fluid, .main-content,
.page-body-wrapper .page-body { color: var(--theme-text); background-color: transparent !important; }
.page-header, .page-header .row, .page-sidebar, .sidebar-wrapper, .sidebar-wrapper .sidebar-link,
.main-header-left, .page-main-header {
    color: var(--theme-text) !important;
    background: #100c0d !important;
    border-color: rgba(232, 189, 97, .28) !important;
}
.page-wrapper .card, .page-wrapper .card-header, .page-wrapper .card-body,
.page-wrapper .card-footer {
    color: var(--theme-text) !important;
    background: linear-gradient(150deg, rgba(30, 20, 21, .98), rgba(14, 11, 12, .98)) !important;
    border-color: rgba(199, 67, 61, .34) !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .3);
}
.page-wrapper h1, .page-wrapper h2, .page-wrapper h3, .page-wrapper h4, .page-wrapper h5,
.page-wrapper .card-header h5 { color: var(--theme-gold-light) !important; }
.page-wrapper .form-control, .page-wrapper .form-select {
    color: var(--theme-text) !important;
    background-color: #100d0e !important;
    border-color: rgba(232, 189, 97, .32) !important;
}
.page-wrapper .btn-primary, .page-wrapper .btn-success, .page-wrapper .btn-info {
    color: #1b1008 !important;
    background: linear-gradient(135deg, #f0cc78, #d9a846) !important;
    border-color: rgba(232, 189, 97, .7) !important;
}
.page-wrapper .table, .page-wrapper .table td { color: var(--theme-text); border-color: rgba(232, 189, 97, .15); }
.page-wrapper .table thead th { color: var(--theme-gold-light); background: #261719; border-color: rgba(232, 189, 97, .22); }
