/* =========================================================
   UNTAMED BORDERLAND
   GLOBAL WEBSITE DESIGN SYSTEM
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Bungee&family=Bungee+Tint&family=Caveat:wght@400;500;600;700&family=Fredericka+the+Great&family=Special+Elite&display=swap");


/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {

    --ubl-gold: #d4a64a;
    --ubl-gold-bright: #e0b84f;
    --ubl-gold-dark: #987000;
    --ubl-gold-muted: #92744d;

    --ubl-chocolate: #2b1208;

    --ubl-brown: #24120c;
    --ubl-brown-2: #2b1810;
    --ubl-brown-3: #332017;

    --ubl-page: #0d0705;
    --ubl-page-soft: #160b08;

    --ubl-panel: #21130d;
    --ubl-panel-2: #271710;
    --ubl-panel-dark: #1b100b;

    --ubl-parchment: #dfcca7;
    --ubl-parchment-bright: #f0ddb8;
    --ubl-parchment-muted: #baa482;

    --ubl-red: #a43a2e;
    --ubl-red-dark: #6f261f;

    --ubl-green: #6e9c59;
    --ubl-yellow: #b99743;

    --ubl-border: #53321f;
    --ubl-border-light: #684527;
    --ubl-border-soft: #3d2a1c;

    --ubl-shadow:
        0 18px 38px rgba(0, 0, 0, 0.48);

    --ubl-small-shadow:
        0 8px 20px rgba(0, 0, 0, 0.34);

    --ubl-radius: 7px;

    --ubl-max-width: 1180px;

}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}


html {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;

    scroll-behavior: smooth;
}


body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100vh;

    color: var(--ubl-parchment);

    background:
        radial-gradient(
            circle at 50% 0%,
            #28140e 0%,
            #160b08 36%,
            #0d0705 70%,
            #070403 100%
        );

    overflow-x: hidden;
}


body.nav-open {
    overflow: hidden;
}


img {
    max-width: 100%;
}


button,
input,
select,
textarea {
    font: inherit;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


button {
    cursor: pointer;
}


a {
    color: inherit;
}


::selection {
    background: var(--ubl-gold);
    color: var(--ubl-chocolate);
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;

    z-index: 20000;

    padding: 10px 14px;

    font-family: "Bungee", sans-serif;
    font-size: 11px;

    color: var(--ubl-chocolate);

    background: var(--ubl-gold);

    border-radius: 4px;

    transform: translateY(-150%);

    transition: transform 0.18s ease;
}


.skip-link:focus {
    transform: translateY(0);
}


a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--ubl-gold-bright);
    outline-offset: 3px;
}


/* =========================================================
   GLOBAL TYPOGRAPHY
   ========================================================= */

.ubl-display {
    font-family: "Fredericka the Great", serif;

    color: var(--ubl-gold);

    font-weight: 400;

    text-shadow:
        2px 3px 0 #3a180d,
        4px 5px 0 rgba(20, 7, 3, 0.55),
        0 0 12px rgba(212, 166, 74, 0.22);
}


.ubl-handwritten {
    font-family: "Caveat", cursive;
}


.ubl-typewriter {
    font-family: "Special Elite", monospace;
}


.ubl-label {
    font-family: "Bungee", sans-serif;
    text-transform: uppercase;
}


.text-gold {
    color: var(--ubl-gold);
}


.text-muted {
    color: var(--ubl-parchment-muted);
}


/* =========================================================
   GLOBAL LAYOUT
   ========================================================= */

.site-main {
    width: min(
        var(--ubl-max-width),
        calc(100% - 40px)
    );

    margin: 0 auto;

    padding: 44px 0 95px;
}


.site-section {
    width: 100%;
    padding: 58px 0;
}


.site-section-tight {
    padding: 35px 0;
}


.site-section-dark {
    background:
        linear-gradient(
            180deg,
            rgba(24, 12, 8, 0.48),
            rgba(10, 6, 4, 0.45)
        );
}


.section-shell {
    width: min(
        var(--ubl-max-width),
        calc(100% - 40px)
    );

    margin: 0 auto;
}


