:root {
	--yellow: #F6D202;
	--ink: #23262e;
	--blue: #333E74;
	--orange: #ce5c00;
	--card: #ffffff;
	--line: rgba(0,0,0,.18);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	padding: 16px;
	background: var(--yellow);
	color: var(--ink);
	font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	text-align: center;
}

a { color: var(--blue); }

.card {
	max-width: 760px;
	margin: 0 auto;
	padding: 10px 20px 24px;
}

/* Header */
.head { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.logo img { max-width: 100%; height: auto; display: block; }

.languages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.languages a { display: inline-block; line-height: 0; border-radius: 4px; padding: 2px; transition: transform .12s; }
.languages a:hover, .languages a:focus-visible { transform: scale(1.12); }
.languages a.active { outline: 2px solid var(--blue); }
.languages img { width: 30px; height: 22px; border: 1px solid #999; border-radius: 3px; object-fit: cover; display: block; }

h1 {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 26px 0 -14px;
}

/* Form */
.find { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px auto 8px; max-width: 520px; }
.name {
	flex: 1 1 260px;
	min-width: 0;
	font-size: 1.25rem;
	padding: 10px 14px;
	border: 2px solid var(--blue);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
}
.name:focus { outline: 3px solid rgba(51, 62, 116, .25); }
.show {
	flex: 0 0 auto;
	font-size: 1.25rem;
	font-weight: 700;
	padding: 10px 22px;
	border: 0;
	border-radius: 10px;
	background: var(--blue);
	color: #fff;
	cursor: pointer;
}
.show:hover { background: #26305c; }

/* Result */
.result-title { font-size: 1.5rem; color: var(--orange); margin: 26px 0 14px; }
.result { margin-top: 0; }
.result-main {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 18px 32px;
}
.pokemon-img {
	width: 172px;
	height: 172px;
	object-fit: contain;
}

.stats { border-collapse: collapse; font-size: .95rem; text-align: left; }
.stats td { padding: 4px 8px; border-bottom: 1px dotted rgba(0,0,0,.35); vertical-align: middle; }
.stats td:first-child { text-align: right; color: #444; }
.stats .stars { color: var(--orange); letter-spacing: 2px; font-size: 1.05rem; white-space: nowrap; }
.stats .stars .off { color: rgba(0,0,0,.18); }
.stats .num { text-align: right; font-variant-numeric: tabular-nums; }
.stats .total td { border-bottom: 0; font-weight: 700; }

/* Share buttons */
.share { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 0 0 18px; }
.sb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #fff;
	font: inherit;
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
	transition: transform .12s, box-shadow .12s;
}
.sb:hover, .sb:focus-visible { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0, 0, 0, .22); }
.sb svg { width: 22px; height: 22px; fill: currentColor; flex: 0 0 auto; }
.sb-fb { background: #1877f2; }
.sb-x { background: #000; }
.sb-tg { background: #2aabee; }
.sb-wa { background: #25d366; }
.sb-copy, .sb-native { background: #fff; color: var(--blue); }
.sb-copy svg, .sb-native svg { width: 20px; height: 20px; fill: none; }
.sb-copy.done { background: #e8f8ec; color: #1b7a33; }

/* Text blocks */
.description, .about { text-align: left; margin-top: 22px; }
.description h2, .about h2 { font-size: 1.1rem; color: var(--orange); margin: 18px 0 6px; }
.description p, .about p { margin: 8px 0; }
.description ul, .description ol, .about ul, .about ol { padding-left: 22px; }

/* Footer */
.foot { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; font-size: .8rem; color: #444; }
.btc { margin: 0 0 8px; font-weight: 600; word-break: break-all; }
.btc code { font-size: .8rem; font-weight: 400; background: rgba(255,255,255,.6); padding: 2px 6px; border-radius: 4px; }
.copy { margin: 0; font-size: .75rem; }

@media (max-width: 480px) {
	body { padding: 8px; }
	.card { padding: 6px 4px 18px; }
	.name, .show { font-size: 1.1rem; }
	.show { flex: 1 1 100%; }
}
