@charset "UTF-8";
/* STEAM.CSBET.RU — Tactical / CS 1.6 theme (dark default + light), responsive */

/* ============================================================= TOKENS */
:root {
	color-scheme: dark;

	/* dark (default / brand) */
	--bg:            #0E0F12;
	--bg-2:          #0a0b0e;
	--surface:       #16191F;
	--surface-2:     #1C2128;
	--surface-3:     #232a33;
	--border:        #2A2F38;
	--border-strong: #3a414d;
	--text:          #E6E8EB;
	--text-dim:      #9AA3AD;
	--text-faint:    #6B7280;
	--accent:        #FF7A1A;
	--accent-2:      #FFB055;
	--accent-contrast:#0E0F12;
	--online:        #4ADE80;
	--offline:       #F2545B;
	--link:          var(--accent-2);
	--shadow:        rgba(0,0,0,0.55);
	--glow:          rgba(255,122,26,0.30);
	--grid-line:     rgba(255,255,255,0.022);

	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
	--radius: 12px;
	--radius-sm: 8px;
	--card-h: 380px;
}

:root[data-theme="light"] {
	color-scheme: light;

	--bg:            #ECEAE4;
	--bg-2:          #e2dfd6;
	--surface:       #FBFAF7;
	--surface-2:     #F2F0EA;
	--surface-3:     #E7E4DC;
	--border:        #D7D2C7;
	--border-strong: #BDB8AB;
	--text:          #1A1D23;
	--text-dim:      #5B6168;
	--text-faint:    #8A8F98;
	--accent:        #DD6206;
	--accent-2:      #B84E00;
	--accent-contrast:#FFFFFF;
	--online:        #1F9D55;
	--offline:       #C2362F;
	--link:          var(--accent-2);
	--shadow:        rgba(80,70,50,0.16);
	--glow:          rgba(221,98,6,0.22);
	--grid-line:     rgba(0,0,0,0.030);
}

/* ============================================================= BASE */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--text);
	background-color: var(--bg);
	background-image:
		radial-gradient(1200px 600px at 50% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 100% 100%, 32px 32px, 32px 32px;
	background-attachment: fixed;
	min-height: 100vh;
	min-height: 100dvh;
	-webkit-font-smoothing: antialiased;
}

/* top tactical accent line */
body::before {
	content: "";
	position: fixed;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent-2) 50%, var(--accent) 80%, transparent);
	z-index: 200;
	pointer-events: none;
}

a:link, a:active, a:visited {
	color: var(--link);
	text-decoration: none;
	transition: color .15s ease;
}
a:hover {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

h1 {
	font-size: clamp(22px, 5vw, 28px);
	padding: 20px 0;
	text-align: center;
}

::selection { background: var(--accent); color: var(--accent-contrast); }

/* ============================================================= LAYOUT */
.wrapper {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 16px;
	position: relative;
}

/* ============================================================= HEADER */
.head {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	min-height: 50px;
	margin: 0 auto;
	padding: 10px 0 4px;
}

/* theme toggle */
.theme-toggle {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	color: var(--accent);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.theme-toggle:hover {
	border-color: var(--accent);
	transform: translateY(-1px);
	box-shadow: 0 0 0 3px var(--glow);
}
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; display: block; }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ic-sun  { display: none; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: block; }

/* ============================================================= CONTENT GRID */
.content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	gap: 18px;
	align-items: stretch;
	margin: 8px 0 4px;
}

.content form { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }

.content em { color: var(--accent-2); font-style: normal; font-family: var(--mono); font-size: .92em; }

.content ul { list-style: none; padding: 0; margin: 12px 0; }
.content ul li { position: relative; padding-left: 18px; margin: 4px 0; overflow-wrap: anywhere; }
.content ul li::before {
	content: "\25B8";
	position: absolute;
	left: 0;
	color: var(--accent);
	font-size: .85em;
	top: 1px;
}
.content ul.errors, .red { color: var(--offline); }
.content ul.errors li { font-size: 15px; line-height: 1.5; }
.content ul.errors li::before { content: "\2715"; color: var(--offline); }

/* ---- cards (fieldset) ---- */
.content .card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--surface) 100%, transparent), var(--surface-2)) ;
	padding: 16px 16px 18px;
	min-width: 0;
	height: var(--card-h);
	overflow: hidden;
	box-shadow: 0 10px 30px -18px var(--shadow);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.content .card:hover {
	border-color: var(--border-strong);
	box-shadow: 0 16px 40px -20px var(--shadow);
}
/* HUD corner brackets */
.content .card::before, .content .card::after {
	content: "";
	position: absolute;
	width: 14px; height: 14px;
	border: 0 solid var(--accent);
	opacity: .8;
	pointer-events: none;
	z-index: 3;
}
.content .card::before { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 4px; }
.content .card::after  { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 4px; }

