/**
 * HappyPaws Home — mockup layout
 */

.home .hp-site__main,
.front-page .hp-site__main {
	padding-top: var(--hp-space-3);
}

.hp-home-section {
	margin-bottom: var(--hp-space-6);
}

.hp-home-section__title {
	margin: 0;
	font-size: var(--hp-font-size-xl);
	font-weight: var(--hp-font-weight-extrabold);
	color: var(--hp-color-text);
}

.hp-home-panel {
	padding: var(--hp-space-5);
	background: var(--hp-color-surface);
	border: 1px solid var(--hp-color-border);
	border-radius: var(--hp-radius-2xl);
	box-shadow: var(--hp-shadow-card);
}

.hp-home-panel__title {
	margin: 0 0 var(--hp-space-4);
	font-size: var(--hp-font-size-lg);
	font-weight: var(--hp-font-weight-extrabold);
}

/* ------------------------------------------------------------------ Live */
.hp-live-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--hp-space-3);
	margin-bottom: var(--hp-space-3);
}

.hp-live-section__title {
	margin: 0;
}

.hp-live-section__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hp-space-2);
}

.hp-live-filter__select {
	min-width: 5.5rem;
}

.hp-sort__select {
	padding: var(--hp-space-2) var(--hp-space-8) var(--hp-space-2) var(--hp-space-4);
	font-family: inherit;
	font-size: var(--hp-font-size-sm);
	color: var(--hp-color-text);
	background: var(--hp-color-bg-elevated);
	border: 1px solid var(--hp-color-border);
	border-radius: var(--hp-radius-full);
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238A7B82' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

.hp-live-section {
	width: 100%;
	min-width: 0;
}

.hp-live-carousel-wrap {
	--hp-live-card-width: clamp(13.75rem, 58vw, 16.25rem);
	position: relative;
	width: 100%;
	min-width: 0;
	padding-inline: 0;
}

.hp-live-carousel {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--hp-space-4);
	width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-bottom: var(--hp-space-2);
	cursor: grab;
	touch-action: pan-x;
}

.hp-live-carousel::-webkit-scrollbar {
	display: none;
}

.hp-live-carousel.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
	user-select: none;
}

.hp-live-carousel__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--hp-color-text);
	background: var(--hp-color-surface);
	border: 1px solid var(--hp-color-border);
	border-radius: var(--hp-radius-full);
	box-shadow: var(--hp-shadow-md);
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.hp-live-carousel__nav:hover:not(:disabled) {
	box-shadow: var(--hp-shadow-lg);
}

.hp-live-carousel__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.hp-live-carousel__nav--prev {
	left: var(--hp-space-2);
}

.hp-live-carousel__nav--next {
	right: var(--hp-space-2);
}

.hp-live-card {
	flex: 0 0 var(--hp-live-card-width);
	width: var(--hp-live-card-width);
	min-width: var(--hp-live-card-width);
	max-width: var(--hp-live-card-width);
	scroll-snap-align: start;
	flex-shrink: 0;
	overflow: hidden;
	background: var(--hp-color-surface);
	border: 1px solid var(--hp-color-border);
	border-radius: var(--hp-radius-xl);
	box-shadow: var(--hp-shadow-card);
}

.hp-live-card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--hp-cream-200);
}

.hp-live-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hp-live-card__viewers {
	position: absolute;
	right: var(--hp-space-2);
	bottom: var(--hp-space-2);
	z-index: 2;
	padding: 0.15rem var(--hp-space-2);
	font-size: 0.625rem;
	font-weight: var(--hp-font-weight-semibold);
	line-height: 1.2;
	color: #fff;
	white-space: nowrap;
	background: rgba(74, 63, 71, 0.65);
	border-radius: var(--hp-radius-full);
	backdrop-filter: blur(4px);
}

.hp-live-card__body {
	padding: var(--hp-space-3);
}

