/* Magnum Indie Games - frontend styles (theme agnostic) */

.mig-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 18px;
	margin: 16px 0 28px;
}

.mig-card {
	position: relative;
	border: 1px solid #ddd;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.mig-rank {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	background: #e60012;
	color: #fff;
	font-weight: 700;
	border-radius: 50%;
	width: 34px;
	height: 34px;
	line-height: 34px;
	text-align: center;
	font-size: 16px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.mig-card-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	background: #f2f2f2;
	overflow: hidden;
}

.mig-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mig-noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #999;
	font-size: 13px;
	letter-spacing: .1em;
}

.mig-card-body {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.mig-card-title {
	font-size: 17px;
	margin: 0;
	line-height: 1.4;
}

.mig-card-title a {
	text-decoration: none;
	color: inherit;
}

.mig-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.mig-badge {
	display: inline-block;
	font-size: 12px;
	line-height: 1;
	padding: 4px 8px;
	border-radius: 999px;
	background: #eef1f4;
	color: #333;
}

.mig-badge-price {
	background: #fff3cd;
}

.mig-badge-embed {
	background: #d7f5e3;
}

.mig-card-creator {
	font-size: 13px;
	color: #666;
	margin: 0;
}

.mig-card-excerpt {
	font-size: 13.5px;
	color: #444;
	margin: 0;
	flex: 1;
}

.mig-card-actions {
	display: flex;
	gap: 8px;
	margin-top: 6px;
}

.mig-btn {
	display: inline-block;
	padding: 9px 16px;
	border-radius: 8px;
	border: 1px solid #bbb;
	background: #fff;
	color: #222;
	text-decoration: none;
	font-size: 14px;
	cursor: pointer;
	line-height: 1.2;
}

.mig-btn:hover {
	opacity: .88;
}

.mig-btn-primary {
	background: #e60012;
	border-color: #e60012;
	color: #fff;
	font-weight: 700;
}

.mig-btn-big {
	font-size: 18px;
	padding: 14px 28px;
}

.mig-play-cta {
	text-align: center;
	margin: 22px 0;
}

.mig-section-title {
	font-size: 21px;
	border-left: 5px solid #e60012;
	padding-left: 10px;
	margin: 30px 0 12px;
	line-height: 1.35;
}

/* Filter form */
.mig-filter {
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 14px;
	background: #fafafa;
	margin-bottom: 10px;
}

.mig-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 10px;
}

.mig-filter-row:last-child {
	margin-bottom: 0;
}

.mig-filter select,
.mig-filter input[type="search"] {
	padding: 8px;
	border: 1px solid #bbb;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
}

.mig-filter input[type="search"] {
	min-width: 220px;
	flex: 1;
}

.mig-pager {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin: 18px 0 30px;
}

.mig-pager-num {
	padding: 7px 12px;
	border: 1px solid #bbb;
	border-radius: 6px;
	text-decoration: none;
	color: #222;
	background: #fff;
}

.mig-pager-num.is-current {
	background: #e60012;
	border-color: #e60012;
	color: #fff;
	font-weight: 700;
}

/* Forms */
.mig-form .mig-field {
	margin-bottom: 16px;
}

.mig-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14.5px;
}

.mig-form input[type="text"],
.mig-form input[type="url"],
.mig-form textarea,
.mig-form select {
	width: 100%;
	padding: 9px;
	border: 1px solid #bbb;
	border-radius: 6px;
	font-size: 14.5px;
	box-sizing: border-box;
	background: #fff;
}

.mig-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-weight: 400;
}

.mig-check {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 400;
	font-size: 14px;
}

.mig-req {
	color: #e60012;
	font-size: 12px;
}

.mig-note {
	font-size: 13px;
	color: #666;
}

.mig-box {
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 18px;
	background: #fafafa;
}

.mig-notice {
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 14.5px;
}

.mig-notice-ok {
	background: #e7f7ec;
	border: 1px solid #7bc98f;
}

.mig-notice-err {
	background: #fdeaea;
	border: 1px solid #e58a8a;
}

/* Tables */
.mig-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
	margin: 12px 0 22px;
}

