/* The site's look (2026-10 redesign): a dark game-platform shell with chunky, colour-coded 3D buttons. It styles the
   navbar on every page, and the pages built in it: the landing pages, Home and the Study / Train / Tools / Play menus,
   whose top element carries .ac. Board, account and tool pages keep their own sheets under the new navbar. */

@font-face {
    font-family: "Rubik";
    src: url(../fonts/rubik-latin-wght-normal.woff2) format("woff2");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Surfaces, darkest to lightest */
    --ac-bg: #16181c;
    --ac-bar: #111316;
    --ac-surface: #212429;
    --ac-raised: #2a2e35;
    --ac-raised-hover: #333842;
    --ac-edge: #0c0d10;
    --ac-line: rgba(255, 255, 255, 0.08);
    --ac-line-strong: rgba(255, 255, 255, 0.14);
    /* Text */
    --ac-text: #f1f2f4;
    --ac-text-2: #b0b6c0;
    --ac-text-3: #8f96a1;
    /* The Play green: every primary action, with dark ink on it */
    --ac-go: #6bd62b;
    --ac-go-hover: #7fe042;
    --ac-go-edge: #3f9414;
    --ac-go-ink: #0d1a05;
    /* Feature colours, for icon tiles only (white pictograms on them) */
    --ac-blue: #1c7ed6;
    --ac-blue-edge: #135ea1;
    --ac-purple: #9a4dff;
    --ac-purple-edge: #6f2fd0;
    --ac-orange: #f76707;
    --ac-orange-edge: #b84a00;
    --ac-red: #e03131;
    --ac-red-edge: #a51d1d;
    --ac-green: #2f9e44;
    --ac-green-edge: #1f7030;
    --ac-yellow: #e8a400;
    --ac-yellow-edge: #a87500;
    --ac-black: #3b4049;
    --ac-black-edge: #22252b;
    /* The felt of the card table, for the landing page's table */
    --ac-felt: #1f5a3f;
    --ac-felt-deep: #123826;
    --ac-radius: 16px;
    --ac-radius-sm: 12px;
    --ac-font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ac-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------------------------------------------------------------
   Page frame
   --------------------------------------------------------------------------------------------------------------- */

/* The browser's own parts (scrollbars, form controls) in the dark scheme wherever the redesign shows */
html:has(.ac) {
    color-scheme: dark;
    scrollbar-color: #3b4049 var(--ac-bg);
}

main:has(> .ac),
body:has(> #app > header + main > .ac),
body:has(.ac-landing) {
    background-color: var(--ac-bg) !important;
}

.ac {
    --bs-body-color: var(--ac-text);
    font-family: var(--ac-font);
    color: var(--ac-text);
    background-color: var(--ac-bg);
    min-height: 100%;
    padding: 0 !important;
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: tabular-nums;
}

    .ac ::selection {
        background-color: var(--ac-go);
        color: var(--ac-go-ink);
    }

    .ac h1, .ac h2, .ac h3, .ac h4 {
        color: var(--ac-text);
        font-family: var(--ac-font);
        text-wrap: balance;
        margin: 0;
    }

    .ac p {
        margin: 0;
    }

    .ac a {
        color: inherit;
        text-decoration: none;
    }

    .ac :focus-visible {
        outline: 3px solid var(--ac-go);
        outline-offset: 3px;
        border-radius: 6px;
    }

.ac-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

@media (min-width: 768px) {
    .ac-wrap {
        padding: 2.5rem 2rem 5rem;
    }
}

.ac-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    margin-bottom: 2rem;
}

.ac-title {
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.ac-lede {
    color: var(--ac-text-2);
    font-size: 1.0625rem;
    line-height: 1.5;
    margin-top: 0.375rem !important;
}

.ac-section {
    margin-top: 3rem;
}

    .ac-section:first-child {
        margin-top: 0;
    }

.ac-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ac-h2 {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ac-more {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    color: var(--ac-text-2) !important;
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
    transition: color 0.15s;
}

    .ac-more:hover {
        color: var(--ac-go) !important;
    }

.ac-panel {
    background-color: var(--ac-surface);
    border: 1px solid var(--ac-line);
    border-radius: var(--ac-radius);
}

/* ---------------------------------------------------------------------------------------------------------------
   Buttons: chunky 3D, an under-edge that presses flat
   --------------------------------------------------------------------------------------------------------------- */

.ac-btn {
    --btn-bg: var(--ac-raised);
    --btn-hover: var(--ac-raised-hover);
    --btn-edge: var(--ac-edge);
    --btn-ink: var(--ac-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.875rem;
    padding: 0.625rem 1.25rem;
    border: 0;
    border-radius: var(--ac-radius-sm);
    background-color: var(--btn-bg);
    color: var(--btn-ink) !important;
    font-family: var(--ac-font);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 4px 0 var(--btn-edge);
    cursor: pointer;
    transition: background-color 0.15s, transform 0.08s, box-shadow 0.08s;
}

    .ac-btn:hover {
        background-color: var(--btn-hover);
    }

    .ac-btn:active {
        transform: translateY(4px);
        box-shadow: 0 0 0 var(--btn-edge);
    }

    .ac-btn:focus-visible {
        outline: 3px solid var(--ac-text);
        outline-offset: 3px;
    }

.ac-btn-go {
    --btn-bg: var(--ac-go);
    --btn-hover: var(--ac-go-hover);
    --btn-edge: var(--ac-go-edge);
    --btn-ink: var(--ac-go-ink);
}

.ac-btn-lg {
    min-height: 3.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1.125rem;
    border-radius: 14px;
}

.ac-btn-sm {
    min-height: 2.375rem;
    padding: 0.4375rem 0.875rem;
    font-size: 0.9375rem;
}

.ac-btn-ghost {
    --btn-bg: transparent;
    --btn-hover: rgba(255, 255, 255, 0.06);
    --btn-edge: transparent;
    box-shadow: none;
}

    .ac-btn-ghost:active {
        transform: none;
    }

.ac-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ---------------------------------------------------------------------------------------------------------------
   Icon tiles: a white pictogram on its feature colour, with the same under-edge as the buttons
   --------------------------------------------------------------------------------------------------------------- */

.ac-icon {
    --tile: var(--ac-blue);
    --tile-edge: var(--ac-blue-edge);
    --size: 3.5rem;
    flex: none;
    display: grid;
    place-items: center;
    width: var(--size);
    height: var(--size);
    border-radius: calc(var(--size) * 0.28);
    background-color: var(--tile);
    box-shadow: 0 3px 0 var(--tile-edge);
}

    .ac-icon img {
        width: 58%;
        height: 58%;
        object-fit: contain;
    }

.ac-icon-sm {
    --size: 2.5rem;
}

.ac-icon-lg {
    --size: 4.5rem;
}

.ac-c-blue { --tile: var(--ac-blue); --tile-edge: var(--ac-blue-edge); }
.ac-c-purple { --tile: var(--ac-purple); --tile-edge: var(--ac-purple-edge); }
.ac-c-orange { --tile: var(--ac-orange); --tile-edge: var(--ac-orange-edge); }
.ac-c-red { --tile: var(--ac-red); --tile-edge: var(--ac-red-edge); }
.ac-c-green { --tile: var(--ac-green); --tile-edge: var(--ac-green-edge); }
.ac-c-yellow { --tile: var(--ac-yellow); --tile-edge: var(--ac-yellow-edge); }
.ac-c-black { --tile: var(--ac-black); --tile-edge: var(--ac-black-edge); }

/* A drawn icon on a tile: white strokes, like the pictograms */
.ac-glyph svg {
    width: 56%;
    height: 56%;
    color: #fff;
}

/* A quiet tile: coming soon */
.ac-icon-muted {
    --tile: var(--ac-raised);
    --tile-edge: var(--ac-edge);
}

    .ac-icon-muted img {
        opacity: 0.8;
    }

    .ac-icon-muted.ac-glyph svg {
        color: var(--ac-text-2);
    }

/* "Log in first" on a link's corner, so it moves nothing */
.ac-lock {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: var(--ac-bg);
    color: var(--ac-text-2);
}

    .ac-lock svg {
        width: 0.875rem;
        height: 0.875rem;
    }

/* A game's suit badge */
.ac-badge {
    --size: 2rem;
    flex: none;
    display: grid;
    place-items: center;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background-color: var(--ac-black);
}

    .ac-badge svg {
        width: 56%;
        height: 56%;
        fill: #fff;
    }

.ac-badge-ready {
    background-color: var(--ac-go);
}

    .ac-badge-ready svg {
        fill: var(--ac-go-ink);
    }

.ac-badge-soon {
    background-color: var(--ac-raised);
    box-shadow: inset 0 0 0 1px var(--ac-line);
}

    .ac-badge-soon svg {
        fill: var(--ac-text-3);
    }

/* The drawn icons: menus and chevrons */
.ac-menu-icon {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
}

.ac-chevron {
    flex: none;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

.ac-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background-color: var(--ac-raised);
    color: var(--ac-text-2);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.ac-pill-go {
    background-color: rgba(107, 214, 43, 0.14);
    color: var(--ac-go);
}

/* ---------------------------------------------------------------------------------------------------------------
   Navbar (every page)
   --------------------------------------------------------------------------------------------------------------- */

#site-nav {
    font-family: var(--ac-font);
    background-color: var(--ac-bar);
    border-bottom: 1px solid var(--ac-line);
    position: relative;
    z-index: 20;
}

    #site-nav:not(.vertically-collapsed) {
        height: 64px;
    }

    #site-nav > nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        height: 100%;
        max-width: 1180px;
        margin: 0 auto;
        padding: 0 1.25rem;
        background-color: transparent !important;
    }

@media (min-width: 768px) {
    #site-nav > nav {
        padding: 0 2rem;
    }
}

/* The brand and, for admins, the Admin button */
.ac-nav-start {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.ac-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--ac-text) !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 1.1875rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

    .ac-brand svg {
        flex: none;
        width: 2.125rem;
        height: 2.125rem;
    }

    .ac-brand:focus-visible {
        outline: 3px solid var(--ac-go);
        outline-offset: 4px;
        border-radius: 8px;
    }

/* The menu button and its dropdown */
#site-nav .popout-tooltip {
    margin: 0;
}

