.dgw-directory,
.dgw-directory * {
  box-sizing: border-box;
}

.dgw-directory {
  --dgw-accent: #ff7a1a;
  --dgw-accent-2: #ff9b3d;
  --dgw-text: #ffffff;
  --dgw-muted: #bdb5aa;
  --dgw-border: rgba(255,255,255,0.08);
  --dgw-surface: #121318;
  --dgw-surface-2: #191b22;
  --dgw-surface-3: #0b0c10;
  --dgw-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  color: var(--dgw-text);
  width: 100%;
  max-width: 1160px;
  margin: 0 auto 40px;
  padding: 0 16px;
  font: inherit;
}

.dgw-shell {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 26px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.07);
  background:
    radial-gradient(circle at top center, rgba(255,122,26,0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255,122,26,0.06), transparent 28%),
    linear-gradient(180deg, #15161b 0%, #0c0d11 100%);
  box-shadow: var(--dgw-shadow);
  overflow: hidden;
}

.dgw-header {
  margin-bottom: 22px;
  padding: 8px 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.dgw-title,
.dgw-card-title,
.dgw-list-heading {
  margin: 0;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.dgw-title {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.dgw-intro {
  margin: 0 auto;
  max-width: 720px;
  color: #bdb4a6;
  line-height: 1.65;
  font-size: 1rem;
}

.dgw-list-section + .dgw-list-section {
  margin-top: 26px;
}

.dgw-list-heading {
  margin: 0 0 14px;
  text-align: center;
  font-size: 0.96rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.dgw-grid {
  display: grid;
  gap: 18px;
}

.dgw-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255,122,26,0.08), transparent 25%),
    linear-gradient(180deg, rgba(28,29,35,0.98) 0%, rgba(14,15,19,0.99) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.24);
}

.dgw-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dgw-stage-copy {
  min-width: 0;
}

.dgw-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,122,26,0.12);
  border: 1px solid rgba(255,154,61,0.22);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffd0aa;
  font-weight: 800;
  margin-bottom: 12px;
}

.dgw-card-title {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
}

.dgw-card-description {
  margin: 0 0 14px;
  color: #beb5a9;
  line-height: 1.62;
  max-width: 700px;
  font-size: 0.96rem;
}

.dgw-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dgw-meta span,
.dgw-countdown,
.dgw-entry-badge,
.dgw-form-note,
.dgw-task-note,
.dgw-closed-stat {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #f0ede7;
}

.dgw-meta span,
.dgw-countdown,
.dgw-entry-badge,
.dgw-form-note {
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.25;
  font-size: 0.85rem;
}

.dgw-stage-media {
  position: relative;
  width: 100%;
  max-width: 236px;
  min-height: 236px;
  margin-left: auto;
}

.dgw-wheel-wrap,
.dgw-image-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, #101115, #171920);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.dgw-wheel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 2;
}

.dgw-wheel-wrap.is-active,
.dgw-card.is-entered .dgw-wheel-wrap {
  opacity: 1;
  transform: scale(1);
}

.dgw-wheel-wrap.is-active + .dgw-image-card,
.dgw-card.is-entered .dgw-image-card {
  opacity: 0.16;
  transform: scale(0.985);
}

.dgw-wheel {
  width: calc(100% - 20px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 8px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 8px rgba(0,0,0,0.12), 0 18px 34px rgba(0,0,0,0.24);
  animation: dgw-spin 22s linear infinite;
}

.dgw-wheel.is-winning {
  animation: none;
}

.dgw-wheel svg {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 50%;
}

@keyframes dgw-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.dgw-pointer {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 22px solid #fff;
  z-index: 3;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.28));
}

.dgw-wheel-center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: linear-gradient(180deg, #17181d, #0e1014);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 30px rgba(0,0,0,0.28);
  text-align: center;
  z-index: 4;
  padding: 10px;
}

.dgw-wheel-center strong {
  display: block;
  font-size: 1.32rem;
  line-height: 1;
}

.dgw-wheel-center span {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #c1b8ac;
  line-height: 1.2;
}

.dgw-wheel-center.is-winner strong { max-width: 92px; overflow-wrap: anywhere; }
.dgw-wheel-center.is-short-name strong { font-size: 1rem; }
.dgw-wheel-center.is-medium-name strong { font-size: 0.9rem; }
.dgw-wheel-center.is-long-name strong { font-size: 0.78rem; }
.dgw-wheel-center.is-very-long-name strong { font-size: 0.66rem; }
.dgw-wheel-center.is-reveal { animation: dgw-reveal 0.48s ease; }

@keyframes dgw-reveal {
  0% { transform: translate(-50%, -50%) scale(0.84); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.dgw-image-card {
  overflow: hidden;
  transition: opacity 0.28s ease, transform 0.28s ease;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(19,20,25,0.98), rgba(12,13,17,0.98));
}

.dgw-image-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 10px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.24);
}

.dgw-entry-panel {
  padding: 18px 22px 22px;
}

.dgw-panel-section h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.dgw-panel-section p {
  margin: 0;
  color: #c2baaf;
  line-height: 1.58;
  font-size: 0.92rem;
}

