/* The lucky-births page (/lucky/, /ja/lucky/): a world map of the day's 25 births and the top three. */
/* This page alone runs wider than the rest of the site, for the map. */
.wrap{max-width:1360px}
/* A compact heading: title and date at the top left, the explanation beside them, so the map starts high. */
.lucky-hero{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:40px;align-items:end;padding:18px 0 20px}
.lucky-hero .kicker{margin:0 0 4px;font-size:11px}
.lucky-hero h1{font-family:var(--serif);font-weight:400;font-size:clamp(24px,2.4vw,32px);line-height:1.3;letter-spacing:.04em;margin:0 0 4px;white-space:nowrap}
.lucky-date{margin:0;color:var(--gold);font-size:12.5px;letter-spacing:.06em}
.lucky-hero .lead{max-width:46em;margin:0;color:var(--muted);font-size:13px;line-height:1.75}

/* The map with the list of 25 under it on the left; the chosen birth, down to its chart, on the right. */
.lucky-board{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(300px,1fr);grid-template-areas:"map panel" "list panel";gap:20px 24px;align-items:start;padding-bottom:72px}
.lucky-map{grid-area:map}
.lucky-panel{grid-area:panel;align-self:stretch}
.lucky-list{grid-area:list;align-self:stretch;align-content:start}
.lucky-map{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:radial-gradient(120% 90% at 50% 40%,#0f1a2e,#080c15)}
.lucky-map svg{display:block;width:100%;height:auto}
.lucky .land{fill:#1a2742;stroke:#2c3d60;stroke-width:.22;stroke-linejoin:round}
.lucky-map{background:radial-gradient(90% 120% at 50% 30%,#101c35,#070b14 75%)}
.lucky .grat line{stroke:#16213a;stroke-width:.18}
.lucky .grat .equator{stroke:#1f2d4a;stroke-width:.25}

.dot{cursor:pointer;outline:none}
.dot .core{fill:#cfe0f5}
.dot .halo{fill:#8fb4e6;opacity:.28;transform-box:fill-box;transform-origin:center;animation:lucky-pulse 3.2s ease-in-out infinite}
.dot .ring{fill:none;stroke:transparent;stroke-width:.35}
.dot.crowned .core{fill:var(--gold-2)}
.dot.crowned .halo{fill:var(--gold);opacity:.35}
.dot .crown{fill:var(--gold-2)}
.dot:hover .ring,.dot.is-selected .ring{stroke:#fff}
.dot:focus-visible .ring{stroke:var(--gold-2);stroke-width:.5}
.dot.is-selected .core{fill:#fff}
.dots .dot:nth-child(3n) .halo{animation-delay:-1.1s}
.dots .dot:nth-child(3n+1) .halo{animation-delay:-2.2s}
@keyframes lucky-pulse{0%,100%{transform:scale(.7);opacity:.18}50%{transform:scale(1.15);opacity:.42}}

.lucky-panel{display:flex;flex-direction:column;min-height:300px;padding:24px 24px 20px;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(180deg,var(--surface),var(--bg-2))}
.lucky-rank{display:flex;align-items:center;gap:8px;margin:0 0 6px;color:var(--gold-2);font-size:15px;letter-spacing:.06em}
.lucky-rank .region{margin-left:auto;color:var(--faint);font-size:12px;letter-spacing:.1em}
.lucky-place{font-family:var(--serif);font-weight:400;font-size:28px;line-height:1.3;margin:0 0 16px;letter-spacing:.03em}
.lucky-place span{display:block;font-family:var(--sans);font-size:13px;color:var(--muted);letter-spacing:.06em}
.lucky-facts{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:0 0 14px;font-size:14px}
.lucky-facts dt{color:var(--faint)}
.lucky-facts dd{margin:0}
.lucky-facts{align-items:baseline}
.lucky-facts dd.big{font-family:var(--serif);font-size:21px;line-height:1.35;letter-spacing:.03em}
.card-facts dd.big{font-size:17px}
.lucky-facts dd.big .note{margin-left:6px;font-family:var(--sans);font-size:12px;letter-spacing:.04em;color:var(--muted);white-space:nowrap}
/* The panel is narrow: the note goes under the time rather than wrapping in it. */
.lucky-panel .lucky-facts dd.big .note{display:block;margin:0;line-height:1.5}
.lucky-read{font-size:14px}
.crown-icon{width:20px;height:14px;flex:none}
.crown-icon .crown{fill:var(--gold-2)}

.lucky-list{list-style:none;margin:0;padding:10px;display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:4px;border:1px solid var(--line);border-radius:var(--radius);background:#0e1524b3}
.lucky-list li{grid-column:span 3;min-width:0}
.lucky-list button,.lucky-list a{display:flex;align-items:baseline;gap:8px;width:100%;height:100%;padding:7px 10px;border:1px solid transparent;border-radius:9px;background:none;color:var(--text);font:inherit;font-size:13px;line-height:1.4;text-align:left;text-decoration:none;cursor:pointer}
.lucky-list button:hover,.lucky-list a:hover{background:var(--surface-2)}
.lucky-list [aria-current="true"]{background:var(--surface-2);border-color:var(--line-2)}
.lucky-list [aria-current="true"] .c{color:var(--gold-2)}
.lucky-list .n{flex:none;min-width:1.6em;color:var(--faint);font-variant-numeric:tabular-nums}
.lucky-list .c{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* The top three: a row of their own, gold-edged, each a link to its read further down. */
.lucky-list .top{grid-column:span 5;margin-bottom:6px}
.lucky-list .top a{flex-wrap:wrap;align-items:center;gap:2px 8px;padding:12px 14px;border-color:#4d4228;background:linear-gradient(135deg,#221d10,#141b2c 75%)}
.lucky-list .top a:hover,.lucky-list .top [aria-current="true"]{border-color:var(--gold);background:linear-gradient(135deg,#2c2512,#18213a 75%)}
.lucky-list .top .n{min-width:0;color:var(--gold);font-weight:600}
.lucky-list .top .c{flex:1 1 100%;order:3;color:var(--gold-2);font-family:var(--serif);font-size:18px;white-space:normal}
.lucky-list .top .go{order:4;font-size:12px;color:var(--gold)}
.lucky-list .top-1 a{border-color:var(--gold);background:linear-gradient(135deg,#3a3014,#18213a 80%)}
.lucky-list .top-1 .c{font-size:21px}
.lucky-list .crown-icon{width:18px;height:12px;align-self:center}
.lucky-cards{display:grid;gap:40px}
.lucky-card{padding:28px;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(180deg,var(--surface),var(--bg-2))}
.lucky-card-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.lucky-card-head .crown-icon{width:24px;height:17px;align-self:center}
.lucky-card-head .rank{color:var(--gold-2);letter-spacing:.06em}
.lucky-card-head h3{font-family:var(--serif);font-weight:400;font-size:26px;margin:0;letter-spacing:.03em}
/* A card: the map and photo with the text under them on the left; the facts and the chart on the right. */
.lucky-card-body{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:24px;align-items:start}
.lucky-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;margin-bottom:24px}
.lucky-card-side .card-facts{margin:0 0 4px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#0e1524b3;gap:6px 14px;font-size:13px}
.lucky-zoom,.lucky-photo{margin:0}
.lucky-zoom svg{display:block;width:100%;height:auto;aspect-ratio:3/2;border:1px solid var(--line);border-radius:12px;background:#0b1220}
.lucky-zoom svg .land{fill:#26365a;stroke:#3a4e78;stroke-width:.06}
.zoom-core{fill:var(--gold-2)}
.zoom-halo{fill:var(--gold);opacity:.3;transform-box:fill-box;transform-origin:center;animation:lucky-pulse 3.2s ease-in-out infinite}
.zoom-label{fill:var(--text);font-size:1.3px;font-family:var(--sans);paint-order:stroke;stroke:#0b1220;stroke-width:.25px}
.lucky-photo img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:12px}
.lucky-photo figcaption{margin-top:6px;font-size:11px;color:var(--faint);line-height:1.5}
.lucky-photo figcaption a{color:var(--faint)}
.lucky-text p{margin:0 0 14px;max-width:46em;font-size:16px;line-height:1.95}
.lucky-text .hint{color:var(--gold-2)}
.lucky-sources{font-size:12px;color:var(--faint)}
.lucky-sources a{color:var(--faint)}
.lucky-about p{color:var(--muted);max-width:46em}
.lucky-error{color:var(--muted)}

/* The chart: zodiac, today's ring, the birth, aspects. */
.lucky-chart{margin:20px 0 0}
.lucky-panel .lucky-chart{margin-top:auto;padding-top:20px}
.lucky-chart svg{display:block;width:100%;max-width:440px;height:auto;margin:0 auto;overflow:visible}
.lucky-chart .fill-today{fill:#111a2f}
.lucky-chart .fill-natal{fill:#0d1528}
.lucky-chart .ring{fill:none;stroke:#34466c;stroke-width:.45}
.lucky-chart .ring-0{stroke:#4a5f8c;stroke-width:.7}
.lucky-chart .ring-3{stroke:#2a3a5c}
.lucky-chart .scale line{stroke:#4a5f8c;stroke-width:.3}
.lucky-chart .scale .tick10{stroke:#6a80ad}
.lucky-chart .cusp{stroke:#3c5078;stroke-width:.45}
.lucky-chart .house-line{stroke:#22304d;stroke-width:.35;stroke-dasharray:1 1.4}
.lucky-chart .angle{stroke:var(--gold);stroke-width:.6;opacity:.85}
.lucky-chart .angle-head{fill:var(--gold)}
.lucky-chart .angle-label{fill:var(--gold);font:600 4.6px var(--sans);letter-spacing:.12em}
.lucky-chart text{text-anchor:middle;dominant-baseline:central;font-family:"Apple Symbols","Segoe UI Symbol","Noto Sans Symbols 2","Noto Sans Symbols",var(--sans)}
.lucky-chart .sign{font-size:8.5px;opacity:.92}
.lucky-chart .sign.fire{fill:#f0a387}.lucky-chart .sign.earth{fill:#c3d196}.lucky-chart .sign.air{fill:#efdf9c}.lucky-chart .sign.water{fill:#93bdf0}
.lucky-chart .house{fill:#5d6d93;font:4.2px var(--sans)}
.lucky-chart .today-tick{stroke:#7f9cc9;stroke-width:.5}
.lucky-chart .body{font-size:9.5px}
.lucky-chart .today{fill:#9dbde8;font-size:7.5px}
.lucky-chart .today-moon{fill:var(--gold-2);font-size:9.5px}
.lucky-chart .moon-glow{fill:var(--gold);opacity:.45}
.lucky-chart .natal{fill:#eef2fa}
.lucky-chart .natal.lit{fill:var(--gold-2)}
.lucky-chart .natal-dot{fill:#c9d4ea}
.lucky-chart .natal-dot.lit{fill:var(--gold-2)}
.lucky-chart .leader{stroke:#5b6c92;stroke-width:.3}
.lucky-chart .leader.lit{stroke:#b39b62}
.lucky-chart .retro{fill:#9aa6c0;font:3.6px var(--sans)}
.lucky-chart .asp{stroke-width:.42;stroke-linecap:round;opacity:.7}
.lucky-chart .asp.easy{stroke:#5b8be0}
.lucky-chart .asp.hard{stroke:#d8706a}
.lucky-chart .asp.lucky{stroke:var(--gold-2);stroke-width:.75;opacity:1}
.lucky-chart .asp.lucky-glow{stroke:var(--gold);stroke-width:2.6;opacity:.35}
.lucky-chart .shape{fill:var(--gold);fill-opacity:.09;stroke:var(--gold-2);stroke-width:1.1;stroke-linejoin:round}
.lucky-chart .shape-kite{fill:none;stroke:var(--gold-2);stroke-width:.8;opacity:.9}
.lucky-chart .shape-spine{fill:none;stroke:var(--gold-2);stroke-width:.8;stroke-dasharray:2 1.4}
.lucky-chart .shape-note{flex:1 1 100%;text-align:center;font-weight:400;font-size:12.5px;color:var(--gold-2)}
.lucky-facts dd.shape{color:var(--gold-2)}
.lucky-chart figcaption{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 14px;margin-top:10px;font-size:11px;color:var(--faint)}
.lucky-chart figcaption .legend-2{color:var(--gold)}
.lucky-chart figcaption .system{flex:1 1 100%;text-align:center;font-size:10.5px;color:#66728c;letter-spacing:.03em}
.lucky-card-side .lucky-chart{margin:12px 0 0}
.lucky-card-side .lucky-chart svg{max-width:100%}
.lucky-card-side .lucky-chart figcaption{font-size:10.5px;gap:0 10px}

@media (max-width:860px){
  .lucky-hero{grid-template-columns:1fr;row-gap:10px}
  .lucky-hero h1{white-space:normal}
  .lucky-board{grid-template-columns:1fr;grid-template-areas:"map" "panel" "list"}
  /* One column: the pictures, the facts and the chart, then the text. */
  .lucky-card-body{grid-template-columns:1fr;gap:0}
  .lucky-card-main{display:contents}
  .lucky-media{order:1}
  .lucky-card-side{order:2;margin-bottom:24px}
  .lucky-card-side .lucky-chart{max-width:380px;margin-left:auto;margin-right:auto}
  .lucky-text{order:3}
  .lucky-panel{min-height:0}

}
@media (max-width:560px){
  .lucky-media{grid-template-columns:1fr}
  .lucky-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lucky-list li{grid-column:span 1}
  .lucky-list .top{grid-column:span 2}
  .lucky-card{padding:20px}
  .lucky-place{font-size:24px}
}
/* The chosen birth: a beacon over the point, the others dimmed. */
.pick{pointer-events:none;opacity:0;transition:opacity .3s}
.has-pick .pick{opacity:1}
.has-pick .dot:not(.is-selected) .core{opacity:.45}
.has-pick .dot:not(.is-selected) .halo{opacity:.12}
.pick-ring{fill:none;stroke:#fff;stroke-width:.55}
.pick-wave{fill:none;stroke:var(--gold-2);stroke-width:.5;transform-box:fill-box;transform-origin:center;animation:lucky-beacon 1.8s ease-out infinite}
.pick.is-new .pick-ring{animation:lucky-pick-in .5s cubic-bezier(.2,.9,.3,1.4)}
@keyframes lucky-beacon{0%{transform:scale(1);opacity:.9}100%{transform:scale(4.2);opacity:0}}
@keyframes lucky-pick-in{from{transform:scale(2.4);opacity:0}to{transform:scale(1);opacity:1}}
.pick-ring{transform-box:fill-box;transform-origin:center}
.pick-cross{stroke:#fff;stroke-width:.4;opacity:.85}
.pick-tag-box{fill:#0b1222;fill-opacity:.88;stroke:var(--gold);stroke-width:.3}
.pick-tag-text{fill:var(--gold-2);font:600 3.6px var(--sans);letter-spacing:.04em;dominant-baseline:central}

/* ---- Motion: the map lights up, the top three's charts draw themselves in ---- */
.lucky-map .land{fill:url(#lucky-land);stroke:#3d5788;stroke-width:.22}
.lucky-map .coast-glow{fill:none;stroke:#4a78d0;stroke-width:1.3;opacity:.32}
.sea-star{fill:#d6e2ff;opacity:.2;animation:lucky-twinkle 5s ease-in-out infinite}
@keyframes lucky-twinkle{0%,100%{opacity:.1}50%{opacity:.75}}
.top-triangle,.top-triangle-glow{fill:none;stroke-dasharray:1;stroke-dashoffset:1;stroke-linejoin:round;animation:lucky-draw 2.6s ease-in-out 2.3s forwards}
.top-triangle{stroke:var(--gold-2);stroke-width:.4}
.top-triangle-glow{stroke:var(--gold);stroke-width:1.6;opacity:.45}
@keyframes lucky-draw{to{stroke-dashoffset:0}}
.dot{opacity:0;transform-box:fill-box;transform-origin:center;animation:lucky-dot-in .7s cubic-bezier(.2,.9,.3,1.35) forwards}
@keyframes lucky-dot-in{from{opacity:0;transform:scale(.2)}to{opacity:1;transform:scale(1)}}
.dot .ripple{fill:none;stroke:var(--gold-2);stroke-width:.35;opacity:0;transform-box:fill-box;transform-origin:center;animation:lucky-ripple 3.2s ease-out infinite}
.dot .ripple-1{animation-delay:1.6s}
@keyframes lucky-ripple{0%{transform:scale(1);opacity:.85}100%{transform:scale(3.8);opacity:0}}
.dot .dot-spark{fill:#fff6da;opacity:.9;transform-box:fill-box;transform-origin:center;animation:lucky-spin 7s linear infinite}
@keyframes lucky-spin{0%{transform:rotate(0) scale(.8)}50%{transform:rotate(180deg) scale(1.15)}100%{transform:rotate(360deg) scale(.8)}}

.lucky-chart.deluxe .gold-ring{animation:lucky-turn 140s linear infinite}
@keyframes lucky-turn{to{transform:rotate(360deg)}}
.lucky-chart .gold-ring-line{fill:none;stroke-width:.8;stroke-dasharray:.5 2.6;stroke-linecap:round;opacity:.85}
.lucky-chart .gold-bead{fill:var(--gold);opacity:.7}
.lucky-chart .gold-spark{fill:var(--gold-2)}
.lucky-chart .centre-star{fill:#e2eaff;animation:lucky-twinkle 4.5s ease-in-out infinite}
.lucky-chart.deluxe .asp{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.1s ease-out}
.lucky-chart.deluxe.is-visible .asp{stroke-dashoffset:0}
.lucky-chart.deluxe .shape{stroke-dasharray:1;stroke-dashoffset:1;fill-opacity:0;transition:stroke-dashoffset 1.5s ease-in-out,fill-opacity 1.2s ease 1.8s}
.lucky-chart.deluxe.is-visible .shape{stroke-dashoffset:0;fill-opacity:.12;animation:lucky-shape-glow 4.5s ease-in-out 3.5s infinite}
@keyframes lucky-shape-glow{0%,100%{fill-opacity:.1}50%{fill-opacity:.24}}
.lucky-chart.deluxe .body,.lucky-chart.deluxe .natal-dot{opacity:0;transition:opacity .9s ease .15s}
.lucky-chart.deluxe.is-visible .body,.lucky-chart.deluxe.is-visible .natal-dot{opacity:1}
.lucky-chart.deluxe .moon-glow{animation:lucky-moon 3.8s ease-in-out infinite}
@keyframes lucky-moon{0%,100%{opacity:.25}50%{opacity:.8}}

@media (prefers-reduced-motion:reduce){
  .dot .halo,.zoom-halo,.sea-star,.dot .dot-spark,.lucky-chart.deluxe .gold-ring,.lucky-chart .centre-star,.lucky-chart.deluxe .moon-glow,.lucky-chart.deluxe.is-visible .shape{animation:none}
  .dot{animation:none;opacity:1}
  .pick-wave,.pick.is-new .pick-ring{animation:none}
  .pick-wave{display:none}
  .dot .ripple{display:none}
  .top-triangle,.top-triangle-glow{animation:none;stroke-dashoffset:0}
  .lucky-chart.deluxe .asp,.lucky-chart.deluxe .shape{transition:none;stroke-dashoffset:0}
  .lucky-chart.deluxe .shape{fill-opacity:.12}
  .lucky-chart.deluxe .body,.lucky-chart.deluxe .natal-dot{transition:none;opacity:1}
}
/* The Japanese edition: the countries around Japan, dimmer than Japan. */
.lucky-map .land.others,.lucky-zoom svg .land.others{fill:#121c31;stroke:#1f2b45}
.lucky-switch{margin:4px 0 0;font-size:13px}
.lucky-switch a{color:var(--gold-2);text-underline-offset:4px}
/* The national editions (Japan, Taiwan): a tall map beside the panel, and the hundred cities' list under both. */
@media (min-width:861px){
  .lucky-national .lucky-board{grid-template-columns:minmax(0,1.25fr) minmax(300px,1fr);grid-template-areas:"map panel" "list list"}
  .lucky-national .lucky-list{grid-template-columns:repeat(30,minmax(0,1fr))}
  .lucky-national .lucky-list .top{grid-column:span 10}
}
/* The spreading rings and the sparkle only decorate a point: a click goes to the point under them. */
.dot .ripple,.dot .dot-spark{pointer-events:none}
/* The national editions' list: town and age, the prefecture on a line of its own. */
.lucky-national .lucky-list button,.lucky-national .lucky-list a{flex-wrap:wrap;row-gap:0;column-gap:4px}
.lucky-national .lucky-list .age{flex:none;color:var(--muted);font-size:12px}
.lucky-national .lucky-list .pref{flex-basis:100%;padding-left:calc(1.6em + 4px);color:var(--faint);font-size:11.5px;line-height:1.3}
/* On the top three's cards: the city, then its prefecture and age on one line, then the link down. */
.lucky-national .lucky-list .top .pref{order:4;flex:0 0 auto;padding-left:0;font-size:12px;color:var(--muted)}
.lucky-national .lucky-list .top .age{order:5}
.lucky-national .lucky-list .top .go{order:6;flex-basis:100%}
@media (min-width:861px){.lucky-national .lucky-list li:not(.top){grid-column:span 5}}
