/* =========================
   Base / Theme
========================= */

:root {
	--bg-0: #050507;
	 --bg-1:#090c0b;

	--panel: rgba(18, 22, 26, 0.78);
	--panel-2: rgba(24, 30, 34, 0.72);
	--border: rgba(255, 255, 255, 0.10);

	--text: rgba(245, 250, 248, 0.95);
	--muted: rgba(190, 205, 198, 0.62);

	--accent: #27ff97;       /* mint */
	--accent-2: #39ff14;

	--primary: #00ff88;
	--primary-2: #39ff14;

	 --danger:#ff4d4d;

	--radius: 16px;
	--radius-sm: 10px;

	---shadow: 0 18px 70px rgba(0,0,0,.60);
	--shadow-sm: 0 10px 34px rgba(0,0,0,.45);

	--ring: 0 0 0 3px rgba(39,255,151,.22);
}

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

html,
body {
	height: 100%;
}

body {
  background:
    radial-gradient(900px 620px at 18% 8%, rgba(39,255,151,0.10), transparent 60%),
    radial-gradient(860px 560px at 82% 24%, rgba(57,255,20,0.08), transparent 62%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  color: var(--text);
}

a {
	color: inherit;
}

#root,
.app {
	min-height: 100vh;
}

.app::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 48px 48px;
	opacity: 0.35;
	mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.15));
}

/* =========================
   Shared UI Controls
========================= */

button {
	font: inherit;
	color: inherit;
	border: none;
	background: none;
}

.ui-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;

	padding: 0.62rem 1.05rem;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.10);
	background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
	box-shadow: var(--shadow-sm);

	cursor: pointer;
	user-select: none;
	transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

.ui-button:hover {
	border-color: rgba(255, 255, 255, 0.18);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
	transform: translateY(-1px);
}

.ui-button:active {
	transform: translateY(0px);
}

.ui-button:focus-visible {
	outline: none;
	box-shadow: var(--shadow-sm), var(--ring);
}

.ui-button.primary {
	border-color: rgba(39,255,151,0.45);
	background: linear-gradient(180deg, rgba(39,255,151,0.22), rgba(39,255,151,0.10));
}

.ui-button.primary:hover {
	border-color: rgba(110, 231, 255, 0.55);
}

.ui-button.danger {
	border-color: rgba(255, 107, 107, 0.35);
	background: linear-gradient(180deg, rgba(255, 107, 107, 0.20), rgba(255, 107, 107, 0.10));
}

.ui-button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.ui-input {
	width: 100%;
	padding: 0.68rem 0.9rem;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: rgba(0, 0, 0, 0.25);
	color: var(--text);
	transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.ui-input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.ui-input:focus {
	outline: none;
	box-shadow: var(--ring);
	border-color: rgba(39,255,151,0.55);
	background: rgba(0, 0, 0, 0.32);
}

/* =========================
   Server Browser (Lobby)
========================= */

.server-browser {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 18px;

	padding: 28px;
	max-width: 560px;
	margin: clamp(80px, 12vh, 160px) auto 0 auto;

	background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	backdrop-filter: blur(10px);
}

.server-browser__logo {
	display: block;
	max-width: 100%;
	width: 280px;
	height: auto;
	margin: 0 auto 4px auto;
}

.server-browser h1 {
	margin: 0;
	font-size: 1.65rem;
	letter-spacing: 0.2px;
	text-align: center;
}

.server-browser h2 {
	margin: 6px 0 0 0;
	font-size: 0.95rem;
	font-weight: 650;
	color: var(--muted);
	letter-spacing: 0.2px;
}

.server-browser .browser-name-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.server-browser .browser-name-row input {
	padding: 0.68rem 0.9rem;
	font-size: 16px;
	min-width: 240px;

	border-radius: 12px;
	border: 1px solid var(--border);
	background: rgba(0, 0, 0, 0.25);
	color: var(--text);
}

.server-browser .browser-name-row input:focus {
	outline: none;
	border-color: rgba(110, 231, 255, 0.45);
	box-shadow: var(--ring);
	background: rgba(0, 0, 0, 0.32);
}

.server-browser .browser-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.server-browser .create-room-button {
	padding: 0.62rem 1.15rem;
	font-size: 16px;
	cursor: pointer;

	border-radius: 12px;
	border: 1px solid rgba(110, 231, 255, 0.35);
	background: linear-gradient(180deg, rgba(110, 231, 255, 0.22), rgba(124, 92, 255, 0.18));
	box-shadow: var(--shadow-sm);
	transition: transform 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

.server-browser .create-room-button:hover {
	border-color: rgba(110, 231, 255, 0.55);
	transform: translateY(-1px);
}

.server-browser .create-room-button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.server-browser .invite-link-banner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 0.9rem 1rem;
	background: rgba(110, 231, 255, 0.08);
	border: 1px solid rgba(110, 231, 255, 0.25);
	border-radius: 12px;
}

.server-browser .invite-link-banner p {
	margin: 0;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.9);
}

