:root{--bg:#f7f0e5;--ink:#2b1710;--muted:#7b665d;--card:#fffaf3;--line:#ddcdbd;--brown:#4b2417;--red:#c72d38;--lab:#fff0c9}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,sans-serif}.shell{max-width:920px;margin:auto;padding:24px 18px 70px}
.hero{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding:18px 0 26px;border-bottom:1px solid var(--line)}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:800;color:#6f4334}h1{font-family:Georgia,serif;font-size:clamp(38px,7vw,68px);line-height:1;margin:8px 0 12px}.hero p{max-width:650px;font-size:18px;color:var(--muted);margin:0}
.button{border:1px solid var(--brown);background:transparent;color:var(--brown);border-radius:999px;padding:12px 16px;font-weight:800;cursor:pointer}.primary{background:var(--brown);color:white}.ranking{padding-top:28px}h2{font-family:Georgia,serif;font-size:32px}.ranking-list{display:grid;gap:9px}
.recipe-card{display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px 14px}.recipe-card.lab{background:linear-gradient(90deg,var(--lab),var(--card))}.rank{font-weight:900}.recipe-title{font-weight:800}.badge{font-size:10px;margin-left:8px;padding:3px 6px;border-radius:999px;background:#eed69c}.like{border:0;background:none;cursor:pointer;font-weight:800;color:var(--muted);display:flex;gap:7px;align-items:center}.heart{font-size:24px}.like.liked,.like.liked .heart{color:var(--red)}
.show-more{display:block;margin:16px auto;border:0;background:none;color:var(--brown);font-weight:900;cursor:pointer}.builder{margin-top:36px;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:20px}.builder-head{display:flex;justify-content:space-between;align-items:center}.close{border:0;background:none;font-size:28px;cursor:pointer}.chips{display:flex;flex-wrap:wrap;gap:9px}.chip{border:1px solid var(--line);background:white;border-radius:999px;padding:9px 12px;cursor:pointer}.chip.selected{background:var(--brown);color:white}.builder-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:18px 0}
.modal{position:fixed;inset:0;background:#23140e88;display:grid;place-items:center;padding:18px}.modal-card{width:min(720px,100%);max-height:82vh;overflow:auto;background:var(--card);border-radius:18px;padding:20px}.group{margin-bottom:22px}.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#2f1a13;color:#fff;padding:13px 18px;border-radius:999px;font-weight:800}.sparkles{pointer-events:none;position:fixed;inset:0}.spark{position:absolute;left:50%;top:45%;animation:burst .9s ease-out forwards}@keyframes burst{to{transform:translate(var(--x),var(--y));opacity:0}}
@media(max-width:680px){.hero{flex-direction:column;align-items:flex-start}.recipe-card{grid-template-columns:40px 1fr auto;padding:11px 10px}.recipe-title{font-size:14px}}
[hidden]{display:none!important}

/* Global Czekolada.com navigation */
.site-header{
  max-width:1180px;
  margin:0 auto;
  min-height:78px;
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:34px;
  align-items:center;
  padding:0 28px;
  border-bottom:1px solid rgba(85,45,24,.16);
}

.site-header .brand{
  text-decoration:none;
  font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(27px,3vw,39px);
  color:#8b4a24;
}

.site-header .brand span{
  font-size:.56em;
}

.main-nav{
  display:flex;
  gap:26px;
}

.main-nav a{
  text-decoration:none;
  color:#3a2a20;
  font-size:14px;
}

.main-nav a:hover,
.main-nav a.is-active{
  color:#a55a2b;
}

.language-switch{
  display:flex;
  align-items:center;
  gap:7px;
  color:#a48e7d;
  font-size:14px;
}

.language-switch .lang{
  text-decoration:none;
  color:#8d7666;
  padding:6px 2px;
}

.language-switch .lang.is-active{
  color:#a55a2b;
  font-weight:700;
}

.jp-coming{
  min-height:60vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:60px 24px;
}

.jp-coming .eyebrow{
  margin-bottom:18px;
}

.jp-coming h1{
  margin-bottom:14px;
}

.jp-coming p{
  margin:0;
}

@media (max-width:960px){
  .site-header{
    grid-template-columns:1fr auto;
  }

  .main-nav{
    display:none;
  }
}

@media (max-width:620px){
  .site-header{
    min-height:68px;
    padding:0 18px;
  }

  .site-header .brand{
    font-size:27px;
  }
}

/* Simplified LAB navigation */
.site-header{
  grid-template-columns:1fr auto;
}

.site-header .main-nav{
  display:none;
}

.language-switch .lab-nav{
  text-decoration:none;
  color:#a55a2b;
  font-weight:700;
}

@media (max-width:960px){
  .site-header{
    grid-template-columns:1fr auto;
  }
}

/* Highlight recipe after creation */
.recipe-card.result-target{
  outline:2px solid currentColor;
  outline-offset:3px;
}


/* Creation result = prize card, not funeral ticket */
.toast.result-panel{
  position:fixed;
  left:50%;
  transform:translateX(-50%);

  width:min(720px,92vw);
  max-width:92vw;

  padding:30px 34px;

  background:linear-gradient(
    135deg,
    #fffdf4 0%,
    #fff3c8 55%,
    #ffe7a3 100%
  );

  color:#2b1710;

  border:2px solid #d7aa48;
  border-radius:10px;

  box-shadow:
    0 18px 50px rgba(89,56,12,.24),
    0 0 0 5px rgba(255,228,154,.32);

  text-align:left;
  cursor:pointer;
}

.result-title{
  font-family:Georgia,'Times New Roman',serif;
  font-size:34px;
  line-height:1.1;
  font-weight:700;
  margin-bottom:10px;
}

.result-rank{
  font-size:24px;
  line-height:1.3;
  font-weight:900;
  margin-bottom:16px;
}

.result-match{
  font-size:19px;
  line-height:1.45;
  margin-bottom:12px;
}

.result-vote{
  font-size:19px;
  line-height:1.45;
  font-weight:700;
  margin-bottom:20px;
}

.toast .result-share{
  display:inline-block;
  min-width:180px;

  margin:0 0 18px;
  padding:13px 24px;

  border:0;
  border-radius:7px;

  background:#b84b30;
  color:white;

  font-size:18px;
  font-weight:800;

  cursor:pointer;
}

.result-close{
  font-size:15px;
  font-weight:700;
  opacity:.68;
}

@media(max-width:620px){
  .toast.result-panel{
    width:94vw;
    max-width:94vw;

    padding:26px 24px;

    border-radius:8px;
  }

  .result-title{
    font-size:30px;
  }

  .result-rank{
    font-size:22px;
  }

  .result-match,
  .result-vote{
    font-size:18px;
  }

  .toast .result-share{
    width:100%;
    font-size:18px;
    padding:14px 18px;
  }

  .result-close{
    font-size:15px;
  }
}


/* Back to top + reset ranking */
#back-top{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:9000;

  width:48px;
  height:48px;

  border:1px solid #cba85e;
  border-radius:8px;

  background:#fff8df;
  color:#4b2417;

  box-shadow:0 5px 20px rgba(0,0,0,.16);

  font-size:27px;
  font-weight:800;
  line-height:1;

  cursor:pointer;
}

#back-top:hover{
  background:#ffeeb8;
}

@media(max-width:620px){
  #back-top{
    right:14px;
    bottom:14px;

    width:46px;
    height:46px;

    font-size:25px;
  }
}
