Spaces:
Runtime error
Runtime error
| :root { | |
| --bg:#0e0b14; --panel:#1a1426; --ink:#e7d9ff; --accent:#b07cff; | |
| --muted:#9c8bc4; --green:#6df5a0; --hp:#ff5d73; --gold:#ffd24a; --border:#34254d; | |
| } | |
| * { box-sizing:border-box; } | |
| html, body { | |
| margin:0; padding:0; height:100%; overflow:hidden; | |
| background:radial-gradient(circle at 50% -10%, #241836, var(--bg)); | |
| color:var(--ink); font-family:ui-monospace, "Courier New", monospace; | |
| } | |
| .pixel { font-family:"Press Start 2P", ui-monospace, monospace; } | |
| /* full-screen layout: stage fills, control deck pinned to the bottom */ | |
| #rg-root { display:flex; flex-direction:column; height:100vh; width:100vw; } | |
| #rg-stage { position:relative; flex:1 1 auto; min-height:0; } | |
| #rg-canvas { | |
| position:absolute; inset:0; width:100%; height:100%; display:block; | |
| background:#0b0810; image-rendering:pixelated; outline:none; touch-action:none; | |
| } | |
| .rg-boot { | |
| position:absolute; inset:0; display:flex; align-items:center; justify-content:center; | |
| font-family:"Press Start 2P", monospace; color:var(--accent); font-size:14px; z-index:5; | |
| } | |
| /* control deck */ | |
| #rg-ui { | |
| flex:0 0 auto; display:flex; flex-direction:column; gap:6px; | |
| padding:8px 12px; background:#120c1e; border-top:2px solid var(--border); | |
| } | |
| .rg-palette { display:grid; grid-template-columns:repeat(16, 1fr); gap:4px; max-width:900px; margin:0 auto; width:100%; } | |
| .rg-rune { | |
| font-size:18px; line-height:1; padding:7px 0; background:#221836; color:var(--ink); | |
| border:1px solid var(--border); border-radius:8px; cursor:pointer; position:relative; | |
| transition:transform .07s, border-color .15s, box-shadow .15s; | |
| } | |
| .rg-rune:hover { transform:translateY(-2px); border-color:var(--accent); } | |
| .rg-rune.on { border-color:var(--accent); box-shadow:0 0 0 2px var(--accent) inset; background:#2e1f4a; } | |
| .rg-rune .num { position:absolute; top:1px; left:3px; font-size:8px; color:var(--muted); font-family:"Press Start 2P",monospace; z-index:2; } | |
| .ricon { width:24px; height:24px; image-rendering:pixelated; vertical-align:middle; filter:drop-shadow(0 1px 1px #000); } | |
| .rg-sel .ricon { width:20px; height:20px; } | |
| .rg-sel .plus { color:var(--muted); margin:0 3px; } | |
| .rg-sel .dim { color:var(--muted); } | |
| /* Locked-rune greying and the hover tooltip are applied via inline styles in | |
| rpg.js (buildPalette/renderPalette) so they survive a cached stylesheet; | |
| only the no-hover-lift for locked runes lives here as a light touch. */ | |
| .rg-rune.locked:hover { transform:none; border-color:var(--border); box-shadow:none; } | |
| .rg-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; justify-content:center; } | |
| .rg-btn { | |
| background:#2a1f3d; color:var(--ink); border:1px solid var(--border); border-radius:9px; | |
| padding:8px 13px; cursor:pointer; font-family:ui-monospace,monospace; font-size:13px; | |
| transition:background .15s, transform .07s; | |
| } | |
| .rg-btn:hover { background:#3a2c54; } | |
| .rg-btn:active { transform:translatey(1px); } | |
| .rg-btn.primary { background:var(--accent); color:#160d24; font-weight:bold; } | |
| .rg-btn.ghost { background:transparent; } | |
| #rg-draw-open { | |
| border:2px solid transparent; padding:7px 12px; color:#f8efff; | |
| background: | |
| linear-gradient(#2a1f3d, #2a1f3d) padding-box, | |
| linear-gradient(90deg, #ff4d6d, #ffd24a, #6df5a0, #48c9ff, #b07cff, #ff4d6d) border-box; | |
| background-size:100% 100%, 320% 100%; | |
| box-shadow:0 0 0 1px rgba(255,255,255,0.08) inset, 0 0 14px rgba(176,124,255,0.5); | |
| animation:rg-rainbow-border 2.4s linear infinite; | |
| } | |
| #rg-draw-open:hover { | |
| background: | |
| linear-gradient(#3a2c54, #3a2c54) padding-box, | |
| linear-gradient(90deg, #ff4d6d, #ffd24a, #6df5a0, #48c9ff, #b07cff, #ff4d6d) border-box; | |
| background-size:100% 100%, 320% 100%; | |
| box-shadow:0 0 0 1px rgba(255,255,255,0.12) inset, 0 0 18px rgba(72,201,255,0.65); | |
| } | |
| @keyframes rg-rainbow-border { | |
| from { background-position:0 0, 0% 50%; } | |
| to { background-position:0 0, 320% 50%; } | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| #rg-draw-open { animation:none; } | |
| } | |
| .rg-admin-goto { background:#173b2a; color:var(--green); border-color:#2f6f4d; max-width:200px; } | |
| .rg-admin-goto:hover { background:#1d4d37; } | |
| .rg-sel { color:var(--accent); font-size:13px; min-width:110px; } | |
| .rg-target { color:var(--green); font-size:12px; } | |
| .rg-toast { min-height:18px; color:var(--ink); font-size:13px; text-align:center; } | |
| .rg-toast b { color:var(--accent); } | |
| .rg-hint { color:var(--muted); font-size:11px; text-align:center; } | |
| /* spell reading card — what the vision model read from the drawn spell */ | |
| .rg-reading { | |
| position:absolute; left:50%; top:54px; transform:translateX(-50%) translateY(-12px); | |
| z-index:23; display:none; text-align:center; cursor:pointer; | |
| background:rgba(14,9,22,0.96); border:2px solid var(--accent); border-radius:12px; | |
| padding:12px 18px; max-width:min(560px, 92%); | |
| box-shadow:0 6px 28px rgba(0,0,0,0.6); opacity:0; | |
| transition:opacity .25s ease, transform .25s ease; | |
| } | |
| .rg-reading.open { display:block; opacity:1; transform:translateX(-50%) translateY(0); } | |
| .rg-read-head { color:var(--muted); font-size:11px; margin-bottom:8px; letter-spacing:.04em; } | |
| .rg-read-runes { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-bottom:8px; } | |
| .rg-read-rune { | |
| display:inline-flex; align-items:center; gap:5px; font-size:11px; color:var(--ink); | |
| background:#180f2a; border:1px solid var(--border); border-radius:8px; padding:4px 8px; | |
| } | |
| .rg-read-rune img { width:18px; height:18px; image-rendering:pixelated; } | |
| .rg-read-rune.dim { opacity:.55; font-style:italic; } | |
| .rg-read-spell { | |
| font-family:"Press Start 2P", monospace; font-size:13px; color:var(--gold); | |
| text-shadow:0 0 12px rgba(255,210,74,0.5); margin-bottom:6px; | |
| } | |
| .rg-read-note { color:var(--muted); font-size:10px; margin-bottom:6px; } | |
| .rg-read-conf { height:5px; background:#241a36; border-radius:3px; overflow:hidden; } | |
| .rg-read-conf i { display:block; height:100%; background:var(--accent); border-radius:3px; } | |
| .rg-read-wait i { | |
| display:inline-block; width:7px; height:7px; margin:0 3px; border-radius:50%; | |
| background:var(--accent); animation:rg-read-blink 1.1s infinite; | |
| } | |
| .rg-read-wait i:nth-child(2) { animation-delay:.22s; } | |
| .rg-read-wait i:nth-child(3) { animation-delay:.44s; } | |
| @keyframes rg-read-blink { 0%,80%,100% { opacity:.25; } 40% { opacity:1; } } | |
| /* drawing overlay */ | |
| .rg-draw { | |
| position:absolute; inset:0; background:rgba(8,5,14,.86); display:none; | |
| align-items:center; justify-content:center; flex-direction:column; gap:10px; z-index:20; | |
| } | |
| .rg-draw.open { display:flex; } | |
| .rg-draw h3 { font-family:"Press Start 2P",monospace; color:var(--accent); font-size:13px; margin:0; } | |
| #rg-sketch { background:#efe1bd; border:3px solid #8e6e37; border-radius:8px; cursor:crosshair; touch-action:none; } | |
| .rg-customize { | |
| padding:6px 11px; font-size:12px; | |
| } | |
| .rg-draw-tools { | |
| width:min(540px, calc(100vw - 28px)); display:none; grid-template-columns:1fr 1fr; | |
| gap:7px; padding:8px; border:1px solid rgba(176,124,255,.35); border-radius:8px; | |
| background:rgba(18,12,30,.78); | |
| } | |
| .rg-draw-tools.open { display:grid; } | |
| .rg-tool-group { display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-width:0; } | |
| .rg-tool-group span { | |
| flex:0 0 auto; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.04em; | |
| } | |
| .rg-swatch, | |
| .rg-fill, | |
| .rg-line-style { | |
| width:26px; height:26px; border:1px solid var(--border); border-radius:6px; | |
| background:#2a1f3d; color:var(--ink); cursor:pointer; font-size:11px; | |
| display:inline-flex; align-items:center; justify-content:center; | |
| } | |
| .rg-swatch, | |
| .rg-fill { background:var(--swatch); box-shadow:0 0 0 1px rgba(0,0,0,.35) inset; } | |
| .rg-swatch.on, | |
| .rg-fill.on, | |
| .rg-line-style.on { | |
| border-color:var(--accent); box-shadow:0 0 0 2px var(--accent), 0 0 0 1px rgba(0,0,0,.35) inset; | |
| } | |
| .rg-size-tool input { flex:1 1 150px; min-width:76px; accent-color:var(--accent); } | |
| .rg-draw .row { display:flex; gap:8px; } | |
| .rg-draw .tip { color:var(--muted); font-size:11px; max-width:340px; text-align:center; } | |
| @media (max-width: 520px) { | |
| .rg-draw-tools { grid-template-columns:1fr; } | |
| } | |
| /* end screen */ | |
| .rg-end { | |
| position:absolute; inset:0; display:none; align-items:center; justify-content:center; | |
| flex-direction:column; gap:14px; background:rgba(8,5,14,.9); z-index:30; text-align:center; | |
| } | |
| .rg-end.open { display:flex; } | |
| .rg-end h2 { font-family:"Press Start 2P",monospace; font-size:22px; margin:0; } | |
| .rg-end.win h2 { color:var(--green); } .rg-end.lose h2 { color:var(--hp); } | |
| .rg-ending-choices { | |
| margin:0 auto; padding-left:18px; max-width:min(680px, 82vw); | |
| text-align:left; line-height:1.55; color:var(--ink); font-size:13px; | |
| } | |
| .rg-ending-choices li { margin-bottom:4px; } | |
| .rg-ending-boss { | |
| max-width:min(720px, 84vw); color:var(--gold); font-size:13px; | |
| line-height:1.5; text-align:left; | |
| } | |
| .rg-ending-boss p { margin:0 0 5px; } | |
| /* ===== Character select (title screen) ===== */ | |
| .rg-select { | |
| position:absolute; inset:0; z-index:30; display:none; | |
| flex-direction:column; align-items:center; justify-content:center; gap:14px; | |
| background:radial-gradient(circle at 50% 20%, #2a1c44, #0b0810 75%); | |
| text-align:center; padding:18px; overflow:auto; | |
| } | |
| .rg-select.open { display:flex; } | |
| .rg-select h1 { | |
| font-family:"Press Start 2P", monospace; color:var(--accent); | |
| font-size:30px; margin:0; text-shadow:0 0 18px rgba(176,124,255,0.6); | |
| } | |
| .rg-select-sub { color:var(--muted); font-size:13px; line-height:1.7; margin:0; } | |
| .rg-heroes { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; max-width:900px; } | |
| .rg-hero { | |
| width:150px; background:#180f2a; border:2px solid var(--border); border-radius:12px; | |
| padding:10px; cursor:pointer; transition:transform .1s, border-color .15s, box-shadow .15s; | |
| } | |
| .rg-hero:hover { transform:translateY(-3px); border-color:var(--accent); } | |
| .rg-hero.sel { border-color:var(--gold); box-shadow:0 0 0 2px var(--gold) inset, 0 0 18px rgba(255,210,74,0.35); } | |
| .rg-hero img { width:84px; height:84px; image-rendering:pixelated; object-fit:contain; } | |
| .rg-hero .hname { font-family:"Press Start 2P", monospace; font-size:9px; color:var(--ink); margin:6px 0 4px; line-height:1.4; } | |
| .rg-hero .hstat { font-size:11px; color:var(--green); } | |
| .rg-hero .hpass { font-size:10px; color:var(--muted); margin-top:5px; line-height:1.4; } | |
| .rg-select-line { color:var(--ink); font-size:12px; min-height:18px; max-width:640px; font-style:italic; } | |
| /* ===== NPC dialogue box ===== */ | |
| .rg-dialogue { | |
| position:absolute; left:50%; bottom:14px; transform:translateX(-50%); | |
| z-index:24; display:none; gap:12px; width:min(640px, 92%); | |
| background:rgba(14,9,22,0.96); border:2px solid var(--accent); border-radius:12px; | |
| padding:12px 14px; box-shadow:0 6px 28px rgba(0,0,0,0.6); | |
| } | |
| .rg-dialogue.open { display:flex; } | |
| .rg-dialogue-portrait { font-size:30px; width:46px; text-align:center; } | |
| .rg-dialogue-name { font-family:"Press Start 2P", monospace; font-size:11px; color:var(--gold); margin-bottom:6px; } | |
| .rg-dialogue-text { font-size:14px; color:var(--ink); line-height:1.6; } | |
| .rg-dialogue-tip { font-size:10px; color:var(--muted); margin-top:8px; } | |
| .rg-dialogue.thinking .rg-dialogue-text { color:var(--muted); } | |
| .rg-mastery-title { margin-bottom:8px; color:var(--ink); } | |
| .rg-mastery-choices { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; } | |
| .rg-mastery-choice { | |
| display:flex; align-items:center; gap:8px; justify-content:center; | |
| background:#1b112d; color:var(--ink); border:1px solid var(--border); | |
| border-radius:8px; padding:8px; cursor:pointer; font-size:12px; | |
| } | |
| .rg-mastery-choice:hover { border-color:var(--gold); } | |
| .rg-mastery-choice img { width:24px; height:24px; image-rendering:pixelated; } | |
| /* ===== Journal panel ===== */ | |
| .rg-journal { | |
| position:absolute; right:14px; top:14px; bottom:14px; width:min(360px, 80%); | |
| z-index:26; display:none; flex-direction:column; | |
| background:rgba(12,8,20,0.97); border:2px solid var(--border); border-radius:12px; padding:12px 14px; | |
| } | |
| .rg-journal.open { display:flex; } | |
| .rg-journal h3 { font-family:"Press Start 2P", monospace; font-size:12px; color:var(--accent); margin:0 0 10px; display:flex; justify-content:space-between; align-items:center; } | |
| .rg-journal-close { font-size:10px; color:var(--muted); cursor:pointer; } | |
| #rg-journal-body, #rg-inventory-body { overflow:auto; font-size:12.5px; line-height:1.6; } | |
| .rg-jsec { margin-bottom:12px; } | |
| .rg-jsec h4 { font-size:11px; color:var(--gold); margin:0 0 5px; text-transform:uppercase; } | |
| .rg-jsec ul { margin:0; padding-left:16px; color:var(--ink); } | |
| .rg-jsec li { margin-bottom:3px; } | |
| .rg-jsec .flag { color:var(--green); } | |
| /* ===== Boss-phase / evolution banner ===== */ | |
| .rg-banner { | |
| position:absolute; left:50%; top:42%; transform:translateX(-50%); | |
| z-index:22; display:none; text-align:center; pointer-events:none; | |
| font-family:"Press Start 2P", monospace; font-size:18px; color:var(--gold); | |
| text-shadow:0 0 16px rgba(255,210,74,0.7); padding:14px 22px; | |
| background:rgba(10,6,16,0.6); border-radius:12px; max-width:80%; | |
| } | |
| .rg-banner.show { display:block; animation:rg-banner-fade 2.6s ease forwards; } | |
| @keyframes rg-banner-fade { | |
| 0% { opacity:0; transform:translateX(-50%) scale(0.8); } | |
| 15% { opacity:1; transform:translateX(-50%) scale(1); } | |
| 80% { opacity:1; } | |
| 100% { opacity:0; } | |
| } | |
| /* ===== Weapon panel (inside journal) ===== */ | |
| .rg-wpns { display:flex; flex-direction:column; gap:6px; } | |
| .rg-wpn { | |
| text-align:left; background:#180f2a; border:1px solid var(--border); border-radius:8px; | |
| color:var(--ink); padding:7px 9px; cursor:pointer; font-size:11px; line-height:1.5; | |
| transition:border-color .12s, background .12s; | |
| } | |
| .rg-wpn:hover { border-color:var(--accent); } | |
| .rg-wpn.equipped { border-color:var(--gold); box-shadow:0 0 0 1px var(--gold) inset; } | |
| .rg-wpn img { width:18px; height:18px; image-rendering:pixelated; vertical-align:middle; } | |
| .rg-wpn .wdesc { color:var(--muted); font-size:10px; } | |
| .rg-wpn .wstats { color:var(--gold); font-size:9px; } | |
| /* item bag (inventory) */ | |
| .rg-bag { display:flex; flex-direction:column; gap:5px; } | |
| .rg-item { | |
| display:flex; align-items:center; gap:8px; background:#180f2a; | |
| border:1px solid var(--border); border-radius:8px; padding:6px 9px; font-size:12px; | |
| } | |
| .rg-item.usable { cursor:pointer; transition:border-color .12s, background .12s; } | |
| .rg-item.usable:hover { border-color:var(--green); background:#1d1430; } | |
| .rg-item-ic { font-size:16px; line-height:1; } | |
| .rg-item-lb { flex:1; color:var(--ink); } | |
| .rg-item-qty { color:var(--muted); font-size:11px; } | |
| .rg-item-use { | |
| color:#0c1a12; background:var(--green); border-radius:6px; padding:2px 7px; | |
| font-size:10px; text-transform:uppercase; letter-spacing:.04em; | |
| } | |
| /* ===== Bone Market shop (in-dialogue) ===== */ | |
| .rg-shop { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; margin-top:8px; } | |
| .rg-shop-buy { | |
| display:flex; flex-direction:column; align-items:stretch; gap:4px; text-align:left; | |
| background:#1b112d; color:var(--ink); border:1px solid var(--border); | |
| border-radius:8px; padding:8px 10px; cursor:pointer; font-size:12px; | |
| } | |
| .rg-shop-buy:hover { border-color:var(--gold); } | |
| .rg-shop-buy.off { opacity:0.5; cursor:default; } | |
| .rg-shop-buy small { color:#9c8bc4; font-size:10px; line-height:1.35; } | |
| .rg-shop-row { display:flex; justify-content:space-between; align-items:center; gap:8px; } | |
| .rg-shop-price { color:var(--gold); font-weight:bold; white-space:nowrap; } | |
| .rg-shop-price.cursed { color:#ff5d73; } | |
| .rg-shop-line { margin-bottom:6px; } | |
| .rg-shop-gold { font-size:11px; color:#9c8bc4; margin-bottom:2px; } | |
| .rg-shop-haggle { color:var(--gold); font-style:italic; opacity:0.85; } | |
| .rg-shop-model { margin-top:6px; color:var(--gold); font-size:10px; } | |
| /* ===== Story card — major beats land here instead of the toast channel ===== */ | |
| .rg-story { | |
| position:absolute; inset:0; display:none; align-items:center; justify-content:center; | |
| background:rgba(8,5,14,.78); z-index:28; | |
| } | |
| .rg-story.open { display:flex; } | |
| .rg-story-card { | |
| width:min(560px, 88%); background:rgba(14,9,22,0.97); | |
| border:2px solid var(--gold); border-radius:14px; padding:20px 22px; | |
| box-shadow:0 10px 40px rgba(0,0,0,.7); text-align:center; | |
| animation:rg-story-in .25s ease-out; | |
| } | |
| @keyframes rg-story-in { from { transform:translateY(12px); opacity:0; } to { transform:none; opacity:1; } } | |
| .rg-story-portrait { font-size:38px; margin-bottom:6px; } | |
| .rg-story-name { font-family:"Press Start 2P",monospace; font-size:11px; color:var(--gold); margin-bottom:10px; } | |
| .rg-story-text { font-size:15px; color:var(--ink); line-height:1.7; } | |
| .rg-story-sub { font-size:12px; color:var(--muted); font-style:italic; margin-top:10px; line-height:1.5; } | |
| .rg-story-tip { font-size:10px; color:var(--muted); margin-top:14px; } | |