:root {
    --asset-leather-black: url("/pages/wbs3/background-black2.png");
    --asset-leather-red: url("/pages/wbs3/background-red.png");
	
	--asset-flourish-icon: url("/pages/wbs3/flourish_icon.png");
	
	--asset-corner-tl: url("/pages/wbs3/beveled-tack.png");
    --asset-corner-tr: url("/pages/wbs3/beveled-tack.png");
    --asset-corner-bl: url("/pages/wbs3/beveled-tack.png");
    --asset-corner-br: url("/pages/wbs3/beveled-tack.png");
	--asset-corner: url("/pages/wbs3/corner_icon.png");
	
	--asset-category-community: url("/pages/wbs3/community_button.png");
	--asset-category-current-events: url("/pages/wbs3/current_events_button.png");
	--asset-category-entertainment: url("/pages/wbs3/entertainment_button.png");
	--asset-category-home-and-living: url("/pages/wbs3/home_and_living_button.png");
	--asset-category-roleplaying: url("/pages/wbs3/roleplaying_button.png");
	--asset-category-sports: url("/pages/wbs3/sports_button.png");
	--asset-category-technology: url("/pages/wbs3/technology_button.png");
	--asset-category-travel: url("/pages/wbs3/travel_button.png");
	
	--asset-chat-now: url("/pages/wbs3/chat_now_button.png");
	
	--asset-link-who: url("/pages/wbs3/whos_on_button.png");
	--asset-link-forum: url("/pages/wbs3/forum_button.png");
	--asset-link-private: url("/pages/wbs3/private_rooms_button.png");
	--asset-link-homepages: url("/pages/wbs3/homepages_button.png");
	--asset-link-identity: url("/pages/wbs3/identity_button.png");
	--asset-link-logout: url("/pages/wbs3/logout_button.png");

    --gold-bright: #f8dd82;
    --gold: #c99828;
    --gold-dark: #6f4612;
    --gold-deep: #2a1a05;
    --red-deep: #280000;
    --red: #630400;
    --red-bright: #9a0902;
    --black: #050403;
    --black-soft: #11100c;
    --cream: #fff2c9;
    --muted: #d6c7a1;
}

* { box-sizing: border-box; }

html,
body {
    min-height: 100%;
}

body.wbs-hubs-page,
body.wbs-rooms-page {
    margin: 0;
    color: var(--cream);
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .96), rgba(0, 0, 0, .35) 15%, rgba(0, 0, 0, .35) 85%, rgba(0, 0, 0, .96)),
        var(--asset-leather-black) center top repeat,
        #020202;
}

.warning {
    width: min(1180px, calc(100vw - 24px));
    margin: 10px auto;
    padding: 10px 14px;
    color: #fff4bf;
    background: #5b0000;
    border: 1px solid var(--gold);
    text-align: center;
    font-weight: bold;
}

.hub-stage {
    position: relative;
    width: 1240px;
    max-width: calc(100vw - 24px);
    min-height: 724px;
    margin: 10px auto;
    padding: 30px 42px 16px;
    overflow: hidden;
    border-radius: 18px;
    background: transparent;
}

.hub-stage::before {
    content: "";
    position: absolute;
    inset: 18px;
    pointer-events: none;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 222, 119, .08), transparent 90px),
        var(--asset-leather-red) center top repeat,
        radial-gradient(circle at 50% 24%, #80100b, #260000 70%);
    z-index: 0;
}

.hub-stage::after {
    content: "";
    position: absolute;
    inset: 14px;
    pointer-events: none;
    border: 1px solid rgba(255, 207, 94, .72);
    border-radius: 12px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .75),
        0 0 26px rgba(0, 0, 0, .75) inset;
    z-index: 1;
}

.stage-corner,
.stage-rivet,
.panel-rivet {
    position: absolute;
    pointer-events: none;
    z-index: 3;
}

