@import './game/dialogue.css';
/**
 * =============================================================================
 * This is the file where all your styling should go in.
 * Instead of modifying the styles found in the monogatari.css file or others,
 * you should overwrite those styles in this file.
 *
 * The CSS selectors shown are not an extensive list but they are the most
 * common you might want to change. To find what other elements are available,
 * you can take a look at the monogatari.css file or use your browser's dev
 * tools to inspect the elements.
 * =============================================================================
**/

/**
 * ===========================
 * General Styling
 * ===========================
**/

/* General Style */
body {

}

/* Simple Button styles*/
button {
	font-family: inherit;
	cursor: pointer;
	border: 1px solid rgba(230, 240, 255, 0.18);
	background: rgba(18, 28, 52, 0.55);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #f0f6ff;
	border-radius: 12px;
	box-shadow:
		0 4px 18px rgba(0, 0, 0, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	transition: all 0.2s ease;
}

/* Simple Button Style on Hover */
button:hover {
	background: rgba(35, 55, 95, 0.68);
	border-color: rgba(140, 180, 255, 0.5);
	box-shadow:
		0 0 18px rgba(80, 140, 255, 0.28),
		0 6px 24px rgba(0, 0, 0, 0.42);
	transform: translateY(-1px);
}

button:active {
	transform: translateY(1px);
}

/* General Styling for Menu Screens */
[data-screen] {

}

/**
 * ===========================
 * Main Menu Styling
 * ===========================
**/

/* Main Menu Styling */
[data-screen="main"] {
	background:
		linear-gradient(180deg, rgba(5, 12, 28, 0.35) 0%, rgba(5, 12, 28, 0.72) 100%),
		url('../assets/scenes/title_bg.webp') center / cover no-repeat;
}

/* Main Menu Buttons Styling */
[data-screen="main"] main-menu button {
	min-width: 180px;
	min-height: 52px;
	margin: 10px 16px 10px 0;
	font-size: 1.05rem;
	letter-spacing: 0.05em;
}

/**
 * ===========================
 * Unified Menu Background & Settings
 * ===========================
**/

/* 统一设置/存读档/帮助与启动屏背景 */
[data-screen="settings"],
[data-screen="load"],
[data-screen="save"],
[data-screen="help"],
loading-screen {
	background:
		linear-gradient(180deg, rgba(5, 12, 28, 0.35) 0%, rgba(5, 12, 28, 0.72) 100%),
		url('../assets/scenes/title_bg.webp') center / cover no-repeat;
	color: #f0f6ff;
}

/* 设置页内容区玻璃卡片 */
[data-screen="settings"] .settings {
	background: rgba(0, 0, 0, 0.15);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-radius: 16px;
	padding: 18px 14px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

[data-screen="settings"] h2,
[data-screen="settings"] h3,
[data-screen="settings"] span,
[data-screen="settings"] label,
[data-screen="settings"] [data-string] {
	color: #f0f6ff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* 设置页返回按钮 */
[data-screen="settings"] button.top.left {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	margin: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Range 滑块统一为暗色轨道 + 发光滑块 */
[data-screen="settings"] input[type=range] {
	-webkit-appearance: none;
	width: 80%;
	max-width: 320px;
	height: 6px;
	margin: 12px 0;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.12);
	outline: none;
}

[data-screen="settings"] input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #f0f6ff;
	box-shadow: 0 0 10px rgba(100, 170, 255, 0.6);
	cursor: pointer;
}

[data-screen="settings"] input[type=range]::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #f0f6ff;
	box-shadow: 0 0 10px rgba(100, 170, 255, 0.6);
	cursor: pointer;
}

/* 设置页内的弹幕详细设置入口按钮也统一为玻璃态，避免在深色背景下风格突兀 */
[data-screen="settings"] .ltc-danmaku-settings-link {
	background: rgba(18, 28, 52, 0.55);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(230, 240, 255, 0.18);
	box-shadow:
		0 4px 18px rgba(0, 0, 0, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	transition: all 0.2s ease;
}

[data-screen="settings"] .ltc-danmaku-settings-link:hover {
	background: rgba(35, 55, 95, 0.68);
	border-color: rgba(140, 180, 255, 0.5);
	box-shadow:
		0 0 18px rgba(80, 140, 255, 0.28),
		0 6px 24px rgba(0, 0, 0, 0.42);
	transform: translateY(-1px);
}

/**
 * ===========================
 * Save and Load Menus Styling
 * ===========================
**/

/* Slots Style */
[data-component="save-slot"] figure {

}

/* Slot's Image Style */
[data-component="save-slot"] img {

}

/* Slots Title Style */
[data-component="save-slot"] figcaption {

}

/* Slots Delete Button Style */
[data-component="save-slot"] button {

}

/**
 * ===========================
 * Game Elements Styling
 * ===========================
**/

/* Choice Buttons style */
[data-component="choice-container"] button {

}

/* Choice Button Style on Hover */
[data-component="choice-container"] button:hover {

}

/* Text Box styling：降低高度，避免与选择按钮重叠 */
[data-component="text-box"] {
	min-height: 17%;
	max-height: 17%;
}

/* Character Name Style */
[data-ui="who"] {

}

/* Style for Centered Text */
[data-component="centered-dialog"] {

}

/* Character Images Styles：适度放大，使角色在场景中更醒目；
   同时保持 max-height 避免被对话框/底部 UI 压住 */
[data-screen="game"] [data-character] {
	max-height: 88vh;
}

/* Other Images Styles */
[data-screen="game"] [data-image] {

}

/**
 * ===========================
 * Quick Menu Styling
 * ===========================
**/

/* These styles are applied to the Mobile version of the Quick Menu */

/* Quick Menu Style */
[data-component="quick-menu"] {

}

/* Quick Menu Buttons Style */
[data-component="quick-menu"] span {

}

/* Quick Menu Buttons Style on Hover */
[data-component="quick-menu"] span:hover {

}

/* Quick Menu Buttons Icon Style */
[data-component="quick-menu"] > span > .fa {

}

/**
 * ===========================
 * Range Styling
 * ===========================
**/

/* Use the background property to set a color for these */
input[type=range]:focus::-webkit-slider-runnable-track {

}

input[type=range]::-webkit-slider-runnable-track {

}

input[type=range]:focus::-ms-fill-upper {

}

input[type=range]:focus::-ms-fill-lower {

}

input[type=range]::-moz-range-track {

}

input[type=range]::-ms-fill-lower {

}

input[type=range]::-ms-fill-upper {

}

/** Medium Screens, Phablets (601px) **/
@media screen and (min-width: 37.56255em) {
	/* Styles for the desktop version of the Quick Menu */

	/* Quick Menu Style */
	[data-component="quick-menu"] {

	}

	/* Quick Menu Buttons Style */
	[data-component="quick-menu"] span {

	}

	/* Quick Menu Buttons Style on Hover */
	[data-component="quick-menu"] span:hover {

	}
}

/** Medium Devices, Tablets (992px)**/
@media screen and (min-width: 62em) {

}

/** HD Screen, Large Devices, Wide Screens, Desktop (1200px) **/
@media screen and (min-width: 75em) {

}

/** Full HD Screen, Large Devices, Wide Screens, Large Desktops (1920px) **/
@media screen and (min-width: 120em) {

}

/** Retina Screen , Large Devices, Wide Screens(2560px) **/
@media screen and (min-width: 160em) {

}

/** 4k Screens, Large Devices, Wide Screens (3840px) **/
@media screen and (min-width: 240em) {

}

/** 5k Screens, Large Devices, Wide Screens (5000px) **/
@media screen and (min-width: 312.5em) {

}

/** 8k Screens, Large Devices, Wide Screens (8000px) **/
@media screen and (min-width: 500em) {

}
