/* ==========================================================================
   Cases module — "Modern" theme
   Тёмная тема, стекло (glassmorphism), неоновые градиенты.
   Важно: ширина .subject-block (180px + 2*5px margin = 190px) и ширина
   #roulette (190px) НЕ должны меняться — roulette.js жёстко использует
   case_width: 190 для расчёта прокрутки барабана.
   ========================================================================== */

:root {
	/* CYBERPUNK: палитра модуля кейсов переведена в стиль шаблона */
	--bg-0: #07050a;
	--bg-1: #120b0f;
	--panel: rgba(255, 34, 69, 0.035);
	--panel-border: rgba(255, 34, 69, 0.16);
	--panel-border-hover: rgba(255, 34, 69, 0.55);
	--text-0: #f4f1f2;
	--text-1: #c9c2c6;
	--text-2: #948e93;

	--accent-1: #7a0014;
	--accent-2: #ff2245;
	--accent-3: #ff4d6a;
	--gradient-main: linear-gradient(135deg, #ff2245 0%, #c4102c 100%);

	--rarity-orange: #ffb020;
	--rarity-red: #ff2245;
	--rarity-purple: #b25cff;
	--rarity-blue: #00e5ff;
	--rarity-military: #2bff88;

	--radius-lg: 0px;
	--radius-md: 0px;
	--radius-sm: 0px;

	--shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 0 24px rgba(255, 34, 69, 0.08);
}

/* ---------- base panel ---------- */

.cases-main-block {
	width: 100%;
	background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
	border: 1px solid var(--panel-border);
	border-radius: var(--radius-lg);
	padding: 32px 30px;
	margin-bottom: 30px;
	height: auto;
	overflow: hidden;
	position: relative;
	box-shadow: var(--shadow-soft);
	font-family: "Montserrat", "Segoe UI", Roboto, sans-serif;
}

.cases-main-block::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--gradient-main);
	opacity: 0.9;
}

.cases-main-block > a[class^="icon"] {
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 26px;
	border-radius: 50%;
	background: var(--panel);
	border: 1px solid var(--panel-border);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
	z-index: 3;
}

.cases-main-block > a[class^="icon"]::before {
	content: "";
	width: 18px;
	height: 18px;
	background-color: var(--text-1);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	transition: background-color 0.2s ease;
}

.cases-main-block > a.icon-open-cases {
	right: 26px;
}
.cases-main-block > a.icon-open-cases::before {
	-webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="10" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>');
	mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="10" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>');
}

.cases-main-block > a.icon-back-to-cases {
	left: 26px;
}
.cases-main-block > a.icon-back-to-cases::before {
	-webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="12" x2="5" y2="12"/><polyline points="12 19 5 12 12 5"/></svg>');
	mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="12" x2="5" y2="12"/><polyline points="12 19 5 12 12 5"/></svg>');
}

.cases-main-block > a[class^="icon"]:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: var(--panel-border-hover);
	transform: translateY(-1px);
}
.cases-main-block > a[class^="icon"]:hover::before {
	background-color: var(--text-0);
}

.cases-main-block h2 {
	min-height: auto;
	padding-top: 0;
	text-transform: none;
	font-size: 28px;
	color: var(--text-0);
	text-align: center;
	margin-bottom: 34px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.cases-main-block h2.mb-0 {
	margin-bottom: 20px;
}

/* info block */

.info-block {
	position: relative;
	background: var(--panel);
	border: 1px solid var(--panel-border);
	padding: 22px 24px;
	margin-bottom: 24px;
	border-radius: var(--radius-md);
}

.info-block > h3 {
	color: var(--text-0);
	font-size: 17px;
	font-weight: 600;
	margin-top: 18px;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.info-block > h3::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--gradient-main);
	flex: 0 0 auto;
}

.info-block > h3:first-child {
	margin-top: 0;
}

.info-block > ul {
	margin-left: 18px;
	margin-bottom: 0;
	color: var(--text-1);
}

.info-block > p {
	color: var(--text-1);
	line-height: 1.6;
}

/* open-case button */