.stage-rivet,
.panel-rivet {
    width: 18px;
    height: 18px;
    background-image: url("/pages/wbs3/beveled-tack.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    border: none;
    box-shadow: none;
    border-radius: 0;
}

.stage-rivet-tl { top: 8px; left: 8px; }
.stage-rivet-tr { top: 8px; right: 8px; }
.stage-rivet-bl { bottom: 8px; left: 8px; }
.stage-rivet-br { bottom: 8px; right: 8px; }

.stage-corner {
    width: 80px;
    height: 80px;
    opacity: .92;
}

.stage-corner {
    position: absolute;
    width: 90px;
    height: 90px;
    background-image: var(--asset-corner);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: 3;
}

.stage-corner-tl {
    top: 0px;
    left: 0px;
}

.stage-corner-tr {
    top: 0px;
    right: 0px;
    transform: scaleX(-1);
}

.stage-corner-bl {
    bottom: 0px;
    left: 0px;
    transform: scaleY(-1);
}

.stage-corner-br {
    bottom: 0px;
    right: 0px;
    transform: scale(-1);
}

.hub-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    height: 104px;
    padding-left: 64px;
    padding-bottom: 20px;
}

.hub-logo-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.hub-logo {
    display: block;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .75));
}

.hub-title-block {
    margin-left: 18px;
    margin-bottom: 1px;
	margin-top: 15px;
}

.hub-title-block h1 {
    margin: 0;
    color: var(--gold-bright);
	font-family: Georgia, 'Times New Roman', serif;
    font-size: 43px;
    line-height: .95;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-variant: small-caps;

    text-shadow:
        0 1px 0 #fff7cf,          
        0 2px 0 #d9a73d,
        0 3px 0 #7a4b10,
        0 4px 0 #2b1603,
        0 0 8px rgba(0,0,0,.9),
        0 0 14px rgba(255,206,74,.24);
}

.hub-title-block p {
    margin: 10px 0 0 4px;
    color: #f3ead2;
    font-size: 17px;
    letter-spacing: .3px;
    text-shadow: 0 2px 2px #000;
}

.hub-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 332px;
    gap: 12px;
    align-items: start;
}

.ornate-panel {
    position: relative;
    border: 2px solid #181005;
    border-radius: 7px;
    background:
        linear-gradient(180deg, rgba(255, 219, 104, .08), transparent 34px),
        var(--asset-leather-black) center top repeat,
        linear-gradient(180deg, #10100d, #050504);
    box-shadow:
        0 0 0 1px #b48625 inset,
        0 0 0 4px rgba(0, 0, 0, .62) inset,
        0 0 0 5px rgba(217, 154, 41, .22) inset,
        0 0 18px rgba(0, 0, 0, .9);
}

.panel-rivet {
    width: 13px;
    height: 13px;
}

.panel-rivet-tl { top: 11px; left: 11px; }
.panel-rivet-tr { top: 11px; right: 11px; }
.panel-rivet-bl { bottom: 11px; left: 11px; }
.panel-rivet-br { bottom: 11px; right: 11px; }

.category-panel {
    min-height: 540px;
    padding: 18px 22px 44px;
}

.panel-heading {
    margin: 0 0 10px 74px;
}

.panel-heading h2,
.quick-heading h2 {
    margin: 0;
    color: var(--gold-bright);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 27px;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-variant: small-caps;
    text-shadow: 0 2px 2px #000, 0 0 8px rgba(255, 211, 86, .25);
	white-space: nowrap;
}

.panel-heading h2::before,
.quick-heading h2::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 16px;
    margin: 0 13px;
    transform: translateY(-1px) scaleX(-1);

    background: var(--asset-flourish-icon) no-repeat center center;
    background-size: contain;
}

.panel-heading h2::after,
.quick-heading h2::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 16px;
    margin: 0 13px;
    transform: translateY(-1px);

    background: var(--asset-flourish-icon) no-repeat center center;
    background-size: contain;
}

.panel-heading p {
    margin: 6px 0 0 45px;
    color: #fff4d9;
    font-size: 16px;
}

.hub-list {
    position: relative;
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    border: 1px solid rgba(212, 152, 38, .8);
    border-radius: 5px;
    background: rgba(38, 0, 0, .72);
    box-shadow:
        0 0 0 3px rgba(0, 0, 0, .55) inset,
        0 0 0 4px rgba(177, 108, 20, .18) inset;
    overflow: hidden;
}