#site-nav .popout-tooltip header {
    font-size: 1rem;
}

#site-nav .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--ac-radius-sm);
    background-color: var(--ac-raised);
    box-shadow: 0 3px 0 var(--ac-edge);
    color: var(--ac-text);
    font-weight: 700;
    font-size: 0.9375rem;
    transition: background-color 0.15s;
}

    #site-nav .dropdown-toggle:hover {
        background-color: var(--ac-raised-hover);
    }

    #site-nav .dropdown-toggle::after {
        border-top-color: var(--ac-text-2);
        margin-left: 0.125rem;
    }

#site-nav .popout-tooltip section {
    left: auto;
    right: 0;
    transform: none;
    top: calc(100% + 0.625rem);
    width: 15rem;
    padding: 0.5rem;
    border: 1px solid var(--ac-line-strong);
    border-radius: var(--ac-radius);
    background-color: var(--ac-surface);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.45);
    text-align: left;
}

    #site-nav .popout-tooltip section::before {
        display: none;
    }

    #site-nav .popout-tooltip section h3 {
        margin: 0.875rem 0.75rem 0.25rem;
        color: var(--ac-text-2) !important;
        font-size: 0.875rem;
        font-weight: 700;
        text-align: left !important;
    }

    #site-nav .popout-tooltip section p {
        display: none;
    }

    #site-nav .popout-tooltip section form {
        margin: 0;
    }

