

/* Start:/local/templates/game_catch/styles/css/index.css?177573095514664*/
/* ══════════════════════════════════════
   Ловец заявок — Pixel / SEGA стиль
   ══════════════════════════════════════ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Press Start 2P', cursive;
  overflow: hidden;
  background-color: #0f0f2d;
  image-rendering: pixelated;
}

/* ── Контейнер игры ── */

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #1a1a3e;
}

/* ── Пиксельные рамки (общий класс) ── */

.pixel-box {
  background: #111133;
  border: 4px solid #003662;
  box-shadow:
    inset 0 0 0 2px #0a0a22,
    0 0 0 2px #0a0a22,
    6px 6px 0 rgba(0, 0, 0, 0.5);
  padding: 28px 32px;
  color: #e0e0ff;
}

/* ── Пиксельные кнопки ── */

.pixel-btn {
  display: inline-block;
  font-family: 'Press Start 2P', cursive;
  font-size: 11px;
  color: #fff;
  padding: 14px 24px;
  border: 3px solid #fff;
  background: #2255cc;
  /* box-shadow:
    4px 4px 0 #111,
    inset -2px -2px 0 rgba(0,0,0,0.3),
    inset 2px 2px 0 rgba(255,255,255,0.15); */
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  letter-spacing: 1px;
  transition: none;
  line-height: 1.4;
}

.pixel-btn:hover {
  background: #3366ee;
  color: #fff;
  box-shadow:
    2px 2px 0 #111,
    inset -2px -2px 0 rgba(0,0,0,0.3),
    inset 2px 2px 0 rgba(255,255,255,0.15);
  transform: translate(2px, 2px);
}

.pixel-btn:active {
  transform: translate(4px, 4px);
  box-shadow:
    0 0 0 #111,
    inset -2px -2px 0 rgba(0,0,0,0.3);
}

.pixel-btn:disabled {
  background: #333355;
  border-color: #555;
  color: #666;
  cursor: default;
  box-shadow: 4px 4px 0 #111;
  transform: none;
}

