/* =================================================================
   ClassicStory+ ? Dark Theme Stylesheet
   ================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
    --bg:        #0d0802;
    --bg2:       #150e04;
    --bg3:       #1e1508;
    --card:      #1a1205;
    --card2:     #221808;
    --border:    #3a2a10;
    --border2:   #4a3818;
    --orange:    #e07800;
    --orange-lt: #ff9900;
    --gold:      #f5b833;
    --gold-lt:   #ffe060;
    --cream:     #fff3d0;
    --text:      #e8d8b0;
    --muted:     #8a7050;
    --green:     #4aec5a;
    --green-dk:  #2a9c38;
    --blue:      #3a8fd8;
    --shadow:    0 4px 18px rgba(0,0,0,.55);
    --shadow-lg: 0 10px 36px rgba(0,0,0,.7);
    --r:         10px;
}

body {
    background: var(--bg);
    color: var(--text);
    font: 14px/1.6 "Trebuchet MS", Arial, Verdana, sans-serif;
    min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lt); text-decoration: none; }
img { display: block; max-width: 100%; border: 0; }
ul { list-style: none; }

/* ?? Falling leaves canvas ?? */
#maple-leaves {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 9999;
}

/* ?? Topbar ?? */
#topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 6px clamp(14px,3vw,52px);
    background: #080501; color: var(--muted); font-size: 11px;
    border-bottom: 1px solid #1e1408;
}
#topbar strong { color: var(--gold); }
#topbar a { color: var(--gold); font-weight: 700; }
#topbar a:hover { color: #fff; }
.top-right { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.online-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(74,236,90,.1); border: 1px solid rgba(74,236,90,.25);
    border-radius: 999px; padding: 2px 10px;
    color: var(--green); font-weight: 900; font-size: 11px;
}
@keyframes pulse-dot {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.5; transform:scale(1.4); }
}
.online-dot {
    display: inline-block; width: 7px; height: 7px;
    background: var(--green); border-radius: 50%;
    animation: pulse-dot 1.8s ease-in-out infinite;
}

/* ?? Header / Logo bar ?? */
#header {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px clamp(14px,3vw,52px);
    background: linear-gradient(180deg, #1e1208 0%, #110a02 100%);
    border-bottom: 2px solid var(--border2);
}
#logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-image { height: 52px; width: auto; filter: drop-shadow(0 2px 8px rgba(255,160,0,.4)); }
.logo-text .logo-name {
    font: 900 26px/1 "Arial Black", Arial, sans-serif;
    color: var(--gold); text-shadow: 0 0 12px rgba(255,180,0,.5);
    letter-spacing: -1px;
}
.logo-name .plus { color: var(--orange-lt); }
.logo-text .logo-tag { color: var(--muted); font-size: 11px; font-weight: 700; margin-top: 2px; }
.header-right { color: var(--muted); text-align: right; font-size: 12px; font-weight: 700; }
.header-right strong { display: block; color: var(--gold); font-size: 15px; }

/* ?? Navigation ?? */
#nav {
    display: flex; align-items: center;
    padding: 0 clamp(14px,3vw,52px);
    background: linear-gradient(180deg, #1a1005 0%, #120b02 100%);
    border-bottom: 2px solid var(--border2);
    overflow-x: auto; min-height: 44px;
    position: sticky; top: 0; z-index: 100;
}
#nav a {
    color: var(--text); font-size: 12px; font-weight: 900;
    text-transform: uppercase; letter-spacing: .05em;
    padding: 13px 13px; white-space: nowrap;
    border-bottom: 3px solid transparent; text-decoration: none;
    transition: color .15s, border-color .15s;
}
#nav a:hover, #nav a.active {
    color: var(--gold-lt); border-bottom-color: var(--gold);
}

