/*
Theme Name: The Fade Arcade
Theme URI: https://thefadearcade.co.za/
Author: Cole Thomas
Description: Custom theme for The Fade Arcade. Cuts. Gaming. Good Vibes. All content is editable in WordPress.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.1
License: Proprietary
Text Domain: the-fade-arcade
*/

/* =========================================================
   1. Tokens (colours come from theme.json; one spacing scale,
      one fluid type scale, equal page edges)
   ========================================================= */
:root {
    --accent: var(--wp--preset--color--accent, #00ff04);
    --accent-dim: var(--wp--preset--color--accent-dim, #00b303);
    --on-accent: #04140a;
    --ink: var(--wp--preset--color--ink, #0a0b0a);
    --bg: var(--wp--preset--color--bg, #0e100d);
    --surface: var(--wp--preset--color--surface, #131511);
    --surface-2: var(--wp--preset--color--surface-2, #1b1e19);
    --text: var(--wp--preset--color--text, #f4f6ef);
    --muted: var(--wp--preset--color--muted, #93998a);
    --line: rgba(255, 255, 255, 0.12);
    --control: #6f7568; /* 3:1+ against the dark surfaces, for input borders */
    --danger: #ff8a7a;

    /* spacing scale 4 8 12 16 24 32 48 64 96 128 */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4rem;
    --s-9: 6rem;
    --s-10: 8rem;

    --edge: clamp(1rem, 4vw, 2rem);
    --section-y: clamp(var(--s-8), 2rem + 7vw, var(--s-10));
    --gap: clamp(var(--s-4), 2vw, var(--s-5));
    --container: 77.5rem;
    --header-h: 4.5rem;
    --radius: 1rem;
    --radius-sm: 0.625rem;

    /* fluid type */
    --fs-sm: 0.875rem;
    --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --fs-lead: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
    --fs-h4: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
    --fs-h3: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
    --fs-h2: clamp(2.25rem, 1.3rem + 4.4vw, 5.25rem);
    --fs-h1: clamp(3.5rem, 1.2rem + 11vw, 10rem);
    --fs-eyebrow: 0.75rem;

    --font: var(--wp--preset--font-family--system, Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif);
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 900px) {
    :root {
        --header-h: 4rem;
    }
}

/* =========================================================
   2. Base
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--s-4));
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.no-scroll {
    overflow: hidden;
}

body.no-scroll .tfa-mobilebar {
    display: none;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
dl,
figure,
blockquote,
address {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

address {
    font-style: normal;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tfa-skip {
    position: absolute;
    left: -9999px;
    top: var(--s-2);
    z-index: 2000;
    padding: var(--s-3) var(--s-4);
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 800;
    border-radius: var(--radius-sm);
}

.tfa-skip:focus {
    left: var(--s-2);
}

/* =========================================================
   3. Layout
   ========================================================= */
.tfa-container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--edge));
    margin-inline: auto;
    padding-inline: var(--edge);
}

.tfa-section {
    padding-block: var(--section-y);
}

/* Skip rendering work for sections far below the fold until they are near the viewport. */
.tfa-section[id]:not(#top) {
    content-visibility: auto;
    contain-intrinsic-size: auto 60rem;
}

.tfa-section--alt {
    background: var(--ink);
}

.tfa-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: var(--s-5) var(--s-7);
    margin-bottom: var(--s-7);
}

.tfa-section__head > .tfa-lead {
    flex: 1 1 18rem;
    max-width: 30rem;
}

.tfa-split {
    display: grid;
    gap: var(--s-6) var(--s-8);
    align-items: end;
}

@media (min-width: 900px) {
    .tfa-split {
        grid-template-columns: 1.4fr 1fr;
    }
}

/* =========================================================
   4. Typography
   ========================================================= */
.tfa-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    margin-bottom: var(--s-3);
    color: var(--muted);
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tfa-eyebrow::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
}

.tfa-h2,
.tfa-statement,
.tfa-hero__title,
.tfa-footer__title {
    font-weight: 900;
    letter-spacing: -0.045em;
    text-transform: uppercase;
    line-height: 0.92;
    text-wrap: balance;
}

.tfa-h2 {
    max-width: 14ch;
    font-size: var(--fs-h2);
}

.tfa-lead {
    color: var(--muted);
    font-size: var(--fs-lead);
    line-height: 1.55;
    max-width: 42ch;
}

.tfa-lead--tight {
    margin-bottom: var(--s-5);
}

.tfa-subhead {
    margin: var(--s-8) 0 var(--s-5);
    color: var(--accent);
    font-size: var(--fs-sm);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tfa-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}

.tfa-link:hover {
    text-decoration-thickness: 2px;
}

/* =========================================================
   5. Buttons
   ========================================================= */
.tfa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    min-height: 3rem;
    padding: var(--s-3) var(--s-5);
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}

.tfa-btn:hover {
    transform: translateY(-2px);
}

.tfa-btn:active {
    transform: translateY(0);
}

.tfa-btn--primary {
    background: var(--accent);
    color: var(--on-accent);
}

.tfa-btn--primary:hover {
    background: var(--text);
}

.tfa-btn--ghost {
    background: transparent;
    border-color: var(--control);
    color: var(--text);
}

.tfa-btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tfa-btn--small {
    min-height: 2.75rem;
    padding: var(--s-2) var(--s-4);
}

.tfa-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.tfa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
}

/* =========================================================
   6. Header and menus
   ========================================================= */
.tfa-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.tfa-header.is-scrolled,
body:not(.home) .tfa-header {
    background: rgba(10, 11, 10, 0.88);
    border-color: var(--line);
    backdrop-filter: blur(16px);
}

.tfa-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
    height: 100%;
}

.tfa-logo,
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
}

.tfa-logo img,
.custom-logo {
    width: auto;
    height: clamp(2.5rem, 2rem + 1.2vw, 3.25rem);
}

.tfa-logo--footer img {
    height: 4.5rem;
}

.tfa-primary {
    display: flex;
    align-items: center;
    gap: var(--s-6);
}

.tfa-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-1) var(--s-5);
}

.tfa-menu__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--text);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.tfa-menu__link:hover,
.tfa-menu__link[aria-current='page'] {
    color: var(--accent);
}

.tfa-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--control);
    border-radius: 50%;
    background: transparent;
    position: relative;
}

.tfa-toggle__bars,
.tfa-toggle__bars::before,
.tfa-toggle__bars::after {
    position: absolute;
    left: 50%;
    width: 1.125rem;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s;
}

.tfa-toggle__bars {
    top: 50%;
    transform: translate(-50%, -50%);
}

.tfa-toggle__bars::before,
.tfa-toggle__bars::after {
    content: '';
    left: 0;
}

.tfa-toggle__bars::before {
    top: -6px;
}

.tfa-toggle__bars::after {
    top: 6px;
}

.tfa-toggle[aria-expanded='true'] .tfa-toggle__bars {
    background: transparent;
}

.tfa-toggle[aria-expanded='true'] .tfa-toggle__bars::before {
    transform: translateY(6px) rotate(45deg);
}