#site-nav .ac-menu-link {
    display: flex !important;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    min-height: 2.5rem;
    margin: 0;
    padding: 0.5rem 0.75rem;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--ac-text) !important;
    font-family: var(--ac-font);
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
}

    #site-nav .ac-menu-link:hover,
    #site-nav .ac-menu-link:focus-visible {
        background-color: var(--ac-raised);
    }

    #site-nav .ac-menu-link:focus-visible {
        outline: 2px solid var(--ac-go);
        outline-offset: -2px;
    }

    #site-nav .ac-menu-link .ac-badge {
        --size: 1.5rem;
    }

/* ---------------------------------------------------------------------------------------------------------------
   Feature cards (menus) and tiles (Home)
   --------------------------------------------------------------------------------------------------------------- */

.ac-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .ac-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ac-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* An odd last card takes the whole row, its buttons beside its text */
@media (min-width: 768px) {
    .ac-grid-fill > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .ac-grid-fill > .ac-item:last-child:nth-child(odd) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 2.5rem;
        row-gap: 1rem;
        align-items: start;
    }

        .ac-grid-fill > .ac-item:last-child:nth-child(odd) > * {
            grid-column: 1;
        }

        .ac-grid-fill > .ac-item:last-child:nth-child(odd) > .ac-actions {
            grid-column: 2;
            grid-row: 1 / span 2;
            align-self: center;
            margin-top: 0;
        }
}

