/* Pajudink Smegenis – vieninga sistema: šriftų dydžiai, mygtukai, žaidimų kortelės.
   Įkeliama paskutinė, todėl perrašo ankstesnius stilius. */

:root {
  --ui-radius: 16px;
  --ui-radius-sm: 10px;
  --ui-card: linear-gradient(145deg, rgba(32, 35, 29, .96), rgba(23, 25, 21, .96));
  --ui-line: #31352d;
  --ui-text: #f1f3ea;
  --ui-muted: #aeb3a5;
  --ui-faint: #8c9285;
  --ui-yellow: #ffd84d;
  --ui-green: #1db954;
  --ui-mint: #8cdb9f;
  --ui-fs-eyebrow: 11px;
  --ui-fs-small: 13px;
  --ui-fs-body: 15px;
  --ui-btn-h: 46px;
  --ui-btn-h-sm: 40px;
}

/* ---------- Mygtukai: viena sistema visoje svetainėje ---------- */
.button,
.lobby-game-action,
.ps-daily-button,
.dashboard-play,
.round-start-button,
.ps-cooldown-skip,
.credit-shop-continue {
  border-radius: 999px !important;
  font-family: var(--font) !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase;
}
.button {
  min-height: var(--ui-btn-h);
  padding: 0 24px;
  font-size: 13px;
  line-height: 1;
}
.button-small { min-height: var(--ui-btn-h-sm); padding: 0 18px; font-size: 12px; }
.button-large { min-height: 52px; padding: 0 28px; font-size: 14px; }
.button-outline {
  border: 1px solid #4a4f43 !important;
  background: rgba(255, 255, 255, .02);
  color: var(--ui-text);
}
.button-outline:hover { border-color: var(--ui-mint) !important; color: #fff; }

.lobby-game-action,
.ps-daily-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0 !important;
  min-height: var(--ui-btn-h-sm) !important;
  padding: 0 20px !important;
  border: 1px solid #4a4f43 !important;
  background: rgba(255, 255, 255, .04) !important;
  color: var(--ui-text) !important;
  font-size: 12px !important;
  white-space: nowrap;
  box-shadow: none !important;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.lobby-game-card:hover .lobby-game-action,
.lobby-game-card:focus-visible .lobby-game-action {
  border-color: var(--ui-yellow) !important;
  background: var(--ui-yellow) !important;
  color: #17170f !important;
}
/* Pagrindiniai žaidimai – ryškus geltonas veiksmas */
.lobby-game-grid .lobby-game-card[data-state="open"] .lobby-game-action,
.ps-daily:not(.is-done) .ps-daily-button {
  border-color: var(--ui-yellow) !important;
  background: var(--ui-yellow) !important;
  color: #17170f !important;
}
.lobby-game-grid .lobby-game-card[data-state="open"]:hover .lobby-game-action,
.ps-daily:not(.is-done) .ps-daily-button:hover { background: #ffe57d !important; }
.ps-daily-button:disabled { opacity: .6; cursor: default; filter: none; }

/* ---------- Bendri šriftų dydžiai ---------- */
.eyebrow,
.lobby-game-label,
.tile-kicker,
.city-label,
.leaderboard-period {
  font-size: var(--ui-fs-eyebrow) !important;
  letter-spacing: .12em !important;
  font-weight: 800 !important;
}
.lobby-game-badge,
.credit-cost-tag,
.status-pill {
  font-size: 11px !important;
  line-height: 1.1 !important;
}
.credit-cost-tag svg { flex-basis: 16px; width: 16px; height: 16px; }

/* ---------- Žaidėjo skydas: antraštės ---------- */
.dashboard-lobby .lobby-section-heading,
.dashboard-lobby .lobby-challenges-heading {
  display: block;
  margin: 34px 0 16px;
}
.dashboard-lobby .lobby-section-heading .eyebrow,
.dashboard-lobby .lobby-challenges-heading .eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--ui-mint);
}
.dashboard-lobby .lobby-section-heading h2,
.dashboard-lobby .lobby-challenges-heading h2 {
  margin: 0;
  color: var(--ui-text);
  font: 800 clamp(24px, 3vw, 32px)/1.15 var(--display);
  letter-spacing: -.02em;
  text-transform: none;
}
.dashboard-lobby .lobby-challenges { margin-top: 8px; }

