/* QuadroPlace launcher styles */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

:root {
  --qp-bg: #1a1a2e;
  --qp-surface: #16213e;
  --qp-surface-2: #0f3460;
  --qp-border: #334466;
  --qp-border-strong: #7090c0;
  --qp-highlight: #f0c040;
  --qp-text: #ccd6f6;
  --qp-text-dim: #7090a0;
  --qp-shadow: rgba(5, 8, 20, 0.55);
}

body.launcher {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(112, 144, 192, 0.22), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(240, 192, 64, 0.08), transparent 18%),
    linear-gradient(180deg, #202542 0%, #171a31 48%, #14172a 100%);
  color: var(--qp-text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body.launcher::before,
body.launcher::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.45;
}

body.launcher::before {
  top: 96px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(112, 144, 192, 0.34), transparent 68%);
}

body.launcher::after {
  right: -120px;
  bottom: 64px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(240, 192, 64, 0.16), transparent 68%);
}

body.launcher,
body.launcher button,
body.launcher input,
body.launcher a {
  font: inherit;
}

body.launcher button {
  -webkit-appearance: none;
  appearance: none;
}

body.launcher a {
  color: inherit;
  text-decoration: none;
}

body.launcher .launcher-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.launcher .launcher-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.75rem);
  border-bottom: 1px solid rgba(112, 144, 192, 0.14);
  background: rgba(10, 14, 30, 0.38);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.launcher .launcher-topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
}

body.launcher .launcher-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

body.launcher .launcher-brand__logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(48, 90, 170, 0.28);
}

body.launcher .launcher-brand__name {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #e2ebff;
}

body.launcher .launcher-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(240, 192, 64, 0.32);
  border-radius: 999px;
  background: rgba(240, 192, 64, 0.12);
  color: #f5d77d;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.launcher .launcher-rules-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.65rem 1.2rem;
  border: 1px solid rgba(68, 150, 108, 0.56);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(25, 78, 52, 0.96), rgba(18, 57, 38, 0.96));
  color: #8fdaa7;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(147, 219, 171, 0.08), 0 10px 24px rgba(5, 18, 11, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

body.launcher .launcher-rules-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(112, 196, 143, 0.86);
  background: linear-gradient(180deg, rgba(31, 94, 63, 0.98), rgba(21, 69, 46, 0.98));
  color: #c4f1d1;
  box-shadow: inset 0 0 0 1px rgba(164, 229, 185, 0.12), 0 14px 28px rgba(5, 18, 11, 0.28);
}

body.launcher .launcher-rules-btn--intro {
  border-color: rgba(185, 162, 102, 0.56);
  background: linear-gradient(180deg, rgba(101, 83, 44, 0.95), rgba(65, 53, 28, 0.95));
  color: #f5dfab;
}

body.launcher .launcher-rules-btn--intro:hover {
  border-color: rgba(234, 204, 136, 0.82);
  background: linear-gradient(180deg, rgba(122, 100, 53, 0.98), rgba(84, 67, 34, 0.98));
  color: #fff1cc;
  box-shadow: inset 0 0 0 1px rgba(255, 241, 204, 0.12), 0 14px 28px rgba(30, 20, 5, 0.26);
}

body.launcher .lnav-user {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.5rem;
  color: var(--qp-text-dim);
  font-size: 0.86rem;
  font-weight: 600;
}

body.launcher .lnav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(112, 144, 192, 0.25);
  border-radius: 999px;
  background: rgba(18, 29, 56, 0.62);
  color: #dce7ff;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 18px rgba(7, 10, 24, 0.18);
}

body.launcher .lnav-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(96, 201, 132, 0.18);
  border: 1px solid rgba(96, 201, 132, 0.45);
  color: #9af0ba;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

body.launcher .lnav-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(112, 144, 192, 0.55);
  background: rgba(32, 53, 96, 0.78);
  color: #ffffff;
}

body.launcher .lnav-btn--ghost,
body.launcher .lnav-btn--ghost:hover {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

body.launcher .lnav-btn--cta {
  border-color: rgba(112, 144, 192, 0.65);
  background: linear-gradient(135deg, #5f83c4 0%, #7ba0db 100%);
  color: #ffffff;
}

body.launcher .lnav-btn--cta:hover {
  border-color: rgba(146, 178, 226, 0.95);
  background: linear-gradient(135deg, #6d92d0 0%, #8bb0e8 100%);
}

body.launcher .launcher-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: clamp(2rem, 6vw, 4rem) 1rem 1.5rem;
}

body.launcher .launcher-seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 0 1rem 1.5rem;
}

body.launcher .launcher-seo-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.15rem, 2.6vw, 1.5rem);
  border: 1px solid rgba(112, 144, 192, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    rgba(16, 24, 45, 0.78);
  box-shadow: 0 18px 44px rgba(7, 10, 24, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.launcher .launcher-seo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(240, 192, 64, 0.11), transparent 34%);
}

