.puhosos-online {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.puhosos-online__best-score {
  text-align: center;
  font-size: 0.95rem;
  color: #5d6d7e;
  margin: 0 0 16px;
}

.puhosos-online__canvas-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  background: #b8c9b0;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 500px;
  touch-action: none;
}

.puhosos-online__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 50, 40, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.puhosos-online__overlay.hidden {
  display: none;
}

.puhosos-online__overlay-content {
  text-align: center;
  padding: 24px 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  animation: puhosos-pop-in 0.35s ease-out;
}

@keyframes puhosos-pop-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.puhosos-online__overlay-content h2 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: #1a5276;
  margin-bottom: 12px;
}

.puhosos-online__overlay-content p {
  margin-bottom: 10px;
  line-height: 1.5;
  color: #444;
}

.puhosos-online__hint {
  font-size: 0.85rem;
  color: #777;
  margin-top: 16px;
  margin-bottom: 0;
}

.puhosos-online__btn-primary {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #27ae60, #1e8449);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(39, 174, 96, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.puhosos-online__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

.puhosos-online__btn-primary:active {
  transform: translateY(0);
}

.puhosos-online__hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  z-index: 5;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.puhosos-online__hud.hidden {
  display: none;
}

.puhosos-online__hud-row {
  display: flex;
  justify-content: space-between;
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  margin-bottom: 6px;
}

.puhosos-online__hud-row strong {
  color: #1a5276;
}

.puhosos-online__pollution-bar {
  margin-top: 4px;
}

.puhosos-online__pollution-label {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.puhosos-online__pollution-track {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2px;
}

.puhosos-online__pollution-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f9e79f, #e74c3c);
  border-radius: 4px;
  transition: width 0.3s ease;
}

@media (max-width: 480px) {
  .puhosos-online__canvas-container {
    min-height: 500px;
    border-radius: 12px;
  }

  #gameCanvas {
    min-height: 500px;
  }

  .puhosos-online__overlay-content {
    padding: 20px 18px;
  }
}

.puhosos-info,
.puhosos-faq {
  max-width: 1200px;
  margin: 0 auto 35px;
}

.puhosos-info a,
.puhosos-faq a {
  color: #0f0fff;
  border-bottom: 1px solid rgba(15, 15, 255, 0.25);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.puhosos-info a:hover,
.puhosos-info a:focus,
.puhosos-faq a:hover,
.puhosos-faq a:focus {
  color: #050a99;
  border-color: #050a99;
}

.puhosos-info__hero,
.puhosos-faq__head {
  border-radius: 12px;
  background: linear-gradient(132.60036294847635deg, rgba(15, 15, 255, 1) 34.0895190834999%, rgba(22, 28, 186, 1) 74.23275063435236%);
  color: #fff;
  box-shadow: 0 11px 34px -26px rgba(0, 0, 0, 0.75);
}

.puhosos-info__hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 25px;
  margin-bottom: 25px;
  padding: 30px;
}

.puhosos-info__hero-content {
  max-width: 760px;
}

.puhosos-info__label,
.puhosos-faq__label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.2;
}

.puhosos-info__title,
.puhosos-faq__title {
  margin-top: 0;
  margin-bottom: 15px;
  color: #fff;
}

.puhosos-info__lead,
.puhosos-faq__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  line-height: 1.45;
}

.puhosos-info__game-card {
  width: 290px;
  min-width: 260px;
  padding: 20px;
  border-radius: 12px;
  background-color: #fff;
  color: #000;
  box-shadow: 0 11px 34px -26px rgba(0, 0, 0, 0.75);
}

.puhosos-info__screen {
  position: relative;
  height: 170px;
  margin-bottom: 16px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.95) 0 5px, transparent 6px),
    radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.9) 0 4px, transparent 5px),
    linear-gradient(180deg, #eaf7ff 0%, #f8fbff 100%);
  overflow: hidden;
}

.puhosos-info__puff {
  position: absolute;
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff 0 4px, transparent 5px),
    radial-gradient(circle at 65% 35%, #fff 0 5px, transparent 6px),
    radial-gradient(circle at 45% 70%, #fff 0 6px, transparent 7px);
  filter: drop-shadow(0 4px 8px rgba(100, 116, 139, 0.18));
}

.puhosos-info__puff--one {
  top: 24px;
  left: 30px;
}

.puhosos-info__puff--two {
  top: 74px;
  right: 34px;
  transform: scale(0.85);
}

.puhosos-info__puff--three {
  right: 92px;
  bottom: 26px;
  transform: scale(0.7);
}

.puhosos-info__robot {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 112px;
  height: 70px;
  border-radius: 22px 22px 16px 16px;
  background: linear-gradient(135deg, #ffd84d 0%, #ffb800 100%);
  transform: translateX(-50%);
  box-shadow: 0 12px 22px -14px rgba(0, 0, 0, 0.7);
}

.puhosos-info__robot::before,
.puhosos-info__robot::after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 28px;
  height: 14px;
  border-radius: 999px;
  background-color: #222;
}

.puhosos-info__robot::before {
  left: 16px;
}

.puhosos-info__robot::after {
  right: 16px;
}

.puhosos-info__robot-eye {
  position: absolute;
  top: 16px;
  left: 18px;
  width: 20px;
  height: 12px;
  border-radius: 999px;
  background-color: #222;
}

.puhosos-info__robot-title {
  position: absolute;
  right: 14px;
  bottom: 17px;
  color: #222;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.puhosos-info__score-result {
  padding: 18px 12px;
  border-radius: 10px;
  text-align: center;
  background-color: #eaf7ff;
}

.puhosos-info__score-small {
  display: block;
  margin-bottom: 5px;
  color: #8093a7;
  font-size: 15px;
}

.puhosos-info__score-result strong {
  display: block;
  color: #0f0fff;
  font-size: 42px;
  line-height: 1;
}

.puhosos-info__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}

