/**
 * LUNATICGAMESINC - 2026
 * Demons & Angels
 * "Main Game Styles Version 2.0"
 * Owned and licensed for release from LGI to my friends Susan and DarthMomma.
 */

/* ============================================================
   FILE PURPOSE
   ------------------------------------------------------------
   Canonical production stylesheet for the authenticated player
   game, public authentication screens, shared components, and
   the fail-open shoutbox.

   RELATED FILES
   ------------------------------------------------------------
   /public_html/header.php
   /public_html/footer.php
   /public_html/index.php
   /public_html/login.php
   /public_html/register.php
   /public_html/Mods/*.php
   ============================================================ */

:root {
    color-scheme: dark;
    --bg: #050609;
    --surface: #10131a;
    --surface-2: #181d27;
    --border: #303746;
    --text: #e9edf5;
    --muted: #9ba6b7;
    --demon: #c62f3b;
    --demon-light: #ff5260;
    --angel: #8cc8ff;
    --angel-light: #d9efff;
    --divine: #f0d37b;
    --success: #62c88a;
    --radius: 8px;
    --shadow: 0 14px 34px rgba(0, 0, 0, .45);
    --page-width: 1440px;
}

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

html { min-height: 100%; background: var(--bg); }

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 12% 0, rgba(198, 47, 59, .18), transparent 32rem),
        radial-gradient(circle at 88% 0, rgba(140, 200, 255, .16), transparent 32rem),
        linear-gradient(#090b11, var(--bg) 45%);
    color: var(--text);
    font: 15px/1.55 Inter, "Segoe UI", Arial, sans-serif;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--angel); text-decoration: none; }
a:hover, a:focus-visible { color: var(--angel-light); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .75rem; color: #fff; line-height: 1.2; }
p { margin: 0 0 1rem; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--angel-light); outline-offset: 2px; }

/* Header and alerts */
#gameClock {
    padding: .65rem 1rem;
    color: var(--divine);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    text-shadow: 0 0 14px rgba(240, 211, 123, .55);
}

#banner { padding: 0 1rem; }
#banner img {
    display: block;
    width: min(100%, 1100px);
    max-height: 400px;
    margin: auto;
    border: 1px solid #485267;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: -12px 0 28px rgba(198, 47, 59, .2), 12px 0 28px rgba(140, 200, 255, .2);
}

.event-notice {
    width: min(100% - 2rem, var(--page-width));
    margin: .75rem auto;
    padding: .7rem 1rem;
    border: 1px solid rgba(240, 211, 123, .45);
    border-radius: var(--radius);
    background: rgba(240, 211, 123, .08);
    text-align: center;
}
.event-notice a { color: var(--divine); font-weight: 800; }

/* Main game shell */
#pageWrapper {
    display: flex;
    align-items: flex-start;
    width: min(100% - 2rem, var(--page-width));
    margin: 1.25rem auto 0;
    gap: 1.25rem;
}

#menu {
    position: sticky;
    top: 1rem;
    width: 260px;
    flex: 0 0 260px;
    padding: 1rem;
    border: 1px solid var(--border);
    border-top-color: var(--demon);
    border-bottom-color: var(--angel);
    border-radius: var(--radius);
    background: linear-gradient(rgba(198, 47, 59, .1), var(--surface) 35%, rgba(140, 200, 255, .08));
    box-shadow: var(--shadow);
}
#menu .player-status {
    width: 100% !important;
    max-width: 100%;
    margin: 0 0 1rem !important;
}

/* Keeps legacy inline Player Status markup inside the menu. */
#menu > div:first-child,
#menu > section:first-child {
    width: 100% !important;
    max-width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.menu-divider {
    height: 1px;
    margin: .85rem 0;
    background: linear-gradient(90deg, var(--demon), rgba(240, 211, 123, .6), var(--angel));
    box-shadow: 0 0 8px rgba(140, 200, 255, .12);
}

.menu-divider--staff {
    margin-top: 1rem;
}

#menu a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: .45rem .55rem;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    color: #dce7f3;
    font-weight: 700;
}
#menu a:hover { background: linear-gradient(90deg, rgba(198, 47, 59, .13), rgba(140, 200, 255, .1)); color: #fff; }
#menu a[href*="logout"] { color: var(--demon-light) !important; }

