/* The supplied LZ mark is also used as the source for the two transition pieces. */
.brand-mark {
  display: inline-block;
  flex: none;
  width: 34px;
  height: 26px;
  margin: 0;
  transform: none;
  background: url('/assets/lanzuo-logo.png') center / contain no-repeat;
}
.brand-mark::before, .brand-mark::after { content: none }
.studio-public {
  color-scheme: light;
  background: #f6f9ff;
  color: #111c34;
  --surface: #fff;
  --surface-raised: #f7f9ff;
  --text: #111c34;
  --muted: #52637c;
  --line: #dce5f1;
  --accent: #143af0;
  --focus: #235ce6;
}
.public-topbar {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 clamp(20px, 4.7vw, 72px);
  border-color: #e2eafa;
  background: #fff;
}
.public-works-link { font-weight: 600; color: #4b5971; padding: 7px 10px; border-radius: 7px }
.public-works-link:hover { background: #eef3fc; color: #143af0 }
.remix-page .public-works-link { display: none }
.studio-public .brand small { color: #5a6b85 }
.studio-public .site-main { padding-top: clamp(20px, 3.1vw, 42px) }
.studio-public .hero {
  min-height: clamp(320px, 33vw, 430px);
  border-color: #d8e5fa;
  border-radius: 18px;
  background: radial-gradient(ellipse at 83% 48%, #b7d5ff 0, transparent 54%),
    linear-gradient(120deg, #f9fcff 7%, #edf5ff 57%, #d7e9ff 100%);
}
.studio-public .hero-content { position: relative; z-index: 1; padding: clamp(26px, 5.1vw, 78px) }
.studio-public .hero h1 { font-size: clamp(33px, 4.6vw, 67px); font-weight: 700; letter-spacing: -.045em }
.studio-public .hero p { color: #445674 }
.studio-public .studio-label { color: #294db2 }
.studio-public .hero-mark {
  position: absolute;
  right: clamp(20px, 8vw, 118px);
  width: clamp(190px, 28vw, 385px);
  height: clamp(140px, 23vw, 288px);
  filter: drop-shadow(0 16px 28px #2c67ed38);
}
.studio-public .primary { color: white }
.studio-public .primary:hover:not(:disabled) { background: #1232d5 }
.studio-public .secondary:hover:not(:disabled), .studio-public .mode-card:hover { background: #eef4ff; border-color: #a5bafa }
.studio-public .mode-card { border-radius: 13px; min-height: 104px; transition: transform .15s, background-color .15s, border-color .15s, box-shadow .15s }
.studio-public .mode-card:hover { box-shadow: 0 8px 22px #1a3f7c12; transform: translateY(-2px) }
.studio-public .mode-card:active { transform: translateY(1px) }
.studio-public .button { border-radius: 9px; transition: transform .12s, background-color .15s, border-color .15s }
.studio-public .button:active:not(:disabled) { transform: translateY(1px) scale(.98) }
.studio-public .mode-icon { background: #e9efff; color: #1e43dc }
.studio-public .mode-action { color: #435d85 }
.studio-public .filter.active { background: #e6edff; color: #153ba3 }
.studio-public dialog, .studio-public input:not([type=file]), .studio-public textarea, .studio-public select {
  background: #fff; color: var(--text); border-color: #cfdcef;
}
.studio-public .upload { background: #f2f7ff; border-color: #bfd1ec; color: #375174 }
.studio-public .field { color: #3f5271 }
.studio-public .result-panel p, .studio-public .pet-status { color: #52637c }
.remix-page #works, .remix-page .site-footer { display: none }
.remix-page .page-head { margin-bottom: 22px }
.remix-page .page-head .back { display: inline-flex; padding: 6px 10px; margin-left: -10px; border-radius: 7px }
.remix-page .page-head .back:hover { background: #eaf1fd }
.remix-page .remix-layout .panel { border-radius: 15px; padding: clamp(16px, 2.4vw, 28px); box-shadow: 0 7px 23px #1a3f7c09 }

.brand-transition {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #e1efff, #f8fbff 65%);
  pointer-events: none;
  animation: lz-reveal 820ms ease-in-out both;
}
.lz-motion { position: relative; width: min(43vw, 250px); aspect-ratio: 932 / 684; }
.lz-piece { position: absolute; inset: 0; background: url('/assets/lanzuo-logo.png') center / 100% 100% no-repeat }
.lz-left {
  clip-path: polygon(0 88%, 0 0, 52% 0, 32% 57%, 57% 57%, 44% 88%);
  animation: lz-left-in 650ms cubic-bezier(.2,.76,.22,1) both;
}
.lz-right {
  clip-path: polygon(45% 45.5%, 50.5% 19%, 100% 19%, 100% 100%, 40% 100%, 65% 45.5%);
  animation: lz-right-in 650ms cubic-bezier(.2,.76,.22,1) both;
}
.lz-streak {
  position: absolute; width: 185%; left: -42%; top: 46%; height: 7%; border-radius: 100%;
  background: linear-gradient(90deg, transparent, #3184ff 39%, white 50%, #468bff 61%, transparent);
  filter: blur(3px); animation: lz-sweep 650ms ease-out both;
}
@keyframes lz-left-in {
  0% { opacity: 0; transform: translateX(-58%) scale(.92); filter: blur(6px) drop-shadow(-36px 0 9px #407cfa) }
  66% { opacity: 1; transform: translateX(0); filter: drop-shadow(0 0 16px #387aff) }
  100% { transform: translateX(0); filter: drop-shadow(0 4px 4px #2f5ae62a) }
}
@keyframes lz-right-in {
  0% { opacity: 0; transform: translateX(58%) scale(.92); filter: blur(6px) drop-shadow(36px 0 9px #407cfa) }
  66% { opacity: 1; transform: translateX(0); filter: drop-shadow(0 0 16px #387aff) }
  100% { transform: translateX(0); filter: drop-shadow(0 4px 4px #2f5ae62a) }
}
@keyframes lz-sweep {
  0% { opacity: 0; transform: scaleX(.1) }
  57% { opacity: .85; transform: scaleX(1) }
  100% { opacity: 0; transform: scaleX(1.08) }
}
@keyframes lz-reveal {
  0%, 67% { opacity: 1; visibility: visible }
  99% { visibility: visible }
  100% { opacity: 0; visibility: hidden }
}
@media (max-width: 740px) {
  .studio-public .hero { align-items: flex-end; min-height: 350px }
  .studio-public .hero-mark { width: 132px; height: 100px; top: 18px; right: 20px }
  .studio-public .hero-content { padding: 126px 22px 25px }
  .studio-public .hero p { margin: 10px 0 19px; font-size: 13px }
}
@media (prefers-reduced-motion: reduce) {
  .brand-transition { display: none }
  .studio-public .button, .studio-public .mode-card { transition: none; transform: none }
}