.mig-table th,
.mig-table td {
	border: 1px solid #ddd;
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
}

.mig-table th {
	background: #f4f4f4;
	white-space: nowrap;
}

.mig-info-table th {
	width: 170px;
}

/* Single */
.mig-single-thumb img {
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.mig-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 10px 0 16px;
}

.mig-player {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: 18px 0 6px;
	background: #000;
	border-radius: 10px;
	overflow: hidden;
}

.mig-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.mig-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.mig-gallery img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

.mig-creator-comment {
	background: #fffbe8;
	border: 1px solid #ecdfa0;
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 15px;
}

.mig-archive-pager {
	margin: 10px 0 30px;
	text-align: center;
}

@media (max-width: 640px) {
	.mig-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 12px;
	}

	.mig-info-table th {
		width: 110px;
	}
}

/* Lightbox */
.mig-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, .9);
	display: flex;
	align-items: center;
	justify-content: center;
}

.mig-lightbox[hidden] {
	display: none;
}

.mig-lb-img {
	max-width: 92vw;
	max-height: 88vh;
	object-fit: contain;
	border-radius: 6px;
}

.mig-lb-close,
.mig-lb-prev,
.mig-lb-next {
	position: absolute;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	border: 0;
	cursor: pointer;
	line-height: 1;
	border-radius: 8px;
}

.mig-lb-close {
	top: 14px;
	right: 16px;
	font-size: 30px;
	width: 46px;
	height: 46px;
}

.mig-lb-prev,
.mig-lb-next {
	top: 50%;
	transform: translateY(-50%);
	font-size: 38px;
	width: 50px;
	height: 64px;
}

.mig-lb-prev { left: 12px; }
.mig-lb-next { right: 12px; }

.mig-lb-close:hover,
.mig-lb-prev:hover,
.mig-lb-next:hover {
	background: rgba(255, 255, 255, .28);
}

.mig-lb-count {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 14px;
}

.mig-gallery-item {
	cursor: zoom-in;
}

/* Upload previews */
.mig-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.mig-preview img {
	width: 110px;
	height: 110px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #ddd;
}

.mig-current-images {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 6px;
}

.mig-current-images img {
	width: 110px;
	height: 110px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #ddd;
}

/* Term links under title (single) */
.mig-term-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 4px 0 12px;
	font-size: 14.5px;
}

.mig-term-links a {
	color: #c00;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mig-play-cta-bottom {
	margin-top: 28px;
}

/* Submission form sub label */
.mig-sublabel {
	display: block;
	font-weight: 400;
	font-size: 13.5px;
	margin: 10px 0 4px;
	color: #555;
}

/* Lightning h2 decoration reset + own style (plugin areas) */
.mig-single h2,
.mig-archive h2,
.mig-single-content h2 {
	border: none;
	border-top: none;
	border-bottom: none;
	border-left: 5px solid #e60012;
	background: none;
	background-color: transparent;
	box-shadow: none;
	padding: 0.18em 0 0.18em 0.55em;
	margin: 1.2em 0 0.7em;
	font-size: 21px;
	line-height: 1.4;
}

.mig-single h2::before,
.mig-single h2::after,
.mig-archive h2::before,
.mig-archive h2::after,
.mig-single-content h2::before,
.mig-single-content h2::after {
	content: none;
	display: none;
}

/* Footer credit (Powered by WordPress & Lightning Theme) を非表示にする */
.site-footer-copyright p:last-child {
	display: none;
}

/* ============================================================
   v1.4 redesign: minimal & stylish TOP, distinct sections
   ============================================================ */

/* h2 reset also covers section titles on fixed pages (TOP etc.) */
.mig-section-title {
	border: none;
	border-top: none;
	border-bottom: none;
	border-left: 5px solid #e60012;
	background: none;
	background-color: transparent;
	box-shadow: none;
	padding: 0.18em 0 0.18em 0.55em;
}

.mig-section-title::before,
.mig-section-title::after {
	content: none;
	display: none;
}

/* Section title variants */
.mig-title-rank {
	border-left: none;
	border-bottom: 2px solid #111;
	padding: 0 0 0.35em;
	letter-spacing: 0.06em;
}

