/* LHMAO fantasy theme. Shared portal behavior and marketplace styles stay in styles.css. */
:root {
  --bg: #080707;
  --text: #f4eee3;
  --muted: #c1b3a1;
  --accent: #b4162e;
  --accent2: #d7aa63;
  --gold: #e4b879;
  --ok: #16df9c;
  --panel: rgba(16, 12, 10, .94);
  --panelBorder: #64462a;
  --lineGold: rgba(214, 166, 95, .38);
  --softGold: #f2c98b;
  --bloodGlow: rgba(255, 31, 57, .55);
  --iceGlow: rgba(45, 135, 255, .52);
  --steelEdge: #757983;
  --steelDark: #202228;
}

[hidden] { display: none !important; }
.fantasyTheme { font-size: 16px; background: #080707; color: #f4eee3; }
.fantasyTheme::before { display: none; }
.fantasyTheme button, .fantasyTheme input, .fantasyTheme select { font-family: inherit; }
.fantasyTheme a:focus-visible, .fantasyTheme button:focus-visible,
.fantasyTheme summary:focus-visible, .fantasyTheme input:focus-visible,
.fantasyTheme select:focus-visible { outline: 2px solid #ffe0a5; outline-offset: 4px; }
.fantasyTheme .container { width: min(1440px, calc(100% - 96px)); }
.skipLink { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; background: #f6ce91; color: #20150a; }
.skipLink:focus { top: 10px; }

/* A compact, full-width navigation bar. */
.fantasyTheme .topbar { position: relative; background: linear-gradient(180deg, #100b09, rgba(6,5,5,.98)); border-bottom: 1px solid #5b4027; box-shadow: 0 5px 24px #0007; backdrop-filter: none; }
.fantasyTheme .topbar__inner { width: min(1560px, calc(100% - 64px)); min-height: 64px; height: auto; gap: 20px; }
.fantasyTheme .brand { gap: 10px; padding: 5px 0; flex-shrink: 0; }
.fantasyTheme .brand__mark, .fantasyTheme .brand__mark.has-logo-image { border: 0; background: none; box-shadow: none; padding: 0; min-width: 42px; overflow: visible; }
.fantasyTheme .brand__markImg { width: 44px; height: 52px; max-width: none; filter: drop-shadow(0 2px 6px #000); }
.brand__wordmark { display: flex; flex-direction: column; color: #e8bd7b; line-height: 1; }
.brand__wordmark strong { font: 30px/1 Georgia, 'Times New Roman', serif; letter-spacing: .04em; }
.brand__wordmark small { font: 11px/1.6 Georgia, 'Times New Roman', serif; letter-spacing: .115em; }
.fantasyTheme .nav { display: flex; align-items: center; gap: clamp(8px, 1.35vw, 25px); margin-left: 10px; }
.fantasyTheme .nav__link { padding: 21px 0 20px; font-size: 12px; letter-spacing: .025em; font-weight: 500; color: #e0c29a; border-radius: 0; white-space: nowrap; background: none; }
.fantasyTheme .nav__link:hover, .fantasyTheme .nav__link.is-active { color: #fff4dc; background: none; text-shadow: 0 0 18px #ffb84480; }
.fantasyTheme .nav__link.is-active::after { left: 0; right: 0; bottom: 14px; background: #efc286; box-shadow: 0 0 10px #dd9d50; height: 2px; }
.fantasyTheme .topbar__right { gap: 16px; }
.fantasyTheme .chip { border-color: #654b2f; background: linear-gradient(#23170f, #080707); padding: 10px 12px; color: #e8dfd1; min-height: 40px; }
.languageFlag { font-size: 16px; line-height: 1; }
.fantasyTheme .textlink { white-space: nowrap; font-size: 12px; text-transform: uppercase; letter-spacing: .025em; color: #e9e3db; }
.fantasyTheme .btn { border-radius: 5px; font-size: 14px; min-height: 42px; }
.fantasyTheme #registerLink { border-color: #c39353; box-shadow: inset 0 0 0 2px #1a110b, inset 0 0 18px #88572055, 0 0 12px #bb7a2c30; height: 43px; white-space: nowrap; color: #f9e5c5; }
.headerMotto { border-left: 1px solid #6c482c; padding-left: 22px; font: 10px/1.7 Georgia, serif; text-align: center; letter-spacing: .12em; color: #b99568; margin: 0 0 0 4px; white-space: nowrap; }
.fantasyTheme .menuToggle { border-color: #805732; background: #17100b; border-radius: 4px; }

/* The artwork is independent of the UI: all text and controls remain live HTML. */
.fantasyTheme .hero { padding-top: 0; min-height: calc(100svh - 64px); isolation: isolate; }
.fantasyTheme .hero__bgMedia { inset: 0 0 auto; height: max(820px, 56.25vw); max-height: 1180px; z-index: -3; background: #120d0c; mask-image: linear-gradient(#000 0%, #000 70%, transparent 100%); }
.fantasyTheme .hero .hero__bgImage, .fantasyTheme .hero .hero__bgVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: none; filter: none; }
.fantasyTheme .hero .hero__bg { inset: 0; z-index: -2; transform: none; filter: none; background: linear-gradient(180deg, transparent 0, transparent 300px, #07050545 520px, #080707e8 1060px); }
.fantasyTheme .hero .hero__shade { inset: 0; z-index: -1; background: radial-gradient(ellipse 30% 270px at 50% 200px, #0605038c, transparent), linear-gradient(90deg, #0705050a, transparent 20%, transparent 80%, #0705050a); }
.fantasyTheme .hero:not(.pageHero) .hero__inner { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 12px 0 0; }
.heroIntro { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.fantasyTheme .hero:not(.pageHero) .hero__logo, .fantasyTheme .hero:not(.pageHero) .hero__logo.has-logo-image { width: 214px; height: 238px; padding: 0; margin: 0; transform: none; }
.fantasyTheme .hero:not(.pageHero) .hero__logoImg { width: 206px; height: 238px; max-height: none; filter: drop-shadow(0 5px 12px #000) drop-shadow(0 0 20px #dc8c2833); }
.heroTitle { margin: 0; font: 400 clamp(22px, 1.65vw, 28px)/1.25 Georgia, 'Times New Roman', serif; text-transform: uppercase; letter-spacing: .13em; color: #f3cd8e; text-shadow: 0 2px 5px #000, 0 0 20px #000; }
.heroTagline { margin: 5px 0 0; font: 11px/1.5 Georgia, serif; letter-spacing: .27em; color: #e4d8c3; text-shadow: 0 2px 5px #000; }
.heroCharacter { position: absolute; display: flex; flex-direction: column; gap: 16px; color: #e4b676; text-shadow: 0 2px 8px #000; pointer-events: none; }
.heroCharacter strong { font: 14px/1.4 Georgia, serif; letter-spacing: .05em; }
.heroCharacter span { font: 11px/1.5 Georgia, serif; letter-spacing: .1em; color: #d0b390; }
.heroCharacter i { width: 22px; height: 1px; background: #ebc184; }
.heroCharacter--knight { top: 155px; left: 1.7%; }
.heroCharacter--mage { top: 320px; right: 1.7%; text-align: right; align-items: flex-end; }

.fantasyTheme .hero .stats { width: min(940px, 100%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0; margin-top: 12px; border: 0; border-radius: 0; background: none; backdrop-filter: none; box-shadow: none; }
.fantasyTheme .hero .stat { position: relative; min-height: 86px; display: grid; grid-template-columns: 46px auto; grid-template-rows: auto auto; column-gap: 14px; padding: 17px 22px; align-content: center; justify-content: center; border: 1px solid #b17d42; border-radius: 6px; background: linear-gradient(115deg, #28130bdf, #100b09f5 70%); box-shadow: inset 0 0 0 3px #110b08, inset 0 0 0 4px #61412588, 0 6px 15px #0009; text-align: left; }
.fantasyTheme .hero .stat::after { content: ''; pointer-events: none; position: absolute; inset: 6px; border: 1px solid #b47b3833; clip-path: polygon(0 0, 16px 0, 16px 1px, 1px 1px, 1px 16px, 0 16px, 0 0, 100% 0, 100% 100%, calc(100% - 16px) 100%, calc(100% - 16px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(100% - 16px), 100% calc(100% - 16px), 100% 0); }
.fantasyTheme .hero .stat__icon { grid-column: 1; grid-row: 1 / 3; width: 36px; height: 36px; align-self: center; margin: 0; background: none; border: none; border-radius: 0; color: #f0c58d; filter: drop-shadow(0 0 9px #bf712b70); }
.fantasyTheme .hero .stat__icon svg { width: 32px; height: 32px; }
.fantasyTheme .hero .stat__label { grid-column: 2; grid-row: 1; font-size: 14px; letter-spacing: 0; text-transform: none; color: #cdb89d; margin: 0 0 3px; }
.fantasyTheme .hero .stat__value { grid-column: 2; grid-row: 2; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; font-weight: 750; margin: 0; color: #f6f1eb; white-space: nowrap; }
.fantasyTheme .hero .stat__value--ok { color: #16e5a2; text-shadow: 0 0 14px #00ff9833; }
.fantasyTheme .hero .stat__value--err { color: #ff8c8c; }
.fantasyTheme .hero #playersValue::before, .fantasyTheme .hero .stat__value--ok::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; margin-bottom: 2px; border-radius: 50%; background: #12e899; box-shadow: 0 0 0 3px #00ca8a29, 0 0 10px #00d69466; }
.fantasyTheme .cta { display: flex; flex-wrap: wrap; gap: 16px; width: min(1040px, 100%); margin: 16px 0 18px; }
.fantasyTheme .hero:not(.pageHero) .cta > .btn { flex: 1 1 0; gap: 17px; height: 65px; min-width: 0; padding: 10px 20px; border: 1px solid #d6a25e; border-radius: 5px; text-transform: uppercase; box-shadow: inset 0 0 0 3px #5f3b2066, inset 0 0 0 4px #e9b57233, 0 3px 10px #000; }
.fantasyTheme .hero:not(.pageHero) #downloadBtn { background: linear-gradient(180deg, #d12237, #8f091e 43%, #4d0612); box-shadow: inset 0 0 0 3px #fdba7b66, inset 0 0 20px #e97b431f, 0 0 16px #c621343f; }
.fantasyTheme .hero:not(.pageHero) #discordBtn, .fantasyTheme .hero:not(.pageHero) #ctaRegisterBtn { background: linear-gradient(180deg, #493021e8, #170e09f7 45%, #080707); color: #f7f0e7; }
.fantasyTheme .cta .btn:hover { filter: brightness(1.2); transform: translateY(-2px); }
.fantasyTheme .cta .btn__icon { width: 28px; height: 28px; flex: 0 0 28px; }
.cta__copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cta__copy > span { font-size: 16px; line-height: 1.2; letter-spacing: .065em; white-space: nowrap; }
.cta__copy > small { font-size: 10px; line-height: 1.2; color: #c9ad8b; font-weight: 400; letter-spacing: .13em; white-space: nowrap; }
.fantasyTheme #downloadBtn small { color: #e5b3a6; }

/* Three working panels, with more content available without leaving the page. */
.portalDashboard { display: grid; grid-template-columns: 1.08fr 1.02fr 1fr; gap: 18px; width: 100%; align-items: start; }
.fantasyTheme .hero .portalBlock { position: relative; display: block; gap: 0; width: 100%; min-width: 0; margin: 0; padding: 12px 15px; border: 1px solid #67452b; border-radius: 6px; background: linear-gradient(170deg, #24140cf5, #0c0b0af7 24%, #080909f5); box-shadow: inset 0 0 0 3px #1b130daa, 0 6px 14px #0009; overflow: hidden; }
.fantasyTheme .portalDashboard > .portalBlock { min-height: 292px; }
.fantasyTheme .portalBlock__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 0 10px; margin: 0 0 8px; border-bottom: 1px solid #92653752; }
.fantasyTheme .portalBlock__title { display: flex; align-items: center; gap: 10px; margin: 0; font: 400 17px/1.3 Georgia, serif; letter-spacing: .015em; text-transform: uppercase; color: #f4d39b; min-width: 0; }
.sectionIcon { display: inline-block; width: 21px; height: 21px; color: #edbf7b; flex: 0 0 21px; }
.fantasyTheme .portalBlock__action { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 4px 0; font-family: inherit; font-size: 10px; line-height: 1.4; text-transform: uppercase; letter-spacing: .025em; background: none; color: #c8bdb0; border: none; cursor: pointer; }
.fantasyTheme .portalBlock__action:hover { color: #ffe0aa; }
.fantasyTheme .portalBlock__action > span:last-child { color: #d1ab79; }
.fantasyTheme .newsGrid { display: flex; flex-direction: column; gap: 7px; }
.fantasyTheme .newsRail { display: flex; flex-direction: column; gap: 0; }
.fantasyTheme .newsCard { border-radius: 4px; border-color: #674d33; background: #10100f; box-shadow: none; overflow: hidden; }
.fantasyTheme .newsCard--feature { height: auto; min-height: 152px; }
.fantasyTheme .newsCard__media { position: absolute; inset: 0; background-size: cover; background-position: 50% 37%; opacity: .7; transform: none; filter: saturate(.72); }
.fantasyTheme .newsCard__shade { background: linear-gradient(0deg, #070808 0%, #070808ba 47%, #08080800 100%); }
.fantasyTheme .newsCard__content { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; min-height: inherit; gap: 4px; padding: 11px 12px; position: relative; z-index: 1; }
.fantasyTheme .newsCard__metaRow { margin: 0 0 auto; padding-bottom: 26px; }
.fantasyTheme .newsCard__tag { min-height: 20px; min-width: 0; display: inline-block; padding: 3px 8px; border-radius: 3px; border: 1px solid #d23844; background: #aa0d21; color: #fff2e7; font-weight: 700; line-height: 1.3; font-size: 10px; letter-spacing: .055em; text-transform: uppercase; }
.fantasyTheme .newsCard__title { font-family: inherit; font-size: 16px; line-height: 1.3; color: #f7f4ef; font-weight: 650; margin: 0; }
.fantasyTheme .newsCard__body { font-size: 13px; line-height: 1.45; color: #c4c0bb; margin: 0; }
.fantasyTheme .newsCard__date { font-size: 10px; color: #c3b8a7; margin: 0; }
.fantasyTheme .newsCard__link { font-size: 11px; margin-top: 2px; color: #deb77c; }
.fantasyTheme .newsCard__link--muted { display: none; }
.fantasyTheme .newsCard--compact { min-height: 53px; display: grid; grid-template-columns: 52px minmax(0, 1fr); border: 0; border-bottom: 1px solid #69523740; border-radius: 0; padding: 6px 0; background: none; }
.fantasyTheme .newsCard--compact::before, .fantasyTheme .newsCard--compact .newsCard__shade { display: none; }
.fantasyTheme .newsCard--compact .newsCard__media { position: relative; inset: auto; height: 42px; align-self: center; border: 1px solid #60432d; border-radius: 3px; opacity: .85; }
.fantasyTheme .newsCard--compact .newsCard__content { min-height: 0; padding: 0 0 0 10px; gap: 1px; }
.fantasyTheme .newsCard--compact .newsCard__metaRow { display: none; }
.fantasyTheme .newsCard--compact .newsCard__title { font-size: 12px; line-height: 1.45; }
.fantasyTheme .newsCard--compact .newsCard__body { font-size: 11px; line-height: 1.45; }
.fantasyTheme .newsCard--compact .newsCard__date { font-size: 10px; }
.fantasyTheme .newsCard--compact .newsCard__icon { display: none; }
.eventList { display: flex; flex-direction: column; gap: 0; }
.realmEvent { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 13px; padding: 8px 0; min-height: 76px; border-bottom: 1px solid #69523740; align-items: center; }
.realmEvent:first-child { padding-top: 0; }
.realmEvent:last-child { border-bottom: 0; padding-bottom: 0; }
.realmEvent__art { height: 62px; width: 68px; border: 1px solid #715034; border-radius: 4px; background: linear-gradient(#40040400,#14070588), url('./uploads/design/realm-video-poster.jpg') 8% 15% / auto 150px; }
.realmEvent--blue .realmEvent__art { background-position: 96% 14%; }
.realmEvent--gold .realmEvent__art { background-position: 50% 25%; }
.realmEvent__head { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.realmEvent__title { font-size: 14px; line-height: 1.3; font-weight: 500; color: #f2eeea; margin: 0; }
.realmEvent__description { font-size: 11px; line-height: 1.5; margin: 5px 0 0; color: #b9b3ac; }
.realmEvent__badge { display: inline-flex; gap: 4px; align-items: center; color: #23efa6; background: #06372680; border: 1px solid #16805377; padding: 3px 5px; white-space: nowrap; border-radius: 3px; font-size: 9px; letter-spacing: .025em; font-weight: 650; }
.realmEvent__badge::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; box-shadow: 0 0 7px #05e79a; }
.realmEvent__time { display: block; color: #d0bfa7; margin-top: 3px; font-size: 10px; }
.homeRankTabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 11px; }
.fantasyTheme .homeRankTabs .rankTab { padding: 7px 3px; font-size: 10px; font-weight: 500; border-radius: 4px; background: #100c09; border: 1px solid #3c2b1d; letter-spacing: .025em; color: #bfb6ab; text-transform: uppercase; }
.fantasyTheme .homeRankTabs .rankTab.is-active { border-color: #db9f51; background: linear-gradient(#5a3619, #1b1008 65%); box-shadow: inset 0 0 9px #cd843c55, 0 0 9px #af722236; color: #fff3dd; }
.fantasyTheme .portalRanking { width: 100%; min-height: 190px; margin: 0; border: 0; background: transparent; padding: 0; overflow: visible; }
.realmRank { border-collapse: collapse; width: 100%; font-size: 12px; text-align: left; table-layout: fixed; }
.realmRank th { font-size: 10px; font-weight: 400; color: #c9c3bc; background: #211c1890; padding: 5px 8px; }
.realmRank th:first-child { width: 32px; border-radius: 3px 0 0 3px; }
.realmRank th:nth-child(n+3) { width: 56px; text-align: right; }
.realmRank td { padding: 5px 8px; border-bottom: 1px solid #6f56372c; height: 31px; color: #ded8d0; }
.realmRank tr:last-child td { border-bottom: 0; }
.realmRank td:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.realmRank__position { display: grid; place-items: center; width: 18px; height: 18px; color: #d8c5a8; font-size: 11px; }
.realmRank tr:nth-child(-n+3) .realmRank__position { border: 1px solid #d4a95f; border-radius: 50%; background: #643608; box-shadow: 0 0 7px #c28c3366; color: #ffe1a3; }
.realmRank tr:nth-child(2) .realmRank__position { background: #394149; border-color: #a3b4c3; color: #e9f0f5; box-shadow: 0 0 5px #859ab94d; }
.realmRank tr:nth-child(3) .realmRank__position { background: #51250c; border-color: #b77448; color: #efbc85; box-shadow: 0 0 5px #8d4e164d; }
.realmRank__name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.realmRank__name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.realmRank__avatar { width: 22px; height: 25px; flex: 0 0 22px; object-fit: cover; border: 1px solid #60472c; border-radius: 3px; }
.fantasyTheme .portalDashboard .emptyState, .fantasyTheme .portalDashboard .loadingRow { font-size: 13px; line-height: 1.6; padding: 40px 12px; text-align: center; color: #b7aa98; min-height: 120px; }
.rankUnavailable { display: grid; justify-items: center; gap: 11px; padding: 25px 8px; color: #b8ad9e; font-size: 13px; text-align: center; }
.rankUnavailable .sectionIcon { width: 32px; height: 32px; opacity: .6; }
.rankUnavailable p { margin: 0; }
.rankUnavailable small { font-size: 11px; color: #8d8377; }
.rankUnavailable button { background: transparent; border: 1px solid #775333; color: #e3bd83; padding: 5px 12px; border-radius: 3px; cursor: pointer; font-size: 12px; }

.realmStrip { display: flex; justify-content: space-between; align-items: center; gap: 22px; width: 100%; padding: 20px 0 17px; margin-top: 12px; border-top: 1px solid #a1733c66; border-bottom: 1px solid #a1733c26; }
.realmStrip__motto { margin: 0; font: 10px/1.7 Georgia, serif; letter-spacing: .16em; text-align: center; color: #bb976c; }
.realmStrip__item { display: flex; gap: 13px; align-items: center; }
.realmStrip__item .sectionIcon { width: 31px; height: 31px; flex-basis: 31px; filter: drop-shadow(0 0 9px #d8843645); }
.realmStrip__item strong { display: block; font: 12px/1.5 Georgia, serif; color: #eac38a; white-space: nowrap; }
.realmStrip__item small { display: block; font-size: 9px; letter-spacing: .025em; color: #998977; margin-top: 3px; white-space: nowrap; }
.realmStrip__signature { margin: 0; font: 16px/1.2 Georgia, serif; letter-spacing: .2em; text-align: center; color: #dcba86; }
.realmStrip__signature small { display: block; font-size: 10px; line-height: 1.8; letter-spacing: .2em; }
.communityDetails { width: 100%; margin-top: 4px; }
.communityDetails > summary { list-style: none; display: flex; justify-content: center; gap: 15px; cursor: pointer; font-size: 10px; letter-spacing: .13em; padding: 14px; color: #b89a77; }
.communityDetails > summary::-webkit-details-marker { display: none; }
.communityDetails[open] > summary > span:last-child { transform: rotate(45deg); }
.communityDetails__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 10px 0 24px; }
.fantasyTheme .communityDetails .portalBlock__title { margin: 6px 0 16px; }
.fantasyTheme .communityDetails .featureGrid, .fantasyTheme .communityDetails .activeEventsGrid { grid-template-columns: 1fr; }
.fantasyTheme .communityDetails .featureCard, .fantasyTheme .communityDetails .activeEventCard { min-height: auto; padding: 16px; }
.fantasyTheme .siteFooter { background: #080707; border-top: 1px solid #4c33214d; margin: 0; padding-top: 20px; }
.fantasyTheme .siteFooter__grid { gap: 28px; padding-block: 0 20px; }
.fantasyTheme .siteFooter__brandMark { display: none; }
.fantasyTheme .siteFooter__brandTitle { font-size: 19px; color: #d9b37c; margin: 0 0 7px; }
.fantasyTheme .siteFooter__brandCopy { font-size: 12px; max-width: 290px; }
.fantasyTheme .siteFooter__title { font-size: 12px; color: #c8a57a; }
.fantasyTheme .siteFooter__link, .fantasyTheme .siteFooter__socialItem, .fantasyTheme .siteFooter__infoItem { font-size: 12px; }
.fantasyTheme .siteFooter__statusPill { color: #18d99b; background: #113123; border-color: #207551; font-size: 10px; }
.fantasyTheme .siteFooter__statusDot { background: #16dc9c; }
.fantasyTheme .siteFooter__bottom { font-size: 11px; background: #060606; border-color: #483522; padding-block: 12px; }

/* The same visual language surrounds every existing portal screen. */
.fantasyTheme .pageHero .hero__inner { width: min(1240px, calc(100% - 64px)); display: flex; flex-direction: column; align-items: center; padding: 26px 0 64px; gap: 18px; }
.fantasyTheme .pageHero .hero__logo, .fantasyTheme .pageHero .hero__logo.has-logo-image { width: 104px; height: 120px; padding: 0; }
.fantasyTheme .pageHero .hero__logoImg { width: 104px; height: 120px; }
.fantasyTheme .pageShell { width: 100%; }
.fantasyTheme .pageShell__head { margin-bottom: 22px; }
.fantasyTheme .pageShell__eyebrow { color: #ba915b; font-size: 12px; letter-spacing: .18em; }
.fantasyTheme .pageShell__title { font-size: clamp(28px, 4vw, 44px); color: #f2cc94; font-weight: 400; }
.fantasyTheme .pageShell__subtitle { color: #c5b8a6; }
.fantasyTheme .pageShell__frame { background: #100c09f2; border: 1px solid #8b6036; border-radius: 7px; box-shadow: inset 0 0 0 3px #2e211644, 0 20px 50px #0008; }
.fantasyTheme .pageShell__body { padding: clamp(18px, 3vw, 38px); }
.fantasyTheme .marketPanel, .fantasyTheme .serverInfo__panel, .fantasyTheme .modal__card { border-color: #73522f; background-color: #110c09; }
.fantasyTheme .marketTabBtn.is-active, .fantasyTheme .rankTab.is-active { border-color: #c89a58; color: #ffe0a7; }
.fantasyTheme .text-ok, .fantasyTheme .rankStatus--online { color: #16d899; }
.fantasyTheme .userMenu__avatar { background: linear-gradient(#b68743, #56300d); }

@media (max-width: 1530px) {
  .headerMotto { display: none; }
  .fantasyTheme .topbar__inner { gap: 22px; }
  .fantasyTheme .nav { gap: 19px; }
  .realmStrip__motto { display: none; }
}
@media (max-width: 1220px) {
  .fantasyTheme .container { width: calc(100% - 48px); }
  .fantasyTheme .topbar__inner { width: calc(100% - 40px); gap: 18px; }
  .brand__wordmark strong { font-size: 25px; }
  .brand__wordmark small { font-size: 9px; }
  .fantasyTheme .nav { gap: 13px; margin-left: 0; }
  .fantasyTheme .nav__link { font-size: 11px; }
  .fantasyTheme .topbar__right { gap: 10px; }
  .fantasyTheme .textlink { font-size: 11px; }
  .fantasyTheme #registerLink { padding-inline: 12px; font-size: 12px; }
  .portalDashboard { gap: 12px; grid-template-columns: 1fr 1fr 1fr; }
  .fantasyTheme .hero .portalBlock { padding: 11px; }
  .fantasyTheme .portalBlock__title { gap: 6px; font-size: 15px; }
  .realmEvent { grid-template-columns: 54px minmax(0,1fr); gap: 9px; }
  .realmEvent__art { width: 54px; height: 60px; }
  .realmEvent__head { flex-wrap: wrap; gap: 4px; }
  .realmStrip__signature { display: none; }
  .heroCharacter { display: none; }
}
@media (max-width: 1050px) {
  .fantasyTheme .topbar__inner { min-height: 68px; }
  .fantasyTheme .menuToggle { display: inline-flex; }
  .fantasyTheme .nav { display: none; position: absolute; top: calc(100% + 1px); left: -20px; right: -20px; margin: 0; padding: 20px 28px; flex-direction: column; align-items: stretch; gap: 0; background: #0f0b08fa; border-bottom: 1px solid #9b713f; max-height: calc(100svh - 70px); overflow-y: auto; box-shadow: 0 20px 30px #000b; }
  .fantasyTheme .nav.is-open { display: flex; }
  .fantasyTheme .nav__link { font-size: 14px; padding: 15px 5px; border-bottom: 1px solid #75533440; }
  .fantasyTheme .nav__link.is-active::after { bottom: 8px; right: auto; width: 35px; }
  .fantasyTheme .topbar__right { gap: 15px; }
  .portalDashboard { grid-template-columns: 1fr 1fr; gap: 16px; }
  .fantasyTheme .portalBlock--ranking { grid-column: 1 / -1; }
  .fantasyTheme .portalDashboard > .portalBlock--ranking { min-height: 0; }
  .fantasyTheme .portalRanking { min-height: 170px; }
  .realmRank { font-size: 14px; }
  .realmRank th { font-size: 12px; }
  .realmRank td { height: 37px; }
  .realmRank th:nth-child(n+3) { width: 85px; }
  .fantasyTheme .homeRankTabs .rankTab { font-size: 12px; }
  .realmStrip { flex-wrap: wrap; justify-content: space-around; }
  .realmStrip__item { min-width: 190px; }
  .fantasyTheme .cta { gap: 10px; }
  .fantasyTheme .hero:not(.pageHero) .cta > .btn { padding-inline: 12px; gap: 10px; }
  .cta__copy > span { font-size: 13px; }
  .cta__copy > small { font-size: 8px; }
}
@media (max-width: 700px) {
  .fantasyTheme .container { width: calc(100% - 28px); }
  .fantasyTheme .topbar__inner { width: calc(100% - 28px); gap: 10px; }
  .fantasyTheme .topbar__right { gap: 8px; }
  .fantasyTheme .brand { gap: 7px; }
  .fantasyTheme .brand__markImg { width: 35px; height: 42px; }
  .brand__wordmark strong { font-size: 23px; }
  .brand__wordmark small { font-size: 8px; }
  .fantasyTheme #registerLink { display: none; }
  .fantasyTheme .chip { padding: 8px 9px; min-height: 38px; gap: 5px; }
  .fantasyTheme .chip__icon { width: 13px; }
  .fantasyTheme .textlink { font-size: 10px; }
  .fantasyTheme .hero:not(.pageHero) .hero__inner { padding-top: 18px; }
  .fantasyTheme .hero__bgMedia { height: 650px; }
  .fantasyTheme .hero .hero__bgImage, .fantasyTheme .hero .hero__bgVideo { object-position: 48% top; opacity: .8; }
  .fantasyTheme .hero .hero__shade { background: linear-gradient(180deg,#0003,#0002 170px,#080707e8 610px); }
  .fantasyTheme .hero:not(.pageHero) .hero__logo, .fantasyTheme .hero:not(.pageHero) .hero__logo.has-logo-image { width: 178px; height: 202px; }
  .fantasyTheme .hero:not(.pageHero) .hero__logoImg { width: 174px; height: 200px; }
  .heroTitle { font-size: clamp(17px,4.5vw,25px); letter-spacing: .06em; }
  .heroTagline { font-family: inherit; font-size: 8px; letter-spacing: .14em; margin-top: 7px; }
  .fantasyTheme .hero .stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-top: 22px; }
  .fantasyTheme .hero .stat { padding: 12px; grid-template-columns: 32px auto; column-gap: 12px; min-height: 76px; }
  .fantasyTheme .hero .stat__icon { width: 28px; height: 28px; }
  .fantasyTheme .hero .stat__icon svg { width: 27px; height: 27px; }
  .fantasyTheme .hero .stat__value { font-size: 17px; }
  .fantasyTheme .hero .stat__label { font-size: 12px; }
  .fantasyTheme .cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 20px; }
  .fantasyTheme .hero:not(.pageHero) #downloadBtn { grid-column: 1 / -1; height: 63px; }
  .fantasyTheme .hero:not(.pageHero) .cta > .btn { padding: 10px 8px; height: 60px; gap: 8px; }
  .fantasyTheme .cta .btn__icon { width: 22px; height: 22px; flex-basis: 22px; }
  .cta__copy > span { font-size: 12px; letter-spacing: .035em; }
  .cta__copy > small { white-space: normal; font-size: 8px; letter-spacing: .04em; }
  .fantasyTheme #downloadBtn .cta__copy > span { font-size: 16px; }
  .fantasyTheme #downloadBtn .cta__copy > small { font-size: 9px; }
  .portalDashboard { grid-template-columns: 1fr; gap: 15px; }
  .fantasyTheme .portalDashboard > .portalBlock { min-height: 0; padding: 14px; }
  .fantasyTheme .portalBlock__title { font-size: 17px; }
  .fantasyTheme .portalBlock__action { font-size: 11px; }
  .fantasyTheme .newsCard--feature { min-height: 180px; }
  .fantasyTheme .newsCard__title { font-size: 17px; }
  .fantasyTheme .newsCard__body { font-size: 14px; }
  .fantasyTheme .newsCard--compact .newsCard__title { font-size: 14px; }
  .fantasyTheme .newsCard--compact .newsCard__body { font-size: 12px; }
  .realmEvent { grid-template-columns: 68px minmax(0,1fr); gap: 12px; min-height: 88px; }
  .realmEvent__art { width: 68px; height: 67px; }
  .realmEvent__title { font-size: 15px; }
  .realmEvent__description { font-size: 12px; }
  .realmEvent__badge { font-size: 9px; }
  .realmEvent__time { font-size: 11px; }
  .realmRank th:nth-child(n+3) { width: 60px; }
  .realmRank td { padding-inline: 6px; }
  .realmStrip { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; margin-top: 22px; padding: 22px 5px; }
  .realmStrip__item { min-width: 0; gap: 9px; }
  .realmStrip__item strong { font-size: 10px; white-space: normal; }
  .realmStrip__item small { font-size: 8px; white-space: normal; }
  .realmStrip__item .sectionIcon { width: 26px; height: 26px; flex-basis: 26px; }
  .communityDetails > summary { font-size: 9px; padding-inline: 0; letter-spacing: .08em; }
  .communityDetails__grid { grid-template-columns: 1fr; }
  .fantasyTheme .siteFooter__grid { grid-template-columns: 1fr 1fr; gap: 25px 15px; }
  .fantasyTheme .siteFooter__brandCol { grid-column: 1 / -1; }
  .fantasyTheme .pageHero .hero__inner { width: calc(100% - 28px); padding-top: 22px; }
  .fantasyTheme .pageHero .hero__logo, .fantasyTheme .pageHero .hero__logo.has-logo-image { height: 90px; width: 80px; }
  .fantasyTheme .pageHero .hero__logoImg { height: 90px; width: 80px; }
  .fantasyTheme .pageShell__body { padding: 16px; }
}
@media (max-width: 370px) {
  .brand__wordmark { display: none; }
  .fantasyTheme .topbar__right { gap: 10px; }
  .fantasyTheme .cta .btn__icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fantasyTheme *, .fantasyTheme *::before, .fantasyTheme *::after { animation: none !important; transition: none !important; }
}

.fantasyTheme .hero #playersValue { display: block; color: #f6f1eb; gap: 0; text-shadow: none; }
.fantasyTheme .hero .stat__value--ok { display: block; color: #16e5a2; gap: 0; }
.fantasyTheme .hero .stat { justify-items: start; row-gap: 0; }
.fantasyTheme .hero:not(.pageHero) #ctaRegisterBtn { min-width: 0; }
.fantasyTheme .hero .cta { padding-top: 0; }
.fantasyTheme .siteFooter__grid { background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.fantasyTheme .hero .stat__value--err { color: #ff8c8c; }

.backgroundMotionToggle { position: absolute; top: 15px; right: 24px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #a57a4555; border-radius: 4px; background: #0808089e; color: #d0b58f; font-size: 11px; cursor: pointer; }
.backgroundMotionToggle:hover { background: #21180feb; color: #ffe0a6; }
@media (max-width: 700px) { .backgroundMotionToggle { top: 12px; right: 14px; padding: 6px 8px; } .backgroundMotionToggle span:last-child { display: none; } }

/* Sangre y Acero: marcos de armadura ligeros, con fuego y energía en las esquinas. */
.fantasyTheme .hero .stat,
.fantasyTheme .hero:not(.pageHero) .cta > .btn,
.fantasyTheme .portalDashboard > .portalBlock {
  --armor-cut: 14px;
  isolation: isolate;
  border-color: #6f727a;
  border-radius: 0;
  clip-path: polygon(
    var(--armor-cut) 0,
    calc(50% - 14px) 0,
    50% 7px,
    calc(50% + 14px) 0,
    calc(100% - var(--armor-cut)) 0,
    100% var(--armor-cut),
    100% calc(100% - var(--armor-cut)),
    calc(100% - var(--armor-cut)) 100%,
    var(--armor-cut) 100%,
    0 calc(100% - var(--armor-cut)),
    0 var(--armor-cut)
  );
}

.fantasyTheme .hero .stat {
  background:
    radial-gradient(circle at 1px 50%, var(--bloodGlow), transparent 24px),
    radial-gradient(circle at calc(100% - 1px) 50%, var(--iceGlow), transparent 24px),
    linear-gradient(118deg, #2c2e34 0, #111216 17%, #08090b 51%, #15161b 82%, #292c33 100%);
  box-shadow:
    inset 0 0 0 3px #08090b,
    inset 0 0 0 4px #777b844f,
    inset 0 11px 17px #c8d1e310,
    inset 0 -12px 20px #000b,
    0 8px 18px #000c;
  transition: transform 170ms ease, filter 170ms ease, box-shadow 170ms ease;
}

.fantasyTheme .hero .stat::before,
.fantasyTheme .hero:not(.pageHero) .cta > .btn::after,
.fantasyTheme .portalDashboard > .portalBlock::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 42%, #aeb2bb 44% 48%, #e11935 50% 55%, transparent 57%) top left / 28px 28px no-repeat,
    linear-gradient(225deg, transparent 0 42%, #aeb2bb 44% 48%, #277ee9 50% 55%, transparent 57%) top right / 28px 28px no-repeat,
    linear-gradient(45deg, transparent 0 42%, #7f838c 44% 48%, #a80b24 50% 55%, transparent 57%) bottom left / 24px 24px no-repeat,
    linear-gradient(315deg, transparent 0 42%, #7f838c 44% 48%, #185fbd 50% 55%, transparent 57%) bottom right / 24px 24px no-repeat;
  opacity: .9;
}

.fantasyTheme .hero .stat::after {
  inset: 5px 8px;
  border-color: #c9cbd135;
  filter: drop-shadow(-7px 0 5px var(--bloodGlow)) drop-shadow(7px 0 5px var(--iceGlow));
}

.fantasyTheme .hero .stat:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: inset 0 0 0 3px #08090b, inset 0 0 0 4px #a6aab56b, 0 0 18px #ed1b3630, 0 0 24px #247ee62b, 0 10px 20px #000d;
}

.fantasyTheme .hero:not(.pageHero) .cta > .btn {
  --armor-cut: 18px;
  border-color: #8a8d95;
  box-shadow: inset 0 0 0 3px #09090b, inset 0 0 0 5px #a7abb439, inset 0 10px 17px #ffffff13, inset 0 -16px 24px #0009, 0 8px 18px #000b;
}

.fantasyTheme .hero:not(.pageHero) .cta > .btn::before {
  background:
    linear-gradient(180deg, #ffffff18, transparent 38%),
    linear-gradient(90deg, var(--bloodGlow), transparent 15%, transparent 84%, var(--iceGlow));
}

.fantasyTheme .hero:not(.pageHero) #downloadBtn {
  background: radial-gradient(circle at 8% 50%, #ff264871, transparent 28%), linear-gradient(180deg, #c31731, #720819 52%, #29050b);
}

.fantasyTheme .hero:not(.pageHero) #discordBtn {
  background: radial-gradient(circle at 92% 50%, #287ded52, transparent 27%), linear-gradient(180deg, #29344e, #11182a 52%, #070b13);
}

.fantasyTheme .hero:not(.pageHero) #ctaRegisterBtn {
  background: radial-gradient(circle at 8% 50%, #d91a354d, transparent 25%), radial-gradient(circle at 92% 50%, #2679df3d, transparent 25%), linear-gradient(180deg, #292b31, #111216 55%, #07080a);
}

.fantasyTheme .hero:not(.pageHero) .cta > .btn:hover {
  border-color: #c2c5cc;
  filter: brightness(1.13);
  box-shadow: inset 0 0 0 3px #09090b, inset 0 0 0 5px #d0d3da4c, 0 0 20px #f21b3838, 0 0 28px #287fe838, 0 11px 22px #000d;
}

.fantasyTheme .portalDashboard > .portalBlock {
  --armor-cut: 12px;
  border-color: #666a72;
  background:
    radial-gradient(circle at 0 0, #eb1c3733, transparent 72px),
    radial-gradient(circle at 100% 0, #237de13d, transparent 72px),
    linear-gradient(170deg, #282a30f5, #0c0d10f8 17%, #07080af7 72%, #15171cf7);
  box-shadow: inset 0 0 0 3px #07080a, inset 0 0 0 4px #777b844f, inset 0 1px 0 #e8ecf31b, 0 8px 20px #000c;
  transition: border-color 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.fantasyTheme .portalDashboard > .portalBlock::before {
  inset: 5px 7px;
  z-index: 0;
  border-radius: 0;
  border-color: #c5c8cf28;
  filter: drop-shadow(-8px 0 6px #e7183438) drop-shadow(8px 0 6px #247be03d);
}

.fantasyTheme .portalDashboard > .portalBlock:hover {
  border-color: #92969f;
  filter: brightness(1.04);
  box-shadow: inset 0 0 0 3px #07080a, inset 0 0 0 4px #a8abb45c, 0 0 19px #e51c3422, 0 0 25px #287de52b, 0 10px 22px #000d;
}

.fantasyTheme .portalDashboard .portalBlock__head {
  position: relative;
  z-index: 1;
  border-bottom-color: #7f838c70;
}

.fantasyTheme .portalDashboard .portalBlock__head::after {
  content: '';
  position: absolute;
  left: 42%;
  right: 42%;
  bottom: -2px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e31a36, #6e7480, #247be0, transparent);
  box-shadow: -32px 0 10px #e31a363d, 32px 0 10px #247be044;
}

@media (max-width: 700px) {
  .fantasyTheme .hero .stat,
  .fantasyTheme .hero:not(.pageHero) .cta > .btn,
  .fantasyTheme .portalDashboard > .portalBlock { --armor-cut: 10px; }
  .fantasyTheme .hero .stat::before,
  .fantasyTheme .hero:not(.pageHero) .cta > .btn::after,
  .fantasyTheme .portalDashboard > .portalBlock::after { opacity: .72; }
}

/* Marcos gráficos definitivos basados en el kit Sangre y Acero del usuario. */
.fantasyTheme .topbar {
  background: linear-gradient(180deg, #09090bf5, #050507f5);
  border: 0;
  overflow: visible;
}

.fantasyTheme .topbar__inner {
  min-height: 82px;
}

.fantasyTheme .topbar__inner::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: -7px -30px;
  background: url('./uploads/design/ui-sangre-acero/nav-frame.png') center / 100% 100% no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 8px 10px #000b) drop-shadow(0 0 8px #d611292b);
}

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

.fantasyTheme .hero .stat,
.fantasyTheme .hero:not(.pageHero) .cta > .btn,
.fantasyTheme .portalDashboard > .portalBlock {
  clip-path: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.fantasyTheme .hero .stat::before,
.fantasyTheme .hero .stat::after,
.fantasyTheme .hero:not(.pageHero) .cta > .btn::before,
.fantasyTheme .hero:not(.pageHero) .cta > .btn::after,
.fantasyTheme .portalDashboard > .portalBlock::before,
.fantasyTheme .portalDashboard > .portalBlock::after {
  display: none;
}

.fantasyTheme .hero .stat {
  min-height: 102px;
  padding: 22px 31px;
  background: url('./uploads/design/ui-sangre-acero/stat-red.png') center / 100% 100% no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 9px 10px #000b);
}

.fantasyTheme .hero .stat:nth-child(4) {
  background-image: url('./uploads/design/ui-sangre-acero/stat-blue.png');
}

.fantasyTheme .hero .stat:hover {
  filter: brightness(1.09) drop-shadow(-3px 0 9px #e916374f) drop-shadow(3px 0 10px #237cf052);
  box-shadow: none;
}

.fantasyTheme .hero:not(.pageHero) .cta {
  width: min(1120px, 100%);
  margin-top: 10px;
}

.fantasyTheme .hero:not(.pageHero) .cta > .btn,
.fantasyTheme .hero:not(.pageHero) #downloadBtn,
.fantasyTheme .hero:not(.pageHero) #ctaRegisterBtn {
  height: 92px;
  padding: 17px 38px;
  background: url('./uploads/design/ui-sangre-acero/button-red.png') center / 100% 100% no-repeat;
  box-shadow: none;
  color: #fff7e9;
  filter: drop-shadow(0 10px 12px #000c);
}

.fantasyTheme .hero:not(.pageHero) #discordBtn {
  height: 92px;
  padding: 17px 38px;
  background: url('./uploads/design/ui-sangre-acero/button-blue.png') center / 100% 100% no-repeat;
  box-shadow: none;
  color: #f4f7ff;
}

.fantasyTheme .hero:not(.pageHero) .cta > .btn:hover {
  filter: brightness(1.12) drop-shadow(0 0 12px #ec173c55) drop-shadow(0 10px 13px #000c);
  box-shadow: none;
}

.fantasyTheme .hero:not(.pageHero) #discordBtn:hover {
  filter: brightness(1.12) drop-shadow(0 0 13px #247ff071) drop-shadow(0 10px 13px #000c);
}

.fantasyTheme .portalDashboard > .portalBlock,
.fantasyTheme .portalDashboard > .portalBlock--news,
.fantasyTheme .portalDashboard > .portalBlock--events {
  min-height: 320px;
  padding: 0 3px 3px;
  border: 34px solid transparent;
  border-image-source: url('./uploads/design/ui-sangre-acero/panel-red.png');
  border-image-slice: 46 62 46 62 fill;
  border-image-width: 34px 40px;
  border-image-repeat: stretch;
  background: #090a0d;
  box-shadow: none;
  filter: drop-shadow(0 11px 12px #000c);
}

.fantasyTheme .portalDashboard > .portalBlock--ranking {
  border-image-source: url('./uploads/design/ui-sangre-acero/panel-blue.png');
}

.fantasyTheme .portalDashboard > .portalBlock:hover {
  filter: brightness(1.06) drop-shadow(-2px 0 9px #dc17333e) drop-shadow(2px 0 10px #2478e046) drop-shadow(0 11px 12px #000c);
  box-shadow: none;
}

.fantasyTheme .topbar .chip,
.fantasyTheme .topbar #registerLink,
.fantasyTheme .accountPanel .btn,
.fantasyTheme .marketPage--clean .btn,
.fantasyTheme .homeRankTabs .rankTab {
  border: 0;
  border-radius: 0;
  min-height: 54px;
  padding: 10px 28px;
  background: url('./uploads/design/ui-sangre-acero/button-small-red.png') center / 100% 100% no-repeat;
  box-shadow: none;
  overflow: visible;
  color: #ffe6b9;
  filter: drop-shadow(0 5px 7px #000a);
}

.fantasyTheme .topbar .chip,
.fantasyTheme .accountPanel .btn--secondary,
.fantasyTheme .accountPanel .btn--ghost,
.fantasyTheme .marketPage--clean .btn--secondary,
.fantasyTheme .marketPage--clean .btn--ghost,
.fantasyTheme .homeRankTabs .rankTab:not(.is-active) {
  background-image: url('./uploads/design/ui-sangre-acero/button-small-blue.png');
}

.fantasyTheme .topbar .chip::before,
.fantasyTheme .topbar #registerLink::before,
.fantasyTheme .accountPanel .btn::before,
.fantasyTheme .marketPage--clean .btn::before,
.fantasyTheme .homeRankTabs .rankTab::before {
  display: none;
}

.fantasyTheme .topbar .chip:hover,
.fantasyTheme .topbar #registerLink:hover,
.fantasyTheme .accountPanel .btn:hover,
.fantasyTheme .marketPage--clean .btn:hover,
.fantasyTheme .homeRankTabs .rankTab:hover {
  border: 0;
  box-shadow: none;
  filter: brightness(1.14) drop-shadow(0 0 9px #d91a3945) drop-shadow(0 6px 8px #000b);
}

@media (max-width: 1220px) {
  .fantasyTheme .topbar__inner::before { inset-inline: -18px; }
  .fantasyTheme .hero .stat { padding-inline: 25px; }
  .fantasyTheme .portalDashboard > .portalBlock { padding-inline: 29px; }
}

@media (max-width: 700px) {
  .fantasyTheme .topbar__inner { min-height: 70px; }
  .fantasyTheme .topbar__inner::before { inset: -3px -10px; }
  .fantasyTheme .hero .stat { min-height: 90px; padding: 18px 23px; }
  .fantasyTheme .hero:not(.pageHero) .cta > .btn,
  .fantasyTheme .hero:not(.pageHero) #downloadBtn,
  .fantasyTheme .hero:not(.pageHero) #discordBtn,
  .fantasyTheme .hero:not(.pageHero) #ctaRegisterBtn { height: 78px; padding: 13px 22px; }
  .fantasyTheme .portalDashboard > .portalBlock { min-height: 0; padding: 0 2px 3px; border-width: 30px 27px; border-image-width: 30px 27px; }
  .fantasyTheme .topbar .chip { min-width: 82px; min-height: 48px; padding-inline: 19px; }
}

/* Ajuste de zonas seguras: cada pieza conserva su espacio y no tapa el texto. */
.fantasyTheme .topbar__inner {
  min-height: 84px;
  gap: 12px;
  padding-inline: 8px;
}

.fantasyTheme .topbar__inner::before {
  display: none;
}

.fantasyTheme .brand {
  min-width: 245px;
  min-height: 64px;
  gap: 8px;
  padding: 8px 29px 8px 31px;
  isolation: isolate;
}

.fantasyTheme .brand::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -7px -13px;
  background: url('./uploads/design/ui-sangre-acero/button-small-red.png') center / 100% 100% no-repeat;
  filter: drop-shadow(0 6px 8px #000c) drop-shadow(0 0 7px #d91a3736);
  pointer-events: none;
}

.fantasyTheme .brand__markImg {
  width: 43px;
  height: 52px;
  filter: drop-shadow(0 2px 4px #000) drop-shadow(0 0 6px #2f83e883);
}

.fantasyTheme .brand__wordmark {
  max-width: 158px;
}

.fantasyTheme .brand__wordmark strong {
  font-size: 18px;
  line-height: 1.05;
  white-space: nowrap;
}

.fantasyTheme .nav {
  min-height: 58px;
  margin-left: 3px;
  padding: 0 27px;
  isolation: isolate;
}

.fantasyTheme .nav::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -7px -20px;
  background: url('./uploads/design/ui-sangre-acero/nav-frame.png') center / 100% 100% no-repeat;
  filter: drop-shadow(0 6px 8px #000b);
  pointer-events: none;
}

.fantasyTheme .nav__link {
  z-index: 1;
  padding-block: 20px 18px;
}

.fantasyTheme .topbar__right {
  gap: 8px;
  padding-inline: 2px 12px;
}

.fantasyTheme .topbar .chip,
.fantasyTheme .topbar #registerLink {
  min-height: 54px;
  padding-inline: 25px;
}

.fantasyTheme .topbar .textlink {
  padding-inline: 12px;
  text-align: center;
}

.fantasyTheme .hero .stat {
  min-height: 112px;
  padding: 32px 29px 22px;
}

.fantasyTheme .hero .stat__icon,
.fantasyTheme .hero .stat__label,
.fantasyTheme .hero .stat__value {
  position: relative;
  transform: translateY(5px);
}

.portalDashboard {
  align-items: stretch;
}

.fantasyTheme .portalDashboard > .portalBlock,
.fantasyTheme .portalDashboard > .portalBlock--news,
.fantasyTheme .portalDashboard > .portalBlock--events,
.fantasyTheme .portalDashboard > .portalBlock--ranking {
  min-height: 405px;
  height: 100%;
  padding: 2px 5px 8px;
  border-width: 38px 41px;
  border-image-width: 38px 41px;
}

.fantasyTheme .portalDashboard .portalBlock__head {
  min-height: 43px;
  padding: 0 2px 10px;
}

.fantasyTheme .homeRankTabs {
  gap: 6px;
  margin: 4px 0 10px;
}

.fantasyTheme .homeRankTabs .rankTab,
.fantasyTheme .homeRankTabs .rankTab.is-active,
.fantasyTheme .homeRankTabs .rankTab:not(.is-active) {
  min-height: 49px;
  padding: 9px 17px;
  border: 0;
  background-color: transparent;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: none;
  line-height: 1.15;
}

.fantasyTheme .homeRankTabs .rankTab.is-active {
  background-image: url('./uploads/design/ui-sangre-acero/button-small-red.png');
  color: #fff0c9;
}

.fantasyTheme .homeRankTabs .rankTab:not(.is-active) {
  background-image: url('./uploads/design/ui-sangre-acero/button-small-blue.png');
  color: #e9dfce;
}

.fantasyTheme .portalRanking {
  min-height: 228px;
  overflow: hidden;
}

.fantasyTheme .realmStrip {
  position: relative;
  min-height: 108px;
  margin: 20px 0 12px;
  padding: 28px 61px;
  border: 0;
  background: url('./uploads/design/ui-sangre-acero/nav-frame.png') center / 100% 100% no-repeat;
  filter: drop-shadow(0 9px 10px #000b) drop-shadow(-2px 0 8px #d7173230) drop-shadow(2px 0 8px #2379df30);
}

.fantasyTheme .realmStrip__item,
.fantasyTheme .realmStrip__signature {
  position: relative;
  z-index: 1;
}

.fantasyTheme .communityDetails {
  margin: 8px 0 18px;
}

.fantasyTheme .communityDetails > summary {
  width: min(470px, 100%);
  min-height: 58px;
  margin-inline: auto;
  padding: 17px 62px;
  align-items: center;
  background: url('./uploads/design/ui-sangre-acero/button-small-blue.png') center / 100% 100% no-repeat;
  color: #eed9b8;
  filter: drop-shadow(0 6px 8px #000b);
}

.fantasyTheme .siteFooter {
  position: relative;
  margin-top: 0;
  padding: 30px 0 18px;
  border: 0;
  background:
    radial-gradient(circle at 8% 15%, #9e112230, transparent 25%),
    radial-gradient(circle at 92% 16%, #174f9a30, transparent 25%),
    linear-gradient(180deg, #09090c, #030405 88%);
}

.fantasyTheme .siteFooter::before {
  content: '';
  position: absolute;
  top: -15px;
  left: max(18px, calc((100% - 1440px) / 2));
  right: max(18px, calc((100% - 1440px) / 2));
  height: 48px;
  background: url('./uploads/design/ui-sangre-acero/nav-frame.png') center / 100% 100% no-repeat;
  filter: drop-shadow(0 5px 8px #000c);
  pointer-events: none;
}

.fantasyTheme .siteFooter__grid {
  position: relative;
  gap: 30px;
  padding: 8px 18px 18px;
  border: 40px solid transparent;
  border-image-source: url('./uploads/design/ui-sangre-acero/panel-red.png');
  border-image-slice: 46 62 46 62 fill;
  border-image-width: 40px 46px;
  border-image-repeat: stretch;
  border-radius: 0;
  background: #08090b;
  box-shadow: none;
  filter: drop-shadow(0 12px 15px #000c);
}

.fantasyTheme .siteFooter__brandCol,
.fantasyTheme .siteFooter__col {
  position: relative;
  z-index: 1;
}

.fantasyTheme .siteFooter__brandTitle,
.fantasyTheme .siteFooter__title {
  color: #f2c77f;
  text-shadow: 0 0 10px #d31a3336;
}

.fantasyTheme .siteFooter__socialItem {
  min-height: 51px;
  padding: 12px 30px;
  border: 0;
  border-radius: 0;
  background: url('./uploads/design/ui-sangre-acero/button-small-blue.png') center / 100% 100% no-repeat;
  color: #e2d7c8;
  filter: drop-shadow(0 4px 6px #0009);
}

.fantasyTheme .siteFooter__socialItem:hover {
  background-color: transparent;
  border: 0;
  filter: brightness(1.12) drop-shadow(0 0 8px #267ce04b);
}

.fantasyTheme .siteFooter__serverCard {
  min-height: 168px;
  padding: 72px 30px 24px;
  border: 0;
  border-radius: 0;
  background: url('./uploads/design/ui-sangre-acero/stat-blue.png') center / 100% 100% no-repeat;
  filter: drop-shadow(0 6px 8px #000a);
}

.fantasyTheme .siteFooter__statusPill {
  min-height: 55px;
  padding: 19px 25px 10px;
  border: 0;
  border-radius: 0;
  background: url('./uploads/design/ui-sangre-acero/button-small-red.png') center / 100% 100% no-repeat;
  color: #30efb0;
  filter: drop-shadow(0 4px 6px #000a);
}

.fantasyTheme .siteFooter__bottom {
  min-height: 54px;
  margin-top: 12px;
  padding: 19px 70px;
  border: 0;
  background: url('./uploads/design/ui-sangre-acero/nav-frame.png') center / 100% 100% no-repeat;
  color: #eac083;
}

@media (max-width: 1220px) {
  .fantasyTheme .brand { min-width: 214px; padding-inline: 25px; }
  .fantasyTheme .brand__wordmark { max-width: 135px; }
  .fantasyTheme .brand__wordmark strong { font-size: 16px; }
  .fantasyTheme .nav { padding-inline: 20px; }
  .fantasyTheme .topbar .chip,
  .fantasyTheme .topbar #registerLink { padding-inline: 20px; }
  .fantasyTheme .portalDashboard > .portalBlock { padding-inline: 3px; border-left-width: 36px; border-right-width: 36px; border-image-width: 38px 36px; }
  .fantasyTheme .realmStrip { padding-inline: 49px; }
}

@media (max-width: 1050px) {
  .fantasyTheme .topbar__inner { min-height: 76px; }
  .fantasyTheme .brand { min-width: 230px; }
  .fantasyTheme .nav { min-height: 0; padding: 20px 28px; }
  .fantasyTheme .nav::before { display: none; }
  .fantasyTheme .portalDashboard > .portalBlock { min-height: 405px; }
}

@media (max-width: 700px) {
  .fantasyTheme .topbar__inner { min-height: 68px; padding-inline: 0; }
  .fantasyTheme .brand { min-width: 187px; min-height: 55px; padding: 7px 22px; }
  .fantasyTheme .brand::before { inset: -4px -8px; }
  .fantasyTheme .brand__markImg { width: 36px; height: 43px; }
  .fantasyTheme .brand__wordmark { max-width: 112px; }
  .fantasyTheme .brand__wordmark strong { font-size: 14px; white-space: normal; }
  .fantasyTheme .hero .stat { min-height: 101px; padding: 29px 22px 18px; }
  .fantasyTheme .hero .stat__icon,
  .fantasyTheme .hero .stat__label,
  .fantasyTheme .hero .stat__value { transform: translateY(4px); }
  .fantasyTheme .portalDashboard > .portalBlock { min-height: 0; height: auto; padding: 1px 3px 7px; border-width: 34px 30px; border-image-width: 34px 30px; }
  .fantasyTheme .realmStrip { min-height: 0; padding: 36px 39px; }
  .fantasyTheme .communityDetails > summary { padding-inline: 48px; }
  .fantasyTheme .siteFooter { padding-top: 26px; }
  .fantasyTheme .siteFooter__grid { padding: 4px 5px 12px; border-width: 34px 29px; border-image-width: 34px 29px; }
  .fantasyTheme .siteFooter__socialItem { padding-inline: 24px; }
  .fantasyTheme .siteFooter__bottom { padding-inline: 46px; }
}

@media (max-width: 430px) {
  .fantasyTheme .brand { min-width: 0; width: 58px; padding: 7px 13px; }
  .fantasyTheme .brand__wordmark { display: none; }
  .fantasyTheme .topbar .chip { min-width: 72px; padding-inline: 15px; }
  .fantasyTheme .portalDashboard > .portalBlock { border-left-width: 25px; border-right-width: 25px; border-image-width: 32px 25px; }
  .fantasyTheme .siteFooter__grid { border-left-width: 24px; border-right-width: 24px; border-image-width: 32px 24px; }
}

/* Pulido final: elimina fondos cuadrados, compacta el pie y protege los adornos. */
.fantasyTheme .brand {
  min-width: 268px;
  padding: 4px 34px 4px 43px;
  gap: 7px;
}

.fantasyTheme .brand__mark,
.fantasyTheme .brand__mark.has-logo-image {
  min-width: 45px;
  flex: 0 0 45px;
}

.fantasyTheme .brand__markImg {
  width: 48px;
  height: 58px;
}

.fantasyTheme .brand__wordmark {
  max-width: 138px;
}

.fantasyTheme .brand__wordmark strong {
  font-size: 17px;
}

.fantasyTheme .nav {
  gap: 16px;
  padding-inline: 22px;
}

.portalDashboard {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.fantasyTheme .portalDashboard > .portalBlock,
.fantasyTheme .portalDashboard > .portalBlock--news,
.fantasyTheme .portalDashboard > .portalBlock--events,
.fantasyTheme .portalDashboard > .portalBlock--ranking {
  background: transparent;
}

.fantasyTheme .portalRanking {
  min-height: 190px;
}

.fantasyTheme .realmStrip {
  padding-inline: 100px;
}

.fantasyTheme .siteFooter {
  padding-top: 12px;
}

.fantasyTheme .siteFooter::before {
  display: none;
}

.fantasyTheme .siteFooter__grid {
  gap: 22px;
  padding: 4px 12px 10px;
  border-width: 34px 38px;
  border-image-width: 34px 38px;
  background: transparent;
}

.fantasyTheme .siteFooter__socialItem {
  min-height: 47px;
}

.fantasyTheme .siteFooter__serverCard {
  min-height: 104px;
  margin-top: 4px;
  padding: 35px 22px 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 4px 10px;
  background-image: url('./uploads/design/ui-sangre-acero/button-small-blue.png');
}

.fantasyTheme .siteFooter__serverTitle {
  grid-column: 1 / -1;
  text-align: center;
}

.fantasyTheme .siteFooter__serverLine {
  text-align: center;
  font-size: 12px;
}

@media (max-width: 1220px) {
  .fantasyTheme .brand { min-width: 225px; padding-inline: 31px 27px; }
  .fantasyTheme .brand__mark,
  .fantasyTheme .brand__mark.has-logo-image { min-width: 39px; flex-basis: 39px; }
  .fantasyTheme .brand__markImg { width: 41px; height: 50px; }
  .fantasyTheme .brand__wordmark { max-width: 120px; }
  .fantasyTheme .brand__wordmark strong { font-size: 15px; }
  .portalDashboard { gap: 18px; }
  .fantasyTheme .realmStrip { padding-inline: 82px; }
}

@media (max-width: 1050px) {
  .fantasyTheme .brand { min-width: 230px; padding-inline: 34px 29px; }
  .portalDashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fantasyTheme .portalBlock--ranking { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .fantasyTheme .brand { min-width: 187px; padding: 7px 22px; }
  .fantasyTheme .brand__mark,
  .fantasyTheme .brand__mark.has-logo-image { min-width: 36px; flex-basis: 36px; }
  .fantasyTheme .brand__markImg { width: 36px; height: 43px; }
  .fantasyTheme .brand__wordmark { max-width: 112px; }
  .fantasyTheme .brand__wordmark strong { font-size: 14px; }
  .portalDashboard { grid-template-columns: 1fr; gap: 16px; }
  .fantasyTheme .portalBlock--ranking { grid-column: auto; }
  .fantasyTheme .realmStrip { padding-inline: 46px; }
  .fantasyTheme .siteFooter__grid { padding: 2px 4px 8px; border-width: 31px 27px; border-image-width: 31px 27px; }
}

@media (max-width: 520px) {
  .fantasyTheme .siteFooter__grid { grid-template-columns: 1fr; }
  .fantasyTheme .siteFooter__brandCol { grid-column: auto; }
}

@media (max-width: 430px) {
  .fantasyTheme .brand { min-width: 0; width: 62px; padding: 7px 13px; }
  .fantasyTheme .brand__mark,
  .fantasyTheme .brand__mark.has-logo-image { min-width: 36px; flex-basis: 36px; }
  .fantasyTheme .brand__wordmark { display: none; }
}