button.open-case {
	padding: 0 32px;
	height: 56px;
	line-height: 56px;
	background-image: var(--gradient-main);
	background-size: 160% 160%;
	background-position: 0% 50%;
	box-shadow: 0 8px 24px -8px rgba(255, 34, 69, 0.55);
	border-radius: 0;
	text-transform: none;
	border: 0;
	color: #ffffff;
	font-weight: 700;
	font-size: 18px;
	margin: 26px auto;
	display: block;
	cursor: pointer;
	transition: background-position 0.35s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

button.open-case:hover {
	background-position: 100% 50%;
	transform: translateY(-2px);
	box-shadow: 0 10px 28px -6px rgba(255, 77, 106, 0.55);
}

button.open-case:active {
	transform: translateY(0);
}

button.open-case[disabled] {
	background-image: var(--gradient-main);
	opacity: 0.35;
	box-shadow: none;
	cursor: not-allowed;
}

@media (max-width: 991.99px) {
	button.open-case {
		font-size: 15px;
		height: 50px;
		line-height: 50px;
		padding: 0 22px;
	}
}

/* ---------- roulette ---------- */

.roulette {
	padding: 22px 22px 30px;
	position: relative;
	border-radius: var(--radius-lg);
	background: radial-gradient(120% 140% at 50% 0%, rgba(255, 34, 69, 0.12) 0%, rgba(255, 255, 255, 0) 60%), var(--panel);
	border: 1px solid var(--panel-border);
	overflow: hidden;
	width: 100%;
	height: 403px;
	max-width: 650px !important;
	margin: 0 auto;
}

.roulette > #sound-point {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	right: 10px;
	top: 10px;
	background: var(--panel);
	border: 1px solid var(--panel-border);
	cursor: pointer;
	z-index: 4;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.roulette > #sound-point::before {
	content: "";
	width: 16px;
	height: 16px;
	background-color: var(--text-1);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.roulette > #sound-point.sound-on::before {
	-webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"/><path d="M15.5 8.5a5 5 0 0 1 0 7"/><path d="M18.5 5.5a9 9 0 0 1 0 13"/></svg>');
	mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"/><path d="M15.5 8.5a5 5 0 0 1 0 7"/><path d="M18.5 5.5a9 9 0 0 1 0 13"/></svg>');
}

.roulette > #sound-point.sound-off::before {
	-webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"/><line x1="23" y1="9" x2="17" y2="15"/><line x1="17" y1="9" x2="23" y2="15"/></svg>');
	mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"/><line x1="23" y1="9" x2="17" y2="15"/><line x1="17" y1="9" x2="23" y2="15"/></svg>');
}

.roulette > #sound-point:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: var(--panel-border-hover);
}

.roulette .roulette-slider {
	padding: 40px 0 20px;
	margin-bottom: 0;
	position: relative;
	height: 328px;
	border-radius: var(--radius-md);
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid var(--panel-border);
}

/* decorative wood/arrow art is replaced with edge fade masks + a slim
   gradient picker line, styled on the same elements the markup already
   provides so no template/JS changes are needed */

.roulette-slider .r-left,
.roulette-slider .r-right {
	display: none;
}

.roulette-slider .r-side,
.roulette-slider .r-side2 {
	position: absolute;
	top: 0;
	bottom: 0;
	width: calc(50% - 95px);
	z-index: 3;
	pointer-events: none;
}

.roulette-slider .r-side {
	left: 0;
	background: linear-gradient(to right, rgba(10, 9, 18, 0.95) 0%, rgba(10, 9, 18, 0) 100%);
}

.roulette-slider .r-side2 {
	right: 0;
	background: linear-gradient(to left, rgba(10, 9, 18, 0.95) 0%, rgba(10, 9, 18, 0) 100%);
}

.roulette-slider .top-arr,
.roulette-slider .bottom-arr {
	width: 0;
	height: 0;
	position: absolute;
	left: 50%;
	transform: translate(-50%, 0);
	z-index: 4;
}

.roulette-slider .top-arr {
	top: 6px;
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-top: 10px solid var(--accent-2);
	filter: drop-shadow(0 0 6px rgba(255, 77, 106, 0.7));
}

.roulette-slider .bottom-arr {
	bottom: 6px;
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-bottom: 10px solid var(--accent-2);
	filter: drop-shadow(0 0 6px rgba(255, 77, 106, 0.7));
}

/* center picker window — width matches item footprint (190px) */

