/* Shared site chrome — The Lemonade Game (lavender top bar) */

.tlgSiteHdr {
    flex-shrink: 0;
    background: #a685c4;
    color: #fff;
    padding: 0 18px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 200;
}
.tlgSiteHdrInner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}
.tlgBrand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    min-width: 0;
}
.tlgBrand:hover { filter: brightness(1.05); }
.tlgLogoImg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
}
.tlgBrandText { white-space: nowrap; }
.tlgLemonEmoji { font-style: normal; }

.tlgNav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 8px;
    flex: 1 1 auto;
}
.tlgNavlink {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
}
.tlgNavlink:hover {
    background: rgba(255, 255, 255, 0.18);
}
.tlgNavlink--active {
    background: rgba(255, 255, 255, 0.28);
}

/* Mobile: flat Game Board list (no dropdown) */
.tlgNavHubMobile {
    display: none;
}

.navDropdown {
    position: relative;
    display: flex;
    align-items: center;
    align-self: center;
}
.navDropBtn {
    background: transparent;
    border: none;
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    width: auto;
    max-width: none;
    line-height: 1.2;
    vertical-align: middle;
    box-sizing: border-box;
}
.navDropBtn:not(.navDropBtn--gameBoard):hover { background: rgba(255, 255, 255, 0.18); }

/* Game Board — green + red 3D text, dotted border (no moving gold) */
.navDropBtn--gameBoard {
    position: relative;
    isolation: isolate;
    overflow: visible;
    gap: 8px;
    padding: 7px 12px 10px;
    border: 2px dotted rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    background: transparent;
    color: #ffffff;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 0.06em;
    line-height: 1.1;
    text-transform: uppercase;
    box-shadow: none;
    transform: none;
    transition: transform 0.15s ease, border-color 0.15s ease;
    z-index: 2;
}
.navDropBtn--gameBoard::before,
.navDropBtn--gameBoard::after {
    content: none;
    display: none;
}
.navDropBtnGold,
.navDropBtnGoldSpin {
    display: none !important;
}
.navDropBtn--gameBoard > .navDropBtnText,
.navDropBtn--gameBoard > .tlgCaret {
    position: relative;
    z-index: 2;
}
.navDropBtn--gameBoard .navDropBtnWord--green {
    color: #86efac;
    -webkit-text-stroke: 0.35px #14532d;
    text-shadow:
        -1px 0 0 #166534,
        1px 0 0 #166534,
        0 -1px 0 #166534,
        1px 1px 0 #15803d,
        2px 2px 0 #166534,
        3px 3px 0 #14532d,
        4px 4px 0 #052e16,
        6px 8px 12px rgba(20, 83, 45, 0.45);
}
.navDropBtn--gameBoard .navDropBtnWord--red {
    color: #fca5a5;
    -webkit-text-stroke: 0.35px #7f1d1d;
    text-shadow:
        -1px 0 0 #991b1b,
        1px 0 0 #991b1b,
        0 -1px 0 #991b1b,
        1px 1px 0 #b91c1c,
        2px 2px 0 #991b1b,
        3px 3px 0 #7f1d1d,
        4px 4px 0 #450a0a,
        6px 8px 12px rgba(127, 29, 29, 0.45);
}
.navDropBtn--gameBoard:hover,
.navDropBtn--gameBoard:focus-visible {
    background: transparent;
    filter: none;
    transform: translateY(-2px);
    border-color: #fff;
    box-shadow: none;
}
.navDropBtn--gameBoard:hover .navDropBtnWord--green,
.navDropBtn--gameBoard:focus-visible .navDropBtnWord--green {
    color: #bbf7d0;
}
.navDropBtn--gameBoard:hover .navDropBtnWord--red,
.navDropBtn--gameBoard:focus-visible .navDropBtnWord--red {
    color: #fecaca;
}
.navDropBtn--gameBoard:active,
.navDropBtn--gameBoard[aria-expanded="true"] {
    transform: translateY(1px);
    filter: none;
    border-style: dotted;
    border-color: rgba(255, 255, 255, 0.95);
}
.navDropBtn--gameBoard:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 4px;
}
.navDropBtn--gameBoard .navDropBtnText {
    white-space: nowrap;
}
.navDropBtn--gameBoard .tlgCaret {
    font-size: 0.7rem;
    font-weight: 900;
    opacity: 1;
    color: #fff;
    text-shadow:
        1px 1px 0 #4c1d6e,
        2px 2px 0 #3b0764;
    margin-top: 2px;
    transition: transform 0.15s ease;
}
.navDropBtn--gameBoard[aria-expanded="true"] .tlgCaret {
    transform: rotate(180deg);
}

.tlgCaret { font-size: 0.65rem; opacity: 0.95; }

