/* Copyright 2004-2026 Gopex LLC. All rights reserved. */
@import url('placeholder-art.css');

:root {
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --primary-color: Goldenrod;
    --secondary-color: #1e90ff;
    --background-color: #2f3640;    
    --text-color: #ffffff;
    --dark-bg: #2f3640;
    --light-bg: #f5f6fa;
    --text-light: #ffffff;
    --text-dark: #2d3436;
    --button-bg: Goldenrod;
    --border-color: #ddd;
    --heading-color: Goldenrod;
    --focus-outline: 3px solid #1e90ff;
    --border-radius: 0.25rem;
    --box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    --error-color: #e74c3c;
    --focus-outline: 3px solid #1e90ff;
    --panel-text-color: rgba(245, 240, 232, 0.94);
    --panel-title-color: #f4cf76;
    --panel-link-color: #ffe8aa;
    --panel-radius: 1rem;
    --panel-border: rgba(244, 207, 118, 0.22);
    --panel-border-strong: rgba(255, 226, 153, 0.34);
    --panel-highlight: rgba(255, 255, 255, 0.14);
    --panel-shadow:
        0 22px 55px rgba(0, 0, 0, 0.34),
        0 6px 18px rgba(0, 0, 0, 0.22);
    --panel-backdrop-blur: 18px;
    --panel-sheen:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 36%, transparent 60%);
    --panel-bg:
        var(--panel-sheen),
        linear-gradient(180deg, rgba(26, 20, 13, 0.82), rgba(7, 12, 18, 0.9));
    --panel-bg-strong:
        radial-gradient(circle at top left, rgba(214, 176, 88, 0.14), transparent 32%),
        radial-gradient(circle at top right, rgba(126, 93, 197, 0.14), transparent 30%),
        var(--panel-sheen),
        linear-gradient(180deg, rgba(20, 16, 11, 0.88), rgba(6, 10, 16, 0.94));
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

body, h1, h2, h3, p, a, button {
    font-family: var(--font-family);
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--background-color);
    color: var(--text-light);
    line-height: 1.6;
    overscroll-behavior: none; 
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    -webkit-tap-highlight-color: rgba(255, 215, 0, 0.18);
    touch-action: manipulation;
}

/* Headers and Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
p {
    margin-bottom: 1.5rem;
}

a {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: none;
}

/* Link Styling */
a {
    text-shadow: 0px 1px 0px #000;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #e6e6e6;
}

/* Scrollbar Styling */
body {
    scrollbar-width: thin;
    scrollbar-color: gold slategrey;
}

body::-webkit-scrollbar {
    width: 1em;
}

body::-webkit-scrollbar-track {
    background: slategrey;
}

body::-webkit-scrollbar-thumb {
    background-color: gold;
    outline: 1px solid goldenrod;
}

/* Accessibility */
button:focus, a:focus, input:focus, textarea:focus, select:focus {
    outline: var(--focus-outline);
}

button,
[type="button"],
[type="submit"],
[type="reset"],
a.button,
.button,
[role="button"] {
    touch-action: manipulation;
}

input,
select,
textarea {
    font: inherit;
}