.tfa-toggle[aria-expanded='true'] .tfa-toggle__bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
    .tfa-toggle {
        display: block;
    }

    .tfa-primary {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: var(--s-5);
        max-height: calc(100dvh - var(--header-h));
        padding: var(--s-4) var(--edge) var(--s-6);
        overflow-y: auto;
        background: rgba(10, 11, 10, 0.98);
        border-bottom: 1px solid var(--line);
    }

    .tfa-primary.is-open {
        display: flex;
    }

    .tfa-primary .tfa-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .tfa-primary .tfa-menu__link {
        width: 100%;
        min-height: 3.5rem;
        border-bottom: 1px solid var(--line);
        font-size: 1.0625rem;
    }
}

/* without JavaScript the menu must still be reachable */
@media (max-width: 900px) and (scripting: none) {
    .tfa-primary {
        position: static;
        display: flex;
    }

    .tfa-toggle {
        display: none;
    }

    .tfa-header {
        position: static;
        height: auto;
    }
}

/* =========================================================
   7. Hero
   ========================================================= */
.tfa-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 100svh;
    padding-top: calc(var(--header-h) + var(--s-7));
    padding-bottom: var(--s-7);
    overflow: hidden;
    background: var(--ink);
}

.tfa-hero__bg {
    position: absolute;
    inset: -2%;
    background:
        linear-gradient(90deg, rgba(10, 11, 10, 0.94) 0%, rgba(10, 11, 10, 0.62) 45%, rgba(10, 11, 10, 0.3) 100%),
        linear-gradient(180deg, rgba(10, 11, 10, 0.2), rgba(10, 11, 10, 0.9) 95%),
        var(--hero-image) center / cover no-repeat;
    transform: translate3d(var(--mx, 0), calc(var(--my, 0px) + var(--py, 0px)), 0) scale(1.06);
    will-change: transform;
}

.tfa-hero__scan {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
    opacity: 0.35;
    pointer-events: none;
}

.tfa-hero__content {
    display: grid;
    gap: var(--s-6);
}

.tfa-hero__inner {
    display: grid;
    gap: var(--s-6);
}

.tfa-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-5);
    color: var(--muted);
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tfa-hero__title {
    display: grid;
    font-size: var(--fs-h1);
    line-height: 0.82;
}

.tfa-accent {
    color: var(--accent);
}

.tfa-hero__row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: var(--s-5) var(--s-7);
}

.tfa-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3) var(--s-7);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line);
}

.tfa-hero__facts div {
    display: flex;
    gap: var(--s-3);
    align-items: baseline;
}

.tfa-hero__facts dt {
    color: var(--muted);
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tfa-hero__facts dd {
    margin: 0;
    color: var(--accent);
    font-weight: 800;
}

/* =========================================================
   8. Intro, stats
   ========================================================= */
.tfa-statement {
    display: grid;
    font-size: var(--fs-h2);
}

.tfa-statement strong {
    color: var(--accent);
}

.tfa-statement em {
    font-style: italic;
    color: var(--muted);
}

.tfa-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: var(--gap);
    margin-top: var(--s-8);
}

.tfa-stats li {
    display: grid;
    gap: var(--s-1);
    padding: var(--s-5);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.tfa-stats strong {
    font-size: var(--fs-h3);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--accent);
}

.tfa-stats span {
    color: var(--muted);
    font-size: var(--fs-sm);
}

/* =========================================================
   9. Cards (services, packs, reviews)
   ========================================================= */
.tfa-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    gap: var(--gap);
}

.tfa-cards--plans {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
}

.tfa-card {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    padding: var(--s-5);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform 0.25s var(--ease), border-color 0.25s;
}

.tfa-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-dim);
}

.tfa-card__note {
    color: var(--accent);
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tfa-card__title {
    font-size: var(--fs-h4);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-transform: uppercase;
}

.tfa-card__text {
    color: var(--muted);
    font-size: var(--fs-sm);
    line-height: 1.55;
}

.tfa-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    margin-top: auto;
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
}

.tfa-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--s-1) var(--s-3);
    color: var(--muted);
    font-size: var(--fs-sm);
}

.tfa-price {
    color: var(--text);
    font-size: var(--fs-h4);
    font-weight: 900;
}

.tfa-price small {
    color: var(--muted);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.tfa-was {
    color: var(--muted);
}

.tfa-save {
    color: var(--accent);
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tfa-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4) var(--s-6);
    margin-top: var(--s-8);
    padding: var(--s-5);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.tfa-strip > p > span {
    color: var(--muted);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tfa-stars {
    color: var(--accent);
    letter-spacing: 0.1em;
}

.tfa-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--s-3);
    color: var(--muted);
}

.tfa-rating strong {
    color: var(--text);
    font-size: var(--fs-h2);
    font-weight: 900;
    line-height: 1;
}

.tfa-rating [aria-hidden] {
    color: var(--accent);
}

.tfa-cards--reviews + p,
.tfa-section__head + p {
    margin-top: var(--s-5);
}

/* =========================================================
   10. Barbers
   ========================================================= */
.tfa-people {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: var(--gap);
}

.tfa-person {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.tfa-person__photo {
    min-height: 100%;
    background: var(--surface-2);
}

.tfa-person__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tfa-person__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
    padding: var(--s-5);
}

.tfa-person__name {
    font-size: var(--fs-h3);
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    line-height: 1;
}

.tfa-person__role {
    color: var(--muted);
}

.tfa-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
}

.tfa-tags li {
    padding: var(--s-1) var(--s-3);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: var(--fs-sm);
}

.tfa-person .tfa-btn {
    margin-top: auto;
}

@media (max-width: 520px) {
    .tfa-person {
        grid-template-columns: 1fr;
    }

    .tfa-person__photo {
        aspect-ratio: 4 / 3;
    }
}

/* =========================================================
   11. Arcade feature
   ========================================================= */
.tfa-feature {
    display: grid;
    gap: var(--gap);
}

@media (min-width: 900px) {
    .tfa-feature {
        grid-template-columns: 1.6fr 1fr;
    }
}

.tfa-feature__photo {
    min-height: clamp(18rem, 40vw, 36rem);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, transparent 55%, rgba(10, 11, 10, 0.85)),
        var(--feature-image) center / cover no-repeat,
        var(--surface);
}

.tfa-feature__panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--s-6);
    padding: var(--s-6);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.tfa-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--line);
}

.tfa-list span {
    color: var(--muted);
}

.tfa-list strong {
    color: var(--accent);
    font-size: var(--fs-sm);
    letter-spacing: 0.1em;
}

/* =========================================================
   12. Mini-games
   ========================================================= */
.tfa-games {
    padding: clamp(var(--s-5), 4vw, var(--s-8));
    border: 1px solid rgba(0, 255, 4, 0.25);
    border-radius: calc(var(--radius) * 1.5);
    background: radial-gradient(circle at 50% 0%, rgba(0, 255, 4, 0.07), transparent 40%), var(--ink);
}

.tfa-deck__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-bottom: var(--s-5);
}

.tfa-deck__tab {
    min-height: 2.75rem;
    padding: var(--s-2) var(--s-4);
    border: 1px solid var(--control);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    font-size: var(--fs-sm);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tfa-deck__tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tfa-deck__tab.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--on-accent);
}

