body{
  margin:0;
  padding:0;
  font-family:"Georgia",serif;
  background:radial-gradient(circle at top,#FFF6E5,#F4EFEA);
  color:#3B1F1F;
  min-height:100vh;
}

.page{
  width:100%;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:25px 0;
}

.lang-buttons{
  display:flex;
  gap:10px;
  margin-bottom:16px;
}

.lang-buttons button{
  background:linear-gradient(135deg,#FFD700,#D4AF37);
  color:#3B1F1F;
  border:none;
  border-radius:10px;
  padding:10px 16px;
  font-weight:bold;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}

.card{
  width:90%;
  max-width:430px;
  background:linear-gradient(180deg,#3B1F1F,#2A1414);
  border:2px solid #D4AF37;
  border-radius:20px;
  padding:30px 24px;
  box-shadow:
    0 0 0 4px rgba(212,175,55,.2),
    0 25px 50px rgba(0,0,0,.4);
  text-align:center;
  box-sizing:border-box;
}

h1{
  color:#FFD700;
  margin:0;
  font-size:26px;
}

h2{
  color:#F5E6C8;
  margin:16px 0 8px;
  font-size:22px;
}

p{
  color:#EAD9B0;
  line-height:1.5;
  font-size:15px;
}

.divider{
  width:100px;
  height:3px;
  margin:14px auto 18px;
  background:linear-gradient(90deg,#B8962E,#FFD700,#B8962E);
  border-radius:5px;
}

input,
textarea{
  width:100%;
  box-sizing:border-box;
  margin-top:14px;
  padding:14px;
  border-radius:12px;
  border:2px solid #D4AF37;
  background:#FFF8EE;
  color:#2A1414;
  font-size:16px;
  font-family:"Georgia",serif;
}

textarea{
  resize:none;
}

.stars{
  margin:20px 0 8px;
  display:flex;
  justify-content:center;
  gap:8px;
}

.star{
  font-size:38px;
  color:#7A6A42;
  cursor:pointer;
  transition:.15s;
}

.star.active{
  color:#FFD700;
  text-shadow:0 0 12px rgba(255,215,0,.55);
}

button{
  transition:.12s;
}

button:active{
  transform:scale(.95);
}

#sendBtn,
.reset-btn{
  width:100%;
  margin-top:16px;
  padding:14px;
  border:none;
  border-radius:12px;
  font-size:16px;
  font-weight:bold;
  cursor:pointer;
}

#sendBtn{
  background:linear-gradient(135deg,#FFD700,#D4AF37);
  color:#3B1F1F;
}

.reset-btn{
  background:#5A2B2B;
  color:#F5E6C8;
  border:1px solid rgba(212,175,55,.5);
}

#popupOverlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:9999;
  align-items:center;
  justify-content:center;
}

.popupBox{
  background:linear-gradient(180deg,#3B1F1F,#2A1414);
  color:#F5E6C8;
  padding:28px;
  border-radius:18px;
  border:2px solid #D4AF37;
  max-width:340px;
  width:85%;
  text-align:center;
  box-shadow:0 25px 50px rgba(0,0,0,.4);
}

.popupIcon{
  font-size:44px;
  margin-bottom:10px;
}

#popupMessage{
  line-height:1.8;
  font-size:16px;
  margin:0;
}

#popupOkBtn{
  margin-top:20px;
  padding:12px 24px;
  border:none;
  border-radius:12px;
  font-weight:bold;
  background:linear-gradient(135deg,#FFD700,#D4AF37);
  color:#2A1414;
  cursor:pointer;
}

.star-help{
  margin:18px 0 0;
  color:#EAD9B0;
  font-size:14px;
}

.error-page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#3B1F1F;
  font-family:"Georgia",serif;
  padding:30px;
}

.error-page h2{
  color:#3B1F1F;
}

.loading-screen{
  position:fixed;
  inset:0;
  background:radial-gradient(circle at top,#FFF6E5,#F4EFEA);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.loading-card{
  background:linear-gradient(180deg,#3B1F1F,#2A1414);

  width:90%;
  max-width:340px;

  min-height:170px;

  padding:28px 30px;

  border-radius:18px;
  border:2px solid #D4AF37;

  display:flex;
  flex-direction:column;

  justify-content:center;
  align-items:center;

  text-align:center;

  color:#F5E6C8;

  box-sizing:border-box;

  box-shadow:
    0 0 0 4px rgba(212,175,55,0.2),
    0 25px 50px rgba(0,0,0,0.4);
}

.loading-text{
  margin:0;

  font-size:16px;

  color:#F5E6C8;

  display:flex;

  justify-content:center;

  align-items:center;
}

.loading-card h1{
  color:#FFD700;

  margin:0;

  margin-bottom:10px;
}

.loading-text::after{
  content:"";
  animation:dots 1.2s steps(3,end) infinite;
}

@keyframes dots{
  0%{content:"";}
  33%{content:".";}
  66%{content:"..";}
  100%{content:"...";}
}