/* Spec 233: the tour of the main features (featureTour.js), above the menu (1200), the dice panel (2460) and the
   cookie banner. Colours are the tabletop tokens of the theme on <html>, so app and demo look the same. */

html.tabletop .feature-tour-layer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    pointer-events: auto;
}

html.tabletop .feature-tour-dim {
    fill: rgba(10, 6, 3, 0.55);
}

html.tabletop[data-theme="light"] .feature-tour-dim {
    fill: rgba(40, 30, 20, 0.4);
}

/* Rule 11: the frame and the arrow in the accent. */
html.tabletop .feature-tour-ink-from {
    stop-color: var(--tt-accent-from);
}

html.tabletop .feature-tour-ink-to {
    stop-color: var(--tt-accent-to);
}

html.tabletop .feature-tour-frame {
    fill: none;
    stroke: url(#feature-tour-ink);
    stroke-width: 3;
    stroke-linejoin: round;
}

html.tabletop .feature-tour-arrow {
    fill: none;
    stroke: url(#feature-tour-ink);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html.tabletop .feature-tour-head {
    fill: var(--tt-accent-to);
}

/* Rule 12: the card in the block look. */
html.tabletop .feature-tour-card {
    position: fixed;
    z-index: 3001;
    box-sizing: border-box;
    width: min(340px, calc(100vw - 24px));
    padding: 1rem 1.1rem 0.9rem;
    background: var(--tt-surface);
    color: var(--tt-ink);
    border: 2px solid var(--tt-accent);
    border-radius: 0;
    box-shadow: 0 3px 0 var(--tt-edge);
    font-family: var(--tt-font-text);
}

@supports (corner-shape: bevel) {
    html.tabletop .feature-tour-card {
        border-radius: 10px;
        corner-shape: bevel;
    }
}

html.tabletop .feature-tour-card[hidden] {
    display: none;
}

html.tabletop .feature-tour-card:focus {
    outline: none;
}

html.tabletop .feature-tour-head-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

html.tabletop .feature-tour-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: none;
    color: var(--tt-accent);
}

html.tabletop .feature-tour-icon[hidden] {
    display: none;
}

html.tabletop .feature-tour-icon svg {
    width: 100%;
    height: 100%;
}

html.tabletop .feature-tour-title {
    flex: 1;
    margin: 0;
    font-family: var(--tt-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--tt-ink);
}

html.tabletop .feature-tour-count {
    flex: none;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--tt-muted);
}

html.tabletop .feature-tour-text {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--tt-ink);
}

html.tabletop .feature-tour-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

html.tabletop .feature-tour-actions .game-card-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 6.5rem;
    min-height: 36px;
    padding: 0.45rem 1rem;
}

/* Rule 20: the dashboard header button. */
html.tabletop .home-app-header .home-tour-btn {
    align-self: flex-start;
    width: auto;
    margin-top: 0.6rem;
}
