/* barbershop.css — сцена и мини-игры барбершопа (тикет G27).
   Референс: современный тёмный барбершоп — кресла, круглые зеркала,
   трековый свет, тёмная штора. Всё кодом (градиенты/emoji), без картинок. */

.barber-scene {
  position: relative;
  height: 132px;
  margin: 0 0 10px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(255, 186, 92, .16), transparent 55%),
    linear-gradient(180deg, #17130f 0%, #221b15 46%, #120e0b 100%);
  box-shadow: inset 0 0 34px rgba(0, 0, 0, .75);
}

/* Трековый свет: планка с тёплыми лампами, лучи падают на стену. */
.barber-track {
  position: absolute;
  top: 6px; left: 8%; right: 8%;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #2c2c2e, #4d4d52, #2c2c2e);
}
.barber-lamp {
  position: absolute;
  top: 5px;
  left: calc(6% + var(--lamp) * 15.5%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe3ae, #ff9d2e 60%, #7a4400);
  box-shadow: 0 0 12px 4px rgba(255, 166, 66, .55);
}
.barber-lamp::after {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 96px;
  background: linear-gradient(180deg, rgba(255, 179, 71, .28), rgba(255, 179, 71, 0) 78%);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

/* Круглые зеркала: радиальный «стеклянный» блик в латунной оправе. */
.barber-wall { position: absolute; inset: 26px 0 0; }
.barber-mirror {
  position: absolute;
  bottom: 30px;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 3px solid #8a6a3b;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 70% 80%, rgba(255, 170, 80, .18), rgba(255, 170, 80, 0) 55%),
    linear-gradient(155deg, #26313a 0%, #10161b 55%, #1b2630 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .6);
}
.barber-mirror-0 { left: 12%; }
.barber-mirror-1 { left: 42%; }
.barber-mirror-2 { left: 70%; }

/* Тёмная штора справа — входная зона салона. */
.barber-curtain {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 44px;
  background: repeating-linear-gradient(90deg, #17131c 0 6px, #241d2b 6px 12px);
  border-left: 2px solid #0b0910;
  opacity: .92;
}
.barber-curtain i {
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 60%);
}
.barber-curtain i:nth-child(1) { left: 5px; }
.barber-curtain i:nth-child(2) { left: 14px; }
.barber-curtain i:nth-child(3) { left: 23px; }
.barber-curtain i:nth-child(4) { left: 32px; }
.barber-curtain i:nth-child(5) { left: 41px; }
.barber-curtain i:nth-child(6) { display: none; }

/* Кресло барбера: спинка, сидушка, хромированная база. */
.barber-chair { position: absolute; left: 24%; bottom: 8px; width: 88px; height: 74px; }
.barber-chair-back {
  position: absolute;
  left: 18px; top: 0;
  width: 52px; height: 40px;
  border-radius: 16px 16px 6px 6px;
  background: linear-gradient(180deg, #4a2f22, #2c1a12);
  box-shadow: inset 0 2px 6px rgba(255, 190, 120, .18);
}
.barber-chair-seat {
  position: absolute;
  left: 6px; top: 38px;
  width: 76px; height: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, #553626, #332015);
}
.barber-chair-base {
  position: absolute;
  left: 38px; top: 52px;
  width: 12px; height: 16px;
  background: linear-gradient(180deg, #9aa0a6, #4b4f54);
}
.barber-chair-base::after {
  content: "";
  position: absolute;
  bottom: -3px; left: -14px;
  width: 40px; height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #3d4146, #8d949b, #3d4146);
}
.barber-guy {
  position: absolute;
  left: 30px; top: 6px;
  font-size: 36.4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .7));
}

/* Доска с волосками (игра 1). */
.barber-board {
  position: relative;
  height: 150px;
  margin-top: 8px;
  border-radius: 12px;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 186, 92, .12), transparent 60%),
    linear-gradient(180deg, #241c16, #14100c);
  border: 1px solid #3a2c20;
}
.barber-spot {
  position: absolute;
  transform: translate(-50%, -50%);
  /* П.6: тап-зона 44×44 (Apple HIG); визуальный кружок 30×30 — на ::before. */
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffd9a0;
  font-size: 21px;
  cursor: pointer;
  touch-action: manipulation;
  display: grid;
  place-items: center;
}
.barber-spot::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 205, 140, .35);
  background: rgba(255, 214, 153, .08);
  pointer-events: none;
}
.barber-spot:active { transform: translate(-50%, -50%) scale(.9); }
.barber-spot.barber-mole {
  color: #ff9d9d;
}
.barber-spot.barber-mole::before {
  border-color: rgba(255, 120, 120, .5);
  background: rgba(140, 30, 30, .25);
}
.barber-spot.barber-clean { opacity: .75; }
.barber-spot.barber-clean::before { border-style: dashed; }
.barber-spot.done::before {
  border-color: rgba(140, 255, 170, .55);
  background: rgba(30, 120, 60, .3);
}
.barber-spot.barber-oops { animation: barber-shake .3s; }
.barber-spot.barber-oops::before { border-color: #ff5a5a; }
@keyframes barber-shake {
  0%, 100% { translate: 0 0; }
  25% { translate: -3px 0; }
  75% { translate: 3px 0; }
}

/* Зоны бороды (игра 2). */
.barber-beard {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.barber-zone {
  flex: 1 1 30%;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid #4a3826;
  background: linear-gradient(180deg, #2a2018, #191108);
  color: #e8cf9f;
  font-size: 19.6px;
  cursor: pointer;
  touch-action: manipulation;
}
.barber-zone.oiled {
  border-color: #d9a441;
  background: linear-gradient(180deg, #5a3f1c, #33230f);
  box-shadow: 0 0 14px rgba(217, 164, 65, .35);
}

/* Тайминг-фен (игра 3). */
.barber-timing { margin-top: 10px; }
.barber-air {
  position: relative;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 24px),
    linear-gradient(90deg, #1a1410, #2a2118, #1a1410);
  border: 1px solid #45331f;
}
.barber-target {
  position: absolute;
  top: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(80, 220, 130, .4), rgba(30, 140, 70, .4));
  border-left: 1px solid #52d97f;
  border-right: 1px solid #52d97f;
}
.barber-wind {
  position: absolute;
  top: 4px; bottom: 4px;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffe9c2, #ffab3d);
  box-shadow: 0 0 10px rgba(255, 171, 61, .8);
}
.barber-tick-row {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: #9c8a6b;
  font-size: 15.4px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