.tfa-game__screen {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(16rem, 40vw, 24rem);
    padding: var(--s-5);
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.tfa-game__screen--pad {
    min-height: 0;
}

.tfa-game__screen.is-go {
    cursor: pointer;
    border-color: var(--accent);
    box-shadow: inset 0 0 80px rgba(0, 255, 4, 0.08);
}

.tfa-game__screen.is-go .tfa-game__message {
    color: var(--accent);
}

.tfa-game__state {
    display: grid;
    justify-items: center;
    gap: var(--s-4);
    width: 100%;
}

.tfa-game__message {
    font-size: clamp(2rem, 1rem + 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.95;
    text-transform: uppercase;
}

.tfa-game__message--small {
    font-size: clamp(1.125rem, 1rem + 1vw, 1.625rem);
    letter-spacing: -0.02em;
}

.tfa-game__time {
    font-size: clamp(2.5rem, 1rem + 7vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.9;
}

.tfa-game__best {
    color: var(--muted);
    font-size: var(--fs-eyebrow);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tfa-pads,
.tfa-targets {
    display: grid;
    gap: var(--s-3);
    width: min(100%, 22.5rem);
}

.tfa-pads {
    grid-template-columns: repeat(2, 1fr);
}

.tfa-targets {
    grid-template-columns: repeat(3, 1fr);
}

.tfa-pad,
.tfa-target {
    border: 2px solid var(--control);
    border-radius: 0.75rem;
    background: var(--surface-2);
    font-weight: 800;
    transition: background-color 0.08s, color 0.08s;
}

.tfa-pad {
    height: clamp(5rem, 22vw, 7rem);
}

.tfa-target {
    position: relative;
    height: clamp(4.5rem, 20vw, 6rem);
}

.tfa-pad--1 { border-color: rgba(0, 255, 4, 0.55); color: var(--accent); }
.tfa-pad--2 { border-color: rgba(244, 246, 239, 0.4); color: var(--text); }
.tfa-pad--3 { border-color: rgba(255, 220, 90, 0.55); color: #ffdc5a; }
.tfa-pad--4 { border-color: rgba(255, 138, 122, 0.55); color: var(--danger); }
.tfa-pad--1.is-lit { background: var(--accent); color: var(--on-accent); }
.tfa-pad--2.is-lit { background: var(--text); color: var(--ink); }
.tfa-pad--3.is-lit { background: #ffdc5a; color: var(--ink); }
.tfa-pad--4.is-lit { background: var(--danger); color: var(--ink); }

.tfa-pad[disabled],
.tfa-target[disabled] {
    cursor: default;
}

.tfa-target.is-active {
    border-color: var(--accent);
    background: rgba(0, 255, 4, 0.14);
}

.tfa-target.is-active::after {
    content: '';
    position: absolute;
    inset: 24%;
    background: var(--accent);
    clip-path: polygon(35% 0, 50% 0, 45% 100%, 30% 100%, 30% 60%);
    transform: rotate(15deg);
}

/* =========================================================
   13. Gallery
   ========================================================= */
.tfa-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    gap: var(--gap);
}

.tfa-gallery__item figure {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 16 / 9;
    background: var(--surface);
}

.tfa-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.tfa-gallery__item:hover img {
    transform: scale(1.04);
}

.tfa-gallery__item figcaption {
    position: absolute;
    left: var(--s-3);
    bottom: var(--s-3);
    padding: var(--s-1) var(--s-3);
    border-radius: 999px;
    background: rgba(10, 11, 10, 0.82);
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* =========================================================
   14. Forms
   ========================================================= */
.tfa-form {
    display: grid;
    gap: var(--s-5);
    max-width: 54rem;
    padding: clamp(var(--s-5), 4vw, var(--s-7));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.tfa-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: var(--s-5);
}

.tfa-field {
    display: grid;
    gap: var(--s-2);
}

.tfa-field label {
    color: var(--muted);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tfa-field input,
.tfa-field select,
.tfa-field textarea {
    width: 100%;
    min-height: 3rem;
    padding: var(--s-3) var(--s-4);
    border: 1px solid var(--control);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-size: 1rem; /* 16px stops iOS zooming on focus */
}

.tfa-field textarea {
    resize: vertical;
}

.tfa-field input:focus-visible,
.tfa-field select:focus-visible,
.tfa-field textarea:focus-visible {
    outline-offset: 1px;
    border-color: var(--accent);
}

.tfa-check {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: var(--s-3);
    font-size: var(--fs-sm);
    color: var(--muted);
}

.tfa-check input {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    accent-color: var(--accent);
}

.tfa-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tfa-form__status {
    min-height: 1.5em;
    font-weight: 700;
}

.tfa-form__status.is-ok {
    color: var(--accent);
}

.tfa-form__status.is-error {
    color: var(--danger);
}

.tfa-form .tfa-btn {
    justify-self: start;
}

/* =========================================================
   15. Contact
   ========================================================= */
.tfa-contact {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(var(--s-5), 4vw, var(--s-8));
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) * 1.5);
    background: var(--surface);
}

.tfa-contact::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    z-index: -1;
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 4, 0.22), transparent 65%);
    pointer-events: none;
}

.tfa-contact__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s-5);
}

.tfa-contact__status {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    margin: 0;
    padding: var(--s-3) var(--s-5);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tfa-contact__dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--muted);
}

.tfa-contact__status.is-open {
    border-color: var(--accent);
    color: var(--accent);
}

.tfa-contact__status.is-open .tfa-contact__dot {
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(0, 255, 4, 0.6);
}

@media (prefers-reduced-motion: no-preference) {
    .tfa-contact__status.is-open .tfa-contact__dot {
        animation: tfa-ping 1.8s ease-out infinite;
    }

    @keyframes tfa-ping {
        to { box-shadow: 0 0 0 0.75rem rgba(0, 255, 4, 0); }
    }
}

.tfa-contact__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: var(--gap);
    margin-top: var(--s-7);
}

.tfa-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
    padding: var(--s-6);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.tfa-card-info:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.tfa-card-info__icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(0, 255, 4, 0.12);
    color: var(--accent);
}

.tfa-card-info .tfa-subhead {
    margin: 0;
}

.tfa-card-info address {
    font-style: normal;
}

.tfa-card-info p {
    margin: 0;
}

.tfa-card-info .tfa-btn {
    margin-top: auto;
}

.tfa-card-info .tfa-hours {
    width: 100%;
    margin: 0;
}

.tfa-hours .is-today {
    color: var(--accent);
}

.tfa-hours .is-today dd,
.tfa-hours .is-today dt {
    font-weight: 700;
}

.tfa-contact__big {
    color: var(--text);
    font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    font-weight: 800;
    text-decoration: none;
}

.tfa-contact__big:hover {
    color: var(--accent);
}

.tfa-hours div {
    display: flex;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-2) 0;
    border-bottom: 1px solid rgba(4, 20, 10, 0.25);
}

.tfa-hours dd {
    margin: 0;
    font-weight: 800;
}

.tfa-know {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-3);
    margin-top: var(--s-7);
    padding-top: var(--s-5);
    border-top: 1px solid rgba(4, 20, 10, 0.25);
}

.tfa-know li {
    padding: var(--s-1) var(--s-3);
    border: 1px solid rgba(4, 20, 10, 0.4);
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: 700;
}