/* ?? Stats bar ?? */
.stats-bar {
    display: flex !important; align-items: center; justify-content: center;
    gap: 24px; flex-wrap: wrap;
    padding: 7px clamp(14px,3vw,52px);
    background: linear-gradient(180deg, #0a1a08 0%, #061204 100%);
    border-bottom: 1px solid #1a3012;
    font-size: 11px; font-weight: 900; color: #6ab858; letter-spacing: .04em;
}
.stats-bar .sb-item { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.stats-bar .sb-val  { color: var(--green); font-size: 12px; }
.stats-bar .sb-sep  { color: #1a3012; }

/* ?? Hero ?? */
.hero-panel {
    position: relative; overflow: hidden;
    display: flex; align-items: center;
    min-height: 340px; padding: 40px 44px 72px;
    border-radius: var(--r);
    background: url("../img/hero-bg.png") center/cover no-repeat;
    box-shadow: var(--shadow-lg);
    color: #fff;
}
.hero-panel::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8,4,0,.88) 0%, rgba(8,4,0,.6) 50%, rgba(8,4,0,.1) 100%);
}
/* Green grass strip */
.hero-panel::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; z-index: 1;
    background:
        radial-gradient(circle at 10px 22px, #5fc22a 0 8px, transparent 9px) repeat-x,
        radial-gradient(circle at 30px 16px, #4aac1e 0 6px, transparent 7px) repeat-x,
        linear-gradient(180deg, #6ed430 0%, #3d9a18 100%);
    background-size: 38px 36px, 38px 36px, auto;
    pointer-events: none;
}
.hero-copy {
    position: relative; z-index: 2; max-width: 560px;
}
.eyebrow {
    color: var(--gold); font-size: 11px; font-weight: 900;
    text-transform: uppercase; letter-spacing: .15em; margin-bottom: 6px;
}
@keyframes text-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.hero-copy h1 {
    font: 900 clamp(36px,5vw,64px)/.9 "Arial Black", Arial, sans-serif;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff 25%, var(--gold) 50%, #fff 75%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 4s linear infinite;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,.5));
}
.hero-copy p { color: #ffe8a0; font-size: 15px; font-weight: 700; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* Class sprites in hero */
.hero-sprites {
    position: absolute; right: clamp(14px,4vw,60px); bottom: 40px;
    display: flex; align-items: flex-end; gap: 4px; z-index: 3;
    pointer-events: none;
}
.hero-sprites img {
    height: clamp(100px,14vw,190px); width: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.7));
    flex-shrink: 0;
}
@keyframes sprite-float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.hero-sprites img:nth-child(1) { animation: sprite-float 3.0s ease-in-out infinite; }
.hero-sprites img:nth-child(2) { animation: sprite-float 3.4s ease-in-out infinite .3s; }
.hero-sprites img:nth-child(3) { animation: sprite-float 2.8s ease-in-out infinite .6s; }
.hero-sprites img:nth-child(4) { animation: sprite-float 3.2s ease-in-out infinite .9s; }
.hero-sprites img:nth-child(5) { animation: sprite-float 3.6s ease-in-out infinite 1.2s; }

.hero-mobs {
    position: absolute; right: clamp(14px,4vw,60px); bottom: 34px;
    display: flex; align-items: flex-end; gap: 8px; z-index: 2; pointer-events: none;
}
.hero-mobs img {
    height: clamp(40px,5.5vw,72px); width: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,.5));
}
@keyframes mob-bounce {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
.hero-mobs img:nth-child(1) { animation: mob-bounce 2.2s ease-in-out infinite; }
.hero-mobs img:nth-child(2) { animation: mob-bounce 2.8s ease-in-out infinite .4s; }
.hero-mobs img:nth-child(3) { animation: mob-bounce 2.4s ease-in-out infinite .8s; }
.hero-mobs img:nth-child(4) { animation: mob-bounce 3.0s ease-in-out infinite 1.2s; }

@media (max-width: 700px) { .hero-sprites, .hero-mobs { display: none; } }

/* ?? Buttons ?? */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 40px; padding: 9px 22px;
    border-radius: var(--r); border: 1px solid transparent;
    font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em;
    cursor: pointer; text-decoration: none; transition: all .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-orange {
    background: linear-gradient(180deg, var(--orange-lt), var(--orange));
    border-color: #7a3800; color: #fff;
    box-shadow: 0 4px 0 #5a2800, 0 0 16px rgba(255,140,0,.3);
}
.btn-orange:hover { box-shadow: 0 4px 0 #5a2800, 0 0 26px rgba(255,160,0,.5); filter: brightness(1.1); }
.btn-soft {
    background: rgba(255,255,255,.1); color: var(--cream);
    border-color: rgba(255,255,255,.2); backdrop-filter: blur(4px);
}
.btn-soft:hover { background: rgba(255,255,255,.18); }
.btn-blue {
    background: linear-gradient(180deg, #5aafef, #2275c0);
    border-color: #154e8a; color: #fff; box-shadow: 0 4px 0 #103a6a;
}
.btn-blue:hover { box-shadow: 0 4px 0 #103a6a, 0 0 20px rgba(80,160,255,.4); }
.btn-green {
    background: linear-gradient(180deg, #60d828, #3aaa0e);
    border-color: #247a06; color: #fff; box-shadow: 0 4px 0 #185204;
}
.btn-discord {
    background: #5865f2; color: #fff; border-color: #4752c4;
    box-shadow: 0 4px 0 #3742b4;
}
.btn-discord:hover { box-shadow: 0 4px 0 #3742b4, 0 0 20px rgba(88,101,242,.5); }
.btn-gray {
    background: linear-gradient(180deg,#3a3028,#252018);
    border-color: #4a3818; color: var(--text); box-shadow: 0 3px 0 #150f06;
}

/* ?? Main layout ?? */
#wrap { background: transparent; }
#main {
    width: min(1440px, calc(100% - 24px));
    margin: 0 auto; padding: 22px 0 50px;
    animation: page-in .4s ease-out;
}
@keyframes page-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
#col-left, #col-right { display: none !important; }
#col-center { width: 100% !important; float: none !important; margin: 0 !important; }
.site-page, .changes-page, .page-body { display: grid; gap: 20px; }

/* ?? Cards ?? */
.card, .skill-card, .nx-pkg, .dl-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden;
    transition: transform .18s, box-shadow .18s;
}
.card { padding: 18px; }
.card:hover, .dl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card-title, .page-title, .section-title, .box-title {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; margin: -18px -18px 16px;
    background: linear-gradient(180deg, #2a1e08, #1a1204);
    border-bottom: 1px solid var(--border2);
    color: var(--gold); font-size: 13px; font-weight: 900;
    text-transform: uppercase; letter-spacing: .06em;
}
.page-title, .section-title { margin: 0 0 16px; border-radius: var(--r) var(--r) 0 0; }

/* ?? Visual cards (map thumbnails) ?? */
.visual-card {
    position: relative; min-height: 190px; border-radius: var(--r);
    overflow: hidden; display: flex; flex-direction: column;
    justify-content: flex-end; padding: 16px; color: #fff;
    box-shadow: var(--shadow); background-size: cover; background-position: center;
    background-color: #0d0802; text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    border: 1px solid var(--border);
}
.visual-card:hover { transform: translateY(-5px) scale(1.01); box-shadow: var(--shadow-lg); }
.visual-card::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.82) 100%);
}
.visual-card > * { position: relative; z-index: 1; }
.visual-card h3 { color: #fff; font-size: 19px; margin-bottom: 4px; text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.visual-card p  { color: var(--gold); font-weight: 700; font-size: 12px; }

.visual-download  { background-image: url("../img/ms-snail-ground.png"); }
.visual-register  { background-image: url("../img/ms-snail-garden.png"); }
.visual-rankings  { background-image: url("../img/ms-split-road.png"); }
.visual-guides    { background-image: url("../img/ms-mushroom-garden.png"); }
.visual-community { background-image: url("../img/ms-field.png"); }
.visual-shop      { background-image: url("../img/ms-slimetree.png"); }
.visual-support   { background-image: url("../img/ms-snail-park.png"); }
.visual-nx        { background-image: url("../img/ms-render.png"); }
.visual-changes   { background-image: url("../img/ms-southperry.png"); }
.visual-home      { background-image: url("../img/ms-mushroom-town.png"); }

/* ?? Feature cards ?? */
.feature-card {
    padding: 22px 18px; text-align: center;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--r); box-shadow: var(--shadow);
    transition: transform .18s, box-shadow .18s;
    text-decoration: none; display: block;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 58px; height: 58px; margin: 0 auto 12px;
    display: grid; place-items: center; border-radius: 16px;
    background: linear-gradient(180deg, #2e2008, #1a1204);
    border: 1px solid var(--border2); font-size: 28px;
}
.feature-card h3 { color: var(--gold); font-size: 15px; margin-bottom: 6px; font-weight: 900; }
.feature-card p  { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ?? Grids ?? */
.grid   { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); }
.stack  { display: grid; gap: 12px; }

/* ?? Mock shell ?? */
.mock-shell {
    background: var(--card2); border: 1px solid var(--border);
    border-radius: var(--r); box-shadow: var(--shadow); padding: 18px;
}
.mock-strip {
    height: 30px; margin: 18px -18px -18px; border-radius: 0 0 var(--r) var(--r);
    background:
        radial-gradient(circle at 10px 18px, #5fc22a 0 6px, transparent 7px) repeat-x,
        radial-gradient(circle at 28px 14px, #4aac1e 0 5px, transparent 6px) repeat-x,
        linear-gradient(180deg,#68c830,#3d9a18);
    background-size: 34px 30px, 34px 30px, auto;
}

/* ?? Step list ?? */
.step-list { display: grid; gap: 10px; }
.step {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px;
    background: var(--bg3); border: 1px solid var(--border); border-radius: var(--r);
}
.step-n {
    width: 28px; height: 28px; flex: 0 0 28px;
    display: grid; place-items: center; border-radius: 50%;
    background: linear-gradient(180deg, var(--orange-lt), var(--orange));
    color: #fff; font-weight: 900; font-size: 13px;
}
.step-t { font-weight: 900; color: var(--cream); font-size: 13px; }
.step-d { color: var(--muted); font-size: 12px; }

/* ?? Rank tabs ?? */
.rank-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.rank-tabs a {
    padding: 7px 14px; border-radius: 999px;
    background: var(--bg3); border: 1px solid var(--border);
    color: var(--muted); font-weight: 900; text-transform: uppercase; font-size: 11px;
    text-decoration: none; transition: all .15s;
}
.rank-tabs a.active, .rank-tabs a:hover {
    background: var(--orange); color: #fff; border-color: var(--orange);
}

/* ?? Rank job filter ?? */
.rank-job-tabs {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px;
    background: var(--bg3); padding: 10px 12px;
    border-radius: var(--r); border: 1px solid var(--border);
}
.rank-job-tab {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 12px; border-radius: var(--r);
    background: var(--card); border: 1px solid var(--border);
    color: var(--muted); font-weight: 900; font-size: 10px;
    text-transform: uppercase; text-decoration: none; min-width: 60px;
    transition: all .15s;
}
.rank-job-tab img { height: 32px; width: auto; image-rendering: pixelated; }
.rank-job-tab.active, .rank-job-tab:hover {
    background: var(--orange); color: #fff; border-color: var(--orange);
}

/* ?? Rank table ?? */
.rank-full {
    width: 100%; border-collapse: separate; border-spacing: 0;
    overflow: hidden; border-radius: var(--r);
    background: var(--card); border: 1px solid var(--border);
}
.rank-full th {
    background: linear-gradient(180deg,#2a1e08,#1a1204);
    color: var(--gold); padding: 11px 13px; text-align: left; font-size: 12px;
}
.rank-full td { padding: 11px 13px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text); }
.rank-full tr:nth-child(even) td { background: var(--bg3); }
.rank-full tr:hover td { background: #241a08; }
.rank-full .r1 { color: var(--gold); font-weight: 900; }
.rank-full .r2 { color: #a0a8b8; font-weight: 900; }
.rank-full .r3 { color: #c87830; font-weight: 900; }
.jdot { display:inline-block; width:9px; height:9px; border-radius:3px; margin-right:5px; }

/* ?? Forms ?? */
.form-panel { max-width: 680px; margin: 0 auto; }
.frow { display: grid; gap: 6px; margin-bottom: 13px; }
.frow label { font-weight: 900; color: var(--gold); font-size: 12px; }
.frow input[type=text], .frow input[type=password],
.frow input[type=email], .frow input[type=date],
.frow select, .frow textarea {
    width: 100%; min-height: 40px; padding: 9px 13px;
    border: 1px solid var(--border2); border-radius: var(--r);
    background: var(--bg3); color: var(--cream); font-size: 14px; outline: none;
}
.frow input:focus, .frow select:focus, .frow textarea:focus {
    border-color: var(--orange); box-shadow: 0 0 0 3px rgba(224,120,0,.2);
}
.frow .hint { color: var(--muted); font-size: 11px; }
.msg-ok  { padding: 11px 14px; border-radius: var(--r); margin-bottom: 14px;
    background: rgba(60,180,60,.1); border: 1px solid #2a8c2a; color: #6aec6a; font-weight: 700; }
.msg-err { padding: 11px 14px; border-radius: var(--r); margin-bottom: 14px;
    background: rgba(200,50,50,.1); border: 1px solid #8c2a2a; color: #ec6a6a; font-weight: 700; }
.tos-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
    font-size: 12px; color: var(--muted); }

/* ?? NX packages ?? */
.nx-pkgs { display: grid; grid-template-columns: repeat(4,minmax(160px,1fr)); gap: 18px; margin-bottom: 18px; }
.nx-pkg {
    padding: 24px 16px 20px; text-align: center;
    background: var(--card); border: 2px solid var(--border);
    border-radius: 14px; box-shadow: var(--shadow);
    cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.nx-pkg:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.nx-pkg.pop { border-color: var(--orange); box-shadow: 0 0 24px rgba(224,120,0,.25); }
.nx-badge {
    display: inline-block; margin-bottom: 9px; padding: 3px 10px;
    border-radius: 999px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 900;
}
.nx-coin-img { height: 80px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 10px; }
.nx-coin-img img { max-height: 80px; width: auto; image-rendering: pixelated; }
.nx-amt  { font: 900 22px/1 "Arial Black", Arial, sans-serif; color: var(--cream); margin-bottom: 5px; }
.nx-lbl  { color: var(--green); font-weight: 700; font-size: 12px; margin: 4px 0 10px; }
.nx-price{ color: var(--gold); font-weight: 900; font-size: 18px; margin: 0 0 14px; }

/* ?? Shop items ?? */
.shop-item { padding: 16px; text-align: center; }
.shop-item-img { height: 84px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.shop-item-img img { max-height: 84px; max-width: 84px; width: auto; height: auto; image-rendering: pixelated; }
.shop-item-name  { font-weight: 900; color: var(--cream); font-size: 12px; margin-bottom: 3px; }
.shop-item-price { color: var(--gold); font-weight: 900; font-size: 13px; margin-bottom: 10px; }

/* ?? Class icons ?? */
.class-icons { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.ci { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ci img { height: 46px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.ci span { font-size: 10px; font-weight: 900; color: var(--muted); }

/* ?? Intro box ?? */
.intro-box {
    padding: 16px 18px; border-radius: var(--r);
    background: var(--card2); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.intro-box strong { color: var(--gold); font-size: 15px; }
.intro-box .last-updated { margin-top: 4px; color: var(--orange-lt); font-weight: 900; font-size: 11px; }

/* ?? Skill changes ?? */
.spoiler-group { margin-bottom: 8px; }
.spoiler-group summary {
    cursor: pointer; list-style: none; padding: 11px 14px;
    border-radius: var(--r); background: var(--card2); border: 1px solid var(--border);
    color: var(--gold); font-weight: 900; font-size: 13px; transition: background .15s;
}
.spoiler-group summary:hover { background: var(--bg3); }
.spoiler-group summary::-webkit-details-marker { display: none; }
.spoiler-content {
    margin-top: 5px; padding: 14px; background: var(--bg3);
    border: 1px solid var(--border); border-radius: var(--r);
}
.skill-card { margin-bottom: 8px; }
.skill-card-head {
    display:flex; align-items:center; gap:10px; padding:11px 14px;
    background:var(--card2); border-bottom:1px solid var(--border);
}
.skill-icon {
    width:40px; height:40px; flex:0 0 40px; display:grid; place-items:center;
    border-radius:12px; background:var(--bg3); border:1px solid var(--border2); font-size:20px;
}
.skill-name { font-weight:900; color:var(--cream); font-size:14px; }
.skill-meta { color:var(--muted); font-size:11px; }
.skill-tag {
    margin-left:auto; padding:3px 8px; border-radius:999px; color:#fff;
    background:var(--orange); font-size:10px; font-weight:900; text-transform:uppercase;
}
.tag-new    { background:#2c9c3e; }
.tag-custom { background:var(--orange); }
.tag-note   { background:var(--blue); }
.skill-body { padding:12px 14px; color:var(--text); font-size:13px; }
.skill-body p { margin-bottom:6px; }
.skill-body strong { color:var(--orange-lt); }
.skill-body .note { color:var(--muted); font-size:11px; font-style:italic; }
.rate-table table { width:100%; border-collapse:collapse; font-size:12px; }
.rate-table th { background:var(--bg3); color:var(--gold); padding:5px 9px; text-align:left; }
.rate-table td { padding:4px 9px; border-bottom:1px solid var(--border); color:var(--text); }
.rate-table tr:hover td { background:#1e1508; }
.job-section  { margin-bottom: 20px; }
.job-title { display:flex; align-items:center; gap:8px; margin:18px 0 8px; color:var(--gold); font-size:20px; font-weight:900; }
.job-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:11px; background:var(--bg3); border:1px solid var(--border2); font-size:17px; }
.scale-table { width:100%; border-collapse:collapse; margin-top:7px; background:var(--card); }
.scale-table th, .scale-table td { padding:7px 10px; border-bottom:1px solid var(--border); text-align:left; }
.scale-table th { background:var(--bg3); color:var(--gold); font-weight:900; font-size:12px; }
.scale-table .val { color:var(--orange-lt); font-weight:900; }

/* ?? Discord card ?? */
.discord-card { background: #3b3f9a !important; border-color: #4752c4 !important; }
.discord-card .card-title { background: #2a2f7a !important; border-bottom-color: #1e2460 !important; color: #a8b0ff !important; }
.discord-card p { color: #c8d0ff; }
.discord-count { margin-top: 10px; color: #57f287; font-weight: 900; font-size: 12px; }

/* ?? Mock tabs ?? */
.mock-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.mock-tab {
    padding: 7px 13px; border-radius: var(--r);
    background: var(--bg3); border: 1px solid var(--border);
    color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase;
    cursor: pointer; text-decoration: none; transition: all .15s;
}
.mock-tab.active, .mock-tab:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ?? Misc ?? */
.muted { color: var(--muted); }
.text-sm { font-size: 11px; }
.text-center { text-align: center; }
small { font-size: 10px; font-weight: 400; display: block; margin-top: 2px; }

/* ?? Footer ?? */
#footer {
    padding: 26px clamp(14px,3vw,52px);
    background: #080501; border-top: 3px solid var(--border2);
    color: var(--muted); text-align: center;
}
.ft-links {
    display: flex; justify-content: center; gap: 16px;
    flex-wrap: wrap; margin-bottom: 10px;
}
#footer a { color: var(--gold); font-weight: 700; font-size: 12px; }
#footer a:hover { color: #fff; }
.ft-copy { color: #3a2a10; font-size: 11px; }
.ft-copy span { color: var(--gold); font-weight: 900; }

/* ?? NX Modal ?? */
#nx-modal-bg { position:fixed; inset:0; background:rgba(0,0,0,.85); z-index:900; backdrop-filter:blur(4px); }
#nx-modal {
    position:fixed; top:50%; left:50%; transform:translate(-50%,-50%);
    z-index:901; width:420px; max-width:92vw;
    background:#0e0a02; border:1px solid var(--border2);
    border-radius:16px; padding:30px 28px 22px;
    box-shadow:0 20px 60px rgba(0,0,0,.9); color:var(--text);
}
.nx-modal-close { position:absolute; top:15px; right:17px; background:none; border:none; color:var(--muted); font-size:20px; cursor:pointer; padding:2px 5px; border-radius:4px; transition:color .15s; }
.nx-modal-close:hover { color:#fff; }
.nx-modal-title { font-size:1.3rem; font-weight:800; color:var(--gold); margin-bottom:5px; }
.nx-modal-sub { font-size:.875rem; color:var(--muted); margin-bottom:22px; }
.nx-modal-label { display:block; font-size:.8rem; font-weight:600; color:var(--muted); margin-bottom:7px; }
.nx-modal-input { width:100%; padding:12px 15px; border-radius:9px; border:1.5px solid var(--border2); background:var(--bg3); color:var(--cream); font-size:.95rem; margin-bottom:22px; outline:none; transition:border-color .2s; }
.nx-modal-input:focus { border-color:var(--orange); box-shadow:0 0 0 3px rgba(224,120,0,.2); }
.nx-modal-divider { border:none; border-top:1px solid var(--border); margin:0 0 14px; }
.nx-modal-row { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid var(--border); font-size:.9rem; color:var(--muted); }
.nx-modal-total { display:flex; justify-content:space-between; align-items:center; padding:10px 0 18px; font-weight:800; font-size:1.05rem; color:var(--cream); }
.nx-gold { color:var(--gold); font-weight:700; }
.btn-paypal { display:block; width:100%; padding:14px; border:none; border-radius:10px; background:linear-gradient(135deg,#0070ba,#0096de); color:#fff; font-size:1rem; font-weight:700; cursor:pointer; transition:opacity .2s; }
.btn-paypal:hover { opacity:.9; }
.nx-modal-fine { text-align:center; font-size:.72rem; color:var(--muted); margin-top:11px; }
.nx-note { text-align:center; font-size:.85rem; color:#3a9a3a; margin-top:14px; padding:9px 14px; background:rgba(0,160,0,.07); border:1px solid rgba(0,160,0,.15); border-radius:var(--r); }

/* ?? Responsive ?? */
@media (max-width:1100px) {
    .grid-4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .grid-3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .nx-pkgs{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:900px) {
    .header-right { display:none; }
}
@media (max-width:700px) {
    .grid-2,.grid-3,.grid-4 { grid-template-columns:1fr; }
    .nx-pkgs { grid-template-columns:repeat(2,minmax(0,1fr)); }
    #main { width:min(100% - 16px,1440px); }
    .hero-panel { min-height:200px; padding:24px 20px 56px; }
    #topbar { flex-direction:column; align-items:flex-start; }
}

/* =================================================================
   ClassicStory+ homepage remake — Maple-style screenshot layout
   These rules override the older dark layout while keeping the rest
   of the site's existing pages/classes working.
   ================================================================= */

body {
    background:
        radial-gradient(circle at 50% -120px, rgba(255,148,24,.14), transparent 360px),
        linear-gradient(180deg, #050301 0%, #0b0702 48%, #050301 100%);
    color: var(--text);
    overflow-x: hidden;
}

#maple-leaves { z-index: 80; opacity: .95; }

.cs-top-nav {
    position: sticky;
    top: 0;
    z-index: 120;
    background: linear-gradient(180deg, #171008 0%, #080502 100%);
    border-bottom: 2px solid #a34c00;
    box-shadow: 0 3px 0 rgba(0,0,0,.75), 0 10px 24px rgba(0,0,0,.5);
}

.cs-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 45px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 14px;
}

.cs-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff8c18 !important;
    text-decoration: none !important;
    filter: drop-shadow(0 2px 0 #000);
}

.brand-leaf {
    font-size: 24px;
    line-height: 1;
    transform: rotate(-12deg);
    display: inline-block;
}

.brand-name {
    font: 900 28px/1 "Arial Black", Impact, Arial, sans-serif;
    letter-spacing: -1.2px;
    color: #ff8c18;
    text-shadow:
        2px 2px 0 #4b1b00,
        0 0 10px rgba(255,117,0,.35);
    white-space: nowrap;
}

.brand-plus { color: #ffd15b; }

.cs-top-nav #nav,
.cs-nav-links {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 1px;
    padding: 0;
    min-height: 45px;
    background: transparent;
    border: 0;
    overflow-x: auto;
    position: static;
}

.cs-top-nav #nav a,
.cs-nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    color: #f1d9aa;
    font: 900 11px/1 "Trebuchet MS", Arial, sans-serif;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    text-shadow: 0 1px 0 #000;
}

.cs-top-nav #nav a:hover,
.cs-top-nav #nav a.active,
.cs-nav-links a:hover,
.cs-nav-links a.active {
    color: #fff1ba;
    border-bottom-color: #ff7b00;
    background: linear-gradient(180deg, rgba(255,129,0,.12), rgba(255,129,0,.04));
}

.cs-top-nav #nav a.nav-buy,
.cs-nav-links a.nav-buy {
    color: #ffd064;
}

.nav-online {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-left: 10px;
    color: #4aff5d;
    font: 900 11px/1 "Trebuchet MS", Arial, sans-serif;
    white-space: nowrap;
    text-shadow: 0 1px 0 #000;
}

.online-dot {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 8px rgba(74,255,93,.75);
}

#wrap { background: transparent; }

#main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 28px;
}

.site-page.home-remake {
    display: grid;
    gap: 10px;
}

/* Hero map scene */
.map-hero {
    position: relative;
    min-height: 325px;
    overflow: hidden;
    border-left: 1px solid #44270b;
    border-right: 1px solid #44270b;
    border-bottom: 2px solid #050301;
    background-color: #72b3ec;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 26%, rgba(0,0,0,0) 52%, rgba(0,0,0,.3) 100%),
        url("../img/hero-bg.png"),
        url("img/hero-bg.png"),
        radial-gradient(circle at 12% 20%, #fff 0 24px, transparent 25px),
        radial-gradient(circle at 21% 17%, #fff 0 32px, transparent 33px),
        radial-gradient(circle at 77% 18%, #fff 0 30px, transparent 31px),
        linear-gradient(180deg, #6db4ec 0%, #8cd1ff 42%, #58a548 43%, #357a2c 66%, #4a2b12 67%, #1d1107 100%);
    background-size:
        auto,
        cover,
        cover,
        260px 120px,
        290px 140px,
        280px 130px,
        auto;
    background-position:
        center,
        center,
        center,
        8% 14%,
        23% 12%,
        78% 10%,
        center;
    box-shadow: inset 0 -80px 70px rgba(0,0,0,.32), 0 8px 22px rgba(0,0,0,.6);
}

.map-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 78%, rgba(101,56,19,.85) 0 70px, transparent 72px),
        radial-gradient(circle at 86% 76%, rgba(101,56,19,.85) 0 86px, transparent 88px),
        linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.18) 100%);
    opacity: .8;
    pointer-events: none;
}

.map-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 86px;
    background:
        radial-gradient(circle at 16px 9px, #80ce42 0 12px, transparent 13px) repeat-x,
        radial-gradient(circle at 38px 14px, #57a82c 0 11px, transparent 12px) repeat-x,
        linear-gradient(180deg, #62b733 0 18px, #3c8320 19px 26px, #5d3517 27px 50px, #301909 51px 100%);
    background-size: 54px 30px, 54px 30px, auto;
    border-top: 2px solid rgba(5,3,1,.45);
    box-shadow: inset 0 6px 0 rgba(255,255,255,.08), inset 0 -18px 0 rgba(0,0,0,.2);
}

.hero-title-wrap {
    position: relative;
    z-index: 3;
    padding-top: 34px;
    text-align: center;
}

.hero-title {
    margin: 0;
    color: #ffc928;
    font: 900 clamp(54px, 8vw, 98px)/.86 "Arial Black", Impact, Arial, sans-serif;
    letter-spacing: -5px;
    -webkit-text-stroke: 3px #2b1600;
    text-shadow:
        0 5px 0 #914000,
        4px 8px 0 #0a0502,
        -4px 8px 0 #0a0502,
        0 0 18px rgba(255,169,0,.38);
}

.hero-title span { color: #ffd93a; }

.hero-subtitle {
    display: inline-block;
    margin-top: 8px;
    color: #fff;
    font: 900 clamp(15px, 2vw, 21px)/1.15 Arial, sans-serif;
    text-shadow: 0 3px 0 #000, 0 0 8px rgba(0,0,0,.9);
}

.hero-character-row {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 56px;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(16px, 3vw, 36px);
    width: min(720px, 78%);
    pointer-events: none;
}

.hero-character-row img {
    width: auto;
    height: clamp(74px, 10vw, 118px);
    image-rendering: pixelated;
    filter: drop-shadow(0 7px 5px rgba(0,0,0,.65));
    animation: hero-bob 3.2s ease-in-out infinite;
}

.hero-character-row img:nth-child(2) { animation-delay: .2s; }
.hero-character-row img:nth-child(3) { animation-delay: .4s; }
.hero-character-row img:nth-child(4) { animation-delay: .6s; }
.hero-character-row img:nth-child(5) { animation-delay: .8s; }

@keyframes hero-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.map-actions {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 13px;
    transform: translateX(-50%);
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.map-actions .btn {
    min-width: 190px;
    min-height: 43px;
    border-radius: 7px;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    border-color: #b45507;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 0 #572506, 0 8px 12px rgba(0,0,0,.45);
}

.map-actions .btn.alt {
    background: linear-gradient(180deg, #f49b22, #d65d05);
}

.map-prop {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.prop-free-market {
    left: 11.5%;
    bottom: 104px;
    padding: 6px 10px;
    color: #fff0bb;
    background: linear-gradient(180deg, #7e4b22, #3d2412);
    border: 2px solid #251004;
    border-radius: 8px;
    font: 900 14px/1.05 "Trebuchet MS", Arial, sans-serif;
    text-align: center;
    text-shadow: 0 2px 0 #000;
    box-shadow: inset 0 0 0 2px rgba(255,204,82,.25), 0 5px 0 rgba(0,0,0,.35);
}

.prop-free-market::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -26px;
    width: 7px;
    height: 26px;
    transform: translateX(-50%);
    background: #3b220d;
    border-left: 1px solid #1a0c04;
    border-right: 1px solid #1a0c04;
}

.prop-portal {
    right: 8.2%;
    bottom: 78px;
    width: 56px;
    height: 80px;
    border-radius: 50% 50% 12px 12px;
    background: radial-gradient(circle at 50% 48%, #efffff 0 8px, #8cf0ff 9px 17px, #4870d7 18px 26px, #171c55 27px 36px, transparent 37px);
    border: 6px solid #5c5a55;
    box-shadow: inset 0 0 16px rgba(255,255,255,.7), 0 0 20px rgba(95,197,255,.7), 0 6px 8px rgba(0,0,0,.5);
}

/* Four top cards */
.home-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 96px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #171007, #0c0803);
    border: 1px solid #5d3a12;
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px #0a0501, inset 0 0 24px rgba(255,128,0,.04), 0 4px 10px rgba(0,0,0,.35);
    color: #ddc9a0;
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.quick-card:hover {
    transform: translateY(-3px);
    border-color: #b86b19;
    background: linear-gradient(180deg, #211508, #100903);
}

.quick-pixel {
    flex: 0 0 80px;
    width: 80px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: radial-gradient(circle at 50% 30%, rgba(255,194,67,.18), transparent 46px), linear-gradient(180deg, #231607, #0d0803);
    border: 1px solid #5a390e;
    font-size: 38px;
    filter: drop-shadow(0 4px 0 rgba(0,0,0,.4));
}

.quick-copy strong {
    display: block;
    color: #ffc13a;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 5px;
    text-shadow: 0 2px 0 #000;
}

.quick-copy small {
    display: block;
    color: #d9c69f;
    font-size: 12px;
    line-height: 1.25;
}

/* Middle panels */
.home-middle-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.6fr 1.05fr;
    gap: 8px;
    align-items: stretch;
}

.home-panel {
    min-height: 188px;
    padding: 16px;
    background:
        radial-gradient(circle at 18% 12%, rgba(255,131,0,.06), transparent 110px),
        linear-gradient(180deg, #140e06, #0a0703);
    border: 1px solid #5d3a12;
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px #090501, 0 4px 10px rgba(0,0,0,.4);
    position: relative;
    overflow: hidden;
}

.home-panel::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -38px;
    width: 150px;
    height: 130px;
    background: radial-gradient(circle, rgba(169,70,0,.15), transparent 70%);
    pointer-events: none;
}

.panel-title {
    margin: 0 0 13px;
    padding: 0 0 9px;
    border-bottom: 1px solid rgba(103,63,19,.75);
    color: #ffc13a;
    font: 900 15px/1 "Trebuchet MS", Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .03em;
    text-shadow: 0 2px 0 #000;
}

.start-steps {
    display: grid;
    gap: 8px;
}

.start-step {
    display: grid;
    grid-template-columns: 28px 28px 1fr;
    gap: 8px;
    align-items: center;
    min-height: 33px;
}

.start-step .step-icon {
    font-size: 22px;
    line-height: 1;
    filter: drop-shadow(0 2px 0 #000);
    text-align: center;
}

.start-step b {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: #fff;
    background: linear-gradient(180deg, #f09a21, #d55a05);
    border: 1px solid #6f2c00;
    border-radius: 50%;
    font-size: 12px;
    box-shadow: 0 2px 0 #321100;
}

.start-step strong {
    display: block;
    color: #fff3d0;
    font-size: 12px;
    line-height: 1.15;
}

.start-step small {
    display: block;
    color: #a78a64;
    font-size: 10px;
    line-height: 1.2;
}

.class-grid-large {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
    position: relative;
    z-index: 2;
}

.class-tile {
    min-height: 112px;
    display: grid;
    justify-items: center;
    align-content: end;
    gap: 4px;
    padding: 10px 8px 7px;
    color: #fff3d0;
    text-decoration: none;
    background: radial-gradient(circle at 50% 20%, rgba(255,184,58,.12), transparent 52px), linear-gradient(180deg, #18100a, #0c0703);
    border: 1px solid #6d4216;
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px #080401;
    transition: transform .15s ease, border-color .15s ease;
}

.class-tile:hover {
    transform: translateY(-3px);
    border-color: #d1791b;
}

.class-tile img {
    height: 58px;
    width: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 3px rgba(0,0,0,.72));
}

.class-tile strong {
    color: #ffe8a3;
    font-size: 11px;
    text-transform: uppercase;
    text-shadow: 0 2px 0 #000;
}

.class-tile span {
    color: #ffc13a;
    font-size: 18px;
    line-height: 1;
    filter: drop-shadow(0 2px 0 #000);
}

.panel-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58%;
    min-height: 28px;
    margin: 12px auto 0;
    color: #ffc13a;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid #8f510c;
    border-radius: 4px;
    background: linear-gradient(180deg, #1a1006, #0d0803);
    box-shadow: inset 0 0 0 1px #090501;
}

.panel-button:hover {
    color: #fff;
    border-color: #e17d15;
}

.community-panel p {
    color: #d9c69f;
    font-size: 12px;
    line-height: 1.35;
    margin: 2px 0 12px;
}

.discord-join {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: min(230px, 100%);
    min-height: 45px;
    margin: 0 auto 8px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none !important;
    text-transform: uppercase;
    background: linear-gradient(180deg, #6d74ff, #5159d8);
    border: 1px solid #7780ff;
    border-radius: 6px;
    box-shadow: 0 4px 0 #30358d, 0 9px 12px rgba(0,0,0,.35);
}

.discord-join:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.members-online {
    display: block;
    text-align: center;
    color: #9a876b;
    font-size: 10px;
    margin-bottom: 12px;
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-row a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(180deg, #39508e, #20335f);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.14);
    font: 900 18px/1 Arial, sans-serif;
    text-decoration: none;
    box-shadow: 0 3px 0 rgba(0,0,0,.35);
}

.social-row a:nth-child(3) { background: linear-gradient(180deg, #df3b2e, #9d2118); }
.social-row a:nth-child(4) { background: linear-gradient(180deg, #ee6d22, #aa3a10); }

.home-bottom-banner {
    min-height: 92px;
    display: grid;
    grid-template-columns: 1fr auto 180px;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #090602, #050301);
    border-top: 2px solid #2d1b08;
    position: relative;
    overflow: hidden;
}

.footer-brand-mini {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    align-items: center;
    color: #ff8c18;
}

.footer-brand-mini span {
    grid-row: 1 / span 2;
    font-size: 28px;
}

.footer-brand-mini strong {
    font: 900 30px/1 "Arial Black", Impact, Arial, sans-serif;
    letter-spacing: -1px;
    text-shadow: 2px 2px 0 #4b1b00;
}

.footer-brand-mini small {
    color: #d7c19b;
    font-size: 12px;
}

.banner-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.banner-links a {
    color: #d7c19b;
    font-size: 11px;
    text-decoration: none;
}

.banner-links a:hover { color: #ffc13a; }

.mini-statue {
    justify-self: end;
    width: 170px;
    height: 76px;
    background:
        radial-gradient(circle at 42px 42px, #7dbf33 0 26px, transparent 27px),
        radial-gradient(circle at 18px 58px, #548926 0 18px, transparent 19px),
        radial-gradient(circle at 118px 58px, #b7b1a1 0 24px, transparent 25px),
        linear-gradient(180deg, transparent 0 52px, #4d2d12 53px 100%);
    border-bottom: 4px solid #271307;
    opacity: .88;
    filter: drop-shadow(0 4px 0 rgba(0,0,0,.4));
}

/* Footer from the existing site, if present */
#footer {
    padding: 14px 18px 20px;
    background: #050301;
    border-top: 1px solid #2d1b08;
}

#footer .ft-links {
    margin-bottom: 8px;
}

#footer a {
    color: #d7c19b;
    font-size: 11px;
}

#footer a:hover { color: #ffc13a; }

/* Keep older non-home content readable under the new top nav */
body:not(.page-index) #main {
    padding-top: 22px;
}

body:not(.page-index) .site-page,
body:not(.page-index) .changes-page,
body:not(.page-index) .page-body {
    gap: 18px;
}

@media (max-width: 1180px) {
    .cs-nav-inner { align-items: stretch; flex-direction: column; gap: 0; padding-top: 8px; }
    .cs-brand { justify-content: center; }
    .cs-top-nav #nav, .cs-nav-links { justify-content: flex-start; }
    .home-middle-grid { grid-template-columns: 1fr; }
    .home-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel-button { width: min(360px, 100%); }
}

@media (max-width: 760px) {
    #main { width: min(100% - 14px, 1240px); }
    .brand-name { font-size: 24px; }
    .map-hero { min-height: 300px; }
    .hero-title { font-size: clamp(42px, 13vw, 62px); letter-spacing: -3px; -webkit-text-stroke-width: 2px; }
    .hero-subtitle { font-size: 14px; padding: 0 10px; }
    .prop-free-market, .prop-portal { display: none; }
    .hero-character-row { bottom: 70px; width: 96%; gap: 6px; }
    .hero-character-row img { height: clamp(54px, 16vw, 76px); }
    .map-actions { width: calc(100% - 22px); gap: 8px; }
    .map-actions .btn { min-width: 0; flex: 1; padding-left: 8px; padding-right: 8px; font-size: 12px; }
    .home-quick-grid { grid-template-columns: 1fr; }
    .quick-card { min-height: 82px; }
    .quick-pixel { flex-basis: 62px; width: 62px; height: 54px; font-size: 30px; }
    .class-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-bottom-banner { grid-template-columns: 1fr; text-align: center; }
    .footer-brand-mini { justify-content: center; }
    .mini-statue { display: none; }
}