.section-kicker {
    margin-bottom: 7px;

    font-family: "Bungee", sans-serif;

    color: var(--ubl-gold-muted);

    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.section-title {
    margin: 0 0 12px;

    font-family: "Fredericka the Great", serif;

    color: var(--ubl-gold);

    font-size: clamp(38px, 5vw, 56px);

    line-height: 1.05;

    font-weight: 400;

    text-shadow:
        2px 3px 0 #3a180d,
        4px 5px 0 rgba(20, 7, 3, 0.55),
        0 0 12px rgba(212, 166, 74, 0.22);
}


.section-subtitle {
    max-width: 780px;

    margin: 0;

    font-family: "Special Elite", monospace;

    color: var(--ubl-parchment-muted);

    font-size: 15px;

    line-height: 1.75;
}


.section-heading-center {
    text-align: center;
}


.section-heading-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   SHARED HEADER
   ========================================================= */

.site-shell-header {
    width: 100%;

    position: sticky;
    top: 0;

    z-index: 5000;

    background:
        linear-gradient(
            180deg,
            #2a160f 0%,
            #24120c 100%
        );

    border-bottom: 1px solid #4d281c;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.48);
}


.site-shell-inner {
    width: min(
        var(--ubl-max-width),
        calc(100% - 32px)
    );

    min-height: 82px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    gap: 18px;
}


/* =========================================================
   BRAND
   ========================================================= */

.site-brand {
    width: 60px;

    flex: 0 0 60px;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    text-decoration: none;
}


.site-brand img {
    width: 58px;
    height: 58px;

    display: block;

    object-fit: contain;
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.site-nav {
    flex: 1;

    display: flex;

    align-items: center;

    gap: 5px;
}


.site-nav-item,
.site-nav-trigger {
    min-height: 42px;

    padding: 10px 11px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    font-family: "Bungee Tint", sans-serif;

    font-size: 11px;

    line-height: 1;

    text-transform: uppercase;

    text-decoration: none;

    white-space: nowrap;

    background: transparent;

    border: 1px solid transparent;

    border-radius: 4px;

    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}


.site-nav-item:hover,
.site-nav-trigger:hover {
    transform: translateY(-2px);

    filter: brightness(1.15);

    background: rgba(255, 255, 255, 0.025);

    border-color: rgba(212, 166, 74, 0.16);
}


.site-nav-item.active,
.site-nav-trigger.active {
    background: rgba(212, 166, 74, 0.07);

    border-color: rgba(212, 166, 74, 0.28);

    filter: brightness(1.25);
}


/* =========================================================
   DROPDOWNS
   ========================================================= */

.site-nav-dropdown {
    position: relative;
}


.site-nav-trigger {
    appearance: none;
}


.site-nav-arrow {
    font-family: Arial, sans-serif;

    font-size: 9px;

    color: var(--ubl-gold);

    transition: transform 0.18s ease;
}


.site-dropdown-menu {
    width: 270px;

    position: absolute;

    top: calc(100% + 8px);

    left: 0;

    padding: 8px;

    display: none;

    background:
        linear-gradient(
            180deg,
            #2a1810 0%,
            #1c100b 100%
        );

    border: 1px solid #62412a;

    border-radius: 6px;

    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.55);
}


.site-nav-dropdown:hover .site-dropdown-menu,
.site-nav-dropdown:focus-within .site-dropdown-menu,
.site-nav-dropdown.open .site-dropdown-menu {
    display: block;
}


.site-nav-dropdown.open .site-nav-arrow {
    transform: rotate(180deg);
}


.site-dropdown-heading {
    padding: 10px 13px 7px;

    font-family: "Bungee", sans-serif;

    color: var(--ubl-gold-muted);

    font-size: 9px;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.site-dropdown-divider {
    height: 1px;

    margin: 6px 7px;

    background: #49301f;
}


.site-dropdown-link {
    width: 100%;

    min-height: 43px;

    padding: 11px 13px;

    display: flex;

    align-items: center;

    font-family: "Special Elite", monospace;

    color: #d9c49d;

    font-size: 13px;

    text-decoration: none;

    border-radius: 4px;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}


.site-dropdown-link:hover {
    color: #f0d69c;

    background: rgba(212, 166, 74, 0.09);

    transform: translateX(3px);
}


.site-dropdown-link.active {
    color: var(--ubl-gold);

    background: rgba(212, 166, 74, 0.12);
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.site-actions {
    flex-shrink: 0;

    display: flex;

    align-items: center;

    gap: 8px;
}


.site-action {
    min-height: 42px;

    padding: 10px 13px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 10px;

    line-height: 1;

    text-transform: uppercase;

    text-decoration: none;

    border-radius: 4px;

    transition:
        transform 0.18s ease,
        filter 0.18s ease;
}


.site-action:hover {
    transform: translateY(-2px);

    filter: brightness(1.12);
}


.site-discord {
    font-family: "Bungee Tint", sans-serif;

    background: #332d29;

    border: 1px solid #5b5048;
}


.site-play {
    font-family: "Bungee", sans-serif;

    color: var(--ubl-chocolate);

    background:
        linear-gradient(
            180deg,
            #d0a21e 0%,
            #9c7308 100%
        );

    border: 1px solid #ddb64c;
}


.site-stash {
    appearance: none;

    font-family: "Bungee", sans-serif;

    color: var(--ubl-chocolate);

    background:
        linear-gradient(
            180deg,
            #c89b17 0%,
            #987000 100%
        );

    border: 1px solid #d5ac34;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.site-menu-toggle {
    display: none;

    appearance: none;

    min-width: 46px;
    min-height: 42px;

    padding: 8px 10px;

    font-family: "Bungee", sans-serif;

    color: var(--ubl-gold);

    font-size: 10px;

    text-transform: uppercase;

    background: #24150f;

    border: 1px solid #62412a;

    border-radius: 4px;
}


/* =========================================================
   TOAST MESSAGE
   ========================================================= */

.site-toast {
    max-width: 380px;

    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 10000;

    padding: 15px 18px;

    font-family: "Special Elite", monospace;

    color: #e7d4b2;

    font-size: 13px;

    line-height: 1.55;

    background: #21130d;

    border: 1px solid #795325;

    border-left: 4px solid var(--ubl-gold);

    border-radius: 5px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.55);

    opacity: 0;

    visibility: hidden;

    transform: translateY(12px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}


.site-toast.show {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


/* =========================================================
   GLOBAL BUTTONS
   ========================================================= */

.ubl-button {
    min-height: 50px;

    padding: 14px 18px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    font-family: "Bungee", sans-serif;

    font-size: 12px;

    line-height: 1;

    text-align: center;

    text-transform: uppercase;

    text-decoration: none;

    border-radius: 4px;

    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        border-color 0.18s ease;
}


.ubl-button:hover {
    transform: translateY(-2px);

    filter: brightness(1.12);
}


.ubl-button-gold {
    color: var(--ubl-chocolate);

    background:
        linear-gradient(
            180deg,
            #cfa21d 0%,
            #987000 100%
        );

    border: 1px solid #d5aa2a;
}


.ubl-button-dark {
    font-family: "Bungee Tint", sans-serif;

    background: #332d29;

    border: 1px solid #62564d;
}


.ubl-button-outline {
    color: var(--ubl-gold);

    background: rgba(212, 166, 74, 0.03);

    border: 1px solid #735026;
}


.ubl-button-red {
    color: #edd9b7;

    background:
        linear-gradient(
            180deg,
            #813126 0%,
            #562019 100%
        );

    border: 1px solid #a84b3d;
}


.button-row {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;
}


.button-stack {
    display: grid;

    gap: 10px;
}


.button-stack .ubl-button {
    width: 100%;
}


/* =========================================================
   HOMEPAGE HERO
   ========================================================= */

.home-hero {
    position: relative;

    min-height: 650px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border-bottom: 1px solid #4f2f1e;
}


.home-hero-media {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.home-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(8, 4, 3, 0.32) 0%,
            rgba(8, 4, 3, 0.66) 58%,
            rgba(8, 4, 3, 0.94) 100%
        );
}


.home-hero-content {
    width: min(900px, calc(100% - 40px));

    position: relative;

    z-index: 2;

    padding: 80px 0;

    text-align: center;
}


.home-hero-logo {
    width: min(520px, 85vw);

    margin: 0 auto 20px;

    display: block;
}


.home-hero-kicker {
    margin-bottom: 9px;

    font-family: "Bungee", sans-serif;

    color: var(--ubl-gold);

    font-size: 11px;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.home-hero-title {
    margin: 0 0 12px;

    font-family: "Fredericka the Great", serif;

    color: var(--ubl-gold);

    font-size: clamp(52px, 8vw, 88px);

    line-height: 0.95;

    font-weight: 400;

    text-shadow:
        3px 4px 0 #32150d,
        6px 7px 0 rgba(15, 5, 3, 0.6),
        0 0 18px rgba(212, 166, 74, 0.25);
}


.home-hero-quote {
    margin: 14px auto 22px;

    font-family: "Caveat", cursive;

    color: #ecd6a8;

    font-size: clamp(28px, 4vw, 39px);

    font-weight: 700;

    line-height: 1.25;
}


.home-hero-copy {
    max-width: 760px;

    margin: 0 auto 26px;

    font-family: "Special Elite", monospace;

    color: #d3bc96;

    font-size: 15px;

    line-height: 1.75;
}


.home-hero-actions {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;
}


/* =========================================================
   SERVER STATUS
   ========================================================= */

.server-status-panel {
    width: min(1000px, 100%);

    margin: 0 auto;

    padding: 28px;

    background:
        linear-gradient(
            180deg,
            rgba(42, 24, 16, 0.96),
            rgba(24, 13, 9, 0.96)
        );

    border: 1px solid #684526;

    border-radius: 9px;

    box-shadow: var(--ubl-shadow);
}


.server-status-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}


.server-status-title {
    margin: 0;

    font-family: "Fredericka the Great", serif;

    color: var(--ubl-gold);

    font-size: 34px;

    font-weight: 400;
}


.status-indicator {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    font-family: "Bungee", sans-serif;

    font-size: 10px;

    text-transform: uppercase;
}


.status-dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #7b7b7b;

    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.03);
}


.status-online .status-dot {
    background: var(--ubl-green);

    box-shadow:
        0 0 10px rgba(110, 156, 89, 0.6);
}


.status-offline .status-dot {
    background: var(--ubl-red);

    box-shadow:
        0 0 10px rgba(164, 58, 46, 0.55);
}


.status-loading .status-dot {
    background: var(--ubl-yellow);
}


.status-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 12px;
}


