.kgsq-app {
  --kgsq-primary: #1eb7b9;
  --kgsq-primary-dark: #0f8f93;
  --kgsq-primary-deep: #085f66;
  --kgsq-primary-soft: #eafafa;
  --kgsq-accent: #ffcf94;
  --kgsq-accent-strong: #ff9d42;
  --kgsq-accent-deep: #f07c2f;
  --kgsq-accent-soft: #fff1de;
  --kgsq-accent-mist: #fff7ef;
  --kgsq-ink: #082538;
  --kgsq-ink-soft: #587089;
  --kgsq-muted: #5f6e81;
  --kgsq-border: rgba(255, 215, 171, 0.7);
  --kgsq-border-cool: rgba(175, 232, 233, 0.72);
  --kgsq-shadow: 0 22px 60px rgba(7, 38, 58, 0.12);
  --kgsq-shadow-strong: 0 28px 80px rgba(6, 34, 52, 0.2);
  font-family: "Noto Sans Hebrew", "Heebo", Arial, sans-serif;
  color: var(--kgsq-ink);
  direction: rtl;
}

.kgsq-app,
.kgsq-app * {
  box-sizing: border-box;
}

body.kgsq-overlay-open {
  overflow: hidden;
}

.kgsq-shell {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.kgsq-app--teaser {
  max-width: 100%;
}

.kgsq-app.kgsq-app--teaser .kgsq-teaser {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 18px;
  align-items: center;
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid rgba(255, 216, 176, 0.84);
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 18%, rgba(30, 183, 185, 0.18), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(255, 157, 66, 0.18), transparent 25%),
    linear-gradient(135deg, #ffffff 0%, #fffaf4 54%, #f6ffff 100%);
  box-shadow: 0 16px 42px rgba(7, 38, 58, 0.09);
}

.kgsq-app.kgsq-app--teaser .kgsq-teaser::after {
  content: "";
  position: absolute;
  inset: auto auto -48px -48px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 157, 66, 0.18), rgba(255, 157, 66, 0));
  pointer-events: none;
}

.kgsq-app.kgsq-app--teaser .kgsq-teaser__copy,
.kgsq-app.kgsq-app--teaser .kgsq-teaser__actions {
  position: relative;
  z-index: 1;
}

.kgsq-app.kgsq-app--teaser .kgsq-teaser__copy {
  display: grid;
  gap: 10px;
}

.kgsq-app.kgsq-app--teaser .kgsq-teaser h3 {
  margin: 0;
  font-size: clamp(22px, 3.4vw, 31px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--kgsq-ink);
}

.kgsq-app.kgsq-app--teaser .kgsq-teaser p {
  margin: 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--kgsq-muted);
}

.kgsq-app.kgsq-app--teaser .kgsq-teaser__actions {
  display: grid;
  gap: 8px;
  justify-items: start;
  align-content: center;
  margin: 0;
}

.kgsq-app.kgsq-app--teaser .kgsq-teaser__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent !important;
  background: linear-gradient(135deg, var(--kgsq-accent-strong), #ff7b42) !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(255, 157, 66, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  white-space: nowrap;
}

.kgsq-app.kgsq-app--teaser .kgsq-teaser__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 157, 66, 0.28);
  filter: saturate(1.04);
}

.kgsq-app.kgsq-app--teaser .kgsq-teaser__button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(30, 183, 185, 0.16),
    0 18px 36px rgba(255, 157, 66, 0.28);
}

.kgsq-app.kgsq-app--teaser .kgsq-teaser__note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 207, 148, 0.68);
  color: var(--kgsq-primary-deep);
  font-size: 13px;
  font-weight: 800;
}

.kgsq-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  padding: 30px;
  background:
    radial-gradient(circle at 12% 18%, rgba(30, 183, 185, 0.22), transparent 26%),
    radial-gradient(circle at 88% 22%, rgba(255, 157, 66, 0.22), transparent 24%),
    radial-gradient(circle at 80% 80%, rgba(255, 207, 148, 0.22), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #fffaf4 52%, #f6ffff 100%);
  border: 1px solid rgba(255, 216, 176, 0.8);
  border-radius: 32px;
  box-shadow: var(--kgsq-shadow);
}

.kgsq-hero::before,
.kgsq-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.kgsq-hero::before {
  inset: auto auto -80px -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 157, 66, 0.22), rgba(255, 157, 66, 0));
}

