/**
 * Axionova prediction game styles.
 *
 * Scoped under .axnv-game so the surrounding theme (Elementor) cannot leak in,
 * and built on custom properties so the palette can be retuned in one place.
 *
 * Colours are pulled from the same palette as the rest of the site (see
 * community.css / presale.css / airdrop.css :root) rather than the game's own
 * one-off values, so the game reads as part of Axionova instead of a
 * separately-branded widget dropped onto the page.
 */

.axnv-game {
    --axnv-bg: #020816;
    --axnv-panel: #071b3d;
    --axnv-panel-2: #0a2559;
    --axnv-border: rgba(87, 211, 255, 0.18);
    --axnv-text: #f5f8ff;
    --axnv-muted: #aab7cf;
    --axnv-up: #19f5b8;
    --axnv-down: #ff4757;
    --axnv-accent: #8b5cf6;

    /* Primary action blue/cyan — matches the site's connect-wallet and
       presale CTA gradients, previously a one-off violet found nowhere else
       on the site. */
    --axnv-action: #087bff;
    --axnv-action-hi: #00d4ff;

    --axnv-radius: 14px;

    /*
     * Fills whatever it is dropped into. The 960px cap that used to live here
     * fought the page for control of the width; the page should win, and
     * --axnv-max below is the one place to put a limit back if it is ever wanted.
     */
    --axnv-max: none;

    width: 100%;
    max-width: var(--axnv-max);
    margin: 0 auto;
    padding: 24px;
    background: var(--axnv-bg);
    border: 1px solid var(--axnv-border);
    border-radius: 0;               /* full-bleed on the page — no rounded corners at the viewport edge */
    color: var(--axnv-text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-sizing: border-box;
}

/*
 * Top-level layout: one column, except the wallet and session panels which
 * share a row.
 *
 * Those two are not adjacent in the markup — the notice and terms panels sit
 * between them — so pairing them by source order alone would break apart the
 * moment an error notice appeared. Explicit `order` on every child pins the
 * arrangement regardless of what is showing.
 *
 * Only the column gap is set here. Vertical rhythm stays with each panel's own
 * margin-bottom, so nothing else in the file needs touching.
 */
.axnv-game {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
}

.axnv-game > * {
    flex: 0 0 100%;
    min-width: 0;          /* let grids and canvases inside actually shrink */
}

.axnv-game__header      { order: 1; }
.axnv-game__wallet      { order: 2; }
.axnv-game__session     { order: 3; }
.axnv-game__notice      { order: 4; }
.axnv-game__terms       { order: 5; }
.axnv-game__position    { order: 6; }
.axnv-game__rounds      { order: 7; }
.axnv-game__open        { order: 8; }
.axnv-game__history     { order: 9; }
.axnv-game__disclaimer  { order: 10; }

/*
 * The 50/50 row. flex-grow is deliberate: the session panel is hidden until a
 * wallet is connected, and when it is absent the wallet should take the full
 * width rather than leaving half the row empty.
 */
.axnv-game__wallet,
.axnv-game__session {
    flex: 1 1 calc(50% - 8px);
    display: flex;
    flex-direction: column;
}

/* Fill the row's height so the two cards line up bottom as well as top. */
.axnv-game__wallet-info,
.axnv-game__session-off,
.axnv-game__session-on {
    flex: 1;
}

@media (max-width: 720px) {
    .axnv-game__wallet,
    .axnv-game__session {
        flex: 0 0 100%;
    }
}

/*
 * Widen the page container the game sits in.
 *
 * The shortcode lands inside an Elementor container that is boxed to 1140px, so
 * removing the cap above alone would leave it stuck at that instead. `:has()`
 * lets this reach exactly the one container holding the game and leave every
 * other section of the site boxed as designed — no negative-viewport margin
 * trick, which would have overflowed by the width of the scrollbar.
 */
.e-con:has(> .e-con-inner > .elementor-widget-shortcode .axnv-game),
.e-con:has(> .elementor-widget-shortcode .axnv-game),
.elementor-widget-shortcode:has(.axnv-game),
.elementor-shortcode:has(.axnv-game) {
    --container-max-width: 100%;
    max-width: 100%;
    width: 100%;
}

.axnv-game *,
.axnv-game *::before,
.axnv-game *::after {
    box-sizing: border-box;
}

/*
 * Themes frequently set a `display` rule on buttons, which overrides the
 * browser's default `[hidden] { display: none }` and leaves elements visible
 * after they have been hidden in JS. This makes hiding reliable.
 */
.axnv-game [hidden],
.axnv-game .axnv-game__is-hidden {
    display: none !important;
}

/* ------------------------------------------------------------------ header */

.axnv-game__header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.axnv-game__title h2 {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.2;
    color: var(--axnv-text);
}

.axnv-game__title p {
    margin: 0;
    font-size: 14px;
    color: var(--axnv-muted);
}

.axnv-game__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.axnv-game__price-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--axnv-muted);
}

