:root{
  --yellow:#ffe11e;
  --navy:#002169;
  --gray:#e6e7e8;
  --ink:#0b1020;
  --white:#fff;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background: linear-gradient(180deg, #f7f9ff, #ffffff);
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
  border-bottom:1px solid #eef0f6;
  position:sticky; top:0; background:rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  z-index:5;
}

.brand{display:flex; gap:12px; align-items:center}
.logo-dot{
  width:14px; height:14px; border-radius:50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255,225,30,.25);
}
.brand-title{font-weight:800; color:var(--navy)}
.brand-sub{font-size:12px; color:#556}

.container{max-width:1100px; margin:0 auto; padding:18px}

.card{
  background:var(--white);
  border:1px solid #eef0f6;
  border-radius:18px;
  padding:18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
}

h1{margin:0 0 6px}
h2{margin:0 0 8px}
h3{margin:0 0 10px; color:var(--navy)}
.muted{color:#667; line-height:1.4}
.small{font-size:12px}

.grid2{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 900px){
  .grid2{grid-template-columns:1fr}
}

.panel{
  border:1px solid #eef0f6;
  background:#fbfcff;
  border-radius:16px;
  padding:14px;
}

.linkbtn{
  text-decoration:none;
  color:var(--navy);
  font-weight:700;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #e7e9f3;
  background:#fff;
}
.linkbtn:hover{border-color:#d7dbef}

.label{display:block; font-size:13px; color:#445; margin:8px 0}
.input{
  width:100%;
  min-height:90px;
  border-radius:14px;
  border:1px solid #e3e6f2;
  padding:10px 12px;
  font:inherit;
  outline:none;
}
.input:focus{border-color: rgba(0,33,105,.45); box-shadow: 0 0 0 4px rgba(0,33,105,.08)}

.tabs{display:flex; gap:8px; margin-bottom:10px}
.tab{
  border:1px solid #e3e6f2;
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  background:#fff;
  font-weight:700;
  color:#334;
}
.tab.active{
  background: rgba(255,225,30,.35);
  border-color: rgba(255,225,30,.9);
}
.hidden{display:none !important}

.draggables{display:flex; gap:10px; margin-top:10px; flex-wrap:wrap}

.dragcard{
  width:100%;
  max-width:260px;
  border-radius:16px;
  border:1px dashed #cfd6ee;
  background:#fff;
  padding:12px;
  cursor:grab;
}
.dragcard:active{cursor:grabbing}
.dragcard-title{font-weight:800; color:var(--navy); margin-bottom:6px}
.dragcard-body{color:#445; font-size:13px}

.chili{
  width:180px;
  border-radius:16px;
  border:1px dashed #cfd6ee;
  background:#fff;
  padding:14px 12px;
  font-size:40px;
  text-align:center;
  cursor:grab;
}
.chili-sub{font-size:12px; color:#667; margin-top:6px}

.statusbox{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  background:#fff;
  border:1px solid #eef0f6;
}
.statusline{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px}
.pill{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid #e7e9f3;
  background:#fff;
  font-weight:700;
  color:#334;
}
.progress{height:10px; background:#eef0f6; border-radius:999px; overflow:hidden}
.progressbar{height:100%; background: var(--navy); width:0%}

/* Dumpling info card */
.infoCard{margin-bottom:14px}
.infoGrid{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:14px;
  align-items:stretch;
}
@media (max-width: 900px){
  .infoGrid{grid-template-columns:1fr}
}
.infoImageWrap{
  border-radius:16px;
  overflow:hidden;
  border:1px solid #eef0f6;
  background:#fbfcff;
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.infoImage{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.infoImageFallback{
  padding:14px;
  text-align:center;
}
.fallbackTitle{
  font-weight:900;
  color:var(--navy);
  margin-bottom:6px;
}
.infoText{
  border-radius:16px;
  border:1px solid #eef0f6;
  background:#fbfcff;
  padding:14px;
}
.infoTitle{color:var(--navy)}
.infoNote{
  margin-top:10px;
  background: rgba(255,225,30,.25);
  border:1px solid rgba(255,225,30,.6);
  padding:10px 12px;
  border-radius:14px;
  font-weight:700;
  color:#243;
}

/* Dough zone */
.doughzone{
  height:340px;
  border-radius:16px;
  border:2px dashed #d7dbef;
  background: linear-gradient(180deg, rgba(0,33,105,.03), rgba(255,225,30,.06));
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.doughzone.dragover{border-color: rgba(0,33,105,.35)}

/* ✅ UPDATED: remove white circle background, keep same positioning */
.doughcircle{
  width:190px;
  height:190px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;

  /* drives reveal + fade */
  --cover: 0;

  /* remove the fake circle */
  background:none;
  border:none;
  border-radius:0;
  box-shadow:none;
}

.doughLabel{
  position:absolute;
  top:12px; left:50%;
  transform:translateX(-50%);
  font-size:12px; color:#667;
  z-index:3;
}

/* Bigger filling inside dough */
.fillingSlotBig{
  width:140px;
  height:140px;
  border-radius:50%;
  border:1px dashed #cfd6ee;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.55);
  z-index:1;
  padding:10px;

  /* ✅ slowly disappear while rolling */
  opacity: calc(1 - var(--cover));
  transition: opacity 220ms linear;
}
.fillingSlotBig.filled{border-style:solid}

/* Big wish card inside dough */
.bigWishInDough{
  width:100%;
  height:100%;
  border-radius:18px;
  border:1px solid #d7dbef;
  background:#fff;
  padding:10px;
  overflow:hidden;
}
.bwTitle{
  font-weight:900;
  color:var(--navy);
  font-size:13px;
  margin-bottom:6px;
}
.bwBody{
  font-size:13px;
  line-height:1.35;
  color:#223;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Big chili inside dough */
.bigChiliInDough{
  font-size:64px;
  line-height:1;
  transform: rotate(-10deg);
}

/* ✅ UPDATED: show dumpling.png gradually (reveal) */
.doughCover{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;

  background-image:url("dumpling.png");
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;

  opacity: var(--cover);
  transform: scale(calc(0.92 + var(--cover) * 0.08));
  transition: opacity 220ms linear, transform 220ms linear;

  /* slight realism */
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}

.rollHelp{
  position:absolute;
  bottom:10px;
  width:calc(100% - 20px);
  left:10px;
  border-radius:14px;
  background: rgba(255,255,255,.75);
  border:1px solid #eef0f6;
  padding:10px 12px;
  font-size:13px;
}

.cookrow{display:flex; gap:10px; align-items:center; margin-top:12px; flex-wrap:wrap}
.cookbtn{
  border:none;
  border-radius:14px;
  padding:12px 14px;
  background: var(--navy);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.cookbtn:disabled{opacity:.45; cursor:not-allowed}
.ghostbtn{
  text-decoration:none;
  border-radius:14px;
  padding:12px 14px;
  border:1px solid #e3e6f2;
  background:#fff;
  color:var(--navy);
  font-weight:800;
}

/* Overlay / modal */
.overlay{
  position:fixed; inset:0;
  background: rgba(10,14,30,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:50;
}
.overlay-card{
  width:min(520px, 95vw);
  background:#fff;
  border-radius:18px;
  border:1px solid #eef0f6;
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  padding:16px;
}
.overlay-card.wide{width:min(680px, 95vw)}
.overlay-title{font-weight:900; color:var(--navy); font-size:18px}

.modalhead{display:flex; justify-content:space-between; align-items:center; gap:10px}
.xbtn{
  border:1px solid #e3e6f2;
  background:#fff;
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
  font-weight:900;
}

/* reveal content */
.revealBody{
  margin-top:12px;
  padding:14px;
  border-radius:16px;
  border:1px solid #eef0f6;
  background:#fbfcff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:10px;
  min-height:160px;
}
.wishCardShow{
  width:100%;
  border-radius:16px;
  padding:14px;
  border:1px solid #d7dbef;
  background:#fff;
}
.wishCardShow .title{font-weight:900; color:var(--navy); margin-bottom:8px}
.chiliBig{
  font-size:110px;
  line-height:1;
  text-align:center;
}

/* Cooking animation */
.boil{
  height:160px;
  border-radius:16px;
  background: linear-gradient(180deg, rgba(255,225,30,.35), rgba(0,33,105,.10));
  border:1px solid #eef0f6;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.pot{font-size:54px}
.bubble{
  position:absolute;
  width:14px; height:14px;
  border-radius:50%;
  background: rgba(255,255,255,.85);
  bottom:-20px;
  animation: rise 1.4s infinite ease-in;
}
.b1{left:20%; animation-delay:0s}
.b2{left:48%; animation-delay:.25s}
.b3{left:75%; animation-delay:.55s}

@keyframes rise{
  from{transform:translateY(0); opacity:.1}
  40%{opacity:.9}
  to{transform:translateY(-180px); opacity:0}
}

/* Cooking progress bar */
.cookProgress{
  margin-top:10px;
  height:12px;
  border-radius:999px;
  background:#eef0f6;
  overflow:hidden;
  border:1px solid #e7e9f3;
}
.cookProgressBar{
  height:100%;
  width:0%;
  background: var(--navy);
  border-radius:999px;
  transition: width 80ms linear;
}

/* ===== Gallery: one big plate + real dumpling buttons (kept) ===== */
.galleryhead{display:flex; justify-content:space-between; align-items:baseline; gap:10px; flex-wrap:wrap}

.plates1{
  margin-top:14px;
  display:flex;
  justify-content:center;
}

.plate1{
  width:100%;
  max-width:980px;
  border-radius:18px;
  border:1px solid #eef0f6;
  background:#fbfcff;
  padding:14px;
}

.plateTop{display:flex; justify-content:space-between; align-items:baseline; gap:10px; margin-bottom:10px}
.plateTitle{font-weight:900; color:var(--navy)}
.plateSub{white-space:nowrap}

.plateCanvasBig{
  position:relative;
  width:100%;
  height:clamp(380px, 55vw, 560px);
  border-radius:18px;
  overflow:hidden;
  border:0;
  background-image: url("plate.png");
  background-repeat:no-repeat;
  background-position:center;
  background-size:100% 100%;
}

.plateCanvasBig .dumplingDot.dumplingPhoto{
  position:absolute;
  width:58px;
  height:58px;
  border-radius:50%;
  border:none;
  padding:0;
  cursor:pointer;

  background-image:url("dumpling.png");
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;

  box-shadow:
    0 10px 18px rgba(0,0,0,.18),
    inset 0 2px 6px rgba(255,255,255,.35);
  transform: translateZ(0);
}

.plateCanvasBig .dumplingDot.dumplingPhoto:hover{
  transform: translateY(-2px) scale(1.03);
}

/* ===== Header Logo (added) ===== */
.brand-logo{
  height:32px;
  width:auto;
  display:block;
}

/* ===== Footer (added) ===== */
.siteFooter{
  margin-top:18px;
  padding:14px 18px 22px;
  text-align:center;
  color:#667;
  font-size:13px;
}

@media (max-width: 520px){
  .brand-logo{height:28px}
}
