/* Costa Hen Vibes · a little playground, with the same Mediterranean palette. */
.games-hero {
  padding: 54px 0 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
}
.games-hero h1,
.bomb-intro h1 {
  font-size: clamp(52px, 6.3vw, 94px);
  line-height: 1.02;
  letter-spacing: -3px;
  margin: 20px 0;
}
.games-hero .big-copy {
  font-size: 25px;
  margin-bottom: 15px;
}
.games-hero p:not(.eyebrow) {
  max-width: 490px;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
  padding-bottom: 70px;
}
.game-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 25px #113e5010;
}
.game-card-art {
  height: 255px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: var(--peach);
}
.game-card-art > svg {
  width: 230px;
  height: 230px;
  transform: rotate(-8deg);
}
.game-card-badge {
  position: absolute;
  top: 17px;
  left: 17px;
  background: var(--cream);
  border-radius: 40px;
  padding: 7px 12px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1px;
}
.game-card-copy {
  padding: 25px;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.game-card-copy h2 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.12;
  margin: 0 0 14px;
}
.game-card-copy p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 25px;
}
.game-card-copy .button {
  margin-top: auto;
  justify-content: space-between;
  min-height: 52px;
}
.game-card-art.normal-art {
  background: var(--sky);
}
.game-card-art.cleo-art {
  background: #102832;
  color: #e6b75d;
}
.games-wheel {
  width: 190px;
  height: 190px;
  position: relative;
  border: 9px solid var(--cream);
  border-radius: 50%;
  background: conic-gradient(
    #ec683f 0 45deg,
    #f5bc66 45deg 90deg,
    #95c5ad 90deg 135deg,
    #dcebf0 135deg 180deg,
    #a88acb 180deg 225deg,
    #f5acbc 225deg 270deg,
    #97d4cb 270deg 315deg,
    #edcf75 315deg
  );
  box-shadow: 0 8px 0 #113e5020;
  display: grid;
  place-items: center;
  transform: rotate(-10deg);
}
.games-wheel > i {
  display: grid;
  place-items: center;
  border: 6px solid var(--cream);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  background: var(--ink);
  color: var(--cream);
  font-size: 30px;
}
.games-wheel::before {
  content: "";
  position: absolute;
  top: -9px;
  left: calc(50% - 10px);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 17px solid var(--ink);
}
.cleo-art .games-wheel {
  border-color: #e6b75d;
  background: conic-gradient(
    #275860 0 45deg,
    #b1843b 45deg 90deg,
    #426e71 90deg 135deg,
    #e6b75d 135deg 180deg,
    #246b75 180deg 225deg,
    #b1843b 225deg 270deg,
    #275860 270deg 315deg,
    #cf9e50 315deg
  );
}
.cleo-art .games-wheel > i {
  background: #102832;
  border-color: #e6b75d;
  color: #e6b75d;
}
.games-how {
  background: var(--sky);
  padding: 55px 0;
}
.games-how > .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.games-how h2 {
  font-size: 48px;
  line-height: 1.05;
  margin: 0 0 20px;
}
.games-how ol {
  list-style: none;
  padding: 0;
  counter-reset: steps;
}
.games-how li {
  counter-increment: steps;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.games-how li::before {
  content: "0" counter(steps);
  font-family: "Instrument Serif", serif;
  font-size: 40px;
  color: var(--blue);
}
.bomb-layout {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: 65px;
  align-items: start;
  padding: 38px 0 75px;
}
.bomb-intro {
  padding-top: 22px;
}
.bomb-intro .big-copy {
  font-size: 25px;
  margin: 23px 0 20px;
  max-width: 430px;
}
.bomb-intro > p:not(.eyebrow) {
  max-width: 425px;
}
.bomb-facts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 12px;
}
.bomb-facts span {
  display: flex;
  gap: 8px;
  align-items: center;
}
.bomb-facts i {
  color: var(--orange);
}
.bomb-mini-guide {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 14px;
  max-width: 425px;
}
.bomb-mini-guide a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.bomb-game {
  background: var(--peach);
  border: 1px solid #113e5020;
  border-radius: 22px;
  padding: 25px;
  scroll-margin-top: 15px;
  min-width: 0;
  box-shadow: 0 16px 0 #113e5007;
}
.bomb-game [hidden] {
  display: none !important;
}
.bomb-game button {
  cursor: pointer;
  font: inherit;
}
.bomb-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 15px;
  border-bottom: 1px solid #113e5020;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1px;
}
.bomb-topline a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  font-size: 12px;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bomb-screen {
  text-align: center;
  padding-top: 22px;
  min-height: 452px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.bomb-screen h2 {
  font-size: clamp(26px, 3.1vw, 40px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 6px 0 11px;
}
.bomb-screen > p {
  line-height: 1.6;
  font-size: 16px;
  max-width: 365px;
  margin: 0 auto 12px;
}
.bomb-drawing {
  width: 250px;
  max-width: 80%;
  height: 245px;
  display: block;
  margin: 0 auto;
}
.bomb-object {
  transform-origin: 140px 170px;
}
.bomb-spark {
  transform-origin: 230px 39px;
}
.bomb-picture-button {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  margin: 0 auto;
  width: min(100%, 290px);
  border-radius: 30px;
}
.bomb-picture-button:hover .bomb-drawing {
  transform: rotate(-5deg);
}
.bomb-game .button {
  min-height: 54px;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  width: 100%;
  max-width: 375px;
  border-radius: 8px;
  border: 0;
  font-size: 15px;
  font-weight: 750;
}
.bomb-game .button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.bomb-game button:focus-visible,
.bomb-game input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
.bomb-game .bomb-primary {
  background: var(--ink);
  color: var(--cream);
}
.bomb-caption {
  font-size: 12px !important;
  margin: 12px 0 0 !important;
  color: var(--ink);
}
.bomb-game[data-state="active"] .bomb-object {
  animation: bomb-rock 0.65s ease-in-out infinite alternate;
}
.bomb-game[data-state="active"] .bomb-spark {
  animation: bomb-spark 0.65s ease-in-out infinite alternate;
}
.bomb-game[data-state="active"] {
  background: var(--sky);
}
.bomb-game[data-state="paused"] {
  background: #eee7db;
}
.bomb-pass-title {
  font-weight: 800;
}
.bomb-pause {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid #113e5040 !important;
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 17px;
  min-height: 48px;
  min-width: 150px;
  margin: 10px auto 0;
}
.bomb-result-pop {
  width: 105px;
  height: 95px;
  display: grid;
  place-items: center;
  position: relative;
  margin: 2px auto 16px;
  background: var(--orange);
  clip-path: polygon(
    50% 0,
    60% 18%,
    84% 3%,
    81% 29%,
    100% 37%,
    85% 54%,
    100% 75%,
    73% 78%,
    70% 100%,
    49% 86%,
    27% 100%,
    24% 78%,
    0 79%,
    13% 55%,
    0 37%,
    22% 29%,
    20% 3%,
    41% 18%
  );
  font-size: 30px;
  color: var(--cream);
}
.bomb-game[data-state="result"] .bomb-result-pop {
  animation: bomb-pop 0.35s ease-out;
}
.bomb-result-kicker {
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 5px !important;
}
.bomb-screen .bomb-result-description {
  font-size: 18px;
  line-height: 1.55;
  max-width: 390px;
  margin: 5px auto 15px;
}
.bomb-timer-area {
  width: 100%;
  padding: 15px 0;
  border-block: 1px solid #113e5020;
  margin: 0 0 16px;
}
.bomb-timer-area button {
  border: 1px solid #113e5040;
  background: var(--cream);
  border-radius: 8px;
  min-height: 48px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 650;
}
.bomb-timer-area output {
  font-size: 30px;
  font-weight: 800;
  margin-right: 14px;
  font-variant-numeric: tabular-nums;
}
.bomb-timer-area p {
  font-size: 12px;
  line-height: 1.5;
  margin: 8px auto 0;
  max-width: 350px;
}
.bomb-change {
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 48px;
  padding: 10px 18px;
  font-size: 14px;
}
.bomb-audio {
  border-top: 1px solid #113e5020;
  padding-top: 12px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 8px;
}
.bomb-audio button {
  background: transparent;
  border: 0;
  min-height: 48px;
  padding: 8px 3px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.bomb-audio label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  min-height: 48px;
}
.bomb-audio input {
  width: 72px;
  min-height: 48px;
  accent-color: var(--ink);
}
.bomb-audio-note {
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}
.bomb-audio-note:empty {
  display: none;
}
.bomb-rules {
  padding: 0 0 70px;
}
.bomb-rules-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 25px;
}
.bomb-rules h2 {
  font-size: 50px;
  line-height: 1.04;
  margin: 8px 0;
}
.bomb-rules-heading > p {
  max-width: 390px;
  font-size: 15px;
}
.bomb-rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}
.bomb-rule {
  padding: 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.bomb-rule > i {
  font-size: 28px;
  color: var(--orange);
  margin-bottom: 20px;
}
.bomb-rule h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 13px;
}
.bomb-rule p {
  font-size: 14px;
  line-height: 1.7;
}
.bomb-closing {
  background: var(--sky);
  padding: 45px 0;
}
.bomb-closing > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.bomb-closing h2 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 15px;
}
.bomb-closing p {
  max-width: 570px;
}
.bomb-closing .button {
  flex-shrink: 0;
}
.game-hub-teaser .teaser-dial {
  background: var(--ink);
  color: var(--peach);
}
@keyframes bomb-rock {
  from {
    transform: rotate(-4deg);
  }
  to {
    transform: rotate(4deg);
  }
}
@keyframes bomb-spark {
  from {
    transform: scale(0.8);
    opacity: 0.75;
  }
  to {
    transform: scale(1.1);
    opacity: 1;
  }
}
@keyframes bomb-pop {
  from {
    transform: scale(0.65) rotate(-10deg);
  }
  to {
    transform: scale(1) rotate(0);
  }
}
@media (max-width: 1000px) {
  .games-grid {
    gap: 15px;
  }
  .game-card-copy {
    padding: 20px;
  }
  .game-card-copy h2 {
    font-size: 27px;
  }
  .bomb-layout {
    gap: 35px;
  }
  .bomb-game {
    padding: 20px;
  }
  .bomb-intro h1 {
    font-size: 65px;
  }
  .bomb-rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bomb-audio input {
    width: 60px;
  }
}
@media (max-width: 750px) {
  .games-hero {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px 0 30px;
  }
  .games-hero h1,
  .bomb-intro h1 {
    font-size: 61px;
    letter-spacing: -2px;
  }
  .games-hero .big-copy {
    font-size: 23px;
  }
  .games-grid {
    grid-template-columns: 1fr;
    padding-bottom: 45px;
    gap: 25px;
  }
  .game-card-art {
    height: 230px;
  }
  .game-card-copy h2 {
    font-size: 32px;
  }
  .game-card-copy p {
    font-size: 16px;
  }
  .games-how > .wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .games-how h2 {
    font-size: 43px;
  }
  .bomb-layout {
    grid-template-columns: 1fr;
    gap: 27px;
    padding-top: 12px;
    padding-bottom: 50px;
  }
  .bomb-intro {
    padding-top: 0;
  }
  .bomb-intro h1 {
    margin: 13px 0;
  }
  .bomb-intro .big-copy {
    font-size: 23px;
    margin: 15px 0 12px;
  }
  .bomb-intro > p:not(.eyebrow) {
    font-size: 16px;
  }
  .bomb-facts {
    margin-top: 18px;
    gap: 12px;
  }
  .bomb-mini-guide {
    display: none;
  }
  .bomb-game {
    padding: 17px;
    border-radius: 16px;
  }
  .bomb-topline {
    padding-bottom: 5px;
  }
  .bomb-screen {
    min-height: 427px;
    padding-top: 16px;
  }
  .bomb-screen h2 {
    font-size: 32px;
  }
  .bomb-drawing {
    height: 223px;
    width: 230px;
  }
  .bomb-screen .bomb-result-description {
    font-size: 18px;
  }
  .bomb-screen > p {
    font-size: 16px;
  }
  .bomb-result-pop {
    height: 75px;
    width: 85px;
    margin-bottom: 10px;
  }
  .bomb-rules-heading {
    display: block;
  }
  .bomb-rules-heading > p {
    margin-top: 20px;
  }
  .bomb-rules h2 {
    font-size: 45px;
  }
  .bomb-rule {
    padding: 20px;
  }
  .bomb-rule h3 {
    font-size: 22px;
  }
  .bomb-rule p {
    font-size: 15px;
  }
  .bomb-closing > .wrap {
    display: block;
  }
  .bomb-closing .button {
    margin-top: 25px;
  }
  .bomb-audio {
    justify-content: space-between;
    gap: 0 6px;
  }
  .bomb-audio label {
    gap: 4px;
  }
  .bomb-audio input {
    width: 65px;
  }
  .bomb-audio button {
    font-size: 12px;
  }
  .bomb-audio label > span {
    font-size: 0;
  }
  .bomb-audio label > span::after {
    content: "Vol.";
    font-size: 11px;
  }
}
@media (max-width: 370px) {
  .bomb-game {
    padding: 13px;
  }
  .bomb-topline {
    font-size: 9px;
  }
  .bomb-topline a {
    font-size: 11px;
  }
  .bomb-game .button {
    font-size: 14px;
    padding-inline: 10px;
  }
  .bomb-audio input {
    width: 48px;
  }
  .bomb-screen h2 {
    font-size: 29px;
  }
  .bomb-rule-grid {
    grid-template-columns: 1fr;
  }
  .bomb-facts {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bomb-object,
  .bomb-spark,
  .bomb-result-pop {
    animation: none !important;
  }
  .game-card,
  .bomb-drawing {
    transition: none;
    transform: none !important;
  }
}

/* Four independent games in the shared hub. */
.games-grid-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.chest-card-art {
  background: #f5e4be;
}
.chest-card-art > svg {
  width: 290px;
  height: 225px;
  transform: rotate(-6deg);
}
@media (max-width: 750px) {
  .games-grid-four {
    grid-template-columns: 1fr;
  }
}