.kgsq-hero::after {
  inset: -70px -40px auto auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(30, 183, 185, 0.18), rgba(30, 183, 185, 0));
}

.kgsq-hero__content,
.kgsq-start {
  position: relative;
  z-index: 1;
}

.kgsq-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 244, 227, 0.88);
  color: #9a4b12;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.kgsq-hero h2 {
  margin: 16px 0 12px;
  font-size: clamp(30px, 5.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 900;
  color: var(--kgsq-ink);
}

.kgsq-hero p {
  margin: 0;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--kgsq-muted);
}

.kgsq-hero__chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.kgsq-hero__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 207, 148, 0.65);
  color: var(--kgsq-primary-deep);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(255, 157, 66, 0.08);
}

.kgsq-start {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 242, 0.94));
  border: 1px solid rgba(255, 216, 176, 0.72);
  box-shadow: 0 16px 38px rgba(7, 38, 58, 0.08);
}

.kgsq-start label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 800;
  color: var(--kgsq-ink);
}

.kgsq-start span {
  font-size: 15px;
}

.kgsq-start select,
.kgsq-start__submit,
.kgsq-option,
.kgsq-next,
.kgsq-ghost,
.kgsq-overlay__close {
  min-height: 56px;
  border-radius: 18px;
  font: inherit;
}

.kgsq-start select {
  width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(255, 207, 148, 0.82);
  background: #fff;
  color: var(--kgsq-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.kgsq-start select:focus-visible,
.kgsq-start__submit:focus-visible,
.kgsq-option:focus-visible,
.kgsq-next:focus-visible,
.kgsq-ghost:focus-visible,
.kgsq-overlay__close:focus-visible {
  outline: none;
  border-color: rgba(30, 183, 185, 0.82);
  box-shadow: 0 0 0 4px rgba(30, 183, 185, 0.16);
}

.kgsq-start__submit,
.kgsq-next {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--kgsq-accent-strong), #ff7b42);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(255, 157, 66, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.kgsq-start__submit:hover,
.kgsq-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(255, 157, 66, 0.3);
  filter: saturate(1.05);
}

.kgsq-start__submit[disabled] {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.kgsq-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.kgsq-overlay__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(30, 183, 185, 0.28), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 157, 66, 0.26), transparent 28%),
    linear-gradient(180deg, rgba(6, 34, 52, 0.88), rgba(8, 46, 68, 0.94));
  backdrop-filter: blur(14px);
}

.kgsq-overlay__dialog {
  position: relative;
  width: min(560px, calc(100% - 24px));
  height: calc(100dvh - 24px);
  margin: 12px auto;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--kgsq-shadow-strong);
  animation: kgsq-app-in 0.26s ease;
}

.kgsq-overlay__app {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 16% 14%, rgba(255, 157, 66, 0.14), transparent 26%),
    radial-gradient(circle at 84% 8%, rgba(30, 183, 185, 0.18), transparent 24%),
    radial-gradient(circle at 12% 92%, rgba(30, 183, 185, 0.09), transparent 24%),
    linear-gradient(180deg, #fffaf4 0%, #fff 30%, #f7ffff 100%);
  border: 1px solid rgba(255, 216, 176, 0.9);
}

.kgsq-overlay__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 253, 249, 0.72)),
    linear-gradient(90deg, rgba(255, 241, 222, 0.34), rgba(234, 250, 250, 0.24));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 216, 176, 0.75);
}

.kgsq-overlay__brand {
  display: grid;
  gap: 0;
  justify-items: start;
}

.kgsq-overlay__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--kgsq-ink-soft);
}

.kgsq-overlay__progress {
  display: flex;
  justify-content: flex-end;
}

.kgsq-overlay__progress span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 244, 230, 0.98), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(255, 207, 148, 0.82);
  color: #9a4b12;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(255, 157, 66, 0.08);
}

