/* Shared end-screen email opt-in styles for ZimQi Crew Corner games.
 * Fits both Site Boss (navy/orange/cream) and Friday Rush (light sketch panel).
 * No transform, scale, rotate, translate, or animation on :hover or :active.
 */

.optin-slot:empty {
  display: none;
}

.game-optin {
  margin: 12px 0 8px;
  padding: 12px 14px;
  background: #ffffff;
  border: 2.5px solid #14264A;
  border-radius: 14px;
  text-align: left;
  color: #14264A;
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

.game-optin[hidden] {
  display: none;
}

.game-optin-form {
  margin: 0;
  position: relative;
}

.game-optin-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  color: #14264A;
}

.game-optin-optional {
  font-weight: 600;
  font-size: 14px;
  color: #4F5F80;
}

.game-optin-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.game-optin-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.game-optin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.game-optin-row input[type="email"] {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.25;
  color: #14264A;
  background: #FFFDF8;
  border: 2px solid #14264A;
  border-radius: 10px;
  user-select: text;
  -webkit-user-select: text;
}

.game-optin-row input[type="email"]:focus {
  outline: 2px solid #FF6B00;
  outline-offset: 1px;
}

.game-optin-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: #FFF8EE;
  background: #14264A;
  border: 2px solid #14264A;
  border-radius: 10px;
  box-shadow: none;
  cursor: pointer;
}

.game-optin-btn:hover:not(:disabled) {
  background: #1F396B;
  border-color: #1F396B;
}

.game-optin-btn:active:not(:disabled) {
  background: #0F1D3A;
  border-color: #0F1D3A;
}

.game-optin-btn:focus-visible {
  outline: 2px solid #FF6B00;
  outline-offset: 2px;
}

.game-optin-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.game-optin-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #2A3B5E;
  cursor: pointer;
}

.game-optin-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 1px 0 0;
  accent-color: #14264A;
  cursor: pointer;
}

.game-optin-privacy {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #2A3B5E;
}

.game-optin-privacy a {
  color: #C24E00;
  text-decoration: underline;
}

.game-optin-privacy a:hover,
.game-optin-privacy a:active {
  color: #8A3700;
  text-decoration: underline;
}

.game-optin-status {
  margin: 6px 0 0;
  min-height: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #1A7F37;
}

.game-optin-status:empty {
  display: none;
}

.game-optin-status--error {
  color: #9F2A1E;
}

.optin-done {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #1A7F37;
  text-align: center;
}

/* Site Boss end-screen fit */
#end .game-optin {
  background: #FFFDF8;
  border: 3px solid #14264A;
  border-radius: 16px;
}

#end .game-optin-btn {
  border-radius: 999px;
  padding: 10px 20px;
}

/* Friday Rush summary panel fit */
#panel .game-optin {
  margin: 10px 0 6px;
  padding: 10px 12px;
  background: #fffdf6;
  border: 2.5px solid #14264A;
  border-radius: 10px;
}

#panel .game-optin-title {
  font-size: 15px;
}

#panel .game-optin-btn {
  width: 100%;
  font-size: 16px;
  background: #14264A;
  color: #ffffff;
  border-radius: 8px;
  box-shadow: none;
}

#panel .game-optin-btn:hover:not(:disabled) {
  background: #1F396B;
  border-color: #1F396B;
}

@media (prefers-reduced-motion: reduce) {
  .game-optin,
  .game-optin * {
    transition: none;
  }
}
