/* Sudoku Lanterns: panels (levels, pause, result, sound, settings, language, statistics, calendar, lessons). */
.panels {
  position: absolute;
  inset: 0;
  z-index: 20;
  padding: calc(8 * var(--u) + var(--sat)) 0 calc(4 * var(--u) + var(--sab));
  display: grid;
  place-items: center;
}
.shade {
  position: absolute;
  inset: 0;
  background: rgba(12, 9, 40, 0.6);
}
#app[data-screen='game'] .shade {
  background: rgba(12, 9, 40, 0.68);
}
.panel {
  --nine: panel;
  --slice: 46 46 46 46;
  --edge: 4.4;
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  display: none;
  flex-direction: column;
  gap: calc(3 * var(--u));
  width: calc(86 * var(--u));
  max-height: calc(150 * var(--u));
  padding: calc(9.5 * var(--u)) calc(4.4 * var(--u)) calc(5 * var(--u));
}
.panel.on {
  display: flex;
}
/* the game's panda leaves the scene when the panel brings its own */
.peek {
  transition: opacity 0.2s;
}
#app[data-panel='win'] .peek,
#app[data-panel='lose'] .peek {
  opacity: 0;
}
.panel[data-out],
.panel[data-out] * {
  pointer-events: none !important;
}
.panel.has-mascot {
  margin-top: calc(24 * var(--u));
}
.panel.has-sitter {
  margin-top: calc(39 * var(--u));
}
.facts .fact {
  --nine: plate;
  --slice: 36 48 40 48;
  --edge: 2.4;
  /* the plate art multiplied by a soft violet: a little darker than the rows, same family as the panel */
  background-color: #b9b9e2;
  background-blend-mode: multiply;
  border-radius: calc(2.6 * var(--u));
}
#app[data-panel='win'] .shade {
  background: rgba(12, 9, 40, 0.56);
}
#p-win .band {
  top: calc(-7.5 * var(--u));
  height: calc(13.4 * var(--u));
  padding: 0 calc(9 * var(--u)) calc(0.6 * var(--u));
  font-size: calc(8.4 * var(--u));
}
#p-win {
  padding-top: calc(10 * var(--u));
}
.panel .col .btn {
  --h: calc(13.2 * var(--u));
  font-size: calc(5.8 * var(--u));
}
.panel-mascot {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  pointer-events: none;
}
.panel-mascot.peeker {
  bottom: calc(100% + 3.2 * var(--u));
  height: calc(21 * var(--u));
  aspect-ratio: 519 / 271;
}
.panel-mascot.sitter {
  bottom: calc(100% + 5.6 * var(--u));
  height: calc(38 * var(--u));
  aspect-ratio: 720 / 692;
}
.band {
  --nine: band;
  --slice: 36 48 40 48;
  --edge: 2.5;
  position: absolute;
  z-index: 2;
  top: calc(-5 * var(--u));
  left: 50%;
  translate: -50% 0;
  height: calc(10 * var(--u));
  padding: 0 calc(7 * var(--u)) calc(0.4 * var(--u));
  min-width: calc(44 * var(--u));
  color: #fff;
  font-size: calc(5.4 * var(--u));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 calc(0.3 * var(--u)) 0 rgba(120, 50, 0, 0.3);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}
.x {
  position: absolute;
  z-index: 3;
  top: calc(-4.2 * var(--u));
  right: calc(-2.6 * var(--u));
  width: calc(9.4 * var(--u));
  height: calc(9.4 * var(--u));
  background: url(../assets/ui/x.webp) center / 100% 100% no-repeat;
  transition:
    scale 0.34s var(--spring),
    filter 0.12s;
}
.x::before {
  content: '';
  position: absolute;
  inset: calc(-1.6 * var(--u));
}
.x.sm {
  width: calc(8.6 * var(--u));
  height: calc(8.6 * var(--u));
  flex: none;
}
.lead,
#card-text {
  text-wrap: balance;
}
#card-text {
  text-wrap: pretty;
}
.lead {
  margin: 0;
  text-align: center;
  font-size: calc(3.9 * var(--u));
  font-weight: 400;
  line-height: 1.35;
}
.lead.big {
  font-size: calc(7.1 * var(--u));
  font-weight: 600;
}
.col {
  display: flex;
  flex-direction: column;
  gap: calc(2.4 * var(--u));
}
.list {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: calc(1.6 * var(--u));
  scrollbar-width: none;
  padding-bottom: calc(3.6 * var(--u));
  margin-bottom: calc(-1.6 * var(--u));
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 3.2 * var(--u)), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 3.2 * var(--u)), transparent);
}
.list::-webkit-scrollbar {
  display: none;
}
.item,
.rowb,
.row,
.fact,
.stat {
  --nine: plate;
  --slice: 36 48 40 48;
  --edge: 2.2;
}
.item,
.rowb,
.row {
  flex: none;
  min-height: calc(11.4 * var(--u));
  padding: calc(1.2 * var(--u)) calc(3.2 * var(--u));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(2.4 * var(--u));
  text-align: left;
  font-size: calc(4.1 * var(--u));
  transition:
    scale 0.34s var(--spring),
    filter 0.12s;
}
.item {
  min-height: calc(12.4 * var(--u));
  justify-content: flex-start;
}
.rowb > span,
.row > span {
  translate: 0 -0.08em; /* lower-case labels read a hair low in their row */
}
.item span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.item b {
  font-size: calc(5.1 * var(--u));
  font-weight: 600;
  line-height: 1.1;
}
.item small {
  font-size: calc(3.1 * var(--u));
  font-weight: 400;
  color: #a6dcff;
}
.item em {
  flex: none;
  font-style: normal;
  font-size: calc(3 * var(--u));
  color: var(--gold);
  display: flex;
  align-items: center;
}
.item > .ic {
  flex: none;
  width: calc(8 * var(--u));
  height: calc(8 * var(--u));
}
.item em .ic {
  width: calc(6 * var(--u));
  height: calc(6 * var(--u));
}
.pips {
  flex: none;
  display: flex;
  gap: calc(0.45 * var(--u));
}
.pips i:not(.on) {
  filter: brightness(1.2);
}
.pips i.on {
  filter: drop-shadow(0 0 calc(0.8 * var(--u)) rgba(255, 170, 50, 0.9));
}
.pips i {
  width: calc(3.1 * var(--u));
  aspect-ratio: 214 / 218;
  background: url(../assets/ui/pip-off.webp) center / contain no-repeat;
}
.pips i.on {
  background-image: url(../assets/ui/pip-on.webp);
}
.item.lvl {
  position: relative;
  filter: brightness(0.92);
}
.item.lvl[data-down] {
  filter: brightness(0.84);
}
.item.lvl em {
  position: absolute;
  top: calc(1.9 * var(--u));
  right: calc(3.2 * var(--u));
  font-size: calc(3.4 * var(--u));
  font-weight: 500;
}
.item.lead-item {
  --nine: btn-teal;
  --slice: 50 64 58 64;
  --edge: 3;
}
.item.lead-item small {
  color: #e7fffb;
}
.sw {
  position: relative;
  flex: none;
  width: calc(11.4 * var(--u));
  aspect-ratio: 316 / 160;
}
/* End of css/05-panels.css (complete file). */
