/* ============================================================
   LonePortal.com - Main Stylesheet v2.1
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --aol-blue:       #003399;
    --aol-blue-light: #3366CC;
    --aol-blue-dark:  #001166;
    --aol-yellow:     #FFCC00;
    --aol-orange:     #FF6600;
    --win-grey:       #C0C0C0;
    --win-grey-dark:  #808080;
    --win-border-l:   #FFFFFF;
    --win-border-d:   #808080;
    --bg-page:        #000080;
    --text-link:      #0000EE;
    --text-visited:   #551A8B;
    --panel-bg:       #FFFFFF;
    --font-main:      Verdana, Tahoma, Arial, sans-serif;
    --font-pixel:     'Press Start 2P', monospace;
    --font-vt:        'VT323', monospace;
}

html { font-size: 13px; }

body {
    font-family: var(--font-main);
    font-size: 13px;
    background: var(--bg-page);
    background-image: radial-gradient(ellipse at top, #000099 0%, #000066 50%, #000044 100%);
    color: #000;
    min-height: 100vh;
    padding: 6px;
}

a { color: var(--text-link); }
a:visited { color: var(--text-visited); }
a:hover { color: var(--aol-orange); }

/* ── Site Wrapper ─────────────────────────────────────────── */
#site-wrapper {
    width: 920px;
    margin: 0 auto;
    background: var(--win-grey);
    border: 2px solid;
    border-color: var(--win-border-l) var(--win-border-d) var(--win-border-d) var(--win-border-l);
    box-shadow: 4px 4px 16px rgba(0,0,0,0.6);
}

/* ── IE Chrome ────────────────────────────────────────────── */
#ie-titlebar {
    background: linear-gradient(to right, #000080 0%, #1084d0 100%);
    color: #fff;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
#ie-titlebar .title-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
/* Clicking logo goes home */
#ie-titlebar .title-left a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.win-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 16px;
    background: var(--win-grey);
    border: 1px solid;
    border-color: var(--win-border-l) var(--win-border-d) var(--win-border-d) var(--win-border-l);
    font-size: 10px;
    font-weight: bold;
    color: #000;
    margin-left: 2px;
    cursor: default;
}

/* ── IE Menubar ───────────────────────────────────────────── */
#ie-menubar {
    background: var(--win-grey);
    border-bottom: 1px solid var(--win-grey-dark);
    padding: 2px 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}
.ie-menu-item {
    color: #000;
    text-decoration: none;
    padding: 3px 10px;
    display: inline-block;
    cursor: pointer;
    position: relative;
    font-size: 12px;
    font-family: var(--font-main);
    border: 1px solid transparent;
}
.ie-menu-item:hover {
    background: var(--win-grey-dark);
    color: #fff;
    border-color: var(--win-border-d) var(--win-border-l) var(--win-border-l) var(--win-border-d);
}
.ie-menu-item.has-dropdown:hover .ie-dropdown { display: block; }

/* Star favorite button */
#star-btn {
    margin-left: auto;
    margin-right: 8px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    user-select: none;
    padding: 2px 6px;
    border: 1px solid transparent;
    transition: transform 0.1s;
}
#star-btn:hover { border-color: var(--win-grey-dark); background: #E8E8E8; }
#star-btn:active { transform: scale(0.9); }
#star-btn.favorited { color: #FFCC00; text-shadow: 0 0 4px rgba(255,204,0,0.5); }

/* Favorites dropdown */
.ie-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--win-grey);
    border: 2px solid;
    border-color: var(--win-border-l) var(--win-border-d) var(--win-border-d) var(--win-border-l);
    min-width: 220px;
    z-index: 1000;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.ie-dropdown a {
    display: block;
    padding: 4px 12px;
    font-size: 11px;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}
.ie-dropdown a:hover { background: var(--aol-blue); color: #fff; }
.ie-dropdown-header {
    padding: 3px 12px;
    font-size: 10px;
    color: var(--win-grey-dark);
    border-bottom: 1px solid var(--win-grey-dark);
    font-weight: bold;
}
.ie-dropdown-sep {
    border: none;
    border-top: 1px solid var(--win-grey-dark);
    margin: 2px 0;
}

/* File dropdown items */
.file-dropdown { left: 0; }
.edit-dropdown { left: 30px; }
.view-dropdown { left: 65px; }
.tools-dropdown { left: 185px; }
.help-dropdown { left: 225px; }

/* ── IE Address Bar ───────────────────────────────────────── */
#ie-addressbar {
    background: var(--win-grey);
    padding: 3px 6px;
    border-bottom: 2px solid var(--win-grey-dark);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}