/* =========================================================
   16. Footer, mobile bar, generic pages
   ========================================================= */
.tfa-footer {
    padding-top: var(--s-8);
    padding-bottom: var(--s-6);
    border-top: 1px solid var(--line);
    background: var(--ink);
}

.tfa-footer__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: var(--s-5);
    padding-bottom: var(--s-7);
    border-bottom: 1px solid var(--line);
}

.tfa-footer__title {
    font-size: var(--fs-h2);
    max-width: 12ch;
}

.tfa-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: var(--s-6);
    padding-block: var(--s-7);
}

.tfa-footer__brand {
    display: grid;
    gap: var(--s-3);
    color: var(--muted);
}

.tfa-menu--footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.tfa-footer__social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tfa-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3) var(--s-5);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: var(--fs-sm);
}

.tfa-menu--legal .tfa-menu__link {
    color: var(--muted);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.tfa-mobilebar {
    display: none;
}

@media (max-width: 900px) {
    .tfa-mobilebar {
        position: fixed;
        inset: auto 0 0;
        z-index: 900;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        gap: var(--s-3);
        padding: var(--s-3) var(--edge) calc(var(--s-3) + env(safe-area-inset-bottom));
        background: rgba(10, 11, 10, 0.98);
        border-top: 1px solid var(--line);
    }

    body {
        padding-bottom: 5.5rem;
    }
}

.tfa-page {
    padding-top: calc(var(--header-h) + var(--s-8));
    padding-bottom: var(--section-y);
}

.tfa-prose {
    max-width: 46rem;
}

.tfa-prose > * + * {
    margin-top: var(--s-4);
}

.tfa-prose h1 {
    font-size: var(--fs-h2);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.95;
    text-transform: uppercase;
}

.tfa-prose h2 {
    margin-top: var(--s-7);
    font-size: var(--fs-h3);
}

.tfa-prose a {
    color: var(--accent);
    text-decoration: underline;
}

.tfa-notfound {
    display: grid;
    align-content: center;
    gap: var(--s-5);
    min-height: 70vh;
}

.tfa-notfound h1 {
    font-size: var(--fs-h1);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.85;
    text-transform: uppercase;
}

/* =========================================================
   17. Motion
   Rules: only transform and opacity animate per frame (compositor); motion is
   tiered for prefers-reduced-motion (large movement removed, short fades kept);
   nothing is hidden when scripting is off; no looping animation.
   ========================================================= */
@keyframes tfa-rise {
    from { opacity: 0; transform: translateY(1.5rem); }
    to { opacity: 1; transform: none; }
}

@keyframes tfa-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tfa-pop {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: none; }
}

@keyframes tfa-slide-in {
    from { opacity: 0; transform: translateX(0.75rem); }
    to { opacity: 1; transform: none; }
}

@keyframes tfa-burst {
    from { opacity: 0.9; transform: scale(0.4); }
    to { opacity: 0; transform: scale(1.7); }
}

@keyframes tfa-confetti {
    from { opacity: 1; transform: translate(0, 0) rotate(0); }
    to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}

/* scroll reveals: fade always, slight rise only when motion is welcome */
@media (scripting: enabled) {
    .tfa-reveal {
        opacity: 0;
        transition: opacity 0.6s var(--ease) calc(var(--i, 0) * 70ms), transform 0.6s var(--ease) calc(var(--i, 0) * 70ms);
    }

    .tfa-reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
    .tfa-reveal {
        transform: translateY(1.25rem);
    }
}

/* hero entrance, once on load */
@media (prefers-reduced-motion: no-preference) {
    .tfa-enter {
        animation: tfa-rise 0.9s var(--ease) both;
        animation-delay: calc(var(--i, 0) * 110ms + 120ms);
    }

    .tfa-header__inner {
        animation: tfa-fade 0.8s var(--ease) both;
    }

    .tfa-header .tfa-logo img,
    .tfa-header .custom-logo {
        transition: transform 0.35s var(--ease);
        transform-origin: left center;
    }

    .tfa-header.is-scrolled .tfa-logo img,
    .tfa-header.is-scrolled .custom-logo {
        transform: scale(0.86);
    }

    .tfa-btn__icon {
        display: inline-block;
        transition: transform 0.25s var(--ease);
    }

    .tfa-btn:hover .tfa-btn__icon {
        transform: translate(2px, -2px);
    }

    .tfa-btn:active {
        transform: scale(0.97);
    }

    .tfa-tabpanel.is-active {
        animation: tfa-rise 0.35s var(--ease) both;
    }

    .tfa-primary.is-open {
        animation: tfa-rise 0.25s var(--ease) both;
    }

    .tfa-lightbox[open] .tfa-lightbox__fig {
        animation: tfa-pop 0.25s var(--ease) both;
    }

    .tfa-target.is-active {
        animation: tfa-pop 0.16s var(--ease) both;
    }

    .tfa-target.is-hit::before {
        content: '';
        position: absolute;
        inset: 8%;
        border: 2px solid var(--accent);
        border-radius: 50%;
        animation: tfa-burst 0.35s ease-out both;
        pointer-events: none;
    }

    .tfa-pad:active {
        transform: scale(0.96);
    }

    .tfa-pad.is-lit {
        transform: scale(1.04);
    }

    .tfa-game__screen.is-go::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: var(--accent);
        animation: tfa-burst 0.45s ease-out both;
        pointer-events: none;
    }

    .tfa-board__list li.tfa-row-in {
        animation: tfa-slide-in 0.35s var(--ease) both;
        animation-delay: calc(var(--i, 0) * 45ms);
    }

    .tfa-game__time.is-updated,
    .tfa-game__best.is-updated {
        animation: tfa-pop 0.3s var(--ease) both;
    }

    .tfa-confetti {
        position: absolute;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .tfa-confetti i {
        position: absolute;
        left: 50%;
        top: 40%;
        width: 0.5rem;
        height: 0.75rem;
        background: var(--c, var(--accent));
        animation: tfa-confetti 0.95s ease-out both;
    }
}

/* reduced motion: movement removed, short fades kept (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .tfa-reveal {
        transition: opacity 0.15s ease;
    }

    .tfa-tabpanel.is-active,
    .tfa-primary.is-open,
    .tfa-board__list li.tfa-row-in {
        animation: tfa-fade 0.15s ease both;
    }

    .tfa-btn:hover,
    .tfa-card:hover,
    .tfa-svc:hover,
    .tfa-gallery__open:hover img {
        transform: none;
    }

    .tfa-confetti {
        display: none;
    }

    *,
    *::before,
    *::after {
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

@media (forced-colors: active) {
    .tfa-btn,
    .tfa-card,
    .tfa-pad,
    .tfa-target {
        border: 1px solid CanvasText;
    }
}

/* =========================================================
   18. Scoreboard and gamer sign-up
   ========================================================= */
.tfa-arena {
    display: grid;
    gap: var(--gap);
}

@media (min-width: 900px) {
    .tfa-arena {
        grid-template-columns: 1.4fr 1fr;
        align-items: start;
    }
}

