[data-ded-karkas-game] {
  --dk-green: var(--accent);
  --dk-green-dark: var(--accent-deep);
  --dk-orange: var(--accent);
  --dk-orange-dark: var(--accent-deep);
  --dk-cream: var(--bg);
  --dk-paper: var(--surface);
  --dk-ink: var(--ink);
  --dk-muted: var(--ink-muted);
  --dk-line: var(--line-strong);
  display: block;
  width: 100%;
  padding: 0 16px 18px 0;
  color: var(--dk-ink);
  font-family: inherit;
  background: transparent;
  overflow: visible;
}

[data-ded-karkas-game] * {
  box-sizing: border-box;
}

[data-ded-karkas-game] .dk-game__shell {
  width: 100%;
  margin: 0 auto;
}

[data-ded-karkas-game] .dk-game__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(18px, 3vw, 46px);
  align-items: stretch;
}

[data-ded-karkas-game] .dk-game__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3.5vw, 54px) clamp(8px, 1.5vw, 18px);
  text-align: center;
}

[data-ded-karkas-game] .dk-game__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--accent-deep);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-ded-karkas-game] .dk-game__title {
  width: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 0.96;
  text-align: center;
  text-wrap: balance;
}

[data-ded-karkas-game] .dk-game__subtitle {
  width: min(100%, 560px);
  margin: 14px auto 0;
  color: var(--ink-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

[data-ded-karkas-game] .dk-game__card {
  padding: clamp(7px, 1.2vw, 12px);
  border: 2px solid var(--card-border-unified);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

[data-ded-karkas-game] .dk-game__action {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

[data-ded-karkas-game] .dk-game__stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--radius-lg) - 8px);
  background: #fff;
  isolation: isolate;
}

[data-ded-karkas-game] .dk-game__scene-button {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  outline: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

[data-ded-karkas-game] .dk-game__scene-button:focus-visible {
  outline: 5px solid #ffb53f;
  outline-offset: -7px;
  border-radius: inherit;
}

[data-ded-karkas-game] .dk-game__scene-image,
[data-ded-karkas-game] .dk-game__dry-image,
[data-ded-karkas-game] .dk-game__ded-layer,
[data-ded-karkas-game] .dk-game__motion-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

[data-ded-karkas-game] .dk-game__scene-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

[data-ded-karkas-game] .dk-game__dry-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  clip-path: polygon(5% 63%, 41% 62%, 72% 67%, 91% 76%, 99% 89%, 78% 90%, 44% 78%, 6% 82%);
}

[data-ded-karkas-game] .dk-game__motion-layer {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
}

[data-ded-karkas-game] .dk-game__ded-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  transform-origin: 41% 70%;
  will-change: transform;
}

[data-ded-karkas-game] .dk-game__steam {
  position: absolute;
  left: 45.4%;
  top: 50.3%;
  z-index: 4;
  width: 29.5%;
  height: 18%;
  opacity: 0.38;
  transform-origin: 100% 47%;
  pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 9px rgba(255, 183, 63, 0.55));
}

[data-ded-karkas-game] .dk-game__steam img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

[data-ded-karkas-game] .dk-game__particles {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

[data-ded-karkas-game] .dk-game__sound {
  position: absolute;
  top: clamp(10px, 2vw, 18px);
  right: clamp(10px, 2vw, 18px);
  z-index: 8;
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid rgba(36, 75, 50, 0.2);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface-strong);
  box-shadow: var(--shadow-button-stack-compact);
  cursor: pointer;
}

[data-ded-karkas-game] .dk-game__sound:hover,
[data-ded-karkas-game] .dk-game__sound:focus-visible {
  outline: 3px solid #ffb53f;
  outline-offset: 2px;
}

[data-ded-karkas-game] .dk-game__hint {
  position: absolute;
  left: 50%;
  bottom: 17%;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--accent-soft);
  box-shadow: var(--shadow-button-stack-compact);
  font-size: clamp(13px, 2vw, 16px);
  font-weight: 800;
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
}