.status-card {
    padding: 18px;

    text-align: center;

    background: #1c100b;

    border: 1px solid #4b311f;

    border-radius: 5px;
}


.status-card-label {
    margin-bottom: 7px;

    font-family: "Bungee", sans-serif;

    color: var(--ubl-gold-muted);

    font-size: 9px;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


.status-card-value {
    font-family: "Special Elite", monospace;

    color: var(--ubl-parchment-bright);

    font-size: 18px;
}


/* =========================================================
   FEATURE CARDS
   ========================================================= */

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 15px;
}


.feature-card {
    padding: 24px;

    background:
        linear-gradient(
            180deg,
            #24150f 0%,
            #1b100b 100%
        );

    border: 1px solid #4d311f;

    border-radius: var(--ubl-radius);

    box-shadow: var(--ubl-small-shadow);

    transition:
        transform 0.18s ease,
        border-color 0.18s ease;
}


.feature-card:hover {
    transform: translateY(-3px);

    border-color: #7a542c;
}


.feature-card-icon {
    margin-bottom: 12px;

    font-size: 30px;
}


.feature-card-title {
    margin: 0 0 9px;

    font-family: "Bungee", sans-serif;

    color: var(--ubl-gold);

    font-size: 11px;

    letter-spacing: 0.7px;

    text-transform: uppercase;
}


