* {
  box-sizing: border-box;
  margin: 0; padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

html, body {
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 20%, #0d1a35 0%, #04070f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Press Start 2P', 'Courier New', monospace;
  color: #fff;
}

#game-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 960px;
  padding: 12px;
  gap: 10px;
}

#game-canvas {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #060c1f;
  border-radius: 14px;
  box-shadow:
    0 0 0 2px rgba(230, 57, 70, 0.7),
    0 0 0 5px rgba(255, 255, 255, 0.07),
    0 0 32px rgba(230, 57, 70, 0.4),
    0 0 70px rgba(42, 157, 143, 0.18),
    0 24px 60px rgba(0, 0, 0, 0.85);
  image-rendering: auto;
  cursor: pointer;
  touch-action: manipulation;
}

#controls-hint {
  font-size: 9px;
  color: #6fa3b8;
  text-align: center;
  letter-spacing: 0.5px;
  opacity: 0.8;
  line-height: 1.6;
}

@media (max-width: 600px) {
  #game-wrapper { padding: 6px; }
  #game-canvas { border-radius: 9px; }
  #controls-hint { font-size: 7px; }
}

/* ── FlockDrop brand bar ──────────────────────────────────────────────── */
#brand-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(232, 199, 127, 0.22);
  background: linear-gradient(180deg, rgba(16, 39, 31, 0) 0%, rgba(16, 39, 31, 0.55) 100%);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 243, 215, 0.55);
}

#brand-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e8c77f;
  text-decoration: none;
  transition: color 0.2s ease;
}

#brand-bar a:hover { color: #fff3d7; }

#brand-bar .brand-word { font-weight: 700; }

#brand-bar .brand-red { color: #B85E36; }

#brand-bar .brand-sep { color: rgba(232, 199, 127, 0.35); }

#brand-bar .brand-tag { color: rgba(255, 243, 215, 0.45); }

/* tiny gold bulb mark, matching the site's lights */
#brand-bar .brand-mark {
  width: 7px;
  height: 11px;
  border-radius: 46% 46% 52% 52%;
  background: #ffdf72;
  box-shadow: 0 0 6px 2px rgba(255, 211, 92, 0.55), 0 0 14px 5px rgba(255, 211, 92, 0.25);
  animation: brand-bulb 2.8s ease-in-out infinite;
}

@keyframes brand-bulb {
  0%, 100% { opacity: 0.6; filter: brightness(0.85); }
  35%      { opacity: 1;   filter: brightness(1.35); }
  60%      { opacity: 0.75; filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  #brand-bar .brand-mark { animation: none; }
}


/* Embedded in the FlockDrop game page: wrapper supplies chrome. */
html.is-embedded body{ background:#000; }
html.is-embedded #game-wrapper{ width:100%; max-width:none; padding:0; gap:0; }
html.is-embedded #game-canvas{
  width: min(100%, calc(100dvh * 16 / 9));
  height: auto; max-width: 100%; max-height: 100dvh;
  border-radius:0; box-shadow:none;
}
html.is-embedded #controls-hint,
html.is-embedded #brand-bar{ display:none; }