.tfa-board {
    display: grid;
    gap: var(--s-3);
    padding: var(--s-5);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.tfa-board__title {
    font-size: var(--fs-h4);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.tfa-board__you,
.tfa-board__note {
    color: var(--muted);
    font-size: var(--fs-sm);
}

.tfa-board__note:empty {
    display: none;
}

.tfa-board__list li {
    display: grid;
    grid-template-columns: 2rem 1fr auto;
    align-items: baseline;
    gap: var(--s-3);
    padding: var(--s-2) 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-sm);
}

.tfa-board__list li.is-you {
    color: var(--accent);
}

.tfa-board__rank {
    color: var(--muted);
}

.tfa-board__handle {
    font-weight: 800;
    overflow-wrap: anywhere;
}

.tfa-board__score {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.tfa-board__empty {
    display: block !important;
    color: var(--muted);
}

.tfa-board__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-3);
}

.tfa-form--gamer {
    gap: var(--s-4);
    padding: 0;
    border: 0;
    background: transparent;
}

.tfa-link--button {
    min-height: 2.75rem;
    padding: 0 var(--s-2);
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: var(--fs-sm);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.tfa-game__time--small {
    font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
    letter-spacing: -0.03em;
}

/* =========================================================
   19. Service tabs (Fresha-style list), gallery lightbox, reviews
   ========================================================= */
.tfa-tabs__bar {
    position: sticky;
    top: var(--header-h);
    z-index: 5;
    margin-inline: calc(var(--edge) * -1);
    padding: var(--s-3) var(--edge);
    background: rgba(10, 11, 10, 0.97);
    border-bottom: 1px solid var(--line);
}

.tfa-tabs__list {
    display: flex;
    gap: var(--s-2);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tfa-tabs__list::-webkit-scrollbar {
    display: none;
}

.tfa-tabs__tab {
    flex: 0 0 auto;
    min-height: 2.75rem;
    padding: var(--s-2) var(--s-5);
    border: 1px solid var(--control);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-size: var(--fs-sm);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.tfa-tabs__tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tfa-tabs__tab.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--on-accent);
}

.tfa-tabpanel {
    padding-top: var(--s-5);
}

.tfa-tabpanel__title {
    margin-bottom: var(--s-3);
    color: var(--accent);
    font-size: var(--fs-sm);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* With scripting: tabs switch panels. Without: every list is shown under its heading. */
@media (scripting: enabled) {
    .tfa-tabpanel:not(.is-active) {
        display: none;
    }

    .tfa-tabpanel__title {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }
}

@media (scripting: none) {
    .tfa-tabs__bar {
        display: none;
    }
}

.tfa-svcs {
    display: grid;
    gap: var(--s-3);
}

.tfa-svc {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--s-4) var(--s-6);
    padding: var(--s-5);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color 0.2s, transform 0.25s var(--ease);
}

.tfa-svc:hover {
    border-color: var(--accent-dim);
    transform: translateY(-1px);
}

.tfa-svc__title {
    font-size: var(--fs-h4);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-transform: uppercase;
}

.tfa-svc__meta {
    margin-top: var(--s-1);
    color: var(--accent);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.tfa-svc__text {
    max-width: 60ch;
    margin-top: var(--s-2);
    color: var(--muted);
    font-size: var(--fs-sm);
    line-height: 1.55;
}

.tfa-svc__side {
    display: grid;
    justify-items: end;
    gap: var(--s-3);
    text-align: right;
}

.tfa-svc__price {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: baseline;
    gap: var(--s-2);
}

.tfa-svc__price strong {
    font-size: var(--fs-h3);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.tfa-svc__price s {
    color: var(--muted);
    font-size: var(--fs-sm);
}

/* the whole row is the tap target for the Book link */
.tfa-svc__book::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
}

.tfa-svc__book:focus-visible {
    outline-offset: 2px;
}

.tfa-svc:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.tfa-svc__book:focus-visible {
    outline: none;
}

@media (max-width: 640px) {
    .tfa-svc {
        grid-template-columns: 1fr;
        padding: var(--s-4);
    }

    .tfa-svc__side {
        grid-template-columns: auto 1fr;
        align-items: center;
        justify-items: start;
        text-align: left;
    }

    .tfa-svc__side .tfa-btn {
        justify-self: end;
        min-width: 7.5rem;
    }
}

/* gallery: each photo is a button that opens the viewer */
.tfa-gallery__open {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius);
    background: var(--surface);
    aspect-ratio: 16 / 9;
    cursor: zoom-in;
}

.tfa-gallery__open img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.tfa-gallery__open:hover img {
    transform: scale(1.04);
}

.tfa-gallery__cap {
    position: absolute;
    left: var(--s-3);
    bottom: var(--s-3);
    padding: var(--s-1) var(--s-3);
    border-radius: 999px;
    background: rgba(10, 11, 10, 0.82);
    color: var(--text);
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tfa-lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: var(--s-5);
    border: 0;
    background: rgba(5, 6, 5, 0.96);
    color: var(--text);
}

.tfa-lightbox[open] {
    display: grid;
    place-items: center;
}

.tfa-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.8);
}

.tfa-lightbox__fig {
    display: grid;
    gap: var(--s-3);
    justify-items: center;
    max-width: min(100%, 72rem);
}

.tfa-lightbox__img {
    max-width: 100%;
    max-height: calc(100dvh - 9rem);
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.tfa-lightbox__cap {
    color: var(--muted);
    font-size: var(--fs-sm);
    text-align: center;
}

.tfa-lightbox__count {
    position: absolute;
    left: 50%;
    bottom: var(--s-4);
    transform: translateX(-50%);
    color: var(--muted);
    font-size: var(--fs-sm);
    font-variant-numeric: tabular-nums;
}

.tfa-lightbox__btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--control);
    border-radius: 50%;
    background: rgba(10, 11, 10, 0.7);
    color: var(--text);
    font-size: 1.75rem;
    line-height: 1;
}

.tfa-lightbox__btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tfa-lightbox__close {
    top: var(--s-4);
    right: var(--s-4);
}

.tfa-lightbox__prev {
    left: var(--s-4);
    top: 50%;
    transform: translateY(-50%);
}

.tfa-lightbox__next {
    right: var(--s-4);
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 640px) {
    .tfa-lightbox {
        padding: var(--s-3);
    }

    .tfa-lightbox__prev,
    .tfa-lightbox__next {
        top: auto;
        bottom: var(--s-3);
        transform: none;
    }

    .tfa-lightbox__prev {
        left: var(--s-4);
    }

    .tfa-lightbox__next {
        right: var(--s-4);
    }
}

/* reviews: six shown, the rest behind "Show all" (all shown when scripting is off) */
@media (scripting: enabled) {
    [data-more].is-collapsed .tfa-more-item {
        display: none;
    }
}

.tfa-more-toggle,
.tfa-reviews__all {
    margin-top: var(--s-5);
}

.tfa-reviews__all {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
}

.tfa-arena__game {
    position: relative;
}

.tfa-board__list li.is-you {
    border-radius: var(--radius-sm);
    background: rgba(0, 255, 4, 0.08);
}

/* reaction game: the tap target covers the screen while a round runs */
.tfa-game__hit {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: pointer;
}

/* =========================================================
   20. Intro gate ("Press Start"), hero lines, scroll-driven motion
   ========================================================= */
