Spaces:
Sleeping
Sleeping
| @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap'); | |
| :root { | |
| --bg-0: #070912; | |
| --bg-1: #0e1322; | |
| --bg-2: #161d31; | |
| --glass: rgba(18,26,46,0.62); | |
| --glass-2: rgba(12,18,34,0.8); | |
| --stroke: rgba(120,160,255,0.16); | |
| --stroke-bright: rgba(120,200,255,0.4); | |
| --neon-cyan: #38e8ff; | |
| --neon-violet: #9b6bff; | |
| --neon-pink: #ff5fa2; | |
| --neon-lime: #7CFFB2; | |
| --gold: #ffd76a; | |
| --text: #eaf0ff; | |
| --muted: #8ea0c8; | |
| --r: 14px; | |
| } | |
| * { box-sizing: border-box; } | |
| html, body { | |
| background: var(--bg-0) ; | |
| margin: 0; | |
| } | |
| body, .gradio-container { | |
| color: var(--text); | |
| font-family: 'Inter', system-ui, sans-serif; | |
| } | |
| /* full-bleed dark backdrop so there is never a black dead-zone */ | |
| .gradio-container { | |
| background: | |
| radial-gradient(1100px 500px at 15% -10%, rgba(56,232,255,0.10), transparent 60%), | |
| radial-gradient(1000px 600px at 100% 0%, rgba(155,107,255,0.12), transparent 55%), | |
| var(--bg-0) ; | |
| max-width: 100% ; | |
| margin: 0 auto ; | |
| padding: 12px 22px 24px ; | |
| min-height: 100vh; | |
| } | |
| /* hidden data channels that drive the canvas (kept in DOM, off-screen) */ | |
| .tw-data { position: absolute ; left: -9999px ; width: 1px ; height: 1px ; overflow: hidden ; opacity: 0 ; pointer-events: none ; } | |
| /* kill Gradio's default footer / "Use via API" / Settings strip */ | |
| footer, .gradio-container > .main > .wrap > footer { display: none ; } | |
| .show-api, .api-docs { display: none ; } | |
| /* tame Gradio block chrome so our panels read as one surface */ | |
| .gr-block, .block, .form { background: transparent ; border: none ; box-shadow: none ; } | |
| .gr-group, .gr-box { background: transparent ; border: none ; } | |
| label > span { color: var(--muted) ; font-family: 'Rajdhani', sans-serif ; font-weight: 600 ; letter-spacing: .5px; } | |
| .gradio-container .gap, .row { gap: 10px ; } | |
| /* ===================== TOP BAR ===================== */ | |
| .tw-topbar { | |
| display: flex; | |
| align-items: center; | |
| gap: 14px; | |
| padding: 14px 20px; | |
| border-radius: var(--r); | |
| background: linear-gradient(120deg, rgba(56,232,255,0.06), rgba(155,107,255,0.06)), var(--glass); | |
| border: 1px solid var(--stroke); | |
| backdrop-filter: blur(10px); | |
| } | |
| .tw-logo { | |
| font-family: 'Orbitron', sans-serif; | |
| font-weight: 900; | |
| font-size: 24px; | |
| letter-spacing: 4px; | |
| color: var(--neon-cyan); | |
| text-shadow: 0 0 14px rgba(56,232,255,0.5), 0 0 30px rgba(155,107,255,0.3); | |
| } | |
| .tw-tagline { | |
| font-family: 'Rajdhani', sans-serif; | |
| font-size: 16px; font-weight: 600; letter-spacing: 2px; | |
| color: var(--muted); text-transform: uppercase; | |
| } | |
| .tw-spacer { flex: 1; } | |
| /* ===================== TICKER ===================== */ | |
| .progress-ticker { | |
| font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 18px; | |
| color: var(--muted); display: flex; align-items: center; gap: 8px; | |
| padding: 8px 14px; border-radius: 10px; | |
| background: var(--glass); border: 1px solid var(--stroke); | |
| } | |
| .ticker-day { color: var(--neon-cyan); } | |
| .ticker-sep { opacity: 0.35; } | |
| .ticker-chaos { color: var(--neon-violet); letter-spacing: 1px; } | |
| .ticker-events { color: var(--gold); } | |
| .mode-badge { | |
| font-family: 'Rajdhani', sans-serif; | |
| font-weight: 800; | |
| font-size: 16px; | |
| color: var(--text); | |
| padding: 8px 14px; | |
| border-radius: 10px; | |
| background: var(--glass); | |
| border: 1px solid var(--stroke); | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .mode-live { border-color: rgba(124,255,178,0.55); color: var(--neon-lime); } | |
| .mode-waking, .mode-mock { border-color: rgba(255,215,106,0.55); color: var(--gold); } | |
| .mode-error { border-color: rgba(255,95,162,0.65); color: var(--neon-pink); } | |
| /* ===================== PANELS ===================== */ | |
| .glass-panel { | |
| background: var(--glass); | |
| backdrop-filter: blur(12px); | |
| border: 1px solid var(--stroke); | |
| border-radius: var(--r); | |
| padding: 12px; | |
| height: 100%; | |
| } | |
| .panel-title { | |
| font-family: 'Orbitron', sans-serif; font-weight: 700; | |
| font-size: 12px; letter-spacing: 2px; text-transform: uppercase; | |
| color: var(--neon-cyan); margin-bottom: 10px; | |
| display: flex; align-items: center; gap: 6px; | |
| } | |
| .daily-log-inner { | |
| display: grid; | |
| grid-template-columns: repeat(5, minmax(0, 1fr)); | |
| gap: 8px; | |
| padding: 10px 12px; | |
| border-radius: var(--r); | |
| background: var(--glass); | |
| border: 1px solid var(--stroke); | |
| } | |
| .daily-row { | |
| min-width: 0; | |
| font-family: 'Rajdhani', sans-serif; | |
| font-size: 14px; | |
| line-height: 1.25; | |
| color: var(--muted); | |
| } | |
| .daily-row b { | |
| display: block; | |
| font-family: 'Orbitron', sans-serif; | |
| font-size: 11px; | |
| margin-bottom: 4px; | |
| } | |
| .daily-row span { | |
| display: block; | |
| overflow-wrap: anywhere; | |
| } | |
| @media (max-width: 900px) { | |
| .daily-log-inner { grid-template-columns: 1fr; } | |
| } | |
| /* ===================== ROSTER ===================== */ | |
| .roster-rail { | |
| display: flex; flex-direction: column; gap: 8px; | |
| } | |
| .roster-card { | |
| display: grid; | |
| grid-template-columns: 40px 1fr; | |
| grid-template-rows: auto auto; | |
| align-items: center; | |
| gap: 2px 10px; | |
| background: var(--glass); | |
| border: 1px solid var(--stroke); | |
| border-left: 3px solid var(--neon-violet); | |
| border-radius: 12px; | |
| padding: 9px 11px; | |
| transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; | |
| } | |
| .roster-card:hover { transform: translateX(3px); border-left-color: var(--neon-cyan); box-shadow: 0 0 18px rgba(56,232,255,0.12); } | |
| .roster-emoji { grid-row: 1 / 3; font-size: 28px; text-align: center; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); } | |
| .roster-name { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 12px; color: var(--text); letter-spacing: .5px; } | |
| .roster-mood { font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 13px; color: var(--muted); } | |
| .roster-meters { grid-column: 1 / 3; display: flex; flex-direction: column; gap: 3px; margin-top: 4px; } | |
| .vibe-row { display: flex; align-items: center; gap: 6px; } | |
| .vibe-label { font-size: 11px; width: 14px; text-align: center; } | |
| .vibe-track { flex: 1; height: 6px; background: rgba(0,0,0,0.35); border-radius: 4px; overflow: hidden; } | |
| .vibe-fill { height: 100%; border-radius: 4px; transition: width .9s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 8px currentColor; } | |
| .vibe-val { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 11px; color: var(--muted); width: 22px; text-align: right; } | |
| /* ===================== STAGE / ISOMETRIC TOWN ===================== */ | |
| .stage { | |
| position: relative; | |
| width: 100%; | |
| height: min(74vh, 860px); | |
| border-radius: var(--r); | |
| overflow: hidden; | |
| border: 1px solid var(--stroke-bright); | |
| box-shadow: 0 0 40px rgba(56,232,255,0.08), 0 24px 60px rgba(0,0,0,0.55); | |
| background: #0a0e1c; | |
| isolation: isolate; | |
| } | |
| .stage canvas { display: block; width: 100%; height: 100%; } | |
| .stage-vignette { | |
| position: absolute; inset: 0; pointer-events: none; border-radius: var(--r); | |
| box-shadow: inset 0 0 120px rgba(0,0,0,0.55), inset 0 0 30px rgba(56,232,255,0.05); | |
| } | |
| .sky { | |
| position: absolute; inset: 0; height: 46%; | |
| background: | |
| radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.7), transparent), | |
| radial-gradient(1.5px 1.5px at 60% 18%, rgba(255,255,255,.6), transparent), | |
| radial-gradient(1.5px 1.5px at 80% 40%, rgba(255,255,255,.5), transparent), | |
| radial-gradient(2px 2px at 38% 50%, rgba(255,255,255,.5), transparent), | |
| linear-gradient(180deg, #1a1340 0%, #2a1c54 40%, #4a2a63 72%, #6b3a5a 100%); | |
| } | |
| .sky::after { | |
| content: ''; position: absolute; right: 12%; top: 14%; | |
| width: 46px; height: 46px; border-radius: 50%; | |
| background: radial-gradient(circle at 38% 38%, #fff3d6, #ffd76a 55%, #ff9a5f 100%); | |
| box-shadow: 0 0 40px rgba(255,200,120,0.55); | |
| } | |
| .iso-ground { | |
| position: absolute; inset: 38% 0 0 0; | |
| background: linear-gradient(180deg, #16432f 0%, #0f3424 45%, #0a261b 100%); | |
| } | |
| .iso-ground::before { | |
| content: ''; position: absolute; inset: 0; | |
| background-image: | |
| repeating-linear-gradient(63.43deg, rgba(120,220,255,0.08) 0 1px, transparent 1px 7.2%), | |
| repeating-linear-gradient(-63.43deg, rgba(120,220,255,0.08) 0 1px, transparent 1px 7.2%); | |
| -webkit-mask: linear-gradient(180deg, transparent 0%, #000 16%, #000 100%); | |
| mask: linear-gradient(180deg, transparent 0%, #000 16%, #000 100%); | |
| } | |
| .scene { position: absolute; inset: 0; } | |
| /* mood tint overlay */ | |
| .stage-tint { position: absolute; inset: 0; pointer-events: none; z-index: 60; mix-blend-mode: overlay; transition: background .8s ease; } | |
| /* roads */ | |
| .iso-road { | |
| position: absolute; | |
| background: linear-gradient(180deg, #2b3350, #1c2238); | |
| border-top: 1px solid rgba(160,190,255,0.18); | |
| border-bottom: 1px solid rgba(0,0,0,0.4); | |
| box-shadow: inset 0 0 18px rgba(0,0,0,0.5); | |
| transform-origin: center; | |
| } | |
| .iso-road::after { | |
| content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 0; | |
| border-top: 2px dashed rgba(255,215,106,0.5); | |
| } | |
| /* buildings: front face + skewed roof + thin side */ | |
| .bld { | |
| position: absolute; | |
| background: var(--front); | |
| background: linear-gradient(180deg, var(--front), color-mix(in srgb, var(--front) 70%, #000)); | |
| border: 1px solid rgba(0,0,0,0.35); | |
| border-radius: 3px 3px 2px 2px; | |
| box-shadow: 0 12px 22px rgba(0,0,0,0.45); | |
| } | |
| .bld::before { /* roof */ | |
| content: ''; position: absolute; left: 0; top: calc(-1 * var(--rd, 34%)); | |
| width: 100%; height: var(--rd, 34%); | |
| background: var(--roof); | |
| transform: skewX(-45deg); | |
| transform-origin: bottom left; | |
| border-radius: 3px 3px 0 0; | |
| box-shadow: 0 0 16px -2px var(--roof); | |
| filter: brightness(1.05); | |
| } | |
| .bld::after { /* thin right side */ | |
| content: ''; position: absolute; left: 100%; top: 0; | |
| width: var(--sd, 7%); height: 100%; | |
| background: var(--side); | |
| transform: skewY(-45deg); | |
| transform-origin: top left; | |
| } | |
| .bld-sign { | |
| position: absolute; left: 50%; top: 52%; transform: translate(-50%,-50%); | |
| font-size: clamp(14px, 2.2vw, 26px); | |
| filter: drop-shadow(0 2px 3px rgba(0,0,0,0.6)); | |
| } | |
| .bld .win { | |
| position: absolute; inset: 18% 14% 14% 14%; | |
| background-image: | |
| radial-gradient(circle at 50% 50%, rgba(255,235,160,0.85), transparent 60%); | |
| background-size: 30% 40%; | |
| background-repeat: repeat; | |
| opacity: .35; pointer-events: none; | |
| } | |
| /* trees */ | |
| .tree { position: absolute; transform: translate(-50%, -100%) scale(var(--s, 1)); } | |
| .tree::before { /* foliage */ | |
| content: ''; display: block; width: 22px; height: 22px; border-radius: 50% 50% 48% 48%; | |
| background: radial-gradient(circle at 38% 32%, #4fd38a, #1f7a4a 70%, #145a36); | |
| box-shadow: 0 0 10px rgba(40,180,110,0.3); | |
| } | |
| .tree::after { /* trunk */ | |
| content: ''; display: block; width: 5px; height: 10px; margin: -2px auto 0; | |
| background: linear-gradient(#5a3a22, #3a2414); border-radius: 2px; | |
| } | |
| .prop { position: absolute; transform: translate(-50%, -100%); font-size: 26px; filter: drop-shadow(0 3px 5px rgba(0,0,0,0.55)); } | |
| /* ===================== PAWNS (characters) ===================== */ | |
| .pawn { | |
| position: absolute; | |
| transform: translate(-50%, -100%); | |
| transition: left 1.1s cubic-bezier(.34,.8,.34,1), top 1.1s cubic-bezier(.34,.8,.34,1); | |
| display: flex; flex-direction: column; align-items: center; | |
| } | |
| .pawn-shadow { | |
| position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); | |
| width: 34px; height: 9px; background: rgba(0,0,0,0.4); border-radius: 50%; filter: blur(3px); | |
| } | |
| .pawn-token { | |
| position: relative; | |
| width: 44px; height: 44px; border-radius: 50%; | |
| display: flex; align-items: center; justify-content: center; | |
| font-size: 25px; line-height: 1; | |
| background: radial-gradient(circle at 38% 30%, rgba(255,255,255,0.18), rgba(20,28,48,0.92)); | |
| border: 2px solid rgba(160,200,255,0.45); | |
| box-shadow: 0 5px 12px rgba(0,0,0,0.5), inset 0 0 10px rgba(0,0,0,0.4); | |
| animation: pawn-bob 3.2s ease-in-out infinite; | |
| } | |
| .pawn-mood { | |
| position: absolute; top: -8px; right: -8px; | |
| font-size: 15px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.7)); | |
| } | |
| .pawn-name { | |
| margin-top: 4px; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 11px; | |
| color: var(--text); letter-spacing: .5px; | |
| background: rgba(8,12,24,0.7); padding: 1px 7px; border-radius: 8px; | |
| border: 1px solid var(--stroke); white-space: nowrap; | |
| } | |
| .pawn.speaking .pawn-token { | |
| border-color: var(--neon-cyan); | |
| box-shadow: 0 0 0 3px rgba(56,232,255,0.25), 0 0 22px rgba(56,232,255,0.55); | |
| animation: pawn-bob 1.4s ease-in-out infinite, speak-pulse 1.4s ease-in-out infinite; | |
| } | |
| .pawn.speaking .plumb { | |
| position: absolute; top: -22px; left: 50%; transform: translateX(-50%) rotate(45deg); | |
| width: 9px; height: 9px; background: var(--neon-cyan); | |
| box-shadow: 0 0 12px var(--neon-cyan); animation: plumb-bob 1.4s ease-in-out infinite; | |
| } | |
| @keyframes pawn-bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-3px);} } | |
| @keyframes speak-pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(56,232,255,0.25), 0 0 18px rgba(56,232,255,0.4);} 50% { box-shadow: 0 0 0 5px rgba(56,232,255,0.18), 0 0 28px rgba(56,232,255,0.7);} } | |
| @keyframes plumb-bob { 0%,100% { top: -22px;} 50% { top: -27px;} } | |
| /* speech bubbles */ | |
| .bubble { | |
| position: absolute; bottom: calc(100% + 14px); left: 50%; | |
| transform: translateX(-50%); | |
| background: var(--glass-2); | |
| color: var(--text); | |
| font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 14px; line-height: 1.35; | |
| padding: 9px 13px; border-radius: 12px; width: 190px; | |
| border: 1px solid var(--stroke-bright); | |
| box-shadow: 0 8px 24px rgba(0,0,0,0.55), 0 0 18px rgba(56,232,255,0.12); | |
| opacity: 0; animation: bubble-spring .4s cubic-bezier(.2,.9,.3,1.2) forwards; | |
| word-wrap: break-word; backdrop-filter: blur(6px); | |
| } | |
| .bubble::after { | |
| content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); | |
| border-left: 8px solid transparent; border-right: 8px solid transparent; | |
| border-top: 8px solid var(--glass-2); | |
| } | |
| @keyframes bubble-spring { | |
| 0% { opacity: 0; transform: translateX(-50%) translateY(8px) scale(.9); } | |
| 70% { transform: translateX(-50%) translateY(-3px) scale(1.02); } | |
| 100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } | |
| } | |
| /* shockwave on throw */ | |
| .shockwave { | |
| position: absolute; top: 62%; left: 50%; width: 40px; height: 24px; | |
| margin: -12px 0 0 -20px; border-radius: 50%; | |
| border: 2px solid var(--neon-cyan); pointer-events: none; z-index: 55; opacity: 0; | |
| } | |
| .shockwave.fire { animation: shock 0.85s ease-out forwards; } | |
| @keyframes shock { | |
| 0% { width: 40px; height: 24px; margin: -12px 0 0 -20px; opacity: .85; } | |
| 100% { width: 540px; height: 320px; margin: -160px 0 0 -270px; opacity: 0; } | |
| } | |
| .stage-idle { | |
| position: absolute; left: 50%; top: 22%; transform: translateX(-50%); | |
| z-index: 58; font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 16px; | |
| color: rgba(234,240,255,0.85); letter-spacing: 1px; | |
| background: rgba(8,12,24,0.55); padding: 8px 16px; border-radius: 20px; | |
| border: 1px solid var(--stroke); animation: idle-breathe 3s ease-in-out infinite; | |
| } | |
| @keyframes idle-breathe { 0%,100% { opacity:.55;} 50% { opacity:1;} } | |
| /* ===================== TOWN LOG ===================== */ | |
| .town-log-inner { max-height: 460px; overflow-y: auto; padding-right: 4px; display: flex; flex-direction: column; gap: 8px; } | |
| .town-log-empty { font-family: 'Rajdhani', sans-serif; font-size: 15px; color: var(--muted); padding: 24px 12px; text-align: center; line-height: 1.5; } | |
| .log-entry { | |
| padding: 8px 10px; border-radius: 10px; | |
| background: rgba(10,16,30,0.5); border: 1px solid var(--stroke); | |
| animation: log-in .35s ease both; | |
| } | |
| @keyframes log-in { from { opacity:0; transform: translateY(6px);} to { opacity:1; transform: none;} } | |
| .log-head { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; } | |
| .log-emoji { font-size: 16px; } | |
| .log-name { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 11px; color: var(--neon-cyan); } | |
| .log-mood { font-size: 13px; } | |
| .log-text { font-family: 'Rajdhani', sans-serif; font-weight: 500; font-size: 14px; color: var(--text); line-height: 1.4; } | |
| .log-followup { border-left: 3px solid var(--neon-violet); } | |
| .log-gossip { border-left: 3px solid var(--gold); font-style: italic; } | |
| /* ===================== LEARN / EXPLAINER ===================== */ | |
| .explain-inner { display: flex; flex-direction: column; gap: 8px; max-height: 460px; overflow-y: auto; padding-right: 4px; } | |
| .explain-empty { font-family: 'Rajdhani', sans-serif; font-size: 14px; color: var(--muted); line-height: 1.55; padding: 14px 12px; background: rgba(10,16,30,0.4); border-radius: 10px; border: 1px dashed var(--stroke); } | |
| .explain-focus { font-family: 'Rajdhani', sans-serif; font-size: 14.5px; color: var(--gold); background: rgba(255,215,106,0.08); border: 1px solid rgba(255,215,106,0.25); border-radius: 10px; padding: 9px 11px; line-height: 1.45; } | |
| .explain-row { font-family: 'Rajdhani', sans-serif; font-weight: 500; font-size: 14px; color: var(--text); line-height: 1.45; background: rgba(10,16,30,0.5); border: 1px solid var(--stroke); border-radius: 10px; padding: 8px 11px; } | |
| .explain-row em { color: var(--neon-cyan); font-style: normal; font-weight: 600; } | |
| /* ===================== AUDIO CAPTIONS ===================== */ | |
| #tw-audio .gr-audio, #tw-audio .audio-container { background: var(--glass) ; border-radius: 12px ; } | |
| .audio-cap { font-family: 'Rajdhani', sans-serif; font-size: 12.5px; color: var(--muted); line-height: 1.45; padding: 5px 4px 0; } | |
| .audio-cap b { color: var(--neon-cyan); } | |
| .audio-cap i { color: var(--neon-pink); font-style: normal; } | |
| #tw-actions { margin-top: 4px; align-items: end; } | |
| /* ===================== CONSOLE ===================== */ | |
| #tw-console { padding: 14px 16px; } | |
| #tw-console textarea, #tw-console input[type="text"] { | |
| background: var(--bg-2) ; color: var(--text) ; | |
| border: 1px solid var(--stroke) ; border-radius: 12px ; | |
| font-family: 'Rajdhani', sans-serif ; font-weight: 600 ; font-size: 18px ; | |
| padding: 14px 16px ; min-height: 56px ; | |
| } | |
| #tw-console textarea:focus, #tw-console input[type="text"]:focus { | |
| border-color: var(--neon-cyan) ; box-shadow: 0 0 0 3px rgba(56,232,255,0.15) ; | |
| } | |
| .tw-hint { font-family: 'Rajdhani', sans-serif; font-size: 13px; color: var(--muted); padding: 4px 2px 0; } | |
| .tw-hint b { color: var(--neon-cyan); } | |
| /* ===================== BUTTONS ===================== */ | |
| button.primary, .gr-button-primary, #throw-btn { | |
| background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet)) ; | |
| color: #06121f ; | |
| font-family: 'Orbitron', sans-serif ; font-weight: 900 ; | |
| font-size: 16px ; letter-spacing: 1px ; | |
| border: none ; border-radius: 12px ; padding: 14px 18px ; | |
| cursor: pointer ; box-shadow: 0 0 22px rgba(56,232,255,0.35) ; | |
| transition: transform .15s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease ; | |
| } | |
| button.primary:hover, .gr-button-primary:hover, #throw-btn:hover { | |
| box-shadow: 0 0 30px rgba(56,232,255,0.6), 0 0 60px rgba(155,107,255,0.35) ; | |
| transform: translateY(-2px) ; | |
| } | |
| button.primary:active, .gr-button-primary:active, #throw-btn:active { transform: scale(.96) ; } | |
| .gr-button, button.secondary { | |
| background: var(--glass) ; color: var(--text) ; | |
| border: 1px solid var(--stroke) ; border-radius: 12px ; | |
| font-family: 'Rajdhani', sans-serif ; font-weight: 700 ; font-size: 15px ; | |
| letter-spacing: .5px ; transition: all .2s ease ; | |
| } | |
| .gr-button:hover, button.secondary:hover { border-color: var(--neon-violet) ; box-shadow: 0 0 14px rgba(155,107,255,0.2) ; transform: translateY(-1px) ; } | |
| /* dropdowns + audio */ | |
| .gr-dropdown, .wrap.svelte-1cl284s, input[role="listbox"] { | |
| background: var(--bg-2) ; color: var(--text) ; | |
| border: 1px solid var(--stroke) ; border-radius: 12px ; | |
| } | |
| .gr-dropdown input { font-family: 'Rajdhani', sans-serif ; font-weight: 600 ; } | |
| /* ===================== FOOTER (ours) ===================== */ | |
| .tw-footer { | |
| text-align: center; padding: 18px; margin-top: 16px; | |
| font-family: 'Rajdhani', sans-serif; font-size: 14px; color: var(--muted); | |
| border-top: 1px solid var(--stroke); line-height: 1.9; | |
| } | |
| .tw-footer strong { color: var(--neon-cyan); } | |
| .footer-muted { opacity: 0.7; font-size: 12px; } | |
| /* ===================== SCROLLBARS ===================== */ | |
| ::-webkit-scrollbar { width: 7px; height: 7px; } | |
| ::-webkit-scrollbar-track { background: transparent; } | |
| ::-webkit-scrollbar-thumb { background: var(--bg-2); border-radius: 4px; } | |
| ::-webkit-scrollbar-thumb:hover { background: var(--neon-violet); } | |
| /* ===================== FORCE-DARK ALL GRADIO WIDGETS (no white boxes) ===================== */ | |
| input, textarea, select { background: var(--bg-2) ; color: var(--text) ; border-color: var(--stroke) ; } | |
| input::placeholder, textarea::placeholder { color: rgba(150,165,200,0.6) ; } | |
| /* dropdown trigger + popup list */ | |
| .gr-dropdown, [data-testid="dropdown"], .wrap-inner, ul.options, .options { | |
| background: var(--bg-2) ; color: var(--text) ; border: 1px solid var(--stroke) ; | |
| } | |
| ul.options li, .options .item, li[role="option"] { background: var(--bg-2) ; color: var(--text) ; } | |
| ul.options li:hover, .options .item:hover, li[role="option"]:hover, .item.selected, li[aria-selected="true"] { | |
| background: var(--neon-violet) ; color: #0a0f1c ; | |
| } | |
| /* audio widgets */ | |
| .gr-audio, [data-testid="audio"], .audio-container, .controls, .waveform-container, .component-wrap { | |
| background: var(--glass) ; color: var(--text) ; border-color: var(--stroke) ; | |
| } | |
| .gr-audio *, [data-testid="audio"] * { color: var(--text) ; } | |
| .gr-audio button, [data-testid="audio"] button { background: var(--bg-2) ; color: var(--text) ; border: 1px solid var(--stroke) ; } | |
| [data-testid="waveform"], canvas.waveform { filter: hue-rotate(180deg) brightness(0.9); } | |
| /* generic svelte blocks that default to light */ | |
| .block.padded, .form, .panel, .wrap { background: transparent ; } | |
| label, label span, .gr-text-input label { color: var(--muted) ; } | |
| /* mic warning banner */ | |
| .tw-mic-warn { | |
| position: fixed; top: 0; left: 0; right: 0; z-index: 9999; | |
| background: linear-gradient(90deg, rgba(255,95,162,0.95), rgba(155,107,255,0.95)); | |
| color: #0a0f1c; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 14px; | |
| text-align: center; padding: 8px 14px; letter-spacing: 0.4px; | |
| box-shadow: 0 4px 18px rgba(0,0,0,0.4); | |
| } | |
| .tw-mic-warn b { color: #161038; } | |
| /* ===================== JUICE: SCREEN SHAKE ===================== */ | |
| @keyframes screen-shake { | |
| 0%, 100% { transform: translate(0, 0) rotate(0); } | |
| 10% { transform: translate(-3px, -2px) rotate(-0.3deg); } | |
| 20% { transform: translate(4px, 1px) rotate(0.4deg); } | |
| 30% { transform: translate(-2px, 3px) rotate(-0.2deg); } | |
| 40% { transform: translate(3px, -1px) rotate(0.3deg); } | |
| 50% { transform: translate(-1px, 2px) rotate(-0.1deg); } | |
| 60% { transform: translate(2px, -2px) rotate(0.2deg); } | |
| 70% { transform: translate(-3px, 1px) rotate(-0.3deg); } | |
| 80% { transform: translate(1px, -1px) rotate(0.1deg); } | |
| 90% { transform: translate(-1px, 2px) rotate(-0.1deg); } | |
| } | |
| .stage.shake { | |
| animation: screen-shake 0.5s cubic-bezier(.36,.07,.19,.97) both; | |
| } | |
| /* ===================== JUICE: BUTTON SQUISH ===================== */ | |
| button.primary, .gr-button-primary, #throw-btn { | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| button.primary::after, .gr-button-primary::after, #throw-btn::after { | |
| content: ''; | |
| position: absolute; inset: 0; | |
| background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.3), transparent 60%); | |
| opacity: 0; | |
| transition: opacity .3s ease; | |
| } | |
| button.primary:active::after, .gr-button-primary:active::after, #throw-btn:active::after { | |
| opacity: 1; | |
| } | |
| @keyframes btn-pulse-glow { | |
| 0%, 100% { box-shadow: 0 0 22px rgba(56,232,255,0.35); } | |
| 50% { box-shadow: 0 0 36px rgba(56,232,255,0.6), 0 0 60px rgba(155,107,255,0.3); } | |
| } | |
| button.primary.pulse, .gr-button-primary.pulse { | |
| animation: btn-pulse-glow 0.8s ease-in-out 3; | |
| } | |
| /* ===================== JUICE: METER TICK GLOW ===================== */ | |
| @keyframes meter-tick { | |
| 0% { box-shadow: 0 0 8px currentColor; } | |
| 50% { box-shadow: 0 0 18px currentColor, 0 0 6px currentColor; } | |
| 100% { box-shadow: 0 0 8px currentColor; } | |
| } | |
| .vibe-fill.tick { | |
| animation: meter-tick 0.6s ease-in-out; | |
| } | |
| @keyframes roster-flash { | |
| 0% { border-left-color: var(--neon-cyan); background: rgba(56,232,255,0.08); } | |
| 100% { border-left-color: var(--neon-violet); background: var(--glass); } | |
| } | |
| .roster-card.speaking-flash { | |
| animation: roster-flash 0.5s ease forwards; | |
| } | |
| /* ===================== JUICE: MOOD BOUNCE ===================== */ | |
| @keyframes mood-pop { | |
| 0% { transform: scale(1); } | |
| 40% { transform: scale(1.5) rotate(-8deg); } | |
| 70% { transform: scale(0.85) rotate(4deg); } | |
| 100% { transform: scale(1) rotate(0); } | |
| } | |
| .pawn-mood.pop { | |
| animation: mood-pop 0.5s cubic-bezier(.34,.8,.34,1.4); | |
| } | |
| /* ===================== JUICE: DAY/NIGHT DRIFT ===================== */ | |
| @keyframes tint-drift { | |
| 0% { background: rgba(255,170,80,0.04); } | |
| 25% { background: rgba(56,232,255,0.03); } | |
| 50% { background: rgba(155,107,255,0.04); } | |
| 75% { background: rgba(255,200,100,0.03); } | |
| 100% { background: rgba(255,170,80,0.04); } | |
| } | |
| .stage-tint.drift { | |
| animation: tint-drift 30s ease-in-out infinite; | |
| } | |
| /* ===================== JUICE: LOG ENTRIES ===================== */ | |
| @keyframes log-slide-in { | |
| 0% { opacity: 0; transform: translateX(-12px) scale(0.97); } | |
| 60% { transform: translateX(2px) scale(1.01); } | |
| 100% { opacity: 1; transform: none; } | |
| } | |
| .log-entry { animation: log-slide-in 0.4s cubic-bezier(.2,.8,.2,1) both; } | |
| /* ===================== JUICE: TITLE GLOW ===================== */ | |
| @keyframes title-glow { | |
| 0%, 100% { text-shadow: 0 0 14px rgba(56,232,255,0.5), 0 0 30px rgba(155,107,255,0.3); } | |
| 50% { text-shadow: 0 0 20px rgba(56,232,255,0.7), 0 0 44px rgba(155,107,255,0.45); } | |
| } | |
| .tw-logo { animation: title-glow 4s ease-in-out infinite; } | |
| /* ===================== RESPONSIVE ===================== */ | |
| @media (max-width: 1024px) { | |
| .roster-rail { flex-direction: row; flex-wrap: wrap; } | |
| .roster-card { flex: 1 1 45%; } | |
| } | |
| @media (max-width: 720px) { | |
| .tw-logo { font-size: 18px; letter-spacing: 2px; } | |
| .tw-tagline { display: none; } | |
| .stage { aspect-ratio: 4 / 3; } | |
| .roster-card { flex-basis: 100%; } | |
| } | |
| /* ---------------------------------------------- Crisis Mode */ | |
| #tw-crisis { display: none ; } | |
| .crisis-hud { | |
| margin: 8px 0 4px; | |
| padding: 12px 14px; | |
| border-radius: var(--r); | |
| background: linear-gradient(120deg, rgba(255,95,60,0.10), rgba(255,40,20,0.04)), var(--glass-2); | |
| border: 1px solid rgba(255,120,80,0.35); | |
| box-shadow: 0 0 22px rgba(255,80,40,0.12) inset; | |
| } | |
| .crisis-hud-idle { | |
| color: var(--muted); | |
| border: 1px dashed var(--stroke); | |
| background: var(--glass); | |
| box-shadow: none; | |
| font-family: 'Rajdhani', sans-serif; | |
| } | |
| .crisis-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; } | |
| .crisis-title { font-family: 'Orbitron', sans-serif; font-weight: 700; color: #ff8a5f; letter-spacing: .5px; } | |
| .crisis-meta { font-family: 'Rajdhani', sans-serif; font-weight: 600; color: var(--muted); font-size: 13px; } | |
| .crisis-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; } | |
| .crisis-chip { | |
| font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 12.5px; | |
| padding: 4px 10px; border-radius: 999px; border: 1px solid var(--stroke); | |
| background: var(--glass); color: var(--muted); | |
| } | |
| .crisis-chip.met { color: var(--neon-lime); border-color: rgba(124,255,178,0.5); background: rgba(124,255,178,0.10); } | |
| .crisis-chip.open { color: #ffd76a; border-color: rgba(255,215,106,0.35); } | |
| .crisis-bars { display: flex; gap: 16px; flex-wrap: wrap; } | |
| .crisis-bar { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 180px; font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 12.5px; color: var(--muted); } | |
| .crisis-bar > span { white-space: nowrap; } | |
| .crisis-bar > b { color: var(--text); min-width: 26px; text-align: right; } | |
| .cbar-track { flex: 1; height: 8px; border-radius: 6px; background: rgba(0,0,0,0.35); overflow: hidden; border: 1px solid var(--stroke); } | |
| .cbar-fill { height: 100%; transition: width .4s ease; } | |
| .cbar-fill.chaos { background: linear-gradient(90deg, #ff8a5f, #ff3b3b); } | |
| .cbar-fill.res { background: linear-gradient(90deg, #7CFFB2, #38e8ff); } | |
| .story-card { | |
| margin: 6px 0 10px; padding: 14px 16px; border-radius: var(--r); | |
| background: var(--glass-2); border: 1px solid var(--stroke); | |
| animation: storyIn .4s ease; | |
| } | |
| .story-hidden { display: none; } | |
| .story-title { font-family: 'Orbitron', sans-serif; font-weight: 700; letter-spacing: .5px; margin-bottom: 6px; } | |
| .story-body { font-family: 'Rajdhani', sans-serif; font-size: 15px; line-height: 1.45; color: var(--text); } | |
| .story-intro { border-color: var(--stroke-bright); } | |
| .story-intro .story-title { color: var(--neon-cyan); } | |
| .story-dispatch .story-body { color: var(--muted); font-style: italic; } | |
| .story-win { border-color: rgba(124,255,178,0.5); background: linear-gradient(120deg, rgba(124,255,178,0.10), transparent), var(--glass-2); } | |
| .story-win .story-title { color: var(--neon-lime); } | |
| .story-loss, .story-gameover { border-color: rgba(255,95,80,0.5); background: linear-gradient(120deg, rgba(255,80,60,0.12), transparent), var(--glass-2); } | |
| .story-loss .story-title, .story-gameover .story-title { color: #ff7a5f; } | |
| .story-finale { border-color: var(--neon-violet); background: linear-gradient(120deg, rgba(155,107,255,0.16), rgba(255,95,162,0.08)), var(--glass-2); box-shadow: 0 0 30px rgba(155,107,255,0.18); } | |
| .story-finale .story-title { color: var(--neon-violet); } | |
| .story-reveal { | |
| margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--stroke); | |
| font-family: 'Orbitron', sans-serif; font-size: 15px; line-height: 1.5; color: var(--neon-pink); | |
| text-shadow: 0 0 14px rgba(255,95,162,0.5); | |
| } | |
| @keyframes storyIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } } | |
| /* ---------------------------------------------- High-contrast readability | |
| Belt-and-suspenders so text is always legible on the dark theme regardless | |
| of how HF Spaces initialises light/dark mode. */ | |
| .gradio-container, .gradio-container .prose, | |
| .gradio-container p, .gradio-container span, .gradio-container li, | |
| .gradio-container label, .gradio-container .gr-box { color: #eaf0ff; } | |
| .gradio-container { background: var(--bg-0) ; } | |
| label > span, .panel-title { color: #cdd9ff ; } | |
| input, textarea, select, | |
| .gr-input, .gr-text-input, .gr-box input, .gr-box textarea { | |
| color: #f4f8ff ; | |
| background: rgba(12,18,34,0.92) ; | |
| border-color: var(--stroke-bright) ; | |
| } | |
| ::placeholder { color: #8ea0c8 ; opacity: 1; } | |
| button, .gr-button { color: #ffffff ; } | |
| .gr-radio label, fieldset label { color: #eaf0ff ; } | |
| .town-log-empty, .explain-empty, .audio-cap, .footer-muted, .tw-tagline { color: #aab8e0 ; } | |
| .log-text, .explain-row, .daily-row span { color: #e8eeff ; } | |