/* Landing page — sinuca */
.lp {
  margin: 0;
  min-height: 100vh;
  font-family: 'Nunito', system-ui, sans-serif;
  color: #f6efe4;
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(255, 214, 140, 0.18), transparent 70%),
    linear-gradient(180deg, #2a1b12 0%, #1b120c 60%, #120c08 100%);
  -webkit-font-smoothing: antialiased;
}

.lp-wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* --- header --- */
.lp-head { text-align: center; }
.lp-kicker {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #e9b44c;
}
.lp-title {
  margin: 0.25rem 0 0;
  font-size: clamp(2.5rem, 12vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff8ec;
  text-shadow: 0 3px 0 #0b2e1a, 0 8px 24px rgba(0, 0, 0, 0.5);
}
.lp-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  background: rgba(255, 75, 75, 0.15);
  border: 1px solid rgba(255, 75, 75, 0.5);
  color: #ffd2d2;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}
.lp-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #ff4b4b;
  box-shadow: 0 0 0 0 rgba(255, 75, 75, 0.7);
  animation: lp-pulse 1.6s infinite;
}
@keyframes lp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 75, 75, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 75, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 75, 75, 0); }
}

/* --- mesa --- */
.table { --ball: clamp(14px, 4.6vw, 22px); }
.rail {
  position: relative;
  padding: clamp(14px, 4vw, 22px);
  border-radius: 22px;
  background:
    repeating-linear-gradient(95deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #7a4a26, #5a3418 55%, #4a2a12);
  box-shadow:
    inset 0 2px 0 rgba(255, 220, 170, 0.25),
    inset 0 -3px 0 rgba(0, 0, 0, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.55);
}
.felt {
  position: relative;
  aspect-ratio: 2 / 1;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 50% 45%, #1f9a55 0%, #137a40 55%, #0c5a2f 100%);
  box-shadow: inset 0 0 0 3px #0b4d27, inset 0 0 30px rgba(0, 0, 0, 0.45);
}
.headstring {
  position: absolute; top: 8%; bottom: 8%; left: 25%;
  border-left: 1px dashed rgba(255, 255, 255, 0.12);
}

.pocket {
  position: absolute;
  width: clamp(16px, 5vw, 24px); height: clamp(16px, 5vw, 24px);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #000 55%, #1a1a1a);
  box-shadow: 0 0 0 3px #2e1a0c;
  z-index: 2;
  transform: translate(-50%, -50%);
}
.p-tl { top: clamp(14px, 4vw, 22px); left: clamp(14px, 4vw, 22px); }
.p-tm { top: clamp(12px, 3.4vw, 19px); left: 50%; }
.p-tr { top: clamp(14px, 4vw, 22px); left: calc(100% - clamp(14px, 4vw, 22px)); }
.p-bl { top: calc(100% - clamp(14px, 4vw, 22px)); left: clamp(14px, 4vw, 22px); }
.p-bm { top: calc(100% - clamp(12px, 3.4vw, 19px)); left: 50%; }
.p-br { top: calc(100% - clamp(14px, 4vw, 22px)); left: calc(100% - clamp(14px, 4vw, 22px)); }

.diamond {
  position: absolute;
  width: 5px; height: 5px;
  background: #f3e3c3;
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0.8;
}
.d-top { top: calc(clamp(14px, 4vw, 22px) / 2); }
.d-bot { top: calc(100% - clamp(14px, 4vw, 22px) / 2); }

/* --- bolas --- */
.ball {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ball); height: var(--ball);
  border-radius: 50%;
  background: var(--c, #fff);
  box-shadow:
    inset -2px -3px 4px rgba(0, 0, 0, 0.35),
    inset 2px 2px 3px rgba(255, 255, 255, 0.35),
    0 2px 3px rgba(0, 0, 0, 0.35);
}
.ball i {
  font-style: normal;
  font-size: calc(var(--ball) * 0.38);
  font-weight: 900;
  line-height: 1;
  color: #111;
  background: #fff;
  border-radius: 50%;
  width: 56%; height: 56%;
  display: inline-flex; align-items: center; justify-content: center;
}
.ball.stripe {
  background:
    linear-gradient(180deg, #fff 0 24%, var(--c) 24% 76%, #fff 76% 100%);
}
.b1, .b9  { --c: #f5c400; }
.b2, .b10 { --c: #1e50c8; }
.b3, .b11 { --c: #d7261e; }
.b4, .b12 { --c: #5b2a86; }
.b5, .b13 { --c: #f07b12; }
.b6, .b14 { --c: #11804a; }
.b7, .b15 { --c: #7a1d1d; }
.b8       { --c: #111; }
.b8 i     { color: #111; }

.rack {
  position: absolute;
  top: 50%; left: 66%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0;
}
.rack-col {
  display: flex;
  flex-direction: column;
  margin-left: calc(var(--ball) * -0.13);
}

.cue-wrap {
  position: absolute;
  top: 50%; left: 25%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
}
.cueball { --c: #fbf7ee; }
.cue {
  position: absolute;
  right: calc(var(--ball) + 4px);
  top: 50%;
  width: clamp(90px, 30vw, 170px);
  height: 5px;
  border-radius: 3px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, #2b1608 0 35%, #c89a5b 35% 92%, #f2ead8 92% 97%, #3a8fd1 97%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  animation: lp-aim 2.6s ease-in-out infinite;
}
@keyframes lp-aim {
  0%, 100% { transform: translate(-14px, -50%); }
  50%      { transform: translate(-2px, -50%); }
}
@media (prefers-reduced-motion: reduce) {
  .cue, .lp-dot { animation: none; }
}

/* --- ações --- */
.lp-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.lp-actions .btn { width: 100%; box-sizing: border-box; }
.lp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.lp-btn-main { font-size: 1.15rem; }
.lp .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #f6efe4;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-bottom: 4px solid rgba(0, 0, 0, 0.45);
}

/* --- campeão --- */
.lp-champ {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(233, 180, 76, 0.18), rgba(233, 180, 76, 0.05));
  border: 1px solid rgba(233, 180, 76, 0.4);
}
.lp-trophy { font-size: 2rem; }
.lp-champ-label {
  font-size: 0.7rem; font-weight: 900; letter-spacing: 0.2em;
  text-transform: uppercase; color: #e9b44c;
}
.lp-champ-name { font-size: 1.35rem; font-weight: 900; color: #fff8ec; }

.lp-foot {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(246, 239, 228, 0.45);
  font-weight: 700;
}
