/* =============================================================================
   ARDAOT — "CLASSIC MEETS MODERN" THEME
   Replaces arda-modern.css. Loaded AFTER basic.css and only overrides it.
   Pure CSS: no JavaScript or PHP behaviour is changed.

   Sections
   00. Fonts & design tokens
   01. Page, background & layout
   02. Left menu
   03. Top status bar (download / discord / players)
   04. Content boxes (classic double frame + title bar)
   05. Home: hero, quick links, section intro
   06. News, ticker, featured article
   07. Legacy inner pages: tables, forms, buttons
   08. Right column widgets
   09. Footer
   10. Responsive
   ============================================================================= */

/* ---------- 00. FONTS & TOKENS ---------- */

@font-face { font-family: "Cinzel"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  /* brand purple */
  --a-purple:        #7138b8;
  --a-purple-light:  #9563d1;
  --a-purple-deep:   #2f3139;
  --a-purple-night:  #1f1230;

  /* polished silver trim (token names kept from the first version) */
  --a-gold:          #d3d8df;
  --a-gold-light:    #eef0f4;
  --a-gold-dark:     #8b919d;

  /* dark surfaces */
  --a-panel:         #1c1c22;
  --a-panel-2:       #22222a;
  --a-panel-3:       #2d2d36;
  --a-line:          rgba(211, 216, 223, .35);

  /* parchment (content areas on legacy pages) */
  --a-paper:         #efe5d0;
  --a-paper-2:       #e4d6b9;
  --a-paper-edge:    #c9b48a;
  --a-ink:           #3a2a1c;
  --a-ink-soft:      #6a5640;

  /* text on dark */
  --a-text:          #ece7f3;
  --a-muted:         #a9a1b8;

  --a-radius:        6px;
  --a-font-body:     "Inter", "Segoe UI", Arial, sans-serif;
  --a-font-title:    "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
}

/* ---------- 01. PAGE, BACKGROUND & LAYOUT ---------- */

html { scroll-behavior: smooth; }

body {
  font-family: var(--a-font-body);
  color: var(--a-text);
  background-color: #0d0b13;
}

/* Soft vignette so text stays readable on top of any rotating artwork. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(13, 11, 19, 0) 0%, rgba(13, 11, 19, .35) 60%, rgba(13, 11, 19, .8) 100%),
    linear-gradient(180deg, rgba(13, 11, 19, 0) 0, rgba(13, 11, 19, .55) 340px, rgba(13, 11, 19, .86) 100%);
}
#ArtworkHelper { position: relative; z-index: 1; min-width: 1040px; }

#Bodycontainer {
  width: calc(100% - 48px);
  max-width: 1360px;
  min-width: 1000px;
}
#ContentRow { top: 170px; }

#MenuColumn       { width: 212px; margin: 0; left: 0; font-family: var(--a-font-body); }
#ThemeboxesColumn { width: 204px; margin: 0; right: 0; text-align: left; }
#ContentColumn    { margin-left: 232px; margin-right: 224px; }

/* Logo centred above the three columns */
#LeftArtwork {
  left: 50%;
  width: auto;
  height: 150px;
  top: -168px;
  transform: translateX(-50%);
  z-index: 6;
}
#LeftArtwork #TibiaLogoArtworkTop {
  position: static;
  display: block;
  height: 150px;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .65));
  transition: transform .25s ease, filter .25s ease;
}
#LeftArtwork #TibiaLogoArtworkTop:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 6px 18px rgba(113, 56, 184, .45));
}

/* Login + download boxes keep living in the DOM (JS needs them) but the
   hero buttons and the top bar replace them visually. */
#Loginbox, #DownloadBox { display: none; }

/* Keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--a-gold);
  outline-offset: 2px;
}

/* ---------- 02. LEFT MENU ---------- */

#Menu { left: 0; }
#MenuTop, #MenuBottom { display: none !important; }

.menuitem {
  margin-bottom: 8px;
  background: linear-gradient(180deg, var(--a-panel-2), var(--a-panel));
  border: 1px solid #0b0910;
  border-radius: var(--a-radius);
  box-shadow: 0 0 0 1px var(--a-line), 0 8px 18px rgba(0, 0, 0, .45);
  overflow: hidden;
}

.MenuButton {
  width: auto;
  height: 42px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #3d4049 0%, #24262d 100%) !important;
  border-bottom: 1px solid var(--a-gold-dark);
  transition: filter .2s ease;
}
.MenuButton:hover { filter: brightness(1.18); }
.MenuButton > div { position: relative; display: flex; align-items: center; flex: 1; height: 100%; }

.MenuButton .Button, .Lights, .light_lu, .light_ld, .light_ru { display: none !important; }

.Icon {
  position: static;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin-left: 8px;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7));
}

/* The old labels are GIFs with baked-in text; replace with real text. */
.Label {
  position: static;
  flex: 1;
  width: auto;
  height: auto;
  margin-left: 10px;
  background: none !important;
  font-family: var(--a-font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--a-gold-light);
  text-shadow: 0 1px 2px #000;
}
#news_Label::after           { content: "News"; }
#account_Label::after        { content: "Account"; }
#community_Label::after      { content: "Community"; }
#forum_Label::after          { content: "Forum"; }
#library_Label::after        { content: "Library"; }
#charactertrade_Label::after { content: "Char Bazaar"; }
#shops_Label::after          { content: "Shop"; }

/* Expand / collapse indicator: JS swaps the GIF, we draw a chevron instead
   and read the open/closed state from the submenu's inline style. */
.Extend {
  position: static;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-right: 12px;
  background: none !important;
  display: block;
}
.Extend::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--a-gold);
  border-bottom: 2px solid var(--a-gold);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.menuitem:has(> .Submenu[style*="display: block"]) .Extend::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.Submenu {
  width: auto;
  margin: 0;
  padding: 4px 0;
  background: rgba(10, 8, 16, .55);
}
.Submenuitem { position: relative; margin: 0; }
.Submenu a { display: block; }
.LeftChain, .RightChain { display: none; }

.SubmenuitemLabel {
  padding: 7px 14px 7px 26px;
  border: 0;
  border-left: 3px solid transparent;
  font-family: var(--a-font-body);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  color: #d8d2e3 !important;
  transition: background .15s ease, border-color .15s ease, padding .15s ease;
}
.Submenuitem::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -3px;
  background: var(--a-gold-dark);
  transform: rotate(45deg);
  z-index: 1;
}
.Submenuitem:hover { background-color: transparent !important; }
.Submenuitem:hover .SubmenuitemLabel {
  background: rgba(113, 56, 184, .28);
  border-left-color: var(--a-gold);
  color: #fff !important;
  padding-left: 30px;
}
.Submenuitem:hover::before { background: var(--a-gold); }
.Submenuitem:has(.ActiveSubmenuItemIcon[style*="visible"]) .SubmenuitemLabel {
  background: rgba(113, 56, 184, .4);
  border-left-color: var(--a-gold);
  color: #fff !important;
  font-weight: 600;
}
.ActiveSubmenuItemIcon { display: none; }

