/* style.css - Grayscale Wireframe Placeholder (Versão Profissional Ajustada com Padding 5px) */

/* --- GRAYSCALE COLOR PALETTE --- */
:root {
    --gray-darkest: #111;
    --gray-darker: #333;
    --gray-dark: #555;
    --gray-medium-dark: #777;
    --gray-medium: #999;
    --gray-light-medium: #bbb;
    --gray-light: #ddd;
    --gray-lighter: #eee;
    --gray-lightest: #f2f2f2;
    --white: #fff;
    --error-red: #d9534f; /* Bootstrap danger color for error messages */
    --primary-color: var(--gray-dark);
    --primary-dark: var(--gray-darker);
    --recharge-color: #e67e22;
    --btn-radius: 4px;
    --btn-height: 34px;
    --btn-compact-height: 30px;
    --btn-padding-y: 6px;
    --btn-padding-x: 12px;
    --btn-font-size: 0.74rem;
    --btn-font-weight: 600;
    --btn-letter-spacing: 0.06em;
    --btn-border: 1px solid rgba(51, 51, 51, 0.14);
    --btn-border-hover: var(--gray-medium);
    --btn-bg:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    --btn-bg-hover:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #eeeeee 100%);
    --btn-text: var(--gray-darkest);
    --btn-text-hover: #111111;
    --btn-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    --btn-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
    --btn-shadow-active: 0 1px 4px rgba(0, 0, 0, 0.08);
    --btn-focus-ring: 0 0 0 3px rgba(51, 51, 51, 0.16);
    --btn-bottom-highlight: inset 0 -2px 0 rgba(85, 85, 85, 0.12);
    --btn-accent-bg:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 44%),
        linear-gradient(180deg, #b83232 0%, #7a1717 100%);

    --btn-accent-bg-hover:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 44%),
        linear-gradient(180deg, #cf3a3a 0%, #8f1c1c 100%);

    --btn-accent-border: rgba(207, 58, 58, 0.38);
    --btn-accent-text: #ffffff;
    --btn-secondary-bg:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 38%),
        linear-gradient(180deg, #f7f7f7 0%, #e2e2e2 100%);
    --btn-secondary-text: var(--gray-darkest);
    --btn-danger-bg: linear-gradient(180deg, #b74343 0%, #8e2929 100%);
    --btn-danger-bg-hover: linear-gradient(180deg, #c94d4d 0%, #9a2b2b 100%);
    --btn-danger-border: rgba(142, 41, 41, 0.36);
    --btn-success-bg: linear-gradient(180deg, #5f9d66 0%, #3f7647 100%);
    --btn-success-bg-hover: linear-gradient(180deg, #6aad72 0%, #478552 100%);
    --btn-donate-bg:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 38%),
        linear-gradient(180deg, #e67e22 0%, #b95116 100%);
    --btn-donate-bg-hover:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 40%),
        linear-gradient(180deg, #f09232 0%, #c85b1b 100%);
    --btn-donate-border: rgba(184, 95, 28, 0.4);
    --btn-donate-border-hover: rgba(184, 95, 28, 0.55);
    --btn-donate-text: #ffffff;
    --btn-disabled-bg: linear-gradient(180deg, #d1d1d1 0%, #b9b9b9 100%);
    --btn-disabled-text: var(--gray-medium-dark);
}

/* Universal Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    color: var(--gray-darkest);
}
/* Base Styles */

html,
body {
    min-height: 100vh;
    font-size: 100%;
    font-family: sans-serif, Arial, Helvetica;
    line-height: 1.5;
    background-color: var(--gray-medium-dark);
    background-image: url('/images/background.png'), linear-gradient(to bottom, var(--gray-darker), var(--gray-medium-dark));
    background-repeat: no-repeat;
    background-size: auto;
    background-position: top center;
    color: var(--gray-lightest);
}

body {
    display: flex;
    flex-direction: column;
}

/* Container - largura total com alinhamento consistente */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- COMPANY HEADER --- */
.company-header {
    background-color: var(--gray-darkest);
    color: var(--gray-lightest);
    padding: 5px 0;
}

.company-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-branding {
    display: flex;
    align-items: center;
}

.company-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 15px;
}

.company-small-logo {
    width: 100%;
    max-height: 28px;
    margin-right: 5px;
    filter: brightness(1.1);
}

.company-name {
    font-weight: bold;
    color: var(--white);
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

.company-tagline {
    color: var(--gray-light-medium);
    font-size: 0.9em;
    font-style: italic;
    margin-left: 10px;
}

.company-actions {
    display: flex;
    align-items: center;
}

.company-links {
    display: flex;
    margin-right: 15px;
}

.company-link {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.85em;
    margin-left: 12px;
    transition: color 0.3s ease;
}

.company-link:hover {
    color: var(--white);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.social-media-links {
    display: flex;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-left: 8px;
    background-color: var(--gray-dark);
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.social-icon i {
    color: var(--gray-lightest);
    font-size: 0;
}

/* Specific icons */
.discord-icon {
    background-color: #5865F2;
}

.youtube-icon {
    background-color: #FF0000;
}

.twitter-icon {
    background-color: #1DA1F2;
}

.social-icon:hover {
    animation: bounce 0.3s ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-1px);
    }
    50% {
        transform: translateY(1px);
    }
    75% {
        transform: translateY(-1px);
    }
}

/* --- HEADER --- */
.header-wrapper {
    margin-bottom: 5px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--white);
    padding: 5px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo img {
    height: 100px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.main-nav {
    color: var(--white);
    padding: 5px;
    text-align: right;
    font-size: 1.07em;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.main-nav ul li {
    display: inline-block;
    margin-left: 15px;
    position: relative;
}

.main-nav ul li:first-child {
    margin-left: 0;
}

.main-nav ul li a,
.main-nav ul li .nav-logout-button {
    display: block;
    padding: 10px 15px;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 3px;
}

.main-nav ul li .nav-logout-form {
    margin: 0;
}

.main-nav ul li .nav-logout-button {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
}

.main-nav ul li a:hover,
.main-nav ul li .nav-logout-button:hover,
.main-nav ul li .nav-logout-button:focus {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    background-color: transparent;
    color: var(--white);
    transition: text-shadow 0.3s ease;
}

.main-nav ul li a.active,
.main-nav ul li .nav-logout-button.active {
    background-color: transparent;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
.main-nav ul li.dropdown {
    position: relative;
}

.main-nav ul li.dropdown .dropdown-toggle {
    cursor: pointer;
    display: block;
    padding: 10px 15px;
    color: var(--white);
    text-decoration: none;
}

.main-nav ul li.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 1000;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    width: max-content;
    min-width: 100%;
    max-width: calc(100vw - 20px);

    padding: 0;
    margin: 0;
    list-style: none;
    white-space: nowrap;
    text-align: center;

    background-color: transparent;
    border-radius: 3px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(-50%);
    transition: opacity 0.16s ease, visibility 0.16s ease;
}

.main-nav ul li.dropdown:hover .dropdown-menu,
.main-nav ul li.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.main-nav ul li.dropdown .dropdown-menu li {
    display: block;
    margin: 0;
}

.main-nav ul li.dropdown .dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.2s ease, text-shadow 0.2s ease;
}


/* --- CONTENT AREA --- */
.content-area {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
    width: 100%;
}

/* News Carousel */
.news-carousel {
    flex: 2 1 70%;
    background-color: var(--gray-medium-dark);
    color: var(--gray-lightest);
    text-align: center;
    height: 260px;
}

/* Sidebar */
.sidebar {
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 260px;
}

/* Game Actions & Small Banners */
.game-actions {
    --ga-gold-soft: rgba(184, 122, 34, 0.14);
    --ga-gold-bright: #8a5918;
    --ga-text-main: #1f1f1f;
    --ga-text-muted: #6f6f6f;
    --ga-line: rgba(0, 0, 0, 0.08);
    color: var(--ga-text-main);
    display: flex;
    min-height: 170px;
    padding: 3px;
    text-align: left;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(166, 166, 166, 0.97) 0%, rgba(150, 150, 150, 0.98) 52%, rgba(136, 136, 136, 0.98) 100%);
    border: 1px solid rgba(51, 51, 51, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        inset 0 -1px 0 rgba(51, 51, 51, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

.game-actions::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 44%),
        linear-gradient(90deg, rgba(184, 122, 34, 0.04), rgba(184, 122, 34, 0) 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 42%);
    opacity: 0.95;
}

.game-actions,
.game-actions * {
    box-sizing: border-box;
}

.game-actions > * {
    flex: 1 1 auto;
    min-width: 0;
}

.small-banners {
    background-color: var(--gray-medium);
    color: var(--gray-lightest);
    padding: 5px;
    text-align: center;
}

.download-banner { padding: 0; }

/* --- MAIN CONTENT --- */
.main-content-wrapper {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
    width: 100%;
}

/* News Area Wrapper */
.news-area-wrapper {
    display: flex;
    gap: 5px;
    flex: 2 1 70%;
}

/* News Section */
.news-section {
    background-color: var(--gray-light-medium);
    padding: 5px;
    border: 1px solid var(--gray-medium);
    flex: 5;
}

.news-section h2 {
    color: var(--gray-dark);
    border-bottom: 2px solid var(--gray-medium);
    padding-bottom: 5px;
    margin-bottom: 5px;
}

/* News Type Selector */
.news-type-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.news-type-selector-index {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.news-type-selector-left {
    display: flex;
    gap: 0;
}

/* Filter button spacing (base styles handled by consolidated button system) */
.news-type-button,
.market-class-button {
    margin: 0 5px;
}

/* Search Bar */
.search-bar {
    min-width: 200px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
}
.search-bar form {
    display: flex;
    align-items: center;
    background: var(--gray-lightest);
    border-radius: 3px;
    padding: 2px 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.search-bar input[type="text"] {
    padding: 7px 8px 7px 10px;
    border: none;
    border-radius: 3px 0 0 3px;
    outline: none;
    background: transparent;
    color: var(--gray-darkest);
    font-size: 1em;
    min-width: 140px;
}
.search-bar input[type="text"]::placeholder {
    color: var(--gray-medium-dark);
}
.search-btn {
    min-width: var(--btn-height);
    background: var(--btn-secondary-bg);
    border: var(--btn-border);
    padding: 0 6px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--btn-radius);
    height: 32px;
    font-size: 1.2em;
    line-height: 1;
    color: var(--gray-darkest);
    box-shadow: var(--btn-shadow), var(--btn-bottom-highlight);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.search-btn:hover,
.search-btn:focus {
    color: var(--btn-text-hover);
    background: var(--btn-bg-hover);
    border-color: var(--btn-border-hover);
    box-shadow: var(--btn-shadow-hover), var(--btn-bottom-highlight);
}
.search-btn:focus {
    outline: none;
}
.search-btn:focus-visible {
    outline: none;
    box-shadow: var(--btn-focus-ring), var(--btn-shadow), var(--btn-bottom-highlight);
}
.search-btn:active {
    box-shadow: var(--btn-shadow-active), var(--btn-bottom-highlight);
}

/* News Columns Container */
.news-columns-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    width: 100%;
}

.news-column,
.announcements-column,
.updates-column {
    padding: 5px;
    grid-column: span 5;
    width: 100%;
}

.announcements-column,
.updates-column {
    display: none;
}

.news-column h3,
.announcements-column h3,
.updates-column h3 {
    color: var(--gray-dark);
    margin-bottom: 5px;
    text-align: center;
}

/* INdexNotice Blocks */
.notice-block-index {
    position: relative;
    background: linear-gradient(180deg, var(--gray-lighter) 0%, #e7e7e7 100%);
    padding: 6px;
    width: 100%;
    border:1px solid var(--gray-medium);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    align-items: center; 
    justify-content: center;
}

.notice-block-index a {
    color: #222;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-block-index a:hover {
    font-weight: bold;
}

.notice-block-index .notice-title {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 90px);
    vertical-align: middle;
    position: relative;
    cursor: help;
}

.notice-block-index .notice-title::after {
    content: attr(title);
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 8px);
    white-space: normal;
    max-width: 320px;
    background: var(--gray-lightest);
    color: var(--gray-darkest);
    padding: 6px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 300;
    text-align: left;
    line-height: 1.2;
    font-size: 0.95em;
    word-wrap: break-word;
}

.notice-block-index .notice-title::before {
    content: "";
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 2px);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent var(--gray-lightest) transparent;
    z-index: 300;
}

.notice-block-index .notice-title:hover::after,
.notice-block-index .notice-title:hover::before {
    display: block;
}

@media (max-width: 768px) {
    .notice-block-index .notice-title {
        max-width: calc(100% - 110px);
    }
}

/* Notice Blocks */
.notice-block {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background-color: var(--gray-light-medium);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.notice-block .notice-image {
    flex: 0 0 100px; /* Fixed width for thumbnail */
    max-width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.notice-block .notice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.notice-block a {
    color: #222;
    text-decoration: none; /* Remove underline */
}

.notice-block a:hover {
    font-weight: bold;
}

.notice-block .notice-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.notice-block .notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-block .notice-header .notice-tag-label {
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: bold;
}

.notice-block .notice-header h3 {
    font-size: 1.2em;
    margin: 0;
    color: var(--gray-darkest);
}

.notice-block .notice-header h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.notice-block .notice-header h3 a:hover {
    color: var(--primary-dark);
}

.notice-block .notice-excerpt {
    font-size: 0.9em;
    color: var(--gray-dark);
    margin: 0;
    line-height: 1.4;
    text-align: justify;
}

/* Adjustments for .notice-footer layout */
.notice-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
    border-top: 1px solid var(--gray-light-medium);
}

.notice-footer .notice-actions {
    flex: 1;
}

.notice-footer .notice-actions .btn-action {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.notice-footer .notice-actions .btn-action:hover {
    background-color: var(--primary-dark);
}

.notice-footer .notice-date {
    flex: 1;
    text-align: right;
    font-size: 0.85em;
    color: var(--gray-medium-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notice-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .notice-block .notice-image {
        flex: 0 0 auto;
        max-width: 80%;
        height: auto;
    }

    .notice-block .notice-content {
        align-items: center;
    }

    .notice-block .notice-header {
        flex-direction: column;
        align-items: center;
    }
}

/* Big Hot News Section */
.big-hot-news {
    background-color: var(--gray-medium-dark);
    color: var(--gray-lightest);
    text-align: center;
    flex: 1 1 auto;
    min-width: 150px;
    max-width: 250px;
    box-shadow: inset orange 0 0 10px 5px, darkorange 0 0 20px 10px inset, inset orangered 0 0 30px 15px, red 0 0 40px 20px inset, orange 0 0 2px 1px
}

.big-hot-news h3 {
    color: var(--white);
    margin-bottom: 5px;
}

.notice-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Contêiner com altura definida para imagem OU texto */
.notice-hot-block {
    position: relative; /* Changed from static */
    height: 250px;              /* define a altura para a qual a imagem vai se ajustar */
    display: grid;              /* centraliza o fallback de texto */
    place-items: center;
    transition: opacity 0.2s ease;
    overflow: visible;           /* esconde o excedente quando object-fit recorta */
    padding: 0;                 /* garante que 100% do img ocupe a área visível */
}

/* A imagem agora fica dentro do .notice-hot-block (sempre) */
.notice-hot-block img {
    width: 100%;
    height: 100%;               /* agora 100% funciona, pois o pai tem altura definida */
    object-fit: cover;          /* faz o crop correto */
    display: block;             /* remove “gap” de linha */

     /* Fade borders */
    -webkit-mask-image: radial-gradient(
        ellipse at center,
        rgba(0,0,0,1) 80%,
        rgba(0,0,0,0) 100%
    );
    mask-image: radial-gradient(
        ellipse at center,
        rgba(0,0,0,1) 60%,
        rgba(0,0,0,0) 100%
    );
}

span.notice-hot-block-label {
    position: absolute;
    top: 10px;
    left: -3px;
    z-index: 2;
    font-size: 0.65em;
    font-weight: bold;
    padding: 2px 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13), 0 6px 16px rgba(230,40,40,0.18);
    opacity: 0.95;
    pointer-events: none;
    background: linear-gradient(135deg, #ffb347 0%, #ff5e62 35%, #ff2d2d 65%, #b30000 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.06);
}

.notice-link:hover .notice-hot-block {
    opacity: 0.95; /* efeito sutil de hover */
}

/* Opcional: estilo do texto quando não há imagem */
.notice-hot-title {
    padding: 0 8px;
    line-height: 1.2;
}

/* Small Banners Section */
.news-page-small-banners {
    background-color: var(--gray-medium);
    color: var(--gray-lightest);
    padding: 5px;
    text-align: center;
    flex: 1 1 30%;
    min-width: 100px;
}

.news-page-small-banners h3 {
    margin-bottom: 5px;
}

.small-banner-block {
    background-color: var(--gray-light-medium);
    color: var(--white);
    padding: 5px;
    margin-bottom: 5px;
}

.page-handler{
    min-height: 75vh;
    background-color: var(--gray-medium-dark);
    padding: 24px 15px;

}



/* --- DOWNLOADS PAGE (scoped) --- */
.downloads-page .downloads-hero {
    background: var(--gray-medium-dark);
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    padding: 14px;
    margin-bottom: 10px;
}
.downloads-page .downloads-hero-inner {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 380px);
    gap: 12px;
    align-items: center;
}
.downloads-page .downloads-hero-text h1 { color: var(--gray-lightest); margin-bottom: 5px; }
.downloads-page .downloads-lead {
    color: var(--gray-lightest);
    margin-bottom: 6px;
    opacity: 0.9;
}
.downloads-page .downloads-meta { color: var(--gray-light); margin-bottom: 8px; }


.downloads-page .downloads-hero-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
}

.downloads-page .downloads-cta-meta {
    margin: 0;
    color: var(--gray-light);
    text-align: center;
}

.downloads-page .downloads-view-all {
    text-align: center;
    color: var(--gray-lightest);
    text-decoration: none;
}

.downloads-page .downloads-view-all:hover {
    text-decoration: underline;
}

.downloads-page .btn-lg { padding: 10px 14px; font-weight: bold; }
/* No hero image: CTA uses the index-style .download-btn */

.downloads-page .downloads-section { background: var(--gray-light-medium); border: 1px solid var(--gray-medium); border-radius: 4px; padding: 12px; margin-bottom: 10px; }
.downloads-page .downloads-section-title { color: var(--gray-dark); border-bottom: 2px solid var(--gray-medium); padding-bottom: 5px; margin-bottom: 8px; }
.downloads-page .muted { color: var(--gray-dark); }
.downloads-page .small { font-size: 0.9em; }

.downloads-page .downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}
.downloads-page .download-card {
    background: var(--gray-lighter);
    border: 1px solid var(--gray-light-medium);
    border-radius: 4px;
    padding: 12px;
}
.downloads-page .download-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.downloads-page .platform-badge { background: var(--gray-dark); color: var(--white); padding: 2px 8px; border-radius: 999px; font-size: 0.75em; }
.downloads-page .download-title { color: var(--gray-darkest); font-size: 1.05em; }
.downloads-page .download-desc { color: var(--gray-darker); margin: 8px 0; }
.downloads-page .download-actions { display: flex; gap: 6px; }

.downloads-page .download-meta,
.downloads-page .download-details {
    color: var(--gray-darker);
    font-size: 0.9em;
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.downloads-page .mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92em;
    word-break: break-all;
}

.downloads-page .sys-req-section { background: var(--gray-light-medium); border: 1px solid var(--gray-medium); border-radius: 4px; padding: 8px; margin-bottom: 5px; }
.downloads-page .sys-req-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.downloads-page .sys-col { background: var(--gray-lighter); border: 1px solid var(--gray-light-medium); border-radius: 4px; padding: 10px; }
.downloads-page .sys-col h3 { color: var(--gray-dark); margin-bottom: 6px; }
.downloads-page .sys-col ul { list-style: none; padding: 0; }
.downloads-page .sys-col li { margin: 4px 0; color: var(--gray-darker); }

.downloads-page .support-section { margin-top: 5px; }
.downloads-page .support-card { background: var(--gray-medium); color: var(--gray-lightest); border-radius: 4px; padding: 8px; text-align: center; }
.downloads-page .support-card a { color: var(--white); font-weight: bold; text-decoration: none; }
.downloads-page .support-card a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .downloads-page .downloads-hero-inner { grid-template-columns: 1fr; }
    .downloads-page .sys-req-grid { grid-template-columns: 1fr; }
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--gray-dark);
    color: var(--gray-lighter);
    text-align: center;
    padding: 5px;
    margin-top: 30px;
    position: relative; /* Allow it to move with content */
    width: 100%; /* Ensure it spans the full width */
}

.page-container {
    flex: 1; /* Push footer to the bottom */
}

.site-footer a{
    text-decoration: none; /* Remove underline */
}
.site-footer a:hover {
    font-weight: bold;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .company-container {
        flex-direction: column;
        gap: 8px;
        padding: 8px 0;
    }

    .company-tagline {
        display: none;
    }

    .company-actions {
        flex-direction: column;
        gap: 8px;
    }

    .social-media-links {
        margin-top: 5px;
    }

    .container {
        width: 100%;
    }

    .top-bar {
        flex-direction: column;
        text-align: center;
    }

    .main-nav {
        width: 95%;
        padding: 8px 0;
        text-align: center;
        overflow: visible;
    }

    .main-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 10px 18px;
        width: 100%;
        padding: 0;
        margin: 0;
        text-align: center;
        overflow: visible;
    }

    .main-nav ul li {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 0;
        position: relative;
        transition: margin-bottom 0.16s ease;
    }

    .main-nav ul li a,
    .main-nav ul li .nav-logout-button,
    .main-nav ul li.dropdown .dropdown-toggle {
        display: block;
        padding: 8px 10px;
        font-size: 0.95rem;
        line-height: 1.1;
        text-align: center;
        white-space: nowrap;
    }

    .main-nav ul li.dropdown {
        position: relative;
    }

    .main-nav ul li.dropdown:hover,
    .main-nav ul li.dropdown:focus-within {
        margin-bottom: 42px;
    }

    .main-nav ul li.dropdown .dropdown-menu {
        top: calc(100% + 4px);
    }

    .main-nav ul li.dropdown .dropdown-menu li {
        display: inline-flex;
        width: auto;
    }

    .main-nav ul li.dropdown .dropdown-menu li a {
        width: auto;
        padding: 8px 10px;
        font-size: 0.9rem;
        line-height: 1.1;
        white-space: nowrap;
    }

    .content-area {
        flex-direction: column;
    }

    .news-carousel {
        flex: 1 1 auto;
        margin-bottom: 5px;
    }

    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .game-actions,
    .small-banners {
        width: 48%;
        margin-bottom: 5px;
    }
    .download-banner {
        width: 48%;
        margin-bottom: 5px;

    }

    .download-btn.btn-action {
        height: 100%;
         /* Ensure the button fills the entire auth module */
    }

    .game-actions .ga-shell {
        min-height: auto;
        padding: 10px;
    }

    .game-actions .ga-subtitle {
        font-size: 0.75rem;
    }

    .game-actions .ga-account-top {
        gap: 8px;
    }

    .game-actions .ga-account-heading {
        flex-wrap: wrap;
    }

    .game-actions .ga-shortcut {
        flex: 1 1 calc(50% - 7px);
    }

    .main-content-wrapper,
    .news-area-wrapper {
        flex-direction: column;
    }

    .news-section,
    .big-hot-news,
    .news-page-small-banners {
        flex: 1 1 auto;
        margin-bottom: 5px;
    }

    .big-hot-news {
        max-width: 100% !important;
    }

    .news-columns-container {
        display: flex !important;
        grid-template-columns: 1fr;
    }

    .news-column,
    .announcements-column,
    .updates-column {
        grid-column: span 1;
    }

    .news-type-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .news-type-selector-left {
        justify-content: center;
    }

    .search-bar {
        justify-content: center;
        width: 100%;
    }

    .search-bar form {
        width: 100%;
        max-width: 300px;
    }

    .search-bar input[type="text"] {
        font-size: 0.9em;
    }

    .search-btn {
        font-size: 1em;
    }

    
}

@media (max-width: 480px) {
    .search-bar form {
        max-width: 100%;
    }

    .search-bar input[type="text"] {
        font-size: 0.8em;
        padding: 5px;
    }

    .search-btn {
        font-size: 0.9em;
        padding: 0 2px;
    }
}
/* --- MARKET HOT ITEMS --- */
.market-hot-items {
    background-color: var(--gray-lightest);
    padding: 20px;
    margin-bottom: 10px;
    border: 1px solid var(--gray-medium);
    text-align: center;
}

.market-hot-items h2 {
    color: var(--gray-dark);
    border-bottom: 2px solid var(--gray-medium);
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* Market Class Selectors */
.market-class-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.market-classes-container {
    gap: 15px;
    text-align: left;
}

.market-class {
    background-color: var(--gray-lighter);
    border: 1px solid var(--gray-light-medium);
    padding: 15px;
    border-radius: 4px;
    background:rgba(0, 0, 0, 0.05)
}

.market-class.hidden {
    display: none;
}


.market-class h3 {
    color: var(--gray-dark);
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.1em;
}

.market-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 5px;
    padding: 5px;
}

.market-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    border-radius: 3px;
    overflow: hidden;
    width: 100px;
    height: 150px;
    min-height: 150px;
    max-height: 150px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Market Item Image Wrapper - Fixed Height for Consistency */
.market-item-img-wrapper {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}
.market-item-img-wrapper img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 3px;
    margin-bottom: 0;
}

/* Market Item Name - Clamp to 2 lines, no layout shift */
.market-item-name {
    margin-top: 6px;
    font-size: 1em;
    font-weight: bold;
    color: var(--gray-lightest);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    word-break: break-word;
    line-height: 1.2;
    text-align: center;
    min-height: 2.4em;
    max-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2; /* Standard property for compatibility */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .market-item {
        flex: 1 1 calc(20% - 10px); /* 5 items per row */
    }
}

@media (max-width: 768px) {
    .market-item {
        flex: 1 1 calc(25% - 10px); /* 4 items per row */
    }
}

@media (max-width: 576px) {
    .market-item {
        flex: 1 1 calc(33.33% - 10px); /* 3 items per row */
    }
}

@media (max-width: 400px) {
    .market-item {
        flex: 1 1 calc(50% - 10px); /* 2 items per row */
    }
}

/* --- LOGIN FORM STYLES --- */
.game-actions .ga-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    border: 1px solid rgba(51, 51, 51, 0.12);
    background:
        linear-gradient(180deg, #ffffff 0%, #f9f9f9 54%, #f1f1f1 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 1px 4px rgba(0, 0, 0, 0.08);
}

.game-actions .ga-shell::before,
.game-actions .ga-shell::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.game-actions .ga-shell::before {
    inset: 4px;
    border: 1px solid rgba(255, 255, 255, 0.44);
}

.game-actions .ga-shell::after {
    inset: auto 10px 0 10px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--ga-gold-soft), transparent);
}

