@import url("https://fonts.googleapis.com/css2?family=Azeret+Mono:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500&family=Geist+Mono:wght@400;500&display=swap");

*, *::before, *::after { box-sizing: border-box; }

html, body, #root {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #ffffff;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

canvas {
  display: block;
  width: 100vw !important;
  height: 100vh !important;
}

.bottom-vignette {
  position: fixed;
  inset: auto 0 0;
  z-index: 10;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.52), transparent);
  backdrop-filter: blur(16px) saturate(0.8);
  -webkit-backdrop-filter: blur(16px) saturate(0.8);
  mask-image: linear-gradient(to top, black, transparent);
}

.bottom-ui {
  position: fixed;
  z-index: 11;
  bottom: 24px;
  left: 50%;
  display: flex;
  width: min(520px, calc(100vw - 48px));
  flex-direction: column;
  gap: 8px;
  transform: translateX(-50%);
  animation: bottom-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes bottom-fade-up {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.bottom-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0 6px;
}

.brand-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-author, .brand-main, .brand-note {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-author {
  color: rgba(255, 255, 255, 0.36);
  text-decoration: none;
  transition: color 0.3s ease;
}

.brand-author:hover { color: rgba(255, 255, 255, 0.72); }
.brand-main { color: rgba(255, 255, 255, 0.58); }
.brand-note { color: rgba(255, 255, 255, 0.32); text-align: right; }

.preset-bar {
  position: fixed;
  z-index: 11;
  bottom: 26px;
  left: 50%;
  display: flex;
  width: min(460px, calc(100vw - 48px));
  gap: 2px;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 28px;
  background: rgba(24, 21, 17, 0.72);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(1.2);
  -webkit-backdrop-filter: blur(40px) saturate(1.2);
  scrollbar-width: none;
  transform: translateX(-50%);
  animation: bottom-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.preset-bar::-webkit-scrollbar { display: none; }

.preset-pill {
  flex: 1 0 auto;
  border: 0;
  border-radius: 24px;
  padding: 9px 16px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font: 400 12px "Geist", sans-serif;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, color 0.25s ease;
}

.preset-pill:hover, .preset-pill:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  outline: none;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #181511;
  font: 400 11px "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .bottom-ui { bottom: 16px; width: calc(100vw - 32px); }
  .preset-bar { bottom: 16px; width: calc(100vw - 32px); }
  .brand-note { display: none; }
  .preset-pill { padding-inline: 12px; }
}