.puhosos-info__card {
  padding: 24px;
  border: 1px solid #eee;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 11px 34px -30px rgba(0, 0, 0, 0.75);
}

.puhosos-info__card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.puhosos-info__card p {
  margin: 0;
  color: #555;
  font-size: 18px;
  line-height: 1.45;
}

.puhosos-info__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background-image: linear-gradient(315deg, #06bcfb 0%, #4884ee 74%);
  color: #fff;
  font-weight: 700;
}

.puhosos-info__story {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  margin-bottom: 25px;
}

.puhosos-info__story-main,
.puhosos-info__note,
.puhosos-info__links,
.puhosos-info__features {
  padding: 26px;
  border: 1px solid #eee;
  border-radius: 10px;
  background-color: #fff;
}

.puhosos-info__story-main {
  background-color: #f8fbff;
}

.puhosos-info__story-main h3,
.puhosos-info__note h3,
.puhosos-info__links h3,
.puhosos-info__features h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.puhosos-info__story-main p,
.puhosos-info__note p,
.puhosos-info__links p,
.puhosos-info__feature p {
  margin-top: 0;
  color: #444;
  font-size: 18px;
  line-height: 1.5;
}

.puhosos-info__story-main p:last-child,
.puhosos-info__note p:last-child,
.puhosos-info__links p:last-child,
.puhosos-info__feature p:last-child {
  margin-bottom: 0;
}

.puhosos-info__quote-box {
  margin: 18px 0;
  padding: 18px;
  border-left: 5px solid #0f0fff;
  border-radius: 8px;
  background-color: #fff;
  color: #0f0fff;
  font-size: 24px;
  font-weight: 700;
}

.puhosos-info__note {
  border-color: #d9edff;
  background-color: #eaf7ff;
}

.puhosos-info__note-link {
  display: inline-block;
  margin-top: 5px;
  font-size: 17px;
  font-weight: 700;
}

.puhosos-info__features {
  margin-bottom: 25px;
}

.puhosos-info__features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.puhosos-info__feature {
  padding: 20px;
  border-radius: 10px;
  background-color: #f3f5fa;
}

.puhosos-info__feature strong {
  display: block;
  margin-bottom: 8px;
  color: #0f0fff;
  font-size: 21px;
}

.puhosos-faq__head {
  margin-bottom: 22px;
  padding: 28px 30px;
}

.puhosos-faq__lead {
  max-width: 850px;
  font-size: 21px;
}

.puhosos-faq__list {
  display: grid;
  gap: 14px;
}

.puhosos-faq__item {
  border: 1px solid #eee;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 11px 34px -30px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.puhosos-faq__item[open] {
  border-color: #d9edff;
  background-color: #f8fbff;
}

.puhosos-faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  color: #222;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
}

.puhosos-faq__question::-webkit-details-marker {
  display: none;
}

.puhosos-faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-image: linear-gradient(315deg, #06bcfb 0%, #4884ee 74%);
}

.puhosos-faq__icon::before,
.puhosos-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background-color: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.puhosos-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.puhosos-faq__item[open] .puhosos-faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.puhosos-faq__answer {
  padding: 0 24px 22px;
}

.puhosos-faq__answer p {
  margin: 0;
  color: #444;
  font-size: 18px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .puhosos-info__hero,
  .puhosos-info__story {
    display: block;
  }

  .puhosos-info__game-card {
    width: 100%;
    margin-top: 20px;
  }

  .puhosos-info__grid,
  .puhosos-info__features-grid {
    grid-template-columns: 1fr;
  }

  .puhosos-info__note {
    margin-top: 18px;
  }
}

@media (max-width: 540px) {
  .puhosos-info__hero,
  .puhosos-info__card,
  .puhosos-info__story-main,
  .puhosos-info__note,
  .puhosos-info__links,
  .puhosos-info__features,
  .puhosos-faq__head {
    padding: 20px 16px;
  }

  .puhosos-info__lead,
  .puhosos-faq__lead {
    font-size: 18px;
  }

  .puhosos-info__quote-box {
    font-size: 20px;
  }

  .puhosos-faq__question {
    padding: 18px 16px;
    font-size: 18px;
  }

  .puhosos-faq__answer {
    padding: 0 16px 20px;
  }

  .puhosos-faq__answer p {
    font-size: 16px;
  }

  .puhosos-faq__icon {
    width: 30px;
    height: 30px;
  }
}
