* { box-sizing: border-box; }
.realmHome { margin: 0; color: #fffae9; background: #1a1718; font: 15px/1.45 Arial, sans-serif; }
.realmHome [hidden] { display: none; }
.homeBar, .homeFooter { padding-inline: max(5vw, calc((100vw - 1420px) / 2)); }
.homeBar {
    height: 80px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    position: relative; z-index: 1;
    background: radial-gradient(ellipse at 50% 0%, #ad895126, transparent 54%), linear-gradient(#303039, #202126 68%, #191a1f);
    border-block: 1px solid #655844; border-bottom-color: #a08658;
    box-shadow: inset 0 -3px #141419, inset 0 -4px #c7a36729, 0 3px 12px #140f1666;
}
.homeBar a, .homeFooter a { text-decoration: none; }
.homeBrand { position: relative; display: inline-flex; align-items: center; color: #fff1cd; font-size: 30px; }
.homeBrand .valdoriaName small { color: #e2c489; }
@media (min-width: 980px) {
    .homeBrand::before, .homeBrand::after {
        content: ''; position: absolute; width: clamp(24px, 4vw, 78px); height: 5px; pointer-events: none;
        background: linear-gradient(90deg, transparent, #af8c51) left center / calc(100% - 6px) 1px no-repeat,
                    conic-gradient(from 45deg, #ac8b55 25%, transparent 0 50%, #ac8b55 0 75%, transparent 0) right center / 5px 5px no-repeat;
    }
    .homeBrand::before { right: calc(100% + 12px); }
    .homeBrand::after { left: calc(100% + 12px); transform: rotate(180deg); }
}
.homeBrand .valdoriaMark { text-shadow: 0 2px 3px #130a05; }
.worldNav, .authNav a, .homeFooter { font-size: 12px; letter-spacing: .09em; }
.worldNav { display: inline-flex; align-items: center; gap: 8px; color: #efd39d; text-transform: uppercase; font-weight: bold; }
.worldNav::before { content: ''; width: 22px; height: 23px; background: url('/img/lobby/calendar-map.png') center / contain no-repeat; }
.worldNav:hover { color: #fff1ca; }
.communityNav { display:flex; align-items:center; gap:clamp(10px,1.8vw,26px); }
.discordInvite, .authNav a { border: 1px solid #8e7955; border-radius: 5px; background: linear-gradient(#39383a, #252529); box-shadow: inset 0 1px #ffffff14, 0 2px 3px #12121680; }
.discordInvite { display:inline-flex; align-items:center; gap:8px; padding:7px 12px; color:#fff4d9; font-weight:bold; font-size:13px; white-space:nowrap; }
.discordInvite img { filter:brightness(0) invert(1); }
.discordInvite:hover, .discordInvite:focus-visible { background:#463d35; }
.authNav { display: flex; gap: 12px; align-items: center; justify-self: end; }
.authNav a { padding: 8px 19px; color: #fff4d9; font-weight: bold; }
.authNav a:hover { background: #463d35; }
.authNav .registerLink { border-color: #e0bd7c #ae8a50 #917140; color: #302315; background: linear-gradient(#e8d2a4, #d5b77e); box-shadow: inset 0 0 0 2px #f5e4ba66, 0 2px 4px #12121680; }
.authNav .registerLink:hover { background: linear-gradient(#f3dfb9, #e2c48c); }
.tribeStage { position: relative; isolation: isolate; height: clamp(510px, calc(100svh - 205px), 920px); overflow: hidden; background: #44352e; }
.tribeScene { position: absolute; inset: 0; isolation: isolate; }
.tribeIllustration { position: absolute; inset: 0; width: 100%; height: 100%; }
.siegeFire { pointer-events:none; }
@media (prefers-reduced-motion:reduce) {
    .siegeFire { display:none; }
}
.tribeCopy { position: relative; z-index: 1; margin-left: max(15vw, calc((100vw - 1120px) / 2)); padding-top: clamp(24px, 4vh, 68px); width: min(37%, 490px); text-shadow: 0 3px 12px #130d0c; }
.tribeCopy h1 { margin: 0; color: #fff9e9; font: 900 clamp(58px, 6.3vw, 112px)/1 Georgia, serif; letter-spacing: -.045em; text-transform: uppercase; }
.tribeCopy p { margin: 20px 0 0; max-width: 37ch; font-size: clamp(15px, 1.15vw, 19px); line-height: 1.55; }
.tribeControls > button { position: absolute; top: 50%; transform: translateY(-50%); width: clamp(46px, 4.6vw, 68px); height: clamp(46px, 4.6vw, 68px); border: 1px solid #c5a76c; border-radius: 50%; color: #ead4a9; background: #1c171ca3; box-shadow: inset 0 0 0 3px #302928, inset 0 0 0 4px #836b4a; cursor: pointer; }
.tribeControls > button:hover { background: #51402d; }
.tribePrev { left: 2.6%; }
.tribeNext { right: 2.6%; }
.tribeControls > button::after { content: ''; display: block; margin: auto; width: 11px; height: 11px; border-top: 2px solid; border-right: 2px solid; }
.tribePrev::after { transform: translateX(2px) rotate(-135deg); }
.tribeNext::after { transform: translateX(-2px) rotate(45deg); }
.tribeDots { position: absolute; bottom: 18px; left: 50%; display: flex; transform: translateX(-50%); }
.tribeDots button { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.tribeDots button::after { content: ''; width: 7px; height: 7px; background: #342a28; border: 1px solid #ddc395; transform: rotate(45deg); }
.tribeDots button[aria-pressed=true]::after { background: #f2dfaa; }
.homeFooter { min-height: 35px; display: flex; justify-content: space-between; align-items: center; color: #baa98d; }
.homeFooter a { color: #dccaac; }
.realmHome :focus-visible { outline: 2px solid #dcb261; outline-offset: 4px; }
.visuallyHidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.realmHome .realmDialog #close-realm-dialog { display: grid; place-items: center; text-decoration: none; }
.realmHome .realmDialog input { font-family: inherit; }
@media (min-width: 701px) and (max-width: 860px) {
    .discordInvite span { display: none; }
    .authNav { gap: 6px; }
    .authNav a { padding-inline: 13px; }
}
@media (max-width: 700px) {
    .homeBar { height: 64px; grid-template-columns: minmax(0,1fr) auto auto; gap: 6px; padding-inline: 10px; }
    .homeBar .homeBrand { grid-column:1; grid-row:1; justify-self:start; }
    .communityNav { grid-column:2; grid-row:1; }
    .discordInvite span { display:none; }
    .discordInvite { padding:7px; }
    .homeBrand { font-size: clamp(15px,4.6vw,25px); }
    .worldNav { display: none; }
    .authNav { gap: 5px; }
    .authNav a { padding: 7px 10px; font-size: 12px; letter-spacing: 0; }
    .tribeStage { height: clamp(450px, calc(85svh - 125px), 690px); }
    .tribeScene { display: grid; grid-template-rows: auto minmax(0, 1fr); background: #222027; }
    .tribeIllustration { position: static; grid-row: 2; grid-column: 1; }
    .tribeCopy { grid-row: 1; grid-column: 1; margin-left: 7%; width: 86%; padding: 14px 0; }
    .tribeCopy h1 { font-size: 38px; }
    .tribeCopy p { margin-top: 4px; max-width: 44ch; font-size: 13px; line-height: 1.35; }
    .tribeControls > button { width: 40px; height: 40px; top: 59%; }
}

@font-face { font-family: 'Lobby Noto'; src: url('/img/lobby/noto-sans.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lobby Noto'; src: url('/img/lobby/noto-sans-bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Lobby Red Rose'; src: url('/img/lobby/red-rose-bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
.worldStrip { position: relative; margin-top: -68px; padding: 0 0 36px; background: linear-gradient(transparent, #2a282b 68px); }
.worldBar {
    --gold: #cba467;
    display: grid;
    grid-template-columns: minmax(0, 440fr) minmax(0, 458fr) minmax(0, 440fr);
    align-items: start;
    gap: 20px;
    width: min(1380px, 94%);
    margin: auto;
    color: #e6dbc9;
    font: 400 13px/1.3 'Lobby Noto', Arial, sans-serif;
}
.worldBar a { color: inherit; text-decoration: none; }
.barPanel { display: flex; min-width: 0; flex-direction: column; align-items: center; }
.barFrame { position: relative; width: 100%; height: 130px; padding: 8px; }
.barFrame::before, .barFrame::after { content: ''; position: absolute; pointer-events: none; }
.barFrame::before { inset: 4px; border: 1px solid #8b7656; }
.barFrame::after {
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2011%2011%22%3E%3Cg%20transform%3D%22%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%237c694b%22%20d%3D%22m9.5.5-9%209v-9h9Z%22%2F%3E%3Cpath%20fill%3D%22%23cba467%22%20d%3D%22M4%208V4h4L4%208Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") left top,
                url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2011%2011%22%3E%3Cg%20transform%3D%22translate%2811%200%29%20scale%28-1%201%29%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%237c694b%22%20d%3D%22m9.5.5-9%209v-9h9Z%22%2F%3E%3Cpath%20fill%3D%22%23cba467%22%20d%3D%22M4%208V4h4L4%208Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") right top,
                url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2011%2011%22%3E%3Cg%20transform%3D%22translate%280%2011%29%20scale%281%20-1%29%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%237c694b%22%20d%3D%22m9.5.5-9%209v-9h9Z%22%2F%3E%3Cpath%20fill%3D%22%23cba467%22%20d%3D%22M4%208V4h4L4%208Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") left bottom,
                url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2011%2011%22%3E%3Cg%20transform%3D%22translate%2811%2011%29%20scale%28-1%20-1%29%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%237c694b%22%20d%3D%22m9.5.5-9%209v-9h9Z%22%2F%3E%3Cpath%20fill%3D%22%23cba467%22%20d%3D%22M4%208V4h4L4%208Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") right bottom;
    background-size: 11px 11px; background-repeat: no-repeat;
}
.cardFace {
    display: grid; width: 100%; height: 100%; position: relative;
    border: 2px solid var(--gold); background: linear-gradient(#302c2c, #1d2021);
    box-shadow: 2px 2px 6px #0005;
}
.worldBar h2 { color: var(--gold); font: 700 16px/1.3 'Lobby Noto', Arial, sans-serif; }
.newsCard { grid-template-columns: 110px minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 3px 15px; padding-right: 12px; }
.newsPicture { position: relative; grid-row: 1 / 4; height: 110px; }
.newsPicture::after { content: ''; position: absolute; right: -4px; top: 47%; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.newsCard h2 { margin: 4px 0 0; }
.newsCard p { margin: 0; }
.newsCard time { align-self: end; padding-bottom: 6px; font-size: 11px; font-style: italic; }
.calendarCard { padding-inline: 5px; grid-template-rows: 1fr 50px; }
.calendarCard h2 { align-self: start; margin: 13px 10px 0; }
.calendarRow { display: grid; grid-template-columns: auto 1.15fr auto .85fr; min-width: 0; align-items: stretch; font-weight: 700; }
.calendarRow > * { display: flex; align-items: center; padding: 0 9px; white-space: nowrap; }
.calendarRow > :not(:first-child) { background: linear-gradient(transparent,#ad9f8e) left / 1px 100% no-repeat; }
.calendarRow .calendarTribes { justify-content: center; align-items: end; }
.calendarTribes img { display: block; width: auto; height: 36px; }
.calendarTribes img + img { margin-left: -11px; }
.worldBar .barLink { position: relative; margin-top: -1px; min-width: min(200px, 97%); padding: 5px 12px; min-height: 32px; text-align: center; background: #292527; color: var(--gold); border: 1px solid var(--gold); outline: 1px solid #80694a; outline-offset: 3px; font-size: 14px; font-weight: 700; }
.worldBar .barLink:hover { color: #f5d599; background: #39312c; }
.worldBar .playNow {
    position: relative; isolation: isolate; display: grid; height: 130px; padding: 9px 9px 9px 7px;
    border-radius: 15px; color: #fff; background-color: #98f98a; background-blend-mode: multiply;
    background-image: url('/img/lobby/play-stone.jpg'), radial-gradient(circle at 50% 300%, #0b2a09 75%, transparent 79%), radial-gradient(circle at -20% 53%, #000a 21%, transparent 25%), radial-gradient(circle at 120% 53%, #000b 21%, transparent 24%);
}
.playNow span { display: grid; place-items: center; border-radius: 15px; background: url('/img/lobby/play-stone.jpg'),linear-gradient(#60c751,rgba(11,42,9,.9)); background-blend-mode: multiply; box-shadow: 0 -4px 1px #98f98ab3, -3px 0 5px #0003, 3px 0 5px #0004; font: 700 clamp(32px,3.1vw,46px)/1 'Lobby Red Rose',Georgia,serif; }
.playNow::after { content: ''; position: absolute; inset: -16px -15px -17px; pointer-events: none; background: url('/img/lobby/play-top-left.png') left top, url('/img/lobby/play-top-right.png') right top, url('/img/lobby/play-bottom-left.png') left bottom, url('/img/lobby/play-bottom-right.png') right bottom; background-repeat: no-repeat; }
.playNow:hover span { filter: brightness(1.12); }
.tribeDots { bottom: 90px; }
@media (max-width: 1000px) {
    .worldBar { gap: 12px; width: 96%; grid-template-columns: 1.1fr .85fr 1.1fr; }
    .newsCard { grid-template-columns: 80px 1fr; gap: 3px 9px; }
    .calendarRow > * { padding-inline: 4px; }
    .worldBar h2 { font-size: 14px; }
}
@media (max-width: 760px) {
    .worldStrip { margin-top: 0; padding: 18px 0 22px; background: #2a282b; }
    .worldBar { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; width: 94%; }
    .worldBar .playNow { grid-row: 1; grid-column: 1/-1; justify-self: center; width: min(90%,430px); height: 85px; }
    .playNow::after { inset: -10px; background-size: 48px auto; }
    .tribeDots { bottom: 12px; }
}
@media (max-width: 540px) {
    .worldBar { grid-template-columns: minmax(0,1fr); max-width: 435px; }
    .newsCard { grid-template-columns: 100px 1fr; }
    .worldBar h2 { font-size: 16px; }
}

.newsPicture { overflow: hidden; }
.newsArt { display: block; position: relative; background: #44352e var(--news-landscape) center / cover no-repeat; }
.newsArt.art-seven-tribes {
    background-image: url('/img/lobby/roman1.webp'), url('/img/lobby/teuton1.webp'), url('/img/lobby/gaul1.webp'), var(--news-landscape);
    background-size: 82% auto, 51% auto, 51% auto, cover;
    background-position: center 7px, 102% 27px, -5% 26px, center;
}
.dispatchPortrait { position:absolute; right:0; bottom:0; height:92%; max-width:70%; object-fit:contain; object-position:right bottom; }
.dispatchTrail { position:absolute; bottom:12%; left:3%; width:50%; height:42%; filter:drop-shadow(0 1px 2px #392710); }
.newsCard h2, .newsCard p { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.calendarPending { margin: 0 12px; align-self: center; color: #e6dbc9; font-weight: 700; }
.newsCard { grid-template-rows: minmax(23px, auto) 1fr auto; }
@media (min-width: 701px) {
    .tribeScene[aria-label="Egyptians"] h1, .tribeScene[aria-label="Spartans"] h1 { font-size: clamp(48px, 4.9vw, 88px); }
}
