/* Aura MU: the live parts - the character page and the live rankings rows. Uses the site's
   own tokens (style.css), so it follows the theme. */
.live-character { max-width: 1100px; margin: 0 auto; }
.live-card { padding: 3rem 2rem; text-align: center; border: 1px solid rgba(255,255,255,.08); border-radius: 22px; background: rgba(10,14,24,.55); }
.live-card h2 { margin-bottom: .6rem; }
.live-card .button { margin-top: 1.4rem; display: inline-flex; }

.live-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 2rem 2.2rem; border: 1px solid rgba(255,255,255,.08); border-radius: 22px;
  background: linear-gradient(135deg, rgba(232,197,116,.10), rgba(10,14,24,.6) 55%); }
.live-hero-id { display: flex; align-items: center; gap: 1.2rem; }
.live-hero-id .avatar { width: 72px; height: 72px; font-size: 2rem; }
.live-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: .2rem 0; }
.live-hero p { opacity: .8; }
.live-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.live-status::before { content: ''; width: .55rem; height: .55rem; border-radius: 50%; background: #6b7280; }
.live-status.on::before { background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.live-stats { display: flex; gap: .8rem; }
.live-stats div { min-width: 110px; padding: .9rem 1.1rem; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); text-align: center; }
.live-stats small { display: block; opacity: .65; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.live-stats b { font-size: 1.6rem; }

.live-equipment { margin-top: 2rem; }
.live-equipment h2 { margin-bottom: 1rem; }
.live-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.live-slot { position: relative; padding: 1rem 1.1rem 1.1rem; border-radius: 18px; min-height: 150px;
  background: rgba(10,14,24,.6); border: 1px solid rgba(255,255,255,.08); transition: transform .2s, border-color .2s; }
.live-slot:hover, .live-slot:focus { transform: translateY(-2px); border-color: rgba(232,197,116,.4); outline: none; }
.live-slot small { display: block; opacity: .6; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; margin: .4rem 0 .2rem; }
.live-slot-art { width: 38px; height: 38px; opacity: .55; }
.live-slot-art svg { width: 100%; height: 100%; }
.live-item-name { display: block; font-size: 1.02rem; line-height: 1.3; }
.live-slot.excellent .live-item-name { color: #6ee7a0; }
.live-slot.ancient .live-item-name { color: #7cc4ff; }
.live-slot.excellent { border-color: rgba(110,231,160,.25); }
.live-slot.ancient { border-color: rgba(124,196,255,.3); }
.live-slot.empty { opacity: .45; }
.live-empty { opacity: .7; }
.live-item-options { list-style: none; margin: .55rem 0 0; padding: 0; font-size: .82rem; line-height: 1.5; opacity: .85; }
.live-item-options .excellent { color: #6ee7a0; }
.live-item-options .ancient { color: #7cc4ff; }

.rank-head.live-rank, .rank-row.live-rank { grid-template-columns: 70px 1.6fr .7fr .6fr .8fr; }
a.rank-row.live-rank { color: inherit; text-decoration: none; }
a.rank-row.live-rank:hover { background: rgba(232,197,116,.06); }

@media (max-width: 720px) {
  .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank-head.live-rank, .rank-row.live-rank { grid-template-columns: 48px 1.6fr .7fr .5fr; }
  .rank-head.live-rank span:last-child, .rank-row.live-rank strong { display: none; }
}

/* real item pictures (from the editor's renders); the slot icon stays as the fallback */
.live-slot-art.has-img { width: 100%; height: 92px; opacity: 1; display: grid; place-items: center; }
.live-slot-art.has-img > svg { display: none; }
.live-slot-art img { max-width: 70%; max-height: 88px; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 6px 14px #000c); }

/* ---- the character profile (/character/<name>) ---- */
.live-character { max-width: 1180px; }
.cp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-bottom: 34px; text-align: center; }
.cp-head h1 { width: 100%; font-size: clamp(44px, 6vw, 76px); font-weight: 700; letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff6e2, #d1ad6f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 30px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid #ffffff1f; background: #ffffff08; color: #cfc6b7; }
.cp-badge i { width: 8px; height: 8px; border-radius: 50%; background: #6b7280; }
.cp-badge.online { color: #86efac; border-color: #4ade8040; } .cp-badge.online i { background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.cp-badge.offline { color: #f0a5a0; border-color: #e0706a40; } .cp-badge.offline i { background: #e0706a; }
.cp-badge.banned { color: #fff; background: #b42318; border-color: #b42318; } .cp-badge.banned i { background: #fff; }
.cp-badge.rank { color: #f0d9a8; border-color: #d1ad6f50; background: #d1ad6f12; }

.cp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.cp-portrait { position: relative; margin: 0; height: 360px; border-radius: 22px; overflow: hidden; border: 1px solid #d1ad6f30; }
.cp-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; max-height: none; border-radius: 0; }
.cp-portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #0b0a08f0, transparent 55%); }
.cp-portrait figcaption { position: absolute; left: 24px; bottom: 20px; z-index: 1; }
.cp-portrait small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.cp-portrait b { font-size: 30px; font-weight: 600; }
.cp-portrait em { font-size: 18px; }

.cp-doll-wrap { margin-top: 26px; }
.cp-doll-wrap h2 { font-size: 26px; margin-bottom: 14px; }
.cp-doll { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "pet helm wings" "weapon armor offhand" "gloves pants boots" "ring1 pendant ring2";
  gap: 10px; padding: 18px; border-radius: 20px; border: 1px solid #d1ad6f30; background: radial-gradient(ellipse at 50% 40%, #d1ad6f14, transparent 70%), linear-gradient(160deg, #1a1712, #0d0c09); }
.cp-slot { position: relative; min-width: 0; display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 14px; border: 1px solid #d1ad6f33;
  background: radial-gradient(ellipse, #d1ad6f1a, #15130f 72%); transition: border-color .2s, box-shadow .2s, transform .2s; outline: none; }
.cp-slot img { position: absolute; inset: 0; margin: auto; max-width: 72%; max-height: 72%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 6px 12px #000d); }
.cp-slot:hover, .cp-slot:focus { border-color: #f0d9a8; box-shadow: 0 0 22px #d1ad6f40; transform: translateY(-2px); z-index: 3; }
.cp-slot.excellent { border-color: #4ade8060; background: radial-gradient(ellipse, #4ade801c, #121612 72%); }
.cp-slot.ancient { border-color: #60a5fa60; background: radial-gradient(ellipse, #60a5fa1c, #11151b 72%); }
.cp-slot.empty { border-style: dashed; border-color: #ffffff14; background: #ffffff03; }
.cp-slot.empty span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #6f685c; }
.cp-lvl { position: absolute; top: 7px; left: 9px; font-size: 12px; color: #f0d9a8; }
.cp-tip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(6px); min-width: 210px; padding: 12px 14px; border-radius: 12px;
  background: #0d0c09f7; border: 1px solid #d1ad6f55; box-shadow: 0 16px 40px #000c; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; text-align: center; }
.cp-slot:hover .cp-tip, .cp-slot:focus .cp-tip { opacity: 1; transform: translateX(-50%); }
.cp-tip strong { display: block; color: #f0d9a8; font-size: 14px; }
.cp-tip small { color: var(--muted); font-size: 11px; }
.cp-tip ul { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12px; line-height: 1.6; color: #cfc6b7; }
.cp-tip .excellent { color: #86efac; } .cp-tip .ancient { color: #93c5fd; }

.cp-info { padding: 8px 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.cp-info section { padding: 14px 0; border-bottom: 1px solid #ffffff14; }
.cp-info section:last-child { border-bottom: 0; }
.cp-row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: 15px; }
.cp-row > span { color: var(--muted); }
.cp-row > b { font-weight: 600; text-align: right; }
.cp-row small { color: var(--muted); font-weight: 400; }
.cp-row a { color: var(--gold); }
.cp-na { color: #6f685c; font-style: normal; font-weight: 400; }
.cp-online { color: #4ade80; } .cp-offline, .cp-red { color: #ef6b62; } .cp-banned { color: #ff4d4d; }
@media (max-width: 900px) { .cp-layout { grid-template-columns: 1fr; } .cp-info { padding: 6px 20px; } }

/* ---- the game-style item tooltip (tooltip.js) ---- */
.mu-tip { position: fixed; left: 0; top: 0; z-index: 200; min-width: 230px; max-width: 340px; padding: 12px 18px 14px; pointer-events: none;
  background: rgba(8, 7, 5, .93); border: 1px solid #5a4a2e; border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 14px 40px #000d, inset 0 0 18px #0009;
  font: 600 12.5px/1.55 Tahoma, Verdana, 'Segoe UI', sans-serif; text-align: center; color: #e6e6e6; opacity: 0; transition: opacity .08s; }
.mu-tip.on { opacity: 1; }
.mt-line { white-space: normal; text-shadow: 1px 1px 0 #000; }
.mt-name { font-size: 14px; margin-bottom: 2px; }
.mt-gap { height: 9px; }
.mt-white { color: #e6e6e6; }
.mt-gold { color: #f6c64a; }
.mt-blue { color: #7fb0ff; }
.mt-excellent { color: #37e94b; }
.mt-ancient { color: #3ee0c6; }
.mt-socket { color: #c784ff; }
.mt-class { color: #b7b7b7; }

/* server information page */
.facts-title { font-size: 30px; margin: 46px 0 18px; }
.facts-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.facts-event { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.facts-event b { display: block; font-size: 16px; }
.facts-event small { color: var(--muted); font-size: 11.5px; }
.facts-event span { display: block; margin-top: 8px; color: var(--gold); font-size: 13px; }
.facts-event.on { border-color: #4ade8060; } .facts-event.on span { color: #4ade80; }
.server-selector { text-decoration: none; }
.server-live { display: flex; align-items: center; }
/* The equipment window and the vault keep the game's layout in Hebrew too (the grid positions are the game's). */
.cp-doll, .pn-vault { direction: ltr; }
.cp-tip, .pn-item-info { direction: rtl; }
html[lang=en] .cp-tip { direction: ltr; }

/* The character search: a framed MU panel on top of every character page and on /character,
   as wide as the character cards under it */
.char-search {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  width: 100%; max-width: 1180px; margin: 0 auto 28px; padding: 18px 26px; box-sizing: border-box;
  background:
    radial-gradient(120% 180% at 50% -40%, rgba(241, 170, 70, .16), transparent 60%),
    linear-gradient(180deg, #1b1610 0%, #0e0b08 100%);
  border: 1px solid rgba(200, 144, 47, .45); border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 210, 122, .14), 0 14px 40px rgba(0, 0, 0, .55);
}
.char-search::before {   /* a thin gold line along the top, brighter in the middle */
  content: ''; position: absolute; inset: -1px 12% auto; height: 2px;
  background: linear-gradient(90deg, transparent, #ffd27a, transparent); box-shadow: 0 0 14px rgba(255, 190, 90, .6);
}
.cs-corner { position: absolute; width: 16px; height: 16px; border: 2px solid #c8902f; pointer-events: none; }
.cs-corner.tl { top: 5px; left: 5px; border-right: 0; border-bottom: 0; }
.cs-corner.tr { top: 5px; right: 5px; border-left: 0; border-bottom: 0; }
.cs-corner.bl { bottom: 5px; left: 5px; border-right: 0; border-top: 0; }
.cs-corner.br { bottom: 5px; right: 5px; border-left: 0; border-top: 0; }
.cs-label { display: flex; align-items: center; gap: 10px; height: 48px; margin: 0;
  font: 700 16px/1 Cinzel, serif; letter-spacing: .12em; text-transform: uppercase; color: #f1c46a; white-space: nowrap;
  text-shadow: 0 0 12px rgba(255, 180, 80, .35); }
.cs-label span:last-child { padding-top: 2px; }   /* Cinzel's capitals sit high: optical centre */
.cs-rune { width: 12px; height: 12px; transform: rotate(45deg); background: linear-gradient(135deg, #ffe2a6, #c8902f); box-shadow: 0 0 10px rgba(255, 190, 90, .7); }
.cs-field { position: relative; display: flex; align-items: center; height: 48px; }
.cs-field svg { position: absolute; inset-inline-start: 14px; width: 20px; height: 20px; color: #8d7a58; pointer-events: none; transition: color .2s; }
.cs-field input {
  width: 100%; height: 100%; padding-inline: 46px 16px; box-sizing: border-box; border-radius: 3px;
  background: linear-gradient(180deg, #040302, #0b0906); border: 1px solid #4d3f28; color: #fff1d6;
  font: 600 17px/1 Manrope, Heebo, sans-serif; letter-spacing: .04em; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .8);
  transition: border-color .2s, box-shadow .2s;
}
.cs-field input::placeholder { color: #6f624d; font-weight: 500; }
.cs-field input:focus { outline: none; border-color: #f1c46a; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .8), 0 0 0 3px rgba(241, 196, 106, .18), 0 0 18px rgba(241, 170, 70, .25); }
.cs-field:focus-within svg { color: #f1c46a; }
.char-search button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; min-width: 128px; padding: 0 26px;
  border-radius: 3px; cursor: pointer; color: #1a1206;
  font: 800 16px/1 Cinzel, serif; letter-spacing: .16em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffe1a0 0%, #e2ad4c 45%, #b47a22 100%);
  border: 1px solid #5c4318; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 4px 16px rgba(200, 140, 40, .3);
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.char-search button svg { width: 18px; height: 18px; transition: transform .2s; }
.char-search button:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 6px 22px rgba(230, 160, 50, .45); }
.char-search button:hover svg { transform: translateX(3px); }
.char-search button:active { transform: translateY(1px); }
[dir="rtl"] .char-search button svg { transform: scaleX(-1); }
[dir="rtl"] .char-search button:hover svg { transform: scaleX(-1) translateX(3px); }
@media (max-width: 700px) {
  .char-search { grid-template-columns: 1fr auto; padding: 16px; gap: 12px; }
  .cs-label { grid-column: 1 / -1; justify-content: center; height: auto; }
  .char-search button { min-width: 0; padding: 0 18px; }
}
.char-search-empty { text-align: center; padding: 50px 20px 80px; }
.char-search-empty h1 { font: 800 clamp(34px, 5vw, 56px)/1.1 Cinzel, serif; color: #fff1d6; margin: 0 0 12px; }
.char-search-empty p { color: #b8ad9b; max-width: 520px; margin: 0 auto; }
.cs-field { align-self: center; } .cs-field input { height: 48px; margin: 0; display: block; }
/* lowercase text sits on the baseline, its visual middle is the x-height: lift it to line up with the icon and the label */
.cs-field input { padding-top: 0; padding-bottom: 3px; line-height: normal; }