@media (pointer: coarse) {
    button,
    [type="button"],
    [type="submit"],
    [type="reset"],
    a.button,
    .button,
    [role="button"] {
        min-height: 2.75rem;
        min-width: 2.75rem;
    }

    input,
    select,
    textarea {
        min-height: 2.75rem;
        font-size: 16px;
    }

    button:active,
    [type="button"]:active,
    [type="submit"]:active,
    [type="reset"]:active,
    a.button:active,
    .button:active,
    [role="button"]:active {
        transform: scale(0.985);
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Containers */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

.main {
    max-width: 80vw;
    max-height: 80vh;
    margin: auto;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #000;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow-y: auto;
}

.main-panel {
    width: min(80vw, 72rem);
    min-height: min(80vh, 48rem);
    max-height: 80vh;
    margin: 3em auto 2rem;
    padding: 1.25rem;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 3rem;
    color: var(--text-dark);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* Navigation */
.site-header {
    background-color: var(--primary-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
}

/* Shop Page */
.shop-container {
    padding: 2rem;
    background-color: var(--light-bg);
    text-align: center;
}

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

.shop-item {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.shop-item img {
    max-width: 150px;
    margin-bottom: 1rem;
}

.shop-item button {
    background-color: var(--button-bg);
    color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

.shop-item button:hover {
    background-color: var(--primary-color);
}

/* World Map */
.map-container {
    background-color: var(--dark-bg);
    position: relative;
    margin-top: 2rem;
    height: 500px;
    width: 100%;
    border: 2px solid #fff;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

/* Leaderboards */
.leaderboard-container {
    padding: 2rem;
    background-color: var(--dark-bg);
    color: var(--text-dark);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th, .leaderboard-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table th {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.leaderboard-table td {
    background-color: var(--light-bg);
}

.leaderboard-table tr:nth-child(even) {
    background-color: var(--secondary-color);
}

/* Chat Room */
.chat-container {
    background-color: var(--dark-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
}

.chat-box {
    height: 300px;
    width: 100%;
    overflow-y: scroll;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.chat-input {
    width: 100%;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

/* Blog Section */
.blog-section {
    padding: 2rem;
    background-color: var(--light-bg);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-grid article {
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Guild Pages */
.guild-page {
    padding: 2rem;
    background-color: var(--light-bg);
    text-align: center;
}

.guild-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.guild-card {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.guild-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

.guild-card button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

/* Event Pages */
.event-page {
    padding: 2rem;
    background-color: var(--light-bg);
    text-align: center;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.event-card {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.event-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

.event-card button {
    background-color: var(--button-bg);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

/* Newsletter Signup */
.newsletter-container {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 2rem auto;
    width: 100%;
    max-width: 600px;
}

.newsletter-container form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.newsletter-container form input, .newsletter-container form button {
    padding: 0.8rem;
    border-radius: var(--border-radius);
}

/* Responsive Layout */
@media (max-width: 768px) {
    .hero-section, .nav-links, .blog-section, .guild-grid, .leaderboard-container {
        flex-direction: column;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .newsletter-container form input, .newsletter-container form button {
        width: 100%;
        margin-bottom: 1rem;
    }
}


/* Profile Page Styles */
.profile-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1.5rem;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

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

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.avatar-section h1 {
    font-size: 2rem;
    color: var(--primary-color);
}

.stats-section {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.stats-section h2 {
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.stats-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-section li {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.social-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-actions button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.social-actions button:hover {
    background-color: var(--button-bg);
}

/* World Map */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
}

.map-tooltip {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: absolute;
    z-index: 999;
    pointer-events: none;
}

/* Guild Page Styles */
.guild-container {
    padding: 2rem;
    background-color: var(--light-bg);
    text-align: center;
}

.guild-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.guild-card {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.guild-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

.guild-card button {
    background-color: var(--button-bg);
    color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

.guild-card button:hover {
    background-color: var(--primary-color);
}

/* Newsletter Signup */
.newsletter-container {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 2rem auto;
    width: 100%;
    max-width: 600px;
}

.newsletter-container form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.newsletter-container form input, .newsletter-container form button {
    padding: 0.8rem;
    border-radius: var(--border-radius);
}

.newsletter-container form button {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.newsletter-container form button:hover {
    background-color: var(--button-bg);
}

/* Chat Room */
.chat-container {
    background-color: var(--dark-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
}

.chat-box {
    height: 300px;
    width: 100%;
    overflow-y: scroll;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.chat-input {
    width: 100%;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

/* Shop Page */
.shop-container {
    padding: 2rem;
    background-color: var(--light-bg);
    text-align: center;
}

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

.shop-item {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.shop-item img {
    max-width: 150px;
    margin-bottom: 1rem;
}

.shop-item button {
    background-color: var(--button-bg);
    color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

.shop-item button:hover {
    background-color: var(--primary-color);
}

/* Leaderboards */
.leaderboard-container {
    padding: 2rem;
    background-color: var(--dark-bg);
    color: var(--text-dark);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th, .leaderboard-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table th {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.leaderboard-table td {
    background-color: var(--light-bg);
}

.leaderboard-table tr:nth-child(even) {
    background-color: var(--secondary-color);
}

/* Responsive Layout */
@media (max-width: 768px) {
    .hero-section, .nav-links, .blog-section, .guild-grid, .leaderboard-container {
        flex-direction: column;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .newsletter-container form input, .newsletter-container form button {
        width: 100%;
        margin-bottom: 1rem;
    }

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

/* Fishing Section */
.fishing-container {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 2rem auto;
}

.fishing-rod {
    width: 100px;
    height: auto;
}

.fishing-pond {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.fishing-pond img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.fishing-button {
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    color: var(--text-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fishing-button:hover {
    background-color: var(--button-bg);
}

/* Farming Section */
.farming-container {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 2rem auto;
}

.farming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.crop-item {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.crop-item img {
    max-width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

.crop-item button {
    background-color: var(--button-bg);
    color: var(--text-light);
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.crop-item button:hover {
    background-color: var(--primary-color);
}

/* Quests Section */
.quest-container {
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 2rem auto;
}

.quest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.quest-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quest-item {
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.quest-item h3 {
    margin-bottom: 0.5rem;
}

.quest-item p {
    margin-bottom: 1rem;
}

.quest-item button {
    background-color: var(--button-bg);
    padding: 0.8rem 1.5rem;
    color: var(--text-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quest-item button:hover {
    background-color: var(--primary-color);
}

/* Crafting Section */
.crafting-container {
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 2rem auto;
}

.crafting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.crafting-item {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.crafting-item img {
    max-width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

.crafting-item button {
    background-color: var(--button-bg);
    color: var(--text-light);
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.crafting-item button:hover {
    background-color: var(--primary-color);
}

/* Horoscopes Section */
.horoscope-container {
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 2rem auto;
}

.horoscope-card {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

.horoscope-card img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.horoscope-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.horoscope-card p {
    color: var(--text-light);
}

/* Adventure Section */
.adventure-container {
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 2rem auto;
}

.adventure-log {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.adventure-log p {
    color: var(--text-light);
    line-height: 1.5;
}

.adventure-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.adventure-actions button {
    background-color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    color: var(--text-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.adventure-actions button:hover {
    background-color: var(--button-bg);
}

/* Wardrobe Section */
.wardrobe-container {
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 2rem auto;
}

.wardrobe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.wardrobe-item {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.wardrobe-item img {
    max-width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

.wardrobe-item button {
    background-color: var(--button-bg);
    color: var(--text-light);
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wardrobe-item button:hover {
    background-color: var(--primary-color);
}

/* Event Participation Section */
.event-participation-container {
    margin: 3rem auto;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    text-align: center;
}

.event-participation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.event-card img {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

.event-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.event-card button {
    background-color: var(--primary-color);
    padding: 0.8rem 1.2rem;
    color: var(--text-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.event-card button:hover {
    background-color: var(--button-bg);
}

/* Expansions and Seasonal Events */
.seasonal-event-container {
    padding: 2rem;
    background-color: var(--background-color);
    color: var(--text-light);
    border-radius: var(--border-radius);
    margin: 3rem auto;
    text-align: center;
}

.seasonal-event-container h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.seasonal-event-card {
    background-color: var(--dark-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    text-align: center;
}

.seasonal-event-card img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.seasonal-event-card button {
    background-color: var(--button-bg);
    padding: 0.8rem 1.2rem;
    color: var(--text-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.seasonal-event-card button:hover {
    background-color: var(--primary-color);
}

/* Accessibility Considerations */
a:focus, button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

[aria-hidden="true"] {
    visibility: hidden;
}

[aria-expanded="false"] .dropdown-content {
    display: none;
}

[aria-expanded="true"] .dropdown-content {
    display: block;
}

/* Footer Section */
.site-footer {
    background-color: var(--primary-color);
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer ul li {
    display: inline-block;
    margin-right: 1rem;
}

.site-footer ul li:last-child {
    margin-right: 0;
}

.site-footer a {
    color: var(--text-light);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Guild Page Styles */
.guild-container {
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 3rem auto;
}

.guild-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 1.5rem;
}

.guild-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.guild-button {
    display: block;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.guild-button:hover {
    background-color: var(--button-bg);
}

.guild-messages {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.guild-message {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-bottom: 1px solid var(--text-light);
}

.quests {
    background-color: var(--dark-bg);
    padding: 0.8rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

/* World Map Section */
.world-map-container {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 3rem auto;
}

.map-grid {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}

.map-section {
    text-align: center;
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.map-section img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.legend {
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: left;
}

.legend ul {
    list-style: none;
    padding-left: 0;
}

.legend li {
    margin-bottom: 0.5rem;
}

.legend li span {
    font-weight: bold;
    color: var(--primary-color);
}

/* Chat Section */
.chat-container {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 3rem auto;
}

#chatlog {
    background-color: var(--dark-bg);
    border: 1px solid var(--text-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: scroll;
}

.chat-message {
    margin-bottom: 1rem;
}

.chat-message .username {
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.chat-message .text {
    color: var(--text-light);
}

.chat-input {
    margin-top: 1rem;
    display: flex;
}

.chat-input input[type="text"] {
    width: 80%;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--text-light);
    background-color: var(--background-color);
    color: var(--text-light);
}

.chat-input button {
    width: 20%;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-input button:hover {
    background-color: var(--button-bg);
}

/* Store/Shop Section */
.shop-container {
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 3rem auto;
}

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

.shop-item {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.shop-item img {
    max-width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

.shop-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.shop-item p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.shop-item button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.shop-item button:hover {
    background-color: var(--button-bg);
}

/* User Profile Section */
.profile-container {
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 3rem auto;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.profile-header .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--text-light);
    margin-right: 1rem;
}

.profile-header h1 {
    color: var(--text-light);
}

.profile-details {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.profile-details h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.profile-details p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.profile-actions button {
    background-color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    color: var(--text-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.profile-actions button:hover {
    background-color: var(--button-bg);
}

/* Accessibility Standards for Focus States */
button:focus, a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
}

.site-footer a {
    color: var(--text-light);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.site-footer ul li {
    display: inline;
    margin-right: 1.5rem;
}

.site-footer ul li:last-child {
    margin-right: 0;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .guild-container,
    .chat-container,
    .profile-container,
    .shop-container,
    .world-map-container {
        padding: 1rem;
    }

    .guild-header,
    .profile-header,
    .chat-input,
    .shop-item {
        flex-direction: column;
        text-align: center;
    }

    .chat-input input[type="text"], .chat-input button {
        width: 100%;
        margin-bottom: 1rem;
    }

    .site-footer ul {
        display: block;
        text-align: center;
    }

    .site-footer ul li {
        display: block;
        margin-bottom: 1rem;
    }
}

/* Leaderboards Section */
.leaderboard-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.leaderboard-header {
    background-color: var(--primary-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1.5rem;
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leaderboard-list li {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--text-light);
    color: var(--text-light);
}

.leaderboard-list li:last-child {
    border-bottom: none;
}

.leaderboard-rank {
    font-weight: bold;
    color: var(--primary-color);
}

.leaderboard-name {
    flex-grow: 1;
    margin-left: 1rem;
}

.leaderboard-score {
    font-weight: bold;
    color: var(--secondary-color);
}

/* Forums Section */
.forums-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.forums-header {
    background-color: var(--primary-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1.5rem;
}

.forum-list {
    list-style: none;
    padding: 0;
}

.forum-list li {
    padding: 1rem;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.forum-list li:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.forum-list a {
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    font-weight: bold;
}

.forum-list a:hover {
    color: var(--text-light);
}

/* Achievement System */
.achievement-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.achievement-header {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.achievement-card {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.achievement-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    border-radius: 50%;
    object-fit: cover;
}

.achievement-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Social Media Integration */
.social-media-container {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-bg);
    margin-top: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.social-media-container h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.social-media-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-media-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
    display: inline-block;
}

.social-media-button:hover {
    background-color: var(--button-bg);
}

.social-media-button i {
    margin-right: 0.5rem;
}

/* Seasonal Event Styles */
.seasonal-event-container {
    padding: 2rem;
    background-color: var(--dark-bg);
    color: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

.seasonal-event-header {
    background-color: var(--primary-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 2rem;
}

.seasonal-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.seasonal-event-card {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--box-shadow);
}

.seasonal-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.seasonal-event-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.seasonal-event-card img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.seasonal-event-card button {
    background-color: var(--button-bg);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.seasonal-event-card button:hover {
    background-color: var(--primary-color);
}

/* Responsive Styling */
@media (max-width: 768px) {
    .leaderboard-container, .forums-container, .achievement-container, .social-media-container, .seasonal-event-container {
        padding: 1rem;
    }

    .leaderboard-list li, .forum-list li {
        flex-direction: column;
        text-align: center;
    }

    .leaderboard-rank, .leaderboard-name, .leaderboard-score {
        margin-bottom: 1rem;
    }

    .social-media-buttons {
        flex-direction: column;
    }

    .seasonal-event-grid, .achievement-grid {
        grid-template-columns: 1fr;
    }
}

/* WCAG Accessibility Enhancements */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

a:focus, button:focus {
    outline: 3px dashed var(--primary-color);
}

[role="alert"] {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

/* Tooltip for hover accessibility */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    border-radius: var(--border-radius);
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position the tooltip */
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Accessible forms */
label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

input, textarea, select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--text-light);
    font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--primary-color);
}

/* Scrollbar Styling */
body {
    scrollbar-width: thin;
    scrollbar-color: gold slategrey;
}
body::-webkit-scrollbar {
    width: 1em;
}
body::-webkit-scrollbar-track {
    background: slategrey;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.9);
}
body::-webkit-scrollbar-thumb {
    background-color: gold;
    outline: 1px solid goldenrod;
}

/* Container styling */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}


/* Main content area */
.main {
    max-width: 80vw;
    max-height: 80vh;
    overflow-y: auto;
    margin: auto;
    background: rgba(0,0,0,0.85);
    border: 1px solid #000;
    padding: 1.5rem; /* Bootstrap padding utility */
    border-radius: var(--border-radius); /* Using variable */
    box-shadow: var(--box-shadow);
}

/* Rewards */
.reward-calendar {
    display: flex;
    justify-content: space-between;
}

.day-box {
    width: 50px; /* Adjust width as needed */
    height: 50px; /* Adjust height as needed */
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 5px;
    position: relative;
}

.day-box.claimed::after {
    content: '\2713'; /* Unicode checkmark */
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 24px; /* Adjust size as needed */
}

button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}


/* Newsletter signup styles */
.newsletter-signup {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 5px;
    margin: 1em auto;
    width: 100%;
    max-width: 500px;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.5);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

/* Container for the login box */
.login-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%; /* Ensures the box is vertically centered */
    max-width: 100%; /* Prevents overflow horizontally */
}

/* The login box with better control over its layout */
.login-form-container {
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    border: 2px solid #FFD700; /* Gold border for aesthetic */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    width: 90%; /* Adjust width for better responsiveness */
    max-width: 450px;
    backdrop-filter: blur(var(--panel-backdrop-blur)) saturate(135%);
    -webkit-backdrop-filter: blur(var(--panel-backdrop-blur)) saturate(135%);
}

/* Form elements inside the login */
.login-form-container h2, .login-form-container label {
    color: #FFD700; /* Gold text for headers and labels */
    text-align: center;
}

/* Inputs styling */
.login-form-container input[type="email"],
.login-form-container input[type="text"],
.login-form-container input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #555;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Button styling */
.login-form-container button {
    width: 100%;
    padding: 15px;
    background-color: #FF4500; /* Bright red/orange for Rose Online aesthetic */
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form-container button:hover {
    background-color: #FF6347; /* Slightly lighter orange on hover */
}

/* Footer styling */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 10px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
}

.footer a {
    color: #FFD700; /* Gold color */
    margin: 0 10px;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Media Queries for smaller screens */
@media (max-width: 768px) {
    .login-form-container {
        padding: 15px;
        font-size: 14px;
    }

    .login-form-container button {
        font-size: 16px;
        padding: 12px;
    }

    .login-form-container input[type="text"],
    .login-form-container input[type="password"] {
        font-size: 14px;
        padding: 10px;
    }
}


.small-button {
    background-color: #0044cc;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.small-button:hover {
    background-color: #003399;
}

/* Main Menu Styling */
#main-menu {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: rgba(0, 0, 0, 0.75);
    color: var(--text-color);
    box-shadow: 0px 1px 1px #000, 0px 4px 6px rgba(0,0,0,0.33);
    position: fixed;
    top: 0;
    z-index: 100;
}

#main-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center; /* Vertically align the items */
    justify-content: center; /* Center them horizontally */
}

#main-menu ul li {
    padding: 0 1em;
    display: flex;
    align-items: center; /* Ensure the text inside each `li` is vertically centered */
    border-right: 1px solid rgba(0,0,0,0.5);
}

#main-menu ul li:last-child {
    border-right: none;
}

#main-menu ul li a {
    text-decoration: none;
    color: var(--text-color);
    display: inline-block;
    height: 100%;
}


/* Link styling */
a {
    color: var(--text-color);
    text-decoration: none;
    text-shadow: 0px 1px 0px #000;
    transition: color 0.3s ease;
}
a:hover, a:focus {
    color: #e6e6e6;
}

/* Footer styling */

#footer {
    background-color: var(--primary-color);
    color: var(--text-dark);
    text-align: center;
    padding: 1.5rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.85);
    text-align: center;
    padding: 1em;
    border-top: 1px solid rgba(255,255,255,0.2);
}
#footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}
#footer ul li {
    padding: 0 1em;
}

@media only screen and (max-width: 680px) {
    #main-menu {
        flex-direction: column;
        height: auto;
    }

    #main-menu ul {
        flex-direction: column;
        width: 100%;
    }

    #main-menu ul li {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2); /* Add a separator between items */
        padding: 10px 0; /* Adjust padding for mobile */
        width: 100%;
        text-align: center;
    }

    #main-menu ul li:last-child {
        border-bottom: none;
    }

    #main-menu ul li a {
        padding: 10px 0; /* Adjust padding for mobile */
        width: 100%;
    }

    #footer {
        position: relative;
        padding-top: 0.5em;
        padding-bottom: 0.5em;
    }
}


/* Navigation Bar Styles 
#main-menu {
    margin: 0 auto;
    height: 32px;
    width: 100%;
    line-height: 32px;
    border: 1px solid #fff;
    background: royalblue;
    color: #fff;
    box-shadow: 0px 1px 1px #000, 0px 4px 6px rgba(0,0,0,0.33);
    overflow: hidden;
}

#main-menu ul { 
    margin: 0;
    padding: 0;
    list-style: none;
}

#main-menu li { 
    float: left;
    border-left: 1px solid #fff;
    border-right: 1px solid rgba(0,0,0,0.5);
}

#main-menu li:first-child {
    border-left: none;
}

#main-menu li:last-child {
    border-right: none;
}*/

#main-menu a {
    display: block;
    padding: 4px;
    color: inherit;
    text-shadow: 0px 1px 0px rgba(0,0,0,0.5);
    text-decoration: none;
}

a {
    color: #fff;
    text-shadow: 0px 1px 0px #000;
}

/*container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    place-items: center;
    height: 100vh; 
    width: 100%;
}*/

/*main {
    max-width: 1200px;
    transform: translateX(50%);
}*/

/* Newsletter Signup Styling */
.newsletter-signup {
    display: grid;
    grid-column: 1 / -1; /* Full width */
    background: #f4f4f4;
    padding: 20px;
    border-radius: 5px;
    /* additional styling */
}

.newsletter-container {
    background: #f4e8c1; /* Parchment-like background */
    border: 1px solid #8a6d3b;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin: 2em auto;
    font-family: 'Times New Roman', Times, serif;
    width: 500px;
}

.newsletter-container h2 {
    color: #6b3a00;
    font-family: 'Ignacious', serif; /* Medieval font */
}

.newsletter-container p {
    color: #6b3a00;
}

#newsletter-form {
    margin-top: 15px;
}

#newsletter-form input[type="email"] {
    border: 1px solid #8a6d3b;
    background: #a5854e;
    padding: 8px;
    border-radius: 5px;
    width: 70%;
    color: white;
    font-family: 'Times New Roman', Times, serif;
}

#newsletter-form input[type="email"]::placeholder {
    color:white;
}

#newsletter-form button {
    background-color: #8a6d3b;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Times New Roman', Times, serif;
}

#newsletter-form button:hover {
    background-color: #6b3a00;
}

/* CSS animation */
#newsletter-form button:focus {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}




/*
.main {
    width:70vw;
    max-height: 70vh;
    transform: translate(-50%, -50%);
    overflow-y: auto;
    margin:0 auto;
    background: rgba(0,0,0,0.85);
    border: 1px solid #000;
    padding: 32px;
    border-radius: 6px;
}
*/

.main p {
    margin:1em;
}

#action-input {
    display: flex;
    justify-content: center;
}



.login {
    width: 300px!important;
}

#logout-button {
    border-left: 2px solid rgba(0,0,0,0.5), 1px solid #fff;
    padding-right:8px;
}

#login-button a {
    text-decoration: none;
}

.blueglow {
    text-shadow: 0px 0px 6px royalblue;
}

.goldglow {
    text-shadow: 0px 0px 6px gold;
}

.hamburger { display:none; }

.main-menu-items { display: block; }

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
}

.mobile-menu-label {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.search-alphabet {
    list-style: none;
}

.search-alphabet li {
    display: inline-block;
    margin: 6px;
}

.arena-item {
    width:250px;
    float: left;
    padding: 12px;
    margin: 12px;
}

.wardrobe-menu {
    width:100%;
}

.wardrobe-menu ul {
    list-style:none;
    margin-left: 0;
}

.wardrobe-menu li {
    background:#696969;
    border:1px solid white;
    float: left;
    display: block;
}

.gold-count {
    color: gold!important;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0px 1px 0px #000!important;
    padding-left: 6px;
    padding-right: 6px;
}

/* MAP */
.legend {
    background: rgba(0,0,0,0.5);
    font-size: 16px;
    text-shadow: 0px 1px 0px #000;
    border-radius: 3px;
    border:1px solid goldenrod;
    width:30%;
    padding: 8px;
    margin: 8px;
    float: left;
}

.legend h2 {
    color:goldenrod;
    text-shadow: 0px 1px 0px #000;
    text-align:center;
}

.legend ul {
    list-style: none;
}

.legend a {
    text-decoration: none;
}

.right-menu {
    list-style: none;
}

.right-menu li {
    display: inline;
}

.right-menu li a {
    color:#fff;
    text-shadow: 0px 1px 0px rgba(0,0,0,0.5);
    text-decoration: none;
    padding-left: 4px;
    padding-right: 4px;
}

.item-category {
    list-style:none;
}

.item-category li {
    display: inline;
}

.mini-button {
    background: rgba(0,0,0,0.75);
    border:1px solid #fff;
    border-radius:3px;
    padding:2px 6px 2px 6px;
    text-decoration: none;
}
.small-button {
    border-radius: 3px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    margin-bottom: 6px;
    text-decoration: none;
    line-height: 100%;
    display: inline-block;
    width: fit-content;
    font-size: 18px;
    cursor: pointer;
    text-shadow: 0px 1px 0px #000;
    border: 1px solid #fff;
    padding: 4px;
}

.small-button a {
    text-decoration: none;
}

.adventure-box {
    width:100%;
    min-height:400px;
    background:#000;
    border:1px solid #fff;
    border-radius:4px; color:#fff;
    padding:12px;
    overflow-y:scroll;
}

.chrome {
    background: rgb(9,51,121)!important;
    background: linear-gradient(0deg, rgba(9,51,121,1) 0%, rgba(32,107,233,1) 44%, rgba(118,169,255,1) 44%, rgba(9,51,121,1) 100%)!important;
    border:2px solid rgba(100%,100%,100%,0.25)!important;
}

.brown-gradient {
    background: rgb(107,78,15)!important;
    background: linear-gradient(0deg, rgba(107,78,15,1) 0%, rgba(189,133,15,1) 100%)!important;
    border:2px solid #f2af23!important;
}

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.85);
    width:100%;
    color:#fff;
    margin-top:1em;
    text-align: center;
    padding-top: 1em;
    padding-bottom: 1em;
}

#footer a {
    color:#fff;
    text-shadow:0px 1px 0px rgba(0,0,0,0.5);
    text-decoration: none;
}


#footer ul li {
    vertical-align: middle;
    display:inline-block;
}

textarea, input, select {
    background:rgba(0,0,0,0.75);
    padding:16px;
    color:#fff;
    text-shadow: 0px 1px 0px #000;
    border:1px solid #fff;
    margin: 6px;
}

textarea {
    width:96%;
    min-height: 250px;
}

button, input[type=submit], .button {
    border-radius: 6px;
    background:rgba(0,0,0,0.75);
    padding:16px;
    color:#fff;
    margin: 6px;
    border:0px;
    text-decoration: none;
    line-height: 100%;
    display: inline-block;
    width: fit-content;
    font-size: 18px;
    cursor: pointer;
    text-shadow: 0px 1px 0px #000;
}

.button a {
    text-decoration: none;
}

#chatlog {
    box-sizing: border-box;
    height: 88vh;
    position: relative;
    min-width: 700px;
    max-width: 90%;
    margin: 10px auto;
    background-color: transparent;
    overflow: auto;
    border: 1px outset #000;
    border-radius: 6px;
    padding: 12px;
    background: rgba(0,0,0,0.1);
}

.adventurelog {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-size: cover;
}

h3 {
    text-align: center;
}

hr {
    width: 80%;
    color: green;
    margin-left: 0;
}

/* Pages */
.event-manager {
    max-width: fit-content!important;
}

.event-manager>container {
    grid-template-columns: none;
}
.events-calendar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3em;
}

.event {
    position: relative;
    border-radius: 6px;
    margin: 20px 0;
    padding: 20px 20px 20px 140px; /* Adjust left padding to make space for the image */
    width: 80%;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.6);
    cursor: pointer;
}

.hidden {
    display: none;
}

figure {
    position: absolute;
    top: 10px;
    left: 10px;
    margin: 0;
    width: 120px; /* Fixed width for images */
    height: 120px; /* Fixed height for images */
    overflow: hidden;
    border-radius: 50%;
}

figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

figure:hover img {
    transform: scale(1.1); /* Slight zoom on hover */
}

figcaption {
    margin-top: 130px; /* Adjust based on the size of the image */
    font-size: 14px;
    text-align: center;
}


/*figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}*/

img {
    width: 100px; /* Adjust size as needed */
    height: auto;
}

figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
}


.user_name {
    color: rgb(16, 45, 178);
}

.bot_name {
    color: rgb(204, 0, 0);
}

.leftside {
    text-align: right;
    float: left;
    width: 48%;
}

.rightside {
    text-align: left;
    float: right;
    width: 48%;
}

.centerthis {
    width: 90%;
}

#chatdiv {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.userTitle {
    color: rgb(77, 38, 204);
    font-weight: bold;
    text-shadow:0px 1px 0px #000;
}

.botTitle {
    color: rgb(61, 176, 23);
    font-weight: bold;
    text-shadow:0px 1px 0px #000;
}

#sbBot_id {
    margin-right: 35px;
}

.botsay {
    overflow: auto;
    color: red;
    font-weight: bold;
    height: 100%;
    width: 100%;
    max-height: 100px;
}

.usersay {
    overflow: auto;
    max-height: 150px;
    color: green;
    font-weight: bold;
}

.center {
    margin: 0 auto;
    width: 450px;
}

.clear {
    clear: both;
}

.triangle-border, .triangle-border-right {
    padding: 5px;
    margin: 0.5em 0 1em;
    color: #333;
    background: #fff;
    /* css3 */
    border: 5px solid #5a8f00;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

.blue {
    border: 5px solid lightblue;
}

.orange {
    border: 5px solid orange;
}

.triangle-border.left {
    margin-left: 3px;
}


.triangle-border-right {
    margin-right: 3px;
}

.triangle-border:before, .triangle-border-right:before {
    content: "";
    position: absolute;
    bottom: -20px; /* value = - border-top-width - border-bottom-width */
    left: 40px; /* controls horizontal position */
    border-width: 20px 20px 0;
    border-style: solid;
    border-color: #000 transparent;
    /* reduce the damage in FF3.0 */
    display: block;
    width: 0;
}

.triangle-border-right:before {
    left: auto;
    right: 40px;
}

.blue:before {
    border-color: lightblue transparent;
}

.orange:before {
    border-color: orange transparent;
}

/* creates the smaller  triangle */
.triangle-border:after, .triangle-border-right:after {
    content: "";
    position: absolute;
    bottom: -13px; /* value = - border-top-width - border-bottom-width */
    left: 47px; /* value = (:before left) + (:before border-left) - (:after border-left) */
    border-width: 13px 13px 0;
    border-style: solid;
    border-color: #fff transparent;
    /* reduce the damage in FF3.0 */
    display: block;
    width: 0;
}

.triangle-border-right:after {
    left: auto;
    right: 47px;
}

h3 {
    text-align: center;
}

hr {
    width: 80%;
    color: green;
    margin-left: 0;
}

.user_name {
    color: rgb(16, 45, 178);
}

.bot_name {
    color: rgb(204, 0, 0);
}

#urlwarning {
    right: auto;
    left: 10px;
    width: 50%;
    font-size: large;
    font-weight: bold;
    background-color: white;
}

.leftside {
    text-align: right;
    float: left;
    width: 48%;
}

.rightside {
    text-align: left;
    float: right;
    width: 48%;
}

.centerthis {
    width: 90%;
}

#chatdiv {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

p.center {
    text-align: center;
}

hr.center {
    margin: 0 auto;
}

#convo_id {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 1px solid red;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-shadow: 2px 2px 2px 0 #808080;
    padding: 5px;
    border-radius: 5px;
}

hr.thick {
    border-bottom: 3px solid black;
    box-shadow: 3px 3px 8px -1px #696969;
    margin: 1.5em auto;
}

.m0a {
    margin: 0 auto;
}
#conversation {
    border: 1px solid black;
    border-radius: 1em;
    padding: 1em;
    margin: 0.5em auto;
    min-height: 4em;
    max-height: 20em; /* Adjust this as you see fit. */
    overflow: auto;
}

.input {
    color: #B22222;
    font-weight: bold;
    margin: 6px;
    padding: 6px;
}

.response {
    color: #0000CD;
    font-weight: bold;
}

.blog-header {
    padding:1em;
    background-image: url('/images/magicsmoke_bg.jpg');
    background-size: cover;
    color:#fff;
    text-shadow: 0px 1px 0px #000;
    border:1px solid #000;
}

#roadmap {
    border-radius:8px;
    color:#000;
    padding:2em;
    background:rgba(100%,100%,100%,0.9);
}

.house {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
}

.furniture-inventory {
    display: flex;
    flex-wrap: wrap;
}

.furniture-item {
    margin: 5px;
    text-align: center;
}

.furniture-item img {
    max-width: 100px;
    max-height: 100px;
}


/* Visual Effects */
@property --rotate {
    syntax: "<angle>";
    initial-value: 132deg;
    inherits: false;
  }
  
  :root {
    --card-height: 65vh;
    --card-width: calc(var(--card-height) / 1.5);
  }
  
  
  .cardbody {
    min-height: 100vh;
    background: #212534;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-top: 2rem;
    padding-bottom: 2rem;
    box-sizing: border-box;
  }
  
  
  .card {
    background: #191c29;
    width: var(--card-width);
    height: var(--card-height);
    padding: 3px;
    position: relative;
    border-radius: 6px;
    justify-content: center;
    align-items: center;
    text-align: center;
    display: flex;
    font-size: 1.5em;
    color: rgb(88 199 250 / 0%);
    cursor: pointer;
    font-family: cursive;
  }
  
  .card:hover {
    color: rgb(88 199 250 / 100%);
    transition: color 1s;
  }
  .card:hover:before, .card:hover:after {
    animation: none;
    opacity: 0;
  }
  
  
  .card::before {
    content: "";
    width: 104%;
    height: 102%;
    border-radius: 8px;
    background-image: linear-gradient(
      var(--rotate)
      , #5ddcff, #3c67e3 43%, #4e00c2);
      position: absolute;
      z-index: -1;
      top: -1%;
      left: -2%;
      animation: spin 2.5s linear infinite;
  }
  
  .card::after {
    position: absolute;
    content: "";
    top: calc(var(--card-height) / 6);
    left: 0;
    right: 0;
    z-index: -1;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    transform: scale(0.8);
    filter: blur(calc(var(--card-height) / 6));
    background-image: linear-gradient(
      var(--rotate)
      , #5ddcff, #3c67e3 43%, #4e00c2);
      opacity: 1;
    transition: opacity .5s;
    animation: spin 2.5s linear infinite;
  }
  
  @keyframes spin {
    0% {
      --rotate: 0deg;
    }
    100% {
      --rotate: 360deg;
    }
  }
        
.citybg {
    background:url('/images/MegaMathScroll.jpg');
    width:100%;
    height:100%;
    z-index: -212000;
    position: fixed;
    top:0;
    bottom:0;
    right:0;
    left:0;
    background-size: cover;
}

.boardbg {
    background:url('/images/newtile.jpg');
    width:100%;
    height:100%;
    z-index: -212000;
    position: fixed;
    top:32px;
    bottom:0;
    right:0;
    left:0;
    background-repeat: repeat;
    background-size: 25%;
}

.dungeonbg {
    background:url('/images/DungeonScroll.jpg');
    width:100%;
    height:100%;
    z-index: -212000;
    position: fixed;
    top:0;
    bottom:0;
    right:0;
    left:0;
    background-size: cover;
}

.docksbg {
    background:url('/images/DocksScroll.jpg');
    width:100%;
    height:100%;
    z-index: -212000;
    position: fixed;
    top:0;
    bottom:0;
    right:0;
    left:0;
    background-size: cover;
}


.labyrinthbg {
    background:url('/images/LabyrinthScroll.jpg');
    width:100%;
    height:100%;
    z-index: -212000;
    position: fixed;
    top:0;
    bottom:0;
    right:0;
    left:0;
    background-size: cover;
}

.adventurebg {
    background:url('/images/LabyrinthScroll.jpg');
    width:100%;
    height:100%;
    z-index: -212000;
    position: fixed;
    top:0;
    bottom:0;
    right:0;
    left:0;
    background-size: cover;
}

.magicsmokebg {
    background:url('/images/magicsmoke_bg.jpg');
    width:100%;
    height:100%;
    z-index: -212000;
    position: fixed;
    top:0;
    bottom:0;
    right:0;
    left:0;
    background-size: cover;
}

.guildcastlebg {
    background:url('/images/guildcastle_bg.jpg');
    width:100%;
    height:100%;
    z-index: -212000;
    position: fixed;
    top:0;
    bottom:0;
    right:0;
    left:0;
    background-size: cover;
}

.guildcastlenightbg {
    background:url('/images/guildcastlenight_bg.jpg');
    width:100%;
    height:100%;
    z-index: -212000;
    position: fixed;
    top:0;
    bottom:0;
    right:0;
    left:0;
    background-size: cover;
}

.citybg, .docksbg, .guildcastlebg, .labyrinthbg, .dungeonbg {
    background-size: cover;
    background-position: center;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: -212000;
}

.panel-tiled-bg {
    background-image: url('/images/panel-tile.png');
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -10000;
}


.landscapebg {
    filter: blur(1px);
    background:url('/images/landscapebg.jpg');
    background-size: cover;
    background-position: bottom center;
    min-height:100px;
    width:100%;
    box-shadow:0px 1px 0px rgba(100%,100%,100%,0.35);
    position:absolute;
    top:0;
    z-index:-100002;
}

.nightskybg {
    filter: blur(1px);
    background:url('/images/morning-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height:100px;
    width:100%;
    box-shadow:0px 1px 0px rgba(100%,100%,100%,0.35);
    position:absolute;
    top:0;
    z-index:-100002;
}

.dayskybg {
    filter: blur(1px);
    background:url('/images/aura-sky-day.png');
    background-size: cover;
    background-position: bottom center;
    min-height:100px;
    width:100%;
    box-shadow:0px 1px 0px rgba(100%,100%,100%,0.35);
    position:absolute;
    top:0;
    z-index:-100002;
}

.daysky2bg {
    filter: blur(1px);
    background:url('/images/aura-sky-day.png');
    background-size: cover;
    background-position: top center;
    min-height:100px;
    width:100%;
    box-shadow:0px 1px 0px rgba(100%,100%,100%,0.35);
    position:absolute;
    top:0;
    z-index:-100002;
}

.daysky3bg {
    filter: blur(1px);
    background:url('/images/aura-sky-day.png');
    background-size: cover;
    background-position: center center;
    min-height:100px;
    width:100%;
    box-shadow:0px 1px 0px rgba(100%,100%,100%,0.35);
    position:absolute;
    top:0;
    z-index:-100002;
}

#cookie-message {
    position: absolute;
    bottom: 4em;
    left: 0;
    right: 0;
}

/* CSS Variables for Theme Colors */
:root {
    --primary-color: #ff4757;
    --secondary-color: #1e90ff;
    --dark-bg: #2f3640;
    --light-bg: #f5f6fa;
    --text-light: #2d3436;
    --text-dark: #ffffff;
    --button-bg: #ff6348;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-light);
    line-height: 1.6;
}

/* Links and Buttons */
a {
    text-decoration: none;
    color: var(--primary-color);
}

button {
    background-color: var(--button-bg);
    color: var(--text-dark);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: var(--primary-color);
}

/* Header Styles */
.site-header {
    background-color: var(--primary-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style-type: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 3rem;
    color: var(--text-dark);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    margin-bottom: 1.5rem;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* Blog Section */
.blog-section {
    padding: 2rem;
    background-color: var(--light-bg);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-grid article {
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Guild Section */
.guild-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 2rem;
}

.guild-card {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Footer Section */
.site-footer {
    background-color: var(--primary-color);
    padding: 1rem;
    text-align: center;
    color: var(--text-dark);
}

/* Responsive Layout for Mobile */
@media only screen and (max-width: 768px) {
    .hero-section, .blog-section, .guild-grid, .post-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-direction: column;
    }

    .login-container, .newsletter-container, .guild-list {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
}



@media only screen and (max-width: 680px) {

    #container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        position: relative;
    }

    #main {
        width:95%;
        max-height: none;
        padding: 16px;
    }

    #main-menu {
        position: relative;
        height: auto;
        width:95%;
        min-height: 3.5rem;
        align-items: stretch;
        padding-top: 0;
    }

    #main-menu.is-collapsed {
        align-items: stretch;
    }

    #main-menu.is-collapsed > ul,
    #main-menu.is-collapsed #logout-button .right-menu {
        width: 100%;
    }

    #main-menu.is-collapsed > ul[hidden],
    #main-menu.is-collapsed #logout-button .right-menu[hidden] {
        display: none !important;
    }

    #main-menu ul li {
        float: none;
        display:block;
        padding-top: 0;
        padding-bottom: 0;
        border-left:0px;
        border-right:0px;
        border-top:1px solid #000;
        border-bottom:1px solid #fff;
    }

    #main-menu ul li:last-child {
        border-bottom: 1px solid #000;
    }

    #main-menu ul li a,
    .right-menu li a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 3rem;
        padding: 0.75rem 1rem;
        text-align: center;
    }

    #logout-button {
        width: 100%;
        border-left: 0;
        padding-right: 0;
    }

    .right-menu li {
        border-top: 1px solid #000;
        border-bottom: 1px solid #fff;
    }

    #mobile-menu {
        width:100%;
        top: 0;
        min-height: 3.5rem;
        position: relative;
        display: flex;
        padding: 0.85rem 1rem;
        background: rgba(255, 255, 255, 0.03);
        border-bottom: 1px solid rgba(255,255,255,0.14);
    }

    .hamburger {
        position: static;
        display: block;
        width:1.1rem;
        height:1.1rem;
        filter: invert();
    }

    .hamburger img {
        display: block;
        width: 100%;
        height: 100%;
    }

    .login {
        width: 100%;
    }

    #roadmap {
        padding:1em;
    }

    #footer {
        position: relative;
        padding-bottom:1em;
        padding-top:0.5em;
        border-top:1px solid rgba(100%,100%,100%,0.5);
    }

    #footer ul li {
        display:block;
        padding:6px;
    }

    .newsletter-container {
        width: 80%;
    }


}

/* Profile Page Styles */
body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--background-color);
    color: var(--text-light);
}

.profile-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Avatar and Header Section */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

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

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.avatar-section h1 {
    font-size: 2rem;
    color: var(--primary-color);
}

.guild-info a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Stats and Social Actions */
.stats-social {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.stats-social h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stats-social ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 2rem;
}

.stats-social li {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Social Actions */
.social-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--button-color);
}

/* Event Participation Section */
.event-participation {
    margin-bottom: 3rem;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.event-item {
    text-align: center;
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-item h3 {
    margin-bottom: 1rem;
}

.event-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Recent Activity Feed */
.activity-feed {
    background-color: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 10px;
    color: var(--text-dark);
}

.activity-feed ul {
    list-style-type: none;
    padding: 0;
}

.activity-feed li {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.activity-feed strong {
    color: var(--primary-color);
}

/* Legacy fullscreen shell intentionally disabled.
   The modern portal layout manages body, header, and footer flow. */
/*
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Nunito', sans-serif;
    background-image: url('/images/textures/parchment_bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/textures/parallax_stars.png');
    background-size: cover;
    background-attachment: fixed;
    z-index: -1;
    opacity: 0.3;
}
*/

/* Legacy header/footer shell intentionally disabled.
   Modern pages use dedicated `.site-header`, `#main-menu`, and `#footer` rules. */
/*
header, footer {
    position: fixed;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 10;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    font-family: 'FinalFantasyFont', sans-serif;
}

header {
    top: 0;
}

footer {
    bottom: 0;
}
*/

/* Input Fields */
.login-form-container input[type="email"],
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 4px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.7);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 16px;
    font-family: 'Nunito', sans-serif;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.login-container {
    color: #fff;
}

.login-links {
    margin-top: 1em;
}

.login-links a {
    color:#fff;
}

/* Buttons */
.login-container button {
    width: 100%;
    margin: 0px;
    padding: 8px;
    border-radius: 8px;
    border: none;
    background-color: #ff4500; /* Bright, eye-catching color like FFXII's buttons */
    color: white;
    font-size: 18px;
    font-family: 'FinalFantasyFont', sans-serif;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.login-container button:hover {
    background-color: #ff6347;
}

button:hover, .login-container input:focus {
    box-shadow: 0px 0px 12px rgba(255, 255, 0, 0.8);
}

.login-container {
    display: grid;
    height: 100vh;
    place-items: center;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .login-container {
        width: 95%;
        padding: 20px;
        margin: auto;
    }

    /*
    header, footer {
        font-size: 14px;
        padding: 10px;
    }
    */
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


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

.login-box h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.login-options {
    margin-top: 1.5rem;
}

.login-options a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-options a:hover {
    color: var(--secondary-color);
}

/* Error Message Styling */
.error-message {
    color: red;
    margin-top: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .login-container {
        width: 90%;
        padding: 1.5rem;
    }
    
    .footer {
        display: none;
    }
}

.checkmark {
    color: var(--text-dark);
    font-size: 1.5rem;
}

button {
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--button-color);
}

/* Reward Message */
#errorMessage {
    margin-top: 1rem;
    color: red;
}
/* Portal Container Styling */
.portal-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 1.5rem;
    /*background-color: var(--light-bg);*/
    /*border-radius: 10px;*/
    text-align: center;
    overflow-y: scroll;
    height: 70vh;
}

.portal-container h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.portal-container p {
    margin-bottom: 2rem;
}

/* Navigation Buttons */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

nav a.button {
    padding: 0.8rem 1.2rem;
    color: var(--text-dark);
    background-color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a.button:hover {
    background-color: var(--button-color);
}

/* Newsletter Section */
.newsletter-container form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.newsletter-container form input, .newsletter-container form button {
    padding: 0.8rem;
    border-radius: var(--border-radius);
    width: 100%;
}

.newsletter-container form button:hover {
    background-color: var(--button-bg);
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    .newsletter-container form input, .newsletter-container form button {
        width: 100%;
        margin-bottom: 1rem;
    }
}
/* Guild Page Styles */
.panel {
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    margin: 4rem auto;
    max-width: 900px;
}

.guild-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.guild-button {
    display: block;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: var(--text-dark);
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.guild-button:hover {
    background-color: var(--button-color);
}

.guild-messages {
    margin-top: 1.5rem;
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.guild-message {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.quests {
    margin-top: 1rem;
    padding: 0.8rem;
    background-color: var(--secondary-bg);
    border-radius: 5px;
}
button, .button {
    background-color: var(--button-bg);
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-shadow: 0px 1px 0px #000;
}

button:hover, .button:hover {
    background-color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e6e6e6;
}



/* Scrollbar Styling */
body {
    scrollbar-width: thin;
    scrollbar-color: gold slategrey;
}

body::-webkit-scrollbar {
    width: 1em;
}

body::-webkit-scrollbar-track {
    background: slategrey;
}

body::-webkit-scrollbar-thumb {
    background-color: gold;
    outline: 1px solid goldenrod;
}

/* Accessibility Focus Indicators */
button:focus, a:focus, input:focus, textarea:focus, select:focus {
    outline: var(--focus-outline);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Global Link and Button Styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #e6e6e6;
    outline: none;
}

button, .button {
    background-color: var(--button-bg);
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, .button:hover {
    background-color: var(--primary-color);
}



/* Layout Containers */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

.main {
    max-width: 80vw;
    max-height: 80vh;
    margin: auto;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #000;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow-y: auto;
}

/* Header and Navigation */
.site-header {
    background-color: var(--primary-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 3rem;
    color: var(--text-dark);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* Blog Section */
.blog-section {
    padding: 2rem;
    background-color: var(--light-bg);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-grid article {
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Newsletter Signup */
.newsletter-container h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.newsletter-container form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.newsletter-container form input, .newsletter-container form button {
    padding: 0.8rem;
    border-radius: var(--border-radius);
}

/* Shop Page */
.shop-container {
    padding: 2rem;
    background-color: var(--light-bg);
    text-align: center;
}

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

.shop-item {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.shop-item img {
    max-width: 150px;
    margin-bottom: 1rem;
}

.shop-item button {
    background-color: var(--button-bg);
    color: var(--text-dark);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease;
}

.shop-item button:hover {
    background-color: var(--primary-color);
}

/* World Map */
.map-container {
    background-color: var(--dark-bg);
    position: relative;
    margin-top: 2rem;
    height: 500px;
    width: 100%;
    border: 2px solid #fff;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.map-info {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-dark);
}

/* Leaderboards */
.leaderboard-container {
    padding: 2rem;
    background-color: var(--dark-bg);
    color: var(--text-dark);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th, .leaderboard-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table th {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.leaderboard-table td {
    background-color: var(--light-bg);
}

.leaderboard-table tr:nth-child(even) {
    background-color: var(--secondary-color);
}

/* Guild Pages */
.guild-page {
    padding: 2rem;
    background-color: var(--light-bg);
    text-align: center;
}

.guild-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.guild-card {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.guild-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

.guild-card button {
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

/* Event Pages */
.event-page {
    padding: 2rem;
    background-color: var(--light-bg);
    text-align: center;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.event-card {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.event-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

.event-card button {
    background-color: var(--button-bg);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

/* Chat Room */
.chat-container {
    background-color: var(--dark-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
}

.chat-box {
    height: 300px;
    width: 100%;
    overflow-y: scroll;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.chat-input {
    width: 100%;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    padding: 1rem;
    text-align: center;
    color: var(--text-dark);
}

/* Responsive Layout */
@media (max-width: 768px) {
    .hero-section, .nav-links, .footer ul, .blog-section, .guild-grid, .leaderboard-container {
        flex-direction: column;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .newsletter-container form input, .newsletter-container form button {
        width: 100%;
        margin-bottom: 1rem;
    }

    nav {
        flex-direction: column;
    }
}
/* Base Styles */
body {
    font-family: 'Garamond', 'Times New Roman', serif;
    background-color: #e5dac4;
    color: #3e2816;
}

a {
    color: #1e75bd;
    text-decoration: none;
}

a:hover {
    color: #d36f1e;
}

/* Mail System Styles */
.mail-header {
    position: relative;
    margin: 32px 0;
    padding: 16px;
    background-color: #e9d5b2;
    border: 4px solid #7b603e;
    border-radius: 8px;
    text-align: center;
}

.mail-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mail-icon {
    width: 48px;
    vertical-align: middle;
    margin-right: 8px;
}

.mail-location {
    position: absolute;
    right: 32px;
    top: 16px;
    padding: 8px;
    font-size: 16px;
    background-color: #f9f3e4;
    border: 2px solid #7b603e;
    border-radius: 4px;
}

/* Table Styles */
.mail-inbox {
    width: 100%;
    background-color: #4f3e23;
    border: 2px solid #7b603e;
    border-spacing: 0;
    margin: 32px 0;
    border-radius: 8px;
}

.mail-inbox thead th {
    padding: 12px;
    font-size: 18px;
    background-color: #d3b595;
    color: #3e2816;
    border-bottom: 2px solid #7b603e;
}

.mail-inbox tbody td {
    padding: 12px;
    background-color: #5b4630;
    color: #f4e4c3;
    border-bottom: 1px solid #7b603e;
}

.mail-inbox tbody tr:hover {
    background-color: #6d5740;
}

.mail-action {
    padding: 8px 12px;
    background-color: #af7f46;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.mail-action:hover {
    background-color: #d36f1e;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mail-location {
        position: static;
        display: block;
        margin: 16px auto;
        text-align: center;
    }

    .mail-header {
        padding: 8px;
    }

    .mail-title {
        font-size: 18px;
    }

    .mail-inbox thead th, .mail-inbox tbody td {
        font-size: 14px;
    }
}

/* Additional styling for character select message */
.select-character-message {
    font-size: 18px;
    margin-top: 50px;
    text-align: center;
}
/* Base Styles */
body {
    font-family: 'Garamond', 'Times New Roman', serif;
    background-color: #1e1e1e;
    color: #d3cfc4;
    margin: 0;
    padding: 0;
}

a {
    color: #88c0d0;
    text-decoration: none;
}

a:hover {
    color: #a3be8c;
}

/* Mail Header */
.mail-header {
    text-align: center;
    margin-top: 32px;
    padding: 16px;
    background-color: #2e2e2e;
    border-bottom: 2px solid #3a3a3a;
}

.mail-title {
    font-size: 32px;
    font-weight: bold;
    color: #ececec;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mail-icon {
    width: 48px;
    margin-right: 8px;
}

.mail-tabs {
    margin-top: 16px;
}

.mail-tab {
    background-color: #444;
    color: #d3cfc4;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    margin-right: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mail-tab:hover {
    background-color: #585858;
}

/* Mail Stats Section */
.mail-stats {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    margin: 32px auto;
    max-width: 800px;
}

.mail-summary, .character-info {
    width: 48%;
}

.mail-summary p, .character-info p {
    margin: 8px 0;
}

/* Mail Table */
.mail-inbox {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #3a3a3a;
    border-collapse: collapse;
    margin-top: 32px;
    color: #d3cfc4;
}

.mail-inbox thead {
    background-color: #2a2a2a;
}

.mail-inbox th {
    padding: 16px;
    text-align: left;
    border-bottom: 2px solid #444;
}

.mail-inbox td {
    padding: 12px;
    border-bottom: 1px solid #444;
}

.mail-inbox tr.unread {
    font-weight: bold;
    color: #ececec;
}

.mail-inbox tr.read {
    color: #bfbfbf;
}

.mail-inbox tr:hover {
    background-color: #444;
}

/* Mail Action Buttons */
.mail-action {
    background-color: #3a6ea5;
    color: #ececec;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.mail-action:hover {
    background-color: #5f9ed6;
}

.mail-action.discard {
    background-color: #bf616a;
}

.mail-action.discard:hover {
    background-color: #d08770;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mail-stats {
        flex-direction: column;
        text-align: center;
    }

    .mail-summary, .character-info {
        width: 100%;
    }

    .mail-inbox th, .mail-inbox td {
        padding: 8px;
    }

    .mail-tab {
        display: block;
        margin-bottom: 8px;
    }
}
.cta-section {
    text-align: center;
    margin: 40px 0;
}

.cta-section h2 {
    font-size: 2em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--background-primary);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #52d4b3;
}

.astrology-bg {
    background-image: url('/assets/astrology_bg_redmoon_ph.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top:0;
    left:0;
}

.horoscope-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-areas:
        "header"
        "main"
        "footer";
    grid-gap: 20px;
}

.horoscope-header {
    grid-area: header;
}

.horoscope-main {
    grid-area: main;
}

.horoscope-footer {
    grid-area: footer;
}

.header-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: var(--background-secondary);
    padding: 20px;
    border-radius: 10px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    margin: 10px 15px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: var(--nav-link-hover);
}

.horoscope-panel {
    background-color: var(--background-secondary);
    padding: 30px;
    border-radius: 10px;
}

.horoscope-panel h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5em;
    color: var(--accent-color);
}

.horoscope-panel p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.zodiac-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.zodiac-nav .nav-link {
    margin: 10px;
    padding: 15px;
    background-color: var(--hover-color);
    font-size: 1.2em;
    text-align: center;
    width: 100px;
    transition: transform 0.3s ease;
}

.zodiac-nav .nav-link:hover {
    transform: translateY(-5px);
    background-color: var(--nav-link-hover);
}

@media screen and (max-width: 768px) {
    .header-nav, .zodiac-nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-link, .zodiac-nav .nav-link {
        width: 80%;
    }
}

.fountain-bg {
    background-image: url('/images/fountain-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top:0;
    left:0;
}

/* 2026 game-surface uplift
   Scoped to content areas so header/footer chrome stays intact. */
:root {
    --game-ink: #f8f1d4;
    --game-muted: rgba(248, 241, 212, 0.7);
    --game-panel: rgba(10, 16, 24, 0.82);
    --game-panel-strong: rgba(12, 19, 29, 0.92);
    --game-panel-edge: rgba(212, 170, 70, 0.28);
    --game-panel-glow: rgba(255, 210, 96, 0.12);
    --game-accent: #d8aa4b;
    --game-accent-strong: #f4cf76;
    --game-danger: #b84f3d;
}

body {
    color: var(--game-ink);
    background:
        radial-gradient(circle at top, rgba(91, 129, 174, 0.16), transparent 28%),
        radial-gradient(circle at 20% 20%, rgba(216, 170, 75, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(5, 8, 13, 0.35), rgba(5, 8, 13, 0.72)),
        var(--background-color);
}

main[class]:not(#daily-login),
body > .portal-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(80vw, 1180px);
    min-height: 80vh;
    max-height: 80vh;
    margin: max(3em, 6vh) auto 2rem;
    padding: 1.25rem;
    overflow-x: hidden;
    overflow-y: auto;
}

main[class]:not(#daily-login)::before,
body > .portal-container::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

main[class]:not(#daily-login) > *,
body > .portal-container > * {
    position: relative;
    z-index: 1;
}

main[class]:not(#daily-login) > :is(.content, .dashboard-container, .inventory-page, .quests-page, .trade-hub, .crafting-page, .market-container, .storefront, .farm-container, .character-hub, .character-viewer, .character-select, .character-create, .page-container, .social-hub, .town-hub, .minigame-hub, .fishing-page, .world-map-container, .adventure-hub, .guilds-page, .party-page, .booking-page, .server-status-container, .wealth-container, .rumors-container, .news-container, .lottery-container, .glossary-main),
body > .portal-container > :is(.content, .dashboard-container, .inventory-page, .quests-page, .trade-hub, .crafting-page, .market-container, .storefront, .farm-container, .character-hub, .character-viewer, .character-select, .character-create, .page-container, .social-hub, .town-hub, .minigame-hub, .fishing-page, .world-map-container, .adventure-hub, .guilds-page, .party-page, .booking-page, .server-status-container, .wealth-container, .rumors-container, .news-container, .lottery-container, .glossary-main) {
    width: min(100%, 80vw);
    margin-left: auto;
    margin-right: auto;
}

main[class]:not(#daily-login) h1,
main[class]:not(#daily-login) h2,
main[class]:not(#daily-login) h3,
main[class]:not(#daily-login) h4,
body > .portal-container h1,
body > .portal-container h2,
body > .portal-container h3,
body > .portal-container h4 {
    color: var(--game-accent-strong);
    letter-spacing: 0.02em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

main[class]:not(#daily-login) p,
main[class]:not(#daily-login) li,
main[class]:not(#daily-login) label,
main[class]:not(#daily-login) span,
main[class]:not(#daily-login) small,
body > .portal-container p,
body > .portal-container li,
body > .portal-container label,
body > .portal-container span,
body > .portal-container small {
    color: var(--game-ink);
}

main[class]:not(#daily-login) :is(.panel, .card, .news-item, .guild-item, .status-item, .species-card, .stamp-card, .gym-stat-card, .town-panel, .minigame-panel, .quest-item, .crafting-item, .shop-item, .event-card, .seasonal-event-card, .achievement-card, .character-card),
body > .portal-container :is(.news-item, .guild-item, .status-item) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        rgba(9, 14, 21, 0.68);
    border: 1px solid rgba(216, 170, 75, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 10px 24px rgba(0, 0, 0, 0.2);
}

main[class]:not(#daily-login) :is(section, article, .server-status, .game-news, .events-container, .guild-highlights, .newsletter-container, .cta-section, .login-form-container, .login-container, .main-panel, .mail-content, .profile-container, .dashboard-container, .inventory-page, .quests-page, .trade-hub, .crafting-page, .market-container, .storefront, .farm-container, .character-hub, .character-viewer, .character-select, .character-create, .page-container, .social-hub, .town-hub, .minigame-hub, .fishing-page, .world-map-container, .adventure-hub, .guilds-page, .party-page, .booking-page, .server-status-container, .wealth-container, .rumors-container, .news-container, .lottery-container, .skills-grid, .spells-grid, .stamps-grid, .glossary-main),
body > .portal-container :is(section, article) {
    border-radius: 0.9rem;
}

main[class]:not(#daily-login) :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select),
body > .portal-container :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(216, 170, 75, 0.24);
    border-radius: 0.75rem;
    background: rgba(6, 10, 16, 0.72);
    color: var(--game-ink);
    box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.28);
}

main[class]:not(#daily-login) :is(input, textarea, select)::placeholder,
body > .portal-container :is(input, textarea, select)::placeholder {
    color: var(--game-muted);
}

main[class]:not(#daily-login) :is(button, input[type="submit"], input[type="button"], .button:not(.portal-link)),
body > .portal-container :is(button, input[type="submit"], input[type="button"], .button:not(.portal-link)) {
    border: 1px solid rgba(244, 207, 118, 0.3);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 223, 140, 0.22), rgba(163, 107, 21, 0.18)),
        linear-gradient(180deg, #544025, #2e2315);
    color: #fdf4de;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 18px rgba(0, 0, 0, 0.24);
    transition:
        transform 140ms ease,
        box-shadow 140ms ease,
        filter 140ms ease;
}

main[class]:not(#daily-login) :is(button, input[type="submit"], input[type="button"], .button:not(.portal-link)):hover,
body > .portal-container :is(button, input[type="submit"], input[type="button"], .button:not(.portal-link)):hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 12px 24px rgba(0, 0, 0, 0.3);
}

main[class]:not(#daily-login) a:not(#main-menu a):not(#footer a),
body > .portal-container a {
    color: var(--game-accent-strong);
    text-decoration-color: rgba(244, 207, 118, 0.45);
    text-underline-offset: 0.18em;
}

main[class]:not(#daily-login) a:not(#main-menu a):not(#footer a):hover,
body > .portal-container a:hover {
    color: #fff3c5;
}

main[class]:not(#daily-login) table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid rgba(216, 170, 75, 0.2);
    border-radius: 0.85rem;
    background: rgba(8, 12, 18, 0.6);
}

main[class]:not(#daily-login) th,
main[class]:not(#daily-login) td {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

main[class]:not(#daily-login) th {
    background: rgba(216, 170, 75, 0.12);
    color: var(--game-accent-strong);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
}

main[class]:not(#daily-login) tr:last-child td {
    border-bottom: 0;
}

main[class]:not(#daily-login) img,
body > .portal-container img {
    border-radius: 0.8rem;
}

main[class]:not(#daily-login) :is(.portal-links, .cta-buttons, .companion-actions, .social-actions, .adventure-actions) {
    gap: 0.85rem;
}

main.main-panel:not(#daily-login) > header,
body > .portal-container .main-panel > header {
    display: grid;
    gap: 0.45rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(216, 170, 75, 0.18);
}

main.main-panel:not(#daily-login) > header p,
body > .portal-container .main-panel > header p {
    margin: 0;
    color: var(--game-muted);
}

.main-log-feed,
.main-log-actions {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(216, 170, 75, 0.14);
    border-radius: 0.9rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18%),
        rgba(8, 13, 20, 0.56);
}

.main-log-feed {
    display: grid;
    gap: 0.8rem;
}

.main-log-feed p,
.main-log-actions p {
    margin: 0;
}

@media (max-width: 768px) {
    main[class]:not(#daily-login),
    body > .portal-container {
        width: calc(100vw - 1rem);
        min-height: auto;
        max-height: calc(100dvh - 8rem);
        margin: 3em auto 1.5rem;
        padding: 1rem 0.9rem;
        border-radius: 0.9rem;
    }

    main[class]:not(#daily-login) > :is(.content, .dashboard-container, .inventory-page, .quests-page, .trade-hub, .crafting-page, .market-container, .storefront, .farm-container, .character-hub, .character-viewer, .character-select, .character-create, .page-container, .social-hub, .town-hub, .minigame-hub, .fishing-page, .world-map-container, .adventure-hub, .guilds-page, .party-page, .booking-page, .server-status-container, .wealth-container, .rumors-container, .news-container, .lottery-container, .glossary-main),
    body > .portal-container > :is(.content, .dashboard-container, .inventory-page, .quests-page, .trade-hub, .crafting-page, .market-container, .storefront, .farm-container, .character-hub, .character-viewer, .character-select, .character-create, .page-container, .social-hub, .town-hub, .minigame-hub, .fishing-page, .world-map-container, .adventure-hub, .guilds-page, .party-page, .booking-page, .server-status-container, .wealth-container, .rumors-container, .news-container, .lottery-container, .glossary-main) {
        width: 100%;
    }

    .main-panel {
        width: calc(100vw - 1rem);
        min-height: auto;
        max-height: calc(100dvh - 8rem);
        margin: 3em auto 1.5rem;
        padding: 1rem 0.9rem;
    }

    main[class]:not(#daily-login) h1,
    body > .portal-container h1 {
        font-size: clamp(1.7rem, 6vw, 2.2rem);
        line-height: 1.15;
    }

    main[class]:not(#daily-login) h2,
    body > .portal-container h2 {
        font-size: clamp(1.2rem, 4.8vw, 1.55rem);
        line-height: 1.2;
    }

    main[class]:not(#daily-login) :is(section, article, .server-status, .game-news, .events-container, .guild-highlights, .newsletter-container, .cta-section, .login-form-container, .login-container, .main-panel, .mail-content, .profile-container, .dashboard-container, .inventory-page, .quests-page, .trade-hub, .crafting-page, .market-container, .storefront, .farm-container, .character-hub, .character-viewer, .character-select, .character-create, .page-container, .social-hub, .town-hub, .minigame-hub, .fishing-page, .world-map-container, .adventure-hub, .guilds-page, .party-page, .booking-page, .server-status-container, .wealth-container, .rumors-container, .news-container, .lottery-container, .skills-grid, .spells-grid, .stamps-grid, .glossary-main),
    body > .portal-container :is(section, article) {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    main[class]:not(#daily-login) :is(button, input[type="submit"], input[type="button"], .button:not(.portal-link)),
    body > .portal-container :is(button, input[type="submit"], input[type="button"], .button:not(.portal-link)) {
        min-height: 2.9rem;
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    main[class]:not(#daily-login) :is(.portal-links, .cta-buttons, .companion-actions, .social-actions, .adventure-actions),
    main[class]:not(#daily-login) :is(.character-actions, .golden-path-header, .fishing-controls__header, .fishing-journey, .fishing-collection),
    body > .portal-container :is(.portal-links, .cta-buttons) {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    main[class]:not(#daily-login) :is(.portal-links, .cta-buttons, .companion-actions, .social-actions, .adventure-actions) > *,
    main[class]:not(#daily-login) :is(.character-actions, .golden-path-header, .fishing-controls__header, .fishing-journey, .fishing-collection) > *,
    body > .portal-container :is(.portal-links, .cta-buttons) > * {
        width: 100%;
    }

    main[class]:not(#daily-login) :is(.town-grid, .golden-path-reminder-grid, .character-grid, .fishing-trip-plan__grid, .fishing-spots__grid, .fishing-field-guide__grid, .dashboard-live-stats),
    body > .portal-container :is(.town-grid, .golden-path-reminder-grid, .character-grid) {
        grid-template-columns: 1fr;
    }

    main[class]:not(#daily-login) table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    main[class]:not(#daily-login) img,
    body > .portal-container img {
        border-radius: 0.7rem;
    }

    .fl-view-placeholder {
        margin-bottom: 0.85rem;
        border-radius: 14px;
    }

    .fl-view-placeholder figcaption {
        font-size: 0.78rem;
        padding: 0.65rem 0.8rem;
    }
}

@media (max-width: 480px) {
    main[class]:not(#daily-login),
    body > .portal-container {
        width: calc(100vw - 0.5rem);
        max-height: calc(100dvh - 6.5rem);
        margin: 3em auto 1rem;
        padding: 0.8rem 0.7rem;
        border-radius: 0.8rem;
    }

    main[class]:not(#daily-login) p,
    main[class]:not(#daily-login) li,
    main[class]:not(#daily-login) label,
    main[class]:not(#daily-login) span,
    main[class]:not(#daily-login) small,
    body > .portal-container p,
    body > .portal-container li,
    body > .portal-container label,
    body > .portal-container span,
    body > .portal-container small {
        font-size: 0.94rem;
    }
}

.chronicle-card-grid,
.chronicle-timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.chronicle-card,
.chronicle-era-card,
.lore-chronicle-feature {
    background:
        linear-gradient(180deg, rgba(250, 204, 21, 0.08), rgba(15, 23, 42, 0.65)),
        rgba(8, 12, 18, 0.82);
    border: 1px solid rgba(244, 207, 118, 0.22);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.chronicle-card-art,
.lore-hero-art {
    margin-bottom: 1rem;
}

.chronicle-card-art img,
.lore-hero-art img {
    width: 100%;
    object-fit: cover;
    min-height: 160px;
}

.chronicle-card-kicker,
.lore-kicker,
.chronicle-era-card__label,
.chronicle-era-card__focus {
    color: #facc15;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
}

.chronicle-card-hook {
    color: #e2e8f0;
    font-size: 0.95rem;
}

.chronicle-card--compact p {
    font-size: 0.95rem;
}

.chronicle-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.chronicle-rail-stop {
    flex: 1 1 180px;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(244, 207, 118, 0.18);
    background: rgba(15, 23, 42, 0.72);
}

.chronicle-rail-stop span {
    display: block;
    color: #cbd5e1;
    font-size: 0.88rem;
}

.events-myth-board,
.events-myth-timeline,
.town-chronicle,
.lore-chronicle-section,
.lore-chronicle-feature {
    margin-top: 1.5rem;
}

.lore-index,
.lore-article {
    display: grid;
    gap: 1rem;
}

.lore-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.lore-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(244, 207, 118, 0.22);
}

.lore-list {
    padding-left: 1.2rem;
}

.lore-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.panel {
    position: relative;
    isolation: isolate;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius);
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(var(--panel-backdrop-blur)) saturate(135%);
    -webkit-backdrop-filter: blur(var(--panel-backdrop-blur)) saturate(135%);
    padding: 1.5rem 1rem;
    width: 50vw;
    height: 85vh;
    margin: 3% auto;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid var(--panel-highlight);
    mask: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 38%);
    -webkit-mask: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 38%);
    pointer-events: none;
    opacity: 0.55;
}

.panel > * {
    position: relative;
    z-index: 1;
}

main.panel {
    background: var(--panel-bg-strong);
    border: 1px solid var(--panel-border-strong);
}

main.panel :where(h1, h2, h3, h4) {
    color: var(--panel-title-color);
}

main.panel :where(p, li, label, span, small) {
    color: var(--panel-text-color);
}

main.panel :where(a:not(#main-menu a):not(#footer a)) {
    color: var(--panel-link-color);
}

footer,
#footer,
.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.28);
    z-index: 120;
}

@media (max-width: 768px) {
    .chronicle-card-grid,
    .chronicle-timeline-grid,
    .lore-navigation {
        grid-template-columns: 1fr;
    }

    .chronicle-rail {
        flex-direction: column;
    }
}
.motd-callout {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 184, 128, 0.28);
    background:
        radial-gradient(circle at top right, rgba(212, 184, 128, 0.18), transparent 42%),
        linear-gradient(180deg, rgba(13, 17, 27, 0.88), rgba(8, 10, 18, 0.94));
}

.motd-callout--spotlight {
    border-color: rgba(230, 198, 126, 0.52);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.motd-callout__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.9rem;
}

.motd-callout__header h2 {
    margin: 0.2rem 0 0;
}

.motd-callout__header time {
    white-space: nowrap;
    opacity: 0.8;
    font-size: 0.92rem;
}

.motd-callout__kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    color: rgba(230, 198, 126, 0.92);
}

.motd-callout__message {
    margin: 0;
    line-height: 1.65;
}

.motd-callout__actions {
    margin: 1rem 0 0;
}

.motd-callout__actions a {
    font-weight: 600;
}

.settings-page {
    display: grid;
    gap: 1.25rem;
}

.settings-hero {
    background:
        radial-gradient(circle at top right, rgba(224, 200, 144, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(14, 17, 27, 0.94), rgba(10, 12, 20, 0.96));
}

.settings-kicker {
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    color: rgba(224, 200, 144, 0.9);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.settings-card h2,
.settings-links h2 {
    margin-top: 0;
}

.settings-copy {
    margin-top: 0;
    opacity: 0.86;
}

.settings-form {
    display: grid;
    gap: 1rem;
}

.settings-form label {
    display: grid;
    gap: 0.4rem;
    font-weight: 600;
}

.settings-form input:not([type="checkbox"]),
.settings-form select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(11, 15, 24, 0.72);
    color: inherit;
    padding: 0.8rem 0.95rem;
}

.settings-form--toggles {
    align-content: start;
}

.settings-toggle {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.settings-toggle span {
    display: grid;
    gap: 0.25rem;
}

.settings-toggle small {
    font-weight: 400;
    opacity: 0.74;
}

.settings-toggle input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: #d9b978;
}

.settings-flash {
    font-weight: 600;
}

.settings-flash--success {
    border-color: rgba(110, 231, 183, 0.32);
    color: #d1fae5;
}

.settings-flash--error {
    border-color: rgba(248, 113, 113, 0.32);
    color: #fee2e2;
}

@media (max-width: 640px) {
    .motd-callout__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .motd-callout__header time {
        white-space: normal;
    }

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

    .settings-toggle {
        align-items: flex-start;
    }
}

.profile-container {
    max-width: 1180px;
    margin: 2rem auto 3rem;
    padding: 0 1rem;
    display: grid;
    gap: 1.25rem;
}

.profile-container > .panel {
    margin: 0;
}

.profile-header {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 1.5rem;
    align-items: stretch;
    padding: 1.6rem;
    background:
        radial-gradient(circle at top left, rgba(204, 162, 85, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(73, 127, 173, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(16, 21, 32, 0.94), rgba(9, 12, 20, 0.98));
}

.avatar-section {
    min-width: 0;
    text-align: left;
}

.profile-kicker {
    margin: 0 0 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    color: rgba(224, 197, 140, 0.92);
}

.profile-header .avatar {
    width: 132px;
    height: 132px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    object-fit: cover;
    margin: 0 0 1rem;
}

.profile-avatar-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.profile-avatar-stack span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 1.25rem;
}

.profile-header h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    color: #f7f1de;
}

.profile-subtitle,
.profile-persona,
.profile-rpg p,
.profile-discord-lead,
.profile-discord-note,
.activity-feed p {
    color: rgba(234, 238, 244, 0.88);
}

.profile-subtitle {
    margin: 0.8rem 0 0.45rem;
    font-size: 1rem;
}

.profile-persona {
    margin: 0.9rem 0 0;
    max-width: 60ch;
}

.stats-social {
    display: grid;
    gap: 1rem;
    align-content: start;
    padding: 1.35rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
}

.stats-social h2,
.profile-rpg h2,
.profile-discord h2,
.activity-feed h2 {
    margin: 0;
}

.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.85rem;
}

.profile-stat-grid--tight {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.profile-stat-card {
    min-width: 0;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-stat-card span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(200, 208, 220, 0.78);
}

.profile-stat-card strong {
    display: block;
    color: #f6efdc;
    font-size: 1.05rem;
    line-height: 1.3;
    word-break: break-word;
}

.profile-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.profile-link-row a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(214, 187, 130, 0.22);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.profile-link-row a:hover {
    transform: translateY(-1px);
    border-color: rgba(214, 187, 130, 0.42);
    background: rgba(214, 187, 130, 0.08);
}

.profile-link-row--secondary a {
    border-color: rgba(146, 188, 215, 0.22);
}

.profile-lifestyle-links {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(200, 208, 220, 0.76);
}

.profile-rpg,
.profile-discord,
.activity-feed {
    padding: 1.35rem 1.45rem;
}

.profile-lineage {
    padding: 0.85rem 1rem;
    border-left: 3px solid rgba(218, 190, 131, 0.45);
    background: rgba(255, 255, 255, 0.035);
    border-radius: 12px;
}

.profile-branch-list,
.profile-activity-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.profile-branch-card,
.profile-activity-card {
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-branch-trial {
    margin-top: 0.55rem;
    color: rgba(219, 227, 238, 0.86);
}

.profile-activity-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.profile-activity-card span {
    color: rgba(213, 222, 233, 0.78);
    white-space: nowrap;
}

.profile-discord-status {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.22);
}

.profile-discord-note {
    font-size: 0.92rem;
}

.profile-discord-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.profile-discord-prefs {
    display: grid;
    gap: 0.6rem;
    max-width: 30rem;
}

@media (max-width: 920px) {
    .profile-header {
        grid-template-columns: 1fr;
    }

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

    .profile-persona {
        margin-inline: auto;
    }
}

@media (max-width: 640px) {
    .profile-container {
        padding: 0 0.85rem;
    }

    .profile-header,
    .profile-rpg,
    .profile-discord,
    .activity-feed {
        padding: 1rem;
    }

    .profile-activity-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-activity-card span {
        white-space: normal;
    }
}
