/* Hatch badges additive styles for hatch collectibles.
   Pair with hatch.css. Freckle Face / cream card / thick ink border. */

.hatch-badges-strip{
  --hb-ink:#151515;--hb-cream:#fff8e6;--hb-sun:#ffc21a;
  --hb-rare:#e6a800;--hb-uncommon:#2f6fbf;--hb-common:#3d7a4a;
  position:relative;z-index:3;margin:0 auto;padding:0 18px 28px;max-width:720px;
  font-family:ui-rounded,"Nunito","Trebuchet MS",system-ui,sans-serif;color:var(--hb-ink)
}
.hatch-badges-strip__title{
  margin:0 0 .55em;font-family:"Freckle Face","Comic Sans MS",cursive;font-weight:400;
  font-size:clamp(1.35rem,5vw,1.8rem);color:#fff;
  text-shadow:2px 2px 0 var(--hb-ink),-1px -1px 0 var(--hb-ink),1px -1px 0 var(--hb-ink),-1px 1px 0 var(--hb-ink)
}
.hatch-badges-strip__row{
  display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center;
  background:var(--hb-cream);border:4px solid var(--hb-ink);
  border-radius:22px 28px 20px 30px/28px 20px 30px 22px;box-shadow:6px 6px 0 var(--hb-ink);
  padding:12px 14px;min-height:92px
}
.hatch-badges-strip__empty{
  margin:0;font-weight:700;font-size:1.05rem;opacity:.75
}
.hatch-badge-chip{
  position:relative;width:72px;height:72px;border-radius:50%;border:3px solid var(--hb-ink);
  box-shadow:3px 3px 0 var(--hb-ink);overflow:hidden;background:#fff;padding:0;
  flex:0 0 auto;display:block;cursor:default
}
.hatch-badge-chip img{width:100%;height:100%;object-fit:cover;display:block}
.hatch-badge-chip.is-locked{
  filter:grayscale(1) brightness(.85);opacity:.45;border-style:dashed
}
.hatch-badge-chip__rarity{
  position:absolute;left:50%;bottom:2px;transform:translateX(-50%);
  font-family:"Freckle Face","Comic Sans MS",cursive;font-size:.55rem;line-height:1;
  padding:.2em .45em;border:2px solid var(--hb-ink);border-radius:999px;
  background:var(--hb-cream);color:var(--hb-ink);white-space:nowrap;
  box-shadow:1px 1px 0 var(--hb-ink);pointer-events:none
}
.hatch-badge-chip__rarity--rare{background:#ffe08a;color:#7a5500}
.hatch-badge-chip__rarity--uncommon{background:#cfe0ff;color:#1a3f7a}
.hatch-badge-chip__rarity--common{background:#d7efd0;color:#24532c}

/* Reset badges button */
.hatch-badges-reset{
  display:block;margin:14px auto 0;background:var(--hb-cream);color:var(--hb-ink);
  font-family:"Freckle Face","Comic Sans MS",cursive;font-weight:400;font-size:1.15rem;
  padding:.45em 1.1em;min-height:48px;border:4px solid var(--hb-ink);
  border-radius:22px 28px 20px 30px/28px 20px 30px 22px;box-shadow:4px 4px 0 var(--hb-ink);
  cursor:pointer;touch-action:manipulation
}
.hatch-badges-reset:active{transform:translate(2px,2px);box-shadow:2px 2px 0 var(--hb-ink)}

/* Prize banner + counter */
.hatch-prize-banner{
  margin:12px auto 0;padding:12px 16px;max-width:520px;text-align:center;
  background:linear-gradient(180deg,#ffe08a,#ffc21a);border:4px solid var(--hb-ink);
  border-radius:22px 28px 20px 30px/28px 20px 30px 22px;box-shadow:5px 5px 0 var(--hb-ink);
  color:var(--hb-ink)
}
.hatch-prize-banner[hidden]{display:none!important}
.hatch-prize-banner__title{
  display:block;font-family:"Freckle Face","Comic Sans MS",cursive;font-size:clamp(1.25rem,5vw,1.7rem);
  text-shadow:1px 1px 0 #fff
}
.hatch-prize-banner__sub{display:block;margin-top:.25em;font-weight:800;font-size:1rem}
.hatch-prize-count{
  margin:10px 0 0;text-align:center;font-family:"Freckle Face","Comic Sans MS",cursive;
  font-size:1.2rem;color:#fff;
  text-shadow:2px 2px 0 var(--hb-ink),-1px -1px 0 var(--hb-ink),1px -1px 0 var(--hb-ink),-1px 1px 0 var(--hb-ink)
}

/* Badge on the hatch result card */
.hatch__badge-wrap{
  margin:12px auto 4px;width:min(58vw,220px);aspect-ratio:1;display:none
}
.hatch.is-hatched .hatch__badge-wrap{display:block;animation:hatch-in .45s .35s both}
.hatch__badge-wrap img{
  width:100%;height:100%;object-fit:contain;display:block;
  filter:drop-shadow(4px 4px 0 rgba(21,21,21,.3))
}
.hatch__badge-label{
  margin:.15em 0 0;font-family:"Freckle Face","Comic Sans MS",cursive;
  font-size:1.15rem;color:var(--bird,var(--hb-ink));
  text-shadow:1px 1px 0 var(--hb-ink)
}
.hatch__badge-rarity{
  margin:.1em 0 0;font-family:"Freckle Face","Comic Sans MS",cursive;font-size:1rem;
  display:inline-block;padding:.15em .55em;border:3px solid var(--hb-ink);
  border-radius:999px;background:var(--hb-cream);color:var(--hb-ink);
  box-shadow:2px 2px 0 var(--hb-ink)
}
.hatch__badge-rarity--rare{background:#ffe08a;color:#7a5500}
.hatch__badge-rarity--uncommon{background:#cfe0ff;color:#1a3f7a}
.hatch__badge-rarity--common{background:#d7efd0;color:#24532c}

/* Daily hatch limit message */
.hatch__limit{
  margin:12px auto 0;max-width:420px;padding:.65em 1em;text-align:center;
  font-family:"Freckle Face","Comic Sans MS",cursive;font-size:1.2rem;
  background:var(--hb-cream,#fff8e6);color:var(--hb-ink,#151515);
  border:4px solid var(--hb-ink,#151515);
  border-radius:22px 28px 20px 30px/28px 20px 30px 22px;box-shadow:4px 4px 0 var(--hb-ink,#151515)
}
.hatch__limit[hidden]{display:none!important}
.hatch.is-limited .hatch__egg{opacity:.55;pointer-events:none;cursor:not-allowed}
.hatch.is-limited .hatch__btn:disabled{opacity:.55;cursor:not-allowed}

/* Posted hatch rarity odds */
.hatch__odds{
  margin:.35em auto 0;max-width:520px;padding:.45em .85em;text-align:center;
  font-family:"Freckle Face","Comic Sans MS",cursive;font-size:clamp(1rem,3.8vw,1.25rem);
  background:var(--hb-cream,#fff8e6);color:var(--hb-ink,#151515);
  border:3px solid var(--hb-ink,#151515);
  border-radius:18px 24px 16px 22px/22px 16px 24px 18px;box-shadow:3px 3px 0 var(--hb-ink,#151515)
}
.hatch__odds span{white-space:nowrap}

.hatch.is-scribble .hatch__name{font-size:clamp(1.45rem,5.8vw,1.95rem)}
.hatch-prize-badge{
  display:block;width:min(46vw,180px);height:auto;margin:10px auto 6px;
  filter:drop-shadow(4px 4px 0 rgba(21,21,21,.3))
}
.hatch-prize-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:10px}
.hatch-prize-download,
.hatch-prize-print{
  display:inline-block;background:#fff8e6;color:#151515;text-decoration:none;
  font-family:"Freckle Face","Comic Sans MS",cursive;font-size:1.05rem;
  padding:.4em .9em;border:3px solid #151515;
  border-radius:18px 22px 16px 24px/22px 16px 24px 18px;
  box-shadow:3px 3px 0 #151515
}
.hatch-prize-download{background:#ffc21a}
.hatch-prize-download:active,
.hatch-prize-print:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #151515}
.hatch-prize-more-label{margin:12px 0 4px;font-weight:800;font-size:.95rem}
.hatch-prize-more{list-style:none;margin:0;padding:0;font-weight:700}
.hatch-prize-more a{color:#151515;text-decoration:underline}

.hatch-prize-claim{
  display:inline-block;background:#ffc21a;color:#151515;text-decoration:none;
  font-family:"Freckle Face","Comic Sans MS",cursive;font-size:1.15rem;
  padding:.5em 1.15em;border:3px solid #151515;
  border-radius:18px 22px 16px 24px/22px 16px 24px 18px;
  box-shadow:3px 3px 0 #151515;cursor:pointer;touch-action:manipulation
}
.hatch-prize-claim:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #151515}
.hatch-reset-confirm{
  position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(21,21,21,.45)
}
.hatch-reset-confirm[hidden]{display:none!important}
.hatch-reset-confirm__panel{
  width:min(92vw,420px);background:#fff8e6;color:#151515;text-align:center;
  border:4px solid #151515;border-radius:22px 28px 20px 30px/28px 20px 30px 22px;
  box-shadow:6px 6px 0 #151515;padding:22px 18px 18px
}
.hatch-reset-confirm__msg{
  margin:0;font-weight:800;font-size:1.05rem;line-height:1.4
}
.hatch-reset-confirm__actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:16px}
.hatch-reset-confirm__cancel,
.hatch-reset-confirm__reset{
  font-family:"Freckle Face","Comic Sans MS",cursive;font-size:1.1rem;
  padding:.4em 1.05em;border:3px solid #151515;
  border-radius:18px 22px 16px 24px/22px 16px 24px 18px;
  box-shadow:3px 3px 0 #151515;cursor:pointer;touch-action:manipulation;background:#fff
}
.hatch-reset-confirm__reset{background:#ffc21a}
.hatch-reset-confirm__cancel:active,
.hatch-reset-confirm__reset:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #151515}