.hp-live-card__name {
	margin: 0 0 var(--hp-space-1);
	font-size: var(--hp-font-size-sm);
	font-weight: var(--hp-font-weight-bold);
}

.hp-live-card__desc {
	margin: 0 0 var(--hp-space-3);
	font-size: 0.7rem;
	color: var(--hp-color-text-muted);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hp-live-card__timer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--hp-space-2);
	padding: var(--hp-space-2);
	background: var(--hp-pink-50);
	border-radius: var(--hp-radius-md);
}

.hp-live-card__timer-label {
	font-size: 0.65rem;
	font-weight: var(--hp-font-weight-semibold);
	color: var(--hp-color-accent);
}

.hp-live-card__timer-value {
	font-size: var(--hp-font-size-sm);
	font-weight: var(--hp-font-weight-bold);
	font-variant-numeric: tabular-nums;
	color: #e85d75;
}

/* ------------------------------------------------------------------ Home flow */
.hp-home-flow {
	display: flex;
	flex-direction: column;
	gap: var(--hp-space-5);
}

/* ------------------------------------------------------------------ Mid 2-col */
.hp-home-mid {
	display: grid;
	gap: var(--hp-space-4);
	align-items: start;
	height: auto;
	min-height: 0;
}

.hp-home-mid > .hp-home-panel {
	display: flex;
	flex-direction: column;
	height: auto;
	min-height: 0;
}

/* Featured LIVE (left) */
.hp-featured-live {
	display: flex;
	flex-direction: column;
	gap: var(--hp-space-2);
	align-self: start;
	height: auto;
}

.hp-featured-live__video {
	padding: 0;
	overflow: hidden;
	background: var(--hp-color-surface);
	border: 1px solid var(--hp-color-border);
	border-radius: var(--hp-radius-xl);
	box-shadow: var(--hp-shadow-card);
}

.hp-featured-live__video,
.hp-featured-live__actions {
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
}

.hp-featured-live__player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--hp-cream-200);
	border-radius: 0;
	isolation: isolate;
}

.hp-featured-live__thumb {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.hp-featured-live__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.hp-featured-live__player iframe,
.hp-featured-live__player video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	object-position: center center;
}

.hp-feed-row {
	display: grid;
	grid-template-columns: 4fr 6fr;
	gap: var(--hp-space-2);
	align-items: stretch;
	margin-bottom: 0;
}

.hp-action-timer {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 4.5rem;
	padding: var(--hp-space-2) var(--hp-space-3);
	text-align: center;
	background: linear-gradient(145deg, var(--hp-yellow-50), var(--hp-cream-100));
	border: 1px solid var(--hp-color-border);
	border-radius: var(--hp-radius-xl);
	box-shadow: var(--hp-shadow-sm);
}