.ac-grid-mini {
    grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
}

/* A ready item on a menu: its tile, title and text, and its own buttons */
.ac-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    scroll-margin-top: 1.5rem;
}

.ac-item-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ac-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ac-item-text {
    color: var(--ac-text-2);
    line-height: 1.55;
}

.ac-item .ac-actions {
    margin-top: auto;
}

.ac-subtle {
    color: var(--ac-text-3);
    font-size: 0.9375rem;
}

/* A lesson series: numbered rows, each one click from its lesson */
.ac-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ac-line);
    counter-reset: step;
}

    .ac-steps li + li {
        border-top: 1px solid var(--ac-line);
    }

    .ac-steps a {
        display: flex;
        align-items: center;
        gap: 0.875rem;
        padding: 0.75rem 0.25rem;
        font-weight: 600;
        transition: color 0.15s;
    }

        .ac-steps a:hover {
            color: var(--ac-go);
        }

        .ac-steps a::after {
            content: "";
            width: 0.5rem;
            height: 0.5rem;
            margin-left: auto;
            margin-right: 0.375rem;
            border-top: 2px solid currentColor;
            border-right: 2px solid currentColor;
            transform: rotate(45deg);
            opacity: 0.5;
        }

.ac-step-num {
    flex: none;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: var(--ac-raised);
    color: var(--ac-text-2);
    font-size: 0.8125rem;
    font-weight: 700;
}

.ac-steps .ac-pill {
    margin-left: 0.25rem;
}

/* Home's tiles: the whole tile is the link */
.ac-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.125rem;
    background-color: var(--ac-surface);
    border: 1px solid var(--ac-line);
    border-radius: var(--ac-radius);
    box-shadow: 0 4px 0 var(--ac-edge);
    font-weight: 700;
    transition: background-color 0.15s, transform 0.08s, box-shadow 0.08s;
}

    .ac-tile:hover {
        background-color: var(--ac-raised);
    }

    .ac-tile:active {
        transform: translateY(4px);
        box-shadow: 0 0 0 var(--ac-edge);
    }

/* On a small tile the lock sits at the end of the row, clear of the title */
.ac-tile:not(.ac-tile-big) .ac-lock {
    position: static;
    margin-left: auto;
}

.ac-tile-big {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1.5rem;
    min-height: 13rem;
}

    .ac-tile-big .ac-tile-title {
        font-size: 1.5rem;
        font-weight: 800;
        letter-spacing: -0.015em;
    }

    .ac-tile-big .ac-tile-text {
        color: var(--ac-text-2);
        font-weight: 400;
        line-height: 1.5;
    }

    .ac-tile-big .ac-tile-go {
        display: inline-flex;
        align-items: center;
        gap: 0.125rem;
        margin-top: auto;
        color: var(--ac-go);
        font-weight: 700;
    }

/* On phones the Play tiles lie flat: icon beside title and line */
@media (max-width: 767.98px) {
    .ac-tile-big {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 1rem;
        row-gap: 0.25rem;
        align-items: center;
        min-height: 0;
        padding: 1.125rem;
    }

        .ac-tile-big .ac-icon {
            --size: 3.5rem;
            grid-row: 1 / span 2;
        }

        .ac-tile-big .ac-tile-title {
            font-size: 1.25rem;
            padding-right: 2rem;
        }

        .ac-tile-big .ac-tile-go {
            display: none;
        }
}

/* ---------------------------------------------------------------------------------------------------------------
   Game menus: game switcher, menu tabs, the roadmap
   --------------------------------------------------------------------------------------------------------------- */

.ac-games {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ac-game {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0.375rem 0.875rem 0.375rem 0.375rem;
    border-radius: 999px;
    background-color: var(--ac-surface);
    border: 1px solid var(--ac-line);
    color: var(--ac-text-2) !important;
    font-weight: 600;
    transition: background-color 0.15s, color 0.15s;
}

    .ac-game .ac-badge {
        --size: 1.75rem;
    }

    a.ac-game:hover {
        background-color: var(--ac-raised);
        color: var(--ac-text) !important;
    }

    /* A game still to come: a dashed edge, as the roadmap has, so its state isn't told by colour alone */
    .ac-game:has(.ac-game-soon) {
        border-style: dashed;
        border-color: var(--ac-line-strong);
    }

    .ac-game[aria-current] {
        background-color: var(--ac-raised);
        border-color: var(--ac-line-strong);
        color: var(--ac-text) !important;
    }

    .ac-game .ac-pill {
        margin-left: 0.125rem;
    }

.ac-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--ac-line);
}