/* ---------- 03. TOP STATUS BAR ---------- */
/* (selectors are prefixed with #ArtworkHelper so they beat the generic
   title-bar rules in section 04) */

#ArtworkHelper .Content > .Box {
  margin: 0 0 16px;
  border: 1px solid #0b0910 !important;
  border-radius: var(--a-radius);
  background: linear-gradient(180deg, var(--a-panel-2), var(--a-panel)) !important;
  box-shadow: 0 0 0 1px var(--a-line), 0 8px 20px rgba(0, 0, 0, .45);
  overflow: hidden;
}
#ArtworkHelper .Content > .Box > .Corner-tl, #ArtworkHelper .Content > .Box > .Corner-tr,
#ArtworkHelper .Content > .Box > .Border_1, #ArtworkHelper .Content > .Box > .CornerWrapper-b { display: none !important; }

#ArtworkHelper .Content > .Box > .BorderTitleText {
  display: block;
  height: auto !important;
  min-height: 0;
  padding: 0;
  background: none !important;
  border: 0;
  box-shadow: none;
  font-family: var(--a-font-body);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
  color: var(--a-text);
}
#ArtworkHelper .Content > .Box > .BorderTitleText::before { display: none; }

.InfoBar {
  top: 0;
  margin: 0;
  height: auto;
  min-height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--a-font-body);
  font-size: 11px;
  letter-spacing: .9px;
  text-transform: uppercase;
  font-weight: 600;
}
.InfoBar > span[style*="float"] { margin-left: auto; float: none !important; display: flex; align-items: center; gap: 4px; margin-top: 0 !important; margin-right: 0 !important; }
.InfoBarBigLogo { width: 16px; height: 16px; object-fit: contain; margin: 0 4px 0 14px !important; opacity: .9; }
.InfoBar > .InfoBarBigLogo:first-child { margin-left: 0 !important; }
.InfoBarNumbers { display: inline-flex; align-items: center; top: 0; }
.InfoBarSmallElement { margin-left: 4px; }
.Content .InfoBar a, .Content .InfoBar a:link, .Content .InfoBar a:visited {
  padding: 4px 2px;
  font-size: 11px;
  color: #d8d2e3;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.Content .InfoBar a:hover { color: var(--a-gold-light); border-bottom-color: var(--a-gold); text-decoration: none; }

/* ---------- 04. CONTENT BOXES ---------- */

#ContentHelper { margin: 0; }

.Content .Box {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--a-ink);
  background: var(--a-panel) !important;
  border: 1px solid #0b0910 !important;
  border-radius: var(--a-radius);
  /* classic double frame: dark gap + bronze hairline */
  box-shadow: 0 0 0 1px var(--a-gold-dark), 0 0 0 4px #0b0910, 0 0 0 5px var(--a-line), 0 14px 28px rgba(0, 0, 0, .5);
  overflow: hidden;
}

/* remove the legacy GIF frame pieces */
.Content .Corner-tl, .Content .Corner-tr, .Content .CornerWrapper-b,
.Content .BottomCornersHelper, .Content .Box > .Border_1 { display: none !important; }
.Content .Box > img.Title { display: none; }

.Content .Box > .BorderTitleText {
  position: relative;
  height: auto !important;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: linear-gradient(180deg, #3d4049 0%, #24262d 100%) !important;
  border-bottom: 2px solid var(--a-gold-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 0 var(--a-gold) ;
  font-family: var(--a-font-title);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--a-gold-light);
  text-shadow: 0 1px 2px #000;
}
.Content .Box > .BorderTitleText::before {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  margin-right: 12px;
  background: var(--a-gold);
  transform: rotate(45deg);
  box-shadow: 0 0 6px rgba(211, 216, 223, .7);
}
.ArdaTitleText { display: block; }

/* Titles of boxes generated by twig templates that still ship a GIF title */
#newsticker > .BorderTitleText::after      { content: "News Ticker"; }
#FeaturedArticle > .BorderTitleText::after { content: "Featured Article"; }
#NewsArchive > .BorderTitleText::after     { content: "News Archive"; }
#ContentHelper #news #news > .BorderTitleText::after { content: "Latest News"; }

.Content .Border_2 { margin: 0; padding: 0; background: transparent !important; }
.Content .Border_3 { margin: 0; border: 0; background: transparent !important; }

.Content .BoxContent {
  min-height: 0;
  height: auto !important;
  padding: 18px 20px;
  background: linear-gradient(180deg, var(--a-paper) 0%, var(--a-paper-2) 100%) !important;
  color: var(--a-ink);
  font-family: var(--a-font-body);
  font-size: 13px;
  line-height: 1.6;
}
.Content .BoxContent td { font-family: var(--a-font-body); font-size: 13px; color: var(--a-ink); }

.Content a, .Content a:link, .Content a:visited {
  font-family: inherit;
  font-weight: 600;
  color: #4b1f8a;
  text-decoration: none;
}
.Content a:hover { color: var(--a-purple); text-decoration: underline; }

/* On the home page the outer #news wrapper is only a container WHEN the news
   component brings its own framed box inside (#News). If the news items are
   rendered directly inside it, it keeps the normal parchment box instead. */
#ContentHelper > .Box.ArdaBare:has(.BoxContent .Box) {
  background: none !important;
  border: 0 !important;
  box-shadow: none;
  overflow: visible;
  margin-bottom: 0;
}
#ContentHelper > .Box.ArdaBare:has(.BoxContent .Box) > *:not(.Border_2) { display: none !important; }
#ContentHelper > .Box.ArdaBare:has(.BoxContent .Box) > .Border_2 > .Border_3 > .BoxContent {
  padding: 0;
  background: none !important;
  min-height: 0;
}

