:root{--bg:#0b0d12;--card:#151a24;--gold:#d9b675;--red:#c84038;--teal:#91b7df;--ice:#95bcdf;--ivory:#ebd9b5;--muted:#9aa6b6;--line:#343945}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ivory)}body{font:14px/1.35 Arial,Helvetica,sans-serif}button,a{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}.shell{width:min(1580px,calc(100% - 48px));height:100dvh;min-height:650px;margin:auto;display:grid;grid-template-rows:auto auto minmax(0,1fr) minmax(0,1fr) auto;gap:14px;padding:27px 0 14px}.page-head{display:flex;align-items:end;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid #d9b67533}.eyebrow{margin:0 0 9px;color:var(--gold);letter-spacing:.18em;font-size:10px;font-weight:700}.eyebrow b{font-weight:400;color:var(--red)}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,'Times New Roman',serif}h1{font-size:clamp(35px,3.5vw,64px);font-weight:700;line-height:1;letter-spacing:-.035em;margin:0 0 6px}h1 em{font-style:normal;color:var(--red)}.intro{margin:0;color:var(--muted);font-size:14px}.head-links{display:flex;flex-wrap:wrap;justify-content:end;gap:7px}.head-links a,footer a{border:1px solid #536071;border-radius:3px;color:var(--gold);font-weight:700;font-size:10px;letter-spacing:.045em;padding:7px 9px;white-space:nowrap}.head-links a:hover,footer a:hover{background:#d9b67522}.summary{display:flex;align-items:stretch;min-height:43px;border:1px solid var(--line);border-radius:5px;background:#131823;overflow:hidden}.summary span{display:flex;align-items:center;gap:7px;padding:6px 20px;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.06em;white-space:nowrap}.summary span+span{border-left:1px solid var(--line)}.summary strong{font:700 22px Georgia,serif;color:var(--gold)}.summary .status-explain{white-space:normal;font-weight:400;letter-spacing:0;margin-left:auto}.group{min-height:0;display:flex;flex-direction:column}.group-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-height:29px;border-left:3px solid var(--gold);padding-left:11px;margin-bottom:9px}.group-heading h2{font-size:25px;line-height:1;margin:0}.group-heading em{font-style:normal;color:var(--gold)}.group-heading span{font-size:10px;letter-spacing:.13em;color:var(--gold)}.other .group-heading{border-color:var(--ice)}.other .group-heading em,.other .group-heading span{color:var(--ice)}.card-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;flex:1;min-height:0}.server-card{position:relative;min-width:0;min-height:0;border:1px solid #41434a;border-top:2px solid var(--accent);background:var(--card);border-radius:5px;overflow:hidden;box-shadow:0 5px 15px #0003;transition:border-color .15s,transform .15s}.server-card:hover,.server-card:focus-within{border-color:var(--accent);transform:translateY(-2px)}.card-open{display:block;position:relative;width:100%;height:100%;text-align:left;background:transparent;border:0;color:inherit;padding:0}.card-art{height:43%;min-height:55px;position:relative;overflow:hidden;background:#20242c}.card-art:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#151a24 0%,transparent 73%),linear-gradient(90deg,#0b0d1273,transparent 70%)}.card-art img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 43%}.card-rune{position:absolute;top:5px;left:11px;z-index:1;color:var(--accent);font:700 24px Georgia,serif;text-shadow:0 1px 5px #000}.card-body{padding:4px 11px 8px}.card-top{display:flex;justify-content:space-between;align-items:center;gap:5px}.card-top h3{font:400 clamp(12px,1.13vw,17px) Arial,Helvetica,sans-serif;color:#eee7df;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.server-card:first-child h3{font-weight:700}.card-status{font-size:9px;font-weight:700;letter-spacing:.04em;white-space:nowrap;color:var(--muted)}.card-status.online{color:#91b7df}.card-status.offline{color:#d9968f}.card-address{display:block;margin-top:7px;font:700 clamp(10px,.8vw,12px) Consolas,monospace;color:var(--ivory);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-pack{display:block;margin-top:4px;color:var(--accent);font-size:10px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-copy{position:absolute;right:8px;bottom:8px;z-index:2;background:#10141dcc;border:1px solid #d9b67570;color:var(--gold);border-radius:3px;padding:3px 7px;font-size:10px;font-weight:700}.card-copy:hover{background:#d9b6752f}footer{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:8px;font-size:10px;color:var(--muted)}footer span:first-child{color:var(--gold);font-weight:700;letter-spacing:.08em}footer a{padding:4px 7px}dialog{width:min(870px,calc(100% - 24px));max-height:calc(100dvh - 28px);padding:0;border:1px solid var(--gold);border-radius:7px;background:#151a24;color:var(--ivory);box-shadow:0 25px 80px #000b;overflow:auto}dialog::backdrop{background:#020408d9;backdrop-filter:blur(4px)}.detail-shell{position:relative;display:grid;grid-template-columns:35% 65%;min-height:470px}.detail-art{background-size:cover;background-position:center;position:relative;min-height:100%}.detail-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 60%,#151a24 100%),linear-gradient(0deg,#151a24aa,transparent 45%)}#detail-icon{position:absolute;z-index:1;bottom:25px;left:24px;color:var(--gold);font:700 64px Georgia,serif;text-shadow:0 3px 10px #000}.detail-body{padding:30px 35px 22px}.detail-body h2{font-size:33px;line-height:1.1;margin:0 35px 8px 0;color:var(--gold)}#detail-description{color:#c0c6cf;font-size:14px;margin:0 0 18px}.close{position:absolute;right:12px;top:10px;z-index:3;background:#0b0d12;border:1px solid var(--gold);color:var(--gold);border-radius:3px;width:30px;height:30px;font-size:23px;line-height:1}.detail-line{display:flex;align-items:center;justify-content:space-between;gap:10px;border-block:1px solid #39404a;padding:10px 0}.detail-line+.detail-line{border-top:0}.detail-line small,.detail-packs small{display:block;color:var(--muted);font-size:10px;letter-spacing:.12em;font-weight:700}.detail-line code{display:block;margin-top:2px;color:var(--ivory);font-size:15px}.detail-line button{background:var(--gold);color:#11151d;border:0;border-radius:3px;padding:7px 10px;font-size:10px;font-weight:700}.detail-line strong{display:block;margin-top:3px;color:var(--gold)}#detail-players{color:var(--muted);font-size:11px}.detail-packs{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px;padding-top:14px}.detail-packs>div{min-width:0}.detail-packs strong,.detail-packs a,.detail-packs span{display:block;font-size:11px;margin-top:5px}.detail-packs a{color:var(--teal);font-weight:700}.detail-packs a:hover{text-decoration:underline}.detail-packs span{color:var(--muted)}.detail-help{border-top:1px solid #39404a;color:var(--muted);font-size:11px;line-height:1.4;margin:17px 0 0;padding-top:10px}#toast{position:fixed;z-index:10;bottom:20px;left:50%;transform:translateX(-50%);background:var(--gold);color:#10151d;font-weight:700;padding:8px 15px;border-radius:3px;opacity:0;pointer-events:none;transition:opacity .15s}#toast.show{opacity:1}@media(max-width:950px){.shell{width:calc(100% - 28px);gap:9px;padding-top:17px}.page-head{padding-bottom:10px}.head-links{max-width:260px}.head-links a{font-size:9px;padding:5px}.summary span{padding-inline:10px}.card-grid{gap:6px}.card-top{align-items:flex-start;flex-direction:column;gap:1px}.card-body{padding:3px 6px 5px}.card-copy{right:5px;bottom:5px}.card-pack{max-width:calc(100% - 45px)}.card-art{height:40%}}@media(max-width:650px){.shell{height:100dvh;min-height:640px;grid-template-rows:auto auto minmax(0,1fr) minmax(0,1fr) auto;gap:6px;padding:10px 0 7px}.page-head{display:block;padding-bottom:7px}.eyebrow{font-size:8px;margin-bottom:3px}h1{font-size:31px;margin:0}.intro{font-size:10px;line-height:1.2}.head-links{max-width:none;justify-content:flex-start;gap:4px;margin-top:6px}.head-links a{font-size:8px;padding:3px 5px}.summary{min-height:30px}.summary span{font-size:8px;padding:3px 5px;gap:3px;letter-spacing:0}.summary strong{font-size:15px}.summary .status-explain{display:none}.group-heading{min-height:21px;margin-bottom:3px;padding-left:6px}.group-heading h2{font-size:17px}.group-heading span{font-size:7px;letter-spacing:.03em}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:4px}.card-grid .server-card:last-child{grid-column:span 2}.card-art{height:35%;min-height:18px}.card-rune{top:1px;left:5px;font-size:13px}.card-body{padding:2px 5px}.card-top{display:flex;flex-direction:row;align-items:center}.card-top h3{font-size:10px}.card-status{font-size:7px}.card-address{font-size:9px;margin-top:2px}.card-pack{font-size:8px;margin-top:0}.card-copy{right:4px;bottom:3px;font-size:8px;padding:1px 4px}footer{padding-top:4px;font-size:8px}footer span:nth-child(2){display:none}footer a{font-size:8px;padding:3px 5px}.detail-shell{display:block;min-height:0}.detail-art{height:110px;min-height:0}.detail-art:after{background:linear-gradient(0deg,#151a24,transparent 65%)}#detail-icon{font-size:34px;bottom:7px}.detail-body{padding:8px 13px 12px}.detail-body h2{font-size:22px}.detail-body .eyebrow{font-size:9px}#detail-description{font-size:11px;margin-bottom:7px}.detail-line{padding:6px 0}.detail-line small,.detail-packs small{font-size:8px}.detail-line code{font-size:12px}.detail-line button{font-size:8px;padding:5px}.detail-packs{gap:5px;padding-top:7px}.detail-packs strong,.detail-packs a,.detail-packs span{font-size:9px;margin-top:2px}.detail-help{font-size:9px;margin-top:7px;padding-top:6px}.close{right:5px;top:5px}}@media(max-height:740px) and (min-width:651px){.shell{gap:7px;padding-top:12px}.page-head{padding-bottom:8px}.card-art{height:33%}.group-heading{margin-bottom:5px}}
#fehu-grid .server-card:first-child h3{font-size:clamp(11px,1vw,15px)}
.card-art .card-status{position:absolute;z-index:2;right:6px;top:5px;background:#0b0d12db;border:1px solid #ffffff28;border-radius:2px;padding:2px 5px;text-shadow:0 1px 3px #000}
@media(max-width:650px){.card-art .card-status{font-size:7px;right:3px;top:3px;padding:1px 3px}#fehu-grid .server-card:first-child h3{font-size:10px}}
@media(min-width:951px) and (min-height:741px){.card-art{height:56%}}
@media(min-width:951px) and (max-height:740px){.card-art{height:50%}}

/* The connected FEHU worlds take the main stage; independent worlds stay compact. */
.shell{grid-template-rows:auto auto minmax(0,2fr) minmax(0,1fr) auto}
#fehu-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
#fehu-grid .mother{grid-column:span 2;border-color:#d9b477;box-shadow:0 0 0 1px #d9b67533,0 14px 30px #0007}
.mother .card-art{height:61%}
.mother .card-top h3{font:700 clamp(17px,1.55vw,24px) Georgia,serif;color:var(--ivory)}
.mother .card-body{padding:8px 14px}
.mother .card-address{font-size:13px;margin-top:7px}
.mother-note{display:block;margin-top:6px;color:#c7b18a;font-size:10px;font-weight:700;letter-spacing:.06em}
.mother-flag{position:absolute;z-index:2;left:12px;bottom:8px;border:1px solid #d9b6759c;border-radius:2px;background:#11151dde;padding:3px 7px;color:var(--gold);font-size:9px;font-weight:700;letter-spacing:.12em}
.other .server-card{background:#141923}
.other .card-art{height:37%;min-height:28px}
.other .card-body{padding-top:5px}
.other .card-address{margin-top:4px}
.other .card-pack{margin-top:4px}
.card-pack-link{position:absolute;z-index:2;left:10px;bottom:8px;color:var(--accent);font-size:10px;font-weight:700;letter-spacing:.07em}
.card-pack-link:hover{text-decoration:underline}
@media(max-width:950px){.mother .card-body{padding:5px 8px}.mother .card-top h3{font-size:clamp(12px,1.7vw,19px)}.mother-note{font-size:8px}.card-pack-link{left:6px;bottom:5px;font-size:9px}}
@media(max-width:650px){
  .shell{grid-template-rows:auto auto minmax(0,1.6fr) minmax(0,1fr) auto}
  #fehu-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1.35fr 1fr 1fr}
  #fehu-grid .mother{grid-column:span 2}
  #fehu-grid .server-card:last-child{grid-column:auto}
  .mother .card-art{height:36%;min-height:22px}
  .mother .card-body{padding:2px 7px}
  .mother .card-top h3{font-size:13px}
  .mother .card-address{font-size:10px;margin-top:2px}
  .mother .card-pack{font-size:8px;margin-top:0}
  .mother-note{font-size:8px;margin-top:1px}
  .mother-flag{left:6px;bottom:3px;padding:1px 4px;font-size:7px}
  .other .card-art{height:28%;min-height:16px}
  .other .card-body{padding-top:1px}
  .other .card-address{margin-top:1px}
  .other .card-pack{margin-top:0;font-size:7px}
  .other .card-pack-link{left:5px;top:3px;bottom:auto;border:1px solid #ffffff30;border-radius:2px;background:#0b0d12df;padding:1px 3px;font-size:7px}
}

/* Readable card information without adding page scrolling. */
.eyebrow{font-size:12px}
.head-links a{font-size:12px}
.summary span{font-size:12px}
.summary strong{font-size:25px}
.group-heading span{font-size:12px;letter-spacing:.05em}
.card-top h3{font-size:clamp(17px,1.35vw,21px)}
.card-address{font-size:14px}
.card-pack{font-size:13px}
.card-art .card-status{font-size:11px}
.card-copy,.card-pack-link{font-size:12px}
.mother .card-top h3{font-size:clamp(21px,1.8vw,28px)}
.mother .card-address{font-size:15px}
.mother-note,.mother-flag{font-size:12px}
.other .card-art{height:34%}
.other .card-body{padding-top:4px}
footer,footer a{font-size:11px}
#fehu-grid .mother .card-top h3{font-size:clamp(21px,1.8vw,28px)}
@media(max-width:950px){
  .head-links a{font-size:11px}
  .card-top h3{font-size:15px}
  .card-address{font-size:12px}
  .card-pack{font-size:11px}
  .card-copy,.card-pack-link{font-size:11px}
  .mother .card-top h3{font-size:20px}
  .mother-note{font-size:10px}
}
@media(max-width:650px){
  .eyebrow{font-size:10px}
  .intro{font-size:12px}
  .head-links a{font-size:10px;padding:4px 6px}
  .summary span{font-size:10px;padding:3px 4px}
  .summary strong{font-size:17px}
  .group-heading h2{font-size:19px}
  .group-heading h2{white-space:nowrap}
  .group-heading span{font-size:9px;letter-spacing:0}
  .card-top h3{font-size:12px}
  .card-address{font-size:10px}
  .card-pack{font-size:9px}
  .card-art .card-status{font-size:9px}
  .card-copy{font-size:10px;padding:2px 5px}
  .mother .card-top h3{font-size:16px}
  #fehu-grid .mother .card-top h3{font-size:16px}
  .mother .card-address{font-size:11px}
  .mother .card-pack{font-size:10px}
  .mother-note{font-size:10px}
  .mother-flag{font-size:9px}
  .other .card-art{height:24%;min-height:16px}
  .other .card-body{padding-top:1px}
  .other .card-pack{font-size:9px}
  .other .card-pack-link{font-size:9px}
  footer,footer a{font-size:10px}
}

/* Portal V2: FEHU mother above four connected worlds, Other Realms at right. */
body.portal-servers .shell{height:auto;min-height:calc(100dvh - 68px);grid-template-rows:auto auto minmax(0,1fr) auto;gap:14px;padding:21px 0 16px}
.server-layout{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(330px,.82fr);align-items:start;gap:16px;min-height:0}
.server-layout .group{min-width:0}
.server-layout #fehu-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:300px 220px;flex:none;gap:10px}
.server-layout #fehu-grid .mother{grid-column:1/-1;grid-row:1}
.server-layout #fehu-grid .mother .card-art{height:55%}
.server-layout #other-grid{display:grid;grid-template-columns:1fr;grid-template-rows:repeat(5,100px);flex:none;gap:8px}
.server-layout #other-grid .server-card{min-height:92px}
.server-layout #other-grid .card-open{display:grid;grid-template-columns:36% minmax(0,1fr);align-items:stretch}
.server-layout #other-grid .card-art{height:100%;min-height:0}
.server-layout #other-grid .card-body{display:grid;align-content:center;min-width:0;padding:7px 9px}
.server-layout #other-grid .card-top{display:block}
.server-layout #other-grid .card-top h3{font:700 15px Georgia,'Times New Roman',serif;color:var(--ivory)}
.server-layout #other-grid .card-address{font-size:11px;margin-top:5px}
.server-layout #other-grid .card-pack{font-size:10px;margin-top:3px}
.server-layout #other-grid .card-pack-link{left:5px;bottom:5px;font-size:8px}
.server-layout #other-grid .card-copy{right:5px;bottom:5px;font-size:9px}
.card-art .card-status{font-weight:900;letter-spacing:.09em;border-width:1px;box-shadow:0 2px 8px #000b}
.card-art .card-status.online{color:#e8e4da;background:#1a2b40;border-color:#91b7df;box-shadow:0 0 12px #91b7df99}
.card-art .card-status.offline{color:#ffe0dc;background:#681e1b;border-color:#ff746d;box-shadow:0 0 12px #e9433b99}
.card-art .card-status:not(.online):not(.offline){color:#e7e0c9;background:#303a4a;border-color:#d9b477}
@media(max-width:1100px){
  .server-layout{grid-template-columns:1fr;gap:18px}
  .server-layout #fehu-grid{grid-template-rows:240px 190px}
  .server-layout #other-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,105px);gap:8px}
  .server-layout #other-grid .server-card{min-height:105px}
}
@media(max-width:650px){
  body.portal-servers .shell{height:auto;min-height:calc(100dvh - 96px);grid-template-rows:auto auto minmax(0,1fr) auto;gap:10px}
  body.portal-servers .summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
  body.portal-servers .summary span{min-width:0;white-space:normal;line-height:1.15;padding:6px 4px;font-size:8px}
  body.portal-servers .summary strong{font-size:16px}
  body.portal-servers .summary .status-explain{display:block;grid-column:1/-1;padding:5px 7px;border-top:1px solid #ffffff1d;font-size:9px}
  .server-layout #fehu-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:190px repeat(2,155px);gap:6px}
  .server-layout #fehu-grid .mother{grid-column:1/-1;grid-row:1}
  .server-layout #fehu-grid .server-card:last-child{grid-column:auto}
  .server-layout #fehu-grid .mother .card-art{height:48%}
  .server-layout #other-grid{grid-template-columns:1fr;grid-template-rows:repeat(5,96px)}
  .server-layout #other-grid .server-card{min-height:96px}
  .server-layout #other-grid .card-top h3{font-size:14px}
  .server-layout #other-grid .card-address{font-size:10px}
  .server-layout #other-grid .card-pack{font-size:9px}
}

/* STRICT_CW_SERVER_STATUS */
.card-status.online{color:#91b7df!important}.card-status.offline{color:#f18579!important}.card-status:not(.online):not(.offline){color:#9fabb8!important}

/* Keep all ten server cards and the footer in a standard desktop viewport. */
@media(min-width:1101px){
  .server-layout #fehu-grid{grid-template-rows:270px 200px}
  .server-layout #other-grid{grid-template-rows:repeat(5,90px);gap:6px}
  .server-layout #other-grid .server-card{min-height:0}
}
@media(min-width:651px) and (max-height:800px){
  body.portal-servers .shell{gap:9px;padding:12px 0 9px}
  .server-layout #fehu-grid{grid-template-rows:195px 150px;gap:6px}
  .server-layout #fehu-grid .mother .card-art{height:40%}
  .server-layout #fehu-grid .server-card:not(.mother) .card-art{height:35%}
  .server-layout #other-grid{grid-template-rows:repeat(5,70px);gap:5px}
  .server-layout #other-grid .server-card{min-height:0}
}
body.portal-servers .shell{min-height:calc(100dvh - 69px)}

/* Compact Servers identity and direct entries to the FEHU stories. */
body.portal-servers .page-head{align-items:center}
body.portal-servers .page-head>div{display:flex;align-items:center;gap:18px;min-width:0}
body.portal-servers .servers-identity{margin:0 0 10px;font:700 12px/1.3 Arial,Helvetica,sans-serif;letter-spacing:.17em;color:var(--gold)}
body.portal-servers .page-head .servers-identity{margin:0;white-space:nowrap}
body.portal-servers .servers-identity b{font-weight:400;color:var(--red)}
body.portal-servers .story-links{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
body.portal-servers .page-head .story-links{flex-wrap:nowrap;white-space:nowrap}
body.portal-servers .story-links>span{margin-right:3px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.13em}
body.portal-servers .story-links a{display:inline-flex;align-items:center;gap:6px;border:1px solid #d9b67570;border-radius:3px;padding:7px 11px;background:#1b1b1b;color:var(--ivory);font:700 11px/1 Arial,Helvetica,sans-serif;letter-spacing:.06em;transition:background .15s,border-color .15s,color .15s}
body.portal-servers .story-links a:hover,body.portal-servers .story-links a:focus-visible{background:#d9b67527;border-color:var(--gold);color:var(--gold)}
body.portal-servers .story-links a:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
body.portal-servers .other .group-heading{align-items:baseline;flex-wrap:nowrap}
body.portal-servers .other .group-heading h2{white-space:nowrap;font-size:clamp(18px,1.5vw,24px)}
body.portal-servers .other .group-heading span{white-space:nowrap;font-size:clamp(8px,.65vw,10px);letter-spacing:.025em;text-align:right}
body.portal-servers .fehu .group-heading{align-items:center;justify-content:flex-start;min-width:0}
body.portal-servers .fehu .group-heading h2{flex:none;white-space:nowrap}
body.portal-servers .discord-presence{display:flex;align-items:center;gap:3px;flex:1;min-width:0;height:35px;overflow:hidden;justify-content:flex-start}
body.portal-servers .discord-slot{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:1px solid #5e6973;background:#383d43;color:#dce2e8;font:700 14px/1 Arial,Helvetica,sans-serif;overflow:hidden;position:relative}
body.portal-servers .discord-slot.is-active{border-color:#c9a96d;background:#1b2528;box-shadow:inset 0 0 0 1px #d9b67555}
body.portal-servers .discord-slot img{display:block;width:100%;height:100%;object-fit:cover}
body.portal-servers .discord-slot.is-active::after{content:"";position:absolute;right:1px;bottom:1px;width:6px;height:6px;border-radius:50%;background:#56ee92;border:1px solid #10141d}
@media(max-width:650px){body.portal-servers .discord-presence{height:24px;gap:2px}body.portal-servers .discord-slot{flex-basis:22px;width:22px;height:22px;font-size:10px}}
@media(max-width:650px){body.portal-servers .servers-identity{font-size:10px;letter-spacing:.11em;margin-bottom:7px}body.portal-servers .story-links{gap:5px}body.portal-servers .story-links>span{font-size:9px}body.portal-servers .story-links a{font-size:9px;padding:5px 7px}body.portal-servers .other .group-heading h2{font-size:19px}body.portal-servers .other .group-heading span{font-size:9px}}
@media(max-width:760px){body.portal-servers .page-head>div{flex-wrap:wrap;gap:8px}}

/* FEHU card accents: the mother realm carries a moving gold edge light. */
@property --fehu-orbit-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
body.portal-servers #fehu-grid .server-card.mother {
  border-color: #d9b675 !important;
  box-shadow: 0 0 0 1px #d9b6754d, 0 0 18px #d9b67542, 0 14px 30px #0007;
}
body.portal-servers #fehu-grid .server-card.mother::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from var(--fehu-orbit-angle), transparent 0deg 316deg, #d9b675 344deg, #fff4cf 351deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 6px #f4c66d);
  animation: fehu-edge-orbit 5s linear infinite;
}
@keyframes fehu-edge-orbit { to { --fehu-orbit-angle: 360deg; } }
body.portal-servers #fehu-grid .server-card:not(.mother) {
  border-color: #b8c5d1 !important;
  box-shadow: 0 0 0 1px #d8e2ed40, 0 0 13px #b8c5d13d, 0 5px 15px #0005;
}
body.portal-servers .card-art .card-status.online {
  color: #56ee92 !important;
  border-color: #42d87a;
  background: #102a1de8;
  box-shadow: 0 0 12px #42d87a70, 0 2px 8px #000b;
}
@media (prefers-reduced-motion: reduce) {
  body.portal-servers #fehu-grid .server-card.mother::after {
    animation: none;
    --fehu-orbit-angle: 340deg;
  }
}

/* Realms colors and a reserved support area. */
body.portal-servers #fehu-grid .card-rune,
body.portal-servers #fehu-grid .card-top h3,
body.portal-servers #fehu-grid .card-address,
body.portal-servers #fehu-grid .card-pack,
body.portal-servers #fehu-grid .mother-note{color:#e3bd74}
body.portal-servers #other-grid .card-rune,
body.portal-servers #other-grid .card-top h3,
body.portal-servers #other-grid .card-address,
body.portal-servers #other-grid .card-pack,
body.portal-servers #other-grid .card-pack-link{color:#c8d0d9}
body.portal-servers #other-grid .card-rune{text-shadow:0 1px 5px #000,0 0 8px #dce4ec66}
.server-layout .other-column{display:flex;flex-direction:column;gap:12px;min-width:0}
body.portal-servers.portal-servers-heading-in-header .shell{min-height:0}
.support-placeholder{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:64px;padding:10px 17px;border:1px solid #5b6573;border-left:3px solid var(--gold);border-radius:4px;background:#141923}
.support-placeholder h2{margin:0 0 3px;color:var(--gold);font-size:18px;letter-spacing:.06em}
.support-placeholder p{margin:0;color:#c8d0d9;font-size:12px}
.support-placeholder>span{color:#c8d0d9;font-size:10px;font-weight:700;letter-spacing:.12em;white-space:nowrap}
body.portal-servers .world-counts{display:flex;align-items:center;flex-wrap:wrap;gap:4px 11px;min-width:0}
body.portal-servers .world-counts span{display:inline-flex;align-items:baseline;gap:4px;color:#bfc8d2;font:700 9px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.025em;white-space:nowrap}
body.portal-servers .world-counts strong{color:var(--gold);font:700 17px/1 Georgia,'Times New Roman',serif}
@media(min-width:1101px) and (min-height:881px){
  .server-layout #fehu-grid{grid-template-rows:315px 235px}
  .server-layout #other-grid{grid-template-rows:repeat(5,98px);gap:7px}
}
@media(min-width:651px) and (max-height:800px){
  .support-placeholder{min-height:52px;padding:6px 12px}
}
@media(max-width:650px){
  body.portal-servers .world-counts{width:100%;gap:5px 12px}
  body.portal-servers .world-counts span{font-size:8px}
  body.portal-servers .world-counts strong{font-size:14px}
  .support-placeholder{min-height:60px;padding:8px 10px}
  .support-placeholder h2{font-size:15px}
  .support-placeholder p{font-size:10px}
  .support-placeholder>span{font-size:8px}
}

/* Give the four community counters the same compact panel treatment as STORY. */
body.portal-servers .world-counts{gap:6px}
body.portal-servers .world-counts span{align-items:center;gap:5px;padding:6px 9px;border:1px solid #82909f;border-radius:3px;background:#1b2029;color:#d1d9e2;font-size:10.5px;letter-spacing:.045em}
body.portal-servers .world-counts strong{font-size:17px}

/* Add breathing room to Support and the four connected FEHU cards. */
.support-placeholder{min-height:86px}
.server-layout #fehu-grid{grid-template-rows:270px 255px}
@media(max-width:1100px){
  .server-layout #fehu-grid{grid-template-rows:240px 210px}
  .support-placeholder{min-height:85px}
}
@media(min-width:1101px) and (min-height:881px){
  .server-layout #fehu-grid{grid-template-rows:315px 290px}
  .support-placeholder{min-height:90px}
}
@media(min-width:651px) and (max-height:800px){
  .server-layout #fehu-grid{grid-template-rows:195px 205px}
  .support-placeholder{min-height:70px}
}
@media(max-width:650px){
  body.portal-servers .world-counts span{font-size:9.5px;padding:5px 7px}
  .server-layout #fehu-grid{grid-template-rows:190px repeat(2,175px)}
  .server-layout #other-grid .server-card:last-child{grid-column:auto}
  .support-placeholder{min-height:80px}
}

/* Keep player pledges and fleet counts readable in their own header row. */
body.portal-servers .page-head>div{flex-wrap:wrap;gap:8px 18px}
body.portal-servers .world-counts{flex:0 0 100%;gap:6px}
body.portal-servers .world-counts span{padding:5px 8px;font-size:10px}
body.portal-servers .world-counts strong{font-size:16px}
@media(max-width:650px){body.portal-servers .world-counts span{padding:5px 7px;font-size:9px}}

/* FEHU card typography: keep names and runes gold, soften connection metadata. */
body.portal-servers #fehu-grid .card-address { color: #e8edf2; }
body.portal-servers #fehu-grid .card-pack { color: #a9bacb; }
body.portal-servers #fehu-grid .mother-note { color: #b9c4ce; }
body.portal-servers #fehu-grid .card-rune { font-family: 'Segoe UI Symbol', 'Noto Sans Runic', Georgia, serif; }

/* Give the mother realm and Support more room while preserving the page height. */
@media (min-width:1101px) and (min-height:801px) {
  .server-layout #fehu-grid { grid-template-rows:300px 225px; }
  .server-layout #other-grid { grid-template-rows:repeat(5,84px); }
  .support-placeholder { min-height:116px; }
}
@media (min-width:1101px) and (min-height:881px) {
  .server-layout #fehu-grid { grid-template-rows:403px 202px; }
  .server-layout #other-grid { grid-template-rows:repeat(5,91px); }
  .support-placeholder { min-height:125px; }
}

/* The portal moves these elements into its header; keep its desktop tools in one row. */
@media(min-width:1200px){
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools{flex-wrap:nowrap;gap:6px}
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .servers-identity{flex:none;white-space:nowrap;font-size:10.5px;letter-spacing:.08em}
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .story-links{flex:none;flex-wrap:nowrap;gap:4px}
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .story-links>span{font-size:9px;margin-right:0}
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .story-links a{padding:5px 6px;font-size:9px}
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .world-counts{flex:0 1 auto;width:auto;flex-wrap:nowrap;gap:3px}
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .world-counts span{gap:3px;padding:4px 5px;font-size:9px;letter-spacing:0}
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .world-counts strong{font-size:14px}
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .summary{flex:none;margin-left:auto}
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .summary span{gap:3px;padding:0 5px;font-size:8px;letter-spacing:0}
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .summary strong{font-size:16px}
}

/* Reserve room for four-digit pledge totals in every header badge. */
body.portal-servers .world-counts strong {
  display: inline-block;
  flex: none;
  min-width: 42px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 1200px) and (max-width: 1499px) {
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools { flex-wrap: wrap; }
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .world-counts { flex: 0 0 auto; flex-wrap: wrap; }
}

/* Extend Support downward by 65px and align the four FEHU cards to its bottom. */
@media (min-width:1101px) {
  body.portal-servers .server-layout { align-items:stretch; }
  body.portal-servers .server-layout .fehu { align-self:stretch; }
  /* A native button centers block children when its height grows; pin the art to its top. */
  body.portal-servers #fehu-grid .server-card:not(.mother) .card-open {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
  }
  body.portal-servers .server-layout #fehu-grid {
    --fehu-mother-row:300px;
    flex:1 1 auto;
    grid-template-rows:var(--fehu-mother-row) minmax(0,1fr);
  }
  body.portal-servers .support-placeholder { min-height:151px; padding-bottom:75px; }
}
@media (min-width:1101px) and (max-height:800px) {
  body.portal-servers .server-layout #fehu-grid { --fehu-mother-row:195px; }
  body.portal-servers .support-placeholder { min-height:135px; padding-bottom:71px; }
}
@media (min-width:1101px) and (min-height:801px) {
  body.portal-servers .support-placeholder { min-height:181px; }
}
@media (min-width:1101px) and (min-height:881px) {
  body.portal-servers .server-layout #fehu-grid { --fehu-mother-row:403px; }
  body.portal-servers .support-placeholder { min-height:190px; }
}

/* Saved clan names form a compact vertical roster on the mother realm. */
body.portal-servers #fehu-grid .mother-clans{position:absolute;z-index:2;top:56px;right:14px;bottom:46px;width:230px;max-width:35%;padding:12px 14px;border:1px solid #d9b67570;border-left:3px solid #d9b675;background:linear-gradient(90deg,#0b1019ed,#0b1019c9);box-shadow:0 8px 24px #0008;text-align:left;pointer-events:none;overflow:hidden}
body.portal-servers .mother-clans-title{display:block;margin-bottom:10px;color:#e7c58a;font:700 12px/1.2 Georgia,serif;letter-spacing:.1em}
body.portal-servers .mother-clan-list{display:grid;align-content:start;gap:7px;max-height:calc(100% - 28px);overflow:hidden;color:#eee2ca;font:700 14px/1.25 Georgia,serif}
body.portal-servers .mother-clan-name{display:block;min-width:0;padding-left:9px;border-left:2px solid #d9b675;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.portal-servers .mother-clan-more{color:#c5b695;font:700 11px Arial,Helvetica,sans-serif}
@media(max-width:1100px){body.portal-servers #fehu-grid .mother-clans{top:43px;right:8px;bottom:28px;width:34%;padding:8px}body.portal-servers .mother-clans-title{font-size:10px;margin-bottom:6px}body.portal-servers .mother-clan-list{font-size:12px;gap:4px}}
@media(max-width:650px){body.portal-servers #fehu-grid .mother-clans{top:35px;bottom:auto;height:78px;width:42%;padding:5px 7px}body.portal-servers .mother-clans-title{font-size:8px;margin-bottom:3px}body.portal-servers .mother-clan-list{font-size:10px;gap:2px}body.portal-servers .mother-clan-name{padding-left:5px}}

/* Spread the two server columns toward the screen edges on wide displays. */
@media (min-width:1700px) {
  body.portal-servers .shell.shell {
    width:calc(100% - 20px) !important;
    max-width:none !important;
  }
  body.portal-servers .server-layout {
    grid-template-columns:minmax(0,1084px) minmax(0,320px);
    justify-content:space-between;
  }
  body.portal-servers .other .group-heading span {
    font-size:8px;
    letter-spacing:0;
    white-space:nowrap;
  }
}

/* Compact shared FEHU soundtrack controls in the center of the server footer. */
body.portal-servers .shell > footer{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}
body.portal-servers .shell > footer > span:first-child{justify-self:start}
body.portal-servers .shell > footer > a{justify-self:end}
body.portal-servers .fehu-footer-player{justify-self:center;min-width:0;gap:7px;color:#cbd5df}
body.portal-servers .fehu-footer-player [data-fehu-title]{max-width:110px;color:#bac7d4}
body.portal-servers .fehu-footer-player [data-fehu-stop]{font-size:11px}
@media(max-width:800px){
  body.portal-servers .shell > footer{grid-template-columns:minmax(0,1fr) auto;row-gap:7px}
  body.portal-servers .fehu-footer-player{grid-column:1/-1;grid-row:1}
  body.portal-servers .shell > footer > span:first-child{grid-column:1;grid-row:2}
  body.portal-servers .shell > footer > a{grid-column:2;grid-row:2}
}
@media(max-width:520px){body.portal-servers .fehu-footer-player [data-fehu-title]{display:none}}

/* The realm count belongs to the 10th World card, directly below its status. */
body.portal-servers #fehu-grid .mother-caption{
  position:absolute;z-index:2;top:25px;right:12px;
  max-width:calc(100% - 24px);padding:1px 3px;
  border:0;border-radius:2px;
  background:#0b1019b8;color:#e3bd74;
  font:700 9px/1.1 Arial,Helvetica,sans-serif;
  letter-spacing:.04em;text-align:right;white-space:nowrap;
}
@media(max-width:1100px){
  body.portal-servers #fehu-grid .mother-caption{top:24px;right:7px;font-size:8px;letter-spacing:0}
}
@media(max-width:650px){
  body.portal-servers #fehu-grid .mother-caption{top:22px;right:5px;max-width:calc(100% - 10px);font-size:7px;padding:1px 2px}
  body.portal-servers #fehu-grid .mother-clans{top:47px}
}

/* Black Viking occupies its own centered column; the media keeps its native portrait ratio. */
body.portal-servers .server-layout{gap:14px}
body.portal-servers .viking-column{display:flex;align-items:flex-start;justify-content:center;min-width:0}
body.portal-servers .viking-frame{position:relative;width:min(100%, calc(67dvh - 127px));aspect-ratio:720 / 1074;border:1px solid #d9b675a8;border-radius:4px;overflow:hidden;background:#10151d;box-shadow:0 6px 22px #0006}
body.portal-servers .viking-video{display:block;width:100%;height:100%;object-fit:contain;background:#10151d}
body.portal-servers .viking-toggle{position:absolute;right:8px;bottom:8px;z-index:1;display:grid;place-items:center;width:29px;height:29px;border:1px solid #d9b675b3;border-radius:3px;background:#0b101bd9;color:#e7c58a;font-size:15px;line-height:1}
body.portal-servers .viking-toggle:hover,body.portal-servers .viking-toggle:focus-visible{background:#d9b67533}

/* New server art stays visible; gradients sit under text rather than over whole images. */
body.portal-servers .card-art:after{background:linear-gradient(0deg,#10151d38,transparent 45%)}
body.portal-servers .card-art img{object-position:center 48%}
body.portal-servers #fehu-grid .mother .card-art{position:absolute;inset:0;width:100%;height:100%;min-height:0}
body.portal-servers #fehu-grid .mother .card-art img{object-position:center 32%}
body.portal-servers #fehu-grid .mother .card-art:after{background:linear-gradient(0deg,#0b101969,transparent 58%)}
body.portal-servers #fehu-grid .mother .mother-flag{top:42px;bottom:auto}
body.portal-servers #fehu-grid .mother .card-body{position:absolute;z-index:1;left:0;right:0;bottom:21px;padding:34px 14px 7px;background:linear-gradient(0deg,#0b1019f0 0%,#0b1019c9 62%,transparent 100%)}
body.portal-servers #fehu-grid .server-card:not(.mother) .card-art{height:60%;min-height:0}
body.portal-servers #other-grid .card-art:after{background:linear-gradient(90deg,#0b101933,transparent 75%)}

@media(min-width:1600px){
  body.portal-servers .server-layout{grid-template-columns:minmax(0,2.3fr) minmax(210px,1fr) 320px;justify-content:stretch;align-items:start}
}
@media(min-width:1101px) and (max-width:1599px){
  body.portal-servers .server-layout{grid-template-columns:minmax(0,1fr) 300px;align-items:start}
  body.portal-servers .server-layout .fehu{grid-column:1;grid-row:1 / span 2;align-self:start}
  body.portal-servers .server-layout #fehu-grid{flex:none;grid-template-rows:var(--fehu-mother-row) 205px}
  body.portal-servers .viking-column{grid-column:2;grid-row:1}
  body.portal-servers .server-layout .other-column{grid-column:2;grid-row:2}
}
@media(max-width:1100px){
  body.portal-servers .server-layout{grid-template-columns:minmax(0,1fr)}
  body.portal-servers .viking-frame{width:min(100%, 340px)}
}
@media(max-height:800px){
  body.portal-servers .viking-frame{width:min(100%, calc(67dvh - 114px))}
  body.portal-servers #fehu-grid .mother .card-body{padding-top:14px}
}
@media(max-width:650px){
  body.portal-servers #fehu-grid .mother .mother-flag{top:30px}
  body.portal-servers #fehu-grid .mother .card-body{bottom:12px;padding:14px 8px 3px}
  body.portal-servers #fehu-grid .server-card:not(.mother) .card-art{height:54%}
  body.portal-servers .viking-frame{width:min(100%, 300px)}
}

/* Extend presence slots across FEHU and the film, ending at Other Realms. */
@media (min-width:1600px) {
  body.portal-servers .server-layout { grid-template-rows:35px auto; row-gap:9px; align-items:stretch; }
  body.portal-servers .server-layout .fehu { display:contents; }
  body.portal-servers .server-layout .fehu .group-heading { grid-column:1 / 3; grid-row:1; align-self:start; margin-bottom:0; }
  body.portal-servers .server-layout #fehu-grid { grid-column:1; grid-row:2; }
  body.portal-servers .server-layout .viking-column { grid-column:2; grid-row:2; align-self:stretch; align-items:flex-end; }
  body.portal-servers .server-layout .other-column { grid-column:3; grid-row:1 / span 2; }
}

/* Keep the village visible and fade its lower edge continuously behind the card text. */
body.portal-servers #fehu-grid .mother .card-art img{object-position:center 42%}
body.portal-servers #fehu-grid .mother .card-art:after{
  background:linear-gradient(0deg,#0b1019e3 0%,#0b1019a8 22%,#0b10194d 48%,transparent 76%);
}
body.portal-servers #fehu-grid .mother .card-body{
  bottom:0;padding-bottom:11px;background:transparent;text-shadow:0 2px 5px #000d;
}
@media(max-width:650px){
  body.portal-servers #fehu-grid .mother .card-body{bottom:0;padding-bottom:8px}
}

/* Give the mother realm caption and live status their own rows above the clan list. */
body.portal-servers #fehu-grid .mother .mother-caption{top:5px}
body.portal-servers #fehu-grid .mother .card-art .card-status{top:27px}
@media(max-width:650px){
  body.portal-servers #fehu-grid .mother .mother-caption{top:3px}
  body.portal-servers #fehu-grid .mother .card-art .card-status{top:19px}
}

/* The shared portal header owns the moved page header and counters; remove their empty shell rows. */
body.portal-servers.portal-servers-heading-in-header .shell{
  grid-template-rows:minmax(0,1fr) auto;
}
@media(min-width:1600px){
  body.portal-servers.portal-servers-heading-in-header .shell{
    gap:8px;
    padding-bottom:6px;
  }
  body.portal-servers .shell > footer{padding-top:6px}
}

/* Compact, aligned portal header for the wide three-column Servers layout. */
@media(min-width:1600px){
  body.portal-servers .forteca-portal-header .forteca-portal-header-inner{
    width:calc(100% - 20px);max-width:none;min-height:0;
    grid-template-columns:minmax(190px,1fr) auto minmax(190px,1fr);
    column-gap:14px;row-gap:5px;padding:6px 0 5px;
  }
  body.portal-servers .forteca-portal-header .forteca-portal-brand-cluster{gap:8px}
  body.portal-servers .forteca-portal-header .forteca-portal-rune{width:34px;height:34px;font-size:25px}
  body.portal-servers .forteca-portal-header .forteca-portal-home{min-height:34px;padding:6px 10px;border-radius:4px}
  body.portal-servers .forteca-portal-header .forteca-portal-nav{gap:2px}
  body.portal-servers .forteca-portal-header .forteca-portal-nav a{min-height:30px;padding:6px 10px}
  body.portal-servers .forteca-portal-header .forteca-portal-nav a[data-module="valbase"]{margin-left:12px}
  body.portal-servers .forteca-portal-header .forteca-portal-account{min-height:30px;padding:5px 10px}
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools{
    display:grid;grid-template-columns:max-content max-content minmax(0,1fr) max-content;
    align-items:center;column-gap:10px;row-gap:0;padding-top:5px;
    border-top:1px solid #d9b6753d;
  }
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .servers-identity{
    padding-left:8px;border-left:2px solid #d9b675b3;font-size:10px;letter-spacing:.065em;
  }
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .story-links{gap:4px}
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .story-links a{
    min-height:22px;padding:4px 7px;border-radius:3px;background:#171c24;
  }
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .world-counts{
    display:flex;justify-content:center;flex-wrap:nowrap;width:auto;min-width:0;gap:4px;
  }
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .world-counts span{
    padding:3px 6px;border-color:#536071;background:#1a2029;
  }
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .world-counts strong{
    min-width:28px;font-size:13px;
  }
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .summary{
    justify-self:end;margin:0;
  }
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .summary span{padding:0 6px}
  body.portal-servers .forteca-portal-header .forteca-portal-server-tools .summary strong{font-size:15px}
}

/* Fill the right column so Support shares the FEHU and film baseline. */
.server-layout .other-column > .support-placeholder{flex:1 0 auto}
