/* RuneLore visual system: deep space, electric blue, restrained surfaces. */
:root {
	--site-color-main: #246bfd;
	--site-color-main-light: #dbe8ff;
	--site-color-main-transparent: rgba(36, 107, 253, .18);
	--site-color-bg-body: #030812;
	--site-color-bg-dark: #06101f;
	--site-color-bg-light: #0c1729;
	--site-color-bg-active: #101e34;
	--site-color-bg-dark-transparent: rgba(6, 16, 31, .82);
	--site-color-bg-light-transparent: rgba(12, 23, 41, .82);
	--site-color-blue: #4d8dff;
	--rl-border: rgba(143, 177, 235, .13);
	--rl-muted: #8290a9;
	--rl-panel: rgba(8, 18, 35, .82);
	--rl-shadow: 0 18px 50px rgba(0, 0, 0, .24);
	--site-chat-width: 290px;
}

body {
	background:
		radial-gradient(circle at 56% 8%, rgba(18, 92, 216, .11), transparent 33%),
		linear-gradient(180deg, #030812 0%, #050b16 100%);
	color: #edf4ff;
}

a, button, .pointer, .home-option, .flag {
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
	outline: 2px solid #5ca5ff;
	outline-offset: 3px;
}

.header {
	background: rgba(4, 12, 25, .94);
	border-bottom: 1px solid var(--rl-border);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
	backdrop-filter: blur(18px);
}

.header-max .header.layout {
	grid-template-columns: var(--site-chat-width) minmax(0, 1fr);
	grid-template-rows: 32px 58px;
}

.header-max .header-logo {
	padding: 14px 22px;
	background: linear-gradient(145deg, rgba(9, 24, 48, .92), rgba(3, 8, 18, .96));
	border-right: 1px solid var(--rl-border);
}

.header-menu-top, .header-menu-bottom { min-width: 0; padding-left: 26px; }
.header-menu-top { color: var(--rl-muted); }
.header-menu-top > .inline-block { min-width: 0; overflow: hidden; white-space: nowrap; }
.header-menu-top > .flex { flex-shrink: 0; padding-left: 12px; }
.header-menu-top .header-menu-button { margin-left: 0; margin-right: 22px; letter-spacing: .01em; }
.header-menu-top .header-menu-button a:hover,
.header-menu-top .header-menu-button a.active { color: #fff; }

.header-menu-bottom .header-menu-button { margin-left: 0; }
.header-menu-bottom > .flex:first-child { min-width: 0; overflow: hidden; white-space: nowrap; }
.header-menu-bottom > .flex:last-child { flex-shrink: 0; padding-left: 12px; }
.header-menu-bottom .header-side-button {
	position: relative;
	min-height: 58px;
	padding: 0 4px;
	letter-spacing: .035em;
}
.header-menu-bottom .header-side-button::after {
	content: "";
	position: absolute;
	left: 4px;
	right: 4px;
	bottom: 0;
	height: 2px;
	background: #3c86ff;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .2s ease;
}
.header-menu-bottom .header-side-button:hover::after,
.header-menu-bottom .header-side-button.active::after { transform: scaleX(1); }
.header-side-button:hover, .header-side-button.active { color: #fff; }

.header-panel, .balances, .header-panel > div {
	border-color: var(--rl-border) !important;
}
.loginheader { width: 190px; background: transparent !important; }
.loginheader .site-button {
	border: 1px solid rgba(76, 139, 255, .25);
	background: rgba(11, 25, 48, .72) !important;
	letter-spacing: .05em;
}
.loginheader .site-button:hover { width: 100% !important; background: #155de5 !important; box-shadow: 0 0 24px rgba(36, 107, 253, .28); }

.pullout {
	background: rgba(4, 12, 24, .96);
	border-color: var(--rl-border);
	box-shadow: none;
}
.pullout[data-pullout="chat"] { border-right: 1px solid var(--rl-border); }
.pullout[data-pullout="cart"] { border-left: 1px solid var(--rl-border); border-right: 0; }
.pullout > .m-2 { margin: 16px; }
.flag {
	height: 38px;
	border: 1px solid transparent;
	border-radius: 9px;
}
.flag.active, .flag:hover { border-color: rgba(69, 133, 255, .32); background: rgba(36, 107, 253, .14); }
.chat-message {
	margin: 5px 4px;
	padding: 11px 10px !important;
	border: 0;
	border-radius: 10px;
	background: rgba(15, 28, 49, .62);
}
.chat-content-admin, .chat-content-system { background: rgba(17, 63, 124, .28); }
.chat-message-time { color: #74829a; font-weight: 500; }
.chat-message-content { line-height: 1.45; color: #dce7f8; }
#chat-area { padding: 5px 10px 12px; border-color: var(--rl-border); }
.chat-input { padding: 12px; }
.chat-input-field {
	height: 46px;
	border: 1px solid var(--rl-border);
	border-radius: 9px;
	background: rgba(13, 27, 49, .9);
}
.chat-input-field:focus { border-color: rgba(77, 141, 255, .6); box-shadow: 0 0 0 3px rgba(36, 107, 253, .1); }

.main-panel { background: transparent; }
#page_loader { padding-bottom: 34px; }
.footer { background: #040b16; border-top: 1px solid var(--rl-border); }

.home-page { width: 100%; text-align: left; }
.home-shell { max-width: 1440px; margin: 0 auto; padding: 20px 28px 48px; }
.home-library { padding: 8px 0 0; overflow: visible; }

.home-page .carousel {
	position: relative;
	height: 350px;
	overflow: visible;
	border: 1px solid rgba(55, 126, 255, .48);
	border-radius: 17px;
	background: #071329;
	box-shadow: var(--rl-shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.home-page .carousel::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	border-radius: inherit;
	background: linear-gradient(90deg, rgba(3, 9, 20, .45), transparent 52%);
}
.home-page .carousel .carousel-content { height: 100%; position: relative; z-index: 1; }
.home-page .carousel .carousel-page { border-radius: 16px; background-position: center; background-size: cover; }
.home-page .carousel .carousel-panel { width: 48%; min-width: 430px; padding: 42px 54px; z-index: 2; }
.home-eyebrow { color: #c7d8f4; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.home-eyebrow i { color: #45b9ff; margin-right: 7px; }
.home-page .carousel .title { color: #f5f8ff; font-size: clamp(38px, 4vw, 58px); line-height: .98; letter-spacing: -.035em; }
.home-page .carousel .description { max-width: 400px; color: #c0ccdf; font-size: 15px; line-height: 1.55; }
.home-page .site-button.blue {
	background: linear-gradient(105deg, #0878f9, #5a3cff);
	border-radius: 9px;
	box-shadow: 0 8px 26px rgba(30, 102, 255, .35);
}
.home-page .site-button.blue:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(30, 102, 255, .48); }
.home-page .carousel .carousel-button {
	position: relative;
	z-index: 4;
	flex: 0 0 46px;
	height: 46px;
	margin: auto -23px;
	border: 1px solid rgba(120, 160, 226, .25);
	border-radius: 50%;
	background: #101d36;
	box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.home-page .carousel .carousel-button:hover { transform: scale(1.05); background: #18305a; }

.home-section-heading { margin: 10px 0 14px; }
.home-options-name, .home-options-name1 { color: #f1f6ff; font-size: 18px; font-weight: 700; }
.home-options-name i, .home-options-name1 i { width: 22px; color: #5a98ff; font-size: 14px; }
.home-options-description { margin: 3px 0 0; color: var(--rl-muted) !important; font-size: 12px; }
.home-view-all {
	padding: 9px 18px;
	border: 1px solid var(--rl-border);
	border-radius: 10px;
	background: rgba(12, 24, 44, .72);
	color: #dce8fa;
	font-size: 11px;
	font-weight: 700;
}
.home-view-all:hover { border-color: rgba(72, 137, 255, .45); background: rgba(23, 49, 87, .8); }

.home-page .home-options { gap: 14px; }
.home-page .home-options.medium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-page .home-options.small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-page .home-option {
	height: 160px;
	padding: 0;
	overflow: hidden;
	border: 1px solid rgba(108, 153, 225, .18);
	border-radius: 13px;
	background: #091426;
	box-shadow: 0 12px 26px rgba(0,0,0,.16);
}
.home-page .home-options.medium .home-option { height: 190px; }
.home-page .home-option:hover { transform: translateY(-3px); border-color: rgba(65, 135, 255, .55); box-shadow: 0 18px 35px rgba(0,0,0,.27), 0 0 20px rgba(28, 95, 215, .1); }
.home-page .home-option-image-content { inset: 0; height: 100%; border-radius: 0; transition: transform .25s ease; }
.home-page .home-option:hover .home-option-image-content { transform: scale(1.025); }
.home-page .home-option-shadow { background: linear-gradient(0deg, rgba(2, 7, 15, .94) 0%, rgba(3, 9, 20, .12) 70%); }
.home-page .home-option-shadow { left: 0; bottom: 0; width: 100%; height: 58%; border-radius: 0; }
.home-page .home-option-name { position: absolute; left: 16px; right: auto; bottom: 27px; justify-content: flex-start; color: #fff; font-size: 16px; font-weight: 700; text-transform: uppercase; -webkit-text-stroke: 0; }
.home-page .home-option-description { position: absolute; left: 16px; right: auto; bottom: 10px; justify-content: flex-start; color: #a8b7cd; font-size: 11px; text-transform: uppercase; -webkit-text-stroke: 0; }
.home-page .home-option-info { top: auto; right: 10px; bottom: 10px; border: 1px solid var(--rl-border); background: rgba(5, 12, 24, .82); color: #fff; }

.pullout[data-pullout="cart"] .switch_panel,
.pullout[data-pullout="cart"] .header-items { border: 1px solid var(--rl-border); border-radius: 10px; background: rgba(12, 24, 44, .74); }
.pullout[data-pullout="cart"] .header-items { margin-top: 14px; padding: 16px 12px; }

@media (min-width: 1180px) {
	.page-home .pullout[data-pullout="chat"] { left: 0 !important; }
	.page-home .pullout[data-pullout="cart"] { right: 0 !important; }
	.page-home .slider[data-pullout="chat"], .page-home .slider[data-pullout="cart"] { display: none; }
	.page-home .main-panel { left: var(--site-chat-width) !important; right: var(--site-chat-width) !important; }
}

@media (max-width: 1100px) {
	.home-page .home-options.small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.home-page .carousel .carousel-panel { min-width: 390px; padding: 36px 44px; }
}

@media (max-width: 767px) {
	:root { --site-chat-width: min(88vw, 320px); }
	.home-shell { padding: 14px 12px 32px; }
	.home-page .carousel { height: 390px; overflow: hidden; }
	.home-page .carousel .carousel-panel { width: 100%; min-width: 0; padding: 34px 28px; }
	.home-page .carousel .title { font-size: 39px; }
	.home-page .carousel .description { max-width: 88%; }
	.home-page .carousel .carousel-button { margin: auto 8px; flex-basis: 38px; height: 38px; }
	.home-page .home-options.medium, .home-page .home-options.small { grid-template-columns: 1fr; }
	.home-page .home-options.medium .home-option, .home-page .home-option { height: 180px; }
	.footer { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