.content .card .card-head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	font-family: var(--font);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .01em;
	color: var(--text);
	padding: 2px 0 14px;
	margin: 0;
}
/* amber icon chip */
.content .card .card-head .hicon {
	flex: 0 0 auto;
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	color: var(--accent-contrast);
	background: linear-gradient(135deg, var(--accent-2), var(--accent));
	box-shadow: 0 5px 16px -5px var(--glow);
}
.content .card .card-head .hicon svg { width: 20px; height: 20px; display: block; }

.content .card div.wrap {
	flex: 1 1 auto;
	min-height: 0;
	padding: 0 4px 0 0;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--border-strong) transparent;
	scrollbar-gutter: stable;
}

/* generic inputs */
.content input {
	font: inherit;
	color: var(--text);
	background: var(--surface-3);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 10px 12px;
	min-height: 44px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.content input[type="text"] { flex: 1 1 180px; min-width: 0; }
.content input::placeholder { color: var(--text-faint); }
.content input:focus-visible {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--glow);
}
.content input.send {
	flex: 0 0 auto;
	background: var(--accent);
	color: var(--accent-contrast);
	border: none;
	font-weight: 700;
	letter-spacing: .02em;
	padding: 10px 20px;
	cursor: pointer;
	transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.content input.send:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 18px -6px var(--glow); }
.content input.send:active { transform: translateY(0); }