.tfa-hero__inner {
    position: relative;
    z-index: 2;
}

.tfa-gate {
    display: none;
}

html.tfa-gate-on:not(.tfa-started) {
    overflow: hidden;
}

html.tfa-gate-on .tfa-gate {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.tfa-gate__half {
    position: absolute;
    left: 0;
    right: 0;
    height: 50.5%;
    background: var(--ink);
    transition: transform 0.85s var(--ease);
}

.tfa-gate__half--top {
    top: 0;
}

.tfa-gate__half--bottom {
    bottom: 0;
}

.tfa-gate__half::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 24px var(--accent);
    opacity: 0;
    transition: opacity 0.2s;
}

.tfa-gate__half--top::after {
    bottom: 0;
}

.tfa-gate__half--bottom::after {
    top: 0;
}

.tfa-gate__spot {
    position: absolute;
    top: 0;
    left: 0;
    width: 70vmax;
    height: 70vmax;
    margin: -35vmax 0 0 -35vmax;
    background: radial-gradient(circle, rgba(0, 255, 4, 0.16), transparent 60%);
    transform: translate3d(var(--gx, 50vw), var(--gy, 50vh), 0);
    pointer-events: none;
}

.tfa-gate__btn {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: var(--s-5);
    padding: var(--s-6);
    border: 0;
    background: transparent;
    color: var(--text);
    transition: transform 0.5s var(--ease), opacity 0.4s ease;
}

.tfa-gate__mark {
    width: clamp(4.5rem, 14vmin, 8rem);
    height: auto;
    overflow: visible;
}

.tfa-gate__mark path {
    fill-opacity: 1;
}

.tfa-gate__kicker,
.tfa-gate__hint {
    color: var(--muted);
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.tfa-gate__title {
    font-size: var(--fs-h1);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.85;
    text-transform: uppercase;
    transition: color 0.25s, letter-spacing 0.4s var(--ease);
}

.tfa-gate__btn:hover .tfa-gate__title,
.tfa-gate__btn:focus-visible .tfa-gate__title {
    color: var(--accent);
    letter-spacing: -0.03em;
}

.tfa-gate__ring {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 50%;
    background: var(--accent);
}

/* leaving: the two halves split open and the hero is revealed */
html.tfa-started .tfa-gate.is-leaving .tfa-gate__half--top {
    transform: translate3d(0, -101%, 0);
}

html.tfa-started .tfa-gate.is-leaving .tfa-gate__half--bottom {
    transform: translate3d(0, 101%, 0);
}

html.tfa-started .tfa-gate.is-leaving .tfa-gate__half::after {
    opacity: 1;
}

html.tfa-started .tfa-gate.is-leaving .tfa-gate__btn {
    opacity: 0;
    transform: scale(1.08);
}

html.tfa-started .tfa-gate.is-leaving .tfa-gate__spot {
    opacity: 0;
    transition: opacity 0.4s;
}

/* hero content waits behind the gate, then plays */
html.tfa-gate-on:not(.tfa-started) .tfa-enter,
html.tfa-gate-on:not(.tfa-started) .tfa-line__text,
html.tfa-gate-on:not(.tfa-started) .tfa-hero__cue {
    animation: none;
    opacity: 0;
}

.tfa-hero__title {
    display: grid;
}

.tfa-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

.tfa-line__text {
    display: block;
}

.tfa-hero__cue {
    position: absolute;
    left: 50%;
    bottom: var(--s-5);
    z-index: 3;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: -1.375rem;
    border: 1px solid var(--control);
    border-radius: 50%;
}

.tfa-hero__cue span {
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg) translate(-1px, -1px);
}

@media (max-width: 900px) {
    .tfa-hero__cue {
        display: none;
    }
}

@keyframes tfa-line-in {
    from { transform: translate3d(0, 105%, 0); }
    to { transform: none; }
}

@keyframes tfa-draw {
    from { stroke-dashoffset: 1; fill-opacity: 0; }
    70% { stroke-dashoffset: 0; fill-opacity: 0; }
    to { stroke-dashoffset: 0; fill-opacity: 1; }
}

@keyframes tfa-ring {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 4, 0.55); }
    100% { box-shadow: 0 0 0 1.5rem rgba(0, 255, 4, 0); }
}

@keyframes tfa-cue {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, 6px, 0); }
}

@media (prefers-reduced-motion: no-preference) {
    .tfa-line__text {
        animation: tfa-line-in 1.1s var(--ease) both;
        animation-delay: calc(var(--l, 0) * 130ms + 250ms);
    }

    .tfa-gate__mark path {
        stroke: var(--accent);
        stroke-width: 3;
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        fill-opacity: 0;
        animation: tfa-draw 1.7s ease-out forwards;
    }

    /* pulse a few times, then rest (nothing loops for more than 5 seconds) */
    .tfa-gate__ring {
        animation: tfa-ring 1.5s ease-out 3;
    }

    .tfa-hero__cue span {
        animation: tfa-cue 1.6s ease-in-out 3;
    }

    .tfa-hero [data-magnet],
    .tfa-btn.is-magnetic {
        transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tfa-gate,
    html.tfa-gate-on .tfa-gate {
        display: none;
    }

    .tfa-gate__mark path {
        stroke: none;
    }
}

@media (scripting: none) {
    html.tfa-gate-on .tfa-gate {
        display: none;
    }
}

/* Scroll-driven motion: no JavaScript, runs on the compositor, only where the browser supports it. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        @keyframes tfa-hero-bg {
            from { transform: translate3d(var(--mx, 0), var(--my, 0px), 0) scale(1.06); }
            to { transform: translate3d(var(--mx, 0), calc(var(--my, 0px) + 90px), 0) scale(1.14); }
        }

        @keyframes tfa-hero-out {
            to { opacity: 0.15; transform: translate3d(0, -3rem, 0); }
        }

        @keyframes tfa-scrub-in {
            from { opacity: 0; transform: translate3d(-3rem, 0, 0); }
            to { opacity: 1; transform: none; }
        }

        @keyframes tfa-scrub-up {
            from { opacity: 0; transform: translate3d(0, 4rem, 0); }
            to { opacity: 1; transform: none; }
        }

        .tfa-hero__bg {
            animation: tfa-hero-bg linear both;
            animation-timeline: scroll(root block);
            animation-range: 0 100vh;
        }

        /* fades as you scroll away; once the hero is fully off screen it resets (so nothing stays faded) */
        .tfa-hero__content {
            animation: tfa-hero-out linear backwards;
            animation-timeline: scroll(root block);
            animation-range: 8vh 100vh;
        }

        /* the big statement: each line slides in as it scrolls into view */
        .tfa-statement > * {
            animation: tfa-scrub-in linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 70%;
        }

        .tfa-statement > *:nth-child(2) {
            animation-range: entry 10% entry 80%;
        }

        .tfa-statement > *:nth-child(3) {
            animation-range: entry 20% entry 90%;
        }

        .tfa-footer__title,
        .tfa-contact .tfa-h2 {
            animation: tfa-scrub-up linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 60%;
        }
    }
}

/* =========================================================
   21. Services: centred tabs, three-column card grid (3 / 2 / 1 responsive)
   ========================================================= */