.ac-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 0.25rem 0.875rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    color: var(--ac-text-2) !important;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.15s, border-color 0.15s;
}

    .ac-tab .ac-menu-icon {
        opacity: 0.7;
        transition: opacity 0.15s, color 0.15s;
    }

    a.ac-tab:hover {
        color: var(--ac-text) !important;
        border-bottom-color: var(--ac-line-strong);
    }

        a.ac-tab:hover .ac-menu-icon {
            opacity: 1;
        }

    /* The current tab: its menu's colour (the .ac-c-* class its tiles carry) on the icon and the underline */
    .ac-tab[aria-current] {
        color: var(--ac-text) !important;
        border-bottom-color: var(--tile, var(--ac-go));
    }

        .ac-tab[aria-current] .ac-menu-icon {
            opacity: 1;
            color: var(--tile, var(--ac-go));
        }

@media (min-width: 576px) {
    .ac-tab {
        flex-direction: row;
        justify-content: center;
        gap: 0.625rem;
        font-size: 1.0625rem;
    }
}

@media (max-width: 575.98px) {
    .ac-games {
        flex-wrap: nowrap;
        gap: 0.375rem;
    }

    .ac-game {
        gap: 0.375rem;
        padding-right: 0.75rem;
        font-size: 0.9375rem;
    }

    .ac-game-soon {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* A game with nothing ready yet */
.ac-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

    .ac-callout .ac-item-text {
        max-width: 36rem;
    }

/* The roadmap: what's coming, quiet */
.ac-roadmap {
    padding: 1.5rem;
    background-color: transparent;
    border: 1px dashed var(--ac-line-strong);
    border-radius: var(--ac-radius);
}

.ac-roadmap-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.ac-roadmap-group + .ac-roadmap-group {
    margin-top: 1.5rem;
}

.ac-roadmap-group h3 {
    margin: 1.25rem 0 0.75rem !important;
    color: var(--ac-text-2) !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
}

.ac-soon-list {
    display: grid;
    gap: 0.875rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .ac-soon-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ac-soon {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

    .ac-soon strong {
        display: block;
        color: var(--ac-text-2);
        font-weight: 600;
    }

    .ac-soon span {
        display: block;
        color: var(--ac-text-3);
        font-size: 0.9375rem;
        line-height: 1.45;
        margin-top: 0.125rem;
    }

/* ---------------------------------------------------------------------------------------------------------------
   Home
   --------------------------------------------------------------------------------------------------------------- */

.ac-home {
    display: grid;
    gap: 3rem;
}

@media (min-width: 992px) {
    .ac-home {
        grid-template-columns: minmax(0, 1fr) 21rem;
        align-items: start;
        gap: 2.5rem;
    }

    .ac-home-side {
        position: sticky;
        top: 1.5rem;
    }
}

.ac-home-side {
    display: grid;
    gap: 1.5rem;
}

/* The side column's shortcut panels (Daily tournament, Your last hand): the head, then its buttons, if any */
.ac-shortcut-panel {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

/* A second part of a shortcut panel (the Daily tournament's team entry, under the solo one's buttons): a hairline, then
   its lines, then its buttons */
.ac-shortcut-part {
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ac-line);
}

@media (prefers-reduced-motion: no-preference) {
    .ac-arrive {
        animation: ac-arrive 0.45s var(--ac-ease-out);
    }
}

@keyframes ac-arrive {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }
}

.ac-game-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.125rem;
}

    .ac-game-card .ac-badge {
        --size: 3rem;
    }

    .ac-game-card .ac-item-title {
        font-size: 1.125rem;
    }

.ac-game-card-text {
    flex: 1;
    min-width: 0;
}

.ac-game-card-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    margin-bottom: 0.125rem;
}

/* News: the latest few in full, the rest folded */
.ac-news {
    padding: 1.25rem;
}

    .ac-news article + article,
    .ac-news details.ac-news-older {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
        border-top: 1px solid var(--ac-line);
    }

    .ac-news time {
        color: var(--ac-text);
        font-weight: 700;
    }

    .ac-news h3 {
        margin: 0.875rem 0 0.375rem !important;
        color: var(--ac-text-2) !important;
        font-size: 0.9375rem !important;
        font-weight: 700 !important;
    }

    .ac-news ul {
        margin: 0;
        padding-left: 1.125rem;
        color: var(--ac-text-2);
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    .ac-news li + li {
        margin-top: 0.375rem;
    }

    .ac-news li::marker {
        color: var(--ac-text-3);
    }

    .ac-news a {
        color: var(--ac-go) !important;
        text-decoration: underline !important;
        text-underline-offset: 3px;
    }

    .ac-news summary {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        list-style: none;
        color: var(--ac-text-2);
        font-weight: 600;
        font-size: 0.9375rem;
        cursor: pointer;
        margin-top: 0.75rem;
    }

        .ac-news summary::-webkit-details-marker {
            display: none;
        }

        .ac-news summary::before {
            content: "";
            width: 0.4375rem;
            height: 0.4375rem;
            margin: 0 0.125rem 0 0.0625rem;
            border-right: 2px solid currentColor;
            border-bottom: 2px solid currentColor;
            transform: rotate(-45deg);
            transition: transform 0.2s var(--ac-ease-out);
        }

    .ac-news details[open] > summary::before {
        transform: rotate(45deg);
    }

        .ac-news summary:hover {
            color: var(--ac-text);
        }

    .ac-news details.ac-news-older > summary {
        margin-top: 0;
    }

/* ---------------------------------------------------------------------------------------------------------------
   Landing pages
   --------------------------------------------------------------------------------------------------------------- */

.ac-landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ac-landing-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: 1180px;
    height: 64px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .ac-landing-bar {
        padding: 0 2rem;
    }
}

.ac-landing-bar .ac-actions {
    flex-wrap: nowrap;
    gap: 0.5rem;
}

/* The logo alone on narrow phones; the page's heading names the site just below */
@media (max-width: 439.98px) {
    .ac-landing-bar .ac-brand span {
        display: none;
    }
}

.ac-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--ac-line);
}

    /* A low wash of table green from the right, where the cards are */
    .ac-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(60rem 36rem at 85% 55%, rgba(31, 90, 63, 0.45), transparent 70%);
        pointer-events: none;
    }