.kgsq-overlay__close {
  width: 48px;
  min-height: 48px;
  border: 1px solid rgba(255, 216, 176, 0.82);
  background: linear-gradient(180deg, #fff 0%, #fff7ec 100%);
  color: #9a4b12;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(255, 157, 66, 0.08);
}

.kgsq-overlay__close:hover {
  border-color: rgba(255, 157, 66, 0.82);
  background: linear-gradient(180deg, #fffaf2 0%, #ffe7c6 100%);
}

.kgsq-reels {
  position: relative;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-x;
}

.kgsq-reels__track {
  position: relative;
  height: 100%;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.kgsq-slide {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 100%;
  padding: 16px;
  overflow: hidden;
}

.kgsq-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  height: 100%;
  padding: 20px 24px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 251, 245, 0.98) 42%, rgba(246, 255, 255, 0.98) 100%);
  border: 1px solid rgba(255, 219, 182, 0.88);
  box-shadow:
    0 22px 58px rgba(7, 38, 58, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.kgsq-panel--question {
  background:
    linear-gradient(145deg, rgba(248, 253, 255, 0.99) 0%, rgba(240, 249, 255, 0.99) 42%, rgba(255, 255, 255, 0.98) 100%);
  border-color: rgba(182, 221, 239, 0.92);
}

.kgsq-panel--question::before {
  background: radial-gradient(circle, rgba(115, 190, 225, 0.16), rgba(115, 190, 225, 0));
}

.kgsq-panel::before {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 157, 66, 0.14), rgba(255, 157, 66, 0));
  pointer-events: none;
}

.kgsq-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 28%);
  pointer-events: none;
}