.hp-action-feed {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: var(--hp-space-1);
	min-height: 4.5rem;
	padding: var(--hp-space-1) var(--hp-space-3);
	font-family: inherit;
	color: #fff;
	text-align: center;
	background: linear-gradient(145deg, #ff9bb0, #ff5f7a);
	border: none;
	border-radius: var(--hp-radius-xl);
	box-shadow: var(--hp-shadow-md);
	cursor: pointer;
	transition:
		transform var(--hp-transition-fast),
		box-shadow var(--hp-transition-fast);
}

.hp-action-feed:hover {
	transform: translateY(-2px);
	box-shadow: var(--hp-shadow-lg);
}

.hp-action-feed__icon {
	font-size: 1.1rem;
	line-height: 1;
}

.hp-action-feed__title {
	font-size: var(--hp-font-size-sm);
	font-weight: var(--hp-font-weight-extrabold);
}

.hp-action-feed__sub {
	display: none;
}

.hp-action-timer__label {
	margin: 0 0 var(--hp-space-1);
	font-size: var(--hp-font-size-xs);
	font-weight: var(--hp-font-weight-semibold);
	color: var(--hp-color-text-muted);
}

.hp-action-timer__value {
	margin: 0;
	font-size: clamp(1.25rem, 3vw, 1.65rem);
	font-weight: var(--hp-font-weight-extrabold);
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
	color: #e85d75;
}

.hp-action-timer__last {
	margin: var(--hp-space-1) 0 0;
	font-size: var(--hp-font-size-xs);
	color: var(--hp-color-text-muted);
}

/* Ranking (right) */
.hp-home-ranking {
	display: flex;
	flex-direction: column;
	height: auto;
	align-self: start;
}

.hp-home-ranking__inner {
	display: flex;
	flex-direction: column;
}

.hp-home-ranking .hp-ranking-tabs {
	display: flex;
	gap: var(--hp-space-2);
	margin-bottom: var(--hp-space-3);
}

.hp-home-ranking .hp-ranking-tabs__btn {
	flex: 1;
	padding: var(--hp-space-2) var(--hp-space-3);
	font-family: inherit;
	font-size: var(--hp-font-size-sm);
	font-weight: var(--hp-font-weight-semibold);
	color: var(--hp-color-text-muted);
	background: var(--hp-color-bg-subtle);
	border: 1px solid var(--hp-color-border);
	border-radius: var(--hp-radius-lg);
	cursor: pointer;
}

.hp-home-ranking .hp-ranking-tabs__btn.is-active {
	color: var(--hp-color-text);
	background: var(--hp-color-highlight-soft);
	border-color: var(--hp-yellow-300);
}

.hp-home-ranking .hp-ranking-panel {
	display: none;
}

.hp-home-ranking .hp-ranking-panel.is-active {
	display: flex;
	flex-direction: column;
}

.hp-home-ranking__list {
	--hp-ranking-row-size: 2.875rem;
	--hp-ranking-visible-rows: 10;

	display: flex;
	flex-direction: column;
	gap: var(--hp-space-1);
	max-height: calc(
		(var(--hp-ranking-row-size) * var(--hp-ranking-visible-rows)) +
		(var(--hp-space-1) * (var(--hp-ranking-visible-rows) - 1))
	);
	margin: 0;
	padding: 0;
	padding-right: var(--hp-space-1);
	overflow-y: auto;
	list-style: none;
	scrollbar-gutter: stable;
	scrollbar-width: thin;
	scrollbar-color: var(--hp-pink-200) transparent;
}

.hp-home-ranking__list::-webkit-scrollbar {
	width: 6px;
}

.hp-home-ranking__list::-webkit-scrollbar-thumb {
	background: var(--hp-pink-200);
	border-radius: var(--hp-radius-full);
}

.hp-home-ranking__item {
	display: grid;
	flex-shrink: 0;
	grid-template-columns: 1.75rem 2rem 1fr auto;
	gap: var(--hp-space-2);
	align-items: center;
	min-height: var(--hp-ranking-row-size);
	padding: var(--hp-space-2) var(--hp-space-3);
	background: var(--hp-color-bg-subtle);
	border-radius: var(--hp-radius-md);
}

.hp-home-ranking__rank {
	font-size: var(--hp-font-size-sm);
	font-weight: var(--hp-font-weight-bold);
	text-align: center;
}

.hp-home-ranking__avatar {
	width: 2rem;
	height: 2rem;
	border-radius: var(--hp-radius-full);
	object-fit: cover;
}

.hp-home-ranking__name {
	font-size: var(--hp-font-size-xs);
	font-weight: var(--hp-font-weight-semibold);
}

.hp-home-ranking__score {
	font-size: var(--hp-font-size-xs);
	font-weight: var(--hp-font-weight-bold);
	color: var(--hp-color-accent);
}

.hp-home-ranking__more {
	flex-shrink: 0;
	width: 100%;
	min-height: 2.75rem;
	margin-top: var(--hp-space-3);
}

/* ------------------------------------------------------------------ Lower rows */
.hp-home-lower {
	display: flex;
	flex-direction: column;
	gap: var(--hp-space-5);
}

.hp-home-row {
	display: grid;
	gap: var(--hp-space-4);
}

.hp-home-row--top {
	grid-template-columns: 1fr;
	align-items: stretch;
}

.hp-home-row--top > .hp-board-section,
.hp-home-row--top > .hp-news-section {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.hp-home-row--gallery,
.hp-home-row--inquiry {
	grid-template-columns: 1fr;
}

/* Board */
.hp-board-section__head,
.hp-gallery-section__head,
.hp-news-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--hp-space-3);
	margin-bottom: var(--hp-space-4);
}