.dgw-panel-section-intro {
  margin-bottom: 14px;
}

.dgw-entry-form {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
}

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

.dgw-form-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dgw-form-row span {
  color: #fff3e4;
  font-size: 0.8rem;
  font-weight: 700;
}

.dgw-form-row input {
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0e1014;
  color: #fff;
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.dgw-form-row input:focus {
  outline: none;
  border-color: rgba(255,154,61,0.55);
  box-shadow: 0 0 0 3px rgba(255,122,26,0.14);
}

.dgw-form-note {
  width: 100%;
  margin: 0;
  justify-content: center;
  text-align: center;
  color: #d7c7b6;
}

.dgw-submit {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  min-width: 190px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255,200,150,0.22);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(180deg, var(--dgw-accent-2), var(--dgw-accent));
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(255,122,26,0.22), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.dgw-submit:hover { transform: translateY(-1px); filter: brightness(1.03); }
.dgw-submit:active { transform: translateY(0); }

.dgw-entry-form .dgw-submit {
  margin-inline: auto;
}

.dgw-entry-state { margin: 0 0 14px; }

.dgw-entry-badge {
  width: 100%;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
}

.dgw-task-panel { margin-top: 8px; }
.dgw-panel-section-tasks { margin-bottom: 10px; }

.dgw-task-grid {
  display: grid;
  gap: 10px;
}

.dgw-task-card {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, #181a21, #101217);
  border-radius: 18px;
  padding: 12px 14px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  color: #fff;
  font: inherit;
  text-align: left;
  min-height: 58px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.dgw-task-card:hover:not(:disabled) {
  border-color: rgba(255,154,61,0.3);
  transform: translateY(-1px);
}

.dgw-task-card:disabled { cursor: default; }

.dgw-task-label {
  min-width: 0;
  font-weight: 700;
  line-height: 1.32;
  font-size: 0.92rem;
}

.dgw-task-points {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,122,26,0.09);
  border: 1px solid rgba(255,154,61,0.2);
  color: #ffd7b4;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.dgw-task-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: #f2ece3;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.dgw-task-card.is-available .dgw-task-status,
.dgw-task-card.dgw-task-card-daily.is-available .dgw-task-status {
  background: rgba(255,122,26,0.16);
  color: #fff3e5;
}

.dgw-task-card.is-claimed .dgw-task-status,
.dgw-task-card.dgw-task-card-daily.is-claimed .dgw-task-status {
  background: rgba(255,255,255,0.08);
  color: #ead8c6;
}

.dgw-task-card.is-verified .dgw-task-status {
  background: rgba(84,167,117,0.15);
  color: #deffe7;
}

.dgw-task-card.dgw-task-card-daily {
  background:
    linear-gradient(180deg, rgba(255,122,26,0.13), rgba(16,18,23,0.98));
  border-color: rgba(255,154,61,0.22);
}

.dgw-task-note-wrap {
  margin-top: 14px;
}

.dgw-task-note-line {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 12px;
}

.dgw-task-note {
  margin: 0;
  padding: 10px 14px;
  text-align: center;
  line-height: 1.45;
  font-size: 0.84rem;
  color: #d6cabd;
}

.dgw-feedback {
  display: none;
  width: 100%;
  margin-top: 10px;
  text-align: center;
  color: #ffe2c5;
  font-size: 0.9rem;
  line-height: 1.45;
}

.dgw-feedback.has-message {
  display: block;
}

.dgw-feedback.is-error {
  color: #ffcab1;
}

.dgw-closed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dgw-closed-stat {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dgw-closed-stat strong {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cfbda9;
}

.dgw-closed-stat span {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.dgw-support-note {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,154,61,0.16);
  background: linear-gradient(180deg, rgba(28,21,15,0.96), rgba(16,13,10,0.98));
  box-shadow: 0 20px 36px rgba(0,0,0,0.28);
}

.dgw-support-note strong {
  font-size: 0.92rem;
  color: #fff;
}

.dgw-support-note span {
  color: #d6c8b8;
  line-height: 1.5;
  font-size: 0.84rem;
}

.dgw-support-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #fff;
  cursor: pointer;
}

.dgw-empty {
  padding: 30px;
  text-align: center;
  color: #e8ddd0;
}

@media (max-width: 900px) {
  .dgw-shell { padding: 18px; border-radius: 24px; }
  .dgw-stage {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dgw-stage-media {
    margin: 0 auto;
    max-width: 220px;
    min-height: 220px;
  }
  .dgw-closed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dgw-directory { padding: 0 12px; }
  .dgw-shell { padding: 14px; }
  .dgw-title { font-size: 1.6rem; }
  .dgw-intro { font-size: 0.94rem; }
  .dgw-stage,
  .dgw-entry-panel { padding-left: 14px; padding-right: 14px; }
  .dgw-form-row {
    grid-template-columns: 1fr;
  }
  .dgw-task-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .dgw-task-status,
  .dgw-task-points {
    width: auto;
  }
  .dgw-closed-grid {
    grid-template-columns: 1fr;
  }
  .dgw-support-note {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}
