/* ============================================================
   Olderion Portal — classic official Tibia website aesthetic
   ============================================================ */

:root {
    --bg-abyss: #11100c;
    --bg-main: #d8c39a;
    --bg-panel: #e1cda5;
    --bg-panel-accent: #ccb484;
    --bg-panel-hover: #ead9b8;

    --parchment: #ddc99f;
    --parchment-light: #eadbbd;
    --parchment-dark: #b99c69;
    --parchment-ink: #2d241a;

    --wood-dark: #20150d;
    --wood: #4c2c18;
    --wood-light: #76502d;
    --stone: #514c40;
    --stone-dark: #24221c;
    --menu-blue: #304b5b;
    --menu-blue-light: #547285;

    --gold: #8a5b11;
    --gold-bright: #f1c85a;
    --gold-dim: #a47a29;
    --gold-glow: rgba(248, 203, 84, 0.28);

    --blood: #7c1b12;
    --blood-bright: #a93021;

    --text-main: #30271d;
    --text-dim: #6d5a42;
    --text-bright: #20170f;

    --border-dark: #705636;
    --border-gold: #a67a2a;

    --success: #347126;
    --success-bright: #53a238;
    --danger: #8b2419;
    --danger-bright: #b33a2b;

    --shadow-heavy: 0 10px 28px rgba(0, 0, 0, 0.7);
    --shadow-panel:
        0 0 0 1px #110d09,
        0 0 0 3px #6b5b43,
        0 0 0 4px #17130d,
        0 6px 18px rgba(0, 0, 0, 0.55);

    --font-heading: Georgia, "Times New Roman", serif;
    --font-body: Verdana, Arial, Helvetica, sans-serif;
}

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

html {
    min-height: 100%;
    background: #0d0d0a;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    background:
        linear-gradient(180deg, rgba(5, 7, 5, 0.04), rgba(5, 6, 4, 0.58) 72%, #0b0c09 100%),
        url("/images/olderion-fantasy-background.png") center top / cover fixed no-repeat,
        #10110d;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 25%, transparent 75%, rgba(0, 0, 0, 0.3)),
        radial-gradient(ellipse at center top, transparent 30%, rgba(4, 5, 3, 0.26) 100%);
}

::selection {
    color: #fff7da;
    background: #7a301d;
}

a {
    color: #70410a;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #9a1e14;
    text-decoration: underline;
}

img {
    max-width: 100%;
}

/* Masthead -------------------------------------------------- */

.site-masthead {
    width: min(1240px, calc(100% - 24px));
    min-height: 138px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 18px 24px 14px;
    background:
        linear-gradient(180deg, rgba(18, 16, 12, 0.08), rgba(15, 11, 7, 0.88)),
        radial-gradient(ellipse at 25% 100%, rgba(128, 75, 27, 0.38), transparent 56%);
}

.site-masthead::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 10px;
    border: 1px solid #17120d;
    border-radius: 2px;
    background:
        linear-gradient(180deg, #79674c, #29241c 24%, #4e493b 50%, #1b1813 74%, #0c0b09);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
}

.masthead-inner {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    padding-bottom: 10px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #f0bd40;
    text-decoration: none;
    filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.85));
}

.site-logo:hover {
    color: #ffda70;
    text-decoration: none;
}

.site-logo-rune {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    flex: 0 0 62px;
    color: #e7bc4d;
    font: 700 38px/1 Georgia, serif;
    border: 3px ridge #8e6d2c;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #7d2b1d, #32120d 58%, #120908 100%);
    box-shadow:
        inset 0 0 0 3px #26140c,
        inset 0 0 12px #050302,
        0 0 0 2px #17100a,
        0 4px 8px #000;
    text-shadow: 1px 2px 0 #331307, 0 0 6px #f1b83c;
}

.site-logo-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.site-logo-copy strong {
    color: #e7ad30;
    font: 700 clamp(34px, 5vw, 54px)/0.9 Georgia, "Times New Roman", serif;
    letter-spacing: -2px;
    text-transform: uppercase;
    text-shadow:
        2px 2px 0 #40100a,
        -1px -1px 0 #ffe299,
        0 4px 2px #000;
}

