/*
 * The Chase landing page (layout: the_chase). Matches the game and its Play Store art: the orange gradient of
 * ChaseColors.cs, the menu wallpaper, Nunito, white cards with warm drops and one yellow highlight.
 * Same structure as blocks-blaster.css. Everything is scoped under .tc.
 */

@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url(../fonts/Nunito-Regular.ttf) format("truetype"); }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(../fonts/Nunito-Bold.ttf) format("truetype"); }

.layout-the_chase { overflow-x: hidden; background: #FFF7F2; }

.tc {
    --tc-primary: #E6571A;
    --tc-lip: #B5430F;
    --tc-deep: #522514;
    --tc-muted: #996673;
    --tc-tint: #FDF2ED;
    --tc-gold: #FFD66B;
    --tc-coin: #FFC233;
    --tc-shadow: 0 24px 50px rgba(82, 37, 20, .16);
    --tc-grad: linear-gradient(180deg, #E6571A 0%, #EC7D4F 45%, #EFB38F 100%);

    font-family: Nunito, system-ui, sans-serif;
    color: var(--tc-deep);
    padding-bottom: 6rem; /* room for the fixed navigation bar */
}

.tc *, .tc *::before, .tc *::after { box-sizing: border-box; }
.tc ::selection { color: #fff; background: var(--tc-primary); }
.tc h1, .tc h2, .tc h3 { font-family: inherit; font-weight: 700; color: inherit; letter-spacing: -.02em; text-transform: none; margin: 0; }
.tc p { margin: 0; }
.tc ul { list-style: none; margin: 0; padding: 0; }
.tc figure { margin: 0; }
.tc [hidden] { display: none !important; }

/* Material Symbols (Rounded, Apache 2.0) from the game, drawn in the current colour */
.tc-ico { display: inline-block; width: 1.15em; height: 1.15em; flex: none; background: currentColor;
    -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }

.tc-wrap { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.tc-bleed { position: relative; width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; }
.tc-section { padding-top: 6rem; }

/* The menu's wallpaper: police, coins, fuel and trophies */
.tc-pattern { position: absolute; inset: 0; background: var(--tc-pattern) 0 0 / 420px auto repeat; opacity: .12; pointer-events: none; }

/* Highlight, chips, buttons */
.tc-hl {
    display: inline-block; color: var(--tc-deep); background: var(--tc-gold); padding: 0 .28em .06em;
    border-radius: .3em; transform: rotate(-2deg); text-shadow: none;
}
.tc-chip {
    display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem; border-radius: 999px;
    background: var(--tc-tint); color: var(--tc-primary); font-weight: 700; font-size: .85rem; letter-spacing: .04em; white-space: nowrap;
}
.tc-muted { color: var(--tc-muted); font-weight: 700; font-size: .9rem; }

.tc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .95rem 1.6rem; border-radius: 999px;
    font: 700 1.05rem/1 Nunito, sans-serif; text-decoration: none; border: 0; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
a.tc-btn:hover, button.tc-btn:hover { transform: translateY(-2px); }
.tc-btn:focus-visible, .tc canvas:focus-visible { outline: 3px solid var(--tc-gold); outline-offset: 3px; }
.tc-btn-play { background: var(--tc-deep); color: #fff; box-shadow: 0 6px 0 #2E140A, 0 14px 30px rgba(82, 37, 20, .35); }
.tc-btn-play:hover { color: #fff; }
.tc-btn-ghost { background: rgba(255, 255, 255, .92); color: var(--tc-deep); }
.tc-btn-ghost:hover { color: var(--tc-deep); background: #fff; }
.tc-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.tc-card { background: #fff; border-radius: 28px; box-shadow: var(--tc-shadow); padding: 1.75rem; position: relative; }

/* ---- Hero ------------------------------------------------------------- */

.tc-hero { background: var(--tc-grad); border-radius: 0 0 48px 48px; padding: 2rem 0 5rem; color: #fff; }
.tc-hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.tc-crumbs { font-size: .85rem; opacity: .85; margin-bottom: 2.2rem; }
.tc-crumbs a { color: inherit; text-decoration: none; }
.tc-crumbs a:hover { text-decoration: underline; color: inherit; }
.tc-crumbs span { margin: 0 .45rem; opacity: .7; }
.tc-brand { display: flex; align-items: center; gap: .9rem; font-size: 1.6rem; font-weight: 700; margin-bottom: 1.5rem; }
.tc-brand span { opacity: .8; font-weight: 400; margin-left: -.5rem; }
.tc-brand img { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 10px 24px rgba(82, 37, 20, .3); transform: rotate(-4deg); }
.tc-hero h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); line-height: 1.04; text-shadow: 0 6px 24px rgba(82, 37, 20, .25); }
.tc-lead { font-size: 1.3rem; line-height: 1.45; max-width: 32rem; margin: 1.5rem 0 2rem !important; opacity: .95; }
.tc-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem !important; }
.tc-chips li {
    display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px;
    background: rgba(255, 255, 255, .92); color: var(--tc-deep); font-weight: 700; font-size: .92rem;
}
.tc-chips .tc-ico { color: var(--tc-primary); }

/* ---- Playable demo ------------------------------------------------------ */

.tc-hero-demo { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.tc-demo { color: var(--tc-deep); transform: rotate(1.5deg); padding: 1.2rem; user-select: none; -webkit-user-select: none; }
.tc-demo-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.tc-score { text-align: right; line-height: 1; }
.tc-score small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--tc-muted); }
.tc-score b { font-size: 2rem; }
.tc-demo canvas { display: block; width: 100%; height: auto; border-radius: 20px; touch-action: none; cursor: pointer; background: #7CC24E; }
.tc-start, .tc-over {
    position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; top: 4.6rem; border-radius: 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6rem;
}
.tc-start { background: rgba(82, 37, 20, .18); }
.tc-over { background: rgba(255, 255, 255, .94); padding: 1.2rem; }
.tc-over .tc-actions { justify-content: center; margin-top: .4rem; }
.tc-over .tc-btn-ghost { background: var(--tc-tint); }
.tc-busted { font-size: 2rem; font-weight: 700; background: var(--tc-gold); padding: .1rem .9rem .2rem; border-radius: 12px; transform: rotate(-3deg); }
.tc-over-title { font-size: 2rem; font-weight: 700; }
.tc-over .tc-muted { max-width: 22rem; line-height: 1.45; }
.tc-demo-hint { text-align: center; margin-top: 1.4rem !important; font-weight: 700; opacity: .95; }

/* ---- Section headers ---------------------------------------------------- */

.tc-head { text-align: center; max-width: 46rem; margin: 0 auto 3rem; }
.tc-head h2, .tc-copy h2, .tc-cta h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.1; }
.tc-head p, .tc-copy p { font-size: 1.2rem; line-height: 1.5; margin-top: 1rem !important; color: var(--tc-muted); }
.tc-head-light { color: #fff; }
.tc-head-light p { color: #fff; opacity: .95; }

/* ---- How it works ------------------------------------------------------- */

.tc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tc-step { padding: 2rem; text-align: center; }
.tc-step:nth-child(2) { transform: translateY(1.5rem); }
.tc-step-n {
    position: absolute; top: -16px; left: -10px; width: 44px; height: 44px; border-radius: 50%; background: var(--tc-gold);
    display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; transform: rotate(-8deg);
}
.tc-step-art { height: 132px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.tc-step-art img { width: 170px; height: 170px; object-fit: cover; }
.tc-step-cops img { width: 130px; height: 130px; margin: 0 -1.4rem; }
.tc-step h3, .tc-perk h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.tc-step p, .tc-perk p { color: var(--tc-muted); font-size: 1.05rem; line-height: 1.5; }
.tc-pop { display: inline-block; font-size: 1.8rem; font-weight: 700; color: var(--tc-gold); background: var(--tc-deep); border-radius: 999px; padding: .5rem 1.3rem .65rem; transform: rotate(-3deg); }

/* ---- Power-ups ---------------------------------------------------------- */

.tc-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.tc-mode {
    display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: 1.6rem 1rem; background: #fff; border-radius: 24px;
    box-shadow: 0 14px 30px rgba(82, 37, 20, .1); text-align: center; transition: transform .2s ease, box-shadow .2s ease;
}
.tc-mode:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 20px 40px rgba(82, 37, 20, .16); }
.tc-mode-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); }
.tc-mode-ico .tc-ico { width: 32px; height: 32px; }
.tc-mode b { font-size: 1.2rem; }
.tc-mode > span:last-child { color: var(--tc-muted); font-size: .95rem; line-height: 1.4; }

/* ---- Split sections (maps, cars) ------------------------------------- */

.tc-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
.tc-flip .tc-copy { order: 2; }
.tc-maps { display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem; }
.tc-maps figure { background: #fff; border-radius: 18px; padding: .4rem .4rem .5rem; box-shadow: 0 14px 30px rgba(82, 37, 20, .14); transform: rotate(var(--r)); transition: transform .2s ease; }
.tc-maps figure:hover { transform: rotate(0) translateY(-6px); }
.tc-maps img { display: block; width: 100%; height: auto; border-radius: 13px; }
.tc-maps figcaption { font-weight: 700; font-size: .85rem; text-align: center; margin-top: .35rem; }
.tc-garage { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.tc-garage figure { background: #fff; border-radius: 18px; padding: .5rem .4rem .6rem; box-shadow: 0 10px 24px rgba(82, 37, 20, .1); text-align: center; transition: transform .2s ease; }
.tc-garage figure:hover { transform: translateY(-4px) rotate(-1deg); }
.tc-garage img { display: block; width: 100%; height: auto; }
.tc-garage figcaption { font-weight: 700; font-size: .8rem; line-height: 1.2; }

/* ---- Screenshots -------------------------------------------------------- */

.tc-gallery { background: var(--tc-grad); margin-top: 7rem; padding: 5rem 0 4rem; border-radius: 48px; }
.tc-gallery .tc-head { position: relative; margin-bottom: 2.5rem; }
.tc-shots {
    position: relative; display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 1rem max(1.25rem, calc((100vw - 1160px) / 2 + 1.25rem)) 2rem; scrollbar-width: thin;
}
.tc-shots a { flex: none; scroll-snap-align: center; }
.tc-shots img {
    display: block; width: 440px; height: auto; border-radius: 22px; box-shadow: 0 20px 40px rgba(82, 37, 20, .3);
    transition: transform .2s ease;
}
.tc-shots a:nth-child(odd) img { transform: rotate(-1.5deg); }
.tc-shots a:nth-child(even) img { transform: rotate(1.5deg) translateY(14px); }
.tc-shots a:hover img { transform: rotate(0) translateY(-6px) scale(1.03); }

/* ---- Perks -------------------------------------------------------------- */

.tc-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.tc-perk { padding: 1.7rem; }
.tc-perk-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--tc-tint); color: var(--tc-primary); display: grid; place-items: center; margin-bottom: 1.1rem; }
.tc-perk-ico .tc-ico { width: 30px; height: 30px; }

/* ---- Final call to action ---------------------------------------------- */

.tc-cta {
    position: relative; overflow: hidden; text-align: center; color: #fff; background: var(--tc-grad);
    border-radius: 40px; padding: 4rem 1.5rem; box-shadow: var(--tc-shadow);
}
.tc-cta > *:not(.tc-pattern) { position: relative; }
.tc-cta img { width: 96px; height: 96px; border-radius: 26px; box-shadow: 0 14px 30px rgba(82, 37, 20, .3); margin-bottom: 1.5rem; }
.tc-cta h2 { text-shadow: 0 6px 24px rgba(82, 37, 20, .25); }
.tc-cta > p { font-size: 1.25rem; margin: 1rem 0 2rem !important; }
.tc-cta-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.8rem !important; font-size: .95rem; }
.tc-cta-links a { color: #fff; opacity: .9; }
.tc-cta-links a:hover { color: #fff; opacity: 1; }

/* ---- Motion ------------------------------------------------------------- */

.tc-anim .tc-reveal { opacity: 0; translate: 0 28px; transition: opacity .6s ease, translate .6s ease; transition-delay: calc(var(--d, 0) * 80ms); }
.tc-anim .tc-reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
    .tc *, .tc *::before { animation: none !important; transition: none !important; }
}

/* ---- Small screens ------------------------------------------------------ */

@media (max-width: 991px) {
    .tc-hero-grid, .tc-split { grid-template-columns: 1fr; gap: 3rem; }
    .tc-flip .tc-copy { order: 0; }
    .tc-copy { text-align: center; }
    .tc-steps { grid-template-columns: 1fr; gap: 2rem; max-width: 480px; margin: 0 auto; }
    .tc-step:nth-child(2) { transform: none; }
    .tc-perks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .tc-section { padding-top: 4.5rem; }
    .tc-hero { border-radius: 0 0 32px 32px; }
    .tc-demo { transform: none; }
    .tc-card { padding: 1.3rem; }
    .tc-modes { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
    .tc-maps { grid-template-columns: repeat(3, 1fr); }
    .tc-garage { grid-template-columns: repeat(3, 1fr); }
    .tc-perks { grid-template-columns: 1fr; }
    .tc-shots img { width: 300px; }
    .tc-gallery { border-radius: 32px; }
}
