: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;min-height:730px}
.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;
  }
}


/* Lab footer */
.lab-footer{
  max-width:1180px;
  margin:70px auto 0;
  padding:28px 34px 32px;

  border-top:1px solid rgba(75,36,23,.18);

  text-align:center;
  color:#765f56;
}

.lab-footer p{
  margin:0;
}

.lab-disclaimer{
  margin-bottom:10px !important;

  font-size:13px;
  line-height:1.55;
}

.lab-copyright{
  font-size:12px;
  line-height:1.5;
  opacity:.8;
}

@media(max-width:620px){
  .lab-footer{
    margin-top:50px;
    padding:24px 24px 28px;
  }

  .lab-disclaimer{
    font-size:12px;
  }

  .lab-copyright{
    font-size:11px;
  }
}

.claim-token{
    grid-column:2;
    justify-self:start;
    border:1px solid var(--brown);
    background:var(--brown);
    color:white;
    border-radius:999px;
    padding:7px 13px;
    font:inherit;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
}
.claim-token:hover{
    opacity:.88;
}
.claim-token:disabled{
    opacity:.55;
    cursor:default;
}
.token-owned{
    grid-column:2;
    justify-self:start;
    border:1px solid var(--brown);
    border-radius:999px;
    padding:7px 13px;
    color:var(--brown);
    font-size:12px;
    font-weight:800;
}

.header-actions{
    display:flex;
    align-items:center;
    gap:20px;
}

.account-link{
    border:0;
    background:none;
    padding:6px 0;
    color:var(--brown);
    font:inherit;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
}

.account-link:hover{
    color:#a55a2b;
}

@media(max-width:620px){
    .header-actions{
        gap:10px;
    }

    .account-link{
        font-size:12px;
    }
}

.account-modal-card{
    width:min(460px,100%);
}

.account-modal-card h2{
    margin:4px 0 10px;
}

.account-intro{
    color:var(--muted);
    line-height:1.5;
    margin:0 0 18px;
}

#account-form{
    display:flex;
    gap:10px;
}

.account-email{
    min-width:0;
    flex:1;
    border:1px solid var(--line);
    background:white;
    color:var(--ink);
    border-radius:999px;
    padding:12px 16px;
    font:inherit;
}

.account-message{
    margin:16px 0 0;
    color:var(--brown);
    font-weight:700;
}

@media(max-width:620px){
    .header-actions{
        display:grid;
        justify-items:end;
        gap:2px;
    }

    .language-switch{
        grid-row:1;
    }

    .account-link{
        grid-row:2;
        font-size:12px;
        padding:1px 2px 5px;
    }

    #account-form{
        display:grid;
    }

    .account-submit{
        justify-self:start;
    }
}

@media(max-width:620px){
    .header-actions{
        display:flex;
        flex-direction:column;
        align-items:flex-end;
        gap:2px;
    }

    .language-switch{
        order:1;
    }

    .account-link{
        order:2;
        font-size:12px;
        padding:2px 0 4px;
    }
}

.my-tokens{
    margin-top:22px;
    padding-top:18px;
    border-top:1px solid var(--line);
}

.my-tokens h3{
    margin:0 0 12px;
    font-family:Georgia,serif;
    font-size:22px;
}

.my-token-item{
    display:flex;
    justify-content:space-between;
    gap:14px;
    padding:10px 0;
    border-bottom:1px solid var(--line);
    font-weight:700;
}

.my-token-item:last-child{
    border-bottom:0;
}

.my-token-number{
    color:var(--brown);
    white-space:nowrap;
}

.first-token{
    grid-column:2;
    justify-self:start;
    color:var(--brown);
    font-size:12px;
    font-weight:800;
    text-decoration:none;
    margin-top:2px;
}

.first-token:hover{
    text-decoration:underline;
}

/* Ingredient selector persistent completion control */
.ingredient-done{
    position:sticky;
    bottom:0;
    z-index:5;
    display:block;
    width:100%;
    margin:18px 0 0;
    padding:14px 18px;
    border:0;
    border-radius:999px;
    background:var(--brown);
    color:#fff;
    font-size:16px;
    font-weight:800;
    cursor:pointer;
}

@media(max-width:680px){
    .ingredient-done{
        bottom:0;
        padding:15px 18px;
        font-size:16px;
    }
}

@media(max-width:680px){
    .ingredient-done{
        position:fixed;
        right:18px;
        bottom:18px;
        width:auto;
        margin:0;
        padding:13px 22px;
        z-index:1001;
        box-shadow:0 4px 16px rgba(0,0,0,.22);
    }
}

.my-token-item{
    color:var(--brown);
    text-decoration:none;
    cursor:pointer;
}
.my-token-item:visited{
    color:var(--brown);
}

/* Collection explainer link in LAB hero */
.collection-info-link{
    color:inherit;
    text-decoration:none;
    border-bottom:1px dotted currentColor;
    cursor:pointer;
}
.collection-info-link:visited{
    color:inherit;
}
.collection-info-link:hover,
.collection-info-link:focus-visible{
    color:var(--brown);
    border-bottom-style:solid;
}

.collection-info-link{
    color:var(--brown);
    border-bottom:1px solid currentColor;
    font-weight:600;
}
.collection-info-link::after{
    content:" →";
}

