:root {
  --dtlm-ink: #1f2a37;
  --dtlm-muted: #6b7280;
  --dtlm-line: #e5e7eb;
  --dtlm-accent: #d4632f;
  --dtlm-accent-soft: #fff3ec;
  --dtlm-bg: #ffffff;
  --dtlm-success: #1f7a52;
  --dtlm-success-soft: #eef9f3;
  --dtlm-error: #b54708;
  --dtlm-error-soft: #fff4eb;
}

html,
body.dtlm-body,
body.page-template-default {
  background: #fff;
}

.dtlm-app {
  width: min(1000px, calc(100% - 32px));
  margin: 32px auto 56px;
  color: var(--dtlm-ink);
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
}

.dtlm-hidden {
  display: none;
}

.dtlm-card {
  background: var(--dtlm-bg);
  border: 1px solid var(--dtlm-line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.dtlm-hero {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.dtlm-kicker {
  margin: 0 0 10px;
  color: var(--dtlm-accent);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dtlm-play-head h2,
#dtlm-register h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
}

.dtlm-hero-text,
.dtlm-play-intro,
.dtlm-helper,
.dtlm-feedback,
.dtlm-lock {
  color: var(--dtlm-muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.dtlm-hero-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  justify-content: center;
}

.dtlm-hero-links a {
  color: var(--dtlm-accent);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.dtlm-hero-brand img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
}

#dtlm-register {
  margin-bottom: 24px;
}

.dtlm-register-text {
  margin: 14px auto 18px;
  max-width: 680px;
  color: var(--dtlm-muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.dtlm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dtlm-form-grid label,
.dtlm-input-label {
  display: block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: var(--dtlm-ink);
}

.dtlm-full {
  grid-column: 1 / -1;
}

.dtlm-form-grid input,
.dtlm-input-row input {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #d8e0e8;
  border-radius: 18px;
  padding: 16px 18px;
  font-size: 16px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  background: #fbfcfe;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.dtlm-input-row input:focus,
.dtlm-form-grid input:focus {
  outline: none;
  border-color: #d4632f;
  box-shadow: 0 0 0 4px rgba(212, 99, 47, 0.12);
  background: #fff;
}

.dtlm-button {
  border: 1px solid #bb5628;
  border-radius: 18px;
  background: #d4632f;
  color: #fff;
  padding: 16px 28px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(212, 99, 47, 0.22);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.dtlm-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(212, 99, 47, 0.18);
  background: #fff;
  border-color: #d4632f;
  color: #d4632f;
}

.dtlm-button:active {
  transform: translateY(0);
}

.dtlm-support-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.dtlm-support-card {
  text-align: center;
}

.dtlm-support-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.dtlm-support-card p {
  margin: 0 auto 16px;
  max-width: 760px;
  color: var(--dtlm-muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

.dtlm-cellule-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.dtlm-cellule-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #dbe3ec;
  border-radius: 9px;
  color: #1e293b;
  text-decoration: none;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s ease;
}

.dtlm-cellule-btn:hover {
  background: #eff6ff;
  border-color: #1e3a5f;
  color: #1e3a5f;
}

.rqth-accomp {
  background: #fff;
}

.rqth-accomp > p {
  margin-bottom: 14px;
}

.dtlm-intro-card {
  margin-bottom: 24px;
}

.dtlm-play-head {
  margin-bottom: 24px;
}

.dtlm-play-head h2 {
  font-size: clamp(32px, 3.6vw, 46px);
  margin-bottom: 12px;
}

.dtlm-score-line {
  margin: 0 0 18px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: var(--dtlm-muted);
}

.dtlm-score-line strong {
  color: var(--dtlm-ink);
  font-size: 22px;
}

.dtlm-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.dtlm-step {
  border: 1px solid #dde5ee;
  border-radius: 999px;
  padding: 14px 12px;
  background: #f4f7fb;
  text-align: center;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #66758a;
  cursor: pointer;
  appearance: none;
  width: 100%;
}

.dtlm-step.is-current {
  border-color: #9db9d6;
  background: #eaf3fb;
  color: #245a85;
  font-weight: 700;
}

.dtlm-step.is-done {
  border-color: #cfe2d6;
  background: #f1f7f3;
  color: #2f6b4f;
  font-weight: 700;
}

.dtlm-step.is-locked,
.dtlm-step:disabled {
  background: #f7f8fa;
  color: #b7c0cb;
  border-color: #e8edf2;
  cursor: default;
}

.dtlm-phrase-shell {
  border: 1px solid var(--dtlm-line);
  border-radius: 24px;
  padding: 28px;
  background: #fff;
}

.dtlm-phrase-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--dtlm-accent-soft);
  color: var(--dtlm-accent);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  margin-bottom: 18px;
}

.dtlm-phrase-text {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.35;
  margin: 0 0 24px;
}

.dtlm-blank,
.dtlm-answer-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 4px 12px;
  border-radius: 14px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.62em;
  font-weight: 700;
  vertical-align: middle;
}

.dtlm-blank {
  background: #f3f4f6;
  color: #9ca3af;
}

.dtlm-answer-chip {
  background: var(--dtlm-success-soft);
  color: var(--dtlm-success);
  font-size: 0.82em;
  min-width: 180px;
}

.dtlm-attempts h3 {
  margin: 18px 0 12px;
  font-size: 16px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.dtlm-attempt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.dtlm-attempt-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  background: #f3f4f6;
  color: var(--dtlm-ink);
}

.dtlm-attempt-chip.is-error {
  background: var(--dtlm-error-soft);
  color: var(--dtlm-error);
}

.dtlm-attempt-chip.is-success {
  background: var(--dtlm-success-soft);
  color: var(--dtlm-success);
}

.dtlm-guess-form {
  margin-top: 22px;
}

.dtlm-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 10px;
}

.dtlm-success-box {
  margin-top: 22px;
  padding: 20px;
  border-radius: 20px;
  background: var(--dtlm-success-soft);
  border: 1px solid #cfe8da;
  text-align: center;
}

.dtlm-success-box h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.dtlm-success-word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #dff4e7;
  color: var(--dtlm-success);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
}

.dtlm-success-box p {
  margin: 0 0 10px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

.dtlm-hint-box {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  text-align: center;
}

.dtlm-hint-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--dtlm-error);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.dtlm-hint-box p {
  margin: 0;
  color: var(--dtlm-ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

.dtlm-feedback {
  margin-top: 12px;
}

.dtlm-success {
  margin-top: 20px;
  margin-bottom: 12px;
  color: var(--dtlm-success);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
}

.dtlm-next-phrase {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .dtlm-hero-brand img {
    margin: 0;
    max-width: 220px;
  }
}

@media (max-width: 640px) {
  .dtlm-app {
    width: calc(100% - 20px);
    margin: 20px auto 40px;
  }

  .dtlm-card,
  .dtlm-phrase-shell {
    padding: 22px;
  }

  .dtlm-form-grid,
  .dtlm-input-row,
  .dtlm-steps {
    grid-template-columns: 1fr;
  }

  .dtlm-cellule-actions {
    flex-direction: column;
  }

  .dtlm-cellule-btn,
  .dtlm-button {
    width: 100%;
  }
}
