/* Eldcores ornate frames + Hall of Fame (highscores). Loaded after eldcores-subpages.css. */
:root{--ec-frame:url(assets/eld-frame-ornate.svg?v=1);--ec-gold:#e2c27a;--ec-gold-deep:#8a6a2c;--ec-ink:#2b2414;--ec-parch:#efe4c6;--ec-parch-2:#e6d8b2}

/* ---------- Frames: every main panel gets the ornate bronze frame ---------- */
.ec-portal-theme .ec-sidebar-panel,
.ec-portal-theme .ec-content-panel,
.ec-portal-theme .ec-portal-banner,
.ec-portal-theme .ec-portal-toolbar,
.ec-portal-theme .ec-portal-highlights,
.ec-portal-theme .ec-navigation,
.ec-portal-theme .ec-header .ec-brand>span{
  border:18px solid transparent;
  border-image:var(--ec-frame) 24 round;
  outline:0;
  box-shadow:0 10px 26px #000a,0 0 0 1px #000 inset
}
.ec-portal-theme .ec-portal-toolbar,.ec-portal-theme .ec-portal-highlights{border-width:15px}
.ec-portal-theme .ec-navigation{border-width:16px}

/* Panel captions: engraved bar with a gold filet and side ornaments */
.ec-portal-theme .ec-sidebar-title,
.ec-portal-content-title{
  position:relative;
  background:linear-gradient(#4a4630,#2a2c1d 55%,#1d2116);
  border-bottom:0;
  box-shadow:inset 0 1px #f3dfa055,inset 0 -1px #000,0 2px 0 #b8954a,0 3px 0 #2a2010,0 6px 10px #0007;
  margin-bottom:3px
}
.ec-portal-theme .ec-sidebar-title h2,.ec-portal-content-title h1,.ec-portal-content-title h2{
  color:var(--ec-gold);letter-spacing:.5px;
  text-shadow:0 1px 0 #000,0 0 12px #e2b45a40
}
.ec-portal-content-title::before,.ec-portal-content-title::after{
  content:"";position:absolute;top:50%;width:9px;height:9px;margin-top:-5px;transform:rotate(45deg);
  background:radial-gradient(circle at 35% 35%,#ffe6a0,#a77a2c 55%,#3d2a0c);box-shadow:0 0 0 1px #120d05,0 0 6px #e5b65a66
}
.ec-portal-content-title::before{left:-5px}.ec-portal-content-title::after{right:-5px}

/* Parchment inside content frames */
.ec-portal-theme .ec-content-panel>.paper-content{
  background:
    radial-gradient(ellipse at 50% 0,#fff8e166,transparent 60%),
    linear-gradient(#f1e7cb,#e7d9b4);
  box-shadow:inset 0 0 0 1px #b79e63,inset 0 0 0 4px #efe4c6,inset 0 0 0 5px #c9b07355,inset 0 0 40px #6b552633
}

/* Buttons: bevelled gold like the frame */
.ec-portal-theme .ec-action-gold{
  background:linear-gradient(#f3dc9a,#c9a052 48%,#9a7430 52%,#c79f53);
  border:1px solid #2d220d;outline:0;
  box-shadow:inset 0 1px #fff3c7,inset 0 -2px #6b4f1d,0 0 0 2px #b58f45,0 0 0 3px #1b140a,0 4px 10px #000a
}

/* ---------- Hall of Fame ---------- */
.ec-ranking{--row-h:64px}
.ec-ranking .ec-section-lead{text-align:center;margin:2px auto 18px;max-width:560px}
.ec-ranking .ec-section-lead .ec-kicker{display:inline-flex;align-items:center;gap:10px;font:700 10px/1 Arial,sans-serif;letter-spacing:3px;color:#8a6a2c}
.ec-ranking .ec-section-lead .ec-kicker::before,.ec-ranking .ec-section-lead .ec-kicker::after{content:"";width:46px;height:1px;background:linear-gradient(90deg,transparent,#8a6a2c)}
.ec-ranking .ec-section-lead .ec-kicker::after{transform:scaleX(-1)}
.ec-ranking .ec-section-lead h2{font:600 32px/1.15 Georgia,"Times New Roman",serif;color:var(--ec-ink);margin:8px 0 6px;text-shadow:0 1px #fff8e0}
.ec-ranking .ec-section-lead p{margin:0;color:#6c5f42;font-size:14px}

/* filter bar: small framed strip */
.ec-ranking .ec-filter-bar{
  display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;margin:0 0 18px;padding:12px 14px;
  background:linear-gradient(#2f3324,#1d2216);border:1px solid #0d0f09;
  box-shadow:inset 0 1px #f2dc9b40,0 0 0 2px #a8853f,0 0 0 3px #21190b,0 6px 14px #0006
}
.ec-ranking .ec-filter-bar label{display:grid;gap:5px;font:700 9px/1 Arial,sans-serif;letter-spacing:1.6px;text-transform:uppercase;color:#cdb67c;min-width:170px;flex:1}
.ec-ranking .ec-filter-bar select{
  appearance:none;height:38px;padding:0 34px 0 12px;font:15px Georgia,serif;color:#f1e3bd;cursor:pointer;
  background:#12160e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d9b866' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
  border:1px solid #8d7139;box-shadow:inset 0 2px 6px #000c
}
.ec-ranking .ec-filter-bar select:focus{outline:2px solid #e2c27a;outline-offset:1px}
.ec-ranking .ec-filter-note{margin-left:auto;align-self:center;font-size:11px;color:#a99d7c;font-style:italic}

/* column heading */
.ec-modern .ec-ranking .ec-list-heading{padding:0 18px 8px 88px;color:#7a6534;border-bottom:1px solid #b89c5c;margin-bottom:10px}

/* list */
.ec-ranking .ec-player-list{list-style:none;margin:0;padding:0;display:grid;gap:6px;counter-reset:none}
.ec-modern .ec-ranking .ec-player-row{
  min-height:var(--row-h);padding:8px 18px 8px 10px;gap:14px;border:0;
  background:linear-gradient(90deg,#f6eed7,#efe3c3);
  box-shadow:inset 0 0 0 1px #c7ad6e,inset 0 0 0 3px #f8f1dc,0 1px 0 #fff8,0 2px 4px #5a46201f;
  transition:transform .12s ease,box-shadow .12s ease
}
.ec-modern .ec-ranking .ec-player-row:nth-child(even){background:linear-gradient(90deg,#efe3c3,#e8d9b3)}
.ec-modern .ec-ranking .ec-player-row:hover{transform:translateX(2px);box-shadow:inset 0 0 0 1px #a8853f,inset 0 0 0 3px #fbf4df,0 4px 10px #5a462033}

/* position badge: small shield */
.ec-ranking .ec-position{
  position:relative;flex:0 0 46px;height:50px;display:grid;place-items:center;
  font:700 18px/1 Georgia,serif;color:#f3e2b4;text-shadow:0 1px 0 #000;
  background:linear-gradient(#3f4230,#1c2015);
  clip-path:polygon(50% 0,100% 14%,100% 62%,50% 100%,0 62%,0 14%);
  filter:drop-shadow(0 2px 2px #0006)
}
.ec-ranking .ec-position small{display:none}

/* top 3: medal shields and warm highlight */
.ec-modern .ec-ranking .ec-rank-top{min-height:78px;padding-block:12px}
.ec-modern .ec-ranking .ec-rank-1{background:linear-gradient(95deg,#f4dc93,#f8edcd 45%,#efe2bf);box-shadow:inset 0 0 0 1px #a8802c,inset 0 0 0 3px #fff5d5,inset 4px 0 0 3px #d4a53c,0 4px 12px #8a6a2c40}
.ec-modern .ec-ranking .ec-rank-2{background:linear-gradient(95deg,#e2e2dc,#f3f0e4 45%,#ece4cc);box-shadow:inset 0 0 0 1px #8f8f86,inset 0 0 0 3px #fbfaf3,inset 4px 0 0 3px #b9b9b0,0 4px 12px #4a4a4030}
.ec-modern .ec-ranking .ec-rank-3{background:linear-gradient(95deg,#ebc9a3,#f5e7d0 45%,#eee0c0);box-shadow:inset 0 0 0 1px #94603a,inset 0 0 0 3px #fbf0e0,inset 4px 0 0 3px #c4875a,0 4px 12px #6b3f1f30}
.ec-ranking .ec-rank-top .ec-position{flex-basis:54px;height:60px;font-size:24px}
.ec-ranking .ec-rank-1 .ec-position{background:linear-gradient(#ffe7a3,#c99a35 55%,#7c5718);color:#3a2608;text-shadow:0 1px #fff2c4}
.ec-ranking .ec-rank-2 .ec-position{background:linear-gradient(#ffffff,#b9bab2 55%,#6f706a);color:#2b2b28;text-shadow:0 1px #fff}
.ec-ranking .ec-rank-3 .ec-position{background:linear-gradient(#ffd0a6,#b9774a 55%,#6b3a1a);color:#2f1606;text-shadow:0 1px #ffe2c9}

/* avatar in a small round frame */
.ec-ranking .ec-avatar{flex:0 0 56px;height:56px;display:grid;place-items:center;border-radius:50%;
  background:radial-gradient(circle at 50% 40%,#3b4330,#141a10);box-shadow:0 0 0 2px #b8954a,0 0 0 3px #2a2010,inset 0 0 10px #000c;overflow:hidden}
.ec-ranking .ec-avatar img{max-width:64px;max-height:64px;image-rendering:pixelated;margin:-6px 0 0 -6px}

/* name / vocation / status */
.ec-modern .ec-ranking .ec-player-name{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;min-width:0;flex:1}
.ec-modern .ec-ranking .ec-player-name>a{font:600 18px/1.25 Georgia,serif;color:#2c2210;text-decoration:none;flex-basis:100%}
.ec-modern .ec-ranking .ec-player-name>a:hover{color:#7d5a17;text-decoration:underline;text-underline-offset:3px}
.ec-modern .ec-ranking .ec-player-name small{font:12px/1.4 Arial,sans-serif;color:#6f6142}
.ec-ranking .ec-presence{display:inline-flex;align-items:center;gap:5px}
.ec-ranking .ec-presence::before{content:"";width:7px;height:7px;border-radius:50%;background:#8f866e;box-shadow:0 0 0 1px #0003}
.ec-ranking .ec-presence.is-active{color:#2f6b2a!important}
.ec-ranking .ec-presence.is-active::before{background:#45b13c;box-shadow:0 0 6px #45b13c}

/* value */
.ec-modern .ec-ranking .ec-player-value{text-align:right;display:grid;justify-items:end;gap:2px}
.ec-modern .ec-ranking .ec-player-value strong{font:700 26px/1 Georgia,serif;color:#3a2a0c;text-shadow:0 1px #fff6dc}
.ec-modern .ec-ranking .ec-rank-1 .ec-player-value strong{color:#6a4708}
.ec-modern .ec-ranking .ec-player-value small{font:11px/1.3 Arial,sans-serif;color:#7b6b48;letter-spacing:.3px}

/* empty state + pagination */
.ec-ranking .ec-empty{padding:34px 18px;text-align:center;background:#f3e9cf;box-shadow:inset 0 0 0 1px #c7ad6e}
.ec-ranking .ec-pagination{display:flex;justify-content:center;gap:12px;margin-top:18px}

/* sidebar top-5 leaderboard: numbered gems */
.ec-portal-theme .ec-leaderboard li{border-bottom:1px solid #8c7d4e2a}

@media(max-width:600px){
  .ec-portal-theme .ec-sidebar-panel,.ec-portal-theme .ec-content-panel,.ec-portal-theme .ec-portal-banner{border-width:14px}
  .ec-ranking .ec-section-lead h2{font-size:25px}
  .ec-ranking .ec-filter-bar label{min-width:0;flex-basis:100%}
  .ec-ranking .ec-filter-note{margin-left:0}
  .ec-modern .ec-ranking .ec-list-heading{padding-left:12px}
  .ec-modern .ec-ranking .ec-player-row{padding:8px 10px 8px 6px;gap:9px}
  .ec-ranking .ec-position{flex-basis:36px;height:40px;font-size:15px}
  .ec-ranking .ec-rank-top .ec-position{flex-basis:42px;height:48px;font-size:19px}
  .ec-ranking .ec-avatar{flex-basis:42px;height:42px}
  .ec-modern .ec-ranking .ec-player-name>a{font-size:15px}
  .ec-modern .ec-ranking .ec-player-value strong{font-size:20px}
  .ec-modern .ec-ranking .ec-player-value small{max-width:92px;overflow-wrap:anywhere}
}

/* ---------- v2: heavier frames + podium for the top three ---------- */
.ec-portal-theme .ec-sidebar-panel,.ec-portal-theme .ec-content-panel,.ec-portal-theme .ec-portal-banner{border-width:22px;box-shadow:0 0 0 1px #000,0 14px 34px #000c,0 0 40px #c8963a14}
.ec-portal-content-title{justify-content:center;text-align:center;padding:14px 40px}
.ec-portal-content-title>svg,.ec-portal-content-title>span{display:none}
.ec-portal-content-title h1,.ec-portal-content-title h2{font-size:26px;letter-spacing:2px;text-transform:uppercase;
  background:linear-gradient(#fff1c4,#e2bf72 45%,#a77d33 55%,#f0d58f);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;filter:drop-shadow(0 2px 0 #000)}
.ec-portal-content-title::before,.ec-portal-content-title::after{width:56px;height:2px;margin-top:-1px;transform:none;border-radius:2px;
  background:linear-gradient(90deg,transparent,#d8b468);box-shadow:none;left:auto;right:auto}
.ec-portal-content-title::before{left:calc(50% - 170px)}.ec-portal-content-title::after{right:calc(50% - 170px);transform:scaleX(-1)}

/* podium */
.ec-ranking .ec-player-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ec-ranking .ec-player-list>li{grid-column:1/-1}
.ec-modern .ec-ranking .ec-player-list>.ec-rank-top{grid-column:auto;flex-direction:column;justify-content:flex-end;text-align:center;gap:8px;
  padding:16px 10px 14px;min-height:0;align-self:end}
.ec-ranking .ec-player-list>.ec-rank-1{order:-2;min-height:250px!important}
.ec-ranking .ec-player-list>.ec-rank-2{order:-3;min-height:220px!important}
.ec-ranking .ec-player-list>.ec-rank-3{order:-1;min-height:205px!important}
.ec-ranking .ec-player-list>li:not(.ec-rank-top){order:0}
.ec-modern .ec-ranking .ec-rank-top .ec-player-name{flex:0;justify-content:center}
.ec-modern .ec-ranking .ec-rank-top .ec-player-name>a{font-size:19px}
.ec-modern .ec-ranking .ec-rank-top .ec-player-value{justify-items:center;text-align:center}
.ec-modern .ec-ranking .ec-rank-top .ec-player-value strong{font-size:30px}
.ec-modern .ec-ranking .ec-rank-1 .ec-player-value strong{font-size:36px}
.ec-ranking .ec-rank-top .ec-avatar{flex:0 0 auto;width:68px;height:68px}
.ec-ranking .ec-rank-1 .ec-avatar{width:80px;height:80px;box-shadow:0 0 0 3px #d9ab47,0 0 0 4px #2a2010,0 0 22px #f0c05a88,inset 0 0 10px #000c}
.ec-ranking .ec-rank-top .ec-position{flex:0 0 auto;width:50px;height:56px}
.ec-ranking .ec-rank-1 .ec-position{width:60px;height:68px;font-size:30px}
.ec-modern .ec-ranking .ec-rank-1{box-shadow:inset 0 0 0 1px #a8802c,inset 0 0 0 3px #fff5d5,inset 0 -6px 0 3px #d4a53c,0 8px 22px #8a6a2c55;
  background:radial-gradient(ellipse at 50% 0,#fff6d6,transparent 65%),linear-gradient(#f6e2a4,#efdcae)}
.ec-modern .ec-ranking .ec-rank-2{box-shadow:inset 0 0 0 1px #8f8f86,inset 0 0 0 3px #fbfaf3,inset 0 -6px 0 3px #b9b9b0,0 6px 16px #4a4a4040;background:linear-gradient(#ececE6,#e6dfca)}
.ec-modern .ec-ranking .ec-rank-3{box-shadow:inset 0 0 0 1px #94603a,inset 0 0 0 3px #fbf0e0,inset 0 -6px 0 3px #c4875a,0 6px 16px #6b3f1f40;background:linear-gradient(#f0d6b6,#ebdcc0)}
.ec-modern .ec-ranking .ec-rank-top:hover{transform:translateY(-3px)}
.ec-ranking .ec-rank-1::before{content:"";position:absolute;inset:-1px;pointer-events:none;
  background:linear-gradient(115deg,transparent 30%,#fff8d966 45%,transparent 60%) -200% 0/250% 100% no-repeat;animation:ec-shine 5s ease-in-out infinite}
@keyframes ec-shine{0%,60%{background-position:-200% 0}100%{background-position:200% 0}}
@media (prefers-reduced-motion:reduce){.ec-ranking .ec-rank-1::before{animation:none}}
@media(max-width:600px){
  .ec-portal-theme .ec-sidebar-panel,.ec-portal-theme .ec-content-panel,.ec-portal-theme .ec-portal-banner{border-width:15px}
  .ec-portal-content-title::before,.ec-portal-content-title::after{display:none}
  .ec-ranking .ec-player-list{gap:6px}
  .ec-modern .ec-ranking .ec-player-list>.ec-rank-top{padding:12px 4px 10px}
  .ec-ranking .ec-player-list>.ec-rank-1{min-height:200px!important}.ec-ranking .ec-player-list>.ec-rank-2{min-height:180px!important}.ec-ranking .ec-player-list>.ec-rank-3{min-height:170px!important}
  .ec-ranking .ec-rank-top .ec-avatar{width:46px;height:46px}.ec-ranking .ec-rank-1 .ec-avatar{width:54px;height:54px}
  .ec-modern .ec-ranking .ec-rank-top .ec-player-name>a{font-size:14px;overflow-wrap:anywhere}
  .ec-modern .ec-ranking .ec-rank-top .ec-player-name small{font-size:10px}
  .ec-modern .ec-ranking .ec-rank-top .ec-player-value strong{font-size:22px}.ec-modern .ec-ranking .ec-rank-1 .ec-player-value strong{font-size:26px}
  .ec-modern .ec-ranking .ec-rank-top .ec-player-value small{display:none}
}