[data-ded-karkas-game] .dk-game__hint[hidden] {
  display: none;
}

[data-ded-karkas-game] .dk-game__finish-note {
  position: absolute;
  left: 50%;
  bottom: 8%;
  z-index: 8;
  width: min(90%, 560px);
  padding: 13px 18px;
  border-radius: 16px;
  color: var(--ink);
  background: var(--accent-soft);
  box-shadow: var(--shadow-button-stack-compact);
  font-size: clamp(16px, 2.3vw, 22px);
  font-weight: 900;
  text-align: center;
  transform: translateX(-50%);
}

[data-ded-karkas-game] .dk-game__finish-note[hidden] {
  display: none;
}

[data-ded-karkas-game] .dk-game__status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px clamp(10px, 2vw, 18px) 6px;
}

[data-ded-karkas-game] .dk-game__progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

[data-ded-karkas-game] .dk-game__progress-track {
  position: relative;
  height: 16px;
  overflow: hidden;
  border: 2px solid var(--card-border-unified);
  border-radius: 999px;
  background: var(--bg-muted);
}

[data-ded-karkas-game] .dk-game__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-button-top), var(--accent-button-bottom));
  transform-origin: left center;
}

[data-ded-karkas-game] .dk-game__moisture {
  display: grid;
  min-width: 116px;
  min-height: 76px;
  place-items: center;
  align-content: center;
  border: 2px solid var(--card-border-unified);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface-tint);
}

[data-ded-karkas-game] .dk-game__moisture-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-ded-karkas-game] .dk-game__moisture-value {
  font-family: "TildaSans Local", inherit;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

[data-ded-karkas-game] .dk-game__live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-ded-karkas-game] .dk-game__prize {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 3vw, 30px);
  width: min(720px, 100%);
  margin-right: auto;
  margin-left: auto;
  align-items: stretch;
  margin-top: clamp(18px, 3vw, 30px);
}

[data-ded-karkas-game] .dk-game__prize[hidden],
[data-ded-karkas-game] .dk-game__form-wrap[hidden] {
  display: none;
}

[data-ded-karkas-game] .dk-game__gift {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(24px, 4vw, 46px);
  overflow: hidden;
  border: 2px solid var(--card-border-unified);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

[data-ded-karkas-game] .dk-game__gift-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 18px;
  color: var(--ink);
  background: var(--accent-soft);
  font-size: 34px;
}

[data-ded-karkas-game] .dk-game__gift-label {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-ded-karkas-game] .dk-game__gift-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  line-height: 1;
}

[data-ded-karkas-game] .dk-game__gift-description {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.55;
}

[data-ded-karkas-game] .dk-game__claim {
  width: 100%;
  justify-content: center;
  min-height: 52px;
  margin-top: 24px;
  padding: 13px 24px;
  border: 2px solid var(--card-border-unified);
  border-radius: 18px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--accent-button-top) 0%, var(--accent-button-bottom) 100%);
  box-shadow: var(--shadow-button-stack-compact);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
}

[data-ded-karkas-game] .dk-game__claim:hover,
[data-ded-karkas-game] .dk-game__claim:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

[data-ded-karkas-game] .dk-game__form-wrap {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--dk-line);
  border-radius: 24px;
  background: var(--dk-paper);
  box-shadow: 0 20px 44px rgba(74, 43, 20, 0.1);
}

[data-ded-karkas-game] .dk-game__form-title {
  margin: 0 0 6px;
  color: var(--dk-green-dark);
  font-family: "TildaSans Local", inherit;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
}

[data-ded-karkas-game] .dk-game__form-copy {
  margin: 0 0 20px;
  color: var(--dk-muted);
  line-height: 1.5;
}

[data-ded-karkas-game] .dk-game__field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--dk-green-dark);
  font-size: 14px;
  font-weight: 800;
}

[data-ded-karkas-game] .dk-game__input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(36, 75, 50, 0.28);
  border-radius: 14px;
  color: var(--dk-ink);
  background: #fff;
  font: inherit;
  font-weight: 500;
}

