/* ==========================================================================
   Ferne Online / World of Valoria - Classic Medieval MMORPG Portal (Tibia Style)
   ========================================================================== */

:root {
    --bg-abyss: #07090e;
    --stone-dark: #12161f;
    --stone-mid: #1a202c;
    --stone-light: #262f3f;
    --gold-bright: #f3d078;
    --gold-main: #d4a84f;
    --gold-dark: #8c6927;
    --gold-border: #7a5c24;
    --forest-header: #163022;
    --forest-header-light: #214531;
    --crimson-dark: #3f0a0e;
    --crimson-main: #6e141a;
    --crimson-bright: #8f1d24;
    --parchment-light: #f7eed7;
    --parchment-main: #f1e2c1;
    --parchment-alt: #e7d4ab;
    --parchment-dark: #d8c090;
    --parchment-border: #bfa36f;
    --ink-dark: #26170a;
    --ink-mid: #4a3319;
    --ink-muted: #6e5233;
    --ink-link: #7a181e;
    --ink-link-hover: #b0222b;
    --royal-blue-top: #1f57b8;
    --royal-blue-bot: #0f2c66;
    --green-online: #4cd137;
    --red-error: #c23616;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-abyss);
    color: var(--ink-dark);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Epic Medieval Header Backdrop Artwork */
.mmo-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 540px;
    background-image:
        linear-gradient(to bottom, rgba(7, 9, 14, 0.15) 0%, rgba(7, 9, 14, 0.55) 68%, var(--bg-abyss) 100%),
        linear-gradient(to right, var(--bg-abyss) 0%, transparent 18%, transparent 82%, var(--bg-abyss) 100%),
        url('../img/ui/portal_header_bg.jpg');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* Main 3-Column Portal Container */
.mmo-portal-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 14px 40px;
}

.mmo-portal-grid {
    display: grid;
    grid-template-columns: 195px minmax(0, 1fr) 215px;
    gap: 14px;
    align-items: start;
}

/* ==========================================================================
   LEFT COLUMN: Crest Logo, Login/Download Pedestals & Classic Navigation
   ========================================================================== */

.mmo-left-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Top-Left Crest Box (Tibia Logo Pedestal) */
.mmo-crest-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 10px 12px;
    background: radial-gradient(circle at 50% 35%, #232b3a 0%, #0e121a 85%);
    border: 2px solid var(--gold-main);
    outline: 1px solid #000;
    border-radius: 6px;
    box-shadow:
        inset 0 0 15px rgba(0, 0, 0, 0.85),
        inset 0 0 0 1px rgba(243, 208, 120, 0.25),
        0 6px 18px rgba(0, 0, 0, 0.8);
    text-decoration: none;
    position: relative;
}

.mmo-crest-icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 6px rgba(212, 168, 79, 0.6));
}

.mmo-crest-title {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 900;
    font-size: 23px;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #fff3c4 0%, #e6b956 50%, #9e6f1e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.95));
    line-height: 1.1;
}

.mmo-crest-sub {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 9.5px;
    color: #b7a27a;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-top: 3px;
}

/* Ornate Medieval Side Frame (Used for Login/Download & Menu) */
.mmo-stone-frame {
    background: linear-gradient(180deg, #171c26 0%, #10141c 100%);
    border: 2px solid var(--gold-border);
    outline: 1px solid #05070a;
    border-radius: 4px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 224, 150, 0.14),
        0 6px 16px rgba(0, 0, 0, 0.75);
    padding: 10px;
    position: relative;
}

/* Royal Blue / Gold Action Buttons (Tibia Login & Download style) */
.mmo-royal-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 10px;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 14px;
    color: #f9e3a3 !important;
    text-decoration: none !important;
    text-shadow: 0 1px 3px #000;
    background: linear-gradient(180deg, #2b6be0 0%, #163d8a 55%, #0e275c 100%);
    border: 2px solid var(--gold-main);
    border-radius: 4px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    transition: filter 0.15s, transform 0.1s;
}

.mmo-royal-btn:hover {
    filter: brightness(1.15);
    color: #fff !important;
}

.mmo-royal-btn.gold-variant {
    background: linear-gradient(180deg, #c98e2b 0%, #8f5c10 55%, #5e3a06 100%);
    color: #fff6d6 !important;
}

.mmo-sub-action {
    display: block;
    text-align: center;
    margin-top: 6px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 11px;
    font-weight: 700;
    color: #d8c396 !important;
    text-decoration: none;
    padding: 3px 0 1px;
    border-top: 1px solid rgba(212, 168, 79, 0.25);
}

.mmo-sub-action:hover {
    color: var(--gold-bright) !important;
    text-decoration: underline;
}

/* Left Navigation Menu Box */
.mmo-nav-box {
    background: linear-gradient(180deg, #161b24 0%, #0e1218 100%);
    border: 2px solid var(--gold-border);
    outline: 1px solid #05070a;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.mmo-nav-cat {
    border-bottom: 1px solid #080a0e;
}

.mmo-nav-cat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: linear-gradient(90deg, #27303f 0%, #1a212d 60%, #232b3a 100%);
    border-top: 1px solid rgba(243, 208, 120, 0.25);
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--gold-bright);
    text-shadow: 0 1px 2px #000;
    letter-spacing: 0.5px;
}

.mmo-nav-cat-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--gold-dark);
    border-radius: 3px;
}