.hp-board-section__toolbar,
.hp-gallery-section__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--hp-space-2);
	margin-bottom: var(--hp-space-4);
}

.hp-board-section__toolbar .hp-board-tabs,
.hp-gallery-section__toolbar .hp-gallery-tabs {
	flex: 1;
	margin-bottom: 0;
}

.hp-board-section__toolbar .hp-board-tabs__btn,
.hp-board-section__toolbar > .hp-btn--sm,
.hp-gallery-section__toolbar .hp-gallery-tabs__btn,
.hp-gallery-section__toolbar > .hp-btn--sm {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 2rem;
	padding: 0 var(--hp-space-3);
	line-height: 1;
}

.hp-board-section__toolbar > .hp-btn--sm,
.hp-gallery-section__toolbar > .hp-btn--sm {
	padding-inline: var(--hp-space-4);
	border: 1px solid transparent;
}

.hp-board-section__head .hp-home-panel__title,
.hp-gallery-section__head .hp-home-panel__title,
.hp-news-section__head .hp-home-panel__title {
	margin-bottom: 0;
}

.hp-board-tabs,
.hp-gallery-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hp-space-2);
	margin-bottom: var(--hp-space-4);
}

.hp-board-tabs__btn,
.hp-gallery-tabs__btn {
	padding: var(--hp-space-2) var(--hp-space-3);
	font-family: inherit;
	font-size: var(--hp-font-size-xs);
	font-weight: var(--hp-font-weight-semibold);
	color: var(--hp-color-text-muted);
	background: var(--hp-color-bg-subtle);
	border: 1px solid transparent;
	border-radius: var(--hp-radius-full);
	cursor: pointer;
}

.hp-board-tabs__btn.is-active,
.hp-gallery-tabs__btn.is-active {
	color: var(--hp-color-accent);
	background: var(--hp-pink-50);
	border-color: var(--hp-pink-200);
}

.hp-board-section__list {
	display: flex;
	flex: 1;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp-board-section__item {
	display: grid;
	flex: 1;
	grid-template-columns: auto 1fr auto;
	gap: var(--hp-space-2) var(--hp-space-3);
	align-items: center;
	padding: var(--hp-space-3) 0;
	border-bottom: 1px solid var(--hp-color-border);
}

.hp-board-section__item:last-child {
	border-bottom: none;
}

.hp-board-section__tag {
	padding: 0.15rem 0.5rem;
	font-size: 0.65rem;
	font-weight: var(--hp-font-weight-bold);
	border-radius: var(--hp-radius-sm);
}

.hp-board-section__tag--notice {
	color: #fff;
	background: var(--hp-pink-500);
}

.hp-board-section__tag--free,
.hp-board-section__tag--daily,
.hp-board-section__tag--info {
	color: var(--hp-color-accent);
	background: var(--hp-pink-50);
}

.hp-board-section__title {
	min-width: 0;
	overflow: visible;
	text-overflow: unset;
	white-space: normal;
	overflow-wrap: anywhere;
	font-size: var(--hp-font-size-sm);
	font-weight: var(--hp-font-weight-semibold);
	color: var(--hp-color-text);
	text-decoration: none;
}

.hp-board-section__title:hover {
	color: var(--hp-color-accent);
}

.hp-board-section__views {
	font-size: var(--hp-font-size-xs);
	color: var(--hp-color-text-muted);
}

.hp-board-section__meta {
	grid-column: 1 / -1;
	font-size: var(--hp-font-size-xs);
	color: var(--hp-color-text-muted);
}

/* Gallery */
.hp-gallery-section__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--hp-space-2);
}

