:root {
  --wosc-radius: 24px;
  --wosc-shadow: 0 24px 60px rgba(17, 24, 39, 0.16);
  --wosc-border: 1px solid rgba(255, 255, 255, 0.14);
  --wosc-card-bg: #ffffff;
  --wosc-button-bg: #f25a29;
  --wosc-button-text: #ffffff;
  --wosc-fields-text: #111111;
  --wosc-input-text: #111111;
  --wosc-placeholder-text: #6b7280;
  --wosc-fields-bg: #ffffff;
  --wosc-font: Inter, "Segoe UI", sans-serif;
}

.wosc-scratch-shell {
  padding: 20px 0;
}

.wosc-scratch-wrapper {
  max-width: var(--wosc-max-width, 620px);
  margin: 0 auto;
  padding: 26px;
  border-radius: calc(var(--wosc-radius) + 4px);
  background:
    radial-gradient(circle at top right, rgba(242, 90, 41, 0.18), transparent 32%),
    linear-gradient(180deg, #171717 0%, #1d1d1d 100%);
  box-shadow: var(--wosc-shadow);
  font-family: var(--wosc-font);
  color: #fff;
}

.wosc-card-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.wosc-kicker {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffd6ca;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

.wosc-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.02;
  color: #fff;
}

.wosc-intro {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 430px;
  line-height: 1.5;
}

.wosc-brand-logo {
  max-height: 46px;
  width: auto;
  object-fit: contain;
}

.wosc-form,
.wosc-game,
.wosc-post-card {
  background: var(--wosc-card-bg);
  color: var(--wosc-input-text) !important;
  border-radius: var(--wosc-radius);
  padding: 22px;
  border: var(--wosc-border);
}

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

.wosc-form-group--full {
  grid-column: 1 / -1;
}

.wosc-form-group,
.wosc-checkline,
.wosc-legal-text,
.wosc-form,
.wosc-form * {
  color: var(--wosc-input-text) !important;
}

.wosc-label,
.wosc-form .wosc-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}

.wosc-input,
.wosc-form .wosc-input {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: var(--wosc-fields-bg);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--wosc-input-text) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.wosc-input::placeholder,
.wosc-form .wosc-input::placeholder {
  color: var(--wosc-placeholder-text) !important;
  opacity: 1;
}


.wosc-form input[type="checkbox"] {
  accent-color: var(--wosc-button-bg);
}

.wosc-form .wosc-checkline,
.wosc-form .wosc-legal-text,
.wosc-form .wosc-checkline span,
.wosc-form .wosc-checkline strong,
.wosc-form .wosc-legal-text span,
.wosc-form .wosc-legal-text p,
.wosc-form .wosc-legal-text li {
  color: var(--wosc-fields-text) !important;
}

.wosc-input:focus {
  outline: none;
  border-color: rgba(242, 90, 41, 0.7);
  box-shadow: 0 0 0 4px rgba(242, 90, 41, 0.12);
}

.wosc-checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  margin-top: 14px;
}

.wosc-checkline a {
  color: #b5431d;
  font-weight: 700;
}

.wosc-legal-text {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.04);
  font-size: 13px;
  line-height: 1.55;
}

.wosc-button {
  margin-top: 18px;
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--wosc-button-bg) 0%, #ff7a4f 100%);
  color: var(--wosc-button-text);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(242, 90, 41, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wosc-button:hover,
.wosc-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(242, 90, 41, 0.36);
  outline: none;
}

.wosc-form-feedback {
  min-height: 20px;
  margin-top: 12px;
  font-size: 13px;
  color: #3f3f46;
}

.wosc-form-feedback.is-error {
  color: #b91c1c;
}

.wosc-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.wosc-stage-head__step {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(242, 90, 41, 0.12);
  color: #b5431d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.wosc-stage-head__hint {
  font-size: 13px;
  color: #52525b;
}

.wosc-canvas-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff5f1 0%, #ffffff 100%);
  min-height: 200px;
}

.wosc-prize-underlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(17, 24, 39, 0.1);
  text-transform: uppercase;
}

.wosc-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  touch-action: none;
  position: relative;
  z-index: 2;
}

.wosc-result-message {
  position: absolute;
  inset: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 18px;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.4;
  padding: 18px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 3;
  pointer-events: none;
}

.wosc-result-message.visible,
.wosc-show-result .wosc-result-message {
  opacity: 1;
  transform: translateY(0);
}

.wosc-code {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  font-size: 14px;
}

.wosc-post-card {
  margin-top: 18px;
}

.wosc-post-card__message {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.55;
}

.wosc-post-card__title {
  margin: 0 0 14px;
  font-size: 22px;
}

.wosc-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wosc-social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.wosc-social-pill:hover {
  transform: translateY(-1px);
}

.wosc-alert {
  max-width: var(--wosc-max-width, 620px);
  margin: 16px auto;
  padding: 16px 20px;
  border-radius: 16px;
  background: #fff7f7;
  color: #991b1b;
}

@media (max-width: 700px) {
  .wosc-scratch-wrapper {
    padding: 18px;
    border-radius: 24px;
  }

  .wosc-card-hero {
    flex-direction: column;
  }

  .wosc-form-grid {
    grid-template-columns: 1fr;
  }

  .wosc-title {
    font-size: 30px;
  }

  .wosc-stage-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.wosc-theme-light {
  background: linear-gradient(180deg, #f7f7f8 0%, #eceef2 100%);
  color: #111111;
}

.wosc-theme-light .wosc-kicker {
  background: rgba(17, 24, 39, 0.08);
  color: #b5431d;
}

.wosc-theme-light .wosc-title,
.wosc-theme-light .wosc-intro {
  color: #111111;
}

.wosc-theme-light .wosc-intro {
  color: rgba(17, 24, 39, 0.72);
}
