/* vnEsports tools — uses the theme's colour tokens. */

.vt-page-meta { margin: -6px 0 18px; font-size: 13px; line-height: 20px; color: var(--color-text-secondary); }
.vt-tested-note { color: #4ade80; }

/* ---------- Generator ---------- */
/* The generator box stands out from the other blocks: warm glow at the top, red-tinted border. */
.vt-gen {
	margin: 0 0 28px; padding: 16px;
	background: radial-gradient(130% 60% at 50% 0%, rgba(239, 68, 68, 0.15), transparent 72%), var(--color-white);
	border: 1px solid rgba(239, 68, 68, 0.4); border-radius: 12px;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.06), 0 10px 28px rgba(0, 0, 0, 0.35);
}
.vt-label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; color: var(--color-text-dark); }
.vt-inputrow { position: relative; }
.entry-content .vt-input {
	width: 100%; height: 52px; padding: 0 48px 0 16px;
	font-size: 18px; color: var(--color-text-dark);
	background: var(--color-bg); border: 2px solid var(--color-primary); border-radius: 8px;
	outline: none; box-shadow: none;
}
.entry-content .vt-input:focus { border-color: var(--color-primary-dark); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.entry-content .vt-clear {
	position: absolute; top: 8px; right: 8px; width: 36px; height: 36px;
	font-size: 22px; line-height: 1; color: var(--color-text-secondary);
	background: transparent; border: 0; border-radius: 50%; cursor: pointer;
}
.entry-content .vt-clear:hover { color: var(--color-text-dark); background: var(--color-pill); }
/* Kí tự trái / Kí tự cách / Kí tự phải: three equal dropdowns in one row, also on phones. */
.vt-pickers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.vt-pick { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vt-pick-label { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--color-text-secondary); text-align: center; white-space: nowrap; }
.entry-content .vt-pick select {
	width: 100%; height: 46px; padding: 0 32px 0 14px;
	font-size: 18px; color: var(--color-text-dark); text-overflow: ellipsis; cursor: pointer;
	background: var(--color-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%239ba1ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
	border: var(--border-medium); border-radius: 8px; -webkit-appearance: none; appearance: none; color-scheme: dark;
}
.entry-content .vt-pick select:hover { border-color: var(--color-text-secondary); }
.entry-content .vt-pick select:focus { outline: none; border-color: var(--color-primary-dark); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.vt-pick option { color: var(--color-text-dark); background: var(--color-bg); }
.vt-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; margin: 12px 0 0; font-size: 14px; color: var(--color-text-secondary); }
.vt-options label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.vt-options input { width: 16px; height: 16px; accent-color: var(--color-primary); }
.entry-content .vt-random { height: 34px; padding: 0 14px; font-size: 14px; font-weight: 700; color: var(--color-text-dark); background: var(--color-pill); border: 0; border-radius: 17px; cursor: pointer; }
.entry-content .vt-random:hover { color: #fff; background: var(--color-primary); }
.vt-tabs { display: flex; gap: 6px; margin: 14px 0 6px; overflow-x: auto; scrollbar-width: none; }
.vt-tabs::-webkit-scrollbar { display: none; }
.entry-content .vt-tab {
	flex-shrink: 0; padding: 6px 14px; font-size: 14px; font-weight: 700; line-height: 20px;
	color: var(--color-text); background: var(--color-pill); border: 0; border-radius: 18px; cursor: pointer;
}
.entry-content .vt-tab.is-active, .entry-content .vt-tab:hover { color: #fff; background: var(--color-primary); }
.entry-content .vt-hint { margin: 6px 0 10px; font-size: 13px; line-height: 19px; color: var(--color-text-secondary); }
.entry-content .vt-results { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.entry-content .vt-results li { margin: 0; padding: 0; }
.entry-content .vt-results li::before { display: none; }
.entry-content .vt-result {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	width: 100%; min-height: 52px; padding: 8px 12px;
	text-align: left; color: var(--color-text-dark);
	background: var(--color-bg); border: var(--border-light); border-radius: 8px; cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
}
.entry-content .vt-result:hover { border-color: var(--color-primary); }
.entry-content .vt-result.is-copied { background: var(--color-primary-soft); border-color: var(--color-primary); }
.vt-result-text { min-width: 0; font-size: 19px; line-height: 28px; overflow-wrap: anywhere; }
.vt-result-meta { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; gap: 2px; }
.vt-result-label { font-size: 11px; line-height: 14px; color: var(--color-text-secondary); white-space: nowrap; }
.vt-len { font-size: 12px; line-height: 16px; font-weight: 700; color: #4ade80; font-variant-numeric: tabular-nums; }
.vt-len.is-over { color: #fbbf24; }
.entry-content .vt-results li.is-folded { display: none; }
.entry-content .vt-more {
	display: block; width: 100%; margin: 10px 0 0; padding: 12px;
	font-size: 15px; font-weight: 700; color: var(--color-text-dark);
	background: var(--color-pill); border: 0; border-radius: 8px; cursor: pointer;
}
.entry-content .vt-more:hover { color: #fff; background: var(--color-primary); }
.entry-content .vt-more[hidden] { display: none; }
.vt-ad-slot { margin-top: 14px; }
.vt-ad-slot .vt-ad { min-height: 100px; }

/* ---------- Copy chips ---------- */
.vt-grid, .vt-names { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.entry-content .vt-chip {
	position: relative;
	display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	min-width: 48px; min-height: 48px; padding: 6px 10px;
	color: var(--color-text-dark); background: var(--color-white);
	border: var(--border-light); border-radius: 8px; cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
}
.entry-content .vt-chip:hover { border-color: var(--color-primary); }
.entry-content .vt-chip.is-copied { background: var(--color-primary-soft); border-color: var(--color-primary); }
.vt-chip-text { font-size: 20px; line-height: 26px; white-space: nowrap; }
.vt-chip-label { font-size: 11px; line-height: 14px; color: var(--color-text-secondary); white-space: nowrap; }
.vt-chip .vt-len { font-size: 11px; line-height: 14px; }
.vt-chip.is-blank .vt-chip-text { min-width: 36px; color: var(--color-text-secondary); border: 1px dashed var(--color-border-medium); border-radius: 4px; }
.vt-blank-mark { font-size: 16px; }
.vt-chip.is-tested::after {
	content: "✔"; position: absolute; top: -6px; right: -6px;
	width: 16px; height: 16px; font-size: 10px; line-height: 16px; text-align: center;
	color: #0f1116; background: #4ade80; border-radius: 50%;
}
.vt-names .vt-chip { flex-direction: row; gap: 8px; }
.vt-names .vt-chip-text { font-size: 17px; }
.vt-names--lines { flex-direction: column; align-items: stretch; }
.vt-names--lines .vt-chip { justify-content: flex-start; width: 100%; text-align: left; }
.vt-names--lines .vt-chip-text { font-size: 16px; white-space: normal; overflow-wrap: anywhere; }
.vt-pair { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 100%; } /* A long pair wraps instead of widening the page on 320px phones. */
.vt-pair-sep { color: var(--color-primary); }

/* ---------- Most copied ---------- */
.entry-content .vt-top-note { margin: 0 0 10px; font-size: 13px; color: var(--color-text-secondary); }
.entry-content .vt-top-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: vt-top; }
.entry-content .vt-top-list li { margin: 0; padding: 0; counter-increment: vt-top; }
.entry-content .vt-top-list li::before { display: none; }

/* ---------- Big collection ---------- */
.vt-kho-total { font-size: 14px; color: var(--color-text-secondary); }
.vt-kho { margin: 0 0 12px; background: var(--color-white); border: var(--border-light); border-radius: 8px; }
/* The collection holds ~2,000 chips: let the browser skip it until it nears the screen (it sits low on the page). */
.vt-kho { content-visibility: auto; contain-intrinsic-size: auto 480px; }
.entry-content .vt-kho-title { margin: 0; padding: 12px 14px 10px; font-size: 16px; line-height: 22px; color: var(--color-text-dark); }
.vt-kho-count { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--color-text-secondary); }
.vt-kho .vt-grid { margin: 0; padding: 0 12px 12px; gap: 6px; }
.vt-kho .vt-chip { min-width: 42px; min-height: 42px; padding: 4px; }
.vt-kho .vt-chip-text { font-size: 19px; }

/* ---------- Pros' names ---------- */
.vt-pros { overflow-x: auto; margin: 0 0 18px; }
.vt-pros table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vt-pros th, .vt-pros td { padding: 8px 10px; text-align: left; border-bottom: var(--border-light); }
.vt-pros th { color: var(--color-text-secondary); font-weight: 700; }
.vt-pros .vt-chip { flex-direction: row; min-height: 40px; }
.vt-pros .vt-chip-text { font-size: 16px; }

/* Multi-line text art (e.g. a heart drawn with ♥): keep the line breaks and alignment. */
.vt-grid--hinh .vt-chip-text { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; line-height: 18px; white-space: pre; text-align: left; }
.vt-grid--hinh .vt-chip { padding: 10px 14px; }

/* "Tên … hay": random name ideas, laid out like the generator results. */
.entry-content .vt-ideas-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.entry-content .vt-ideas-list li { margin: 0; }
.vt-ideas-hint { font-size: 13px; color: var(--color-text-secondary); }
@media (min-width: 640px) { .entry-content .vt-ideas-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .entry-content .vt-ideas-list { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- Kí tự khoảng trống ---------- */
.vt-presets { margin-top: 0; margin-bottom: 14px; }
.vt-blank-preview { margin: 14px 0 8px; font-size: 18px; line-height: 26px; color: var(--color-text-dark); overflow-wrap: anywhere; }
.vt-blank-preview mark, .vt-invisible-mark { color: var(--color-primary); background: var(--color-primary-soft); border-radius: 3px; }
.vt-blank-notes { margin: 10px 0 0; padding-left: 18px; font-size: 13px; line-height: 19px; color: var(--color-text-secondary); }
.vt-blank-notes:empty { display: none; }
.vt-blank-notes li + li { margin-top: 4px; }
.vt-pickers--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.vt-pickers--blank { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vt-pickers--blank .vt-pick:first-child { grid-column: 1 / -1; } /* The character list needs the full width for its names. */
.vt-pickers--blank .vt-pick-label, .vt-pickers--2 .vt-pick-label { text-align: left; }
.vt-invisible { margin: 0 0 20px; }
.vt-invisible .vt-result { margin-top: 10px; }
.entry-content .vt-inspect-input { height: auto; min-height: 76px; padding: 12px 14px; line-height: 26px; resize: vertical; }
.vt-inspect-summary { margin: 10px 0 0; font-size: 14px; color: var(--color-text-secondary); }
.vt-inspect-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.vt-inspect-list li { display: inline-flex; flex-direction: column; align-items: center; min-width: 58px; margin: 0; padding: 6px 6px 5px; font-size: 11px; line-height: 14px; color: var(--color-text-secondary); text-align: center; background: var(--color-bg); border: var(--border-light); border-radius: 8px; }
.vt-inspect-list li.is-blank { color: var(--color-text-dark); background: var(--color-primary-soft); border-color: var(--color-primary); }
.vt-inspect-list li.is-warn { border-color: #f59e0b; }
.vt-inspect-glyph { font-size: 20px; line-height: 26px; color: var(--color-text-dark); }
.vt-inspect-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vt-inspect-actions[hidden] { display: none; }
/* Blank chips carry a long label (code + name): lay them out as an even grid that wraps the label. */
.vt-grid[data-tool="ki-tu-khoang-trong"]:not(.vt-grid--ghep) { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.vt-grid[data-tool="ki-tu-khoang-trong"] .vt-chip-label { white-space: normal; text-align: center; }
.vt-blank-table td { vertical-align: middle; }
.vt-blank-table .vt-chip { min-width: 52px; }
.vt-width { display: inline-flex; align-items: center; font-size: 20px; line-height: 26px; color: var(--color-text-dark); }
.vt-width-gap { min-width: 1px; white-space: pre; background: var(--color-primary-soft); outline: 1px dashed var(--color-primary); }
.vt-muted { font-size: 12px; line-height: 17px; color: var(--color-text-secondary); }

/* ---------- Style cost table ---------- */
.vt-costs { overflow-x: auto; margin: 0 0 18px; }
.vt-costs table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vt-costs th, .vt-costs td { padding: 7px 10px; text-align: left; border-bottom: var(--border-light); vertical-align: middle; }
.vt-costs th { color: var(--color-text-secondary); font-weight: 700; white-space: nowrap; }
.vt-costs .vt-chip { flex-direction: row; min-height: 40px; }
.vt-costs .vt-chip-text { font-size: 17px; }
.vt-cost { display: inline-block; min-width: 28px; padding: 2px 8px; font-weight: 700; text-align: center; color: #0f1116; background: #4ade80; border-radius: 10px; }
.vt-cost.is-warn { background: #fbbf24; }

/* ---------- Hub cards + promo ---------- */
.vt-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
@media (max-width: 560px) { .vt-cards { grid-template-columns: 1fr; } }
.entry-content a.vt-card {
	display: flex; align-items: center; gap: 14px; padding: 14px 16px;
	color: var(--color-text-dark); text-decoration: none;
	background: var(--color-white); border: var(--border-light); border-radius: 8px;
	transition: border-color 0.15s;
}
.entry-content a.vt-card:hover { border-color: var(--color-primary); text-decoration: none; }
.vt-card-badge {
	display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px;
	font-size: 24px; color: #fff; background: var(--color-primary); border-radius: 10px;
}
.vt-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vt-card-title { font-size: 16px; font-weight: 700; line-height: 22px; }
.vt-card-desc { font-size: 13px; line-height: 19px; color: var(--color-text-secondary); }
.entry-content 
/* ---------- Toast ---------- */
.vt-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 1000;
	max-width: calc(100% - 32px); padding: 10px 18px;
	font-size: 15px; line-height: 21px; text-align: center; color: #fff;
	background: rgba(20, 22, 28, 0.96); border: 1px solid var(--color-primary); border-radius: 22px;
	opacity: 0; pointer-events: none; transform: translate(-50%, 16px);
	transition: opacity 0.2s, transform 0.2s;
	overflow-wrap: anywhere;
}
.vt-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 640px) {
	.entry-content .vt-results { grid-template-columns: 1fr 1fr; }
	.vt-gen { padding: 20px; }
}
@media (min-width: 980px) {
	.entry-content .vt-results { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 480px) {
	.vt-pickers { gap: 8px; }
	.vt-pick-label { font-size: 12px; }
	.entry-content .vt-pick select { height: 44px; padding: 0 24px 0 10px; font-size: 17px; background-position: right 6px center; background-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.vt-toast, .entry-content .vt-result, .entry-content .vt-chip { transition: none; }
}