/* ---------- Dienos, savaitės ir greitasis – viena eilė ---------- */
.dashboard-lobby .lobby-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.dashboard-lobby .lobby-game-grid > .lobby-game-card,
.dashboard-lobby .lobby-game-grid > .ps-daily {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  grid-column: auto !important;
  min-height: 250px;
  margin: 0;
  padding: 22px;
  border-radius: var(--ui-radius);
  text-align: left;
}
.dashboard-lobby .lobby-game-grid .lobby-game-icon,
.dashboard-lobby .ps-daily-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0;
  border-radius: 13px;
  font-size: 22px;
}
.dashboard-lobby .lobby-game-grid .lobby-game-icon svg { width: 24px; height: 24px; }
.dashboard-lobby .lobby-game-grid .lobby-game-badge {
  top: 22px;
  right: 22px;
  max-width: 58%;
  padding: 6px 10px;
}
.dashboard-lobby .lobby-game-grid .lobby-game-label { margin-top: 18px; }
.dashboard-lobby .lobby-game-grid > .lobby-game-card > strong,
.dashboard-lobby .ps-play-title {
  display: block;
  margin-top: 6px;
  color: var(--ui-text);
  font: 800 22px/1.2 var(--display) !important;
  letter-spacing: -.02em;
}
.dashboard-lobby .lobby-game-grid > .lobby-game-card > small,
.dashboard-lobby .ps-play-note {
  display: block;
  margin: 8px 0 0;
  color: var(--ui-muted);
  font-size: 14px !important;
  line-height: 1.5;
}
.dashboard-lobby .ps-play-note b { color: var(--ui-text); }
.dashboard-lobby .lobby-game-grid .lobby-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
}
.dashboard-lobby .lobby-card-footer > :first-child:not(:last-child),
.dashboard-lobby .challenge-card-footer > :first-child:not(:last-child),
.ps-landing-themes .challenge-card-footer > :first-child:not(:last-child) { margin-right: auto; }
.dashboard-lobby .quick-profile-stats span { font-size: 13px !important; }
.dashboard-lobby .quick-profile-stats b { font-size: 13px !important; }
.dashboard-lobby .quick-profile-link,
.dashboard-lobby .quick-level small,
.dashboard-lobby .quick-level span { font-size: 12px !important; }
.dashboard-lobby .weekly-game-countdown {
  margin-top: 12px;
  font-size: 13px;
}
.dashboard-lobby .weekly-game-countdown strong { font-size: 16px; }

/* Dienos klausimo kortelė tinklelyje */
.dashboard-lobby .lobby-game-grid > .ps-daily {
  gap: 0;
  border: 1px solid rgba(255, 216, 77, .45);
  background: radial-gradient(ellipse at 0 0, rgba(255, 216, 77, .14), transparent 60%), var(--ui-card);
  color: var(--ui-yellow);
}
.dashboard-lobby .lobby-game-grid > .ps-daily.is-done {
  border-color: var(--ui-line);
  background: var(--ui-card);
}
.dashboard-lobby .ps-play-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dashboard-lobby .ps-daily .lobby-game-label { color: var(--ui-yellow); }
.dashboard-lobby .ps-free-badge {
  position: static !important;
  max-width: none !important;
  border-color: rgba(255, 216, 77, .4) !important;
  background: rgba(255, 216, 77, .1) !important;
  color: var(--ui-yellow) !important;
}
.dashboard-lobby .ps-daily-icon { background: rgba(255, 216, 77, .12); border: 1px solid rgba(255, 216, 77, .35); }
.dashboard-lobby .ps-daily .ps-daily-streak { margin-top: 12px; gap: 6px 10px; }
.dashboard-lobby .ps-daily .ps-daily-streak strong { font-size: 13px; }
.dashboard-lobby .ps-daily .ps-daily-streak small { width: 100%; font-size: 12px; }

