/* Club set-up (Game/Screens/Onboarding): 8 cards — a picture on the left cut on a slant, one question on the right.
   Game colours: navy #0f1420 / #161d2e, gold #fbbf24. No animation: "İleri" shows the next card at once. */

.client-onboarding-screen.obx-screen {
  background: #0f1420;
  padding: 0;
  overflow: hidden;
  display: block;
  color: #ffffff;
}

.obx-step {
  position: absolute;
  inset: 0;
  display: flex;
}

/* left: the picture, cut on a slant with a gold edge */
.obx-art {
  position: relative;
  flex: 0 0 55%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 83% 100%, 0 100%);
  background: #161d2e;
}
.obx-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 20, 32, 0) 70%, rgba(15, 20, 32, 0.55) 100%);
  pointer-events: none;
}
.obx-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  user-select: none;
}
.obx-step::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 55%;
  background: #fbbf24;
  clip-path: polygon(calc(100% - 3px) 0, calc(100% + 3px) 0, calc(83% + 3px) 100%, calc(83% - 3px) 100%);
  z-index: 2;
  pointer-events: none;
}

/* right: one question */
.obx-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1.6vh, 16px);
  padding: 4vh 5vw 9vh 2vw;
  box-sizing: border-box;
}
.obx-badge {
  color: #fbbf24;
  font-weight: 800;
  font-size: clamp(13px, 2.2vh, 20px);
  letter-spacing: 0.06em;
}
.obx-title {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(24px, 5.6vh, 52px);
  line-height: 1.1;
}
.obx-sub {
  margin: 0 0 1vh;
  color: #aab9cd;
  font-size: clamp(14px, 2.7vh, 24px);
}
.obx-input {
  width: 100%;
  box-sizing: border-box;
  background: #161d2e;
  border: 2px solid #34405a;
  border-radius: 14px;
  color: #ffffff;
  font-size: clamp(16px, 3vh, 26px);
  padding: clamp(10px, 1.9vh, 18px) 18px;
  outline: none;
}
.obx-input::placeholder { color: #788ca5; }
.obx-input:focus { border-color: #fbbf24; }
.obx-dice-row { display: flex; gap: 10px; align-items: stretch; }
.obx-dice-row .obx-input { flex: 1; }
.obx-dice {
  flex: 0 0 auto;
  width: clamp(48px, 8vh, 70px);
  border-radius: 14px;
  border: 2px solid #34405a;
  background: #1c2436;
  color: #ffffff;
  font-size: clamp(20px, 3.6vh, 32px);
  cursor: pointer;
}
.obx-dice:disabled { opacity: 0.5; }

.obx-error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid #ef4444;
  color: #fecaca;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: clamp(13px, 2.2vh, 18px);
}

.obx-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 1.5vh;
}
.obx-next, .obx-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 16px;
  font-weight: 800;
  font-size: clamp(16px, 3vh, 26px);
  padding: clamp(10px, 1.9vh, 18px) clamp(20px, 3vw, 40px);
  cursor: pointer;
}
.obx-next { background: #fbbf24; color: #0f1420; border: none; }
.obx-next:disabled { opacity: 0.6; }
.obx-back { background: transparent; color: #aab9cd; border: 2px solid #34405a; margin-right: auto; }
.obx-arrow {
  width: 0;
  height: 0;
  border-top: 0.42em solid transparent;
  border-bottom: 0.42em solid transparent;
  border-left: 0.62em solid currentColor;
}
.obx-arrow-l { border-left: none; border-right: 0.62em solid currentColor; }

/* progress dots, under the question */
.obx-dots {
  position: absolute;
  right: 5vw;
  bottom: 4vh;
  display: flex;
  gap: 12px;
  z-index: 3;
}
.obx-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #34405a;
}
.obx-dots i.on { background: #fbbf24; }
.obx-dots i.done { background: #8a6d1f; }

/* step 3: the map takes the wider half */
.obx-step-wide .obx-art { flex-basis: 72%; }
.obx-step-wide::before { width: 72%; }
.obx-step-wide .obx-panel { padding-right: 3vw; }
.obx-step-wide .obx-title { font-size: clamp(22px, 4.6vh, 44px); }
.obx-art-map {
  background: radial-gradient(ellipse at 40% 50%, #1c2a44 0%, #0f1420 75%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.obx-art-map::after { display: none; }
.obx-map {
  position: relative;
  width: 94%;
  margin-right: 7%;
}
.obx-map svg { width: 100%; height: auto; aspect-ratio: 1007 / 440; display: block; overflow: visible; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5)); }
.obx-map g[data-plakakodu] { cursor: pointer; }
.obx-map g[data-plakakodu] path { stroke-linejoin: round; }
.obx-map .map-loading-text { color: #aab9cd; text-align: center; }
/* countries on: the country list at the map card's top-right (onboardingWizard.js obRenderCountryPicker) */
.obx-country-pick {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  max-width: 46%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #fbbf24;
  background: #0f1420;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
}
.obx-map .tr-map-tooltip {
  position: absolute;
  transform: translate(-50%, -140%);
  background: #0f1420;
  border: 1px solid #fbbf24;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 8px;
  pointer-events: none;
  white-space: nowrap;
}
.obx-city-pill {
  align-self: flex-start;
  background: #fbbf24;
  color: #0f1420;
  font-weight: 800;
  font-size: clamp(16px, 3.2vh, 28px);
  border-radius: 12px;
  padding: 8px 18px;
}
.obx-provinces {
  max-height: 22vh;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.obx-provinces:empty { display: none; }
.obx-provinces .province-item-btn {
  background: #161d2e;
  border: 1px solid #34405a;
  color: #ffffff;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 14px;
  display: inline-flex;
  gap: 8px;
  cursor: pointer;
}
.obx-provinces .province-item-btn .p-plate { color: #fbbf24; font-weight: 700; }
.obx-provinces .province-item-btn.selected { border-color: #fbbf24; }

/* steps 6–7: the crest / kit is the picture, the controls scroll on the right */
.obx-art-studio {
  background: radial-gradient(ellipse at 45% 45%, #22304d 0%, #0f1420 75%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2vh;
  padding-right: 10%;
  box-sizing: border-box;
}
.obx-art-studio::after { display: none; }
.obx-preview { display: flex; align-items: center; justify-content: center; }
.obx-preview svg { width: min(46vh, 30vw); height: min(46vh, 30vw); }
.obx-preview-caption { color: #ffffff; font-weight: 800; font-size: clamp(16px, 3vh, 26px); max-width: 80%; text-align: center; }
.obx-roll {
  background: #1c2436;
  border: 2px solid #34405a;
  color: #ffffff;
  border-radius: 14px;
  font-weight: 700;
  font-size: clamp(14px, 2.6vh, 22px);
  padding: 10px 22px;
  cursor: pointer;
}
.obx-kit-tabs { display: flex; gap: 8px; }
.obx-kit-tabs .kit-cat-pill {
  background: #161d2e;
  border: 2px solid #34405a;
  color: #aab9cd;
  border-radius: 12px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: clamp(13px, 2.3vh, 19px);
  cursor: pointer;
}
.obx-kit-tabs .kit-cat-pill.active { border-color: #fbbf24; color: #ffffff; }

.obx-panel-studio { justify-content: flex-start; padding-top: 5vh; }
.obx-studio-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
}
.obx-sec {
  color: #aab9cd;
  font-weight: 700;
  font-size: clamp(13px, 2.2vh, 18px);
  margin: 1.6vh 0 0.8vh;
}
.obx-tabs { display: flex; gap: 6px; margin-top: 1vh; }
.obx-tab {
  flex: 1;
  background: #161d2e;
  border: 2px solid #34405a;
  color: #aab9cd;
  border-radius: 12px;
  font-weight: 800;
  font-size: clamp(14px, 2.5vh, 20px);
  padding: 10px 6px;
  cursor: pointer;
}
.obx-tab.on { border-color: #fbbf24; color: #0f1420; background: #fbbf24; }
.obx-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  padding-top: 1.4vh;
}
.obx-tiles-sm { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.obx-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #161d2e;
  border: 2px solid #34405a;
  border-radius: 14px;
  padding: 10px 6px 8px;
  color: #aab9cd;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}
.obx-tile svg { width: 64px; height: 64px; flex: 0 0 auto; }
.obx-tiles-sm .obx-tile svg { width: 52px; height: 52px; }
.obx-tile.on { border-color: #fbbf24; background: #2a2412; color: #ffffff; }
.obx-studio-scroll .swatches-container { display: flex; flex-wrap: wrap; gap: 8px; }
.obx-studio-scroll .color-swatch-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #34405a;
  cursor: pointer;
}
.obx-studio-scroll .color-swatch-btn.active { border: 3px solid #fbbf24; box-shadow: 0 0 0 2px #0f1420 inset; }

/* step 8: link Google / Play Games */
.obx-link {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: #ffffff;
  color: #0f1420;
  border: none;
  border-radius: 16px;
  font-weight: 800;
  font-size: clamp(16px, 3vh, 26px);
  padding: clamp(10px, 2vh, 18px) 22px;
  cursor: pointer;
}
.obx-link-ico { width: 1.3em; height: 1.3em; flex: 0 0 auto; background-size: contain; background-repeat: no-repeat; background-position: center; }
.obx-ico-google { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M23.745 12.27c0-.7-.06-1.4-.19-2.07H12v4.51h6.6c-.29 1.52-1.14 2.8-2.4 3.66v3.05h3.9c2.28-2.1 3.645-5.18 3.645-9.15z'/%3E%3Cpath fill='%2334A853' d='M12 24c3.24 0 5.95-1.08 7.93-2.91l-3.9-3.05c-1.08.72-2.45 1.16-4.03 1.16-3.1 0-5.74-2.11-6.68-4.96H1.21v3.15C3.25 21.36 7.35 24 12 24z'/%3E%3Cpath fill='%23FBBC05' d='M5.32 14.24c-.25-.72-.39-1.5-.39-2.24s.14-1.52.39-2.24V6.61H1.21C.44 8.14 0 9.87 0 12c0 2.13.44 3.86 1.21 5.39l4.11-3.15z'/%3E%3Cpath fill='%23EA4335' d='M12 4.75c1.77 0 3.35.61 4.6 1.8l3.42-3.42C17.95 1.19 15.24 0 12 0 7.35 0 3.25 2.64 1.21 6.61l4.11 3.15c.94-2.85 3.58-5.01 6.68-5.01z'/%3E%3C/svg%3E"); }
.obx-ico-play { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2301875f' d='M7.5 6h9A5.5 5.5 0 0 1 22 11.5v1A5.5 5.5 0 0 1 16.5 18c-1.3 0-2.3-.6-3-1.5h-3c-.7.9-1.7 1.5-3 1.5A5.5 5.5 0 0 1 2 12.5v-1A5.5 5.5 0 0 1 7.5 6zm-.5 3v2H5v2h2v2h2v-2h2v-2H9V9H7zm8.5.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5zm2 2.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5z'/%3E%3C/svg%3E"); }

/* portrait phones: picture on top, question below */
@media (orientation: portrait) {
  .obx-step { flex-direction: column; }
  .obx-art, .obx-step-wide .obx-art { flex: 0 0 38%; width: 100%; clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); }
  .obx-step::before { display: none; }
  .obx-art-map .obx-map { width: 94%; margin: 0; }
  .obx-art-studio { padding-right: 0; }
  .obx-panel { padding: 2vh 6vw 8vh; justify-content: flex-start; }
}