/* News items rendered directly in the page box (no nested #News) */
.Content .BoxContent .NewsHeadlineBackground {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: auto;
  min-height: 38px;
  margin: 0 0 10px;
  padding: 0 14px;
  background: linear-gradient(180deg, #3d4049, #24262d) !important;
  border: 1px solid #101114;
  border-radius: 4px;
}
.Content .BoxContent .NewsHeadlineIcon { position: static; margin: 0; flex: 0 0 auto; }
.Content .BoxContent .NewsHeadlineDate { position: static; width: auto; flex: 0 0 auto; font-size: 11px; font-weight: 600; color: var(--a-gold-light); }
.Content .BoxContent .NewsHeadlineText { position: static; flex: 1; font-size: 14px; font-weight: 700; color: #fff; }
.Content .BoxContent .NewsHeadlineAuthor { position: static; margin-left: auto; font-size: 11px; color: var(--a-muted); }

/* ---------- 05. HOME: HERO, QUICK LINKS, SECTION INTRO ---------- */

.arda-welcome {
  position: relative;
  margin: 0 0 18px;
  padding: 34px 38px 36px;
  border: 1px solid #0b0910;
  border-radius: var(--a-radius);
  background:
    radial-gradient(ellipse 70% 130% at 92% 0%, rgba(139, 79, 214, .45), transparent 70%),
    radial-gradient(ellipse 40% 80% at 0% 100%, rgba(211, 216, 223, .12), transparent 70%),
    linear-gradient(135deg, #26242e 0%, #16151a 70%);
  box-shadow: 0 0 0 1px var(--a-gold-dark), 0 0 0 4px #0b0910, 0 0 0 5px var(--a-line), 0 14px 28px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.arda-welcome::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--a-gold), transparent);
}
.arda-eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--a-gold);
}
.arda-welcome h1 {
  margin: 0 0 12px;
  font-family: var(--a-font-title);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: .5px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}
.arda-welcome h1 span { color: var(--a-purple-light); }
.arda-welcome p {
  max-width: 560px;
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #cfc8dc;
}
.arda-welcome-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.Content a.arda-action, .Content a.arda-action:link, .Content a.arda-action:visited {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 4px;
  font-family: var(--a-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.Content a.arda-action-primary, .Content a.arda-action-primary:link, .Content a.arda-action-primary:visited {
  color: #fff;
  background: linear-gradient(180deg, #8b4fd6, #5b2a99);
  border: 1px solid var(--a-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 12px rgba(113, 56, 184, .45);
}
.Content a.arda-action-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 18px rgba(113, 56, 184, .65); }
.Content a.arda-action-secondary, .Content a.arda-action-secondary:link, .Content a.arda-action-secondary:visited {
  color: var(--a-gold-light);
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--a-gold-dark);
}
.Content a.arda-action-secondary:hover { transform: translateY(-2px); color: #fff; border-color: var(--a-gold); background: rgba(211, 216, 223, .15); }

.arda-quicklinks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 18px;
}
.Content .arda-quicklinks a, .Content .arda-quicklinks a:link, .Content .arda-quicklinks a:visited {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #0b0910;
  border-radius: var(--a-radius);
  background: linear-gradient(180deg, var(--a-panel-2), var(--a-panel));
  box-shadow: 0 0 0 1px var(--a-line), 0 6px 14px rgba(0, 0, 0, .4);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.arda-quicklinks a:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px var(--a-gold), 0 12px 22px rgba(0, 0, 0, .5);
}
.arda-quick-icon {
  flex: 0 0 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--a-gold-dark);
  border-radius: 50%;
  background: radial-gradient(circle, #3d4049, #1f2026);
  font-size: 18px;
  color: var(--a-gold-light);
}
.arda-quicklinks a > span:nth-child(2) { flex: 1; min-width: 0; }
.arda-quicklinks strong {
  display: block;
  font-family: var(--a-font-title);
  font-size: 14px;
  letter-spacing: .8px;
  color: #fff;
}
.arda-quicklinks small { display: block; margin-top: 2px; font-size: 12px; color: var(--a-muted); }
.arda-quick-arrow { font-size: 18px; color: var(--a-gold); transition: transform .15s ease; }
.arda-quicklinks a:hover .arda-quick-arrow { transform: translateX(4px); }

.arda-section-intro {
  margin: 0 0 14px;
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--a-line);
  text-shadow: 0 1px 3px #000;
}
.arda-section-intro span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 3px; color: var(--a-gold); }
.arda-section-intro p { margin: 4px 0 0; font-family: var(--a-font-title); font-size: 20px; font-weight: 600; color: #fff; }

/* ---------- 06. NEWS, TICKER, FEATURED ARTICLE ---------- */

/* Headline rows: icon + date + title in one flex bar */
.Content #News .NewsHeadlineBackground,
.Content #NewsArchive .NewsHeadlineBackground,
.Content #FeaturedArticle .NewsHeadlineBackground {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: auto;
  min-height: 38px;
  margin: 0 0 10px;
  padding: 0 14px;
  background: linear-gradient(180deg, #3d4049, #24262d) !important;
  border: 1px solid #101114;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.Content #News .NewsHeadlineIcon,
.Content #NewsArchive .NewsHeadlineIcon,
.Content #FeaturedArticle .NewsHeadlineIcon { position: static; margin: 0; flex: 0 0 auto; }
.Content #News .NewsHeadlineDate,
.Content #NewsArchive .NewsHeadlineDate,
.Content #FeaturedArticle .NewsHeadlineDate {
  position: static;
  width: auto;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--a-gold-light);
}
.Content #News .NewsHeadlineText,
.Content #NewsArchive .NewsHeadlineText,
.Content #FeaturedArticle .NewsHeadlineText {
  position: static;
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.Content #News .NewsHeadlineAuthor { position: static; margin-left: auto; font-size: 11px; color: var(--a-muted); }

.Content #News .BoxContent table,
.Content #NewsArchive .BoxContent table { margin-bottom: 14px; }

/* Ticker: clean list rows */
.Content #newsticker .BoxContent { padding: 10px; min-height: 0; }
.Content #newsticker .Row { position: relative; width: auto; margin-bottom: 6px; }
.Content #newsticker .Row > .Odd,
.Content #newsticker .Row > .Even {
  position: relative;
  padding: 9px 12px 9px 36px;
  border: 1px solid var(--a-paper-edge);
  border-radius: 4px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.Content #newsticker .Row > .Even { background: rgba(255, 255, 255, .22); }
.Content #newsticker .Row > div:hover { background: rgba(255, 255, 255, .75); border-color: var(--a-gold-dark); }
.Content #newsticker .NewsTickerIcon { position: absolute; top: 10px; left: 12px; width: 16px; height: 16px; }
.Content #newsticker .NewsTickerExtend { position: relative; top: 2px; right: 0; float: right; }
.Content #newsticker .NewsTickerText { position: relative; margin-left: 0; font-size: 13px; color: var(--a-ink); }
.Content #newsticker .NewsTickerDate {
  position: absolute; top: 2px; left: 0; float: none;
  font-size: 11px; font-weight: 600; letter-spacing: .3px; color: var(--a-ink-soft);
}
.Content #newsticker .NewsTickerShortText { margin-left: 96px; height: auto; min-height: 18px; }
.Content #newsticker .NewsTickerFullText  { margin-left: 96px; margin-right: 22px; }

/* Featured article */
.Content #FeaturedArticle #TeaserThumbnail img { border: 1px solid var(--a-gold-dark); border-radius: 4px; }

/* ---------- 07. LEGACY INNER PAGES: TABLES, FORMS, BUTTONS ---------- */

