/* Player progression, unlock celebrations and bonus entry points */

[data-create-entry][hidden],
[data-tycoon-entry][hidden],
body:not(.is-create-unlocked) [data-open-create],
body:not(.is-create-unlocked) [data-create-entry],
body:not(.is-tycoon-unlocked) [data-tycoon-entry] {
  display: none !important;
}

body:not(.is-create-unlocked) .experience-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tycoon-bonus-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(230px, auto);
  gap: 18px;
  align-items: center;
  margin: 18px 0;
  padding: 20px;
  border: 2px solid #e3bb59;
  border-radius: 22px;
  color: #fff;
  background: radial-gradient(circle at 12% 20%, rgba(255, 222, 125, .27), transparent 30%), linear-gradient(120deg, #164f58, #403a72 65%, #754260);
  box-shadow: 0 16px 36px rgba(33, 49, 71, .18);
}

.tycoon-bonus-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 21px;
  color: #5a3b0e;
  background: linear-gradient(145deg, #fff2a9, #f0ad49);
  box-shadow: 0 7px 0 rgba(41, 26, 18, .35);
  font-size: 34px;
}

.tycoon-bonus-card small {
  color: #ffd878;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .08em;
}

.tycoon-bonus-card h2 {
  margin: 3px 0 5px;
  color: #fff;
  font-size: clamp(23px, 3vw, 32px);
}

.tycoon-bonus-card p {
  margin: 0;
  color: #e7eff3;
  font-size: 16px;
  line-height: 1.55;
}

.tycoon-bonus-card > a,
.tycoon-menu-button {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 15px;
  color: #143b43;
  background: linear-gradient(105deg, #fff1a8, #b9f1de);
  box-shadow: 0 6px 0 rgba(11, 28, 41, .55);
  font-size: 16px;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

.tycoon-menu-button {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  justify-content: stretch;
  min-height: 72px;
  padding: 10px 14px;
  box-shadow: none;
  text-align: left;
}

.tycoon-menu-button > span {
  grid-row: 1 / 3;
  font-size: 24px;
}

.tycoon-menu-button b {
  font-size: 16px;
}

.tycoon-menu-button small {
  font-size: 14px;
}

.meguru-unlock-layer {
  position: fixed;
  z-index: 10080;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 24, 36, .72);
  backdrop-filter: blur(8px);
}

.meguru-unlock-layer[hidden] {
  display: none !important;
}

.meguru-unlock-dialog {
  width: min(620px, 100%);
  overflow: hidden;
  border: 2px solid rgba(255, 229, 142, .9);
  border-radius: 28px;
  color: #173740;
  background: #fff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .35);
}

.meguru-unlock-art {
  position: relative;
  display: grid;
  min-height: 150px;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #fff8bd 0 12%, transparent 36%), linear-gradient(120deg, #1a7770, #3d477b 60%, #824a68);
}

.meguru-unlock-art::before,
.meguru-unlock-art::after {
  content: "✦  ✧  ✦";
  position: absolute;
  color: #ffe696;
  font-size: 25px;
  letter-spacing: 18px;
  animation: meguruUnlockSpark 1.8s ease-in-out infinite alternate;
}

.meguru-unlock-art::before {
  top: 22px;
  left: 32px;
}

.meguru-unlock-art::after {
  right: 20px;
  bottom: 20px;
  animation-delay: -.7s;
}

.meguru-unlock-art span {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 28px;
  color: #5d4210;
  background: linear-gradient(145deg, #fff7bd, #efad4d);
  box-shadow: 0 9px 0 rgba(16, 31, 47, .38);
  font-size: 42px;
}

.meguru-unlock-copy {
  display: grid;
  gap: 10px;
  padding: 25px;
  text-align: center;
}

.meguru-unlock-copy small {
  color: #24766e;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .1em;
}

.meguru-unlock-copy h2 {
  margin: 0;
  color: #173b45;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.25;
}

.meguru-unlock-copy p {
  margin: 0;
  color: #506a72;
  font-size: 17px;
  line-height: 1.65;
}

.meguru-unlock-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 8px;
}

.meguru-unlock-actions button,
.meguru-unlock-actions a {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 950;
  text-decoration: none;
}

.meguru-unlock-actions .is-primary {
  color: #fff;
  background: linear-gradient(110deg, #187b6e, #3b4e82);
  box-shadow: 0 5px 0 #12343e;
}

.meguru-unlock-actions .is-secondary {
  color: #294b52;
  background: #e9f2f2;
}

@keyframes meguruUnlockSpark {
  from { opacity: .45; transform: translateY(3px) scale(.96); }
  to { opacity: 1; transform: translateY(-3px) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .meguru-unlock-art::before,
  .meguru-unlock-art::after {
    animation: none;
  }
}

@media (max-width: 720px) {
  body:not(.is-create-unlocked) .experience-choice-grid,
  .tycoon-bonus-card,
  .meguru-unlock-actions {
    grid-template-columns: 1fr;
  }

  .tycoon-bonus-icon {
    width: 58px;
    height: 58px;
  }

  .meguru-unlock-actions .is-secondary {
    order: 2;
  }
}
