/* The entrance has two deliberate planes: readable red story, slate invitation. */
.entrance-canvas::before{display:none!important}
.entrance-canvas .entry-black-zone{top:0;right:0;width:50%;height:100%;clip-path:polygon(21% 0,100% 0,100% 100%,0 100%,8% 69%,4% 34%);box-shadow:none;background:linear-gradient(151deg,#3c414d 0%,#282c35 41%,#15171d 100%)}
.entrance-canvas .entry-black-zone::before{opacity:.17;background-size:31px 31px}
.entrance-canvas .entry-black-zone::after{display:none}
.entrance-canvas>.entry-white-rings{top:0;right:0;left:auto;bottom:auto;width:50%;height:100%;opacity:.65;background:url("assets/entrance-orbit-v16.svg") 62% center/auto 100% no-repeat;clip-path:polygon(21% 0,100% 0,100% 100%,0 100%,8% 69%,4% 34%);filter:none;transform:none}
.entrance-canvas>.entry-white-rings::after{display:none}
.entrance-canvas .entry-grid{grid-template-columns:minmax(0,1.07fr) minmax(330px,.93fr);gap:clamp(38px,5vw,88px)}
.entrance-canvas .entry-copy{max-width:690px}
.entrance-canvas .story-line{font-size:clamp(64px,7.2vw,114px)}
.entrance-canvas .story-line i:nth-child(5n+4){box-shadow:.055em .055em 0 #55d8d2}
.entrance-canvas .story-arrow{background:#111;color:#fff;box-shadow:5px 6px 0 #f687bc}
.entrance-canvas .story-gateway:hover .story-arrow,.entrance-canvas .story-gateway:focus-visible .story-arrow{background:#52d8d3;color:#111;box-shadow:7px 8px 0 #f68abf}
.entrance-canvas .entry-description{max-width:500px;margin-top:40px}
.entrance-canvas .entry-art{min-height:590px}
.entrance-canvas .invite-rays,.entrance-canvas .invite-corner,.entrance-canvas .entry-mascot-name{display:none}
.entrance-canvas .invitation-flip{width:min(81%,398px);transform:rotate(-3deg);transition:transform .85s cubic-bezier(.16,.8,.24,1),width .6s cubic-bezier(.16,.8,.24,1),aspect-ratio .6s cubic-bezier(.16,.8,.24,1)}
.entrance-canvas .invitation-flip:hover{transform:translateY(-9px) rotate(-2deg)}
.entrance-canvas .invitation-flip.is-flipped{width:min(100%,540px);aspect-ratio:4/3;transform:rotate(3deg) rotateY(180deg)}
.entrance-canvas .invitation-flip.is-flipped:hover{transform:translateY(-9px) rotate(3deg) rotateY(180deg)}
.entrance-canvas .entry-mascot{left:2%;bottom:1%;width:clamp(90px,9vw,126px)}
.entrance-canvas .invite-hint{left:auto;right:0;bottom:-3%;font-size:12px;box-shadow:5px 5px 0 #f687bc}
.entrance-canvas .invitation-flip:focus-visible{outline:5px solid #55d8d2;outline-offset:16px}
/* Secondary ink stays in the shadows and small cut-paper accents. */
:root{--v16-teal:#59d8d2;--v16-rose:#ef83b7;--v16-gold:#efc769}
.chapter-hero .stacked-heading>span:nth-child(2){box-shadow:6px 6px 0 #111,12px 12px 0 #fff,18px 18px 0 #ef83b777}
.chapter-hero .hero-actions button:first-child:hover,.chapter-hero .hero-actions button:first-child:focus-visible{background:var(--v16-teal);box-shadow:5px 5px 0 #fff,10px 10px 0 #111}
.weather-poster .weather-score-ticket{box-shadow:4px 4px 0 #ed0030,9px 9px 0 #fff,14px 14px 0 #59d8d288}
.g7e-settlement .settle-bonus .settle-number{text-shadow:2px 3px 0 #fff,5px 6px 0 #ef83b7,9px 10px 0 #111}
.g7e-settlement .settle-goal .settle-number{text-shadow:2px 3px 0 #111,5px 6px 0 #59d8d2,9px 10px 0 #fff}
.g7e-settlement .settle-inspection.is-perfect .settle-number,.g7e-settlement .settle-inspection.is-perfect .settle-inspection-number{text-shadow:2px 3px 0 #111,5px 6px 0 #efc769,9px 10px 0 #111}
.g7e-settlement .settle-bonus .settle-track .settle-fill{background:linear-gradient(90deg,#a80020 0%,#ed0030 67%,#ef83b7 100%)}
.g7e-settlement .settle-goal .settle-track .settle-fill{background:linear-gradient(90deg,#ab0024 0%,#ee0030 80%,#59d8d2 100%)}
.chapter-label strong .cutout-char:nth-child(7n+5){box-shadow:2px 2px 0 #fff,5px 5px 0 #111,8px 8px 0 #ef83b788}
.chapter-label strong .cutout-char:nth-child(11n+8){box-shadow:2px 2px 0 #111,5px 5px 0 #fff,8px 8px 0 #59d8d288}
.goals-map-board .gm12-map-progress strong{text-shadow:3px 4px 0 #fff,7px 8px 0 #111,11px 12px 0 #59d8d299}
.chapter-zone-shapes .zone-mascot-a{filter:brightness(0) drop-shadow(9px 11px 0 #fff) drop-shadow(14px 16px 0 #59d8d288)}
.chapter-zone-shapes .zone-mascot-b{filter:brightness(0) drop-shadow(9px 11px 0 #fff) drop-shadow(14px 16px 0 #ef83b788)}
.weather-detail-head h2{text-shadow:3px 3px 0 #fff,6px 6px 0 #ef83b777}
/* Reward-only gallery treatment: angular offset registration, not a neon box. */
.gallery-tile[data-aura="weekly"] .gallery-art::before,.gallery-tile[data-aura="gold"] .gallery-art::before{content:"";position:absolute;z-index:3;inset:-8px -7px -7px -8px;background:var(--gallery-aura);clip-path:polygon(8% 0,100% 4%,94% 38%,100% 96%,67% 100%,4% 94%,0 59%);opacity:.38;transform:translate(6px,6px) rotate(1.8deg);pointer-events:none;filter:drop-shadow(3px 4px 0 #111)}
.gallery-tile[data-aura="weekly"] .gallery-art::after,.gallery-tile[data-aura="gold"] .gallery-art::after{inset:-6px;border:solid var(--gallery-aura);border-width:5px 3px 7px 4px;box-shadow:4px 5px 0 #111,0 0 7px var(--gallery-aura);clip-path:polygon(4% 0,100% 3%,98% 91%,90% 100%,0 96%,2% 23%);transform:rotate(-1.4deg);animation:gallery-orbit-shift 6.2s ease-in-out infinite alternate}
.gallery-tile[data-aura="gold"] .gallery-art::after{border-width:7px 5px 8px 4px;box-shadow:5px 6px 0 #111,0 0 10px #ffd568}
@keyframes gallery-orbit-shift{from{transform:translateY(0) rotate(-1.4deg);opacity:.78}to{transform:translateY(-3px) rotate(.5deg);opacity:1}}
/* The same broken orbit surrounds the static fallback without covering art. */
.reveal-visual[data-finish="weekly"] .reveal-front::before,.reveal-visual[data-finish="gold"] .reveal-front::before{left:23%;top:-1%;width:43%;height:91%;border:0;border-radius:0;box-shadow:none;background:linear-gradient(131deg,#fff 0 19%,var(--state-orbit) 27% 61%,#a8a9af 73% 84%,#fff 96%);mask:url("assets/card-orbit-v16.svg") center/100% 100% no-repeat;-webkit-mask:url("assets/card-orbit-v16.svg") center/100% 100% no-repeat;filter:drop-shadow(5px 6px 0 #111) drop-shadow(0 0 7px var(--state-orbit));animation:state-orbit-drift 7.5s ease-in-out infinite alternate}
.reveal-visual[data-finish="weekly"]{--state-orbit:#73d9ed}
.reveal-visual[data-finish="gold"]{--state-orbit:#e9be65}
.reveal-visual[data-finish="gold"] .reveal-front::before{left:20%;top:-3%;width:49%;height:96%;filter:drop-shadow(5px 6px 0 #111) drop-shadow(0 0 9px #e9be65)}
.reveal-visual[data-finish="weekly"] #reveal-face{filter:drop-shadow(0 0 6px #73d9ed)}
.reveal-visual[data-finish="gold"] #reveal-face{filter:drop-shadow(0 0 8px #e9be65)}
.reveal-visual[data-phase="settled"]::after,.reveal-visual[data-phase="settling"]::after{right:-8%;top:-7%;width:68%;height:110%;background:url("assets/card-star-field-v16.svg") center/contain no-repeat;clip-path:none;filter:none;opacity:.8;transform:none}
@keyframes state-orbit-drift{from{transform:translate(-2px,2px) rotate(-1deg);opacity:.8}to{transform:translate(3px,-3px) rotate(1deg);opacity:1}}
@media(max-width:900px){
  .entrance-canvas .entry-grid{grid-template-columns:1fr;max-width:650px;gap:0}
  .entrance-canvas .entry-black-zone{top:42%;right:-4%;width:108%;height:58%;clip-path:polygon(16% 0,100% 0,100% 100%,0 100%,6% 51%)}
  .entrance-canvas>.entry-white-rings{top:42%;right:-4%;left:auto;width:108%;height:58%;background-position:65% 50%;background-size:auto 100%;clip-path:polygon(16% 0,100% 0,100% 100%,0 100%,6% 51%);opacity:.56}
  .entrance-canvas .entry-art{min-height:550px}
  .entrance-canvas .entry-description{margin-top:29px}
}
@media(max-width:650px){
  .entrance-canvas .entry-black-zone{top:45%;height:55%;clip-path:polygon(9% 0,100% 0,100% 100%,0 100%,4% 54%)}
  .entrance-canvas>.entry-white-rings{top:45%;height:55%;background-position:65% 54%;opacity:.48;clip-path:polygon(9% 0,100% 0,100% 100%,0 100%,4% 54%)}
  .entrance-canvas .entry-art{min-height:480px}
  .entrance-canvas .story-line{font-size:clamp(49px,11.4vw,66px)}
  .entrance-canvas .invitation-flip{width:min(78%,305px)}
  .entrance-canvas .invitation-flip.is-flipped{width:min(96%,380px)}
  .entrance-canvas .entry-mascot{left:1%;width:88px}
  .entrance-canvas .invite-hint{right:0;bottom:0;font-size:10px}
  .reveal-visual[data-finish="weekly"] .reveal-front::before,.reveal-visual[data-finish="gold"] .reveal-front::before{left:7%;top:13%;width:66%;height:72%;border:0}
  .reveal-visual[data-finish="gold"] .reveal-front::before{left:4%;top:10%;width:72%;height:78%}
  .reveal-visual[data-phase="settled"]::after,.reveal-visual[data-phase="settling"]::after{right:-24%;width:88%;opacity:.62}
}
@media(max-width:390px){.reveal-visual[data-finish="weekly"] .reveal-front::before,.reveal-visual[data-finish="gold"] .reveal-front::before{left:2%;width:72%}}
@media(prefers-reduced-motion:reduce){.gallery-tile[data-aura] .gallery-art::after,.reveal-visual[data-finish] .reveal-front::before{animation:none!important}.entrance-canvas .invitation-flip{transition:none!important}}
body.v12-save-data .gallery-tile[data-aura] .gallery-art::after,body.v12-save-data .reveal-visual[data-finish] .reveal-front::before{animation:none!important}
