/*
Theme Name: Пока сайт в разработке — игра
Theme URI: https://example.com/
Author: ChatGPT
Author URI: https://openai.com/
Description: Универсальная заглушка для WordPress: вечная загрузка, мини-игра и аккуратная страница «сайт в разработке» без упоминания конкретного проекта.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: under-construction-game
*/

:root {
  --bg: #070714;
  --panel: rgba(255, 255, 255, .09);
  --panel-strong: rgba(255, 255, 255, .14);
  --text: #f7f4ff;
  --muted: rgba(247, 244, 255, .68);
  --line: rgba(255, 255, 255, .16);
  --accent: #9b7cff;
  --accent-2: #45f0d2;
  --danger: #ff6b9a;
  --shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
}

body.ucg-page {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(155, 124, 255, .45), transparent 32%),
    radial-gradient(circle at 83% 25%, rgba(69, 240, 210, .33), transparent 29%),
    radial-gradient(circle at 50% 90%, rgba(255, 107, 154, .25), transparent 38%),
    linear-gradient(135deg, #070714 0%, #121129 48%, #070714 100%);
  overflow-x: hidden;
}

a { color: inherit; }

.ucg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .17;
  mix-blend-mode: overlay;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.ucg-wrap {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  align-items: center;
}

.ucg-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 28px;
  align-items: stretch;
}

.ucg-hero,
.ucg-game-panel {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.055));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.ucg-hero {
  padding: clamp(28px, 5vw, 58px);
  position: relative;
}

.ucg-hero::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -62px;
  top: -72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69,240,210,.45), transparent 68%);
  filter: blur(4px);
}

.ucg-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1;
  margin-bottom: 26px;
}

.ucg-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 20px var(--accent-2);
  animation: ucgPulse 1.4s ease-in-out infinite;
}

.ucg-title {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .92;
  letter-spacing: -.075em;
}

.ucg-title span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #fff, #b9a7ff 46%, #45f0d2);
  -webkit-background-clip: text;
  background-clip: text;
}

.ucg-subtitle {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.ucg-loader-box {
  margin-top: 36px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(0,0,0,.18);
}

.ucg-loader-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  margin-bottom: 12px;
}

.ucg-progress {
  height: 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  overflow: hidden;
  position: relative;
}

.ucg-progress span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--danger));
  box-shadow: 0 0 28px rgba(69,240,210,.32);
  animation: ucgLoad 5.2s cubic-bezier(.65,0,.35,1) infinite;
}

.ucg-loader-note {
  min-height: 22px;
  margin: 14px 0 0;
  color: rgba(255,255,255,.55);
  font-size: 14px;
}

.ucg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ucg-button {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  color: #090916;
  background: linear-gradient(135deg, #fff, #aefced);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(69,240,210,.18);
  transition: transform .18s ease, box-shadow .18s ease;
}

.ucg-button:hover,
.ucg-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 54px rgba(69,240,210,.26);
}

.ucg-mini {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.56);
  font-size: 14px;
}

.ucg-game-panel {
  padding: 22px;
}

.ucg-game-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.ucg-game-title {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.03em;
}

.ucg-game-desc {
  margin: 6px 0 0;
  color: rgba(255,255,255,.58);
  font-size: 14px;
  line-height: 1.45;
}

.ucg-score {
  min-width: 94px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  padding: 10px 12px;
  background: rgba(0,0,0,.18);
  text-align: center;
}

.ucg-score strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.ucg-score span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.5);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ucg-canvas-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: #080813;
}

#ucg-game {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.25 / 1;
  touch-action: none;
}

.ucg-game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(0,0,0,.18), rgba(0,0,0,.58));
  transition: opacity .2s ease, visibility .2s ease;
}

.ucg-game-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ucg-start {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: rgba(255,255,255,.12);
  padding: 22px;
  max-width: 310px;
}

.ucg-start p {
  margin: 0 0 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.45;
}

.ucg-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  color: rgba(255,255,255,.5);
  font-size: 13px;
}

.ucg-kbd {
  display: inline-flex;
  min-width: 28px;
  height: 26px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.74);
  font-weight: 700;
}

.ucg-footer {
  position: fixed;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  color: rgba(255,255,255,.34);
  font-size: 12px;
}

@keyframes ucgPulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.45); opacity: 1; }
}

@keyframes ucgLoad {
  0% { width: 3%; transform: translateX(0); }
  45% { width: 92%; transform: translateX(0); }
  63% { width: 18%; transform: translateX(455%); }
  100% { width: 3%; transform: translateX(0); }
}

@media (max-width: 920px) {
  .ucg-card { grid-template-columns: 1fr; }
  .ucg-game-panel { max-width: 620px; width: 100%; margin: 0 auto; }
}

@media (max-width: 560px) {
  .ucg-wrap { width: min(100% - 22px, 1180px); padding: 18px 0 54px; }
  .ucg-hero, .ucg-game-panel { border-radius: 25px; }
  .ucg-hero { padding: 24px; }
  .ucg-title { letter-spacing: -.055em; }
  .ucg-actions { margin-top: 20px; }
  .ucg-button { width: 100%; }
  .ucg-mini { width: 100%; justify-content: center; }
  .ucg-game-head { align-items: center; }
  .ucg-game-title { font-size: 21px; }
  .ucg-controls { display: none; }
  .ucg-footer { display: none; }
}
