* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    "YuGothic",
    "Segoe UI",
    sans-serif;
  color: #4b3328;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 196, 135, 0.65) 0, rgba(255, 196, 135, 0) 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 139, 123, 0.38) 0, rgba(255, 139, 123, 0) 26%),
    linear-gradient(135deg, #fff4e8 0%, #fffaf5 46%, #ffffff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 163, 104, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 163, 104, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
}

.site {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.hero {
  min-height: 38vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 54px 8px 22px;
}

.hero-inner {
  width: 100%;
}

.small-label {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b86e4b;
}

.account-id {
  margin: 0;
  font-size: clamp(48px, 13vw, 128px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: #e9784f;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.92),
    0 12px 28px rgba(233, 120, 79, 0.24),
    0 26px 70px rgba(233, 120, 79, 0.18);
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 12px 22px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f5a45f 0%, #ee7d57 55%, #e66f65 100%);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  box-shadow:
    0 12px 28px rgba(230, 111, 101, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.primary-link:active {
  transform: translateY(1px);
}

.cast-area {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 16px 0 60px;
}

.cast-bg-text {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  z-index: 0;
  font-size: clamp(52px, 16vw, 170px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: rgba(226, 116, 77, 0.07);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.cast-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 14px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 248, 243, 0.94) 100%);
  border: 1px solid rgba(231, 128, 88, 0.20);
  box-shadow:
    0 26px 60px rgba(140, 83, 56, 0.17),
    0 8px 20px rgba(140, 83, 56, 0.08);
  transform: rotate(-2deg);
  transform-origin: center center;
}

.cast-card::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 189, 123, 0.28), rgba(255, 130, 116, 0.16));
  transform: rotate(3deg);
}

.cast-frame-wrap {
  width: 100%;
  height: 450px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 190, 128, 0.28), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fff3ec 100%);
  box-shadow: inset 0 0 0 1px rgba(231, 128, 88, 0.10);
}

.cast-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
  background: #ffffff;
}

.cast-fallback-link {
  display: block;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f5a45f 0%, #ee7d57 55%, #e66f65 100%);
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.footer {
  padding: 0 16px 34px;
  text-align: center;
  color: #b86e4b;
}

.footer p {
  margin: 0;
}

.copyright {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.powered {
  margin-top: 7px !important;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: rgba(184, 110, 75, 0.70);
}

.powered a {
  color: rgba(184, 110, 75, 0.78);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 768px) {
  .site {
    padding-top: 18px;
  }

  .hero {
    min-height: 34vh;
    padding-top: 44px;
  }

  .cast-card {
    width: min(100%, 440px);
    transform: rotate(-1.5deg);
  }

  .cast-card::before {
    transform: rotate(2deg);
  }
}

@media (max-width: 480px) {
  .site {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    min-height: 32vh;
    padding-top: 38px;
    padding-bottom: 18px;
  }

  .small-label {
    font-size: 12px;
  }

  .account-id {
    font-size: clamp(46px, 16vw, 72px);
  }

  .primary-link {
    min-width: 120px;
    padding: 11px 18px;
    font-size: 14px;
  }

  .cast-area {
    padding-top: 8px;
  }

  .cast-card {
    width: min(100%, 350px);
    padding: 12px;
    border-radius: 24px;
    transform: rotate(-1deg);
  }

  .cast-card::before {
    inset: -6px;
    border-radius: 30px;
  }

  .cast-frame-wrap,
  .cast-frame-wrap iframe {
    height: 450px;
    border-radius: 16px;
  }

  .powered {
    font-size: 9.5px;
  }
}
