:root {
    --fpct-night: #03111f;
    --fpct-ink: #071b2c;
    --fpct-blue: #086a8e;
    --fpct-sky: #e9f5fa;
    --fpct-cyan: #10c8e8;
    --fpct-red: #ef4937;
    --fpct-gold: #d9a83e;
    --fpct-gold-light: #f4d37b;
    --fpct-cream: #fbf8ef;
    --fpct-paper: #ffffff;
    --fpct-border: #d7e2e8;
    --fpct-muted: #60717d;
    --fpct-danger: #b93738;
    --fpct-success: #176b45;
}

.fpct-wrap,
.fpct-app,
.fpct-login {
    box-sizing: border-box;
    color: var(--fpct-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fpct-wrap *,
.fpct-app *,
.fpct-login * { box-sizing: border-box; }

.fpct-wrap {
    max-width: 1160px;
    margin: 2rem auto;
    overflow: hidden;
    border: 1px solid rgba(217, 168, 62, .48);
    border-radius: 26px;
    background:
        radial-gradient(circle at 8% 72%, rgba(16, 200, 232, .08), transparent 24%),
        radial-gradient(circle at 92% 62%, rgba(239, 73, 55, .07), transparent 24%),
        var(--fpct-cream);
    box-shadow: 0 26px 80px rgba(3, 17, 31, .18);
}

.fpct-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(280px, 32%, 365px);
    gap: clamp(2rem, 5vw, 4.5rem);
    min-height: 570px;
    align-items: center;
    padding: clamp(2.2rem, 6vw, 5rem);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 12% 20%, rgba(16, 200, 232, .18), transparent 24%),
        radial-gradient(circle at 78% 12%, rgba(217, 168, 62, .2), transparent 23%),
        linear-gradient(135deg, #020b15 0%, #071d31 58%, #04111e 100%);
}

.fpct-hero::before,
.fpct-hero::after {
    position: absolute;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.fpct-hero::before {
    inset: 16px;
    border: 1px solid rgba(244, 211, 123, .58);
    border-radius: 18px;
    box-shadow: inset 0 0 0 5px rgba(217, 168, 62, .05);
}

.fpct-hero::after {
    inset: 0;
    opacity: .62;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, .85) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(16, 200, 232, .8) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(244, 211, 123, .7) 0 1px, transparent 1.5px);
    background-position: 13px 19px, 44px 61px, 83px 26px;
    background-size: 91px 91px, 127px 127px, 151px 151px;
    mask-image: linear-gradient(90deg, #000, transparent 74%);
}

.fpct-hero-copy { position: relative; z-index: 2; min-width: 0; }

.fpct-kicker {
    display: block;
    color: var(--fpct-gold-light);
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.fpct-hero-date {
    display: inline-flex;
    margin-top: 1rem;
    padding: .38rem .72rem;
    border: 1px solid rgba(244, 211, 123, .6);
    border-radius: 99px;
    color: #fff;
    background: rgba(255, 255, 255, .07);
    font-size: .79rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fpct-hero h1,
.fpct-app-header h1 {
    margin: .65rem 0 .8rem;
    line-height: .98;
}

.fpct-hero h1 {
    width: 100%;
    max-width: 680px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 4.6vw, 4.1rem);
    font-weight: 700;
    letter-spacing: -.045em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 0 35px rgba(217, 168, 62, .15);
}

.fpct-hero-title-main,
.fpct-hero-title-year { display: block; }
.fpct-hero-title-main { line-height: .98; }
.fpct-hero-title-main::first-letter { color: var(--fpct-gold-light); }
.fpct-hero-title-line { display: block; width: fit-content; white-space: nowrap; }
.fpct-hero-title-line--champagne {
    color: var(--fpct-gold-light);
    font-style: italic;
    letter-spacing: -.035em;
}
.fpct-hero-title-line--toernooi { margin-top: -.04em; color: #fff; }
.fpct-hero-title-year {
    margin-top: .25em;
    color: #fff;
    font-size: .64em;
    line-height: .9;
    letter-spacing: .025em;
}

.fpct-hero-lead {
    max-width: 650px;
    margin: 0;
    color: #dce8ef;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.7;
}

.fpct-hero-facts {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.fpct-hero-facts span {
    padding: .52rem .72rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    color: #d9e7ed;
    background: rgba(255, 255, 255, .06);
    font-size: .8rem;
}

.fpct-hero-facts b { color: var(--fpct-gold-light); }

.fpct-hero-cta {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: .72rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 9px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--fpct-red), #c93431);
    box-shadow: 0 10px 28px rgba(239, 73, 55, .25);
    font-weight: 850;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease;
}

.fpct-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(239, 73, 55, .34);
}

.fpct-hero-poster {
    position: relative;
    z-index: 2;
    display: block;
    width: min(100%, 365px);
    justify-self: end;
    filter: drop-shadow(0 24px 35px rgba(0, 0, 0, .45));
    transform: rotate(1.2deg);
}

.fpct-hero-poster img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(244, 211, 123, .7);
    border-radius: 10px;
}

.fpct-form {
    margin: clamp(1rem, 3vw, 2.2rem);
    padding: clamp(1.4rem, 4vw, 3.5rem);
    scroll-margin-top: 2rem;
    border: 1px solid rgba(7, 27, 44, .09);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 55px rgba(7, 27, 44, .08);
}

.fpct-form fieldset { padding: 0; margin: 0 0 2.6rem; border: 0; }

.fpct-form legend {
    width: 100%;
    padding: 0 0 .8rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--fpct-border);
    color: var(--fpct-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.fpct-form legend::after {
    display: block;
    width: 58px;
    height: 3px;
    margin-top: .78rem;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--fpct-gold), var(--fpct-red), var(--fpct-cyan));
    content: "";
}