body.launcher .launcher-seo-card>* {
  position: relative;
  z-index: 1;
}

body.launcher .launcher-seo-card h2 {
  margin: 0 0 0.65rem;
  color: #f1f5ff;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  line-height: 1.2;
}

body.launcher .launcher-seo-card p {
  margin: 0 0 0.8rem;
  color: rgba(220, 231, 255, 0.92);
  font-size: 0.96rem;
  line-height: 1.66;
}

body.launcher .launcher-seo-card__meta {
  margin-bottom: 0;
  color: rgba(158, 182, 228, 0.92);
  font-size: 0.88rem;
}

body.launcher .launcher-seo-list {
  margin: 0;
  padding-left: 1.15rem;
  color: rgba(220, 231, 255, 0.92);
}

body.launcher .launcher-seo-list li {
  margin: 0 0 0.62rem;
  line-height: 1.6;
}

body.launcher .launcher-seo-list li:last-child {
  margin-bottom: 0;
}

body.launcher .settings-box {
  --so-bg: rgba(20, 33, 63, 0.84);
  --so-border: rgba(112, 144, 192, 0.3);
  --so-border-strong: rgba(112, 144, 192, 0.52);
  --so-accent: #7090c0;
  --so-accent-hl: #f0c040;
  --so-opt-bg: rgba(112, 144, 192, 0.16);
  --so-opt-hover: rgba(112, 144, 192, 0.28);
  --so-opt-text: #dce7ff;
  --so-text: #d5e1ff;
  --so-start-color: #ffffff;

  position: relative;
  width: min(100%, 480px);
  padding: clamp(1.35rem, 4vw, 2rem);
  border: 1px solid var(--so-border);
  border-radius: 28px;
  font-family: "Segoe UI", system-ui, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 20%),
    var(--so-bg);
  box-shadow:
    0 24px 80px var(--qp-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

body.launcher .settings-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(240, 192, 64, 0.18), rgba(112, 144, 192, 0.2), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

body.launcher .settings-box[data-theme="easy"] {
  --so-bg: rgba(14, 30, 20, 0.9);
  --so-border: rgba(76, 175, 112, 0.32);
  --so-border-strong: rgba(76, 175, 112, 0.54);
  --so-accent: #63c984;
  --so-opt-bg: rgba(76, 175, 112, 0.14);
  --so-opt-hover: rgba(76, 175, 112, 0.24);
  --so-opt-text: #d4f6de;
  --so-text: #d6efdc;
  --so-label: #82b391;
  --so-start-bg: linear-gradient(135deg, #4cae71 0%, #67d58b 100%);
  --so-start-color: #08200f;
}

body.launcher .settings-box[data-theme="medium"] {
  --so-bg: rgba(28, 26, 18, 0.88);
  --so-border: rgba(200, 184, 122, 0.32);
  --so-border-strong: rgba(200, 184, 122, 0.56);
  --so-accent: #d6c080;
  --so-opt-bg: rgba(200, 184, 122, 0.14);
  --so-opt-hover: rgba(200, 184, 122, 0.24);
  --so-opt-text: #f3e6ba;
  --so-text: #eee4c7;
  --so-label: #b49e69;
  --so-start-bg: linear-gradient(135deg, #c3af72 0%, #dec88e 100%);
  --so-start-color: #1f1a0f;
}

body.launcher .settings-box[data-theme="hard"] {
  --so-start-bg: linear-gradient(135deg, #4f6798 0%, #6f89bf 100%);
  --so-start-color: #f3f7ff;
}

body.launcher .settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

body.launcher .settings-head__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

body.launcher .settings-head__logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(44, 81, 152, 0.26);
}

body.launcher .settings-head__copy {
  min-width: 0;
}

body.launcher .settings-head__eyebrow {
  color: var(--so-label);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.launcher .settings-head__title {
  margin: 0.12rem 0 0;
  color: #eef4ff;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1;
  letter-spacing: -0.04em;
}

body.launcher .settings-head__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

body.launcher .settings-version {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.8rem;
  border: 1px solid rgba(112, 144, 192, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(204, 214, 246, 0.74);
  font-size: 0.76rem;
  font-weight: 700;
}

body.launcher .settings-preview-note {
  margin-bottom: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(240, 192, 64, 0.18);
  border-radius: 16px;
  background: rgba(240, 192, 64, 0.08);
  color: #f2e4b3;
  font-size: 0.82rem;
  line-height: 1.55;
}

body.launcher .settings-section {
  margin-bottom: 1rem;
}

body.launcher .settings-section:last-of-type {
  margin-bottom: 0.4rem;
}

body.launcher .settings-section--inline {
  display: flex;
  align-items: center;
}

body.launcher .settings-label {
  margin-bottom: 0.5rem;
  color: var(--so-label);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.launcher .settings-player1-name,
body.launcher .settings-opt,
body.launcher .settings-start-btn,
body.launcher .resume-card,
body.launcher .resume-card__btn {
  font-family: "Segoe UI", system-ui, sans-serif;
}

body.launcher .settings-player1-name {
  color: var(--so-text);
  font-size: 1rem;
  font-weight: 700;
}

body.launcher .settings-opt--login {
  width: 100%;
}

body.launcher .settings-group {
  display: flex;
  gap: 0.55rem;
}

body.launcher .settings-group--wrap {
  flex-wrap: wrap;
}

body.launcher .settings-opt,
body.launcher .settings-start-btn,
body.launcher .settings-lang-btn,
body.launcher .mini-footer-item,
body.launcher .lang-choice-btn,
body.launcher .close-modal,
body.launcher .auth-panel__close,
body.launcher .control-button,
body.launcher .link-button {
  -webkit-appearance: none;
  appearance: none;
}

body.launcher .settings-opt {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--so-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--so-muted);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

body.launcher .settings-opt--premium {
  gap: 0.4rem;
}

body.launcher .settings-opt__lock {
  position: relative;
  display: inline-block;
  width: 0.82rem;
  height: 0.72rem;
  margin-top: 0.1rem;
  border-radius: 0.18rem;
  background: linear-gradient(180deg, #f6cf78 0%, #f0a93b 100%);
  box-shadow: inset 0 -1px 0 rgba(95, 52, 4, 0.24);
  flex: 0 0 0.82rem;
}

body.launcher .settings-opt__lock::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.52rem;
  width: 0.56rem;
  height: 0.48rem;
  border: 0.11rem solid #f7ddb0;
  border-bottom: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  transform: translateX(-50%);
  box-sizing: border-box;
}

body.launcher .settings-opt--premium-unlocked .settings-opt__lock {
  background: linear-gradient(180deg, #9fe6b5 0%, #58bc7a 100%);
  box-shadow: inset 0 -1px 0 rgba(8, 71, 28, 0.22);
}

body.launcher .settings-opt--premium-unlocked .settings-opt__lock::before {
  width: 0.52rem;
  border-color: #d9f6e2;
  transform: translateX(-62%) rotate(-28deg);
}

body.launcher .settings-opt:hover {
  transform: translateY(-1px);
  border-color: var(--so-border-strong);
  background: var(--so-opt-hover);
  color: var(--so-opt-text);
}

body.launcher .settings-opt.active {
  border-color: var(--so-border-strong);
  background: var(--so-opt-bg);
  color: var(--so-accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.launcher .p2-search-area {
  margin-top: 0.6rem;
}

body.launcher .p2-input,
body.launcher .auth-card input[type="email"],
body.launcher .auth-card input[type="text"],
body.launcher .auth-card input[type="password"],
body.launcher .modal-content input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0.78rem 0.92rem;
  border: 1px solid rgba(112, 144, 192, 0.22);
  border-radius: 14px;
  background: rgba(7, 11, 22, 0.5);
  color: var(--qp-text);
  -webkit-text-fill-color: var(--qp-text);
  caret-color: var(--qp-text);
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.launcher .auth-card input.is-invalid,
body.launcher .password-field.is-invalid input {
  border-color: rgba(255, 123, 91, 0.92);
  background: rgba(58, 14, 14, 0.38);
  box-shadow: 0 0 0 4px rgba(255, 123, 91, 0.12);
}

body.launcher .p2-input:focus,
body.launcher .auth-card input:focus,
body.launcher .modal-content input[type="email"]:focus {
  border-color: rgba(112, 144, 192, 0.6);
  background: rgba(10, 16, 31, 0.72);
  box-shadow: 0 0 0 4px rgba(112, 144, 192, 0.12);
}

body.launcher .p2-search-result {
  min-height: 1.2rem;
  margin-top: 0.4rem;
  font-size: 0.82rem;
}

body.launcher .p2-search-helper {
  margin-top: 0.4rem;
  color: var(--qp-text-dim);
}

body.launcher .p2-result-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(112, 144, 192, 0.24);
  border-radius: 12px;
  background: rgba(18, 29, 56, 0.62);
  color: var(--qp-text);
  cursor: pointer;
}

body.launcher .p2-result-option:hover {
  border-color: rgba(112, 144, 192, 0.5);
}

body.launcher .p2-found {
  color: #72d990;
}

body.launcher .p2-not-found {
  color: #ff8f8f;
}

body.launcher .settings-check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--so-text);
  font-size: 0.98rem;
  line-height: 1.35;
  cursor: pointer;
}

body.launcher .settings-check-label input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--so-accent);
  cursor: pointer;
}

body.launcher .settings-quick-pitch {
  margin: 1rem 0 0;
  color: #f4c691;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 1px 14px rgba(240, 169, 59, 0.18);
}

body.launcher .settings-start-btn {
  width: 100%;
  min-height: 56px;
  margin-top: 1.1rem;
  border: 0;
  border-radius: 16px;
  background: var(--so-start-bg);
  color: var(--so-start-color);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(9, 14, 30, 0.34);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body.launcher .settings-start-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 24px 46px rgba(9, 14, 30, 0.4);
}

body.launcher .launcher-value-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 0;
}

body.launcher .launcher-value-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(112, 144, 192, 0.22);
  border-radius: 16px;
  background: rgba(18, 29, 56, 0.52);
  color: #e4ecff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 12px 26px rgba(7, 10, 24, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.launcher .launcher-value-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: rgba(96, 201, 132, 0.18);
  border: 1px solid rgba(96, 201, 132, 0.42);
  color: #9af0ba;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 1.4rem;
}

body.launcher .settings-section--resume {
  margin-top: 1.1rem;
  margin-bottom: 0;
}

body.launcher .settings-section--invite-status {
  margin-top: 1rem;
}

body.launcher .settings-section--billing {
  margin-top: 1rem;
}

body.launcher .settings-section--billing-footer-action {
  display: flex;
  justify-content: center;
  margin-top: 1.15rem;
  margin-bottom: 0.2rem;
}

body.launcher .settings-section--billing-footer-action[hidden] {
  display: none !important;
}

body.launcher .billing-footer-action__btn {
  min-width: min(100%, 280px);
  min-height: 42px;
  padding: 0 1.2rem;
}

body.launcher .billing-card {
  display: grid;
  gap: 0.95rem;
  margin-top: 0.6rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(112, 144, 192, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

body.launcher .billing-card__copy {
  display: grid;
  gap: 0.45rem;
}

body.launcher .billing-card__title {
  color: var(--so-text);
  font-size: 0.96rem;
}

body.launcher .billing-card__body {
  margin: 0;
  color: var(--so-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

body.launcher .billing-card__notice {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(112, 144, 192, 0.18);
  border-radius: 14px;
  background: rgba(18, 29, 56, 0.4);
  color: var(--qp-text);
  font-size: 0.82rem;
  line-height: 1.45;
}

body.launcher .billing-card__notice--warning {
  border-color: rgba(240, 192, 64, 0.24);
  background: rgba(240, 192, 64, 0.08);
  color: #f2e4b3;
}

body.launcher .billing-card__notice--success {
  border-color: rgba(76, 175, 112, 0.28);
  background: rgba(76, 175, 112, 0.1);
  color: #d2f1dc;
}

body.launcher .billing-plan-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

body.launcher .billing-plan {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem;
  border: 1px solid rgba(112, 144, 192, 0.18);
  border-radius: 16px;
  background: rgba(18, 29, 56, 0.42);
}

body.launcher .billing-plan__badge {
  color: var(--so-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.launcher .billing-plan__title {
  color: var(--so-text);
  font-size: 0.94rem;
}

body.launcher .billing-plan__price {
  color: var(--so-muted);
  font-size: 0.82rem;
}

body.launcher .billing-plan__action {
  width: 100%;
}

body.launcher .billing-card__actions {
  display: flex;
  justify-content: flex-end;
}

body.launcher .billing-plan__action[disabled],
body.launcher .billing-card__actions .invite-status-card__action[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
}

body.launcher .invite-status-card {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.6rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(112, 144, 192, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

body.launcher .invite-status-card__title {
  color: var(--so-text);
  font-size: 0.96rem;
}

body.launcher .invite-status-card__meta,
body.launcher .invite-status-card__state {
  color: var(--so-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

body.launcher .invite-status-card__action {
  justify-self: start;
  min-height: 40px;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(112, 144, 192, 0.24);
  border-radius: 12px;
  background: rgba(18, 29, 56, 0.62);
  color: var(--qp-text);
  cursor: pointer;
}

body.launcher .invite-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

body.launcher .invite-modal-btn {
  min-width: 180px;
}

body.launcher .invite-waiting-overlay {
  position: fixed;
  inset: 0;
  z-index: 215;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(7, 12, 23, 0.36);
  backdrop-filter: blur(8px);
}

body.launcher .invite-waiting-overlay[hidden] {
  display: none;
}

body.launcher .invite-waiting-overlay__card {
  width: min(100%, 320px);
  padding: 1.25rem 1.2rem 1.1rem;
  border: 1px solid rgba(142, 179, 232, 0.24);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(20, 31, 56, 0.94), rgba(12, 20, 38, 0.96));
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
  text-align: center;
}

body.launcher .invite-waiting-orbit {
  --qp-orbit-size: 62px;
  --qp-orbit-dot-size: 10px;
  --qp-orbit-spin-duration: 2.2s;
  --qp-orbit-pulse-duration: 1.15s;
  margin: 0 auto 1rem;
}

body.launcher .invite-waiting-overlay__title {
  margin: 0;
  color: #eef4ff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

body.launcher .invite-waiting-overlay__meta {
  margin: 0.4rem 0 0;
  color: rgba(204, 214, 246, 0.76);
  font-size: 0.82rem;
  line-height: 1.55;
}

body.launcher .invite-waiting-overlay__actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

body.launcher .invite-waiting-overlay__cancel {
  min-width: 170px;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(143, 174, 221, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #eef4ff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

body.launcher .invite-waiting-overlay__cancel:hover,
body.launcher .invite-waiting-overlay__cancel:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(176, 201, 236, 0.54);
}

body.launcher .invite-waiting-overlay__cancel:disabled {
  opacity: 0.6;
  cursor: default;
}

body.launcher .resume-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.65rem;
}

body.launcher .resume-card {
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(112, 144, 192, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

body.launcher .resume-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}

body.launcher .resume-card__top strong {
  color: var(--so-text);
  font-size: 0.96rem;
}

body.launcher .resume-card__top span,
body.launcher .resume-card__meta {
  color: var(--so-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

body.launcher .resume-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 0.38rem;
}

body.launcher .resume-card__fact {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(112, 144, 192, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--so-muted);
  font-size: 0.79rem;
  line-height: 1.2;
}

body.launcher .resume-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

body.launcher .resume-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 0.82rem;
  border: 1px solid var(--so-border-strong);
  border-radius: 999px;
  background: var(--so-opt-bg);
  color: var(--so-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

body.launcher .resume-card__btn:hover {
  transform: translateY(-1px);
  border-color: var(--so-border-strong);
  background: var(--so-opt-hover);
}

body.launcher .resume-card__btn--danger {
  border-color: rgba(255, 143, 143, 0.35);
  background: rgba(120, 27, 27, 0.22);
  color: #ffd7d7;
}

body.launcher .resume-card__btn--danger:hover {
  border-color: rgba(255, 143, 143, 0.5);
  background: rgba(120, 27, 27, 0.3);
}

body.launcher .settings-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  margin: 0.8rem auto 0;
  padding: 0 0.9rem;
  border: 1px solid rgba(112, 144, 192, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--so-label);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

body.launcher .settings-lang-btn:hover {
  border-color: var(--so-border-strong);
  background: var(--so-opt-bg);
  color: var(--so-text);
}

body.launcher .settings-lang-btn--header {
  margin: 0;
}

body.launcher .mini-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.5rem;
  padding: 0.85rem 1rem 1.1rem;
}

body.launcher .mini-footer-item {
  border: 0;
  background: transparent;
  color: rgba(204, 214, 246, 0.62);
  font-size: 0.76rem;
  cursor: pointer;
  transition: color 0.18s ease, opacity 0.18s ease;
}

body.launcher .mini-footer-item:hover {
  color: #eef4ff;
}

body.launcher .mini-footer-item--danger {
  color: rgba(255, 186, 186, 0.82);
}

body.launcher .mini-footer-item--danger:hover {
  color: #ffdede;
}

body.launcher .mini-footer-sep {
  color: rgba(112, 144, 192, 0.32);
  font-size: 0.62rem;
  -webkit-user-select: none;
  user-select: none;
}

body.launcher #lang-chooser {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top, rgba(112, 144, 192, 0.24), transparent 30%),
    rgba(15, 19, 35, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

body.launcher #lang-chooser.show {
  display: flex;
}

body.launcher .lang-chooser__box {
  width: min(100%, 560px);
  padding: clamp(1.7rem, 5vw, 2.4rem);
  border: 1px solid rgba(112, 144, 192, 0.24);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(26, 40, 74, 0.92), rgba(20, 30, 55, 0.9));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  text-align: center;
}

body.launcher .lang-chooser__logo {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(48, 90, 170, 0.24);
  animation: qp-float 4s ease-in-out infinite;
}

body.launcher .lang-chooser__title {
  margin: 0;
  color: #eef4ff;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  font-weight: 800;
}

body.launcher .lang-chooser__subtitle {
  margin: 0.45rem 0 1.5rem;
  color: rgba(204, 214, 246, 0.72);
  font-size: 0.95rem;
}

body.launcher .lang-chooser__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

body.launcher .lang-choice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 0.7rem;
  border: 1px solid rgba(112, 144, 192, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: #dbe7ff;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

body.launcher .lang-choice-btn:hover,
body.launcher .lang-choice-btn.active {
  transform: translateY(-1px);
  border-color: rgba(112, 144, 192, 0.58);
  background: rgba(112, 144, 192, 0.14);
}

body.launcher .auth-panels,
body.launcher .modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  background: rgba(8, 10, 20, 0.84);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.launcher .auth-panels.is-active,
body.launcher .modal.show {
  display: flex;
}

body.launcher .auth-panel {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
}

body.launcher .auth-panel.is-active {
  display: flex;
}

body.launcher .auth-card,
body.launcher .modal-content {
  position: relative;
  width: min(100%, 420px);
  padding: 1.5rem;
  border: 1px solid rgba(112, 144, 192, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(23, 34, 63, 0.96), rgba(17, 25, 47, 0.96));
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.34);
}

body.launcher .modal-content--account-delete {
  width: min(100%, 560px);
}

body.launcher .account-delete-modal__warning {
  color: #ffd7d7;
  font-weight: 700;
}

body.launcher .account-delete-modal__status,
body.launcher .account-delete-modal__message {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(112, 144, 192, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--so-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

body.launcher .account-delete-modal__status[data-kind="success"],
body.launcher .account-delete-modal__message[data-kind="success"] {
  border-color: rgba(124, 224, 164, 0.24);
  color: #d9ffe2;
}

body.launcher .account-delete-modal__status[data-kind="warning"],
body.launcher .account-delete-modal__message[data-kind="warning"] {
  border-color: rgba(255, 194, 108, 0.24);
  color: #ffe7b8;
}

body.launcher .account-delete-modal__status[data-kind="error"],
body.launcher .account-delete-modal__message[data-kind="error"] {
  border-color: rgba(255, 143, 143, 0.28);
  color: #ffd7d7;
}

body.launcher .account-delete-modal__message:empty {
  display: none;
}

body.launcher .account-delete-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

body.launcher .account-delete-modal__actions--portal {
  justify-content: flex-start;
}

body.launcher #account-delete-portal-row[hidden],
body.launcher #account-delete-confirm-row[hidden],
body.launcher #account-delete-submit-button[hidden] {
  display: none !important;
}

body.launcher #account-delete-portal-button,
body.launcher #account-delete-cancel-button {
  border-color: rgba(124, 224, 164, 0.32);
  background: rgba(124, 224, 164, 0.12);
  color: #d9ffe2;
}

body.launcher #account-delete-portal-button:hover,
body.launcher #account-delete-cancel-button:hover {
  border-color: rgba(124, 224, 164, 0.48);
  background: rgba(124, 224, 164, 0.2);
}

body.launcher .account-delete-modal__confirm {
  margin-top: 1rem;
}

body.launcher .auth-panel__close,
body.launcher .close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(112, 144, 192, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--qp-text-dim);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

body.launcher .auth-panel__close:hover,
body.launcher .close-modal:hover {
  border-color: rgba(112, 144, 192, 0.56);
  background: rgba(112, 144, 192, 0.12);
  color: #eef4ff;
}

body.launcher .auth-card h3,
body.launcher .modal-header h3 {
  margin: 0 0 1rem;
  color: #eef4ff;
  font-size: 1.15rem;
}

body.launcher .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

body.launcher .auth-card label,
body.launcher .modal-content label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--qp-text-dim);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.launcher .auth-card label.is-invalid {
  color: #ffb19a;
}

body.launcher .password-field {
  position: relative;
  margin-bottom: 0.85rem;
}

body.launcher .password-field input {
  margin-bottom: 0;
  padding-right: 3rem;
}

body.launcher .password-toggle {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--qp-text-dim);
  cursor: pointer;
  z-index: 1;
}

body.launcher .password-toggle svg {
  width: 18px;
  height: 18px;
}

body.launcher .password-toggle:hover,
body.launcher .password-toggle:focus-visible {
  color: #eef4ff;
}

body.launcher .consent-field {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  color: rgba(204, 214, 246, 0.72);
  font-size: 0.82rem;
  line-height: 1.45;
}

body.launcher .consent-field--invalid {
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 123, 91, 0.82);
  border-radius: 14px;
  background: rgba(58, 14, 14, 0.28);
}

body.launcher .consent-field--invalid label,
body.launcher .consent-field--invalid a {
  color: #ffd2c7;
}

body.launcher .consent-field a {
  color: #9eb8ec;
}

body.launcher .consent-field a:hover {
  color: #ffffff;
}

body.launcher .control-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #5d83c6 0%, #7ea5e2 100%);
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

body.launcher .control-button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

body.launcher .learned-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

body.launcher .link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #9eb8ec;
  font-size: 0.84rem;
  cursor: pointer;
}

body.launcher .link-button:hover {
  color: #ffffff;
}

body.launcher .form-message {
  min-height: 1.1rem;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: #ff8f8f;
}

body.launcher .form-message.success {
  color: #72d990;
}

body.launcher .form-note,
body.launcher .modal-content p,
body.launcher .modal-body,
body.launcher .info-modal__body {
  color: rgba(204, 214, 246, 0.7);
  font-size: 0.84rem;
  line-height: 1.65;
}

body.launcher .form-note--password-rule {
  margin: -0.1rem 0 0.95rem;
  color: #ffb15c;
}

body.launcher .form-note--password-rule.is-invalid {
  color: #ff9c80;
}

body.launcher .info-modal__body strong {
  color: #eef4ff;
}

body.launcher .modal--rules {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  background: rgba(10, 15, 30, 0.90);
  padding: 20px 16px 24px;
  padding-top: clamp(1rem, 5vh, 3rem);
  padding-bottom: clamp(1rem, 5vh, 3rem);
}

body.launcher .modal--rules.show {
  display: flex;
}

body.launcher .modal--intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 210;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: clamp(1rem, 5vh, 2.5rem) 1rem;
  background:
    radial-gradient(circle at top, rgba(248, 208, 142, 0.18), transparent 34%),
    radial-gradient(circle at 18% 24%, rgba(120, 171, 145, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(11, 20, 31, 0.72), rgba(10, 14, 23, 0.92));
  backdrop-filter: blur(8px);
}

body.launcher .modal--intro.show {
  display: flex;
}

body.launcher .rules-box--launcher {
  width: 100%;
  max-width: 660px;
  margin: auto;
  padding: 28px 30px 34px;
  border: 1px solid rgba(112, 144, 192, 0.42);
  border-radius: 12px;
  background: rgba(22, 33, 62, 1);
  font-family: "Segoe UI", system-ui, sans-serif;
  position: relative;
  flex-shrink: 0;
}

body.launcher #close-launcher-rules-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(112, 144, 192, 0.42);
  border-radius: 50%;
  background: transparent;
  color: #ccd6f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  z-index: 1;
}

body.launcher #close-launcher-rules-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #f0c040;
  color: #f0c040;
}

body.launcher .intro-box {
  position: relative;
  width: min(100%, 720px);
  margin: auto;
  border: 1px solid rgba(229, 209, 168, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(246, 235, 214, 0.98) 0%, rgba(229, 214, 184, 0.96) 48%, rgba(210, 190, 154, 0.94) 100%);
  box-shadow: 0 26px 60px rgba(8, 13, 21, 0.34);
  max-height: min(calc(100vh - 2rem), 860px);
  overflow-y: auto;
}

body.launcher .intro-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.72) 0%, rgba(255, 247, 236, 0.38) 100%);
  pointer-events: none;
  z-index: 0;
}

body.launcher .intro-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 78%, rgba(255, 249, 241, 0.08), transparent 10%),
    radial-gradient(circle at 78% 82%, rgba(47, 41, 33, 0.08), transparent 10%);
  pointer-events: none;
  z-index: 0;
}

body.launcher #close-launcher-intro-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(90, 74, 37, 0.18);
  border-radius: 50%;
  background: rgba(255, 248, 236, 0.82);
  color: #5d4a28;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

body.launcher #close-launcher-intro-modal:hover {
  transform: translateY(-1px);
  background: rgba(255, 252, 244, 0.98);
  border-color: rgba(90, 74, 37, 0.34);
  color: #3f331b;
}