.kgsq-panel__top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.kgsq-panel__eyebrow,
.kgsq-slide__score span,
.kgsq-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.kgsq-panel__eyebrow {
  background: linear-gradient(180deg, rgba(255, 241, 222, 0.96), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(255, 207, 148, 0.75);
  color: #9a4b12;
}

.kgsq-panel--question .kgsq-panel__eyebrow {
  background: linear-gradient(180deg, rgba(238, 249, 255, 0.98), rgba(255, 255, 255, 0.94));
  border-color: rgba(178, 221, 241, 0.82);
  color: #126785;
}

.kgsq-panel__eyebrow--feedback.is-correct {
  background: linear-gradient(180deg, rgba(232, 248, 237, 0.98), rgba(255, 255, 255, 0.94));
  border-color: rgba(112, 201, 137, 0.55);
  color: #1f7a3a;
}

.kgsq-panel__eyebrow--feedback.is-wrong {
  background: linear-gradient(180deg, rgba(255, 239, 239, 0.98), rgba(255, 255, 255, 0.94));
  border-color: rgba(232, 127, 127, 0.5);
  color: #a43232;
}

.kgsq-panel__eyebrow--feedback.is-neutral {
  background: linear-gradient(180deg, rgba(234, 250, 250, 0.98), rgba(255, 255, 255, 0.94));
  border-color: rgba(120, 208, 210, 0.5);
  color: var(--kgsq-primary-deep);
}

.kgsq-slide__score {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.kgsq-slide__score span {
  background: rgba(30, 183, 185, 0.1);
  color: var(--kgsq-primary-deep);
}

.kgsq-slide--question .kgsq-slide__score span {
  background: linear-gradient(180deg, rgba(229, 246, 255, 0.96), rgba(245, 252, 255, 0.94));
  border: 1px solid rgba(184, 224, 242, 0.84);
  color: #0f6d8d;
}

.kgsq-panel__content {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  position: relative;
  z-index: 1;
  padding: 10px 6px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.kgsq-panel__content::-webkit-scrollbar {
  display: none;
}

.kgsq-panel h3 {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 31px);
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-weight: 900;
  color: var(--kgsq-ink);
  padding: 0.1em 0.18em 0.16em;
  max-inline-size: 100%;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.kgsq-slide--question .kgsq-panel__content {
  grid-template-rows: auto 1fr;
  gap: 12px;
  overflow: hidden;
  padding-bottom: 4px;
}

.kgsq-slide--question .kgsq-panel h3 {
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1.14;
  letter-spacing: -0.012em;
  padding: 0.06em 0.12em 0.1em;
}

.kgsq-panel p {
  margin: 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--kgsq-muted);
  text-wrap: pretty;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.kgsq-panel__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: var(--kgsq-ink-soft);
  font-size: 13px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.kgsq-slide--question .kgsq-panel__footer {
  display: none;
}

.kgsq-panel__footer--actions {
  justify-content: center;
  padding-top: 4px;
  gap: 12px;
  flex-wrap: wrap;
}

.kgsq-options {
  display: grid;
  gap: 12px;
}

.kgsq-slide--question .kgsq-options {
  align-content: end;
  gap: 10px;
}

.kgsq-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  min-height: 76px;
  border: 1px solid rgba(255, 219, 182, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 248, 238, 0.96));
  color: var(--kgsq-ink);
  text-align: right;
  cursor: pointer;
  white-space: normal;
  box-shadow:
    0 12px 26px rgba(255, 157, 66, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.kgsq-slide--question .kgsq-option {
  min-height: 64px;
  padding: 12px 16px;
  border-color: rgba(182, 221, 239, 0.88);
  background:
    linear-gradient(180deg, rgba(250, 254, 255, 0.99), rgba(239, 249, 255, 0.96));
  box-shadow:
    0 10px 22px rgba(71, 141, 180, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.kgsq-option:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 183, 185, 0.68);
  box-shadow: 0 18px 34px rgba(30, 183, 185, 0.14);
  background: linear-gradient(180deg, rgba(243, 255, 255, 1), rgba(255, 241, 222, 1));
}

.kgsq-slide--question .kgsq-option:hover {
  border-color: rgba(255, 157, 66, 0.86);
  box-shadow: 0 16px 28px rgba(255, 157, 66, 0.16);
  background: linear-gradient(180deg, rgba(255, 247, 233, 1), rgba(255, 236, 205, 1));
}

.kgsq-option[disabled] {
  cursor: default;
  opacity: 0.82;
}

.kgsq-option.is-selected {
  border-color: rgba(255, 157, 66, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 245, 230, 1), rgba(255, 232, 199, 1));
  box-shadow:
    0 16px 30px rgba(255, 157, 66, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.kgsq-option__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(234, 250, 250, 1), rgba(255, 255, 255, 1));
  color: var(--kgsq-primary-deep);
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(30, 183, 185, 0.08);
}

.kgsq-slide--question .kgsq-option__index {
  background: linear-gradient(180deg, rgba(230, 246, 255, 1), rgba(255, 255, 255, 1));
  color: #0f6d8d;
  box-shadow: inset 0 0 0 1px rgba(115, 190, 225, 0.16);
}

.kgsq-option__text {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.kgsq-slide--question .kgsq-option__text {
  font-size: 15px;
  line-height: 1.35;
}

.kgsq-badge.is-correct {
  background: rgba(34, 197, 94, 0.12);
  color: #1f7a3a;
}

.kgsq-badge.is-wrong {
  background: rgba(255, 157, 66, 0.16);
  color: #9a4b12;
}

.kgsq-badge.is-neutral {
  background: rgba(30, 183, 185, 0.12);
  color: var(--kgsq-primary-deep);
}

.kgsq-panel--feedback.is-correct {
  background:
    linear-gradient(145deg, rgba(246, 255, 248, 0.99) 0%, rgba(236, 250, 240, 0.99) 42%, rgba(255, 255, 255, 0.98) 100%);
  border-color: rgba(147, 214, 164, 0.72);
  box-shadow:
    0 22px 58px rgba(36, 122, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.kgsq-panel--feedback.is-correct::before {
  background: radial-gradient(circle, rgba(88, 192, 117, 0.16), rgba(88, 192, 117, 0));
}

.kgsq-panel--feedback.is-wrong {
  background:
    linear-gradient(145deg, rgba(255, 247, 247, 0.99) 0%, rgba(255, 238, 238, 0.99) 42%, rgba(255, 255, 255, 0.98) 100%);
  border-color: rgba(233, 150, 150, 0.74);
  box-shadow:
    0 22px 58px rgba(164, 66, 66, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.kgsq-panel--feedback.is-wrong::before {
  background: radial-gradient(circle, rgba(230, 110, 110, 0.14), rgba(230, 110, 110, 0));
}

.kgsq-panel--feedback.is-neutral {
  background:
    linear-gradient(145deg, rgba(245, 255, 255, 0.99) 0%, rgba(236, 250, 250, 0.99) 42%, rgba(255, 255, 255, 0.98) 100%);
}

.kgsq-feedback__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.kgsq-feedback__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 207, 148, 0.84);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 243, 0.96));
  color: var(--kgsq-primary-deep);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(255, 157, 66, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.kgsq-feedback__links a:hover {
  transform: translateY(-1px);
  border-color: rgba(30, 183, 185, 0.62);
  background: linear-gradient(180deg, #ffffff 0%, #f7ffff 100%);
  box-shadow: 0 14px 24px rgba(30, 183, 185, 0.08);
}

.kgsq-ghost {
  min-width: 154px;
  max-width: 190px;
  margin-inline: auto;
  border: 1px solid rgba(255, 207, 148, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 243, 0.88));
  color: var(--kgsq-primary-deep);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(255, 157, 66, 0.05);
}

.kgsq-next {
  min-width: 132px;
  max-width: 168px;
  width: auto;
  margin-inline: auto;
  padding: 0 16px;
  min-height: 42px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, var(--kgsq-accent-strong), var(--kgsq-accent-deep));
  box-shadow:
    0 16px 28px rgba(255, 157, 66, 0.24),
    0 6px 14px rgba(255, 123, 66, 0.18);
  font-size: 15px;
}

.kgsq-next:hover {
  box-shadow:
    0 18px 30px rgba(255, 157, 66, 0.28),
    0 8px 18px rgba(255, 123, 66, 0.18);
}

.kgsq-next--secondary {
  max-width: 280px;
  background: linear-gradient(135deg, #18aeb3, #0f7f9a);
  box-shadow:
    0 16px 28px rgba(30, 183, 185, 0.22),
    0 6px 14px rgba(15, 127, 154, 0.16);
}

.kgsq-next--secondary:hover {
  box-shadow:
    0 18px 30px rgba(30, 183, 185, 0.26),
    0 8px 18px rgba(15, 127, 154, 0.16);
}

.kgsq-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kgsq-summary__grid div {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 255, 255, 0.95));
  border: 1px solid rgba(255, 207, 148, 0.66);
  box-shadow:
    0 12px 26px rgba(7, 38, 58, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.kgsq-summary__grid strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: var(--kgsq-ink);
}

.kgsq-summary__grid span {
  display: block;
  margin-top: 8px;
  color: var(--kgsq-muted);
  font-weight: 700;
}

.kgsq-summary__card.is-clickable {
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.kgsq-summary__card.is-clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 183, 185, 0.64);
  background:
    linear-gradient(180deg, rgba(242, 254, 255, 0.99), rgba(232, 248, 255, 0.96));
  box-shadow:
    0 18px 34px rgba(30, 183, 185, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.kgsq-panel--status {
  align-content: center;
  justify-items: center;
  text-align: center;
}

.kgsq-panel--status.is-loading {
  background: linear-gradient(180deg, rgba(250, 255, 255, 0.98), rgba(255, 249, 242, 0.98));
}

.kgsq-panel--status.is-error {
  background: linear-gradient(180deg, rgba(255, 248, 248, 0.98), rgba(255, 249, 242, 0.98));
}

.kgsq-overlay__hint {
  display: none !important;
}

@keyframes kgsq-app-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 920px) {
  .kgsq-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .kgsq-shell {
    width: calc(100% - 16px);
  }

  .kgsq-app.kgsq-app--teaser .kgsq-teaser {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 22px;
  }

  .kgsq-app.kgsq-app--teaser .kgsq-teaser__actions {
    justify-items: stretch;
  }

  .kgsq-app.kgsq-app--teaser .kgsq-teaser__button {
    width: 100%;
  }

  .kgsq-hero {
    padding: 20px;
    border-radius: 28px;
  }

  .kgsq-start {
    padding: 18px;
  }

  .kgsq-hero h2 {
    font-size: 42px;
  }

  .kgsq-overlay__dialog {
    width: 100%;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .kgsq-overlay__app {
    border-radius: 0;
  }

  .kgsq-overlay__head {
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .kgsq-slide {
    padding: 10px;
  }

  .kgsq-panel {
    padding: 16px 18px;
    border-radius: 26px;
  }

  .kgsq-slide--question .kgsq-panel {
    padding: 14px 16px;
  }

  .kgsq-panel h3 {
    font-size: clamp(21px, 6.8vw, 28px);
    line-height: 1.18;
    letter-spacing: -0.012em;
    padding-inline: 0.08em;
  }

  .kgsq-slide--question .kgsq-panel h3 {
    font-size: clamp(20px, 5.9vw, 25px);
    line-height: 1.14;
  }

  .kgsq-panel p {
    font-size: 15px;
    line-height: 1.68;
  }

  .kgsq-summary__grid {
    grid-template-columns: 1fr;
  }

  .kgsq-next,
  .kgsq-ghost {
    min-width: 124px;
    max-width: 154px;
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }

  .kgsq-option__text {
    font-size: 15px;
  }

  .kgsq-option {
    min-height: 68px;
  }

  .kgsq-slide--question .kgsq-option {
    min-height: 60px;
    padding: 11px 14px;
  }

  .kgsq-slide--question .kgsq-option__text {
    font-size: 14px;
  }
}