.TableContainer {
  border: 0;
  margin-bottom: 18px;
  font-size: 13px;
  border-radius: var(--a-radius);
  box-shadow: 0 0 0 1px var(--a-paper-edge);
  overflow: hidden;
}
.TableContainer .CaptionContainer,
.TableContainer .CaptionContainer .CaptionInnerContainer {
  padding: 0;
  background: linear-gradient(180deg, #3d4049, #24262d) !important;
}
.TableContainer .CaptionContainer { border-bottom: 2px solid var(--a-gold-dark); font-size: 13px; }
.TableContainer .CaptionContainer > .CaptionInnerContainer > span { display: none; }
.TableContainer .CaptionContainer .Text {
  margin: 0;
  padding: 10px 16px;
  font-family: var(--a-font-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--a-gold-light);
  text-shadow: 0 1px 2px #000;
}
.TableContainer .Table1, .TableContainer .Table2, .TableContainer .Table3,
.TableContainer .Table4, .TableContainer .Table5 {
  width: 100%;
  border: 0;
  background: transparent !important;
}
.TableContainer .InnerTableContainer { padding: 10px; }
.InnerTableContainer .TableContentContainer,
.TableContentContainer {
  margin: 0 0 8px;
  border: 1px solid var(--a-paper-edge);
  border-radius: 4px;
  box-shadow: none;
  background: transparent;
  overflow: hidden;
}
.TableContent td { padding: 7px 10px; }
.TableContainer .Table3 .TableContent td { border: 1px solid rgba(255, 255, 255, .45); }
.TableContainer .Odd  { background-color: #f4ecd9; }
.TableContainer .Even { background-color: #e6d9bb; }

.Content th { padding: 8px 10px; font-family: var(--a-font-body); font-size: 12px; letter-spacing: .5px; background: var(--a-purple-deep); color: var(--a-gold-light); }
/* tables in the PHP pages mark their header rows with the old grey */
.Content .BoxContent tr[bgcolor="#505050"] > td,
.Content .BoxContent tr[bgcolor="#505050" i] > td { background: var(--a-purple-deep) !important; color: var(--a-gold-light); }
.Content .BoxContent tr[bgcolor="#505050"] font { color: var(--a-gold-light); }

.Content input[type="text"], .Content input[type="password"], .Content input[type="email"],
.Content input[type="number"], .Content input[type="search"], .Content select, .Content textarea {
  box-sizing: border-box;
  padding: 7px 10px;
  font-family: var(--a-font-body);
  font-size: 13px;
  color: var(--a-ink);
  background: #fffaf0;
  border: 1px solid var(--a-paper-edge);
  border-radius: 4px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.Content input[type="text"]:focus, .Content input[type="password"]:focus, .Content input[type="email"]:focus,
.Content input[type="number"]:focus, .Content select:focus, .Content textarea:focus {
  outline: none;
  border-color: var(--a-purple);
  box-shadow: 0 0 0 3px rgba(113, 56, 184, .22);
}

/* Template buttons: same markup, new look */
.BigButton {
  width: auto;
  min-width: 140px;
  height: 32px;
  background: linear-gradient(180deg, #8b4fd6, #5b2a99) !important;
  border: 1px solid var(--a-gold-dark);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 8px rgba(0, 0, 0, .3);
  overflow: hidden;
  transition: filter .15s ease, transform .15s ease;
}
.BigButton:hover { filter: brightness(1.15); transform: translateY(-1px); }
.BigButtonOver { display: none; }
.BigButtonText, .BigButtonText:hover {
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  font-family: var(--a-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .5);
}

/* Messages */
.SmallBox .ErrorMessage, .SmallBox .Message { border-radius: 4px; background: #f6e7c4; }

/* ---------- 08. RIGHT COLUMN WIDGETS ---------- */

#Themeboxes { padding-top: 0; }
#Themeboxes a, #Themeboxes a:hover { text-decoration: none; }
#Themeboxes div { font-size: 13px; }

/* Shared card look for every box coming from boxes/*.php */
#Themeboxes .rank, #Themeboxes .discord, #Themeboxes .serversave, #Themeboxes .donate,
#Themeboxes .arda-search, #Themeboxes .arda-rashid, #Themeboxes .arda-boosted, #ArtworkHelper .arda-login, #Themeboxes #CurrentPollBox {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0 0 16px;
  top: 0;
  border: 1px solid #0b0910;
  border-radius: var(--a-radius);
  background: linear-gradient(180deg, var(--a-panel-2), var(--a-panel)) !important;
  box-shadow: 0 0 0 1px var(--a-gold-dark), 0 0 0 4px #0b0910, 0 0 0 5px var(--a-line), 0 10px 22px rgba(0, 0, 0, .5);
  overflow: hidden;
  font-family: var(--a-font-body);
  color: var(--a-text);
  text-align: left;
}
#Themeboxes .rank_header, #Themeboxes .discord_header, #Themeboxes .serversave_header,
#Themeboxes .donate_header, #Themeboxes .arda-search__title, #Themeboxes .arda-rashid__heading {
  width: auto;
  height: auto;
  margin: 0;
  padding: 11px 12px;
  background: linear-gradient(180deg, #3d4049, #24262d) !important;
  border-bottom: 2px solid var(--a-gold-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  font-family: var(--a-font-title);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1.6px;
  text-align: center;
  text-transform: uppercase;
  color: var(--a-gold-light);
  text-shadow: 0 1px 2px #000;
}
#Themeboxes .rank_content, #Themeboxes .discord_content, #Themeboxes .serversave_content,
#Themeboxes .donate_content {
  box-sizing: border-box;
  width: auto;
  height: auto;
  max-height: none;
  padding: 14px 14px 16px;
  background: none !important;
  justify-content: stretch;
  gap: 10px;
}
#Themeboxes .rank_bottom, #Themeboxes .discord_bottom, #Themeboxes .serversave_bottom,
#Themeboxes .donate_bottom { display: none; }

/* Box buttons */
#Themeboxes .rank_button, #Themeboxes .discord_button, #Themeboxes .donate_button,
#Themeboxes .arda-search__button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  padding: 9px 12px;
  border: 1px solid var(--a-gold-dark);
  border-radius: 4px;
  background: linear-gradient(180deg, #8b4fd6, #5b2a99) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 8px rgba(0, 0, 0, .35);
  font-family: var(--a-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
#Themeboxes .rank_button:hover, #Themeboxes .discord_button:hover, #Themeboxes .donate_button:hover,
#Themeboxes .arda-search__button:hover { filter: brightness(1.18); transform: translateY(-1px); color: #fff; }
#Themeboxes .rank_content > a, #Themeboxes .discord_content > a, #Themeboxes .donate_content > a { display: block; width: 100%; }

/* One font family for every box (the PHP boxes hard-code Verdana) */
#Themeboxes .rank_player, #Themeboxes .rank_text, #Themeboxes .serversave_text,
#Themeboxes .donate_text, #Themeboxes .rank_button, #Themeboxes .discord_button,
#Themeboxes .donate_button { font-family: var(--a-font-body); }

/* Highscores: outfit + name + level per row */
#Themeboxes .rank_player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(211, 216, 223, .14);
  color: var(--a-text);
}
#Themeboxes .rank_outfit {
  position: static;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin: 0;
  left: auto;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
#Themeboxes .rank_text { margin: 0; min-width: 0; line-height: 1.35; }
#Themeboxes .rank_text a, #Themeboxes .rank_text a:link, #Themeboxes .rank_text a:visited { color: #fff; font-weight: 600; text-decoration: none; }
#Themeboxes .rank_text a:hover { color: var(--a-gold-light); }
#Themeboxes .rank_text small { color: var(--a-muted); font-size: 11px; }
#Themeboxes .rank_content > a { margin-top: 12px; }

/* Server save */
#Themeboxes .serversave_content { display: flex; flex-direction: column; align-items: center; text-align: center; }
#Themeboxes .serversave_text, #Themeboxes .serversave_text small { font-family: var(--a-font-body); font-size: 11px !important; letter-spacing: .6px; text-transform: uppercase; color: var(--a-muted); }
#Themeboxes .serversave_countdown {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 0;
  border: 1px solid var(--a-gold-dark);
  border-radius: 4px;
  background: rgba(0, 0, 0, .35);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6);
  font-family: var(--a-font-title);
  font-size: 22px !important;
  font-weight: 700;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  color: var(--a-gold-light);
}

/* Donate */
#Themeboxes .donate_content img { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid var(--a-gold-dark); border-radius: 4px; }

/* Search */
#Themeboxes .arda-search { padding: 0 0 14px; }
#Themeboxes .arda-search > *:not(.arda-search__title) { margin-left: 14px; margin-right: 14px; }
#Themeboxes .arda-search__label { display: block; margin-top: 14px !important; margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--a-muted); }
#Themeboxes .arda-search__input {
  display: block;
  box-sizing: border-box;
  width: calc(100% - 28px);
  margin-bottom: 10px;
  padding: 9px 10px;
  border: 1px solid var(--a-gold-dark);
  border-radius: 4px;
  background: rgba(0, 0, 0, .35);
  font-family: var(--a-font-body);
  font-size: 13px;
  color: #fff;
}
#Themeboxes .arda-search__input::placeholder { color: #8f87a0; }
#Themeboxes .arda-search__input:focus { outline: none; border-color: var(--a-purple-light); box-shadow: 0 0 0 3px rgba(149, 99, 209, .3); }
#Themeboxes .arda-search__button { width: calc(100% - 28px); }

/* Rashid */
#Themeboxes .arda-rashid__content { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
#Themeboxes .arda-rashid__sprite { flex: 0 0 auto; image-rendering: pixelated; }
#Themeboxes .arda-rashid__details span { display: block; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--a-muted); }
#Themeboxes .arda-rashid__details strong { display: block; margin-top: 2px; font-family: var(--a-font-title); font-size: 15px; color: #fff; }

/* Poll (only shown when a poll is active) */
#Themeboxes #CurrentPollBox { padding: 14px; }
#Themeboxes #CurrentPollBox #CurrentPollText { position: static; width: auto; height: auto; margin-bottom: 12px; font-size: 13px; color: var(--a-text); }
#Themeboxes #CurrentPollBox .Bottom { display: none; }

/* Boosted creature / boss: pedestal artwork stays, and a broken image
   falls back to a tidy stone tile instead of raw alt text. */
#RightArtwork { right: 36px; }
#RightArtwork #Creature, #RightArtwork #Boss { font-size: 0; color: transparent; }
#RightArtwork #Creature::after, #RightArtwork #Boss::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--a-gold-dark);
  border-radius: 4px;
  background: radial-gradient(circle at 50% 40%, #3a3050, #1a1624);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, .7);
}

/* ---------- 09. FOOTER ---------- */

#Footer {
  padding: 8px 0 28px;
  font-family: var(--a-font-body);
  font-size: 11px;
  letter-spacing: .3px;
  color: var(--a-muted);
  text-shadow: 0 1px 2px #000;
}
#Footer a:link, #Footer a:visited { color: var(--a-gold-light); }
#Footer a:hover { color: #fff; }

/* ---------- 10. RESPONSIVE ---------- */

@media (max-width: 1400px) and (min-width: 1101px) {
  .arda-quick-arrow { display: none; }
}

@media (max-width: 1100px) {
  #ArtworkHelper, #Bodycontainer { min-width: 0; }
  #Bodycontainer { display: block; width: calc(100% - 24px); }
  #ContentRow { top: 0; display: flex; flex-direction: column; padding-top: 170px; }
  #LeftArtwork { top: 6px; }
  #MenuColumn, #ThemeboxesColumn { position: static; width: auto; }
  #ContentColumn { margin: 0; order: 2; }
  #MenuColumn { order: 1; margin-bottom: 16px; }
  #ThemeboxesColumn { order: 3; margin-top: 8px; }
  #RightArtwork { display: none; }
  #Themeboxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
  .arda-quicklinks { grid-template-columns: 1fr; }
  .arda-welcome { padding: 26px 22px; }
  .arda-welcome h1 { font-size: 26px; }
  .InfoBar { flex-wrap: wrap; padding: 6px 12px; }
}
@media (max-width: 560px) {
  #LeftArtwork #TibiaLogoArtworkTop { height: 120px; }
  #ContentRow { padding-top: 130px; }
  .Content #newsticker .NewsTickerShortText, .Content #newsticker .NewsTickerFullText { margin-left: 0; padding-top: 18px; }
  .Content .BoxContent { padding: 14px; }
}

/* =============================================================================
   11. PLATA PULIDA + ORNAMENTOS
       E = esquinas cortadas (cajas grandes y hero)
       F = corchetes en las esquinas (menu, widgets, barra, accesos rapidos)
   Esta seccion va al final a proposito: refina las secciones anteriores.
   ============================================================================= */

:root {
  --a-silver-edge: linear-gradient(180deg, #f4f6f9, #aeb4bf 50%, #6d7480);
  --a-bracket: #d3d8df;
  --a-surface: linear-gradient(180deg, #2a2a31, #1c1c22);
}

/* ---------- E: cajas grandes con marco de esquinas cortadas ---------- */

#ContentHelper .Box {
  position: relative;
  box-sizing: border-box;
  margin: 0 0 22px;
  padding: 2px;
  background: none !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  overflow: visible;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .5));
}
#ContentHelper .Box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--a-silver-edge);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}
#ContentHelper .Box > * { position: relative; z-index: 1; }

#ContentHelper .Box > .BorderTitleText {
  clip-path: polygon(17px 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 0 100%, 0 17px);
  border-bottom: 2px solid var(--a-gold-dark);
}
#ContentHelper .Box .BoxContent {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 17px), calc(100% - 17px) 100%, 17px 100%, 0 calc(100% - 17px));
}

