.family-form { display: grid; gap: 12px; max-width: 700px; }
.family-form label { font-size: 18px; color: var(--house-ivory); margin-top: 8px; }
.family-form input:not([type=checkbox]):not([type=hidden]), .family-form textarea { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 54px; padding: 14px; background: #0b191e; color: var(--text); border: 1px solid #b3cdbd75; border-radius: 9px; font: 18px/1.5 var(--body); }
.family-form textarea { resize: vertical; min-height: 150px; }
.family-form input:focus-visible, .family-form textarea:focus-visible { outline: 2px solid var(--house-gold); outline-offset: 3px; }
.family-form .button { min-height: 56px; white-space: normal; font-size: 17px; margin-top: 12px; }
.family-form .family-checkbox { display: flex; align-items: center; gap: 12px; }
.family-checkbox input { width: 24px; height: 24px; flex-shrink: 0; }
.family-form input[type=file] { font-size: 16px !important; overflow: hidden; }
.family-form input::file-selector-button { min-height: 44px; background: var(--house-mint); border: 0; border-radius: 5px; margin-right: 10px; padding: 8px; color: #102821; font: inherit; }
.form-trap, .validation-summary-valid { display: none !important; }
.form-help { color: var(--muted); font-size: 16px; line-height: 1.65; margin: 4px 0 12px; }
.family-notice { border: 1px solid var(--house-mint); border-radius: 10px; padding: 20px; color: var(--house-ivory); }
.family-guestbook h2 { font-size: clamp(28px, 4vw, 46px); }
.guestbook-messages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.family-message { min-width: 0; border-top: 1px solid #d4b57a45; padding: 22px 0; }
.family-message h3 { color: var(--house-gold); font-size: 20px; overflow-wrap: anywhere; }
.family-message p { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--house-ivory); }
.family-navigation { display: flex; flex-wrap: wrap; gap: 12px 28px; width: 100%; }
.family-navigation a { display: inline-flex; align-items: center; min-height: 48px; font-size: 17px; }
.family-events h1, .contribution-page h1 { font-size: clamp(30px, 4vw, 56px); line-height: 1.2; overflow-wrap: anywhere; }
.family-event-card { border-top: 1px solid #d4b57a50; padding: 32px 0; margin-top: 32px; }
.family-event-card h2 { font-size: clamp(26px, 3vw, 40px); }
.donation-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 48px; align-items: start; }
.donation-layout > section { min-width: 0; }
.donation-layout h2, .contributor-list h2 { font-size: clamp(25px, 2.5vw, 34px); }
.donation-qr { text-align: center; padding: 28px; border: 1px solid #d4b57a50; border-radius: 16px; background: #1a2b27; }
.donation-qr > img { display: block; width: min(100%, 380px); height: auto; object-fit: contain; margin: 24px auto; background: #fff; border-radius: 6px; }
.contribution-total { display: grid; gap: 12px; margin-top: 36px; }
.contribution-total > span { font-size: 17px; letter-spacing: .08em; color: var(--house-mint); }
.contribution-total > strong { font-size: clamp(34px, 5vw, 70px); color: var(--house-ivory); overflow-wrap: anywhere; line-height: 1.2; }
.contributor-list { margin-top: 56px; }
.contributor-list ul { list-style: none; padding: 0; max-width: 750px; }
.contributor-list li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; overflow-wrap: anywhere; }
.thanks-card { position: relative; isolation: isolate; max-width: 850px; margin: 0 auto; padding: clamp(28px, 6vw, 72px); text-align: center; border: 1px solid #d4b57a90; border-radius: 24px; background: #142923; overflow: hidden; }
.thanks-card > :not(.thanks-glow):not(.thanks-particles) { position: relative; z-index: 1; }
.thanks-glow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse at 50% 25%, #d4b57a2e, transparent 65%); }
.thanks-card h1 { font-size: clamp(38px, 7vw, 80px); color: var(--house-gold); line-height: 1.1; margin-bottom: 30px; }
.thanks-name { font-size: clamp(26px, 4vw, 44px); overflow-wrap: anywhere; margin: 30px 0 16px; }
.thanks-amount { font-size: clamp(28px, 4vw, 48px); color: var(--house-mint); overflow-wrap: anywhere; font-weight: 750; }
.thanks-family { margin-top: 38px; }
.thanks-family strong { display: inline-block; margin-top: 10px; letter-spacing: .06em; font-size: 20px; }
.thanks-tagline { color: var(--house-gold); font-family: Georgia, serif; }
.thanks-card .button { white-space: normal; min-height: 56px; margin-top: 20px; font-size: 17px; }
.thanks-particles { position: absolute; inset: 0; pointer-events: none; }
.thanks-particles i { position: absolute; top: 30%; left: calc(12% + var(--particle) * 9%); width: 5px; height: 11px; border-radius: 2px; background: var(--house-gold); opacity: 0; }
.thanks-particles i:nth-child(even) { background: var(--house-mint); }
@media (prefers-reduced-motion: no-preference) {
    .thanks-card { animation: thank-you-reveal 2.6s ease both; }
    .thanks-particles i { animation: thank-you-particle 2.4s .15s ease-out both; }
}
@keyframes thank-you-reveal { from { opacity: .75; transform: translateY(12px); box-shadow: 0 0 0 #d4b57a00; } 45% { box-shadow: 0 0 60px #d4b57a20; } to { opacity: 1; transform: none; box-shadow: 0 12px 40px #0002; } }
@keyframes thank-you-particle { 0% { opacity: 0; transform: translateY(-20px) rotate(0); } 20% { opacity: .7; } 100% { opacity: 0; transform: translateY(190px) rotate(130deg); } }
@media (max-width: 800px) { .donation-layout { grid-template-columns: minmax(0, 1fr); gap: 42px; } }
@media (max-width: 600px) {
    .guestbook-messages { grid-template-columns: minmax(0, 1fr); }
    .donation-qr { padding: 22px 16px; }
    .donation-qr > img { width: 100%; }
    .family-form .button { width: 100%; }
    .thanks-card { padding: 32px 20px; }
}

.event-notice{border:1px solid #63877c;border-radius:18px;padding:clamp(18px,4vw,30px);margin:24px 0;background:#12272b;color:#f5f5ef}.event-notice h2{font-size:clamp(22px,4vw,32px)}.jersey-placeholder{padding:28px 12px;border:2px dashed #83ad9f;border-radius:12px;text-align:center}.jersey-image{display:block;width:100%;max-width:600px;height:auto;margin:auto}.couples-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:18px}.couple-card{border:1px solid #63877c;border-radius:14px;padding:20px;overflow-wrap:anywhere}.rulebook{max-width:850px;line-height:1.8}.rulebook li{margin-bottom:14px}.photo-like{min-height:48px;width:100%;font-size:16px}.photo-like:disabled{opacity:1;color:#a9efd1}.memories-album figure{margin-bottom:16px}.memories-album figcaption{padding-top:8px}
.donation-layout > section,.family-form,.family-form fieldset{min-width:0}.family-form fieldset{margin:0;padding:12px}.family-form legend{font-size:1rem;white-space:normal;max-width:100%}.family-checkbox{overflow-wrap:anywhere}
