body.scratch-win-page {
  --radius: 14px;
  --scratch-gap: 10px;
  --primary: #e6007a;
  background: #ffcc99 !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: normal !important;
  padding: 0 var(--scratch-gap) !important;
  overflow-x: hidden;
}

body.scratch-win-page .logo {
  width: 100%;
  margin-top: 5px;
  margin-bottom: 10px;
  border-radius: var(--radius);
}

body.scratch-win-page .section {
  width: 100%;
  border-radius: var(--radius);
  margin-left: 0;
  margin-right: 0;
}

.scratch-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.scratch-box {
  background: #fc9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 29, 29, 0.7);
  margin-bottom: 10px;
  padding: 14px 12px;
  text-align: center;
}

.scratch-box.scratch-hero-box {
  margin-top: 10px;
}

.scratch-hero-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #e6007a;
  text-transform: uppercase;
}

.scratch-hero-sub {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #222;
}

.scratch-date-box {
  padding: 12px 16px;
}

.scratch-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.scratch-cal-icon {
  font-size: 18px;
  line-height: 1;
}

.scratch-date-text {
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
}

.scratch-date-hint {
  margin: 0;
  font-size: 11px;
  color: #222;
  font-weight: 500;
}

.scratch-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 29, 29, 0.7);
  box-shadow: none;
}

.scratch-tab {
  flex: 1 1 50%;
  border: 0;
  padding: 12px 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  cursor: pointer;
  background: #f3f3f3;
  color: #222;
  transition: background 0.2s ease, color 0.2s ease;
}

.scratch-tab.is-active {
  background: linear-gradient(90deg, #ff0080 0%, #7b2cbf 100%);
  color: #fff;
}

.scratch-tab-panel {
  display: none;
}

.scratch-tab-panel.is-active {
  display: block;
}

.scratch-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scratch-card {
  background: #fc9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 29, 29, 0.7);
}

.scratch-card-header {
  background: linear-gradient(90deg, #ff1a1a 0%, #ff7eb3 30%, #9b59ff 65%, #3366ff 100%);
  padding: 10px 12px;
  text-align: center;
}

.scratch-card-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #111;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.scratch-card-time {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #222;
  text-transform: none;
  letter-spacing: 0.2px;
}

.scratch-card-body {
  position: relative;
  min-height: 140px;
  background: linear-gradient(180deg, #ffe6c7 0%, #ffd9b0 100%);
}

.scratch-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 18px 16px;
  z-index: 1;
  background: #FFF8F1;
}

.scratch-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scratch-label {
  flex: 0 0 52px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.scratch-dots {
  flex: 1 1 auto;
  border-bottom: 2px dotted rgba(0, 0, 0, 0.35);
  min-width: 20px;
  height: 0;
  margin-top: 8px;
}

.scratch-value {
  flex: 0 1 auto;
  max-width: 58%;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  text-align: right;
  word-break: break-word;
  line-height: 1.3;
}

.scratch-lock-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffe6c7 0%, #ffd9b0 100%);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.scratch-card.is-unlocked .scratch-lock-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scratch-unlock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid #e89b4d;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  font-style: normal;
  padding: 10px 22px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.scratch-unlock-icon {
  font-size: 18px;
  line-height: 1;
}

.scratch-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.scratch-card.is-unlocked .scratch-canvas-wrap {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.scratch-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: pointer;
}

.scratch-prompt {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  color: #111;
  padding: 12px;
  transition: opacity 0.25s ease;
}

.scratch-prompt-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 4px;
}

.scratch-prompt strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 2px;
}

.scratch-prompt span:last-child {
  font-size: 13px;
  font-weight: 500;
}

.scratch-card.is-scratching .scratch-prompt {
  opacity: 0;
}

.scratch-card.is-revealed .scratch-canvas-wrap {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.scratch-empty {
  text-align: center;
  padding: 16px 12px;
  border-radius: var(--radius);
  background: #fc9;
  border: 1px solid rgba(255, 29, 29, 0.7);
}

.scratch-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}

.scratch-footer {
  margin: 10px 0 100px;
}

.scratch-footer-about {
  text-align: left;
}

.scratch-footer-about-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.scratch-footer-about p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #222;
  font-weight: 500;
}

.scratch-footer-about p:last-child {
  margin-bottom: 0;
}

.scratch-footer-zone {
  text-align: center;
}

.scratch-footer-zone-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.scratch-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.scratch-footer-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 29, 29, 0.7);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.scratch-footer-zone-sub {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
}

body.scratch-win-page .scratch-refresh-btn,
body.scratch-win-page .vip-zone-btn {
  position: fixed;
  bottom: 12px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid rgba(255, 29, 29, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.scratch-win-page .scratch-refresh-btn {
  right: 12px;
  left: auto;
  transform: none;
  background: #fff8f1;
  color: #111;
}

body.scratch-win-page .vip-zone-btn {
  left: 12px;
  right: auto;
  transform: none;
  background: #ff0016;
  color: #fff;
  border-color: #ff0016;
}

body.scratch-win-page .scratch-refresh-btn:active,
body.scratch-win-page .vip-zone-btn:active {
  transform: scale(0.98);
}

@media screen and (max-width: 480px) {
  .scratch-hero-title {
    font-size: 18px;
  }

  .scratch-card-header h2 {
    font-size: 15px;
  }

  .scratch-tab {
    font-size: 12px;
    padding: 10px 6px;
  }

  .scratch-prompt strong {
    font-size: 18px;
  }

  .scratch-label {
    flex-basis: 46px;
    font-size: 12px;
  }

  .scratch-value {
    font-size: 11px;
    max-width: 62%;
  }

  .scratch-card-body {
    min-height: 128px;
  }
}