/* ---------- Teminių protmūšių kortelės (skydas ir pradžios puslapis) ---------- */
.dashboard-lobby .lobby-challenge-track,
.ps-landing-themes .lobby-challenge-track {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 14px !important;
  overflow: visible !important;
}
.dashboard-lobby .lobby-challenge-card,
.ps-landing-themes .lobby-challenge-card {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "badges badges"
    "icon label"
    "icon title"
    "desc desc"
    "foot foot";
  grid-template-rows: auto auto auto 1fr auto;
  column-gap: 14px;
  row-gap: 2px;
  align-content: start;
  min-height: 0 !important;
  height: 100%;
  padding: 18px !important;
  border-radius: var(--ui-radius) !important;
  text-align: left;
  text-decoration: none;
}
.dashboard-lobby .lobby-challenge-card[hidden],
.ps-landing-themes .lobby-challenge-card[hidden] { display: none !important; }
.dashboard-lobby .lobby-challenge-card .challenge-badge-row,
.ps-landing-themes .lobby-challenge-card .challenge-badge-row {
  grid-area: badges;
  position: static !important;
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 0 0 14px !important;
}
.dashboard-lobby .lobby-challenge-card .challenge-badge-row .lobby-game-badge,
.ps-landing-themes .lobby-challenge-card .challenge-badge-row .lobby-game-badge {
  position: static !important;
  max-width: none !important;
  padding: 6px 10px !important;
}
.dashboard-lobby .lobby-challenge-card .challenge-tag,
.ps-landing-themes .lobby-challenge-card .challenge-tag {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-lobby .lobby-challenge-card .credit-cost-tag,
.ps-landing-themes .lobby-challenge-card .credit-cost-tag {
  flex: 0 0 auto;
  margin-left: auto;
}
.dashboard-lobby .lobby-challenge-card .challenge-game-icon,
.ps-landing-themes .lobby-challenge-card .challenge-game-icon {
  grid-area: icon;
  align-self: center;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  border-radius: 13px !important;
}
.dashboard-lobby .lobby-challenge-card .challenge-game-icon svg,
.ps-landing-themes .lobby-challenge-card .challenge-game-icon svg { width: 26px; height: 26px; }
.dashboard-lobby .lobby-challenge-card .lobby-game-label,
.ps-landing-themes .lobby-challenge-card .lobby-game-label {
  grid-area: label;
  align-self: end;
  margin: 0 !important;
}
.dashboard-lobby .lobby-challenge-card > strong,
.ps-landing-themes .lobby-challenge-card > strong {
  grid-area: title;
  align-self: start;
  margin: 2px 0 0 !important;
  color: var(--ui-text);
  font: 800 18px/1.25 var(--display) !important;
  letter-spacing: -.01em;
}
.dashboard-lobby .lobby-challenge-card > small,
.ps-landing-themes .lobby-challenge-card > small {
  grid-area: desc;
  align-self: start;
  margin: 12px 0 0 !important;
  color: var(--ui-muted) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}
.dashboard-lobby .lobby-challenge-card .challenge-card-footer,
.ps-landing-themes .lobby-challenge-card .challenge-card-footer {
  grid-area: foot;
  position: static !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  margin: 16px 0 0 !important;
}
.challenge-filter-row label { font-size: 13px !important; }
.challenge-filter-row select { min-height: 44px; font-size: 14px !important; border-radius: var(--ui-radius-sm); }

/* ---------- Pradžios puslapis ---------- */
#landing-main .hero-intro { font-size: 16px; line-height: 1.7; max-width: 520px; }
#landing-main .section-heading { margin-bottom: 26px; }
#landing-main .game-grid.ps-play-grid {
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
#landing-main .game-tile { min-height: 260px; padding: 24px; border-radius: var(--ui-radius); }
#landing-main .tile-content { max-width: none; margin-top: 18px; }
#landing-main .tile-content h3 { font-size: clamp(24px, 2.4vw, 30px); }
#landing-main .tile-content p { max-width: 340px; font-size: 14px; line-height: 1.6; color: var(--ui-muted); }
#landing-main .countdown,
#landing-main .tile-note { font-size: 13px; }
#landing-main .status-pill { padding: 7px 10px; }
#landing-main .status-free { color: var(--ui-yellow); background: rgba(255, 216, 77, .12); }
#landing-main .status-free i { background: var(--ui-yellow); box-shadow: 0 0 10px rgba(255, 216, 77, .7); }
#landing-main .tile-daily::before { background: linear-gradient(90deg, transparent, rgba(255, 216, 77, .4), transparent); }
#landing-main .ps-themes-lead { font-size: 17px; }
#landing-main .ps-landing-more p { font-size: 15px; }

/* Reitingas per visą plotį */
#landing-main .arena-section.arena-wide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
#landing-main .arena-wide .arena-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "eyebrow eyebrow" "title side" "text side";
  column-gap: 40px;
  align-items: end;
}
#landing-main .arena-wide .arena-copy > .eyebrow { grid-area: eyebrow; }
#landing-main .arena-wide .arena-copy > h2 { grid-area: title; margin-bottom: 0; }
#landing-main .arena-wide .arena-copy > p { grid-area: text; max-width: 620px; margin-bottom: 0; font-size: 15px; line-height: 1.7; }
#landing-main .arena-wide .rank-steps { grid-area: side; align-self: center; flex-wrap: wrap; margin: 0; }
#landing-main .arena-wide .arena-copy > .button { display: none; }
#landing-main .rank-step { font-size: 13px; }
#landing-main .rank-icon { width: 32px; height: 32px; font-size: 15px; }
#landing-main .arena-wide .leaderboard-card { padding: 24px; }
#landing-main .leaderboard-head h3 { font-size: 22px; }
#landing-main .arena-wide .leader-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  column-gap: 24px;
}
#landing-main .leader-row,
#landing-main .leaderboard-card .leader-row-compact {
  height: auto;
  min-height: 58px;
  padding: 8px 10px;
}
#landing-main .leaderboard-card .leader-row-compact .leader-avatar { transform: none; }
#landing-main .leader-number { width: 24px; font-size: 13px; }
#landing-main .leader-avatar { width: 36px; height: 36px; font-size: 20px; }
#landing-main .leader-name { font-size: 15px; }
#landing-main .leader-name small { font-size: 12px; margin-top: 4px; }
#landing-main .leader-score { font-size: 17px; }
#landing-main .leader-score span { font-size: 11px; margin-left: 3px; }
#landing-main .leader-you { margin-top: 16px; padding: 12px 14px; font-size: 14px; border-radius: var(--ui-radius-sm); }
#landing-main .leader-you button { min-height: 38px; padding: 0 18px; font-size: 12px; letter-spacing: .06em; }
#landing-main .leaderboard-tabs { font-size: 12px; }
#landing-main .cta-section p { font-size: 15px; }