.mig-title-new {
	letter-spacing: 0.04em;
}

/* Cards: flatter, minimal */
.mig-card {
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	box-shadow: none;
}

.mig-section-new .mig-card {
	border-top: 3px solid #111;
}

/* Header logo (text wordmark) */
.site-header-logo {
	font-size: 21px;
	font-weight: 800;
	letter-spacing: 0.05em;
}

.site-header-logo a {
	color: #111;
	text-decoration: none;
}

.site-header-logo a::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 9px;
	background: #e60012;
	border-radius: 2px;
	vertical-align: baseline;
}

/* Hero */
.mig-hero {
	text-align: center;
	padding: 58px 16px 44px;
	margin-bottom: 10px;
}

.mig-hero-eyebrow {
	margin: 0 0 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.42em;
	color: #e60012;
}

.mig-hero-title {
	margin: 0;
	font-size: clamp(30px, 5.2vw, 46px);
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.25;
	color: #111;
}

.mig-hero-tagline {
	margin: 16px auto 0;
	max-width: 560px;
	font-size: 15px;
	line-height: 1.9;
	color: #666;
}

.mig-hero-cta {
	margin-top: 28px;
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Ranking: big-number rows */
.mig-rank-rows {
	display: flex;
	flex-direction: column;
}

.mig-rank-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 4px;
	border-bottom: 1px solid #eee;
}

.mig-rank-no {
	flex: 0 0 58px;
	text-align: center;
	font-size: 38px;
	font-weight: 800;
	line-height: 1;
	color: #fff;
	-webkit-text-stroke: 1.5px #c9c9c9;
}

