/*
 * ==================================================================
 * HOJA DE ESTILOS 2/4 · PANTALLAS ESPECIALES
 * Candado, pantalla PLAY, menú de pausa, diálogo de dificultad, césped animado y pantalla de carga.
 * El orden de los archivos importa (cascada): base → screens → game-layout → extras.
 * ==================================================================
 */

.lk {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -.2em;
}

.lkb {
  background: #fffd;
}

.lkb .lk {
  width: 70px;
  height: 70px;
  filter: drop-shadow(3px 4px 0 #262fb0);
}

.lv .lk {
  width: 1.3em;
  height: 1.3em;
}

.hb {
  font-style: normal;
  color: #ff4f6d;
  font-size: .9rem;
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.pgrid .pn {
  margin: 0;
  text-align: center;
}

.pgrid canvas {
  width: 100%;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
}

.pgrid .bt {
  margin-top: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 14px;
}

.chips span {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 12px 4px 12px 4px;
  padding: 0 12px;
  box-shadow: 2px 3px 0 var(--ink);
  font-size: 1rem;
}

.pn.cinta {
  position: relative;
}

.rib {
  position: absolute;
  top: 14px;
  right: -8px;
  transform: rotate(6deg);
  background: #ff7a6a;
  border: 2.5px solid var(--ink);
  padding: 0 12px;
  font: 1rem var(--h);
  box-shadow: 2px 3px 0 var(--ink);
}

.ttl.s {
  padding-top: 26px;
  margin: 0 0 14px;
}

.ttl.s span {
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 2px 0 #fff,-2px 0 #fff,0 2px #fff,0 -2px #fff,3px 4px 0 var(--ink);
}

.ttl.s span {
  font-size: clamp(1.8rem,9vw,2.7rem);
}

.ttl.s .t1 span {
  font-size: clamp(1.4rem,7vw,2.1rem);
}

.ttl.s .gem {
  width: 18px;
  height: 18px;
  margin-left: -9px;
  top: 0;
  border-width: 3px;
}

.pmp {
  min-width: min(88vw,340px);
}

.mn2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  margin-top: 10px;
}

.mn2 .bt {
  width: 100%;
}

.dfp {
  max-width: min(92vw,500px);
}

.df {
  display: grid;
  gap: 14px;
  margin: 12px 0;
}

.df small {
  display: block;
  font: 400 .85rem var(--f);
  margin-top: 2px;
  letter-spacing: 0;
}

#run {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 160px;
  pointer-events: none;
  z-index: 0;
}

#ld {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: linear-gradient(90deg,#262fb016 1px,transparent 1px) 0 0/30px 30px,linear-gradient(#262fb016 1px,transparent 1px) 0 0/30px 30px,var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  transition: transform .8s cubic-bezier(.7,0,.3,1);
  border-bottom: 6px solid var(--ink);
}

#ld.out {
  transform: translateY(-105%);
}

#ldc {
  width: min(100%,640px);
  height: 150px;
}

.pbar {
  width: min(86%,440px);
  height: 28px;
  border: 3px solid var(--ink);
  border-radius: var(--wr);
  background: #fff;
  box-shadow: 3px 4px 0 var(--ink);
  overflow: hidden;
  position: relative;
}

.pbar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: repeating-linear-gradient(-45deg,#ffcf3f 0 10px,#ffe07a 10px 20px);
  border-right: 3px solid var(--ink);
  transition: width .12s;
}

#lt {
  margin: 0;
  text-align: center;
  min-height: 2.6em;
  max-width: 440px;
}

#ls {
  animation: pu 1.1s ease-in-out infinite;
}

@keyframes pu {
  50% { transform: scale(1.07) rotate(1.2deg); }
}
