:root{
  --bg:#100f0d;
  --panel:#171411;
  --panel-2:#1d1915;
  --text:#f4ede4;
  --muted:#8f877e;
  --gold:#e9b970;
  --gold-2:#f2d39f;
  --line:rgba(235,188,117,.17);
  --line-soft:rgba(255,255,255,.07);
  --serif:"Cormorant Garamond",Georgia,serif;
  --sans:"DM Sans",Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0}
body{
  font-family:var(--sans);
  color:var(--text);
  background:
    radial-gradient(circle at 10% 6%,rgba(184,117,35,.12),transparent 24rem),
    radial-gradient(circle at 92% 20%,rgba(184,117,35,.07),transparent 28rem),
    var(--bg);
  overflow:hidden;
}
button,a{font:inherit}
button{border:0;background:none;color:inherit}
.app-shell{
  width:100%;
  height:100dvh;
  display:grid;
  grid-template-rows:64px minmax(0,1fr) 106px;
  overflow:hidden;
}
.topbar{
  padding:0 24px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:16px;
  border-bottom:1px solid var(--line-soft);
  background:rgba(16,15,13,.84);
  backdrop-filter:blur(16px);
  z-index:5;
}
.brand{
  display:flex;
  align-items:center;
  min-width:154px;
}
.brand img{
  display:block;
  width:154px;
  height:auto;
  max-height:46px;
  object-fit:contain;
  object-position:left center;
}
.topbar-title span{
  display:block;
  color:var(--gold);
  font-size:9px;
  font-weight:700;
  letter-spacing:.16em;
}
.topbar-title strong{
  display:block;
  margin-top:3px;
  font-family:var(--serif);
  font-size:22px;
  font-weight:600;
  line-height:.9;
}
.topbar-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.header-button,
.quote-button{
  height:38px;
  border-radius:999px;
  padding:0 14px;
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  cursor:pointer;
  transition:.18s ease;
}
.header-button{
  border:1px solid var(--line);
  color:#cfc4b8;
}
.header-button:hover{border-color:rgba(235,188,117,.35);color:white}
.quote-button{
  background:var(--gold);
  color:#17120d;
  font-weight:700;
}
.quote-button:hover{background:var(--gold-2)}
.header-button svg,.quote-button svg{
  width:15px;height:15px;fill:currentColor
}

.viewer{
  position:relative;
  min-height:0;
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  padding:8px 14px 5px;
}
.image-stage{
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 8px 2px;
  overflow:hidden;
}
.image-stage img{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  filter:drop-shadow(0 18px 40px rgba(0,0,0,.28));
  transition:opacity .18s ease,transform .24s ease,filter .18s ease;
}
.image-stage img.is-changing{
  opacity:.22;
  transform:scale(.992);
  filter:blur(2px);
}
.image-loader{
  position:absolute;
  left:50%;top:50%;
  width:24px;height:24px;
  margin:-12px 0 0 -12px;
  border:2px solid rgba(255,255,255,.13);
  border-top-color:var(--gold);
  border-radius:50%;
  opacity:0;
  animation:spin .7s linear infinite;
  transition:opacity .15s ease;
}
.image-loader.is-visible{opacity:1}
@keyframes spin{to{transform:rotate(360deg)}}
.fineprint{
  margin:0 0 2px;
  text-align:center;
  color:#69625c;
  font-size:8px;
  line-height:1.2;
}

