/* Poker'in menu / kariyer / form stilleri (scripts/extract-poker-css.py ile uretilir; elle duzenlemeyin). */
:root {
  --bg-0: #0b1f16; --bg-1: #0f2a1d; --pk-felt: #123524; --panel: #16382a; --card-border: #24503b;
  --gold: #e8b923; --gold-dim: #b58e1c; --text: #f2f0e8; --text-dim: #a9b8ac; --danger: #e35d5d; --radius: 14px;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
}

.progress-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: calc(14px + var(--safe-top)) 0 8px;
}

.progress-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--card-border);
  transition: background 0.2s, transform 0.2s;
}

.progress-dots .dot.is-active {
  background: var(--gold);
  transform: scale(1.3);
}

.progress-dots .dot.is-done {
  background: var(--gold-dim);
}

.screen-inner {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

h1.brand {
  text-align: center;
  font-size: 28px;
  color: var(--gold);
}

.subtitle {
  margin: 0 0 20px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.4;
}

.card {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.field {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-dim);
  position: relative;
}

.field span:first-child {
  display: block;
  margin-bottom: 6px;
}

.field input,
.field select,
.search-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--bg-0);
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.field input:focus,
.field select:focus,
.search-input:focus {
  border-color: var(--gold);
}

.search-input {
  margin-bottom: 12px;
}

.btn[hidden] {
  display: none;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--gold);
  color: #241c04;
}

.btn-large {
  padding: 16px;
  font-size: 17px;
}

.btn-google {
  background: #fff;
  color: #1f1f1f;
  margin-bottom: 12px;
}

.btn-google .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4285f4;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--card-border);
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--text-dim);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin: 4px 0 4px;
  cursor: pointer;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--gold);
}

.card .btn + .btn {
  margin-top: 8px;
}

.btn-danger-outline {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}

.home-disclaimer {
  margin-top: 22px;
  text-align: center;
}

#confirmOverlay .btn,
#passwordOverlay .btn {
  margin-top: 8px;
}

.fine-print {
  margin: 4px 0 14px;
  font-size: 12px;
  color: var(--text-dim);
}

.error-text {
  color: var(--danger);
  font-size: 13px;
  margin: 6px 0 0;
}