.hub-row {
    position: relative;
    display: grid;
    grid-template-columns: 74px 1fr 44px;
    min-height: 54px;
    color: #fff0c8;
    text-decoration: none;
    background:
        linear-gradient(90deg, rgba(18, 0, 0, .98) 0 74px, transparent 74px),
        linear-gradient(180deg, rgba(160, 8, 3, .76), rgba(49, 0, 0, .94)),
        var(--asset-leather-red) center center repeat;
    border-bottom: 1px solid rgba(205, 123, 24, .62);
    box-shadow:
        0 1px 0 rgba(255, 219, 102, .15) inset,
        0 -1px 0 rgba(0, 0, 0, .72) inset;
    transition: filter .15s ease, transform .15s ease, background-color .15s ease;
}

.hub-row::before {
    content: "";
    position: absolute;
    left: 74px;
    top: 0;
    bottom: 0;
    width: 2px;

    background:
        linear-gradient(
            to right,
            rgba(220,170,70,.50),
            rgba(180,120,20,.9)
        );
}

.hub-row:last-child { border-bottom: 0; }

.hub-row::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: 4px;
    left: 74px;
    border-right: 1px solid rgba(241, 185, 58, .3);
    pointer-events: none;
}

.hub-row:hover,
.hub-row:focus-visible {
    filter: brightness(1.22);
    outline: none;
}

.hub-row-icon {
    position: relative;
    align-self: center;
    justify-self: center;
    width: 58px;
    height: 58px;
    margin-left: 0;

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    border: none;
    border-radius: 0;
    box-shadow: none;
	z-index: 2;
}

.hub-row-icon::before {
    content: none;
    display: none;
}

.hub-icon-community .hub-row-icon {
    background-image: var(--asset-category-community);
}

.hub-icon-current-events .hub-row-icon {
    background-image: var(--asset-category-current-events);
}

.hub-icon-entertainment .hub-row-icon {
    background-image: var(--asset-category-entertainment);
}

.hub-icon-home-and-living .hub-row-icon {
    background-image: var(--asset-category-home-and-living);
}

.hub-icon-roleplaying .hub-row-icon {
    background-image: var(--asset-category-roleplaying);
}

.hub-icon-sports .hub-row-icon {
    background-image: var(--asset-category-sports);
}

.hub-icon-technology .hub-row-icon {
    background-image: var(--asset-category-technology);
}

.hub-icon-travel .hub-row-icon {
    background-image: var(--asset-category-travel);
}

.hub-row-text {
    align-self: center;
    min-width: 0;
    padding: 6px 10px 6px 16px;
}

.hub-row-text strong {
    display: block;
    color: var(--gold-bright);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 19px;
    line-height: 1.05;
    letter-spacing: .8px;
    text-transform: uppercase;
    font-variant: small-caps;
    text-shadow: 0 2px 2px #000;
}

.hub-row-text em {
    display: block;
    margin-top: 3px;
    color: #fff0d4;
    font-style: normal;
    font-size: 15px;
    line-height: 1.2;
    text-shadow: 0 1px 1px #000;
}

.hub-row-arrow {
    align-self: center;
    justify-self: center;
    color: var(--gold-bright);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 48px;
    line-height: 1;
    text-shadow: 0 2px 2px #000;
}

.quick-panel {
    padding: 22px 28px 18px;
}

.quick-heading {
    margin-bottom: 14px;
    text-align: center;
}

.quick-heading h2 {
    font-size: 24px;
}

.quick-list {
    display: flex;
    flex-direction: column;
}

.quick-link {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    min-height: 66px;
    color: #fff5dd;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px solid rgba(171, 111, 29, .44);
    text-shadow: 0 2px 2px #000;
}

.quick-link:hover,
.quick-link:focus-visible {
    color: var(--gold-bright);
    outline: none;
}

.quick-link-icon {
    width: 60px;
    height: 60px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

.quick-link-icon::before {
    content: none;
}

.quick-icon-who .quick-link-icon {
    background-image: var(--asset-link-who);
}

.quick-icon-forum .quick-link-icon {
    background-image: var(--asset-link-forum);
}

.quick-icon-private .quick-link-icon {
    background-image: var(--asset-link-private);
}

.quick-icon-homepages .quick-link-icon {
    background-image: var(--asset-link-homepages);
}

.quick-icon-identity .quick-link-icon {
    background-image: var(--asset-link-identity);
}

.quick-icon-logout .quick-link-icon {
    background-image: var(--asset-link-logout);
}

.quick-divider {
    width: 261px;
    height: 15px;
    margin: 13px auto 20px;
    background: url("/pages/wbs3/divider_icon2.png") no-repeat center center;
    background-size: contain;
}

.petition-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 18px;
    color: var(--gold-bright);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.05;
    letter-spacing: .7px;
    text-decoration: none;
    text-transform: uppercase;
    font-variant: small-caps;
    text-shadow: 0 2px 2px #000;
}