.ac-hero-inner {
    position: relative;
    display: grid;
    gap: 3rem;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 3rem 1.25rem 4rem;
}

@media (min-width: 992px) {
    .ac-hero-inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        padding: 5rem 2rem 6rem;
    }
}

.ac-display {
    font-size: clamp(2.75rem, 1.6rem + 4.6vw, 4.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 0.98;
}

.ac-hero-sub {
    margin-top: 1.25rem !important;
    color: var(--ac-text) !important;
    font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.ac-hero-text {
    margin-top: 1rem !important;
    max-width: 34rem;
    color: var(--ac-text-2);
    font-size: 1.125rem;
    line-height: 1.55;
}

.ac-hero .ac-actions {
    margin-top: 2rem;
}

.ac-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--ac-text-2);
    font-size: 0.9375rem;
    font-weight: 600;
}

    .ac-hero-facts li {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

        .ac-hero-facts li::before {
            content: "";
            width: 0.5rem;
            height: 0.5rem;
            border-radius: 50%;
            background-color: var(--ac-go);
        }

/* The table: a felt panel with a fanned hand dealt onto it and an example of Replay Analysis */
.ac-table {
    position: relative;
    aspect-ratio: 5 / 4;
    max-width: 34rem;
    width: 100%;
    margin: 0 auto;
    border-radius: 28px;
    background: radial-gradient(ellipse at 50% 40%, var(--ac-felt), var(--ac-felt-deep) 75%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 -1.5rem 3rem rgba(0, 0, 0, 0.35), 0 2rem 4rem rgba(0, 0, 0, 0.45);
}

.ac-hand {
    position: absolute;
    left: 50%;
    bottom: 12%;
    width: 0;
    height: 0;
}

.ac-pcard {
    --w: clamp(4.5rem, 2.25rem + 6.5vw, 7.75rem);
    --rot: 0deg;
    --x: 0rem;
    position: absolute;
    left: calc(var(--w) / -2 + var(--x));
    bottom: 0;
    width: var(--w);
    aspect-ratio: 5 / 7;
    border-radius: calc(var(--w) * 0.08);
    background-color: #fff;
    box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    transform-origin: 50% 160%;
    color: #16181c;
    font-family: var(--ac-font);
}

    .ac-pcard.ac-red {
        color: #d62828;
    }

.ac-pcard-corner {
    position: absolute;
    top: 7%;
    left: 9%;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    font-weight: 700;
    font-size: calc(var(--w) * 0.2);
    letter-spacing: -0.04em;
}

    .ac-pcard-corner svg {
        width: calc(var(--w) * 0.15);
        height: calc(var(--w) * 0.15);
        margin-top: 0.15em;
    }

.ac-pcard-pip {
    position: absolute;
    left: 50%;
    top: 54%;
    width: 46%;
    height: 46%;
    transform: translate(-50%, -50%);
}

.ac-pcard svg {
    fill: currentColor;
}

.ac-pcard-picked {
    box-shadow: 0 0 0 3px var(--ac-go), 0 0.75rem 1.5rem rgba(0, 0, 0, 0.45);
}

/* The picked card stands up out of the hand */
.ac-pcard-picked {
    --lift: -1.5rem;
}

.ac-pcard {
    transform: rotate(var(--rot)) translateY(var(--lift, 0rem));
}

@media (prefers-reduced-motion: no-preference) {
    .ac-pcard {
        animation: ac-deal 0.7s var(--ac-ease-out) both;
        animation-delay: calc(var(--i) * 90ms + 150ms);
    }

    .ac-pcard-picked {
        transition: transform 0.5s var(--ac-ease-out);
    }

    .ac-analysis {
        animation: ac-rise 0.6s var(--ac-ease-out) 0.9s both;
    }
}

@keyframes ac-deal {
    from {
        opacity: 0;
        transform: translate(calc(var(--x) * -1), -9rem) rotate(0deg) scale(0.9);
    }

    to {
        transform: rotate(var(--rot)) translateY(var(--lift, 0rem));
    }
}

@keyframes ac-rise {
    from {
        opacity: 0;
        transform: translateY(0.75rem);
    }
}

.ac-inline-suit {
    width: 0.8125rem;
    height: 0.8125rem;
    margin-left: 0.0625rem;
    vertical-align: -0.0625rem;
    fill: currentColor;
}

.ac-grade-mistake + b .ac-inline-suit {
    fill: #ff8787;
}

.ac-analysis {
    position: absolute;
    top: 7%;
    right: 6%;
    width: min(15rem, 56%);
    padding: 0.875rem 1rem;
    border-radius: 14px;
    background-color: rgba(17, 19, 22, 0.92);
    border: 1px solid var(--ac-line-strong);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
    font-size: 0.875rem;
}

@media (max-width: 575.98px) {
    .ac-table {
        aspect-ratio: 1 / 1;
    }

    .ac-analysis {
        left: 6%;
        right: 6%;
        width: auto;
    }
}

.ac-analysis-head {
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    font-weight: 700;
}

.ac-analysis ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.4375rem;
}

.ac-analysis li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ac-text-2);
}

    .ac-analysis li b {
        min-width: 2.25rem;
        color: var(--ac-text);
        font-weight: 700;
    }

    .ac-analysis li span:last-child {
        margin-left: auto;
        font-weight: 700;
    }

