:root{
  --bg:#f6f7f8; --card:#fff; --text:#171717; --muted:#6d7178; --line:#e4e6ea;
  --accent:#111; --soft:#f0f2f4; --radius:22px; --shadow:0 12px 32px rgba(0,0,0,.06);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",sans-serif;line-height:1.65}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
.wrap{width:min(1160px,calc(100% - 28px));margin:0 auto}
header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.header-inner{min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{font-size:21px;font-weight:900;letter-spacing:-.04em}
.brand span{font-weight:500;color:#777}
nav{display:flex;gap:6px;overflow:auto;white-space:nowrap}
nav a{padding:9px 12px;border-radius:12px;font-size:14px;font-weight:800}
nav a:hover,nav a.active{background:#111;color:#fff}
.hero{padding:68px 0 36px;background:linear-gradient(180deg,#fff,#f6f7f8)}
.hero-card{background:#fff;border:1px solid var(--line);border-radius:30px;padding:38px;box-shadow:var(--shadow)}
.eyebrow{font-size:12px;letter-spacing:.13em;color:#777;font-weight:900;text-transform:uppercase}
h1{font-size:clamp(36px,6vw,66px);line-height:1.06;letter-spacing:-.055em;margin:10px 0 18px}
h2{font-size:31px;letter-spacing:-.04em;margin:0 0 8px}
h3{letter-spacing:-.03em}
p{margin:0}
.lead{font-size:17px;color:#62666e;max-width:760px}
.cta-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #111;background:#111;color:#fff;border-radius:14px;padding:12px 17px;font-weight:850;cursor:pointer}
.btn.ghost{background:#fff;color:#111;border-color:#d8dadd}
.btn.small{padding:9px 12px;font-size:13px}
section{padding:34px 0}
.section-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:18px}
.section-head p{color:#777}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 5px 18px rgba(0,0,0,.035)}
.card-body{padding:20px}
.thumb{aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;font-size:48px;background:linear-gradient(135deg,#ededee,#fff);border-bottom:1px solid var(--line)}
.badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#f1f2f3;font-size:12px;font-weight:850;color:#5d6168;margin-bottom:9px}
.product-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column}
.product-img{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;font-size:48px;background:linear-gradient(135deg,#f0f0f1,#fff)}
.product-info{padding:15px;display:flex;flex-direction:column;gap:7px;flex:1}
.product-info h4{margin:0;font-size:16px;line-height:1.35}
.product-info p{color:#73777e;font-size:13px}
.product-info .btn{margin-top:auto}
.ad-slot{background:#fff;border:1px dashed #c9ccd1;border-radius:18px;min-height:110px;padding:18px;display:flex;align-items:center;justify-content:center;text-align:center;color:#7a7f86}
.ad-slot strong{display:block;color:#31343a;margin-bottom:3px}
.ad-slot code{font-size:12px;background:#f4f5f6;padding:3px 6px;border-radius:6px}
.article{background:#fff;border:1px solid var(--line);border-radius:24px;padding:28px}
.article h2,.article h3{margin-top:0}
.article p{margin:0 0 14px;color:#4f545c}
.game-panel{background:#fff;border:1px solid var(--line);border-radius:26px;padding:28px}
.question{font-size:24px;font-weight:900;letter-spacing:-.04em;margin:12px 0 20px}
.choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.choice{border:1px solid #d9dce1;background:#fafafa;border-radius:16px;padding:17px;font-weight:850;cursor:pointer;text-align:left}
.choice:hover{background:#111;color:#fff}
.progress{height:10px;background:#eceef1;border-radius:999px;overflow:hidden;margin:10px 0 22px}
.progress > span{display:block;height:100%;background:#111;width:0}
.result-hero{background:#111;color:#fff;border-radius:26px;padding:30px}
.result-hero p{color:#ddd}
.stat-box{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px}
.stat-row{margin:15px 0}
.stat-head{display:flex;justify-content:space-between;gap:10px;font-weight:800}
.bar{height:14px;background:#eceef1;border-radius:999px;overflow:hidden;margin-top:6px}
.bar > span{height:100%;display:block;background:#111}
.feature-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:16px 0 0;padding:0;list-style:none}
.feature-list li{background:#f6f7f8;border-radius:14px;padding:13px}
.notice{background:#111;color:#fff;border-radius:20px;padding:20px}
.notice p{font-size:13px;color:#e2e2e2}
.footer{padding:32px 0 60px;color:#777;font-size:13px}
.footer-inner{border-top:1px solid var(--line);padding-top:22px;display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}
.muted{color:#777}
.center{text-align:center}
.mt{margin-top:18px}
.mb{margin-bottom:18px}
hr{border:0;border-top:1px solid var(--line);margin:24px 0}
@media(max-width:900px){
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .grid-3,.grid-2{grid-template-columns:1fr}
  .header-inner{align-items:flex-start;flex-direction:column;padding:12px 0}
  nav{width:100%}
}
@media(max-width:560px){
  .wrap{width:min(100% - 20px,1160px)}
  .hero{padding-top:34px}
  .hero-card,.article,.game-panel{padding:22px}
  .grid-4{grid-template-columns:1fr}
  .choices,.feature-list{grid-template-columns:1fr}
  h1{font-size:42px}
}

.legal-links{
  display:flex;flex-wrap:wrap;gap:10px 18px;
  padding:18px 0;border-top:1px solid var(--line);
  font-size:13px;color:#555
}
.legal-links a:hover{text-decoration:underline}
.policy-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;align-items:start}
.policy-nav{position:sticky;top:94px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px}
.policy-nav a{display:block;padding:7px 8px;border-radius:9px;font-size:13px;color:#555}
.policy-nav a:hover{background:#f3f4f5;color:#111}
.policy-article{background:#fff;border:1px solid var(--line);border-radius:24px;padding:30px}
.policy-article h1{font-size:38px;margin:0 0 8px}
.policy-article h2{font-size:23px;margin:30px 0 10px}
.policy-article h3{font-size:18px;margin:20px 0 8px}
.policy-article p,.policy-article li{color:#50555d}
.policy-article ul{padding-left:22px}
.policy-article .policy-meta{font-size:13px;color:#777;margin-bottom:24px}
.policy-article .callout{background:#f5f6f7;border-radius:15px;padding:16px;margin:16px 0}
.policy-table{width:100%;border-collapse:collapse;margin:14px 0 20px;font-size:14px}
.policy-table th,.policy-table td{border-bottom:1px solid var(--line);padding:12px 10px;text-align:left;vertical-align:top}
.policy-table th{background:#fafafa}
.contact-value{font-weight:800;word-break:break-all}
@media(max-width:900px){
  .policy-layout{grid-template-columns:1fr}
  .policy-nav{position:static}
}




/* Compact vertical-video banner */
.video-banner-wrap{padding:22px 0 4px}
.video-banner{
  position:relative;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);
  min-height:390px;background:#111;border-radius:28px;overflow:hidden;box-shadow:var(--shadow);
  cursor:pointer;border:1px solid rgba(255,255,255,.08)
}
.video-banner-info{
  padding:42px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
  color:#fff;background:radial-gradient(circle at 20% 10%,rgba(255,255,255,.08),transparent 36%),#111
}
.video-banner-info .eyebrow{color:#bfc3c9}
.video-banner-info h2{font-size:clamp(32px,4vw,52px);line-height:1.08;margin:10px 0 14px;color:#fff}
.video-banner-info p{max-width:590px;color:#d9dce1;font-size:16px}
.video-banner-cta{margin-top:22px;display:inline-flex;align-items:center;gap:8px;font-weight:900;color:#fff}
.video-frame{
  position:relative;min-height:390px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#222,#080808);overflow:hidden
}
.video-frame::before{
  content:"";position:absolute;inset:0;background:radial-gradient(circle at center,rgba(255,255,255,.08),transparent 58%);
  pointer-events:none
}
.video-banner video{
  position:relative;z-index:1;display:block;width:auto;height:390px;max-width:100%;object-fit:contain;background:#000;
  pointer-events:none
}
.video-icon-btn{
  position:absolute;z-index:5;right:16px;bottom:16px;border:1px solid rgba(255,255,255,.28);
  background:rgba(17,17,17,.74);color:#fff;border-radius:999px;padding:10px 14px;font-weight:850;cursor:pointer;
  backdrop-filter:blur(8px)
}
.video-icon-btn:hover{background:rgba(17,17,17,.92)}
.video-audio-note{
  position:absolute;z-index:4;left:16px;bottom:16px;padding:8px 11px;border-radius:999px;
  background:rgba(17,17,17,.62);color:#fff;font-size:12px;font-weight:800;backdrop-filter:blur(8px)
}
.admin-shell{max-width:1180px;margin:0 auto;padding:32px 18px 70px}
.admin-top{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:20px}
.admin-panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;margin-bottom:18px}
.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.admin-grid .full{grid-column:1/-1}
.admin-field label{display:block;font-size:12px;font-weight:850;margin-bottom:5px;color:#555}
.admin-field input,.admin-field select,.admin-field textarea{width:100%;border:1px solid #d7d9de;border-radius:11px;padding:11px;background:#fff}
.admin-field textarea{min-height:88px;resize:vertical}
.admin-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.admin-table-wrap{overflow:auto}
.admin-table{width:100%;border-collapse:collapse;font-size:13px;min-width:820px}
.admin-table th,.admin-table td{padding:10px;border-bottom:1px solid #eee;text-align:left;vertical-align:top}
.admin-note{background:#fff7dc;border:1px solid #f0df9f;border-radius:14px;padding:14px;font-size:13px;color:#574b18}
@media(max-width:820px){
  .video-banner{grid-template-columns:1fr;min-height:auto}
  .video-banner-info{padding:28px}
  .video-frame{min-height:430px}
  .video-banner video{height:430px}
  .admin-grid{grid-template-columns:1fr}
  .admin-grid .full{grid-column:auto}
}
@media(max-width:520px){
  .video-banner-wrap{padding-top:12px}
  .video-banner{border-radius:20px}
  .video-banner-info{padding:22px}
  .video-banner-info h2{font-size:31px}
  .video-frame{min-height:380px}
  .video-banner video{height:380px}
}


/* Secure admin auth / role management */
.admin-auth-card{
  max-width:640px;margin:40px auto;background:#fff;border:1px solid var(--line);
  border-radius:24px;padding:26px;box-shadow:var(--shadow)
}
.admin-auth-head h2{margin:4px 0 6px;font-size:30px}
.admin-auth-head p{color:#6d7178}
.admin-tabs{display:flex;gap:8px;margin:22px 0 16px;padding:5px;background:#f2f3f5;border-radius:14px}
.admin-tab{flex:1;border:0;background:transparent;border-radius:10px;padding:10px 12px;font-weight:850;cursor:pointer}
.admin-tab.active{background:#111;color:#fff}
.admin-message{margin-top:14px;padding:12px 14px;border-radius:12px;font-size:13px}
.admin-message.info{background:#eef4ff;color:#20436e;border:1px solid #ccdcf4}
.admin-message.success{background:#edf8ef;color:#236232;border:1px solid #cbe8d1}
.admin-message.error{background:#fff0f0;color:#8c2525;border:1px solid #f2c6c6}
.admin-sessionbar{
  display:flex;justify-content:space-between;align-items:center;gap:14px;
  background:#111;color:#fff;border-radius:18px;padding:14px 18px;margin-bottom:18px
}
.role-chip{
  display:inline-flex;margin-left:8px;padding:4px 8px;border-radius:999px;
  font-size:11px;font-weight:900;background:#e9eaed;color:#333
}
.role-chip.superadmin{background:#fff;color:#111}
.role-chip.admin{background:#e9eaed;color:#333}
.admin-grant-box{
  display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:end;
  background:#f7f8f9;border-radius:16px;padding:16px
}
.admin-section-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.admin-section-title h2{margin:4px 0}
@media(max-width:680px){
  .admin-grant-box{grid-template-columns:1fr}
  .admin-sessionbar{align-items:flex-start;flex-direction:column}
}


/* v2.6 admin analytics */
.admin-stat-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px
}
.admin-stat{
  background:#f6f7f8;border:1px solid #e5e7ea;border-radius:16px;padding:16px
}
.admin-stat span{display:block;font-size:12px;color:#6d7178;font-weight:800;margin-bottom:6px}
.admin-stat strong{font-size:28px;letter-spacing:-.04em}
@media(max-width:900px){.admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.admin-stat-grid{grid-template-columns:1fr}}


/* v2.7 media, channel pages, product placement */
.product-img{overflow:hidden}
.product-img img{width:100%;height:100%;object-fit:cover;display:block}
.episode-card-link{display:block;height:100%}
.episode-card .thumb{height:220px;overflow:hidden}
.episode-card .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.channel-toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:18px}
.channel-empty{padding:28px;border:1px dashed var(--line);border-radius:18px;background:#fff;color:#666}
.video-player-wrap{background:#111;border-radius:20px;overflow:hidden;min-height:260px;display:flex;align-items:center;justify-content:center}
.video-player-wrap video{display:block;width:100%;max-height:720px;background:#000}
.video-player-wrap iframe{display:block;width:100%;aspect-ratio:16/9;border:0}
.admin-check-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#f7f8f9
}
.admin-check-grid .placement-option{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:11px;
  min-width:0;
  padding:13px 14px;
  border:1px solid #e2e5e9;
  border-radius:13px;
  background:#fff;
  cursor:pointer;
  text-align:left;
  line-height:1.35
}
.admin-check-grid .placement-option:hover{
  border-color:#b8bdc5;
  background:#fcfcfd
}
.admin-check-grid .placement-option input{
  flex:0 0 auto;
  width:18px;
  height:18px;
  margin:2px 0 0;
  accent-color:#111
}
.admin-check-grid .placement-option span{
  display:block;
  min-width:0
}
.admin-check-grid .placement-option strong{
  display:block;
  font-size:14px;
  color:#111;
  margin:0 0 3px
}
.admin-check-grid .placement-option small{
  display:block;
  font-size:12px;
  font-weight:500;
  color:#777;
  word-break:keep-all
}
.upload-box{padding:14px;border:1px dashed var(--line);border-radius:14px;background:#fafafa}
.upload-progress{font-size:12px;color:#555;margin-top:8px}
.admin-subnav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.admin-subnav a{padding:8px 12px;border:1px solid var(--line);border-radius:999px;font-size:12px;font-weight:800;background:#fff}
@media(max-width:760px){
  .admin-check-grid{grid-template-columns:1fr}
}


/* v2.7.3 draft state + in-page anchors */
.admin-draft-status{
  margin:0 0 12px;
  padding:9px 12px;
  border:1px solid #dce1e7;
  border-radius:11px;
  background:#f8f9fa;
  color:#5f6670;
  font-size:12px;
  font-weight:700
}
.field-help{
  display:block;
  margin-top:6px;
  color:#737982;
  font-size:11px;
  line-height:1.5
}
.field-help code{
  padding:2px 5px;
  border-radius:5px;
  background:#f0f1f3
}
section[id], article[id], div[id].anchor-target{
  scroll-margin-top:96px
}
html{scroll-behavior:smooth}


/* v2.7.5 copyable anchor URLs */
.url-input-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:8px;
  align-items:center
}
.quick-link-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px
}
.quick-copy-link{
  appearance:none;
  border:1px solid #e0e3e7;
  border-radius:13px;
  background:#fff;
  padding:11px 12px;
  text-align:left;
  cursor:pointer;
  min-width:0
}
.quick-copy-link:hover{
  border-color:#aeb4bc;
  background:#fafafa
}
.quick-copy-link strong,
.quick-copy-link span,
.quick-copy-link code{
  display:block
}
.quick-copy-link strong{
  font-size:12px;
  color:#111;
  margin-bottom:2px
}
.quick-copy-link span{
  font-size:11px;
  color:#6b7179;
  margin-bottom:6px
}
.quick-copy-link code{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:10px;
  color:#555;
  background:#f4f5f6;
  padding:5px 6px;
  border-radius:6px
}
.copy-toast{
  margin-top:9px;
  padding:9px 11px;
  border-radius:9px;
  background:#111;
  color:#fff;
  font-size:11px;
  font-weight:800
}
@media(max-width:850px){
  .quick-link-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .url-input-row{grid-template-columns:1fr}
  .quick-link-grid{grid-template-columns:1fr}
}


/* v2.8.1 URL copy fix */
.quick-copy-link{
  cursor:copy
}
.quick-copy-link:active{
  transform:translateY(1px)
}
.copy-toast.success{
  background:#111;
  color:#fff
}
.copy-toast.error{
  background:#8f1d1d;
  color:#fff
}
.field-help-inline{
  margin-left:6px;
  color:#777;
  font-size:11px;
  font-weight:500
}


/* =========================================================
   v2.9 product horizontal carousel
   ========================================================= */
.product-scroller{
  display:flex;
  gap:16px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:4px 2px 14px;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  overscroll-behavior-x:contain
}
.product-scroller .product-card{
  flex:0 0 clamp(230px,24vw,280px);
  scroll-snap-align:start
}
.product-scroll-controls{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  margin:-4px 0 10px
}
.product-scroll-controls button{
  width:40px;
  height:40px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  font-size:18px;
  font-weight:800
}
.product-scroll-controls button:hover{background:#f3f4f5}

/* Episode thumbnail */
.episode-card .thumb{position:relative}
.episode-play-badge{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  border-radius:50%;
  background:rgba(0,0,0,.76);
  color:#fff;
  font-size:22px;
  padding-left:3px
}
.episode-empty-play{font-size:44px}

/* Dynamic monetization slots */
.monetization-slot:empty{display:none}
.coupang-ad-wrap{
  border:1px solid #dedfe2;
  border-radius:18px;
  overflow:hidden;
  background:#fff
}
.coupang-ad-card{
  min-height:150px;
  display:grid;
  grid-template-columns:minmax(160px,32%) 1fr;
  text-decoration:none;
  color:inherit
}
.coupang-ad-media{
  min-height:180px;
  background:#f7f7f7;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px
}
.coupang-ad-media img{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:260px;
  object-fit:contain;
  image-rendering:auto;
}
.coupang-slot-placeholder{
  min-height:150px;
  display:grid;
  place-items:center;
  font-size:46px
}
.coupang-ad-copy{
  padding:22px 24px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start
}
.coupang-ad-label{
  font-size:11px;
  font-weight:900;
  background:#f0f1f2;
  padding:5px 8px;
  border-radius:999px;
  margin-bottom:10px
}
.coupang-ad-copy strong{font-size:22px}
.coupang-ad-copy p{margin:7px 0;color:#666}
.coupang-ad-cta{
  margin-top:12px;
  background:#111;
  color:#fff;
  border-radius:10px;
  padding:9px 13px;
  font-weight:900
}
.coupang-ad-disclosure{
  padding:9px 14px;
  border-top:1px solid #eee;
  color:#777;
  font-size:10px;
  line-height:1.4
}

/* Admin monetization */
.slot-admin-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:14px
}
.slot-admin-card{
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  background:#fafafa
}
.slot-admin-card h3{margin:0 0 14px}
.slot-admin-card .admin-field{margin-bottom:11px}

@media(max-width:900px){
  .slot-admin-grid{grid-template-columns:1fr}
  .product-scroller .product-card{flex-basis:min(78vw,280px)}
}
@media(max-width:620px){
  .coupang-ad-card{grid-template-columns:1fr}
  .coupang-ad-media{min-height:170px}
}


/* v2.9.1 admin product pagination */
.product-admin-summary{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap
}
.product-admin-summary strong{white-space:nowrap}
.product-admin-summary label{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  font-weight:800;
  color:#555
}
.product-admin-summary select{
  width:auto;
  min-width:76px;
  padding:8px 9px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff
}
.admin-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-top:14px
}
.admin-page-info{
  font-size:12px;
  color:#666;
  font-weight:700
}
.admin-page-buttons{
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap
}
.admin-page-buttons button{
  min-width:36px;
  height:36px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  cursor:pointer;
  font-size:12px;
  font-weight:800
}
.admin-page-buttons button:hover:not(:disabled){background:#f2f3f4}
.admin-page-buttons button.active{
  background:#111;
  color:#fff;
  border-color:#111
}
.admin-page-buttons button:disabled{
  opacity:.4;
  cursor:not-allowed
}
.page-ellipsis{
  min-width:22px;
  text-align:center;
  color:#777
}
@media(max-width:700px){
  .admin-pagination{
    align-items:flex-start;
    flex-direction:column
  }
}


/* =========================================================
   v2.9.2 PUBLIC PRODUCT CATALOG
   상품 탭만 검색 + 페이지 방식.
   다른 페이지 상품 영역은 기존 가로 스크롤 유지.
   ========================================================= */
.product-catalog-head{
  align-items:flex-end
}
.catalog-count{
  flex:0 0 auto;
  padding:9px 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  font-size:13px;
  font-weight:900
}
.catalog-toolbar{
  display:grid;
  grid-template-columns:minmax(280px,2fr) repeat(3,minmax(150px,1fr));
  gap:10px;
  align-items:end;
  margin:18px 0 12px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff
}
.catalog-toolbar label{
  display:block;
  margin:0 0 6px;
  color:#555;
  font-size:11px;
  font-weight:900
}
.catalog-toolbar input,
.catalog-toolbar select{
  width:100%;
  min-height:44px;
  border:1px solid #d8dbe0;
  border-radius:11px;
  background:#fff;
  padding:10px 12px;
  font:inherit
}
.catalog-search-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px
}
.catalog-active{
  gap:7px;
  flex-wrap:wrap;
  margin-bottom:12px
}
.catalog-active span{
  padding:6px 9px;
  border-radius:999px;
  background:#eceeef;
  color:#555;
  font-size:11px;
  font-weight:800
}
.catalog-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px
}
.catalog-grid .product-card{
  min-width:0
}
.catalog-empty{
  grid-column:1/-1;
  min-height:220px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px dashed #d6d9de;
  border-radius:17px;
  background:#fff;
  color:#777
}
.catalog-empty strong{
  color:#222;
  font-size:18px
}
.catalog-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  flex-wrap:wrap;
  margin-top:22px
}
.catalog-page-info{
  color:#666;
  font-size:12px;
  font-weight:700
}
.catalog-page-buttons{
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap
}
.catalog-page-buttons button{
  min-width:38px;
  height:38px;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  cursor:pointer;
  font-size:12px;
  font-weight:900
}
.catalog-page-buttons button:hover:not(:disabled){
  background:#f1f2f3
}
.catalog-page-buttons button.active{
  color:#fff;
  background:#111;
  border-color:#111
}
.catalog-page-buttons button:disabled{
  opacity:.4;
  cursor:not-allowed
}
.catalog-ellipsis{
  min-width:24px;
  text-align:center;
  color:#777
}
@media(max-width:1080px){
  .catalog-toolbar{
    grid-template-columns:1fr 1fr
  }
  .catalog-search{
    grid-column:1/-1
  }
  .catalog-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
}
@media(max-width:760px){
  .catalog-toolbar{
    grid-template-columns:1fr
  }
  .catalog-search{
    grid-column:auto
  }
  .catalog-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .catalog-pagination{
    align-items:flex-start;
    flex-direction:column
  }
}
@media(max-width:480px){
  .catalog-grid{
    grid-template-columns:1fr
  }
  .catalog-search-row{
    grid-template-columns:1fr
  }
}


/* =========================================================
   v2.9.3 episode-specific product placement
   Video -> exact episode products -> MIDDLE ad
   ========================================================= */
#episodeProductsSection{
  padding-top:10px;
  padding-bottom:18px
}
#episodeProductsSection .section-head{
  margin-bottom:14px
}
#episodeProductsSection .badge{
  display:inline-block;
  margin-bottom:8px
}
#episodeMiddleAdSection{
  padding-top:16px
}
.episode-bottom-actions{
  margin-top:0
}


/* v2.9.4 ad image quality */
.coupang-ad-card{
  grid-template-columns:minmax(220px,34%) 1fr;
}
.coupang-ad-media img[data-small-source="1"]{
  /* Avoid aggressively enlarging low-resolution source images. */
  max-width:min(100%,240px);
  max-height:220px;
}
.coupang-ad-media img[data-large-source="1"]{
  max-width:100%;
  max-height:300px;
}
.ad-image-quality-note{
  margin-top:6px;
  color:#777;
  font-size:10px;
  line-height:1.45;
}
@media(max-width:620px){
  .coupang-ad-card{grid-template-columns:1fr}
  .coupang-ad-media{min-height:190px}
}


/* =========================================================
   v2.9.5 subtle hover interactions
   ========================================================= */

/* Product cards */
@media (hover:hover) and (pointer:fine){
  .product-card{
    transition:
      transform .22s ease,
      box-shadow .22s ease,
      border-color .22s ease;
    will-change:transform;
  }

  .product-card:hover{
    transform:translateY(-5px);
    box-shadow:0 14px 30px rgba(0,0,0,.10);
    border-color:#cfd3d8;
  }

  .product-card img{
    transition:transform .28s ease;
  }

  .product-card:hover img{
    transform:scale(1.035);
  }

  .product-card .btn,
  .product-card a[href*="coupang"]{
    transition:
      transform .18s ease,
      box-shadow .18s ease;
  }

  .product-card:hover .btn,
  .product-card:hover a[href*="coupang"]{
    transform:translateY(-1px);
  }

  /* Coupang ad card */
  .coupang-ad-card{
    transition:
      transform .22s ease,
      box-shadow .22s ease,
      background-color .22s ease;
    will-change:transform;
  }

  .coupang-ad-wrap:hover .coupang-ad-card{
    transform:translateY(-3px);
    box-shadow:0 12px 28px rgba(0,0,0,.09);
    background:#fff;
  }

  .coupang-ad-media img{
    transition:transform .28s ease;
  }

  .coupang-ad-wrap:hover .coupang-ad-media img{
    transform:scale(1.025);
  }

  .coupang-ad-cta{
    transition:
      transform .18s ease,
      box-shadow .18s ease;
  }

  .coupang-ad-wrap:hover .coupang-ad-cta{
    transform:translateX(4px);
    box-shadow:0 5px 14px rgba(0,0,0,.14);
  }

  /* Episode cards */
  .episode-card{
    transition:
      transform .22s ease,
      box-shadow .22s ease;
  }

  .episode-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 26px rgba(0,0,0,.09);
  }

  .episode-card .thumb img{
    transition:transform .28s ease;
  }

  .episode-card:hover .thumb img{
    transform:scale(1.03);
  }

  .episode-play-badge{
    transition:
      transform .2s ease,
      background-color .2s ease;
  }

  .episode-card:hover .episode-play-badge{
    transform:translate(-50%,-50%) scale(1.08);
    background:rgba(0,0,0,.88);
  }

  /* General primary buttons */
  .btn{
    transition:
      transform .18s ease,
      box-shadow .18s ease,
      background-color .18s ease,
      border-color .18s ease;
  }

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

/* Keyboard accessibility */
.product-card:focus-within,
.coupang-ad-wrap:focus-within,
.episode-card:focus-within{
  outline:2px solid #111;
  outline-offset:3px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion:reduce){
  .product-card,
  .product-card img,
  .coupang-ad-card,
  .coupang-ad-media img,
  .coupang-ad-cta,
  .episode-card,
  .episode-card .thumb img,
  .episode-play-badge,
  .btn{
    transition:none !important;
    transform:none !important;
  }
}


/* =========================================================
   v2.9.6 ENTRY COUPANG POPUP
   ========================================================= */
html.popup-ad-open,
html.popup-ad-open body{
  overflow:hidden
}
.entry-popup-overlay{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(0,0,0,.58);
  opacity:0;
  visibility:hidden;
  transition:opacity .2s ease,visibility .2s ease
}
.entry-popup-overlay.show{
  opacity:1;
  visibility:visible
}
.entry-popup-dialog{
  position:relative;
  width:min(520px,calc(100vw - 32px));
  overflow:hidden;
  border-radius:18px;
  background:#fff;
  box-shadow:0 28px 70px rgba(0,0,0,.34);
  transform:translateY(12px) scale(.985);
  transition:transform .22s ease
}
.entry-popup-overlay.show .entry-popup-dialog{
  transform:translateY(0) scale(1)
}
.entry-popup-x{
  position:absolute;
  z-index:5;
  top:10px;
  right:10px;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:rgba(0,0,0,.55);
  color:#fff;
  font-size:24px;
  line-height:1;
  cursor:pointer
}
.entry-popup-media{
  position:relative;
  min-height:360px;
  overflow:hidden;
  background:#121212;
  cursor:pointer;
  outline:none
}
.entry-popup-media img{
  display:block;
  width:100%;
  height:100%;
  min-height:360px;
  max-height:560px;
  object-fit:cover;
  transition:transform .28s ease
}
.entry-popup-media:hover img{
  transform:scale(1.025)
}
.entry-popup-empty{
  min-height:390px;
  display:grid;
  place-items:center;
  font-size:72px
}
.entry-popup-copy{
  position:absolute;
  z-index:2;
  left:28px;
  right:28px;
  top:28px;
  display:flex;
  flex-direction:column;
  gap:7px;
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.65)
}
.entry-popup-copy strong{
  max-width:88%;
  font-size:30px;
  line-height:1.16;
  letter-spacing:-.04em
}
.entry-popup-copy span{
  max-width:88%;
  font-size:15px;
  font-weight:700
}
.entry-popup-ad-label{
  position:absolute;
  left:20px;
  bottom:18px;
  z-index:3;
  padding:6px 9px;
  border-radius:999px;
  background:rgba(0,0,0,.62);
  color:#fff;
  font-size:10px;
  font-weight:900
}
.entry-popup-arrow{
  position:absolute;
  right:18px;
  bottom:16px;
  z-index:3;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.20);
  backdrop-filter:blur(5px);
  color:#fff;
  font-size:29px;
  font-weight:800;
  transition:transform .18s ease,background .18s ease
}
.entry-popup-media:hover .entry-popup-arrow{
  transform:translateX(3px);
  background:rgba(255,255,255,.30)
}
.entry-popup-disclosure{
  padding:8px 18px;
  background:#f5f5f5;
  border-top:1px solid #ececec;
  color:#777;
  font-size:9px;
  line-height:1.45
}
.entry-popup-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:54px;
  border-top:1px solid #eee;
  background:#fff
}
.entry-popup-actions button{
  border:0;
  background:#fff;
  cursor:pointer;
  font-size:14px
}
.entry-popup-actions button+button{
  border-left:1px solid #eee
}
.entry-popup-actions button:hover{
  background:#f6f6f6
}
.entry-popup-actions button:first-child{
  color:#777
}

@media(max-width:600px){
  .entry-popup-overlay{padding:14px}
  .entry-popup-dialog{
    width:min(94vw,480px);
    border-radius:16px
  }
  .entry-popup-media{
    min-height:320px
  }
  .entry-popup-media img{
    min-height:320px;
    max-height:70vh
  }
  .entry-popup-copy{
    left:20px;
    right:20px;
    top:22px
  }
  .entry-popup-copy strong{
    font-size:25px
  }
}

@media(prefers-reduced-motion:reduce){
  .entry-popup-overlay,
  .entry-popup-dialog,
  .entry-popup-media img,
  .entry-popup-arrow{
    transition:none!important
  }
}


/* =========================================================
   v2.9.7 SIDE RAIL ADS
   1160px content wrapper + 12px gap + 240px rail
   Rails appear only when enough desktop width exists.
   ========================================================= */
.side-ad-rail{
  display:none;
}

@media (min-width:1680px){
  .side-ad-rail{
    position:fixed;
    top:88px;
    z-index:24;
    display:block;
    width:240px;
    max-height:calc(100vh - 106px);
  }

  .side-ad-left{
    left:calc(50% - 832px);
  }

  .side-ad-right{
    right:calc(50% - 832px);
  }

  .side-adsense-wrap,
  .side-coupang-wrap,
  .side-ad-placeholder{
    width:100%;
    max-height:calc(100vh - 106px);
    overflow:hidden;
    border:1px solid #e2e4e7;
    border-radius:12px;
    background:#fff;
    box-shadow:0 8px 26px rgba(0,0,0,.055);
  }

  .side-ad-label{
    height:26px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f4f4f4;
    color:#555;
    font-size:9px;
    letter-spacing:.06em;
  }

  .side-adsense-unit{
    width:100%;
    min-height:480px;
  }

  .side-ad-placeholder{
    min-height:480px;
    padding:24px 14px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:6px;
    color:#777;
    font-size:11px;
  }

  .side-ad-placeholder strong{
    color:#222;
    font-size:13px;
  }

  .side-coupang-link{
    display:block;
    width:100%;
    color:inherit;
    text-decoration:none;
    background:#fff;
  }

  .side-coupang-img{
    display:block;
    width:100%;
    height:auto;
    max-height:600px;
    object-fit:contain;
    background:#fff;
    transition:transform .24s ease;
  }

  .side-coupang-copy{
    padding:12px 13px;
    display:flex;
    flex-direction:column;
    gap:5px;
  }

  .side-coupang-copy strong{
    font-size:14px;
    line-height:1.35;
  }

  .side-coupang-copy span{
    color:#73777e;
    font-size:11px;
    line-height:1.45;
  }

  .side-coupang-copy b{
    margin-top:4px;
    font-size:11px;
  }

  .side-coupang-disclosure{
    padding:7px 9px;
    border-top:1px solid #ececec;
    background:#fafafa;
    color:#888;
    font-size:8px;
    line-height:1.35;
  }

  @media (hover:hover) and (pointer:fine){
    .side-coupang-wrap{
      transition:transform .2s ease,box-shadow .2s ease;
    }

    .side-coupang-wrap:hover{
      transform:translateY(-3px);
      box-shadow:0 14px 30px rgba(0,0,0,.10);
    }

    .side-coupang-wrap:hover .side-coupang-img{
      transform:scale(1.018);
    }
  }
}

/* Admin: 5 slots fit more comfortably. */
#monetizationAdmin .slot-admin-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

#monetizationAdmin .side-slot-admin-card{
  background:#f7f8fa;
}

#monetizationAdmin .slot-help{
  margin:-7px 0 12px;
  font-size:11px;
  line-height:1.45;
}

@media(max-width:1200px){
  #monetizationAdmin .slot-admin-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:760px){
  #monetizationAdmin .slot-admin-grid{
    grid-template-columns:1fr;
  }
}

@media(prefers-reduced-motion:reduce){
  .side-coupang-wrap,
  .side-coupang-img{
    transition:none!important;
    transform:none!important;
  }
}


/* =========================================================
   v2.9.8 RESULT EVENT BANNER
   ========================================================= */
#resultEventBannerSection{
  padding-top:10px;
  padding-bottom:24px;
}

.result-event-banner{
  position:relative;
  display:block;
  min-height:220px;
  aspect-ratio:16 / 5;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:24px;
  background:#111;
  color:#fff;
  text-decoration:none;
  box-shadow:0 8px 26px rgba(0,0,0,.05);
}

.result-event-media{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#111;
}

.result-event-media img{
  width:100%;
  height:100%;
  display:block;
  image-rendering:auto;
  transition:transform .28s ease;
}

.result-event-overlay{
  position:absolute;
  z-index:2;
  inset:0;
  padding:30px 34px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-end;
  background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.18) 62%,transparent);
  pointer-events:none;
}

.result-event-badge{
  background:rgba(255,255,255,.92);
  color:#111;
}

.result-event-overlay h2{
  max-width:680px;
  margin:4px 0 7px;
  color:#fff;
  font-size:clamp(24px,3vw,38px);
  line-height:1.08;
}

.result-event-overlay p{
  max-width:650px;
  margin:0;
  color:#e5e5e5;
  font-size:14px;
}

.result-event-cta{
  margin-top:13px;
  padding:9px 13px;
  border-radius:10px;
  background:#fff;
  color:#111;
  font-size:13px;
  font-weight:900;
}

@media (hover:hover) and (pointer:fine){
  .result-event-banner{
    transition:transform .22s ease,box-shadow .22s ease;
  }
  .result-event-banner:hover{
    transform:translateY(-4px);
    box-shadow:0 16px 34px rgba(0,0,0,.11);
  }
  .result-event-banner:hover .result-event-media img{
    transform:scale(1.018);
  }
}

/* Admin preview */
.result-event-admin-preview{
  margin-top:16px;
  min-height:150px;
  overflow:hidden;
  border:1px dashed #cfd2d7;
  border-radius:16px;
  background:#f7f7f8;
}

.result-event-admin-empty{
  min-height:150px;
  display:grid;
  place-items:center;
  color:#777;
  font-size:12px;
}

.result-event-admin-media{
  position:relative;
  aspect-ratio:16 / 5;
  min-height:170px;
  overflow:hidden;
  background:#111;
}

.result-event-admin-media img{
  width:100%;
  height:100%;
  display:block;
}

.result-event-admin-overlay{
  position:absolute;
  inset:0;
  padding:20px 22px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-start;
  background:linear-gradient(90deg,rgba(0,0,0,.66),rgba(0,0,0,.06));
  color:#fff;
}

.result-event-admin-overlay strong{
  margin-top:4px;
  font-size:22px;
}

.result-event-admin-overlay span:not(.badge){
  margin-top:3px;
  color:#e3e3e3;
  font-size:12px;
}

.result-event-admin-overlay b{
  margin-top:9px;
  padding:7px 10px;
  border-radius:8px;
  background:#fff;
  color:#111;
  font-size:11px;
}

@media(max-width:700px){
  .result-event-banner{
    aspect-ratio:4 / 3;
    min-height:260px;
  }
  .result-event-overlay{
    padding:22px;
    background:linear-gradient(0deg,rgba(0,0,0,.76),rgba(0,0,0,.08) 72%);
  }
}

@media(prefers-reduced-motion:reduce){
  .result-event-banner,
  .result-event-media img{
    transition:none!important;
    transform:none!important;
  }
}


/* =========================================================
   v3.0.0 SEASON VIDEO ROWS
   영상 2 → 상품 1 → 영상 2
   ========================================================= */
#seasonRows{
  display:flex;
  flex-direction:column;
  gap:42px;
}

.season-block{
  min-width:0;
}

.season-title-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin-bottom:15px;
}

.season-title-row h3{
  margin:6px 0 0;
  font-size:28px;
  letter-spacing:-.035em;
}

.season-title-row p{
  margin:6px 0 0;
  color:#777;
  font-size:13px;
}

.season-strip-shell{
  position:relative;
}

.season-strip{
  display:flex;
  gap:16px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:3px 52px 15px 2px;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  overscroll-behavior-x:contain;
}

.season-mixed-item{
  flex:0 0 clamp(300px,31vw,370px);
  min-width:0;
  scroll-snap-align:start;
}

.season-mixed-item .episode-card,
.season-mixed-item .product-card{
  height:100%;
  margin:0;
}

.season-product-item .product-card{
  min-width:0;
}

.season-arrow{
  position:absolute;
  z-index:8;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid #d9dce1;
  border-radius:12px;
  background:rgba(255,255,255,.96);
  box-shadow:0 6px 18px rgba(0,0,0,.09);
  cursor:pointer;
  font-size:18px;
  font-weight:900;
}

.season-prev{left:-17px}
.season-next{right:-17px}

.season-more{
  flex:0 0 auto;
}

@media (hover:hover) and (pointer:fine){
  .season-arrow:hover{
    transform:translateY(-50%) scale(1.05);
  }
}

@media(max-width:760px){
  #seasonRows{gap:32px}
  .season-title-row{
    align-items:flex-start;
  }
  .season-title-row h3{
    font-size:24px;
  }
  .season-strip{
    padding-right:10px;
  }
  .season-mixed-item{
    flex-basis:min(82vw,345px);
  }
  .season-arrow{
    display:none;
  }
}


/* =========================================================
   v3.0.0-R1 verified patch
   admin feature tabs / multi games / channel visibility
   ========================================================= */
.admin-feature-tabs{position:sticky;top:0;z-index:45;display:flex;gap:7px;margin:0 0 18px;padding:9px;overflow-x:auto;border:1px solid #e0e2e6;border-radius:14px;background:rgba(255,255,255,.97);box-shadow:0 6px 22px rgba(0,0,0,.05);backdrop-filter:blur(10px)}
.admin-feature-tab{flex:0 0 auto;border:1px solid #d9dce1;border-radius:10px;background:#fff;padding:10px 14px;color:#444;font-size:13px;font-weight:800;cursor:pointer}
.admin-feature-tab.active{border-color:#111;background:#111;color:#fff}
.admin-panel[data-admin-group]{display:none}
.admin-inline-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.admin-inline-controls label{font-size:12px;font-weight:800;color:#666}.admin-inline-controls select{min-width:180px}
.channel-visibility-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.channel-visibility-option{display:flex;gap:12px;align-items:flex-start;padding:17px;border:1px solid #dfe2e6;border-radius:14px;background:#fafafa;cursor:pointer}.channel-visibility-option input{width:20px;height:20px;margin-top:1px}.channel-visibility-option span{display:flex;flex-direction:column;gap:4px}.channel-visibility-option small{color:#74787f;line-height:1.45}
.admin-divider{margin:22px 0;border:0;border-top:1px solid #e6e8eb}.admin-current-label{margin:14px 0;font-size:13px;color:#666}.admin-current-label strong{color:#111;font-size:15px}.selected-admin-row{background:#f6f7f8}
.game-global-top-ad{padding:28px 0 0}.game-global-top-ad .monetization-slot{margin:0}.multi-game-page{padding:28px 0 54px}.multi-game-list{display:flex;flex-direction:column;gap:52px}.mini-game-instance{display:flex;flex-direction:column;gap:20px;scroll-margin-top:90px}.mini-game-hero{width:100%}.game-specific-ad .coupang-ad-wrap{margin:0}.game-linked-products{padding-top:4px}.game-linked-products .section-head.compact{margin-bottom:10px}.game-linked-products .section-head.compact h2{font-size:21px}.mini-game-quiz-panel{margin-top:0}.game-not-ready{padding:22px 4px}.game-not-ready p{color:#777;margin:7px 0 0}
@media(max-width:760px){.channel-visibility-options{grid-template-columns:1fr}.admin-feature-tab{padding:9px 12px}.multi-game-list{gap:38px}}


/* v3.0.0-R3 optional season mode */
#episodeSeasonField[style*="display: none"]{display:none!important}
.normal-channel-title-row .badge{letter-spacing:.08em}


/* v3.6 mobile product image reliability */
.product-img{position:relative;width:100%;min-width:0;background:#fff}
.product-img img{width:100%;height:100%;min-width:100%;object-fit:contain;opacity:1;visibility:visible}
.product-img-fallback{width:100%;height:100%;min-height:160px;place-items:center;font-size:48px;background:linear-gradient(135deg,#f0f0f1,#fff)}
@media(max-width:760px){
  .product-img{aspect-ratio:1/1;min-height:220px}
  .catalog-grid .product-img{min-height:min(82vw,320px)}
  .season-mixed-item .product-img{min-height:min(78vw,300px)}
}


/* =========================================================
   v3.7 시즌/채널 더보기 UX
   기본: 전체 항목 가로 스크롤
   더보기: 세로 그리드 + 숫자 페이지 선택
   ========================================================= */
.season-strip-shell.is-expanded{
  overflow:visible;
}

.season-strip-shell.is-expanded .season-arrow{
  display:none!important;
}

.season-strip.season-expanded-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  overflow:visible;
  padding:3px 0 8px;
  scroll-snap-type:none;
}

.season-expanded-grid .season-mixed-item{
  width:auto;
  min-width:0;
  flex:none;
  scroll-snap-align:none;
}

.season-expanded-grid .season-mixed-item .episode-card,
.season-expanded-grid .season-mixed-item .product-card{
  width:100%;
  height:100%;
}

.season-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:22px 0 2px;
}

.season-page-btn{
  min-width:38px;
  height:38px;
  padding:0 11px;
  border:1px solid #d9dce1;
  border-radius:10px;
  background:#fff;
  color:#222;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.season-page-btn.active{
  border-color:#111;
  background:#111;
  color:#fff;
}

.season-arrow[hidden]{
  display:none!important;
}

@media (max-width:980px){
  .season-strip.season-expanded-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:760px){
  .season-strip.season-expanded-grid{
    grid-template-columns:1fr;
    gap:14px;
    padding-right:0;
  }

  .season-pagination{
    margin-top:16px;
    gap:6px;
  }

  .season-page-btn{
    min-width:36px;
    height:36px;
    border-radius:9px;
  }
}


/* =========================================================
   v3.8 홈 콘텐츠 흐름 이미지
   ========================================================= */
.home-flow-thumb{
  font-size:0;
  position:relative;
  background:linear-gradient(135deg,#eef0f3,#fff);
}
.home-flow-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.home-flow-thumb:not(.has-image)::after{
  content:"";
  width:34%;
  aspect-ratio:1/1;
  border-radius:24px;
  background:linear-gradient(135deg,rgba(17,17,17,.05),rgba(17,17,17,.015));
  border:1px solid rgba(17,17,17,.06);
}

.home-flow-admin-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.home-flow-admin-card{
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  background:var(--card);
}
.home-flow-admin-card > strong{
  display:block;
  margin-bottom:10px;
}
.home-flow-admin-preview{
  aspect-ratio:16/9;
  border:1px dashed var(--line);
  border-radius:14px;
  background:#f5f6f7;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  color:var(--muted);
  font-size:12px;
  margin-bottom:12px;
}
.home-flow-admin-preview img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.home-flow-admin-card input[type="file"]{
  width:100%;
}
.home-flow-clear-btn{
  margin-top:8px;
}

/* =========================================================
   v3.8 라이트 / 블랙 모드
   ========================================================= */
.theme-toggle{
  flex:0 0 auto;
  border:1px solid var(--line);
  background:var(--card);
  color:var(--text);
  border-radius:999px;
  padding:9px 13px;
  font:inherit;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
  white-space:nowrap;
}
.theme-toggle:hover{
  border-color:#8d949e;
}
.admin-top-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

html[data-theme="dark"]{
  --bg:#0b0d10;
  --card:#14171c;
  --text:#f4f6f8;
  --muted:#aeb5bf;
  --line:#2b3038;
  --shadow:0 14px 40px rgba(0,0,0,.32);
  background:#0b0d10;
}
html[data-theme="dark"] body{
  background:var(--bg);
  color:var(--text);
}
html[data-theme="dark"] header{
  background:rgba(11,13,16,.94);
  border-color:var(--line);
}
html[data-theme="dark"] .brand span,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .lead,
html[data-theme="dark"] .section-head p,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .product-info p,
html[data-theme="dark"] .article p,
html[data-theme="dark"] .policy-article p,
html[data-theme="dark"] .policy-article li,
html[data-theme="dark"] .policy-article .policy-meta,
html[data-theme="dark"] .admin-field label,
html[data-theme="dark"] .admin-stat span,
html[data-theme="dark"] .upload-progress,
html[data-theme="dark"] .channel-empty,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .field-help-inline{
  color:var(--muted)!important;
}

html[data-theme="dark"] :where(h1,h2,h3,h4,h5,h6,strong,label){
  color:var(--text);
}

html[data-theme="dark"] .hero{
  background:linear-gradient(180deg,#101318,#0b0d10);
}
html[data-theme="dark"] :where(
  .hero-card,
  .card,
  .product-card,
  .article,
  .game-panel,
  .stat-box,
  .policy-nav,
  .policy-article,
  .admin-panel,
  .admin-auth-card,
  .admin-stat,
  .channel-empty,
  .home-flow-admin-card
){
  background:var(--card);
  border-color:var(--line);
  color:var(--text);
}

html[data-theme="dark"] .thumb,
html[data-theme="dark"] .product-img,
html[data-theme="dark"] .home-flow-thumb{
  background:linear-gradient(135deg,#181c22,#101318);
  border-color:var(--line);
}
html[data-theme="dark"] .home-flow-thumb:not(.has-image)::after{
  background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.025));
  border-color:rgba(255,255,255,.08);
}

html[data-theme="dark"] .badge{
  background:#222730;
  color:#dce1e7;
}
html[data-theme="dark"] nav a:hover,
html[data-theme="dark"] nav a.active{
  background:#f4f6f8;
  color:#0b0d10;
}
html[data-theme="dark"] .btn{
  background:#f4f6f8;
  color:#0b0d10;
  border-color:#f4f6f8;
}
html[data-theme="dark"] .btn.ghost,
html[data-theme="dark"] .theme-toggle{
  background:#171b20;
  color:#f4f6f8;
  border-color:#343a44;
}
html[data-theme="dark"] .btn.ghost:hover,
html[data-theme="dark"] .theme-toggle:hover{
  background:#20252c;
  border-color:#59616d;
}

html[data-theme="dark"] :where(
  .admin-field input,
  .admin-field select,
  .admin-field textarea,
  input,
  select,
  textarea
){
  background:#0f1216;
  color:#f4f6f8;
  border-color:#343a44;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{
  color:#737b86;
}
html[data-theme="dark"] option{
  background:#14171c;
  color:#f4f6f8;
}

html[data-theme="dark"] .choice{
  background:#171b20;
  color:#f4f6f8;
  border-color:#343a44;
}
html[data-theme="dark"] .choice:hover{
  background:#f4f6f8;
  color:#0b0d10;
}
html[data-theme="dark"] .progress,
html[data-theme="dark"] .bar{
  background:#252a32;
}
html[data-theme="dark"] .progress > span,
html[data-theme="dark"] .bar > span{
  background:#f4f6f8;
}

html[data-theme="dark"] .feature-list li,
html[data-theme="dark"] .policy-article .callout,
html[data-theme="dark"] .admin-tabs,
html[data-theme="dark"] .upload-box{
  background:#171b20;
  color:var(--text);
  border-color:var(--line);
}
html[data-theme="dark"] .policy-table th{
  background:#171b20;
  color:var(--text);
}
html[data-theme="dark"] .policy-table td,
html[data-theme="dark"] .policy-table th,
html[data-theme="dark"] table td,
html[data-theme="dark"] table th{
  border-color:var(--line);
}

html[data-theme="dark"] .admin-tab,
html[data-theme="dark"] .admin-feature-tab{
  color:#d9dee5;
}
html[data-theme="dark"] .admin-tab.active,
html[data-theme="dark"] .admin-feature-tab.active{
  background:#f4f6f8;
  color:#0b0d10;
}
html[data-theme="dark"] .admin-sessionbar,
html[data-theme="dark"] .notice{
  background:#171b20;
  color:#f4f6f8;
  border:1px solid var(--line);
}
html[data-theme="dark"] .notice p{
  color:#c5cbd3;
}
html[data-theme="dark"] .admin-note{
  background:#282213;
  border-color:#5d512b;
  color:#f4e5ab;
}

html[data-theme="dark"] .home-flow-admin-preview{
  background:#0f1216;
  border-color:#343a44;
  color:var(--muted);
}

html[data-theme="dark"] .season-page-btn{
  background:#171b20;
  color:#f4f6f8;
  border-color:#343a44;
}
html[data-theme="dark"] .season-page-btn.active{
  background:#f4f6f8;
  color:#0b0d10;
  border-color:#f4f6f8;
}

html[data-theme="dark"] .ad-slot{
  background:#111419;
  border-color:#3a414b;
  color:#aeb5bf;
}
html[data-theme="dark"] .ad-slot strong{
  color:#f4f6f8;
}
html[data-theme="dark"] .ad-slot code{
  background:#20252c;
  color:#dce1e7;
}

html[data-theme="dark"] a{
  color:inherit;
}
html[data-theme="dark"] hr{
  border-color:var(--line);
}

/* 쿠팡/이미지 자체는 원본 색을 유지하고 카드 바탕만 어둡게 */
html[data-theme="dark"] .product-img img,
html[data-theme="dark"] .episode-card .thumb img,
html[data-theme="dark"] .home-flow-thumb img,
html[data-theme="dark"] .home-flow-admin-preview img{
  filter:none;
}

@media (max-width:760px){
  .home-flow-admin-grid{
    grid-template-columns:1fr;
  }
  .theme-toggle{
    padding:8px 11px;
  }
  header .header-inner .theme-toggle{
    align-self:flex-end;
  }
}


/* =========================================================
   v3.9 홈 콘텐츠 흐름 카드 편집기
   ========================================================= */
.home-flow-editor-heading{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:10px;
}
.home-flow-editor-heading strong{
  font-size:15px;
}
.home-flow-editor-heading small{
  color:var(--muted);
  font-size:12px;
}

.home-flow-editor-fields{
  display:grid;
  gap:11px;
  margin-top:12px;
}
.home-flow-editor-fields > label,
.home-flow-position-grid > label{
  display:grid;
  gap:6px;
  color:var(--text);
  font-size:12px;
  font-weight:800;
}
.home-flow-editor-fields input[type="text"],
.home-flow-editor-fields textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--card);
  color:var(--text);
  padding:10px 11px;
  font:inherit;
  font-weight:500;
}
.home-flow-editor-fields textarea{
  resize:vertical;
  min-height:76px;
}

.home-flow-position-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  padding:11px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(127,127,127,.045);
}
.home-flow-position-grid label > strong{
  font-size:11px;
  color:var(--muted);
}
.home-flow-position-grid input[type="range"]{
  width:100%;
  padding:0;
  accent-color:#111;
}

html[data-theme="dark"] .home-flow-editor-fields input[type="text"],
html[data-theme="dark"] .home-flow-editor-fields textarea{
  background:#0f1216;
  color:#f4f6f8;
  border-color:#343a44;
}
html[data-theme="dark"] .home-flow-position-grid{
  background:#101318;
  border-color:#343a44;
}
html[data-theme="dark"] .home-flow-position-grid input[type="range"]{
  accent-color:#f4f6f8;
}

@media (max-width:760px){
  .home-flow-position-grid{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   v3.10 Soft Dark Mode
   완전 검정/완전 흰색 대비를 줄여 눈의 피로를 낮춤
   ========================================================= */
html[data-theme="dark"]{
  --bg:#111418;
  --card:#1a1f25;
  --text:#e8ebef;
  --muted:#a6adb7;
  --line:#303741;
  --shadow:0 14px 38px rgba(0,0,0,.24);
  background:#111418;
}

html[data-theme="dark"] body{
  background:#111418;
  color:#e8ebef;
}

html[data-theme="dark"] header{
  background:rgba(17,20,24,.96);
  border-color:#303741;
}

/* 주요 흰색 패널들을 부드러운 다크 카드로 통일 */
html[data-theme="dark"] :where(
  .hero-card,
  .card,
  .product-card,
  .episode-card,
  .article,
  .game-panel,
  .stat-box,
  .policy-nav,
  .policy-article,
  .admin-panel,
  .admin-auth-card,
  .admin-stat,
  .channel-empty,
  .home-flow-admin-card,
  .filter-bar,
  .products-toolbar,
  .products-filter,
  .search-panel,
  .season-block,
  .result-card,
  .monetization-card,
  .monetization-slot,
  .coupang-card,
  .coupang-slot,
  .popup-card,
  .banner-card,
  .side-rail,
  .side-rail-card,
  .recommendation-card
){
  background:#1a1f25!important;
  color:#e8ebef!important;
  border-color:#303741!important;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}

/* 밝은 내부 영역도 짙은 회색으로 */
html[data-theme="dark"] :where(
  .thumb,
  .product-img,
  .home-flow-thumb,
  .home-flow-admin-preview,
  .upload-box,
  .admin-tabs,
  .notice,
  .admin-sessionbar,
  .feature-list li,
  .policy-article .callout,
  .season-strip-shell,
  .product-search-wrap
){
  background:#161a20!important;
  color:#e8ebef!important;
  border-color:#303741!important;
}

/* 검색/필터/입력창 */
html[data-theme="dark"] :where(
  input,
  select,
  textarea,
  .admin-field input,
  .admin-field select,
  .admin-field textarea
){
  background:#15191f!important;
  color:#e8ebef!important;
  border-color:#37404a!important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{
  color:#7f8792!important;
}

html[data-theme="dark"] option{
  background:#1a1f25;
  color:#e8ebef;
}

/* 제목/본문은 순백 대신 부드러운 밝은 회색 */
html[data-theme="dark"] :where(
  h1,h2,h3,h4,h5,h6,
  strong,
  label,
  .product-title,
  .episode-title,
  .season-title-row h3
){
  color:#e8ebef!important;
}

html[data-theme="dark"] :where(
  p,
  .muted,
  .lead,
  .section-head p,
  .product-info p,
  .article p,
  .policy-article p,
  .policy-article li,
  .footer,
  .field-help,
  .field-help-inline,
  .upload-progress,
  .channel-empty
){
  color:#a6adb7!important;
}

/* 버튼도 새하얗지 않게 */
html[data-theme="dark"] .btn{
  background:#d9dde2!important;
  color:#15191f!important;
  border-color:#d9dde2!important;
}

html[data-theme="dark"] .btn:hover{
  background:#c8cdd4!important;
  border-color:#c8cdd4!important;
}

html[data-theme="dark"] .btn.ghost,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .season-page-btn{
  background:#20262d!important;
  color:#e8ebef!important;
  border-color:#3a434e!important;
}

html[data-theme="dark"] .btn.ghost:hover,
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .season-page-btn:hover{
  background:#29313a!important;
  border-color:#4a5561!important;
}

/* 활성 탭/페이지도 완전 흰색 대신 중간 밝기 */
html[data-theme="dark"] nav a.active,
html[data-theme="dark"] .admin-tab.active,
html[data-theme="dark"] .admin-feature-tab.active,
html[data-theme="dark"] .season-page-btn.active{
  background:#d6dbe1!important;
  color:#15191f!important;
  border-color:#d6dbe1!important;
}

/* 상품 필터/카운트 배지 */
html[data-theme="dark"] .badge{
  background:#252b33!important;
  color:#cfd5dc!important;
}

html[data-theme="dark"] .count-badge,
html[data-theme="dark"] .product-count{
  background:#20262d!important;
  color:#cfd5dc!important;
  border-color:#3a434e!important;
}

/* 쿠팡 광고 안내 영역 */
html[data-theme="dark"] .ad-slot,
html[data-theme="dark"] .coupang-slot,
html[data-theme="dark"] .monetization-slot{
  background:#1a1f25!important;
  color:#a6adb7!important;
  border-color:#303741!important;
}

html[data-theme="dark"] .ad-slot strong,
html[data-theme="dark"] .coupang-slot strong,
html[data-theme="dark"] .monetization-slot strong{
  color:#e8ebef!important;
}

/* 이미지 자체는 그대로 유지 */
html[data-theme="dark"] :where(
  .product-img img,
  .episode-card .thumb img,
  .home-flow-thumb img,
  .home-flow-admin-preview img,
  .coupang-card img,
  .coupang-slot img,
  .monetization-card img
){
  filter:none!important;
  background:#fff;
}

/* 가로 스크롤바도 너무 밝지 않게 */
html[data-theme="dark"] ::-webkit-scrollbar{
  width:10px;
  height:10px;
}
html[data-theme="dark"] ::-webkit-scrollbar-track{
  background:#15191f;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb{
  background:#3a434e;
  border-radius:999px;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover{
  background:#505b68;
}

/* range 슬라이더: 마우스로 직접 드래그 조절 */
.home-flow-position-grid input[type="range"]{
  cursor:pointer;
}
.home-flow-position-grid input[type="range"]::-webkit-slider-thumb{
  cursor:grab;
}
.home-flow-position-grid input[type="range"]:active::-webkit-slider-thumb{
  cursor:grabbing;
}


/* =========================================================
   v3.11 홈 콘텐츠 흐름 시각 이미지 편집기
   ========================================================= */
.home-flow-image-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.flow-crop-open{
  overflow:hidden;
}

.flow-crop-modal[hidden]{
  display:none!important;
}

.flow-crop-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(10,12,15,.72);
  backdrop-filter:blur(3px);
}

.flow-crop-dialog{
  width:min(980px,96vw);
  max-height:94vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:24px;
  background:var(--card);
  box-shadow:0 24px 80px rgba(0,0,0,.38);
}

.flow-crop-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px 16px;
  border-bottom:1px solid var(--line);
}
.flow-crop-header h2{
  margin:0 0 5px;
  font-size:22px;
}
.flow-crop-header p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}
.flow-crop-close{
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:var(--text);
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

.flow-crop-body{
  overflow:auto;
  padding:18px 22px 20px;
}
.flow-crop-tip{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(127,127,127,.055);
  color:var(--muted);
  font-size:12px;
}
.flow-crop-tip strong{
  color:var(--text);
  white-space:nowrap;
}

.flow-crop-stage-wrap{
  width:100%;
  padding:12px;
  border-radius:18px;
  background:#20242a;
}

.flow-crop-stage{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border:2px solid #2f80ff;
  border-radius:8px;
  background:#0e1115;
  cursor:grab;
  touch-action:none;
  user-select:none;
}
.flow-crop-stage.is-dragging{
  cursor:grabbing;
}
.flow-crop-stage img{
  position:absolute;
  left:50%;
  top:50%;
  max-width:none!important;
  max-height:none!important;
  width:auto;
  height:auto;
  display:block;
  pointer-events:none;
  user-select:none;
  will-change:transform,width,height;
}

.flow-crop-grid{
  position:absolute;
  inset:0;
  pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
}
.flow-crop-grid i{
  position:absolute;
  display:block;
  background:rgba(255,255,255,.28);
}
.flow-crop-grid i:nth-child(1),
.flow-crop-grid i:nth-child(2){
  top:0;
  bottom:0;
  width:1px;
}
.flow-crop-grid i:nth-child(1){left:33.333%}
.flow-crop-grid i:nth-child(2){left:66.666%}
.flow-crop-grid i:nth-child(3),
.flow-crop-grid i:nth-child(4){
  left:0;
  right:0;
  height:1px;
}
.flow-crop-grid i:nth-child(3){top:33.333%}
.flow-crop-grid i:nth-child(4){top:66.666%}

.flow-crop-controls{
  display:grid;
  gap:12px;
  margin-top:16px;
}
.flow-crop-zoom-row{
  display:grid;
  grid-template-columns:auto minmax(180px,1fr) auto auto;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(127,127,127,.04);
}
.flow-crop-zoom-row span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.flow-crop-zoom-row input[type="range"]{
  width:100%;
  cursor:pointer;
  accent-color:#2f80ff;
}
.flow-crop-zoom-row strong{
  min-width:48px;
  text-align:right;
}
.flow-crop-control-buttons{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.flow-crop-footer{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:16px 22px 20px;
  border-top:1px solid var(--line);
}

/* 기존 v3.9 X/Y 슬라이더는 더 이상 사용하지 않음 */
.home-flow-position-grid{
  display:none!important;
}

html[data-theme="dark"] .flow-crop-dialog{
  background:#1a1f25;
  border-color:#303741;
}
html[data-theme="dark"] .flow-crop-tip,
html[data-theme="dark"] .flow-crop-zoom-row{
  background:#15191f;
  border-color:#303741;
}
html[data-theme="dark"] .flow-crop-stage-wrap{
  background:#0f1216;
}

@media (max-width:760px){
  .flow-crop-modal{
    padding:8px;
  }
  .flow-crop-dialog{
    width:100%;
    max-height:98vh;
    border-radius:18px;
  }
  .flow-crop-header{
    padding:15px 15px 12px;
  }
  .flow-crop-body{
    padding:12px 12px 16px;
  }
  .flow-crop-stage-wrap{
    padding:7px;
  }
  .flow-crop-zoom-row{
    grid-template-columns:auto 1fr auto;
  }
  .flow-crop-zoom-row strong{
    grid-column:1/-1;
    text-align:center;
  }
  .flow-crop-footer{
    padding:12px 15px 15px;
  }
}


/* =========================================================
   v3.12 Dark Mode correction
   - R3.11 visual image editor retained
   - Revert the over-softened redesign and restore the original dark tone
   - Fix white carousel arrows, Coupang ad panels, and admin dark theme
   ========================================================= */

html[data-theme="dark"]{
  --bg:#0b0d10;
  --card:#14171c;
  --text:#eef1f4;
  --muted:#aeb5bf;
  --line:#2b3038;
  --shadow:0 14px 40px rgba(0,0,0,.30);
  background:#0b0d10!important;
  color-scheme:dark;
}

html[data-theme="dark"] body{
  background:#0b0d10!important;
  color:#eef1f4!important;
}

html[data-theme="dark"] header{
  background:rgba(11,13,16,.96)!important;
  border-color:#2b3038!important;
}

/* ---------------------------------------------------------
   Public page: cards and text
   --------------------------------------------------------- */
html[data-theme="dark"] :where(
  .card,
  .product-card,
  .episode-card,
  .hero-card,
  .article,
  .game-panel,
  .stat-box,
  .policy-nav,
  .policy-article,
  .channel-empty,
  .result-card,
  .season-block
){
  background:#14171c!important;
  color:#eef1f4!important;
  border-color:#2b3038!important;
}

html[data-theme="dark"] :where(
  h1,h2,h3,h4,h5,h6,
  .product-info h4,
  .episode-card h3,
  .episode-card h4,
  .season-title-row h3,
  strong
){
  color:#eef1f4!important;
}

html[data-theme="dark"] :where(
  p,
  .muted,
  .lead,
  .section-head p,
  .product-info p,
  .article p,
  .policy-article p,
  .policy-article li,
  .footer
){
  color:#aeb5bf!important;
}

html[data-theme="dark"] .badge{
  background:#222730!important;
  color:#dce1e7!important;
}

/* ---------------------------------------------------------
   Product carousel arrows:
   white boxes were invisible/too bright in dark mode
   --------------------------------------------------------- */
html[data-theme="dark"] .product-scroll-controls button,
html[data-theme="dark"] .season-arrow{
  background:#1b2027!important;
  color:#f3f5f7!important;
  border-color:#3b444f!important;
  box-shadow:0 7px 20px rgba(0,0,0,.28)!important;
}

html[data-theme="dark"] .product-scroll-controls button:hover,
html[data-theme="dark"] .season-arrow:hover{
  background:#252c35!important;
  color:#fff!important;
  border-color:#556171!important;
}

/* ---------------------------------------------------------
   Coupang ad: darken the entire ad container/copy area.
   The affiliate source image itself keeps its original colors.
   --------------------------------------------------------- */
html[data-theme="dark"] .coupang-ad-wrap{
  background:#14171c!important;
  border-color:#303741!important;
  box-shadow:0 10px 28px rgba(0,0,0,.22)!important;
}

html[data-theme="dark"] .coupang-ad-card,
html[data-theme="dark"] .coupang-ad-wrap:hover .coupang-ad-card{
  background:#14171c!important;
  color:#eef1f4!important;
}

html[data-theme="dark"] .coupang-ad-media{
  background:#101318!important;
  border-color:#303741!important;
}

html[data-theme="dark"] .coupang-ad-copy{
  background:#14171c!important;
  color:#eef1f4!important;
}

html[data-theme="dark"] .coupang-ad-label{
  background:#252b33!important;
  color:#cfd5dc!important;
}

html[data-theme="dark"] .coupang-ad-copy strong{
  color:#eef1f4!important;
}

html[data-theme="dark"] .coupang-ad-copy p{
  color:#aeb5bf!important;
}

html[data-theme="dark"] .coupang-ad-cta{
  background:#242b33!important;
  color:#f3f5f7!important;
  border:1px solid #3b444f!important;
}

html[data-theme="dark"] .coupang-ad-disclosure{
  background:#111419!important;
  color:#8f98a4!important;
  border-top-color:#2b3038!important;
}

/* Keep actual Coupang/product artwork untouched. */
html[data-theme="dark"] :where(
  .product-img img,
  .coupang-ad-media img,
  .episode-card .thumb img,
  .home-flow-thumb img,
  .home-flow-admin-preview img
){
  filter:none!important;
}

/* ---------------------------------------------------------
   Public form/filter areas
   --------------------------------------------------------- */
html[data-theme="dark"] :where(
  input,
  select,
  textarea
){
  background:#0f1216!important;
  color:#eef1f4!important;
  border-color:#343a44!important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{
  color:#727b87!important;
}

html[data-theme="dark"] option{
  background:#14171c!important;
  color:#eef1f4!important;
}

html[data-theme="dark"] :where(
  .filter-bar,
  .products-toolbar,
  .products-filter,
  .search-panel
){
  background:#14171c!important;
  border-color:#2b3038!important;
  color:#eef1f4!important;
}

/* ---------------------------------------------------------
   Buttons: avoid large pure-white buttons in dark mode.
   --------------------------------------------------------- */
html[data-theme="dark"] .btn{
  background:#222830!important;
  color:#f1f3f5!important;
  border-color:#3a434e!important;
}

html[data-theme="dark"] .btn:hover{
  background:#2b333d!important;
  border-color:#4a5664!important;
}

html[data-theme="dark"] .btn.ghost,
html[data-theme="dark"] .theme-toggle{
  background:#171b20!important;
  color:#eef1f4!important;
  border-color:#343a44!important;
}

html[data-theme="dark"] .btn.ghost:hover,
html[data-theme="dark"] .theme-toggle:hover{
  background:#20262d!important;
  border-color:#505b68!important;
}

/* Active nav stays clear without a glaring white block. */
html[data-theme="dark"] nav a:hover,
html[data-theme="dark"] nav a.active{
  background:#252b33!important;
  color:#fff!important;
}

/* ---------------------------------------------------------
   ADMIN: consistent dark theme across all admin UI
   --------------------------------------------------------- */
html[data-theme="dark"] .admin-shell{
  color:#eef1f4!important;
}

html[data-theme="dark"] :where(
  .admin-panel,
  .admin-auth-card,
  .admin-stat,
  .home-flow-admin-card,
  .slot-admin-card,
  #monetizationAdmin .side-slot-admin-card,
  .admin-grant-box,
  .admin-check-grid,
  .upload-box,
  .result-event-admin-preview,
  .quick-copy-link,
  .channel-visibility-option,
  .admin-draft-status
){
  background:#14171c!important;
  color:#eef1f4!important;
  border-color:#303741!important;
  box-shadow:none!important;
}

html[data-theme="dark"] .admin-sessionbar{
  background:#111419!important;
  color:#eef1f4!important;
  border:1px solid #303741!important;
}

html[data-theme="dark"] .admin-feature-tabs,
html[data-theme="dark"] .admin-tabs{
  background:#111419!important;
  color:#eef1f4!important;
  border-color:#303741!important;
  box-shadow:0 6px 22px rgba(0,0,0,.18)!important;
}

html[data-theme="dark"] .admin-feature-tab,
html[data-theme="dark"] .admin-tab{
  background:#171b20!important;
  color:#cfd5dc!important;
  border-color:#343a44!important;
}

html[data-theme="dark"] .admin-feature-tab:hover,
html[data-theme="dark"] .admin-tab:hover{
  background:#20262d!important;
  color:#fff!important;
}

html[data-theme="dark"] .admin-feature-tab.active,
html[data-theme="dark"] .admin-tab.active{
  background:#2a323c!important;
  color:#fff!important;
  border-color:#586474!important;
}

html[data-theme="dark"] .admin-field label,
html[data-theme="dark"] .product-admin-summary label,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .field-help-inline,
html[data-theme="dark"] .upload-progress,
html[data-theme="dark"] .slot-help,
html[data-theme="dark"] .admin-draft-status{
  color:#aeb5bf!important;
}

html[data-theme="dark"] :where(
  .admin-field input,
  .admin-field select,
  .admin-field textarea,
  .product-admin-summary select,
  .home-flow-editor-fields input,
  .home-flow-editor-fields textarea
){
  background:#0f1216!important;
  color:#eef1f4!important;
  border-color:#38414c!important;
}

html[data-theme="dark"] .admin-check-grid .placement-option{
  background:#171b20!important;
  color:#eef1f4!important;
  border-color:#343a44!important;
}

html[data-theme="dark"] .admin-check-grid .placement-option:hover{
  background:#20262d!important;
  border-color:#56616f!important;
}

html[data-theme="dark"] .admin-check-grid .placement-option strong{
  color:#eef1f4!important;
}

html[data-theme="dark"] .admin-check-grid .placement-option small,
html[data-theme="dark"] .channel-visibility-option small,
html[data-theme="dark"] .quick-copy-link span,
html[data-theme="dark"] .quick-copy-link code{
  color:#99a2ae!important;
}

html[data-theme="dark"] .quick-copy-link strong{
  color:#eef1f4!important;
}

html[data-theme="dark"] .quick-copy-link code,
html[data-theme="dark"] .field-help code{
  background:#0f1216!important;
  color:#cbd2da!important;
}

html[data-theme="dark"] .admin-table{
  color:#dfe3e7!important;
}

html[data-theme="dark"] .admin-table th{
  background:#171b20!important;
  color:#f0f2f4!important;
  border-bottom-color:#343a44!important;
}

html[data-theme="dark"] .admin-table td{
  background:#14171c!important;
  color:#d8dde2!important;
  border-bottom-color:#2b3038!important;
}

html[data-theme="dark"] .role-chip,
html[data-theme="dark"] .role-chip.admin,
html[data-theme="dark"] .role-chip.superadmin{
  background:#252b33!important;
  color:#e7ebef!important;
}

html[data-theme="dark"] .admin-note{
  background:#211d12!important;
  color:#e6d99b!important;
  border-color:#514728!important;
}

html[data-theme="dark"] .admin-message.info{
  background:#15202c!important;
  color:#b9d6f3!important;
  border-color:#29445f!important;
}
html[data-theme="dark"] .admin-message.success{
  background:#14231a!important;
  color:#b9e0c3!important;
  border-color:#2c5437!important;
}
html[data-theme="dark"] .admin-message.error{
  background:#2a1719!important;
  color:#f2bfc4!important;
  border-color:#65343a!important;
}

/* R3.11 visual crop editor - proper dark styling */
html[data-theme="dark"] .flow-crop-modal{
  background:rgba(0,0,0,.78)!important;
}

html[data-theme="dark"] .flow-crop-dialog{
  background:#14171c!important;
  color:#eef1f4!important;
  border-color:#343a44!important;
}

html[data-theme="dark"] .flow-crop-header,
html[data-theme="dark"] .flow-crop-footer{
  border-color:#303741!important;
}

html[data-theme="dark"] .flow-crop-tip,
html[data-theme="dark"] .flow-crop-zoom-row{
  background:#101318!important;
  color:#aeb5bf!important;
  border-color:#303741!important;
}

html[data-theme="dark"] .flow-crop-stage-wrap{
  background:#0d1014!important;
}

html[data-theme="dark"] .flow-crop-close{
  background:#1b2027!important;
  color:#f1f3f5!important;
  border-color:#3b444f!important;
}

/* Pagination */
html[data-theme="dark"] .season-page-btn{
  background:#1b2027!important;
  color:#eef1f4!important;
  border-color:#3b444f!important;
}
html[data-theme="dark"] .season-page-btn.active{
  background:#303845!important;
  color:#fff!important;
  border-color:#657285!important;
}

/* Scrollbars */
html[data-theme="dark"] ::-webkit-scrollbar-track{
  background:#0f1216!important;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb{
  background:#37414c!important;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover{
  background:#4a5664!important;
}


/* =========================================================
   v3.13 PRODUCT DARK-MODE EYE-STRAIN FIX
   Coupang affiliate artwork often contains a pure white canvas.
   In dark mode we intentionally soften that canvas to gray.
   ========================================================= */
html[data-theme="dark"] .product-img{
  background:#2a2f36!important;
}

html[data-theme="dark"] .product-img img{
  filter:brightness(.78) saturate(.92)!important;
  background:#2a2f36!important;
}

html[data-theme="dark"] .product-img-fallback{
  background:linear-gradient(135deg,#252b32,#303741)!important;
  color:#d8dde3!important;
}

/* Also soften the large Coupang ad artwork without hiding the actual product. */
html[data-theme="dark"] .coupang-ad-media{
  background:#2a2f36!important;
}

html[data-theme="dark"] .coupang-ad-media img{
  filter:brightness(.80) saturate(.94)!important;
}

/* =========================================================
   v3.13 HOME FLOW VISIBILITY + ROUTING
   ========================================================= */
.home-flow-grid{
  grid-template-columns:repeat(var(--home-flow-count,4),minmax(0,1fr));
}

.home-flow-card[hidden],
#homeFlowSection[hidden]{
  display:none!important;
}

.home-flow-card-routing{
  display:grid;
  grid-template-columns:minmax(120px,.7fr) minmax(0,1.8fr);
  gap:10px;
}

.home-flow-card-routing > label{
  display:grid;
  gap:6px;
  color:var(--text);
  font-size:12px;
  font-weight:800;
}

.home-flow-card-routing input,
.home-flow-card-routing select{
  width:100%;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--card);
  color:var(--text);
  padding:10px 11px;
  font:inherit;
  font-weight:500;
}

html[data-theme="dark"] .home-flow-card-routing input,
html[data-theme="dark"] .home-flow-card-routing select{
  background:#0f1216!important;
  color:#eef1f4!important;
  border-color:#38414c!important;
}

@media(max-width:900px){
  .home-flow-grid{
    grid-template-columns:repeat(min(var(--home-flow-count,4),2),minmax(0,1fr));
  }
}

@media(max-width:620px){
  .home-flow-grid{
    grid-template-columns:1fr;
  }
  .home-flow-card-routing{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   v3.14 snapshot stats + full product click
   ========================================================= */
.product-card-media-link,
.product-card-copy-link{
  display:block;
  color:inherit;
  text-decoration:none;
}

.product-card-copy-link{
  display:flex;
  flex-direction:column;
  gap:7px;
  border-radius:12px;
}

.product-card-media-link:focus-visible,
.product-card-copy-link:focus-visible{
  outline:3px solid rgba(47,128,255,.42);
  outline-offset:-3px;
}

.product-card-media-link:hover .product-img img{
  transform:scale(1.015);
}

.product-card-copy-link:hover h4{
  text-decoration:underline;
  text-underline-offset:3px;
}

.mini-game-stats-trigger{
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}

.mini-game-stats-trigger:hover{
  transform:translateY(-2px);
  border-color:#9ba2ac;
  box-shadow:0 14px 34px rgba(0,0,0,.08);
}

.mini-game-stats-trigger:focus-visible{
  outline:3px solid rgba(47,128,255,.38);
  outline-offset:4px;
}

.mini-game-stats-hint{
  margin-top:20px;
  padding-top:14px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:13px;
  font-weight:850;
}

.mini-game-stats-hint b{
  font-size:20px;
  color:var(--text);
}

.game-stats-open{overflow:hidden}
.game-stats-modal[hidden]{display:none!important}

.game-stats-modal{
  position:fixed;
  inset:0;
  z-index:100000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,0,0,.66);
  backdrop-filter:blur(4px);
}

.game-stats-dialog{
  width:min(1080px,96vw);
  max-height:92vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:var(--card);
  color:var(--text);
  border:1px solid var(--line);
  border-radius:26px;
  box-shadow:0 26px 90px rgba(0,0,0,.34);
}

.game-stats-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:22px 24px 18px;
  border-bottom:1px solid var(--line);
}

.game-stats-header h2{margin:0 0 6px;font-size:26px}
.game-stats-header p{margin:0;color:var(--muted)}

.game-stats-close{
  width:42px;
  height:42px;
  flex:0 0 42px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--card);
  color:var(--text);
  font-size:26px;
  line-height:1;
  cursor:pointer;
}

.game-stats-body{
  overflow:auto;
  padding:22px 24px 28px;
}

.game-stats-loading,
.game-stats-error{
  padding:34px;
  text-align:center;
  border:1px solid var(--line);
  border-radius:18px;
  color:var(--muted);
}

.public-game-stats-section + .public-game-stats-section{
  margin-top:34px;
  padding-top:30px;
  border-top:1px solid var(--line);
}

.game-stats-section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}

.game-stats-section-title h3{margin:0;font-size:22px}
.game-stats-section-title p{
  max-width:520px;
  margin:0;
  color:var(--muted);
  font-size:13px;
  text-align:right;
}

.public-game-question-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.public-game-question-stat,
.public-game-result-type{
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(127,127,127,.035);
}

.public-game-question-stat h4{
  margin:0 0 15px;
  font-size:16px;
  line-height:1.45;
}

.public-game-choice-stat + .public-game-choice-stat{margin-top:13px}

.public-game-choice-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
}

.public-game-choice-head span{
  color:var(--text);
  line-height:1.45;
}

.public-game-choice-head span b{
  display:inline-grid;
  place-items:center;
  width:22px;
  height:22px;
  margin-right:5px;
  border-radius:7px;
  background:#252b33;
  color:#fff;
}

.public-game-choice-head strong{white-space:nowrap;color:var(--text)}
.public-game-choice-head small{color:var(--muted);font-weight:700}

.public-game-stat-bar{
  height:10px;
  margin-top:8px;
  overflow:hidden;
  border-radius:999px;
  background:#e7e9ec;
}

.public-game-stat-bar > span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:#111;
}

.public-game-stat-bar > span.choice-b{background:#69717c}

.public-game-no-data{
  margin:10px 0 0!important;
  color:var(--muted)!important;
  font-size:12px!important;
}

.public-game-result-types{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.public-game-result-type-head h4{margin:0;font-size:18px}

.public-game-result-type p{
  margin:13px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

.public-game-result-type ul{
  display:grid;
  gap:5px;
  margin:13px 0 0;
  padding-left:18px;
  color:var(--muted);
  font-size:12px;
}

.public-game-score-range{
  margin-top:13px;
  padding-top:11px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}

html[data-theme="dark"] .game-stats-modal{background:rgba(0,0,0,.78)}
html[data-theme="dark"] .game-stats-dialog,
html[data-theme="dark"] .game-stats-close{
  background:#14171c;
  border-color:#343a44;
  color:#eef1f4;
}
html[data-theme="dark"] .public-game-question-stat,
html[data-theme="dark"] .public-game-result-type{
  background:#101318;
  border-color:#303741;
}
html[data-theme="dark"] .public-game-stat-bar{background:#282f38}
html[data-theme="dark"] .public-game-stat-bar > span{background:#e4e7eb}
html[data-theme="dark"] .public-game-stat-bar > span.choice-b{background:#85909e}

@media(max-width:820px){
  .public-game-question-stats,
  .public-game-result-types{grid-template-columns:1fr}
  .game-stats-section-title{
    align-items:flex-start;
    flex-direction:column;
  }
  .game-stats-section-title p{text-align:left}
}

@media(max-width:620px){
  .game-stats-modal{padding:8px}
  .game-stats-dialog{
    width:100%;
    max-height:97vh;
    border-radius:18px;
  }
  .game-stats-header{padding:16px 15px 13px}
  .game-stats-header h2{font-size:21px}
  .game-stats-body{padding:14px 14px 20px}
  .public-game-question-stat,
  .public-game-result-type{padding:15px}
}


/* =========================================================
   v3.16 HOME SHORTCUT CARDS
   ========================================================= */
.home-flow-card{
  position:relative;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background-color .22s ease;
}
.home-flow-card .home-flow-thumb{overflow:hidden}
.home-flow-card .home-flow-thumb img{transition:transform .30s ease,filter .25s ease}
.home-flow-card .card-body{position:relative}
.home-flow-card .card-body::after{
  content:"→";
  position:absolute;
  right:18px;
  bottom:17px;
  opacity:.52;
  transform:translateX(-4px);
  transition:opacity .18s ease,transform .18s ease;
  font-size:20px;
  font-weight:900;
}
.home-flow-card:focus-visible{outline:3px solid rgba(47,128,255,.42);outline-offset:4px}
@media (hover:hover) and (pointer:fine){
  .home-flow-card:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 34px rgba(0,0,0,.12);
    border-color:#cfd3d8;
  }
  .home-flow-card:hover .home-flow-thumb img{transform:scale(1.035)}
  .home-flow-card:hover .card-body::after{opacity:1;transform:translateX(0)}
}
.home-flow-card:active{transform:scale(.992)}
html[data-theme="dark"] .home-flow-card:hover{border-color:#4a5563;box-shadow:0 15px 34px rgba(0,0,0,.28)}

/* =========================================================
   v3.16 MINI GAME BUILDER ADMIN
   ========================================================= */
.game-builder-tabs{
  display:flex;gap:8px;overflow-x:auto;padding:8px;margin:4px 0 20px;
  border:1px solid var(--line);border-radius:14px;background:rgba(127,127,127,.035);
}
.game-builder-tab{
  flex:0 0 auto;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--text);
  padding:10px 13px;font-size:12px;font-weight:850;cursor:pointer;
}
.game-builder-tab.active{background:#111;color:#fff;border-color:#111}
.game-builder-pane{display:none}
.game-builder-pane.active{display:block}
.game-builder-pane-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:15px}
.game-builder-pane-head h3{margin:0 0 5px}
.game-builder-pane-head p{margin:0}
.admin-actions.compact{margin:0;display:flex;gap:8px;flex-wrap:wrap}
.game-builder-list{display:grid;gap:12px}
.game-builder-card{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;
  padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--card);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.game-builder-card.selected{border-color:#808894;box-shadow:0 0 0 2px rgba(127,136,148,.12)}
.game-builder-card-titleline{display:flex;align-items:center;gap:7px;margin-bottom:8px}
.game-builder-card h3{margin:0 0 7px;font-size:18px}
.game-builder-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.game-builder-card-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.game-builder-card-meta span{padding:6px 9px;border-radius:999px;background:rgba(127,127,127,.09);font-size:11px;color:var(--muted)}
.game-builder-card-meta b{color:var(--text)}
.game-builder-card-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap;max-width:520px}
.game-status-chip,.game-version-chip{display:inline-flex;align-items:center;min-height:25px;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:900}
.game-version-chip{background:rgba(127,127,127,.10);color:var(--muted)}
.game-status-chip.draft{background:#eef0f3;color:#555}
.game-status-chip.review{background:#fff2cc;color:#6c5300}
.game-status-chip.public{background:#dff4e6;color:#1f6b39}
.game-status-chip.paused{background:#f3dfdf;color:#7a3434}
.validation-empty{padding:24px;border:1px dashed var(--line);border-radius:16px;color:var(--muted);text-align:center}
.validation-summary{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:15px 16px;border:1px solid var(--line);border-radius:14px;margin-bottom:12px}
.validation-summary.ok{background:#eef8f1;border-color:#cce9d5;color:#24663a}
.validation-summary.has-error{background:#fff0f0;border-color:#f0caca;color:#8a3434}
.validation-summary span{font-size:12px}
.validation-list{display:grid;gap:8px}
.validation-item{display:flex;gap:10px;align-items:flex-start;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:var(--card);font-size:12px}
.validation-icon{display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px;border-radius:999px;font-weight:900}
.validation-item.ok .validation-icon{background:#dff4e6;color:#1f6b39}
.validation-item.warn .validation-icon{background:#fff2cc;color:#6c5300}
.validation-item.error .validation-icon{background:#f3dfdf;color:#8a3434}
.game-builder-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}

.game-preview-open{overflow:hidden}
.game-preview-modal[hidden]{display:none!important}
.game-preview-modal{position:fixed;inset:0;z-index:100100;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(0,0,0,.70);backdrop-filter:blur(4px)}
.game-preview-dialog{width:min(820px,96vw);max-height:92vh;overflow:hidden;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:24px;background:var(--card);box-shadow:0 26px 90px rgba(0,0,0,.34)}
.game-preview-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px 16px;border-bottom:1px solid var(--line)}
.game-preview-header h2{margin:0 0 5px}.game-preview-header p{margin:0;color:var(--muted);font-size:12px}
.game-preview-close{width:40px;height:40px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--text);font-size:24px;cursor:pointer}
.game-preview-body{overflow:auto;padding:24px}
.preview-progress{height:10px;border-radius:999px;background:rgba(127,127,127,.13);overflow:hidden}.preview-progress span{display:block;height:100%;background:var(--text);border-radius:inherit;transition:width .2s ease}
.preview-counter{margin:16px 0 10px;font-size:12px;font-weight:900;color:var(--muted)}
.preview-question{font-size:24px;font-weight:900;line-height:1.35;margin-bottom:18px}
.preview-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.preview-choice{min-height:70px;padding:15px;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--text);font:inherit;font-weight:850;text-align:left;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.preview-choice:hover,.preview-choice.selected{border-color:#687381;background:rgba(127,127,127,.08);transform:translateY(-2px)}
.preview-nav{margin-top:16px}.preview-result{text-align:center;padding:22px 10px}.preview-result h3{font-size:30px;margin:12px 0}.preview-result p{max-width:590px;margin:0 auto 18px;color:var(--muted);line-height:1.6}.preview-feature-list{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:0 auto 22px}.preview-feature-list span{padding:7px 10px;border-radius:999px;background:rgba(127,127,127,.10);font-size:12px;font-weight:800}

html[data-theme="dark"] .game-builder-tab.active{background:#eef1f4;color:#111;border-color:#eef1f4}
html[data-theme="dark"] .game-status-chip.draft{background:#2b3037;color:#cdd3da}
html[data-theme="dark"] .game-status-chip.review{background:#3b3216;color:#f2d77f}
html[data-theme="dark"] .game-status-chip.public{background:#173623;color:#a9e1b9}
html[data-theme="dark"] .game-status-chip.paused{background:#3b2023;color:#efb4ba}
html[data-theme="dark"] .validation-summary.ok{background:#13271a;border-color:#294d34;color:#afe0bc}
html[data-theme="dark"] .validation-summary.has-error{background:#2b1719;border-color:#5e3035;color:#efb4ba}
html[data-theme="dark"] .game-preview-dialog,html[data-theme="dark"] .game-preview-close{background:#14171c;border-color:#343a44;color:#eef1f4}

@media(max-width:900px){
  .game-builder-card{grid-template-columns:1fr}.game-builder-card-actions{justify-content:flex-start;max-width:none}
  .game-builder-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .game-builder-pane-head{flex-direction:column}.game-builder-card{padding:14px}.game-builder-card-actions .btn{min-height:42px}
  .game-builder-stat-grid{grid-template-columns:1fr 1fr}.game-preview-modal{padding:7px}.game-preview-dialog{width:100%;max-height:97vh;border-radius:18px}.game-preview-body{padding:16px}.preview-choices{grid-template-columns:1fr}.preview-question{font-size:21px}
}


/* =========================================================
   v3.17 DARK MODE: PUBLIC PRODUCT CATALOG
   ========================================================= */
html[data-theme="dark"] .catalog-count{
  background:#1b2027!important;
  color:#eef1f4!important;
  border-color:#3a434e!important;
}

html[data-theme="dark"] .catalog-toolbar{
  background:#14171c!important;
  color:#eef1f4!important;
  border-color:#303741!important;
  box-shadow:0 8px 24px rgba(0,0,0,.16)!important;
}

html[data-theme="dark"] .catalog-toolbar label{
  color:#aeb5bf!important;
}

html[data-theme="dark"] .catalog-toolbar input,
html[data-theme="dark"] .catalog-toolbar select{
  background:#0f1216!important;
  color:#eef1f4!important;
  border-color:#38414c!important;
}

html[data-theme="dark"] .catalog-toolbar input:focus,
html[data-theme="dark"] .catalog-toolbar select:focus{
  outline:2px solid #596675!important;
  outline-offset:1px!important;
}

html[data-theme="dark"] .catalog-active span{
  background:#242b33!important;
  color:#cfd5dc!important;
  border:1px solid #343d48!important;
}

html[data-theme="dark"] .catalog-empty{
  background:#14171c!important;
  color:#aeb5bf!important;
  border-color:#3a434e!important;
}

html[data-theme="dark"] .catalog-empty strong{
  color:#eef1f4!important;
}

html[data-theme="dark"] .catalog-page-info,
html[data-theme="dark"] .catalog-ellipsis{
  color:#aeb5bf!important;
}

html[data-theme="dark"] .catalog-page-buttons button{
  background:#171b20!important;
  color:#dfe4e9!important;
  border-color:#343d48!important;
}

html[data-theme="dark"] .catalog-page-buttons button:hover:not(:disabled){
  background:#242b33!important;
  color:#fff!important;
}

html[data-theme="dark"] .catalog-page-buttons button.active{
  background:#303946!important;
  color:#fff!important;
  border-color:#667487!important;
}

/* =========================================================
   v3.17 MOBILE THEME BUTTON
   공개 헤더에서는 한 줄을 더 차지하지 않고 우측 위 작은 버튼으로 표시
   ========================================================= */
@media(max-width:900px){
  header .header-inner{
    position:relative;
    padding-right:52px!important;
  }

  header .header-inner > .theme-toggle{
    position:absolute!important;
    top:12px!important;
    right:0!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    min-height:40px!important;
    padding:0!important;
    margin:0!important;
    border-radius:999px!important;
    font-size:0!important;
    line-height:1!important;
    align-self:auto!important;
    z-index:3;
  }

  header .header-inner > .theme-toggle::before{
    content:"◐";
    display:block;
    font-size:18px;
    line-height:38px;
    text-align:center;
  }

  html[data-theme="dark"] header .header-inner > .theme-toggle::before{
    content:"☀";
  }

  header .header-inner nav{
    padding-right:0;
  }
}

/* =========================================================
   v3.17 RESULT TYPE DETAIL
   ========================================================= */
.public-game-result-type-button{
  width:100%;
  min-height:100%;
  text-align:left;
  font:inherit;
  color:inherit;
  cursor:pointer;
  appearance:none;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}

.public-game-result-type-button .public-game-result-type-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}

.result-type-open-arrow{
  flex:0 0 auto;
  font-size:21px;
  font-weight:900;
  opacity:.55;
  transition:transform .18s ease,opacity .18s ease;
}

.result-type-more{
  display:inline-flex;
  margin-top:13px;
  padding-top:11px;
  border-top:1px solid var(--line);
  width:100%;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}

@media(hover:hover) and (pointer:fine){
  .public-game-result-type-button:hover{
    transform:translateY(-3px);
    border-color:#9199a5;
    box-shadow:0 12px 28px rgba(0,0,0,.09);
  }
  .public-game-result-type-button:hover .result-type-open-arrow{
    opacity:1;
    transform:translateX(4px);
  }
}

.result-type-detail-open{
  overflow:hidden;
}

.result-type-detail-modal[hidden]{
  display:none!important;
}

.result-type-detail-modal{
  position:fixed;
  inset:0;
  z-index:100020;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(0,0,0,.74);
  backdrop-filter:blur(5px);
}

.result-type-detail-dialog{
  width:min(720px,95vw);
  max-height:90vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:24px;
  background:var(--card);
  color:var(--text);
  box-shadow:0 26px 90px rgba(0,0,0,.36);
}

.result-type-detail-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px 16px;
  border-bottom:1px solid var(--line);
}

.result-type-detail-header h2{
  margin:0;
  font-size:27px;
}

.result-type-detail-close{
  width:40px;
  height:40px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--card);
  color:var(--text);
  cursor:pointer;
  font-size:24px;
  line-height:1;
}

.result-type-detail-body{
  overflow:auto;
  padding:22px;
}

.result-detail-section{
  padding:17px 0;
  border-bottom:1px solid var(--line);
}

.result-detail-section:first-child{padding-top:0}
.result-detail-section:last-child{border-bottom:0;padding-bottom:0}
.result-detail-section h3{margin:0 0 8px;font-size:16px}
.result-detail-section p{margin:0;color:var(--muted);line-height:1.7}

.result-detail-traits{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.result-detail-traits span{
  padding:8px 11px;
  border-radius:999px;
  background:rgba(127,127,127,.10);
  font-size:12px;
  font-weight:800;
}

.result-detail-good,
.result-detail-watch{
  padding:15px;
  margin-top:13px;
  border:1px solid var(--line);
  border-radius:15px;
}

.result-detail-good{
  background:rgba(51,145,82,.07);
}

.result-detail-watch{
  background:rgba(188,126,39,.08);
}

.result-detail-empty{
  padding:30px;
  text-align:center;
  color:var(--muted);
}

html[data-theme="dark"] .public-game-result-type-button:hover{
  border-color:#56616f;
  box-shadow:0 12px 28px rgba(0,0,0,.25);
}

html[data-theme="dark"] .result-type-detail-dialog,
html[data-theme="dark"] .result-type-detail-close{
  background:#14171c!important;
  color:#eef1f4!important;
  border-color:#343a44!important;
}

html[data-theme="dark"] .result-detail-good{
  background:#14251a;
  border-color:#294b34;
}

html[data-theme="dark"] .result-detail-watch{
  background:#251f13;
  border-color:#51452b;
}

/* =========================================================
   v3.17 ADMIN REFERRER ANALYTICS
   ========================================================= */
.referrer-analytics{
  padding-top:6px;
}

.referrer-analytics-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}

.referrer-analytics-head h3{
  margin:0 0 4px;
}

.referrer-analytics-head p{
  margin:0;
}

.referrer-period-control{
  display:grid;
  gap:5px;
  min-width:130px;
  color:var(--muted);
  font-size:11px;
  font-weight:850;
}

.referrer-period-control select{
  min-height:40px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--card);
  color:var(--text);
}

.referrer-analytics-grid{
  display:grid;
  grid-template-columns:minmax(260px,.72fr) minmax(0,1.8fr);
  gap:14px;
}

.referrer-stat-card{
  min-width:0;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--card);
}

.referrer-stat-card h4{
  margin:0 0 12px;
}

.referrer-table{
  width:100%;
}

.referrer-detail-table{
  min-width:720px;
}

.referrer-link{
  display:inline-block;
  max-width:360px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:inherit;
  text-decoration:underline;
  text-underline-offset:3px;
}

.referrer-detail-table code{
  padding:3px 6px;
  border-radius:6px;
  background:rgba(127,127,127,.09);
  color:inherit;
}

html[data-theme="dark"] .referrer-stat-card{
  background:#14171c!important;
  border-color:#303741!important;
}

html[data-theme="dark"] .referrer-period-control select{
  background:#0f1216!important;
  color:#eef1f4!important;
  border-color:#38414c!important;
}

@media(max-width:850px){
  .referrer-analytics-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .referrer-analytics-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:620px){
  .result-type-detail-modal{padding:7px}
  .result-type-detail-dialog{width:100%;max-height:97vh;border-radius:18px}
  .result-type-detail-header{padding:16px 15px 13px}
  .result-type-detail-body{padding:16px}
}


/* =========================================================
   v3.18 multilingual
   ========================================================= */
.language-switcher{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--card);white-space:nowrap}
.language-switcher a{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 9px;border-radius:999px;font-size:11px;font-weight:850;color:var(--muted);text-decoration:none}
.language-switcher a:hover{background:rgba(127,127,127,.10);color:var(--text)}
.language-switcher a.active{background:#111;color:#fff}
html[data-theme="dark"] .language-switcher{background:#14171c;border-color:#343a44}
html[data-theme="dark"] .language-switcher a.active{background:#e7eaee;color:#111}

.translation-admin-toolbar{display:grid;grid-template-columns:150px 180px minmax(240px,1fr);gap:12px;margin-bottom:16px}
.translation-admin-toolbar label,.translation-field{display:grid;gap:6px;font-size:12px;font-weight:850;color:var(--text)}
.translation-admin-toolbar select,.translation-fields input,.translation-fields textarea{width:100%;border:1px solid var(--line);border-radius:11px;background:var(--card);color:var(--text);padding:10px 11px;font:inherit}
.translation-source-card{padding:14px 16px;margin-bottom:14px;border:1px solid var(--line);border-radius:14px;background:rgba(127,127,127,.045)}
.translation-source-card strong{display:block;margin-bottom:5px}.translation-source-card p{margin:0;color:var(--muted)}
.translation-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.translation-field:has(textarea){grid-column:span 2}.translation-field em{font-style:normal;font-weight:500;color:var(--muted);font-size:11px;line-height:1.45}
.translation-field small{color:var(--muted);font-weight:700}
html[data-theme="dark"] .translation-admin-toolbar select,html[data-theme="dark"] .translation-fields input,html[data-theme="dark"] .translation-fields textarea{background:#0f1216!important;color:#eef1f4!important;border-color:#38414c!important}
html[data-theme="dark"] .translation-source-card{background:#101318;border-color:#303741}

@media(max-width:900px){
  .header-inner{padding-right:52px!important}
  .language-switcher{position:absolute;right:52px;top:12px;z-index:3}
  header .header-inner nav{padding-top:4px}
  .translation-admin-toolbar{grid-template-columns:1fr}
  .translation-fields{grid-template-columns:1fr}
  .translation-field:has(textarea){grid-column:auto}
}
@media(max-width:560px){
  .language-switcher{position:static;order:3;margin-top:2px}
  header .header-inner{padding-right:52px!important}
}


/* =========================================================
   v3.20 MOBILE HEADER CONTROLS
   [Language] [Theme] are fixed inside the same header row.
   ========================================================= */

/* desktop language switcher */
.language-switcher{
  position:relative;
  display:flex;
  align-items:center;
  flex:0 0 auto;
}

.language-switcher-toggle{
  display:none;
}

.language-switcher-menu{
  display:flex;
  align-items:center;
  gap:3px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--card);
  white-space:nowrap;
}

.language-switcher-menu a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:850;
  color:var(--muted);
  text-decoration:none;
}

.language-switcher-menu a:hover{
  background:rgba(127,127,127,.10);
  color:var(--text);
}

.language-switcher-menu a.active{
  background:#111;
  color:#fff;
}

html[data-theme="dark"] .language-switcher-menu{
  background:#14171c;
  border-color:#343a44;
}

html[data-theme="dark"] .language-switcher-menu a.active{
  background:#e7eaee;
  color:#111;
}

@media(max-width:900px){
  /* two compact controls reserve exactly the top-right area */
  header .header-inner{
    position:relative;
    padding-right:102px!important;
  }

  /* language button = LEFT */
  header .header-inner > .language-switcher{
    position:absolute!important;
    top:12px!important;
    right:48px!important;
    width:44px!important;
    height:40px!important;
    margin:0!important;
    z-index:4!important;
  }

  .language-switcher-toggle{
    display:flex!important;
    align-items:center;
    justify-content:center;
    gap:2px;
    width:44px;
    height:40px;
    padding:0;
    border:1px solid var(--line);
    border-radius:999px;
    background:var(--card);
    color:var(--text);
    font-size:11px;
    font-weight:900;
    cursor:pointer;
    box-shadow:none;
  }

  .language-switcher-caret{
    font-size:9px;
    opacity:.65;
    transform:translateY(-1px);
  }

  .language-switcher-menu{
    display:none!important;
    position:absolute!important;
    top:47px!important;
    right:0!important;
    min-width:116px;
    padding:6px!important;
    flex-direction:column;
    align-items:stretch;
    gap:3px!important;
    border:1px solid var(--line);
    border-radius:14px!important;
    background:var(--card);
    box-shadow:0 14px 36px rgba(0,0,0,.16);
    z-index:10;
  }

  .language-switcher.is-open .language-switcher-menu{
    display:flex!important;
  }

  .language-switcher-menu a{
    justify-content:flex-start!important;
    width:100%;
    min-height:36px!important;
    padding:0 10px!important;
    border-radius:9px!important;
  }

  html[data-theme="dark"] .language-switcher-toggle,
  html[data-theme="dark"] .language-switcher-menu{
    background:#171b20!important;
    color:#eef1f4!important;
    border-color:#343a44!important;
  }

  /* theme button = RIGHT */
  header .header-inner > .theme-toggle{
    position:absolute!important;
    top:12px!important;
    right:0!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    min-height:40px!important;
    margin:0!important;
    z-index:4!important;
  }

  header .header-inner nav{
    width:100%;
    padding-right:0!important;
  }
}

/* IMPORTANT: never drop the language control onto a separate mobile row */
@media(max-width:560px){
  header .header-inner{
    padding-right:102px!important;
  }

  header .header-inner > .language-switcher{
    position:absolute!important;
    top:12px!important;
    right:48px!important;
    order:initial!important;
    margin:0!important;
  }
}


/* =========================================================
   v3.21 MOBILE AD COMPACT
   모바일에서 광고가 본문보다 과도하게 커 보이지 않도록 축소
   데스크톱은 기존 크기 유지
   ========================================================= */
@media(max-width:620px){

  /* 일반 AdSense/placeholder 영역 */
  .monetization-slot{
    margin-left:0!important;
    margin-right:0!important;
  }

  .ad-slot{
    min-height:76px!important;
    padding:10px 12px!important;
    border-radius:13px!important;
  }

  /* 쿠팡 광고는 모바일에서도 세로 적층 대신 작은 가로형 카드 */
  .coupang-ad-wrap{
    border-radius:14px!important;
  }

  .coupang-ad-card{
    min-height:118px!important;
    grid-template-columns:112px minmax(0,1fr)!important;
    align-items:stretch!important;
  }

  .coupang-ad-media{
    min-height:118px!important;
    height:118px!important;
    padding:7px!important;
  }

  .coupang-ad-media img{
    width:auto!important;
    height:auto!important;
    max-width:100%!important;
    max-height:104px!important;
    object-fit:contain!important;
  }

  .coupang-ad-media img[data-small-source="1"],
  .coupang-ad-media img[data-large-source="1"]{
    max-width:100%!important;
    max-height:104px!important;
  }

  .coupang-ad-copy{
    min-width:0!important;
    padding:11px 12px!important;
    justify-content:center!important;
  }

  .coupang-ad-label{
    margin-bottom:5px!important;
    padding:3px 6px!important;
    font-size:9px!important;
  }

  .coupang-ad-copy strong{
    display:-webkit-box!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    font-size:14px!important;
    line-height:1.35!important;
  }

  .coupang-ad-copy p{
    display:-webkit-box!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:1!important;
    margin:4px 0 0!important;
    font-size:11px!important;
    line-height:1.35!important;
  }

  .coupang-ad-cta{
    margin-top:7px!important;
    padding:6px 9px!important;
    border-radius:8px!important;
    font-size:11px!important;
  }

  .coupang-ad-disclosure{
    padding:6px 9px!important;
    font-size:8px!important;
    line-height:1.35!important;
  }

  .coupang-slot-placeholder{
    min-height:104px!important;
    font-size:34px!important;
  }

  /* 게임 상단 광고와 홈 광고 주변 간격도 모바일에서 압축 */
  .game-global-top-ad{
    padding-top:16px!important;
  }

  #episodeMiddleAdSection{
    padding-top:10px!important;
  }
}

@media(max-width:390px){
  .coupang-ad-card{
    grid-template-columns:96px minmax(0,1fr)!important;
    min-height:106px!important;
  }

  .coupang-ad-media{
    height:106px!important;
    min-height:106px!important;
    padding:6px!important;
  }

  .coupang-ad-media img,
  .coupang-ad-media img[data-small-source="1"],
  .coupang-ad-media img[data-large-source="1"]{
    max-height:94px!important;
  }

  .coupang-ad-copy{
    padding:9px 10px!important;
  }

  .coupang-ad-copy strong{
    font-size:13px!important;
  }

  .coupang-ad-copy p{
    display:none!important;
  }

  .coupang-ad-cta{
    margin-top:6px!important;
    padding:5px 8px!important;
    font-size:10px!important;
  }
}


/* =========================================================
   v3.22 GAME AD POSITION
   게임 전용 광고는 질문 선택란 바로 아래에 표시
   ========================================================= */
.game-ad-below-choices{
  margin-top:18px;
}

.game-ad-below-choices:empty{
  display:none;
}

.game-ad-below-choices .game-specific-ad{
  margin:0;
}

@media(max-width:620px){
  .game-ad-below-choices{
    margin-top:14px;
  }
}


/* =========================================================
   v3.23 MOBILE PRODUCT CAROUSEL: 3 CARDS VISIBLE
   모바일 가로 추천상품 영역에서 한 화면에 3개 표시
   ========================================================= */
@media(max-width:620px){
  .product-scroller{
    gap:8px!important;
    padding:3px 0 10px!important;
    scroll-padding-inline:0!important;
  }

  .product-scroller .product-card{
    flex:0 0 calc((100% - 16px) / 3)!important;
    width:calc((100% - 16px) / 3)!important;
    min-width:0!important;
    border-radius:12px!important;
    scroll-snap-align:start!important;
  }

  .product-scroller .product-img{
    font-size:28px!important;
  }

  .product-scroller .product-info{
    padding:8px!important;
    gap:5px!important;
  }

  .product-scroller .product-info .badge{
    max-width:100%!important;
    margin-bottom:2px!important;
    padding:4px 6px!important;
    font-size:9px!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
  }

  .product-scroller .product-info h4{
    display:-webkit-box!important;
    min-height:2.7em!important;
    margin:0!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    font-size:11px!important;
    line-height:1.35!important;
    word-break:keep-all!important;
  }

  .product-scroller .product-info p{
    display:none!important;
  }

  .product-scroller .product-info .btn{
    width:100%!important;
    min-height:30px!important;
    margin-top:4px!important;
    padding:6px 4px!important;
    border-radius:8px!important;
    font-size:9px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }

  .product-scroller .product-card-copy-link{
    gap:4px!important;
  }

  .product-scroll-controls{
    margin-bottom:7px!important;
  }

  .product-scroll-controls button{
    width:34px!important;
    height:34px!important;
    border-radius:10px!important;
    font-size:15px!important;
  }
}

@media(max-width:390px){
  .product-scroller{
    gap:6px!important;
  }

  .product-scroller .product-card{
    flex-basis:calc((100% - 12px) / 3)!important;
    width:calc((100% - 12px) / 3)!important;
  }

  .product-scroller .product-info{
    padding:6px!important;
  }

  .product-scroller .product-info h4{
    font-size:10px!important;
  }

  .product-scroller .product-info .btn{
    min-height:28px!important;
    padding:5px 2px!important;
    font-size:8px!important;
  }
}


/* =========================================================
   v3.24 MOBILE PRODUCT COPY BALANCE
   3개 카드 유지 + 긴 상품명은 줄이고 추천 한줄은 보여줌
   ========================================================= */
@media(max-width:620px){

  /* 상품명: 길어도 2줄까지만 */
  .product-row .product-card .product-info h4,
  .product-scroller .product-card .product-info h4,
  .season-mixed-row .product-card .product-info h4{
    display:-webkit-box!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    line-clamp:2!important;
    min-height:2.55em!important;
    max-height:2.55em!important;
    margin-bottom:4px!important;
    font-size:12px!important;
    line-height:1.28!important;
  }

  /* 추천 문구: 모바일에서도 핵심 문장 1줄 노출 */
  .product-row .product-card .product-info p,
  .product-scroller .product-card .product-info p,
  .season-mixed-row .product-card .product-info p{
    display:-webkit-box!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:1!important;
    line-clamp:1!important;
    min-height:1.35em!important;
    max-height:1.35em!important;
    margin:2px 0 7px!important;
    color:var(--muted)!important;
    font-size:10px!important;
    line-height:1.35!important;
    white-space:normal!important;
  }

  /* 카테고리도 한 줄 */
  .product-row .product-card .badge,
  .product-scroller .product-card .badge,
  .season-mixed-row .product-card .badge{
    display:block!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    max-width:100%!important;
  }

  /* 3개 카드 높이가 들쭉날쭉하지 않게 */
  .product-row .product-card .product-info,
  .product-scroller .product-card .product-info,
  .season-mixed-row .product-card .product-info{
    display:flex!important;
    flex-direction:column!important;
    min-height:116px!important;
  }

  .product-row .product-card .product-info .btn,
  .product-scroller .product-card .product-info .btn,
  .season-mixed-row .product-card .product-info .btn{
    margin-top:auto!important;
  }
}

@media(max-width:390px){
  .product-row .product-card .product-info h4,
  .product-scroller .product-card .product-info h4,
  .season-mixed-row .product-card .product-info h4{
    font-size:11px!important;
  }

  .product-row .product-card .product-info p,
  .product-scroller .product-card .product-info p,
  .season-mixed-row .product-card .product-info p{
    font-size:9px!important;
  }
}


/* =========================================================
   v3.25 PRODUCTS PAGE MOBILE TWO-COLUMN GRID
   상품 전용 페이지: 모바일에서 2개씩 세로로 내려가는 구조
   홈/영상/게임 추천상품 가로영역에는 영향 없음
   ========================================================= */
@media(max-width:760px){
  .catalog-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    overflow:visible!important;
  }

  .catalog-grid .product-card{
    width:100%!important;
    min-width:0!important;
    height:100%!important;
    display:flex!important;
    flex-direction:column!important;
  }

  /* 기존 모바일 82vw 이미지 규칙을 상품 전용 페이지에서 무효화 */
  .catalog-grid .product-img{
    width:100%!important;
    min-height:0!important;
    aspect-ratio:1/1!important;
  }

  .catalog-grid .product-img img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
  }

  .catalog-grid .product-info{
    display:flex!important;
    flex:1!important;
    flex-direction:column!important;
    padding:10px!important;
    min-height:148px!important;
  }

  .catalog-grid .product-info .badge{
    display:block!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:9px!important;
  }

  .catalog-grid .product-info h4{
    display:-webkit-box!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    line-clamp:2!important;
    min-height:2.7em!important;
    max-height:2.7em!important;
    margin:7px 0 4px!important;
    font-size:12px!important;
    line-height:1.35!important;
  }

  .catalog-grid .product-info p{
    display:-webkit-box!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:1!important;
    line-clamp:1!important;
    min-height:1.35em!important;
    max-height:1.35em!important;
    margin:2px 0 8px!important;
    font-size:10px!important;
    line-height:1.35!important;
    color:var(--muted)!important;
  }

  .catalog-grid .product-info .btn{
    width:100%!important;
    min-height:36px!important;
    margin-top:auto!important;
    padding:7px 6px!important;
    font-size:10px!important;
    white-space:nowrap!important;
  }

  .catalog-pagination{
    width:100%!important;
  }
}

/* 기존 max-width:480px의 1열 규칙보다 뒤에서 다시 2열로 고정 */
@media(max-width:480px){
  .catalog-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }

  .catalog-grid .product-info{
    padding:8px!important;
    min-height:138px!important;
  }

  .catalog-grid .product-info h4{
    font-size:11px!important;
  }

  .catalog-grid .product-info p{
    font-size:9px!important;
  }

  .catalog-grid .product-info .btn{
    min-height:34px!important;
    font-size:9px!important;
  }
}


/* =========================================================
   v3.26 RESULT DISTRIBUTION FIRST
   결과유형을 질문별 선택 통계보다 먼저 표시 + 유형별 인원/비율
   ========================================================= */
.result-types-first-section{
  margin-top:0!important;
  padding-top:0!important;
  border-top:0!important;
}

.result-type-stat-head{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex:0 0 auto;
  white-space:nowrap;
}

.result-type-stat-head strong{
  font-size:14px;
  color:var(--text);
}

.result-type-stat-head > span:not(.result-type-open-arrow){
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:46px;
  padding:5px 8px;
  border-radius:999px;
  background:rgba(127,127,127,.11);
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}

.result-type-stat-bar{
  margin:12px 0 13px!important;
}

.result-type-stat-bar > span{
  background:#66717f!important;
}

.result-type-no-data{
  margin:0 0 13px!important;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(127,127,127,.04);
}

html[data-theme="dark"] .result-type-stat-head > span:not(.result-type-open-arrow){
  background:#242b33;
  color:#cfd5dc;
}

html[data-theme="dark"] .result-type-stat-bar > span{
  background:#aeb8c5!important;
}

@media(max-width:620px){
  .result-type-stat-head{
    gap:4px;
  }
  .result-type-stat-head strong{
    font-size:12px;
  }
  .result-type-stat-head > span:not(.result-type-open-arrow){
    min-width:40px;
    padding:4px 6px;
    font-size:10px;
  }
}


/* =========================================================
   v3.27 SIDE COUPANG AD FIX
   - Coupang side ads are clearly labeled as Coupang Partners
   - Dark mode text/background contrast fixed
   - AdSense label remains only for actual AdSense rail ads
   ========================================================= */
@media (min-width:1680px){
  .side-coupang-wrap{
    color:#181b20!important;
  }

  .side-coupang-label{
    background:#f1f2f4!important;
    color:#444b55!important;
    font-weight:850!important;
    letter-spacing:0!important;
  }

  .side-coupang-link{
    background:#fff!important;
    color:#181b20!important;
  }

  .side-coupang-copy{
    background:#fff!important;
    color:#181b20!important;
  }

  .side-coupang-copy strong{
    color:#181b20!important;
  }

  .side-coupang-copy span{
    color:#5f6670!important;
  }

  .side-coupang-copy b{
    display:inline-flex!important;
    align-items:center!important;
    align-self:flex-start!important;
    padding:7px 9px!important;
    border-radius:8px!important;
    background:#20242a!important;
    color:#fff!important;
    font-weight:900!important;
  }

  .side-coupang-disclosure{
    background:#f7f8f9!important;
    color:#686f79!important;
    border-top-color:#e3e5e8!important;
  }

  html[data-theme="dark"] .side-coupang-wrap{
    background:#14171c!important;
    color:#eef1f4!important;
    border-color:#343a44!important;
    box-shadow:0 10px 30px rgba(0,0,0,.28)!important;
  }

  html[data-theme="dark"] .side-coupang-label{
    background:#20262d!important;
    color:#d7dce2!important;
    border-bottom:1px solid #343a44!important;
  }

  html[data-theme="dark"] .side-coupang-link,
  html[data-theme="dark"] .side-coupang-copy{
    background:#14171c!important;
    color:#eef1f4!important;
  }

  html[data-theme="dark"] .side-coupang-img{
    background:#2a2f36!important;
    filter:brightness(.82) saturate(.94)!important;
  }

  html[data-theme="dark"] .side-coupang-copy strong{
    color:#f1f3f5!important;
  }

  html[data-theme="dark"] .side-coupang-copy span{
    color:#b0b7c0!important;
  }

  html[data-theme="dark"] .side-coupang-copy b{
    background:#252c35!important;
    color:#fff!important;
    border:1px solid #46515e!important;
  }

  html[data-theme="dark"] .side-coupang-disclosure{
    background:#101318!important;
    color:#9aa3ae!important;
    border-top-color:#303741!important;
  }
}


/* =========================================================
   v3.28 FOOTER-ONLY COUPANG NOTICE
   개별 쿠팡 광고의 반복 고지는 숨기고 사이트 최하단 공통 고지만 유지
   ========================================================= */
.coupang-ad-label,
.coupang-ad-disclosure,
.side-coupang-label,
.side-coupang-disclosure,
.entry-popup-ad-label,
.entry-popup-disclosure{
  display:none!important;
}