.site-logo-copy small {
    margin-top: 8px;
    color: #d6c398;
    font: italic 12px/1 Georgia, serif;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px #000;
}

.masthead-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 7px;
    padding: 4px;
    border: 1px solid #18120d;
    border-radius: 3px;
    background: rgba(20, 14, 9, 0.88);
    box-shadow: inset 0 0 0 1px #57442d, 0 2px 7px #000;
}

.masthead-actions a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 5px 9px;
    color: #d8c79e;
    font: 700 10px/1 var(--font-body);
    text-transform: uppercase;
    border-right: 1px solid #4d3a25;
    text-shadow: 1px 1px 1px #000;
}

.masthead-actions a:last-child {
    border-right: 0;
}

.masthead-actions a:hover {
    color: #ffd56c;
    text-decoration: none;
}

.mobile-navigation-toggle {
    width: min(1240px, calc(100% - 24px));
    margin: 0 auto 8px;
    padding: 9px 14px;
    color: #f4d98c;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid #17130f;
    border-radius: 2px;
    background: linear-gradient(#425d6e, #263e4d);
    box-shadow: inset 0 0 0 1px #718696, 0 3px 7px rgba(0, 0, 0, 0.65);
}

/* Three-column official portal shell ----------------------- */

.site-shell {
    width: min(1240px, calc(100% - 24px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 184px minmax(0, 1fr) 204px;
    align-items: start;
    gap: 9px;
}

.site-left,
.site-right {
    min-width: 0;
}

.tibia-menu,
.side-box {
    margin-bottom: 10px;
    border: 1px solid #0b0907;
    border-radius: 2px;
    background: #251a11;
    box-shadow:
        inset 0 0 0 2px #62533e,
        inset 0 0 0 3px #17120d,
        0 5px 12px rgba(0, 0, 0, 0.62);
}

.tibia-menu {
    padding: 5px;
}

.menu-group {
    margin: 0 0 6px;
}

.menu-group:last-child {
    margin-bottom: 0;
}

.menu-group h2,
.side-box h2 {
    min-height: 27px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    color: #f0d37b;
    font: 700 12px/1.2 Georgia, "Times New Roman", serif;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 1px #000;
    border: 1px solid #17222a;
    border-radius: 1px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent 45%),
        linear-gradient(180deg, var(--menu-blue-light), var(--menu-blue) 48%, #1d3442);
    box-shadow:
        inset 0 0 0 1px rgba(181, 209, 221, 0.2),
        0 1px 2px #000;
}

.menu-group h2 i,
.side-box h2 i {
    color: #d4aa47;
    font-size: 11px;
}

.menu-group > a {
    position: relative;
    display: block;
    min-height: 24px;
    padding: 5px 7px 5px 20px;
    color: #cbbd9d;
    font-size: 11px;
    line-height: 1.25;
    text-shadow: 1px 1px 1px #080604;
    border-bottom: 1px solid #4b3725;
    background:
        linear-gradient(90deg, rgba(135, 84, 38, 0.18), transparent 70%),
        #2e2015;
}

.menu-group > a::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 8px;
    width: 5px;
    height: 5px;
    transform: rotate(45deg);
    border: 1px solid #d19f3d;
    background: #5c3719;
}

.menu-group > a:last-child {
    border-bottom: 0;
}

.menu-group > a:hover,
.menu-group > a:focus,
.menu-group > a.active {
    color: #ffe390;
    text-decoration: none;
    background:
        linear-gradient(90deg, rgba(146, 40, 21, 0.56), rgba(70, 31, 17, 0.24)),
        #3a2417;
}

.menu-group > a.active::before {
    border-color: #ffe28a;
    background: #b13e20;
    box-shadow: 0 0 5px #d46b2d;
}

.content-stage {
    width: 100%;
    min-width: 0;
    min-height: 720px;
    position: relative;
    border: 1px solid #18120c;
    border-radius: 2px;
    background:
        linear-gradient(rgba(231, 215, 178, 0.92), rgba(215, 193, 148, 0.95)),
        repeating-linear-gradient(0deg, transparent 0 5px, rgba(99, 68, 35, 0.025) 5px 6px);
    box-shadow: var(--shadow-panel);
}

.content-stage::before,
.content-stage::after {
    content: "";
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.content-stage::before {
    inset: 5px;
    border: 1px solid rgba(107, 78, 40, 0.42);
}

.content-stage::after {
    top: 7px;
    right: 7px;
    left: 7px;
    height: 4px;
    background: linear-gradient(90deg, #4d321d, #a1773a 25%, #4d321d 50%, #a1773a 75%, #4d321d);
    box-shadow: 0 1px 0 rgba(255, 240, 194, 0.6);
}

.content-stage > main.container {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 26px 22px 30px;
    position: relative;
    z-index: 1;
}

.flash-stack {
    position: relative;
    z-index: 3;
    padding: 20px 22px 0;
}

.flash-stack:empty {
    display: none;
}

.flash-stack .alert {
    margin-bottom: 8px;
}

/* Right column --------------------------------------------- */

.side-box {
    padding: 5px;
}

.side-box-body {
    padding: 10px 9px;
    color: #c9bb99;
    font-size: 11px;
    background:
        radial-gradient(circle at 50% 0, rgba(129, 74, 29, 0.22), transparent 55%),
        #2c1e14;
}

.side-box-body p {
    margin: 0 0 9px;
}

.side-box-body strong {
    color: #f0dca5;
}

.side-box-body small {
    display: block;
    color: #a99776;
}

.side-box-kicker {
    display: block;
    color: #9d8c6a;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.account-name {
    display: block;
    margin: 2px 0 9px;
    font: 700 16px/1.2 Georgia, serif;
}

.official-button {
    display: block;
    margin: 8px 0;
    padding: 7px 8px;
    color: #fff4c8 !important;
    font: 700 10px/1.2 var(--font-body);
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    text-shadow: 1px 1px 1px #111;
    border: 1px solid #130e09;
    border-radius: 3px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.45),
        0 2px 3px rgba(0, 0, 0, 0.5);
}

.official-button:hover {
    filter: brightness(1.12);
}

.official-button-gold {
    background: linear-gradient(#a57526, #6c4514);
}

.official-button-green {
    background: linear-gradient(#5b9938, #2f671f);
}

.side-text-link {
    display: block;
    margin-top: 5px;
    color: #d9bc73;
    font-size: 10px;
}

.side-text-link::before {
    content: "› ";
    color: #a83421;
    font-weight: 700;
}

.play-box .side-box-body {
    background:
        radial-gradient(circle at 50% 26%, rgba(150, 50, 25, 0.42), transparent 38%),
        linear-gradient(#3a2517, #21170f);
}

.play-emblem {
    width: 64px;
    height: 64px;
    margin: 2px auto 8px;
    display: grid;
    place-items: center;
    color: #e5bd55;
    font-size: 28px;
    border: 3px ridge #8e6a2d;
    border-radius: 50%;
    background: radial-gradient(circle, #79261c, #2b0f0c 68%);
    box-shadow: inset 0 0 10px #100604, 0 2px 5px #000;
}

.play-box strong {
    display: block;
    font: 700 14px/1.2 Georgia, serif;
}

.server-state {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    padding-bottom: 8px;
    border-bottom: 1px solid #4f3825;
}

.status-lamp,
.status-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    flex: 0 0 9px;
    border: 1px solid #163b12;
    border-radius: 50%;
    background: #51a93b;
    box-shadow: 0 0 6px rgba(84, 188, 55, 0.78);
}

.status-lamp.offline {
    border-color: #5b1712;
    background: #aa2d22;
    box-shadow: 0 0 6px rgba(190, 45, 34, 0.65);
}

.server-state strong,
.server-state small {
    display: block;
}

.server-facts {
    margin: 0;
}

.server-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 0;
}

.server-facts dt {
    color: #958466;
    font-weight: 400;
}

.server-facts dd {
    margin: 0;
    color: #dfc984;
    text-align: right;
}

.side-links {
    padding: 5px 8px;
}

.side-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 2px;
    color: #cdbc97;
    border-bottom: 1px solid #4a3523;
}

.side-links a:last-child {
    border-bottom: 0;
}

.side-links a:hover {
    color: #f3d57e;
    text-decoration: none;
}

.side-links i {
    width: 14px;
    color: #b58a35;
    text-align: center;
}

/* Typography and page headings ----------------------------- */

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: #3d2113;
    font-family: var(--font-heading);
    font-weight: 700;
}

h1,
.h1 {
    font-size: clamp(24px, 4vw, 32px);
}

h2,
.h2 {
    font-size: 24px;
}

h3,
.h3 {
    font-size: 19px;
}

h4,
.h4 {
    font-size: 17px;
}

h5,
.h5 {
    font-size: 15px;
}

.display-1,
.display-4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.lead {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.45;
}

.page-kicker {
    margin-bottom: 3px;
    color: #88632a;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.page-title {
    display: inline-block;
    margin: 0;
    color: #552617;
    font-family: var(--font-heading);
    text-shadow: 0 1px 0 #fff0c8;
}

.ornament {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 0;
    color: #835f26;
    font: 700 9px/1 var(--font-body);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ornament::before,
.ornament::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, #8e6a35, transparent);
}

hr {
    border-color: #96754c;
    opacity: 0.55;
}

code {
    padding: 2px 5px;
    color: #6b180f;
    font-size: 0.92em;
    border: 1px solid #aa8a5c;
    border-radius: 2px;
    background: #f0dfba;
}

/* Hero and homepage ----------------------------------------- */

.hero-portal,
.hero-card {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid #2b1c11;
    border-radius: 2px;
    background:
        linear-gradient(90deg, rgba(32, 17, 10, 0.98), rgba(60, 30, 17, 0.92) 57%, rgba(34, 21, 13, 0.84)),
        radial-gradient(circle at 82% 40%, rgba(184, 114, 37, 0.46), transparent 38%);
    box-shadow:
        inset 0 0 0 3px #87683f,
        inset 0 0 0 5px #1f150e,
        0 4px 9px rgba(0, 0, 0, 0.38);
}

.hero-portal::before {
    content: "O";
    position: absolute;
    right: 5%;
    top: 50%;
    width: 190px;
    height: 190px;
    display: grid;
    place-items: center;
    transform: translateY(-50%) rotate(-7deg);
    color: rgba(224, 175, 65, 0.16);
    font: 700 130px/1 Georgia, serif;
    border: 8px double rgba(196, 148, 58, 0.13);
    border-radius: 50%;
}

.hero-portal::after {
    content: "";
    position: absolute;
    inset: 7px;
    pointer-events: none;
    border: 1px solid rgba(233, 194, 108, 0.22);
}

.hero-content {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 690px;
    padding: clamp(30px, 5vw, 52px);
}

.hero-content p {
    overflow-wrap: anywhere;
}

.hero-portal .page-kicker,
.hero-portal .text-muted {
    color: #cbb482 !important;
}

.hero-portal .page-title,
.hero-portal h1 {
    color: #e5b746;
    text-shadow: 2px 2px 0 #2d0d08, 0 0 10px rgba(237, 178, 51, 0.18);
}

.hero-portal p,
.hero-portal .lead {
    color: #e5d8b9 !important;
}

.hero-portal code {
    color: #ffdd7c;
    border-color: #75512b;
    background: rgba(15, 9, 6, 0.6);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 7px;
}

.metric-tile {
    min-height: 80px;
    padding: 12px 10px;
    color: #302318;
    text-align: center;
    border: 1px solid #77562f;
    border-radius: 2px;
    background:
        linear-gradient(rgba(255, 244, 211, 0.45), transparent),
        #cdb27d;
    box-shadow: inset 0 0 0 2px rgba(255, 239, 196, 0.42), 0 2px 4px rgba(73, 42, 21, 0.24);
}

a.metric-tile:hover {
    color: #681b11;
    text-decoration: none;
    background-color: #dbc391;
}

.metric-value,
.stat-glow {
    display: block;
    color: #6f2114;
    font: 700 24px/1.1 Georgia, "Times New Roman", serif;
    text-shadow: 0 1px 0 #f5e5bd;
}

.metric-label {
    display: block;
    margin-top: 7px;
    color: #624b31;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

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

.feature-link {
    min-height: 84px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px;
    color: var(--text-main);
    border: 1px solid #9b7b4d;
    border-radius: 2px;
    background: rgba(247, 230, 191, 0.48);
}

.feature-link:hover {
    color: #6c1f12;
    text-decoration: none;
    border-color: #755020;
    background: rgba(255, 240, 205, 0.72);
}

.feature-link i {
    color: #7f2717;
    font-size: 18px;
}

.feature-link strong {
    display: block;
    color: #542417;
    font: 700 13px/1.25 Georgia, serif;
}

.feature-link span {
    display: block;
    margin-top: 3px;
    color: #69583e;
    font-size: 10px;
}

/* Cards ----------------------------------------------------- */

.card {
    overflow: hidden;
    color: var(--text-main);
    border: 1px solid #684b2b;
    border-radius: 2px;
    background:
        linear-gradient(rgba(239, 220, 181, 0.92), rgba(216, 193, 148, 0.92)),
        var(--parchment);
    box-shadow:
        inset 0 0 0 2px rgba(255, 241, 207, 0.52),
        0 2px 5px rgba(61, 35, 18, 0.28);
}

.card:hover {
    border-color: #58371d;
}

.card-header {
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 7px 11px;
    color: #f2dfa7 !important;
    font: 700 13px/1.2 Georgia, "Times New Roman", serif;
    text-transform: none;
    border: 1px solid #1d2930;
    border-bottom-color: #15120d;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 45%),
        linear-gradient(180deg, #526b79, #314b59 55%, #263d49) !important;
    box-shadow: inset 0 0 0 1px rgba(189, 213, 223, 0.2), 0 1px 2px rgba(0, 0, 0, 0.35);
    text-shadow: 1px 1px 1px #182128;
}

.card-header.bg-dark,
.card-header.bg-light {
    color: #f2dfa7 !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 45%),
        linear-gradient(180deg, #526b79, #314b59 55%, #263d49) !important;
}

.card-body {
    padding: 14px;
}

.card-footer {
    padding: 9px 13px;
    border-top: 1px solid #96754a;
    background: rgba(184, 151, 98, 0.26);
}

.news-body {
    padding: 13px;
    overflow: auto;
    color: #31271d;
    border: 1px solid #a58456;
    border-radius: 2px;
    background: rgba(247, 232, 199, 0.5);
}

.shop-price {
    color: #7b2517;
    font: 700 23px/1 Georgia, serif;
}

.shop-toolbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    color: #e7d5aa;
    border: 1px solid #17120d;
    border-radius: 2px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%),
        linear-gradient(90deg, #3c2819, #251a11);
    box-shadow: inset 0 0 0 2px #66513a, 0 3px 7px rgba(0, 0, 0, 0.38);
}

.shop-toolbar-label {
    display: block;
    color: #aa9876;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.shop-balance {
    display: block;
    margin-top: 2px;
    color: #f0c75a;
    font: 700 18px/1.2 Georgia, "Times New Roman", serif;
    text-shadow: 1px 1px 1px #000;
}

.shop-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    gap: 10px;
}

.shop-grid .card {
    min-width: 0;
}

.shop-package-card,
.shop-offer-card {
    display: flex;
    flex-direction: column;
}

.shop-package-card .card-body,
.shop-offer-card .card-body {
    flex: 1;
}

.shop-package-card .card-body {
    text-align: center;
}

.shop-point-value {
    color: #762216;
    font: 700 42px/1 Georgia, "Times New Roman", serif;
    text-shadow: 0 1px 0 #f7e6bd;
}

.shop-point-label {
    margin-top: 4px;
    color: #74552f;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.shop-description {
    min-height: 42px;
    margin: 12px 0;
    color: #66543b;
    font-size: 11px;
}

.shop-cash-price {
    color: #4f2717;
    font: 700 21px/1.2 Georgia, "Times New Roman", serif;
}

.shop-offer-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    color: #8c2819;
    font-size: 25px;
    border: 2px ridge #977546;
    background: radial-gradient(circle, #f1dfb7, #bea06b);
    box-shadow: inset 0 0 8px rgba(67, 40, 19, 0.35);
}

.shop-offer-card .shop-price {
    text-align: center;
}

.shop-notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #5d4b34;
    font-size: 10px;
}

.shop-notice i {
    color: #7a2718;
    font-size: 15px;
}

.payment-details {
    margin: 0;
    border: 1px solid #99784a;
    background: rgba(246, 229, 190, 0.42);
}

.payment-details > div {
    display: grid;
    grid-template-columns: minmax(110px, 0.42fr) 1fr;
    border-bottom: 1px solid rgba(126, 91, 48, 0.42);
}

.payment-details > div:last-child {
    border-bottom: 0;
}

.payment-details dt,
.payment-details dd {
    margin: 0;
    padding: 8px 10px;
}

.payment-details dt {
    color: #5c4228;
    background: rgba(181, 148, 94, 0.2);
}

.payment-details dd {
    overflow-wrap: anywhere;
    color: #302318;
}

.outfit-frame,
.guild-emblem,
.guild-logo {
    width: 116px;
    height: 116px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border: 2px ridge #8d6d3e;
    border-radius: 2px;
    background: radial-gradient(circle, #ead9b1, #b89a67);
    box-shadow: inset 0 0 8px rgba(72, 43, 20, 0.4);
}

.outfit-frame img {
    max-width: 86px;
    max-height: 86px;
}

/* Tables ---------------------------------------------------- */

.table-responsive {
    border-radius: 1px;
}

.table {
    margin-bottom: 0;
    color: #30261c;
    font-size: 11px;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(105, 67, 29, 0.07);
    --bs-table-hover-bg: rgba(133, 44, 24, 0.09);
    --bs-table-color: #30261c;
    --bs-table-striped-color: #30261c;
    --bs-table-hover-color: #30261c;
}

.table th {
    padding: 7px 8px;
    color: #f2dda2;
    font-size: 10px;
    font-weight: 700;
    border-color: #26333b;
    background:
        linear-gradient(180deg, #566d79, #324b58 52%, #263e4a) !important;
    text-shadow: 1px 1px 1px #172027;
}

.table td {
    padding: 7px 8px;
    vertical-align: middle;
    border-color: rgba(119, 87, 48, 0.45);
}

.table-dark,
.table-dark > th,
.table-dark > td,
thead.table-dark,
thead.table-dark th {
    color: #f2dda2 !important;
    border-color: #26333b !important;
    background:
        linear-gradient(180deg, #566d79, #324b58 52%, #263e4a) !important;
}

.table-light,
.table-light > th,
.table-light > td {
    color: #3b2e20 !important;
    border-color: #927248 !important;
    background: #cfb684 !important;
}

/* Forms ----------------------------------------------------- */

.form-label {
    margin-bottom: 4px;
    color: #4e3421;
    font-size: 10px;
    font-weight: 700;
}

.form-control,
.form-select,
.input-group-text {
    min-height: 34px;
    color: #241c14;
    font-family: var(--font-body);
    font-size: 12px;
    border: 1px solid #765631;
    border-radius: 2px;
    background: #f3e5c3;
    box-shadow: inset 1px 1px 3px rgba(72, 42, 19, 0.25);
}

.form-control:focus,
.form-select:focus {
    color: #1f1710;
    border-color: #7c2417;
    background: #fff1cf;
    box-shadow: 0 0 0 2px rgba(126, 40, 23, 0.13), inset 1px 1px 3px rgba(72, 42, 19, 0.18);
}

.form-control::placeholder {
    color: #88765e;
}

.input-group-text {
    color: #694521;
    background: #cdb381;
}

.form-check-input {
    border-color: #77572f;
    background-color: #f3e5c3;
}

.form-check-input:checked {
    border-color: #6c1d13;
    background-color: #8e281a;
}

/* Buttons --------------------------------------------------- */

.btn {
    min-height: 32px;
    padding: 7px 13px;
    color: #fff1c5;
    font: 700 10px/1.25 var(--font-body);
    letter-spacing: 0;
    text-transform: none;
    text-shadow: 1px 1px 1px #17100b;
    border: 1px solid #2a1b11;
    border-radius: 3px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.42),
        0 2px 3px rgba(48, 28, 15, 0.32);
}

.btn:hover,
.btn:focus {
    color: #fff8dc;
    text-decoration: none;
    filter: brightness(1.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.42),
        0 2px 5px rgba(48, 28, 15, 0.42);
}

.btn-lg {
    min-height: 39px;
    padding: 9px 17px;
    font-size: 11px;
}

.btn-sm {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 9px;
}

.btn-primary,
.btn-outline-primary {
    color: #fff3c8;
    border-color: #29180c;
    background: linear-gradient(#a36d23, #694012);
}

.btn-success,
.btn-outline-success {
    color: #efffdf;
    border-color: #1c3516;
    background: linear-gradient(#55933a, #2f681f);
}

.btn-danger,
.btn-outline-danger {
    color: #ffe3d5;
    border-color: #4e130d;
    background: linear-gradient(#a83b29, #731b13);
}

.btn-warning {
    color: #fff3c8;
    background: linear-gradient(#a7742f, #714815);
}

.btn-secondary,
.btn-outline-secondary {
    color: #eee4ca;
    border-color: #29241c;
    background: linear-gradient(#625c50, #403c34);
}

.btn:disabled,
.btn.disabled {
    filter: grayscale(0.7);
    opacity: 0.62;
}

.btn-close {
    width: 11px;
    height: 11px;
    padding: 5px !important;
    border: 0;
    box-shadow: none;
    filter: sepia(1) saturate(1.5);
}

/* Alerts, badges and lists ---------------------------------- */

.alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 34px 9px 11px;
    color: #352719;
    font-size: 11px;
    border: 1px solid #81623a;
    border-radius: 2px;
    background: #dec797;
    box-shadow: inset 0 0 0 1px rgba(255, 242, 207, 0.58);
}

.alert-success {
    color: #24431e;
    border-color: #668653;
    background: #c5d4a8;
}

.alert-danger {
    color: #5d1b15;
    border-color: #a15d4b;
    background: #dfb69c;
}

.alert-warning {
    color: #584017;
    border-color: #a8843d;
    background: #e6d29d;
}

.alert-info {
    color: #263c48;
    border-color: #78909b;
    background: #c9d5d5;
}

.badge {
    padding: 4px 6px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(30, 21, 13, 0.28);
    border-radius: 2px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}

.badge.bg-success {
    background: #4a8733 !important;
}

.badge.bg-danger {
    background: #982f21 !important;
}

.badge.bg-secondary {
    background: #696154 !important;
}

.badge.bg-warning {
    color: #2c1c0f !important;
    text-shadow: none;
    background: #d1a644 !important;
}

.list-group-item {
    color: #32261b;
    font-size: 11px;
    border-color: rgba(124, 91, 51, 0.44);
    background: rgba(242, 222, 182, 0.52);
}

.list-group-item-action:hover {
    color: #641c12;
    background: rgba(255, 239, 204, 0.72);
}

.list-group-item.active {
    color: #f7e6b9;
    border-color: #552215;
    background: linear-gradient(#8c321f, #672014);
}

.data-chip {
    min-height: 29px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    color: #4b3725;
    font-size: 9px;
    font-weight: 700;
    border: 1px solid #9b7b4d;
    border-radius: 2px;
    background: rgba(242, 225, 188, 0.68);
}

/* Pagination ------------------------------------------------ */

.page-link {
    color: #5a3118;
    font-size: 10px;
    border-color: #8f6a3c;
    background: #e1cda1;
}

.page-link:hover {
    color: #7a1f14;
    border-color: #6f4924;
    background: #f0dfbc;
}

.page-item.active .page-link {
    color: #ffe9ad;
    border-color: #4e170f;
    background: #86291c;
}

.page-item.disabled .page-link {
    color: #9e8d71;
    background: #d2bd92;
}

/* Utilities ------------------------------------------------- */

.text-muted {
    color: #735f43 !important;
}

.text-primary {
    color: #633417 !important;
}

.text-success {
    color: #356d29 !important;
}

.text-danger {
    color: #8a2218 !important;
}

.text-warning,
.text-gold {
    color: #81550f !important;
}

.text-light,
.text-white {
    color: #f4e3b7 !important;
}

.bg-light {
    background-color: #d8c194 !important;
}

.bg-dark {
    background-color: #324b58 !important;
}

.rounded {
    border-radius: 2px !important;
}

/* Footer ---------------------------------------------------- */

.site-footer {
    width: min(1240px, calc(100% - 24px));
    margin: 20px auto 0;
    padding: 15px 12px 30px;
    color: #91866f;
    font-size: 9px;
    text-align: center;
    text-shadow: 1px 1px 1px #000;
    border-top: 1px solid rgba(138, 116, 75, 0.42);
    background: linear-gradient(180deg, rgba(14, 13, 10, 0.72), rgba(8, 9, 7, 0.96));
}

.site-footer p {
    margin: 2px 0;
}

.site-footer strong {
    color: #c4ad78;
}

.site-footer a {
    color: #c2a961;
}

.site-footer nav {
    margin-top: 6px;
}

.site-footer nav span {
    margin: 0 5px;
}

.footer-crest {
    width: 80px;
    margin: -22px auto 6px;
    color: #9a7a38;
    background: #10100c;
}

/* Scrollbars and motion ------------------------------------- */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #2b2118;
}

::-webkit-scrollbar-thumb {
    border: 2px solid #2b2118;
    border-radius: 1px;
    background: #826542;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #826542 #2b2118;
}

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

.fade-in {
    animation: fadeIn 0.28s ease-out both;
}

.glow-pulse {
    animation: none;
}

/* Responsive ------------------------------------------------ */

@media (max-width: 1120px) {
    .site-shell {
        grid-template-columns: 172px minmax(0, 1fr) 190px;
    }

    .site-logo-copy strong {
        font-size: 42px;
    }

    .masthead-actions a span {
        display: none;
    }

    .masthead-actions a {
        font-size: 15px;
    }
}

@media (max-width: 991.98px) {
    body {
        background-attachment: scroll;
        background-size: auto 900px;
    }

    .site-masthead {
        min-height: 112px;
    }

    .site-shell {
        display: block;
    }

    .site-left {
        margin-bottom: 9px;
    }

    .tibia-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .menu-group {
        margin: 0;
    }

    .site-right {
        margin-top: 12px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .side-box {
        margin: 0;
    }

    .content-stage {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .site-masthead,
    .site-shell,
    .mobile-navigation-toggle,
    .site-footer {
        width: calc(100% - 12px);
    }

    .site-masthead {
        min-height: 94px;
        padding: 10px 9px 13px;
    }

    .site-logo-rune {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        font-size: 27px;
    }

    .site-logo-copy strong {
        font-size: clamp(27px, 10vw, 36px);
        letter-spacing: -1px;
    }

    .site-logo-copy small {
        display: none;
    }

    .masthead-actions {
        display: none;
    }

    .tibia-menu,
    .site-right {
        grid-template-columns: 1fr;
    }

    .content-stage > main.container {
        padding: 22px 12px 24px;
    }

    .flash-stack {
        padding: 18px 12px 0;
    }

    .hero-portal {
        min-height: 0;
    }

    .hero-portal::before {
        width: 130px;
        height: 130px;
        font-size: 86px;
        opacity: 0.5;
    }

    .hero-content {
        padding: 28px 20px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .display-4,
    .page-title {
        font-size: 25px;
    }

    .shop-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-toolbar-actions {
        justify-content: flex-start;
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }

    .payment-details > div {
        grid-template-columns: 1fr;
    }

    .payment-details dt {
        padding-bottom: 2px;
    }

    .payment-details dd {
        padding-top: 2px;
    }
}

@media print {
    body {
        color: #000;
        background: #fff;
    }

    .site-masthead,
    .site-left,
    .site-right,
    .mobile-navigation-toggle,
    .site-footer,
    .btn {
        display: none !important;
    }

    .site-shell {
        width: 100%;
        display: block;
    }

    .content-stage {
        border: 0;
        box-shadow: none;
        background: #fff;
    }
}