[data-ded-karkas-game] .dk-game__input:focus-visible {
  border-color: var(--dk-green);
  outline: 3px solid rgba(255, 181, 63, 0.48);
  outline-offset: 1px;
}

[data-ded-karkas-game] .dk-game__consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 18px 0;
  color: var(--dk-muted);
  font-size: 13px;
  line-height: 1.45;
}

[data-ded-karkas-game] .dk-game__checkbox {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--dk-green);
}

[data-ded-karkas-game] .dk-game__consent-link {
  color: var(--dk-green-dark);
  font-weight: 800;
}

[data-ded-karkas-game] .dk-game__submit {
  width: 100%;
  min-height: 56px;
  padding: 13px 18px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(180deg, #d97b3d, var(--dk-orange-dark));
  box-shadow: 0 8px 0 #713410, 0 14px 22px rgba(113, 52, 16, 0.18);
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

[data-ded-karkas-game] .dk-game__submit:hover,
[data-ded-karkas-game] .dk-game__submit:focus-visible {
  outline: 3px solid #ffb53f;
  outline-offset: 3px;
}

[data-ded-karkas-game] .dk-game__submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

[data-ded-karkas-game] .dk-game__form-status {
  min-height: 22px;
  margin: 16px 0 0;
  color: #9b311b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

[data-ded-karkas-game][data-state="success"] .dk-game__form-status {
  color: var(--dk-green-dark);
}

[data-ded-karkas-game] .dk-game__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

[data-discuss-modal][data-discuss-variant="gift"] {
  padding: 16px;
}

[data-discuss-modal][data-discuss-variant="gift"] .project-discuss-modal__dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: clamp(16px, 2vw, 22px);
  overflow: auto;
}

[data-discuss-modal][data-discuss-variant="gift"] [data-discuss-title],
[data-discuss-modal][data-discuss-variant="gift"] [data-discuss-context] {
  display: block;
  max-width: 100%;
  margin-inline: auto;
  color: var(--ink);
  font-family: var(--font-heading);
  text-align: center;
}

[data-discuss-modal][data-discuss-variant="gift"] .eyebrow {
  display: none;
}

[data-discuss-modal][data-discuss-variant="gift"] [data-discuss-title] {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: clamp(1rem, 6vw, 2.05rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

[data-discuss-modal][data-discuss-variant="gift"] [data-discuss-context] {
  margin-bottom: 14px;
  font-size: clamp(0.94rem, 3.2vw, 1.12rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.lead-form--game-gift {
  gap: 10px;
  font-family: var(--font-body);
}

.lead-form--game-gift .field {
  gap: 4px;
}

.lead-form--game-gift .field label {
  font-size: 0.72rem;
}

.lead-form--game-gift .t-input {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 15px;
  font-family: var(--font-body);
  font-size: 0.94rem;
}

.lead-form--game-gift .t-input--game-gift-comment {
  height: 72px;
  min-height: 72px;
  resize: none;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(0.78rem, 2.5vw, 0.92rem);
  font-weight: 900;
  line-height: 1.22;
  text-transform: uppercase;
}

.lead-form--game-gift .lead-consents {
  gap: 6px;
}

.lead-form--game-gift .lead-consent {
  gap: 7px;
  font-size: 0.69rem;
  line-height: 1.28;
}

.lead-form--game-gift .lead-consent input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.lead-form--game-gift .lead-upload,
.lead-form--game-gift .form-note {
  display: none;
}

.lead-form--game-gift .t-submit {
  min-height: 46px;
  padding-block: 10px;
  background: linear-gradient(180deg, var(--accent-button-top) 0%, var(--accent-button-bottom) 100%);
  color: var(--ink);
}

.lead-form--game-gift .t-submit:hover,
.lead-form--game-gift .t-submit:focus-visible {
  background: linear-gradient(180deg, var(--accent-button-pressed-top) 0%, var(--accent-button-pressed-bottom) 100%);
  color: var(--ink);
}

.lead-form--game-gift .t-submit:active {
  background: linear-gradient(180deg, var(--accent-button-pressed-top) 0%, var(--accent-button-pressed-bottom) 100%);
}

@media (max-width: 767px) {
  [data-discuss-modal][data-discuss-variant="gift"] {
    place-items: center;
    padding: 12px;
  }

  [data-discuss-modal][data-discuss-variant="gift"] .project-discuss-modal__dialog {
    width: min(560px, calc(100vw - 24px));
    min-height: 0;
    max-height: calc(100dvh - 24px);
    padding: 14px 12px 12px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
  }

  [data-discuss-modal][data-discuss-variant="gift"] [data-discuss-title] {
    margin-bottom: 6px;
    font-size: clamp(1rem, 6vw, 1.45rem);
  }

  [data-discuss-modal][data-discuss-variant="gift"] [data-discuss-context] {
    margin-bottom: 10px;
    font-size: clamp(0.9rem, 3.8vw, 1rem);
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  [data-discuss-modal][data-discuss-variant="gift"] .project-discuss-modal__dialog {
    padding: 10px;
  }

  [data-discuss-modal][data-discuss-variant="gift"] [data-discuss-title] {
    font-size: clamp(0.94rem, 5.7vw, 1.2rem);
  }

  [data-discuss-modal][data-discuss-variant="gift"] [data-discuss-context] {
    margin-bottom: 6px;
    font-size: 0.8rem;
  }

  .lead-form--game-gift {
    gap: 6px;
  }

  .lead-form--game-gift .t-input {
    min-height: 40px;
    padding: 8px 10px;
  }

  .lead-form--game-gift .t-input--game-gift-comment {
    height: 54px;
    min-height: 54px;
    font-size: 0.72rem;
  }

  .lead-form--game-gift .lead-consent {
    font-size: 0.64rem;
    line-height: 1.18;
  }

  .lead-form--game-gift .t-submit {
    min-height: 40px;
  }
}

@media (max-width: 720px) {
  [data-ded-karkas-game] {
    padding: 0 10px 14px 0;
  }

  [data-ded-karkas-game] .dk-game__layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  [data-ded-karkas-game] .dk-game__heading {
    padding: 20px 14px 18px;
    text-align: center;
  }

  [data-ded-karkas-game] .dk-game__eyebrow {
    margin-bottom: 8px;
  }

  [data-ded-karkas-game] .dk-game__title {
    font-size: clamp(1.8rem, 8.4vw, 2.25rem);
  }

  [data-ded-karkas-game] .dk-game__subtitle {
    margin-top: 12px;
    font-size: 0.96rem;
  }

  [data-ded-karkas-game] .dk-game__card {
    padding: 5px;
    border-radius: 20px;
  }

  [data-ded-karkas-game] .dk-game__stage {
    border-radius: 16px;
  }

  [data-ded-karkas-game] .dk-game__sound {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  [data-ded-karkas-game] .dk-game__hint {
    bottom: 11%;
  }

  [data-ded-karkas-game] .dk-game__status {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 8px;
    padding-top: 12px;
  }

  [data-ded-karkas-game] .dk-game__moisture {
    min-width: 92px;
    min-height: 68px;
  }

  [data-ded-karkas-game] .dk-game__moisture-value {
    font-size: 27px;
  }

  [data-ded-karkas-game] .dk-game__prize {
    grid-template-columns: 1fr;
  }

  [data-ded-karkas-game] .dk-game__gift,
  [data-ded-karkas-game] .dk-game__form-wrap {
    border-radius: 20px;
  }
}

@media (max-width: 370px) {
  [data-ded-karkas-game] .dk-game__title {
    font-size: 32px;
  }

  [data-ded-karkas-game] .dk-game__subtitle {
    font-size: 15px;
  }

  [data-ded-karkas-game] .dk-game__progress-copy {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-ded-karkas-game] .dk-game__motion-layer,
  [data-ded-karkas-game] .dk-game__airflow,
  [data-ded-karkas-game] .dk-game__scene-image {
    will-change: auto;
  }
}