/* Noticias y ticker de la portada: panel oscuro (el pergamino queda para las
   paginas internas con tablas antiguas). */
#ContentHelper #news .BoxContent,
#ContentHelper #News .BoxContent,
#ContentHelper #newsticker .BoxContent {
  background: var(--a-surface) !important;
  color: #d8d2e3;
}
#ContentHelper #news .BoxContent td,
#ContentHelper #News .BoxContent td { color: #d8d2e3; }
#ContentHelper #news .BoxContent font,
#ContentHelper #News .BoxContent font { color: inherit !important; }
#ContentHelper #news .BoxContent a,
#ContentHelper #News .BoxContent a:link,
#ContentHelper #News .BoxContent a:visited,
#ContentHelper #newsticker .BoxContent a { color: #e9e4f5 !important; }
#ContentHelper #news .BoxContent a:hover,
#ContentHelper #News .BoxContent a:hover,
#ContentHelper #newsticker .BoxContent a:hover { color: #ffffff !important; text-decoration: underline; }

.Content #newsticker .Row > .Odd,
.Content #newsticker .Row > .Even {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(211, 216, 223, .22);
}
.Content #newsticker .Row > div:hover { background: rgba(255, 255, 255, .09); border-color: var(--a-gold); }
.Content #newsticker .NewsTickerText { color: #d8d2e3; }
.Content #newsticker .NewsTickerDate { color: #b8b2c9; }