.hp-gallery-section__item {
	overflow: hidden;
	aspect-ratio: 1;
	border-radius: var(--hp-radius-lg);
	border: 1px solid var(--hp-color-border);
	transition:
		transform var(--hp-transition-fast),
		box-shadow var(--hp-transition-fast);
}

.hp-gallery-section__item:hover {
	transform: translateY(-2px);
	box-shadow: var(--hp-shadow-md);
}

.hp-gallery-section__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--hp-transition-base);
}

.hp-gallery-section__item:hover img {
	transform: scale(1.06);
}

/* News */
.hp-news-section {
	position: relative;
	overflow: hidden;
}

.hp-news-section__head {
	position: relative;
	z-index: 1;
}

.hp-news-section__watermark {
	position: absolute;
	right: -1rem;
	bottom: -1rem;
	font-size: 8rem;
	opacity: 0.06;
	pointer-events: none;
}

.hp-news-section__list {
	display: flex;
	flex: 1;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp-news-section__item {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
	gap: var(--hp-space-4);
	padding: var(--hp-space-3) 0;
	border-bottom: 1px solid var(--hp-color-border);
}

.hp-news-section__item:last-child {
	border-bottom: none;
}

.hp-news-section__title {
	flex: 1;
	font-size: var(--hp-font-size-sm);
	font-weight: var(--hp-font-weight-semibold);
	color: var(--hp-color-text);
	text-decoration: none;
}

.hp-news-section__title:hover {
	color: var(--hp-color-accent);
}

.hp-news-section__date {
	flex-shrink: 0;
	font-size: var(--hp-font-size-sm);
	font-weight: var(--hp-font-weight-semibold);
	color: var(--hp-color-text-muted);
}

/* Inquiry */
.hp-inquiry-section__grid {
	display: grid;
	flex: 1;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--hp-space-4);
	align-items: stretch;
}

.hp-inquiry-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--hp-space-3);
	height: 100%;
	min-height: 8.5rem;
	padding: var(--hp-space-5) var(--hp-space-4);
	text-align: center;
	text-decoration: none;
	background: var(--hp-color-bg-subtle);
	border: 1px solid var(--hp-color-border);
	border-radius: var(--hp-radius-xl);
	transition:
		background var(--hp-transition-fast),
		border-color var(--hp-transition-fast),
		transform var(--hp-transition-fast),
		box-shadow var(--hp-transition-fast);
}

.hp-inquiry-card:hover {
	background: linear-gradient(145deg, var(--hp-pink-50), var(--hp-yellow-50));
	border-color: var(--hp-pink-300);
	transform: translateY(-4px);
	box-shadow: var(--hp-shadow-md);
}

.hp-inquiry-card__icon {
	font-size: 2.75rem;
	line-height: 1;
	transition: transform var(--hp-transition-fast);
}

.hp-inquiry-card:hover .hp-inquiry-card__icon {
	transform: scale(1.1);
}

.hp-inquiry-card__title {
	font-size: var(--hp-font-size-base);
	font-weight: var(--hp-font-weight-bold);
	color: var(--hp-color-text);
}

.hp-inquiry-card__desc {
	font-size: var(--hp-font-size-sm);
	color: var(--hp-color-text-muted);
}

/* ------------------------------------------------------------------ Breakpoints */