/* Poraštė */
.footer-bottom,
.footer-bottom a,
.footer-bottom span { font-size: 12px !important; }
.footer-bottom > div { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }

/* ---------- Planšetės ---------- */
@media (max-width: 1080px) {
  .dashboard-lobby .lobby-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-lobby .lobby-game-grid > .ps-daily { grid-column: 1 / -1 !important; min-height: 0; }
  #landing-main .game-grid.ps-play-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #landing-main .game-grid.ps-play-grid .tile-daily { grid-column: 1 / -1; min-height: 0; }
  #landing-main .arena-wide .arena-copy { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "text" "side"; row-gap: 14px; }
  #landing-main .arena-wide .rank-steps { justify-self: start; }
}

/* ---------- Telefonai ---------- */
@media (max-width: 640px) {
  :root { --ui-btn-h: 48px; }
  .dashboard-lobby .lobby-section-heading,
  .dashboard-lobby .lobby-challenges-heading { margin: 26px 0 12px; }
  .dashboard-lobby .lobby-game-grid { grid-template-columns: 1fr; gap: 12px; }
  .dashboard-lobby .lobby-game-grid > .lobby-game-card,
  .dashboard-lobby .lobby-game-grid > .ps-daily { min-height: 0; padding: 18px; }
  .dashboard-lobby .lobby-game-grid .lobby-game-badge { top: 18px; right: 18px; }
  .dashboard-lobby .lobby-game-grid > .lobby-game-card > strong,
  .dashboard-lobby .ps-play-title { font-size: 20px !important; }
  .dashboard-lobby .lobby-challenge-track,
  .ps-landing-themes .lobby-challenge-track { grid-template-columns: 1fr !important; gap: 12px !important; }
  .dashboard-lobby .lobby-challenge-card,
  .ps-landing-themes .lobby-challenge-card { padding: 16px !important; }
  .lobby-game-action,
  .ps-daily-button { min-height: 42px !important; padding: 0 18px !important; }
  .game-card-rating { font-size: 12px; }

  #landing-main .hero-intro { font-size: 15px; }
  #landing-main .hero-buttons { flex-wrap: wrap; }
  #landing-main .hero-buttons .button { flex: 1 1 auto; }
  #landing-main .game-grid.ps-play-grid { grid-template-columns: 1fr; }
  #landing-main .game-tile { min-height: 0; padding: 20px; }
  #landing-main .arena-wide .leader-list { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  #landing-main .arena-wide .leaderboard-card { padding: 16px; }
  #landing-main .leader-name { font-size: 14px; }
  #landing-main .ps-landing-more { gap: 14px; }
  #landing-main .ps-landing-more .button { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
}

