/* ============================================================
   GLOBAL CSS — War of Rights
   ============================================================
   Only FOUC-critical and truly shared styles belong here.
   Page-specific styles   -> css/pages/   (PageFactory)
   Component-specific     -> css/components/ (ComponentCss)

   Order: imports -> vars -> fonts -> * -> body -> typography ->
          components -> layout -> pages -> media queries ->
          keyframes -> accessibility
   ============================================================ */


/* ======================= */
/*  Imports & Fonts        */
/* ======================= */
@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100;200;300;400;500;600;700;800;900&display=swap");

/*? Handwriting Fonts */
@font-face { font-family: worHandwritten; src: url("/Content/Fonts/SegoePrint.woff2") format("woff2"); }
@font-face { font-family: worHandwrittenFine; src: url("/Content/Fonts/BrushScriptStd.woff2") format("woff2"); }
@font-face { font-family: worRegular; src: url('/Content/Fonts/AveriaSerifLibre-Regular.woff2') format('woff2'); }

/*? TypeFonts */
@font-face { font-family: type1; src: url("/Content/Fonts/TypeOneWF.woff2") format("woff2"); }
@font-face { font-family: type4; src: url("/Content/Fonts/TypeThirteenWF.woff2") format("woff2"); }
@font-face { font-family: type11; src: url("/Content/Fonts/TypeElevenWF_extended.woff2") format("woff2"); }
@font-face { font-family: type12; src: url("/Content/Fonts/TypeTwelveWF.woff2") format("woff2"); }

/*? Material Symbols (subset) — aliased twice so legacy `.material-icons` class
    and modern `.material-symbols-outlined` class both render from the same file.
    Auto-regenerated on every Build / Publish by the SubsetMaterialSymbols MSBuild
    target in WebServer.csproj, which invokes WebServer/Scripts/@BuildAssets/subset-material-symbols.mjs. */
@font-face {
    font-family: "Material Symbols Outlined";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("/Content/Fonts/material-symbols-outlined.woff2") format("woff2");
}
@font-face {
    font-family: "Material Icons";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("/Content/Fonts/material-symbols-outlined.woff2") format("woff2");
}


/* ======================= */
/*  CSS Variables           */
/* ======================= */
:root {

    /*? Responsive Container Vars */
    --mobile-width: 100%;
    --tablet-width: 1080px;
    --desktop-width: 1180px;
    --lg-desktop-width: 1336px;

    /*? Paper Vars */
    --paper-border-width: 3px;
    --font-color-1: #191919;
    --font-color-2: #dbd3c3;
    --font-color-3: rgba(68, 68, 68, 0.938);
    --font-color-dev: rgba(22, 88, 150, 0.91);
    --font-white: #fff;

    /*? Social Platform Color Codes */
    --discord-color: #7289dad7;
    --facebook-color: #1877f2;
    --youtube-color: #ff0000;
    --reddit-color: #ff4500;
    --twitter-color: #1da1f2;
    --twitch-color: #6441a5;
    --steam-color: #2a475e;
    --steam-green-font: #beee11;
    --steam-green-bg: #4c6b22;
}


/* ======================= */
/*  Universal & Reset      */
/* ======================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "liga";
}

@media (min-width: 768px)  { .container { max-width: var(--mobile-width); } }
@media (min-width: 1024px) { .container { max-width: var(--tablet-width); } }
@media (min-width: 1280px) { .container { max-width: var(--desktop-width); } }
@media (min-width: 1536px) { .container { max-width: var(--lg-desktop-width); } }



/* ========================== */
/*  Body & Layout Containers  */
/* ========================== */
body {
    margin: 0;
    background-color: #a29b90;
    color: var(--font-color-1);
    overflow-y: scroll;
    font-family: worRegular;
}

/* Render gate: keep body hidden until Startup.ts reveals after load + paint settle. */
html.app-prerender:not(.app-revealed) body {
    opacity: 0;
}

html.app-prerender.app-revealed body {
    opacity: 1;
    transition: opacity 0.35s ease;
}

/* Fallback for no-script environments where Startup.ts never runs. */
@media (scripting: none) {
    html.app-prerender body {
        opacity: 1 !important;
    }
}

body *::-webkit-scrollbar {
    width: 12px;
}

body *::-webkit-scrollbar-track {
    background-color: rgb(150, 150, 150);
}

body *::-webkit-scrollbar-thumb {
    background: rgb(50, 50, 50);
}

.main-content {
    padding-bottom: 3em;
}

.main-content.page-enter {
    animation: pageEnter 0.333s ease-out both;
}

.page-routing {
    position: relative;
}

.page-routing > main {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.page-leaving {
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.15s ease-out;
}

.page-leaving,
.page-leaving *,
.page-leaving *::before,
.page-leaving *::after {
    animation: none !important;
}

.page-leaving.page-leaving-out {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .page-leaving { transition: none; }
}

@keyframes pageEnter {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .main-content.page-enter { animation: none; }
}

.container {
    width: 100%;
    padding: unset !important;
}

#wrapper {
    display: block;
    pointer-events: all;
    color: var(--font-color-1);
    opacity: 0.9;
    padding: 6px;
    padding-top: 0;
    margin: 0 3em;
}

#gridWrapper {
    display: flex;
    flex-direction: column;
}

#crowdFundingWrapper {
    display: flex;
    flex-direction: row;
    gap: 1em;
}

.about-header,
.features-header {
    font-family: worRegular;
    width: 100%;
    font-weight: 500;
    font-size: 1.2rem !important;
    color: #f7f7f7e5;
    user-select: none;
    position: relative;
    z-index: 1;
    padding: 0.45em;
    text-align: center;
    margin-bottom: 1em;
}

.indexRight {
    padding: 1em 5em;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4em;
}

.feature-item-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1em;
    border-radius: 3px;
    height: 175px;
    justify-content: space-between;
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
    transition: height 0.4s ease, transform 0.6s ease-out, opacity 0.6s ease-out;
}

.feature-item-container.feature-visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: filter .2s ease-in-out;
    filter: brightness(0.8) saturate(0.8) sepia(0.3) opacity(0.9);
}

.feature-item-container.expanded .feature-background {
    filter: brightness(1) saturate(1) sepia(0.1) opacity(1);
}

.feature-item-container:not(.expanded):hover .feature-background {
    filter: brightness(1) saturate(1) sepia(0.2) opacity(1);
}

.feature-item-container div {
    font-family: worRegular;
    user-select: none;
    z-index: 1;
}

.features-header {
    color: var(--font-color-2);
    margin-top: -1.5em;
}

.feature-description {
    color: var(--font-color-2);
    font-weight: 500;
    text-shadow: 0px 1px 2px #000000;
    font-size: 1.1rem;
    padding: 0 5em;
    text-align: center;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(90deg,
            rgba(174, 156, 132, 0) 0%,
            rgba(122, 109, 93, 0.72) 10%,
            rgba(122, 109, 93, 0.85) 50%,
            rgba(122, 109, 93, 0.72) 90%,
            rgba(174, 156, 132, 0) 100%);
    transition: max-height 0.4s ease, opacity 0.3s ease 0.1s, padding 0.4s ease;
}

.feature-item-container.expanded>.feature-description {
    max-height: 200px;
    opacity: 1;
    padding: 5px 5em;
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.feature-item-container.expanded {
    height: 384px;
    filter: brightness(1) saturate(1) sepia(0.1) opacity(1);
}

.vision-header {
    font-family: worRegular;
    font-weight: 700;
    font-size: 1.5rem !important;
    user-select: none;
    position: relative;
    z-index: 1;
    padding: 0.5em;
    text-align: center;
}

.features-header {
    position: relative;
    z-index: 1;
}

.about-header::before,
.features-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/Content/Images/Background/ThickBar.png);
    background-size: cover;
    z-index: -1;
    filter: drop-shadow(2px 2px 2px #00000072);
}

.material-icons {
    font-family: "Material Icons";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "liga";
    user-select: none;
}

/* ======================= */
/*  Typography             */
/* ======================= */
p,
th,
td {
    color: var(--font-color-1);
    font-family: worRegular;
    font-weight: 500;
    font-size: 1rem;
}

a {
    color: var(--font-color-1);
    font-family: worRegular;
    font-size: 18px;
    font-weight: 500;
    text-decoration: underline;
}

a:hover {
    color: var(--font-color-1);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-weight: 500;
    line-height: 1.1;
    margin-top: 20px;
    margin-bottom: 10px;
}

h1 {
    color: var(--font-color-1);
    font-family: worRegular;
    font-size: 1.7rem;
}

h2 {
    color: var(--font-color-1);
    font-family: worRegular;
    font-size: 1.2rem;
    font-weight: bold;
}

h3 {
    color: var(--font-color-1);
    font-family: worRegular;
    font-size: 1rem;
}

.errorTextColor {
    color: #651010 !important;
    margin-top: 5px;
}

.successTextColor {
    color: #42712f;
}

ul {
    margin-top: 0;
    margin-bottom: 10px;
    padding: 0;
    padding-left: 1em;
}



/* ======================= */
/*  Grid Layout Utilities  */
/* ======================= */
.grid-1fr-1fr,
.g-1-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap, 10px);
}

.grid-1fr-1fr-no-collapse {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--grid-gap, 2px);
}

.grid-1fr,
.g-1 {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: var(--grid-gap, 0.5em);
}

.grid-auto-1fr,
.g-a-1 {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--grid-gap, 10px);
}

.grid-1fr-auto,
.g-1-a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--grid-gap, 10px);
}

.grid-custom,
.gc {
    display: grid;
    grid-template-columns: var(--grid-columns);
    gap: var(--grid-gap, 10px);
}