.app-dock{
  position:relative;
  height:106px;
  display:flex;
  align-items:stretch;
  justify-content:center;
  gap:16px;
  padding:9px max(10px,env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom));
  border-top:1px solid var(--line-soft);
  background:rgba(14,13,12,.96);
  backdrop-filter:blur(22px);
  z-index:10;
}
.dock-group{
  display:flex;
  align-items:stretch;
}
.dock-item{
  position:relative;
  width:116px;
  min-width:100px;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  color:#807871;
  cursor:pointer;
  transition:.16s ease;
}
.dock-item:hover{color:#d9cec2}
.dock-icon{
  position:relative;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
}
.dock-icon svg{
  width:35px;
  height:35px;
  fill:currentColor;
}
.dock-label{
  font-size:11.5px;
  font-weight:600;
  line-height:1;
  white-space:nowrap;
}
.dock-item.is-active{
  color:var(--gold);
}
.dock-item.is-active .dock-icon::before{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:14px;
  background:rgba(233,185,112,.10);
  box-shadow:inset 0 0 0 1px rgba(233,185,112,.08);
  z-index:-1;
}
.dock-item.is-active::after{
  content:"";
  position:absolute;
  top:0;
  width:40px;
  height:2px;
  border-radius:999px;
  background:var(--gold);
  box-shadow:0 0 10px rgba(233,185,112,.42);
}
.dock-item[data-toggle].is-active .dock-icon::after{
  content:"";
  position:absolute;
  right:-2px;
  top:-1px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 2px #11100e;
}
.dock-divider{
  width:1px;
  margin:13px 12px;
  background:var(--line-soft);
}
.dock-item--action{
  color:#6e6761;
}

.onboarding-hint{
  position:fixed;
  left:50%;
  bottom:116px;
  z-index:20;
  transform:translate(-50%,8px);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  padding:11px 16px 8px;
  border:1px solid rgba(233,185,112,.28);
  border-radius:12px;
  background:rgba(21,18,15,.95);
  color:var(--gold-2);
  box-shadow:0 14px 35px rgba(0,0,0,.30);
  opacity:0;
  pointer-events:none;
  animation:hintLife 3s ease forwards;
}
.onboarding-hint span{
  font-size:13px;
  font-weight:700;
  letter-spacing:.05em;
}
.onboarding-hint svg{
  width:22px;
  height:22px;
  fill:currentColor;
  animation:bob .65s ease-in-out infinite alternate;
}
@keyframes hintLife{
  0%{opacity:0;transform:translate(-50%,14px)}
  12%{opacity:1;transform:translate(-50%,0)}
  76%{opacity:1;transform:translate(-50%,0)}
  100%{opacity:0;transform:translate(-50%,8px)}
}
@keyframes bob{to{transform:translateY(3px)}}

.toast{
  position:fixed;
  left:50%;
  bottom:118px;
  transform:translate(-50%,10px);
  z-index:50;
  padding:9px 13px;
  border-radius:999px;
  background:#f3eadf;
  color:#171411;
  font-size:10px;
  font-weight:700;
  opacity:0;
  pointer-events:none;
  transition:.18s ease;
}
.toast.is-visible{opacity:1;transform:translate(-50%,0)}

@media(max-width:720px){
  .app-shell{
    grid-template-rows:54px minmax(0,1fr) 92px;
  }
  .topbar{
    padding:0 12px;
    gap:8px;
  }
  .brand{min-width:112px}
  .brand img{width:112px;max-height:38px}
  .topbar-title span{font-size:7px}
  .topbar-title strong{font-size:17px}
  .header-button{
    width:36px;
    padding:0;
    justify-content:center;
  }
  .header-button span{display:none}
  .quote-button{
    height:36px;
    padding:0 11px;
    font-size:10px;
  }
  .quote-button svg{display:none}
  .viewer{
    padding:3px 4px 2px;
  }
  .image-stage{
    padding:1px;
  }
  .fineprint{
    font-size:7px;
    padding:0 8px;
  }
  .app-dock{
    height:92px;
    justify-content:space-evenly;
    gap:4px;
    padding-top:7px;
  }
  .dock-item{
    width:auto;
    min-width:0;
    flex:1 1 0;
    max-width:88px;
    gap:6px;
  }
  .dock-icon{width:36px;height:36px}
  .dock-icon svg{width:29px;height:29px}
  .dock-label{font-size:9.5px}
  .dock-divider{
    margin:10px 5px;
  }
  .onboarding-hint{
    bottom:100px;
    padding:10px 15px 7px;
  }
  .onboarding-hint span{
    font-size:12px;
  }
  .onboarding-hint svg{
    width:20px;
    height:20px;
  }
  .toast{
    bottom:102px;
  }
}

@media(max-width:420px){
  .topbar-title strong{font-size:15px}
  .quote-button span{font-size:9px}
  .dock-label{font-size:8.5px}
  .dock-divider{margin-left:1px;margin-right:1px}
}

@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  .onboarding-hint{opacity:1}
}
