* {
    margin: 0;
    padding: 0;
}

/* Шрифт Aion-стиля (заголовок и кнопки) */
@font-face {
    font-family: 'RomicCyr';
    src: url('fonts/RomicCyr.ttf') format('truetype');
    font-display: swap;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    min-height: 600px;
    /* фон страницы — общий, задаётся в common/site-common.css */
}

h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0px;
    text-align: center;
    margin: 8px;
}

.title {
	font-family: 'RomicCyr', 'DM Sans', sans-serif;
	font-size: 2.6rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	/* компенсация letter-spacing последней буквы, чтобы надпись осталась по центру */
	padding-left: 0.3em;
	background: linear-gradient(180deg, #f4f6ff 0%, #c6ccff 42%, #8f9aff 62%, #e2d6ff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 8px rgba(143, 154, 255, 0.4));
	line-height: 1.1;
	margin: 0 0 0.2rem;
}

.subtitle {
	color: rgba(228, 232, 255, 0.7);
	font-size: 0.85rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-family: 'DM Sans', sans-serif;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.tool {
    width: 500px;
    min-height: 150px;
	margin-bottom: 1rem;
}

.tool-container:hover {
    box-shadow: inset 0 0 8px 1px rgb(166 241 174);
}

.tool-container:active {
    box-shadow: inset 0 0 8px 1px #8aecff;
}

.tool-container:hover #stigma-tool-img {
    /* спрайт масштабирован до ячеек 64px (192×128 вместо 240×160) */
    background-position: -64px 0;
}

.tool-container:active #stigma-tool-img {
    background-position: -64px -64px;
}

/* Кнопки с обычными картинками (калькулятор экипировки, заточка):
   эффекты наведения вместо спрайтовых состояний */
.tool-container img {
    transition: transform 0.15s ease, filter 0.15s ease;
}

.tool-container:hover img {
    transform: scale(1.08);
    filter: brightness(1.25) drop-shadow(0 0 4px rgba(166, 241, 174, 0.5));
}

.tool-container:active img {
    transform: scale(1.0);
    filter: brightness(1.15) drop-shadow(0 0 4px rgba(138, 236, 255, 0.6));
}

a:link, a:visited, a:hover, a:active {
    color: inherit;
    text-decoration: none;
}

.links {
	display: grid;
	gap: 0.8rem;
}

.link {
	display: flex;
	align-items: center;
	padding: 0.8rem 1.2rem;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	color: white;
	text-decoration: none;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.link::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, var(--accent), transparent);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.link:hover::before {
	opacity: 0.2;
}

.link:hover {
	transform: translateX(5px);
	background: rgba(255, 255, 255, 0.15);
}

.tool-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    padding-left: 2rem;
    padding-right: 1rem;
    border: 2px solid #2d251f;
    border-radius: 5px;
    height: 100%;
    background-color: #312919;
    box-sizing: border-box;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    color: #695434;
    font-size: 0.95em;
    font-family: 'RomicCyr', Verdana, sans-serif;
    text-transform: uppercase;
}

.tool-container h2 {
    font-family: inherit;
}

#stigma-tool-img {
    background-image: url('stigma/img/stigmaslots.webp');
    /* спрайт 240×160 с ячейками 80px масштабируется до 64px —
       как у кнопок с обычными картинками, чтобы все иконки были в одну линию */
    background-size: 192px 128px;
    width: 64px;
    height: 64px;
}

.navigation {
    width: 100%;
    padding: 16px 0 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #2c2d4a 0%, #232440 55%, #1e1f38 100%);
    border-bottom: 1px solid rgba(143, 154, 255, 0.35);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
    color: #F4F5FF;
}

.info-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.75);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
}

.info-box {
	position: relative;
	background: #1c1c1c;
	color: #ddd;
	padding: 35px 30px 25px 30px;
	border-radius: 12px;
	max-width: 450px;
	width: 90%;
	box-shadow: 0 10px 30px rgba(0,0,0,0.8);
	border: 1px solid #444;
	font-family: Arial, sans-serif;
	box-sizing: border-box;
}

.modal-close {
	position: absolute;
	top: 10px;
	right: 15px;
	background: transparent;
	border: none;
	color: #d9534f;
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
	line-height: 1;
	transition: color 0.2s;
}

.modal-close:hover {
	color: #ff7875;
}

.info-content {
	font-size: 15px;
	line-height: 1.6;
	text-align: center;
}

.info-content a {
	color: #5bc0de;
	text-decoration: none;
	font-weight: bold;
}

.info-content a:hover {
	text-decoration: underline;
}