body.launcher .intro-box__content {
  position: relative;
  z-index: 1;
  padding: clamp(1.45rem, 4vw, 2rem) clamp(1.2rem, 4vw, 3rem) clamp(1.55rem, 4vw, 2.2rem);
  color: #37402f;
}

body.launcher .intro-box__content h2 {
  margin: 0 2.6rem 0.9rem 0;
  color: #243120;
  font-family: Arial, "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.48rem, 3.2vw, 2.08rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 700;
}

body.launcher .intro-box__content p {
  margin: 0 0 0.82rem;
  color: rgba(47, 57, 41, 0.94);
  font-family: Arial, "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(0.98rem, 1.7vw, 1.08rem);
  line-height: 1.72;
}

body.launcher .intro-box__content p:last-child {
  margin-bottom: 0;
}

body.launcher .intro-box__accent {
  margin-top: 1.1rem;
  color: #243120;
  font-family: Arial, "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.03rem, 1.9vw, 1.16rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.launcher .intro-box__signature-block {
  margin-top: 1.55rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(93, 74, 40, 0.16);
}

body.launcher .intro-box__closing {
  margin-bottom: 0.35rem;
  color: rgba(67, 57, 38, 0.92);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: italic;
}

body.launcher .intro-box__signature {
  margin: 0;
  color: #5c4120;
  text-align: right;
  font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-style: italic;
  line-height: 1.08;
  letter-spacing: 0.04em;
}

