/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-dayo3v44ix] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* One centred column for every page. DuelBoard sets its own narrower max-width
   inside this, so the board stays readable while wider pages can breathe. */
.content[b-dayo3v44ix] {
    flex: 1;
    width: 100%;
    max-width: 60rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

@media (max-width: 640.98px) {
    .content[b-dayo3v44ix] {
        padding: 1.25rem 1rem 3rem;
    }
}

#blazor-error-ui[b-dayo3v44ix] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-dayo3v44ix] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Palette shared with DuelBoard so the chrome and the game look like one product. */
.topbar[b-7j5a6aterm] {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #1f1b26;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.topbar-inner[b-7j5a6aterm] {
    position: relative;
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.brand[b-7j5a6aterm] {
    margin-right: auto;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.015em;
    color: #fff;
    text-decoration: none;
}

    .brand span[b-7j5a6aterm] {
        color: #b8456b;
    }

    .brand:hover[b-7j5a6aterm] {
        color: #fff;
    }

.nav-links[b-7j5a6aterm] {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.nav-form[b-7j5a6aterm] {
    margin: 0;
}

/* ::deep is required because NavLink is a child component — the <a> it renders
   doesn't carry this component's scope attribute. Moving the attribute to the
   ancestor also makes this rule catch the logout <button> in our own markup,
   so one rule covers both. */
.nav-links[b-7j5a6aterm]  .nav-link {
    display: inline-flex;
    align-items: center;
    height: 2.25rem;
    padding: 0 .8rem;
    border: 0;
    border-radius: .4rem;
    background: transparent;
    color: rgba(255, 255, 255, .72);
    font-family: inherit;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

/* Order below is load-bearing: .active, .nav-cta and :hover all resolve to the
   same specificity, so hover is written last to win. Add a variant in the wrong
   place and it will silently do nothing. */
.nav-links[b-7j5a6aterm]  a.active {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.nav-links[b-7j5a6aterm]  a.nav-cta {
    color: #fff;
    background: #b8456b;
}

.nav-links[b-7j5a6aterm]  .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.nav-links[b-7j5a6aterm]  a.nav-cta:hover {
    background: #a03c5e;
}

.nav-links[b-7j5a6aterm]  .nav-link:focus-visible {
    outline: 2px solid #b8456b;
    outline-offset: 2px;
}

/* --- mobile ------------------------------------------------------------- */

.nav-toggle[b-7j5a6aterm] {
    display: none;
}

.nav-burger[b-7j5a6aterm] {
    display: none;
    width: 2.5rem;
    height: 2.25rem;
    border-radius: .4rem;
    border: 1px solid rgba(255, 255, 255, .18);
    cursor: pointer;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e") no-repeat center/1.3rem;
}

@media (max-width: 640.98px) {
    .nav-burger[b-7j5a6aterm] {
        display: block;
    }

    .nav-links[b-7j5a6aterm] {
        display: none;
        position: absolute;
        top: 3.5rem;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: .15rem;
        padding: .6rem 1rem 1rem;
        background: #1f1b26;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    /* Two classes beats one, so this wins over the .nav-links rule above. */
    .nav-toggle:checked ~ .nav-links[b-7j5a6aterm] {
        display: flex;
    }

    .nav-links[b-7j5a6aterm]  .nav-link {
        height: 2.75rem;
        justify-content: flex-start;
    }
}