#ie-addressbar input[type=text] {
    flex: 1;
    border: 2px solid;
    border-color: var(--win-grey-dark) #fff #fff var(--win-grey-dark);
    padding: 2px 5px;
    font-size: 12px;
    font-family: var(--font-main);
    background: #fff;
}
.ie-btn {
    background: var(--win-grey);
    border: 2px solid;
    border-color: var(--win-border-l) var(--win-border-d) var(--win-border-d) var(--win-border-l);
    padding: 2px 8px;
    font-size: 11px;
    cursor: pointer;
    font-family: var(--font-main);
    white-space: nowrap;
}
.ie-btn:active { border-color: var(--win-border-d) var(--win-border-l) var(--win-border-l) var(--win-border-d); }

/* ── Site Header ──────────────────────────────────────────── */
#site-header {
    background: linear-gradient(180deg, #003399 0%, #0044BB 40%, #003399 100%);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--aol-yellow);
}
#site-logo {
    font-family: Impact, 'Arial Black', Arial, sans-serif;
    font-size: 42px;
    color: var(--aol-yellow);
    text-shadow: 3px 3px 0 #000033, -1px -1px 0 #FF6600;
    letter-spacing: -2px;
    line-height: 1;
    text-decoration: none;
    display: block;
}
#site-logo:hover { opacity: 0.9; }
#site-logo span { color: var(--aol-orange); }
#site-logo-sub {
    font-size: 11px;
    color: #99CCFF;
    margin-top: 2px;
    font-family: var(--font-main);
}
#header-right { text-align: right; font-size: 11px; }
#header-right a { color: var(--aol-yellow); font-weight: bold; text-decoration: none; }
#header-right a:hover { text-decoration: underline; }
#header-clock { color: #FFFF99; font-size: 10px; margin-top: 4px; }
#header-user { color: var(--aol-yellow); font-size: 11px; margin-bottom: 3px; }

/* ── Marquee ──────────────────────────────────────────────── */
#marquee-strip {
    background: #000033;
    color: #00FF00;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 4px 0;
    border-top: 1px solid #003300;
    border-bottom: 1px solid #003300;
    overflow: hidden;
    white-space: nowrap;
}

/* ── Main Nav ─────────────────────────────────────────────── */
#main-nav {
    background: linear-gradient(180deg, #3366CC, #003399);
    border-bottom: 2px solid var(--aol-yellow);
}
#main-nav ul { list-style: none; display: flex; flex-wrap: wrap; }
#main-nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 6px 13px;
    font-size: 11px;
    font-weight: bold;
    display: block;
    border-right: 1px solid #6699CC;
    transition: background 0.1s;
}
#main-nav ul li a:hover,
#main-nav ul li a.active { background: var(--aol-yellow); color: #000033; }

