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

body{
  margin:0;
  min-height:100vh;
  font-family:'Press Start 2P', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:linear-gradient(135deg,#fff7ff,#ffeede);
  color:#fff4ff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding:12px;
}

.app-frame{
  width:100%;
  max-width:820px;
  background:linear-gradient(145deg,#3b154e,#241232);
  border-radius:20px;
  border:4px solid #f9a826;
  box-shadow:
    0 0 0 4px #31113f,
    0 18px 0 #150719,
    0 22px 30px rgba(0,0,0,0.8);
  padding:14px 12px 16px;
  position:relative;
  overflow:hidden;
}

.app-frame::before{
  content:"";
  position:absolute;
  inset:8px;
  border-radius:14px;
  border:2px dashed rgba(255,255,255,0.16);
  pointer-events:none;
}

header{
  text-align:center;
  margin-bottom:6px;
}

header h1{
  font-size:16px;
  letter-spacing:3px;
  margin:4px 0;
  color:#ffe0ff;
  text-shadow:2px 2px 0 #000,0 0 12px #ff7b36;
}

.subtitle{
  font-family:'VT323', monospace;
  font-size:16px;
  color:#f9c3ff;
}

main{
  font-family:'VT323', monospace;
  font-size:18px;
}

.hidden{display:none;}

.screen{
  padding:10px 8px;
}

/* Start screen */
.intro-text{
  color:#ffdfff;
  margin-bottom:12px;
}

input[type="text"]{
  font-family:'VT323', monospace;
  font-size:20px;
  padding:6px 8px;
  border-radius:10px;
  border:3px solid #f9a826;
  background:#190b24;
  color:#fff;
  width:100%;
  max-width:320px;
  box-shadow:0 0 0 3px #8041ff;
}

input::placeholder{
  color:#b48ad4;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-top:10px;
  padding:10px 14px;
  border-radius:14px;
  border:3px solid #000;
  background:linear-gradient(145deg,#ff9c2b,#ffcf57);
  color:#3a1000;
  cursor:pointer;
  font-family:'Press Start 2P',system-ui;
  font-size:11px;
  letter-spacing:1px;
  text-transform:uppercase;
  box-shadow:0 4px 0 #b56000,0 6px 14px rgba(0,0,0,0.6);
  transition:transform .12s ease, box-shadow .12s ease;
}

.btn:hover{
  transform:translateY(-1px) scale(1.05);
  box-shadow:0 6px 0 #b56000,0 10px 18px rgba(0,0,0,0.7);
}

.btn:active{
  transform:translateY(1px) scale(0.96);
  box-shadow:0 2px 0 #b56000,0 4px 10px rgba(0,0,0,0.6);
}

.warn{
  color:#ff8088;
  margin-top:6px;
}

/* Game HUD */
.hud{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:6px;
}

.hud-left{
  color:#ffe9ff;
  font-size:16px;
}

.lives{
  font-size:22px;
  color:#ff6b6b;
  text-shadow:0 0 8px #ff6b6b;
}

/* Progress bar */
.progress-wrapper{
  margin-bottom:10px;
}

.progress-text{
  font-size:16px;
  color:#f3cdfb;
  margin-bottom:3px;
}

.progress-bar{
  width:100%;
  height:12px;
  border-radius:999px;
  background:#1e0e28;
  border:2px solid #ff9c2b;
  overflow:hidden;
}

.progress-fill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#ff9c2b,#ff7ee5,#ffeb57);
  box-shadow:0 0 14px rgba(255,197,90,0.8);
  transition:width .25s ease-out;
}

/* Word panel */
.word-panel{
  margin:10px 0 12px;
  border-radius:16px;
  border:3px solid #ff9c2b;
  background:linear-gradient(135deg,#57206f,#2a1038);
  padding:10px 8px;
  box-shadow:inset 0 0 0 2px #140314;
}

.word-label{
  font-size:14px;
  color:#ffd3ff;
}

.word-display{
  font-size:32px;
  margin-top:4px;
  color:#fff7ff;
  text-shadow:3px 3px 0 #000,0 0 18px #ff9c2b;
}

/* choice buttons */
.choice-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin-bottom:10px;
}

.choice-btn{
  width:100%;
  padding:10px 8px;
  border-radius:14px;
  border:3px solid #000;
  background:linear-gradient(145deg,#7b3bff,#ff7b36);
  color:#ffffff;
  cursor:pointer;
  font-family:'Press Start 2P',system-ui;
  font-size:11px;
  letter-spacing:1px;
  box-shadow:0 4px 0 #2b1039,0 7px 16px rgba(0,0,0,0.7);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.choice-btn:hover{
  transform:translateY(-1px) scale(1.04);
  box-shadow:0 6px 0 #2b1039,0 11px 20px rgba(0,0,0,0.75);
  filter:brightness(1.05);
}

.choice-btn:active{
  transform:translateY(1px) scale(0.96);
  box-shadow:0 2px 0 #2b1039,0 4px 10px rgba(0,0,0,0.7);
}

/* Feedback */
.feedback{
  min-height:20px;
  font-size:16px;
  margin-bottom:2px;
}

.feedback.ok{
  color:#9dff7b;
  text-shadow:0 0 10px #9dff7b;
}

.feedback.bad{
  color:#ff727f;
  text-shadow:0 0 10px #ff727f;
}

.explanation{
  min-height:30px;
  font-size:16px;
  color:#ffd3ff;
}

/* End message */
.end-box{
  margin-top:10px;
  padding:8px;
  border-radius:12px;
  border:2px dashed #ffd057;
  background:#2b1437;
  color:#ffeac1;
  font-size:16px;
}

footer{
  margin-top:8px;
  font-family:'VT323',monospace;
  font-size:14px;
  color:#f3cdfb;
  text-align:center;
}

@media(min-width:640px){
  .choice-grid{
    grid-template-columns:repeat(3,1fr);
  }
  .word-display{
    font-size:40px;
  }
}

/* Centrado visual para EL ACENTO LUMINOSO */
header, .subtitle, .intro-text, .progress-wrapper, .word-panel,
.feedback, .explanation, footer, #startScreen, #gameScreen {
  text-align: center;
}

.hud{
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.choice-grid{
  justify-items: center;
}
