.i2w-wordle {
	--i2w-primary: #ff2d8d;
	--i2w-bg: #0d0d14;
	--i2w-secondary: #1b0b2d;
	--i2w-accent: #00e0d0;
	--i2w-green: #22c55e;
	--i2w-red: #ef4444;
	--i2w-yellow: #facc15;
	--i2w-panel: #151521;
	--i2w-border: rgba(255, 255, 255, 0.12);
	background: var(--i2w-bg);
	border: 1px solid rgba(255, 45, 141, 0.28);
	border-radius: 8px;
	color: #fff;
	font-family: inherit;
	margin: 24px 0;
	padding: 20px;
}

.i2w-wordle__header {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 20px;
}

.i2w-wordle h2 {
	color: #fff;
	font-size: 28px;
	line-height: 1.15;
	margin: 0 0 6px;
}

.i2w-wordle p {
	color: rgba(255, 255, 255, 0.72);
	margin: 0;
}

.i2w-wordle__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.i2w-wordle__meta span {
	background: var(--i2w-secondary);
	border: 1px solid var(--i2w-border);
	border-radius: 999px;
	color: var(--i2w-accent);
	font-size: 13px;
	font-weight: 700;
	padding: 6px 10px;
}

.i2w-wordle__guess {
	margin-bottom: 14px;
}

.i2w-wordle__guess label {
	color: rgba(255, 255, 255, 0.78);
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 6px;
}

.i2w-wordle__input-row {
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(0, 1fr) minmax(124px, auto);
}

.i2w-wordle input {
	background: #10101a;
	border: 1px solid var(--i2w-border);
	border-radius: 8px;
	color: #fff;
	min-height: 44px;
	padding: 0 12px;
	width: 100%;
}

.i2w-wordle button {
	align-items: center;
	background: var(--i2w-primary);
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 16px;
	font-weight: 800;
	justify-content: center;
	line-height: 1;
	min-height: 44px;
	padding: 0 22px;
	text-align: center;
	white-space: nowrap;
	width: 100%;
}

.i2w-wordle__submit {
	min-width: 124px;
}

.i2w-wordle button:disabled {
	cursor: wait;
	opacity: 0.65;
}

.i2w-wordle__message {
	border: 1px solid var(--i2w-border);
	border-radius: 8px;
	margin: 14px 0;
	padding: 10px 12px;
}

.i2w-wordle__message[data-type="success"] {
	background: rgba(0, 224, 208, 0.12);
	border-color: rgba(0, 224, 208, 0.42);
}

.i2w-wordle__message[data-type="error"] {
	background: rgba(255, 45, 141, 0.12);
	border-color: rgba(255, 45, 141, 0.42);
}

.i2w-wordle__message[data-type="info"] {
	background: rgba(255, 255, 255, 0.06);
}

.i2w-wordle__table-wrap {
	overflow-x: auto;
}

.i2w-wordle__table {
	border-collapse: separate;
	border-spacing: 6px;
	min-width: 760px;
	width: 100%;
}

.i2w-wordle__table th {
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	text-align: center;
	text-transform: uppercase;
}

.i2w-wordle .i2w-cell {
	background: #2b2b35;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	color: #fff;
	font-weight: 800;
	height: 68px;
	min-width: 96px;
	padding: 8px;
	text-align: center;
	vertical-align: middle;
}

.i2w-wordle .i2w-card-name {
	font-size: 13px;
	min-width: 190px;
	padding: 8px;
	text-align: left;
}

.i2w-wordle .i2w-cell--match {
	background: var(--i2w-green);
	color: #06140b;
}

.i2w-wordle .i2w-cell--hint {
	background: var(--i2w-yellow);
	color: #181102;
}

.i2w-wordle .i2w-cell--miss {
	background: var(--i2w-red);
	color: #fff;
}

.i2w-cell__value,
.i2w-cell__feedback {
	display: block;
	line-height: 1.15;
}

.i2w-cell__value {
	font-size: 14px;
}

.i2w-cell__feedback {
	font-size: 11px;
	font-weight: 900;
	margin-top: 5px;
	text-transform: uppercase;
}

.i2w-ink-swatches {
	display: inline-flex;
	gap: 4px;
	margin-right: 6px;
	vertical-align: -2px;
}

.i2w-ink-swatch {
	border: 2px solid rgba(255, 255, 255, 0.72);
	border-radius: 999px;
	display: inline-block;
	height: 14px;
	width: 14px;
}

.i2w-ink-swatch--amber {
	background: #facc15;
}

.i2w-ink-swatch--amethyst {
	background: #8b5cf6;
}

.i2w-ink-swatch--emerald {
	background: #22c55e;
}

.i2w-ink-swatch--ruby {
	background: #ef4444;
}

.i2w-ink-swatch--sapphire {
	background: #3b82f6;
}

.i2w-ink-swatch--steel {
	background: #9ca3af;
}

@media (max-width: 640px) {
	.i2w-wordle {
		padding: 14px;
	}

	.i2w-wordle__header,
	.i2w-wordle__input-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.i2w-wordle__header {
		display: grid;
	}

	.i2w-wordle button {
		width: 100%;
	}
}
