.tabs {
  grid-template-columns: repeat(4, 1fr);
}
.tab {
  font-size: 11px;
}
.content:has(#sanctuary.active) {
  padding: 0;
}
.sanHero {
  position: relative;
  min-height: 242px;
  padding: 12px;
  overflow: hidden;
  background: #080813 url("assets/sanctuary-bg.png") center/cover no-repeat;
}
.sanHero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #05030a18 20%, #0f0917 100%);
  pointer-events: none;
}
.sanTop,
.eggDock {
  position: relative;
  z-index: 1;
}
.sanTop {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.livePill,
.energyPill {
  padding: 6px 9px;
  border: 1px solid #74512d;
  border-radius: 12px;
  background: #0c0811d9;
  box-shadow: 0 5px 18px #0008;
  font-size: 9px;
  font-weight: 900;
}
.livePill {
  color: #ff695f;
}
.energyPill {
  color: #73c9ff;
  text-align: right;
}
.energyPill b {
  display: block;
  color: #fff;
  font-size: 13px;
}
.eggDock {
  width: 176px;
  margin: 24px auto 0;
  padding: 12px 10px 10px;
  text-align: center;
  border: 1px solid #527ba5;
  border-radius: 20px;
  background: linear-gradient(180deg, #071322d9, #151025ed);
  box-shadow:
    0 12px 35px #000b,
    0 0 24px #22aaff33;
}
.eggVisual {
  position: relative;
  width: 78px;
  height: 98px;
  margin: 0 auto 7px;
  border: 3px solid #66caff;
  border-radius: 52% 48% 47% 53%/61% 61% 39% 39%;
  background:
    radial-gradient(circle at 35% 25%, #d9fbff 0 7%, transparent 8%),
    radial-gradient(circle at 50% 42%, #79ddff, #167bce 43%, #072a63 75%);
  box-shadow:
    inset -9px -12px 18px #001d4b99,
    0 0 28px #20bfff;
  animation: eggFloat 2.8s ease-in-out infinite;
}
.eggVisual:after {
  content: "💧";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 30px;
  filter: drop-shadow(0 2px 5px #003);
}
.eggVisual.feu {
  border-color: #ff9b54;
  background:
    radial-gradient(circle at 35% 25%, #fff2c6 0 7%, transparent 8%),
    radial-gradient(circle at 50% 42%, #ffcb49, #e64f16 48%, #681408 78%);
  box-shadow:
    inset -9px -12px 18px #4a080899,
    0 0 28px #ff611f;
}
.eggVisual.feu:after {
  content: "🔥";
}
.eggVisual.ready {
  animation: eggReady 0.4s ease-in-out infinite alternate;
}
.eggDock small {
  color: #a9bdd2;
  text-transform: uppercase;
}
.eggDock h2 {
  margin: 3px 0 2px;
  color: #6bc7ff;
  font-size: 15px;
}
.eggDock.feu h2 {
  color: #ff9d61;
}
.incubationBar {
  height: 8px;
  margin: 9px 0 5px;
  border: 1px solid #46506c;
  border-radius: 8px;
  background: #05040a;
  overflow: hidden;
}
.incubationBar span {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #168dde, #67e1ff);
  box-shadow: 0 0 10px #31bfff;
}
.incubationMeta {
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.sanButton {
  width: 100%;
  margin-top: 9px;
  padding: 9px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffbd3d, #ee8507);
  color: #2b1600;
  font-weight: 900;
  box-shadow: 0 4px 15px #ff9e2440;
}
.sanButton[disabled] {
  background: #33283d;
  color: #86798f;
  box-shadow: none;
}
.sanStats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 9px;
  background: #0f0917;
}
.sanCard {
  min-width: 0;
  padding: 10px;
  border: 1px solid #40304c;
  border-radius: 13px;
  background: linear-gradient(145deg, #21142c, #130d1b);
}
.sanCard.full {
  grid-column: 1/-1;
}
.sanLabel {
  color: #f7b53c;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.sanValue {
  margin-top: 5px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.sanSub {
  margin-top: 3px;
  color: #ad9fba;
  font-size: 9px;
}
.eggStock {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 9px;
  background: #0f0917;
  scrollbar-width: none;
}
.eggChoice {
  min-width: 84px;
  padding: 9px 6px;
  border: 1px solid #493654;
  border-radius: 12px;
  background: #1b1125;
  color: #fff;
  text-align: center;
}
.eggChoice b {
  display: block;
  color: #ffd16e;
}
.eggChoice span {
  font-size: 24px;
}
.eggChoice button {
  margin-top: 6px;
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: #9147ff;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}
.welcomeEgg {
  text-align: center;
  padding: 28px 14px 20px;
}
.welcomeEgg .eggVisual {
  width: 94px;
  height: 118px;
}
.welcomeEgg h2 {
  margin: 9px 0 5px;
  color: #ffd166;
}
.welcomeEgg p {
  color: #bcaeca;
  font-size: 11px;
  line-height: 1.45;
}
@keyframes eggFloat {
  50% {
    transform: translateY(-5px);
  }
}
@keyframes eggReady {
  to {
    transform: rotate(3deg) scale(1.03);
    filter: brightness(1.2);
  }
}
@media (max-width: 320px) {
  .tab {
    font-size: 9px;
  }
  .sanHero {
    min-height: 220px;
  }
  .eggDock {
    margin-top: 17px;
  }
}