.game-actions .ga-shell-auth {
    gap: 7px;
}

.game-actions .ga-shell-guest {
    gap: 5px;
}

.game-actions .login-form,
.game-actions .management-preview {
    position: relative;
    z-index: 1;
    margin: 0;
    min-width: 0;
}

.game-actions .login-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.game-actions .login-form form {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    min-width: 0;
}

.game-actions .ga-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.game-actions .ga-module-title,
.game-actions .ga-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.68rem;
    line-height: 1.05;
    margin: 0;
}

.game-actions .ga-module-title {
    color: var(--gray-darkest);
}

.game-actions .ga-eyebrow {
    color: var(--ga-gold-bright);
}

.game-actions .login-form h3,
.game-actions .management-preview h3 {
    color: var(--ga-text-main);
    text-align: left;
    font-size: 0.94rem;
    line-height: 1.1;
    margin: 0;
}

.game-actions .ga-subtitle {
    color: var(--ga-text-muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.game-actions .ga-fields,
.game-actions .login-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-width: 0;
}

.game-actions .form-group {
    flex: 1 1 auto;
    display: grid;
    gap: 4px;
    min-width: 0;
}

.game-actions .form-group label {
    color: var(--ga-text-muted);
}

.game-actions .form-group input[type="text"] {
    margin-bottom: 0;
}

.game-actions .form-group input[type="text"],
.game-actions .form-group input[type="password"] {
    width: 100%;
    min-height: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(51, 51, 51, 0.14);
    border-radius: 4px;
    background:
        linear-gradient(180deg, #f6f6f6 0%, #fff 100%);
    color: var(--ga-text-main);
    font-size: 0.76rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 1px 0 rgba(255, 255, 255, 0.55);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.game-actions .form-group input[type="text"]::placeholder,
.game-actions .form-group input[type="password"]::placeholder {
    color: var(--gray-medium-dark);
}

.game-actions .form-group input[type="text"]:focus,
.game-actions .form-group input[type="password"]:focus {
    outline: none;
    border-color: var(--gray-dark);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 0 0 3px rgba(51, 51, 51, 0.08);
}

.game-actions .form-actions,
.game-actions .ga-primary {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
}

.game-actions .form-actions button[type="submit"] {
    width: 100%;
    min-height: var(--btn-height);
    height: var(--btn-height);
    padding: 0 var(--btn-padding-x);
    border: 1px solid var(--btn-accent-border);
    border-radius: var(--btn-radius);
    /* base “blood red” + profundidade */
    background: var(--btn-accent-bg);
    color: var(--btn-accent-text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(17, 17, 17, 0.18),
        0 2px 8px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, font-weight 0.2s ease;
    font-weight: 600;
    font-size: var(--btn-font-size);
    letter-spacing: var(--btn-letter-spacing);
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
}

.game-actions .form-actions button[type="submit"]:hover {
    background: var(--btn-accent-bg-hover);
    border-color: rgba(123, 31, 31, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(17, 17, 17, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.game-actions .form-actions button[type="submit"]:focus {
    outline: none;
    border-color: rgba(123, 31, 31, 0.38);
    box-shadow:
        var(--btn-focus-ring),
        0 2px 8px rgba(0, 0, 0, 0.16);
}

.game-actions .form-actions button[type="submit"]:focus-visible {
    outline: none;
    box-shadow:
        var(--btn-focus-ring),
        0 2px 8px rgba(0, 0, 0, 0.16);
}

.game-actions .form-actions button[type="submit"]:active {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(17, 17, 17, 0.18),
        0 1px 4px rgba(0, 0, 0, 0.16);
}

.game-actions .login-links,
.game-actions .ga-links {
    position: relative;
    z-index: 1;
    color: var(--ga-text-muted);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    padding-top: 5px;
    border-top: 1px solid var(--ga-line);
    font-size: 0.72rem;
    line-height: 1.2;
}

.game-actions .login-links a {
    color: var(--gray-dark);
    text-decoration: none;
    margin: 0;
    font-weight: 500;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.game-actions .login-links a:hover,
.game-actions .login-links a:focus {
    color: var(--gray-darker);
    font-weight: 700;
}

.game-actions .ga-link-disabled {
    color: var(--gray-medium-dark);
    cursor: default;
}

.game-actions .ga-link-separator {
    width: 4px;
    height: 4px;
    font-size: 0;
    border-radius: 50%;
    background: rgba(85, 85, 85, 0.45);
}

.game-actions .ga-link-separator::before {
    content: none;
}



.error-message {
    color: var(--error-red);
    background-color: var(--gray-lightest);
    border: 1px solid var(--error-red);
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 3px;
    text-align: center;
}

/* management Preview Styles */
.game-actions .management-preview {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 7px;
    width: 100%;
    min-height: 0;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
    border: 0;
}

.game-actions .ga-account > p {
    display: none;
}

.game-actions .ga-account-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 6px;
    min-width: 0;
}

.game-actions .ga-account-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-actions .ga-account-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.game-actions .ga-account-heading {
    min-width: 0;
}

.game-actions .ga-account-heading h3 {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-actions .ga-role-badge {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 2px 6px;
    border: 1px solid rgba(184, 122, 34, 0.28);
    border-radius: 999px;
    font-size: 0.58rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ga-gold-bright);
    background: rgba(184, 122, 34, 0.08);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-actions .ga-logout-link {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 auto;
    color: var(--ga-text-muted);
    text-decoration: none;
    font-size: 0.64rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-top: 2px;
    white-space: nowrap;
    transition: color 0.2s ease, font-weight 0.2s ease;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.game-actions .ga-logout-form {
    margin: 0;
}

.game-actions .ga-logout-link:hover,
.game-actions .ga-logout-link:focus {
    color: var(--gray-darkest);
    font-weight: 700;
}

.game-actions .ga-currency {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid rgba(51, 51, 51, 0.12);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 40%),
        linear-gradient(90deg, rgba(184, 122, 34, 0.1) 0%, rgba(184, 122, 34, 0) 24%),
        linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(51, 51, 51, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.05);
}

.game-actions .ga-currency-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-dark);
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    white-space: nowrap;
}

/* .game-actions .ga-currency-label::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    transform: rotate(45deg);
    border-radius: 2px;
    background: linear-gradient(135deg, #fff8e5 0%, #d8b16a 52%, #8a5918 100%);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.45),
        0 0 0 1px rgba(123, 31, 31, 0.08);
} */

.game-actions .ga-currency strong {
    color: #171717;
    font-size: 0.95rem;
    line-height: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    font-variant-numeric: tabular-nums;
    text-shadow: none;
}

.game-actions .ga-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    min-width: 0;
}

.game-actions .ga-shortcuts-3 .ga-shortcut:last-child {
    grid-column: 1 / -1;
}

.game-actions .ga-shortcut {
    min-width: 0;
    min-height: var(--btn-compact-height);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--btn-padding-y) 8px;
    border: var(--btn-border);
    border-radius: var(--btn-radius);
    background: var(--btn-bg);
    color: var(--btn-text);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: var(--btn-font-weight);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: var(--btn-letter-spacing);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, font-weight 0.2s ease;
    box-shadow: var(--btn-shadow);
}

.game-actions .ga-shortcut::after {
    content: "";
    position: absolute;
    inset: auto 8px 0 8px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(85, 85, 85, 0.55), transparent);
    opacity: 0.72;
    pointer-events: none;
}

.game-actions .ga-shortcut:hover,
.game-actions .ga-shortcut:focus {
    border-color: var(--btn-border-hover);
    color: var(--btn-text-hover);
    font-weight: 700;
    box-shadow: var(--btn-shadow-hover);
}

.game-actions .ga-shortcut:focus {
    outline: none;
}

.game-actions .ga-shortcut:focus-visible {
    outline: none;
    box-shadow: var(--btn-focus-ring), var(--btn-shadow);
}

.game-actions .ga-shortcut:active {
    box-shadow: var(--btn-shadow-active);
}

.game-actions .ga-shortcut-accent {
    color: var(--btn-accent-text);
    border-color: var(--btn-accent-border);
    background: var(--btn-accent-bg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.game-actions .ga-shortcut-accent:hover,
.game-actions .ga-shortcut-accent:focus {
    color: var(--btn-accent-text);
    background: var(--btn-accent-bg-hover);
    border-color: rgba(123, 31, 31, 0.38);
}

.game-actions .ga-shortcut-accent::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
}

.game-actions .ga-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 768px) {
    .game-actions .ga-shell {
        padding: 6px;
    }

    .game-actions .ga-account-meta {
        gap: 4px;
        flex-wrap: wrap;
    }

    .game-actions .ga-shortcut {
        padding: 6px;
        font-size: 0.64rem;
        letter-spacing: 0.04em;
    }

    .game-actions .ga-logout-link {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .game-actions .ga-module-title,
    .game-actions .ga-eyebrow {
        font-size: 0.64rem;
        letter-spacing: 0.12em;
    }

    .game-actions .form-group input[type="text"],
    .game-actions .form-group input[type="password"] {
        min-height: 30px;
        height: 30px;
    }

    .game-actions .form-actions button[type="submit"] {
        min-height: 32px;
        height: 32px;
    }
}

/* --- MANAGEMENT STYLES (base layout) --- */
.management-content {
    padding: 20px;
    display: flex;
    min-height: 80vh;
}

.management-main-content {
    flex: 2;
    padding: 0 0 0 15px;
}

.management-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* Buttons and Actions - Consolidated Selectors */
button:where(:not(.add-to-cart-btn):not(.market-item-button):not(.ranking-menu-button):not(.search-btn):not(.qty-btn):not(.remove-item-btn):not(.remove-cart-btn):not(.carousel-btn):not(.coupon-toggle-btn):not(.quick-btn):not(.nav-logout-button):not(.ga-logout-link):not(.menu-link-button)),
input[type="submit"],
input[type="button"],
input[type="reset"],
.btn,
.btn-primary,
.btn-secondary,
.button,
.btn-action:not(.download-btn),
.news-type-button,
.market-class-button,
.downloads-page .btn-primary,
.downloads-page .btn-secondary,
.back-link-paragraph a,
.button-secondary,
.recharge-cpoints-btn,
.coupon-button,
.coupon-table .coupon-link-button {
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--btn-height);
    padding: var(--btn-padding-y) var(--btn-padding-x);
    color: var(--btn-text);
    background: var(--btn-bg);
    border: var(--btn-border);
    border-radius: var(--btn-radius);
    box-shadow: var(--btn-shadow), var(--btn-bottom-highlight);
    cursor: pointer;
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    letter-spacing: var(--btn-letter-spacing);
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, font-weight 0.2s ease;
    vertical-align: middle;
    white-space: nowrap;
}

/* Button hover/focus/active states - consolidated */
button:where(:not(.buy-now-btn):not(.market-item-button):not(.ranking-menu-button):not(.search-btn):not(.qty-btn):not(.remove-item-btn):not(.remove-cart-btn):not(.carousel-btn):not(.coupon-toggle-btn):not(.quick-btn):not(.nav-logout-button):not(.ga-logout-link):not(.menu-link-button)):hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.button:hover,
.btn-action:not(.download-btn):hover,
.news-type-button:hover,
.market-class-button:hover,
.downloads-page .btn-primary:hover,
.downloads-page .btn-secondary:hover,
.back-link-paragraph a:hover,
.button-secondary:hover,
.recharge-cpoints-btn:hover,
.coupon-button:hover,
.coupon-table .coupon-link-button:hover {
    color: var(--btn-text-hover);
    background: var(--btn-bg-hover);
    border-color: var(--btn-border-hover);
    box-shadow: var(--btn-shadow-hover), var(--btn-bottom-highlight);
    font-weight: 700;
    text-decoration: none;
}

button:where(:not(.market-item-button):not(.ranking-menu-button):not(.search-btn):not(.qty-btn):not(.remove-item-btn):not(.remove-cart-btn):not(.carousel-btn):not(.coupon-toggle-btn):not(.quick-btn):not(.nav-logout-button):not(.ga-logout-link):not(.menu-link-button)):focus,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
.btn:focus,
.btn-primary:focus,
.btn-secondary:focus,
.button:focus,
.btn-action:not(.download-btn):focus,
.news-type-button:focus,
.market-class-button:focus,
.downloads-page .btn-primary:focus,
.downloads-page .btn-secondary:focus,
.back-link-paragraph a:focus,
.button-secondary:focus,
.recharge-cpoints-btn:focus,
.coupon-button:focus,
.coupon-table .coupon-link-button:focus { outline: none; }

button:where(:not(.market-item-button):not(.ranking-menu-button):not(.search-btn):not(.qty-btn):not(.remove-item-btn):not(.remove-cart-btn):not(.carousel-btn):not(.coupon-toggle-btn):not(.quick-btn):not(.nav-logout-button):not(.ga-logout-link):not(.menu-link-button)):focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
input[type="reset"]:focus-visible,
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.button:focus-visible,
.btn-action:not(.download-btn):focus-visible,
.news-type-button:focus-visible,
.market-class-button:focus-visible,
.downloads-page .btn-primary:focus-visible,
.downloads-page .btn-secondary:focus-visible,
.back-link-paragraph a:focus-visible,
.button-secondary:focus-visible,
.recharge-cpoints-btn:focus-visible,
.coupon-button:focus-visible,
.coupon-table .coupon-link-button:focus-visible {
    outline: none;
    box-shadow: var(--btn-focus-ring), var(--btn-shadow), var(--btn-bottom-highlight);
}

button:where(:not(.market-item-button):not(.ranking-menu-button):not(.search-btn):not(.qty-btn):not(.remove-item-btn):not(.remove-cart-btn):not(.carousel-btn):not(.coupon-toggle-btn):not(.quick-btn):not(.nav-logout-button):not(.ga-logout-link):not(.menu-link-button)):active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active,
.btn:active,
.btn-primary:active,
.btn-secondary:active,
.button:active,
.btn-action:not(.download-btn):active,
.news-type-button:active,
.market-class-button:active,
.downloads-page .btn-primary:active,
.downloads-page .btn-secondary:active,
.back-link-paragraph a:active,
.button-secondary:active,
.recharge-cpoints-btn:active,
.coupon-button:active,
.coupon-table .coupon-link-button:active { box-shadow: var(--btn-shadow-active), var(--btn-bottom-highlight); }

button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
input[type="reset"]:disabled,
.btn.disabled,
.btn-primary.disabled,
.btn-secondary.disabled,
.button.disabled,
.btn-action.disabled,
.news-type-button.disabled,
.market-class-button.disabled,
[aria-disabled="true"] {
    color: var(--btn-disabled-text) !important;
    background: var(--btn-disabled-bg) !important;
    border-color: rgba(51, 51, 51, 0.12) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 0.68;
    pointer-events: none;
}

.downloads-page .btn-primary
{
    color: var(--btn-accent-text);
    background: var(--btn-accent-bg);
    border-color: var(--btn-accent-border);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.btn-primary:hover,
.button.primary:hover,
.btn-action.primary:hover,
.downloads-page .btn-primary:hover
.btn-primary:hover {
    color: var(--btn-accent-text);
    background: var(--btn-accent-bg-hover);
    border-color: rgba(123, 31, 31, 0.38);
}

.btn-secondary,
.button.secondary,
.downloads-page .btn-secondary,
.back-link-paragraph a,
.button-secondary {
    color: var(--btn-secondary-text);
    background: var(--btn-secondary-bg);
}

.btn-danger,
.button-danger,
.button.danger,
.button.button-danger {
    color: #ffffff;
    background: var(--btn-danger-bg);
    border-color: var(--btn-danger-border);
}

.btn-danger:hover,
.button-danger:hover,
.button.danger:hover,
.button.button-danger:hover {
    color: #ffffff;
    background: var(--btn-danger-bg-hover);
    border-color: rgba(142, 41, 41, 0.46);
}

.btn-success,
.button-success,
.button.button-success {
    color: #ffffff;
    background: var(--btn-success-bg);
    border-color: rgba(63, 118, 71, 0.36);
}

.btn-success:hover,
.button-success:hover,
.button.button-success:hover {
    color: #ffffff;
    background: var(--btn-success-bg-hover);
}

.news-type-button.active,
.market-class-button.active,
.btn.active,
.button.active {
    color: var(--btn-text-hover);
    background: var(--btn-bg-hover);
    border-color: var(--btn-border-hover);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12), var(--btn-bottom-highlight);
    font-weight: 700;
}

.btn-donate,
.game-actions .ga-shortcut.btn-donate,
a[href$="donate.php"],
a[href*="donate.php?"],
a[href*="donate.php#"] {
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--btn-height);
    padding: var(--btn-padding-y) calc(var(--btn-padding-x) + 8px);
    color: var(--btn-donate-text);
    background: var(--btn-donate-bg);
    border: 1px solid var(--btn-donate-border);
    border-radius: var(--btn-radius);
    box-shadow:
        var(--btn-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        var(--btn-bottom-highlight);
    cursor: pointer;
    font-size: var(--btn-font-size);
    font-weight: 700;
    letter-spacing: var(--btn-letter-spacing);
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, font-weight 0.2s ease;
    vertical-align: middle;
    white-space: nowrap;
}

.btn-donate:hover,
.btn-donate:focus,
.game-actions .ga-shortcut.btn-donate:hover,
.game-actions .ga-shortcut.btn-donate:focus,
a[href$="donate.php"]:hover,
a[href$="donate.php"]:focus,
a[href*="donate.php?"]:hover,
a[href*="donate.php?"]:focus,
a[href*="donate.php#"]:hover,
a[href*="donate.php#"]:focus {
    color: var(--btn-donate-text);
    background: var(--btn-donate-bg-hover);
    border-color: var(--btn-donate-border-hover);
    box-shadow:
        var(--btn-shadow-hover),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        var(--btn-bottom-highlight);
    font-weight: 700;
    text-decoration: none;
}

.btn-donate:focus,
.game-actions .ga-shortcut.btn-donate:focus,
a[href$="donate.php"]:focus,
a[href*="donate.php?"]:focus,
a[href*="donate.php#"]:focus {
    outline: none;
}

.btn-donate:focus-visible,
.game-actions .ga-shortcut.btn-donate:focus-visible,
a[href$="donate.php"]:focus-visible,
a[href*="donate.php?"]:focus-visible,
a[href*="donate.php#"]:focus-visible {
    outline: none;
    box-shadow:
        var(--btn-focus-ring),
        var(--btn-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        var(--btn-bottom-highlight);
}

.btn-donate:active,
.game-actions .ga-shortcut.btn-donate:active,
a[href$="donate.php"]:active,
a[href*="donate.php?"]:active,
a[href*="donate.php#"]:active {
    border-color: #e67e22;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    filter: brightness(0.9);
    background: linear-gradient(135deg, #d35400, #c0392b);
}

.btn-donate:disabled,
.btn-donate.disabled,
.btn-donate[aria-disabled="true"],
a[href$="donate.php"].disabled,
a[href$="donate.php"][aria-disabled="true"],
a[href*="donate.php?"].disabled,
a[href*="donate.php?"][aria-disabled="true"],
a[href*="donate.php#"].disabled,
a[href*="donate.php#"][aria-disabled="true"] {
    color: var(--btn-disabled-text) !important;
    background: var(--btn-disabled-bg) !important;
    border-color: rgba(51, 51, 51, 0.12) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 0.68;
    pointer-events: none;
    text-shadow: none;
}

.game-actions .ga-shortcut.btn-donate::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
}

/* Download button */
.download-btn{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    flex: 1 1 auto;
    height: auto;
    min-height: 80px;
    padding: 0 28px;
    box-sizing: border-box;
    font-size: 2em;
    letter-spacing: 1px;
    line-height: 1.1;
    text-align: center;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    text-shadow:
        0 1px 0 rgba(0,0,0,.75),
        0 0 10px rgba(255,255,255,.18);
    border: 1px solid rgba(0,0,0,.65);
    background:
        radial-gradient(ellipse at 50% 35%,
            rgba(255,255,255,.16) 0%,
            rgba(255,255,255,.08) 28%,
            rgba(255,255,255,0) 60%),
        radial-gradient(ellipse at center,
            rgba(0,0,0,0) 45%,
            rgba(0,0,0,.35) 78%,
            rgba(0,0,0,.65) 100%),
        linear-gradient(to bottom,
            rgba(255,255,255,.10) 0%,
            rgba(255,255,255,0) 18%,
            rgba(0,0,0,.08) 55%,
            rgba(0,0,0,.22) 100%),
        linear-gradient(to bottom,
            #a31212 0%,
            #8f0f10 38%,
            #6f090a 100%);
    box-shadow:
        0 10px 15px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.14),
        inset 0 -1px 0 rgba(0,0,0,.55),
        inset 0 0 0 1px rgba(255,255,255,.05),
        inset 0 0 12px rgba(0,0,0,.55);
}

.download-btn::before{
    content:"";
    position:absolute;
    inset: 1px;
    border-radius: 5px;
    pointer-events:none;
    opacity: .55;
    mix-blend-mode: overlay;
    background:
        repeating-linear-gradient(135deg,
            rgba(255,255,255,.06) 0 2px,
            rgba(255,255,255,0) 2px 8px),
        repeating-radial-gradient(circle at 20% 30%,
            rgba(0,0,0,.22) 0 2px,
            rgba(0,0,0,0) 2px 9px),
        linear-gradient(115deg,
            rgba(0,0,0,0) 0%,
            rgba(0,0,0,.25) 35%,
            rgba(0,0,0,0) 70%);
    filter: contrast(115%) saturate(120%);
}

.download-btn::after{
    content:"";
    position:absolute;
    inset: 0;
    pointer-events:none;
    border-radius: 6px;
    background:
        radial-gradient(circle at 12px 12px,
            rgba(255,255,255,.18) 0 2px,
            rgba(0,0,0,.55) 3px 6px,
            rgba(0,0,0,0) 7px),
        radial-gradient(circle at calc(100% - 12px) 12px,
            rgba(255,255,255,.18) 0 2px,
            rgba(0,0,0,.55) 3px 6px,
            rgba(0,0,0,0) 7px),
        radial-gradient(circle at 12px calc(100% - 12px),
            rgba(255,255,255,.12) 0 2px,
            rgba(0,0,0,.55) 3px 6px,
            rgba(0,0,0,0) 7px),
        radial-gradient(circle at calc(100% - 12px) calc(100% - 12px),
            rgba(255,255,255,.12) 0 2px,
            rgba(0,0,0,.55) 3px 6px,
            rgba(0,0,0,0) 7px),
        linear-gradient(to right,
            rgba(0,0,0,.55),
            rgba(255,255,255,.04) 18%,
            rgba(255,255,255,0) 50%,
            rgba(255,255,255,.04) 82%,
            rgba(0,0,0,.55));
    opacity: .9;
}

.download-btn:hover{
    color: rgba(255,255,255,.95);
    filter: saturate(1.08) contrast(1.04);
}

.download-btn:focus{
    outline: none;
}

.download-btn:focus-visible{
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255,255,255,.18),
        0 10px 15px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.14),
        inset 0 -1px 0 rgba(0,0,0,.55),
        inset 0 0 0 1px rgba(255,255,255,.05),
        inset 0 0 12px rgba(0,0,0,.55);
}

.download-btn:active{
    transform: translateY(1px);
    box-shadow:
        0 8px 14px rgba(0,0,0,.35),
        inset 0 2px 10px rgba(0,0,0,.55),
        inset 0 0 0 1px rgba(255,255,255,.04);
}
/* Responsive */
@media (max-width: 768px) {
    .management-content {
        padding: 10px;
        flex-direction: column; /* Stack sidebar and content on small screens */
    }

    .management-main-content { padding: 0 5px; }

    .management-sidebar {
        border-left: none; /* Remove left border on small screens */
        border-top: 1px solid var(--gray-light-medium); /* Add top border to separate from content */
        margin-top: 20px; /* Add top margin */
        padding: 10px; /* Reduce sidebar padding on small screens */
    }


    .management-sections {
        grid-template-columns: 1fr;
    }
}

/* Character Row Color Coding */
.management-row.slayer-row,
.management-details-row.slayer-row {
    --race-color: #3a6ea5; /* Blue for Slayer */
}
.management-row.vampire-row,
.management-details-row.vampire-row {
    --race-color: #b22234; /* Red for Vampire */
}
.management-row.ouster-row,
.management-details-row.ouster-row {
    --race-color: #2e8b57; /* Green for Ousters */
}

/* Use the color for a left border and subtle background */
.management-row.slayer-row,
.management-row.vampire-row,
.management-row.ouster-row,
.management-details-row.slayer-row,
.management-details-row.vampire-row,
.management-details-row.ouster-row { border-left: 5px solid var(--race-color); }

/* Optional: subtle background tint for details row */
.management-details-row.slayer-row td {
    background: #eaf2fb;
}
.management-details-row.vampire-row td {
    background: #faeaea;
}
.management-details-row.ouster-row td {
    background: #eafaf0;
}

.button-loader {
    font-size: 1.2em;
    margin-left: 5px;
}

/* Market Item Button Styles */
.market-item-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.market-item-button img {
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.market-item-button div {
    font-size: 0.95em;
    font-weight: bold;
    margin: 4px 0 0 0;
    text-align: center;
    color: #333;
}

/* Donation History Table Styles */
.donation-history-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--gray-lightest);
    border: 1px solid var(--gray-light-medium);
    border-radius: 5px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.donation-history-table th, .donation-history-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-light);
    text-align: left;
    font-size: 0.95em;
}