.pixel-btn.primary { background: #111133; border-color: #44aaff; }
.pixel-btn.primary:hover { background: #3366ee; color: #fff; }

.pixel-btn.green { background: #22aa44; border-color: #66ff88; }
.pixel-btn.green:hover { background: #33cc55; }

.pixel-btn.orange { background: #cc7700; border-color: #ffaa33; }
.pixel-btn.orange:hover { background: #ee8811; }

.pixel-btn.purple { background: #7733aa; border-color: #bb77ff; }
.pixel-btn.purple:hover { background: #8844cc; }

.pixel-btn.secondary {
  background: transparent;
  border-color: #44aaff;
  color: #44aaff;
  box-shadow: 3px 3px 0 #111;
  font-size: 12px;
  padding: 10px 16px;
  margin-top: 16px;
}

.pixel-btn.secondary:hover {
  background: rgba(68, 170, 255, 0.15);
  box-shadow: 1px 1px 0 #111;
  transform: translate(2px, 2px);
}

/* ── Пиксельный инпут ── */

.pixel-input {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  width: 100%;
  padding: 12px 16px;
  background: #0a0a22;
  color: #e0e0ff;
  border: 3px solid #003662;
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.4);
  margin-bottom: 12px;
}

.pixel-input:focus {
  outline: none;
  border-color: #66ff88;
}

.pixel-input::placeholder {
  color: #999;
}

/* ══════════════════════════════════════
   Экраны (overlay)
   ══════════════════════════════════════ */

.screen {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: rgba(10, 10, 30, 0.92);
  z-index: 100;
  overflow-y: auto;
  padding: 20px;
}

.screen.hidden {
  display: none;
  opacity: 0;
}

/* ── Стартовый экран ── */

#start-screen {
  background-image: url('/local/templates/game_catch/styles/css/../../images/bg-start.jpg');
  background-size: cover;
  background-position: center;
  justify-content: center;
}

.start-logo {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.start-logo img {
  height: 35px;
  display: block;
}

.start-columns {
  display: flex;
  gap: 50px;
  max-width: 1200px;
  width: 100%;
  align-items: stretch;
}

.start-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.start-rating {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.start-info h1 {
  font-size: 22px;
  color: #44aaff;
  margin-bottom: 16px;
  line-height: 1.5;
  text-shadow: 2px 2px 0 #000;
}

.start-desc {
  font-size: 14px;
  line-height: 2;
  color: #fbfbfb;
  margin-bottom: 20px;
}

.rules {
  flex: 1;
}

.rules h2 {
  font-size: 12px;
  color: #ffcc00;
  margin-bottom: 14px;
  text-shadow: 2px 2px 0 #000;
}

.rules ul {
  list-style: none;
  margin-bottom: 24px;
}

.rules li {
  font-size: 12px;
  line-height: 2.2;
  color: #ccd;
  padding-left: 18px;
  position: relative;
}

.rules li::before {
  font-family: 'IBM Plex Sans', sans-serif;
  content: '►';
  position: absolute;
  left: 0;
  color: #44aaff;
}

.rules .key {
  color: #ffcc00;
  background: rgba(255, 204, 0, 0.1);
  padding: 2px 6px;
  border: 1px solid rgba(255, 204, 0, 0.3);
}

.rules .green { color: #66ff88; }
.rules .red { color: #ff4444; }

.start-info .pixel-btn {
  align-self: center;
  font-size: 14px;
  padding: 18px 40px;
}

.start-rating h2 {
  font-size: 14px;
  color: #ffcc00;
  margin-bottom: 14px;
  text-shadow: 2px 2px 0 #000;
}

.start-rating .leaderboard-list {
  flex: 1;
  min-height: 360px;
  max-height: none;
  overflow-y: auto;
}

.start-rating .pixel-btn {
  align-self: center;
}

/* ── Рейтинг (таблица) ── */

.leaderboard-list {
  max-height: 340px;
  overflow-y: auto;
  margin-top: 10px;
}

.leaderboard-entry {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  margin: 3px 0;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid transparent;
  font-size: 12px;
}

.leaderboard-entry:nth-child(1) { border-left-color: #ffcc00; }
.leaderboard-entry:nth-child(2) { border-left-color: #aaa; }
.leaderboard-entry:nth-child(3) { border-left-color: #cc7733; }

.leaderboard-entry:hover {
  background: rgba(255, 255, 255, 0.08);
}

.leaderboard-entry .rank {
  font-weight: bold;
  color: #f39c12;
  min-width: 32px;
}

.leaderboard-entry .player-id {
  font-size: 7px;
  color: #556;
  min-width: 50px;
  text-align: center;
}

.leaderboard-entry .name {
  flex: 1;
  text-align: left;
  margin: 0 8px;
  color: #dde;
}

.leaderboard-entry .score {
  font-weight: bold;
  color: #66ff88;
  min-width: 50px;
  text-align: right;
}

.leaderboard-loading {
  color: #556;
  font-size: 9px;
  padding: 20px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
}

.rating-link {
  display: inline-block;
  margin-top: 25px;
  color: #44aaff;
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid #44aaff;
  padding-bottom: 2px;
}

.rating-link:hover {
  border-bottom-color: transparent;
}

/* ── Экран окончания ── */

#end-screen {
  justify-content: center;
}

.end-columns {
  display: flex;
  gap: 50px;
  max-width: 1200px;
  width: 100%;
  align-items: stretch;
}

.end-content {
  flex: 1 1 0;
  max-width: calc(50% - 25px);
  overflow-y: auto;
  text-align: center;
}

.end-promo {
  flex: 1 1 0;
  max-width: calc(50% - 25px);
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #000;
  border-color: #66ff88;
  font-family: 'IBM Plex Sans', sans-serif;
}

.end-content h1 {
  font-size: 20px;
  color: #fbfbfb;
  margin-bottom: 20px;
  text-shadow: 2px 2px 0 #000;
}

.end-content h2 {
  font-size: 12px;
  color: #ffcc00;
  margin: 16px 0 10px;
  text-shadow: 2px 2px 0 #000;
}

.final-score {
  font-size: 16px;
  color: #fbfbfb;
  margin-bottom: 30px;
  text-shadow: 2px 2px 0 #000;
}

.position-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.position-row .player-position {
  margin: 0;
  flex: 1;
}

.position-row .player-position:empty {
  display: none;
}

.position-row .player-position:empty + .share-inline {
  display: none;
}

.share-inline {
  font-size: 9px;
  padding: 12px 16px;
  flex-shrink: 0;
}

.share-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #111133;
  color: #66ff88;
  font-size: 12px;
  padding: 10px 14px;
  border: 2px solid #66ff88;
  white-space: nowrap;
  z-index: 50;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}

.share-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.leaderboard-section {
  margin: 0 0 20px;
  padding: 16px;
  background: rgba(68, 170, 255, 0.06);
  border: 2px solid rgba(68, 170, 255, 0.15);
}

.player-position {
  padding: 12px 16px;
  font-size: 12px;
  text-align: center;
  line-height: 1.8;
}

.player-position:empty {
  display: none;
}

.player-position .highlight {
  color: #ffcc00;
  font-size: 14px;
}

/* ── Промо-блок ── */

.end-promo h2 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #ffcc00;
  line-height: 1.3;
  margin-bottom: 16px;
  text-shadow: none;
}

.promo-text {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: #efefef;
  margin-bottom: 20px;
}

.promo-image {
  margin-bottom: 20px;
  text-align: center;
}

.promo-image img {
  max-width: 100%;
  height: auto;
  border: 2px solid rgba(68, 170, 255, 0.2);
}

.promo-list {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: #efefef;
  margin: 0 0 20px 0;
  padding-left: 20px;
  list-style: none;
}

.promo-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.promo-list li::before {
  content: '→';
  position: absolute;
  left: -16px;
  color: #44aaff;
}

/* ── Форма подписки ── */

.subscribe-form {
  margin-top: auto;
  text-align: left;
}

.subscribe-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.subscribe-row .pixel-input {
  flex: 1;
  min-width: 0;
  width: auto;
  margin-bottom: 0;
  border-color: #66ff88;
}

.subscribe-row .pixel-input:focus {
  border-color: #88ffaa;
}

.subscribe-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.subscribe-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  color: #889;
  line-height: 1.6;
}

.subscribe-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: #0a0a22;
  border: 2px solid #888;
  cursor: pointer;
  margin-top: 1px;
  position: relative;
}

.subscribe-consent input[type="checkbox"]:checked {
  background: #22aa44;
  border-color: #66ff88;
}

.subscribe-consent input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: -1px;
  left: 2px;
  font-size: 13px;
  color: #fff;
  font-weight: bold;
}

.subscribe-consent span {
  flex: 1;
}

.subscribe-message {
  margin-top: 20px;
  font-size: 14px;
  min-height: 16px;
  line-height: 1.6;
}

.subscribe-message.success {
  color: #66ff88;
}

.subscribe-message.error {
  color: #ff4444;
}

/* ── Форма имени ── */

.name-form {
  margin: 0 0 24px;
  text-align: left;
}

.name-form label {
  display: block;
  color: rgb(205, 205, 205);
  font-size: 12px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.name-form-row {
  display: flex;
  gap: 15px;
  align-items: stretch;
}

.name-form-row .pixel-input {
  flex: 1;
  min-width: 0;
  width: auto;
  margin-bottom: 0;
}

.name-form-row .pixel-btn {
  white-space: nowrap;
  flex-shrink: 0;
  background: hsl(223.64deg 84.62% 56.67% / 63%);
  border-color: #003662;
  color: #fff;
  box-shadow: 3px 3px 0 #111;
}

.name-form-row .pixel-btn:hover:not(:disabled) {
  background: #444466;
}

.error-message {
  color: #ff4444;
  font-size: 12px;
  line-height: 1.5;
  min-height: 16px;
  margin-top: 15px;
}

/* ── Кнопка «Играть снова» на всю ширину ── */

.restart-full {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  font-size: 13px;
  padding: 16px;
  background: transparent;
  border-color: #003662;
  color: #66aaff;
}

.restart-full:hover {
  background: rgba(68, 170, 255, 0.12);
}

/* ── Группа кнопок ── */

.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

/* ── Индикатор загрузки ── */

.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
}

.loading.hidden { display: none; }

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: #44aaff;
  border-radius: 0;
  animation: pixel-spin 0.8s steps(8) infinite;
}

@keyframes pixel-spin {
  to { transform: rotate(360deg); }
}

/* ── Скроллбар (пиксельный) ── */

.leaderboard-list::-webkit-scrollbar { width: 8px; }

.leaderboard-list::-webkit-scrollbar-track {
  background: #0a0a22;
}

.leaderboard-list::-webkit-scrollbar-thumb {
  background: #44aaff;
  border: 1px solid #0a0a22;
}

.leaderboard-list::-webkit-scrollbar-thumb:hover {
  background: #66ccff;
}

/* ══════════════════════════════════════
   Адаптивность
   ══════════════════════════════════════ */

@media (max-width: 1024px) {
  .start-columns,
  .end-columns {
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
  }

  .end-content,
  .end-promo {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .pixel-box { padding: 20px 16px; }
  
  .start-info h1 { font-size: 14px; }
  .start-desc { font-size: 9px; }
  .rules li { font-size: 8px; }
  
  .start-info .pixel-btn { font-size: 11px; padding: 14px 28px; }
  
  .end-content { padding: 20px 16px; }
  .end-content h1 { font-size: 16px; }
  .final-score { font-size: 13px; }
  
  .pixel-btn { font-size: 9px; padding: 10px 16px; }
  
  .leaderboard-entry .player-id { display: none; }
}

/* End */
/* /local/templates/game_catch/styles/css/index.css?177573095514664 */
