@charset "utf-8";
/* =====================================================================
   index.css  —  인덱스(메인) 전용 레이아웃 · 풀 다크 / 부분 다크레드
   ---------------------------------------------------------------------
   · 톤 참고: N콘텐츠 매거진 메인의 다크 시네마틱 편성
     (대괄호 안 대주제 / 중앙 정렬 섹션 디바이더 / 밴드 단위 구성)
   · 페이지 전체를 다크로 통일하고, 일부 밴드만 다크레드로 눌러 리듬을 준다.
   · 원본은 여백이 큰 구성 → 기관의 '공백 최소화' 요구에 맞춰 밴드 안은
     기사 수별 무결 그리드(마지막 줄 빈 칸 0)로 채운다.
   · 카드 마크업은 update_index.py 산출물 그대로. .ix-n{개수} 는 main.js 부여.
   ===================================================================== */

:root {
	/* 워드마크 전용 — 실사용 환경에 Futura 가 있으면 그것을, 없으면 Jost(Futura 계열 오픈폰트) */
	--m-display: 'Futura', 'Futura PT', 'Futura Std', 'Jost', 'Century Gothic', 'Avenir Next', sans-serif;
	--m-bg: #0d0a12;
	--m-bg-2: #131019;
	--m-bg-deep: #08060c;
	--m-text: #ffffff;
	--m-text-2: rgba(255, 255, 255, 0.62);
	--m-text-3: rgba(255, 255, 255, 0.4);
	--m-red: #d43f3f;
	--m-red-soft: #ff8f8f;
	--m-line: rgba(255, 255, 255, 0.09);
	--m-line-2: rgba(255, 255, 255, 0.16);
}

body.page-index { background: var(--m-bg); color: var(--m-text); }
body.page-index main { padding-top: 70px; }
body.page-index .slider_controls { display: none !important; }

/* =====================================================================
   1. 히어로 — 다크 시네마틱
   ===================================================================== */
.ixm-hero {
	position: relative;
	margin-top: calc(-1 * var(--ix-headerh, 70px));
	padding: calc(var(--ix-headerh, 70px) + 3.2rem) 0 2.6rem;
	min-height: min(74vh, 780px);
	display: flex;
	align-items: center;
	background: #0a0810;
	overflow: hidden;
	text-align: center;
}
.ixm-hero::before {
	content: '';
	position: absolute;
	inset: -10%;
	background: repeating-linear-gradient(122deg,
		rgba(255, 255, 255, 0.026) 0 2px,
		rgba(255, 255, 255, 0) 2px 66px);
	pointer-events: none;
}
.ixm-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(52% 46% at 50% 36%, rgba(212, 63, 63, 0.26), transparent 100%),
		radial-gradient(96% 74% at 50% 52%, transparent 28%, rgba(0, 0, 0, 0.6) 100%);
	pointer-events: none;
}
.ixm-hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 2rem; }

.ixm-lockup {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 1.15rem;
}
/* 영문 브랜드 라인 — 워드마크 아래 가로 배치 */
.ixm-lockup-eng {
	font-family: var(--m-display);
	font-size: clamp(0.74rem, 1vw, 1.12rem);
	font-weight: 600;
	letter-spacing: 0.34em;
	color: rgba(255, 255, 255, 0.55);
	text-transform: uppercase;
	line-height: 1;
	margin: 0;
	padding-left: 0.34em;
}
/* 워드마크 — GAME / TRENDS 2행. 다크 히어로이므로 흰색.
   밝은 배경으로 바꿀 경우 color 만 #1a1424 로 교체하면 됨. */
.ixm-mark {
	font-family: var(--m-display);
	font-size: clamp(2.5rem, 7.6vw, 8.2rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 0.86;
	margin: 0;
	color: #fff;
	text-transform: uppercase;
}
.ixm-hero-title {
	font-size: 1.16rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 0.3rem;
}
/* 호 라벨 + 호수 한 줄 — 호 라벨이 왼쪽 */
.ixm-hero-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	margin: 0 0 1.3rem;
}
.ixm-hero-issue {
	font-size: 0.86rem;
	color: rgba(255, 255, 255, 0.5);
	letter-spacing: 0.02em;
}
.ixm-hero-sep {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.28);
}
.ixm-hero-vol {
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--m-red-soft);
}