.donation-history-table th {
    background: var(--gray-dark);
    color: var(--gray-lightest);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.donation-history-table tr {
    background: var(--gray-lighter);
    transition: background 0.3s ease;
}

.donation-history-table tr:hover {
    background: var(--gray-light-medium);
}

.donation-history-table td {
    color: var(--gray-darkest);
}

.donation-history-table .status-pending {
    color: var(--gray-medium-dark);
    font-weight: bold;
}

.donation-history-table .status-completed {
    color: green;
    font-weight: bold;
}

.donation-history-table .status-failed {
    color: var(--error-red);
    font-weight: bold;
}

/* Base styles for all labels */
.notice-tag-label {
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    margin-right: 5px;
}

/* Emotionally themed labels */
.notice-tag-label.event {
    background: #00b894; /* Emerald Green – positive, energetic */
    color: #fff;
}

.notice-tag-label.update {
    background: #fd7e14; /* Orange – alert, friendly change */
    color: #fff;
}

.notice-tag-label.patch {
    background: #0dcaf0; /* Sky Blue – technical, reliable */
    color: #000; /* Better contrast on light background */
}

.notice-tag-label.general {
    background: #6c757d; /* Slate Gray – neutral, institutional */
    color: #fff;
}

/* --- Notice Detail Page --- */
.notice-detail-block {
    background-color: var(--gray-lighter); /* Lighter background for contrast */
    color: var(--gray-darkest); /* Darker text for readability */
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.notice-detail-block h1 { /* Style h1 inside the block if needed, or keep it outside */
    margin-bottom: 15px;
    color: var(--gray-darkest);
}

.notice-detail-block h2 {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--gray-light-medium);
    font-size: 1.8em; /* Make title stand out */
    color: var(--gray-darkest);
}

.notice-meta {
    margin-bottom: 15px;
    font-size: 0.9em;
    color: var(--gray-medium-dark);
}

/* Reuse existing notice-tag-label styles and add type-specific ones */
.notice-meta .notice-type {
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    margin-right: 5px;
}


.notice-detail-image {
    margin-bottom: 20px;
    text-align: center; /* Center the image */
}

.notice-detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.notice-detail-content {
    line-height: 1.7; /* Improve text readability */
    font-size: 1.05em; /* Slightly larger font */
    color: var(--gray-darker);
    padding: 10px 0; /* Add some vertical padding */
}

/* Styling for content generated by WYSIWYG/Markdown */
.notice-detail-content p {
    margin-bottom: 1em;
}

.notice-detail-content h3,
.notice-detail-content h4,
.notice-detail-content h5,
.notice-detail-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: var(--gray-darkest);
}