.center-grid-xy,
.cg-xy {
    justify-items: center;
    align-items: center;
}

.center-grid-x,
.cg-x {
    justify-items: center;
}

.center-grid-y,
.cg-y {
    align-items: center;
}

.center-col-x,
.cc-x {
    display: flex;
    justify-content: center;
    justify-self: center;
}

.center-col-y,
.cc-y {
    display: flex;
    align-items: center;
    align-self: center;
}

.center-col-xy,
.cc-xy {
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
    align-self: center;
}

.end-col-y {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--grid-gap, 10px);
}

.background-image,
.bg {
    background-image: var(--bg-source);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: filter 0.2s ease;
}

.background-cropper,
.bc {
    position: relative;
    width: var(--cropper-width, 100%);
    height: var(--cropper-height, 100%);
    overflow: hidden;
}

.background-cropper::before,
.bc::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: var(--bg-source);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* ======================= */
/*  Inputs & Form Fields   */
/* ======================= */
.discount-input-field,
.input {
    font-size: 1rem;
    border: 1px solid rgba(0,0,0,0.12);
    font-family: worRegular;
    font-weight: normal;
    color: rgba(25, 25, 25, 0.8);
    border-radius: 6px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    background-color: rgba(0,0,0,0.05);
    outline: none;
    box-shadow: none;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
}

.input:hover {
    background-color: rgba(0,0,0,0.07);
}

.input::placeholder {
    color: rgba(25, 25, 25, 0.45);
    font-weight: normal;
    font-style: normal;
}

.input:active {
    filter: none;
}

.input:focus {
    background-color: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.25);
    color: #272521;
    box-shadow: none;
    font-weight: normal;
}

.input:disabled {
    background-color: rgba(0,0,0,0.08);
    color: rgba(25, 25, 25, 0.45);
    opacity: 0.7;
}

.input,
select.input,
textarea.input {
    width: 100%;
}

textarea.input::placeholder {
    color: #00000093;
    font-weight: 100;
}


input[type="file"] {
    padding-bottom: 37px;
}

select.input {
    color: rgba(25, 25, 25, 0.75);
}

textarea.input {
    min-height: var(--height, 100px);
    max-height: unset;
}

.button-stroked {
    filter: brightness(1) sepia(0) grayscale(0) contrast(1);
    color: #272521;
    background: transparent;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: none;
    font-weight: 700;
    font-family: worRegular;
    font-size: 1rem;
    height: 42px;
    padding: 0.5em 1.5em;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    user-select: none;
    outline: none;
    display: block;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25em;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.button-stroked.bg {
    font-size: 1.1rem;
    height: 45px;
}

.button-stroked.bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/Content/Images/Background/CT_Background1.png');
    background-size: auto;
    background-position: center -100px;
    background-blend-mode: lighten;
    opacity: 0.6;
    z-index: -1;
    border-radius: 2px;
}

.button-stroked:hover {
    background-color: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.22);
}

.button-stroked:active {
    background-color: rgba(0,0,0,0.1);
}

.button-stroked:disabled {
    background-color: rgba(0,0,0,0.06);
    color: rgba(25, 25, 25, 0.45);
    opacity: 0.7;
}

.button-raised.bg {
    position: relative;
    height: 45px;
    overflow: hidden;
    background: #000000d7;
}

.external-link {
    word-break: break-all;
}

.button-raised.bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/Content/Images/Background/CT_Background1.png');
    background-size: auto;
    background-position: center -100px;
    background-repeat: no-repeat;
    background-blend-mode: lighten;
    opacity: 0.5;
    z-index: 1;
    border-radius: 2px;
    pointer-events: none;
}

.button-raised {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25em;
    width: 100%;
    height: 42px;
    padding: 0.5em 1.5em;

    background: #272521;
    color: #d5c9b2;
    font-family: worRegular;
    font-size: 1rem;
    font-weight: normal;
    text-align: center;
    text-decoration: none;

    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);

    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.button-raised:hover:not(:disabled):not(.button-raised-red):not(.button-raised-blue):not(.button-raised-green) {
    background: #181818;
    color: #e4dfcfe1;
}

.button-raised:active {
    background: #0c0b0a !important;
    color: #f0ede3;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.25);
}

.button-raised:disabled {
    filter: contrast(0.8) grayscale(1) opacity(0.7);
    cursor: not-allowed;
}

.button-raised:focus-visible {
    outline: 2px solid #888;
    outline-offset: 2px;
}

.button-raised .material-icons {
    font-size: 16px !important;
}

.button-raised-red {
    background-color: #930909;
    background-image: none;
}

.button-raised-blue {
    background-color: #077aad;
    background-image: none;
}

.button-raised-green {
    background-color: #039936;
    background-image: none;
}

.button-raised:hover.button-raised-red {
    background-color: #a00a0a;
    color: #e4dfcf;
}

.button-raised:hover.button-raised-blue {
    background-color: #0a4a8a;
    color: #e4dfcf;
}

.button-raised:hover.button-raised-green {
    background-color: #0a6a0a;
    color: #e4dfcf;
}

.input-checkbox[type="checkbox"] {
    cursor: pointer;
    transform: scale(1.5);
    margin: 8px 0;
    box-shadow: inset 0 0 8px 2px rgb(0 0 0 / 45%);
    filter: sepia(100%) brightness(0.8) contrast(0.7);
}

/* === File dropzone (Input.CreateFileDropzone) === */

.file-field {
    --file-ink: #2a1f14;
    --file-ink-soft: rgba(60, 45, 25, 0.88);
    --file-ink-mute: rgba(60, 45, 25, 0.78);
    --file-rule: rgba(60, 45, 25, 0.26);
    --file-rule-bold: rgba(60, 45, 25, 0.44);
    --file-tint: rgba(60, 45, 25, 0.045);
    --file-highlight: rgba(255, 252, 244, 0.34);
    --file-accept: #2c6a34;
    --file-accept-bd: rgba(44, 106, 52, 0.5);
    --file-accept-bg: rgba(44, 106, 52, 0.09);
    --file-reject: #8c2026;
    --file-reject-bd: rgba(140, 32, 38, 0.5);
    --file-reject-bg: rgba(140, 32, 38, 0.07);

    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.file-native {
    display: none;
}

.file-dropzone {
    position: relative;
    display: flex;
    border: 1px solid var(--file-rule-bold);
    border-radius: 5px;
    background: linear-gradient(180deg, rgba(60, 45, 25, 0.095) 0%, rgba(60, 45, 25, 0.055) 100%);
    box-shadow:
        inset 0 1px 4px rgba(60, 45, 25, 0.12),
        0 1px 0 var(--file-highlight);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.file-pick {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 128px;
    padding: 1.2rem 1rem;
    border: 0;
    border-radius: 5px;
    background: transparent;
    font-family: worRegular;
    text-align: center;
    cursor: pointer;
    appearance: none;
}

.file-pick::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px dashed rgba(60, 45, 25, 0.34);
    border-radius: 3px;
    pointer-events: none;
    transition: border-color 0.15s ease;
}

.file-pick-icon {
    font-size: 30px !important;
    line-height: 1 !important;
    color: var(--file-ink-mute);
    transition: color 0.15s ease;
}

.file-pick-title {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--file-ink-soft);
}

.file-pick-accepts {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--file-ink-mute);
}

.file-dropzone:hover {
    border-color: rgba(60, 45, 25, 0.56);
    background: linear-gradient(180deg, rgba(60, 45, 25, 0.115) 0%, rgba(60, 45, 25, 0.055) 55%, rgba(60, 45, 25, 0.09) 100%);
}

.file-dropzone:hover .file-pick::before {
    border-color: rgba(60, 45, 25, 0.46);
}

.file-dropzone:hover .file-pick-icon {
    color: var(--file-ink);
}

.file-pick:focus-visible {
    outline: 2px solid var(--file-ink);
    outline-offset: -4px;
}

.file-dropzone.dragover {
    border-color: var(--file-ink);
    background: linear-gradient(180deg, rgba(60, 45, 25, 0.17) 0%, rgba(60, 45, 25, 0.1) 100%);
}

.file-dropzone.dragover .file-pick::before {
    border-color: rgba(60, 45, 25, 0.6);
}

.file-dropzone.dragover .file-pick-icon {
    color: var(--file-ink);
}

.file-dropzone.accepted {
    border-color: var(--file-accept-bd);
    background: linear-gradient(180deg, rgba(44, 106, 52, 0.1) 0%, rgba(44, 106, 52, 0.05) 100%);
    box-shadow:
        inset 0 1px 4px rgba(28, 70, 34, 0.1),
        0 1px 0 var(--file-highlight);
}

.file-dropzone.accepted .file-pick::before {
    border-color: rgba(44, 106, 52, 0.3);
}

.file-dropzone.accepted .file-pick-icon {
    color: var(--file-accept);
}

.file-dropzone.invalid {
    border-color: var(--file-reject-bd);
    background: linear-gradient(180deg, rgba(140, 32, 38, 0.09) 0%, rgba(140, 32, 38, 0.045) 100%);
    box-shadow:
        inset 0 1px 4px rgba(110, 25, 30, 0.1),
        0 1px 0 var(--file-highlight);
}

.file-dropzone.invalid .file-pick::before {
    border-color: rgba(140, 32, 38, 0.32);
}

.file-dropzone.invalid .file-pick-icon,
.file-dropzone.invalid .file-pick-title {
    color: var(--file-reject);
}

.file-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--file-ink);
    word-break: break-all;
}

.file-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.1rem 0.9rem;
    font-size: 0.82rem;
    color: var(--file-ink-mute);
}

