:root {
  --focus-light: #3fe9d3;
  --focus-dark: #04b9c3;
  --dark-black: #2a2c29;
}

.launch-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
}

.launch-text {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 300;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.basic-white {
  background: white;
  color: var(--dark-black);
  fill: var(--dark-black);
}

.basic-black {
  background: var(--dark-black);
  color: white;
  fill: white;
}

.basic-white .button-information {
  background: var(--dark-black);
  color: white;
}

.basic-black .button-information {
  background: white;
  color: var(--dark-black);
}

.basic-black .mode {
  filter: invert();
}

/* 防止文本选择 */
* {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: "Oxygen", sans-serif;
  overflow: hidden;
}

/* 完整的focus动画，1.5秒脉冲效果 */
@keyframes focus {
  0%,
  100% {
    box-shadow: 0 0 0 0.5vh var(--focus-light);
  }
  50% {
    box-shadow: 0 0 0 0.5vh var(--focus-dark);
  }
}

/* Added fade in/out animation for user profile */
@keyframes fadeInProfile {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOutProfile {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* 只保留横屏布局 */
.container {
  display: grid;
  grid-template-rows: 12vh 50vh 23vh 15vh;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.status-bar {
  display: grid;
  grid-template-columns: 50% 50%;
  padding: 2vh 2vw;
  font-size: 2.5vh;
  gap: 1vh;
  align-items: center;
}

.status-bar > .profile {
  margin: 0;
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 7vh;
}

.status-bar > .profile > a > img {
  width: 7vh;
  height: 7vh;
  border: 2px solid rgba(128, 128, 128, 0.411);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

/* 头像高亮效果 */
.status-bar > .profile > a:focus > img,
.status-bar > .profile > a:hover > img {
  animation: focus 1.5s infinite;
}

/* Fixed player name - now shows immediately when avatar is selected */
.status-bar > .profile > .user {
  padding: 0;
  margin: 0;
  position: absolute;
  width: 7vh;
  text-align: center;
  font-weight: bold;
  color: var(--focus-dark);
  display: none;
  font-size: 1.8vh;
  top: 100%;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.status-bar > .app-indicator {
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

#clock {
  margin: 0 2vh;
  font-size: 2.8vh;
}

.status-bar > .app-indicator > .app-container {
  display: flex;
  margin: 0;
  font-size: 3.2vh;
  gap: 2vh;
  align-items: center;
}

.status-bar > .app-indicator > .app-container > .battery {
  display: flex;
  align-items: center;
  gap: 1vh;
  font-size: 2.2vh;
}

.status-bar > .app-indicator > .app-container > .battery p {
  margin: 0;
}

.status-bar > .app-indicator > .app-container > .battery svg {
  width: 5vh;
  height: 5vh;
}

.status-bar > .app-indicator > .app-container > .wifi {
  margin: 0 1.5vh;
  width: 5vh;
  height: 5vh;
}

.game-list {
  display: flex;
  align-items: center;
  overflow-x: auto;
  gap: 2vh;
  padding: 2vh 6vw 2vh 8vw;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
  height: 50vh;
}

.game-list::-webkit-scrollbar {
  display: none;
}

.game {
  flex: 0 0 auto;
  width: 42vh;
  height: 42vh;
  background: rgba(255, 255, 255, 0.068);
  position: relative;
}

.game > a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
}

.game > a > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid rgba(0, 0, 0, 0.041);
  box-sizing: border-box;
}

.game > a > .game-title {
  position: absolute;
  top: -5vh;
  left: 0;
  width: 100%;
  font-weight: bold;
  color: var(--focus-dark);
  text-transform: capitalize;
  font-size: 2vh;
  text-align: center;
  display: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.5rem;
}

.game > a:focus > img,
.game > a:hover > img {
  animation: focus 1.5s infinite;
}

.game > a:focus > .game-title,
.game > a:hover > .game-title {
  display: block;
}

.game-list > .closing {
  flex: 0 0 auto;
  width: 8vw;
}

.menu-container {
  display: flex;
  padding: 2vh 2vw;
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  height: 23vh;
}

.menu-container::-webkit-scrollbar {
  display: none;
}

.menu {
  display: flex;
  margin: auto;
  gap: 2.5vh;
  flex-wrap: wrap;
  justify-content: center;
}

.menu > .item {
  flex: 0 0 auto;
  width: 14vh;
  height: 14vh;
  background: rgba(255, 255, 255, 0.068);
  border: 2px solid rgba(128, 128, 128, 0.247);
  border-radius: 50%;
  display: flex;
  position: relative;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu > .item > img {
  width: 7vh;
  height: 7vh;
  object-fit: contain;
}

.menu > .item > .desc {
  position: absolute;
  bottom: -5vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-weight: bold;
  color: var(--focus-dark);
  text-transform: capitalize;
  font-size: 1.8vh;
  max-width: 12vh;
  display: none;
  white-space: normal;
  word-wrap: break-word;
  padding: 0.3vh 0.5rem;
}

.menu > .item:focus,
.menu > .item:hover {
  outline: none;
  animation: focus 1.5s infinite;
}

.menu > .item:focus > .desc,
.menu > .item:hover > .desc {
  display: block;
}

.container > div[style*="padding"] {
  padding: 0 2vw !important;
  box-sizing: border-box;
}

/* ========== 底部区域 ========== */
.footer {
  display: grid;
  grid-template-columns: 50% 50%;
  padding: 1vh 0;
  gap: 2.5vh;
  height: 15vh;
  align-items: center;
}

.footer > .status-mode {
  margin: -0.5vh 0 0 0;
  width: 12vh;
  height: 7vh;
  display: flex;
  align-items: flex-start;
}

.footer > .status-mode > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer > .information {
  margin: -0.5vh 0 0 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 2vh;
}

.footer > .information > div {
  display: flex;
  align-items: center;
  gap: 1.5vh;
  font-size: 2vh;
}

.footer > .information > div span {
  margin-left: -0.5vh;
}

.button-information {
  box-shadow: none;
  border: none;
  width: 7vh;
  height: 7vh;
  border-radius: 50%;
  text-align: center;
  font-weight: bold;
  font-size: 5vh;
  cursor: pointer;
  background: inherit;
  color: inherit;
}

.button-information:focus {
  outline: none;
  animation: focus 1.5s infinite;
}

hr {
  margin: 0.5vh 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 去除所有焦点轮廓 */
*:focus {
  outline: none !important;
}

a:focus,
button:focus,
.clickable:focus {
  outline: none !important;
}

/* Added user profile overlay styles */
/* Simplified user profile overlay structure to remove custom footer styles */
.user-profile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--dark-black);
  display: none;
  z-index: 8000;
  animation: fadeInProfile 0.5s ease-in-out;
}

.user-profile-overlay.fade-out {
  animation: fadeOutProfile 0.5s ease-in-out;
}

.user-profile-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.user-profile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  color: white;
}

.user-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3vh;
  margin-bottom: 5vh;
}

.user-profile-avatar {
  width: 20vh;
  height: 20vh;
  border-radius: 50%;
  border: 3px solid var(--focus-dark);
  box-shadow: 0 0 2vh var(--focus-light);
}

.user-profile-name {
  font-size: 5vh;
  font-weight: bold;
  color: var(--focus-dark);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.user-profile-desc {
  font-size: 2.5vh;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-weight: 300;
}

.user-profile-body {
  margin-top: 8vh;
}

.user-profile-text {
  font-size: 2.2vh;
  color: rgba(255, 255, 255, 0.8);
  margin: 2vh 0;
  font-weight: 300;
}