.petition-link img {
    width: 153px;
    height: 69px;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px #000);
}

.petition-link:hover,
.petition-link:focus-visible {
    filter: brightness(1.16);
    outline: none;
}

.hub-footer {
    position: relative;
    z-index: 2;
    min-height: 94px;
    margin: 10px 0 20px;
    padding: 18px 40px 14px;
    text-align: center;
    color: #f8ecd0;
    border: 2px solid #100a04;
    border-radius: 6px 6px 12px 12px;
    background:
        linear-gradient(180deg, rgba(148, 9, 2, .6), rgba(40, 0, 0, .95)),
        var(--asset-leather-red) center center repeat;
    box-shadow:
        0 0 0 1px #a97a22 inset,
        0 0 0 4px rgba(0, 0, 0, .52) inset;
}

.hub-footer a {
    color: #fff0af;
    text-decoration: underline;
}

.hub-footer a:hover,
.hub-footer a:focus-visible {
    color: #ffffff;
}

.footer-links {
    margin: 0 0 12px;
    font-size: 15px;
}

.footer-links span {
    color: var(--gold-bright);
    margin: 0 6px;
}

.footer-credit {
    margin: 0;
    color: #fff0d6;
    font-size: 12px;
    line-height: 1.45;
}

.footer-credit font {
    font-size: inherit;
}

@media (max-width: 900px) {
    .hub-stage {
        min-height: 0;
        padding: 22px 18px 14px;
    }

    .hub-header {
        height: auto;
        padding: 18px 20px 22px;
        align-items: center;
        flex-wrap: wrap;
    }

    .hub-logo {
        width: 210px;
    }

    .hub-title-block h1 {
        font-size: 34px;
    }

    .hub-grid {
        grid-template-columns: 1fr;
    }

    .quick-panel,
    .category-panel {
        min-height: 0;
    }
}

@media (max-width: 620px) {
    .hub-stage {
        max-width: calc(100vw - 10px);
        margin: 5px auto;
        padding: 16px 10px 10px;
    }

    .stage-corner,
    .stage-rivet {
        display: none;
    }

    .hub-header {
        padding: 14px 8px 18px;
    }

    .hub-logo {
        width: 180px;
    }

    .hub-title-block {
        margin-left: 0;
        margin-top: 10px;
    }

    .hub-title-block h1 {
        font-size: 30px;
    }

    .hub-title-block p {
        font-size: 14px;
    }

    .panel-heading {
        margin-left: 0;
        text-align: center;
    }

    .panel-heading h2::before,
    .panel-heading h2::after,
    .quick-heading h2::before,
    .quick-heading h2::after {
        display: none;
    }

    .panel-heading p {
        margin-left: 0;
    }

    .category-panel,
    .quick-panel {
        padding: 16px 12px;
    }

    .hub-row {
        grid-template-columns: 66px 1fr 28px;
        min-height: 60px;
    }

    .hub-row::after {
        left: 62px;
    }

    .hub-row-icon {
        width: 48px;
        height: 48px;
        margin-left: 8px;
        background-size: contain;
    }

    .hub-row-text strong {
        font-size: 17px;
    }

    .hub-row-text em {
        font-size: 13px;
    }

    .hub-row-arrow {
        font-size: 34px;
    }
}

/* Room-list page additions */
body.wbs-rooms-page .hub-stage {
    min-height: 0;
}

body.wbs-rooms-page .hub-title-block h1 {
    font-size: 40px;
}

body.wbs-rooms-page .hub-title-block p strong {
    color: var(--gold-bright);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    letter-spacing: .8px;
    text-transform: uppercase;
    font-variant: small-caps;
}

.room-panel {
    min-height: 430px;
    padding: 18px 22px 34px;
}

.room-list {
    position: relative;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(212, 152, 38, .8);
    border-radius: 5px;
    background: rgba(38, 0, 0, .72);
    box-shadow:
        0 0 0 3px rgba(0, 0, 0, .55) inset,
        0 0 0 4px rgba(177, 108, 20, .18) inset;
    overflow: hidden;
}

