@umituz/web-virtual 1.1.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1853,3 +1853,218 @@
1853
1853
  .wv-hq-container.is-night .wv-task-prompt {
1854
1854
  color: #f8fafc;
1855
1855
  }
1856
+
1857
+ /* ============================================
1858
+ WebGL FALLBACK & CONTEXT-LOST RECOVERY
1859
+ ============================================ */
1860
+
1861
+ .wv-webgl-fallback {
1862
+ display: flex;
1863
+ align-items: center;
1864
+ justify-content: center;
1865
+ background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
1866
+ color: #334155;
1867
+ }
1868
+
1869
+ .wv-container.is-night.wv-webgl-fallback,
1870
+ .wv-hq-container.is-night .wv-webgl-fallback {
1871
+ background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
1872
+ color: #e2e8f0;
1873
+ }
1874
+
1875
+ .wv-fallback-card {
1876
+ max-width: 420px;
1877
+ width: calc(100% - 48px);
1878
+ background: rgba(255, 255, 255, 0.86);
1879
+ border: 1px solid rgba(148, 163, 184, 0.35);
1880
+ border-radius: 14px;
1881
+ box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
1882
+ padding: 28px 24px;
1883
+ text-align: center;
1884
+ display: flex;
1885
+ flex-direction: column;
1886
+ align-items: center;
1887
+ gap: 10px;
1888
+ font-size: 13px;
1889
+ line-height: 1.5;
1890
+ }
1891
+
1892
+ .wv-fallback-card > svg {
1893
+ color: #3b82f6;
1894
+ opacity: 0.85;
1895
+ }
1896
+
1897
+ .wv-fallback-card h3 {
1898
+ margin: 0;
1899
+ font-size: 15px;
1900
+ font-weight: 700;
1901
+ color: #1e293b;
1902
+ }
1903
+
1904
+ .wv-fallback-card p {
1905
+ margin: 0;
1906
+ color: #64748b;
1907
+ }
1908
+
1909
+ .wv-container.is-night .wv-fallback-card,
1910
+ .wv-hq-container.is-night .wv-fallback-card {
1911
+ background: rgba(15, 23, 42, 0.86);
1912
+ border-color: rgba(255, 255, 255, 0.14);
1913
+ }
1914
+
1915
+ .wv-container.is-night .wv-fallback-card h3,
1916
+ .wv-hq-container.is-night .wv-fallback-card h3 {
1917
+ color: #f8fafc;
1918
+ }
1919
+
1920
+ .wv-container.is-night .wv-fallback-card p,
1921
+ .wv-hq-container.is-night .wv-fallback-card p {
1922
+ color: #94a3b8;
1923
+ }
1924
+
1925
+ .wv-fallback-entity-list {
1926
+ list-style: none;
1927
+ margin: 6px 0 0;
1928
+ padding: 0;
1929
+ display: flex;
1930
+ flex-direction: column;
1931
+ gap: 6px;
1932
+ width: 100%;
1933
+ max-height: 200px;
1934
+ overflow-y: auto;
1935
+ text-align: left;
1936
+ }
1937
+
1938
+ .wv-fallback-entity-list li {
1939
+ display: flex;
1940
+ align-items: center;
1941
+ gap: 8px;
1942
+ padding: 6px 10px;
1943
+ border-radius: 8px;
1944
+ background: rgba(148, 163, 184, 0.14);
1945
+ font-size: 12px;
1946
+ font-weight: 500;
1947
+ }
1948
+
1949
+ .wv-fallback-btn {
1950
+ margin-top: 4px;
1951
+ display: inline-flex;
1952
+ align-items: center;
1953
+ justify-content: center;
1954
+ gap: 6px;
1955
+ padding: 8px 18px;
1956
+ border-radius: 9px;
1957
+ border: 1px solid rgba(59, 130, 246, 0.4);
1958
+ background: linear-gradient(135deg, #3b82f6, #2563eb);
1959
+ color: #ffffff;
1960
+ font-size: 13px;
1961
+ font-weight: 600;
1962
+ cursor: pointer;
1963
+ transition: transform 0.15s ease, box-shadow 0.15s ease;
1964
+ }
1965
+
1966
+ .wv-fallback-btn:hover {
1967
+ transform: translateY(-1px);
1968
+ box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
1969
+ }
1970
+
1971
+ .wv-context-lost-overlay {
1972
+ position: absolute;
1973
+ inset: 0;
1974
+ z-index: 40;
1975
+ background: rgba(248, 250, 252, 0.82);
1976
+ backdrop-filter: blur(6px);
1977
+ display: flex;
1978
+ align-items: center;
1979
+ justify-content: center;
1980
+ }
1981
+
1982
+ .wv-container.is-night .wv-context-lost-overlay {
1983
+ background: rgba(15, 23, 42, 0.82);
1984
+ }
1985
+
1986
+ /* ----- Empty floor state (no occupants placed yet) ----- */
1987
+ .wv-hq-empty-floor {
1988
+ position: absolute;
1989
+ inset: 0;
1990
+ display: flex;
1991
+ align-items: center;
1992
+ justify-content: center;
1993
+ pointer-events: none;
1994
+ z-index: 12;
1995
+ }
1996
+
1997
+ .wv-hq-empty-floor-card {
1998
+ pointer-events: auto;
1999
+ display: flex;
2000
+ flex-direction: column;
2001
+ align-items: center;
2002
+ gap: 8px;
2003
+ max-width: 360px;
2004
+ padding: 26px 30px;
2005
+ border-radius: 16px;
2006
+ background: rgba(255, 255, 255, 0.92);
2007
+ border: 1px solid rgba(15, 23, 42, 0.1);
2008
+ box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
2009
+ text-align: center;
2010
+ color: #334155;
2011
+ backdrop-filter: blur(6px);
2012
+ }
2013
+
2014
+ .wv-hq-empty-floor-card svg {
2015
+ color: #3b82f6;
2016
+ }
2017
+
2018
+ .wv-hq-empty-floor-card h3 {
2019
+ margin: 2px 0 0;
2020
+ font-size: 15px;
2021
+ font-weight: 700;
2022
+ color: #0f172a;
2023
+ }
2024
+
2025
+ .wv-hq-empty-floor-card p {
2026
+ margin: 0;
2027
+ font-size: 12.5px;
2028
+ line-height: 1.55;
2029
+ color: #64748b;
2030
+ }
2031
+
2032
+ .wv-hq-empty-floor-btn {
2033
+ display: inline-flex;
2034
+ align-items: center;
2035
+ gap: 7px;
2036
+ margin-top: 8px;
2037
+ padding: 9px 18px;
2038
+ border: none;
2039
+ border-radius: 10px;
2040
+ background: linear-gradient(135deg, #3b82f6, #6366f1);
2041
+ color: #fff;
2042
+ font-size: 13px;
2043
+ font-weight: 600;
2044
+ cursor: pointer;
2045
+ transition: transform 0.15s ease, box-shadow 0.15s ease;
2046
+ }
2047
+
2048
+ .wv-hq-empty-floor-btn:hover:not(:disabled) {
2049
+ transform: translateY(-1px);
2050
+ box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
2051
+ }
2052
+
2053
+ .wv-hq-empty-floor-btn:disabled {
2054
+ opacity: 0.6;
2055
+ cursor: wait;
2056
+ }
2057
+
2058
+ .is-night .wv-hq-empty-floor-card {
2059
+ background: rgba(15, 23, 42, 0.92);
2060
+ border-color: rgba(148, 163, 184, 0.2);
2061
+ color: #cbd5e1;
2062
+ }
2063
+
2064
+ .is-night .wv-hq-empty-floor-card h3 {
2065
+ color: #f1f5f9;
2066
+ }
2067
+
2068
+ .is-night .wv-hq-empty-floor-card p {
2069
+ color: #94a3b8;
2070
+ }