:root {
  --birthday-ink: #1d3557;
  --birthday-red: #e63946;
  --birthday-teal: #457b9d;
  --birthday-mint: #a8dadc;
  --birthday-cream: #f7fbf4;
  --birthday-gold: #f4c95d;
  --birthday-paper: #fffdf8;
}

.birthday-page { position: relative; }
.birthday-hero { max-width: 880px; margin-left: auto; margin-right: auto; }
.birthday-badge { display: inline-flex; align-items: center; gap: .6rem; padding: .65rem 1rem; border: 1px solid rgba(69,123,157,.25); border-radius: 999px; background: #fff; color: var(--birthday-ink); font: 700 .75rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.birthday-badge span { color: var(--birthday-red); font-size: .75rem; }
.birthday-kicker { margin: 1.8rem 0 .65rem; color: var(--birthday-teal); font: 700 .72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .22em; }
.birthday-hero h1 { max-width: 900px; margin: 0 auto 1.5rem; color: var(--birthday-ink); font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; line-height: .98; letter-spacing: -.045em; }
.birthday-hero-copy { max-width: 660px; margin: 0 auto; color: #4b5563; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.75; }

.birthday-tool, .birthday-section { margin-bottom: 4rem; border: 2px solid #e5e7eb; border-radius: 1.5rem; background: #fff; padding: clamp(1.4rem, 5vw, 3rem); box-shadow: 0 18px 45px rgba(29,53,87,.08); }
.birthday-tool { position: relative; overflow: hidden; }
.birthday-tool::before { position: absolute; inset: 0 0 auto; height: .45rem; content: ''; background: repeating-linear-gradient(90deg,var(--birthday-red) 0 44px,var(--birthday-gold) 44px 88px,var(--birthday-mint) 88px 132px,var(--birthday-ink) 132px 176px); }
.birthday-overline, .birthday-section-label { color: var(--birthday-red); font: 800 .73rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.birthday-tool-copy { max-width: 710px; margin-bottom: 2rem; }
.birthday-tool h2, .birthday-section h2, .birthday-guide h2, .birthday-related h2 { margin: .6rem 0 1rem; color: var(--birthday-ink); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.birthday-tool-copy > p:last-child, .birthday-section-intro { color: #4b5563; font-size: 1.03rem; line-height: 1.7; }
.birthday-filter-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .8rem; margin-bottom: 1rem; }
.birthday-field { min-width: 0; }
.birthday-field > span { display: block; min-height: 2.35rem; margin-bottom: .45rem; color: var(--birthday-ink); font-size: .84rem; font-weight: 800; line-height: 1.25; }
.birthday-field select { width: 100%; min-height: 3.25rem; border: 2px solid #d8e0e8; border-radius: .85rem; background: #fff; padding: 0 2.25rem 0 .85rem; color: var(--birthday-ink); font-weight: 700; }
.birthday-field select:focus-visible, .birthday-primary-button:focus-visible, .birthday-result-actions button:focus-visible, .birthday-related a:focus-visible, .birthday-faq summary:focus-visible { outline: 4px solid rgba(244,201,93,.7); outline-offset: 3px; }
.birthday-primary-button { display: flex; width: 100%; min-height: 3.75rem; align-items: center; justify-content: center; gap: .65rem; border: 0; border-radius: 1rem; background: var(--birthday-red); color: #fff; font-size: 1.05rem; font-weight: 800; box-shadow: 0 12px 24px rgba(230,57,70,.2); transition: transform .2s ease, box-shadow .2s ease; }
.birthday-primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(230,57,70,.28); }
.birthday-result { position: relative; min-height: 290px; margin-top: 1.5rem; overflow: hidden; border: 3px solid var(--birthday-ink); border-radius: 1.4rem; background-color: var(--birthday-paper); background-image: radial-gradient(rgba(29,53,87,.08) 1px,transparent 1px); background-size: 17px 17px; padding: clamp(1.4rem,4vw,2.5rem); }
.birthday-result-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.birthday-result-icon { display: inline-grid; width: 3.5rem; height: 3.5rem; place-items: center; margin-bottom: 1rem; border-radius: 50%; background: var(--birthday-gold); color: var(--birthday-ink); font-size: 1.4rem; }
.birthday-result h3 { color: var(--birthday-ink); font-size: clamp(1.65rem,4vw,2.45rem); font-weight: 850; line-height: 1.12; }
.birthday-result p { margin-top: .85rem; color: #4b5563; font-size: 1.02rem; line-height: 1.7; }
.birthday-result-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: 1.1rem; }
.birthday-result-meta span { border: 1px solid rgba(69,123,157,.25); border-radius: 999px; background: rgba(168,218,220,.22); padding: .35rem .65rem; color: var(--birthday-ink); font-size: .75rem; font-weight: 800; }
.birthday-result-plan { max-width: 630px; margin: 1.25rem auto 0; padding-top: 1.1rem; border-top: 1px dashed rgba(29,53,87,.25); text-align: left; }
.birthday-result-plan strong { color: var(--birthday-ink); }
.birthday-result-plan ol { margin: .65rem 0 0 1.2rem; color: #4b5563; list-style: decimal; }
.birthday-result-plan li + li { margin-top: .35rem; }
.birthday-result-actions { position: relative; z-index: 1; display: flex; justify-content: center; gap: .7rem; margin-top: 1.5rem; }
.birthday-result-actions[hidden] { display: none; }
.birthday-result-actions button { border: 2px solid var(--birthday-ink); border-radius: .8rem; padding: .7rem 1rem; font-weight: 800; }
.birthday-result-actions button:first-child { background: var(--birthday-ink); color: #fff; }
.birthday-result-actions button:last-child { background: #fff; color: var(--birthday-ink); }
.birthday-status { min-height: 1.4rem; margin-top: .75rem; color: #6b7280; font-size: .85rem; font-weight: 700; text-align: center; }
.birthday-result.is-revealing .birthday-result-content { animation: birthday-reveal .42s ease both; }
@keyframes birthday-reveal { from { opacity: 0; transform: translateY(12px) rotate(-.6deg); } to { opacity: 1; transform: none; } }

.birthday-steps { margin-top: 2rem; }
.birthday-steps li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.2rem 0; border-top: 1px solid #e5e7eb; }
.birthday-step-number { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border-radius: .75rem; background: var(--birthday-ink); color: #fff; font: 800 .9rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.birthday-steps h3, .birthday-intent-card h3 { color: var(--birthday-ink); font-size: 1.08rem; font-weight: 800; }
.birthday-steps p, .birthday-intent-card p { margin-top: .3rem; color: #4b5563; line-height: 1.65; }
.birthday-intent-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; margin-top: 2rem; }
.birthday-intent-card { border: 1px solid #dfe6ed; border-radius: 1.1rem; background: var(--birthday-cream); padding: 1.25rem; }
.birthday-intent-card > span { display: block; margin-bottom: .75rem; font-size: 1.65rem; }
.birthday-guide { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(2rem,7vw,5rem); margin-bottom: 4rem; border-radius: 1.5rem; background: var(--birthday-ink); padding: clamp(1.7rem,5vw,3.5rem); }
.birthday-guide h2 { color: #fff; }
.birthday-guide .birthday-section-label { color: var(--birthday-gold); }
.birthday-guide > div:last-child { color: rgba(255,255,255,.82); font-size: 1.04rem; line-height: 1.8; }
.birthday-guide > div:last-child p + p { margin-top: 1rem; }
.birthday-faq-list { margin-top: 1.8rem; }
.birthday-faq { border-top: 1px solid #dfe6ed; }
.birthday-faq:last-child { border-bottom: 1px solid #dfe6ed; }
.birthday-faq summary { display: flex; gap: 1rem; align-items: center; padding: 1.1rem .2rem; color: var(--birthday-ink); font-weight: 800; cursor: pointer; }
.birthday-faq summary span { color: var(--birthday-red); font: 800 .78rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.birthday-faq p { padding: 0 .2rem 1.2rem 2.5rem; color: #4b5563; line-height: 1.7; }
.birthday-related-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.birthday-related-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid rgba(168,218,220,.3); border-radius: 1rem; background: #f1faee; padding: 1rem; color: var(--birthday-ink); font-size: 1.03rem; font-weight: 800; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.birthday-related-list a > span:first-child { display: flex; align-items: center; gap: 1rem; }
.birthday-related-list a > span:first-child > span { font-size: 1.35rem; }
.birthday-related-list a:hover { background: #fff; color: var(--birthday-red); transform: translateX(2px); }
.language-list-section { border-top: 1px solid #e5e7eb; padding: 1.5rem 0; }
.language-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.5rem; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; text-align: center; }
.language-link { color: #6b7280; font-size: .875rem; font-weight: 600; text-decoration: none; }
.language-link:hover, .language-active { color: var(--birthday-red); }
.birthday-toast { position: fixed; left: 50%; bottom: 2rem; z-index: 1100; transform: translate(-50%,2rem); border-radius: 999px; background: var(--birthday-ink); padding: .75rem 1.1rem; color: #fff; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.birthday-toast.is-visible { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 920px) {
  .birthday-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .birthday-intent-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .birthday-filter-grid, .birthday-intent-grid, .birthday-guide { grid-template-columns: 1fr; }
  .birthday-field > span { min-height: auto; }
  .birthday-result-actions { flex-direction: column; }
  .birthday-result-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .birthday-result.is-revealing .birthday-result-content { animation: none; }
  .birthday-primary-button, .birthday-toast { transition: none; }
}
