/* Approved history-galaxy concept, composed with accessible native controls. */
.home{max-width:1560px;position:relative;padding:12px 24px 0;background:#fff9f3}
.home-header{min-height:36px}.home-header .wordmark{display:none}.home-header .edition{font-size:10px}.home-header .edition i{font-size:8px;padding:5px 8px}
.service-links{position:absolute;top:10px;right:24px;gap:7px;margin:0;z-index:4}.service-links a,.service-links button{min-height:32px;padding:7px 11px;font-size:10px;background:#fff9fa;border-color:#eadce2}
.home .hero.galaxy-opening{display:grid;grid-template-columns:minmax(0,.55fr) minmax(0,1fr);grid-template-areas:none;gap:0;align-items:stretch;margin:10px 0 18px;padding:0;min-height:0;overflow:hidden;border:1px solid #eddfda;border-radius:27px;background:#fff9ee;box-shadow:0 8px 0 #e9d8df55,0 16px 36px #8774ab19;isolation:isolate}
.home .galaxy-intro.hero-copy{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;min-width:0;padding:26px 12px 18px;z-index:2;background:radial-gradient(ellipse at 10% 24%,#fff6dc,transparent 50%),radial-gradient(ellipse at 88% 65%,#ffd6e177,transparent 52%),#fffaf1}
.galaxy-intro:after{content:"";position:absolute;inset:0 -27px 0 auto;width:55px;background:linear-gradient(90deg,#fffaf1 15%,#fffaf1b0 48%,transparent);pointer-events:none;z-index:-1}
.home .galaxy-intro h1{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;width:100%;font-family:"Arial Rounded MT Bold","Malgun Gothic",sans-serif;font-size:clamp(34px,4.8vw,74px);line-height:1.09;letter-spacing:-.095em;font-weight:1000;margin:0;color:#673423;text-shadow:0 3px 0 #fff,3px 0 0 #fff,-3px 0 0 #fff,0 -3px 0 #fff,0 6px 0 #dfba91,0 9px 12px #aa77642e}
.home .galaxy-intro h1:before{content:"✿";position:absolute;color:#e88fa5;font-size:26px;left:2%;top:5%;text-shadow:0 2px #fff}
.home .galaxy-intro h1:after{content:"✧";position:absolute;color:#d4a25c;font-size:26px;right:1%;top:1%;text-shadow:0 2px #fff}
.home .galaxy-intro h1 em{font-size:.67em;font-style:normal;letter-spacing:-.075em;color:#873c43;white-space:nowrap;margin:11px 0 0}
.galaxy-heroes{width:118%;aspect-ratio:1.5;margin:17px -9% 4px;position:relative;z-index:1;flex:none}
.galaxy-heroes img{display:block;width:100%;height:auto;filter:drop-shadow(0 8px 6px #b77c8c22);animation:galaxyHeroesFloat 6s ease-in-out infinite}
.home .galaxy-intro .answer-mode-picker{width:100%;max-width:430px;padding:0 8px;margin:7px 0 0;position:relative;z-index:3}
.home .galaxy-intro .answer-mode-picker legend{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.home .galaxy-intro .answer-mode-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.home .galaxy-intro .answer-mode-options button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:71px;padding:9px 5px;border-radius:25px;border:3px solid #dfb474;background:linear-gradient(#ffe9ef,#ffc9d7);color:#873e48;box-shadow:inset 0 0 0 2px #fff9dd,0 4px 0 #bd9364,0 7px 10px #805a5120;text-align:center}
.home .galaxy-intro .answer-mode-options button:nth-child(2){background:linear-gradient(#e1fff0,#b1e7d4);color:#3c6858}
.home .galaxy-intro .answer-mode-options button b{font-size:clamp(17px,1.65vw,25px);font-weight:900;letter-spacing:-.06em}
.home .galaxy-intro .answer-mode-options button small{font-size:9px;opacity:.8;white-space:nowrap}
.home .galaxy-intro .answer-mode-options button[aria-pressed="true"]{border-color:#c08537;box-shadow:inset 0 0 0 2px #fff6d0,0 4px 0 #a77843,0 0 0 3px #fff,0 0 14px #ffd577b3}
.home .galaxy-intro .answer-mode-options button[aria-pressed="true"]:after{content:"";position:absolute;right:-7px;top:-12px;width:clamp(28px,3.2vw,43px);aspect-ratio:1;background:#fff7e9 url("assets/cat-paw-seal.svg") center/94% no-repeat;border-radius:50%;box-shadow:0 2px 4px #87485122;transform:rotate(15deg);animation:pawStamp .24s ease-out;pointer-events:none}
.home .galaxy-intro .answer-mode-options button[aria-pressed="true"]{border-color:#b6536d;box-shadow:inset 0 0 0 2px #fff8ed,0 4px 0 #ae6976,0 0 0 3px #fff6ed}
.home .galaxy-intro .answer-mode-options button[aria-pressed="false"]{background:#fbf6ef;color:#8b817a;border-color:#d3c6b4;box-shadow:inset 0 0 0 2px #fffdf7,0 3px 0 #c5b7a7}
@keyframes pawStamp{from{opacity:0;transform:scale(1.6) rotate(15deg)}to{opacity:1;transform:scale(1) rotate(15deg)}}
@media(prefers-reduced-motion:reduce){.home .galaxy-intro .answer-mode-options button[aria-pressed="true"]:after{animation:none}}
.galaxy-quick{display:flex;justify-content:center;gap:14px;margin-top:12px;position:relative;z-index:3}
.galaxy-quick button{min-height:28px;background:none;padding:3px 0;font-size:10px;font-weight:700;color:#947267;border-bottom:1px solid #d7bfb2}
.galaxy-map{position:relative;aspect-ratio:4/3;width:100%;min-width:0;align-self:center;isolation:isolate;background:#5e72ad;overflow:hidden}
.galaxy-world{display:block;width:100%;height:100%;object-fit:contain}
.galaxy-destinations{position:absolute;inset:0;z-index:2}
.galaxy-stop{position:absolute;display:block;padding:0;margin:0;min-height:0;background:transparent;border:0;border-radius:45%;transition:background .2s,box-shadow .2s;cursor:pointer;color:#ffe49e}
.galaxy-stop:hover{background:radial-gradient(ellipse,#fff4ba24,transparent 65%);box-shadow:inset 0 0 30px #fff6ab36;transform:none}
.galaxy-stop:active{transform:none;background:#fff6ab33}
.galaxy-stop:focus-visible{outline:3px solid #fff2a9;outline-offset:-5px;box-shadow:0 0 20px #ffe2ac88}
.galaxy-stop[aria-pressed="true"]:after{content:"✦";position:absolute;left:50%;bottom:4%;font-size:clamp(15px,2vw,26px);transform:translateX(-50%);color:#fff5c1;text-shadow:0 0 6px #e79f32,0 0 12px #ffe48a;animation:galaxyMarker 2.5s ease-in-out infinite}
.galaxy-stop-name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.galaxy-cleared{position:absolute;right:12%;top:23%;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e7fff0;color:#418565;font-size:14px;box-shadow:0 0 0 2px #f5dda4,0 0 12px #fff9}
.galaxy-twinkle{position:absolute;pointer-events:none;z-index:1;color:#fffbe5;text-shadow:0 0 12px #fff0a0;font-style:normal;font-size:clamp(15px,2vw,27px);animation:galaxyStar 3s ease-in-out infinite}
.twinkle-a{left:36%;top:37%}.twinkle-b{left:62%;top:52%;animation-delay:.9s}.twinkle-c{left:37%;top:65%;animation-delay:1.8s}
.galaxy-summary{display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap;font-size:10px;color:#9b7b83;margin:13px 0 20px}
.galaxy-summary span+span:before{content:"✦";margin-right:16px;color:#d1b086;font-size:8px}
.travel-destination{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:-4px 0 18px;padding:15px 18px;border:1px solid #ebdfe6;background:linear-gradient(100deg,#fff9e9,#f5eefa);border-radius:16px;color:#796181}
.travel-destination div{display:grid;gap:5px}.travel-destination b{font-size:13px}.travel-destination span,.travel-destination small{font-size:10px;line-height:1.5}
#journey{scroll-margin-top:18px}.home .tabs{margin-top:12px}
@keyframes galaxyHeroesFloat{50%{transform:translateY(-5px)}}
@keyframes galaxyStar{50%{opacity:.2;transform:scale(.65)}}
@keyframes galaxyMarker{50%{translate:0 -4px;opacity:.6}}
@media(min-width:1500px){.home .galaxy-intro h1{font-size:78px}.home .galaxy-intro h1 em{font-size:52px}}
@media(min-width:761px) and (max-width:1050px){.home{padding-inline:15px}.home .galaxy-intro.hero-copy{padding:18px 8px 12px}.home .galaxy-intro h1{font-size:47px}.home .galaxy-intro h1 em{font-size:31px}.galaxy-heroes{margin-top:13px}.home .galaxy-intro .answer-mode-options{gap:7px}.home .galaxy-intro .answer-mode-options button{min-height:56px;border-width:2px}.home .galaxy-intro .answer-mode-options button b{font-size:16px}.home .galaxy-intro .answer-mode-options button small{font-size:7px}.galaxy-quick{gap:9px;margin-top:8px}.galaxy-quick button{font-size:8px}}
@media(max-width:760px){
 .home{padding:10px 12px 0}.home-header{min-height:30px}.home-header .edition{font-size:8px}.home-header .edition i{display:none}.service-links{right:12px;top:10px;gap:4px}.service-links a,.service-links button{font-size:8px;padding:5px 7px;min-height:27px}
 .home .hero.galaxy-opening{grid-template-columns:1fr;margin:8px 0 14px;border-radius:20px}
 .home .galaxy-intro.hero-copy{padding:21px 16px 14px;background:radial-gradient(ellipse at 8% 30%,#fff1d4,transparent 60%),radial-gradient(ellipse at 95% 60%,#ffd6e177,transparent 60%),#fffaf1}
 .galaxy-intro:after{display:none}.home .galaxy-intro h1{font-size:48px;line-height:1;letter-spacing:-.09em}.home .galaxy-intro h1 em{font-size:34px;margin-top:10px}
 .home .galaxy-intro h1:before{left:13%;font-size:21px}.home .galaxy-intro h1:after{right:13%;font-size:21px}
 .galaxy-heroes{width:102%;max-width:410px;margin:10px -1% 0}.home .galaxy-intro .answer-mode-picker{max-width:410px;padding:0;margin-top:3px}.home .galaxy-intro .answer-mode-options button{min-height:62px;border-radius:23px}.home .galaxy-intro .answer-mode-options button b{font-size:21px}.home .galaxy-intro .answer-mode-options button small{font-size:9px}.galaxy-quick{margin-top:9px;gap:22px}.galaxy-quick button{font-size:10px}
 .galaxy-map{border-top:1px solid #ecd3e7}.galaxy-cleared{width:18px;height:18px;font-size:11px}.galaxy-summary{gap:7px;font-size:8px;margin:10px 0 16px}.galaxy-summary span+span:before{margin-right:7px}.galaxy-summary span:last-child{flex-basis:100%;text-align:center}.galaxy-summary span:last-child:before{display:none}.travel-destination{padding:12px;gap:9px;align-items:start}.travel-destination b{font-size:11px}.travel-destination span,.travel-destination small{font-size:9px}.travel-destination small{max-width:105px;text-align:right;flex:none}
}
@media(prefers-reduced-motion:reduce){.galaxy-heroes img,.galaxy-twinkle,.galaxy-stop[aria-pressed="true"]:after{animation:none}.galaxy-stop{transition:none}}

/* Original approved lettering is cropped verbatim, never redrawn as a font. */
.home .galaxy-intro.hero-copy{
 padding-top:9px;
 background:#fff9ed url("assets/opening-cloud-backdrop-v1.png") center/cover no-repeat;
}
.galaxy-intro:after{display:none}
.home .galaxy-intro h1.galaxy-painted-title{
 display:block;width:calc(100% + 24px);max-width:580px;flex:none;
 margin:0 -12px -6px;font-size:0;line-height:0;text-shadow:none;
}
.home .galaxy-painted-title:before,.home .galaxy-painted-title:after{display:none}
.galaxy-painted-title img{
 display:block;width:100%;height:auto;
}
.galaxy-heroes{margin-top:0}
@media(max-width:760px){
 .home .galaxy-intro.hero-copy{padding-top:5px}
 .home .galaxy-intro h1.galaxy-painted-title{width:calc(100% + 32px);max-width:440px;margin-inline:-16px;margin-bottom:-7px}
 .galaxy-heroes{margin-top:0}
}

/* One continuous cloud backdrop surrounds every home section. */
body:has(.home:not([hidden])){
 background:#fff8ec url("assets/opening-cloud-backdrop-v1.png") center/100% 100% fixed no-repeat;
}
.home{background:transparent;min-height:100vh}
.home .tabs{
 padding:5px 14px 0;border-radius:18px 18px 0 0;
 background:#fffaf2db;backdrop-filter:blur(8px);
}
.home .tab-content{
 padding:24px;border:1px solid #f1dce1;border-radius:22px;
 background:#fffcf3e6;box-shadow:0 8px 24px #a66b9310;
}
.galaxy-summary{color:#806373;text-shadow:0 1px 2px #fff}
.home footer{background:#fffaf2c9;border-radius:20px 20px 0 0;padding-inline:18px}

/* A single painted world joins the clouds and map; there is no seam overlay. */
@media(min-width:761px){
 .home .hero.galaxy-opening{background:#fff9ed url("assets/opening-unified-world-clear-20261001.png") center/100% 100% no-repeat}
 .home .galaxy-intro.hero-copy,.galaxy-map{background:transparent}
 .galaxy-world{opacity:0}
}
@media(max-width:760px){
 .home .hero.galaxy-opening{background:#fff9ed url("assets/opening-cloud-backdrop-v1.png") center/cover no-repeat}
 .galaxy-map{
  border-top:0;margin-top:-12px;z-index:3;
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 4 Q5 0 12 3 Q20 6 27 2 Q35 0 43 3 Q51 6 60 2 Q68 0 76 3 Q86 6 94 2 Q98 0 100 2 V100 H0Z' fill='black'/%3E%3C/svg%3E");
 }
}

/* The 4:3 map determines the shared height; the intro fits inside it.
   Nothing is letterboxed, stretched or cropped from the era illustration. */
@media(min-width:761px){
 .home .hero.galaxy-opening{
  grid-template-columns:minmax(0,.52fr) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
  aspect-ratio:152/75;align-items:stretch;
 }
 .home .galaxy-intro.hero-copy{
  display:grid;grid-template-rows:30% 43% 12% 10% 5%;
  justify-items:center;align-items:center;align-content:stretch;
  height:100%;min-height:0;padding:0;
 }
 .home .galaxy-intro h1.galaxy-painted-title{
  width:100%;max-width:none;height:100%;min-height:0;margin:0;
 }
 .galaxy-painted-title img{height:100%;object-fit:contain}
 .galaxy-heroes{
  width:116%;height:100%;min-height:0;aspect-ratio:auto;margin:0 -8%;
 }
 .galaxy-heroes img{width:100%;height:100%;object-fit:contain}
 .home .galaxy-intro .answer-mode-picker{
  width:94%;max-width:none;height:86%;min-height:0;padding:0;margin:0;
 }
 .home .galaxy-intro .answer-mode-options{height:100%;gap:10px}
 .home .galaxy-intro .answer-mode-options button{
  min-height:0;height:100%;padding:3px 4px;gap:3px;border-radius:22px;
 }
 .galaxy-quick{height:100%;margin:0;align-items:center;gap:13px}
 .galaxy-quick button{min-height:0;padding:2px 0}
 .galaxy-map{height:100%;aspect-ratio:auto;align-self:stretch}
 .galaxy-world{width:100%;height:100%;object-fit:contain}
}
@media(min-width:761px) and (max-width:1050px){
 .home .galaxy-intro .answer-mode-options button{border-radius:17px}
 .home .galaxy-intro .answer-mode-options button small{font-size:7px}
 .galaxy-quick button{font-size:8px}
}
@media(max-width:760px){
 .home .tab-content{padding:17px 12px;border-radius:18px}
 .home .tabs{padding-inline:10px}
}

/* Vermilion seal sits beside the era name, only for saved completed eras. */
.galaxy-stop .galaxy-cleared{
 top:auto;right:0;bottom:12%;width:clamp(22px,3.1vw,40px);height:clamp(22px,3.1vw,40px);
 border:2px solid #b43f43;border-radius:5px 3px 6px 3px;
 background:#fff3ddd9;color:#b43f43;
 font-family:"Batang","Yu Mincho","Noto Serif CJK KR",serif;
 font-size:clamp(18px,2.45vw,32px);font-weight:900;line-height:1;
 transform:translateX(20%) rotate(-12deg);
 box-shadow:0 0 0 2px #fff3dcaa,0 2px 4px #46233426;
 text-shadow:.4px .2px currentColor;pointer-events:none;
}
.galaxy-cleared:after{content:"";position:absolute;inset:2px;border:1px solid #bd5154a6;border-radius:2px}
.galaxy-stop[data-travel-era="5"] .galaxy-cleared{right:-4%}
.galaxy-stop[data-travel-era="2"] .galaxy-cleared,
.galaxy-stop[data-travel-era="3"] .galaxy-cleared{right:6%;transform:rotate(-12deg)}
.home-spirit-picker{width:92%;min-height:0;display:grid;gap:3px;align-content:center;position:relative;z-index:3}
.home-spirit-picker label{font-size:11px;font-weight:800;color:#805b65;text-align:center}
.home-spirit-picker select{
 display:block;width:100%;min-height:32px;padding:5px 28px 5px 12px;
 font-family:inherit;font-size:12px;font-weight:700;color:#785c6c;background:#fffaf4ed;
 border:1px solid #d8b6c4;border-radius:12px;box-shadow:0 2px 0 #dcbfc559;
}
.home-spirit-picker select:focus-visible{outline:3px solid #cbb5e5;outline-offset:2px}
.galaxy-heroes.borrowed-preview img{object-fit:contain}
@media(min-width:761px) and (max-width:1050px){
 .home-spirit-picker{gap:1px}
 .home-spirit-picker label{font-size:8px}
 .home-spirit-picker select{min-height:24px;font-size:10px;padding:2px 20px 2px 8px;border-radius:8px}
}
@media(max-width:760px){
 .home-spirit-picker{width:100%;max-width:410px;margin-top:14px;margin-bottom:3px}
 .home-spirit-picker select{min-height:40px;font-size:14px}
 .galaxy-stop .galaxy-cleared{border-width:1.5px;box-shadow:0 0 0 1px #fff3dcaa,0 1px 3px #46233426}
 .galaxy-cleared:after{inset:1px}
}
