Spaces:
Sleeping
Sleeping
Deploy Aether Garden application
Browse files- FIELD_NOTES.md +6 -0
- SUBMISSION_PACK.md +47 -0
- app.py +187 -31
- ui/share.py +37 -21
- ui/styles.css +469 -1
FIELD_NOTES.md
CHANGED
|
@@ -47,6 +47,12 @@ The AI is **load-bearing**. Remove inference and you have a database of text —
|
|
| 47 |
- Real-time WebSocket presence so visitors see arrivals live
|
| 48 |
- glTF characters instead of 2.5D cutouts
|
| 49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
## Try it
|
| 51 |
|
| 52 |
Summon something strange. Come back tomorrow. Read the Book of Ages. Someone you never met will have changed your soul's life.
|
|
|
|
| 47 |
- Real-time WebSocket presence so visitors see arrivals live
|
| 48 |
- glTF characters instead of 2.5D cutouts
|
| 49 |
|
| 50 |
+
## Prize strategy and deliberate tradeoffs
|
| 51 |
+
|
| 52 |
+
- We intentionally optimized for Thousand Token Wood + Off-Brand + Modal + Best Agent.
|
| 53 |
+
- We did not pursue Off the Grid, Tiny Titan, or llama.cpp because they would reduce the always-on, shared-world behavior that is core to this project.
|
| 54 |
+
- Our remaining bonus-quest path is: publish fine-tuned model, publish public traces dataset, publish this report as a Hub blog post.
|
| 55 |
+
|
| 56 |
## Try it
|
| 57 |
|
| 58 |
Summon something strange. Come back tomorrow. Read the Book of Ages. Someone you never met will have changed your soul's life.
|
SUBMISSION_PACK.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Aether Garden - Submission Pack
|
| 2 |
+
|
| 3 |
+
## 90-second demo script
|
| 4 |
+
|
| 5 |
+
1. Shot 1 (0:00-0:10): Show the closed leather cover and click Open The Tome.
|
| 6 |
+
2. Shot 2 (0:10-0:20): Table of Contents appears. Use the ribbon bookmark and jump to The Realm.
|
| 7 |
+
3. Shot 3 (0:20-0:32): Pan over the map and live chronicle timeline. Highlight that the world was alive before this session.
|
| 8 |
+
4. Shot 4 (0:32-0:48): Turn to Explore the Realm, select a location lens, open the diorama window, and walk/talk to a soul.
|
| 9 |
+
5. Shot 5 (0:48-1:05): Turn to Summon a New Soul. Enter a vivid prompt, click Seal & Summon, capture ink-bloom loading.
|
| 10 |
+
6. Shot 6 (1:05-1:18): Show the generated soul card and caption; flip back to The Realm to show the new arrival on the map.
|
| 11 |
+
7. Shot 7 (1:18-1:30): Open Book of Ages and Bonds to show autonomous memory, relationships, and persistent history.
|
| 12 |
+
|
| 13 |
+
## Social post draft
|
| 14 |
+
|
| 15 |
+
Built a world where the interface is a living book.
|
| 16 |
+
|
| 17 |
+
Aether Garden is a Gradio app where you turn pages through a persistent AI realm: map, chronicle, explore window, bonds, and summoning ritual.
|
| 18 |
+
|
| 19 |
+
Every visitor adds a soul. The world keeps evolving on its own every hour.
|
| 20 |
+
|
| 21 |
+
Live Space: https://huggingface.co/spaces/build-small-hackathon/aether-garden
|
| 22 |
+
|
| 23 |
+
#Gradio #HuggingFace #Modal #ThousandTokenWood #AetherGarden
|
| 24 |
+
|
| 25 |
+
## Track and badge checklist
|
| 26 |
+
|
| 27 |
+
- Main track: Thousand Token Wood - yes
|
| 28 |
+
- Built on Gradio and hosted on HF Space - yes
|
| 29 |
+
- Model parameters <= 32B - yes (Qwen 7B)
|
| 30 |
+
- Off-Brand custom UI - yes (Living Tome redesign)
|
| 31 |
+
- Modal-powered app - yes (inference + scheduled simulation)
|
| 32 |
+
- Best Agent alignment - yes (autonomous hourly world tick)
|
| 33 |
+
- Well-Tuned badge - pending (fine-tuned model publish)
|
| 34 |
+
- Sharing is Caring badge - pending (publish public trace dataset)
|
| 35 |
+
- Field Notes badge - pending external publish (content file exists)
|
| 36 |
+
- Off the Grid - intentionally not pursued
|
| 37 |
+
- Tiny Titan - not eligible with current model size
|
| 38 |
+
- Llama Champion - not pursued in current runtime
|
| 39 |
+
|
| 40 |
+
## Final submission items to attach
|
| 41 |
+
|
| 42 |
+
1. HF Space link
|
| 43 |
+
2. 90-second demo video
|
| 44 |
+
3. Social post URL
|
| 45 |
+
4. Optional: model card link (Well-Tuned)
|
| 46 |
+
5. Optional: trace dataset link (Sharing is Caring)
|
| 47 |
+
6. Optional: Field Notes blog link
|
app.py
CHANGED
|
@@ -71,21 +71,30 @@ _SOUL_LAST_REPLY: dict[str, str] = {}
|
|
| 71 |
|
| 72 |
|
| 73 |
def opening_gate_html() -> str:
|
| 74 |
-
|
| 75 |
-
|
| 76 |
<div id="realm-opening" class="realm-opening is-open" aria-live="polite">
|
| 77 |
<div class="realm-opening-backdrop"></div>
|
| 78 |
<div class="realm-opening-stars" aria-hidden="true"></div>
|
| 79 |
-
<div class="realm-
|
| 80 |
-
<p class="realm-
|
| 81 |
-
<h1 class="realm-
|
| 82 |
-
<p class="realm-
|
| 83 |
-
<
|
| 84 |
-
|
| 85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
</div>
|
| 87 |
</div>
|
| 88 |
-
|
| 89 |
|
| 90 |
|
| 91 |
def _init_world():
|
|
@@ -509,7 +518,7 @@ def build_app() -> gr.Blocks:
|
|
| 509 |
presence_bar = gr.HTML(value="", elem_id="presence-bar")
|
| 510 |
header = gr.HTML(value=get_header_html(), elem_classes=["realm-header-wrap"])
|
| 511 |
|
| 512 |
-
with gr.Tabs(elem_classes=["realm-tabs"]) as tabs:
|
| 513 |
with gr.Tab("The Realm", id="realm"):
|
| 514 |
world_vignette = gr.HTML(value=render_world_vignette())
|
| 515 |
realm_pulse = gr.HTML(value=render_realm_pulse())
|
|
@@ -547,7 +556,7 @@ def build_app() -> gr.Blocks:
|
|
| 547 |
live_tick_btn = gr.Button("Run simulation tick →", variant="secondary", size="sm")
|
| 548 |
tick_result = gr.HTML()
|
| 549 |
|
| 550 |
-
gr.HTML('<div class="summon-section"><h3 class="summon-title">Summon Something Into the Realm</h3></div>')
|
| 551 |
with gr.Row():
|
| 552 |
summon_input = gr.Textbox(
|
| 553 |
placeholder="Describe what you are bringing into the world...",
|
|
@@ -556,7 +565,7 @@ def build_app() -> gr.Blocks:
|
|
| 556 |
lines=2,
|
| 557 |
scale=4,
|
| 558 |
)
|
| 559 |
-
summon_btn = gr.Button("
|
| 560 |
|
| 561 |
gr.HTML(
|
| 562 |
'<p class="summon-hint">Hint: "A wizard" is forgotten. '
|
|
@@ -589,7 +598,7 @@ def build_app() -> gr.Blocks:
|
|
| 589 |
|
| 590 |
featured_chars = gr.HTML(value=render_featured_characters())
|
| 591 |
|
| 592 |
-
with gr.Tab("Explore", id="places"):
|
| 593 |
_all_locs = get_all_locations()
|
| 594 |
_default_loc_id = _all_locs[0]["id"] if _all_locs else None
|
| 595 |
explore_loc = gr.State(value=_default_loc_id)
|
|
@@ -654,7 +663,7 @@ def build_app() -> gr.Blocks:
|
|
| 654 |
)
|
| 655 |
book_display = gr.HTML(value=render_book_of_ages())
|
| 656 |
|
| 657 |
-
with gr.Tab("Bonds", id="bonds"):
|
| 658 |
gr.HTML(
|
| 659 |
'<div class="explore-intro">'
|
| 660 |
'<h2 class="section-title">The Web of Bonds</h2>'
|
|
@@ -663,7 +672,7 @@ def build_app() -> gr.Blocks:
|
|
| 663 |
)
|
| 664 |
rel_graph = gr.HTML(value=render_relationship_graph())
|
| 665 |
|
| 666 |
-
with gr.Tab("
|
| 667 |
with gr.Row():
|
| 668 |
loc_filter = gr.Dropdown(
|
| 669 |
choices=["all"] + [l["name"] for l in get_all_locations()],
|
|
@@ -886,30 +895,177 @@ def build_app() -> gr.Blocks:
|
|
| 886 |
|
| 887 |
MAP_CLICK_JS = """
|
| 888 |
() => {
|
| 889 |
-
const
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 890 |
const gate = document.getElementById('realm-opening');
|
| 891 |
-
if (
|
| 892 |
-
|
|
|
|
|
|
|
| 893 |
|
| 894 |
-
|
| 895 |
-
|
| 896 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 897 |
});
|
| 898 |
|
| 899 |
-
|
| 900 |
-
|
| 901 |
-
|
| 902 |
-
|
| 903 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 904 |
|
| 905 |
const btn = document.getElementById('realm-opening-enter');
|
| 906 |
-
if (btn)
|
| 907 |
-
|
| 908 |
-
|
| 909 |
-
|
|
|
|
|
|
|
|
|
|
| 910 |
};
|
| 911 |
|
| 912 |
wireOpening();
|
|
|
|
| 913 |
|
| 914 |
const bind = () => {
|
| 915 |
document.querySelectorAll('#world-map [data-location-id]').forEach((node) => {
|
|
|
|
| 71 |
|
| 72 |
|
| 73 |
def opening_gate_html() -> str:
|
| 74 |
+
"""Book cover intro and table-of-contents overlay."""
|
| 75 |
+
return """
|
| 76 |
<div id="realm-opening" class="realm-opening is-open" aria-live="polite">
|
| 77 |
<div class="realm-opening-backdrop"></div>
|
| 78 |
<div class="realm-opening-stars" aria-hidden="true"></div>
|
| 79 |
+
<div class="realm-cover-card">
|
| 80 |
+
<p class="realm-cover-kicker">Book of Ages, Vol. I</p>
|
| 81 |
+
<h1 class="realm-cover-title">AETHER GARDEN</h1>
|
| 82 |
+
<p class="realm-cover-sub">The Living Tome</p>
|
| 83 |
+
<button id="realm-opening-enter" type="button">Open The Tome</button>
|
| 84 |
+
</div>
|
| 85 |
+
<div class="realm-toc-card" id="realm-toc" aria-hidden="true">
|
| 86 |
+
<h2>Table of Contents</h2>
|
| 87 |
+
<div class="realm-toc-grid">
|
| 88 |
+
<button class="realm-toc-link" data-spread="realm">I. The Realm</button>
|
| 89 |
+
<button class="realm-toc-link" data-spread="explore">II. Explore the Realm</button>
|
| 90 |
+
<button class="realm-toc-link" data-spread="book">III. The Book of Ages</button>
|
| 91 |
+
<button class="realm-toc-link" data-spread="entities">IV. Souls of the Garden</button>
|
| 92 |
+
<button class="realm-toc-link" data-spread="bonds">V. Bonds and Alliances</button>
|
| 93 |
+
<button class="realm-toc-link" data-spread="summon">VI. Summon a New Soul</button>
|
| 94 |
+
</div>
|
| 95 |
</div>
|
| 96 |
</div>
|
| 97 |
+
"""
|
| 98 |
|
| 99 |
|
| 100 |
def _init_world():
|
|
|
|
| 518 |
presence_bar = gr.HTML(value="", elem_id="presence-bar")
|
| 519 |
header = gr.HTML(value=get_header_html(), elem_classes=["realm-header-wrap"])
|
| 520 |
|
| 521 |
+
with gr.Tabs(elem_id="tome-spreads", elem_classes=["realm-tabs"]) as tabs:
|
| 522 |
with gr.Tab("The Realm", id="realm"):
|
| 523 |
world_vignette = gr.HTML(value=render_world_vignette())
|
| 524 |
realm_pulse = gr.HTML(value=render_realm_pulse())
|
|
|
|
| 556 |
live_tick_btn = gr.Button("Run simulation tick →", variant="secondary", size="sm")
|
| 557 |
tick_result = gr.HTML()
|
| 558 |
|
| 559 |
+
gr.HTML('<div id="summon-spread" class="summon-section"><h3 class="summon-title">Summon Something Into the Realm</h3></div>')
|
| 560 |
with gr.Row():
|
| 561 |
summon_input = gr.Textbox(
|
| 562 |
placeholder="Describe what you are bringing into the world...",
|
|
|
|
| 565 |
lines=2,
|
| 566 |
scale=4,
|
| 567 |
)
|
| 568 |
+
summon_btn = gr.Button("Seal & Summon", variant="primary", scale=1, elem_classes=["seal-summon-btn"])
|
| 569 |
|
| 570 |
gr.HTML(
|
| 571 |
'<p class="summon-hint">Hint: "A wizard" is forgotten. '
|
|
|
|
| 598 |
|
| 599 |
featured_chars = gr.HTML(value=render_featured_characters())
|
| 600 |
|
| 601 |
+
with gr.Tab("Explore the Realm", id="places"):
|
| 602 |
_all_locs = get_all_locations()
|
| 603 |
_default_loc_id = _all_locs[0]["id"] if _all_locs else None
|
| 604 |
explore_loc = gr.State(value=_default_loc_id)
|
|
|
|
| 663 |
)
|
| 664 |
book_display = gr.HTML(value=render_book_of_ages())
|
| 665 |
|
| 666 |
+
with gr.Tab("Bonds and Alliances", id="bonds"):
|
| 667 |
gr.HTML(
|
| 668 |
'<div class="explore-intro">'
|
| 669 |
'<h2 class="section-title">The Web of Bonds</h2>'
|
|
|
|
| 672 |
)
|
| 673 |
rel_graph = gr.HTML(value=render_relationship_graph())
|
| 674 |
|
| 675 |
+
with gr.Tab("Souls of the Garden", id="entities"):
|
| 676 |
with gr.Row():
|
| 677 |
loc_filter = gr.Dropdown(
|
| 678 |
choices=["all"] + [l["name"] for l in get_all_locations()],
|
|
|
|
| 895 |
|
| 896 |
MAP_CLICK_JS = """
|
| 897 |
() => {
|
| 898 |
+
const prefersReduced = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
| 899 |
+
|
| 900 |
+
const sections = [
|
| 901 |
+
{ key: 'realm', label: 'The Realm', kind: 'tab' },
|
| 902 |
+
{ key: 'explore', label: 'Explore the Realm', kind: 'tab' },
|
| 903 |
+
{ key: 'book', label: 'Book of Ages', kind: 'tab' },
|
| 904 |
+
{ key: 'entities', label: 'Souls of the Garden', kind: 'tab' },
|
| 905 |
+
{ key: 'bonds', label: 'Bonds and Alliances', kind: 'tab' },
|
| 906 |
+
{ key: 'summon', label: 'Summon', kind: 'summon' }
|
| 907 |
+
];
|
| 908 |
+
let currentSpread = 0;
|
| 909 |
+
|
| 910 |
+
const toRoman = (n) => {
|
| 911 |
+
const map = [
|
| 912 |
+
[1000, 'M'], [900, 'CM'], [500, 'D'], [400, 'CD'], [100, 'C'], [90, 'XC'],
|
| 913 |
+
[50, 'L'], [40, 'XL'], [10, 'X'], [9, 'IX'], [5, 'V'], [4, 'IV'], [1, 'I']
|
| 914 |
+
];
|
| 915 |
+
let out = '';
|
| 916 |
+
for (const [v, s] of map) {
|
| 917 |
+
while (n >= v) { out += s; n -= v; }
|
| 918 |
+
}
|
| 919 |
+
return out;
|
| 920 |
+
};
|
| 921 |
+
|
| 922 |
+
const getTabButtons = () => Array.from(document.querySelectorAll('.realm-tabs button')).filter((b) => !!b.textContent?.trim());
|
| 923 |
+
|
| 924 |
+
const clickTabByLabel = (label) => {
|
| 925 |
+
const btn = getTabButtons().find((b) => b.textContent.trim() === label);
|
| 926 |
+
if (btn) btn.click();
|
| 927 |
+
};
|
| 928 |
+
|
| 929 |
+
const applyTurnFx = (direction) => {
|
| 930 |
+
if (prefersReduced) return;
|
| 931 |
+
const root = document.querySelector('.gradio-container');
|
| 932 |
+
if (!root) return;
|
| 933 |
+
root.classList.remove('tome-turn-next', 'tome-turn-prev');
|
| 934 |
+
root.classList.add(direction === 'prev' ? 'tome-turn-prev' : 'tome-turn-next');
|
| 935 |
+
setTimeout(() => root.classList.remove('tome-turn-next', 'tome-turn-prev'), 720);
|
| 936 |
+
};
|
| 937 |
+
|
| 938 |
+
const updatePageBadge = () => {
|
| 939 |
+
const page = document.getElementById('tome-page-indicator');
|
| 940 |
+
if (!page) return;
|
| 941 |
+
const idx = Math.max(1, currentSpread + 1);
|
| 942 |
+
page.textContent = `Page ${toRoman(idx + 4)}`;
|
| 943 |
+
};
|
| 944 |
+
|
| 945 |
+
const closeToc = () => {
|
| 946 |
+
const toc = document.getElementById('realm-toc');
|
| 947 |
+
if (toc) toc.classList.remove('open');
|
| 948 |
+
const floating = document.getElementById('tome-floating-toc');
|
| 949 |
+
if (floating) floating.classList.remove('open');
|
| 950 |
+
};
|
| 951 |
+
|
| 952 |
+
const goToSpread = (idx, direction = 'next') => {
|
| 953 |
+
const clamped = Math.max(0, Math.min(sections.length - 1, idx));
|
| 954 |
+
const spread = sections[clamped];
|
| 955 |
+
if (!spread) return;
|
| 956 |
+
applyTurnFx(direction);
|
| 957 |
+
|
| 958 |
+
if (spread.kind === 'tab') {
|
| 959 |
+
clickTabByLabel(spread.label);
|
| 960 |
+
} else {
|
| 961 |
+
clickTabByLabel('The Realm');
|
| 962 |
+
setTimeout(() => {
|
| 963 |
+
const target = document.getElementById('summon-spread');
|
| 964 |
+
if (target) target.scrollIntoView({ behavior: prefersReduced ? 'auto' : 'smooth', block: 'center' });
|
| 965 |
+
}, 140);
|
| 966 |
+
}
|
| 967 |
+
|
| 968 |
+
currentSpread = clamped;
|
| 969 |
+
updatePageBadge();
|
| 970 |
+
closeToc();
|
| 971 |
+
|
| 972 |
const gate = document.getElementById('realm-opening');
|
| 973 |
+
if (gate && gate.classList.contains('is-opened')) {
|
| 974 |
+
gate.classList.add('is-closed');
|
| 975 |
+
}
|
| 976 |
+
};
|
| 977 |
|
| 978 |
+
const wireTomeNav = () => {
|
| 979 |
+
if (window._tomeNavBound) return;
|
| 980 |
+
window._tomeNavBound = true;
|
| 981 |
+
|
| 982 |
+
const root = document.querySelector('.gradio-container');
|
| 983 |
+
if (root && !document.getElementById('tome-nav')) {
|
| 984 |
+
const nav = document.createElement('div');
|
| 985 |
+
nav.id = 'tome-nav';
|
| 986 |
+
nav.innerHTML = `
|
| 987 |
+
<button type="button" id="tome-prev" class="tome-corner tome-corner-left" aria-label="Previous spread">❮</button>
|
| 988 |
+
<button type="button" id="tome-next" class="tome-corner tome-corner-right" aria-label="Next spread">❯</button>
|
| 989 |
+
<button type="button" id="tome-toc-open" class="tome-ribbon" aria-label="Open table of contents">Table of Contents</button>
|
| 990 |
+
<div id="tome-page-indicator" class="tome-page-indicator">Page V</div>
|
| 991 |
+
<div id="tome-floating-toc" class="tome-floating-toc">
|
| 992 |
+
${sections.map((s, i) => `<button type="button" class="tome-floating-link" data-index="${i}">${s.key === 'summon' ? 'VI. Summon a New Soul' : `${toRoman(i + 1)}. ${s.label}`}</button>`).join('')}
|
| 993 |
+
</div>
|
| 994 |
+
<label class="sr-only" for="tome-jump">Jump to section</label>
|
| 995 |
+
<select id="tome-jump" class="tome-jump-select" aria-label="Jump to section">
|
| 996 |
+
${sections.map((s, i) => `<option value="${i}">${s.key === 'summon' ? 'VI. Summon a New Soul' : `${toRoman(i + 1)}. ${s.label}`}</option>`).join('')}
|
| 997 |
+
</select>
|
| 998 |
+
`;
|
| 999 |
+
document.body.appendChild(nav);
|
| 1000 |
+
}
|
| 1001 |
+
|
| 1002 |
+
const prev = document.getElementById('tome-prev');
|
| 1003 |
+
const next = document.getElementById('tome-next');
|
| 1004 |
+
const tocOpen = document.getElementById('tome-toc-open');
|
| 1005 |
+
const jump = document.getElementById('tome-jump');
|
| 1006 |
+
|
| 1007 |
+
if (prev && !prev.dataset.bound) {
|
| 1008 |
+
prev.dataset.bound = '1';
|
| 1009 |
+
prev.addEventListener('click', () => goToSpread(currentSpread - 1, 'prev'));
|
| 1010 |
+
}
|
| 1011 |
+
if (next && !next.dataset.bound) {
|
| 1012 |
+
next.dataset.bound = '1';
|
| 1013 |
+
next.addEventListener('click', () => goToSpread(currentSpread + 1, 'next'));
|
| 1014 |
+
}
|
| 1015 |
+
if (tocOpen && !tocOpen.dataset.bound) {
|
| 1016 |
+
tocOpen.dataset.bound = '1';
|
| 1017 |
+
tocOpen.addEventListener('click', () => {
|
| 1018 |
+
const floating = document.getElementById('tome-floating-toc');
|
| 1019 |
+
if (floating) floating.classList.toggle('open');
|
| 1020 |
+
});
|
| 1021 |
+
}
|
| 1022 |
+
if (jump && !jump.dataset.bound) {
|
| 1023 |
+
jump.dataset.bound = '1';
|
| 1024 |
+
jump.addEventListener('change', () => goToSpread(Number(jump.value || 0), 'next'));
|
| 1025 |
+
}
|
| 1026 |
+
|
| 1027 |
+
document.querySelectorAll('.realm-toc-link').forEach((btn, idx) => {
|
| 1028 |
+
if (btn.dataset.bound) return;
|
| 1029 |
+
btn.dataset.bound = '1';
|
| 1030 |
+
btn.addEventListener('click', () => goToSpread(idx, idx < currentSpread ? 'prev' : 'next'));
|
| 1031 |
+
});
|
| 1032 |
+
document.querySelectorAll('.tome-floating-link').forEach((btn) => {
|
| 1033 |
+
if (btn.dataset.bound) return;
|
| 1034 |
+
btn.dataset.bound = '1';
|
| 1035 |
+
btn.addEventListener('click', () => {
|
| 1036 |
+
const idx = Number(btn.dataset.index || 0);
|
| 1037 |
+
goToSpread(idx, idx < currentSpread ? 'prev' : 'next');
|
| 1038 |
+
});
|
| 1039 |
});
|
| 1040 |
|
| 1041 |
+
window.addEventListener('keydown', (e) => {
|
| 1042 |
+
const tag = document.activeElement?.tagName;
|
| 1043 |
+
if (tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT') return;
|
| 1044 |
+
if (e.key === 'ArrowRight') goToSpread(currentSpread + 1, 'next');
|
| 1045 |
+
if (e.key === 'ArrowLeft') goToSpread(currentSpread - 1, 'prev');
|
| 1046 |
+
if (e.key === 'Escape') closeToc();
|
| 1047 |
+
}, { passive: true });
|
| 1048 |
+
|
| 1049 |
+
updatePageBadge();
|
| 1050 |
+
};
|
| 1051 |
+
|
| 1052 |
+
const wireOpening = () => {
|
| 1053 |
+
const gate = document.getElementById('realm-opening');
|
| 1054 |
+
if (!gate || gate.dataset.bound) return;
|
| 1055 |
+
gate.dataset.bound = '1';
|
| 1056 |
|
| 1057 |
const btn = document.getElementById('realm-opening-enter');
|
| 1058 |
+
if (btn) {
|
| 1059 |
+
btn.addEventListener('click', () => {
|
| 1060 |
+
gate.classList.add('is-opened');
|
| 1061 |
+
const toc = document.getElementById('realm-toc');
|
| 1062 |
+
if (toc) toc.classList.add('open');
|
| 1063 |
+
});
|
| 1064 |
+
}
|
| 1065 |
};
|
| 1066 |
|
| 1067 |
wireOpening();
|
| 1068 |
+
wireTomeNav();
|
| 1069 |
|
| 1070 |
const bind = () => {
|
| 1071 |
document.querySelectorAll('#world-map [data-location-id]').forEach((node) => {
|
ui/share.py
CHANGED
|
@@ -23,9 +23,9 @@ _OUT_DIR = Path(tempfile.gettempdir()) / "aether_soul_cards"
|
|
| 23 |
_OUT_DIR.mkdir(parents=True, exist_ok=True)
|
| 24 |
|
| 25 |
W, H = 1200, 675
|
| 26 |
-
GOLD = (
|
| 27 |
-
CREAM = (
|
| 28 |
-
MUTED = (
|
| 29 |
|
| 30 |
TYPE_LABELS = {
|
| 31 |
"character": "Character",
|
|
@@ -105,7 +105,16 @@ def build_soul_card(entity: dict) -> str | None:
|
|
| 105 |
slug = location.get("slug")
|
| 106 |
accent = _hex_to_rgb(location.get("glow_color"))
|
| 107 |
|
| 108 |
-
canvas = Image.new("RGB", (W, H), (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
|
| 110 |
# --- backdrop -------------------------------------------------
|
| 111 |
loc_file = assets.LOCATION_IMAGES.get(slug) if slug else None
|
|
@@ -113,8 +122,8 @@ def build_soul_card(entity: dict) -> str | None:
|
|
| 113 |
if bg_path and bg_path.exists():
|
| 114 |
bg = Image.open(bg_path).convert("RGB")
|
| 115 |
bg = _cover(bg, W, H)
|
| 116 |
-
bg = ImageEnhance.Brightness(bg).enhance(0.
|
| 117 |
-
bg = ImageEnhance.Color(bg).enhance(0.
|
| 118 |
canvas.paste(bg, (0, 0))
|
| 119 |
|
| 120 |
# darkening + readability scrims
|
|
@@ -125,13 +134,13 @@ def build_soul_card(entity: dict) -> str | None:
|
|
| 125 |
od.line([(0, i), (W, i)], fill=(6, 6, 12, a))
|
| 126 |
# right-side text panel scrim — ramps to a near-solid plate so the
|
| 127 |
# name and quote stay crisp over even the busiest backdrop.
|
| 128 |
-
panel_start =
|
| 129 |
for i in range(W):
|
| 130 |
if i < panel_start:
|
| 131 |
continue
|
| 132 |
frac = (i - panel_start) / (W - panel_start)
|
| 133 |
-
a = int(
|
| 134 |
-
od.line([(i, 0), (i, H)], fill=(
|
| 135 |
canvas = Image.alpha_composite(canvas.convert("RGBA"), overlay).convert("RGB")
|
| 136 |
|
| 137 |
# accent vignette at top
|
|
@@ -148,7 +157,7 @@ def build_soul_card(entity: dict) -> str | None:
|
|
| 148 |
sp_path = assets.ASSET_DIR / sprite_file
|
| 149 |
if sp_path.exists():
|
| 150 |
sprite = Image.open(sp_path).convert("RGBA")
|
| 151 |
-
target_h =
|
| 152 |
ratio = target_h / sprite.height
|
| 153 |
sprite = sprite.resize((int(sprite.width * ratio), target_h), Image.LANCZOS)
|
| 154 |
# contact shadow
|
|
@@ -159,11 +168,14 @@ def build_soul_card(entity: dict) -> str | None:
|
|
| 159 |
shadow = shadow.filter(ImageFilter.GaussianBlur(22))
|
| 160 |
canvas = Image.alpha_composite(canvas.convert("RGBA"), shadow).convert("RGB")
|
| 161 |
# soft glow behind sprite
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
|
|
|
|
|
|
|
|
|
| 167 |
canvas.paste(sprite, (70, 120), sprite)
|
| 168 |
draw = ImageDraw.Draw(canvas)
|
| 169 |
|
|
@@ -173,15 +185,15 @@ def build_soul_card(entity: dict) -> str | None:
|
|
| 173 |
y = 78
|
| 174 |
|
| 175 |
f_kicker = _font("Cinzel.ttf", 19)
|
| 176 |
-
f_name = _font("Cinzel.ttf",
|
| 177 |
-
f_name_sm = _font("Cinzel.ttf",
|
| 178 |
f_meta = _font("Cinzel.ttf", 18)
|
| 179 |
f_label = _font("Cinzel.ttf", 15)
|
| 180 |
f_body = _font("EBGaramond.ttf", 25)
|
| 181 |
f_quote = _font("EBGaramond-Italic.ttf", 27)
|
| 182 |
f_foot = _font("Cinzel.ttf", 17)
|
| 183 |
|
| 184 |
-
draw.text((tx, y), "
|
| 185 |
y += 40
|
| 186 |
|
| 187 |
name = entity.get("name", "A New Soul")
|
|
@@ -218,14 +230,18 @@ def build_soul_card(entity: dict) -> str | None:
|
|
| 218 |
|
| 219 |
# --- footer --------------------------------------------------
|
| 220 |
draw.line([(tx, H - 64), (W - 60, H - 64)], fill=(90, 80, 60), width=1)
|
| 221 |
-
draw.text((tx, H - 50), "AETHER
|
| 222 |
-
tagline = "
|
| 223 |
f_tag = _font("EBGaramond-Italic.ttf", 20)
|
| 224 |
tw = draw.textlength(tagline, font=f_tag)
|
| 225 |
draw.text((W - 60 - tw, H - 49), tagline, font=f_tag, fill=MUTED)
|
| 226 |
|
| 227 |
# outer border
|
| 228 |
-
draw.rectangle([6, 6, W - 7, H - 7], outline=(*accent,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 229 |
|
| 230 |
# --- save ----------------------------------------------------
|
| 231 |
key = hashlib.md5(
|
|
|
|
| 23 |
_OUT_DIR.mkdir(parents=True, exist_ok=True)
|
| 24 |
|
| 25 |
W, H = 1200, 675
|
| 26 |
+
GOLD = (201, 161, 59)
|
| 27 |
+
CREAM = (244, 234, 208)
|
| 28 |
+
MUTED = (112, 88, 56)
|
| 29 |
|
| 30 |
TYPE_LABELS = {
|
| 31 |
"character": "Character",
|
|
|
|
| 105 |
slug = location.get("slug")
|
| 106 |
accent = _hex_to_rgb(location.get("glow_color"))
|
| 107 |
|
| 108 |
+
canvas = Image.new("RGB", (W, H), (243, 230, 200))
|
| 109 |
+
paper = Image.new("RGBA", (W, H), (0, 0, 0, 0))
|
| 110 |
+
pd = ImageDraw.Draw(paper)
|
| 111 |
+
for i in range(0, W, 4):
|
| 112 |
+
alpha = 8 + (i % 17)
|
| 113 |
+
pd.line([(i, 0), (i, H)], fill=(80, 54, 28, alpha))
|
| 114 |
+
for i in range(0, H, 5):
|
| 115 |
+
alpha = 6 + (i % 11)
|
| 116 |
+
pd.line([(0, i), (W, i)], fill=(122, 88, 51, alpha))
|
| 117 |
+
canvas = Image.alpha_composite(canvas.convert("RGBA"), paper).convert("RGB")
|
| 118 |
|
| 119 |
# --- backdrop -------------------------------------------------
|
| 120 |
loc_file = assets.LOCATION_IMAGES.get(slug) if slug else None
|
|
|
|
| 122 |
if bg_path and bg_path.exists():
|
| 123 |
bg = Image.open(bg_path).convert("RGB")
|
| 124 |
bg = _cover(bg, W, H)
|
| 125 |
+
bg = ImageEnhance.Brightness(bg).enhance(0.5)
|
| 126 |
+
bg = ImageEnhance.Color(bg).enhance(0.62)
|
| 127 |
canvas.paste(bg, (0, 0))
|
| 128 |
|
| 129 |
# darkening + readability scrims
|
|
|
|
| 134 |
od.line([(0, i), (W, i)], fill=(6, 6, 12, a))
|
| 135 |
# right-side text panel scrim — ramps to a near-solid plate so the
|
| 136 |
# name and quote stay crisp over even the busiest backdrop.
|
| 137 |
+
panel_start = 500
|
| 138 |
for i in range(W):
|
| 139 |
if i < panel_start:
|
| 140 |
continue
|
| 141 |
frac = (i - panel_start) / (W - panel_start)
|
| 142 |
+
a = int(24 + 175 * frac)
|
| 143 |
+
od.line([(i, 0), (i, H)], fill=(35, 24, 12, min(a, 208)))
|
| 144 |
canvas = Image.alpha_composite(canvas.convert("RGBA"), overlay).convert("RGB")
|
| 145 |
|
| 146 |
# accent vignette at top
|
|
|
|
| 157 |
sp_path = assets.ASSET_DIR / sprite_file
|
| 158 |
if sp_path.exists():
|
| 159 |
sprite = Image.open(sp_path).convert("RGBA")
|
| 160 |
+
target_h = 455
|
| 161 |
ratio = target_h / sprite.height
|
| 162 |
sprite = sprite.resize((int(sprite.width * ratio), target_h), Image.LANCZOS)
|
| 163 |
# contact shadow
|
|
|
|
| 168 |
shadow = shadow.filter(ImageFilter.GaussianBlur(22))
|
| 169 |
canvas = Image.alpha_composite(canvas.convert("RGBA"), shadow).convert("RGB")
|
| 170 |
# soft glow behind sprite
|
| 171 |
+
frame = Image.new("RGBA", (W, H), (0, 0, 0, 0))
|
| 172 |
+
fd = ImageDraw.Draw(frame)
|
| 173 |
+
oval = [38, 84, 38 + sprite.width + 84, 84 + target_h + 36]
|
| 174 |
+
fd.ellipse(oval, fill=(35, 24, 12, 168), outline=(201, 161, 59, 230), width=6)
|
| 175 |
+
inner = [oval[0] + 10, oval[1] + 10, oval[2] - 10, oval[3] - 10]
|
| 176 |
+
fd.ellipse(inner, outline=(232, 200, 115, 160), width=2)
|
| 177 |
+
frame = frame.filter(ImageFilter.GaussianBlur(0.3))
|
| 178 |
+
canvas = Image.alpha_composite(canvas.convert("RGBA"), frame).convert("RGB")
|
| 179 |
canvas.paste(sprite, (70, 120), sprite)
|
| 180 |
draw = ImageDraw.Draw(canvas)
|
| 181 |
|
|
|
|
| 185 |
y = 78
|
| 186 |
|
| 187 |
f_kicker = _font("Cinzel.ttf", 19)
|
| 188 |
+
f_name = _font("Cinzel.ttf", 56)
|
| 189 |
+
f_name_sm = _font("Cinzel.ttf", 42)
|
| 190 |
f_meta = _font("Cinzel.ttf", 18)
|
| 191 |
f_label = _font("Cinzel.ttf", 15)
|
| 192 |
f_body = _font("EBGaramond.ttf", 25)
|
| 193 |
f_quote = _font("EBGaramond-Italic.ttf", 27)
|
| 194 |
f_foot = _font("Cinzel.ttf", 17)
|
| 195 |
|
| 196 |
+
draw.text((tx, y), "A PAGE FROM THE BOOK OF AGES", font=f_kicker, fill=GOLD)
|
| 197 |
y += 40
|
| 198 |
|
| 199 |
name = entity.get("name", "A New Soul")
|
|
|
|
| 230 |
|
| 231 |
# --- footer --------------------------------------------------
|
| 232 |
draw.line([(tx, H - 64), (W - 60, H - 64)], fill=(90, 80, 60), width=1)
|
| 233 |
+
draw.text((tx, H - 50), "AETHER GARDEN - BOOK OF AGES, VOL. I", font=f_foot, fill=GOLD)
|
| 234 |
+
tagline = "Torn from a living chronicle"
|
| 235 |
f_tag = _font("EBGaramond-Italic.ttf", 20)
|
| 236 |
tw = draw.textlength(tagline, font=f_tag)
|
| 237 |
draw.text((W - 60 - tw, H - 49), tagline, font=f_tag, fill=MUTED)
|
| 238 |
|
| 239 |
# outer border
|
| 240 |
+
draw.rectangle([6, 6, W - 7, H - 7], outline=(*accent,), width=2)
|
| 241 |
+
for y in range(0, H, 26):
|
| 242 |
+
jitter = 4 if (y // 26) % 2 == 0 else -3
|
| 243 |
+
draw.line([(0, y), (10 + jitter, y + 1)], fill=(194, 168, 119), width=2)
|
| 244 |
+
draw.line([(W - (10 + jitter), y), (W, y + 1)], fill=(194, 168, 119), width=2)
|
| 245 |
|
| 246 |
# --- save ----------------------------------------------------
|
| 247 |
key = hashlib.md5(
|
ui/styles.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=EB+Garamond:ital@0;1&family=Libre+Baskerville:ital@0;1&display=swap');
|
| 2 |
|
| 3 |
:root {
|
| 4 |
--realm-bg-primary: #0c1410;
|
|
@@ -2148,6 +2148,474 @@ body, .gradio-container {
|
|
| 2148 |
background: linear-gradient(90deg, transparent, var(--realm-border-strong), transparent);
|
| 2149 |
}
|
| 2150 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2151 |
/* Mystical opening gate */
|
| 2152 |
.realm-opening {
|
| 2153 |
position: fixed;
|
|
|
|
| 1 |
+
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Cinzel+Decorative:wght@700&family=Cormorant+Garamond:ital,wght@0,500;1,500&family=EB+Garamond:ital@0;1&family=IM+Fell+English:ital@0;1&family=Libre+Baskerville:ital@0;1&display=swap');
|
| 2 |
|
| 3 |
:root {
|
| 4 |
--realm-bg-primary: #0c1410;
|
|
|
|
| 2148 |
background: linear-gradient(90deg, transparent, var(--realm-border-strong), transparent);
|
| 2149 |
}
|
| 2150 |
|
| 2151 |
+
/* -------------------------------------------------------------------------- */
|
| 2152 |
+
/* Living Tome redesign overrides */
|
| 2153 |
+
/* -------------------------------------------------------------------------- */
|
| 2154 |
+
:root {
|
| 2155 |
+
--tome-paper: #f3e6c8;
|
| 2156 |
+
--tome-paper-shadow: #d8c69e;
|
| 2157 |
+
--tome-paper-edge: #c2a877;
|
| 2158 |
+
--tome-ink: #3a2a1a;
|
| 2159 |
+
--tome-ink-faded: #6b5638;
|
| 2160 |
+
--tome-ink-red: #7a2e1d;
|
| 2161 |
+
--tome-leather: #4a2c1a;
|
| 2162 |
+
--tome-leather-light: #6b4226;
|
| 2163 |
+
--tome-leather-dark: #2e1a10;
|
| 2164 |
+
--tome-binding: #8a6a3a;
|
| 2165 |
+
--tome-gold: #c9a13b;
|
| 2166 |
+
--tome-gold-bright: #e8c873;
|
| 2167 |
+
--tome-gold-dark: #8a6c24;
|
| 2168 |
+
--tome-bronze: #a3713c;
|
| 2169 |
+
--tome-shadow: rgba(40, 25, 10, 0.45);
|
| 2170 |
+
--tome-glow: rgba(232, 200, 115, 0.35);
|
| 2171 |
+
--tome-overlay: rgba(58, 42, 26, 0.06);
|
| 2172 |
+
}
|
| 2173 |
+
|
| 2174 |
+
body,
|
| 2175 |
+
.gradio-container {
|
| 2176 |
+
color: var(--tome-ink) !important;
|
| 2177 |
+
background:
|
| 2178 |
+
radial-gradient(circle at 20% 10%, rgba(201,161,59,0.08), transparent 30rem),
|
| 2179 |
+
radial-gradient(circle at 88% 12%, rgba(163,113,60,0.09), transparent 26rem),
|
| 2180 |
+
linear-gradient(180deg, #26170f 0%, #130c08 100%) !important;
|
| 2181 |
+
}
|
| 2182 |
+
|
| 2183 |
+
.realm-tabs {
|
| 2184 |
+
background: transparent !important;
|
| 2185 |
+
border: 0 !important;
|
| 2186 |
+
}
|
| 2187 |
+
|
| 2188 |
+
.realm-tabs button,
|
| 2189 |
+
.realm-tabs [role="tablist"] {
|
| 2190 |
+
display: none !important;
|
| 2191 |
+
}
|
| 2192 |
+
|
| 2193 |
+
.realm-tabs [role="tabpanel"] {
|
| 2194 |
+
margin: 0 auto;
|
| 2195 |
+
max-width: 1380px;
|
| 2196 |
+
min-height: 70vh;
|
| 2197 |
+
border: 1px solid var(--tome-paper-edge) !important;
|
| 2198 |
+
border-radius: 18px !important;
|
| 2199 |
+
padding: 1.2rem 1.25rem 2.2rem;
|
| 2200 |
+
color: var(--tome-ink) !important;
|
| 2201 |
+
background:
|
| 2202 |
+
radial-gradient(circle at 14% 18%, rgba(255,255,255,0.35), transparent 35%),
|
| 2203 |
+
radial-gradient(circle at 82% 84%, rgba(194,168,119,0.26), transparent 40%),
|
| 2204 |
+
linear-gradient(180deg, var(--tome-paper) 0%, #ecdcb8 100%) !important;
|
| 2205 |
+
box-shadow:
|
| 2206 |
+
0 30px 90px var(--tome-shadow),
|
| 2207 |
+
inset 0 0 0 2px rgba(255, 247, 224, 0.42),
|
| 2208 |
+
inset 0 -30px 80px rgba(168, 134, 83, 0.22);
|
| 2209 |
+
position: relative;
|
| 2210 |
+
overflow: hidden;
|
| 2211 |
+
}
|
| 2212 |
+
|
| 2213 |
+
.realm-tabs [role="tabpanel"]::before {
|
| 2214 |
+
content: "";
|
| 2215 |
+
position: absolute;
|
| 2216 |
+
inset: 0;
|
| 2217 |
+
pointer-events: none;
|
| 2218 |
+
background-image:
|
| 2219 |
+
radial-gradient(circle at 12% 18%, rgba(113, 82, 42, 0.08) 0 2px, transparent 2px),
|
| 2220 |
+
radial-gradient(circle at 70% 74%, rgba(113, 82, 42, 0.06) 0 1.5px, transparent 1.5px);
|
| 2221 |
+
opacity: 0.35;
|
| 2222 |
+
}
|
| 2223 |
+
|
| 2224 |
+
.realm-tabs [role="tabpanel"]::after {
|
| 2225 |
+
content: "";
|
| 2226 |
+
position: absolute;
|
| 2227 |
+
top: 0;
|
| 2228 |
+
bottom: 0;
|
| 2229 |
+
left: 50%;
|
| 2230 |
+
width: 56px;
|
| 2231 |
+
transform: translateX(-50%);
|
| 2232 |
+
pointer-events: none;
|
| 2233 |
+
background: linear-gradient(90deg, rgba(122,92,52,0.22), rgba(234,215,175,0.05), rgba(122,92,52,0.22));
|
| 2234 |
+
opacity: 0.62;
|
| 2235 |
+
}
|
| 2236 |
+
|
| 2237 |
+
.gradio-container .section-title,
|
| 2238 |
+
.gradio-container .book-title,
|
| 2239 |
+
.gradio-container .diorama-place-name,
|
| 2240 |
+
.gradio-container .room-name,
|
| 2241 |
+
.gradio-container .entity-name,
|
| 2242 |
+
.gradio-container .loc-card-name {
|
| 2243 |
+
color: var(--tome-ink) !important;
|
| 2244 |
+
font-family: 'Cinzel Decorative', 'Cinzel', serif !important;
|
| 2245 |
+
text-shadow: none !important;
|
| 2246 |
+
}
|
| 2247 |
+
|
| 2248 |
+
.gradio-container .section-desc,
|
| 2249 |
+
.gradio-container .vignette-text,
|
| 2250 |
+
.gradio-container .feed-content,
|
| 2251 |
+
.gradio-container .entry-content,
|
| 2252 |
+
.gradio-container .entity-appearance,
|
| 2253 |
+
.gradio-container .room-lore,
|
| 2254 |
+
.gradio-container .pulse-detail,
|
| 2255 |
+
.gradio-container p,
|
| 2256 |
+
.gradio-container li,
|
| 2257 |
+
.gradio-container label {
|
| 2258 |
+
color: var(--tome-ink) !important;
|
| 2259 |
+
}
|
| 2260 |
+
|
| 2261 |
+
.gradio-container .hero-banner,
|
| 2262 |
+
.gradio-container .world-vignette,
|
| 2263 |
+
.gradio-container .current-event,
|
| 2264 |
+
.gradio-container .pulse-card,
|
| 2265 |
+
.gradio-container .entity-card,
|
| 2266 |
+
.gradio-container .book-container,
|
| 2267 |
+
.gradio-container .location-panel,
|
| 2268 |
+
.gradio-container .featured-card,
|
| 2269 |
+
.gradio-container .entity-grid-card,
|
| 2270 |
+
.gradio-container .room-view,
|
| 2271 |
+
.gradio-container .diorama-wrap {
|
| 2272 |
+
background:
|
| 2273 |
+
linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.02)),
|
| 2274 |
+
linear-gradient(180deg, #f6ead0, #ecdbb8) !important;
|
| 2275 |
+
border-color: var(--tome-paper-edge) !important;
|
| 2276 |
+
box-shadow: 0 14px 35px rgba(78, 55, 26, 0.24) !important;
|
| 2277 |
+
}
|
| 2278 |
+
|
| 2279 |
+
.gradio-container .hero-statusbar,
|
| 2280 |
+
.gradio-container .diorama-header,
|
| 2281 |
+
.gradio-container .realm-pulse {
|
| 2282 |
+
background: linear-gradient(180deg, #ecd8af, #e2c89a) !important;
|
| 2283 |
+
}
|
| 2284 |
+
|
| 2285 |
+
.location-circle,
|
| 2286 |
+
.pulse-title,
|
| 2287 |
+
.event-label,
|
| 2288 |
+
.section-label,
|
| 2289 |
+
.room-eyebrow,
|
| 2290 |
+
.oracle-title,
|
| 2291 |
+
.vignette-label,
|
| 2292 |
+
.entity-type,
|
| 2293 |
+
.entity-status,
|
| 2294 |
+
.book-day-header,
|
| 2295 |
+
.entry-type-badge {
|
| 2296 |
+
color: var(--tome-gold-dark) !important;
|
| 2297 |
+
}
|
| 2298 |
+
|
| 2299 |
+
#tome-nav {
|
| 2300 |
+
position: fixed;
|
| 2301 |
+
inset: auto 0 1.2rem 0;
|
| 2302 |
+
z-index: 2100;
|
| 2303 |
+
pointer-events: none;
|
| 2304 |
+
}
|
| 2305 |
+
|
| 2306 |
+
.tome-corner,
|
| 2307 |
+
.tome-ribbon,
|
| 2308 |
+
.tome-page-indicator,
|
| 2309 |
+
.tome-jump-select {
|
| 2310 |
+
pointer-events: auto;
|
| 2311 |
+
}
|
| 2312 |
+
|
| 2313 |
+
.tome-corner {
|
| 2314 |
+
position: fixed;
|
| 2315 |
+
bottom: 2rem;
|
| 2316 |
+
width: 54px;
|
| 2317 |
+
height: 54px;
|
| 2318 |
+
border: 1px solid var(--tome-gold-dark);
|
| 2319 |
+
border-radius: 12px;
|
| 2320 |
+
background: linear-gradient(180deg, #f4dfb0, #d2ae63);
|
| 2321 |
+
color: var(--tome-ink);
|
| 2322 |
+
font-size: 1.1rem;
|
| 2323 |
+
cursor: pointer;
|
| 2324 |
+
box-shadow: 0 10px 24px rgba(26, 14, 6, 0.3);
|
| 2325 |
+
}
|
| 2326 |
+
|
| 2327 |
+
.tome-corner-left { left: 1.2rem; }
|
| 2328 |
+
.tome-corner-right { right: 1.2rem; }
|
| 2329 |
+
|
| 2330 |
+
.tome-ribbon {
|
| 2331 |
+
position: fixed;
|
| 2332 |
+
top: 0.2rem;
|
| 2333 |
+
right: 4.2rem;
|
| 2334 |
+
padding: 0.45rem 0.85rem 0.65rem;
|
| 2335 |
+
border: 1px solid #7f1622;
|
| 2336 |
+
border-radius: 0 0 8px 8px;
|
| 2337 |
+
background: linear-gradient(180deg, #b22a3b, #7e1723);
|
| 2338 |
+
color: #fff5e0;
|
| 2339 |
+
font-family: 'IM Fell English', serif;
|
| 2340 |
+
font-size: 0.76rem;
|
| 2341 |
+
letter-spacing: 0.04em;
|
| 2342 |
+
cursor: pointer;
|
| 2343 |
+
}
|
| 2344 |
+
|
| 2345 |
+
.tome-page-indicator {
|
| 2346 |
+
position: fixed;
|
| 2347 |
+
left: 50%;
|
| 2348 |
+
bottom: 1rem;
|
| 2349 |
+
transform: translateX(-50%);
|
| 2350 |
+
padding: 0.22rem 0.62rem;
|
| 2351 |
+
border-radius: 999px;
|
| 2352 |
+
background: rgba(243,230,200,0.84);
|
| 2353 |
+
border: 1px solid var(--tome-paper-edge);
|
| 2354 |
+
color: var(--tome-ink-faded);
|
| 2355 |
+
font-family: 'IM Fell English', serif;
|
| 2356 |
+
font-size: 0.78rem;
|
| 2357 |
+
}
|
| 2358 |
+
|
| 2359 |
+
.tome-floating-toc {
|
| 2360 |
+
position: fixed;
|
| 2361 |
+
top: 2.6rem;
|
| 2362 |
+
right: 1rem;
|
| 2363 |
+
width: min(320px, 84vw);
|
| 2364 |
+
display: none;
|
| 2365 |
+
padding: 0.55rem;
|
| 2366 |
+
border: 1px solid var(--tome-paper-edge);
|
| 2367 |
+
border-radius: 10px;
|
| 2368 |
+
background: rgba(247, 237, 212, 0.96);
|
| 2369 |
+
box-shadow: 0 16px 34px rgba(28, 16, 8, 0.35);
|
| 2370 |
+
z-index: 2102;
|
| 2371 |
+
}
|
| 2372 |
+
|
| 2373 |
+
.tome-floating-toc.open {
|
| 2374 |
+
display: grid;
|
| 2375 |
+
gap: 0.35rem;
|
| 2376 |
+
}
|
| 2377 |
+
|
| 2378 |
+
.tome-floating-link {
|
| 2379 |
+
text-align: left;
|
| 2380 |
+
border: 1px solid #d8c59f;
|
| 2381 |
+
border-radius: 7px;
|
| 2382 |
+
padding: 0.34rem 0.55rem;
|
| 2383 |
+
background: #fff8ea;
|
| 2384 |
+
color: var(--tome-ink);
|
| 2385 |
+
font-family: 'IM Fell English', serif;
|
| 2386 |
+
font-size: 0.84rem;
|
| 2387 |
+
cursor: pointer;
|
| 2388 |
+
}
|
| 2389 |
+
|
| 2390 |
+
.tome-floating-link:hover {
|
| 2391 |
+
background: #f2e1ba;
|
| 2392 |
+
}
|
| 2393 |
+
|
| 2394 |
+
.tome-jump-select {
|
| 2395 |
+
position: fixed;
|
| 2396 |
+
left: -9999px;
|
| 2397 |
+
}
|
| 2398 |
+
|
| 2399 |
+
.sr-only {
|
| 2400 |
+
position: absolute !important;
|
| 2401 |
+
width: 1px !important;
|
| 2402 |
+
height: 1px !important;
|
| 2403 |
+
padding: 0 !important;
|
| 2404 |
+
margin: -1px !important;
|
| 2405 |
+
overflow: hidden !important;
|
| 2406 |
+
clip: rect(0, 0, 0, 0) !important;
|
| 2407 |
+
border: 0 !important;
|
| 2408 |
+
}
|
| 2409 |
+
|
| 2410 |
+
.realm-opening {
|
| 2411 |
+
background: transparent;
|
| 2412 |
+
}
|
| 2413 |
+
|
| 2414 |
+
.realm-cover-card,
|
| 2415 |
+
.realm-toc-card {
|
| 2416 |
+
position: relative;
|
| 2417 |
+
z-index: 2;
|
| 2418 |
+
width: min(760px, 94vw);
|
| 2419 |
+
text-align: center;
|
| 2420 |
+
border-radius: 18px;
|
| 2421 |
+
border: 1px solid rgba(201,161,59,0.44);
|
| 2422 |
+
box-shadow: 0 30px 100px rgba(0,0,0,0.58);
|
| 2423 |
+
}
|
| 2424 |
+
|
| 2425 |
+
.realm-cover-card {
|
| 2426 |
+
padding: clamp(1.4rem, 4vw, 2.4rem);
|
| 2427 |
+
background:
|
| 2428 |
+
radial-gradient(circle at 25% 15%, rgba(255,240,198,0.12), transparent 28%),
|
| 2429 |
+
linear-gradient(150deg, var(--tome-leather-light), var(--tome-leather), var(--tome-leather-dark));
|
| 2430 |
+
}
|
| 2431 |
+
|
| 2432 |
+
.realm-cover-kicker {
|
| 2433 |
+
margin: 0;
|
| 2434 |
+
color: #ead7a4;
|
| 2435 |
+
font-family: 'IM Fell English', serif;
|
| 2436 |
+
letter-spacing: 0.08em;
|
| 2437 |
+
}
|
| 2438 |
+
|
| 2439 |
+
.realm-cover-title {
|
| 2440 |
+
margin: 0.6rem 0;
|
| 2441 |
+
color: #f6ebd2;
|
| 2442 |
+
font-family: 'Cinzel Decorative', 'Cinzel', serif;
|
| 2443 |
+
font-size: clamp(1.5rem, 6vw, 3rem);
|
| 2444 |
+
letter-spacing: 0.08em;
|
| 2445 |
+
}
|
| 2446 |
+
|
| 2447 |
+
.realm-cover-sub {
|
| 2448 |
+
color: #d2b97b;
|
| 2449 |
+
margin: 0 0 1rem;
|
| 2450 |
+
font-style: italic;
|
| 2451 |
+
}
|
| 2452 |
+
|
| 2453 |
+
#realm-opening-enter {
|
| 2454 |
+
border: 1px solid var(--tome-gold-dark);
|
| 2455 |
+
border-radius: 999px;
|
| 2456 |
+
background: linear-gradient(180deg, #f0d696, #bb8e33);
|
| 2457 |
+
color: #2d1a0c;
|
| 2458 |
+
padding: 0.6rem 1rem;
|
| 2459 |
+
font-family: 'Cinzel', serif;
|
| 2460 |
+
text-transform: uppercase;
|
| 2461 |
+
letter-spacing: 0.1em;
|
| 2462 |
+
cursor: pointer;
|
| 2463 |
+
}
|
| 2464 |
+
|
| 2465 |
+
.realm-toc-card {
|
| 2466 |
+
display: none;
|
| 2467 |
+
margin-top: 1rem;
|
| 2468 |
+
padding: 1.1rem;
|
| 2469 |
+
background: linear-gradient(180deg, #f4e7c6, #ead7af);
|
| 2470 |
+
color: var(--tome-ink);
|
| 2471 |
+
}
|
| 2472 |
+
|
| 2473 |
+
.realm-toc-card.open {
|
| 2474 |
+
display: block;
|
| 2475 |
+
}
|
| 2476 |
+
|
| 2477 |
+
.realm-toc-card h2 {
|
| 2478 |
+
margin-top: 0;
|
| 2479 |
+
font-family: 'Cinzel Decorative', 'Cinzel', serif;
|
| 2480 |
+
}
|
| 2481 |
+
|
| 2482 |
+
.realm-toc-grid {
|
| 2483 |
+
display: grid;
|
| 2484 |
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
| 2485 |
+
gap: 0.55rem;
|
| 2486 |
+
}
|
| 2487 |
+
|
| 2488 |
+
.realm-toc-link {
|
| 2489 |
+
border: 1px solid var(--tome-paper-edge);
|
| 2490 |
+
border-radius: 8px;
|
| 2491 |
+
padding: 0.5rem 0.6rem;
|
| 2492 |
+
background: rgba(255, 250, 236, 0.85);
|
| 2493 |
+
color: var(--tome-ink);
|
| 2494 |
+
font-family: 'Cormorant Garamond', serif;
|
| 2495 |
+
cursor: pointer;
|
| 2496 |
+
}
|
| 2497 |
+
|
| 2498 |
+
.realm-opening.is-opened .realm-cover-card {
|
| 2499 |
+
transform: translateY(-10px) scale(0.98);
|
| 2500 |
+
opacity: 0;
|
| 2501 |
+
pointer-events: none;
|
| 2502 |
+
transition: opacity 0.45s ease, transform 0.45s ease;
|
| 2503 |
+
}
|
| 2504 |
+
|
| 2505 |
+
.realm-opening.is-opened .realm-toc-card {
|
| 2506 |
+
pointer-events: auto;
|
| 2507 |
+
}
|
| 2508 |
+
|
| 2509 |
+
.realm-opening.is-closed {
|
| 2510 |
+
opacity: 0;
|
| 2511 |
+
visibility: hidden;
|
| 2512 |
+
pointer-events: none;
|
| 2513 |
+
transition: opacity 0.6s ease;
|
| 2514 |
+
}
|
| 2515 |
+
|
| 2516 |
+
.seal-summon-btn {
|
| 2517 |
+
border-radius: 999px !important;
|
| 2518 |
+
min-width: 170px;
|
| 2519 |
+
background: radial-gradient(circle at 30% 26%, #d23c46, #8d1f2b) !important;
|
| 2520 |
+
border: 2px solid #f2d8a0 !important;
|
| 2521 |
+
color: #fff6de !important;
|
| 2522 |
+
font-family: 'Cinzel Decorative', 'Cinzel', serif !important;
|
| 2523 |
+
}
|
| 2524 |
+
|
| 2525 |
+
.oracle-summoning {
|
| 2526 |
+
background:
|
| 2527 |
+
radial-gradient(circle at 24% 32%, rgba(58,42,26,0.09), transparent 35%),
|
| 2528 |
+
radial-gradient(circle at 74% 58%, rgba(58,42,26,0.1), transparent 40%),
|
| 2529 |
+
linear-gradient(180deg, #f2e4c0, #e6d1a1) !important;
|
| 2530 |
+
}
|
| 2531 |
+
|
| 2532 |
+
.oracle-orbit,
|
| 2533 |
+
.oracle-ring,
|
| 2534 |
+
.oracle-core {
|
| 2535 |
+
display: none !important;
|
| 2536 |
+
}
|
| 2537 |
+
|
| 2538 |
+
.oracle-summoning::before,
|
| 2539 |
+
.oracle-summoning::after {
|
| 2540 |
+
content: "";
|
| 2541 |
+
position: absolute;
|
| 2542 |
+
border-radius: 50%;
|
| 2543 |
+
pointer-events: none;
|
| 2544 |
+
animation: inkBloom 3.8s ease-in-out infinite;
|
| 2545 |
+
}
|
| 2546 |
+
|
| 2547 |
+
.oracle-summoning::before {
|
| 2548 |
+
width: 180px;
|
| 2549 |
+
height: 180px;
|
| 2550 |
+
left: 10%;
|
| 2551 |
+
top: 20%;
|
| 2552 |
+
background: radial-gradient(circle, rgba(58,42,26,0.2), transparent 68%);
|
| 2553 |
+
}
|
| 2554 |
+
|
| 2555 |
+
.oracle-summoning::after {
|
| 2556 |
+
width: 210px;
|
| 2557 |
+
height: 210px;
|
| 2558 |
+
right: 8%;
|
| 2559 |
+
bottom: 8%;
|
| 2560 |
+
background: radial-gradient(circle, rgba(122,46,29,0.18), transparent 70%);
|
| 2561 |
+
animation-delay: 1.1s;
|
| 2562 |
+
}
|
| 2563 |
+
|
| 2564 |
+
@keyframes inkBloom {
|
| 2565 |
+
0%, 100% { transform: scale(0.84); opacity: 0.38; }
|
| 2566 |
+
50% { transform: scale(1.15); opacity: 0.7; }
|
| 2567 |
+
}
|
| 2568 |
+
|
| 2569 |
+
.tome-turn-next .realm-tabs [role="tabpanel"] {
|
| 2570 |
+
animation: pageTurnNext 0.72s cubic-bezier(0.45, 0, 0.55, 1);
|
| 2571 |
+
}
|
| 2572 |
+
|
| 2573 |
+
.tome-turn-prev .realm-tabs [role="tabpanel"] {
|
| 2574 |
+
animation: pageTurnPrev 0.72s cubic-bezier(0.45, 0, 0.55, 1);
|
| 2575 |
+
}
|
| 2576 |
+
|
| 2577 |
+
@keyframes pageTurnNext {
|
| 2578 |
+
0% { transform: perspective(1800px) rotateY(0deg); transform-origin: left center; }
|
| 2579 |
+
45% { transform: perspective(1800px) rotateY(-13deg); transform-origin: left center; }
|
| 2580 |
+
100% { transform: perspective(1800px) rotateY(0deg); }
|
| 2581 |
+
}
|
| 2582 |
+
|
| 2583 |
+
@keyframes pageTurnPrev {
|
| 2584 |
+
0% { transform: perspective(1800px) rotateY(0deg); transform-origin: right center; }
|
| 2585 |
+
45% { transform: perspective(1800px) rotateY(13deg); transform-origin: right center; }
|
| 2586 |
+
100% { transform: perspective(1800px) rotateY(0deg); }
|
| 2587 |
+
}
|
| 2588 |
+
|
| 2589 |
+
@media (max-width: 920px) {
|
| 2590 |
+
.realm-tabs [role="tabpanel"]::after {
|
| 2591 |
+
display: none;
|
| 2592 |
+
}
|
| 2593 |
+
|
| 2594 |
+
.realm-toc-grid {
|
| 2595 |
+
grid-template-columns: 1fr;
|
| 2596 |
+
}
|
| 2597 |
+
|
| 2598 |
+
.tome-corner {
|
| 2599 |
+
width: 46px;
|
| 2600 |
+
height: 46px;
|
| 2601 |
+
bottom: 1rem;
|
| 2602 |
+
}
|
| 2603 |
+
|
| 2604 |
+
.tome-ribbon {
|
| 2605 |
+
right: 1rem;
|
| 2606 |
+
top: 0;
|
| 2607 |
+
font-size: 0.7rem;
|
| 2608 |
+
}
|
| 2609 |
+
}
|
| 2610 |
+
|
| 2611 |
+
@media (prefers-reduced-motion: reduce) {
|
| 2612 |
+
*, *::before, *::after {
|
| 2613 |
+
animation: none !important;
|
| 2614 |
+
transition: none !important;
|
| 2615 |
+
scroll-behavior: auto !important;
|
| 2616 |
+
}
|
| 2617 |
+
}
|
| 2618 |
+
|
| 2619 |
/* Mystical opening gate */
|
| 2620 |
.realm-opening {
|
| 2621 |
position: fixed;
|