.feature-card p {
    margin: 0;

    font-family: "Special Elite", monospace;

    color: var(--ubl-parchment-muted);

    font-size: 14px;

    line-height: 1.65;
}


/* =========================================================
   STAFF
   ========================================================= */

.staff-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 16px;
}


.staff-card {
    overflow: hidden;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            #25160f 0%,
            #190e0a 100%
        );

    border: 1px solid #54351f;

    border-radius: 8px;

    box-shadow: var(--ubl-small-shadow);
}


.staff-image-wrap {
    width: 100%;

    aspect-ratio: 1 / 1;

    background:
        radial-gradient(
            circle,
            #342218,
            #100906
        );

    overflow: hidden;
}


.staff-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.staff-content {
    padding: 17px;
}


.staff-name {
    margin: 0 0 4px;

    font-family: "Caveat", cursive;

    color: #eed7a8;

    font-size: 27px;

    font-weight: 700;
}


.staff-role {
    font-family: "Bungee", sans-serif;

    color: var(--ubl-gold);

    font-size: 9px;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =========================================================
   QUICK LINKS
   ========================================================= */

.quick-link-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 14px;
}


.quick-link-card {
    min-height: 150px;

    padding: 22px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    text-decoration: none;

    background:
        linear-gradient(
            145deg,
            #2b180f,
            #160c08
        );

    border: 1px solid #58391f;

    border-radius: 7px;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease;
}


.quick-link-card:hover {
    transform: translateY(-3px);

    border-color: var(--ubl-gold-muted);
}


.quick-link-title {
    margin-bottom: 6px;

    font-family: "Fredericka the Great", serif;

    color: var(--ubl-gold);

    font-size: 28px;
}


.quick-link-copy {
    font-family: "Special Elite", monospace;

    color: #ad9877;

    font-size: 13px;

    line-height: 1.55;
}


/* =========================================================
   PAGE HERO
   ========================================================= */

.page-hero {
    padding: 62px 0 42px;

    text-align: center;

    border-bottom: 1px solid #40291b;
}


