:root {
  --gso-blue: #003fa5;
  --gso-navy: #001156;
  --gso-cyan: #0079d1;
  --gso-white: #ffffff;
}

/* Inline card: compact, responsive, flat gaming style. The floating OneSignal bell is not targeted. */
.onesignal-customlink-container { min-width: 0; max-width: 100%; }
.gso-inline-card,
.gso-inline-card * { box-sizing: border-box; }
.gso-inline-card {
  width: min(100%, 560px);
  max-width: 100%;
  min-width: 0;
  margin: 22px auto;
  padding: 20px clamp(12px, 3vw, 22px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  direction: ltr;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 16px;
  background: linear-gradient(135deg, #001156 0%, #003fa5 54%, #0079d1 100%);
  box-shadow: 0 6px 20px rgba(0, 17, 86, .17);
  position: relative;
  font-family: inherit;
}
.gso-inline-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
}
.gso-inline-logo-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.gso-inline-logo-wrap svg { display: block; width: 35px; height: 35px; color: #fff; }
.gso-inline-description {
  display: block !important;
  width: 100%;
  max-width: 490px;
  margin: 0 !important;
  padding: 0 !important;
  color: #f5f8ff !important;
  font-size: clamp(14px, 1.3vw, 16px) !important;
  line-height: 1.55 !important;
  font-weight: 500 !important;
  text-align: center !important;
  overflow-wrap: anywhere;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.gso-inline-count {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(0,17,86,.24);
  color: #eaf4ff;
  line-height: 1.25;
  font-size: 12px;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}
.gso-inline-count-number {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.gso-inline-count-label { opacity: .94; }
.gso-inline-card .onesignal-customlink-subscribe,
.gso-inline-card .gso-inline-action {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: min(100%, 205px) !important;
  min-height: 43px !important;
  margin: 0 !important;
  padding: 10px 18px !important;
  border: 1px solid rgba(255,255,255,.44) !important;
  border-radius: 10px !important;
  background: linear-gradient(115deg, #0079d1 0%, #003fa5 100%) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  box-shadow: 0 3px 9px rgba(0, 10, 70, .18) !important;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease !important;
}
.gso-inline-card .onesignal-customlink-subscribe::before,
.gso-inline-card .gso-inline-action::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h12M12 6l6 6-6 6'/%3E%3C/svg%3E");
}
.gso-inline-card .onesignal-customlink-subscribe:hover,
.gso-inline-card .gso-inline-action:hover {
  filter: brightness(1.07) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 12px rgba(0, 10, 70, .22) !important;
}
.gso-inline-card .onesignal-customlink-subscribe:active,
.gso-inline-card .gso-inline-action:active { transform: translateY(0) !important; }
.gso-inline-card .onesignal-customlink-subscribe:focus-visible,
.gso-inline-card .gso-inline-action:focus-visible,
.gso-game-prompt button:focus-visible { outline: 3px solid #fff !important; outline-offset: 3px !important; }
.gso-inline-card .onesignal-customlink-subscribe:disabled,
.gso-inline-card .gso-inline-action:disabled { opacity: .66 !important; cursor: wait !important; }
.gso-inline-card .gso-inline-status {
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #f3f7ff;
  background: rgba(0,10,62,.18);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
  text-align: center;
  overflow-wrap: anywhere;
}
.gso-inline-card .gso-inline-status[data-state="subscribed"] { background: rgba(11,120,67,.25); border-color: rgba(162,255,204,.32); }
.gso-inline-card .gso-inline-status[data-state="blocked"],
.gso-inline-card .gso-inline-status[data-state="error"] { background: rgba(123,20,42,.28); border-color: rgba(255,180,190,.3); }

/* Animated bottom prompt. Does not use or restyle the OneSignal bell. */
.gso-game-prompt {
  position: fixed;
  z-index: 99990;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(780px, calc(100vw - 32px));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 19px;
  color: #fff;
  direction: ltr;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 20px;
  background: linear-gradient(112deg, #001156 0%, #003fa5 50%, #0079d1 100%);
  box-shadow: 0 15px 42px rgba(0,12,67,.38), inset 0 1px 0 rgba(255,255,255,.18);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 28px) scale(.985);
  transition: opacity .42s ease, transform .42s cubic-bezier(.2,.75,.25,1), visibility .42s;
  font-family: inherit;
  isolation: isolate;
}
.gso-game-prompt::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at 0% 0%, rgba(255,255,255,.16), transparent 42%); }
.gso-game-prompt.gso-is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.gso-prompt-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  padding: 5px;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 5px 0 rgba(0,8,50,.42), inset 0 1px 0 rgba(255,255,255,.2);
}
.gso-prompt-logo img { display:block; width:100%; height:100%; object-fit:contain; border-radius:11px; }
.gso-prompt-logo svg { width: 42px; height: 42px; display: block; color: #fff; }
.gso-prompt-copy { min-width: 0; flex: 1 1 auto; }
.gso-prompt-title { margin: 0 0 4px !important; padding: 0 !important; color: #fff !important; font-size: 17px !important; line-height: 1.3 !important; font-weight: 800 !important; }
.gso-prompt-description { margin: 0 !important; padding: 0 !important; color: rgba(255,255,255,.91) !important; font-size: 13px !important; line-height: 1.5 !important; font-weight: 500 !important; }
.gso-prompt-feedback { display:none; margin-top:7px; color:#fff; font-size:12px; line-height:1.5; }
.gso-game-prompt.gso-has-feedback .gso-prompt-feedback { display:block; }
.gso-prompt-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; }
.gso-game-prompt button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 11px;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.gso-game-prompt button:hover { filter: brightness(1.09); transform: translateY(-1px); }
.gso-prompt-subscribe { color: #001156 !important; background: linear-gradient(180deg,#fff 0%,#e2eeff 100%) !important; border: 1px solid #fff !important; border-bottom: 4px solid #9cc8ff !important; box-shadow: 0 5px 12px rgba(0,0,0,.18), inset 0 1px 0 #fff !important; }
.gso-prompt-later { color: #fff !important; background: rgba(0,17,86,.26) !important; border: 1px solid rgba(255,255,255,.36) !important; }
.gso-prompt-close { display:none !important; }
.gso-game-prompt.gso-is-busy button { opacity: .7; cursor: wait; }
.gso-game-prompt[hidden] { display:none !important; }

@media (max-width: 640px) {
  .gso-inline-card { border-radius: 14px; gap: 11px; padding: 17px 12px; box-shadow: 0 4px 14px rgba(0,17,86,.15); }
  .gso-inline-logo-wrap { width: 44px; height: 44px; flex-basis: 44px; }
  .gso-inline-logo-wrap svg { width: 31px; height: 31px; }
  .gso-inline-card .onesignal-customlink-subscribe, .gso-inline-card .gso-inline-action { width: min(100%, 225px) !important; min-width: 0 !important; min-height: 41px !important; padding: 9px 14px !important; font-size: 13px !important; }
  .gso-game-prompt { bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100vw - 20px); padding: 15px; gap: 11px; border-radius: 17px; align-items: flex-start; }
  .gso-prompt-logo { flex-basis: 48px; width: 48px; height: 48px; border-radius: 13px; }
  .gso-prompt-logo svg { width: 35px; height: 35px; }
  .gso-prompt-title { font-size: 15px !important; }
  .gso-prompt-description { font-size: 12px !important; }
  .gso-prompt-actions { width: 100%; flex-basis: auto; flex-direction: row; gap: 7px; }
  .gso-game-prompt { flex-wrap: wrap; }
  .gso-prompt-copy { flex: 1 1 calc(100% - 65px); }
  .gso-prompt-actions { margin-left: 0; }
  .gso-game-prompt button { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 9px 10px; white-space: normal; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gso-game-prompt, .gso-game-prompt button, .gso-inline-card .onesignal-customlink-subscribe, .gso-inline-card .gso-inline-action { transition: none !important; }
}