@media (max-width: 767px) {
	.hp-home .hp-container {
		padding-inline: var(--hp-space-3);
	}

	.home .hp-site__main,
	.front-page .hp-site__main {
		padding-top: var(--hp-space-3);
		padding-bottom: var(--hp-space-6);
	}

	.hp-home-section {
		margin-bottom: var(--hp-space-3);
	}

	.hp-home-flow {
		gap: var(--hp-space-3);
	}

	.hp-home-mid,
	.hp-home-lower,
	.hp-home-row,
	.hp-featured-live {
		display: contents;
	}

	.hp-home-flow__item--featured-video {
		order: 1;
	}

	.hp-home-flow__item--featured-feed {
		order: 2;
	}

	.hp-home-flow__item--live {
		order: 3;
	}

	.hp-home-flow__item--gallery {
		order: 4;
	}

	.hp-home-flow__item--board {
		order: 5;
	}

	.hp-home-flow__item--news {
		order: 6;
	}

	.hp-home-flow__item--inquiry {
		order: 7;
	}

	.hp-home-flow__item--ranking {
		order: 8;
	}

	.hp-home-flow__item,
	.hp-home-panel,
	.hp-home-section {
		width: 100%;
		max-width: 100%;
	}

	/* Featured LIVE — video card, zero horizontal inset */
	.hp-featured-live__video {
		margin-inline: 0;
		padding-inline: 0;
	}

	.hp-featured-live__actions {
		padding: var(--hp-space-3);
		margin-top: var(--hp-space-2);
		background: var(--hp-color-surface);
		border: 1px solid var(--hp-color-border);
		border-radius: var(--hp-radius-xl);
		box-shadow: var(--hp-shadow-card);
	}

	.hp-feed-row {
		grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
		gap: var(--hp-space-2);
		margin-bottom: 0;
	}

	.hp-action-timer,
	.hp-action-feed {
		min-height: 2.75rem;
		padding: var(--hp-space-1) var(--hp-space-2);
		border-radius: var(--hp-radius-lg);
	}

	.hp-action-timer__label {
		margin-bottom: 0;
		font-size: 0.65rem;
	}

	.hp-action-timer__value {
		font-size: var(--hp-font-size-base);
	}

	.hp-action-timer__last {
		display: none;
	}

	.hp-action-feed__icon {
		font-size: 1rem;
	}

	.hp-action-feed__title {
		font-size: var(--hp-font-size-xs);
	}

	/* Live carousel — dense peek cards */
	.hp-live-section__head {
		flex-wrap: nowrap;
		gap: var(--hp-space-2);
		margin-bottom: var(--hp-space-2);
	}

	.hp-live-section__title {
		flex-shrink: 0;
		font-size: var(--hp-font-size-base);
		white-space: nowrap;
	}

	.hp-live-section__controls {
		flex: 1;
		flex-wrap: nowrap;
		justify-content: flex-end;
		min-width: 0;
		gap: var(--hp-space-1);
	}

	.hp-live-filter__select,
	.hp-live-section__controls .hp-sort__select {
		min-width: 0;
		max-width: 5.5rem;
		min-height: 2rem;
		padding: var(--hp-space-1) var(--hp-space-6) var(--hp-space-1) var(--hp-space-2);
		font-size: var(--hp-font-size-xs);
		line-height: 1.2;
		background-position: right 8px center;
		background-size: 10px 6px;
	}

	.hp-live-section__more {
		flex-shrink: 0;
		font-size: var(--hp-font-size-xs);
		white-space: nowrap;
	}

	.hp-live-carousel-wrap {
		--hp-live-card-width: clamp(7rem, 36vw, 9.5rem);
		padding-inline: 0;
	}

	.hp-live-carousel {
		gap: var(--hp-space-2);
		padding-bottom: var(--hp-space-1);
	}

	.hp-live-carousel__nav {
		display: none;
	}

	.hp-live-card__body {
		padding: var(--hp-space-2);
	}

	.hp-live-card__desc {
		display: none;
	}

	.hp-live-card__timer {
		padding: var(--hp-space-1) var(--hp-space-2);
	}

	.hp-live-card__timer-label {
		font-size: 0.6rem;
	}

	.hp-live-card__timer-value {
		font-size: var(--hp-font-size-xs);
	}

	/* Gallery — 3x3 */
	.hp-gallery-section__toolbar {
		justify-content: flex-end;
	}

	.hp-gallery-tabs {
		display: none;
	}

	.hp-gallery-section__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--hp-space-2);
	}

	.hp-gallery-section__item--extra {
		display: none;
	}

	.hp-inquiry-section__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hp-board-section__item {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.hp-home-ranking__inner,
	.hp-home-ranking .hp-ranking-panel.is-active,
	.hp-home-ranking__list {
		flex: none;
		min-height: auto;
	}

	.hp-home-ranking__list {
		--hp-ranking-visible-rows: 10;
		max-height: calc(
			(var(--hp-ranking-row-size) * var(--hp-ranking-visible-rows)) +
			(var(--hp-space-1) * (var(--hp-ranking-visible-rows) - 1))
		);
	}

	.hp-home-ranking__more {
		margin-top: var(--hp-space-3);
		padding-top: 0;
	}
}