.roulette-slider::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 190px;
	transform: translateX(-50%);
	border-left: 1px dashed rgba(255, 255, 255, 0.18);
	border-right: 1px dashed rgba(255, 255, 255, 0.18);
	z-index: 2;
	pointer-events: none;
}

.roulette-area {
	overflow: hidden;
	width: 100%;
	height: 100%;
}

#roulette {
	height: 210px;
	width: 190px;
	top: 30px;
	position: relative;
	margin: 0 auto;
}

#roulette .roulette-inner {
	transition: 0s linear;
	position: relative;
	top: 0;
	white-space: nowrap;
	height: 100%;
	width: 100%;
}

#roulette .roulette-inner .subject-block {
	box-shadow: none !important;
}

/* ---------- recent openings feed ---------- */

.cases-opens-wrapper {
	width: 100%;
	box-sizing: border-box;
	background: var(--panel);
	border: 1px solid var(--panel-border);
	border-radius: var(--radius-md);
	padding: 18px 18px 6px;
	margin-bottom: 24px;
}

.cases-opens-head {
	width: 100%;
	padding-bottom: 14px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-2);
	box-sizing: border-box;
}

.cases-opens-placeholder {
	width: 100%;
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	box-sizing: border-box;
}

.cases-opens-placeholder > p {
	color: var(--text-1);
	font-size: 14px;
	margin: 0 0 12px;
}

.opens-card {
	flex: 1 1 0;
	min-width: 0;
	display: block;
	position: relative;
	text-align: center;
	text-decoration: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%), var(--bg-1);
	border: 1px solid var(--panel-border);
	border-radius: var(--radius-sm);
	padding: 10px 8px 12px;
	margin-bottom: 12px;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.opens-card:hover {
	transform: translateY(-3px);
	border-color: var(--panel-border-hover);
	box-shadow: 0 12px 24px -12px rgba(255, 34, 69, 0.5);
}

.opens-card-name {
	font-size: 12px;
	font-weight: 600;
	color: var(--accent-3);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 6px;
}

.opens-card-image {
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.opens-card-image img {
	max-width: 100%;
	max-height: 56px;
	filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5));
}

.opens-card-user {
	margin-top: 6px;
	font-size: 11px;
	color: var(--text-2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.opens-card-prize {
	margin-top: 4px;
	font-size: 12px;
	color: var(--text-0);
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.opens-card-item {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.opens-card-item b {
	font-weight: 600;
}

.opens-card-date {
	margin-top: 4px;
	font-size: 10px;
	color: var(--rarity-military);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 767.99px) {
	.opens-card-name,
	.opens-card-user,
	.opens-card-date {
		display: none;
	}

	.opens-card-image {
		height: 40px;
	}

	.opens-card-image img {
		max-height: 40px;
	}

	.opens-card-prize {
		font-size: 10px;
	}
}

/* ---------- cases grid (shop) ---------- */

#cases,
#cases_not_open {
	margin-left: -10px;
	margin-right: -10px;
}

#cases > p,
#cases_not_open > p {
	color: var(--text-1);
	font-size: 16px;
	margin-left: 15px;
}

#cases .case-block,
#cases_not_open .case-block {
	position: relative;
	display: block;
	background: var(--panel);
	border: 1px solid var(--panel-border);
	border-radius: var(--radius-md);
	height: 260px;
	padding: 0 0 10px 0;
	margin-top: 20px;
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#cases .case-block:hover,
#cases_not_open .case-block:hover {
	transform: translateY(-4px);
	border-color: var(--panel-border-hover);
	box-shadow: 0 16px 32px -14px rgba(255, 34, 69, 0.45);
}

#cases .case-block span,
#cases_not_open .case-block span {
	display: block;
	color: var(--text-0);
	height: 40px;
	position: absolute;
	bottom: 0;
	line-height: 40px;
}

#cases .case-block span:nth-child(2),
#cases_not_open .case-block span:nth-child(2) {
	width: calc(100% - 80px);
	background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
	left: 0;
	padding-left: 14px;
	padding-right: 10px;
	font-weight: 600;
	font-size: 14px;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