.axnv-game__price-value {
    font-size: 26px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.axnv-game__price-meta {
    font-size: 11px;
    color: var(--axnv-muted);
}

/* ------------------------------------------------------------------ wallet */

.axnv-game__wallet {
    margin-bottom: 16px;
}

.axnv-game__wallet-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    background: var(--axnv-panel);
    border: 1px solid var(--axnv-border);
    border-radius: 10px;
    font-size: 14px;
}

.axnv-game__addr {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    color: var(--axnv-muted);
}

.axnv-game__balance strong {
    color: var(--axnv-up);
    font-variant-numeric: tabular-nums;
}

.axnv-game__alloc {
    color: var(--axnv-muted);
    font-size: 13px;
}

.axnv-game__daily {
    padding: 3px 9px;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.16);
    color: #cbb6ff;
}

.axnv-game__daily--out {
    background: rgba(255, 71, 87, 0.16);
    color: #ffb4bf;
}

/*
 * Second line for the two longest, least urgent labels.
 *
 * Both panels are wrapping flex rows, and the daily chip and session expiry are
 * long enough to push the button past the end of the first line — which is why
 * Disconnect dropped below Revoke instead of sitting level with it. Giving these
 * two a full-width basis moves them to a line of their own, leaving each button
 * on the first line and the pair aligned across both panels.
 *
 * `order` rather than markup: the button keeps the default 0 and stays first.
 */
.axnv-game__wallet-info .axnv-game__daily,
.axnv-game__session-on [data-session-expiry] {
    flex: 0 0 100%;
    order: 2;
}

/*
 * The inner panels stretch to fill their card, so a two-line flex container
 * would otherwise spread its rows apart. Centre the block instead.
 */
.axnv-game__wallet-info,
.axnv-game__session-off,
.axnv-game__session-on {
    align-content: center;
}

/* Pushes the disconnect button to the far end of the wallet row. */
.axnv-game__btn--disconnect {
    margin-left: auto;
    padding: 7px 14px;
    font-size: 13px;
}

/* ------------------------------------------------------------------- chart */

.axnv-game__chart {
    position: relative;
    margin-top: 14px;
    padding: 8px 8px 10px;
    background: var(--axnv-panel-2);
    border-radius: 10px;
    overflow: hidden;
}

.axnv-game__chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 2px 6px;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--axnv-muted);
}

.axnv-game__chart-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

/* Dot before the status, so feed health reads at a glance. */
.axnv-game__chart-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.axnv-game__chart-status--live {
    color: var(--axnv-up);
}

.axnv-game__chart-status--live::before {
    animation: axnv-pulse 1.8s ease-in-out infinite;
}

.axnv-game__chart-status--connecting,
.axnv-game__chart-status--retry,
.axnv-game__chart-status--stale {
    color: #ffd166;
}

.axnv-game__chart-status--off,
.axnv-game__chart-status--idle {
    color: var(--axnv-muted);
}

.axnv-game__chart-status--idle::before {
    display: none;
}

@keyframes axnv-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

/*
 * Height is fixed here rather than by attribute: the canvas backing store is
 * sized from this box in JS, against devicePixelRatio, so the line stays crisp
 * instead of being stretched the way the old preserveAspectRatio="none" SVG was.
 */
.axnv-game__chart-canvas {
    display: block;
    width: 100%;
    height: 168px;
}

.axnv-game__chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--axnv-muted);
}

.axnv-game__chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 2px 0;
    font-size: 10px;
    color: var(--axnv-muted);
}

.axnv-game__chart-key {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.axnv-game__chart-key::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 2px;
    background: var(--axnv-accent);
    border-radius: 2px;
}

