:root {
  --red: #e50013;
  --deep-red: #9e0010;
  --blue: #005fd9;
  --sky: #e4f3ff;
  --yellow: #ffd900;
  --orange: #ff8a00;
  --green: #05a84b;
  --ink: #151515;
  --muted: #666;
  --line: #1a1a1a;
  --paper: #fff;
  --panel: #f7f7f7;
  --desktop-stage-width: 1260px;
  --desktop-stage-half: 630px;
  --desktop-stage-scale: 1;
  --desktop-stage-visual-height: 100dvh;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Arial, "Malgun Gothic", "맑은 고딕", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0, 95, 217, 0.06) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, #f5fbff 0%, #fff6d7 42%, #ffffff 100%);
  background-size: 100% 24px, 100% 100%;
  animation: pageGridDrift 8s linear infinite;
}

.desktop-stage-frame {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  min-height: max(100dvh, var(--desktop-stage-visual-height));
  overflow: visible;
}

.desktop-stage {
  position: absolute;
  top: 0;
  left: 50%;
  display: flow-root;
  width: var(--desktop-stage-width);
  margin-left: calc(var(--desktop-stage-half) * -1);
  transform: scale(var(--desktop-stage-scale));
  transform-origin: top center;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 0, 0, 0.035) 18px 20px),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(0, 0, 0, 0.035) 5px 6px);
  mix-blend-mode: multiply;
  animation: scanlineSlide 1.2s linear infinite;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-shell {
  width: min(1240px, calc(100% - 20px));
  margin: 10px auto 28px;
  border: 3px solid var(--line);
  background: #fff;
  box-shadow: 0 4px 0 #888, 0 0 0 6px #f4f4f4;
}

.top-alert {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 6px 12px;
  color: #fff;
  background: linear-gradient(180deg, #ff2737, #b90010);
  border-bottom: 3px solid #710008;
  font-size: 13px;
}

.top-alert strong,
.top-alert b {
  flex: 0 0 auto;
  padding: 3px 8px;
  color: #111;
  background: var(--yellow);
  border: 1px solid #111;
  animation: warningBlink 0.7s steps(2, end) infinite;
}

.top-alert span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header {
  display: grid;
  grid-template-columns: 310px minmax(260px, 1fr) 230px;
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  background:
    linear-gradient(90deg, rgba(255, 217, 0, 0.22), rgba(0, 95, 217, 0.13)),
    #fff;
  border-bottom: 2px solid #333;
}

.brand {
  display: flex;
  min-width: 0;
  min-height: 90px;
  color: inherit;
  text-decoration: none;
  border: 2px solid #111;
  background: linear-gradient(180deg, #fff 0%, #dff0ff 50%, #fff 100%);
  overflow: hidden;
  animation: cheapGlow 1.4s steps(2, end) infinite;
}

.brand-art {
  flex: 0 0 110px;
  background-image: url("assets/generated/ci-logo.webp");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: cover;
  border-right: 2px solid #111;
}

.brand-title {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 8px;
  text-shadow: 1px 1px #fff, 2px 2px #ffd900;
}

.brand-main {
  display: block;
  color: var(--red);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  animation: logoJitter 1.8s steps(2, end) infinite;
}

.brand-sub {
  display: inline-block;
  width: fit-content;
  margin-top: 5px;
  padding: 2px 6px;
  color: #fff;
  background: var(--blue);
  border: 1px solid #111;
  font-weight: 700;
}

.search-box {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 104px;
  align-self: center;
  border: 3px solid var(--blue);
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--yellow);
  overflow: hidden;
}

.search-box::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -40%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: skewX(-18deg);
  animation: searchShine 1.45s linear infinite;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 0;
  outline: none;
  font-size: 16px;
  font-weight: 700;
}

.search-box button,
.login-box button,
.coupon-panel button,
.timer-panel button,
.mini-board button,
.primary-button,
.secondary-button,
.download-button {
  border: 2px solid #111;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(180deg, #ffef6d 0%, #ff9000 44%, #e40012 45%, #a8000d 100%);
  box-shadow: inset 0 1px 0 #fff, 2px 2px 0 rgba(0, 0, 0, 0.28);
}

.search-box button {
  border-width: 0 0 0 2px;
  color: #fff;
}