.mmo-nav-links {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    background: #10141c;
}

.mmo-nav-links li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 16px;
    color: #c8bfa8;
    text-decoration: none;
    font-size: 12px;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s;
}

.mmo-nav-links li a::before {
    content: "▸";
    color: var(--gold-main);
    font-size: 11px;
}

.mmo-nav-links li a:hover,
.mmo-nav-links li a.active {
    background: rgba(212, 168, 79, 0.14);
    color: #fff2cc;
    border-left-color: var(--gold-bright);
    font-weight: 600;
}

/* ==========================================================================
   CENTER COLUMN: Top Status Bar & Aged Parchment Content Panels
   ========================================================================== */

.mmo-center-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* Top Horizontal Status Bar (Above News Ticker, Tibia style) */
.mmo-status-strip {
    margin-top: 84px; /* Leaves room so the medieval castle/dragon header art shines at the top! */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 6px 12px;
    background: linear-gradient(180deg, #261215 0%, #14090b 100%);
    border: 2px solid var(--gold-border);
    outline: 1px solid #000;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    color: #ebd8b2;
    font-size: 11.5px;
}

.mmo-status-left,
.mmo-status-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.mmo-status-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e6d5b8;
    text-decoration: none;
}

.mmo-status-item:hover {
    color: var(--gold-bright);
}

.mmo-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-online);
    box-shadow: 0 0 7px var(--green-online);
    display: inline-block;
}

.mmo-online-dot.offline {
    background: #e84118;
    box-shadow: 0 0 7px #e84118;
}

/* Classic Tibia Ornate Box (Dark Green/Gold Header + Parchment Body) */
.tibia-box {
    border: 2px solid #5e4722;
    outline: 1px solid #0a0c10;
    border-radius: 4px;
    background: var(--parchment-main);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.8),
        inset 0 0 0 1px rgba(255, 245, 214, 0.5);
    overflow: hidden;
}

.tibia-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: linear-gradient(180deg, #234934 0%, #142b1e 55%, #0e2016 100%);
    border-bottom: 2px solid var(--gold-main);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #f5dfb0;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 3px #000;
}

.tibia-box-header.burgundy {
    background: linear-gradient(180deg, #6b171d 0%, #440c10 55%, #2b0609 100%);
}

.tibia-box-header-sub {
    font-family: Verdana, sans-serif;
    font-size: 11px;
    font-weight: normal;
    color: #d6c39a;
}

.tibia-parchment {
    background:
        radial-gradient(circle at 50% 25%, var(--parchment-light) 0%, var(--parchment-main) 75%, var(--parchment-alt) 100%);
    color: var(--ink-dark);
    padding: 14px 16px;
}

/* ==========================================================================
   NEWS TICKER (Tibia Top Expandable Updates Table)
   ========================================================================== */

.ticker-list {
    border: 1px solid var(--parchment-border);
    background: var(--parchment-light);
}

.ticker-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 8px;
    border-bottom: 1px solid #d5be92;
    font-size: 12px;
    color: var(--ink-dark);
    cursor: pointer;
    transition: background 0.12s;
}

.ticker-row:last-child {
    border-bottom: none;
}

.ticker-row:nth-child(even) {
    background: var(--parchment-alt);
}

.ticker-row:hover {
    background: #e2caa0;
}

.ticker-icon {
    width: 18px;
    height: 18px;
    background: #2b1d0f;
    color: var(--gold-bright);
    border: 1px solid var(--gold-dark);
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 1px;
}