.ac-grade {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    flex: none;
}

.ac-grade-best { background-color: #2ec4b6; }
.ac-grade-good { background-color: var(--ac-go); }
.ac-grade-mistake { background-color: #ff6b6b; }

.ac-t-best { color: #5fe0d3; }
.ac-t-good { color: var(--ac-go); }
.ac-t-mistake { color: #ff8787; }

.ac-landing-section {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 4.5rem 1.25rem 0;
}

@media (min-width: 768px) {
    .ac-landing-section {
        padding: 6rem 2rem 0;
    }
}

.ac-landing-section > .ac-section-head {
    display: block;
    max-width: 40rem;
    margin-bottom: 2rem;
}

.ac-h2-lg {
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.ac-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--ac-felt), var(--ac-felt-deep));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
    .ac-cta {
        padding: 2.75rem 3rem;
    }
}

.ac-footer {
    max-width: 1180px;
    width: 100%;
    margin: auto auto 0;
    padding: 4rem 1.25rem 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    color: var(--ac-text-3);
    font-size: 0.9375rem;
}

@media (min-width: 768px) {
    .ac-footer {
        padding: 5rem 2rem 2.5rem;
    }
}

.ac-footer nav {
    display: flex;
    gap: 1.25rem;
}

.ac-footer a:hover {
    color: var(--ac-text);
}

/* The landing's four ways to get better: a glimpse of the real thing above each one */
.ac-ways {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .ac-ways {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ac-way {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Every art box as tall as the tallest art (the results, 211px), so the titles, text and buttons line up across a row */
.ac-way-art {
    display: grid;
    place-items: center;
    min-height: 13.25rem;
    padding: 1.5rem;
    background: radial-gradient(ellipse at 50% 35%, var(--ac-felt), var(--ac-felt-deep) 80%);
    border-bottom: 1px solid var(--ac-line);
}

.ac-way-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    padding: 1.5rem;
}

    .ac-way-body .ac-item-title {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
    }

    .ac-way-body .ac-actions {
        margin-top: auto;
        padding-top: 0.25rem;
    }

.ac-way-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.875rem;
    font-weight: 700;
}

.ac-way-lessons {
    width: min(100%, 17rem);
    margin: 0;
    padding: 0.375rem 1rem;
    list-style: none;
    border-radius: 12px;
    background-color: rgba(17, 19, 22, 0.88);
    border: 1px solid var(--ac-line-strong);
}

    .ac-way-lessons li {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 0;
        font-weight: 600;
    }

        .ac-way-lessons li + li {
            border-top: 1px solid var(--ac-line);
        }

.ac-way-puzzle {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
}

.ac-way-hand {
    display: flex;
}

    .ac-way-hand .ac-mcard + .ac-mcard {
        margin-left: 0.375rem;
    }

    .ac-way-fan .ac-mcard + .ac-mcard {
        margin-left: -0.75rem;
    }

.ac-way-fan .ac-mcard:nth-child(1) { transform: rotate(-10deg) translateY(0.25rem); }
.ac-way-fan .ac-mcard:nth-child(3) { transform: rotate(10deg) translateY(0.25rem); }

/* A small white card: rank over suit */
.ac-mcard {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
    width: 3.5rem;
    height: 4.9rem;
    padding: 0.375rem 0.4375rem;
    border-radius: 0.375rem;
    background-color: #fff;
    color: #16181c;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.35);
    font-weight: 700;
    line-height: 1;
}

    .ac-mcard.ac-red {
        color: #d62828;
    }

    .ac-mcard svg {
        width: 1.125rem;
        height: 1.125rem;
        fill: currentColor;
    }

.ac-mcard-rank {
    font-size: 1.125rem;
    letter-spacing: -0.04em;
}

.ac-mcard-picked {
    transform: translateY(-0.75rem);
    box-shadow: 0 0 0 3px var(--ac-go), 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
}

.ac-way-results {
    display: grid;
    gap: 0.625rem;
    width: min(100%, 17rem);
}

    .ac-way-results ol {
        margin: 0;
        padding: 0.375rem 1rem;
        list-style: none;
        border-radius: 12px;
        background-color: rgba(17, 19, 22, 0.88);
        border: 1px solid var(--ac-line-strong);
    }

    .ac-way-results li {
        display: grid;
        grid-template-columns: 1.5rem 1fr auto;
        align-items: center;
        padding: 0.4375rem 0;
        color: var(--ac-text-2);
    }

        .ac-way-results li + li {
            border-top: 1px solid var(--ac-line);
        }

        .ac-way-results li b {
            color: var(--ac-text-3);
        }

    .ac-way-results .ac-way-you {
        color: var(--ac-go);
        font-weight: 700;
    }

/* The Coming Soon page's links: a row each */
.ac-row-links {
    display: grid;
    gap: 0.75rem;
    margin-top: 2rem;
    max-width: 34rem;
}

.ac-row-link {
    font-weight: 400;
}

.ac-row-link-text {
    flex: 1;
    min-width: 0;
}

.ac-row-link-title {
    display: block;
    font-weight: 700;
    font-size: 1.0625rem;
}

.ac-row-link .ac-chevron {
    color: var(--ac-text-3);
}