.login-box {
  padding: 7px;
  border: 2px solid #111;
  background: linear-gradient(180deg, #fff7c3, #ffdc52);
}

.login-title {
  margin-bottom: 5px;
  padding: 3px 5px;
  color: #fff;
  background: #111;
  font-weight: 900;
}

.login-fields {
  display: grid;
  gap: 4px;
  margin-bottom: 5px;
}

.login-fields input {
  width: 100%;
  min-width: 0;
  height: 25px;
  padding: 2px 5px;
  border: 1px solid #777;
}

.login-box button {
  width: 100%;
  height: 27px;
}

.login-links {
  margin-top: 5px;
  font-size: 12px;
  text-align: center;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 3px solid #111;
  background: #111;
}

.tab-button {
  min-height: 38px;
  padding: 6px 4px;
  border: 0;
  border-right: 1px solid #fff;
  color: #fff;
  font-weight: 900;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, #1487ff, #003f9a);
  background-size: 28px 28px, 100% 100%;
  animation: tabStripe 0.65s linear infinite;
}

.tab-button:last-child {
  border-right: 0;
}

.tab-button.active {
  color: #111;
  background:
    repeating-linear-gradient(135deg, rgba(255, 0, 0, 0.24) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, #fff36b, #ffb200);
  animation: tabStripe 0.45s linear infinite, warningBlink 0.9s steps(2, end) infinite;
}

.layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 220px;
  gap: 10px;
  padding: 10px;
}

.left-rail,
.right-rail,
.content {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.panel {
  border: 2px solid #222;
  background: var(--panel);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.18);
}

.panel h2 {
  margin: 0;
  padding: 6px 8px;
  color: #fff;
  background: linear-gradient(180deg, #333, #111);
  border-bottom: 2px solid #111;
  font-size: 15px;
  animation: headerBlink 1.6s steps(2, end) infinite;
}

.coupon-panel {
  padding-bottom: 9px;
  background: linear-gradient(180deg, #fff, #fff2a8);
}

.coupon-panel p,
.timer-panel p,
.notice-panel p,
.risk-card p {
  margin: 8px;
  line-height: 1.4;
}

.coin-burst {
  margin: 9px;
  padding: 12px 7px;
  text-align: center;
  color: #b80000;
  font-size: 22px;
  font-weight: 900;
  text-shadow: 1px 1px #fff;
  border: 3px dashed var(--red);
  background: radial-gradient(circle, #fff 0%, #fff56f 60%, #ffb300 100%);
  animation: couponPop 0.78s steps(2, end) infinite;
}

.coupon-panel button,
.timer-panel button,
.mini-board button {
  display: block;
  width: calc(100% - 18px);
  min-height: 30px;
  margin: 6px 9px;
}

.rank-panel ol {
  list-style: none;
  margin: 0;
  padding: 6px;
  counter-reset: rank;
}

.rank-panel li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
  align-items: center;
  padding: 5px 3px;
  border-bottom: 1px dotted #999;
  counter-increment: rank;
  font-size: 12px;
}

.rank-panel li::before {
  content: counter(rank);
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  color: #fff;
  background: var(--red);
  border: 1px solid #111;
  font-weight: 900;
}

.rank-panel li {
  grid-template-columns: 26px 1fr auto;
}

.rank-panel li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-panel li b {
  color: var(--red);
  font-size: 11px;
}

.hero {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 3px solid #111;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.24) 52%, rgba(255, 255, 255, 0.02) 100%),
    url("assets/generated/hero-banner.webp") center / cover no-repeat;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 0, 0.18) 0 10px, transparent 10px 24px),
    radial-gradient(circle at 20% 20%, rgba(255, 0, 0, 0.38), transparent 24%),
    radial-gradient(circle at 78% 70%, rgba(0, 95, 217, 0.32), transparent 30%);
  mix-blend-mode: screen;
  animation: heroAlarmWash 1.2s steps(3, end) infinite;
}

.hero::after {
  background-image:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 45%, transparent 55%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.13) 0 2px, transparent 2px 7px);
  animation: heroSweep 2.1s linear infinite;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 28px 22px;
  color: #fff;
  text-shadow: 2px 2px #000;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 9px;
  color: #111;
  text-shadow: none;
  background: var(--yellow);
  border: 2px solid #111;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  color: #fff100;
  font-size: 45px;
  line-height: 1.05;
  text-shadow: 3px 3px #d70000, 5px 5px #000;
}

.hero-lead {
  margin: 14px 0 6px;
  font-size: 23px;
  font-weight: 900;
}

.hero-sub {
  margin: 0 0 18px;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.primary-button,
.secondary-button {
  min-height: 39px;
  padding: 0 14px;
}

.secondary-button {
  color: #111;
  background: linear-gradient(180deg, #ffffff, #c8f0ff 48%, #4ba8ff 49%, #0062c9 100%);
}

.hero-status {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 12px;
  width: min(310px, calc(100% - 28px));
  padding: 9px;
  color: #111;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid var(--red);
  box-shadow: 3px 3px 0 #111;
  animation: statusShake 0.55s steps(2, end) infinite;
}

.hero-status span {
  display: block;
  height: 20px;
  margin-bottom: 5px;
  padding-left: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 20px;
  background:
    repeating-linear-gradient(115deg, #00aa41 0 12px, #fff000 12px 24px, #ff0000 24px 36px);
  background-size: 54px 54px;
  border: 1px solid #111;
  animation: barberPole 0.42s linear infinite;
}

.hero-status b {
  color: var(--red);
  font-size: 17px;
}

.ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  min-height: 38px;
  border: 2px solid #111;
  background: #fff9bc;
  overflow: hidden;
}

.ticker strong {
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: #fff;
  background: var(--red);
  border-right: 2px solid #111;
}

.ticker-window {
  min-width: 0;
  padding: 6px 9px;
  overflow: hidden;
  font-weight: 900;
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeLoop 12s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: flex;
  flex: 0 0 auto;
  gap: 28px;
  align-items: center;
  padding-right: 28px;
}

.ticker span {
  flex: 0 0 auto;
}

.alarm-strip {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 42px;
  padding: 6px;
  overflow: hidden;
  border: 2px solid #111;
  color: #111;
  background:
    repeating-linear-gradient(90deg, #ffea00 0 18px, #ff2a00 18px 36px);
  box-shadow: inset 0 0 0 3px #fff;
  animation: alarmBack 0.35s linear infinite;
}

.alarm-window {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.alarm-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeLoop 10s linear infinite;
  will-change: transform;
}

.alarm-group {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  padding-right: 6px;
}

.alarm-strip span,
.alarm-strip b {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 2px solid #111;
  background: #fff;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.alarm-strip span {
  color: #fff;
  background: var(--red);
  animation: warningBlink 0.38s steps(2, end) infinite;
}

.alarm-strip b {
  animation: none;
}

.section-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px;
  border-bottom: 2px solid #111;
  background: linear-gradient(180deg, #eaf7ff, #cfe9ff);
}

.section-head h2 {
  padding: 0;
  color: #111;
  background: transparent;
  border: 0;
  font-size: 18px;
}

.section-head span {
  flex: 0 0 auto;
  padding: 3px 6px;
  color: #fff;
  background: var(--blue);
  border: 1px solid #111;
  font-size: 12px;
  font-weight: 900;
}

.file-grid {
  display: grid;
}

.file-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 92px 58px;
  gap: 8px;
  align-items: center;
  min-height: 86px;
  padding: 8px;
  background: #fff;
  border-bottom: 1px solid #bbb;
  animation: rowPulse 2.4s steps(2, end) infinite;
}

.file-row:nth-child(even) {
  background: #f6fbff;
  animation-delay: 0.28s;
}

.file-row.is-hidden {
  display: none;
}

.thumb {
  display: block;
  width: 64px;
  aspect-ratio: 1;
  border: 2px solid #111;
  background-image: url("assets/generated/file-thumbnails.webp");
  background-repeat: no-repeat;
  background-size: 300% 200%;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
  animation: thumbBuzz 1.9s steps(2, end) infinite;
}

.thumb-1 { background-position: 0% 0%; }
.thumb-2 { background-position: 50% 0%; }
.thumb-3 { background-position: 100% 0%; }
.thumb-4 { background-position: 0% 100%; }
.thumb-5 { background-position: 50% 100%; }
.thumb-6 { background-position: 100% 100%; }

.file-meta {
  min-width: 0;
}

.file-meta h3 {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
  color: #0046b8;
  font-size: 16px;
}

.file-meta p {
  margin: 0 0 5px;
  color: #444;
  font-size: 13px;
}

.file-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.file-tags span {
  padding: 2px 5px;
  color: #111;
  background: #fff17b;
  border: 1px solid #111;
  font-size: 11px;
  font-weight: 900;
}

.file-stat {
  display: grid;
  gap: 4px;
  justify-items: end;
  color: #333;
  font-size: 12px;
}

.file-stat b {
  color: var(--red);
}

.download-button {
  width: 52px;
  min-height: 32px;
  animation: buttonPulse 0.8s steps(2, end) infinite;
}

.empty-state {
  padding: 20px;
  color: var(--red);
  text-align: center;
  font-weight: 900;
  background: #fff7c4;
}

.dashboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 10px;
}

.pain-ranking {
  overflow: auto;
}

.pain-ranking table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  background: #fff;
}