.tfa-tabs__bar {
    display: flex;
    justify-content: center;
}

.tfa-tabs__list {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

.tfa-svcs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
}

@media (max-width: 1024px) {
    .tfa-svcs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tfa-svcs {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tfa-svc {
    grid-template-columns: minmax(0, 1fr);
    align-content: space-between;
    align-items: start;
    gap: var(--s-5);
    padding: var(--s-5);
}

.tfa-svc__side {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    width: 100%;
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
    text-align: left;
}

.tfa-svc__price {
    justify-content: flex-start;
}

.tfa-svc__side .tfa-btn {
    justify-self: end;
    min-width: 7.5rem;
}

.tfa-hero__title:focus,
.tfa-hero__title:focus-visible {
    outline: none;
}

/* =========================================================
   22. Monthly packs: copy and button on the left, packs slide on the right
   ========================================================= */
.tfa-packs {
    display: grid;
    gap: var(--s-7);
    align-items: center;
    margin-top: var(--s-9);
    padding: clamp(var(--s-5), 4vw, var(--s-8));
    border: 1px solid var(--accent-dim);
    border-radius: calc(var(--radius) * 1.5);
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 255, 4, 0.14), transparent 55%),
        var(--surface);
    overflow: hidden;
}

@media (min-width: 960px) {
    .tfa-packs {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
    }
}

.tfa-packs__copy {
    display: grid;
    justify-items: start;
    gap: var(--s-5);
}

.tfa-packs__title {
    font-size: var(--fs-h2);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 0.92;
    text-transform: uppercase;
}

.tfa-packs__nav {
    display: flex;
    gap: var(--s-3);
}

.tfa-packs__arrow {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--control);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    font-size: 1.75rem;
    line-height: 1;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.tfa-packs__arrow:hover:not([disabled]) {
    border-color: var(--accent);
    color: var(--accent);
}

.tfa-packs__arrow[disabled] {
    opacity: 0.35;
    cursor: default;
}

.tfa-packs__stage {
    min-width: 0;
    margin-right: calc(clamp(var(--s-5), 4vw, var(--s-8)) * -1);
}

.tfa-packs__track {
    display: flex;
    gap: var(--gap);
    padding: var(--s-3) clamp(var(--s-5), 4vw, var(--s-8)) var(--s-3) 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tfa-packs__track::-webkit-scrollbar {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .tfa-packs__track {
        cursor: grab;
    }

    .tfa-packs__track.is-dragging {
        cursor: grabbing;
        scroll-snap-type: none;
        user-select: none;
    }
}

.tfa-pack {
    position: relative;
    display: grid;
    flex: 0 0 min(78%, 17.5rem);
    align-content: start;
    gap: var(--s-3);
    padding: var(--s-6) var(--s-5) var(--s-5);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    scroll-snap-align: start;
}

.tfa-pack.is-top {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(0, 255, 4, 0.1), var(--bg) 55%);
}

.tfa-pack__flag {
    justify-self: start;
    padding: var(--s-1) var(--s-3);
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: var(--fs-eyebrow);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tfa-pack__name {
    font-size: var(--fs-h3);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    text-transform: uppercase;
}

.tfa-pack__benefit {
    color: var(--muted);
    font-size: var(--fs-sm);
    line-height: 1.5;
}

.tfa-pack__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--s-2);
    margin-top: var(--s-3);
    color: var(--muted);
    font-size: var(--fs-sm);
}

.tfa-pack__price strong {
    color: var(--text);
    font-size: var(--fs-h2);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
}