/* Hero (E) */
.arda-welcome {
  position: relative;
  isolation: isolate;
  padding: 38px 44px 40px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .5));
}
.arda-welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  z-index: -1;
  background: var(--a-silver-edge);
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
}
.arda-welcome::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 130% at 92% 0%, rgba(139, 79, 214, .45), transparent 70%),
    linear-gradient(135deg, #26242e 0%, #16151a 70%);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}

/* ---------- F: corchetes en las esquinas ---------- */

.menuitem,
#Themeboxes .rank, #Themeboxes .discord, #Themeboxes .serversave, #Themeboxes .donate,
#Themeboxes .arda-search, #Themeboxes .arda-rashid, #Themeboxes .arda-boosted, #ArtworkHelper .arda-login, #Themeboxes #CurrentPollBox,
.Content .arda-quicklinks a,
#ArtworkHelper .Content > .Box {
  position: relative;
  border: 1px solid var(--a-line) !important;
  border-radius: 0;
  background: var(--a-surface) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .45);
  overflow: visible;
}
.menuitem::after,
#Themeboxes .rank::after, #Themeboxes .discord::after, #Themeboxes .serversave::after, #Themeboxes .donate::after,
#Themeboxes .arda-search::after, #Themeboxes .arda-rashid::after, #Themeboxes .arda-boosted::after, #ArtworkHelper .arda-login::after, #Themeboxes #CurrentPollBox::after,
.Content .arda-quicklinks a::after,
#ArtworkHelper .Content > .Box::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(var(--a-bracket), var(--a-bracket)) 0 0 / 12px 2px no-repeat,
    linear-gradient(var(--a-bracket), var(--a-bracket)) 0 0 / 2px 12px no-repeat,
    linear-gradient(var(--a-bracket), var(--a-bracket)) 100% 0 / 12px 2px no-repeat,
    linear-gradient(var(--a-bracket), var(--a-bracket)) 100% 0 / 2px 12px no-repeat,
    linear-gradient(var(--a-bracket), var(--a-bracket)) 0 100% / 12px 2px no-repeat,
    linear-gradient(var(--a-bracket), var(--a-bracket)) 0 100% / 2px 12px no-repeat,
    linear-gradient(var(--a-bracket), var(--a-bracket)) 100% 100% / 12px 2px no-repeat,
    linear-gradient(var(--a-bracket), var(--a-bracket)) 100% 100% / 2px 12px no-repeat;
}
.Content .arda-quicklinks a:hover { box-shadow: 0 12px 22px rgba(0, 0, 0, .55); }
.Content .arda-quicklinks a:hover::after { --a-bracket: #ffffff; }
.Content .arda-quicklinks a { margin: 0; }

/* El menu: encabezado morado de borde a borde dentro del corchete */
.menuitem { margin-bottom: 14px; }
.menuitem .MenuButton { border-bottom: 1px solid var(--a-line); }

/* Widgets: separar un poco mas y quitar el marco doble anterior */
#Themeboxes .rank, #Themeboxes .discord, #Themeboxes .serversave, #Themeboxes .donate,
#Themeboxes .arda-search, #Themeboxes .arda-rashid, #Themeboxes .arda-boosted, #ArtworkHelper .arda-login, #Themeboxes #CurrentPollBox { margin-bottom: 18px; }

/* Portada: el #news exterior es solo un contenedor cuando el componente de
   noticias trae su propia caja (#News). No debe dibujar marco propio. */
#ContentHelper > .Box.ArdaBare:has(.BoxContent .Box) {
  padding: 0;
  margin-bottom: 0;
  filter: none;
}
#ContentHelper > .Box.ArdaBare:has(.BoxContent .Box)::before { display: none; }
#ContentHelper > .Box.ArdaBare:has(.BoxContent .Box) > .Border_2 > .Border_3 > .BoxContent { clip-path: none; }
#ContentHelper > .Box.ArdaBare:has(.BoxContent .Box) .BoxContent .Box { margin-bottom: 0; }
#ContentHelper #news.Box.ArdaBare:has(.BoxContent .Box) > .Border_2 > .Border_3 > .BoxContent {
  background: none !important;
}

@media (max-width: 1100px) {
  .arda-welcome { padding: 28px 24px 30px; }
}

/* ==========================================================================
   12. Fondo "Morado mínimo" (opción F)
   Halo tenue morado arriba, resto neutro. Barras en gris metálico; el morado
   queda solo en botones, enlaces y logo.
   ========================================================================== */