.pain-ranking th,
.pain-ranking td {
  padding: 8px;
  border: 1px solid #999;
  text-align: left;
}

.pain-ranking th {
  color: #fff;
  background: var(--blue);
}

.risk-card {
  padding-bottom: 8px;
  background: #fff8cd;
}

.risk-meter {
  height: 28px;
  margin: 10px 8px;
  border: 2px solid #111;
  background: #fff;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--red);
}

.risk-meter span {
  display: block;
  height: 100%;
  background:
    repeating-linear-gradient(115deg, #ff0000 0 12px, #fff000 12px 24px, #005fd9 24px 36px, #fff 36px 48px);
  background-size: 68px 68px;
  animation: barberPole 0.36s linear infinite, riskSiren 0.74s steps(2, end) infinite;
}

.risk-card strong {
  display: block;
  margin: 8px;
  color: var(--red);
  font-size: 17px;
}

.sprite-ad {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  color: #fff;
  text-shadow: 2px 2px #000;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12)), url("assets/generated/ad-banners.webp");
  background-repeat: no-repeat;
  background-size: 100% 300%;
  animation: adShake 1.25s steps(2, end) infinite, adFlash 1.9s steps(2, end) infinite;
}

.ad-one { background-position: center 0%; }
.ad-two { background-position: center 50%; }
.ad-three { background-position: center 100%; }

.sprite-ad span,
.sprite-ad strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 8px;
}

.sprite-ad span {
  width: fit-content;
  padding: 3px 7px;
  color: #111;
  text-shadow: none;
  background: var(--yellow);
  border: 1px solid #111;
  font-weight: 900;
}

.sprite-ad strong {
  font-size: 16px;
  line-height: 1.25;
}

.timer-panel {
  background: #e9fbff;
}

.timer {
  margin: 9px;
  padding: 10px 5px;
  color: #00ff51;
  text-align: center;
  font-family: Consolas, "Courier New", monospace;
  font-size: 32px;
  font-weight: 900;
  background: #111;
  border: 3px inset #999;
}

.notice-panel {
  background: #fff;
}

.notice-panel p {
  padding: 6px;
  border: 1px solid #ccc;
  background: #fffbea;
  font-weight: 700;
}

.badge-panel {
  padding-bottom: 8px;
}

.badge-list {
  display: grid;
  gap: 7px;
  padding: 8px;
}

.badge {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 5px;
  color: #111;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 1px 1px #fff;
  border: 2px solid #111;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.15)), url("assets/generated/badges.webp");
  background-repeat: no-repeat;
  background-size: 300% 200%;
  animation: badgeWobble 1.25s steps(2, end) infinite;
}

.badge-1 { background-position: 0% 0%; }
.badge-2 { background-position: 50% 0%; }
.badge-3 { background-position: 100% 0%; }
.badge-4 { background-position: 0% 100%; }

.mini-board {
  padding-bottom: 7px;
  background: #eef7ff;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
}

.modal[hidden],
.toast[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 18px;
  border: 4px solid #111;
  background: #fff;
  box-shadow: 6px 6px 0 var(--red);
}