.file-meta-part {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
}

.file-meta-icon {
    font-size: 15px !important;
    line-height: 1 !important;
}

.file-clear {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 36px;
    height: 36px;
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: #272521;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    color: #d5c9b2;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.file-dropzone.accepted .file-clear {
    display: inline-flex;
}

.file-clear:hover {
    background: var(--file-reject);
    color: #fbefef;
}

.file-clear:focus-visible {
    outline: 2px solid var(--file-ink);
    outline-offset: 2px;
}

.file-clear-icon {
    font-size: 18px !important;
    line-height: 1 !important;
}

.file-pick:disabled,
.file-clear:disabled {
    cursor: default;
    opacity: 0.55;
}

.file-message {
    margin: 0;
    font-family: worRegular;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--file-reject);
}

.file-message:empty {
    display: none;
}

@media (max-width: 600px) {
    .file-clear {
        width: 44px;
        height: 44px;
    }
}

.btn {
    width: 100%;
    height: fit-content;
    padding: 5px !important;
    box-shadow: 0px 0px 1px 1px rgb(0 0 0 / 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: box-shadow .2s ease, transform .2s ease;
}

.btn:hover {
    box-shadow: 0px 1px 2px 2px rgb(0 0 0 / 25%);
}

.btn:active {
    transform: scale(0.95);
}

.btn:active,
.btn:focus {
    box-shadow: 0px 0px 1px 1px rgb(0 0 0 / 25%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--font-color-2);
}

.season-selector .custom-select-placeholder {
    margin: 0 !important;
    min-height: 50px;
    min-width: 80px;
    background: transparent;
    font-family: worRegular;
    font-size: 1.1rem !important;
    display: flex;
    align-items: center;
}

.custom-select {
    position: relative;
    display: flex;
    min-width: 200px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    font-family: worRegular;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    border-radius: 6px;
    box-shadow: none;
    user-select: none;
    height: 40px;
    padding: 7px 10px;
    padding-right: 0.35em;
    align-items: center;
    justify-content: space-between;
    color: rgba(25, 25, 25, 0.8);
}

.custom-select::after {
    display: none;
}

.custom-select-icon {
    font-size: 24px;
    color: rgba(25, 25, 25, 0.7);
    margin-left: auto;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.custom-select:hover {
    background-color: rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.25);
}

.custom-select:hover .custom-select-icon {
    opacity: 1;
}

.custom-select:disabled,
.custom-select.disabled {
    background-color: rgba(0, 0, 0, 0.08);
    color: rgba(25, 25, 25, 0.45);
    opacity: 0.7;
    cursor: not-allowed;
}

.custom-select-placeholder {
    font-size: 1rem;
    color: #272521;
    font-weight: 500;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    width: 100%;
}

.custom-select-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    height: auto;
    padding: 0.35em;
    background-color: #14100a;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    border: 1px solid rgba(217, 194, 165, 0.18);
    z-index: 9999;
    user-select: none;
    max-height: 328px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 194, 165, 0.35) rgba(0, 0, 0, 0.3);
}

.custom-select-options::-webkit-scrollbar {
    width: 8px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background-color: rgba(217, 194, 165, 0.35);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.4);
}

.custom-select-options.show {
    display: block;
}

.custom-select-option {
    padding: 9px 12px;
    font-size: 0.95rem;
    color: #e8dcc2;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
    font-weight: 500;
}

.custom-select-option + .custom-select-option {
    margin-top: 1px;
}

.custom-select-option:hover {
    background: radial-gradient(circle, rgba(217, 194, 165, 0.22) 0%, rgba(217, 194, 165, 0.06) 100%);
    color: #fff5dc;
    border-color: rgba(217, 194, 165, 0.18);
}

.custom-select-option:active {
    background-color: rgba(217, 194, 165, 0.28);
}

.custom-select-option.selected {
    background-color: rgba(217, 194, 165, 0.18);
    color: #fff5dc;
    border-color: rgba(217, 194, 165, 0.4);
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 240, 210, 0.06);
}

.custom-select-option.selected:hover {
    background-color: rgba(217, 194, 165, 0.26);
    color: #fff5dc;
}

.editPerms {
    cursor: pointer;
}

.dev-emblem {
    position: relative;
    width: var(--size, 50px);
    height: var(--size, 50px);
    background-image: url('/Content/Images/Levels/Developer.png');
    background-size: cover;
    background-position: center;
    display: flex;
    transform: scale(0.72);
    justify-content: center;
    align-items: center;
    filter: contrast(150%) saturate(75%) sepia(45%);
}

.level-wreath {
    position: relative;
    width: var(--size, 50px);
    height: var(--size, 50px);
    background-size: contain;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: worRegular;
}

.level-text {
    user-select: none;
}

.playerName {
    color: rgba(25, 25, 25, 0.9) !important;
}

.adminPlayerName {
    color: rgba(136, 0, 0, 0.9) !important;
}

.steamFriendPlayerName {
    color: rgba(190, 238, 17, 0.9) !important;
}

.devPlayerName {
    color: rgba(22, 88, 150, 0.9) !important;
}

.gameTableTop {
    background: url(/Content/Images/Background/ThickBar.png);
    width: 100%;
    height: 100%;
    font-weight: 500;
    padding: 10px 0.5em;
    font-family: type12 !important;
    font-size: 1.3rem !important;
    line-height: 23px;
    color: #f7f7f7e5;
    font-family: worRegular;
    user-select: none;
    position: relative;
    z-index: -1;
}

.gameTableTop::before {
    content: '';
    display: block;
    margin-top: -29px;
    height: 22px;
}

.gameTableTop::after {
    margin-top: -5px !important;
}

.gameTableBottom {
    background-image: url(/Content/Images/Background/Seperator.png);
    height: 8px;
    margin-top: 0.75em;
    background-size: auto 100%;
}