.page-hero-kicker {
    margin-bottom: 8px;

    font-family: "Bungee", sans-serif;

    color: var(--ubl-gold-muted);

    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.page-hero-title {
    margin: 0 0 12px;

    font-family: "Fredericka the Great", serif;

    color: var(--ubl-gold);

    font-size: clamp(48px, 7vw, 72px);

    font-weight: 400;

    line-height: 1;

    text-shadow:
        2px 3px 0 #3a180d,
        4px 5px 0 rgba(20, 7, 3, 0.55),
        0 0 12px rgba(212, 166, 74, 0.22);
}


.page-hero-copy {
    max-width: 780px;

    margin: 0 auto;

    font-family: "Special Elite", monospace;

    color: var(--ubl-parchment-muted);

    font-size: 15px;

    line-height: 1.75;
}


/* =========================================================
   BACK LINK
   ========================================================= */

.site-back-link {
    display: inline-block;

    margin-bottom: 24px;

    font-family: "Bungee", sans-serif;

    color: #b68b39;

    font-size: 11px;

    text-transform: uppercase;

    text-decoration: none;
}


.site-back-link:hover {
    color: var(--ubl-gold);
}


/* =========================================================
   SEARCH / FILTER BAR
   ========================================================= */

.tool-bar {
    margin-bottom: 25px;

    padding: 17px;

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    background: #1c100b;

    border: 1px solid #4a301f;

    border-radius: 6px;
}


.search-field {
    flex: 1;

    min-width: 240px;

    position: relative;
}


.search-input,
.filter-select {
    width: 100%;

    min-height: 44px;

    padding: 11px 13px;

    font-family: "Special Elite", monospace;

    color: #e4cfab;

    background: #100906;

    border: 1px solid #5c3b23;

    border-radius: 4px;
}


.search-input::placeholder {
    color: #7e6c55;
}


.filter-select {
    width: auto;

    min-width: 170px;
}


.filter-chip-row {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}


.filter-chip {
    padding: 9px 12px;

    font-family: "Bungee", sans-serif;

    color: #aa9271;

    font-size: 9px;

    text-transform: uppercase;

    background: #21130d;

    border: 1px solid #52341f;

    border-radius: 20px;
}


.filter-chip:hover,
.filter-chip.active {
    color: var(--ubl-chocolate);

    background: var(--ubl-gold);

    border-color: var(--ubl-gold);
}


/* =========================================================
   GUIDE / RULE SIDEBAR LAYOUT
   ========================================================= */

.guide-layout {
    display: grid;

    grid-template-columns:
        240px
        minmax(0, 1fr);

    gap: 30px;

    align-items: start;
}


.guide-sidebar {
    position: sticky;

    top: 105px;

    padding: 16px;

    background: #1c100b;

    border: 1px solid #49301e;

    border-radius: 6px;
}


.guide-sidebar-title {
    margin-bottom: 11px;

    font-family: "Bungee", sans-serif;

    color: var(--ubl-gold);

    font-size: 10px;

    letter-spacing: 1px;

    text-transform: uppercase;
}


.guide-nav-link {
    width: 100%;

    padding: 10px 11px;

    display: block;

    font-family: "Special Elite", monospace;

    color: #ad9877;

    font-size: 13px;

    text-decoration: none;

    border-radius: 4px;
}


.guide-nav-link:hover,
.guide-nav-link.active {
    color: var(--ubl-gold);

    background: rgba(212, 166, 74, 0.08);
}


.guide-content {
    min-width: 0;
}


/* =========================================================
   CONTENT SECTIONS
   ========================================================= */

.product-details,
.content-details {
    width: min(1050px, 100%);

    margin: 55px auto 0;
}


.content-section {
    margin-bottom: 44px;

    scroll-margin-top: 110px;
}


.content-section-title {
    margin: 0 0 18px;

    padding-bottom: 9px;

    font-family: "Fredericka the Great", serif;

    color: var(--ubl-gold);

    font-size: 34px;

    font-weight: 400;

    border-bottom: 1px solid var(--ubl-border-light);
}


.content-section-intro {
    margin: 0 0 20px;

    font-family: "Special Elite", monospace;

    color: #b9a27f;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   INFO BOX
   ========================================================= */

.info-box {
    padding: 23px 24px;

    background: var(--ubl-panel);

    border: 1px solid #56351f;

    border-left: 4px solid #9d7522;

    border-radius: 6px;
}


.info-box-danger {
    border-left-color: var(--ubl-red);
}


.info-box-label {
    margin-bottom: 10px;

    font-family: "Bungee", sans-serif;

    color: var(--ubl-gold);

    font-size: 10px;

    letter-spacing: 1.6px;

    text-transform: uppercase;
}


.info-box p {
    margin: 0;

    font-family: "Special Elite", monospace;

    color: var(--ubl-parchment-muted);

    font-size: 14px;

    line-height: 1.75;
}


.info-box p + p {
    margin-top: 13px;
}


/* =========================================================
   APPROVAL WARNING
   ========================================================= */

.approval-warning {
    margin-bottom: 20px;

    padding: 18px 20px;

    background: #211715;

    border: 1px solid #8f2b2b;

    border-left: 4px solid #a63a2d;

    border-radius: 5px;
}


.approval-warning strong {
    display: block;

    margin-bottom: 8px;

    font-family: "Bungee", sans-serif;

    color: #d7a86e;

    font-size: 10px;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.approval-warning p {
    margin: 0;

    font-family: "Special Elite", monospace;

    color: #cbb98f;

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   PRODUCT HERO
   ========================================================= */

.product-hero {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(340px, 0.95fr);

    gap: 38px;

    align-items: center;
}


.product-image-frame {
    width: 100%;

    padding: 12px;

    background:
        radial-gradient(
            circle at center,
            #241810 0%,
            #0b0705 72%
        );

    border: 1px solid var(--ubl-border);

    border-radius: 11px;

    box-shadow: var(--ubl-shadow);
}


.product-image {
    width: 100%;
    height: auto;

    display: block;

    object-fit: contain;

    border-radius: 5px;
}


.product-category {
    margin-bottom: 9px;

    font-family: "Bungee", sans-serif;

    color: var(--ubl-gold-muted);

    font-size: 10px;

    letter-spacing: 1.6px;

    text-transform: uppercase;
}


.product-badge {
    display: inline-block;

    margin-bottom: 12px;

    padding: 6px 10px;

    font-family: "Bungee", sans-serif;

    color: var(--ubl-gold);

    font-size: 10px;

    letter-spacing: 1px;

    text-transform: uppercase;

    background: var(--ubl-panel);

    border: 1px solid #765126;

    border-radius: 4px;
}


.product-title {
    margin: 0 0 10px;

    font-family: "Fredericka the Great", serif;

    color: var(--ubl-gold);

    font-size: clamp(43px, 5.8vw, 65px);

    font-weight: 400;

    line-height: 1.03;

    text-shadow:
        2px 3px 0 #3a180d,
        4px 5px 0 rgba(20, 7, 3, 0.55),
        0 0 12px rgba(212, 166, 74, 0.22);
}


.product-price {
    margin-bottom: 18px;

    font-family: "Bungee", sans-serif;

    color: var(--ubl-gold-bright);

    font-size: 21px;
}


.product-motto {
    margin-bottom: 18px;

    font-family: "Caveat", cursive;

    color: #ead3a7;

    font-size: 28px;

    font-weight: 700;

    line-height: 1.35;
}


.product-summary {
    margin: 0 0 22px;

    font-family: "Special Elite", monospace;

    color: var(--ubl-parchment-muted);

    font-size: 14px;

    line-height: 1.75;
}


/* =========================================================
   PROCESS STEPS
   ========================================================= */

.process-steps {
    display: grid;
}


.process-step {
    display: grid;

    grid-template-columns:
        48px
        1fr;

    gap: 14px;

    padding: 17px 0;

    border-top: 1px solid var(--ubl-border-soft);
}


.process-step:last-child {
    border-bottom: 1px solid var(--ubl-border-soft);
}


.process-number {
    font-family: "Fredericka the Great", serif;

    color: var(--ubl-red);

    font-size: 28px;

    line-height: 1;
}


.process-title {
    margin-bottom: 6px;

    font-family: "Bungee", sans-serif;

    color: #e1ceb0;

    font-size: 11px;

    text-transform: uppercase;
}


.process-copy {
    font-family: "Special Elite", monospace;

    color: #ae9877;

    font-size: 14px;

    line-height: 1.65;
}


/* =========================================================
   RULE CARDS
   ========================================================= */

.rule-group {
    margin-bottom: 38px;

    scroll-margin-top: 110px;
}


.rule-group-title {
    margin: 0 0 14px;

    font-family: "Fredericka the Great", serif;

    color: var(--ubl-gold);

    font-size: 32px;

    font-weight: 400;
}


.rule-card {
    margin-bottom: 10px;

    padding: 18px 20px;

    background: #21130d;

    border: 1px solid #4d311f;

    border-radius: 5px;
}


.rule-title {
    margin: 0 0 7px;

    font-family: "Bungee", sans-serif;

    color: #e1ceb0;

    font-size: 10px;

    letter-spacing: 0.6px;

    text-transform: uppercase;
}


.rule-copy,
.rule-card li {
    font-family: "Special Elite", monospace;

    color: var(--ubl-parchment-muted);

    font-size: 14px;

    line-height: 1.7;
}


.rule-card ul {
    margin: 8px 0 0;

    padding-left: 21px;
}


/* =========================================================
   DATA TABLES
   PENAL CODES / SHOP PRICING / ROSTER
   ========================================================= */

.table-wrap {
    width: 100%;

    overflow-x: auto;

    border: 1px solid #50341f;

    border-radius: 6px;

    background: #160d09;
}


.ubl-table {
    width: 100%;

    min-width: 760px;

    border-collapse: collapse;
}


.ubl-table th {
    padding: 14px 15px;

    text-align: left;

    font-family: "Bungee", sans-serif;

    color: var(--ubl-gold);

    font-size: 9px;

    letter-spacing: 1px;

    text-transform: uppercase;

    background: #28170f;

    border-bottom: 1px solid #684527;
}


.ubl-table td {
    padding: 14px 15px;

    vertical-align: top;

    font-family: "Special Elite", monospace;

    color: #c7b18e;

    font-size: 13px;

    line-height: 1.55;

    border-bottom: 1px solid #352318;
}


.ubl-table tr:last-child td {
    border-bottom: 0;
}


.ubl-table tbody tr {
    transition: background 0.15s ease;
}


.ubl-table tbody tr:hover {
    background: rgba(212, 166, 74, 0.045);
}


.code-number {
    font-family: "Bungee", sans-serif;

    color: var(--ubl-gold);

    font-size: 11px;
}


.table-emphasis {
    color: #ead7b4;
}


/* =========================================================
   BADGES
   ========================================================= */

.badge {
    display: inline-flex;

    align-items: center;

    padding: 5px 8px;

    font-family: "Bungee", sans-serif;

    font-size: 8px;

    letter-spacing: 0.8px;

    text-transform: uppercase;

    border-radius: 20px;
}


.badge-gold {
    color: var(--ubl-chocolate);

    background: var(--ubl-gold);
}


.badge-red {
    color: #f0d5cf;

    background: #70271f;
}


.badge-green {
    color: #e3efdd;

    background: #44683a;
}


.badge-muted {
    color: #d2bea0;

    background: #403024;
}


/* =========================================================
   LAW LANDING PAGE
   ========================================================= */

.law-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 16px;
}


.law-card {
    min-height: 245px;

    padding: 27px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    text-decoration: none;

    background:
        linear-gradient(
            160deg,
            #2a180f,
            #160c08
        );

    border: 1px solid #624026;

    border-radius: 8px;

    box-shadow: var(--ubl-small-shadow);

    transition:
        transform 0.18s ease,
        border-color 0.18s ease;
}


.law-card:hover {
    transform: translateY(-4px);

    border-color: var(--ubl-gold-muted);
}


.law-card-title {
    margin-bottom: 8px;

    font-family: "Fredericka the Great", serif;

    color: var(--ubl-gold);

    font-size: 32px;
}


.law-card-copy {
    font-family: "Special Elite", monospace;

    color: #ad9877;

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   LAW ROSTER
   ========================================================= */

.roster-section {
    margin-bottom: 42px;
}


.roster-section-title {
    margin: 0 0 15px;

    font-family: "Fredericka the Great", serif;

    color: var(--ubl-gold);

    font-size: 34px;

    font-weight: 400;
}


.roster-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 12px;
}


.roster-card {
    padding: 19px;

    background: #21130d;

    border: 1px solid #4c301f;

    border-radius: 5px;
}


.roster-name {
    margin-bottom: 5px;

    font-family: "Caveat", cursive;

    color: #ead6ac;

    font-size: 25px;

    font-weight: 700;
}


.roster-rank {
    margin-bottom: 7px;

    font-family: "Bungee", sans-serif;

    color: var(--ubl-gold);

    font-size: 9px;

    text-transform: uppercase;
}


.roster-meta {
    font-family: "Special Elite", monospace;

    color: #a99474;

    font-size: 12px;

    line-height: 1.55;
}


/* =========================================================
   HOUSING LIVE MAP PAGE
   ========================================================= */

.map-dashboard {
    display: grid;

    grid-template-columns:
        310px
        minmax(0, 1fr);

    gap: 18px;
}


.map-sidebar {
    padding: 18px;

    background: #1c100b;

    border: 1px solid #4b301f;

    border-radius: 7px;
}


.map-container {
    min-height: 620px;

    position: relative;

    overflow: hidden;

    background: #100906;

    border: 1px solid #55351f;

    border-radius: 7px;
}


.map-placeholder {
    min-height: 620px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    font-family: "Special Elite", monospace;

    color: #8f7a5e;
}


.map-stat-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 10px;

    margin-bottom: 18px;
}


.map-stat {
    padding: 15px;

    text-align: center;

    background: #21130d;

    border: 1px solid #4b311f;

    border-radius: 5px;
}


.map-stat-value {
    font-family: "Fredericka the Great", serif;

    color: var(--ubl-gold);

    font-size: 30px;
}


.map-stat-label {
    margin-top: 4px;

    font-family: "Bungee", sans-serif;

    color: #9e8769;

    font-size: 8px;

    text-transform: uppercase;
}


/* =========================================================
   STORE CATEGORY CARDS
   ========================================================= */

.store-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 16px;
}


.store-card {
    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #25160f 0%,
            #180e09 100%
        );

    border: 1px solid #54351f;

    border-radius: 7px;

    box-shadow: var(--ubl-small-shadow);

    transition:
        transform 0.18s ease,
        border-color 0.18s ease;
}


