:root {
  --gate-bg: #eef1f7;
  --gate-bg-soft: #e7ebf4;
  --gate-card: rgba(255, 255, 255, 0.88);
  --gate-card-border: rgba(255, 255, 255, 0.92);
  --gate-text: #151a2d;
  --gate-muted: #5a6176;
  --gate-link: #1a48cf;
  --gate-accent-start: #ff8d35;
  --gate-accent-end: #ff4f18;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 520px at 12% -10%, #d9e0f4 0%, transparent 55%),
    radial-gradient(1000px 500px at 100% 0%, #f9dbc9 0%, transparent 45%),
    linear-gradient(180deg, var(--gate-bg) 0%, var(--gate-bg-soft) 100%);
  font-family: "PingFang SC", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gate-text);
}

.age-gate {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  box-sizing: border-box;
}

.age-gate__card {
  width: min(880px, 100%);
  border-radius: 28px;
  border: 1px solid var(--gate-card-border);
  background: var(--gate-card);
  box-shadow: 0 28px 60px rgba(36, 45, 80, 0.16);
  backdrop-filter: blur(8px);
  padding: 28px;
  box-sizing: border-box;
}

.age-gate__header {
  text-align: center;
}

.age-gate__eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #5c678c;
  background: rgba(44, 71, 154, 0.08);
}

.age-gate__title {
  margin: 14px 0 0;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.age-gate__subtitle {
  margin: 10px 0 0;
  color: var(--gate-muted);
  font-size: 15px;
  line-height: 1.5;
}

.age-gate__alert {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 246, 240, 0.95) 0%, rgba(255, 240, 231, 0.95) 100%);
  border: 1px solid rgba(255, 181, 139, 0.72);
}

.age-gate__tip {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.age-gate__tip + .age-gate__tip {
  margin-top: 4px;
  color: #51495e;
}

.age-gate__button {
  display: block;
  width: min(520px, 100%);
  margin: 20px auto 0;
  border: 0;
  border-radius: 14px;
  padding: 15px 20px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  background: linear-gradient(180deg, var(--gate-accent-start) 0%, var(--gate-accent-end) 100%);
  box-shadow: 0 12px 20px rgba(255, 95, 34, 0.32);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.age-gate__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 24px rgba(255, 95, 34, 0.34);
}

.age-gate__button:active {
  transform: translateY(1px);
}

.age-gate__section {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(244, 246, 253, 0.86);
  border: 1px solid rgba(189, 198, 228, 0.45);
}

.age-gate__section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #303958;
}

.age-gate__domain-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.age-gate__domain-chip {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--gate-link);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  background: #ffffff;
  border: 1px solid rgba(166, 179, 218, 0.5);
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.age-gate__domain-chip--home {
  color: #fff;
  background: linear-gradient(135deg, #3261e0 0%, #1e3db1 100%);
  border-color: transparent;
}

.age-gate__download-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.age-gate__download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.age-gate__download-btn:hover {
  transform: translateY(-1px);
}

.age-gate__download-btn--android {
  background: linear-gradient(135deg, #3ddc84 0%, #2aab5a 100%);
  box-shadow: 0 8px 16px rgba(45, 171, 90, 0.28);
}

.age-gate__download-btn--ios {
  background: linear-gradient(135deg, #5b5bd6 0%, #2f2f9e 100%);
  box-shadow: 0 8px 16px rgba(59, 59, 180, 0.28);
}

.age-gate__note {
  margin: 12px 0 0;
  font-size: 13px;
  color: #3f4760;
  line-height: 1.7;
}

.age-gate__mail {
  margin: 6px 0 0;
  font-size: 13px;
  color: #3f4760;
  line-height: 1.7;
}

.age-gate__mail-link {
  color: var(--gate-link);
  text-decoration: none;
  font-weight: 700;
}

.age-gate__qr-panel {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 186px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(185, 194, 226, 0.56);
}

.age-gate__qr {
  width: 186px;
  border: 0;
  border-radius: 14px;
  background: #f4f7ff;
  padding: 8px;
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden;
}

.age-gate__qr-canvas {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 10px;
  image-rendering: pixelated;
}

.age-gate__qr-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  min-width: 0;
}

.age-gate__qr-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
}

.age-gate__qr-text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gate-muted);
  font-weight: 600;
}

.age-gate__qr-hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6d7489;
}

.age-gate__foot {
  margin: 18px 0 2px;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: #4f566d;
}

.age-gate__foot-link {
  color: var(--gate-link);
  font-weight: 700;
}

@media (max-width: 900px) {
  .age-gate {
    align-items: flex-start;
    padding: 12px;
  }

  .age-gate__card {
    border-radius: 20px;
    padding: 18px;
  }

  .age-gate__title {
    font-size: 30px;
  }

  .age-gate__button {
    width: 100%;
    font-size: 20px;
    padding: 13px 14px;
  }

  .age-gate__section {
    padding: 14px;
  }

  .age-gate__domain-list,
  .age-gate__download-list {
    grid-template-columns: 1fr;
  }

  .age-gate__qr-panel {
    grid-template-columns: 1fr;
  }

  .age-gate__qr {
    width: min(170px, 100%);
    margin: 0 auto;
  }

  .age-gate__qr-side {
    text-align: center;
  }

  .age-gate__qr-title {
    font-size: 17px;
  }
}

@media (max-width: 430px) and (max-height: 700px) {
  .age-gate {
    min-height: 100svh;
    align-items: flex-start;
    padding: 6px;
  }

  .age-gate__card {
    border-radius: 14px;
    padding: 10px;
  }

  .age-gate__eyebrow {
    font-size: 10px;
    padding: 3px 8px;
  }

  .age-gate__title {
    margin-top: 6px;
    font-size: 24px;
  }

  .age-gate__subtitle {
    display: none;
  }

  .age-gate__alert {
    margin-top: 8px;
    padding: 8px;
    border-radius: 10px;
  }

  .age-gate__tip {
    font-size: 11px;
    line-height: 1.35;
  }

  .age-gate__button {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 16px;
    box-shadow: 0 8px 14px rgba(255, 95, 34, 0.28);
  }

  .age-gate__section {
    margin-top: 8px;
    padding: 8px;
    border-radius: 10px;
  }

  .age-gate__section-title {
    font-size: 11px;
  }

  .age-gate__domain-list,
  .age-gate__download-list {
    margin-top: 6px;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .age-gate__domain-chip,
  .age-gate__download-btn {
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 10px;
    line-height: 1.2;
  }

  .age-gate__note {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.45;
  }

  .age-gate__mail {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.45;
  }

  .age-gate__qr-panel {
    margin-top: 8px;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    border-radius: 10px;
  }

  .age-gate__qr {
    width: 86px;
    padding: 5px;
    border-radius: 8px;
  }

  .age-gate__qr-title {
    font-size: 12px;
    line-height: 1.3;
  }

  .age-gate__qr-text {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.4;
  }

  .age-gate__qr-hint {
    display: none;
  }

  .age-gate__foot {
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.45;
  }
}