.full-width,
.fw {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

.full-height,
.fh {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 100% !important;
}

.fit-content,
.fc {
    width: fit-content !important;
    height: fit-content !important;
}

.fit-width,
.fwc {
    width: fit-content !important;
}

.fit-height,
.fhc {
    height: fit-content !important;
}

.no-margin-padding,
.no-padding-margin,
.nmp,
.npm {
    margin: 0 !important;
    padding: 0 !important;
}

.margin-padding,
.padding-margin,
.mp,
.pm {
    margin: 1em !important;
    padding: 1em !important;
}

.m,
.margin {
    margin: 1em !important;
}

.mx,
.xm,
.margin-x,
.x-margin {
    margin: 0 1em !important;
}

.my,
.ym,
.margin-y,
.y-margin {
    margin: 1em 0 !important;
}

.p {
    padding: 1em !important;
}

.px,
.xp,
.padding-x,
.x-padding {
    padding: 0 1em !important;
}

.py,
.yp,
.padding-y,
.y-padding {
    padding: 1em 0 !important;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.shadow {
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.shadow-inner {
    box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
}

.fancyClearBoth {
    clear: both;
}

.text-center {
    text-align: center;
    display: block;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

::selection {
    color: #d3c8b3;
    background: #24231f;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: var(--display, inline-block);
}

.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

.inline {
    display: inline !important;
}

.fixed {
    position: fixed !important;
}

.inline-block {
    display: inline-block !important;
}

.no-text-decoration {
    text-decoration: none !important;
}

.clickable {
    cursor: pointer;
    transition: filter 0.115s ease;
}

.clickable:hover {
    filter: brightness(1.1);
}

.clickable:active {
    filter: brightness(0.8);
}

.discord-logo {
    height: 25px;
    fill: red;
}

.socialItem .svgItemIcon {
    transition: transform .2s;
    cursor: pointer;
}

.editSection .socialItem .svgItemIcon {
    cursor: default;
}

.socialItem {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    align-items: center;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 900;
    font-family: worRegular;
    font-size: 0.9rem;
    user-select: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s, transform .115s;
}

.socialItemText {
    transition: color 0.3s;
}

.socialItem img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    pointer-events: none;
    filter: contrast(0.2) brightness(0.5);
}

.socialItem:hover {
    filter: contrast(1) brightness(1);
    color: var(--font-color-1);
}

.socialItem:active {
    transform: translateY(1px)
}



/* ======================= */
/*  Dropdowns              */
/* ======================= */
.dropdown-menu {
    display: none;
    user-select: none;
    list-style: none;
    margin: 0;
    padding: 0.35em 0;
    min-width: 200px;
    background: linear-gradient(180deg, rgba(28, 24, 19, 0.96) 0%, rgba(18, 15, 11, 0.96) 100%);
    border: 1px solid rgba(217, 194, 165, 0.18);
    border-radius: 8px;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.55),
        0 2px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dropdown-menu.show {
    display: block;
    position: fixed;
    z-index: 1050;
    width: max-content;
    animation: dropdownOpen 0.14s ease-out forwards;
}

@keyframes dropdownOpen {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.dropdown-menu > li { list-style: none; }

.dropdown-item {
    position: relative;
    color: #d9c2a5;
    display: flex;
    align-items: center;
    gap: 0.7em;
    font-family: worRegular;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.55em 1em 0.55em 0.85em;
    margin: 0 0.25em;
    width: auto;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(217, 194, 165, 0.10);
    color: #f3e6cf;
    outline: none;
}

.dropdown-item:active {
    background: rgba(217, 194, 165, 0.18);
}

.dropdown-item .material-icons,
.dropdown-item .material-symbols-outlined {
    font-size: 1.15rem;
    opacity: 0.8;
    flex-shrink: 0;
}

.dropdown-item:hover .material-icons,
.dropdown-item:hover .material-symbols-outlined {
    opacity: 1;
}

.dropdown-toggle::after {
    content: "chevron_right";
    font-family: 'Material Icons';
    font-size: 1.1rem;
    margin-left: auto;
    opacity: 0.6;
    border: 0;
}

.dropdown-submenu {
    position: absolute;
    border: 0;
}

.dropdown-submenu > .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
}

.context-divider {
    height: 1px;
    margin: 0.3em 0.5em;
    background: rgba(217, 194, 165, 0.15);
}

.contextMenuBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1049;
    animation: contextBackdropFade 0.15s ease forwards;
}

@keyframes contextBackdropFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes contextSheetSlide {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (max-width: 600px) {
    .dropdown-menu.show.mobile-sheet {
        position: fixed !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 75vh;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 14px 14px 0 0;
        padding: 0.4em 0 calc(0.4em + env(safe-area-inset-bottom)) 0;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
        animation: contextSheetSlide 0.2s ease forwards;
        z-index: 1050;
    }

    .dropdown-menu.show.mobile-sheet.hidden-by-stack {
        display: none !important;
    }

    .dropdown-menu.show.mobile-sheet .dropdown-item {
        padding: 0.85em 1.1em;
        font-size: 1.05rem;
        min-height: 44px;
        gap: 0.75em;
        margin: 0;
        border-radius: 0;
    }

    .dropdown-menu.show.mobile-sheet .dropdown-item .material-icons,
    .dropdown-menu.show.mobile-sheet .dropdown-item .material-symbols-outlined {
        font-size: 1.25rem;
    }

    .dropdown-menu.show.mobile-sheet .dropdown-toggle::after {
        margin-left: auto;
    }

    .dropdown-menu.show.mobile-sheet .context-back .dropdown-item {
        border-bottom: 1px solid rgba(178, 164, 140, 0.2);
        opacity: 0.85;
        font-size: 0.95rem;
    }

    .dropdown-submenu.mobile-sheet {
        position: fixed !important;
    }
}


/* ======================= */
/*  Tabs                   */
/* ======================= */
.tab-container {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    margin-top: 1em;
    gap: 0.25em;
    flex-wrap: wrap;
}

.tabs-row {
    position: relative;
    display: flex;
    flex-grow: 1;
    border-bottom: 1px solid rgba(20, 14, 8, 0.55);
    z-index: 1;
}

.guildTabRow {
    gap: 2px;
}

.tab {
    display: flex;
    color: #2b2b2b;
    font-family: worRegular;
    font-size: 1.1rem;
    text-align: left;
    font-weight: normal;
    margin-top: auto;
    margin-left: 5px;
    user-select: none;
    width: fit-content;
    max-width: fit-content;
    padding: 7px 2px;
    align-content: center;
    align-items: center;
    gap: 5px;
    height: 50px;
}

.tab:first-child {
    min-width: 1em;
}

.tab:last-child {
    flex-grow: 1;
}

.tab-icons {
    font-size: 24px !important;
    color: #2b2018;
    transition: color 0.18s ease-out;
}

.tabMenu {
    text-align: center;
    border: 1px solid rgba(20, 14, 8, 0.35);
    border-bottom: 0;
    color: #2b2018;
    padding: 6px 16px;
    white-space: nowrap;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: rgba(43, 32, 20, 0.04);
    position: relative;
    transition:
        background 0.18s ease-out,
        border-color 0.18s ease-out,
        color 0.18s ease-out;
}

.tabMenu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #c9a45a;
    opacity: 0;
    transition: opacity 0.18s ease-out;
    pointer-events: none;
}

.tab-data {
    padding: 1em 0.5em;
    width: 100%;
    min-height: max(420px, 55vh);
    transition: opacity 0.18s ease-out;
    will-change: opacity;
}

.tab-data.tab-swapping,
.tabContent.tab-swapping {
    opacity: 0;
    pointer-events: none;
}

.tabMenu.selected {
    font-weight: 600;
    position: relative;
    z-index: 5;
    color: #2b2018;
    background: transparent;
    border-color: transparent;
    border-bottom: 0;
    box-shadow: none;
}

.tabMenu.selected::after {
    opacity: 1;
    height: 3px;
    background: #c9a45a;
    box-shadow: none;
}

.tabMenu.selected .tab-icons {
    color: #2b2018;
}

.tabMenu:not(.selected):hover {
    background: rgba(43, 32, 20, 0.06);
    border-color: rgba(20, 14, 8, 0.45);
    color: #140e08;
    cursor: pointer;
}

.tabMenu:not(.selected):hover::after {
    opacity: 0.4;
    background: #c9a45a;
}

.tabMenu:active:not(.selected) {
    background: rgba(43, 32, 20, 0.09);
    border-color: rgba(20, 14, 8, 0.55);
}

.tabMenu div:nth-child(1) {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5em;
}

.tabMenu div:nth-child(2) {
    justify-content: center;
    align-items: center;
    margin-bottom: -2px;
}

.tabContent {
    display: none;
    padding-top: 1em;
    transition: opacity 0.18s ease-out;
    will-change: opacity;
}

.tabContent.selected {
    display: block;
    font-family: worRegular;
    color: #2b2b2b;
    margin: 0;
    font-weight: 400;
    font-size: 1rem;
}


/* ======================= */
/*  Tooltips               */
/* ======================= */
.ui-tooltip {
    position: absolute;
    padding: 6px 10px;
    font-size: 1rem;
    font-family: worRegular;
    background: rgb(25, 25, 25);
    color: var(--font-color-2);
    border-radius: 4px;
    display: none;
    z-index: 9999;
    white-space: nowrap;
    pointer-events: none;
}


/* ========================== */
/*  Animated Map Background   */
/* ========================== */
.panBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    background-size: var(--bg-size);
    z-index: -1;
}

html.pan-canvas-js #background0,
html.pan-canvas-js #background1 {
    display: none !important;
}

.pan-canvas-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

#background0 {
    filter: brightness(var(--bg-brightness));
    background-image: url("/Content/Images/Background/backgroundmap1588.webp");
    background-position: top left;
}

#background1 {
    filter: brightness(var(--bg-brightness));
    background-image: url("/Content/Images/Background/backgroundmap1588.webp");
    background-position: bottom right;
}



/* ========================== */
/*  Paper Texture Layout      */
/* ========================== */
.paper-top {
    margin-top: 210px;
    background-image: url("/Content/Images/Background/Background_PaperTop.png");
    background-image: image-set(
        url("/Content/Images/Background/Background_PaperTop.avif") type("image/avif"),
        url("/Content/Images/Background/Background_PaperTop.webp") type("image/webp"),
        url("/Content/Images/Background/Background_PaperTop.png") type("image/png")
    );
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: top;
    padding-top: 3.7%;
    width: 100%;
}

.paper-middle {
    width: 100%;
    background-image: url("/Content/Images/Background/Background_Paper.png");
    background-image: image-set(
        url("/Content/Images/Background/Background_Paper.avif") type("image/avif"),
        url("/Content/Images/Background/Background_Paper.webp") type("image/webp"),
        url("/Content/Images/Background/Background_Paper.png") type("image/png")
    );
    background-repeat: repeat-y;
    background-size: 100%;
    margin: 0;
    margin-top: -1px;
}

.paper-bottom {
    background-image: url("/Content/Images/Background/Background_PaperBottom.png");
    background-image: image-set(
        url("/Content/Images/Background/Background_PaperBottom.avif") type("image/avif"),
        url("/Content/Images/Background/Background_PaperBottom.webp") type("image/webp"),
        url("/Content/Images/Background/Background_PaperBottom.png") type("image/png")
    );
    background-repeat: no-repeat;
    background-size: 100%;
    padding-bottom: 32%;
    width: 100%;
    margin-top: -22%;
}

.worBorder {
    color: #ab9d89;
    border-style: double;
    border-width: 5px;
    margin: 0 auto;
    margin-top: 10px;
    padding: 1.25em;
    display: block;
}


/* ========================== */
/*  Logo & Header Graphics    */
/* ========================== */

#nailContainer {
    display: flex;
    align-items: center;
    height: fit-content;
    position: absolute;
    width: 100%;
    top: 235px;
    left: 0;
    z-index: 2;
    gap: 308px;
    justify-content: center;
    user-select: none;
}

.nail {
    background-image: url("/Content/Images/Logo/Nail.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 35px;
    height: 35px;
}

#nailLeft,
#nailRight {
    top: 0;
    line-height: 0;
    align-self: center;
}

#nailLeft {
    transform: rotate(-80deg) scale(0.7);
    left: 0;
    position: relative;
    filter: saturate(0.8) sepia(22%) brightness(0.9);
}

#nailRight {
    transform: scale(0.7);
    right: 0;
    position: relative;
    filter: saturate(0.8) sepia(22%) brightness(0.9);
}

.headerContainer {
    position: relative;
    text-align: center;
    user-select: none;
}