/* 대괄호 안 대주제 */
.ixm-bracket {
	display: inline-flex;
	align-items: stretch;
	gap: 1.5rem;
	margin: 0 auto 1.35rem;
	max-width: 100%;
}
.ixm-bracket-l,
.ixm-bracket-r { flex: 0 0 16px; position: relative; }
.ixm-bracket-l::before,
.ixm-bracket-r::before {
	content: '';
	position: absolute;
	inset: 0;
	border: 1.5px solid rgba(255, 255, 255, 0.6);
}
.ixm-bracket-l::before { border-right: 0; }
.ixm-bracket-r::before { border-left: 0; }
.ixm-theme { padding: 0.7rem 0.5rem; }
.ixm-theme-label {
	display: block;
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 0.45rem;
}
.ixm-theme-text {
	font-size: clamp(1.12rem, 2vw, 1.85rem);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.028em;
	white-space: nowrap;
	color: #fff;
	margin: 0;
	word-break: keep-all;
}

/* 부제(대주제)만 가볍게 떠오르고, 이후 아주 느리게 부유 */
@keyframes ixmThemeRise {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes ixmThemeFloat {
	from { transform: translateY(0); }
	to   { transform: translateY(-7px); }
}
.ixm-bracket {
	animation:
		ixmThemeRise 1s cubic-bezier(0.22, 0.85, 0.24, 1) both,
		ixmThemeFloat 5.5s ease-in-out 1.1s infinite alternate;
	will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
	.ixm-bracket { animation: none; }
}

/* 히어로 하단 섹션 링크 (목차) */
.ixm-hero-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	border-top: 1px solid var(--m-line);
	padding-top: 1.35rem;
	margin-top: 0.5rem;
}
.ixm-chip {
	padding: 0.44rem 0.95rem;
	border-radius: 100px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: rgba(255, 255, 255, 0.76);
	font-size: 0.82rem;
	font-weight: 600;
	transition: all 0.18s ease;
}
.ixm-chip:hover { background: #fff; color: #0d0a12; border-color: #fff; }
.ixm-hero-links {
	display: flex;
	justify-content: center;
	gap: 1.4rem;
	margin-top: 1.05rem;
}
.ixm-hero-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.55);
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	padding-bottom: 2px;
	transition: all 0.18s ease;
}
.ixm-hero-links a:hover { color: #fff; border-bottom-color: #fff; }

/* =====================================================================
   2. 본문 밴드 — 전부 다크, 일부만 다크레드
   ===================================================================== */
body.page-index .content { background: var(--m-bg); padding: 0; }
body.page-index .content::before,
body.page-index .content::after { display: none; }
.ixm-flow { display: block; }

.ixm-flow .container_item {
	position: relative;
	margin: 0;
	padding: 3.2rem 0 3.4rem;
	border: 0;
	border-top: 1px solid var(--m-line);
	overflow: hidden;
}
.ixm-band-a { background: var(--m-bg); }
.ixm-band-b { background: var(--m-bg-2); }
/* 다크레드 — 리듬용으로 2개 밴드만 */
.ixm-band-red {
	background:
		linear-gradient(118deg, rgba(212, 63, 63, 0.22) 0%, rgba(212, 63, 63, 0.06) 46%, rgba(0, 0, 0, 0) 100%),
		#160d13;
}
.ixm-band-deep { background: var(--m-bg-deep); }
.ixm-band-deep::after {
	content: 'TRENDS';
	position: absolute;
	right: 2%;
	bottom: -3.4rem;
	font-size: 13rem;
	font-weight: 900;
	letter-spacing: -0.05em;
	color: rgba(255, 255, 255, 0.038);
	pointer-events: none;
	line-height: 1;
}
.ixm-flow .container_item.ix-flash { box-shadow: inset 0 0 0 2px rgba(212, 63, 63, 0.55); }

/* --- 중앙 정렬 디바이더 헤더 --- */
.ixm-flow .section_header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 2rem;
	padding: 0;
	border: 0;
	text-align: center;
}
.ixm-flow .content_title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	width: 100%;
	margin: 0;
}
.ixm-flow .content_title::before,
.ixm-flow .content_title::after {
	content: '';
	flex: 1 1 auto;
	max-width: 220px;
	height: 1px;
	background: var(--m-line-2);
}
.ixm-flow .content_title_text {
	order: 1;
	font-size: 1.42rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
	white-space: nowrap;
}
.ixm-flow .content_title_kind {
	order: 2;
	margin: 0;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--m-red-soft);
	white-space: nowrap;
}

/* =====================================================================
   3. 카드
   ===================================================================== */
