/* src/css/style.css */
body,
html {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: transparent;
  color: #ffffff;
  font-family: "Microsoft YaHei", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.star-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #020205;
  z-index: -10;
  overflow: hidden;
}
@keyframes animateStar {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-2000px);
  }
}
.stars {
  background: transparent;
  border-radius: 50%;
  filter: drop-shadow(0 0 1px #FFF);
  will-change: transform;
}
.stars-small {
  width: 1px;
  height: 1px;
  box-shadow:
    124px 345px #FFF,
    876px 123px #FFF,
    234px 876px #FFF,
    654px 543px #FFF,
    987px 234px #FFF,
    123px 654px #FFF,
    456px 987px #FFF,
    789px 321px #FFF,
    321px 456px #FFF,
    654px 789px #FFF,
    987px 123px #FFF,
    543px 654px #FFF,
    234px 321px #FFF,
    876px 987px #FFF,
    123px 543px #FFF,
    765px 234px #FFF,
    432px 876px #FFF,
    987px 654px #FFF,
    321px 123px #FFF,
    654px 432px #FFF,
    159px 753px #FFF,
    357px 159px #FFF,
    753px 951px #FFF,
    951px 357px #FFF,
    246px 842px #FFF,
    642px 246px #FFF,
    842px 642px #FFF,
    420px 420px #FFF,
    500px 100px #FFF,
    100px 900px #FFF,
    800px 500px #FFF,
    300px 300px #FFF,
    1200px 400px #FFF,
    1500px 800px #FFF,
    1800px 200px #FFF,
    1100px 600px #FFF,
    1300px 900px #FFF,
    1600px 100px #FFF,
    1900px 700px #FFF,
    1400px 500px #FFF;
}
.stars-small:after {
  content: " ";
  position: absolute;
  top: 2000px;
  width: 1px;
  height: 1px;
  background: transparent;
  box-shadow: inherit;
}
.stars-medium {
  width: 2px;
  height: 2px;
  box-shadow:
    654px 123px #e0e0e0,
    234px 654px #e0e0e0,
    987px 321px #e0e0e0,
    123px 987px #e0e0e0,
    543px 234px #e0e0e0,
    876px 765px #e0e0e0,
    321px 543px #e0e0e0,
    765px 876px #e0e0e0,
    1200px 600px #e0e0e0,
    1600px 300px #e0e0e0,
    1400px 900px #e0e0e0,
    1800px 500px #FFF;
  opacity: 1;
}
.stars-medium:after {
  content: " ";
  position: absolute;
  top: 2000px;
  width: 2px;
  height: 2px;
  background: transparent;
  box-shadow: inherit;
}
.stars-large {
  width: 3px;
  height: 3px;
  box-shadow:
    456px 789px #FFF,
    789px 123px #FFF,
    123px 456px #FFF,
    1300px 200px #FFF,
    1700px 800px #FFF;
  opacity: 1;
  filter: blur(0.5px);
}
.stars-large:after {
  content: " ";
  position: absolute;
  top: 2000px;
  width: 3px;
  height: 3px;
  background: transparent;
  box-shadow: inherit;
  filter: blur(1px);
}
.countdown-container {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  background: transparent;
}
.left-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 20px;
  margin-bottom: 25px;
}
.label-top-cn {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 5px;
  letter-spacing: 1px;
}
.label-middle-wrapper {
  display: flex;
  align-items: center;
  height: 50px;
  margin-bottom: 8px;
}
.vertical-red-bar {
  width: 6px;
  height: 100%;
  background-color: #e60012;
  margin-right: 12px;
  box-shadow: 0 0 15px rgba(230, 0, 18, 0.6);
}
.label-middle-cn {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 1px;
}
.label-bottom-en {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-align: right;
  color: #cccccc;
  line-height: 1.3;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.right-number-group {
  display: flex;
  align-items: flex-end;
  line-height: 1;
}
.big-red-number {
  font-family: "Oswald", sans-serif;
  font-weight: 900;
  font-size: 220px;
  color: #e60012;
  margin: 0;
  padding: 0;
  line-height: 0.85;
  letter-spacing: -2px;
  text-shadow: 0 0 20px rgba(230, 0, 18, 0.3);
  display: inline-block;
  text-align: right;
  white-space: nowrap;
  overflow: visible;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  transition: width 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.unit-cn {
  font-size: 36px;
  font-weight: 500;
  margin-left: 15px;
  margin-bottom: 35px;
  transition: opacity 0.25s;
}
#width-ruler {
  visibility: hidden;
  position: absolute;
  top: -9999px;
  font-family: "Oswald", sans-serif;
  font-weight: 900;
  font-size: 220px;
  letter-spacing: -2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
@media (max-width: 768px) {
  .countdown-container {
    flex-direction: column;
    align-items: center;
  }
  .left-text-group {
    align-items: center;
    margin-right: 0;
    margin-bottom: 30px;
  }
  .label-bottom-en {
    text-align: center;
  }
  .big-red-number {
    font-size: 140px;
    text-align: center;
  }
  #width-ruler {
    font-size: 140px;
  }
  .unit-cn {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .label-top-cn,
  .label-middle-cn {
    font-size: 26px;
  }
}
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Oswald", sans-serif;
  color: #e60012;
  transition: opacity 0.8s ease-out;
}
.loader-container {
  width: 300px;
  text-align: center;
}
.loader-bar-bg {
  width: 100%;
  height: 4px;
  background: #333;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: #e60012;
  width: 0%;
  box-shadow: 0 0 10px #e60012;
  transition: width 0.1s linear;
}
.loader-text {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}
.loader-status {
  color: #fff;
  font-size: 12px;
  opacity: 0.7;
}
.blink {
  animation: blinker 1s linear infinite;
}
@keyframes blinker {
  50% {
    opacity: 0;
  }
}
.loader-frame {
  border: 1px solid #333;
  padding: 30px;
  position: relative;
}
.loader-frame::before,
.loader-frame::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid #e60012;
  transition: all 0.3s;
}
.loader-frame::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}
.loader-frame::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}
#moss-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 9999;
  font-family:
    "Share Tech Mono",
    "Courier New",
    monospace;
  color: #ff3333;
  overflow: hidden;
  transition: opacity 1s ease-out;
}
#moss-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: url("../img/background.jpg") no-repeat center center;
  background-size: cover;
  filter: blur(2px) brightness(0.6);
  transform: scale(1.1);
  pointer-events: none;
}
#moss-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
#moss-ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(
      circle,
      transparent 60%,
      #000 150%);
}
#moss-ui-layer::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.06),
      rgba(0, 255, 0, 0.02),
      rgba(0, 0, 255, 0.06));
  z-index: 10;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}
.corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid #ff3333;
  box-shadow: 0 0 5px #ff0000;
}
.tl {
  top: 20px;
  left: 20px;
  border-right: none;
  border-bottom: none;
}
.tr {
  top: 20px;
  right: 20px;
  border-left: none;
  border-bottom: none;
}
.bl {
  bottom: 20px;
  left: 20px;
  border-right: none;
  border-top: none;
}
.br {
  bottom: 20px;
  right: 20px;
  border-left: none;
  border-top: none;
}
.log-terminal {
  position: absolute;
  top: 20%;
  left: 20px;
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.8;
  text-align: left;
  width: 250px;
  height: 300px;
  overflow: hidden;
  display: none;
}
.log-terminal-right {
  position: absolute;
  top: 20%;
  right: 20px;
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.8;
  text-align: right;
  width: 250px;
  height: 300px;
  overflow: hidden;
  display: none;
}
@media (min-width: 768px) {
  .log-terminal,
  .log-terminal-right {
    display: block;
  }
}
.loader-content {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 80%;
  max-width: 600px;
}
.loader-content h1 {
  font-size: 2.5rem;
  letter-spacing: 5px;
  margin: 0;
  text-shadow: 0 0 10px #ff0000;
  font-family: "Oswald", sans-serif;
}
.status-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ff3333;
  margin-bottom: 10px;
  padding-bottom: 5px;
  font-size: 0.9rem;
  opacity: 0.8;
}
.progress-bar-container {
  width: 100%;
  height: 4px;
  background: #330000;
  margin-top: 10px;
  position: relative;
}
#moss-progress-bar {
  width: 0%;
  height: 100%;
  background: #ff0000;
  box-shadow: 0 0 15px #ff0000;
  transition: width 0.1s linear;
}
@keyframes flicker {
  0% {
    opacity: 1;
  }
  5% {
    opacity: 0.8;
  }
  10% {
    opacity: 1;
  }
  15% {
    opacity: 0.3;
  }
  20% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  55% {
    opacity: 0.5;
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
.blink {
  animation: flicker 2s infinite;
}
.online-set {
  color: #fff;
  text-shadow: 0 0 5px #fff;
}
#fireworks-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}
#new-year-message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 20;
  font-family: "Oswald", sans-serif;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 50, 50, 0.8);
  pointer-events: none;
  animation: fadeIn 2s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
.ny-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 5px;
  margin-bottom: 0px;
}
.ny-year {
  font-size: 8rem;
  font-weight: 900;
  color: #e60012;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(230, 0, 18, 0.6);
}
.ny-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 3px;
  font-family: "Microsoft YaHei", sans-serif;
  opacity: 0.9;
}
@media (max-width: 768px) {
  .ny-title {
    font-size: 2.5rem;
  }
  .ny-year {
    font-size: 5rem;
  }
  .ny-subtitle {
    font-size: 1rem;
  }
}