/* ============================================================= STEAM WIDGET PREVIEW */
.widget {
	position: relative;
	background: linear-gradient(180deg, #1b1f25, #14171c);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	min-height: 64px;
	margin: 12px 0;
	padding: 12px 14px 18px 62px;
	width: min(420px, 100%);
	color: #c8ced6;
}
.widget.loading { background: url(../img/steam_loading.gif) #181b21 98% 50% no-repeat; }

.widget .info { color: #c8ced6; position: static; }
.widget .info a { color: var(--accent-2); text-decoration: none; }
.widget .info a:hover { color: var(--accent); }
.widget .info ul { list-style: none; padding: 0; margin: 0; }
.widget .info ul li { font-size: 11px; line-height: 1.5; padding-left: 0; }
.widget .info ul li::before { content: none; }
.widget .info ul li.name { font-size: 13px; font-weight: 700; color: #eef1f4; }

.widget .copyright {
	position: absolute; right: 10px; bottom: 6px;
	font-size: 8px; line-height: 1; letter-spacing: .08em;
	text-transform: uppercase;
}
.widget .copyright a { color: #7c828b; text-decoration: none; }
.widget .copyright a:hover { color: var(--accent); }

/* "Хочу такой же!" / "Поискать ещё!" */
p.getone {
	color: var(--accent);
	cursor: pointer;
	font-family: var(--mono);
	font-size: clamp(16px, 3.5vw, 22px);
	letter-spacing: .04em;
	text-align: center;
	margin: 18px 0 4px;
	transition: color .15s ease, text-shadow .15s ease;
}
p.getone::before { content: "\BB\A0"; color: var(--accent-2); }
p.getone:hover { color: var(--accent-2); text-shadow: 0 0 16px var(--glow); }
p.getone a { color: inherit; text-decoration: none; }

/* ============================================================= RESULT (converter output) */
.result { position: relative; padding-top: 4px; }
.result::after { content: ""; display: block; clear: both; }
.result.banned { background: url('../img/banned.png') no-repeat 50% 40px; }
.result p { margin: 0 0 12px; }
.result .avatar_medium {
	position: static;
	float: right;
	width: 72px;
	height: auto;
	min-height: 72px;
	margin: 0 0 10px 14px;
}
.result .avatar_medium p { font-size: 11px; line-height: 1.3; text-align: center; margin: 2px 0 0; }
.result .avatar_medium p a { color: var(--accent-2); }
.result ul { margin: 12px 0 0; }
.result ul li {
	font-size: 14px;
	line-height: 1.6;
	padding: 6px 0 6px 18px;
	border-bottom: 1px dashed var(--border);
	overflow-wrap: anywhere;
}
.result ul li:last-child { border-bottom: 0; }
.result ul li b { color: var(--text); font-weight: 700; }

b.ismember { color: var(--online); font-weight: 700; }
b.ismember.not { color: var(--offline); }

a.code {
	display: inline-block;
	font-family: var(--mono);
	font-size: .85em;
	background: var(--surface-3);
	color: var(--accent-2);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 2px 8px;
	word-break: break-all;
}

/* ============================================================= AVATARS (sprites) */
.avatar_medium {
	background: url(../img/avatar_medium.png) transparent top left no-repeat;
	height: 72px; width: 72px;
	position: absolute;
}
.avatar_medium.offline { background-position: 0 0; }
.avatar_medium.online  { background-position: 0 -72px; }
.avatar_medium.in-game { background-position: 0 -144px; }
.avatar_medium p { font-size: 12px; line-height: 1.3; text-align: center; }

.avatar_small {
	background: url(../img/avatar_small.png) transparent top left no-repeat;
	height: 40px; width: 40px;
	position: absolute; left: 10px; top: 12px;
	overflow: hidden;
}
.avatar_small.offline { background-position: 0 0; }
.avatar_small.online  { background-position: 0 -40px; }
.avatar_small.in-game { background-position: 0 -80px; }
.avatar_small img, .avatar_medium img { margin: 4px; border-radius: 4px; }

/* ============================================================= OVERLAY / LOADING */
#overlay {
	background-color: var(--bg-2);
	opacity: .7;
	display: none;
	position: fixed; inset: 0;
	z-index: 149;
}
#loading {
	display: none;
	position: fixed;
	right: 16px; top: 16px;
	z-index: 150;
	background: url(../img/steam_loading.gif) var(--surface) 96% 50% no-repeat;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	color: var(--text);
	font-size: 13px;
	line-height: 44px;
	padding: 0 48px 0 16px;
	min-width: 180px;
	box-shadow: 0 12px 30px -12px var(--shadow);
}
#loading.error { background-color: #5a1a1a; color: #ffd9d9; border-color: var(--offline); }

#errors { display: none; }

a.external[href^="http://"] { padding-right: 14px; }
a.external[href^="http://"]::after { content: "\A0\2197"; color: var(--accent-2); }

.getsteam { background: url('../img/logo_getsteam.gif') transparent 0 50% no-repeat; padding-left: 70px; }

/* ============================================================= DARSONG BANNER */
.content .card.darsong { display: block; padding: 0; height: var(--card-h); }
.content .card.darsong::before, .content .card.darsong::after { display: none; }

.getsteambot {
	background: transparent;
	display: block;
	height: 100%;
	width: 100%;
	position: relative;
	z-index: 1;
}
.getsteambot_background { line-height: 0; overflow: hidden; position: absolute; z-index: 1; }
.getsteambot_text {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: min(260px, 80%);
	background: rgba(255,255,255,0.88);
	color: #1a1a1a;
	border-radius: 12px;
	padding: 14px 16px;
	text-align: center;
	box-shadow: 0 14px 34px -14px rgba(0,0,0,0.5);
	z-index: 2;
}
.getsteambot_text b { color: #d4554a; }

/* ============================================================= FOOTER */
.footer {
	width: 100%;
	max-width: 1080px;
	margin: 14px auto;
	padding: 12px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	border-top: 1px solid var(--border);
}
.footer .logo {
	flex: 1 1 320px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--text-dim);
}
.footer .logo .flogo {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 9px;
	border: 1px solid var(--border-strong);
}
.footer .logo a { color: var(--accent-2); }
.footer .vk { margin-left: auto; text-align: right; }

/* ============================================================= LEGACY TURBODOM (kept) */
.domru_holder { background-color: #181b21; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); height: 58px; position: relative; width: min(410px,100%); }
.domru_logo { background: url('../img/domru_logo.png') transparent; display: block; height: 78px; left: 10px; position: absolute; top: -10px; width: 78px; }
.domru_turbodom { background: url('../img/domru_turbodom.png') transparent; display: block; height: 26px; left: 93px; position: absolute; top: 18px; width: 144px; }
.domru_steam_text { bottom: 7px; color: var(--text-dim); font-size: 10px; line-height: 1.3; position: absolute; right: 0; width: 112px; }

/* ============================================================= VK COMMENTS */
#vk_comments { margin-top: 4px; }
#vk_comments iframe { max-width: 100% !important; }

/* ============================================================= RESPONSIVE */
@media (max-width: 640px) {
	.wrapper { padding: 0 12px; }
	.content { gap: 14px; }
	.content .card { height: auto; min-height: 0; padding: 14px 13px 16px; }
	.content .card div.wrap { overflow: visible; scrollbar-gutter: auto; }
	.content .card.darsong { height: 280px; }
	.head { min-height: 44px; }
	.head { padding: 18px 0 10px; }
	.footer { flex-direction: column; align-items: stretch; text-align: center; }
	.footer .logo { justify-content: center; flex-basis: auto; text-align: left; }
	.footer .vk { margin-left: 0; text-align: center; }
	.widget { width: 100%; }
	.result .avatar_medium { position: static; margin: 0 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
