/*
 * SHARKS VS ORCAS LAUNCH PRESENTATION (scripts/sharks-launch.js): Home's launch HERO (.sol, inside the cc-launch
 * section), its SHARKS ALERTS control (.sol-alerts) and the Games tab's portal (.so-portal).
 * The art is the approved banner (WebP derivatives), always shown WHOLE on Home -- the shark's and the orca's faces sit
 * at the edges and the title in the middle, so no side crop is safe at phone widths. The Games portal shows it whole
 * during the launch and, after it, trims only the baked-in "48-hour launch" ribbon at the bottom.
 * Nothing animates except the LIVE dot, and not under reduced motion. Linked before phase8k.css (LAST).
 */

.sol,
.so-portal {
  position: relative;
  overflow: hidden;
  display: grid;
  border: 2px solid rgb(255 196 0 / 0.9);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 120% at 0% 100%, rgb(18 92 170 / 0.55), transparent 60%),
    radial-gradient(90% 120% at 100% 100%, rgb(112 42 180 / 0.55), transparent 60%),
    rgb(8 14 40);
  color: rgb(255 255 255);
  box-shadow: 0 0 22px rgb(255 170 0 / 0.28);
  min-width: 0;
}

.sol__art,
.so-portal__art {
  display: block;
  min-width: 0;
  line-height: 0;
}

.sol__img,
.so-portal__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2244 / 701;
  object-fit: cover;
  object-position: 50% 0%;
}

.sol__body {
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem 0.85rem 0.85rem;
  min-width: 0;
}

.sol__tag {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgb(200 20 40);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.sol__tag::before {
  content: "";
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 50%;
  background: rgb(255 255 255);
  animation: sol-dot 1.6s ease-in-out infinite;
}
@keyframes sol-dot { 50% { opacity: 0.25; } }

.sol__title {
  margin: 0;
  font-size: clamp(1.45rem, 7.4vw, 2.1rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}
.sol__title-a { color: rgb(214 238 255); text-shadow: 0 2px 0 rgb(0 0 0 / 0.55); }
.sol__title-b { color: rgb(255 204 40); text-shadow: 0 2px 0 rgb(0 0 0 / 0.55); white-space: nowrap; }

.sol__sub {
  margin: 0;
  font-size: 0.92rem;
  color: rgb(224 232 255);
}

.sol__actions,
.so-portal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
}

.sol__btn,
.so-portal__btn {
  flex: 1 1 10rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: var(--tap);
  padding: 0 1rem;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
}
.sol__btn--enter,
.so-portal__btn--enter {
  border: 1px solid rgb(255 230 150);
  background: linear-gradient(180deg, rgb(255 226 120), rgb(255 190 20) 50%, rgb(214 140 0));
  color: rgb(30 18 2);
  box-shadow: 0 2px 0 rgb(0 0 0 / 0.5);
}
.sol__btn--watch,
.so-portal__btn--watch {
  border: 2px solid rgb(150 210 255 / 0.85);
  background: rgb(10 30 70 / 0.6);
  color: rgb(255 255 255);
}
.sol__btn:focus-visible,
.so-portal__btn:focus-visible,
.sol-alerts__btn:focus-visible,
.sol-alerts__help:focus-visible {
  outline: 3px solid rgb(255 214 0);
  outline-offset: 2px;
}

/* ---- SHARKS ALERTS ---------------------------------------------------- */

.sol-alerts {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.15rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: var(--radius-sm);
  background: rgb(0 0 0 / 0.3);
  min-width: 0;
}
.sol-alerts__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.sol-alerts__text,
.sol-alerts__note {
  margin: 0;
  font-size: 0.82rem;
  color: rgb(214 224 245);
}
.sol-alerts__note { color: var(--warn); }
.sol-alerts__on {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.sol-alerts__btn,
.sol-alerts__help {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  max-inline-size: 100%;
  padding: 0 0.9rem;
  border: 2px solid rgb(255 204 40);
  border-radius: 999px;
  background: transparent;
  color: rgb(255 214 80);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
}
.sol-alerts__btn:disabled { opacity: 0.6; cursor: default; }

/* ---- GAMES: the portal -------------------------------------------------- */

.so-portal-host {
  margin: 0 0 var(--sp-3);
  min-width: 0;
}
.so-portal { gap: 0.55rem; padding-bottom: 0.85rem; }
/* after the launch: the same art without its baked-in "48-hour launch" ribbon (bottom ~18%) */
.so-portal:not(.so-portal--launch) .so-portal__img { aspect-ratio: 2244 / 578; }
.so-portal__words {
  display: grid;
  gap: 0.2rem;
  padding: 0 0.85rem;
  min-width: 0;
}
.so-portal__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
}
.so-portal__title {
  margin: 0;
  font-size: clamp(1.4rem, 7vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.06em;
  color: rgb(214 238 255);
  text-shadow: 0 2px 0 rgb(0 0 0 / 0.55);
  overflow-wrap: anywhere;
}
.so-portal__badges { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; }
.so-portal__badge {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.so-portal__badge--live { background: rgb(200 20 40); color: rgb(255 255 255); }
.so-portal__badge--launch { background: rgb(255 204 40); color: rgb(30 18 2); }
.so-portal__waters {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgb(255 214 80);
}
.so-portal__cards,
.so-portal__play {
  margin: 0;
  font-size: 0.86rem;
  color: rgb(224 232 255);
}
.so-portal__play { font-weight: 700; color: rgb(255 255 255); }
.so-portal__actions { padding: 0 0.85rem; }

@media (min-width: 640px) {
  .sol__body { padding: 0.85rem 1.1rem 1rem; }
  .so-portal__words,
  .so-portal__actions { padding-inline: 1.1rem; }
  .sol__btn,
  .so-portal__btn { flex: 0 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .sol__tag::before { animation: none; }
}