.tfa-pack__save {
    color: var(--accent);
    font-size: var(--fs-sm);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* The packs slide in from the right as the section appears, then hint that they scroll. */
@keyframes tfa-pack-in {
    from { opacity: 0; transform: translate3d(5rem, 0, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes tfa-nudge {
    0%, 100% { transform: translate3d(0, 0, 0); }
    40% { transform: translate3d(-1.25rem, 0, 0); }
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
    .tfa-packs:not(.is-visible) .tfa-pack {
        opacity: 0;
    }

    .tfa-packs.is-visible .tfa-pack {
        animation: tfa-pack-in 0.9s var(--ease) both;
        animation-delay: calc(var(--i) * 110ms + 150ms);
    }

    .tfa-packs.is-visible .tfa-packs__track {
        animation: tfa-nudge 1s ease-in-out 1.6s 1;
    }

    .tfa-pack {
        transition: transform 0.3s var(--ease), border-color 0.3s;
    }

    .tfa-pack:hover {
        transform: translate3d(0, -4px, 0);
        border-color: var(--accent);
    }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        @keyframes tfa-pack-depth {
            0%, 100% { opacity: 0.55; transform: scale(0.94); }
            35%, 65% { opacity: 1; transform: none; }
        }

        .tfa-pack {
            animation-name: tfa-pack-depth;
            animation-timing-function: linear;
            animation-fill-mode: both;
            animation-timeline: view(inline);
            animation-delay: 0s;
        }
    }
}

/* =========================================================
   23. Spacing system: one card padding, one panel padding, one gap between blocks
   (every value comes from the 4/8/12/16/24/32/48/64/96/128 scale)
   ========================================================= */
:root {
    --pad-card: var(--s-5);
    --pad-panel: clamp(var(--s-5), 4vw, var(--s-8));
    --block: var(--s-8);
}

.tfa-svc,
.tfa-card,
.tfa-pack,
.tfa-strip,
.tfa-board,
.tfa-person__body,
.tfa-feature__panel {
    padding: var(--pad-card);
}

.tfa-form,
.tfa-packs,
.tfa-contact,
.tfa-games {
    padding: var(--pad-panel);
}

.tfa-packs__stage {
    margin-right: calc(var(--pad-panel) * -1);
}

.tfa-packs__track {
    padding-right: var(--pad-panel);
}

.tfa-packs,
.tfa-strip,
.tfa-stats {
    margin-top: var(--block);
}

.tfa-section__head {
    margin-bottom: var(--s-7);
}

/* =========================================================
   24. Gamer sign-up modal and game instructions
   ========================================================= */
.tfa-modal {
    width: min(32rem, calc(100vw - var(--s-5) * 2));
    max-height: calc(100dvh - var(--s-5) * 2);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
}

.tfa-modal::backdrop {
    background: rgba(0, 0, 0, 0.8);
}

.tfa-modal__panel {
    position: relative;
    display: grid;
    gap: var(--s-4);
    padding: var(--s-6);
}

.tfa-modal__title {
    margin: 0;
    padding-right: var(--s-8);
    font-size: var(--fs-h3, 1.5rem);
}

.tfa-modal__intro {
    margin: 0;
    color: var(--muted);
}

.tfa-modal__close {
    position: absolute;
    top: var(--s-3);
    right: var(--s-3);
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.tfa-modal__close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tfa-modal-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    .tfa-modal[open] {
        animation: tfa-modal-in 220ms ease both;
    }

    @keyframes tfa-modal-in {
        from { opacity: 0; transform: translateY(var(--s-3)); }
        to { opacity: 1; transform: none; }
    }
}

.tfa-how {
    display: grid;
    gap: var(--s-3);
    padding: var(--s-5);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

@media (min-width: 900px) {
    .tfa-how {
        grid-column: 1 / -1;
    }
}

.tfa-how__title {
    margin: 0;
    font-size: var(--fs-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.tfa-how__list {
    display: grid;
    gap: var(--s-2);
    margin: 0;
    padding-left: var(--s-5);
}

.tfa-how__note {
    margin: 0;
    color: var(--muted);
    font-size: var(--fs-sm);
}

.tfa-person__tile {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 16rem;
    background: radial-gradient(circle at 50% 40%, rgba(0, 255, 4, 0.12), transparent 60%), var(--surface);
}

.tfa-person__tile img {
    width: 40%;
    height: auto;
}

.tfa-modal .tfa-form--gamer {
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
}

.tfa-btn--reel {
    gap: var(--s-3);
    background: transparent;
    color: var(--text);
}

.tfa-btn--reel:hover {
    color: var(--accent);
}

.tfa-btn__play {
    display: inline-block;
    width: 0;
    height: 0;
    border-block: 0.45rem solid transparent;
    border-left: 0.75rem solid var(--accent);
}

.tfa-modal--video {
    width: min(70rem, calc(100vw - var(--s-5) * 2));
    background: #000;
}

.tfa-modal--video .tfa-modal__panel {
    padding: 0;
}

.tfa-modal--video .tfa-modal__close {
    z-index: 1;
    background: rgba(0, 0, 0, 0.6);
}

.tfa-reel__video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

/* Contact: "good to know" chips and hours on the dark card */
.tfa-know {
    list-style: none;
    margin-inline: 0;
    padding-inline: 0;
    border-top-color: var(--line);
}

.tfa-know li {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-4);
    border-color: var(--line);
    color: var(--text);
}

.tfa-know li::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
}

.tfa-hours dd {
    white-space: nowrap;
}

/* =========================================================
   26. Featured reel and games, single barber, gaming motion
   ========================================================= */
.tfa-section--tight {
    padding-block: clamp(var(--s-7), 6vw, var(--s-9, 6rem));
}

.tfa-feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: var(--gap);
}

.tfa-fcard {
    position: relative;
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.tfa-fcard__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #050605 var(--poster) center / cover no-repeat;
}

.tfa-fcard__play {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 4.5rem;
    height: 4.5rem;
    margin: -2.25rem 0 0 -2.25rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(0, 255, 4, 0.5);
}

.tfa-fcard__play::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 54%;
    border-block: 0.7rem solid transparent;
    border-left: 1.1rem solid #04140a;
    transform: translate(-50%, -50%);
}

.tfa-fcard__media--pixels {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    padding: var(--s-5);
    background: #050605;
}

.tfa-fcard__media--pixels i {
    border-radius: 2px;
    background: var(--accent);
    opacity: 0.12;
}

.tfa-fcard__score {
    position: absolute;
    inset: auto var(--s-5) var(--s-4) auto;
    padding: var(--s-1) var(--s-3);
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: rgba(5, 6, 5, 0.85);
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: var(--fs-sm);
    letter-spacing: 0.12em;
}

.tfa-fcard__body {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: var(--s-3);
    padding: var(--s-6);
}

.tfa-fcard__title {
    font-size: var(--fs-h3, 1.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.tfa-person__bio {
    color: var(--text);
    line-height: 1.6;
}

@media (min-width: 900px) {
    .tfa-people--solo {
        grid-template-columns: minmax(0, 52rem);
        justify-content: center;
    }

    .tfa-people--solo .tfa-person {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    }
}

/* HUD corner brackets on cards (transform and opacity only) */
.tfa-fcard::before,
.tfa-fcard::after,
.tfa-card-info::after,
.tfa-person::after,
.tfa-pack::after {
    content: "";
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    border-color: var(--accent);
    border-style: solid;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s var(--ease, ease);
}

.tfa-fcard::before {
    inset: 0.6rem auto auto 0.6rem;
    border-width: 2px 0 0 2px;
    transform: translate(6px, 6px);
}

.tfa-fcard::after,
.tfa-card-info::after,
.tfa-person::after,
.tfa-pack::after {
    inset: auto 0.6rem 0.6rem auto;
    border-width: 0 2px 2px 0;
    transform: translate(-6px, -6px);
}

.tfa-person,
.tfa-pack {
    position: relative;
}

.tfa-fcard:hover::before,
.tfa-fcard:hover::after,
.tfa-card-info:hover::after,
.tfa-person:hover::after,
.tfa-pack:hover::after {
    opacity: 1;
    transform: none;
}

/* Button shine sweep */
.tfa-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.tfa-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .tfa-btn:hover::after,
    .tfa-btn:focus-visible::after {
        transform: translateX(120%);
        transition: transform 0.6s ease;
    }

    /* "Level" eyebrow types itself in */
    .tfa-reveal.is-visible .tfa-eyebrow,
    .tfa-reveal .tfa-eyebrow {
        clip-path: inset(0 100% 0 0);
    }

    .tfa-reveal.is-visible .tfa-eyebrow {
        animation: tfa-type 0.9s steps(18, end) 0.1s forwards;
    }

    /* Headings glitch once as they arrive */
    .tfa-reveal.is-visible .tfa-h2 {
        animation: tfa-glitch 0.55s steps(2, end) 0.15s 1;
    }

    /* XP bar under section headings fills in steps */
    .tfa-section__head {
        position: relative;
    }

    .tfa-section__head::after {
        content: "";
        position: absolute;
        inset: auto auto calc(var(--s-4) * -1) 0;
        width: min(12rem, 40%);
        height: 4px;
        border-radius: 2px;
        background: var(--accent);
        transform: scaleX(0);
        transform-origin: left;
    }

    .tfa-section__head.is-visible::after {
        animation: tfa-xp 1.1s steps(10, end) 0.3s forwards;
    }

    .tfa-fcard__play {
        animation: tfa-ping-ring 1.8s ease-out infinite;
    }

    .tfa-fcard__media--pixels i {
        animation: tfa-pixel 2.4s steps(1, end) infinite;
        animation-delay: calc(var(--d) * 0.1s);
    }

    @keyframes tfa-type {
        to { clip-path: inset(0 0 0 0); }
    }

    @keyframes tfa-glitch {
        0% { transform: translate(0); text-shadow: -3px 0 rgba(0, 255, 4, 0.8), 3px 0 rgba(255, 0, 80, 0.6); }
        50% { transform: translate(2px, -1px); text-shadow: 3px 0 rgba(0, 255, 4, 0.8), -3px 0 rgba(255, 0, 80, 0.6); }
        100% { transform: none; text-shadow: none; }
    }

    @keyframes tfa-xp {
        to { transform: scaleX(1); }
    }

    @keyframes tfa-ping-ring {
        0% { box-shadow: 0 0 0 0 rgba(0, 255, 4, 0.55); }
        100% { box-shadow: 0 0 0 1.4rem rgba(0, 255, 4, 0); }
    }

    @keyframes tfa-pixel {
        0%, 100% { opacity: 0.12; }
        40% { opacity: 1; }
        60% { opacity: 0.4; }
    }
}

@media (prefers-reduced-motion: reduce) {
    .tfa-reveal .tfa-eyebrow {
        clip-path: none;
    }
}