.store-card:hover {
    transform: translateY(-4px);

    border-color: #87602f;
}


.store-card-image-wrap {
    width: 100%;

    aspect-ratio: 4 / 5;

    padding: 6px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        radial-gradient(
            circle,
            #2a1b12,
            #0c0705
        );
}


.store-card-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}


.store-card-content {
    padding: 19px;
}


.store-card-title {
    margin: 0 0 7px;

    font-family: "Caveat", cursive;

    color: #ead3a7;

    font-size: 29px;

    font-weight: 700;
}


.store-card-price {
    margin-bottom: 11px;

    font-family: "Bungee", sans-serif;

    color: var(--ubl-gold-bright);

    font-size: 12px;
}


.store-card-copy {
    margin: 0 0 16px;

    font-family: "Special Elite", monospace;

    color: #a99474;

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   GALLERY
   ========================================================= */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 12px;
}


.gallery-card {
    overflow: hidden;

    background: #120a07;

    border: 1px solid #4d311f;

    border-radius: 6px;
}


.gallery-card img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================================================
   EMPTY / LOADING / ERROR STATES
   ========================================================= */

.state-box {
    padding: 35px;

    text-align: center;

    background: #1c100b;

    border: 1px solid #49301f;

    border-radius: 6px;
}


.state-title {
    margin-bottom: 7px;

    font-family: "Fredericka the Great", serif;

    color: var(--ubl-gold);

    font-size: 30px;
}