.server-browser .invite-link-banner .join-invite-button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.rejoin-banner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 0.9rem 1rem;
	margin-bottom: 1rem;
	background: rgba(255, 180, 80, 0.1);
	border: 1px solid rgba(255, 180, 80, 0.35);
	border-radius: 12px;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}

.rejoin-banner p {
	margin: 0;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.9);
}

.server-browser .room-list-section {
	width: 100%;
	margin-top: 2px;
}

.server-browser .no-rooms {
	color: var(--muted);
	font-size: 14px;
	margin: 6px 0 0 0;
	text-align: center;
}

.server-browser .room-list {
	list-style: none;
	padding: 0;
	margin: 10px 0 0 0;

	display: flex;
	flex-direction: column;
	gap: 10px;
}

.server-browser .room-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;

	padding: 12px 12px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 12px;
	backdrop-filter: blur(8px);
	transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.server-browser .room-item:hover {
	transform: translateY(-1px);
	border-color: rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.075);
}

.server-browser .room-info {
	font-size: 14px;
	flex: 1;
	color: rgba(255, 255, 255, 0.85);
}

.server-browser .join-room-button {
	padding: 0.55rem 0.95rem;
	font-size: 14px;
	cursor: pointer;

	border-radius: 12px;
	border: 1px solid var(--border);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.06));
	transition: transform 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

.server-browser .join-room-button:hover {
	border-color: rgba(255, 255, 255, 0.18);
	transform: translateY(-1px);
}

.server-browser .join-room-button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.server-browser .error-message {
	color: var(--danger);
	font-size: 14px;
	text-align: center;
}

/* =========================
   Game Screen + UI
========================= */

.game-screen {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 18px;
	padding-top: 56px;
}

.timer,
.ui-pill {
	background: none !important;
	border: none !important;
	box-shadow: none !important;

	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.6px;
	color: #ffffff;
	text-shadow:
		0 0 10px rgba(0, 255, 136, 0.35),
		0 0 22px rgba(0, 255, 136, 0.20);
	padding: 0;
	min-width: unset;
}

.pause-button {
	background: linear-gradient(
		180deg,
		rgba(0, 255, 136, 0.25),
		rgba(0, 180, 90, 0.18)
	);
	border: 1px solid rgba(0, 255, 136, 0.6);
	color: #ffffff;
	font-weight: 600;
}

.pause-button:hover {
	box-shadow: 0 0 12px rgba(0, 255, 136, 0.35);
}

.paused-overlay-app .overlay-menu {
  min-width: 360px;
  max-width: 420px;
  width: min(520px, calc(100vw - 48px));
  padding: 1.4rem 1.6rem;
  text-align: center;
  border-radius: 14px;
}

.paused-overlay-app .overlay-menu h2 {
  margin: 0 0 14px 0;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: 0.2px;
  word-break: break-word;
}

.paused-overlay-app .paused-overlay-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.paused-overlay-app .paused-overlay-actions .ui-button {
  min-width: 140px;
}