.fpct-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.fpct-fields label,
.fpct-form > label { color: #294352; font-size: .9rem; font-weight: 750; }

.fpct-fields label span,
.fpct-check span { color: var(--fpct-danger); }

.fpct-fields input,
.fpct-fields select,
.fpct-toolbar input,
.fpct-toolbar select,
.fpct-player-lookup {
    width: 100%;
    min-height: 48px;
    padding: .72rem .88rem;
    margin-top: .35rem;
    border: 1px solid #b9cbd4;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--fpct-ink);
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.fpct-fields input:focus,
.fpct-fields select:focus,
.fpct-player-lookup:focus {
    border-color: var(--fpct-cyan);
    box-shadow: 0 0 0 3px rgba(16, 200, 232, .14);
}

.fpct-field-wide { grid-column: 1 / -1; }
.fpct-section-intro { margin: 0 0 1rem; color: var(--fpct-muted); line-height: 1.6; }

.fpct-player-entry {
    position: relative;
    padding: 1.15rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--fpct-border);
    border-radius: 14px;
    background: linear-gradient(145deg, #fff, #f7fbfc);
}

.fpct-player-entry::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(var(--fpct-cyan), var(--fpct-red));
    content: "";
}

.fpct-player-entry > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
}

.fpct-player-entry h3 { margin: 0; font-size: 1rem; }

.fpct-remove-player {
    padding: .3rem .6rem;
    border: 0;
    background: transparent;
    color: var(--fpct-danger);
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
}

.fpct-player-lookup-label {
    position: relative;
    display: block;
    color: #294352;
    font-size: .9rem;
    font-weight: 750;
}

.fpct-optional { color: var(--fpct-muted); font-weight: 500; }

.fpct-player-results {
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: .45rem;
    margin: .3rem 0 .8rem;
    border: 1px solid var(--fpct-border);
    border-radius: 9px;
    background: #fff;
    color: var(--fpct-muted);
    font-size: .82rem;
    box-shadow: 0 12px 30px rgba(9, 32, 51, .1);
}

.fpct-player-result {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .68rem .72rem;
    border: 0;
    border-bottom: 1px solid #edf2f4;
    background: #fff;
    color: var(--fpct-ink);
    text-align: left;
    cursor: pointer;
}

.fpct-player-results .fpct-player-result {
    border-radius: 6px !important;
    background: #fff !important;
    color: var(--fpct-ink) !important;
}