html { background: #0d0c11; }
body {
  background: radial-gradient(ellipse 65% 60% at 50% 0%, rgba(139, 79, 214, .42), transparent 70%),
              linear-gradient(180deg, #17151e, #0d0c11 70%) !important;
  background-attachment: fixed !important;
  background-color: #0d0c11 !important;
}
body::before { display: none; }

/* ==========================================================================
   13. Menu sin iconos, reposo neutro y caja Boosted
   ========================================================================== */
.MenuButton .Icon { display: none !important; }
.MenuButton .Label { margin-left: 18px; }
/* El JS del menu pintaba los subitems de verde al salir el mouse. */
.Submenuitem { background-color: transparent !important; }

#Themeboxes .arda-boosted__heading {
  padding: 11px 12px;
  background: linear-gradient(180deg, #3d4049, #24262d);
  border-bottom: 2px solid var(--a-gold-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  font-family: var(--a-font-title);
  font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: 1.6px;
  text-align: center; text-transform: uppercase; color: #eef0f4;
}
#Themeboxes .arda-boosted__content { display: flex; padding: 12px 6px 14px; }
#Themeboxes .arda-boosted__card {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 0 6px; text-align: center;
}
#Themeboxes .arda-boosted__card + .arda-boosted__card { border-left: 1px solid var(--a-line); }
#Themeboxes .arda-boosted__tile {
  position: relative; width: 64px; height: 64px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, #2f2f38, #17171c);
  border: 1px solid var(--a-gold-dark);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, .6);
}
/* esquinas tipo corchete (F) */
#Themeboxes .arda-boosted__tile::after {
  content: ""; position: absolute; inset: -3px; pointer-events: none;
  background:
    linear-gradient(var(--a-bracket),var(--a-bracket)) top left/9px 2px,
    linear-gradient(var(--a-bracket),var(--a-bracket)) top left/2px 9px,
    linear-gradient(var(--a-bracket),var(--a-bracket)) top right/9px 2px,
    linear-gradient(var(--a-bracket),var(--a-bracket)) top right/2px 9px,
    linear-gradient(var(--a-bracket),var(--a-bracket)) bottom left/9px 2px,
    linear-gradient(var(--a-bracket),var(--a-bracket)) bottom left/2px 9px,
    linear-gradient(var(--a-bracket),var(--a-bracket)) bottom right/9px 2px,
    linear-gradient(var(--a-bracket),var(--a-bracket)) bottom right/2px 9px;
  background-repeat: no-repeat;
}
#Themeboxes .arda-boosted__tile img { max-width: 100%; max-height: 100%; image-rendering: pixelated; font-size: 0; color: transparent; }
#Themeboxes .arda-boosted__label { margin-top: 10px; font-family: var(--a-font-title); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #eef0f4; }
#Themeboxes .arda-boosted__name { max-width: 100%; margin-top: 2px; font-size: 11px; color: var(--a-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Boton de Discord con icono */
#Themeboxes .discord_button { display: flex; align-items: center; justify-content: center; gap: 8px; }
#Themeboxes .discord_button .arda-discord-icon { flex: 0 0 auto; width: 20px; height: 20px; }

/* ==========================================================================
   14. Caja Login + boton Download destacado (columna derecha, primero)
   ========================================================================== */
#ArtworkHelper .arda-login__heading {
  padding: 11px 12px;
  background: linear-gradient(180deg, #3d4049, #24262d);
  border-bottom: 2px solid var(--a-gold-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  font-family: var(--a-font-title);
  font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: 1.6px;
  text-align: center; text-transform: uppercase; color: #eef0f4;
}
#ArtworkHelper .arda-login__content { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 16px; }
#ArtworkHelper a.arda-login__btn {
  display: block; box-sizing: border-box; width: 100%; padding: 10px 12px; text-align: center; text-decoration: none;
  border: 1px solid var(--a-gold-dark); border-radius: 4px;
  font-family: var(--a-font-body); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #fff;
  transition: filter .15s ease, transform .15s ease;
}
#ArtworkHelper a.arda-login__btn--primary {
  background: linear-gradient(180deg, #8b4fd6, #5b2a99);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 8px rgba(0, 0, 0, .35);
}
#ArtworkHelper a.arda-login__btn--secondary {
  background: linear-gradient(180deg, #4a4d58, #2f3139);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 3px 8px rgba(0, 0, 0, .35);
}
#ArtworkHelper a.arda-login__btn:hover { filter: brightness(1.18); transform: translateY(-1px); color: #fff; }

/* Download: boton grande que sobresale (violeta brillante, borde plata, brillo) */
#ArtworkHelper a.arda-download {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-sizing: border-box; width: 100%; margin: 0 0 18px; padding: 14px 12px;
  text-decoration: none;
  background: linear-gradient(180deg, #a56cf0 0%, #7138b8 50%, #51229a 100%);
  border: 2px solid #d3d8df; border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 1px #0b0910, 0 0 18px rgba(139, 79, 214, .55), 0 8px 16px rgba(0, 0, 0, .5);
  font-family: var(--a-font-title); font-size: 15px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  transition: filter .15s ease, transform .15s ease;
}
#ArtworkHelper a.arda-download:hover { filter: brightness(1.15); transform: translateY(-2px); color: #fff; }
#ArtworkHelper a.arda-download .arda-download__icon { flex: 0 0 auto; }

/* ==========================================================================
   15. Barra superior: separadores y dropdown "Languages"
   ========================================================================== */
.InfoBar { gap: 0; }
.InfoBar > span[style*="float"] { gap: 0; align-self: stretch; }
.InfoBarItem { display: inline-flex; align-items: center; align-self: stretch; padding: 0 14px; }
.InfoBar > .InfoBarItem:first-child { padding-left: 0; }
.InfoBarItem + .InfoBarItem { border-left: 1px solid var(--a-line); }
.InfoBar > span[style*="float"] > .InfoBarItem:first-child { border-left: 1px solid var(--a-line); }
.InfoBar > span[style*="float"] > .InfoBarItem:last-child { padding-right: 0; }
.InfoBarItem .InfoBarBigLogo { margin: 0 4px 0 0 !important; }

