@font-face {
    font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400;
    font-display: swap; src: url("/fonts/cormorant-garamond-regular.ttf") format("truetype");
}
@font-face {
    font-family: "Inter"; font-style: normal; font-weight: 400;
    font-display: swap; src: url("/fonts/inter-regular.ttf") format("truetype");
}
@font-face {
    font-family: "Inter"; font-style: normal; font-weight: 500;
    font-display: swap; src: url("/fonts/inter-medium.ttf") format("truetype");
}

:root {
    color-scheme: dark;
    --background: #10110e;
    --surface: #1c1d17;
    --border: #3a3b30;
    --text: #e9e7de;
    --muted: #a3a398;
    --amber: #b58f50;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Inter", Arial, sans-serif;
    --inset: clamp(48px, 5.556vw, 100px);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font-family: var(--sans); }
.club {
    display: grid;
    grid-template-columns: 47.222% 52.778%;
    grid-template-rows: auto 1fr auto;
    min-height: max(900px, 100svh);
    position: relative;
}
.brand {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 52px var(--inset) 0;
    font-family: var(--serif);
    font-size: 24px;
    letter-spacing: .04em;
    white-space: nowrap;
    z-index: 1;
}
.brand img { flex: 0 0 auto; }
.hero { grid-column: 2; grid-row: 1 / 4; overflow: hidden; position: relative; min-height: 100%; }
.hero img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #10110e28, transparent 35%); }
.content { grid-column: 1; grid-row: 2; padding: 94px var(--inset) 40px; }
h1, h2, p { margin: 0; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 5.556vw, 88px); line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.intro { margin-top: 20px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.login { margin-top: 36px; max-width: 480px; }
.field + .field { margin-top: 20px; }
label { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; margin-bottom: 8px; }
input {
    width: 100%; min-width: 0; height: 52px; border: 1px solid var(--border); border-radius: 0;
    background: var(--surface); color: var(--text); padding: 0 16px; font: 14px var(--sans);
    transition: border-color .18s ease;
}
input::placeholder { color: #96968a; opacity: 1; }
input:focus-visible { outline: 1px solid var(--amber); outline-offset: 2px; border-color: var(--amber); }
button {
    display: block; margin-top: 18px; width: 100%; min-height: 50px; border: 1px solid var(--amber);
    border-radius: 0; background: var(--amber); color: #14130e; font: 500 14px var(--sans);
    cursor: pointer; transition: background .18s ease, border-color .18s ease;
}
button:hover { background: #c8a365; border-color: #c8a365; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .7; }
.login-result, .no-script { margin-top: 14px; font-size: 14px; line-height: 1.5; color: #d7b77e; }
.rules { margin-top: 34px; max-width: 480px; }
.rules::before { content: ""; display: block; width: 40px; height: 1px; margin-bottom: 18px; background: #82724d; }
h2 { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.3; }
.rules p { color: var(--muted); font-size: 12px; line-height: 1.65; margin-top: 14px; }
.footer { grid-column: 1; grid-row: 3; padding: 0 var(--inset) 36px; font-size: 11px; line-height: 1.5; }
.footer a { color: #89897d; text-decoration: none; }
.footer a:hover { color: var(--amber); }

.rules-link { color: inherit; text-decoration: none; }
.rules-link:hover { color: var(--amber); }
.rules-content { padding-top: 160px; }
.members-link { font: 24px/1.3 var(--serif); color: #ae9d75; text-decoration: none; }
.members-link:hover { color: var(--text); }
.rules-content h1 { font-size: 64px; margin-top: 16px; white-space: normal; letter-spacing: -.025em; }
.rules-divider { width: 40px; height: 1px; background: #82724d; margin-top: 36px; }
.language-switch { display: flex; gap: 8px; margin-top: 36px; max-width: 480px; }
.language-option {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 80px; min-height: 34px; padding: 8px 16px;
    border: 1px solid #82724d; color: var(--muted); text-decoration: none;
    font-size: 10px; line-height: 1.4; text-transform: uppercase;
}
.language-option:hover { color: var(--text); border-color: var(--amber); }
.language-option.is-active { color: #15140f; background: #b7a16f; border-color: #b7a16f; }
.rules-detail { margin-top: 36px; max-width: 480px; }
.rules-detail h2 { font: 400 10px/1.5 var(--sans); color: #ae9d75; text-transform: uppercase; }
.rules-detail p { margin-top: 16px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.back-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    margin-top: 44px; min-height: 48px; padding: 10px 24px;
    border: 1px solid #82724d; color: var(--text); font-size: 14px; text-decoration: none;
}
.back-link:hover { border-color: var(--amber); background: var(--surface); }
.back-arrow { font-size: 26px; line-height: 1; color: #ae9d75; }

@media (max-width: 1000px) and (min-width: 761px) {
    :root { --inset: 40px; }
    h1 { font-size: 52px; }
    .intro { font-size: 14px; }
}

@media (max-width: 760px) {
    .club { display: flex; flex-direction: column; min-height: 100svh; }
    .brand { position: absolute; top: 0; left: 0; padding: 28px; gap: 12px; font-size: 22px; }
    .brand img { width: 40px; height: 40px; }
    .hero { order: 0; height: auto; aspect-ratio: 390 / 334; min-height: 0; flex: 0 0 auto; }
    .hero img { object-position: center; }
    .hero::after { background: none; }
    .content { order: 1; padding: 28px 28px 0; }
    h1 { font-size: 48px; line-height: 1.1; letter-spacing: -.035em; }
    .intro { font-size: 14px; margin-top: 14px; }
    .login { margin-top: 32px; }
    input { font-size: 16px; }
    .rules { margin-top: 30px; }
    .rules p { font-size: 12px; }
    .footer { order: 2; margin-top: auto; padding: 32px 28px 28px; }
    .rules-page { min-height: max(788px, 100svh); }
    .rules-content { padding-top: 18px; padding-bottom: 0; }
    .members-link { font-size: 20px; }
    .rules-content h1 { font-size: 44px; margin-top: 16px; }
    .rules-divider { margin-top: 28px; }
    .language-switch { margin-top: 28px; }
    .language-option { flex: 1; min-width: 0; min-height: 40px; }
    .rules-detail { margin-top: 28px; }
    .rules-detail p { font-size: 14px; line-height: 1.7; margin-top: 14px; }
    .back-link { display: flex; width: 100%; margin-top: 32px; }
    .rules-page .footer { margin-top: 0; }
}

@media (max-width: 360px) {
    .brand { padding: 24px; }
    .content { padding-inline: 24px; }
    h1 { font-size: 42px; }
    .rules-content h1 { font-size: 38px; }
    .footer { padding-inline: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    input, button { transition: none; }
}
