/* 이달의 혜택(event.php). 하나투어 기획전 모양: 3D 첫 화면, 붙어 다니는 탭, 회색 카드, 동그라미 표, 큰 버튼 */
#ev {
  --ev-main: #00a4ff;
  --ev-deep: #1e4ba0;
  --ev-pink: #ff0b5b;
  --ev-ink: #111827;
  --ev-sub: #6b7280;
  --ev-card: #f3f4f6;
  --ev-tint: #e9f6ff;
  font-family: "Pretendard", "Noto Sans KR", "Nanum Gothic", sans-serif;
  color: var(--ev-ink);
  letter-spacing: -.02em;

}
#ev * { box-sizing: border-box; }
#ev h1, #ev h2, #ev h3, #ev p { margin: 0; }
#ev a { text-decoration: none; }

/* ---------- 첫 화면 ---------- */
.ev-hero {
  position: relative;
  background:
    radial-gradient(60% 70% at 80% 30%, rgba(255,255,255,.25), transparent 60%),
    linear-gradient(135deg, #2b6cff 0%, #00a4ff 55%, #2fd3ff 100%);
  color: #fff;
  text-align: center;
  padding: 56px 16px 0;
  overflow: hidden;
}
.ev-hero-in { max-width: 980px; margin: 0 auto; }
.ev-month {
  display: inline-block; padding: 6px 18px; border-radius: 999px;
  background: #fff; color: var(--ev-deep); font-weight: 900; font-size: 18px;
  box-shadow: 0 6px 0 rgba(0,0,0,.12);
}
.ev-title {
  margin-top: 14px !important;
  font-size: clamp(44px, 9vw, 84px); font-weight: 900; line-height: 1.05;
  /* 하나투어처럼 두툼한 3D 글씨. 흰 글자가 파란 바탕에 묻혀서(10/13) 옆면을 진한 남색으로 쌓고 바깥에 어두운 테두리를 두른다 */
  color: #fff;
  -webkit-text-stroke: 1px rgba(10, 30, 80, .35);
  text-shadow:
    0 1px 0 #2b4fb0, 0 2px 0 #2748a6, 0 3px 0 #23429b, 0 4px 0 #1f3c90, 0 5px 0 #1b3685, 0 6px 0 #17307a, 0 7px 0 #142b70,
    0 0 2px rgba(10, 30, 80, .6), 0 16px 26px rgba(0, 20, 80, .45);
}
.ev-hero .ev-sub { color: #fff !important; }
.ev-sub { margin-top: 12px !important; font-size: clamp(15px, 2.4vw, 20px); font-weight: 600; opacity: .95; }

.ev-hero-art { position: relative; height: 230px; margin-top: 18px; }
.ev-chip {
  position: absolute; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 150px; height: 150px; border-radius: 34px; font-size: 15px; font-weight: 700; line-height: 1.25;
  transform: rotate(var(--r, 0deg));
  box-shadow: inset 0 -10px 0 rgba(0,0,0,.14), inset 0 8px 14px rgba(255,255,255,.45), 0 18px 30px rgba(0,20,80,.3);
}
.ev-chip b { display: block; font-size: 30px; font-weight: 900; margin-top: 4px; }
.ev-chip-a { left: calc(50% - 250px); top: 40px; --r: -10deg; background: linear-gradient(160deg, #ff5a8a, var(--ev-pink)); }
.ev-chip-b { left: calc(50% - 75px); top: 10px;  --r: 4deg;   background: linear-gradient(160deg, #ffffff, #dff1ff); color: var(--ev-deep); width: 160px; height: 160px; }
.ev-chip-c { left: calc(50% + 105px); top: 50px; --r: 10deg;  background: linear-gradient(160deg, #6f8bff, #3b4fe0); }
.ev-coin {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c2, #ffd23f 45%, #e8a400 100%);
  box-shadow: inset -4px -5px 0 rgba(160,100,0,.35), 0 8px 14px rgba(0,0,0,.2);
}
.ev-coin.c1 { left: calc(50% - 300px); top: 10px; }
.ev-coin.c2 { left: calc(50% + 255px); top: 18px; width: 36px; height: 36px; }
.ev-coin.c3 { left: calc(50% + 40px); top: 175px; width: 30px; height: 30px; }
.ev-spark { position: absolute; z-index: 0; width: 18px; height: 18px; background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: .9; }
.ev-spark.s1 { left: calc(50% - 160px); top: 0; }
.ev-spark.s2 { left: calc(50% + 300px); top: 10px; width: 24px; height: 24px; }
.ev-spark.s3 { left: calc(50% - 330px); top: 150px; width: 14px; height: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .ev-chip { animation: ev-float 4s ease-in-out infinite; }
  .ev-chip-b { animation-delay: -1.3s; } .ev-chip-c { animation-delay: -2.6s; }
}
@keyframes ev-float { 50% { transform: rotate(var(--r)) translateY(-8px); } }

/* 사이트 가운데 틀을 뚫고 화면 끝까지 */
.ev-hero, .ev-tabs-ph, .ev-sec-tint { width: 100vw; margin-left: calc(50% - 50vw); }

/* ---------- 묶음 스위치(이달 이벤트 / 상시 혜택) ----------
   첫 화면 바로 아래에서 시작해 내려가면 머리 밑에 붙는다. 고른 쪽 묶음만 보인다 */
.ev-switch-ph { height: 64px; background: #fff; }
.ev-switch { z-index: 910; display: flex; justify-content: center; gap: 8px; padding: 10px 16px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.ev-switch.is-fixed { position: fixed; left: 0; right: 0; top: var(--ev-top, 70px); box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.ev-switch button { flex: 0 1 260px; height: 44px; border: 0; border-radius: 999px; background: #f3f4f6; color: var(--ev-sub); font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: -.02em; cursor: pointer; }
.ev-switch button.is-on { background: var(--ev-ink); color: #fff; }
.ev-switch .ev-sw-n { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--ev-pink); color: #fff; font-size: 12px; line-height: 20px; }
.ev-cross { margin-top: 28px; padding: 22px; border-radius: 4px; background: #f9fafb; text-align: center; }
.ev-cross p { color: var(--ev-sub); font-size: 14px; }
.ev-cross-btn { margin-top: 10px; padding: 9px 18px; border: 1px solid var(--ev-ink); border-radius: 999px; background: #fff; color: var(--ev-ink); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ev-cross-btn:hover { background: var(--ev-ink); color: #fff; }
.ev-band h2 { color: #fff; }

/* ---------- 붙어 다니는 탭 ----------
   사이트가 html·body 에 overflow 를 걸어 position: sticky 가 듣지 않는다. 자리(ph)를 남기고 스크립트로 fixed 를 켠다 */
.ev-tabs-ph { height: 56px; }
.ev-tabs { z-index: 900; background: var(--ev-main); }
.ev-tabs.is-fixed { position: fixed; left: 0; right: 0; top: var(--ev-top, 70px); box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.ev-tabs-in { max-width: 980px; margin: 0 auto; display: flex; overflow-x: auto; scrollbar-width: none; }
.ev-tabs-in::-webkit-scrollbar { display: none; }
.ev-tabs a {
  flex: 1 0 auto; text-align: center; padding: 17px 18px; color: #fff; font-size: 15px; font-weight: 600;
  white-space: nowrap; opacity: .85; border-bottom: 3px solid transparent;
}
.ev-tabs a.is-on { background: var(--ev-deep); opacity: 1; font-weight: 800; border-bottom-color: #0b1b3f; }

/* ---------- 칸 ---------- */
.ev-sec { padding: 56px 16px; }
.ev-sec-tint { background: var(--ev-tint); }
.ev-wrap { max-width: 820px; margin: 0 auto; word-break: keep-all; overflow-wrap: break-word; }   /* 10/13 사용자: 양옆으로 더 넓게(640→820) */
.ev-h {
  font-size: 22px; font-weight: 900; padding-bottom: 12px; margin-bottom: 18px !important;
  border-bottom: 2px solid var(--ev-ink);
}
.ev-h small { font-size: 14px; font-weight: 500; color: var(--ev-sub); margin-left: 8px; }
/* 이달 한정 매체 할인 카드 */
.ev-card-deal { background: linear-gradient(135deg, #fff2f6, #ffe3ec); }
.ev-card-deal h3 s { color: #9ca3af; font-weight: 500; font-size: 18px; }
.ev-card-deal h3 em { color: var(--ev-pink); }
.ev-pct { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--ev-pink); color: #fff; font-size: 14px; font-weight: 800; vertical-align: middle; }
.ev-desc { margin-top: 6px !important; color: var(--ev-sub); font-size: 14px; }
.ev-review-left b { color: var(--ev-pink); font-weight: 800; }
.ev-art-tag i { left: 8px; top: 14px; width: 96px; height: 72px; border-radius: 12px 36px 36px 12px; background: linear-gradient(160deg, #ff5a8a, var(--ev-pink));
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 28px; box-shadow: inset 0 -8px 0 rgba(0,0,0,.12), 0 10px 14px rgba(0,0,0,.15); }
.ev-art-card i { left: 10px; top: 20px; width: 92px; height: 60px; border-radius: 10px; background: linear-gradient(160deg, #7cc8ff, var(--ev-main));
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.12), 0 10px 14px rgba(0,0,0,.15); }
.ev-art-card i::before { content: ''; position: absolute; left: 0; right: 0; top: 14px; height: 12px; background: rgba(0,0,0,.35); }
.ev-art-card i::after { content: '(무)'; position: absolute; right: 10px; bottom: 8px; color: #fff; font-weight: 900; font-size: 14px; }
.ev-grid-cards .ev-circle b { color: var(--ev-deep); font-size: 17px; }
.ev-grid-cards .ev-c-top { color: var(--ev-ink); font-weight: 700; }
/* 출석 체크 */
.ev-attend { background: #fff; border-radius: 4px; padding: 26px 28px; }
.ev-at-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ev-at-txt { min-width: 0; }
.ev-at-txt h3 { font-size: 24px; font-weight: 800; line-height: 1.35; }
.ev-at-txt h3 em { font-style: normal; color: var(--ev-main); }
.ev-at-btn { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 112px; height: 112px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(160deg, #ff5a8a, var(--ev-pink)); color: #fff !important; text-decoration: none;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.14), inset 0 6px 10px rgba(255,255,255,.35), 0 12px 22px rgba(255,11,91,.35); transition: transform .15s; }
.ev-at-btn:hover { transform: translateY(-2px); }
.ev-at-btn .ev-at-btn-top { font-size: 14px; font-weight: 700; opacity: .95; }
.ev-at-btn b { font-size: 24px; font-weight: 900; margin-top: 2px; }
.ev-at-btn.is-done, .ev-at-btn:disabled { background: linear-gradient(160deg, #9ca3af, #6b7280); box-shadow: inset 0 -8px 0 rgba(0,0,0,.12); cursor: default; transform: none; }
/* 구간 3개 */
.ev-at-tiers { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 0; padding: 0; }
.ev-at-tiers li { position: relative; text-align: center; padding: 14px 8px 12px; border-radius: 14px; background: #f9fafb; border: 1px solid #eef0f3; }
.ev-at-tiers img { display: block; width: 72px; height: 72px; margin: 0 auto; object-fit: contain; filter: grayscale(1); opacity: .45; transition: filter .3s, opacity .3s, transform .3s; }
.ev-at-tiers b { display: block; margin-top: 6px; font-size: 16px; font-weight: 900; color: #9ca3af; }
.ev-at-tiers span { display: block; font-size: 12px; color: var(--ev-sub); font-weight: 600; }
.ev-at-tiers li.is-done { background: #fff7e6; border-color: #fde68a; }
.ev-at-tiers li.is-done img { filter: none; opacity: 1; transform: translateY(-2px); }
.ev-at-tiers li.is-done b { color: #b45309; }
.ev-at-tier-chk { display: none; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--ev-main); }
.ev-at-tier-chk::after { content: ''; position: absolute; left: 6px; top: 4px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ev-at-tiers li.is-done .ev-at-tier-chk { display: block; }
/* 이번 달 달력 */
.ev-at-cal { margin-top: 22px; }
.ev-at-cal-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; color: var(--ev-ink); margin-bottom: 10px; }
.ev-at-cal-head span { color: var(--ev-main); }
.ev-at-cal-head small { flex-basis: 100%; font-weight: 500; color: var(--ev-sub); font-size: 12px; margin-top: 2px; }
.ev-at-cal-head { flex-wrap: wrap; }
.ev-at-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 4px; }
.ev-at-grid li { text-align: center; }
.ev-at-d { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.ev-at-d i { position: absolute; inset: 4px; border-radius: 50%; background: #f3f4f6; }
.ev-at-d span { position: relative; font-size: 13px; font-weight: 600; color: #c4c8d0; }
.ev-at-d span::after { content: '일차'; font-size: 9px; margin-left: 1px; }
.ev-at-d.is-today i { box-shadow: inset 0 0 0 2px var(--ev-main); background: #fff; }
.ev-at-d.is-today span { color: var(--ev-main); font-weight: 800; }
@media (prefers-reduced-motion: no-preference) { .ev-at-d.is-today i { animation: ev-pulse 1.6s ease-in-out infinite; } }
@keyframes ev-pulse { 50% { box-shadow: inset 0 0 0 2px var(--ev-main), 0 0 0 6px rgba(0,164,255,.15); } }
/* 구간 날 칸: 작은 아이콘을 오른쪽 위에 회색으로. 구간에 닿으면 색이 켜진다 */
/* 구간 날 칸은 숫자 대신 아이콘이 칸을 거의 채운다. 못 닿았으면 회색, 닿으면 색이 켜지고 금빛 테두리 */
.ev-at-tier-ic { position: absolute; left: 50%; top: 50%; width: 78%; height: 78%; transform: translate(-50%, -50%); object-fit: contain; filter: grayscale(1); opacity: .5; z-index: 2; transition: filter .3s, opacity .3s, transform .3s; }
.ev-at-d.is-tier span { opacity: 0; }
.ev-at-d.is-tier i { background: #f3f4f6; box-shadow: inset 0 0 0 1.5px #e5e7eb; }
.ev-at-d.is-tier.is-on i::after { display: none; }   /* 도장 체크는 숨기고 아이콘이 그 자리를 맡는다 */
.ev-at-d.is-tier.is-on i { background: #e8f6ff; }
.ev-at-d.is-tier-done .ev-at-tier-ic { filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
.ev-at-d.is-tier-done i { background: #fff7e6; box-shadow: inset 0 0 0 2px #f59e0b; }
/* 아이콘 칸 아래 금액 꼬리표. 못 닿았으면 회색, 닿으면 금빛 */
.ev-at-tier-m { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); z-index: 3; padding: 1px 7px; border-radius: 999px; background: #e5e7eb; color: #6b7280; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; letter-spacing: -.02em; }
.ev-at-d.is-tier-done .ev-at-tier-m { background: #f59e0b; color: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.ev-at-grid { row-gap: 14px; }
/* 도장: 파란 동그라미 위에 흰 체크 */
.ev-at-d.is-on i { background: var(--ev-main); box-shadow: 0 4px 8px rgba(0,164,255,.35); }
.ev-at-d.is-on i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 30%; height: 15%; border: solid #fff; border-width: 0 0 3px 3px; transform: translate(-50%, -65%) rotate(-45deg); }
.ev-at-d.is-on span { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .ev-at-d.is-on i { animation: ev-stamp .35s cubic-bezier(.2, 1.4, .4, 1) both; } }
@keyframes ev-stamp { from { transform: scale(1.6); opacity: 0; } to { transform: none; opacity: 1; } }
.ev-at-msg { min-height: 20px; margin-top: 12px !important; font-size: 14px; font-weight: 700; color: var(--ev-pink); }
/* 상시 구분 띠 */
.ev-band { background: var(--ev-ink); color: #fff; padding: 40px 16px; text-align: center; }
.ev-band-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--ev-main); font-size: 13px; font-weight: 800; }
.ev-band h2 { margin-top: 12px !important; font-size: 26px; font-weight: 900; }
.ev-band p { margin-top: 8px !important; color: rgba(255,255,255,.75); font-size: 15px; }
.ev-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--ev-card); border-radius: 4px; padding: 30px 32px; margin-bottom: 12px;
}
.ev-sec-tint .ev-card { background: #fff; }
.ev-card-txt { min-width: 0; }
.ev-kicker { color: var(--ev-sub); font-size: 15px; font-weight: 600; margin-bottom: 6px !important; }
.ev-card h3 { font-size: 24px; font-weight: 800; line-height: 1.38; }
.ev-card h3 em { font-style: normal; color: var(--ev-main); }
.ev-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  padding: 8px 18px; border-radius: 999px; background: var(--ev-main); color: #fff !important;
  font-size: 15px; font-weight: 700; box-shadow: 0 3px 0 rgba(0,90,160,.25);
}
.ev-btn span { font-size: 18px; line-height: 1; }
.ev-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-btns .ev-btn { margin-top: 16px; }
.ev-btn-sub { background: #fff; color: var(--ev-main) !important; border: 1px solid var(--ev-main); box-shadow: none; }
.ev-btn-sub:hover { background: #eaf6ff; }
.ev-btn:hover { background: #0090e0; }

/* 카드 오른쪽 3D 그림(CSS) */
.ev-card-art { position: relative; flex: 0 0 110px; height: 100px; }
.ev-card-art i { position: absolute; display: block; }
.ev-art-coins i { width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c2, #ffd23f 45%, #e8a400);
  box-shadow: inset -5px -6px 0 rgba(160,100,0,.3), 0 8px 12px rgba(0,0,0,.15); }
.ev-art-coins i:nth-child(1) { left: 0; top: 34px; }
.ev-art-coins i:nth-child(2) { left: 38px; top: 6px; }
.ev-art-coins i:nth-child(3) { left: 56px; top: 44px; width: 48px; height: 48px; }
.ev-art-gift i { left: 18px; top: 20px; width: 76px; height: 66px; border-radius: 12px;
  background: linear-gradient(90deg, transparent 42%, #ffd23f 42% 58%, transparent 58%), linear-gradient(160deg, #ff5a8a, var(--ev-pink));
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.12), 0 10px 14px rgba(0,0,0,.15); }
.ev-art-gift i::before { content: ''; position: absolute; left: -6px; right: -6px; top: -16px; height: 22px; border-radius: 8px;
  background: linear-gradient(90deg, #ff7aa2 42%, #ffd23f 42% 58%, #ff7aa2 58%); box-shadow: inset 0 -5px 0 rgba(0,0,0,.12); }
.ev-art-cash i { left: 10px; top: 20px; width: 92px; height: 60px; border-radius: 12px;
  background: linear-gradient(160deg, #5be3a6, #12b76a); box-shadow: inset 0 -8px 0 rgba(0,0,0,.12), 0 10px 14px rgba(0,0,0,.15); }
.ev-art-cash i::after { content: 'C'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 30px; }
.ev-art-star i { left: 14px; top: 8px; width: 84px; height: 84px;
  background: linear-gradient(160deg, #ffe066, #ffb703);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 8px 8px rgba(0,0,0,.18)); }
.ev-art-target i { left: 14px; top: 8px; width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle, var(--ev-pink) 0 14%, #fff 14% 30%, var(--ev-pink) 30% 46%, #fff 46% 62%, var(--ev-pink) 62% 78%, #fff 78%);
  box-shadow: 0 10px 14px rgba(0,0,0,.15); }
.ev-art-shield i { left: 18px; top: 6px; width: 74px; height: 88px;
  background: linear-gradient(160deg, #7cc8ff, var(--ev-main));
  clip-path: polygon(50% 0, 100% 16%, 100% 52%, 50% 100%, 0 52%, 0 16%);
  filter: drop-shadow(0 8px 8px rgba(0,0,0,.18)); }
.ev-art-shield i::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 38px; }

/* 충전 구간 동그라미 표 */
.ev-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  background: var(--ev-card); border-radius: 4px; padding: 18px; margin-top: 4px;
}
.ev-circle {
  aspect-ratio: 1; border-radius: 50%; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.ev-c-top { font-size: 14px; color: var(--ev-sub); font-weight: 600; }
.ev-circle b { font-size: 19px; font-weight: 900; color: var(--ev-pink); margin-top: 4px; }
.ev-note { margin-top: 14px !important; color: #9ca3af; font-size: 14px; text-align: center; }

/* 끝: 큰 버튼, 유의사항 */
.ev-end { padding-top: 24px; }
.ev-cta {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  height: 76px; border-radius: 999px; background: var(--ev-main); color: #fff !important;
  font-size: 22px; font-weight: 800; box-shadow: 0 6px 0 rgba(0,90,160,.25);
}
.ev-cta:hover { background: #0090e0; }
.ev-terms { margin-top: 0; border-top: 1px solid #e5e7eb; }
.ev-terms summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 16px; list-style: none; }
.ev-terms summary::after { content: '+'; float: right; font-weight: 400; }
.ev-terms[open] summary::after { content: '−'; }
.ev-terms ul { margin: 0 0 20px; padding-left: 18px; color: var(--ev-sub); font-size: 14px; line-height: 1.8; }

/* ---------- 폰 ---------- */
@media (max-width: 767px) {
  .ev-hero { padding-top: 40px; }
  .ev-hero-art { height: 168px; margin-top: 14px; }
  .ev-chip { width: 104px; height: 104px; border-radius: 26px; font-size: 12px; }
  .ev-chip b { font-size: 21px; }
  .ev-chip-a { left: calc(50% - 168px); top: 34px; }
  .ev-chip-b { left: calc(50% - 56px); top: 6px; width: 112px; height: 112px; }
  .ev-chip-c { left: calc(50% + 64px); top: 40px; }
  .ev-coin.c1 { left: calc(50% - 176px); top: 8px; width: 32px; height: 32px; }
  .ev-coin.c2 { left: calc(50% + 140px); top: 14px; width: 26px; height: 26px; }
  .ev-coin.c3 { left: calc(50% + 20px); top: 128px; width: 24px; height: 24px; }
  .ev-spark.s1 { left: calc(50% - 100px); top: 0; }
  .ev-spark.s2 { left: calc(50% + 178px); top: 0; }
  .ev-spark.s3 { display: none; }
  .ev-tabs a { padding: 14px 16px; font-size: 14px; }
  .ev-switch-ph { height: 58px; }
  .ev-switch { padding: 8px 12px; }
  .ev-switch button { height: 42px; font-size: 14px; }
  .ev-tabs-ph { height: 50px; }
  .ev-sec { padding: 40px 16px; }
  .ev-card { padding: 22px 20px; }
  .ev-card h3 { font-size: 20px; }
  .ev-card-art { flex-basis: 76px; height: 76px; transform: scale(.72); transform-origin: right center; }
  .ev-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; }
  .ev-grid-cards { grid-template-columns: repeat(3, 1fr); }
  .ev-grid-cards .ev-circle b { font-size: 14px; }
  .ev-attend { padding: 20px 18px; }
  .ev-at-txt h3 { font-size: 20px; }
  .ev-at-btn { width: 92px; height: 92px; }
  .ev-at-btn b { font-size: 20px; }
  .ev-at-tier-m { font-size: 10px; padding: 1px 5px; bottom: -8px; }
  .ev-at-grid { row-gap: 12px; }
  .ev-at-grid { gap: 4px 2px; }

  .ev-at-d span { font-size: 13px; }
  .ev-band { padding: 30px 16px; }
  .ev-band h2 { font-size: 22px; }
  .ev-c-top { font-size: 11px; }
  .ev-circle b { font-size: 13px; margin-top: 2px; letter-spacing: -.04em; }
  .ev-cta { height: 62px; font-size: 18px; }
}

/* AI 원고 작성 카드(10/13) */
.ev-card-ai { background: linear-gradient(135deg, #0f172a, #1e3a8a); color: #fff; }
.ev-card-ai .ev-kicker { color: #93c5fd; }
.ev-card-ai h3 { color: #fff; }
.ev-card-ai h3 em { color: #7dd3fc; }
.ev-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ev-btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); cursor: pointer; font-family: inherit; }
.ev-btn-ghost:hover { background: rgba(255,255,255,.2); }
.ev-art-ai i { left: 9px; top: 4px; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 26px; background: linear-gradient(135deg, #7c3aed, #00a4ff); color: #fff; font-style: normal; font-weight: 900; font-size: 34px; letter-spacing: -.04em; box-shadow: 0 16px 36px rgba(0,164,255,.35); }
.ev-ai-detail { margin: -6px 0 14px; padding: 22px 24px; border-radius: 18px; background: #fff; border: 1px solid #e5e8eb; }
.ev-ai-lead { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: #191f28; }
.ev-ai-detail h4 { margin: 16px 0 8px; font-size: 14px; font-weight: 800; color: #0b6fb3; letter-spacing: -.02em; }
.ev-ai-list { margin: 0; padding-left: 18px; color: #4e5968; font-size: 14px; line-height: 1.7; }
.ev-ai-list li + li { margin-top: 6px; }
.ev-ai-list b { color: #191f28; }
.ev-ai-note { margin: 16px 0 0; font-size: 12.5px; color: #8b95a1; line-height: 1.6; }
@media (max-width: 640px) { .ev-ai-detail { padding: 16px; } .ev-art-ai i { width: 72px; height: 72px; font-size: 26px; border-radius: 20px; } }

/* AI 상세 소개(10/13) */
.ev-ai-detail { padding: 0; overflow: hidden; word-break: keep-all; overflow-wrap: break-word; }   /* 낱말 중간에서 안 끊기게 */
.ai-hero { padding: 34px 28px 26px; background: radial-gradient(900px 300px at 20% 0%, #e9f6ff, #fff 60%); border-bottom: 1px solid #eef1f5; }
.ai-eyebrow { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; color: #0b6fb3; letter-spacing: .02em; }
.ai-hero h3 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.04em; line-height: 1.3; color: #0f172a; }
.ai-hero h3 em { font-style: normal; color: #00a4ff; }
.ai-sub { margin: 12px 0 0; font-size: 15px; line-height: 1.7; color: #4e5968; max-width: 560px; }
.ai-hero h3 + .ai-badges { margin-top: 20px; }
.ai-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }   /* 세 칸 고정(10/13: 2+1로 떨어져 어색) */
.ai-badges li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #e5e8eb; min-width: 0; box-shadow: 0 4px 14px rgba(25,31,40,.05); }
.ai-badges b { font-size: 20px; font-weight: 800; color: #0f172a; letter-spacing: -.04em; }
.ai-badges span { font-size: 12px; color: #8b95a1; }
.ai-block { padding: 24px 28px; border-bottom: 1px solid #eef1f5; }
.ai-block h4 { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: #0f172a; letter-spacing: -.03em; }
.ai-block > p { margin: 0 0 14px; font-size: 14px; color: #4e5968; line-height: 1.65; }
.ai-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; margin: 14px 0 0; padding: 0; counter-reset: none; }
.ai-flow li { position: relative; padding: 16px 14px 14px; border-radius: 16px; background: #f6f8fb; display: flex; flex-direction: column; gap: 6px; }
.ai-flow li i { width: 28px; height: 28px; border-radius: 50%; background: #00a4ff; color: #fff; font-style: normal; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.ai-flow li b { font-size: 15px; font-weight: 800; color: #0f172a; }
.ai-flow li span { font-size: 12.5px; color: #6b7280; line-height: 1.5; }
.ai-flow li + li::before { content: ''; position: absolute; left: -9px; top: 24px; width: 8px; height: 8px; border-top: 2px solid #c7cdd6; border-right: 2px solid #c7cdd6; transform: rotate(45deg); }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; }
.ai-grid .ai-block + .ai-block { border-left: 1px solid #eef1f5; }
.ai-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ai-bars li { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 10px; font-size: 12.5px; color: #4e5968; }
.ai-bars li i { display: block; height: 10px; border-radius: 999px; background: #e9eef4; position: relative; overflow: hidden; }
.ai-bars li i::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 50%); border-radius: 999px; background: linear-gradient(90deg, #00a4ff, #7c3aed); animation: ai-bar 1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ai-bar { from { width: 0; } }
.ai-loop { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; margin-top: 6px; white-space: nowrap; }
.ai-loop span { padding: 7px 10px; border-radius: 999px; background: #eaf6ff; color: #0b6fb3; font-size: 12.5px; font-weight: 700; }
.ai-loop em { font-style: normal; color: #b0b8c1; font-weight: 700; font-size: 12px; }
.ai-loop .ai-loop-back { color: #00a4ff; font-size: 17px; margin-left: 2px; }
@media (max-width: 480px) { .ai-loop { gap: 3px; } .ai-loop span { padding: 6px 8px; font-size: 12px; } .ai-loop em { font-size: 10px; } .ai-loop .ai-loop-back { font-size: 14px; margin-left: 1px; } }   /* 폰에서도 한 줄(10/13) */
.ai-grow { background: linear-gradient(180deg, #fff, #f6f8fb); }
.ai-grow-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.ai-grow-list li { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 12px; }
.ai-grow-list li i { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #7c3aed, #00a4ff); position: relative; }
.ai-grow-list li i::after { content: ''; position: absolute; left: 11px; top: 8px; width: 8px; height: 14px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.ai-grow-list li b { font-size: 14.5px; font-weight: 800; color: #0f172a; }
.ai-grow-list li span { font-size: 13px; color: #6b7280; line-height: 1.55; margin-top: 2px; }
.ai-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; background: #0f172a; color: #fff; }
.ai-cta b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.ai-cta span { display: block; font-size: 13px; color: #cbd5e1; margin-top: 3px; }
.ai-cta .ev-btn { flex: 0 0 auto; }
.ev-ai-detail .ev-ai-note { margin: 0; padding: 12px 28px 16px; }
@media (max-width: 760px) { .ai-flow { grid-template-columns: 1fr 1fr; } .ai-flow li + li::before { display: none; } .ai-grid { grid-template-columns: 1fr; } .ai-grid .ai-block + .ai-block { border-left: 0; } .ai-hero { padding: 24px 18px 20px; } .ai-hero h3 { font-size: 21px; } .ai-block { padding: 18px; } .ai-cta { flex-direction: column; align-items: stretch; padding: 18px; } }
@media (max-width: 480px) { .ai-badges { gap: 6px; } .ai-badges li { padding: 10px; } .ai-badges b { font-size: 17px; white-space: nowrap; } .ai-badges span { font-size: 11.5px; white-space: nowrap; } }
.ai-sub, .ai-cta span { text-wrap: balance; }

/* 10/14 폰 다듬기: 메달 밑 금액 알약이 사이트 줄 간격을 물려받아 커져 메달을 덮었다 */
.ev-at-tier-m { line-height: 1; padding: 3px 6px 2px; font-size: 10.5px; bottom: -6px; }
/* 안내 문단: 가운데 정렬 긴 문단이 들쭉날쭉했다. 낱말 단위로 끊고 줄 길이를 고르게 */
.ev-note { word-break: keep-all; text-wrap: balance; }
/* 출석 안내는 항목별 목록 */
.ev-note-list { list-style: none; margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: #f9fafb; color: #6b7280; font-size: 13.5px; line-height: 1.6; word-break: keep-all; display: grid; gap: 4px; }
.ev-note-list li { position: relative; padding-left: 12px; }
.ev-note-list li::before { content: ''; position: absolute; left: 0; top: .7em; width: 4px; height: 4px; border-radius: 50%; background: #c4c8d0; }
@media (max-width: 480px) {
  .ev-at-tier-m { font-size: 10px; padding: 3px 5px 2px; }
  .ev-note-list { font-size: 13px; padding: 12px 14px; }
}
/* 출석 결과 줄은 비어 있으면 자리를 차지하지 않게 */
.ev-at-msg:empty { display: none; }
