body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f7e3c0 0%, #fdf6d7 100%);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  font-family: 'Segoe UI', Arial, sans-serif;
  overflow: hidden;
  animation: body-fade-in 2.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes body-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.loader-container {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
}

.logo {
  font-size: 3.2rem;
  font-weight: bold;
  color: #e2b77a;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px #f7e3c0, 0 1px 0 #fdf6d7;
  margin-bottom: 16px;
  animation: logo-glow 3.5s ease-in-out infinite alternate;
}

@keyframes logo-glow {
  0% { text-shadow: 0 2px 8px #f7e3c0, 0 1px 0 #fdf6d7; }
  100% { text-shadow: 0 2px 16px #f7e3c0, 0 1px 0 #e2b77a; }
}

.loader {
  border: 7px solid #fdf6d7;
  border-top: 7px solid #e2b77a;
  border-bottom: 7px solid #f7e3c0;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  animation: spin 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite, loader-pulse 2.8s ease-in-out infinite alternate;
  box-shadow: 0 0 8px #f7e3c0, 0 0 16px #e2b77a;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes loader-pulse {
  0% { box-shadow: 0 0 8px #f7e3c0, 0 0 16px #e2b77a; }
  100% { box-shadow: 0 0 24px #f7e3c0, 0 0 32px #e2b77a; }
}

.timer-text {
  color: #a67c52;
  font-size: 1.5rem;
  margin-top: 10px;
  text-shadow: 0 1px 4px #f7e3c0;
  letter-spacing: 1px;
  font-weight: 500;
  opacity: 0.92;
  animation: timer-fade-in 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes timer-fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 0.92; transform: translateY(0); }
}

#timer {
  font-weight: bold;
  color: #e2b77a;
  font-size: 2.5em;
  text-shadow: 0 0 4px #f7e3c0;
  transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1), text-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-glow {
  display: none;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  color: #bfa77a;
  font-size: 1.25rem;
  opacity: 0.6;
  letter-spacing: 0.5px;
  z-index: 10;
  user-select: none;
  font-family: 'Segoe UI', Arial, sans-serif;
  animation: body-fade-in 2.8s 0.2s both cubic-bezier(0.4, 0, 0.2, 1);
}

.tg-btn {
  background: #f7e3c0;
  border: none;
  border-radius: 50%;
  padding: 4px;
  margin-left: 10px;
  cursor: pointer;
  box-shadow: 0 1px 6px #e2b77a33;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  vertical-align: middle;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tg-btn:hover, .tg-btn:focus {
  background: #fdf6d7;
  box-shadow: 0 2px 12px #e2b77a55;
  transform: scale(1.08);
}
.tg-btn svg {
  display: block;
}

.tg-modal {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(80, 60, 30, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: body-fade-in 0.5s;
}
.tg-modal-content {
  background: #fdf6d7;
  border-radius: 24px;
  box-shadow: 0 8px 40px 0 #e2b77a33;
  padding: 48px 32px 36px 32px;
  min-width: 320px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: body-fade-in 0.7s;
}
.tg-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #bfa77a;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 2;
}
.tg-modal-close:hover {
  opacity: 1;
}
.tg-modal-timer {
  font-size: 1.6rem;
  color: #e2b77a;
  margin-bottom: 32px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
}
.tg-modal-links {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  align-items: center;
}
.tg-link {
  display: block;
  font-size: 1.45rem;
  font-weight: 600;
  color: #a67c52;
  background: #f7e3c0;
  border-radius: 12px;
  padding: 16px 36px;
  text-decoration: none;
  box-shadow: 0 2px 12px #e2b77a22;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.tg-link:hover, .tg-link:focus {
  background: #fff9c4;
  color: #e2b77a;
  box-shadow: 0 4px 24px #e2b77a44;
  transform: scale(1.04);
}
