:root {
  --gold-1: #f6d770;
  --gold-2: #f0b91f;
  --bg-dark: #080808;
  --text: #ffffff;
}

* { box-sizing: border-box; }
html, body {
  min-height: 100vh;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.18) 24%, rgba(0,0,0,0.34) 58%, rgba(0,0,0,0.46)),
    url("images/real-casino-backdrop.jpg") center top / cover no-repeat fixed,
    #050505;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.10) 28%, rgba(0,0,0,0.24) 62%, rgba(0,0,0,0.36)),
    url("images/real-casino-backdrop.jpg") center center / cover no-repeat;
  z-index: -2;
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/casino-bg-blur.jpg") center center / cover no-repeat;
  opacity: 0.18;
  mix-blend-mode: screen;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(255,224,136,0.08), transparent 24%),
    linear-gradient(180deg, rgba(255,214,110,0.03), transparent 18%, rgba(0,0,0,0.08) 45%, rgba(0,0,0,0.20));
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 18px 12px 40px;
  position: relative;
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.12) 55%, rgba(0,0,0,0.20));
}

.wrap {
  width: 100%;
  max-width: 460px;
  position: relative;
}

.wrap::before {
  content: "";
  position: absolute;
  inset: -8px -10px -18px;
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.16));
  opacity: 1;
  z-index: -1;
  box-shadow: 0 22px 44px rgba(0,0,0,0.26);
}

.top-rank {
  margin: 2px 0 8px;
  text-align: center;
  font-weight: 900;
  font-size: clamp(22px, 5.2vw, 34px);
  letter-spacing: -0.03em;
  color: #fff4be;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.9),
    0 0 10px rgba(255,214,104,0.45);
}

.header-art {
  margin: 0 auto 10px;
  max-width: 392px;
}

.header-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.55));
}

.bonus-chip {
  width: fit-content;
  margin: 0 auto 16px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.03em;
  color: #ffe6a0;
  background: linear-gradient(180deg, #7b5d2b, #b68d46 45%, #7c5621);
  border: 2px solid rgba(255,228,157,0.6);
  box-shadow:
    0 6px 16px rgba(0,0,0,0.34),
    inset 0 2px 0 rgba(255,255,255,0.22);
}

.hero {
  text-align: center;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 10.2vw, 74px);
  line-height: 0.96;
  font-weight: 1000;
  letter-spacing: -0.06em;
  text-shadow:
    0 4px 0 rgba(0,0,0,0.75),
    0 0 18px rgba(255,255,255,0.08);
}

.hero h1 span {
  color: #ffd14b;
  text-shadow:
    0 4px 0 rgba(79,42,0,0.95),
    0 0 22px rgba(255,196,0,0.35);
}

.hero p {
  margin: 14px auto 0;
  max-width: 420px;
  font-size: clamp(18px, 4.3vw, 26px);
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.glass-form {
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(24, 25, 31, 0.68), rgba(8, 10, 15, 0.82));
  border: 2px solid rgba(255, 215, 117, 0.24);
  box-shadow:
    0 20px 42px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(11px);
}

.field { display: block; }
.field + .field { margin-top: 14px; }
.label {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 900;
  color: #fff6d0;
}

.field-icon .label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.label-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  background: radial-gradient(circle at 30% 25%, #ffe49b, #d79619 68%, #8b5a00 100%);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.26),
    0 6px 12px rgba(0,0,0,0.28);
}

input, textarea {
  width: 100%;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 18px 20px;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(180deg, rgba(14, 16, 21, 0.88), rgba(20, 22, 30, 0.76));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 0 15px 25px rgba(255,255,255,0.05),
    0 10px 24px rgba(0,0,0,0.26);
  outline: none;
}

input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.62); }
input:focus, textarea:focus {
  border-color: rgba(255, 212, 105, 0.74);
  box-shadow:
    0 0 0 3px rgba(255, 195, 0, 0.18),
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 14px 28px rgba(0,0,0,0.34);
}
textarea { resize: vertical; min-height: 112px; }

.games { margin-top: 22px; }
.games h2 {
  margin: 0 0 14px;
  text-align: center;
  font-weight: 1000;
  font-size: clamp(28px, 6.2vw, 42px);
  color: #ffd560;
  text-shadow: 0 3px 0 rgba(0,0,0,0.78);
}

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

.game-card {
  display: block;
  cursor: pointer;
}
.game-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.card-ui {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 2px solid rgba(255,203,95,0.7);
  background: rgba(0,0,0,0.6);
  box-shadow: 0 12px 24px rgba(0,0,0,0.32);
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pick-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 3px solid #fff7cf;
  background: rgba(24, 15, 3, 0.6);
  box-shadow:
    0 4px 10px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.1);
  z-index: 2;
}

.pick-badge::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff6c3, #f8cf4f 58%, #c88609 100%);
  transform: scale(0);
  transition: transform .18s ease;
}