#cases .case-block span:nth-child(3),
#cases .case-block span:nth-child(4),
#cases_not_open .case-block span:nth-child(3),
#cases_not_open .case-block span:nth-child(4) {
	width: 80px;
	background-image: var(--gradient-main);
	right: 0;
	font-weight: 700;
	font-size: 13px;
	text-align: center;
	border-top-left-radius: var(--radius-sm);
}

#cases .case-block div.case-image-block,
#cases_not_open .case-block div.case-image-block {
	height: 220px;
	line-height: 220px;
	text-align: center;
}

#cases .case-block div.case-image-block img,
#cases_not_open .case-block div.case-image-block img {
	max-width: 82%;
	max-height: 190px;
	filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45));
	transition: transform 0.25s ease;
}

#cases .case-block:hover div.case-image-block img,
#cases_not_open .case-block:hover div.case-image-block img {
	transform: scale(1.05) translateY(-2px);
}

/* ---------- subject / prize blocks (roulette items, case contents, prize modal) ---------- */

#subjects,
#roulette,
#prize_area {
	text-align: center;
}

/* вертикальный зазор между рядами карточек в "Содержимое кейса" —
   только для #subjects, чтобы не менять горизонтальную математику рулетки */
#subjects .subject-block {
	margin: 8px;
}

#subjects .modal-dialog,
#roulette .modal-dialog,
#prize_area .modal-dialog {
	text-align: left;
}

.subject-block {
	--rarity: var(--rarity-military);
	overflow: hidden;
	display: inline-block;
	position: relative;
	height: 200px;
	width: 180px;
	margin: 0 5px;
	vertical-align: middle;
	border-radius: var(--radius-sm);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%), var(--bg-1);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.subject-block .b-top,
.subject-block .b-bottom,
.subject-block .b-left,
.subject-block .b-right {
	position: absolute;
	display: block;
}

.subject-block .b-top,
.subject-block .b-bottom {
	left: 0;
	right: 0;
	height: 3px;
	background: var(--rarity);
}

.subject-block .b-top {
	top: 0;
	box-shadow: 0 0 12px 1px var(--rarity);
}

.subject-block .b-bottom {
	bottom: 0;
}

.subject-block .b-left,
.subject-block .b-right {
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--rarity);
	opacity: 0.55;
}

.subject-block .b-left {
	left: 0;
}

.subject-block .b-right {
	right: 0;
}

.subject-block::after {
	content: "";
	position: absolute;
	left: 50%;
	top: -30%;
	width: 140%;
	height: 140%;
	transform: translateX(-50%);
	background: radial-gradient(circle, var(--rarity) 0%, transparent 65%);
	opacity: 0.16;
	pointer-events: none;
}

.subject-block.orange { --rarity: var(--rarity-orange); }
.subject-block.red { --rarity: var(--rarity-red); }
.subject-block.purple { --rarity: var(--rarity-purple); }
.subject-block.blue { --rarity: var(--rarity-blue); }
.subject-block.military { --rarity: var(--rarity-military); }

.subject-block .subject > span:nth-child(1) {
	color: var(--rarity);
}

.subject-block > .subject-services {
	height: 200px;
	width: 100%;
	padding: 14px 10px 10px;
	position: relative;
	z-index: 1;
	box-sizing: border-box;
}

.subject-block .subject-fix {
	height: 100%;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: center;
	justify-content: center;
	align-items: flex-start;
	gap: 4px 6px;
}

/* all icons (one per stacked prize) float to the top row, regardless of
   their position in the markup, thanks to flex "order" */
.subject-block .subject-icon {
	order: -1;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	margin: 0 3px 8px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: rgba(255, 255, 255, 0.04);
	box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.6);
}

.subject-block .subject-icon-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	display: block;
}

.subject-block .subject-icon .view {
	width: 100%;
	height: 100%;
}

.subject-block .subject-icon .view video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* text block for each prize: full width, so several stack cleanly below
   the icon row instead of overflowing the fixed-height card */
.subject-block .subject {
	order: 0;
	flex: 1 1 100%;
	width: 100%;
	text-align: center;
	cursor: pointer;
}

.subject-block .subject span {
	width: auto;
	max-width: 100%;
	display: block;
	margin: 0 auto;
}