.mig-rank-1 .mig-rank-no { color: #e60012; -webkit-text-stroke: 0; }
.mig-rank-2 .mig-rank-no { color: #9a9a9a; -webkit-text-stroke: 0; }
.mig-rank-3 .mig-rank-no { color: #b0793f; -webkit-text-stroke: 0; }

.mig-rank-thumb {
	flex: 0 0 128px;
	display: block;
	aspect-ratio: 16 / 9;
	background: #f3f3f3;
	border-radius: 6px;
	overflow: hidden;
}

.mig-rank-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mig-rank-title {
	margin: 0 0 4px;
	font-size: 17px;
	border: none;
}

.mig-rank-title a {
	color: #111;
	text-decoration: none;
}

.mig-rank-meta {
	margin: 0;
	font-size: 12.5px;
	color: #888;
}

/* List results: horizontal rows */
.mig-rows {
	display: flex;
	flex-direction: column;
}

.mig-row {
	display: flex;
	gap: 18px;
	padding: 18px 2px;
	border-bottom: 1px solid #eee;
	align-items: flex-start;
}

.mig-row-thumb {
	flex: 0 0 200px;
	display: block;
	aspect-ratio: 16 / 9;
	background: #f3f3f3;
	border-radius: 6px;
	overflow: hidden;
}

.mig-row-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mig-row-body {
	flex: 1 1 auto;
	min-width: 0;
}

.mig-row-title {
	margin: 0 0 6px;
	font-size: 18px;
	border: none;
}

.mig-row-title a {
	color: #111;
	text-decoration: none;
}

.mig-row-meta {
	margin: 0 0 6px;
	font-size: 12.5px;
	color: #888;
}

.mig-row-excerpt {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.7;
	color: #555;
}

.mig-row-cta {
	flex: 0 0 auto;
	align-self: center;
}

.mig-filter {
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 14px;
}

@media (max-width: 640px) {
	.mig-rank-thumb { flex-basis: 96px; }
	.mig-rank-no { flex-basis: 44px; font-size: 30px; }
	.mig-row { flex-wrap: wrap; }
	.mig-row-thumb { flex-basis: 100%; }
	.mig-hero { padding: 40px 10px 32px; }
}

/* ============================================================
   v1.5: cards restored, bold section titles, list frame,
         plugin header/footer for game pages
   ============================================================ */

/* Restore original card look */
.mig-card {
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.mig-section-new .mig-card {
	border-top: 1px solid #e0e0e0;
}

/* Neutralize the v1.4 text-wordmark styling (logo is an image now) */
.site-header-logo {
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: normal;
}

.site-header-logo a::before {
	content: none;
	display: none;
}

/* Section titles: one bold design, three colors */
.mig-title-rank,
.mig-title-new,
.mig-title-list {
	border: none;
	border-left: 10px solid #e60012;
	background: linear-gradient(90deg, #fdecec, rgba(253, 236, 236, 0));
	box-shadow: none;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.3;
	color: #1a1a1a;
	padding: 12px 16px;
	margin: 38px 0 18px;
	border-radius: 0 6px 6px 0;
}

.mig-title-rank::before,
.mig-title-rank::after,
.mig-title-new::before,
.mig-title-new::after,
.mig-title-list::before,
.mig-title-list::after {
	content: none;
	display: none;
}

.mig-title-new {
	border-left-color: #1565d8;
	background: linear-gradient(90deg, #e9f2fd, rgba(233, 242, 253, 0));
}

.mig-title-list {
	border-left-color: #7b2fbe;
	background: linear-gradient(90deg, #f4ebfd, rgba(244, 235, 253, 0));
}

/* List frame: heading + filter + results in one box */
.mig-list-frame {
	border: 2px solid #e3e3e3;
	border-radius: 12px;
	background: #fff;
	padding: 8px 22px 24px;
	margin: 38px 0 12px;
}

.mig-list-frame .mig-title-list {
	margin-top: 14px;
}


@media (max-width: 640px) {
	.mig-list-frame { padding: 6px 14px 18px; }
	.mig-title-rank, .mig-title-new, .mig-title-list { font-size: 20px; }
}

/* Plugin header/footer for game pages (theme header is not printed there) */
.mig-site-header {
	background: #fff;
	border-bottom: 1px solid #e7e7e7;
}

.mig-site-header-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.mig-site-logo img {
	max-height: 44px;
	width: auto;
	display: block;
}

.mig-site-logo-text {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #111;
	text-decoration: none;
}

.mig-site-nav-list {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mig-site-nav-list a {
	color: #111;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.mig-site-nav-list a:hover {
	color: #e60012;
}

.mig-site-footer {
	background: #fff;
	border-top: 1px solid #e7e7e7;
	margin-top: 48px;
	padding: 18px 16px;
	text-align: center;
}

.mig-site-footer p {
	margin: 0;
	font-size: 12.5px;
	color: #777;
}

/* ============================================================
   v1.6: tile headings, square cards, NEW ribbon
   ============================================================ */

/* Square cards + square rank badge */
.mig-card {
	border-radius: 0;
	position: relative;
	overflow: hidden;
}

.mig-card-thumb,
.mig-card-thumb img {
	border-radius: 0;
}

.mig-rank {
	border-radius: 0;
}

/* Tile headings (one bordered box per character) */
.mig-title-tiles {
	border: none;
	background: none;
	background-color: transparent;
	box-shadow: none;
	padding: 0;
	margin: 38px 0 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	font-size: 20px;
	line-height: 1;
}

.mig-tile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.85em;
	height: 1.85em;
	padding: 0 0.16em;
	border: 1.5px solid #444;
	background: #fff;
	color: #111;
	font-weight: 700;
	box-sizing: border-box;
}

.mig-tile-first {
	color: #fff;
}

.mig-title-rank .mig-tile-first {
	background: #00a381;
	border-color: #00a381;
}

.mig-title-new .mig-tile-first {
	background: #f04e23;
	border-color: #f04e23;
}

.mig-title-list .mig-tile-first {
	background: #8b5a2b;
	border-color: #8b5a2b;
}

/* NEW corner ribbon (new games cards) */
.mig-new-ribbon {
	position: absolute;
	top: 0;
	left: 0;
	width: 84px;
	height: 84px;
	overflow: hidden;
	z-index: 3;
	pointer-events: none;
}

.mig-new-ribbon span {
	position: absolute;
	top: 17px;
	left: -27px;
	width: 106px;
	transform: rotate(-45deg);
	background: #f04e23;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-align: center;
	padding: 4px 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   v1.6.1: flush rank badge, triangle NEW, bigger tiles
   ============================================================ */

/* Rank badge: flush to the card's top-left corner */
.mig-rank {
	top: 0;
	left: 0;
	z-index: 3;
	padding: 5px 0;
	min-width: 30px;
	text-align: center;
}

/* NEW: triangle flush in the top-left corner, diagonal text on it */
.mig-new-ribbon {
	width: 78px;
	height: 78px;
	background: #f04e23;
	clip-path: polygon(0 0, 100% 0, 0 100%);
	box-shadow: none;
	overflow: visible;
}

.mig-new-ribbon span {
	top: 15px;
	left: -4px;
	width: 84px;
	background: transparent;
	box-shadow: none;
	padding: 0;
	font-size: 11px;
	letter-spacing: 0.14em;
}

/* Tiles: slightly larger text; first tile larger overall */
.mig-title-tiles {
	font-size: 23px;
}

.mig-tile-first {
	font-size: 28px;
}

/* ============================================================
   v1.6.1 adjustments
   ============================================================ */

/* Rank badge: flush to the card's top-left corner */
.mig-rank {
	top: 0;
	left: 0;
}

/* NEW: corner triangle (not a band) */
.mig-new-ribbon {
	width: 76px;
	height: 76px;
	background: linear-gradient(to bottom right, #f04e23 0%, #f04e23 50%, transparent 50.5%, transparent 100%);
}

.mig-new-ribbon span {
	top: 13px;
	left: -14px;
	width: 76px;
	transform: rotate(-45deg);
	background: none;
	box-shadow: none;
	padding: 0;
	font-size: 11px;
	letter-spacing: 0.14em;
}

/* Tile headings: slightly larger overall, first tile bigger */
.mig-title-tiles {
	font-size: 23px;
}

.mig-tile-first {
	font-size: 1.3em;
}

/* ============================================================
   v1.6.2 adjustments
   ============================================================ */

/* Tile headings: align tiles at the bottom line */
.mig-title-tiles {
	align-items: flex-end;
}

/* Ranking / New sections: 1% side padding on the card block */
.mig-section-rank,
.mig-section-new {
	padding-left: 1%;
	padding-right: 1%;
	box-sizing: border-box;
}

/* Gap between header and the ranking heading: margin cut to ~1/3 */
.mig-section-rank .mig-title-tiles {
	margin-top: 13px;
}

/* Rank badge: perfectly centered number */
.mig-rank {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 0;
}

/* ============================================================
   v1.7: auth pages, dashboard, modals
   ============================================================ */

.mig-auth-form {
	max-width: 480px;
}

.mig-dash-section {
	margin-bottom: 40px;
}

.mig-dash-title {
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 14px;
}

.mig-dash-list-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.mig-dash-list-head .mig-dash-title {
	margin: 0;
}

.mig-dash-games {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mig-dash-game {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 13px 4px;
	border-bottom: 1px solid #eee;
	flex-wrap: wrap;
}

.mig-dash-game-title {
	font-weight: 700;
	font-size: 15.5px;
}

.mig-dash-game-link {
	font-size: 13px;
}

.mig-dash-game-clicks {
	font-size: 12.5px;
	color: #888;
	margin-left: 10px;
}

.mig-dash-game-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.mig-inline-form {
	display: inline;
	margin: 0;
}

.mig-btn-danger {
	color: #c00;
	border-color: #e3b3b3;
}

.mig-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
}

.mig-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.mig-modal-panel {
	position: relative;
	background: #fff;
	max-width: 720px;
	max-height: 88vh;
	overflow-y: auto;
	margin: 5vh auto;
	padding: 22px 24px 26px;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.mig-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.mig-modal-head h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	border: none;
}

.mig-modal-close {
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 2px 8px;
}

/* ============================================================
   v1.8: stylish dashboard & forms
   ============================================================ */

/* Inputs: refined, slightly looser line height */
.mig-form input[type="text"],
.mig-form input[type="url"],
.mig-form input[type="email"],
.mig-form input[type="password"],
.mig-form textarea,
.mig-form select {
	line-height: 1.55;
	border: 1px solid #d8d8d8;
	background: #fff;
	padding: 9px 11px;
	font-size: 14.5px;
	color: #222;
}

.mig-form input[type="text"]:focus,
.mig-form input[type="url"]:focus,
.mig-form input[type="email"]:focus,
.mig-form input[type="password"]:focus,
.mig-form textarea:focus,
.mig-form select:focus {
	border-color: #111;
	outline: none;
	box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
}

/* Square bullet before field headings */
.mig-form .mig-field > label:not(.mig-check):not(.mig-sublabel)::before,
.mig-dash-title::before,
.mig-modal-head h3::before {
	content: "■";
	margin-right: 0.45em;
	font-size: 0.82em;
	vertical-align: baseline;
}

.mig-form .mig-field > label {
	letter-spacing: 0.03em;
}

/* Checkbox / radio labels in normal weight */
.mig-checks .mig-check,
.mig-form .mig-check {
	font-weight: 400;
}

/* Dependent fields: indented, one size smaller */
.mig-field-sub,
.mig-subfield {
	margin-left: 1.4em;
}

.mig-field-sub > label,
.mig-sublabel {
	font-size: 13px;
}

.mig-sublabel {
	font-weight: 400;
}

/* File inputs sit close to the element above, like other text rows */
.mig-form input[type="file"] {
	display: block;
	margin-top: 2px;
	padding: 0;
}

.mig-form .mig-field .mig-note {
	margin-top: 4px;
	margin-bottom: 4px;
}

.mig-field-sub input[type="text"],
.mig-field-sub input[type="url"],
.mig-subfield input[type="text"] {
	font-size: 13.5px;
	padding: 7px 9px;
}

.mig-subfield {
	margin-top: 12px;
}

.mig-note-small {
	font-size: 11.5px;
	color: #888;
}

/* Dashboard: card sections */
.mig-dash-section {
	background: #fff;
	border: 1px solid #e7e7e7;
	padding: 28px 30px;
	margin-bottom: 28px;
}

.mig-dash-title {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: 0.05em;
	padding-bottom: 12px;
	border-bottom: 2px solid #111;
	margin: 0 0 20px;
}

/* Profile form: two columns on wide screens */
@media (min-width: 760px) {
	.mig-profile-form {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 4px 24px;
	}

	.mig-profile-form .mig-field-wide,
	.mig-profile-form > p {
		grid-column: 1 / -1;
	}
}

.mig-profile-image-current img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border: 1px solid #e0e0e0;
	display: block;
	margin-bottom: 8px;
}

/* Game list rows */
.mig-dash-game {
	padding: 13px 8px;
	border-bottom: 1px solid #eee;
	transition: background 0.15s ease;
}

.mig-dash-game:hover {
	background: #fafafa;
}

.mig-dash-game-title {
	font-size: 15.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Modal polish */
.mig-modal-panel {
	border-radius: 0;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	padding: 28px 30px;
}

.mig-modal-head h3 {
	letter-spacing: 0.05em;
}

/* Sortable screenshot thumbs */
.mig-sort-item {
	position: relative;
	display: inline-block;
	margin: 0 8px 8px 0;
	cursor: grab;
	vertical-align: top;
}

.mig-shot-del {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 22px;
	height: 22px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 14px;
	line-height: 22px;
	text-align: center;
	cursor: pointer;
	z-index: 2;
}

.mig-shot-del:hover {
	background: #e60012;
}

/* Creator page */
.mig-creator-head {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	margin-bottom: 8px;
}

.mig-creator-head img {
	width: 140px;
	height: 140px;
	object-fit: cover;
	border: 1px solid #e0e0e0;
	flex-shrink: 0;
}

.mig-creator-bio {
	white-space: normal;
	line-height: 1.8;
}

.mig-card-creator a {
	color: inherit;
}

.mig-sort-item img {
	width: 110px;
	height: auto;
	display: block;
	border: 1px solid #e0e0e0;
	pointer-events: none;
}

.mig-sort-item.mig-dragging {
	opacity: 0.4;
}

.mig-current-images .mig-sort-item img {
	width: 110px;
}