.ui-button,
.create-room-button,
.join-room-button,
.start-button,
.resume-button {
	color: rgba(245, 255, 250, 0.96);
	font-weight: 600;
	letter-spacing: 0.2px;
}

/* =========================
  	Existing game tiles
========================= */

.cell {
	border: 1px solid rgba(0, 0, 0, 0.25);
	box-sizing: border-box;
}

.cell-wall {
	background: #555;
	background-image: url('/sprites/indestructible_wall.png');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.cell-destructible {
	background: #888;
	background-image: url('/sprites/wall.png');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.cell-powerup {
	background: #ffd700;
}

.cell-empty {
	background: grey;
	background-image: url('/sprites/ground.png');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.bomb {
	background-image: url('/sprites/bomb.png');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	animation: bomb-pulse 0.5s ease-in-out infinite;
	transform-origin: center;
	filter: drop-shadow(0 0 6px rgba(57, 255, 20, 0.6));
}

@keyframes bomb-pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
}

.explosion {
	background-image: url('/sprites/explosion.png');
	background-size: contain;
	background-repeat: no-repeat;
}

.power-up {
	background-color: transparent;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.6));
}

.power-up-bombCount {
	background-image: url('/sprites/powerup_bomb.png');
}

.power-up-range {
	background-image: url('/sprites/powerup_range.png');
}

.power-up-speed {
	background-image: url('/sprites/powerup_speed.png');
}

/* =========================
   Overlays
========================= */

/* Full-screen dim/blur overlay (must be full width/height) */
.game-over-overlay-app {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

/* The actual modal box */
.game-over-overlay-app .overlay-menu {
  width: min(420px, calc(100vw - 48px));
  padding: 1.4rem 1.5rem 1.25rem;

  background: linear-gradient(
    180deg,
    rgba(26, 30, 36, 0.92),
    rgba(18, 22, 27, 0.88)
  );

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.70);

  color: rgba(245, 255, 250, 0.96);
}

.game-over-overlay-app .overlay-menu h2 {
  font-size: 1.45rem;
  text-align: center;
  margin: 0 0 0.9rem 0;
}

.game-over-overlay-app .overlay-menu p {
  margin: 0 0 1rem 0;
  color: rgba(245, 255, 250, 0.92);
}

.game-over-overlay-app .game-over-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.game-over-overlay-app .play-again-button {
  padding: 0.62rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(110, 231, 255, 0.45);
  background: linear-gradient(180deg, rgba(110, 231, 255, 0.25), rgba(124, 92, 255, 0.20));
  color: rgba(245, 255, 250, 0.95);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease;
}

.game-over-overlay-app .play-again-button:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 231, 255, 0.65);
}

.game-over-overlay-app .quit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.62rem 1.05rem;
  border-radius: 12px;

  border: 1px solid rgba(255, 90, 90, 0.60);
  background: linear-gradient(180deg, rgba(255, 70, 70, 0.30), rgba(180, 30, 30, 0.20));
  color: rgba(255, 235, 235, 0.95);

  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 120ms ease, border-color 120ms ease;
}

.game-over-overlay-app .quit-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 90, 90, 0.80);
}

.paused-overlay-app {
	position: fixed;
	inset: 0;
	z-index: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.62);
	backdrop-filter: blur(8px);
}

.lobby-overlay {
	position: fixed;
	inset: 0;
	z-index: 500;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.58);
	backdrop-filter: blur(8px);
}

.lobby-invite-bar {
	position: absolute;
	bottom: 1.5rem;
	left: 1rem;
	right: 1rem;
	max-width: 520px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 0.85rem;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
}

.lobby-invite-bar label {
	flex-shrink: 0;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.8);
}

.lobby-invite-bar input {
	flex: 1;
	min-width: 0;
	padding: 0.4rem 0.6rem;
	font-size: 0.85rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.95);
}

