:root {
    --navy-950: #08111f;
    --navy-900: #0f192b;
    --navy-800: #17243a;
    --orange: #ef6635;
    --orange-dark: #ca4e25;
    --paper: #f5f2eb;
    --paper-strong: #e8e2d7;
    --white: #fff;
    --ink: #172033;
    --muted: #687386;
    --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Noto Sans TC", "Noto Sans JP", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
body::selection { background: rgba(239, 102, 53, .24); }
a { color: inherit; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
section[id] { scroll-margin-top: 82px; }

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    transform: translateY(-160%);
    border-radius: 10px;
    background: var(--white);
    color: var(--navy-900);
    font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 145px; height: auto; }

.match-hero {
    position: relative;
    min-height: 760px;
    padding: 170px 0 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 42%, rgba(239, 102, 53, .18), transparent 28%),
        linear-gradient(135deg, var(--navy-950), var(--navy-900));
    color: var(--white);
}
.match-hero::before {
    position: absolute;
    inset: 0;
    opacity: .07;
    background-image:
        linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
    background-size: 64px 64px;
    content: "";
}
.match-hero-grid {
    position: relative;
    z-index: 1;
    display: block;
    padding-bottom: 88px;
}
.match-hero-copy { max-width: 720px; }
.eyebrow,
.feature-term {
    margin: 0 0 12px;
    color: var(--orange);
    font-family: "Outfit", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}
.match-hero h1 {
    max-width: 760px;
    margin: 0 0 26px;
    font-family: "Outfit", "Noto Sans TC", "Noto Sans JP", sans-serif;
    font-size: clamp(54px, 7.4vw, 96px);
    line-height: .95;
    letter-spacing: -.045em;
}
.match-hero-intro {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.74);
    font-size: clamp(17px, 1.7vw, 20px);
}
.back-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 0 14px 34px rgba(239,102,53,.28);
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}
.back-button:hover { transform: translateY(-2px); background: var(--orange-dark); }
.back-button:focus-visible,
.feature-shortcuts a:focus-visible,
.site-footer a:focus-visible {
    outline: 3px solid #ffd3c4;
    outline-offset: 4px;
}

.feature-shortcuts {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255,255,255,.12);
}
.feature-shortcuts a {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-right: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.84);
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.feature-shortcuts a:first-child { border-left: 1px solid rgba(255,255,255,.12); }
.feature-shortcuts a:hover { background: rgba(255,255,255,.07); color: var(--white); }
.feature-shortcuts span { color: var(--orange); font-family: "Outfit", sans-serif; font-size: 12px; font-weight: 800; }
.feature-shortcuts strong { font-family: "Outfit", sans-serif; font-size: clamp(14px, 1.5vw, 18px); letter-spacing: -.01em; }