.eagle {
    background-image: url("/Content/Images/Logo/TopBanner_Eagle.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    max-width: 400px;
    width: 100%;
    height: 120px;
    position: absolute;
    top: -105px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    cursor: pointer;
    will-change: filter;
    image-rendering: auto;
    transition: filter 0.125s ease-in-out;
    filter: saturate(1) sepia(35%) brightness(0.95);
}

.eagle:hover {
    filter: saturate(1) sepia(55%) brightness(1.05);
}

.eagle:active {
    filter: saturate(1) sepia(75%) brightness(1.1);
}

.flags {
    background-image: url("/Content/Images/Logo/TopBanner_Flags.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    filter: saturate(0.8) sepia(35%) brightness(0.75);
    transition: transform 0.5s ease-in-out;
    pointer-events: none;
    will-change: transform, filter;
}

.flagsLarge {
    display: block;
    width: 975px;
    height: 189px;
    top: 65px;
    position: fixed;
}

.flagsSmall {
    display: none;
    width: 100%;
    max-width: 425px;
    height: 80px;
    top: 107px;
    position: fixed;
}

.flagIn {
    animation: flagInAnimation 0.5s ease-in-out forwards;
}

.flagOut {
    animation: flagOutAnimation 0.2s ease-in-out forwards;
}

.flagInMobile {
    animation: flagInMobileAnimation 0.5s ease-in-out forwards;
}

.flagOutMobile {
    animation: flagOutMobileAnimation 0.2s ease-in-out forwards;
}

@keyframes flagInAnimation {
    0%   { transform: translateX(-50%) translateY(191px) scale(0.103); }
    100% { transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes flagOutAnimation {
    0%   { transform: translateX(-50%) translateY(0) scale(1); }
    100% { transform: translateX(-50%) translateY(191px) scale(0.103); }
}

@keyframes flagInMobileAnimation {
    0%   { transform: translateX(-50%) translateY(149px) scale(0.235); }
    100% { transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes flagOutMobileAnimation {
    0%   { transform: translateX(-50%) translateY(0) scale(1); }
    100% { transform: translateX(-50%) translateY(149px) scale(0.235); }
}

.worText {
    background-image: url("/Content/Images/Logo/TopBanner_worText.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 380px;
    height: 80px;
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    filter: saturate(0.8) sepia(35%) brightness(0.8);
    pointer-events: none;
}

@keyframes textInAnimation {
    0%   { top: -9px; }
    100% { top: 9px; }
}

@keyframes textOutAnimation {
    0%   { top: 0; }
    100% { top: 1px; }
}

.nav-begin {
    margin-top: 2.5em;
}

/*! Steam Store in Navigation */
.spotlightNav {
    justify-content: center;
    align-items: center;
    background: linear-gradient(90deg, 
        rgba(29, 29, 29, 0.90) 20%, 
        rgba(29, 29, 29, 0.85) 40%, 
        rgba(29, 29, 29, 0.75) 60%, 
        rgba(29, 29, 29, 0.60) 80%, 
        rgba(29, 29, 29, 0) 100%);
    font-family: worRegular;
    text-align: justify;
    padding: 4px 6px;
    padding-right: 2.5em !important;
    user-select: none;
    box-shadow: -4px 0 6px -1px rgb(0 0 0 / 36%);
    cursor: pointer;
    transition: filter 0.125s ease-in-out, opacity 0.125s ease-in-out;
    border-radius: 5px;
    position: relative;
    bottom: -0.55em;
}

.spotlightNav:hover {
    opacity: 0.9;
}

.spotlightNav:active {
    opacity: 1;
    filter: brightness(0.777) sepia(20%);
}

.steamLogo {
    pointer-events: none;
    height: 37px;
    width: auto;
}

.discountBox {
    display: flex;
    flex-direction: column-reverse;
    color: #beee11;
    font-style: normal;
    align-items: center;
    animation: discountFound 0.4s 1;
    filter: brightness(0.8) contrast(0.8);
    padding-top: 3px;
}

@keyframes discountFound {
    0%   { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

.saleText {
    font-weight: 200 !important;
    font-size: 11px;
    padding: 0 5px;
    text-transform: uppercase;
    margin-bottom: -5px;
}

.discountText {
    font-size: 16px;
    font-weight: 500;
    padding: 0 5px;
}

.nowText {
    display: block;
    color: var(--font-color-2) / 0.9;
    font-weight: 200;
    font-size: 14px;
    margin-bottom: -8px;
}

.steamAvailable {
    color: var(--font-color-2);
    font-size: 17px;
    margin: 0;
    display:flex;
    align-items: start;
    flex-direction: column;
    gap: 0.115em;
}


/* ========================== */
/*  Navigation                */
/* ========================== */

/* Brass / parchment accents used throughout the primary nav. */
:root {
    --nav-brass: #c9a45a;
    --nav-brass-soft: rgba(201, 164, 90, 0.55);
    --nav-ink: #1a1815;
    --nav-ink-soft: rgba(29, 29, 29, 0.95);
    --nav-cream: #f3e8cf;
}

nav ul {
    user-select: none;
    margin-top: -8px;
    list-style-type: none;
}

nav ul li {
    margin: 8px;
    display: inline;
}

nav ul li a {
    display: inline-block;
    text-decoration: none !important;
}

nav ul li a span {
    color: var(--nav-ink-soft);
    font-family: worRegular;
    text-shadow: 2px 2px 0px #7a7a7a79;
    font-size: 1.7rem;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -1.1px;
    padding: unset !important;
    transition: color 0.2s ease-in-out, text-shadow 0.2s ease-in-out,
        opacity 0.2s ease-in-out;
}

#navigationContainer {
    text-align: center;
    padding: 0 0 0.7em;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    margin-top: 0;
    position: relative;
}

/* --- Desktop primary navigation --- */
.desktop-nav {
    margin: 0 !important;
    padding: 0 6px 0 0 !important;
    display: inline-flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0.25em;
    flex-wrap: wrap;
}

.desktop-nav li {
    display: inline-flex;
    align-items: stretch;
    margin: 0 !important;
    padding: 0;
    position: relative;
}

.desktop-nav li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.3em 0.6em 0.15em;
    text-decoration: none !important;
    outline: none;
}

.desktop-nav li > a::after {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 0.05em;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
                background-color 0.2s ease;
    pointer-events: none;
}

.desktop-nav li > a:hover::after,
.desktop-nav li > a:focus-visible::after {
    opacity: 0.55;
    transform: scaleX(1);
    background: var(--nav-ink);
}

.desktop-nav li > a:focus-visible {
    outline: 2px dashed rgba(29, 29, 29, 0.45);
    outline-offset: 2px;
    border-radius: 2px;
}

.desktop-nav li > a span {
    transition: color 0.18s ease, text-shadow 0.2s ease;
}

.desktop-nav li > a:hover span {
    color: #0d0c08;
}
.desktop-nav li > a {
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.desktop-nav li > a:active {
    transform: translateY(1px);
    opacity: 0.78;
}

.desktop-nav li.active > a::after {
    opacity: 1;
    transform: scaleX(1);
    height: 3px;
    background: var(--nav-brass);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.desktop-nav li.active > a span {
    color: var(--nav-ink);
}

.mobile-nav {
    display: none;
}

.mobile-nav li {
    margin: 10px 0;
}

.mobile-nav .nav-indicator,
.mobile-nav .nav-caret {
    display: inline-block;
}

/* --- Mobile menu toggle (animated 3-bar -> X) --- */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    user-select: none;
    background: transparent;
    border: 0;
    padding: 1em 1.25em;
    margin: 0.35em 0 0.5em;
    margin-bottom: 0;
    color: var(--font-color-3);
    transition: color 0.15s ease, transform 0.15s ease;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover { color: #000000; }
.mobile-menu-toggle:active { transform: scale(0.94); }
.mobile-menu-toggle:focus-visible {
    outline: 2px dashed rgba(29, 29, 29, 0.55);
    outline-offset: 3px;
    border-radius: 4px;
}

.mobile-menu-icon {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 22px;
}

.mobile-menu-icon > span {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.7, 0.0, 0.2, 1),
                opacity 0.2s ease,
                top 0.3s cubic-bezier(0.7, 0.0, 0.2, 1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.mobile-menu-icon > span:nth-child(1) { top: 0; }
.mobile-menu-icon > span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-icon > span:nth-child(3) { top: calc(100% - 3px); }

.mobile-menu-toggle.clicked .mobile-menu-icon > span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.mobile-menu-toggle.clicked .mobile-menu-icon > span:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0.2);
}
.mobile-menu-toggle.clicked .mobile-menu-icon > span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}


/* ========================== */
/*  Footer                    */
/* ========================== */

.footerLogo.discord {
    fill: #7289da;
}

.footerLogo.facebook {
    fill: #1877f2;
}

.footerLogo.X {
    filter: brightness(0.9) contrast(0.9);
}

.footerLogo.youtube {
    fill: #ff0000;
}

.footerLogo.reddit {
    fill: #ff4500;
}

.footerWrapper {
    width: 100%;
    position: relative;
    margin-top: -170px;
    padding-left: 103px;
    padding-right: 54px;
}

#footer {
    clear: both;
    user-select: none;
    border: 0;
    position: relative;
}

.cgFooterLeft {
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
    align-self: center;
    flex-direction: column;
    align-content: center;
    padding: 3px;
}

.footerLogo {
    width: auto;
    height: 19px;
    margin-right: 5px;
    filter: brightness(0.9) contrast(0.5);
}

.cryLogo {
    width: auto;
    height: 30px;
    margin-right: 5px;
    filter: invert(1);
    object-fit: contain;
    overflow-clip-margin: unset;
    image-rendering: smooth;
    transition: filter 0.2s ease-in-out;
}

.cryLogo:hover {
    filter: invert(1) opacity(0.8) brightness(0.8);
}

.cgFooterLeftMobile {
    display: none;
}

.cgFooterLogo {
    width: auto;
    height: 40px;
    display: block;
    filter: sepia(32.5%) brightness(0.9) saturate(0.8);
    pointer-events: none;
}

.copyright {
    font-family: worRegular;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    color: rgb(50, 50, 50);
}

.footerRight {
    filter: sepia(12.5%) brightness(0.9) contrast(1);
    background: linear-gradient(-90deg,
            rgba(29, 29, 29, 0.91) 60%,
            rgba(29, 29, 29, 0.5),
            rgba(29, 29, 29, 0) 100%);
    border-radius: 5px;
    color: var(--font-color-2);
    margin: 3px;
}

.crowdFlex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 400;
    font-size: 14px !important;
}

.crowdFundingText {
    font-family: worRegular
}

.completedFunding {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-content: center;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.1s ease-in-out;
    font-family: worRegular
}

.completedFunding>i {
    color: #7aa07a;
}

.completedFunding:hover {
    filter: brightness(1.2);
}

.completedFunding:active {
    transform: scale(0.95);
}

.footerExtra {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-around;
    align-content: flex-start;
    align-items: center;
    text-align: center;
}

.footerExtra a {
    color: var(--font-color-2);
}

.footer-icons {
    padding-left: 2px;
    font-size: 1rem;
}

.cgFooterLinks a {
    text-decoration: none;
    transition: filter 0.1s ease-in-out;
}

.cgFooterLinks a:hover {
    filter: brightness(1.2);
}

.footerLinks {
    display: flex;
    flex-direction: row;
    padding: 10px;
    margin: 0 auto;
    width: 100%;
    justify-content: space-evenly;
    gap: 1em;
    flex-wrap: wrap;
}

.footerLinks a {
    display: flex;
    align-items: center;
    color: var(--font-color-2);
    text-decoration: none;
    font-family: worRegular;
    font-size: 14px;
    margin: auto;
    font-weight: 500;
    width: fit-content;
    height: fit-content;
    transition: filter 0.125s ease-in-out, transform 0.125s ease-in-out;
    user-select: none;
}

.footerLinks a:hover {
    filter: brightness(1.2);
}

.footerLinks a:active {
    transform: scale(0.95);
}


/* ========================== */
/*  Scroll to Top Button      */
/* ========================== */
.scrollTop {
    position: fixed;
    bottom: 3em;
    right: 3em;
    font-size: 20px !important;
    color: var(--font-color-2);
    cursor: pointer !important;
    overflow: hidden;
    background: #272521;
    border-radius: 2px;
    font-family: worRegular;
    transition: background 0.125s ease-in-out;
    pointer-events: all;
    user-select: none;
    padding: 0.5em 0.5em;
}

@media (max-width: 768px) {
    .scrollTop {
        bottom: 1em;
        right: 1em;
        transition: bottom 0.125s ease-in-out, right 0.125s ease-in-out;
    }

    .scrollTop.bottom {
        bottom: 72px;
        right: 1em;
    }
}

.scrollContainer {
    display: flex;
    flex-direction: column;
    gap: 0.33em;
    flex-wrap: nowrap;
    align-items: center;
    align-content: center;
}

.scrollContainer .material-icons {
    font-size: 1rem;
}

.scrollTopText {
    color: var(--font-color-2);
    display: block;
    font-weight: 200;
    font-size: 1rem;
    padding: 0;
    line-height: 1.2;
}

.scrollTop>i {
    padding: 4px;
}

.scrollTop:hover {
    background: rgba(0, 0, 0, 0.932);
}

.scrollTop:active {
    transform: scale(0.95);
}


/* ========================== */
/*  Loading Bar               */
/* ========================== */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    pointer-events: none;
    background: rgba(30, 28, 25, 0.3);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.loading-bar.active {
    opacity: 1;
}

.loading-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #a29b90, #cabda2, #a29b90);
    background-size: 200% 100%;
    border-radius: 0 1px 1px 0;
    transition: width 0.3s ease;
    animation: loadingBarShimmer 1.5s linear infinite;
    box-shadow: 0 0 8px rgba(202, 189, 162, 0.4);
}

@keyframes loadingBarShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-bar-fill.complete {
    width: 100% !important;
    transition: width 0.2s ease;
}

.loading-bar.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease 0.15s;
}


/* ========================== */
/*  Page Headers              */
/* ========================== */
.headerH1 {
    font-family: worRegular;
    font-weight: 700 !important;
    margin: 0;
    font-size: 1.5rem;
}

.headerH2 {
    margin-top: 2px;
    color: var(--font-color-3);
    font-family: type1;
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 400;
}

.pageHeader {
    user-select: none;
    font-family: worRegular;
    font-size: 1.7rem;
    font-weight: 800;
    text-align: left;
    margin-top: -0.15em;
    margin-bottom: 2px;
    color: #302c27;
    filter: drop-shadow(0 0 0.75rem #2f29256b);
}

.pageSubtitle {
    user-select: none;
    font-family: worRegular;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--font-color-3);
    margin-top: 0;
    margin-bottom: 2em;
    filter: drop-shadow(0 0 0.75rem #2f2925d7);
}

@keyframes headerIn {
    0%   { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}


.paginationButtons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1em;
    width: 100%;
}

.paginationButton {
    background: #272521;
    font-family: worRegular;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    color: #e4dfcf;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    cursor: pointer;
    border-radius: 2px;
    height: 45px;
    min-width: 45px;
}

.paginationButton:hover {
    background: #181818;
    color: #e4dfcfe1;
}

.paginationButton:active:not(:disabled) {
    background: #0c0b0a !important;
    color: #f0ede3;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.25);
}

.paginationButton:disabled {
    background-color: #272521c5;
    filter: sepia(30%);
    color: #e4dfcfc5;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    cursor: auto;
}

.selectContainer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 1em;
}

.paginationSelect {
    background-color: #272521;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    color: #e4dfcf;
    font-family: worRegular;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    border-radius: 2px;
    cursor: pointer;
    margin-left: 1.5em;
    outline: 0;
}

.paginationSelect:hover {
    background: #181818;
    color: #e4dfcfe1;
}

.paginationSelect:active {
    background: #0c0b0a !important;
    color: #f0ede3;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.25);
}

.page-icons {
    line-height: unset !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1rem;
}

h3 {
    font-family: worRegular;
    font-size: 1.2rem;
    font-weight: 700;
    color: #302c27;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.nav-pills {
    padding: 5px;
    background-blend-mode: color-burn;
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0.5em;
}

.nav-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: stretch;
    user-select: none;
}

.nav-item a {
    padding: 5px;
    text-decoration: none;
    background: transparent;
    transition: transform 0.115s ease-in-out;
}

.nav-item a:hover:not(.active) {
    transform: translateX(5px);
    filter: brightness(1.2) saturate(1.1) sepia(0);
}

.nav-item .active {
    color: rgb(204, 204, 204) !important;
    filter: sepia(50%);
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.74) 0%,
            rgba(255, 255, 255, 0) 100%);
    border-radius: 3px;
}



.dl-horizontal dt {
  white-space: normal;
}

.item {
  display: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img {
  vertical-align: middle;
}


.headerImg:hover {
  filter: brightness(0.9) sepia(20%);
}

.headerImg:active {
  transform: scale(0.99);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.centerImage {
  margin: 0 auto;
  display: block;
  max-width: 100%;
}

.imageMaxWidth {
  width: 100%;
  color: var(--font-color-1);
  border-style: solid;
  border-width: var(--paper-border-width);
}

.imageHalfWidth {
  width: 485px;
  color: var(--font-color-1);
  border-style: solid;
  border-width: var(--paper-border-width);
}

.displayInline {
  display: inline;
}

.sideSpacing {
  margin-left: 20px;
  margin-right: 20px;
}

.fileUpload {
  color: var(--font-color-1);
  font-family: worRegular;
  font-weight: 500;
  font-size: 18px;
  line-height: 23px;
  margin: 0 0 10px;
}

.fancyDisabled {
  opacity: 0.5;
  pointer-events: none;
}

.transparentBackground {
  background-image: url("/Content/CT_Content/Backgrounds/CT_Background1.png");
}

.hoverOverlay:hover {
  background-color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.hoverOverlayNormalCursor:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.form-floating> :not(:last-child) {
  margin-bottom: 0.50rem;
}

tbody,
td,
tfoot,
th,
thead,
tr {
  border-style: unset;
}

pre {
  text-align: left;
}

@media (max-width: 768px) {

  .container,
  .container-sm {
    max-width: unset !important;
  }

  .worPledgeTierBorder img {
    max-width: 100% !important;
    margin: 0.5em auto !important;
    width: auto !important;
  }

  .worPledgeTierBorder {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center;
    width: 100% !important;
  }

  .tier-wrapper {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center;
    width: 100% !important;
  }
}

.worPledgeTierBorder img {
  width: auto;
  height: 100%;
  max-height: 255px;
  object-fit: contain;
  transition: filter 0.2s ease-out, transform 0.2s ease-out;
}

.worPledgeTierBorder img:hover {
  filter: brightness(1.2) contrast(1.2) saturate(1.2);
  transform: scale(1.05);
}

.tier-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 2em;
  margin-bottom: 1em;
}

.tier-wrapper div:not(.tierItem) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}



/* ========================== */
/*  Responsive Breakpoints    */
/* ========================== */
@media screen and (max-width: 1024px) {

    .grid-1fr-1fr:not(.no-collapse),
    .grid-auto-1fr:not(.no-collapse),
    .grid-1fr-auto:not(.no-collapse),
    .grid-custom:not(.no-collapse),
    .g-1-1:not(.no-collapse),
    .g-a-1:not(.no-collapse),
    .g-1-a:not(.no-collapse),
    .gc:not(.no-collapse) {
        display: block !important;
    }
}

@media (max-width: 1024px) {

    .mobile-only {
        display: var(--display, inline-block) !important;
    }

    .desktop-only {
        display: none !important;
    }

    .tab:first-child {
        min-width: unset !important;
        display: none;
    }

    .rosterPlayersUSA,
    .rosterPlayersCSA {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)) !important;
    }

    .tab:not(:first-child) {
        margin-left: 0 !important;
        flex: 1 1 62px !important;
        min-width: 62px !important;
        max-width: 100% !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .tabs-row {
        justify-content: center;
        gap: 0.4em;
        flex-wrap: wrap;
        row-gap: 0.25em;
    }

    .select-container {
        align-self: flex-start !important;
        width: 100% !important;
    }

    #SeasonSelector {
        width: 100% !important;
        min-width: 100% !important;
    }

    .tab-container {
        gap: 1.5em !important;
        flex-direction: column !important;
    }

    .tab-data {
        padding: 1em !important;
    }

    .paper-top {
        margin-top: 165px !important;
    }

    #nailContainer {
        top: 190px !important;
    }

    #navigationContainer {
        padding-top: 60px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .eagle {
        height: 105px !important;
        top: -89px !important;
    }
}