.nav-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.nav-row .btn {
  flex: 1;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.emoji-btn {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.emoji-btn.is-selected {
  background: rgba(232, 185, 35, 0.18);
  border-color: var(--gold);
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-card {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.option-card.is-selected {
  border-color: var(--gold);
  background: rgba(232, 185, 35, 0.1);
}

.option-card.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.option-title {
  font-weight: 700;
  font-size: 15px;
}

.option-desc {
  font-size: 12px;
  color: var(--text-dim);
}

.scroll-list {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--panel);
}

.list-item {
  padding: 13px 16px;
  border-bottom: 1px solid var(--card-border);
  cursor: pointer;
  font-size: 15px;
}

.list-item:last-child {
  border-bottom: none;
}

.home-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.home-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.home-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.home-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex: none;
}

.home-id {
  flex: 1;
  min-width: 0;
}

.home-name {
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-total {
  font-size: 13px;
  color: var(--gold);
  min-width: 0;
}

.home-section-title {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 14px 0 8px;
}

.type-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.type-tab {
  flex: 1;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.type-tab.is-active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(232, 185, 35, 0.12);
}

.home-modes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-card {
  text-align: left;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mode-card.has-save {
  border-color: rgba(232, 185, 35, 0.45);
}

.mode-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mode-title {
  font-size: 17px;
  font-weight: 700;
}

.mode-cta {
  font-size: 12px;
  font-weight: 700;
  color: #241c04;
  background: var(--gold);
  border-radius: 999px;
  padding: 3px 12px;
}

.mode-desc,
.mode-count {
  font-size: 12px;
  color: var(--text-dim);
}

.mode-challenge {
  font-size: 12px;
  font-style: italic;
  color: var(--gold);
}

.mode-tier {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

.mode-place {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.home-flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  flex: none;
}

.mode-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.mode-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #f3d365);
  border-radius: 999px;
}

.home-other {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.other-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.other-row span {
  color: var(--text-dim);
  font-size: 12px;
}

.hero-slot {
  margin: 0 0 12px;
}

.hero-slot[hidden] {
  display: none;
}

.country-hero {
  position: relative;
  margin: 0;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #1f6142, #0a2a1c);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.country-hero .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-hero figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 26px 12px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  color: #fff;
}

.country-hero .hero-flag {
  width: 30px;
  height: 22px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  flex: none;
}

.country-hero .hero-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.country-hero .hero-name {
  font-size: 15px;
  font-weight: 700;
}

.country-hero .hero-caption {
  font-size: 12px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-hero .hero-credit {
  position: absolute;
  top: 6px;
  right: 8px;
  max-width: 70%;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-hero.no-photo {
  height: 64px;
}

.list-item .list-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.65;
}

#careerOptionList .search-input,
#mediumCareerOptionList .search-input,
#ultimateCareerOptionList .search-input {
  margin-bottom: 8px;
}

.list-item.is-selected {
  background: rgba(232, 185, 35, 0.14);
  color: var(--gold);
  font-weight: 600;
}

@media (min-width: 480px) {
.screen-inner { max-width: 440px; }
}

.career-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.career-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
}

.career-header-info {
  flex: 1;
  min-width: 0;
}

.career-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.career-flag {
  font-size: 14px;
  flex-shrink: 0;
}

.career-name {
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-badges {
  font-size: 12px;
  color: var(--text-dim);
}

.career-header-actions {
  order: 2;
  flex-basis: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: -4px;
}

.icon-btn {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.career-wallet {
  order: 1;
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.career-toast {
  background: rgba(232, 185, 35, 0.14);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--gold);
  text-align: center;
  font-weight: 600;
}

.start-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 10px;
}

.settings-card .field {
  display: block;
  margin-bottom: 12px;
}

.settings-inline .btn {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
}

.settings-card .emoji-grid {
  margin-top: 8px;
}

.tutorial-quiz-answers .btn {
  width: auto;
  margin: 0;
  padding: 10px 6px;
  font-size: 14px;
}

.tutorial-quiz-answers .btn.is-correct {
  border-color: #3ecf6b;
  background: rgba(62, 207, 107, 0.18);
  opacity: 1;
}

.tutorial-quiz-answers .btn.is-wrong {
  border-color: #e0525f;
  background: rgba(224, 82, 95, 0.18);
  opacity: 1;
}

.hall-modes .type-tab {
  min-width: calc(50% - 4px);
}

.mail-btn.is-lit {
  box-shadow: 0 0 14px 4px rgba(255, 213, 74, 0.75);
  background: rgba(255, 213, 74, 0.18);
  animation: mail-blink 1.2s ease-in-out infinite;
}

.birth-selects {
  display: grid;
  grid-template-columns: 1.05fr 1.55fr 1.2fr;
  gap: 8px;
}

.birth-selects select {
  width: 100%;
  min-width: 0;
  font-size: 14px;
  padding-left: 8px;
  padding-right: 4px;
}

@media (orientation: landscape) and (min-width: 640px) and (max-height: 500px) {
[data-screen="home"] .screen-inner {
    max-width: 980px;
    display: grid;
    grid-template-columns: minmax(220px, 28%) minmax(0, 1fr);
    grid-template-areas:
      "header modes"
      "ptitle modes"
      "types  modes"
      "types  otitle"
      "types  other"
      "disc   disc";
    grid-template-rows: auto auto auto auto 1fr auto;
    column-gap: 18px;
    align-items: start;
  }
[data-screen="home"] .home-header { grid-area: header; margin-bottom: 8px; }
[data-screen="home"] .home-header + .home-section-title { grid-area: ptitle; margin: 0 0 6px; }
[data-screen="home"] .home-modes + .home-section-title { grid-area: otitle; margin-top: 2px; }
[data-screen="home"] .home-disclaimer { grid-area: disc; margin: 4px 0 0; }
[data-screen="home"] .home-sub {
    flex-wrap: wrap;
  }
[data-screen="home"] .type-tabs {
    flex-direction: column;
  }
[data-screen="home"] .type-tab {
    padding: 8px 10px;
  }
[data-screen="home"] .home-modes {
    grid-area: modes;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
[data-screen="home"] .mode-card {
    padding: 10px 14px;
    gap: 4px;
  }
[data-screen="home"] .home-other {
    grid-area: other;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 0;
  }
:is([data-screen="career"], [data-screen="mediumCareer"], [data-screen="ultimateCareer"], [data-screen="shortCareer"]) .screen-inner {
    max-width: 980px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "header header"
      "hero   toast"
      "hero   card"
      "hero   rep";
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    height: calc(100vh - 24px - var(--safe-top, 0px) - var(--safe-bottom, 0px));
    max-height: 420px;
    column-gap: 16px;
    align-items: start;
  }
:is([data-screen="career"], [data-screen="mediumCareer"], [data-screen="ultimateCareer"], [data-screen="shortCareer"]) .career-header {
    grid-area: header;
    flex-wrap: nowrap;
    margin-bottom: 10px;
  }
:is([data-screen="career"], [data-screen="mediumCareer"], [data-screen="ultimateCareer"], [data-screen="shortCareer"]) .career-avatar {
    width: 42px;
    height: 42px;
    font-size: 21px;
  }
:is([data-screen="career"], [data-screen="mediumCareer"], [data-screen="ultimateCareer"], [data-screen="shortCareer"]) .career-header-actions {
    order: 1;
    flex-basis: auto;
    margin-top: 0;
  }
:is([data-screen="career"], [data-screen="mediumCareer"], [data-screen="ultimateCareer"], [data-screen="shortCareer"]) .career-wallet {
    order: 2;
  }
:is([data-screen="career"], [data-screen="mediumCareer"], [data-screen="ultimateCareer"], [data-screen="shortCareer"]) .career-toast {
    grid-area: toast;
    margin-bottom: 8px;
    padding: 6px 10px;
    font-size: 12px;
  }
:is([data-screen="career"], [data-screen="mediumCareer"], [data-screen="ultimateCareer"], [data-screen="shortCareer"]) .hero-slot {
    grid-area: hero;
    align-self: stretch;
    margin: 0;
  }
:is([data-screen="career"], [data-screen="mediumCareer"], [data-screen="ultimateCareer"], [data-screen="shortCareer"]) .country-hero {
    height: 100%;
  }
:is([data-screen="career"], [data-screen="mediumCareer"], [data-screen="ultimateCareer"], [data-screen="shortCareer"]) .screen-inner:has(> .hero-slot[hidden]) .career-toast,
  :is([data-screen="career"], [data-screen="mediumCareer"], [data-screen="ultimateCareer"], [data-screen="shortCareer"]) .hero-slot[hidden] + .card,
  :is([data-screen="career"], [data-screen="mediumCareer"], [data-screen="ultimateCareer"], [data-screen="shortCareer"]) .hero-slot[hidden] ~ .data-report-btn {
    grid-column: 1 / -1;
  }
:is([data-screen="career"], [data-screen="mediumCareer"], [data-screen="ultimateCareer"], [data-screen="shortCareer"]) .card {
    grid-area: card;
    margin-bottom: 0;
    padding: 12px 16px;
    max-height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
  }
:is([data-screen="career"], [data-screen="mediumCareer"], [data-screen="ultimateCareer"], [data-screen="shortCareer"]) .card h2 {
    font-size: 18px;
    margin-bottom: 2px;
  }
:is([data-screen="career"], [data-screen="mediumCareer"], [data-screen="ultimateCareer"], [data-screen="shortCareer"]) .card .subtitle {
    margin-bottom: 4px;
  }
:is([data-screen="career"], [data-screen="mediumCareer"], [data-screen="ultimateCareer"], [data-screen="shortCareer"]) .scroll-list {
    max-height: 150px;
  }
:is([data-screen="career"], [data-screen="mediumCareer"], [data-screen="ultimateCareer"], [data-screen="shortCareer"]) .card .btn {
    padding-top: 9px;
    padding-bottom: 9px;
    margin-top: 6px;
  }
}

.screen.portal-mode .card > :not(.portal-only) {
  display: none;
}

.consent-form .field-invalid {
  outline: 2px solid var(--danger);
  outline-offset: 4px;
  border-radius: 8px;
}

.icon-btn.has-claim {
  position: relative;
  border-color: var(--gold);
  animation: claim-blink 1s ease-in-out infinite;
}

.icon-btn .claim-dot {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #e0322b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg, #111);
}
