/* The Gold Seam (v1.111). The mended piece on the end screen: v1.120. */
.gs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; justify-content: center; }
.gs-chip { min-height: 42px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--dw-line-strong); background: transparent; color: var(--dw-text); font: 500 15px/1 var(--dw-sans); cursor: pointer; }
.gs-chip:hover, .gs-chip:focus-visible { border-color: var(--dw-gold); color: var(--dw-cream); outline: none; }
.gs-chip[aria-pressed="true"] { border-color: var(--dw-gold); background: rgba(217, 185, 138, .16); color: var(--dw-gold-light); }
.gs-wrap { display: grid; justify-items: center; }
.gs-svg { width: min(100%, 560px); height: auto; touch-action: none; cursor: crosshair; overflow: hidden; border-radius: 16px; box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .85); }
.gs-svg:focus-visible { outline: 2px solid var(--dw-gold); outline-offset: 6px; border-radius: 8px; }
.gs-crack-shadow { fill: none; stroke: #04050c; stroke-opacity: .55; stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; filter: blur(.6px); }
.gs-crack-edge { fill: none; stroke: #fffaf0; stroke-opacity: .4; stroke-width: .8; stroke-linecap: round; stroke-linejoin: round; }
.gs-crack { fill: none; stroke: #0a0c1a; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.gs-branch { fill: none; stroke: #0a0c1a; stroke-opacity: .7; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
/* the gold: a metallic line, a bright edge on its light side, and tiny flecks beside it */
.gs-seg { fill: none; stroke: url(#gs-gold); stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .5s ease; }
.gs-shinel { fill: none; stroke: #fff4c4; stroke-width: 1.3; stroke-linecap: round; opacity: 0; transition: opacity .6s ease; }
.gs-fleck { fill: #ffe9a6; opacity: 0; transition: opacity .9s ease; }
.gs-bgold { fill: none; stroke: url(#gs-gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 1.2s ease; }
.gs-seg.is-gold { opacity: 1; }
.gs-shinel.is-gold { opacity: .85; }
.gs-fleck.is-gold { opacity: .9; }
.gs-bgold.is-gold { opacity: 1; }
.gs-seg.is-shine { filter: drop-shadow(0 0 2.5px rgba(255, 214, 110, .85)); }
.gs-svg.is-whole { animation: gs-glow 3s ease-in-out 1; }
.gs-spark { fill: #fff3c0; opacity: 0; transform-box: fill-box; transform-origin: center; animation: gs-twinkle 2.6s ease-in-out 1 both; filter: drop-shadow(0 0 3px rgba(255, 228, 150, .9)); }
@keyframes gs-glow { 0%, 100% { box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .85); } 50% { box-shadow: 0 0 46px -6px rgba(255, 215, 120, .55); } }
@keyframes gs-twinkle { 0% { opacity: 0; transform: scale(.2) rotate(0); } 35% { opacity: 1; transform: scale(1.2) rotate(35deg); } 100% { opacity: 0; transform: scale(.4) rotate(70deg); } }
.gs-trace { margin: 10px 0 4px; text-align: center; }
.gs-refl { min-height: 1.5em; margin: 0 auto 8px; max-width: 34em; text-align: center; color: var(--dw-gold-light); font: italic 1.25rem/1.4 var(--dw-serif); }
.gs-ctl { justify-content: center; }
.gs-note { margin: 6px auto; max-width: 30em; }
.gs-note.is-kept .gs-in { border-color: var(--dw-gold); }
.gs-in { min-height: 44px; box-sizing: border-box; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--dw-line-strong); background: var(--dw-night); color: var(--dw-cream); font: inherit; flex: 1; min-width: 12em; }
.gs-in:focus { border-color: var(--dw-gold); outline: 2px solid var(--dw-gold); outline-offset: 1px; }
.gs-saved { list-style: none; margin: 8px auto 0; padding: 0; max-width: 30em; text-align: center; color: var(--dw-gold-light); font-style: italic; }
@media (prefers-reduced-motion: reduce) { .gs-seg, .gs-shinel, .gs-fleck, .gs-bgold { transition: none; } .gs-svg.is-whole { animation: none; } .gs-spark { animation: none; opacity: 0; } }
html.dw-calm .gs-seg, html.dw-calm .gs-shinel, html.dw-calm .gs-fleck, html.dw-calm .gs-bgold { transition: none; } html.dw-calm .gs-svg.is-whole { animation: none; } html.dw-calm .gs-spark { animation: none; opacity: 0; }

/* v1.120: the mended piece shown on the end screen */
.gs-final { display: grid; justify-items: center; gap: 10px; margin: 0 auto 20px; }
.gs-svg--final { width: min(100%, 520px); cursor: default; touch-action: auto; animation: gs-glow 3.5s ease-in-out 1; }
.gs-final figcaption { color: var(--dw-gold-light); font: italic 1.2rem/1.4 var(--dw-serif); text-align: center; }
@media (prefers-reduced-motion: reduce) { .gs-svg--final { animation: none; } }
html.dw-calm .gs-svg--final { animation: none; }