.modal-card h2 {
  margin: 0 32px 8px 0;
  color: var(--red);
  font-size: 24px;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 2px solid #111;
  background: var(--yellow);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.download-progress {
  height: 26px;
  margin: 12px 0 7px;
  padding: 2px;
  border: 2px solid #111;
  background: #eee;
}

.download-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #00ad43, #fff000, #ff0000);
  transition: width 0.08s linear;
}

#downloadPercent {
  color: var(--red);
  font-size: 28px;
}

.modal-warning {
  margin-bottom: 0;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 11;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 14px;
  color: #111;
  background: var(--yellow);
  border: 3px solid #111;
  box-shadow: 4px 4px 0 var(--red);
  font-weight: 900;
  animation: toastThump 0.42s steps(2, end) infinite;
}

@keyframes pageGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 24px, 0 0; }
}

@keyframes scanlineSlide {
  from { transform: translateX(0); }
  to { transform: translateX(20px); }
}

@keyframes warningBlink {
  0%, 49% { filter: saturate(1.8) contrast(1.15); }
  50%, 100% { filter: saturate(2.5) contrast(1.4); transform: translateY(-1px); }
}

@keyframes cheapGlow {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(255, 0, 0, 0); }
  50% { box-shadow: inset 0 0 0 4px rgba(255, 0, 0, 0.35); }
}

@keyframes logoJitter {
  0%, 84%, 100% { transform: translate(0, 0); }
  86% { transform: translate(1px, -1px); }
  88% { transform: translate(-1px, 1px); }
  90% { transform: translate(2px, 0); }
}

@keyframes searchShine {
  from { left: -42%; }
  to { left: 118%; }
}

@keyframes tabStripe {
  from { background-position: 0 0, 0 0; }
  to { background-position: 28px 0, 0 0; }
}

@keyframes headerBlink {
  0%, 72%, 100% { background: linear-gradient(180deg, #333, #111); }
  73%, 86% { background: linear-gradient(180deg, #e50013, #111); }
}

@keyframes couponPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025) rotate(-0.4deg); }
}

@keyframes heroAlarmWash {
  0% { opacity: 0.28; transform: translateX(0); }
  50% { opacity: 0.58; transform: translateX(8px); }
  100% { opacity: 0.34; transform: translateX(-5px); }
}

@keyframes heroSweep {
  from { background-position: -360px 0, 0 0; }
  to { background-position: 720px 0, 0 24px; }
}

@keyframes statusShake {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2px, 1px); }
}

@keyframes barberPole {
  from { background-position: 0 0; }
  to { background-position: 68px 0; }
}

@keyframes tickerCrawl {
  from { transform: translateX(0); }
  to { transform: translateX(-42%); }
}

@keyframes marqueeLoop {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes alarmBack {
  from { background-position: 0 0; }
  to { background-position: 36px 0; }
}

@keyframes badgeMarch {
  0% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

@keyframes rowPulse {
  0%, 100% { box-shadow: inset 0 0 0 rgba(255, 0, 0, 0); }
  50% { box-shadow: inset 5px 0 0 rgba(255, 0, 0, 0.42); }
}

@keyframes thumbBuzz {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-1.5deg) scale(1.03); }
}

@keyframes buttonPulse {
  0%, 100% { filter: saturate(1.2); }
  50% { filter: saturate(2.3) brightness(1.12); transform: translateY(-1px); }
}

@keyframes riskSiren {
  0%, 100% { filter: saturate(1.4); }
  50% { filter: saturate(2.8) brightness(1.2); }
}

@keyframes adShake {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(1px, -1px); }
}

@keyframes adFlash {
  0%, 70%, 100% { box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.18); }
  71%, 88% { box-shadow: 0 0 0 3px #fff000, 0 0 12px #ff0000; }
}

@keyframes badgeWobble {
  0%, 100% { transform: skewX(0deg); }
  50% { transform: skewX(-2deg); }
}

@keyframes toastThump {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2px, -2px); }
}