#donatorBox { margin-top: 1rem; text-align: center; }
#donatorBox img { width: 150px; height: 150px; border: 1px solid var(--divine); border-radius: var(--radius); object-fit: cover; }

#content {
    min-width: 0;
    min-height: 600px;
    flex: 1;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(198, 47, 59, .04), var(--surface) 45%, rgba(140, 200, 255, .04));
    box-shadow: var(--shadow);
}
.pageWrapper { width: 100%; min-height: 55vh; }
.staffMenuWrapper { clear: both; margin-top: 1.5rem; }

.home-hero { max-width: 760px; margin: 2rem auto; padding: clamp(1.5rem, 4vw, 3rem); text-align: center; }
.home-hero__eyebrow { margin-bottom: .6rem; color: var(--divine); font-size: .8rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.home-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.home-hero__intro { max-width: 560px; margin: 0 auto 1.5rem; color: var(--muted); font-size: 1.05rem; }
.home-hero__button { display: inline-flex; align-items: center; gap: .6rem; padding: .75rem 1.2rem; border: 1px solid #6c7890; border-radius: 6px; background: linear-gradient(135deg, #7c2631, #303947 52%, #467da8); color: #fff; font-weight: 800; }
.home-hero__button:hover { color: #fff; filter: brightness(1.15); }

/* Player dashboard adapted from the Mafia Hitters homepage. */
.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(110deg, rgba(198, 47, 59, .14), var(--surface-2) 48%, rgba(140, 200, 255, .13));
}
.dashboard-hero__eyebrow { margin-bottom: .35rem; color: var(--divine); font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.dashboard-hero h1 { margin-bottom: .35rem; }
.dashboard-hero p:last-child { margin: 0; color: var(--muted); }
.dashboard-action { flex: 0 0 auto; padding: .7rem 1rem; border: 1px solid #6c7890; border-radius: 5px; background: linear-gradient(135deg, #7c2631, #303947 52%, #467da8); color: #fff; font-weight: 800; }
.dashboard-action:hover { color: #fff; filter: brightness(1.15); }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.dashboard-panel { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.dashboard-panel h2 { margin: 0; padding: .75rem 1rem; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(198, 47, 59, .12), rgba(140, 200, 255, .1)); font-size: 1rem; }
.dashboard-list { margin: 0; padding: .5rem 1rem; }
.dashboard-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.dashboard-list div:last-child { border-bottom: 0; }
.dashboard-list dt { color: var(--muted); font-weight: 700; }
.dashboard-list dd { margin: 0; color: #fff; font-weight: 800; text-align: right; }
.dashboard-panel--path { grid-column: 1 / -1; }
.dashboard-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; padding: 1rem; }
.dashboard-links a { padding: .7rem; border: 1px solid var(--border); border-radius: 5px; background: #0b0e14; color: var(--text); font-weight: 800; text-align: center; }
.dashboard-links a:hover { border-color: var(--angel); background: rgba(140, 200, 255, .08); color: #fff; }

.player-status { padding: .65rem; border: 1px solid var(--border); border-radius: 6px; background: rgba(0, 0, 0, .22); }
.player-status__title { display: block; margin-bottom: .55rem; color: var(--angel-light); text-align: center; }
.player-status__label { display: block; margin-top: .35rem; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.player-status__track { overflow: hidden; height: 7px; border-radius: 999px; background: #050609; }
.player-status__fill { display: block; height: 100%; }
.player-status__fill--hp { background: var(--demon-light); }
.player-status__fill--energy { background: #59d681; }
.player-status__fill--will { background: var(--angel); }
.player-status__fill--brave { background: #bb78f0; }
.player-status__fill--exp { background: var(--divine); }

.staff-nav { padding: .8rem; border: 1px solid rgba(240, 211, 123, .35); border-radius: var(--radius); background: rgba(240, 211, 123, .05); }
.staff-nav__title { display: block; margin-bottom: .6rem; color: var(--divine); }
.staff-nav__links { display: flex; flex-wrap: wrap; gap: .4rem; }
.staff-nav__links a { padding: .35rem .6rem; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-2); color: var(--text); font-size: .85rem; }

#menu .staff-nav {
    padding: .65rem;
}

#menu .staff-nav__title {
    color: var(--divine);
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#menu .staff-nav__links {
    display: block;
}

#menu .staff-nav__links a {
    display: flex;
    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: .35rem .45rem;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    border-radius: 0;
    background: transparent;
    font-size: .78rem;
}

/* Reusable panels */
.card, .panel, .contentBox, .game-panel {
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
}
.card-header, .panel-heading, .contentBoxTitle, .game-panel__header {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, rgba(198, 47, 59, .14), rgba(140, 200, 255, .12));
    color: #fff;
    font-weight: 800;
}
.card-body, .panel-body, .contentBoxBody, .game-panel__body { padding: 1rem; }

/* Tables */
table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); background: var(--surface); }
th, td { padding: .7rem .8rem; border-bottom: 1px solid var(--border); text-align: left; }
th { background: #1a1f29; color: var(--angel-light); font-size: .8rem; text-transform: uppercase; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }
tbody tr:hover { background: rgba(140, 200, 255, .06); }

/* Forms and buttons */
label { display: inline-block; margin-bottom: .35rem; color: var(--muted); font-weight: 700; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], select, textarea {
    width: 100%;
    padding: .65rem .75rem;
    border: 1px solid #414a5c;
    border-radius: 5px;
    background: #090c12;
    color: var(--text);
}
input:focus, select:focus, textarea:focus { border-color: var(--angel); box-shadow: 0 0 0 3px rgba(140, 200, 255, .12); outline: 0; }

button, .button, .btn, input[type="submit"], input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: .55rem 1rem;
    border: 1px solid #6c7890;
    border-radius: 5px;
    background: linear-gradient(135deg, #7c2631, #303947 52%, #467da8);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
button:hover, .button:hover, .btn:hover, input[type="submit"]:hover, input[type="button"]:hover { filter: brightness(1.15); }

.alert, .gameNotice, .module-error {
    margin: 1rem 0;
    padding: .8rem 1rem;
    border: 1px solid var(--border);
    border-left: 4px solid var(--angel);
    border-radius: 5px;
    background: var(--surface-2);
}
.alert-danger, .module-error { border-left-color: var(--demon-light); color: #ffb0b7; }
.alert-success { border-left-color: var(--success); }

progress, .progress { overflow: hidden; width: 100%; height: .7rem; border: 0; border-radius: 999px; background: #06080c; }
progress::-webkit-progress-bar { background: #06080c; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--demon), var(--angel)); }
progress::-moz-progress-bar { background: var(--angel); }

/* Shoutbox */
#rightShoutbox {
    position: fixed;
    z-index: 9999;
    top: auto;
    right: 16px;
    bottom: 16px;
    width: min(380px, calc(100vw - 20px));
    max-height: calc(100vh - 32px);
    border: 1px solid #59657a;
    border-top: 2px solid var(--demon);
    border-bottom: 2px solid var(--angel);
    background: #0d1016;
    box-shadow: var(--shadow);
}
#shoutboxHeader { display: flex; justify-content: space-between; padding: .7rem; background: linear-gradient(90deg, #531922, #1b202a 50%, #244c6c); cursor: pointer; }
#shoutboxToggle { padding: .3rem .55rem; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .3); }
#shoutboxContent {
    overflow-y: auto;
    max-height: calc(100vh - 88px);
    padding: .7rem;
}
#emojiBar { overflow-x: auto; margin-bottom: .7rem; padding: .5rem; border: 1px solid var(--border); background: #171b24; font-size: 1.4rem; white-space: nowrap; cursor: pointer; }
#shoutboxMessages { overflow-y: auto; height: 350px; padding: .65rem; border: 1px solid var(--border); background: #06080c; }
#shoutText, #sendBtn { width: 100%; margin-top: .7rem; }

.site-footer { width: 100%; padding: 1.25rem; color: var(--muted); font-weight: 700; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Tablet and mobile */
@media (max-width: 900px) {
    #pageWrapper { width: calc(100% - 1rem); gap: .75rem; }
    #menu { width: 230px; flex-basis: 230px; }
    #rightShoutbox { top: auto; right: .5rem; bottom: .5rem; }
}

@media (max-width: 640px) {
    body { font-size: 14px; }
    #pageWrapper { display: block; }
    #menu { position: static; width: 100%; margin-bottom: .75rem; }
    #menu a { display: inline-flex; width: calc(50% - .2rem); }
    #content { min-height: 0; padding: .75rem; }
    .dashboard-hero { display: block; }
    .dashboard-action { display: inline-flex; margin-top: 1rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-panel--path { grid-column: auto; }
    .dashboard-links { grid-template-columns: repeat(2, 1fr); }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { min-width: 560px; }
    button, .button, .btn, input[type="submit"], input[type="button"] { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================================
   PRODUCTION NAVIGATION / NOTICES
   ============================================================ */

#menu a[aria-current="page"] {
    border-color: rgba(140, 200, 255, .22);
    background: linear-gradient(90deg, rgba(198, 47, 59, .13), rgba(140, 200, 255, .1));
    color: #fff;
}

.menu-mail-indicator {
    margin-left: auto;
    color: var(--demon-light);
    font-size: .8rem;
    text-shadow: 0 0 8px rgba(255, 82, 96, .8);
}

.staff-entry-link { color: var(--divine) !important; }
.logout-link { color: var(--demon-light) !important; }

.game-notice {
    width: min(100% - 2rem, var(--page-width));
    margin: .75rem auto;
    padding: .75rem 1rem;
    border: 1px solid var(--border);
    border-left: 4px solid var(--angel);
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--text);
    text-align: center;
}

.game-notice--reward {
    border-left-color: var(--divine);
    color: #f6e4a8;
}

.game-notice--welcome { border-left-color: var(--success); }
.dashboard-links--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.federal-jail-hero { border-color: rgba(198, 47, 59, .55); }

/* ============================================================
   PUBLIC AUTHENTICATION
   ============================================================ */

.auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 18% 10%, rgba(198, 47, 59, .22), transparent 34rem),
        radial-gradient(circle at 82% 10%, rgba(140, 200, 255, .18), transparent 34rem),
        linear-gradient(180deg, #090b11, #030407 70%);
}

.auth-shell {
    width: min(100%, 480px);
}

.auth-shell--wide { width: min(100%, 760px); }

.auth-card {
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--border);
    border-top-color: var(--demon);
    border-bottom-color: var(--angel);
    border-radius: 12px;
    background: rgba(13, 16, 22, .94);
    box-shadow: var(--shadow);
}

.auth-logo {
    display: block;
    width: min(100%, 620px);
    max-height: 220px;
    margin: 0 auto 1.25rem;
    border-radius: 8px;
    object-fit: cover;
}

.auth-eyebrow {
    margin: 0 0 .35rem;
    color: var(--divine);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-align: center;
    text-transform: uppercase;
}

.auth-card h1 { text-align: center; }
.auth-copy { color: var(--muted); text-align: center; }

.auth-form {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.auth-form label { margin: 0; }
.auth-form button { margin-top: .35rem; }

.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.race-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
    margin: .5rem 0;
    padding: .85rem;
    border: 1px solid var(--border);
    border-radius: 7px;
}

.race-grid legend {
    padding: 0 .4rem;
    color: var(--divine);
    font-weight: 800;
}

.race-card {
    display: grid;
    gap: .35rem;
    margin: 0;
    padding: .75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #0b0e14;
    cursor: pointer;
}

.race-card:hover { border-color: var(--angel); }
.race-card strong { color: #fff; }
.race-card span { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.race-card input { width: auto; }

/* ============================================================
   FAIL-OPEN SHOUTBOX DETAIL STYLES
   ============================================================ */

#rightShoutbox { pointer-events: none; }
#rightShoutbox #shoutboxHeader,
#rightShoutbox #shoutboxContent { pointer-events: auto; }

#rightShoutbox #shoutboxMessages {
    overflow-y: auto;
    height: 350px;
    padding: .65rem;
    border: 1px solid var(--border);
    background: #06080c;
    scroll-behavior: smooth;
}

#rightShoutbox #shoutText {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: .7rem;
    pointer-events: auto;
    user-select: text;
}

#rightShoutbox #emojiBar {
    overflow-x: auto;
    margin-top: .45rem;
    margin-bottom: 0;
    padding: .45rem .5rem;
    border: 1px solid var(--border);
    background: #171b24;
    font-size: 1.25rem;
    white-space: nowrap;
    cursor: pointer;
}

#rightShoutbox #emojiBar span {
    display: inline-block;
    padding: .08rem .12rem;
    border-radius: 4px;
}

#rightShoutbox #emojiBar span:hover { background: rgba(140, 200, 255, .10); }
#rightShoutbox #sendBtn { width: 100%; margin-top: .55rem; }

#rightShoutbox #shoutboxNotice {
    margin-top: .55rem;
    padding: .5rem .6rem;
    border: 1px solid rgba(240, 211, 123, .35);
    border-radius: 5px;
    background: rgba(240, 211, 123, .07);
    color: var(--divine);
    font-size: .78rem;
    line-height: 1.4;
}

#rightShoutbox #shoutboxNotice.is-error {
    border-color: rgba(255, 82, 96, .45);
    background: rgba(198, 47, 59, .10);
    color: #ffadb4;
}

#rightShoutbox .shoutbox-message {
    padding: .36rem 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

#rightShoutbox .shoutbox-message:last-child { border-bottom: 0; }

#rightShoutbox .shoutbox-message-line {
    color: #e9edf5;
    font-size: .88rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

#rightShoutbox .shoutbox-message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    margin-top: .12rem;
}

#rightShoutbox .shoutbox-message-time { color: var(--muted); font-size: .62rem; }
#rightShoutbox .shoutbox-actions { display: inline-flex; align-items: center; gap: .3rem; }

#rightShoutbox .shoutbox-mini-action {
    padding: 0;
    border: 0;
    background: transparent;
    color: #7f8998;
    font: inherit;
    font-size: .62rem;
    cursor: pointer;
}

#rightShoutbox .shoutbox-mini-action:hover {
    color: #e0e5ee;
    text-decoration: underline;
}