/* ---------- Skydo viršutinė juosta ---------- */
.dashboard-account button,
.dashboard-games-nav,
.dashboard-profile-nav,
.dashboard-logout { font-size: 11px !important; letter-spacing: .08em !important; }
@media (max-width: 640px) {
  .dashboard-account {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px !important;
    width: 100%;
  }
  .dashboard-account .language-toggle { display: none !important; }
  .dashboard-account > button {
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 0 4px !important;
    font-size: 10.5px !important;
    letter-spacing: .04em !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dashboard-lobby .lobby-game-grid .lobby-card-footer .lobby-game-action,
  .dashboard-lobby .lobby-game-grid .ps-daily-button { flex: 1 1 auto; }
}

/* ---------- Profilis: minimalūs šriftų dydžiai ---------- */
.dashboard-profile-view .dashboard-stat > span,
.dashboard-profile-view .eyebrow { font-size: 11px !important; letter-spacing: .1em; }
.dashboard-profile-view .dashboard-stat small,
.dashboard-profile-view small,
.dashboard-profile-view .dashboard-welcome p { font-size: 13px !important; line-height: 1.5; }
.dashboard-profile-view .dashboard-welcome .eyebrow,
.dashboard-profile-view .dashboard-welcome span { font-size: 12px; }
.dashboard-view .back-to-lobby { min-height: 42px; padding: 0 18px; font-size: 12px !important; letter-spacing: .06em; }
.dashboard-profile-view .achievement-hint, .dashboard-profile-view p { font-size: 13px; }

/* ---------- iPhone (Safari): be priartinimo atidarant formas ----------
   Safari automatiškai priartina puslapį, kai paspaudžiamas laukas, kurio šriftas mažesnis nei 16 px.
   Telefonuose visiems įvedimo laukams nustatome 16 px. */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px !important;
  }
  .auth-form input,
  .auth-form select,
  .onboard-fields input,
  .onboard-fields select {
    height: 48px;
  }
}