@media (max-width: 480px) {
    .tab:not(:first-child) {
        flex: 1 1 48px !important;
        min-width: 48px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        height: 44px;
    }

    .tabMenu.selected {
        height: 50px;
    }

    .tab-icons {
        font-size: 22px !important;
    }

    .tabs-row {
        gap: 0.25em;
    }
}

@media (max-width: 768px) {

    .tab-data {
        padding: 0.75em 0 0 !important;
    }

    .tooltip-campfire-chats {
        display: none !important;
    }

    .yt-thumbnail-wrapper {
        width: 100% !important;
        height: 100% !important;
        min-width: unset !important;
    }
}



@media (max-width: 1535px) {
    .nav-begin {
        margin-top: 3em !important;
    }
}

@media (max-width: 1080px) {
    .steamStatItems {
        flex-direction: column-reverse !important;
        gap: 0 !important;
        margin: 0.5em !important;
    }
}

@media (max-width: 1024px) {
    :root {
        --paper-border-width: 2px;
    }

    body {
        background-color: #746e68;
        background-image: url("/Content/Images/Background/topography.svg");
    }

    h1 {
        font-size: 1.3rem !important;
    }

    h2 {
        font-size: 1.1rem !important;
    }

    #background0,
    #background1 {
        animation: none !important;
        background-image: none !important;
    }

    #gridWrapper {
        display: block;
        padding: 5px;
    }

    p {
        font-size: 1rem !important;
    }

    .handWrittenFine {
        font-size: 1.2rem !important;
    }

    .availableText {
        font-size: 1rem !important;
        text-shadow: unset !important;
    }

    .steamLogo {
        height: 22px !important;
        margin: 5px 0 !important;
        width: auto !important;
    }

    #nailRight {
        transform: scale(0.8) !important;
    }

    #nailLeft {
        transform: rotate(-80deg) scale(0.8) !important;
    }

    nav ul li a span {
        font-size: 1.2rem !important;
        font-weight: 200 !important;
        color: var(--font-color-2) !important;
    }

    .pageHeader {
        padding-top: 1em;
    }

    .frontYTVid {
        margin-top: 0 !important;
        min-height: 200px !important;
    }

    .grid-container {
        grid-template-columns: 1fr !important;
    }

    .briefTitle {
        font-size: 1.2rem !important;
    }

    .latestNewsItem {
        padding: 1em !important;
        box-shadow: 0 0 0px 1px rgb(0 0 0 / 15%) !important;
        text-align: center !important;
    }

    .latestNewsItem img {
        width: 100% !important;
        height: auto !important;
    }

    #latestNews {
        padding: unset !important;
    }

    .latestNewsContainer {
        padding-right: unset !important;
    }

    .newsTextCenterDiv h3:nth-child(2) {
        margin-top: 0.25em;
        font-size: 1rem !important;
    }

    .newsTextCenterDiv h3:nth-child(1) {
        margin-top: 0.5em;
        font-size: 1.2rem !important;
    }

    .about-header {
        margin-top: 1em !important;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-toggle.clicked+.mobile-only {
        display: flex;
    }

    .mobile-nav-flex {
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        border-top: 5px double #ab9d89;
        padding: 0.5em 0.25em 0.25em;
        margin-top: 0px;
        margin-left: unset !important;
        gap: 0.4em;
        animation: navFadeIn 0.25s ease-out;
    }

    @keyframes navFadeIn {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    @keyframes navItemIn {
        from { opacity: 0; transform: translateY(-4px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    ul:not(.mobile-nav) {
        padding-left: 0.5em !important;
        margin-bottom: 0 !important;
    }

    .mobile-nav li {
        margin: 0 !important;
        padding: 0;
        background: #1c1a17;
        border: 1px solid rgba(171, 157, 137, 0.18);
        border-radius: 3px;
        text-align: left;
        width: 100%;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        animation: navItemIn 0.22s ease-out both;
        transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    }

    /* Stagger child entrance */
    .mobile-nav li:nth-child(1) { animation-delay: 0.02s; }
    .mobile-nav li:nth-child(2) { animation-delay: 0.06s; }
    .mobile-nav li:nth-child(3) { animation-delay: 0.10s; }
    .mobile-nav li:nth-child(4) { animation-delay: 0.14s; }
    .mobile-nav li:nth-child(5) { animation-delay: 0.18s; }
    .mobile-nav li:nth-child(6) { animation-delay: 0.22s; }

    .mobile-nav li > a {
        display: grid;
        grid-template-columns: 6px 1fr auto;
        align-items: center;
        column-gap: 0.75em;
        padding: 0.6em 0.85em 0.6em 0.7em;
        width: 100%;
    }

    /* Left indicator bar (collapsed until hover/active) */
    .mobile-nav li .nav-indicator {
        width: 4px;
        height: 1.4em;
        border-radius: 2px;
        background: transparent;
        transition: background-color 0.15s ease, transform 0.18s ease;
        transform: scaleY(0.6);
    }

    /* Right caret arrow (CSS-only) */
    .mobile-nav li .nav-caret {
        width: 7px;
        height: 7px;
        border-right: 2px solid rgba(219, 211, 195, 0.35);
        border-top: 2px solid rgba(219, 211, 195, 0.35);
        transform: rotate(45deg);
        transition: border-color 0.18s ease, transform 0.2s ease;
    }

    .mobile-nav li > a span[itemprop="name"] {
        text-align: center;
    }

    .mobile-nav li:hover {
        background-color: #221f1b;
        border-color: rgba(171, 157, 137, 0.32);
    }

    .mobile-nav li:hover .nav-indicator {
        background: rgba(201, 164, 90, 0.55);
        transform: scaleY(1);
    }

    .mobile-nav li:hover .nav-caret {
        border-color: rgba(219, 211, 195, 0.8);
        transform: rotate(45deg) translate(2px, -2px);
    }

    .mobile-nav li:active {
        transform: scale(0.99);
    }

    /* Active page: brass border + brass indicator + cream text. Flat, no glow. */
    .mobile-nav li.active {
        background-color: #14110f;
        border-color: var(--nav-brass);
    }

    .mobile-nav li.active .nav-indicator {
        background: var(--nav-brass);
        transform: scaleY(1);
    }

    .mobile-nav li.active .nav-caret {
        border-color: var(--nav-brass);
    }

    .mobile-nav li.active > a span[itemprop="name"] {
        color: var(--nav-cream) !important;
        text-shadow: none !important;
    }

    .footerLinks {
        justify-content: space-between !important;
        flex-wrap: wrap;
        padding: 8px 0 !important;
    }

    .footerLinks a {
        flex-direction: column;
        font-size: 12px !important;
    }

    .cgFooterLogo {
        height: 34px !important;
        margin: 0 9px !important;
    }

    .footerExtra {
        padding: 8px 0 !important;
        padding-bottom: 12px !important;
    }

    .flagsLarge {
        display: none !important;
    }

    .flagsSmall {
        display: block !important;
    }

    .paper-top {
        margin-top: 165px !important;
    }

    #nailContainer {
        top: 190px !important;
    }

    #navigationContainer {
        padding-top: 60px !important;
    }

    #mainWrapper {

        height: 100%;
        display: block;
        padding-bottom: 3em !important;
    }

    #frontPageSlider {
        padding: 0 !important;
        background-position: top left, top right !important;
    }

    .headerH2 {
        font-size: 1rem !important;
    }

    .headerH1.steam {
        padding-top: 0.75em;
        font-size: 1.5rem !important;
    }

    .latestNewsHeader {
        padding-top: 0.5em;
    }

    .briefDescription {
        padding: 0.5em !important;
    }

    .latestNewsItemImg {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }

    .loading span {
        font-size: 2rem !important;
    }

    .loading .subtitle {
        font-size: 1.1rem !important;
    }

    .paper-bottom {
        margin-top: -10% !important;
        margin-bottom: -19px !important;
    }

    .footerWrapper {
        background: #222222cb;
        margin-top: unset !important;
        padding-left: 1px !important;
        padding-right: 1px !important;
        box-shadow: 0 -10px 15px -3px rgb(0 0 0 / 0.5), 0 -4px 6px -4px rgb(0 0 0 / 0.5);
    }

    .copyright {
        color: #dbd3c3d8 !important;
        font-size: 1rem !important;
        font-weight: 200 !important;
        padding: 0 2px;
    }

    .footerRight {
        background: #161612dc !important;
        padding: 0 !important;
        margin: 5px !important;
        border-radius: 5px !important;
        box-shadow: 0 0 5px 0px rgb(0 0 0 / 0.5) !important;
    }

    .footerLeft {
        display: none !important;
    }

    .cgFooterLeftMobile {
        display: flex !important;
        justify-content: center;
        align-items: center;
        justify-self: center;
        align-self: center;
        flex-direction: row !important;
        align-content: flex-start !important;
        padding: 3px;
    }

    #footer {
        margin-top: -55px;
        padding: 5px !important;
    }

    .footerGrid {
        display: block !important;
    }

    .pageNumber:not(.currentPage) {
        display: none;
    }

    .selectContainer {
        flex-direction: column-reverse;
    }

    .steamStatItems {
        flex-direction: column-reverse !important;
    }

    .steamStatItems div:nth-child(2) {
        flex-direction: row !important;
    }

    .steamStoreGrid {
        flex-direction: column-reverse !important;
    }

    .indexBottom {
        flex-direction: column-reverse !important;
    }

    .frontPageTextFirstLetter {
        padding: 0 1.5em !important;
    }

    .indexRight h3 {
        font-size: 1.1rem !important;
    }

    .indexRight {
        padding: 1em 0em !important;
    }

    .feature-description {
        font-size: 0.9rem !important;
    }

    .feature-item-container.expanded>.feature-description {
        padding: 5px !important;
    }

    .feature-item-container {
        padding: 0.25em !important;
    }

    .feature-item-container :nth-child(1) {
        font-size: 1rem !important;
    }

    .mini-btn {
        align-self: center !important;
        margin-right: unset !important;
        width: 100% !important;
        max-width: 200px !important;
        font-size: 1em !important;
        height: 42px !important;
        margin: 0.5em 0 !important;
    }

}