.subject-block .subject span:nth-child(1) {
	text-shadow: 0 0 14px rgba(0, 0, 0, 0.4);
	font-size: 15px;
	font-weight: 700;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.subject-block .subject span:nth-child(2),
.subject-block .subject span:nth-child(3) {
	line-height: 15px;
	font-size: 11px;
	color: var(--text-2);
	margin-top: 2px;
}

/* ---------- prize modal ---------- */

#prize .modal-content {
	background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
	border: 1px solid var(--panel-border);
	box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.7);
	border-radius: var(--radius-lg);
}

#prize .modal-content h4 {
	text-align: center;
	color: var(--text-0);
	font-size: 28px;
	margin-bottom: 16px;
	text-transform: none;
	font-weight: 700;
}

#prize #prize_area {
	text-align: center;
	padding: 40px 0;
}

#prize #prize_area .subject-block {
	transform: scale(1.2);
	box-shadow: 0 0 40px -6px var(--rarity);
}

#prize .close {
	color: var(--text-0);
	opacity: 0.7;
}

#prize .close:hover {
	opacity: 1;
}

#prize p {
	font-size: 14px;
	color: var(--text-1);
	text-align: center;
}

.modal-backdrop-blur {
	-webkit-filter: blur(6px);
	filter: blur(6px);
}

/* ---------- "my open cases" modal ---------- */

#my_cases_area .opened-case {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 14px;
	border-bottom: 1px solid var(--panel-border);
	padding: 12px 0;
}

#my_cases_area .opened-case .case-img {
	width: 70px;
	flex: 0 0 auto;
	border-radius: var(--radius-sm);
	overflow: hidden;
}

#my_cases_area .opened-case .case-img img {
	width: 100%;
	display: block;
}

#my_cases_area .opened-case .case-info {
	flex: 1 1 auto;
	min-width: 0;
}

#my_cases_area .opened-case .case-info h3 {
	font-size: 15px;
	margin: 0;
	color: var(--text-0);
	font-weight: 600;
}

#my_cases_area .opened-case .subject {
	display: block;
	width: 100%;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	margin-top: 4px;
	color: var(--text-1);
	font-size: 13px;
}

#my_cases_area .opened-case:last-child {
	border-bottom: 0;
}

/* ---------- profile: "Открытые кейсы" cards ---------- */

.profile-case-card {
	position: relative;
	display: inline-block;
	vertical-align: top;
	width: 150px;
	margin: 6px;
	overflow: hidden;
	box-sizing: border-box;
	padding: 14px 10px 12px;
	border-radius: var(--radius-sm);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%), var(--bg-1);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
	text-align: center;
}

.profile-case-card .pc-top {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--rarity-red);
	box-shadow: 0 0 12px 1px var(--rarity-red);
}

.profile-case-card .pc-name {
	color: var(--rarity-red);
	font-size: 13px;
	font-weight: 600;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	padding: 2px 0 8px;
}

.profile-case-card .pc-image {
	display: block;
}

.profile-case-card .pc-image img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	margin: 0 auto;
	filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

.profile-case-card .pc-subjects {
	min-height: 20px;
	padding: 8px 2px 0;
	color: var(--text-0);
}

.profile-case-card .pc-subjects .subject {
	font-size: 12px;
	line-height: 15px;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.profile-case-card .pc-date {
	color: var(--rarity-military);
	font-size: 11px;
	padding-top: 8px;
}

/* ---------- banner ---------- */

.case-banner {
	position: relative;
	width: 100%;
	background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
	border: 1px solid var(--panel-border);
	border-radius: var(--radius-md);
	margin-bottom: 30px;
	overflow: hidden;
}

.case-banner::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--gradient-main);
}

.case-banner a {
	padding: 34px 26px;
	display: block;
	width: 100%;
	height: 100%;
	white-space: normal;
}

.case-banner h3 {
	color: var(--text-0);
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 20px;
}

.case-banner p {
	color: var(--text-1);
	font-size: 15px;
	text-align: center;
	font-weight: 500;
}

.case-banner img {
	width: 100%;
	max-width: 220px;
	display: block;
	margin: 0 auto 18px;
	filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45));
}

/* ---------- responsive ---------- */

@media (max-width: 991.99px) {
	.cases-main-block {
		padding: 24px 16px;
	}

	.roulette {
		padding: 16px 10px 22px;
		height: auto;
	}

	.roulette-slider {
		height: 260px;
		padding-top: 30px;
	}
}