/* Collection link final treatment: bold, clean, no underline or arrow */
.collection-info-link{
    border-bottom:0;
    text-decoration:none;
    font-weight:600;
}
.collection-info-link::after{
    content:none;
}
.collection-info-link:hover,
.collection-info-link:focus-visible{
    border-bottom:0;
    text-decoration:none;
}

/* Token preview inside collection explainer */
.collection-token-preview{
    text-align:center;
    margin:0 0 20px;
}
.collection-token-preview img{
    display:block;
    width:250px;
    max-width:100%;
    height:auto;
    margin:0 auto;
}


/* Collection explainer desktop layout */
.collection-modal-card{
    width:min(920px,calc(100vw - 40px));
}
.collection-modal-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 300px;
    gap:42px;
    align-items:center;
}
.collection-modal-copy{
    min-width:0;
}
.collection-modal-copy h2{
    margin-top:0;
}
.collection-token-preview{
    margin:0;
    padding-left:42px;
    border-left:1px solid var(--line);
}
.collection-token-preview img{
    width:260px;
    max-width:100%;
}

@media (max-width:700px){
    .collection-modal-card{
        width:min(520px,calc(100vw - 24px));
    }
    .collection-modal-layout{
        grid-template-columns:1fr;
        gap:22px;
    }
    .collection-token-preview{
        order:-1;
        padding-left:0;
        padding-bottom:20px;
        border-left:0;
        border-bottom:1px solid var(--line);
    }
    .collection-token-preview img{
        width:190px;
    }
}

/* Collection explainer: instructions primary, Token supporting visual */
.collection-modal-card{
    width:min(900px,calc(100vw - 40px));
}
.collection-modal-layout{
    grid-template-columns:minmax(0,1fr) 250px;
    gap:34px;
    align-items:center;
}
.collection-token-preview{
    padding-left:34px;
    border-left:1px solid var(--line);
}
.collection-token-preview img{
    width:220px;
}
.collection-modal-copy h2{
    margin-bottom:28px;
}
.collection-modal-copy p{
    max-width:560px;
}

@media (max-width:700px){
    .collection-modal-layout{
        grid-template-columns:1fr;
    }
    .collection-token-preview{
        order:0;
        padding:18px 0 0;
        border-left:0;
        border-top:1px solid var(--line);
        border-bottom:0;
    }
    .collection-token-preview img{
        width:150px;
    }
}

/* Account ownership status */
.account-status{
    margin:0 0 16px;
    padding:10px 14px;
    border:1px solid var(--line);
    border-radius:10px;
    color:var(--brown);
    font-size:13px;
    letter-spacing:.04em;
}

.my-token-item{
    flex-wrap:wrap;
}

.my-token-status{
    flex-basis:100%;
    color:var(--muted);
    font-size:12px;
    font-weight:500;
    line-height:1.4;
}

/* ABOUT page */
.about-page{
  max-width:780px;
}

.about-hero{
  padding:38px 0 30px;
  border-bottom:1px solid var(--line);
}

.about-hero h1{
  margin-bottom:0;
}

.about-section{
  padding:38px 0;
  border-bottom:1px solid var(--line);
}

.about-section h2{
  margin:0 0 20px;
  font-family:system-ui,-apple-system,sans-serif;
  font-size:13px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#6f4334;
}

.about-section p{
  margin:0 0 20px;
  font-size:18px;
  line-height:1.75;
}

.about-section p:last-child{
  margin-bottom:0;
}

.about-lead{
  font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(25px,4vw,34px) !important;
  line-height:1.35 !important;
}

.about-closing{
  padding:42px 0 10px;
  text-align:center;
}

.about-closing p{
  max-width:720px;
  margin:0 auto 24px;
  font-size:18px;
  line-height:1.75;
}

.about-mantra{
  margin-top:34px !important;
  font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(25px,4vw,34px) !important;
  font-weight:700;
}

.about-tagline{
  font-size:15px !important;
  color:var(--muted);
}

@media(max-width:620px){
  .about-hero{
    padding-top:28px;
  }

  .about-section{
    padding:30px 0;
  }

  .about-section p,
  .about-closing p{
    font-size:17px;
  }
}

/* Mobile LAB header with ABOUT */
@media(max-width:620px){
  .site-header{
    padding:0 12px;
    gap:10px;
  }

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

  .header-actions{
    display:grid;
    justify-items:start;
    gap:0;
  }

  .language-switch{
    grid-row:1;
    gap:4px;
    font-size:12px;
    white-space:nowrap;
  }

  .language-switch .lang{
    padding:5px 1px;
  }

  .account-link{
    grid-row:2;
    justify-self:start;
    font-size:11px;
    padding:1px 0 3px;
  }
}

@media(max-width:620px){
  .header-actions{
    align-items:stretch;
  }

  .account-link{
    justify-self:start;
    text-align:left;
  }
}

/* Important warning/error toast */
.toast.error{
  bottom:auto;
  top:38%;
  transform:translate(-50%,-50%);
  background:#9f2f2f;
  color:#fff;
  max-width:min(520px,90vw);
  text-align:center;
  border-radius:10px;
  padding:16px 22px;
  z-index:9999;
}