/* Diamond, matching the oracle markers drawn on the canvas. */
.axnv-game__chart-key--oracle::before {
    width: 7px;
    height: 7px;
    background: transparent;
    border: 1.2px solid var(--axnv-text);
    border-radius: 1px;
    transform: rotate(45deg);
}

.axnv-game__chart-key--entry::before {
    background: repeating-linear-gradient(
        90deg,
        var(--axnv-text) 0 4px,
        transparent 4px 7px
    );
}

.axnv-game__chart-note {
    margin: 6px 2px 0;
    font-size: 10px;
    line-height: 1.45;
    color: var(--axnv-muted);
}

/* ------------------------------------------------------------------ notice */

.axnv-game__notice {
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid var(--axnv-border);
    background: var(--axnv-panel);
    cursor: pointer;
}

.axnv-game__notice--error {
    border-color: rgba(255, 71, 87, 0.5);
    background: rgba(255, 71, 87, 0.12);
    color: #ffb4bf;
}

.axnv-game__notice--success {
    border-color: rgba(25, 245, 184, 0.5);
    background: rgba(25, 245, 184, 0.12);
    color: #8ff7d6;
}

/* ------------------------------------------------------------------ terms */

.axnv-game__terms {
    margin-bottom: 16px;
    padding: 16px 18px;
    background: rgba(255, 209, 102, 0.06);
    border: 1px solid rgba(255, 209, 102, 0.45);
    border-radius: var(--axnv-radius);
}

.axnv-game__terms-head {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 12px;
}

.axnv-game__terms-head strong {
    font-size: 15px;
    color: #ffd166;
}

.axnv-game__terms-head span {
    font-size: 12px;
    color: var(--axnv-muted);
}

/* Scrollable so the full text is present without dominating the page. */
.axnv-game__terms-body {
    max-height: 260px;
    overflow-y: auto;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: var(--axnv-panel-2);
    border-radius: 8px;
}

.axnv-game__terms-section {
    margin-bottom: 14px;
}

.axnv-game__terms-section:last-child {
    margin-bottom: 0;
}

.axnv-game__terms-section strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    color: var(--axnv-text);
}

.axnv-game__terms-section p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--axnv-muted);
    overflow-wrap: anywhere;
}

.axnv-game__terms-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.axnv-game__terms-version {
    font-size: 11px;
    color: var(--axnv-muted);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

/* .axnv-game prefix so this wins over the later, same-specificity
   `.axnv-game__btn { color: #fff }` base rule. */
.axnv-game .axnv-game__btn--accept {
    background: #ffd166;
    color: #040416;
    font-weight: 600;
}

/* ---------------------------------------------------------------- session */

.axnv-game__session {
    margin-bottom: 16px;
}

.axnv-game__session-off,
.axnv-game__session-on {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
}

.axnv-game__session-off {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.45);
}

.axnv-game__session-on {
    background: rgba(25, 245, 184, 0.08);
    border: 1px solid rgba(25, 245, 184, 0.35);
}

.axnv-game__session-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 260px;
}

.axnv-game__session-copy strong {
    color: var(--axnv-text);
}

.axnv-game__session-copy span {
    color: var(--axnv-muted);
    font-size: 12px;
    line-height: 1.4;
}

.axnv-game__session-badge {
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
    background: rgba(25, 245, 184, 0.18);
    color: var(--axnv-up);
}

.axnv-game__session-stat {
    color: var(--axnv-muted);
    font-size: 12px;
}

.axnv-game__session-stat strong {
    color: var(--axnv-text);
    font-variant-numeric: tabular-nums;
}

.axnv-game__btn--session {
    padding: 9px 20px;
    font-size: 14px;
    background: var(--axnv-accent);
}

.axnv-game__btn--revoke {
    margin-left: auto;
    padding: 6px 13px;
    font-size: 12px;
}

/* --------------------------------------------------------------- position */

.axnv-game__position {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: var(--axnv-panel);
    border: 1px solid var(--axnv-border);
    border-radius: var(--axnv-radius);
}

.axnv-game__position-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.axnv-game__position-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--axnv-muted);
}

.axnv-game__position-round {
    font-size: 12px;
    color: var(--axnv-muted);
    font-variant-numeric: tabular-nums;
}

