diff --git a/src/authoring_service/constants.py b/src/authoring_service/constants.py index 37fc3a7..c5e094c 100755 --- a/src/authoring_service/constants.py +++ b/src/authoring_service/constants.py @@ -30,12 +30,15 @@ HIDDEN_SURFACES = [ "poem", "story", "observatory", + "constellation route", "hidden route", + "hidden interaction", "search", "keyboard", "play", "dream", "temporal", + "future z", "seasonal", "loading", "guestbook", diff --git a/src/authoring_service/templates.py b/src/authoring_service/templates.py index 819dcd0..c3c06c0 100755 --- a/src/authoring_service/templates.py +++ b/src/authoring_service/templates.py @@ -1174,6 +1174,19 @@ HIDDEN_APP_HTML = r""" linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 34px 34px; } + body::after { + content: ""; + position: fixed; + inset: 0; + pointer-events: none; + opacity: 0.28; + background-image: + radial-gradient(circle, rgba(255, 239, 191, 0.9) 0 1px, transparent 1.8px), + radial-gradient(circle, rgba(151, 205, 221, 0.68) 0 1px, transparent 1.7px); + background-position: 12% 18%, 72% 34%; + background-size: 240px 190px, 310px 260px; + animation: sky-drift 28s ease-in-out infinite alternate; + } button, input, textarea, select { font: inherit; } button { min-height: 36px; @@ -1329,12 +1342,14 @@ HIDDEN_APP_HTML = r""" .memory-node { cursor: grab; transition: opacity 160ms ease, filter 180ms ease; } .memory-node:active { cursor: grabbing; } .memory-node text, .node-label text, .cluster-label text { fill: #f7ead3; paint-order: stroke; stroke: rgba(14, 11, 8, 0.82); stroke-width: 3px; stroke-linejoin: round; } - .memory-node .node-shell, .memory-node .node-portrait, .memory-node .node-marker { + .memory-node .node-shell, .memory-node .node-portrait, .memory-node .node-marker, .memory-node .fragment-star { stroke: rgba(255, 246, 223, 0.82); stroke-width: 1.4; filter: drop-shadow(0 0 7px var(--node-glow, rgba(255, 232, 177, 0.18))); transition: r 160ms ease, stroke 160ms ease, opacity 160ms ease, filter 180ms ease; } + .memory-node .fragment-star { stroke-width: 1.1; } + .memory-node .fragment-ring { fill: none; stroke: rgba(255, 246, 223, 0.24); stroke-width: 1; stroke-dasharray: 2 7; } .memory-node .node-breathe, .cluster-node .node-breathe { animation: avatar-breathe 8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; } .memory-node:hover .node-shell, .memory-node:hover .node-portrait { filter: drop-shadow(0 0 20px var(--node-glow, rgba(255, 232, 177, 0.4))); } .memory-node.selected .node-shell, .memory-node.selected .node-portrait { stroke: #fff3c7; stroke-width: 3; } @@ -1558,9 +1573,43 @@ HIDDEN_APP_HTML = r""" background: rgba(251, 241, 220, 0.045); text-align: center; } - .edge.story-path { stroke: rgba(211, 166, 77, 0.72); stroke-width: 3; stroke-linecap: round; } + .edge.story-path { stroke: rgba(234, 195, 108, 0.7); stroke-width: 3; stroke-linecap: round; fill: none; filter: drop-shadow(0 0 8px rgba(234, 195, 108, 0.28)); } .edge.story-echo { stroke: rgba(117, 169, 189, 0.28); stroke-dasharray: 3 10; } - .story-region { fill: rgba(211, 166, 77, 0.035); stroke: rgba(211, 166, 77, 0.18); stroke-width: 1.4; stroke-dasharray: 8 12; } + .story-region { fill: rgba(211, 166, 77, 0.026); stroke: rgba(211, 166, 77, 0.16); stroke-width: 1.2; stroke-dasharray: 2 12; } + .route-spark { fill: rgba(255, 236, 181, 0.82); filter: drop-shadow(0 0 9px rgba(255, 236, 181, 0.46)); animation: constellation-shimmer 8s ease-in-out infinite; } + .appearance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; } + .appearance-toggle { + display: flex; + align-items: center; + gap: 7px; + min-height: 34px; + padding: 7px 8px; + border: 1px solid rgba(232, 202, 139, 0.16); + border-radius: 8px; + background: rgba(251, 241, 220, 0.055); + color: #ecd6ab; + font-size: 12px; + font-weight: 800; + } + .appearance-toggle input { width: auto; accent-color: var(--gold); } + .reuse-list { display: grid; gap: 8px; } + .reuse-item { + text-align: left; + width: 100%; + height: auto; + min-height: 0; + display: grid; + gap: 5px; + padding: 10px; + border: 1px solid rgba(232, 202, 139, 0.16); + border-radius: 8px; + background: rgba(251, 241, 220, 0.07); + } + .reuse-kind { color: #ffe2a6; font-size: 11px; font-weight: 850; text-transform: uppercase; } + .reuse-item.active { border-color: var(--gold); background: rgba(211, 166, 77, 0.15); } + .story-card, .story-flow-item, .reuse-item { transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease; } + .story-card:hover, .story-flow-item:hover, .reuse-item:hover { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22); } + .story-flow-list { gap: 12px; padding-left: 10px; border-left: 1px solid rgba(232, 202, 139, 0.16); } .hidden { display: none !important; } @keyframes breathe { 0%, 100% { opacity: 0.72; } @@ -1576,6 +1625,95 @@ HIDDEN_APP_HTML = r""" } .constellation-shimmer { animation: constellation-shimmer 9s ease-in-out infinite; } .core-glow { animation: breathe 7s ease-in-out infinite; } + @keyframes sky-drift { + from { transform: translate3d(0, 0, 0); opacity: 0.22; } + to { transform: translate3d(18px, -12px, 0); opacity: 0.34; } + } + .reader { + position: fixed; + inset: 0; + z-index: 50; + display: grid; + grid-template-rows: auto 1fr auto; + gap: 18px; + padding: min(6vw, 54px); + background: + radial-gradient(circle at 50% 18%, rgba(211, 166, 77, 0.18), transparent 24%), + radial-gradient(circle at 16% 82%, rgba(117, 169, 189, 0.14), transparent 26%), + rgba(10, 8, 7, 0.92); + backdrop-filter: blur(18px); + } + .reader-head, .reader-foot { + display: flex; + justify-content: space-between; + gap: 12px; + align-items: center; + } + .reader-title { max-width: 780px; } + .reader-title h1 { margin: 0; font-size: clamp(28px, 5vw, 62px); } + .reader-stage { + align-self: center; + width: min(860px, 100%); + margin: 0 auto; + min-height: min(58vh, 620px); + display: grid; + align-content: center; + gap: 22px; + position: relative; + } + .reader-stage::before { + content: ""; + position: absolute; + inset: -40px 8%; + border-top: 1px solid rgba(232, 202, 139, 0.16); + border-bottom: 1px solid rgba(117, 169, 189, 0.14); + border-radius: 50%; + opacity: 0.68; + pointer-events: none; + } + .reader-scene { + position: relative; + padding: clamp(22px, 4vw, 44px); + border: 1px solid rgba(232, 202, 139, 0.22); + border-radius: 8px; + background: linear-gradient(145deg, rgba(251, 241, 220, 0.1), rgba(18, 16, 13, 0.32)); + box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42); + animation: reader-rise 360ms ease both; + } + .reader-memory { + border-radius: 999px; + text-align: center; + padding: clamp(24px, 5vw, 54px); + background: radial-gradient(circle, rgba(255, 239, 191, 0.16), rgba(117, 169, 189, 0.06) 54%, transparent 72%); + border-color: rgba(255, 239, 191, 0.3); + } + .reader-kicker { color: #d9c28d; font-size: 12px; font-weight: 850; text-transform: uppercase; } + .reader-copy { + margin: 12px 0 0; + color: #fff0d2; + font-family: Georgia, "Times New Roman", serif; + font-size: clamp(22px, 3vw, 38px); + line-height: 1.48; + } + .reader-section .reader-copy { font-size: clamp(19px, 2.2vw, 30px); text-align: left; white-space: pre-wrap; } + .reader-route { + display: flex; + justify-content: center; + gap: 9px; + flex-wrap: wrap; + } + .reader-dot { + width: 10px; + height: 10px; + border-radius: 50%; + border: 1px solid rgba(255, 239, 191, 0.52); + background: rgba(251, 241, 220, 0.08); + } + .reader-dot.active { background: #f0cf83; box-shadow: 0 0 18px rgba(240, 207, 131, 0.62); } + @keyframes reader-rise { + from { opacity: 0; transform: translateY(12px) scale(0.99); } + to { opacity: 1; transform: translateY(0) scale(1); } + } @media (max-width: 1120px) { body { overflow: auto; } .observatory { grid-template-columns: 1fr; height: auto; min-height: 100vh; } @@ -1588,6 +1726,9 @@ HIDDEN_APP_HTML = r""" .map-head { position: static; padding: 16px; display: grid; } #graph { top: 128px; height: calc(100% - 128px); } .editor-grid { grid-template-columns: 1fr; } + .appearance-grid { grid-template-columns: 1fr; } + .reader { padding: 18px; } + .reader-head, .reader-foot { align-items: stretch; flex-direction: column; } } @@ -1665,6 +1806,7 @@ HIDDEN_APP_HTML = r""" + @@ -1738,7 +1880,11 @@ HIDDEN_APP_HTML = r""" - + +
+ +
+
@@ -1764,7 +1910,7 @@ HIDDEN_APP_HTML = r"""
-

This memory belongs to

+

This memory appears in

@@ -1779,17 +1925,54 @@ HIDDEN_APP_HTML = r""" +