.card-ui img {
  display: block;
  width: 100%;
  aspect-ratio: 0.73 / 1;
  object-fit: cover;
}

.card-ui strong {
  display: block;
  text-align: center;
  padding: 10px 6px 12px;
  font-size: clamp(17px, 4vw, 26px);
  font-weight: 1000;
  color: #ffd76a;
  text-shadow: 0 2px 0 rgba(0,0,0,0.8);
}

.game-card input:checked + .card-ui {
  transform: translateY(-4px);
  border-color: #ffe6a0;
  box-shadow:
    0 0 0 3px rgba(255,207,92,0.3),
    0 18px 32px rgba(0,0,0,0.42),
    0 0 20px rgba(255,194,39,0.22);
}

.game-card input:checked + .card-ui .pick-badge::after {
  transform: scale(1);
}

.notice {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  padding: 16px 16px 16px 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(9,11,12,0.80), rgba(17,12,6,0.80));
  border: 2px solid rgba(255,206,102,0.58);
  box-shadow:
    0 16px 32px rgba(0,0,0,0.36),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.notice-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: 42px;
  font-weight: 1000;
  color: #171102;
  background: linear-gradient(180deg, #ffd248, #ffbe1d);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.36), 0 8px 18px rgba(0,0,0,0.25);
}

.notice-title {
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 1000;
  color: #ffd45f;
}

.notice-text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255,255,255,0.96);
}

.notice-text p + p { margin-top: 3px; }
.notice-text b { color: #ffe36f; }

.cta-wrap { margin-top: 22px; }
.cta-wrap-secondary { margin-top: 18px; }

.cta-button {
  display: block;
  width: 100%;
  aspect-ratio: 765 / 182;
  background: url("images/cta-button-cropped.png") center center / 100% 100% no-repeat;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,0.42));
}

.site-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 94px;
  padding: 16px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 3px solid rgba(255,226,135,0.95);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,214,0.92), rgba(255,255,214,0) 30%),
    linear-gradient(180deg, rgba(255,251,214,0.82), rgba(255,255,255,0.10) 20%, rgba(0,0,0,0) 22%),
    linear-gradient(180deg, #fff1a0 0%, #ffd23f 26%, #ffbb08 55%, #f8a900 76%, #ffd55e 100%);
  box-shadow:
    inset 0 3px 0 rgba(255,255,255,0.48),
    inset 0 -3px 0 rgba(137,57,0,0.16),
    0 0 0 3px rgba(106,48,0,0.22) inset,
    0 16px 30px rgba(0,0,0,0.34),
    0 0 24px rgba(255,193,7,0.22),
    0 0 40px rgba(255,190,20,0.18);
  overflow: hidden;
}

.site-button::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 999px;
  border: 2px solid rgba(132,52,0,0.22);
  pointer-events: none;
}

.site-button::before {
  content: "";
  position: absolute;
  left: -18%;
  top: -140%;
  width: 42%;
  height: 320%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.30), rgba(255,255,255,0));
  pointer-events: none;
}

.cta-button:hover,
.site-button:hover {
  transform: translateY(-1px);
}

.site-button-text {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-weight: 1000;
  font-size: clamp(28px, 6.4vw, 44px);
  letter-spacing: -0.04em;
  color: #781700;
  text-shadow:
    0 1px 0 rgba(255, 243, 190, 0.78),
    0 2px 0 rgba(255, 205, 88, 0.46);
}

.site-button-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 28px;
  font-weight: 900;
  color: #fff7d1;
  background: radial-gradient(circle at 35% 30%, #d62400, #a10700 70%, #720300 100%);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.25),
    0 6px 14px rgba(106,0,0,0.34);
}

@media (min-width: 720px) {
  .page { padding: 26px 16px 56px; }
  .wrap { max-width: 520px; }
  .wrap::before {
  content: "";
  position: absolute;
  inset: -8px -10px -18px;
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.22)),
    url("images/real-casino-backdrop.jpg") center top / cover no-repeat;
  opacity: 0.22;
  z-index: -1;
  box-shadow: 0 22px 44px rgba(0,0,0,0.30);
}

.top-rank { font-size: 34px; }
  .hero p { max-width: 470px; }
}

@media (max-width: 390px) {
  .page { padding-inline: 10px; }
  .glass-form { padding: 15px; }
  .game-grid { gap: 8px; }
  .notice {
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 14px 14px 14px 12px;
  }
  .notice-icon {
    width: 62px;
    height: 62px;
    font-size: 36px;
  }
  .notice-title { font-size: 22px; }
  .notice-text p { font-size: 16px; }
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }
}

@media (max-width: 390px) {
  .site-button { min-height: 82px; gap: 10px; padding-inline: 18px; }
  .site-button-icon { width: 42px; height: 42px; font-size: 24px; }
}