.axnv-game__position-body {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

@media (max-width: 720px) {
    .axnv-game__position-body {
        grid-template-columns: repeat(2, 1fr);
    }
}

.axnv-game__position-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.axnv-game__position-cell span {
    font-size: 11px;
    color: var(--axnv-muted);
}

.axnv-game__position-cell strong {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    color: var(--axnv-text);
}

.axnv-game__position-up {
    color: var(--axnv-up) !important;
}

.axnv-game__position-down {
    color: var(--axnv-down) !important;
}

.axnv-game__position-status {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: var(--axnv-panel-2);
    color: var(--axnv-muted);
}

.axnv-game__position-status--winning {
    background: rgba(25, 245, 184, 0.14);
    color: var(--axnv-up);
}

.axnv-game__position-status--losing {
    background: rgba(255, 71, 87, 0.14);
    color: var(--axnv-down);
}

.axnv-game__position-status--level,
.axnv-game__position-status--waiting {
    background: rgba(139, 92, 246, 0.14);
    color: #cbb6ff;
}

.axnv-game__position-feed {
    margin-top: 7px;
    font-size: 11px;
    color: var(--axnv-muted);
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ rounds */

.axnv-game__rounds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 720px) {
    .axnv-game__rounds {
        grid-template-columns: 1fr;
    }

    .axnv-game {
        padding: 16px;
    }
}

.axnv-game__card {
    padding: 18px;
    background: var(--axnv-panel);
    border: 1px solid var(--axnv-border);
    border-radius: var(--axnv-radius);
}

.axnv-game__card--betting {
    border-color: var(--axnv-accent);
}

.axnv-game__card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.axnv-game__tag {
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    background: rgba(255, 71, 87, 0.15);
    color: var(--axnv-down);
}

.axnv-game__tag--next {
    background: rgba(139, 92, 246, 0.2);
    color: #cbb6ff;
}

.axnv-game__round {
    font-size: 13px;
    color: var(--axnv-muted);
    font-variant-numeric: tabular-nums;
}

.axnv-game__lockprice {
    font-size: 13px;
    color: var(--axnv-muted);
    margin-bottom: 6px;
}

.axnv-game__delta {
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.axnv-game__delta--up {
    color: var(--axnv-up);
}

.axnv-game__delta--down {
    color: var(--axnv-down);
}

/* ------------------------------------------------------------------- timer */

.axnv-game__timer {
    position: relative;
    height: 26px;
    margin-bottom: 14px;
    background: var(--axnv-panel-2);
    border-radius: 6px;
    overflow: hidden;
    font-size: 12px;
}

.axnv-game__timer span {
    position: relative;
    z-index: 1;
    display: block;
    line-height: 26px;
    text-align: center;
    color: var(--axnv-text);
}

.axnv-game__timer-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.55), rgba(139, 92, 246, 0.25));
    transition: width 1s linear;
}

/* Green only while wagers are actually being taken. */
.axnv-game__timer-bar--open {
    background: linear-gradient(90deg, rgba(25, 245, 184, 0.6), rgba(25, 245, 184, 0.28));
}

.axnv-game__bet-hint {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.45;
    color: var(--axnv-muted);
}

/* ---------------------------------------------------- instant open wagers */

.axnv-game__open {
    margin-top: 18px;
}

.axnv-game__open h3 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--axnv-muted);
}

.axnv-game__open-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/*
 * Wide enough for two or more abreast, so several live wagers read as a set of
 * cards rather than a few very sparse full-width rows.
 */
@media (min-width: 1200px) {
    .axnv-game__open-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
        gap: 8px;
    }
}

/*
 * One row per live wager. Each runs its own clock, so the countdown is per-row
 * rather than shared — a player may hold several at different expiries.
 */