.room-row {
    position: relative;
    display: grid;
    grid-template-columns: 74px 1fr 108px 44px;
    min-height: 64px;
    color: #fff0c8;
    text-decoration: none;
    background:
        linear-gradient(90deg, rgba(18, 0, 0, .98) 0 74px, transparent 74px),
        linear-gradient(180deg, rgba(160, 8, 3, .76), rgba(49, 0, 0, .94)),
        var(--asset-leather-red) center center repeat;
    border-bottom: 1px solid rgba(205, 123, 24, .62);
    box-shadow:
        0 1px 0 rgba(255, 219, 102, .15) inset,
        0 -1px 0 rgba(0, 0, 0, .72) inset;
    transition: filter .15s ease, transform .15s ease, background-color .15s ease;
}

.room-row:last-child { border-bottom: 0; }

.room-row::before {
    content: "";
    position: absolute;
    left: 74px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to right, rgba(220,170,70,.50), rgba(180,120,20,.9));
}

.room-row::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: 4px;
    left: 74px;
    border-right: 1px solid rgba(241, 185, 58, .3);
    pointer-events: none;
}

.room-row:hover,
.room-row:focus-visible {
    filter: brightness(1.22);
    outline: none;
}

.room-row-icon {
    position: relative;
    align-self: center;
    justify-self: center;
    width: 58px;
    height: 58px;
    background: var(--asset-chat-now) no-repeat center center;
    background-size: contain;
    z-index: 2;
}

.room-row-text {
    align-self: center;
    min-width: 0;
    padding: 8px 10px 8px 16px;
}

.room-row-text strong {
    display: block;
    color: var(--gold-bright);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
    line-height: 1.05;
    letter-spacing: .8px;
    text-transform: uppercase;
    font-variant: small-caps;
    text-shadow: 0 2px 2px #000;
}

.room-row-text em {
    display: block;
    margin-top: 4px;
    color: #fff0d4;
    font-style: normal;
    font-size: 15px;
    line-height: 1.2;
    text-shadow: 0 1px 1px #000;
}

.room-online {
    align-self: center;
    justify-self: end;
    margin-right: 12px;
    color: #fff7d6;
    font-size: 15px;
    font-weight: bold;
    text-shadow: 0 2px 2px #000;
    white-space: nowrap;
}

.room-online b {
    color: var(--gold-bright);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    line-height: 1;
}

.room-row-arrow {
    align-self: center;
    justify-self: center;
    color: var(--gold-bright);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 48px;
    line-height: 1;
    text-shadow: 0 2px 2px #000;
}

.plaza-list {
    margin-top: 18px;
    padding: 14px 0 0;
    border-top: 1px solid rgba(171, 111, 29, .44);
}

.plaza-list-title {
    margin: 0 0 8px;
    color: var(--gold-bright);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 19px;
    font-weight: bold;
    letter-spacing: .7px;
    text-transform: uppercase;
    font-variant: small-caps;
    text-shadow: 0 2px 2px #000;
}

.plaza-link {
    display: block;
    padding: 5px 0;
    color: #fff5dd;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 0 2px 2px #000;
}

.plaza-link:hover,
.plaza-link:focus-visible,
.plaza-link.is-current {
    color: var(--gold-bright);
    outline: none;
}

.back-link-row {
    margin: 14px 0 0;
    text-align: right;
}

.back-link-row a {
    color: #fff0af;
    font-weight: bold;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .room-row {
        grid-template-columns: 66px 1fr 92px 32px;
    }

    .room-row::before,
    .room-row::after {
        left: 66px;
    }
}

@media (max-width: 620px) {
    .room-panel {
        padding: 16px 12px;
    }

    .room-row {
        grid-template-columns: 62px 1fr 28px;
        min-height: 72px;
    }

    .room-row::before,
    .room-row::after {
        left: 62px;
    }

    .room-row-icon {
        width: 48px;
        height: 48px;
    }

    .room-online {
        grid-column: 2 / 3;
        justify-self: start;
        margin: -7px 0 8px 16px;
        font-size: 13px;
    }

    .room-online b {
        font-size: 17px;
    }

    .room-row-arrow {
        grid-column: 3 / 4;
        grid-row: 1 / 3;
        font-size: 34px;
    }
}