/* ── Search Bar ───────────────────────────────────────────── */
#search-bar {
    background: #E8E8E8;
    padding: 5px 10px;
    border-bottom: 1px solid #999;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    flex-wrap: wrap;
}
#search-bar form { display: flex; align-items: center; gap: 5px; }
#search-bar input[type=text] {
    border: 2px inset #999;
    padding: 3px 6px;
    font-size: 11px;
    font-family: var(--font-main);
    width: 200px;
}
#search-bar input[type=submit],
#search-bar select {
    font-size: 11px;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    background: var(--win-grey);
    padding: 2px 8px;
    cursor: pointer;
    font-family: var(--font-main);
}
.visitors { font-size: 10px; color: #444; margin-left: auto; }
.visitors strong { color: #CC0000; }

/* ── 3-Column Layout ──────────────────────────────────────── */
#main-layout {
    display: grid;
    grid-template-columns: 175px 1fr 180px;
    background: var(--win-grey);
    min-height: 600px;
}
#sidebar-left  { padding: 6px; border-right: 2px solid var(--win-grey-dark); }
#sidebar-right { padding: 6px; border-left:  2px solid var(--win-grey-dark); }
#main-content  { padding: 8px; }

/* ── Win98 Panels ─────────────────────────────────────────── */
.win-panel {
    background: var(--win-grey);
    border: 2px solid;
    border-color: var(--win-border-l) var(--win-border-d) var(--win-border-d) var(--win-border-l);
    margin-bottom: 7px;
}
.win-panel-title {
    background: linear-gradient(to right, #000080, #1084d0);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 7px;
    font-family: Tahoma, Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
}
.win-panel-body {
    padding: 5px 7px;
    background: var(--panel-bg);
    font-size: 11px;
}
.win-panel-body a {
    color: #0000CC;
    display: block;
    padding: 2px 0;
    text-decoration: none;
}
.win-panel-body a:before { content: "► "; font-size: 9px; color: var(--aol-orange); }
.win-panel-body a:hover { color: var(--aol-orange); }
.win-panel-body a.inline-link { display: inline; padding: 0; }
.win-panel-body a.inline-link:before { content: ''; }

/* ── Content Boxes ────────────────────────────────────────── */
.content-box {
    background: #fff;
    border: 2px solid;
    border-color: var(--win-border-l) var(--win-border-d) var(--win-border-d) var(--win-border-l);
    margin-bottom: 10px;
}
.content-box-title {
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 10px;
    font-family: Tahoma, Arial, sans-serif;
}
.content-box-title.red    { background: linear-gradient(to right, #CC0000, #FF3300); }
.content-box-title.blue   { background: linear-gradient(to right, #003399, #3366CC); }
.content-box-title.green  { background: linear-gradient(to right, #006600, #009900); }
.content-box-title.orange { background: linear-gradient(to right, #CC6600, #FF9900); }
.content-box-title.purple { background: linear-gradient(to right, #660066, #993399); }
.content-box-title.teal   { background: linear-gradient(to right, #006666, #009999); }
.content-box-body { padding: 8px 10px; font-size: 11px; line-height: 1.7; }

/* ── Featured Box ─────────────────────────────────────────── */
#featured-box {
    background: linear-gradient(135deg, #003399, #0055CC, #003399);
    border: 3px solid var(--aol-yellow);
    padding: 12px;
    margin-bottom: 10px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
#featured-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,204,0,0.03) 10px, rgba(255,204,0,0.03) 20px);
    pointer-events: none;
}
#featured-box h2 {
    font-family: Impact, Arial, sans-serif;
    font-size: 22px;
    color: var(--aol-yellow);
    text-shadow: 2px 2px 0 #000;
    position: relative;
}
#featured-box p { font-size: 11px; color: #CCDDFF; margin: 5px 0; position: relative; }
.feat-btn {
    display: inline-block;
    padding: 5px 14px;
    font-weight: bold;
    text-decoration: none;
    border: 2px outset;
    font-size: 12px;
    margin: 3px;
    position: relative;
    cursor: pointer;
}
.feat-btn-orange { background: var(--aol-orange); color: #fff; border-color: #FF9900; }
.feat-btn-yellow { background: var(--aol-yellow); color: #000033; border-color: #FFEE66; }
.feat-btn:hover { filter: brightness(1.1); }

/* ── News Table ───────────────────────────────────────────── */
.news-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.news-table th { background: #003399; color: #fff; padding: 4px 7px; text-align: left; }
.news-table td { padding: 3px 7px; border-bottom: 1px solid #eee; vertical-align: top; }
.news-table tr:nth-child(even) td { background: #F0F4FF; }
.news-table tr:hover td { background: #FFFDE0; }

/* ── Badges ───────────────────────────────────────────────── */
.badge-new {
    display: inline-block;
    background: #FF0000;
    color: #FFFF00;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 4px;
    border: 1px solid #990000;
    animation: blink 0.9s step-end infinite;
    vertical-align: middle;
}
.badge-upd {
    display: inline-block;
    background: var(--aol-orange);
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 4px;
    border: 1px solid #993300;
    vertical-align: middle;
}

/* ── Hit Counter ──────────────────────────────────────────── */
.hit-counter {
    display: inline-block;
    background: #000;
    color: #00FF00;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: bold;
    padding: 4px 10px;
    border: 2px inset #333;
    letter-spacing: 4px;
    text-shadow: 0 0 8px #00FF00;
}

/* ── Poll ─────────────────────────────────────────────────── */
.poll-option { margin: 4px 0; font-size: 11px; }
.poll-option label { cursor: pointer; }
.poll-bar-wrap {
    background: #E0E0E0;
    border: 1px inset #999;
    height: 12px;
    margin: 2px 0;
    border-radius: 2px;
    overflow: hidden;
}
.poll-bar { height: 100%; transition: width 0.3s ease; }
.poll-bar-1 { background: linear-gradient(to right, #003399, #6699FF); }
.poll-bar-2 { background: linear-gradient(to right, #CC6600, #FF9900); }
.poll-bar-3 { background: linear-gradient(to right, #006600, #00CC00); }
.poll-bar-4 { background: linear-gradient(to right, #660066, #CC00CC); }

/* ── Buddy List ───────────────────────────────────────────── */
.buddy-item { padding: 2px 0; font-size: 11px; display: flex; align-items: center; gap: 5px; }
.buddy-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.buddy-online  { background: #00CC00; box-shadow: 0 0 4px #00CC00; }
.buddy-away    { background: #FFCC00; }
.buddy-offline { background: #808080; }

/* ── Top Games ────────────────────────────────────────────── */
.game-bar-wrap { background: #E0E0E0; border: 1px inset #999; height: 10px; border-radius: 2px; overflow: hidden; flex: 1; }
.game-bar-fill { height: 100%; background: linear-gradient(to right, #003399, #6699FF); }
.game-row { display: flex; align-items: center; gap: 6px; padding: 3px 0; border-bottom: 1px dotted #ccc; font-size: 11px; }
.game-rank { color: var(--aol-orange); font-weight: bold; width: 14px; }
.game-name { flex: 1; }
.game-plays { color: #666; font-size: 10px; width: 40px; text-align: right; }

/* ── Weather ──────────────────────────────────────────────── */
.weather-box {
    background: linear-gradient(180deg, #5BA3D9, #2E78B7);
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 11px;
}
.weather-temp { font-size: 26px; font-weight: bold; font-family: Impact, Arial; }

/* ── AIM Away ─────────────────────────────────────────────── */
.aim-away { font-style: italic; font-size: 11px; background: #FFFFEE; padding: 6px; line-height: 1.7; }

/* ── Site of the Day ──────────────────────────────────────── */
.sotd-box {
    text-align: center;
    padding: 6px;
    font-size: 11px;
}
.sotd-box a { display: inline; padding: 0; font-weight: bold; font-size: 11px; }
.sotd-box a:before { content: ''; }
.sotd-banner {
    width: 88px;
    height: 31px;
    border: 1px solid #999;
    display: block;
    margin: 4px auto;
    object-fit: cover;
}
.sotd-placeholder {
    width: 88px;
    height: 31px;
    background: linear-gradient(135deg, #000080, #003399);
    border: 1px solid #6699CC;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aol-yellow);
    font-size: 8px;
    font-weight: bold;
    font-family: Impact, Arial;
    margin: 4px auto;
    text-decoration: none;
}
.sotd-desc { font-size: 10px; color: #666; margin-top: 3px; }

/* ── Ad Banner ────────────────────────────────────────────── */
.ad-banner {
    background: linear-gradient(135deg, #111, #222);
    border: 3px dashed var(--aol-yellow);
    padding: 16px;
    text-align: center;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.ad-banner:hover { border-color: var(--aol-orange); }
.ad-title { color: var(--aol-yellow); font-family: Impact, Arial; font-size: 22px; letter-spacing: 1px; }
.ad-sub   { color: #999; font-size: 10px; margin-top: 4px; }
.ad-email { color: var(--aol-orange); font-size: 12px; font-weight: bold; margin-top: 4px; }

/* ── Under Construction ───────────────────────────────────── */
.under-con {
    background: repeating-linear-gradient(45deg, #FFD700, #FFD700 10px, #000 10px, #000 20px);
    color: #FFFF00;
    font-weight: bold;
    text-align: center;
    padding: 4px;
    font-size: 10px;
    text-shadow: 1px 1px 0 #000;
    margin-bottom: 10px;
}

/* ── News Ticker ──────────────────────────────────────────── */
.news-ticker {
    background: #FFFFCC;
    border: 1px solid #CCCC00;
    padding: 4px 8px;
    font-size: 11px;
    margin-bottom: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}
.news-ticker strong { color: #CC0000; white-space: nowrap; }

/* ── Separator ────────────────────────────────────────────── */
.hr-retro { border: none; border-top: 2px solid var(--win-grey-dark); border-bottom: 1px solid #fff; margin: 6px 0; }

/* ── l33t box ─────────────────────────────────────────────── */
.l33t-box {
    background: #000;
    color: #00FF00;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 7px;
    line-height: 1.8;
    text-shadow: 0 0 4px #00FF00;
}

/* ── Link Us box ──────────────────────────────────────────── */
.link-us-btn {
    width: 88px;
    height: 31px;
    background: linear-gradient(135deg, #000080, #003399);
    border: 1px solid #6699CC;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aol-yellow);
    font-family: Impact, Arial;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin: 4px auto;
    text-decoration: none;
    cursor: pointer;
}
.link-code-box {
    background: #000;
    color: #00FF00;
    font-family: 'Courier New', monospace;
    font-size: 9px;
    padding: 5px;
    margin-top: 6px;
    word-break: break-all;
    display: none;
    line-height: 1.5;
}

/* ── Status Bar ───────────────────────────────────────────── */
#status-bar {
    background: var(--win-grey);
    border-top: 1px solid #fff;
    padding: 3px 8px;
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.status-panel {
    border: 1px solid;
    border-color: var(--win-grey-dark) #fff #fff var(--win-grey-dark);
    padding: 1px 8px;
    display: inline-block;
}

/* ── Footer ───────────────────────────────────────────────── */
#site-footer {
    background: linear-gradient(180deg, #003399, #001166);
    color: #9999CC;
    text-align: center;
    padding: 12px;
    font-size: 10px;
    border-top: 2px solid var(--aol-yellow);
    line-height: 2;
}
#site-footer a { color: var(--aol-yellow); text-decoration: none; }
#site-footer a:hover { text-decoration: underline; }
.footer-links { margin: 6px 0; }
.footer-links a { margin: 0 6px; }
.footer-webring { margin-bottom: 6px; }
.footer-copy { color: #6677AA; font-size: 10px; }

/* ── Friend Rows ──────────────────────────────────────────── */
.friend-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px dotted #ccc; }
.friend-info a { display: inline; padding: 0; font-size: 11px; color: var(--text-link); }
.friend-info a:before { content: ''; }
.friend-info span { font-size: 10px; color: #666; display: block; }

/* ── 88x31 Buttons ────────────────────────────────────────── */
.btn-88 {
    width: 88px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Impact, Arial;
    font-size: 10px;
    font-weight: bold;
    border: 1px solid #000;
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* ── Guestbook ────────────────────────────────────────────── */
.guestbook-entry {
    background: #fff;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    padding: 10px;
    margin-bottom: 8px;
}
.gb-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; border-bottom: 1px solid #eee; padding-bottom: 4px; }
.gb-name { font-weight: bold; font-size: 13px; color: #003399; }
.gb-date { font-size: 10px; color: #666; }
.gb-msg  { font-size: 12px; line-height: 1.7; }
.gb-email-admin { font-size: 10px; color: #CC0000; margin-top: 4px; }
.gb-form input[type=text],
.gb-form input[type=email],
.gb-form textarea {
    width: 100%;
    border: 2px inset #999;
    padding: 5px 7px;
    font-size: 12px;
    font-family: var(--font-main);
    margin-bottom: 6px;
}
.gb-form textarea { height: 100px; resize: vertical; }
.btn-submit {
    background: var(--aol-blue);
    color: #fff;
    border: 2px outset #6699CC;
    padding: 6px 18px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--font-main);
}
.btn-submit:hover { background: var(--aol-blue-light); }
.btn-delete {
    background: #CC0000;
    color: #fff;
    border: 2px outset #FF3333;
    padding: 3px 8px;
    font-size: 10px;
    cursor: pointer;
    font-family: var(--font-main);
    text-decoration: none;
}

/* ── Alerts ───────────────────────────────────────────────── */
.alert { padding: 8px 12px; margin-bottom: 10px; border: 1px solid; font-size: 12px; }
.alert-success { background: #d4edda; border-color: #c3e6cb; color: #155724; }
.alert-error   { background: #f8d7da; border-color: #f5c6cb; color: #721c24; }

/* ── Games Page ───────────────────────────────────────────── */
body.page-games { background: linear-gradient(180deg, #0a1a00, #0d2200, #0a1a00); }
body.page-games #site-wrapper { background: #1a2a0a; border-color: #4a6a1a; }
body.page-games #site-header { background: linear-gradient(180deg, #0d2200, #1a3300, #0d2200); border-bottom-color: #8B7355; }
body.page-games #site-logo { color: #8B7355; }
body.page-games #main-nav { background: linear-gradient(180deg, #1a3300, #0d2200); border-bottom-color: #8B7355; }
body.page-games #main-nav ul li a { border-right-color: #2a4a0a; }
body.page-games #main-nav ul li a:hover,
body.page-games #main-nav ul li a.active { background: #8B7355; color: #000; }
body.page-games #main-layout { background: #1a2a0a; }
body.page-games #sidebar-left,
body.page-games #sidebar-right { border-color: #4a6a1a; }
body.page-games .win-panel { border-color: #4a6a1a #1a2a0a #1a2a0a #4a6a1a; }
body.page-games .win-panel-title { background: linear-gradient(to right, #1a3300, #2a5500); }
body.page-games .win-panel-body { background: #0d1f00; color: #8B9B6B; }
body.page-games .win-panel-body a { color: #8B7355; }
body.page-games .content-box { border-color: #4a6a1a #1a2a0a #1a2a0a #4a6a1a; }
body.page-games .content-box-body { background: #0d1f00; color: #8B9B6B; }
body.page-games #site-footer { background: linear-gradient(180deg, #0d2200, #060f00); border-top-color: #8B7355; }
body.page-games #status-bar { background: #1a2a0a; }
body.page-games #marquee-strip { background: #000d00; }
body.page-games #ie-titlebar { background: linear-gradient(to right, #1a3300, #2a5500); }
body.page-games #ie-menubar { background: #1a2a0a; }
body.page-games .ie-menu-item { color: #8B9B6B; }
body.page-games #ie-addressbar { background: #1a2a0a; }

.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px; }
.game-card {
    background: #0d1f00;
    border: 2px solid #4a6a1a;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.1s;
}
.game-card:hover { border-color: #8B7355; transform: translateY(-2px); }
.game-thumb {
    width: 100%;
    height: 90px;
    background: #000d00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    border: 1px inset #2a4a0a;
    margin-bottom: 6px;
    overflow: hidden;
}
.game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-card-name  { color: #8B7355; font-size: 11px; font-weight: bold; }
.game-card-cat   { color: #4a6a2a; font-size: 10px; }
.game-card-plays { color: #3a5a1a; font-size: 10px; }
.ruffle-container { width: 100%; background: #000; border: 3px solid #4a6a1a; min-height: 400px; }

/* ── Search Page ──────────────────────────────────────────── */
.search-hero { background: linear-gradient(135deg, #000033, #000066, #000033); padding: 40px 20px; text-align: center; border-bottom: 3px solid var(--aol-yellow); }
.search-logo { font-family: Impact, Arial; font-size: 52px; letter-spacing: 8px; color: var(--aol-yellow); text-shadow: 3px 3px 0 #000; margin-bottom: 16px; }
.search-logo span:nth-child(1) { color: #4285F4; }
.search-logo span:nth-child(2) { color: #EA4335; }
.search-logo span:nth-child(3) { color: #FBBC05; }
.search-logo span:nth-child(4) { color: #4285F4; }
.search-logo span:nth-child(5) { color: #34A853; }
.search-logo span:nth-child(6) { color: #EA4335; }
.search-form-wrap { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.search-input-big {
    width: 500px;
    max-width: 90%;
    padding: 10px 16px;
    font-size: 15px;
    font-family: var(--font-main);
    border: 3px solid var(--aol-yellow);
    border-radius: 25px;
    background: #fff;
    outline: none;
}
.search-input-big:focus { border-color: var(--aol-orange); box-shadow: 0 0 8px rgba(255,102,0,0.4); }
.search-btn-big {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: bold;
    background: var(--aol-yellow);
    border: 2px solid #CCAA00;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-main);
}
.search-tabs { display: flex; gap: 0; border-bottom: 2px solid #ccc; margin-bottom: 16px; }
.search-tab { padding: 6px 16px; font-size: 12px; cursor: pointer; border: 1px solid transparent; text-decoration: none; color: #444; }
.search-tab.active { border: 1px solid #ccc; border-bottom: 2px solid #fff; margin-bottom: -2px; background: #fff; color: #000; font-weight: bold; }
.search-result { padding: 12px 0; border-bottom: 1px solid #eee; }
.search-result-type { font-size: 10px; color: #666; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.search-result h3 { font-size: 14px; margin-bottom: 3px; }
.search-result h3 a { text-decoration: none; color: #1a0dab; }
.search-result h3 a:hover { text-decoration: underline; }
.search-result p { font-size: 12px; color: #545454; }
.search-result-url { font-size: 11px; color: #006621; margin-top: 2px; }
.search-count { font-size: 12px; color: #70757a; margin-bottom: 16px; }

/* ── 404 Matrix Page ──────────────────────────────────────── */
body.page-404 { background: #000; padding: 0; margin: 0; }
#matrix-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.error-404-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    font-family: 'Courier New', monospace;
    color: #00FF00;
    text-shadow: 0 0 10px #00FF00, 0 0 20px #00FF00;
}
.error-404-code { font-size: 120px; font-weight: bold; line-height: 1; animation: pulse404 2s ease-in-out infinite; }
.error-404-msg { font-size: 18px; margin: 10px 0; letter-spacing: 3px; }
.error-404-sub { font-size: 13px; color: #00CC00; margin: 8px 0 20px; }
.error-404-link {
    display: inline-block;
    color: #00FF00;
    border: 2px solid #00FF00;
    padding: 10px 24px;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    box-shadow: 0 0 10px #00FF00, inset 0 0 10px rgba(0,255,0,0.1);
    transition: all 0.3s;
}
.error-404-link:hover { background: #00FF00; color: #000; box-shadow: 0 0 20px #00FF00; }
@keyframes pulse404 { 0%,100%{opacity:1;text-shadow:0 0 10px #00FF00,0 0 40px #00FF00} 50%{opacity:0.7;text-shadow:0 0 5px #00FF00} }

/* ── Animations ───────────────────────────────────────────── */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.blink { animation: blink 1s step-end infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.6} }
.pulse { animation: pulse 2s ease-in-out infinite; }

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: #666; }
.text-small  { font-size: 10px; }
.mt-4  { margin-top: 4px; }
.mt-6  { margin-top: 6px; }
.mb-0  { margin-bottom: 0; }
.w-full { width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 16px; }
::-webkit-scrollbar-track { background: var(--win-grey); }
::-webkit-scrollbar-thumb { background: #9E9E9E; border: 2px solid; border-color: #fff #808080 #808080 #fff; }

/* ── Main Nav Dropdown (Links > Sites) ───────────────────── */
#main-nav {
    overflow: visible !important;
}
#main-nav ul {
    overflow: visible !important;
}
#main-nav ul li.has-dropdown {
    position: relative;
}
#main-nav ul li.has-dropdown .nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #002277;
    border: 1px solid #FFCC00;
    border-top: none;
    min-width: 140px;
    z-index: 9999;
    box-shadow: 2px 4px 8px rgba(0,0,0,0.5);
}
#main-nav ul li.has-dropdown:hover .nav-dropdown {
    display: block;
}
#main-nav ul li.has-dropdown .nav-dropdown a {
    color: #fff !important;
    text-decoration: none;
    padding: 7px 14px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    display: block !important;
    border-right: none !important;
    border-bottom: 1px solid #334499 !important;
    white-space: nowrap;
    background: none !important;
}
#main-nav ul li.has-dropdown .nav-dropdown a:hover {
    background: #FFCC00 !important;
    color: #000033 !important;
}
#main-nav ul li.has-dropdown > a::after {
    content: ' \25BE';
    font-size: 9px;
    opacity: 0.8;
}