/* Prisijungimo / registracijos langas telpa į matomą ekraną (ir su Safari juostomis) */
.modal-backdrop.open {
  align-items: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.auth-modal {
  max-height: 90vh;
  max-height: calc(100dvh - 32px);
  overscroll-behavior: contain;
}
@media (max-width: 640px) {
  .modal-backdrop { padding: 16px 12px; }
  .auth-modal { width: 100%; padding: 26px 20px 22px; }
  .auth-modal h2 { font-size: 24px; }
  .auth-subtitle { font-size: 14px; }
  .auth-form label,
  .field-label { font-size: 12px; }
  .auth-full { height: 50px; font-size: 13px; }
  .auth-legal,
  .auth-switch,
  .auth-switch button,
  .auth-error,
  .password-note { font-size: 13px; }
  .consent-choice { font-size: 13px; }
}

/* Miesto pasirinkimas registracijoje – tikras sąrašas (veikia ir iPhone Safari) */
.ps-city-select {
  -webkit-appearance: none !important;
  appearance: none !important;
  padding-right: 40px !important;
  background-color: #11130f !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23b3b7aa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 8px !important;
  color: #eef0e7;
  cursor: pointer;
}
.ps-city-select:invalid { color: #8a8f82; }
.ps-city-select option { color: #eef0e7; background: #191b17; }
.ps-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
  .auth-modal .onboard-fields { grid-template-columns: 1fr !important; }
  .auth-modal .onboard-fields > div { grid-column: auto !important; }
  .auth-modal .onboard-fields .auth-subtitle { margin-bottom: 4px; word-break: break-all; }
  .auth-modal .avatar-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}

/* ---------- Laikmatis: likus mažiau nei 25 % laiko – raudonas ---------- */
.question-timer { transition: color .3s ease, filter .3s ease; }
.question-timer.timer-warning {
  color: #ff5a4e !important;
  filter: drop-shadow(0 0 14px rgba(255, 90, 78, .45)) !important;
}
.question-timer.timer-warning .timer-ring-track { stroke: rgba(255, 90, 78, .22) !important; }
.question-timer.timer-warning .timer-ring-progress { stroke: #ff5a4e !important; }
.question-timer.timer-warning .timer-seconds { color: #ff7a6e; }
.ps-daily-timer.is-low { border-color: #ff5a4e !important; color: #ff7a6e !important; }
.ps-daily-timebar b { transition: width .25s linear, background .3s ease; }
.ps-daily-modal:has(.ps-daily-timer.is-low) .ps-daily-timebar b { background: linear-gradient(90deg, #ff5a4e, #ff8a5c) !important; }

/* Formų laukai visur ne mažesni nei 16 px – kitaip iPhone Safari priartina puslapį */
.auth-modal input:not([type="checkbox"]):not([type="radio"]),
.auth-modal select,
.auth-modal textarea,
.ps-modal input:not([type="checkbox"]):not([type="radio"]),
.ps-modal select,
.demo-open-answer input,
.challenge-filter-row select,
.ps-ranking select,
.dashboard-shell input:not([type="checkbox"]):not([type="radio"]),
.dashboard-shell select {
  font-size: 16px !important;
}
.auth-modal input::placeholder { font-size: 16px; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ---------- Slapukų pranešimas ---------- */
.ps-cookie {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 14px !important;
  width: min(760px, calc(100vw - 24px)) !important;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}
.ps-cookie-main { display: flex; align-items: center; gap: 18px; }
.ps-cookie-text { flex: 1 1 auto; }
.ps-cookie-text strong { font-size: 16px !important; }
.ps-cookie-text span { font-size: 14px !important; line-height: 1.55; }
.ps-cookie-actions { flex-wrap: wrap; justify-content: flex-end; }
.ps-cookie-actions button,
.ps-cookie-panel-actions button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px !important;
  font: 800 12px var(--font) !important;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}
.ps-cookie-link { border: 0; background: transparent; color: #8cdb9f; text-decoration: underline; text-underline-offset: 3px; }
.ps-cookie-panel { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid #2f332b; }
.ps-cookie-panel[hidden] { display: none; }
.ps-cookie-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; border: 1px solid #30342b; border-radius: 12px; background: rgba(255, 255, 255, .02);
  cursor: pointer;
}
.ps-cookie-row b { display: block; color: #f1f3ea; font-size: 14px; }
.ps-cookie-row small { display: block; margin-top: 3px; color: #a9ad9f; font-size: 13px; line-height: 1.45; }
.ps-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ps-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ps-switch i {
  position: relative; display: block; width: 46px; height: 26px; border-radius: 999px;
  background: #3a3e36; transition: background .2s ease;
}
.ps-switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #f1f3ea; transition: transform .2s ease;
}
.ps-switch input:checked + i { background: #1db954; }
.ps-switch input:checked + i::after { transform: translateX(20px); }
.ps-switch input:focus-visible + i { outline: 2px solid #8cdb9f; outline-offset: 2px; }
.ps-switch.is-locked i { opacity: .6; }
.ps-switch em { color: #8c9285; font-size: 12px; font-style: normal; }
.ps-cookie-panel-actions { display: flex; justify-content: flex-end; }
@media (max-width: 640px) {
  .ps-cookie-main { flex-direction: column; align-items: stretch; gap: 12px; }
  .ps-cookie-actions { display: grid !important; grid-template-columns: 1fr 1fr; }
  .ps-cookie-actions .ps-cookie-link { grid-column: 1 / -1; order: 3; }
  .ps-cookie-actions button { width: 100%; }
  .ps-cookie-panel-actions button { width: 100%; }
}

/* Poraštė be programėlių užrašo */
.footer-bottom .app-soon { display: none !important; }

/* Tarpas tarp titulinio mygtukų ir žaidimo kortelės (po „hero-benefit“ pašalinimo). */
#landing-main .hero-buttons { margin-bottom: 36px; }
@media (max-width: 900px) {
  #landing-main .hero-buttons { margin-bottom: 44px; }
}

/* Profilio kortelė: visa kortelė paspaudžiama, todėl atskiro „Peržiūrėti profilį“ teksto nebėra. */
.quick-profile-link { display: none !important; }
.quick-profile-card { cursor: pointer; }
@media (max-width: 760px) {
  .dashboard-lobby .quick-profile-card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }
  .dashboard-lobby .quick-profile-info { min-width: 0; }
  .dashboard-lobby .quick-profile-info h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dashboard-lobby .quick-profile-stats { flex-wrap: wrap; gap: 4px 12px; }
  .dashboard-lobby .quick-level { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Bandomasis žaidimas be registracijos ---------- */
.ps-guest-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 0 0 18px;
  padding: 26px 28px;
  border: 1px solid rgba(29, 185, 84, .55);
  border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(29, 185, 84, .18), transparent 60%), #1a1d18;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(29, 185, 84, .08);
}
.ps-guest-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--lime, #1db954);
  color: #0f130d;
  font: 800 11px var(--font);
  letter-spacing: 1.2px;
}
.ps-guest-badge i { font-style: normal; }
.ps-guest-banner h3 {
  margin: 14px 0 8px;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -1px;
  line-height: 1.1;
}
.ps-guest-banner p { margin: 0; color: #b3b8ab; font-size: 14px; line-height: 1.6; }
.ps-guest-banner .ps-guest-status { margin-top: 12px; color: #e8ebe2; }
.ps-guest-banner .ps-guest-status b { color: var(--cta-yellow, #ffd84d); }
.ps-guest-banner-actions { display: grid; gap: 10px; justify-items: stretch; }
.ps-guest-banner-actions .button { width: 100%; justify-content: center; }
.ps-guest-rounds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.ps-guest-rounds span {
  display: grid;
  gap: 2px;
  padding: 10px 6px;
  border: 1px solid #2f342b;
  border-radius: 12px;
  background: #151714;
  color: #9fa596;
  font-size: 12px;
  text-align: center;
}
.ps-guest-rounds b { color: #f1f3ec; font: 800 22px var(--display); }
.ps-locked-note { margin: 0 0 14px; color: #9a9f92; font-size: 13px; }
.ps-tile-lock {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border: 1px solid #3a3e35;
  border-radius: 999px;
  color: #b9bdb1;
  font-size: 11px;
  font-weight: 700;
}
.ps-tile-lock + .tile-kicker { display: block; }
@media (max-width: 760px) {
  .ps-guest-banner { grid-template-columns: 1fr; padding: 20px 18px; gap: 16px; }
  .ps-guest-banner p { font-size: 14px; }
}

/* Svečio žaidimo antraštė ir rezultatai */
.ps-guest-pill {
  padding: 7px 12px;
  border: 1px solid rgba(29, 185, 84, .5);
  border-radius: 999px;
  color: var(--lime, #1db954);
  font: 800 11px var(--font);
  letter-spacing: 1px;
}
.ps-guest-cta {
  max-width: 560px;
  margin: 22px auto 6px;
  padding: 22px 20px;
  border: 1px solid rgba(29, 185, 84, .5);
  border-radius: 18px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(29, 185, 84, .16), transparent 65%), #1a1d18;
  text-align: center;
}
.ps-guest-cta h2 { margin: 0 0 8px; font-family: var(--display); font-size: 24px; letter-spacing: -.6px; }
.ps-guest-cta p { margin: 0 auto 16px; max-width: 460px; color: #b3b8ab; font-size: 15px; line-height: 1.6; }
.ps-guest-cta p b { color: var(--cta-yellow, #ffd84d); }
.ps-guest-cta .button { width: 100%; max-width: 360px; justify-content: center; }
.ps-guest-login { display: block; margin: 12px auto 0; border: 0; background: none; color: #a9ae9f; font: 600 14px var(--font); text-decoration: underline; cursor: pointer; }
.ps-guest-carry { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: rgba(29, 185, 84, .12); color: #d9dfd2; font-size: 14px; }
.ps-guest-carry b { color: var(--lime, #1db954); }

/* Dalinimasis langeliais */
.ps-share-grid {
  display: inline-block;
  margin: 12px auto 0;
  padding: 12px 16px;
  border: 1px solid #2f342b;
  border-radius: 12px;
  background: #141613;
  color: #e5e8df;
  font: 600 15px/1.5 var(--font);
  text-align: left;
  white-space: pre-wrap;
}
.ps-share-grid:empty { display: none; }
.ps-share-messenger { display: inline-flex; align-items: center; gap: 8px; background: #0a7cff; border-color: #0a7cff; color: #fff; }
.ps-share-messenger svg { width: 18px; height: 18px; }
.ps-share-messenger:hover { border-color: #3b97ff; background: #1f88ff; }
.ps-share-status { min-height: 18px; margin: 10px 0 0; color: #9fd8b1; font-size: 13px; }
.ps-guest-banner [hidden], .ps-guest-cta [hidden], .ps-share [hidden] { display: none !important; }

/* Viešas TOP 10: laisvos vietos */
.leader-row-empty { opacity: .55; }
.leader-row-empty .leader-avatar { color: #6f7568; font-size: 16px; }

/* Titulinio SEO antraštė: mažas H1 (raktažodžiai), didelis šūkis – stilius toks pat kaip anksčiau */
.hero h1.hero-kicker { margin: 0; font-family: var(--font); font-weight: 700; line-height: 1.4; }
.hero .hero-h1 { margin-top: 23px; }

/* SEO tekstas apie protmūšius */
.ps-seo-intro { max-width: 1240px; margin: 0 auto; padding: 70px 34px 10px; }
.ps-seo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ps-seo-grid article { padding: 20px; border: 1px solid #2a2d26; border-radius: 16px; background: #1a1c18; }
.ps-seo-grid h3 { margin: 0 0 8px; font-family: var(--display); font-size: 19px; letter-spacing: -.4px; }
.ps-seo-grid p { margin: 0; color: #a3a89a; font-size: 14px; line-height: 1.65; }
@media (max-width: 1000px) { .ps-seo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ps-seo-intro { padding: 56px 21px 0; } .ps-seo-grid { grid-template-columns: 1fr; } }

/* ---------- Atsiliepimų forma ---------- */
.ps-feedback-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 18px 0 6px;
  padding: 16px 18px;
  border: 1px dashed rgba(29, 185, 84, .55);
  border-radius: 16px;
  background: rgba(29, 185, 84, .07);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.ps-feedback-banner:hover { background: rgba(29, 185, 84, .13); border-color: var(--lime, #1db954); }
.ps-feedback-banner-icon { font-size: 26px; }
.ps-feedback-banner b { display: block; font-size: 16px; margin-bottom: 2px; }
.ps-feedback-banner small { display: block; color: #a9ae9f; font-size: 14px; line-height: 1.45; }
.ps-feedback-banner-cta { color: var(--lime, #1db954); font-weight: 800; font-size: 13px; letter-spacing: .6px; white-space: nowrap; }
@media (max-width: 640px) {
  .ps-feedback-banner { grid-template-columns: auto 1fr; }
  .ps-feedback-banner-cta { grid-column: 1 / -1; }
}
button.feedback-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.ps-feedback-modal { max-width: 520px; text-align: left; }
.ps-feedback-modal h2 { margin-top: 6px; }
.ps-feedback-modal > p { color: #a9ae9f; font-size: 15px; line-height: 1.55; }
.ps-feedback-modal .game-ready-close { position: absolute; top: 12px; right: 14px; }
.ps-feedback-form textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  border: 1px solid #3a3f35;
  border-radius: 12px;
  background: #121411;
  color: #eef0ea;
  font: 16px/1.5 var(--font);
  resize: vertical;
  box-sizing: border-box;
}
.ps-feedback-form textarea:focus { outline: none; border-color: var(--lime, #1db954); }
.ps-feedback-meta { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0 14px; font-size: 13px; }
.ps-feedback-count { color: #8a8f82; white-space: nowrap; }
.ps-feedback-error { color: #ff8a7a; }

/* Naujienlaiškio jungiklis profilyje */
.ps-newsletter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 4px;
  padding: 14px 16px;
  border: 1px solid #30352c;
  border-radius: 14px;
  background: #151714;
  cursor: pointer;
}
.ps-newsletter-copy b { display: block; font-size: 15px; }
.ps-newsletter-copy small { display: block; margin-top: 3px; color: #9a9f92; font-size: 13px; line-height: 1.45; }
.ps-newsletter-status { min-height: 18px; margin: 4px 0 10px; color: #9fd8b1; font-size: 13px; }

/* Prisijungimas su Google */
.ps-google-wrap { display: grid; justify-items: center; gap: 6px; margin: 16px 0 4px; }
.ps-google-button { width: 100%; max-width: 400px; min-height: 44px; display: flex; justify-content: center; }
.ps-google-wrap .auth-error:empty { display: none; }
.ps-auth-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; color: #8a8f82; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; }
.ps-auth-divider::before, .ps-auth-divider::after { content: ""; flex: 1; height: 1px; background: #33372f; }
.ps-auth-divider[hidden], .ps-google-wrap[hidden] { display: none !important; }

/* Google mygtukas tamsiame fone: be balto iframe fono, tvarkingai apvalintas */
.ps-google-button { color-scheme: light; border-radius: 999px; overflow: hidden; }
.ps-google-button iframe { color-scheme: normal; background: transparent !important; display: block; margin: 0 auto !important; }
.ps-google-button > div { width: 100% !important; display: flex; justify-content: center; }
