@kawaijs/renderer-dom 0.1.12 → 0.1.13

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.
package/src/theme.css CHANGED
@@ -1863,6 +1863,65 @@ body.kawa-fullscreen {
1863
1863
  }
1864
1864
 
1865
1865
  @media (max-width: 768px), (pointer: coarse) {
1866
+ .kawa-root {
1867
+ /* Use dynamic viewport so mobile browser chrome doesn't clip the stage */
1868
+ min-height: 100dvh;
1869
+ height: 100dvh;
1870
+ }
1871
+
1872
+ .kawa-stage {
1873
+ width: 100% !important;
1874
+ max-width: none;
1875
+ max-height: none;
1876
+ border-radius: 0;
1877
+ box-shadow: none;
1878
+ border-left: none;
1879
+ border-right: none;
1880
+ }
1881
+
1882
+ @media (orientation: portrait) {
1883
+ .kawa-stage {
1884
+ height: 100% !important;
1885
+ aspect-ratio: auto;
1886
+ }
1887
+ }
1888
+
1889
+ .kawa-main-menu-backdrop {
1890
+ backdrop-filter: none;
1891
+ -webkit-backdrop-filter: none;
1892
+ }
1893
+
1894
+ .kawa-main-menu-btn {
1895
+ backdrop-filter: none;
1896
+ -webkit-backdrop-filter: none;
1897
+ width: min(100%, 420px);
1898
+ }
1899
+
1900
+ .kawa-ui-layer {
1901
+ padding: 10px 12px max(10px, env(safe-area-inset-bottom));
1902
+ }
1903
+
1904
+ .kawa-dialogue-box {
1905
+ min-height: 112px;
1906
+ padding: 14px 16px 18px;
1907
+ padding-bottom: max(14px, env(safe-area-inset-bottom));
1908
+ /* backdrop-filter is expensive on mobile GPUs */
1909
+ backdrop-filter: none;
1910
+ -webkit-backdrop-filter: none;
1911
+ background: rgba(10, 15, 29, 0.94);
1912
+ box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
1913
+ }
1914
+
1915
+ .kawa-dialogue-text {
1916
+ font-size: clamp(0.95rem, 3.6vw, 1.1rem);
1917
+ line-height: 1.45;
1918
+ }
1919
+
1920
+ .kawa-choice-container {
1921
+ backdrop-filter: none;
1922
+ -webkit-backdrop-filter: none;
1923
+ }
1924
+
1866
1925
  .kawa-choice-btn {
1867
1926
  min-height: 48px;
1868
1927
  padding: 0.85rem 1.1rem;
@@ -1877,6 +1936,9 @@ body.kawa-fullscreen {
1877
1936
  justify-content: center;
1878
1937
  align-self: stretch;
1879
1938
  border-radius: 16px;
1939
+ backdrop-filter: none;
1940
+ -webkit-backdrop-filter: none;
1941
+ background: rgba(15, 23, 42, 0.92);
1880
1942
  }
1881
1943
 
1882
1944
  .kawa-quick-menu .kawa-btn {
@@ -1890,19 +1952,32 @@ body.kawa-fullscreen {
1890
1952
  display: none;
1891
1953
  }
1892
1954
 
1893
- .kawa-dialogue-box {
1894
- padding-bottom: max(12px, env(safe-area-inset-bottom));
1955
+ .kawa-sprite img {
1956
+ filter: none;
1957
+ animation: none;
1895
1958
  }
1896
1959
 
1897
1960
  .kawa-hotspot {
1898
- min-width: 44px;
1899
- min-height: 44px;
1961
+ min-width: 48px;
1962
+ min-height: 48px;
1963
+ }
1964
+
1965
+ .kawa-main-menu {
1966
+ overflow-y: auto;
1967
+ -webkit-overflow-scrolling: touch;
1968
+ padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
1900
1969
  }
1901
1970
 
1902
1971
  .kawa-main-menu-btn {
1903
1972
  min-height: 48px;
1904
1973
  }
1905
1974
 
1975
+ .kawa-modal-overlay,
1976
+ .kawa-modal {
1977
+ backdrop-filter: none;
1978
+ -webkit-backdrop-filter: none;
1979
+ }
1980
+
1906
1981
  .kawa-slot-actions {
1907
1982
  flex-wrap: wrap;
1908
1983
  }
@@ -1910,6 +1985,17 @@ body.kawa-fullscreen {
1910
1985
  .kawa-slot-btn {
1911
1986
  min-height: 44px;
1912
1987
  }
1988
+
1989
+ .kawa-ending-card {
1990
+ backdrop-filter: none;
1991
+ -webkit-backdrop-filter: none;
1992
+ }
1993
+ }
1994
+
1995
+ @media (prefers-reduced-motion: reduce) {
1996
+ .kawa-sprite img {
1997
+ animation: none !important;
1998
+ }
1913
1999
  }
1914
2000
 
1915
2001