.ticker-date {
    font-weight: 700;
    color: var(--ink-mid);
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-text {
    flex: 1;
    min-width: 0;
}

.ticker-summary {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticker-row.open .ticker-summary {
    white-space: normal;
    font-weight: 600;
}

.ticker-details {
    display: none;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed #bfa36f;
    color: var(--ink-mid);
    font-size: 12px;
    line-height: 1.45;
}

.ticker-row.open .ticker-details {
    display: block;
}

.ticker-toggle {
    width: 16px;
    height: 16px;
    background: linear-gradient(180deg, #3c2915, #211509);
    color: var(--gold-bright);
    border: 1px solid var(--gold-dark);
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 11px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ==========================================================================
   MAIN NEWS ARTICLES (Burgundy Banner + Drop Cap Initial Letter)
   ========================================================================== */

.tibia-news-article {
    margin-bottom: 22px;
    border: 1px solid #b89b67;
    background: rgba(255, 250, 237, 0.65);
    box-shadow: 0 2px 6px rgba(60, 35, 10, 0.12);
}

.tibia-news-article:last-child {
    margin-bottom: 6px;
}

.tibia-news-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 12px;
    background: linear-gradient(90deg, #4b0c10 0%, #78171e 45%, #3c090c 100%);
    border-bottom: 2px solid var(--gold-main);
    color: #fff6e0;
}

.tibia-news-banner-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.tibia-news-crest {
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--gold-main);
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.tibia-news-date {
    font-size: 11px;
    color: #ebcfa0;
    font-weight: normal;
}

.tibia-news-title {
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    text-shadow: 0 1px 2px #000;
}

.tibia-news-body {
    padding: 14px 16px;
    color: var(--ink-dark);
    font-size: 13px;
    line-height: 1.65;
}

.tibia-news-img {
    float: right;
    max-width: 230px;
    max-height: 210px;
    margin: 0 0 12px 16px;
    border: 2px solid #8c6927;
    border-radius: 3px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

/* Iconic Tibia Drop-Cap First Letter */
.tibia-news-text > p:first-of-type::first-letter,
.tibia-news-text::first-letter {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 34px;
    font-weight: 900;
    color: #7a151b;
    float: left;
    line-height: 0.85;
    margin: 2px 7px 0 0;
    text-shadow: 1px 1px 0 #e6c687;
}

.tibia-news-text h3,
.tibia-news-text h4 {
    font-family: 'Cinzel', Georgia, serif;
    color: #5c1317;
    margin: 12px 0 6px;
    border-bottom: 1px solid #d4b986;
    padding-bottom: 3px;
}

.tibia-news-text a {
    color: var(--ink-link);
    font-weight: 700;
    text-decoration: underline;
}

.tibia-news-text a:hover {
    color: var(--ink-link-hover);
}

.tibia-news-text ul,
.tibia-news-text ol {
    padding-left: 22px;
    margin: 8px 0;
}

.tibia-news-text blockquote {
    border-left: 3px solid #7a181e;
    background: rgba(180, 145, 85, 0.18);
    margin: 10px 0;
    padding: 6px 12px;
    color: var(--ink-mid);
    font-style: italic;
}

/* ==========================================================================
   RIGHT COLUMN: Pedestal, Quick Login, Top 5 Highscores, Houses & Gallery
   ========================================================================== */

.mmo-right-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mmo-widget-box {
    background: linear-gradient(180deg, #171c26 0%, #0f131a 100%);
    border: 2px solid var(--gold-border);
    outline: 1px solid #05070a;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.mmo-widget-header {
    padding: 6px 10px;
    background: linear-gradient(90deg, #27303f 0%, #181e29 55%, #242d3c 100%);
    border-bottom: 1px solid var(--gold-main);
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 12.5px;
    color: var(--gold-bright);
    text-align: center;
    text-shadow: 0 1px 2px #000;
    letter-spacing: 0.6px;
}

.mmo-widget-header.gold-header {
    background: linear-gradient(90deg, #5e3d0e 0%, #8f5e17 50%, #52340a 100%);
    color: #fff6d9;
}

.mmo-widget-body {
    padding: 10px;
    color: #d6cbb5;
    font-size: 12px;
}

/* Top Right Monster/Item Pedestal (Like Tibia's Boss & Creature of the Day) */
.mmo-pedestal-box {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 10px;
    background: radial-gradient(circle at 50% 60%, #263145 0%, #11161f 85%);
    border: 2px solid var(--gold-border);
    outline: 1px solid #000;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
}

.mmo-pedestal-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
}

.mmo-pedestal-frame {
    width: 56px;
    height: 56px;
    background: radial-gradient(circle, #2f3d54 0%, #151b26 85%);
    border: 1px solid var(--gold-main);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.mmo-pedestal-frame img {
    max-width: 42px;
    max-height: 42px;
    image-rendering: pixelated;
}

.mmo-pedestal-label {
    font-size: 10px;
    color: #cbb994;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
}

/* Quick Login Form inside Right Widget */
.mmo-quick-form {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mmo-quick-input {
    width: 100%;
    padding: 6px 8px;
    background: #0b0e14;
    border: 1px solid #453823;
    border-radius: 3px;
    color: #f2e6ce;
    font-size: 12px;
}

.mmo-quick-input:focus {
    outline: none;
    border-color: var(--gold-bright);
}

/* Mini Highscores List */
.mmo-top5-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mmo-top5-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 7px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 168, 79, 0.18);
    border-radius: 3px;
    font-size: 11.5px;
}

.mmo-top5-rank {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 900;
    color: var(--gold-bright);
    margin-right: 6px;
}

.mmo-top5-name {
    color: #e8dcc4;
    text-decoration: none;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mmo-top5-name:hover {
    color: var(--gold-bright);
    text-decoration: underline;
}

.mmo-top5-lvl {
    color: #98c379;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
}

/* ==========================================================================
   PARCHMENT TABLES, TABS, BUTTONS & FORMS (Shared across pages)
   ========================================================================== */

.parchment-title {
    font-family: 'Cinzel', Georgia, serif;
    color: #4f1014;
    border-bottom: 2px solid #bfa36f;
    padding-bottom: 6px;
    margin: 0 0 14px;
    font-size: 20px;
}

table.t {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #b39562;
    background: var(--parchment-light);
    color: var(--ink-dark);
}

table.t th,
table.t td {
    padding: 8px 11px;
    text-align: left;
    border-bottom: 1px solid #d1b88a;
    border-right: 1px solid #dec9a0;
    font-size: 12.5px;
}

table.t th {
    background: linear-gradient(180deg, #5c4324 0%, #3d2b15 100%);
    color: #f7e4b5;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

table.t tr:nth-child(even) td {
    background: var(--parchment-alt);
}

table.t tr:hover td {
    background: #dfc799;
}

table.t a {
    color: var(--ink-link);
    font-weight: 700;
    text-decoration: none;
}

table.t a:hover {
    text-decoration: underline;
    color: var(--ink-link-hover);
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.tabs a {
    padding: 6px 14px;
    border: 1px solid #8c6927;
    border-radius: 3px;
    background: #e3cea4;
    color: var(--ink-dark);
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
}

.tabs a:hover,
.tabs a.on {
    background: linear-gradient(180deg, #6e141a 0%, #450b0f 100%);
    color: #fff3d1;
    border-color: var(--gold-main);
}

.btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 4px;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.6px;
    border: 1px solid #7a5c24;
    color: #fff3d1;
    cursor: pointer;
    background: linear-gradient(180deg, #3c2b17 0%, #24190c 100%);
    font-size: 13px;
    text-decoration: none;
}

.btn.gold {
    background: linear-gradient(180deg, #d9a441 0%, #996918 100%);
    color: #1f1304;
    border-color: #5e3f0b;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn.gold:hover {
    filter: brightness(1.08);
    color: #1f1304;
}

.btn.sm {
    padding: 5px 12px;
    font-size: 11.5px;
}

.card {
    background: var(--parchment-light);
    border: 1px solid #b89b67;
    border-radius: 4px;
    padding: 14px;
    color: var(--ink-dark);
}

form.adm {
    background: rgba(110, 20, 26, 0.08);
    border: 1px dashed #7a181e;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 16px;
    display: grid;
    gap: 8px;
    color: var(--ink-dark);
}

form.adm input,
form.adm textarea,
form.adm select {
    background: #fffdf7;
    border: 1px solid #a88b56;
    color: var(--ink-dark);
    border-radius: 3px;
    padding: 7px 9px;
    font: inherit;
}

.tb {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tb button {
    background: #3b2a17;
    border: 1px solid var(--gold-dark);
    color: #f7e6c2;
    border-radius: 3px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 11.5px;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8c7a5b;
    margin-right: 5px;
}

.dot.on {
    background: #2e8b22;
    box-shadow: 0 0 6px #4cd137;
}

.msg {
    padding: 9px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    background: #dff0d8;
    border: 1px solid #3c763d;
    color: #235224;
    font-weight: 600;
}

.msg.err {
    background: #f2dede;
    border-color: #a94442;
    color: #842020;
}

.empty {
    color: var(--ink-muted);
    text-align: center;
    padding: 24px;
    font-style: italic;
}

/* Portal Footer */
.mmo-footer {
    margin-top: 10px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #161b24 0%, #0d1017 100%);
    border: 2px solid var(--gold-border);
    border-radius: 4px;
    text-align: center;
    color: #9e927b;
    font-size: 11.5px;
}

.mmo-footer a {
    color: var(--gold-main);
    text-decoration: none;
    margin: 0 5px;
}

.mmo-footer a:hover {
    color: var(--gold-bright);
    text-decoration: underline;
}

/* Responsive Layout for Tablets & Mobile */
@media (max-width: 980px) {
    .mmo-portal-grid {
        grid-template-columns: 185px minmax(0, 1fr);
    }
    .mmo-right-col {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 680px) {
    .mmo-portal-grid {
        grid-template-columns: 1fr;
    }
    .mmo-status-strip {
        margin-top: 12px;
    }
    .tibia-news-img {
        float: none;
        display: block;
        margin: 0 auto 12px;
    }
}