@media (max-width: 768px) {
    #mainWrapper {
        padding: 0 !important;
        padding-bottom: 3em !important;
    }

    #wrapper {
        margin: 0 0.75em !important;
    }


    body {
        overflow-x: hidden;
    }

    .eagle {
        max-width: 300px !important;
        top: -98px !important;
    }

    .worText {
        width: 315px !important;
        top: 2px !important;
    }

    #nailContainer {
        gap: 247px !important;
        top: 185px !important;
    }

    #nailRight {
        transform: scale(0.5) !important;
    }

    #nailLeft {
        transform: rotate(-80deg) scale(0.5) !important;
    }

    .newsTextCenterDiv h3:nth-child(1) {
        font-size: 1rem !important;
        font-weight: 500 !important;
        color: var(--font-color-1) !important;
    }

    #navigationContainer {
        padding-top: 55px !important;
        padding-bottom: 0 !important;
    }

    .paper-middle,
    .paper-bottom,
    .paper-top {
        background: #cabda2 !important;
        color: #ab9d89;
        border-style: double;
        border-width: 5px;
    }

    .paper-top {
        border-top-left-radius: 5px !important;
        border-top-right-radius: 5px !important;
        border-bottom-width: 0 !important;
    }

    .paper-middle {
        border-top: 0 !important;
        border-bottom: 0 !important;
    }

    .paper-bottom {
        border-bottom-left-radius: 5px !important;
        border-bottom-right-radius: 5px !important;
        border-top-width: 0 !important;
        padding-bottom: unset !important;
        margin-top: -5% !important;
    }

    .paper-container {
        margin: 0 auto;
        width: 98vw;
    }

    #latestNews>a:first-of-type .latestNewsItem {
        margin-top: 0 !important;
    }

    .indexMobileDivider {
        display: block !important;
    }

    .indexDivider {
        display: none !important;
    }

    .frontPageTextFirstLetter {
        /* margin-bottom: 2em !important; */
    }

    .steamStoreGrid {
        padding: 0 !important;
    }

    .features-header {
        font-size: 1rem !important;
    }

    #crowdFundingWrapper {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .pageSubtitle {
        padding-bottom: 0 !important;
        margin-bottom: 1em !important;
    }

    .steamStatItems {
        gap: 0 !important;
    }

    .steamStoreGrid {
        gap: 0.5em !important;
    }

    .featured-video {
        height: 250px !important;
    }

    .featured-title {
        font-size: 1.2rem !important;
        margin-top: 2.75em !important;
    }

    .other-episodes-title {
        font-size: 1rem !important;
    }

    .thumbnail-item {
        width: 100px !important;
        height: 75px !important;
    }
}