.arda-lang { position: relative; }
.arda-lang > summary {
  display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  font-size: 11px; font-weight: 600; letter-spacing: .9px; text-transform: uppercase; color: #d8d2e3;
  transition: color .15s ease;
}
.arda-lang > summary::-webkit-details-marker { display: none; }
.arda-lang > summary:hover, .arda-lang[open] > summary { color: var(--a-gold-light); }
.arda-lang__chev { width: 6px; height: 6px; margin: -3px 0 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
.arda-lang[open] .arda-lang__chev { transform: rotate(-135deg); margin-top: 3px; }
.arda-lang__list {
  position: absolute; z-index: 60; top: calc(100% + 14px); right: -6px; min-width: 150px; margin: 0; padding: 6px 0; list-style: none;
  background: linear-gradient(180deg, #2a2a31, #1c1c22);
  border: 1px solid var(--a-gold-dark); border-radius: 4px;
  box-shadow: 0 0 0 1px #0b0910, 0 12px 24px rgba(0, 0, 0, .6);
}
.arda-lang__list li { margin: 0; padding: 0; }
.Content .InfoBar .arda-lang__list a, .Content .InfoBar .arda-lang__list a:link, .Content .InfoBar .arda-lang__list a:visited {
  display: block; padding: 8px 16px; border: 0; border-left: 3px solid transparent;
  font-size: 12px; letter-spacing: .4px; text-transform: none; color: #d8d2e3;
}
.Content .InfoBar .arda-lang__list a:hover { background: rgba(113, 56, 184, .28); border-left-color: var(--a-gold); color: #fff; }

/* Barra superior: los 5 elementos repartidos en partes iguales y centrados */
.InfoBar { padding: 0; }
.InfoBar > span[style*="float"] { display: contents !important; }
.InfoBarItem,
.InfoBar > .InfoBarItem:first-child,
.InfoBar > span[style*="float"] > .InfoBarItem:last-child {
  flex: 1 1 0; justify-content: center; min-width: 0; padding: 0 10px; white-space: nowrap;
}
@media (max-width: 1100px) {
  .InfoBarItem, .InfoBar > .InfoBarItem:first-child, .InfoBar > span[style*="float"] > .InfoBarItem:last-child { flex: 1 1 auto; padding: 10px; }
  .InfoBar { flex-wrap: wrap; padding: 0; }
}

/* Idioma actual marcado en la lista */
.Content .InfoBar .arda-lang__list a.is-active { color: #fff; font-weight: 700; border-left-color: var(--a-gold); background: rgba(113, 56, 184, .4); }


/* ==========================================================================
   16. Logo nuevo (wordmark plata + violeta), centrado sobre las tres columnas
   ========================================================================== */
#LeftArtwork { left: 50%; right: auto; width: auto; height: 142px; top: -158px; transform: translateX(-50%); }
#LeftArtwork #TibiaLogoArtworkTop { height: 142px; width: auto; max-width: none; }
@media (max-width: 1100px) {
  #LeftArtwork { top: 12px; }
}
@media (max-width: 560px) {
  #LeftArtwork #TibiaLogoArtworkTop { height: 96px; }
}

/* ==========================================================================
   17. Mas vida: detalles violeta, brillos animados y sombras en iconos
   ========================================================================== */
:root { --a-glow: rgba(139, 79, 214, .55); --a-violet: #8b4fd6; --a-violet-light: #b890f5; }

/* Barras de titulo: linea violeta luminosa debajo */
.MenuButton,
#Themeboxes .rank_header, #Themeboxes .discord_header, #Themeboxes .serversave_header, #Themeboxes .donate_header,
#Themeboxes .arda-search__title, #Themeboxes .arda-rashid__heading, #Themeboxes .arda-boosted__heading,
#ArtworkHelper .arda-login__heading,
#ContentHelper .Box > .BorderTitleText {
  border-bottom-color: var(--a-violet) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -10px 14px -10px var(--a-glow);
}

/* Brillo violeta alrededor de cajas y portada */
.menuitem { filter: drop-shadow(0 0 8px rgba(139, 79, 214, .22)); }
#ContentHelper .Box { filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .5)) drop-shadow(0 0 12px rgba(139, 79, 214, .28)); }
.arda-welcome { filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .5)) drop-shadow(0 0 16px rgba(139, 79, 214, .38)); }
#Themeboxes .rank, #Themeboxes .discord, #Themeboxes .serversave, #Themeboxes .donate, #Themeboxes .arda-search,
#Themeboxes .arda-rashid, #Themeboxes .arda-boosted, #ArtworkHelper .arda-login, #Themeboxes #CurrentPollBox {
  filter: drop-shadow(0 0 10px rgba(139, 79, 214, .26));
}

/* Rombos violeta */
.Content .Box > .BorderTitleText::before { background: var(--a-violet-light); box-shadow: 0 0 8px 1px var(--a-violet); animation: ardaGem 2.6s ease-in-out infinite; }
.Submenuitem::before { background: var(--a-violet); box-shadow: 0 0 5px var(--a-violet); }
.Submenuitem:hover::before { background: var(--a-violet-light); }

/* Sombras moradas en los iconos de la barra superior y los accesos rapidos */
.InfoBarBigLogo { filter: drop-shadow(0 0 5px rgba(139, 79, 214, .95)) drop-shadow(0 0 2px rgba(190, 140, 255, .55)); }
.arda-lang__globe { filter: drop-shadow(0 0 5px rgba(139, 79, 214, .95)) drop-shadow(0 0 2px rgba(190, 140, 255, .55)); }
.arda-quick-icon { box-shadow: 0 0 12px rgba(139, 79, 214, .55), inset 0 0 8px rgba(139, 79, 214, .25); text-shadow: 0 0 8px rgba(139, 79, 214, .9); }
#ArtworkHelper .arda-download__icon { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .6)); }

/* Brillos animados en la portada: reflejo en el borde y destellos */
.arda-welcome::before {
  background:
    linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%) 150% 0 / 250% 100% no-repeat,
    var(--a-silver-edge);
  animation: ardaSweep 4.2s linear infinite;
}
.arda-welcome .arda-eyebrow, .arda-welcome h1, .arda-welcome p { position: static; }
.arda-welcome .arda-eyebrow::after, .arda-welcome h1::after, .arda-welcome p::after {
  content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; pointer-events: none;
  box-shadow: 0 0 8px 2px rgba(190, 150, 255, .9); opacity: .1; animation: ardaTwinkle 3s ease-in-out infinite;
}
.arda-welcome .arda-eyebrow::after { left: 88%; top: 14%; }
.arda-welcome h1::after { left: 72%; top: 60%; animation-delay: 1.1s; }
.arda-welcome p::after { left: 94%; top: 78%; animation-delay: 2s; }

@keyframes ardaSweep { 0% { background-position: 150% 0, 0 0; } 100% { background-position: -50% 0, 0 0; } }
@keyframes ardaTwinkle { 0%, 100% { opacity: .1; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.3); } }
@keyframes ardaGem { 0%, 100% { opacity: .75; box-shadow: 0 0 4px 0 var(--a-violet); } 50% { opacity: 1; box-shadow: 0 0 10px 2px var(--a-violet-light); } }

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .arda-welcome::before, .Content .Box > .BorderTitleText::before,
  .arda-welcome .arda-eyebrow::after, .arda-welcome h1::after, .arda-welcome p::after { animation: none; }
  .arda-welcome .arda-eyebrow::after, .arda-welcome h1::after, .arda-welcome p::after { opacity: .6; }
}

/* ==========================================================================
   18. Fondo "Violeta medio liso" (opcion A de la ronda 8)
   Un violeta mas claro que el anterior, con halo luminoso arriba.
   ========================================================================== */
html { background: #281d48; }
body {
  background:
    radial-gradient(ellipse 65% 55% at 50% 0%, rgba(150, 95, 235, .5), transparent 70%),
    linear-gradient(180deg, #3b2c66, #281d48 70%) !important;
  background-attachment: fixed !important;
  background-color: #281d48 !important;
}
body::before { display: none; }