/* 2010-ish glossy webhard skin: calmer chrome, cleaner portal density, same noisy motion. */
body {
  background:
    linear-gradient(180deg, #edf5fc 0%, #dfeaf4 190px, #f5f6f8 460px, #ffffff 100%);
  animation: none;
}

body::before {
  display: none;
}

.site-shell {
  border: 1px solid #8ba9c6;
  background: #f8fbff;
  box-shadow: 0 2px 12px rgba(24, 54, 90, 0.24);
}

.top-alert {
  min-height: 31px;
  background: linear-gradient(180deg, #ff4d4d 0%, #de1111 52%, #a80606 100%);
  border-bottom: 1px solid #7e0000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.top-alert strong,
.top-alert b {
  border-color: #9b7d00;
  background: linear-gradient(180deg, #fff889, #ffd21a);
  box-shadow: inset 0 1px 0 #fff;
  animation: warningBlink 1.15s steps(2, end) infinite;
}

.header {
  background:
    linear-gradient(180deg, #ffffff 0%, #f0f7ff 55%, #dfeefa 100%);
  border-bottom: 1px solid #8aa8c8;
}

.brand {
  border: 1px solid #96b4d5;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #edf7ff 48%, #cfe3f8 100%);
  box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(38, 80, 125, 0.25);
  animation: none;
}

.brand-art {
  border-right: 1px solid #b6cce2;
}

.brand-title {
  text-shadow: 0 1px #fff;
}

.brand-main {
  color: #f01818;
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 #ffd342;
  animation: none;
}

.brand-sub {
  border-color: #1c5795;
  border-radius: 2px;
  background: linear-gradient(180deg, #3aa7ff, #0066c8);
}

.search-box {
  border: 2px solid #1674c8;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 0 3px #d8eafa, inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

.search-box input {
  height: 42px;
  color: #333;
}

.search-box button,
.login-box button,
.coupon-panel button,
.timer-panel button,
.mini-board button,
.primary-button,
.secondary-button,
.download-button {
  border: 1px solid #8a0b0b;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #fffd8e 0%, #ffbd2f 48%, #f03718 49%, #be0909 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(0, 0, 0, 0.32);
}

.search-box button {
  border-width: 0 0 0 1px;
}

.login-box {
  border: 1px solid #a7bad1;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff, #eff6fd);
  box-shadow: inset 0 1px 0 #fff;
}

.login-title,
.panel h2 {
  background: linear-gradient(180deg, #3e78b8 0%, #1e5f9e 50%, #0b3f76 100%);
  border-bottom: 1px solid #0a315b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: headerBlink 2.2s steps(2, end) infinite;
}

.login-fields input {
  border-color: #aebdcc;
}

.category-tabs {
  padding: 4px 5px 0;
  border-bottom: 1px solid #0b3f76;
  background: linear-gradient(180deg, #2b75ba, #0b4f96);
}

.tab-button {
  min-height: 36px;
  margin: 0 2px;
  border: 1px solid #0b4f96;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 38%, rgba(255, 255, 255, 0.22)),
    linear-gradient(180deg, #4eb6ff 0%, #1482d9 48%, #0061b5 100%);
  background-size: 160px 100%, 100% 100%;
  animation: tabGlossSlide 1.8s linear infinite;
}

.tab-button.active {
  color: #06315d;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.45), transparent 36%, rgba(255, 255, 255, 0.2)),
    linear-gradient(180deg, #ffffff 0%, #fff8a9 46%, #ffd74d 100%);
  animation: tabGlossSlide 1.4s linear infinite;
}

.layout {
  background: #f4f7fa;
}

.panel {
  border: 1px solid #9fb2c5;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(30, 55, 85, 0.18);
  overflow: hidden;
}

.coupon-panel {
  background: linear-gradient(180deg, #ffffff, #fff7cf);
}

.coin-burst {
  border: 2px dotted #ff2c1f;
  border-radius: 4px;
  background: linear-gradient(180deg, #fffef5, #ffe56a);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, 0.16);
  animation: couponPop 1.15s steps(2, end) infinite;
}

.rank-panel li::before {
  border: 1px solid #c00000;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff4a4a, #c30000);
}

.hero {
  border: 1px solid #6a8fb6;
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(9, 40, 78, 0.72) 0%, rgba(9, 40, 78, 0.34) 48%, rgba(255, 255, 255, 0.03) 100%),
    url("assets/generated/hero-banner.webp") center / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(35, 130, 230, 0.28), transparent 48%, rgba(255, 46, 46, 0.18)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  animation: heroAlarmWash 2s linear infinite;
}

.hero::after {
  background-image: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.28) 45%, transparent 55%);
  animation: heroSweep 2.8s linear infinite;
}

.hero-badge {
  border: 1px solid #af8f00;
  border-radius: 3px;
  background: linear-gradient(180deg, #fffdf2, #ffd941);
  box-shadow: inset 0 1px 0 #fff;
}

.hero h1 {
  color: #fff13d;
  text-shadow: 0 2px 0 #d71920, 0 4px 3px #001b32;
}

.hero-status {
  border: 1px solid #de1c1c;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
  animation: statusShake 1.15s steps(2, end) infinite;
}

.hero-status span {
  border: 1px solid #1b7b30;
  border-radius: 2px;
}

.ticker {
  border: 1px solid #b6a347;
  border-radius: 3px;
  background: #fffbd8;
}

.ticker strong {
  background: linear-gradient(180deg, #ff4d4d, #c70b0b);
  border-right: 1px solid #8a0000;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  line-height: 1;
}

.alarm-strip {
  min-height: 38px;
  border: 1px solid #e1b600;
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, #fff4a4 0 28px, #ffd53c 28px 56px);
  box-shadow: inset 0 1px 0 #fff;
  animation: alarmBack 0.9s linear infinite;
}

.alarm-strip span,
.alarm-strip b {
  border: 1px solid #9fb2c5;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffffff, #e8f1f8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alarm-strip span {
  border-color: #b00000;
  background: linear-gradient(180deg, #ff4c4c, #c90000);
  width: 50px;
  min-width: 50px;
  text-align: center;
  text-overflow: clip;
}

.section-head {
  border-bottom: 1px solid #9fb2c5;
  background: linear-gradient(180deg, #f9fdff 0%, #d8ecfb 100%);
  box-shadow: inset 0 1px 0 #fff;
}

.section-head h2 {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  color: #063c72;
  background: linear-gradient(180deg, #ffffff 0%, #d9f1ff 100%);
  border: 1px solid #9fc6e4;
  border-radius: 3px;
  text-shadow: 0 1px 0 #fff;
  box-shadow: inset 0 1px 0 #fff;
}

.file-row {
  min-height: 82px;
  border-bottom: 1px solid #d2dce7;
  animation: rowPulse 3.1s steps(2, end) infinite;
}

.file-row:nth-child(even) {
  background: #f3f8fc;
}

.thumb {
  border: 1px solid #8aa8c8;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  animation: thumbBuzz 2.6s steps(2, end) infinite;
}

.file-tags span {
  border: 1px solid #b58d00;
  border-radius: 2px;
  background: linear-gradient(180deg, #fffde5, #ffe15b);
}

.risk-card {
  background: linear-gradient(180deg, #ffffff, #fff6c9);
}

.risk-meter {
  border: 1px solid #a88900;
  border-radius: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.risk-meter span {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0b63bd, #083f86);
  animation: riskSiren 1.05s steps(2, end) infinite;
}

.hero-status span {
  position: relative;
  overflow: hidden;
  color: transparent;
  background: linear-gradient(180deg, #0e83de, #07509b);
  animation: none;
}

.risk-meter span::before,
.hero-status span::before {
  content: "";
  position: absolute;
  inset: -24px -120px;
  background:
    repeating-linear-gradient(
      115deg,
      #084f9e 0 18px,
      #1594e6 18px 36px,
      #78d9ff 36px 54px,
      #f7fdff 54px 72px
    );
  animation: barberLayerSlide 0.74s linear infinite;
}

.hero-status span::after {
  content: "99% 다운로드 중...";
  position: absolute;
  left: 6px;
  top: 0;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 1px #00345e;
}

.sprite-ad {
  border-radius: 4px;
  text-shadow: 0 2px 2px #00152a;
  background-image:
    linear-gradient(90deg, rgba(5, 39, 83, 0.28), rgba(5, 39, 83, 0.05)),
    url("assets/generated/ad-banners.webp");
  background-repeat: no-repeat;
  background-size: 100% 300%;
  animation: adShake 1.75s steps(2, end) infinite, adFlash 2.35s steps(2, end) infinite;
}

.sprite-ad span {
  border: 1px solid #2c79b7;
  border-radius: 3px;
  background: linear-gradient(180deg, #f8fdff, #9ad7ff);
}

.ad-one { background-position: center 0%; }
.ad-two { background-position: center 50%; }
.ad-three { background-position: center 100%; }

.hero-badge,
.top-alert strong,
.top-alert b,
.coin-burst,
.file-tags span,
.alarm-strip span,
.alarm-strip b,
.toast {
  border-color: #2f7eba;
}

.hero-badge,
.top-alert strong,
.top-alert b,
.file-tags span,
.sprite-ad span,
.toast {
  color: #083965;
  background: linear-gradient(180deg, #ffffff 0%, #d9f2ff 48%, #90d3ff 100%);
}

.coin-burst,
.risk-card {
  background: linear-gradient(180deg, #ffffff, #d9f2ff);
}

.alarm-strip {
  border-color: #8fc8f1;
  background:
    repeating-linear-gradient(90deg, #dff5ff 0 28px, #a9ddff 28px 56px);
}

.alarm-window {
  position: relative;
  margin-left: 6px;
  padding: 3px 0 3px 12px;
  border: 1px solid #8fc8f1;
  border-radius: 3px;
  background: linear-gradient(180deg, #f8fdff, #d8f1ff);
  box-shadow: inset 0 1px 0 #fff;
}

.alarm-window::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 18px;
  pointer-events: none;
  background: linear-gradient(90deg, #eef9ff 0%, rgba(238, 249, 255, 0) 100%);
}

.alarm-track {
  position: relative;
  z-index: 1;
  animation: alarmMarqueeLoop 8.8s linear infinite;
}

.alarm-strip b {
  max-width: none;
}

.search-box button,
.login-box button,
.coupon-panel button,
.timer-panel button,
.mini-board button,
.primary-button,
.secondary-button,
.download-button {
  border-color: #09518f;
  background:
    linear-gradient(180deg, #e9fbff 0%, #61c8ff 46%, #1682d8 47%, #07549d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 41, 82, 0.35);
}

.download-button,
.primary-button {
  background:
    linear-gradient(180deg, #ffffff 0%, #74d7ff 43%, #1285dc 44%, #063f91 100%);
}

.secondary-button {
  color: #fff;
}

.timer {
  border: 1px solid #4b5966;
  border-radius: 3px;
  background: linear-gradient(180deg, #202833, #0d1117);
}

.notice-panel p {
  border-color: #d5dde6;
  border-radius: 3px;
  background: #fbfdff;
}

.badge {
  border: 1px solid #a4b6c9;
  border-radius: 3px;
  animation: badgeWobble 1.9s steps(2, end) infinite;
}

.modal-card {
  border: 1px solid #7f9cba;
  border-radius: 5px;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.42);
}

.toast {
  border: 1px solid #ad8c00;
  border-radius: 4px;
  background: linear-gradient(180deg, #fffdf0, #ffd941);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  animation: toastThump 0.85s steps(2, end) infinite;
}

.rank-panel {
  position: relative;
}

.rank-panel h2::after {
  content: "LIVE";
  float: right;
  margin-top: 1px;
  padding: 1px 5px;
  color: #063c72;
  background: linear-gradient(180deg, #ffffff, #9ee4ff);
  border: 1px solid #8fc8f1;
  border-radius: 2px;
  font-size: 10px;
  line-height: 1.25;
  animation: warningBlink 1s steps(2, end) infinite;
}

.rank-panel ol {
  overflow: hidden;
}

.rank-panel li {
  position: relative;
  transition: none;
}

.rank-panel li.rank-changed {
  background:
    linear-gradient(90deg, rgba(0, 119, 204, 0.24), rgba(255, 255, 255, 0) 72%),
    #eef8ff;
  outline: 1px solid #73bce9;
  animation: rankRowBurst 0.64s steps(2, end) var(--rank-delay, 0ms) both;
}

.rank-panel li.rank-changed::before {
  animation: rankNumberPop 0.64s steps(2, end) var(--rank-delay, 0ms) both;
}

.rank-panel li.rank-changed span {
  animation: rankTextSlide 0.64s steps(2, end) var(--rank-delay, 0ms) both;
}

.rank-panel li b {
  min-width: 34px;
  padding: 1px 3px;
  text-align: center;
  border-radius: 2px;
}

.rank-panel li.rank-changed b {
  background: linear-gradient(180deg, #ffffff, #b9efff);
  box-shadow: 0 0 0 1px #7cc9ef;
  animation: rankBadgeFlash 0.64s steps(2, end) var(--rank-delay, 0ms) both;
}

.rank-panel li b.rank-down {
  color: #1d65ad;
}

.rank-flash {
  position: static;
  margin: 6px 6px 0;
  padding: 1px 5px;
  color: #07508f;
  background: linear-gradient(180deg, #ffffff, #d8f1ff);
  border: 1px solid #8fc8f1;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
  animation: rankFlashBlink 1.8s steps(2, end) infinite;
}

@keyframes tabGlossSlide {
  from { background-position: -160px 0, 0 0; }
  to { background-position: 160px 0, 0 0; }
}

@keyframes barberLayerSlide {
  from { transform: translateX(0); }
  to { transform: translateX(72px); }
}

@keyframes alarmMarqueeLoop {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

@keyframes rankRowBurst {
  0% { transform: translateX(0); filter: brightness(1); }
  20% { transform: translateX(4px); filter: brightness(1.4); }
  40% { transform: translateX(-2px); filter: brightness(1.1); }
  60% { transform: translateX(2px); filter: brightness(1.35); }
  100% { transform: translateX(0); filter: brightness(1); }
}

@keyframes rankNumberPop {
  0% { transform: translateY(0); filter: brightness(1); }
  35% { transform: translateY(-1px); filter: brightness(1.8); }
  70% { transform: translateY(1px); }
  100% { transform: translateY(0); filter: brightness(1); }
}

@keyframes rankTextSlide {
  0%, 100% { color: inherit; }
  50% { color: #005fd9; }
}

@keyframes rankBadgeFlash {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-2px); filter: saturate(2.2) brightness(1.25); }
}

@keyframes rankFlashBlink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0.4; }
}

@media (max-width: 1px) { /* 원래 980px -- 반응형 비활성화 */
  .header {
    grid-template-columns: 1fr;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .left-rail,
  .right-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1px) { /* 원래 680px -- 반응형 비활성화 */
  .site-shell {
    width: calc(100% - 10px);
    margin-top: 5px;
    border-width: 2px;
  }

  .top-alert {
    display: grid;
    gap: 5px;
  }

  .top-alert span {
    white-space: normal;
  }

  .brand {
    min-height: 78px;
  }

  .brand-art {
    flex-basis: 88px;
  }

  .brand-main {
    font-size: 24px;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .search-box button {
    min-height: 38px;
    border-width: 2px 0 0;
  }

  .category-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .left-rail,
  .right-rail,
  .dashboard-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 390px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-lead {
    font-size: 20px;
  }

  .hero-status {
    left: 10px;
    right: 10px;
    width: auto;
  }

  .ticker-track,
  .alarm-track {
    flex-wrap: nowrap;
  }

  .section-head {
    display: grid;
  }

  .section-head span {
    width: fit-content;
  }

  .file-row {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
  }

  .thumb {
    width: 54px;
  }

  .file-stat {
    grid-column: 2;
    justify-items: start;
  }

  .download-button {
    grid-column: 2;
    width: 100%;
  }
}

/* ===== 가짜 팝업 광고 시스템 ===== */
.fake-popup {
  position: fixed;
  z-index: 100;
  width: 380px;
  background: #fff;
  border: 2px solid #0055a5;
  box-shadow: 4px 4px 0 rgba(0,0,0,.35), inset 0 0 0 1px #c5d9ee;
  border-radius: 0;
  animation: popupBounceIn .35s ease-out;
  font-family: Arial, 'Malgun Gothic', sans-serif;
}

.fake-popup[hidden] { display: none; }

.fake-popup-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 3px 0 6px;
  background: linear-gradient(180deg, #0a7ae2 0%, #0558b5 48%, #003d8a 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: default;
  user-select: none;
}

.fake-popup-titlebar span {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fake-popup-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 2px;
  background: linear-gradient(180deg, #c74040, #b91515);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  padding: 0;
}

.fake-popup-close:hover {
  background: linear-gradient(180deg, #e04040, #d01515);
}

.fake-popup-body {
  padding: 14px;
  background: linear-gradient(180deg, #f8fbff, #e9f1fa);
  text-align: center;
}

.fake-popup-body h3 {
  margin: 0 0 8px;
  color: #c00;
  font-size: 16px;
  animation: popupTextBlink 1.2s steps(2, end) infinite;
}

.fake-popup-body p {
  margin: 6px 0;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}

.fake-popup-body .popup-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 24px;
  border: 1px solid #09518f;
  border-radius: 3px;
  background: linear-gradient(180deg, #e9fbff 0%, #61c8ff 46%, #1682d8 47%, #07549d 100%);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(0,41,82,.35);
  animation: buttonPulse .8s steps(2, end) infinite;
}

.fake-popup-body .popup-warning {
  margin-top: 8px;
  padding: 6px;
  border: 1px dashed #c00;
  background: #fff5f5;
  color: #900;
  font-size: 11px;
  font-weight: 700;
}

.fake-popup-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-top: 1px solid #c5d9ee;
  background: #e8f0f8;
  font-size: 11px;
  color: #666;
}

.fake-popup-footer input[type="checkbox"] {
  margin: 0;
}

/* 팝업 위치 변형 */
.fake-popup.popup-pos-1 { top: 80px; left: 50%; transform: translateX(-50%); }
.fake-popup.popup-pos-2 { top: 120px; right: 40px; left: auto; }
.fake-popup.popup-pos-3 { bottom: 80px; left: 60px; top: auto; }
.fake-popup.popup-pos-4 { top: 160px; left: 80px; }
.fake-popup.popup-pos-5 { bottom: 120px; right: 80px; top: auto; left: auto; }

/* 확인 다이얼로그 */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.45);
}

.confirm-overlay[hidden] { display: none; }

.confirm-box {
  width: 320px;
  border: 2px solid #0055a5;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(0,0,0,.35);
}

.confirm-box .fake-popup-titlebar {
  background: linear-gradient(180deg, #6b98c4 0%, #4c7daf 48%, #3a6897 100%);
}

.confirm-box-body {
  padding: 18px;
  text-align: center;
}

.confirm-box-body p {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.confirm-box-body .confirm-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff36b, #ffb200);
  border: 2px solid #a58200;
  line-height: 28px;
  font-size: 20px;
  font-weight: 900;
  color: #111;
}

.confirm-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.confirm-buttons button {
  min-width: 80px;
  padding: 6px 16px;
  border: 1px solid #09518f;
  border-radius: 3px;
  background: linear-gradient(180deg, #f0f6fb 0%, #d4e4f2 48%, #b8cedf 100%);
  color: #111;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #fff;
}

.confirm-buttons button:first-child {
  background: linear-gradient(180deg, #e9fbff 0%, #61c8ff 46%, #1682d8 47%, #07549d 100%);
  color: #fff;
}

/* ===== 블러/모자이크 가짜 광고 ===== */
.blur-ad-card {
  position: relative;
  min-height: 140px;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.blur-ad-bg {
  position: absolute;
  inset: 0;
  background: url('assets/generated/blur-ad.webp') center / cover no-repeat;
  filter: blur(5px) saturate(1.4);
  transform: scale(1.1);
  transition: filter .3s;
}

.blur-ad-card:hover .blur-ad-bg {
  filter: blur(3px) saturate(1.8);
}

.blur-ad-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-conic-gradient(rgba(0,0,0,.08) 0% 25%, transparent 0% 50%) 0 0 / 8px 8px,
    rgba(0,0,0,.12);
  pointer-events: none;
  transition: opacity .3s;
}

.blur-ad-card:hover::after {
  opacity: .6;
}

.blur-ad-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 14px;
  text-align: center;
}

.blur-ad-badge {
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #ff4d4d, #c70b0b);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid #8a0000;
  border-radius: 2px;
  animation: warningBlink 1.15s steps(2, end) infinite;
}

.blur-ad-title {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 0 8px rgba(0,0,0,.4);
  margin-bottom: 6px;
}

.blur-ad-sub {
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

.blur-ad-lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 12px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 3px;
  color: #ffd941;
  font-size: 11px;
  font-weight: 900;
}

/* ===== VIP 등급 시스템 ===== */
.vip-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 12px;
  background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
  border-bottom: 1px solid #333;
  color: #ccc;
  font-size: 12px;
  font-weight: 700;
}

.vip-grade {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 900;
  font-size: 11px;
  animation: vipShine 2s linear infinite;
}

.vip-grade.grade-bronze {
  background: linear-gradient(180deg, #d4a373, #a0714a);
  color: #fff;
  border: 1px solid #7a5530;
  text-shadow: 0 1px 1px rgba(0,0,0,.4);
}

.vip-grade.grade-silver {
  background: linear-gradient(180deg, #e0e0e0, #a8a8a8);
  color: #333;
  border: 1px solid #888;
}

.vip-grade.grade-gold {
  background: linear-gradient(180deg, #ffd700, #c8a200);
  color: #3a2800;
  border: 1px solid #9a7b00;
}

.vip-grade.grade-diamond {
  background: linear-gradient(135deg, #88e8ff, #44b4ff, #a8f0ff, #44b4ff);
  background-size: 200% 200%;
  color: #003366;
  border: 1px solid #2288cc;
  animation: vipShine 2s linear infinite, diamondShift 1.5s linear infinite;
}

.vip-points {
  color: #ffd941;
  font-weight: 900;
}

.vip-remain {
  color: #ff6b6b;
}

.vip-users {
  color: #7ec8e3;
}

.vip-users b {
  color: #fff;
}

/* VIP 등급 혜택 패널 */
.grade-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  background: #fff;
}

.grade-table th {
  padding: 5px 4px;
  background: linear-gradient(180deg, #3e78b8, #0b3f76);
  color: #fff;
  border: 1px solid #0a315b;
  font-size: 10px;
}

.grade-table td {
  padding: 4px;
  border: 1px solid #d2dce7;
  text-align: center;
  font-weight: 700;
}

.grade-table tr:nth-child(even) { background: #f3f8fc; }

.grade-table .current-grade {
  background: linear-gradient(180deg, #fff8a9, #ffd74d) !important;
  animation: warningBlink 2s steps(2, end) infinite;
}

/* ===== 추가 애니메이션 ===== */
@keyframes popupBounceIn {
  0% { opacity: 0; transform: translateY(-30px) scale(.9); }
  60% { opacity: 1; transform: translateY(5px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes popupTextBlink {
  0%, 49% { color: #c00; }
  50%, 100% { color: #ff4400; text-shadow: 0 0 4px rgba(255,0,0,.3); }
}

@keyframes vipShine {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
  100% { filter: brightness(1); }
}

@keyframes diamondShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ===== 반응형 보강 ===== */
@media (max-width: 1px) { /* 원래 980px -- 반응형 비활성화 */
  .fake-popup {
    width: min(360px, calc(100% - 20px));
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
  .vip-bar {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 11px;
  }
}

@media (max-width: 1px) { /* 원래 680px -- 반응형 비활성화 */
  .fake-popup {
    width: calc(100% - 20px);
  }
  .vip-bar {
    font-size: 10px;
    padding: 4px 6px;
  }
}