/* ========================== */
/*  Overlays & Spinners       */
/* ========================== */
.iframe-overlay-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.iframe-spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.7) 10%, rgba(109, 109, 109, 0.5) 100%);
    background-size: cover;
    opacity: 0.8;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 1), inset 0 0 50px rgba(0, 0, 0, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.iframe-spinner-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/Content/Images/Background/topography.svg);
    background-size: auto;
    background-position: center -100px;
    background-blend-mode: lighten;
    opacity: 0.5;
    z-index: -1;
    border-radius: 2px;
}

.preload-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 36px;
    height: 8px;
    transform: translate(-50%, -50%);
}

.preload-spinner::before,
.preload-spinner::after,
.preload-spinner div {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    background-color: #202020;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.preload-spinner::before { animation-delay: -0.32s; }
.preload-spinner div { animation-delay: -0.16s; }

.yt-thumbnail-wrapper {
    position: relative;
    display: inline-block;
    aspect-ratio: 16 / 9;
    width: 100%;
    min-height: 100px;
    overflow: hidden;
    height: auto;
}

.yt-thumb-fade-in {
    background-color: #2b2521;
    background-image: url(/Content/Images/Background/topography.svg);
    background-size: cover;
    background-position: center;
    box-shadow: 0 0px 1px 1px #272521e7;
    pointer-events: none;
}

.yt-thumb-fade-in.loaded {
    pointer-events: all;
}

.yt-thumb-skeleton {
    position: relative;
    overflow: hidden;
    background-color: #3a322a;
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 60%),
        url(/Content/Images/Background/topography.svg);
    background-size: cover, cover;
    background-position: center, center;
}

.yt-thumb-skeleton::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0) 70%
    );
    background-size: 250% 100%;
    background-position: 200% 0;
    animation: ytThumbShimmer 1.4s ease-in-out infinite;
    pointer-events: none;
}

.yt-thumb-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
    pointer-events: none;
}

@keyframes ytThumbShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -50% 0; }
}


/* ======================= */
/*  Animations             */
/* ======================= */
@keyframes fadeCenter {
    0%   { transform: translateY(-1.2em); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.fadeCenter { animation: fadeCenter 0.5s ease 0s 1 normal forwards; }

@keyframes lightBoxOpen {
    0%   { opacity: 0; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}
.lightBoxOpen { animation: lightBoxOpen 0.115s ease 0s 1 normal forwards; }

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes bounceBottom {
    0%   { animation-timing-function: ease-in; opacity: 0; transform: translateY(250px); }
    38%  { animation-timing-function: ease-out; opacity: 1; transform: translateY(0); }
    55%  { animation-timing-function: ease-in; transform: translateY(65px); }
    72%  { animation-timing-function: ease-out; transform: translateY(0); }
    81%  { animation-timing-function: ease-in; transform: translateY(28px); }
    90%  { animation-timing-function: ease-out; transform: translateY(0); }
    95%  { animation-timing-function: ease-in; transform: translateY(8px); }
    100% { animation-timing-function: ease-out; transform: translateY(0); }
}

@keyframes slideBottom {
    0%   { opacity: 0; transform: translateY(250px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeForward {
    0%   { opacity: 0; transform: scale(0.6); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes spinOnce {
    0%   { transform: rotate(0deg); }
    50%  { transform: rotate(180deg); }
    100% { transform: rotate(0deg); }
}

@keyframes scale-center {
    0%   { transform: scale(0.5); }
    100% { transform: scale(1); }
}
.scaleCenter { animation: scale-center .2s ease 0s 1 normal forwards; }

@keyframes vert-top {
    0%   { transform: scaleY(0); transform-origin: 100% 0%; }
    100% { transform: scaleY(1); transform-origin: 100% 0%; }
}
.vert-top { animation: vert-top .2s ease 0s 1 normal forwards; }

@keyframes backwards-center {
    0%   { transform: scale(1.03); }
    100% { transform: scale(1); }
}
.backwards-center { animation: backwards-center .2s ease 0s 1 normal forwards; }

@keyframes backwards-right {
    0%   { transform: scale(1.01); transform-origin: 0% 100%; }
    100% { transform: scale(1); transform-origin: 0% 100%; }
}
.backwards-right { animation: backwards-right .2s ease 0s 1 normal forwards; }

@keyframes backwards-top {
    0%   { opacity: 0; transform: scale(1.01); transform-origin: 50% 100%; }
    100% { opacity: 1; transform: scale(1); transform-origin: 50% 100%; }
}
.backwards-top { animation: backwards-top .2s ease 0s 1 normal forwards; }

@keyframes slideInFromLeft {
    from { transform: translateX(-10%) !important; opacity: 0; }
    to   { transform: translateX(0) !important; opacity: 1; }
}
.slideInFromLeft { animation: slideInFromLeft 0.3s ease 0s 1 normal forwards; }

@keyframes slideOutToRight {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(10%); opacity: 0; }
}
.slideOutToRight { animation: slideOutToRight 0.3s ease 0s 1 normal forwards; }

@keyframes boxShadowAnimation {
    from { box-shadow: inset 0px 0px 5px var(--shadow-color, #000); }
    to   { box-shadow: inset 0px 0px 80px var(--shadow-color, #000); }
}
.boxShadowAnimation { animation: boxShadowAnimation 850ms ease 0s 1 normal forwards; }

@keyframes fade {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40%           { transform: scale(1); }
}


/* ========================= */
/*  Accessibility            */
/* ========================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .modal {
        z-index: 3000 !important;
    }
}