.lobby-invite-bar .copy-invite-button {
	flex-shrink: 0;
	padding: 0.45rem 0.9rem;
	font-size: 0.9rem;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
}

.lobby-invite-bar .copy-invite-button:hover {
	background: rgba(255, 255, 255, 0.18);
}

/* Shared overlay panel */
.server-browser,
.overlay-menu {
	min-width: 320px;
	max-width: 420px;
  	background: linear-gradient(180deg, var(--panel), var(--panel-2));
	border: 1px solid var(--border);
	border-radius: var(--radius);

	box-shadow: var(--shadow);
	backdrop-filter: blur(12px);
}

.server-browser h1,
.overlay-menu h2 {
	color: var(--text);
  	letter-spacing: .3px;
}

.server-browser h2{
  color: var(--muted);
}

.ui-button.primary {
	background: linear-gradient(
		180deg,
		rgba(0, 255, 136, 0.35),
		rgba(0, 180, 90, 0.25)
	);
	border-color: rgba(0, 255, 136, 0.6);
}

.ui-input:focus {
	border-color: rgba(0, 255, 136, 0.8);
	box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.35);
}

.lobby-overlay .overlay-menu {
	min-width: 380px;
	max-width: 460px;
	padding: 1.75rem 1.75rem 1.6rem;
}

.lobby-overlay .overlay-menu h2 {
	text-align: center;
	width: 100%;
	margin: 0 0 1rem 0;
	font-weight: 700;
}

.lobby-overlay .player-list {
	list-style: none;
	padding: 0;
	margin: 0.6rem 0 0.9rem 0;
}

.lobby-overlay .player-list li::marker {
	content: "";
}
.lobby-overlay .player-list li::before {
	content: none !important;
}

.lobby-overlay .player-list li {
	display: flex;
	align-items: center;
	justify-content: center;

	padding: 0.55rem 0.85rem;
	border-radius: 12px;

	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.09);

	color: rgba(245, 255, 250, 0.92);
	font-weight: 600;
}

.lobby-overlay .player-list li:last-child {
	border-bottom: none;
}

.lobby-overlay-actions,
.paused-overlay-app .paused-overlay-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 0.25rem;
}

.lobby-overlay-actions .ui-button {
	min-width: 120px;
}

.lobby-overlay .start-button,
.lobby-overlay .quit-button,
.paused-overlay-app .resume-button,
.paused-overlay-app .quit-button {
	padding: 0.55rem 1.1rem;
	font-size: 1rem;
	cursor: pointer;

	border-radius: 12px;
	border: 1px solid var(--border);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.06));
	transition: transform 120ms ease, border-color 120ms ease;
}

.lobby-overlay .start-button:hover,
.paused-overlay-app .resume-button:hover {
	transform: translateY(-1px);
	border-color: rgba(110, 231, 255, 0.45);
}

.lobby-overlay .quit-button,
.paused-overlay-app .quit-button {
	border-color: rgba(255, 107, 107, 0.35);
	background: linear-gradient(180deg, rgba(255, 107, 107, 0.20), rgba(255, 107, 107, 0.10));
}

.lobby-overlay .quit-button:hover,
.paused-overlay-app .quit-button:hover {
	transform: translateY(-1px);
	border-color: rgba(255, 107, 107, 0.55);
}

/* Small pill label (used for timer) */
.ui-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.75rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(0, 0, 0, 0.25);
	font-weight: 700;
	letter-spacing: 0.3px;
	min-width: 90px;
}

.timer.warning {
	color: #ffcc00;
	text-shadow: 0 0 8px rgba(255, 204, 0, 0.6);
}


/* Improve game layout spacing */
.game-screen {
	padding-top: 10px !important;
	gap: 6px !important;
}

.game-board {
	margin-top: 6px !important;
}

.cell {
	border: 1px solid rgba(0, 0, 0, 0.22);
}

.toast {
	position: fixed;
	left: 50%;
	top: 18px;
	transform: translateX(-50%);
	z-index: 1200;

	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(10px);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);

	color: rgba(255, 255, 255, 0.92);
	font-weight: 650;
}

