/*
 * Modern theme: soft glass panels, rounded corners and a calm gold accent,
 * on a banner of Kundun on his throne in Kalima and a background of the abyss of Kalima.
 *
 * Unlike the default theme, it draws panels, buttons and dividers with CSS instead
 * of images, so it overrides a few rules of site.css below the variables.
 *
 * Fonts: Manrope (text and headings) and Cinzel (server name) both have no problem
 * with latin letters; Manrope also has cyrillic ones, Cinzel falls back to Cormorant SC.
 */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Cormorant+SC:wght@600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
    /* Fonts */
    --font-display: "Manrope", "Segoe UI", Arial, sans-serif;
    --font-title: "Cinzel", "Cormorant SC", "Times New Roman", serif;
    --font-body: "Manrope", "Segoe UI", Arial, sans-serif;

    /* Colors */
    --bg-color: #0a090e;
    --text: #d8d4cc;
    --text-muted: #8e8a95;
    --heading: #f3eee4;
    --accent: #e6bf6e;
    --accent-soft: rgb(230 191 110 / .14);
    --link: #e9c57c;
    --link-hover: #ffe2a3;
    --success: #74d68c;
    --danger: #ff7a6e;
    --line: rgb(255 255 255 / .07);
    --line-strong: rgb(230 191 110 / .28);
    --glow: 0 0 18px rgb(230 191 110 / .35);
    --radius: 14px;
    --radius-small: 9px;

    --topbar-bg: rgb(12 11 17 / .72);
    /* Banner: Kundun on his throne in Kalima (images/hero.jpg, 1584x672); keeps Kundun visible on wide screens. */
    --hero-position: center 32%;
    --hero-ratio: 2.357;
    --hero-overlay:
        radial-gradient(ellipse 45% 70% at 50% 45%, rgb(10 9 14 / .45), rgb(10 9 14 / 0) 100%),
        linear-gradient(180deg, rgb(10 9 14 / .1) 0%, rgb(10 9 14 / .3) 60%, rgb(10 9 14 / 0) 100%);
    --panel-bg: linear-gradient(180deg, rgb(28 26 36 / .72), rgb(18 17 24 / .78));
    --input-bg: rgb(0 0 0 / .32);
    --row-alt: rgb(255 255 255 / .025);
    --row-hover: rgb(230 191 110 / .06);

    --btn-text: #1b1407;
    --btn-text-shadow: none;
    --btn-bg: linear-gradient(180deg, #f1d18b, #d4a24d);
    --btn-secondary-text: #f0d08c;
    --btn-secondary-bg: rgb(230 191 110 / .08);

    --item-excellent: #8ee59e;
    --item-ancient: #6fd0f7;
    --item-option: #9dbcff;

    --rank-1: linear-gradient(180deg, #ffe08a, #c9922b);
    --rank-2: linear-gradient(180deg, #eef1f5, #9aa3ad);
    --rank-3: linear-gradient(180deg, #f0b07a, #9c5a2a);

    /* Layout */
    --page-width: 1180px;
    --band-height: 0;
    --divider-space: 0px;
}

/* Images. Paths are relative to this file. */
body { background-image: url("images/background.jpg"); }
.hero { background-image: none; }

/* ---------- Overrides of site.css ---------- */

h1, h2, h3 { letter-spacing: .01em; }

.topbar { border-bottom: 1px solid var(--line); box-shadow: 0 8px 30px rgb(0 0 0 / .35); backdrop-filter: blur(14px) saturate(1.2); }
.brand { font-family: var(--font-title); letter-spacing: .06em; text-shadow: none; }

.nav { gap: 2px; }
.nav > a, .nav-form button {
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: none;
    padding: 7px 14px;
    border: 0;
    border-radius: 999px;
    transition: color .15s, background .15s;
}
.nav > a:hover, .nav-form button:hover { color: var(--heading); background: rgb(255 255 255 / .06); border: 0; }
.nav > a.is-active { color: var(--accent); background: var(--accent-soft); border: 0; }
.nav > a.btn { padding: 7px 16px; color: var(--btn-text); }

.hero { border-bottom: 0; background-color: transparent; }
/* The banner is drawn by ::before, so that only the picture fades into the page background, not the buttons. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("images/hero.jpg") var(--hero-position) / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
    mask-image: linear-gradient(180deg, #000 72%, transparent);
}
@media (max-width: 600px) {
    .hero::before { bottom: auto; height: calc(100vw / var(--hero-ratio)); background-size: 100% auto; background-position: center top; }
    .hero::after { background: linear-gradient(180deg, rgb(10 9 14 / .3) 0%, rgb(10 9 14 / .15) 55%, rgb(10 9 14 / 0) 100%); }
}
.hero-title { font-family: var(--font-title); letter-spacing: .08em; text-shadow: 0 0 30px rgb(230 191 110 / .35), 0 4px 18px rgb(0 0 0 / .85); }
.hero-tagline { font-family: var(--font-body); font-weight: 500; font-size: 1rem; letter-spacing: .28em; color: rgb(243 238 228 / .85); }

.panel {
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-image: none;
    border-radius: var(--radius);
    box-shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 18px 40px rgb(0 0 0 / .38);
    backdrop-filter: blur(12px);
}

.panel-title {
    margin: 0 0 18px;
    padding: 0 0 12px;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-align: left;
    color: var(--heading);
    background: none;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.panel-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 42px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}
.content .panel-title { font-size: 1.05rem; }

.btn, button[type="submit"]:not(.nav-form button) {
    padding: .8em 1.6em;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: none;
    border: 0;
    border-image: none;
    border-radius: var(--radius-small);
    box-shadow: 0 6px 18px rgb(212 162 77 / .22);
    transition: filter .15s, transform .15s, box-shadow .15s;
}
.btn:hover, button[type="submit"]:not(.nav-form button):hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 24px rgb(212 162 77 / .3); }
.btn-secondary, button.btn-secondary[type="submit"]:not(.nav-form button) { box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-secondary:hover, button.btn-secondary[type="submit"]:not(.nav-form button):hover { box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.btn-small { padding: .55em 1.2em; font-size: .8rem; }
.sidebar .btn-block { font-size: .88rem; letter-spacing: .02em; padding-inline: 1.2em; }
.sidebar .btn-block + .btn-block { margin-top: 8px; }

.form label { font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.form input, .form select, .filter-bar input[type="search"], .filter-bar select, .form-inline input {
    border-radius: var(--radius-small);
    border: 1px solid var(--line);
    box-shadow: none;
}
.form input:focus { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }

.table th { font-family: var(--font-body); font-size: .72rem; letter-spacing: .1em; color: var(--text-muted); border-bottom: 1px solid var(--line); }
.table td { border-bottom-color: var(--line); }
.rank { border-radius: 8px; font-family: var(--font-body); }

.status, .wallet-box, .lot-card, .notice, .pager a { border-radius: var(--radius-small); }
.status { border-color: var(--line); }
.news-tag { border-radius: 999px; padding: 2px 10px; font-family: var(--font-body); background: var(--accent-soft); border-color: transparent; }

.lot-card { background: rgb(255 255 255 / .03); border-color: var(--line); }
a.lot-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 12px 28px rgb(0 0 0 / .35); }
.lot-card { transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.item-picture { border-radius: var(--radius-small); background: radial-gradient(circle at 50% 45%, rgb(230 191 110 / .1), transparent 70%); }
.item-name { font-family: var(--font-body); font-weight: 800; }
.sub-title { font-family: var(--font-body); font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-align: left; }
.lot-flag { border-radius: 999px; }

.footer { border-top: 1px solid var(--line); background: rgb(10 9 14 / .7); }
