/* =========================================================================
   Dark Future — retro 2006 crime-MMO theme
   Hand-written to match the original burnt-orange-on-black look.
   ========================================================================= */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #cfcfcf;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 11px;
    line-height: 1.45;
}

a {
    color: #e8853a;
    text-decoration: none;
}
a:hover { text-decoration: underline; }

img { border: 0; }

/* ---- Shell / layout ---------------------------------------------------- */

.df-shell {
    width: 1000px;
    margin: 0 auto;
    background: #050505;
}

/* Header banner --------------------------------------------------------- */
.df-header {
    height: 110px;
    background:
        radial-gradient(120% 160% at 70% 20%, rgba(120, 60, 20, 0.55), rgba(0,0,0,0.9) 60%),
        linear-gradient(180deg, #2a1a12 0%, #140d09 60%, #000 100%);
    border-bottom: 2px solid #c0531f;
    position: relative;
    overflow: hidden;
}
.df-header__title {
    position: absolute;
    left: 0; right: 0;
    top: 18px;
    text-align: center;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 60px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #1a0f08;
    text-shadow:
        0 0 6px rgba(255, 120, 40, 0.9),
        0 0 18px rgba(255, 90, 20, 0.7),
        0 0 40px rgba(255, 70, 10, 0.5),
        2px 2px 2px rgba(0,0,0,0.8);
}
.df-header__title span { color: #2a1810; }

/* Columns --------------------------------------------------------------- */
.df-cols {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 6px;
}
.df-left  { width: 158px; flex: 0 0 158px; }
.df-right { width: 182px; flex: 0 0 182px; }
.df-center { flex: 1 1 auto; min-width: 0; }

/* ---- Orange-titled boxes ---------------------------------------------- */
.box {
    border: 1px solid #3a3a3a;
    background: #141414;
    margin-bottom: 6px;
}
.box__title {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    font-weight: bold;
    color: #fdf1e7;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.55);
    background: linear-gradient(180deg, #e88234 0%, #cf5f1f 55%, #b14d18 100%);
    border-bottom: 1px solid #000;
}
.box__title a, .box__title a:hover {
    color: #fdf1e7;
    text-decoration: none;
}
.box__icon {
    display: inline-block;
    width: 11px;
    height: 11px;
    background: linear-gradient(135deg, #ffd9b0, #b14d18);
    border: 1px solid #6e2f0e;
    flex: 0 0 auto;
}
.box__body { padding: 6px 7px; }

/* Nav lists inside boxes */
.box nav a {
    display: block;
    padding: 1px 0 1px 9px;
    position: relative;
    color: #e8853a;
}
.box nav a::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #7a7a7a;
}
.box nav a:hover { color: #ffae67; }
.box nav .count { color: #9a9a9a; }

/* ---- Left sidebar specifics ------------------------------------------- */
.df-time {
    color: #d8d8d8;
    font-weight: bold;
}
.df-time .df-clock { color: #fff; }

.df-ident__name { font-size: 12px; }
.df-ident__rank { color: #e8853a; }

.df-textbar {
    padding: 4px 7px;
    background: #141414;
    border: 1px solid #3a3a3a;
    margin-bottom: 6px;
    font-size: 10px;
    line-height: 1.7;
}
.df-textbar a { color: #e8853a; }
.df-textbar a:hover { color: #ffae67; }
.df-textbar .sep { color: #4d4d4d; }

/* ---- Center column ----------------------------------------------------- */
.df-message__text {
    padding: 14px 10px;
    text-align: center;
    color: #e6e6e6;
}
.df-message__actions {
    text-align: right;
    padding: 6px;
}

/* Classic beveled grey button */
.btn {
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 11px;
    color: #111;
    background: linear-gradient(180deg, #f6f6f6, #c9c9c9);
    border: 1px solid #7a7a7a;
    border-top-color: #fff;
    border-left-color: #eee;
    padding: 2px 14px;
    cursor: pointer;
}
.btn:hover { background: linear-gradient(180deg, #fff, #d6d6d6); }
.btn:active { border-color: #555; background: #c0c0c0; }

.df-onlinebar {
    text-align: center;
    padding: 7px 4px;
    color: #bdbdbd;
}
.df-onlinebar .filters a { color: #e8853a; }
.df-onlinebar .sep { color: #555; }

.df-online-list {
    padding: 6px 8px 12px;
    text-align: center;
    line-height: 1.9;
    word-spacing: 1px;
}
.df-online-list .grp { color: #6f6f6f; }
.df-online-list .pipe { color: #4d4d4d; padding: 0 2px; }
.df-online-list a { text-decoration: none; }
.df-online-list a:hover { text-decoration: underline; }

/* ---- Right sidebar specifics ------------------------------------------ */
.df-money__amount { color: #9dff7f; font-weight: bold; }

/* ---- Generic content panels (crimes, bank, forms) --------------------- */
.panel { color: #d4d4d4; }
.panel h2 {
    margin: 0 0 8px;
    font-size: 13px;
    color: #ffae67;
}
.panel p { margin: 4px 0; }

table.df-table {
    width: 100%;
    border-collapse: collapse;
    margin: 4px 0;
}
table.df-table th, table.df-table td {
    border: 1px solid #2f2f2f;
    padding: 4px 6px;
    text-align: left;
}
table.df-table th {
    background: #1d1d1d;
    color: #ffae67;
}
table.df-table tr:nth-child(even) td { background: #121212; }

.flash {
    padding: 6px 8px;
    margin-bottom: 6px;
    border: 1px solid #3a3a3a;
}
.flash--ok   { border-color: #2e6e2e; color: #9dff7f; background: #0f1a0f; }
.flash--bad  { border-color: #7a2e2e; color: #ff9d9d; background: #1a0f0f; }

/* ---- Footer ----------------------------------------------------------- */
.df-footer {
    border-top: 1px solid #2a2a2a;
    padding: 5px 8px;
    color: #7a7a7a;
    font-size: 10px;
}

/* ---- Auth pages ------------------------------------------------------- */
.auth-wrap {
    width: 360px;
    margin: 60px auto;
}
.auth-wrap .box__body { padding: 12px 14px; }
.form-row { margin-bottom: 8px; }
.form-row label {
    display: block;
    margin-bottom: 2px;
    color: #cfcfcf;
}
.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 4px 5px;
    background: #0c0c0c;
    border: 1px solid #444;
    color: #eee;
    font-size: 11px;
    font-family: inherit;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { outline: 0; border-color: #cf5f1f; }
.form-error { color: #ff9d9d; margin: 2px 0 0; }
.auth-alt { margin-top: 10px; text-align: center; }
.muted { color: #8a8a8a; }

/* =========================================================================
   Responsive / mobile
   ========================================================================= */

/* Below the fixed desktop width, let the shell fill the screen. */
@media (max-width: 1024px) {
    .df-shell { width: 100%; }
}

/* Phones / small tablets: stack the three columns, content first. */
@media (max-width: 760px) {
    .df-cols { flex-direction: column; align-items: stretch; gap: 6px; }
    .df-left,
    .df-right,
    .df-center {
        width: 100%;
        flex: 1 1 auto;
        min-width: 0;
    }
    .df-center { order: -1; }            /* the page you opened shows first */

    .df-header { height: 78px; }
    .df-header__title { font-size: 40px; top: 18px; }

    /* Wide tables scroll sideways instead of breaking the layout. */
    table.df-table { display: block; overflow-x: auto; white-space: nowrap; }

    /* Roomier tap targets. */
    .btn { padding: 5px 14px; }
    .box nav a { padding: 4px 0 4px 9px; }
    .auth-wrap { width: auto; margin: 24px 10px; }
}

@media (max-width: 420px) {
    body { font-size: 12px; }
    .df-header__title { font-size: 30px; top: 22px; }
}
