/* The same tapered stroke under the wordmark and in the player joins the paper to the game. */
:root { --flight-out:cubic-bezier(.23,1,.32,1); --flight-cross:cubic-bezier(.77,0,.175,1); }
.hero-copy { position:relative; min-width:0; }
.hero-copy h1 { margin-bottom:0; }
.title-word { display:inline-block; }
.flight-signature { display:block; width:clamp(87px,9vw,154px); height:auto; color:var(--blue); margin:8px 0 15px; transform-origin:left center; }
.cover-art,.cut-lines { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.cover-art { z-index:1; }
.cover-bird { position:absolute; width:53%; max-width:none; height:auto; left:23%; top:13%; transform:rotate(-8deg); }
.ink-trails { position:absolute; inset:0; width:100%; height:100%; color:#b7e8ff; opacity:.62; }
.deck:is([data-scene="paused"],[data-scene="playing"],[data-scene="error"]) .cover-art { display:none; }
.splash,.score { z-index:3; }
.splash-inner h2 { font-style:italic; text-shadow:2px 3px 0 #101c3e; }
.deck[data-scene="ready"] .splash-inner h2::before,
.deck[data-scene="finished"] .splash-inner h2::before { content:""; display:block; width:32px; height:5px; margin:0 0 7px 3px; background:linear-gradient(105deg,#ffca76 0 52%,transparent 53% 65%,#ffca76 66% 84%,transparent 85%); }
.deck[data-scene="finished"] .splash-inner h2 { color:#ffde98; }
.cut-lines { z-index:4; }
.cut-lines i { position:absolute; width:75%; height:4%; left:-2%; top:19%; opacity:0; background:#78d5ff; clip-path:polygon(0 67%,100% 0,83% 48%,12% 100%); }
.cut-lines i:nth-child(2) { width:102%; top:41%; height:2.5%; background:#c6eaff; }
.cut-lines i:nth-child(3) { width:90%; top:73%; height:3.5%; background:#2d84e6; }
.spark-cue { position:absolute; z-index:5; top:48px; right:13px; display:flex; align-items:center; gap:2px; pointer-events:none; opacity:0; color:#ffda90; font:italic 700 22px/1 var(--display); text-shadow:2px 2px #12223f; }
.spark-cue svg { width:27px;height:27px; }
.cap-top h2,.section-copy h2 { position:relative; }
.cap-top h2::after,.section-copy h2::after { content:""; display:block; width:38px; height:5px; margin-top:10px; background:linear-gradient(109deg,var(--blue) 0 59%,transparent 60% 70%,var(--blue) 71% 83%,transparent 84%); transform-origin:left center; }
@media(min-width:721px) { .hero-tag { margin-top:2px; } }
@media(max-width:720px) { .flight-signature { margin:3px 0 10px; width:83px; } .cover-bird { top:13%; width:52%; } .cap-top h2::after,.section-copy h2::after { margin-top:6px; } }
@media(prefers-reduced-motion:no-preference) {
  .hero-copy .title-word { animation:word-take .52s var(--flight-out) backwards; }
  .hero-copy .title-word:last-child { animation-delay:60ms; }
  .flight-signature { animation:ink-take .46s var(--flight-out) .12s backwards; }
  .cover-bird { animation:wing-take .76s var(--flight-out) backwards; }
  .ink-trails { animation:trail-take .68s var(--flight-out) backwards; }
  [data-arrived] h2::after { animation:ink-take .48s var(--flight-out); }
  .deck[data-scene="playing"] .cover-art { display:block; opacity:0; }
  .editor-picture[data-arrived]::before { animation:editor-register .6s var(--flight-out); }
  .btn,.pad button,.start-play svg { transition:transform 140ms var(--flight-out); }
  .btn:active,.pad button:not(:disabled):active { transform:scale(.96); }
  .start-play:active svg { transform:scale(.94); }
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  nav a { position:relative; }
  nav a::after { content:""; position:absolute; left:0; right:0; bottom:-3px; height:2px; background:var(--blue); transform:scaleX(0); transform-origin:left; transition:transform 150ms var(--flight-out); }
  nav a:hover::after { transform:scaleX(1); }
  .textlink svg,.quiet svg,.cap-icon,.repo svg { transition:transform 150ms var(--flight-out); }
  .textlink:hover svg { transform:translateX(3px); }
  .quiet:hover svg { transform:translate(2px,-2px); }
  .cap-grid a:hover .cap-icon { transform:translateY(-2px) rotate(-5deg); }
  .repo:hover svg { transform:rotate(-7deg); }
}
@keyframes word-take { from { transform:translate(-.14em,.07em) skewX(-6deg); opacity:.4; } to { transform:none; opacity:1; } }
@keyframes ink-take { from { clip-path:inset(0 100% 0 0); } to { clip-path:inset(0); } }
@keyframes wing-take { from { transform:translate(-14%,12%) rotate(-14deg) scale(.94); opacity:.15; } to { transform:rotate(-8deg); opacity:1; } }
@keyframes trail-take { from { transform:translateX(-6%); opacity:.1; } to { transform:translateX(0); opacity:.62; } }

.editor-picture { position:relative; }
.editor-picture::before { content:""; position:absolute; top:5px; right:13px; width:57px; height:12px; background:repeating-linear-gradient(116deg,transparent 0 5px,#2476b1 5px 8px); transform-origin:right; pointer-events:none; }
@keyframes editor-register { from { clip-path:inset(0 0 0 100%); } to { clip-path:inset(0); } }