body.launcher .rules-content {
  display: none;
  max-width: 720px;
  margin: 0 auto;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body.launcher .rules-content.active {
  display: block;
}

body.launcher .rules-content h1 {
  margin: 0 0 22px;
  color: #f0c040;
  text-align: center;
  font-size: clamp(1.08rem, 2.5vw, 1.42rem);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

body.launcher .rules-content h2 {
  margin: 24px 0 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(210, 178, 120, 0.18);
  color: #e8e8e8;
  font-size: 0.8rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.launcher .rules-content p {
  max-width: 62ch;
  margin: 0 auto 10px;
  color: #ccd6f6;
  font-size: 0.89rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.78;
}

body.launcher .rules-content ul {
  max-width: 62ch;
  padding-left: 22px;
  margin: 0 auto 10px;
}

body.launcher .rules-content ul li {
  margin-bottom: 6px;
  color: #ccd6f6;
  font-size: 0.89rem;
  font-family: "Segoe UI",
    system-ui,
    sans-serif;
  line-height: 1.78;
}

body.launcher .rules-figure {
  margin: 18px auto 28px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  flex-wrap: wrap;
}

body.launcher .rules-figure__item {
  display: flex;
  justify-content: center;
  align-items: center;
}

body.launcher .rules-figure__image {
  display: block;
  max-width: min(100%, 332px);
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(210, 178, 120, 0.28);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  background: rgba(255, 255, 255, 0.03);
}

body.launcher .rules-figure__separator {
  font-size: 0.82rem;
  color: rgba(221, 199, 156, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  padding: 10px 2px;
  align-self: center;
}

body.launcher .rules-good-luck {
  margin-top: 22px;
  text-align: center;
  color: #f0cf8c;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.94rem;
}

body.launcher .zone-chip {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 5px;
  position: relative;
  top: -1px;
}

body.launcher .zone-chip.center {
  background: rgba(90, 170, 255, 0.55);
  border: 1px solid rgba(90, 170, 255, 0.9);
}

body.launcher .zone-chip.corner {
  background: rgba(80, 200, 110, 0.55);
  border: 1px solid rgba(80, 200, 110, 0.9);
}

body.launcher .rules-content strong {
  color: #f5e39d;
}

body.launcher .rules-info-bar {
  margin-top: 24px;
  padding: 12px 16px;
  border-top: 1px solid rgba(51, 68, 102, 1);
  text-align: center;
  color: #7090a0;
  font-size: 0.78rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.7;
}

body.launcher .rules-info-bar a {
  color: #7090a0;
  text-decoration: none;
}

body.launcher .rules-info-bar a:hover {
  color: #f0c040;
}

body.launcher .toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 9000;
  min-width: 220px;
  max-width: min(92vw, 420px);
  padding: 0.8rem 1.1rem;
  border: 1px solid rgba(112, 144, 192, 0.24);
  border-radius: 16px;
  background: rgba(22, 33, 62, 0.95);
  color: #eef4ff;
  text-align: center;
  transform: translateX(-50%) translateY(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

body.launcher .toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes qp-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

body.launcher .auth-card input:-webkit-autofill,
body.launcher .modal-content input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px #0a0e1c inset !important;
  -webkit-text-fill-color: #ccd6f6 !important;
  caret-color: #ccd6f6 !important;
}

@media (max-width: 720px) {
  body.launcher .launcher-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  body.launcher .launcher-topbar__actions {
    width: 100%;
    justify-content: flex-start;
  }

  body.launcher .launcher-rules-btn {
    width: 100%;
  }

  body.launcher .intro-box {
    border-radius: 22px;
  }

  body.launcher .intro-box__content {
    padding-top: 1.15rem;
    padding-bottom: 1.35rem;
  }

  body.launcher .intro-box__content h2 {
    margin-right: 2.2rem;
  }

  body.launcher .launcher-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  body.launcher .settings-box {
    width: min(100%, 520px);
  }
}

@media (max-width: 560px) {
  body.launcher .launcher-main {
    padding-top: 1.35rem;
  }

  body.launcher .launcher-seo-grid {
    grid-template-columns: 1fr;
    padding: 0 0.85rem 1.15rem;
  }

  body.launcher .lnav-btn {
    flex: 1 1 calc(50% - 0.45rem);
    min-width: 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.84rem;
  }

  body.launcher .settings-box {
    padding: 1.1rem;
    border-radius: 22px;
  }

  body.launcher .resume-card__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.18rem;
  }

  body.launcher .resume-card__facts {
    gap: 0.32rem 0.4rem;
  }

  body.launcher .settings-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.launcher .settings-head__meta {
    justify-content: flex-start;
  }

  body.launcher .settings-group {
    flex-direction: column;
  }

  body.launcher .billing-plan-list {
    grid-template-columns: 1fr;
  }

  body.launcher .billing-footer-action__btn {
    width: 100%;
  }

  body.launcher .lang-chooser__grid {
    grid-template-columns: 1fr;
  }
}