/* =========================
   Responsive tweaks
========================= */

@media (max-width: 520px) {
	.server-browser {
		margin-top: 24px;
		padding: 18px;
		border-radius: 16px;
	}

	.server-browser h1 {
		font-size: 1.4rem;
	}

	.server-browser .browser-actions {
		flex-direction: column;
	}
}

/* =========================
   Game HUD
========================= */

.game-ui {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 16px !important;

	width: fit-content !important;
	margin: 0 auto 6px !important;
	padding: 0 !important;
}

.player-lives-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 1.5rem;
	margin: 4px auto 10px;
	min-height: 1.5rem;
}

.player-life-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.9rem;
	color: rgba(245, 255, 250, 0.9);
}

.player-life-name {
	max-width: 6em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.player-life-item .heart {
	display: block;
	width: 1.1rem;
	height: 1.1rem;
	object-fit: contain;
}

.player-life-item .heart.full {
	opacity: 1;
	filter: drop-shadow(0 0 4px rgba(231, 76, 60, 0.6));
}

.player-life-item .heart.empty {
	opacity: 0.3;
}

.game-ui .timer {
	order: 2;
	position: static !important;
	transform: none !important;
	top: auto !important;
	left: auto !important;

	margin: 0 !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;

	font-size: 1.55rem;
	font-weight: 900;
	letter-spacing: 1px;

	color: rgba(245, 255, 250, 0.98);
	text-shadow:
		0 0 8px rgba(0, 255, 136, 0.55),
		0 0 20px rgba(0, 255, 136, 0.35);
}


.game-ui .pause-button {
	order: 1;
	grid-column: 1 !important;
	justify-self: end !important;

	padding: 0.45rem 0.95rem;
	border-radius: 12px;

	background: linear-gradient(180deg, rgba(0, 255, 136, 0.24), rgba(0, 180, 90, 0.16));
	border: none;
	color: rgba(245, 255, 250, 0.96);
	font-weight: 650;
}

.game-ui .pause-button:hover {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
	transform: translateY(-1px);
}

.game-ui .surrender-button {
	order: 3;
	grid-column: 3 !important;
	justify-self: start !important;

	padding: 0.45rem 0.95rem;
	border-radius: 12px;

	background: linear-gradient(180deg, rgba(255, 107, 107, 0.20), rgba(255, 107, 107, 0.10));
	border: 1px solid rgba(255, 107, 107, 0.45);
	color: rgba(255, 235, 235, 0.95);
	font-weight: 650;
}

.game-ui .surrender-button:hover {
	border-color: rgba(255, 107, 107, 0.65);
	transform: translateY(-1px);
}

.game-ui .volume-controls {
	order: 4;
	display: flex;
	align-items: center;
	gap: 8px;
}

.game-ui .volume-slider {
	width: 80px;
	height: 6px;
	accent-color: rgba(0, 255, 136, 0.8);
	cursor: pointer;
}

.game-ui .mute-button {
	order: 5;
	padding: 0.35rem 0.6rem;
	min-width: auto;
	font-size: 1.1rem;
	line-height: 1;
}

.game-screen {
	padding-top: 72px !important;
}

.game-screen__logo {
	display: block;
	max-width: 100%;
	width: 160px;
	height: auto;
	margin: 0 auto 8px auto;
}

.game-ui {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* =========================
   FPS METER
========================= */

.fps-meter {
  position: fixed;
  z-index: 99999;
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.25;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  user-select: none;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.fps-meter__label {
  font-size: 10px;
  opacity: 0.6;
}

.fps-meter__secondary {
  opacity: 0.85;
}

.fps-meter--top-left {
  top: 10px;
  left: 10px;
}

.fps-meter--top-right {
  top: 10px;
  right: 10px;
}

.fps-meter--bottom-left {
  bottom: 10px;
  left: 10px;
}

.fps-meter--bottom-right {
  bottom: 10px;
  right: 10px;
}