.notice-detail-content strong {
    font-weight: bold;
    color: var(--gray-darkest);
}

.notice-detail-content em {
    font-style: italic;
}

.notice-detail-content a {
    color: var(--primary-dark); /* Use a defined link color */
    text-decoration: underline;
}
.notice-detail-content a:hover {
    color: var(--recharge-color); /* Use another color for hover */
}

.notice-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

/* Fix for list item markers */
.notice-detail-content ul,
.notice-detail-content ol {
    margin-bottom: 1em;
    padding-left: 25px; /* Indent the list itself, adjust as needed */
}

.notice-detail-content li {
    margin-bottom: 0.5em;
}

/* Back link styling */
.back-link-paragraph {
    margin-top: 25px;
    text-align: center;
}



.swiper-button-next,
.swiper-button-prev {
    color: #ff2b2b !important;
    transition:
        color 0.2s ease,
        text-shadow 0.2s ease,
        opacity 0.2s ease !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #ffffff !important;
    text-shadow:
        0 0 8px rgba(255, 0, 0, 0.75),
        0 0 16px rgba(255, 0, 0, 0.45) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-weight: 900 !important;
}

.swiper-pagination-bullet.swiper-pagination-bullet-active {
    background-color: #FF0000 !important;
}
.swiper-pagination-bullet{
    opacity:0.8 !important;
}

/* Breadcrumb Custom Style */
.breadcrumb {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 20px;
    font-size: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

/* Explicitly hide any list markers (user-agent ::marker) that some browsers may render for <ol> */
.breadcrumb li::marker,
.breadcrumb-item::marker {
    display: none;
}

/* Separator between breadcrumb items (works with .breadcrumb-item) */
.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    display: inline-block;
    padding: 0 8px;
    color: #888;
    font-weight: 600;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: #0056b3;
    text-decoration: underline;
}
.breadcrumb .active {
    color: #333;
    font-weight: 600;
}

.static-page-content {
    margin-bottom: 30px;
}
@media (max-width: 768px) {
    .page-container.container {
        width: 95%;
    }
}

.game-actions .login-error-overlay,
.login-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(231, 126, 126, 0.3);
    background: linear-gradient(90deg, rgba(160, 44, 44, 0.26), transparent 65%), rgba(61, 16, 20, 0.82);
    color: #ffe1df;
    display: flex;
    align-items: center;   /* vertical centering */
    justify-content: center; /* horizontal centering */
    font-weight: bold;
    font-size: 0.78rem;
    line-height: 1.3;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.7s;
}