#rightShoutbox .shoutbox-hidden-message { color: #9ca6b5; font-size: .82rem; opacity: .85; }
#rightShoutbox .shoutbox-system-message { padding: .6rem; color: var(--muted); text-align: center; }

@media (max-width: 720px) {
    .race-grid { grid-template-columns: 1fr; }
    .dashboard-links--two { grid-template-columns: 1fr; }
}

/* ============================================================
   LUNATICGAMESINC - 2026
   DEMONS & ANGELS — ECONOMY / BANK / SHOP COMPONENTS
   Phase 2 production additions.
   ============================================================ */

.economy-page {
    display: grid;
    gap: 1rem;
}

.economy-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(115deg, rgba(198, 47, 59, .13), var(--surface-2) 48%, rgba(140, 200, 255, .12));
}

.economy-hero--diamond {
    background: linear-gradient(115deg, rgba(140, 200, 255, .13), var(--surface-2) 50%, rgba(240, 211, 123, .1));
}

.economy-hero--compact {
    min-height: 125px;
}

.economy-eyebrow {
    margin: 0 0 .35rem;
    color: var(--divine);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.economy-hero h1 {
    margin-bottom: .35rem;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.economy-hero p:last-child {
    margin: 0;
    color: var(--muted);
}

.economy-hero-image {
    width: min(280px, 32vw);
    max-height: 150px;
    border: 1px solid var(--border);
    border-radius: 7px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.economy-hero-image--small {
    width: min(170px, 28vw);
}

.economy-balance-grid,
.economy-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.economy-balance-card {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #0b0f15;
}

.economy-balance-card span,
.economy-balance-card strong {
    display: block;
}

.economy-balance-card span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.economy-balance-card strong {
    margin-top: .3rem;
    color: var(--angel-light);
    font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.economy-form {
    display: grid;
    gap: .65rem;
}

.economy-form--inline {
    max-width: 320px;
}

.economy-single-panel {
    margin: 0;
}

.economy-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.economy-table-group th {
    background: linear-gradient(90deg, rgba(198, 47, 59, .13), rgba(140, 200, 255, .1));
    color: var(--divine);
}

.economy-item-name {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 150px;
}

.economy-item-name img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #07090d;
    object-fit: cover;
}

.economy-buy-form {
    display: grid;
    grid-template-columns: 72px auto;
    gap: .45rem;
    min-width: 155px;
}

.economy-buy-form input[type="number"] {
    min-width: 0;
}

.economy-purchase-result {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.economy-purchase-result h2 {
    margin-bottom: .4rem;
}

.economy-purchase-image {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #07090d;
    object-fit: cover;
}

@media (max-width: 760px) {
    .economy-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .economy-hero-image,
    .economy-hero-image--small {
        width: 100%;
        max-height: 200px;
    }

    .economy-balance-grid,
    .economy-action-grid {
        grid-template-columns: 1fr;
    }

    .economy-purchase-result {
        align-items: flex-start;
    }
}