@media (min-width: 768px) {
	.hp-home-mid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
		align-items: start;
		align-content: start;
		height: auto;
		margin-bottom: var(--hp-space-6);
	}

	.hp-home-mid > .hp-home-panel {
		height: auto;
	}

	.hp-featured-live {
		align-self: start;
		width: 100%;
		min-width: 0;
		height: auto;
	}

	.hp-home-mid > .hp-home-ranking.is-height-synced {
		align-self: start;
		overflow: hidden;
	}

	.hp-home-ranking.is-height-synced .hp-home-ranking__inner {
		flex: 1;
		min-height: 0;
	}

	.hp-home-ranking.is-height-synced .hp-ranking-panel.is-active {
		flex: 1;
		min-height: 0;
	}

	.hp-home-ranking.is-height-synced .hp-home-ranking__list {
		flex: 1;
		min-height: 0;
		max-height: none;
		overflow-y: auto;
	}

	.hp-home-ranking.is-height-synced .hp-home-ranking__more {
		margin-top: auto;
		padding-top: var(--hp-space-3);
	}

	.hp-home-flow__item--live {
		margin-top: 0;
		margin-bottom: var(--hp-space-6);
	}

	.hp-home-row--top {
		grid-template-columns: 1fr 1fr;
	}

	.hp-featured-live__actions {
		padding: 0;
		background: transparent;
		border: none;
		border-radius: 0;
		box-shadow: none;
	}

	.hp-action-timer,
	.hp-action-feed {
		min-height: 5rem;
	}

	.hp-action-feed__icon {
		font-size: 1.2rem;
	}

	.hp-action-feed__title {
		font-size: var(--hp-font-size-base);
	}

	.hp-gallery-section__grid {
		grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
		gap: var(--hp-space-3);
	}

	.hp-inquiry-section__grid {
		grid-template-columns: repeat(4, 1fr);
		gap: var(--hp-space-4);
	}

	.hp-inquiry-card {
		padding: var(--hp-space-6) var(--hp-space-5);
	}

	.hp-live-carousel {
		scroll-padding-inline: 3rem;
	}

	.hp-live-carousel-wrap {
		--hp-live-card-width: clamp(
			14rem,
			calc((100% - (var(--hp-space-4) * 4)) / 4.35),
			18rem
		);
	}
}

@media (min-width: 1024px) {
	.hp-live-carousel-wrap {
		--hp-live-card-width: clamp(
			16rem,
			calc((100% - (var(--hp-space-4) * 5)) / 5.35),
			20rem
		);
	}

	.hp-gallery-section__grid {
		grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
	}

	.hp-inquiry-card__icon {
		font-size: 3rem;
	}
}