.ixm-flow .article {
	display: grid;
	gap: 2.1rem 1.5rem;
	margin: 0;
	grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

/* 기사 수별 무결 그리드 — 마지막 줄 빈 칸 0 */
.ixm-flow .ix-n1 .article { grid-template-columns: 1fr; }
.ixm-flow .ix-n2 .article { grid-template-columns: repeat(2, 1fr); }
.ixm-flow .ix-n3 .article { grid-template-columns: repeat(3, 1fr); }
.ixm-flow .ix-n4 .article { grid-template-columns: repeat(4, 1fr); }
.ixm-flow .ix-n5 .article { grid-template-columns: repeat(3, 1fr); }
.ixm-flow .ix-n5 .article_item:nth-child(4) { grid-column: span 2; }
.ixm-flow .ix-n6 .article { grid-template-columns: repeat(3, 1fr); }
.ixm-flow .ix-n7 .article { grid-template-columns: repeat(4, 1fr); }
.ixm-flow .ix-n7 .article_item:nth-child(5) { grid-column: span 2; }
.ixm-flow .ix-n8 .article { grid-template-columns: repeat(4, 1fr); }
.ixm-flow .ix-n9 .article { grid-template-columns: repeat(3, 1fr); }

.ixm-flow .article_item {
	margin: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	overflow: visible;
	transform: none !important;
	transition: none;
	min-width: 0;
}
.ixm-flow .article_item::before,
.ixm-flow .article_item::after { display: none; content: none; }
.ixm-flow .article_item:hover { background: none; box-shadow: none; }

.ixm-flow .article_item > a {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	height: 100%;
}
.ixm-flow .img-wrapper {
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: 14px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}
.ixm-flow .article_img { transition: transform 0.5s ease, filter 0.4s ease; filter: saturate(0.92) brightness(0.94); }
.ixm-flow .article_item > a:hover .article_img { transform: scale(1.05); filter: saturate(1.05) brightness(1.02); }

.ixm-flow .text-wrapper { padding: 0; display: flex; flex-direction: column; gap: 0.42rem; }
/* 태그 — 알약 대신 컬러 점 + 소캡 */
.ixm-flow .tag {
	display: inline-flex;
	align-items: center;
	gap: 0.34rem;
	width: fit-content;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: var(--m-red-soft);
}
.ixm-flow .tag::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
}
.ixm-flow .tag.issue  { color: #ff8f8f; }
.ixm-flow .tag.market { color: #e3c07a; }
.ixm-flow .tag.game   { color: #6fd1ae; }
.ixm-flow .tag.news   { color: #8fc0f0; }
.ixm-flow .tag.cal    { color: #a9bde8; }
.ixm-flow .tag.supp   { color: #c9c2d6; }

.ixm-flow .article_title {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -0.015em;
	color: #fff;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ixm-flow .article_item > a:hover .article_title { color: var(--m-red-soft); }
.ixm-flow .article_text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.85rem;
	line-height: 1.62;
	color: var(--m-text-2);
	margin: 0;
}

/* --- 기사 1편 섹션 = 좌우 분할 대형 편성 ---
   텍스트 윗단을 이미지 상단 라인에 맞추고(align-items: flex-start),
   그만큼 아래에 생기는 공백은 본문 노출량을 늘려 채운다. */
.ixm-flow .ix-n1 .article_item > a {
	flex-direction: row;
	align-items: stretch;
	gap: 2.4rem;
}
/* 이미지 높이를 텍스트 블록 높이에 맞춰 늘림(aspect-ratio 해제 + stretch)
   → 리드문 길이가 호마다 달라져도 아래쪽에 남는 공백이 생기지 않는다. */
.ixm-flow .ix-n1 .img-wrapper {
	flex: 0 0 48%;
	aspect-ratio: auto;
	align-self: stretch;
	min-height: 270px;
	max-height: 620px;
}
.ixm-flow .ix-n1 .text-wrapper {
	flex: 1 1 auto;
	justify-content: flex-start;
	gap: 0.55rem;
	padding-top: 0.1rem;
}
.ixm-flow .ix-n1 .article_title {
	font-size: clamp(1.32rem, 2vw, 1.78rem);
	line-height: 1.36;
	-webkit-line-clamp: 3;
}
/* 리드문은 한 단으로 위아래로 채운다. 가운데 문장 경계에서 한 번 끊어(main.js)
   단락 사이를 띄우고, 폰트·행간을 조금 키워 빽빽함을 덜었다. (다단·구분선 없음) */
.ixm-flow .ix-n1 .article_text {
	display: block;              /* JS 가 직접 잘라 말줄임을 붙이므로 클램프 불필요 */
	-webkit-line-clamp: none;
	font-size: 0.97rem;
	line-height: 1.88;
}
.ixm-flow .ix-n1 .tag { font-size: 0.76rem; }
.ixm-flow .ix-n2 .article_item:first-child .article_title { font-size: 1.14rem; }

/* =====================================================================
   4. 하단 배너 — 다크레드로 톤 통일
   ===================================================================== */
body.page-index .banner { background: var(--m-bg); padding: 2.6rem 0 3rem; }
body.page-index .coupon_banner {
	background: linear-gradient(120deg, #2b1015 0%, #3d1418 46%, #1a0d12 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 18px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
	margin: 0;
}
body.page-index .coupon_banner:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 52px rgba(0, 0, 0, 0.55);
}
body.page-index .coupon_badge { background: var(--m-red); }
body.page-index .gift_card {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
/* 반투명 카드 위에서 금액이 묻히지 않게 — 흰 글씨 + 브랜드는 연한 레드 */
body.page-index .card_price {
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
body.page-index .card_brand { color: #ffb3b3; }
body.page-index .coupon_btn { background: #fff; color: #1a0d12; }
body.page-index .coupon_btn:hover { background: var(--m-red); color: #fff; }

/* =====================================================================
   5. 반응형
   ===================================================================== */
/* 세로가 짧은 화면 — 히어로를 더 조여 '이슈 포커스'가 첫 화면에 걸치게 */
@media (max-height: 820px) {
	.ixm-hero {
		padding: calc(var(--ix-headerh, 70px) + 1.9rem) 0 1.7rem;
		min-height: auto;
	}
	.ixm-mark { font-size: clamp(2.2rem, 6.6vw, 6.8rem); }
	.ixm-lockup { gap: 0.55rem; margin-bottom: 0.8rem; }
	.ixm-bracket { margin-bottom: 0.95rem; gap: 1.1rem; }
	.ixm-hero-title { font-size: 1rem; margin-bottom: 0.2rem; }
	.ixm-hero-meta { margin-bottom: 0.95rem; }
	.ixm-theme { padding: 0.5rem 0.4rem; }
	.ixm-theme-text { font-size: clamp(1rem, 1.6vw, 1.4rem); }
	.ixm-hero-nav { padding-top: 1rem; margin-top: 0.35rem; }
	.ixm-hero-links { margin-top: 0.8rem; }
}

@media (max-width: 1180px) {
	.ixm-theme-text { white-space: normal; }
	.ixm-flow .ix-n4 .article { grid-template-columns: repeat(2, 1fr); }
	.ixm-flow .ix-n7 .article,
	.ixm-flow .ix-n8 .article { grid-template-columns: repeat(3, 1fr); }
	.ixm-flow .ix-n7 .article_item:nth-child(5) { grid-column: auto; }
	.ixm-band-deep::after { font-size: 9rem; }
}
@media (max-width: 900px) {
	.ixm-hero { padding: calc(var(--ix-headerh, 70px) + 2.6rem) 0 2.4rem; min-height: auto; }
	.ixm-flow .container_item { padding: 2.4rem 0 2.6rem; }
	.ixm-flow .article { gap: 1.6rem 1.1rem; }
	.ixm-flow .ix-n3 .article,
	.ixm-flow .ix-n5 .article,
	.ixm-flow .ix-n6 .article,
	.ixm-flow .ix-n7 .article,
	.ixm-flow .ix-n8 .article,
	.ixm-flow .ix-n9 .article { grid-template-columns: repeat(2, 1fr); }
	.ixm-flow .ix-n5 .article_item:nth-child(4) { grid-column: auto; }
	.ixm-flow .ix-n1 .article_item > a { gap: 1.4rem; }
	.ixm-flow .ix-n1 .img-wrapper { flex-basis: 44%; }
	.ixm-flow .ix-n1 .article_text { font-size: 0.94rem; }
}
@media (max-width: 640px) {
	.ixm-lockup { gap: 0.7rem; }
	.ixm-lockup-eng { font-size: 0.6rem; letter-spacing: 0.26em; }
	.ixm-theme-text { font-size: 1.15rem; white-space: normal; }
	.ixm-mark { font-size: clamp(2.6rem, 13vw, 4.2rem); }
	.ixm-lockup-eng { font-size: 0.68rem; letter-spacing: 0.24em; padding-left: 0.24em; }
	.ixm-lockup { gap: 0.7rem; margin-bottom: 1.4rem; }
	.ixm-bracket { gap: 0.8rem; }
	.ixm-bracket-l, .ixm-bracket-r { flex-basis: 10px; }
	.ixm-flow .article { grid-template-columns: 1fr !important; }
	.ixm-flow .article_item:nth-child(n) { grid-column: auto !important; }
	.ixm-flow .ix-n1 .article_item > a { flex-direction: column; gap: 0.85rem; }
	.ixm-flow .ix-n1 .img-wrapper {
		flex-basis: auto;
		width: 100%;
		aspect-ratio: 16 / 10;
		align-self: auto;
		min-height: 0;
		max-height: none;
	}
	.ixm-flow .ix-n1 .article_text {
		display: -webkit-box;
		-webkit-line-clamp: 6;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.ixm-band-deep::after { font-size: 6rem; bottom: -1.6rem; }
	.ixm-flow .content_title { flex-wrap: wrap; }
	.ixm-flow .content_title::before,
	.ixm-flow .content_title::after { max-width: 40px; }
}