.axnv-game__open-item {
    display: grid;
    grid-template-columns: 54px 1fr 1fr auto 56px;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: var(--axnv-panel-2);
    border: 1px solid var(--axnv-border);
    border-left-width: 3px;
    border-radius: 8px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.axnv-game__open-item--up {
    border-left-color: var(--axnv-up);
}

.axnv-game__open-item--down {
    border-left-color: var(--axnv-down);
}

.axnv-game__open-side {
    font-weight: 700;
    letter-spacing: 0.04em;
}

.axnv-game__open-item--up .axnv-game__open-move {
    color: var(--axnv-up);
}

.axnv-game__open-item--down .axnv-game__open-move {
    color: var(--axnv-down);
}

.axnv-game__open-entry,
.axnv-game__open-left {
    color: var(--axnv-muted);
}

.axnv-game__open-move {
    font-weight: 600;
}

.axnv-game__open-left {
    text-align: right;
}

/*
 * "Your live wagers" now sits in the wager column, under the buttons, instead
 * of a full-width strip below the row. That column is narrow, so the 5-across
 * row is restacked into two lines: side / amount / countdown, then entry price
 * with the live move.
 */
.axnv-game__card--betting .axnv-game__open {
    margin-top: 16px;
}

.axnv-game__card--betting .axnv-game__open-list {
    display: flex;
    grid-template-columns: none;
}

.axnv-game__card--betting .axnv-game__open-item {
    grid-template-columns: auto 1fr auto;
    column-gap: 8px;
    row-gap: 3px;
}

.axnv-game__card--betting .axnv-game__open-side   { grid-area: 1 / 1; }
.axnv-game__card--betting .axnv-game__open-amount { grid-area: 1 / 2; }
.axnv-game__card--betting .axnv-game__open-left   { grid-area: 1 / 3; }
.axnv-game__card--betting .axnv-game__open-entry  { grid-area: 2 / 1 / 3 / 3; }
.axnv-game__card--betting .axnv-game__open-move   { grid-area: 2 / 3; text-align: right; }

.axnv-game__open-empty {
    padding: 12px;
    font-size: 12px;
    color: var(--axnv-muted);
    text-align: center;
    border: 1px dashed var(--axnv-border);
    border-radius: 8px;
}

/*
 * Instant mode has no second round card, so the spare width goes to the chart
 * rather than being shared equally. The wager panel is a fixed set of controls
 * and gains nothing from being wider; the chart gains everything.
 */
.axnv-game__rounds--instant {
    grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr);
}

/*
 * Stack the chart and the wager panel on phones.
 *
 * Restated for --instant rather than inheriting the .axnv-game__rounds mobile
 * rule further up: both are single-class selectors, media queries add no
 * specificity, and --instant is declared later, so it won and the two stayed
 * side by side. The 340px minimum on the second column then could not fit
 * beside the chart on a phone and the cards overlapped.
 */
@media (max-width: 720px) {
    .axnv-game__rounds--instant {
        grid-template-columns: 1fr;
    }
}

/* Past this width an even split leaves the controls stranded in whitespace. */
@media (min-width: 1200px) {
    .axnv-game__rounds--instant {
        grid-template-columns: minmax(0, 2.2fr) minmax(360px, 0.8fr);
    }

    /* A wider chart needs proportionally more height or the line goes flat. */
    .axnv-game__chart-canvas {
        height: 300px;
    }
}

@media (min-width: 1600px) {
    .axnv-game__rounds--instant {
        grid-template-columns: minmax(0, 2.8fr) minmax(380px, 0.7fr);
    }

    .axnv-game__chart-canvas {
        height: 360px;
    }
}

@media (max-width: 720px) {
    .axnv-game__open-item {
        grid-template-columns: 46px 1fr auto;
        row-gap: 4px;
    }

    .axnv-game__open-entry {
        grid-column: 1 / -1;
    }
}

/* ------------------------------------------------------------------- pools */

.axnv-game__pools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--axnv-muted);
}

.axnv-game__pool {
    padding: 8px 10px;
    background: var(--axnv-panel-2);
    border-radius: 8px;
    text-align: center;
}

.axnv-game__pool strong {
    display: block;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.axnv-game__pool--up strong {
    color: var(--axnv-up);
}

.axnv-game__pool--down strong {
    color: var(--axnv-down);
}

/* -------------------------------------------------------------------- form */

.axnv-game__label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--axnv-muted);
}

.axnv-game__input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: var(--axnv-panel-2);
    border: 1px solid var(--axnv-border);
    border-radius: 8px;
    color: var(--axnv-text);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.axnv-game__input:focus {
    outline: 2px solid var(--axnv-accent);
    outline-offset: 1px;
}

.axnv-game__limits {
    margin: -4px 0 10px;
    font-size: 11px;
    color: var(--axnv-muted);
}

.axnv-game__payout {
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--axnv-muted);
}

.axnv-game__payout strong {
    color: var(--axnv-text);
}

.axnv-game__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ----------------------------------------------------------------- buttons */

.axnv-game__btn {
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: transform 0.08s ease, opacity 0.15s ease;
}

.axnv-game__btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

