/* ------------------------------------------------------------------
   Public front page ("ลองเล่นก่อนได้เลย") shown to visitors who are not
   signed in. Sampled from the same tokens as app.css so the jump from
   here into the club dashboard feels like one product.
   ------------------------------------------------------------------ */
:root {
    --green: #1d3b2a;
    --green-deep: #14301f;
    --lime: #c9ee7a;
    --pale: #eef4e6;
    --ink: #1b241d;
    --muted: #6c7a6f;
    --line: #e5dfd0;
    --cream: #f7f3e8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.quick-shell {
    max-width: 1040px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 22px 64px;
    display: flex;
    flex-direction: column;
}

.quick-shell > .site-footer { margin-top: auto; }

/* ---------------------------------------------------------------- header */
.quick-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 0 26px;
}

.quick-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.quick-brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--green);
    color: var(--lime);
    font-size: 19px;
}

.quick-brand-logo {
    display: block;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: contain;
}

.quick-brand b {
    display: block;
    font-size: 16px;
    line-height: 1.2;
}

.quick-brand small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.3px;
}

.quick-top-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-top-links a {
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 9px 4px;
}

.quick-top-links a.is-solid {
    background: var(--green);
    color: #fff;
    border-radius: 10px;
    padding: 10px 15px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
}

/* ------------------------------------------------------------------ hero */
.quick-hero {
    text-align: center;
    padding: 22px 0 34px;
}

.quick-kicker {
    display: inline-block;
    background: var(--pale);
    color: #2f5a3c;
    border: 1px solid #cfe0c2;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.quick-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(30px, 6vw, 46px);
    line-height: 1.16;
    letter-spacing: -0.5px;
}

.quick-sub {
    margin: 0 auto;
    max-width: 470px;
    font-size: 15px;
    color: var(--muted);
}

/* Small proof strip under the headline: real people / bot / no signup. */
.quick-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.quick-cap {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 9px 15px 9px 10px;
    text-align: left;
}

.quick-cap img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--pale);
}

.quick-cap b {
    display: block;
    font-size: 12.5px;
    line-height: 1.3;
}

.quick-cap small {
    display: block;
    font-size: 10.5px;
    color: var(--muted);
}

/* ----------------------------------------------------------------- modes */
.quick-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 26px;
    /* Both cards share the row height so neither is left with a dead gap
       under its call to action when one has more copy than the other. */
    align-items: stretch;
}

.quick-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px 24px 20px;
    min-height: 172px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

/* Thai has no spaces, so long copy in a narrow column overflows the rounded
   edge unless it is allowed to break anywhere. */
.quick-card p {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(29, 59, 42, 0.13);
    border-color: #c3d3ba;
}

.quick-card:focus-visible {
    outline: 3px solid #8fc25a;
    outline-offset: 2px;
}

/* The primary card carries the action people came for: play now. */
.quick-card.is-primary {
    background:
        linear-gradient(160deg, rgba(150, 26, 26, .86) 0%, rgba(179, 40, 40, .82) 50%, rgba(122, 18, 18, .86) 100%),
        url('/chess/img/playnormal.webp') center / cover no-repeat;
    border-color: #8f2020;
    color: #fff5f5;
    box-shadow: 0 8px 22px rgba(150, 26, 26, .34);
}

.quick-card.is-primary p {
    color: #ffe3e3;
}

.quick-card.is-primary:hover {
    border-color: #ffb3b3;
    box-shadow: 0 16px 34px rgba(150, 26, 26, .46);
}

.quick-ico {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 13px;
    border-radius: 13px;
    background: var(--pale);
    font-size: 22px;
}

.quick-card.is-primary .quick-ico {
    background: rgba(255, 255, 255, 0.14);
}

.quick-card h2 {
    margin: 0 0 6px;
    font-size: 20px;
    letter-spacing: -0.2px;
}

.quick-card p {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--muted);
    max-width: 34ch;
}

.quick-go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
}

.quick-card.is-primary .quick-go {
    background: #fff5f5;
    color: #8f2020;
    border-radius: 10px;
    padding: 10px 16px;
    min-height: 42px;
    box-shadow: 0 4px 14px rgba(122, 18, 18, .3);
}

/* Cards are big tap targets, so the whole card submits the form. */
.quick-card[disabled] {
    opacity: 0.6;
    cursor: progress;
}

/* --------------------------------------------------------------- upsell */
.quick-upsell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px 24px;
}

.quick-upsell-copy h3 {
    margin: 0 0 5px;
    font-size: 17px;
}

.quick-upsell-copy p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    max-width: 46ch;
}

.quick-upsell-copy b {
    color: var(--green);
}

.quick-upsell-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--green);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
}

.quick-btn.is-solid {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 700px) {
    .quick-shell {
        padding: 0 16px 52px;
    }

    .quick-top {
        padding: 14px 0 18px;
    }

    .quick-top-links a:not(.is-solid) {
        font-size: 12px;
    }

    .quick-hero {
        padding: 12px 0 26px;
    }

    .quick-sub {
        font-size: 14px;
    }

    /* Two cards side by side get cramped on a phone; stack them. */
    .quick-modes {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quick-card {
        min-height: 0;
        padding: 20px;
    }

    .quick-upsell {
        padding: 20px;
    }

    .quick-upsell-actions {
        width: 100%;
    }

    .quick-btn {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quick-card {
        transition: none;
    }

    .quick-card:hover {
        transform: none;
    }
}