.state-copy {
    font-family: "Special Elite", monospace;

    color: #9f896c;

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   HELP BOX
   ========================================================= */

.help-box {
    padding: 30px 25px;

    text-align: center;

    background: var(--ubl-panel-dark);

    border: 1px solid #43291b;

    border-radius: 7px;
}


.help-box .content-section-title {
    padding: 0;

    border: 0;

    margin-bottom: 8px;
}


.help-box p {
    margin: 0 auto 17px;

    max-width: 700px;

    font-family: "Special Elite", monospace;

    color: #aa9473;

    font-size: 14px;

    line-height: 1.65;
}


/* =========================================================
   SHARED FOOTER
   ========================================================= */

.site-shell-footer {
    width: 100%;

    padding: 30px 0;

    background: #25130d;

    border-top: 1px solid #412218;
}


.site-footer-inner {
    width: min(
        var(--ubl-max-width),
        calc(100% - 32px)
    );

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.site-footer-brand {
    display: flex;

    align-items: center;

    gap: 15px;
}


.site-footer-logo {
    width: 90px;
    height: auto;

    display: block;

    object-fit: contain;
}


.site-footer-copy {
    font-family: "Special Elite", monospace;

    color: #a88f6c;

    font-size: 13px;

    line-height: 1.6;
}


.site-footer-links {
    display: flex;

    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 14px;
}


.site-footer-links a {
    font-family: "Special Elite", monospace;

    color: #b99e77;

    font-size: 12px;

    text-decoration: none;
}


.site-footer-links a:hover {
    color: var(--ubl-gold);
}


/* =========================================================
   UTILITY CLASSES
   ========================================================= */

.hidden {
    display: none !important;
}


.text-center {
    text-align: center;
}


.mt-0 {
    margin-top: 0 !important;
}


.mb-0 {
    margin-bottom: 0 !important;
}


.mb-10 {
    margin-bottom: 10px !important;
}


.mb-20 {
    margin-bottom: 20px !important;
}


.mb-30 {
    margin-bottom: 30px !important;
}


.mb-40 {
    margin-bottom: 40px !important;
}


/* =========================================================
   RESPONSIVE — LARGE TABLET
   ========================================================= */

@media (max-width: 1120px) {

    .site-nav-item,
    .site-nav-trigger {
        padding-left: 8px;
        padding-right: 8px;

        font-size: 10px;
    }


    .site-action {
        padding-left: 10px;
        padding-right: 10px;
    }


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


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

}


/* =========================================================
   RESPONSIVE — TABLET / MOBILE NAV
   ========================================================= */

@media (max-width: 980px) {

    .site-shell-inner {
        flex-wrap: wrap;

        padding: 10px 0;

        gap: 10px;
    }


    .site-brand {
        margin-right: auto;
    }


    .site-menu-toggle {
        display: inline-flex;

        align-items: center;

        justify-content: center;
    }


    .site-actions {
        order: 2;
    }


    .site-nav {
        order: 3;

        flex: 0 0 100%;

        display: none;

        padding: 10px 0 5px;

        flex-direction: column;

        align-items: stretch;

        gap: 5px;

        border-top: 1px solid #43291b;
    }


    .site-nav.open {
        display: flex;
    }


    .site-nav-item,
    .site-nav-trigger {
        width: 100%;

        justify-content: space-between;

        padding: 12px 14px;
    }


    .site-nav-dropdown {
        width: 100%;
    }


    .site-dropdown-menu {
        width: 100%;

        position: static;

        margin-top: 4px;

        box-shadow: none;
    }


    .site-nav-dropdown:hover .site-dropdown-menu {
        display: none;
    }


    .site-nav-dropdown.open .site-dropdown-menu {
        display: block;
    }


    .product-hero {
        grid-template-columns: 1fr;
    }


    .product-image-frame {
        width: min(650px, 100%);

        margin: 0 auto;
    }


    .guide-layout {
        grid-template-columns: 1fr;
    }


    .guide-sidebar {
        position: static;
    }


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


    .map-dashboard {
        grid-template-columns: 1fr;
    }


    .map-sidebar {
        order: 1;
    }


    .map-container {
        order: 2;
    }

}


/* =========================================================
   RESPONSIVE — SMALL TABLET
   ========================================================= */

@media (max-width: 800px) {

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


    .site-footer-inner {
        flex-direction: column;

        text-align: center;
    }


    .site-footer-links {
        justify-content: center;
    }


    .server-status-top {
        flex-direction: column;

        align-items: flex-start;
    }


    .home-hero {
        min-height: 590px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .site-main,
    .section-shell {
        width: calc(100% - 24px);
    }


    .site-shell-inner {
        width: calc(100% - 20px);
    }


    .site-brand {
        width: 52px;

        flex-basis: 52px;
    }


    .site-brand img {
        width: 50px;
        height: 50px;
    }


    .site-actions {
        gap: 5px;
    }


    .site-action {
        padding: 8px 9px;

        font-size: 8px;
    }


    .site-menu-toggle {
        min-width: 42px;

        padding: 7px 8px;
    }


    .home-hero {
        min-height: 540px;
    }


    .home-hero-content {
        width: calc(100% - 24px);

        padding: 60px 0;
    }


    .home-hero-title {
        font-size: 49px;
    }


    .home-hero-quote {
        font-size: 27px;
    }


    .home-hero-actions {
        flex-direction: column;
    }


    .home-hero-actions .ubl-button {
        width: 100%;
    }


    .section-title,
    .page-hero-title {
        font-size: 42px;
    }


    .product-title {
        font-size: 42px;
    }


    .product-motto {
        font-size: 25px;
    }


    .content-section-title {
        font-size: 30px;
    }


    .feature-grid,
    .staff-grid,
    .quick-link-grid,
    .store-grid,
    .gallery-grid,
    .law-grid,
    .roster-grid {
        grid-template-columns: 1fr;
    }


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


    .map-stat-grid {
        grid-template-columns: 1fr;
    }


    .tool-bar {
        align-items: stretch;

        flex-direction: column;
    }


    .search-field,
    .filter-select {
        width: 100%;

        min-width: 0;
    }


    .button-row {
        flex-direction: column;

        align-items: stretch;
    }


    .button-row .ubl-button {
        width: 100%;
    }


    .process-step {
        grid-template-columns: 38px 1fr;
    }


    .site-toast {
        right: 12px;
        bottom: 12px;
        left: 12px;

        max-width: none;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .site-actions .site-discord {
        display: none;
    }


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


    .home-hero-title {
        font-size: 42px;
    }


    .section-title,
    .page-hero-title {
        font-size: 37px;
    }


    .product-title {
        font-size: 37px;
    }

}