.fpct-player-result:last-child { border-bottom: 0; }
.fpct-player-results .fpct-player-result:hover { background: #eafafd !important; }
.fpct-player-results .fpct-player-result span { color: var(--fpct-muted) !important; font-size: .75rem; }

.fpct-player-match {
    width: fit-content;
    padding: .38rem .6rem;
    margin: .5rem 0 .8rem;
    border-radius: 99px;
    background: #e8f7ef;
    color: var(--fpct-success);
    font-size: .76rem;
    font-weight: 800;
}

.fpct-player-fields { margin-top: .8rem; }

.fpct-player-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

.fpct-player-footer .fpct-check { margin: .5rem 0; }
.fpct-handicap-preview { color: var(--fpct-blue); font-size: .78rem; font-weight: 800; }

.fpct-add-player {
    padding: .72rem 1rem;
    border: 1px solid var(--fpct-blue);
    border-radius: 9px;
    background: #fff;
    color: var(--fpct-blue);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}

.fpct-add-player:hover { color: #fff; background: var(--fpct-blue); }
.fpct-add-player:disabled { opacity: .5; cursor: not-allowed; }

.fpct-shifts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }

.fpct-shift {
    position: relative;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: .15rem .7rem;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid var(--fpct-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.fpct-shift::after {
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fpct-cyan), var(--fpct-gold), var(--fpct-red));
    content: "";
    opacity: 0;
}

.fpct-shift:hover {
    border-color: var(--fpct-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(7, 27, 44, .08);
}

.fpct-shift:has(input:checked) {
    border-color: var(--fpct-blue);
    background: #ecf9fc;
    box-shadow: 0 0 0 2px rgba(16, 200, 232, .14);
}

.fpct-shift:has(input:checked)::after { opacity: 1; }

.fpct-shift input {
    grid-row: 1 / 4;
    align-self: start;
    width: 18px;
    height: 18px;
    margin-top: .2rem;
    accent-color: var(--fpct-red);
}

.fpct-shift-date { font-weight: 850; }
.fpct-shift-meta { color: var(--fpct-muted); font-size: .82rem; }

.fpct-restricted {
    width: fit-content;
    padding: .18rem .45rem;
    margin-top: .25rem;
    border-radius: 99px;
    background: #fff3cb;
    color: #6f5310;
    font-size: .74rem;
    font-weight: 800;
}

.fpct-shift.is-full { opacity: .58; cursor: not-allowed; }
.fpct-shift-selection-summary {
    padding: .8rem 1rem;
    margin: .9rem 0 0;
    border-left: 4px solid var(--fpct-gold);
    border-radius: 8px;
    background: #fff9e7;
    color: var(--fpct-ink);
    font-size: .84rem;
    font-weight: 750;
}
.fpct-fees { display: flex; gap: .8rem; flex-wrap: wrap; }

.fpct-fees > div {
    flex: 1;
    min-width: 230px;
    display: flex;
    gap: .6rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(217, 168, 62, .5);
    border-radius: 12px;
    background: linear-gradient(135deg, #fffdf7, #fff);
}

.fpct-fees strong {
    margin-left: auto;
    color: var(--fpct-red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
}

.fpct-fees > div:nth-child(2) strong { color: var(--fpct-blue); }
.fpct-payment-title { margin: 1.4rem 0 .7rem; color: var(--fpct-ink); font-size: 1rem; }
.fpct-payment-title span { color: var(--fpct-danger); }
.fpct-payment-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.fpct-payment-method { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .7rem; align-items: start; padding: 1rem; border: 1px solid var(--fpct-border); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.fpct-payment-method:hover { border-color: var(--fpct-blue); }
.fpct-payment-method:has(input:checked) { border-color: var(--fpct-blue); background: #ecf9fc; box-shadow: 0 0 0 2px rgba(16, 200, 232, .14); }
.fpct-payment-method input { width: 18px; height: 18px; margin: .2rem 0 0; accent-color: var(--fpct-red); }
.fpct-payment-method span { color: var(--fpct-muted); font-size: .82rem; line-height: 1.5; }
.fpct-payment-method strong { display: block; margin-bottom: .15rem; color: var(--fpct-ink); font-size: .95rem; }
.fpct-inline-checks { display: flex; gap: 0 2rem; flex-wrap: wrap; }

.fpct-check {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: 1rem 0;
    line-height: 1.45;
}

.fpct-check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: .15rem;
    accent-color: var(--fpct-red);
}

.fpct-check a { color: var(--fpct-blue); font-weight: 800; }
.fpct-far-travel { padding: .8rem 1rem; border-radius: 9px; background: #fff7da; }

.fpct-submit,
.fpct-login-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: .82rem 1.35rem;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--fpct-red), #c93230);
    box-shadow: 0 10px 24px rgba(239, 73, 55, .2);
    color: #fff !important;
    font: inherit;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.fpct-submit:hover,
.fpct-login-button:hover { background: linear-gradient(135deg, #ff5b47, #b9272b); }
.fpct-fineprint { color: var(--fpct-muted); font-size: .8rem; line-height: 1.55; }

.fpct-alert {
    margin: 1.4rem clamp(1.4rem, 4vw, 3.5rem) 0;
    padding: 1rem 1.15rem;
    border-radius: 10px;
}

.fpct-alert--success { background: #e8f7ef; color: var(--fpct-success); }
.fpct-alert--error { background: #fff0f0; color: var(--fpct-danger); }

.fpct-rules {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.35rem clamp(1.4rem, 4vw, 3.5rem);
    border-bottom: 1px solid rgba(217, 168, 62, .35);
    background: linear-gradient(120deg, #fff, #fbf4df);
}

.fpct-rules .fpct-kicker { color: #8b6412; }

.fpct-rules h2 {
    margin: .2rem 0 .3rem;
    color: var(--fpct-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
}

.fpct-rules p {
    max-width: 720px;
    margin: 0;
    color: var(--fpct-muted);
    font-size: .84rem;
    line-height: 1.6;
}

.fpct-rules > a {
    flex: 0 0 auto;
    padding: .72rem .92rem;
    border: 1px solid #956c17;
    border-radius: 8px;
    color: #78540b;
    font-size: .82rem;
    font-weight: 850;
    text-decoration: none;
}

.fpct-rules > a:hover { color: #fff; background: #8d6512; }
.fpct-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.fpct-login {
    max-width: 620px;
    padding: 2.5rem;
    margin: 3rem auto;
    border: 1px solid var(--fpct-border);
    border-radius: 18px;
    text-align: center;
    background: #fff;
}

@media (max-width: 900px) {
    .fpct-wrap { border-radius: 18px; }
    .fpct-hero { grid-template-columns: minmax(0, 1fr) clamp(230px, 31%, 300px); gap: 2rem; min-height: 510px; }
    .fpct-hero-poster { width: min(100%, 300px); }
}

@media (max-width: 700px) {
    .fpct-wrap { margin: .75rem auto; }
    .fpct-hero { grid-template-columns: 1fr; min-height: 0; padding: 2.2rem 1.5rem; }
    .fpct-hero::before { inset: 9px; }
    .fpct-hero h1 { max-width: 100%; font-size: clamp(2.55rem, 12.5vw, 3.7rem); }
    .fpct-hero-poster { width: min(88%, 340px); justify-self: center; transform: none; }
    .fpct-hero-facts { gap: .45rem; }
    .fpct-hero-facts span { width: 100%; }
    .fpct-fields,
    .fpct-shifts { grid-template-columns: 1fr; }
    .fpct-payment-methods { grid-template-columns: 1fr; }
    .fpct-field-wide { grid-column: auto; }
    .fpct-rules { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .fpct-rules > a { width: 100%; text-align: center; }
    .fpct-form { margin: .7rem; padding: 1.2rem; border-radius: 14px; }
    .fpct-player-result { align-items: flex-start; flex-direction: column; gap: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .fpct-hero-cta,
    .fpct-shift,
    .fpct-add-player { transition: none; }
}