.match-feature { min-height: 560px; display: grid; align-items: center; padding: 112px 0; border-top: 1px solid var(--paper-strong); background: var(--paper); }
.match-feature-dark { background: var(--navy-900); color: var(--white); }
.match-feature-grid { display: grid; grid-template-columns: minmax(190px, .4fr) minmax(0, 1fr); align-items: center; gap: 70px; }
.feature-number {
    color: rgba(23,32,51,.08);
    font-family: "Outfit", sans-serif;
    font-size: clamp(120px, 18vw, 230px);
    font-weight: 800;
    line-height: .78;
    letter-spacing: -.075em;
}
.match-feature-dark .feature-number { color: rgba(255,255,255,.055); }
.feature-copy h2 {
    margin: 0;
    font-family: "Outfit", "Noto Sans TC", "Noto Sans JP", sans-serif;
    font-size: clamp(48px, 7vw, 84px);
    line-height: 1;
    letter-spacing: -.04em;
}
.feature-body {
    max-width: 760px;
    margin-top: 30px;
    color: var(--muted);
    font-size: clamp(16px, 1.5vw, 18px);
}
.match-feature-dark .feature-body { color: rgba(255,255,255,.7); }
.feature-body p { margin: 0; }
.feature-body p + p { margin-top: 18px; }
.feature-detail-link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 11px 19px;
    border: 1px solid rgba(239,102,53,.38);
    border-radius: 999px;
    background: rgba(239,102,53,.08);
    color: var(--orange-dark);
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.match-feature-dark .feature-detail-link { color: #ff916b; }
.feature-detail-link:hover {
    transform: translateY(-2px);
    border-color: var(--orange);
    background: rgba(239,102,53,.14);
}
.feature-detail-link:focus-visible { outline: 3px solid #ffd3c4; outline-offset: 4px; }
.handicap-content { max-width: 860px; margin-top: 34px; }
.handicap-block h3 {
    margin: 0 0 22px;
    font-family: "Outfit", "Noto Sans TC", "Noto Sans JP", sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -.025em;
}
.handicap-rule-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.handicap-rule-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 15px 18px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 13px;
    background: rgba(255,255,255,.045);
}
.handicap-rule-list li > span {
    min-height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(239,102,53,.14);
    color: #ff916b;
    font-family: "Outfit", sans-serif;
    font-size: 12px;
    font-weight: 800;
}
.handicap-rule-list p { margin: 0; color: rgba(255,255,255,.72); }
.handicap-manual { margin-top: 82px; }
.handicap-manual-intro { max-width: 720px; margin: -6px 0 28px; color: rgba(255,255,255,.66); font-size: 17px; }
.handicap-manual-image,
.cork-feature-image {
    max-width: 860px;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    background: var(--navy-950);
    box-shadow: 0 18px 44px rgba(0,0,0,.16);
}
.cork-feature-image { margin-top: 30px; }
.handicap-manual-image img,
.cork-feature-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .24s ease;
}
.handicap-manual-image:hover img,
.cork-feature-image:hover img { transform: scale(1.01); }
.handicap-manual-image:focus-visible,
.cork-feature-image:focus-visible { outline: 3px solid #ffd3c4; outline-offset: -6px; }
.pending-content {
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    padding: 22px 24px;
    border: 1px dashed rgba(23,32,51,.2);
    border-radius: 16px;
    color: var(--muted);
}
.match-feature-dark .pending-content { border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.58); }
.pending-content p { margin: 0; font-weight: 700; }
.pending-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(239,102,53,.12); }

.site-footer { padding: 28px 0; background: var(--navy-950); color: rgba(255,255,255,.58); font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer a { color: var(--white); font-weight: 800; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }

@media (max-width: 900px) {
    .match-hero { padding-top: 150px; }
    .feature-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-shortcuts a:nth-child(2) { border-right: 0; }
    .feature-shortcuts a:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
    .match-feature-grid { grid-template-columns: 150px minmax(0, 1fr); gap: 38px; }
}

@media (max-width: 620px) {
    .shell { width: min(calc(100% - 28px), var(--shell)); }
    .match-hero { min-height: auto; padding-top: 132px; }
    .match-hero-grid { padding-bottom: 60px; }
    .match-hero h1 { font-size: clamp(48px, 17vw, 72px); }
    .match-hero-intro { font-size: 16px; }
    .feature-shortcuts { width: 100%; grid-template-columns: 1fr 1fr; }
    .feature-shortcuts a { min-height: 76px; padding: 15px 18px; }
    .match-feature { min-height: 480px; padding: 82px 0; }
    .match-feature-grid { grid-template-columns: 1fr; gap: 28px; }
    .feature-number { font-size: 100px; }
    .feature-copy h2 { font-size: clamp(42px, 14vw, 62px); overflow-wrap: anywhere; }
    .pending-content { margin-top: 26px; padding: 18px; }
    .handicap-manual-image,
    .cork-feature-image { border-radius: 14px; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
    .site-header, .feature-shortcuts, .back-button, .site-footer { display: none !important; }
    .match-hero, .match-feature, .match-feature-dark { min-height: auto; padding: 42px 0; background: var(--white) !important; color: var(--ink) !important; }
}