/* Dropdown panel — desktop only (see min-width below) */
.navDropMenu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 12px 6px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fcfafd 55%, #f7f2fb 100%);
    color: #1e293b;
    border-radius: 14px;
    box-shadow:
        0 18px 40px rgba(61, 42, 79, 0.16),
        0 2px 0 rgba(255, 255, 255, 0.9) inset;
    border: 1px solid #e4d6f0;
    z-index: 400;
}
.navDropMenu.show {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.navDropItem {
    display: block;
    padding: 8px 12px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.84rem;
    line-height: 1.35;
    white-space: normal;
    border-radius: 8px;
}
.navDropItem:hover { background: #f1f5f9; }
.navDropHeading {
    column-span: all;
    padding: 6px 12px 8px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    white-space: nowrap;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 4px;
}
.navDropDivider {
    height: 1px;
    margin: 6px 8px;
    background: #e2e8f0;
    column-span: all;
}
.navDropItem--hub {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    column-gap: 0.85rem;
    align-items: center;
    padding: 9px 12px;
    margin: 0;
    border-radius: 8px;
    border-bottom: none;
    font-weight: 400;
    box-sizing: border-box;
    transition: background 0.18s ease, color 0.18s ease;
    text-decoration: none;
    color: inherit;
}
.navDropItem--hub:hover {
    background: #f4ecfb;
}
.navDropItem--hubParent:hover,
.navDropItem--hubParentOnly:hover {
    background: transparent;
}
.navDropItem--hub:focus-visible {
    outline: 2px solid #a685c4;
    outline-offset: 1px;
}
.navDropHubFlyWrap {
    position: relative;
    margin: 1px 0;
}
.navDropHubFlyTrigger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    border-radius: 8px;
    cursor: default;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}
.navDropHubFlyWrap.is-flyout-active .navDropHubFlyTrigger {
    background: #ede4f7;
    box-shadow: inset 3px 0 0 #7c3aed;
}
.navDropHubFlyTrigger .navDropItem--hubParent,
.navDropHubFlyTrigger .navDropItem--hubParentOnly {
    grid-column: 1;
}
.navDropHubFlyArrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    padding: 0 8px 0 2px;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    color: #334155;
    flex-shrink: 0;
    transition: color 0.18s ease, transform 0.18s ease;
}
.navDropHubFlyWrap.is-flyout-active .navDropHubFlyArrow {
    color: #6d28d9;
    transform: translateX(2px);
}
.navDropHubSidePanel {
    display: none;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-left: 1px solid #e8dff0;
    background: #faf8fc;
    box-sizing: border-box;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.navDropHubSidePanel.is-visible {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}
.navDropHubSideHead {
    padding: 12px 14px 8px;
    border-bottom: 1px solid #ece4f4;
    background: #f5f0fa;
}
.navDropHubSideHeadLabel {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b21a8;
}
.navDropHubSideBody {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.navDropHubSubLink {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    column-gap: 0.65rem;
    align-items: center;
    padding: 9px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #0f172a;
    transition: background 0.18s ease, color 0.18s ease;
}
.navDropHubSubLink:hover {
    background: #ede4f7;
    color: #4c1d95;
}
.navDropHubSubLink:focus-visible {
    outline: 2px solid #a685c4;
    outline-offset: 1px;
}
.navDropHubSubCode {
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}
.navDropHubSubName {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.35;
    color: #0f172a;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.navDropHubSubLink:hover .navDropHubSubCode {
    color: #5b21b6;
}
.navDropLemon {
    display: none;
}
.navDropHubTitle {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.45;
    color: #111;
    letter-spacing: 0;
    white-space: nowrap;
}
.navDropItem--hub:hover .navDropHubTitle {
    color: #111;
}
.navDropHubSub {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    color: #1e293b;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlgHdrActions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}
.tlgHdrBtn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-weight: 800;
    font-size: 0.86rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.tlgHdrBtn:hover { filter: brightness(0.97); }
.tlgUserHi {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.88);
    margin-right: 4px;
}
.tlgUserHi strong { color: #fff; }
.tlgUserOut {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}
.tlgUserOut:hover { text-decoration: underline; }

.tlgHdrCenter {
    display: none;
}

.tlgMenuToggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}
.tlgMenuToggle:hover { background: rgba(255, 255, 255, 0.28); }
.tlgMenuIcon {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    position: relative;
}
.tlgMenuIcon::before,
.tlgMenuIcon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s ease;
}
.tlgMenuIcon::before { top: -7px; }
.tlgMenuIcon::after { top: 7px; }
.tlgSiteHdr.isMenuOpen .tlgMenuIcon { background: transparent; }
.tlgSiteHdr.isMenuOpen .tlgMenuIcon::before {
    top: 0;
    transform: rotate(45deg);
}
.tlgSiteHdr.isMenuOpen .tlgMenuIcon::after {
    top: 0;
    transform: rotate(-45deg);
}

.tlgHdrPanel {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 20px;
    min-width: 0;
}

/* Desktop: keep original header layout (do not shift left) */
@media (min-width: 901px) {
    .tlgHdrCenter {
        display: none !important;
    }
    .tlgNavHubMobile {
        display: none !important;
    }
    /* Home + Contact left, Game Board centered, Team + Glossary right */
    .tlgHdrPanel {
        justify-content: flex-start;
    }
    .tlgNav {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .tlgNavHubDesktop {
        margin: 0 auto;
    }
    .navDropMenu {
        position: fixed;
        top: 62px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        min-width: min(92vw, 360px);
        width: min(94vw, 480px);
        max-width: min(96vw, 520px);
        max-height: min(78vh, 640px);
        overflow: visible;
        box-sizing: border-box;
    }
    .navDropMenu--hubSplit {
        display: none;
        grid-template-columns: minmax(0, 1fr) 0fr;
        width: min(92vw, 420px);
        max-width: min(94vw, 440px);
        min-width: min(88vw, 340px);
        padding: 0;
        gap: 0;
        overflow: hidden;
        transition: width 0.24s ease, max-width 0.24s ease, grid-template-columns 0.24s ease;
    }
    .navDropMenu--hubSplit.show {
        display: grid;
    }
    .navDropMenu--hubSplit.has-subpanel {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
        width: min(94vw, 700px);
        max-width: min(96vw, 720px);
    }
    .navDropMenuScroll {
        max-height: min(72vh, 560px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 8px;
        box-sizing: border-box;
        scrollbar-width: thin;
        scrollbar-color: #c4b5fd transparent;
    }
    .navDropMenuScroll::-webkit-scrollbar {
        width: 6px;
    }
    .navDropMenuScroll::-webkit-scrollbar-thumb {
        background: #c4b5fd;
        border-radius: 999px;
    }
    .navDropMenu--hubSplit .navDropHubSidePanel {
        max-height: min(72vh, 560px);
    }
    .navDropMenu--hubSplit .navDropHubSideBody {
        max-height: calc(min(72vh, 560px) - 44px);
    }
    .navDropMenu--hubSplit .navDropHubFlyout {
        display: none !important;
    }
    .navDropMenu.show:not(.navDropMenu--hubSplit) {
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 6px;
    }
}

/* Wide desktop: Game Board sits at the true center of the header bar */
@media (min-width: 1300px) {
    .tlgSiteHdrInner {
        position: relative;
    }
    .tlgNavHubDesktop {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: max-content;
        margin: 0 auto;
        display: flex;
        align-items: center;
    }
    .tlgNavlink--team {
        margin-left: auto;
    }
}

/* Mobile: logo + name left, hamburger right (Game Board only inside menu) */
@media (max-width: 900px) {
    .tlgSiteHdr {
        padding: 8px 12px;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .tlgSiteHdrInner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 8px 10px;
        width: 100%;
    }
    .tlgBrand {
        grid-column: 1;
        grid-row: 1;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        min-width: 0;
        max-width: none;
    }
    .tlgLogoImg {
        width: 44px;
        height: 44px;
    }
    .tlgBrandText {
        font-size: 0.92rem;
        font-weight: 800;
        line-height: 1.2;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: none;
        letter-spacing: 0.01em;
    }
    .tlgHdrCenter {
        display: none !important;
    }
    .tlgMenuToggle {
        display: inline-flex;
        grid-column: 2;
        grid-row: 1;
        margin-left: 0;
    }
    .tlgHdrPanel {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 10px 0 12px;
        gap: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
        margin-top: 2px;
        max-height: calc(100dvh - 64px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .tlgSiteHdr.isMenuOpen .tlgHdrPanel {
        display: flex;
    }
    .tlgNav {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        width: 100%;
        gap: 2px;
    }
    .tlgNavlink {
        width: 100%;
        box-sizing: border-box;
        border-radius: 8px;
        white-space: normal;
    }
    .tlgNavHubDesktop {
        display: none !important;
    }
    .tlgNavHubMobile {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin: 6px 0 4px;
    }
    .tlgNavHubMobileLabel {
        font-weight: 700;
        font-size: 0.92rem;
        padding: 8px 14px 4px;
        color: #fff;
    }
    .tlgNavHubMobileList {
        width: 100%;
        box-sizing: border-box;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 8px;
        max-height: min(55vh, 420px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        padding: 8px 4px;
    }
    .tlgNavHubMobileList .navDropHeading {
        padding: 8px 10px 6px;
        margin-bottom: 2px;
    }
    .tlgNavHubMobileList .navDropItem--hub {
        padding: 6px 12px;
        grid-template-columns: 8.5rem minmax(0, 1fr);
        column-gap: 1rem;
    }
    .tlgNavHubMobileList .navDropHubTitle,
    .tlgNavHubMobileList .navDropHubSub {
        font-size: 0.88rem;
    }
    .tlgNavHubMobileList .navDropHubFlyout {
        display: flex !important;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
        margin: 2px 0 6px 10px;
        padding: 4px 0 4px 10px;
        border: none;
        border-left: 2px solid #c4b5fd;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
    .tlgNavHubMobileList .navDropHubSubLink {
        grid-template-columns: 3.75rem minmax(0, 1fr);
        padding: 7px 8px;
    }
    .tlgNavHubMobileList .navDropHubSidePanel {
        display: none !important;
    }
    .tlgNavHubMobileList .navDropHubFlyArrow {
        padding-right: 10px;
    }
    .tlgHdrActions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    .tlgHdrBtn,
    .tlgUserOut {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    .tlgUserHi {
        margin-right: 0;
        text-align: center;
    }
}