/*
 * Pin every button's own colours through hover, focus and active.
 *
 * Themes (Elementor here) style bare <button> elements globally, and with no
 * hover rule of our own theirs wins — the accept button was turning pink on
 * hover. Declaring each state explicitly keeps the game's palette regardless of
 * the theme it is dropped into.
 */
.axnv-game .axnv-game__btn--up:hover,
.axnv-game .axnv-game__btn--up:focus,
.axnv-game .axnv-game__btn--up:active {
    background: var(--axnv-up) !important;
    color: #fff !important;
}

.axnv-game .axnv-game__btn--down:hover,
.axnv-game .axnv-game__btn--down:focus,
.axnv-game .axnv-game__btn--down:active {
    background: var(--axnv-down) !important;
    color: #fff !important;
}

.axnv-game .axnv-game__btn--connect:hover,
.axnv-game .axnv-game__btn--connect:focus,
.axnv-game .axnv-game__btn--connect:active,
.axnv-game .axnv-game__btn--session:hover,
.axnv-game .axnv-game__btn--session:focus,
.axnv-game .axnv-game__btn--session:active {
    background: var(--axnv-action) !important;
    color: #fff !important;
}

/*
 * Disconnect and Revoke read as buttons at rest, not only under the cursor.
 *
 * They were transparent with a border the same colour as the panel behind them,
 * so on a dark background they looked like plain text until hovered — the click
 * target was invisible until you happened to find it. Filled by default now,
 * with hover lightening rather than being the first sign it is a control.
 *
 * Still deliberately smaller and lighter-weight than UP/DOWN: these are
 * secondary actions and should not compete with wagering for attention.
 */
.axnv-game .axnv-game__btn--disconnect,
.axnv-game .axnv-game__btn--revoke {
    background: var(--axnv-action);
    border: 1px solid var(--axnv-action);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
}

.axnv-game .axnv-game__btn--disconnect:hover:not(:disabled),
.axnv-game .axnv-game__btn--disconnect:focus,
.axnv-game .axnv-game__btn--disconnect:active,
.axnv-game .axnv-game__btn--revoke:hover:not(:disabled),
.axnv-game .axnv-game__btn--revoke:focus,
.axnv-game .axnv-game__btn--revoke:active {
    background: var(--axnv-action-hi) !important;
    border-color: var(--axnv-action-hi);
    color: #fff !important;
}

.axnv-game .axnv-game__btn--accept:hover,
.axnv-game .axnv-game__btn--accept:focus,
.axnv-game .axnv-game__btn--accept:active {
    background: var(--axnv-bg) !important;
    color: #ffd166 !important;
}

.axnv-game__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/*
 * A disabled UP/DOWN drops its colour entirely.
 *
 * At 0.45 opacity they stayed recognisably green and red, which still reads as
 * "press me" — the player only learns otherwise by clicking. Grey says it is
 * not available, and the hint below says why.
 */
.axnv-game .axnv-game__btn--up:disabled,
.axnv-game .axnv-game__btn--down:disabled {
    background: var(--axnv-panel-2) !important;
    color: var(--axnv-muted) !important;
    border: 1px solid var(--axnv-border);
    opacity: 1;
    transform: none;
}

.axnv-game__bet-hint--blocked {
    color: #ffb4bf;
}

.axnv-game__btn--connect {
    background: var(--axnv-accent);
    width: 100%;
}

.axnv-game__btn--up {
    background: var(--axnv-up);
}

.axnv-game__btn--down {
    background: var(--axnv-down);
}

/* ---------------------------------------------------------------- your bet */

.axnv-game__yourbet {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    background: var(--axnv-panel-2);
    color: var(--axnv-muted);
}

.axnv-game__yourbet--win {
    color: var(--axnv-up);
}

.axnv-game__yourbet--lose {
    color: var(--axnv-down);
}

/* ----------------------------------------------------------------- history */

.axnv-game__history {
    margin-top: 22px;
}

.axnv-game__history h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--axnv-muted);
    font-weight: 600;
}

.axnv-game__history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.axnv-game__history-item {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: var(--axnv-panel-2);
    color: var(--axnv-muted);
}

.axnv-game__history-item--up {
    background: rgba(25, 245, 184, 0.16);
    color: var(--axnv-up);
}

.axnv-game__history-item--down {
    background: rgba(255, 71, 87, 0.16);
    color: var(--axnv-down);
}

.axnv-game__disclaimer {
    margin: 20px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--axnv-muted);
}
