:root{
  /* Colores base (ajustados a tu web) */
  --primary: #54595F;
  --accent: #54595F;
  --bg: #ffffff;

  --surface: rgba(0,0,0,.04);
  --surface2: rgba(0,0,0,.06);

  --text: #7A7A7A;
  --muted: rgba(84,89,95,.7);

  --danger: #b00020;

  --radius: 18px;
  --shadow: 0 18px 40px rgba(0,0,0,.12);
  --ring: 0 0 0 4px rgba(84,89,95,.18);
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(233,230,237,.9), transparent 60%),
    radial-gradient(700px 500px at 90% 30%, rgba(233,230,237,.7), transparent 55%),
    var(--bg);
}
/* Input con borde siempre visible */
.field{
  width: 100%;
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 2px solid rgba(84,89,95,.35); /* visible siempre */
  background: rgba(255,255,255,.85);
  color: var(--primary);
  outline: none;
}

.field::placeholder{
  color: rgba(122,122,122,.9);
}

.field:focus{
  border-color: rgba(84,89,95,.7);
  box-shadow: var(--ring);
}

.app{
  width:min(980px, 92vw);
  margin: 32px auto;
  display:flex;
  flex-direction:column;
  gap: 16px;
}

.top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  background:#e9e6ed;
  padding:16px;
  border-radius:var(--radius);
}

h1{
  margin:0;
  color: var(--primary);
  font-size: clamp(26px, 3vw, 38px);
}

.subtitle{
  margin-top:6px;
  color: var(--muted);
}

.score{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.pill{
  background: var(--surface);
  border-radius:999px;
  padding:8px 14px;
  display:flex;
  gap:8px;
  align-items:center;
}

.panel{
  background: white;
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}

.arena{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:14px;
}

.card{
  background: var(--surface);
  border-radius: var(--radius);
  padding:14px;
}

.pick{
  margin-top:10px;
  padding:20px;
  border-radius:14px;
  text-align:center;
  background: var(--surface2);
}

.result{
  margin-top:14px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.actions{
  display:flex;
  gap:10px;
}

.btn{
  border:none;
  border-radius:999px;
  padding:10px 16px;
  cursor:pointer;
  background:#e9e6ed;
  color:#333;
  font-weight:600;
}

.btn-danger{
  background:#333;
  color:#fff;
}

.choices{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.choice{
  display:flex;
  align-items:center;
  gap: 12px;

  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.10);
  cursor:pointer;

  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
}

.choice:hover{
  transform: translateY(-1px);
  border-color: rgba(84,89,95,.45);
  background: rgba(255,255,255,.95);
}

.choice:focus-visible{
  outline:none;
  box-shadow: 0 10px 24px rgba(0,0,0,.08), var(--ring);
}
.icon{
  width: 42px;
  height: 42px;
  display:grid;
  place-items:center;

  color: var(--primary);
  background: rgba(233,230,237,.75);
  border: 1px solid rgba(84,89,95,.18);
  border-radius: 14px;
}

.icon svg{
  width: 24px;
  height: 24px;
}
.txt{
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.foot{
  margin-top:20px;
  background:#333333;
  color:#fff;
  padding:12px;
  border-radius:var(--radius);
  font-size:14px;
  text-align:center;
}

@media(max-width:700px){
  .arena{grid-template-columns:1fr}
  .choices{grid-template-columns:1fr}
}
@media(max-width:700px){
  .arena{grid-template-columns:1fr}
  .choices{grid-template-columns:1fr}
}

/* ===== Estados del juego (suaves, visibles) ===== */
:root{
  --win: #6f8f7a;   /* verde grisáceo */
  --lose:#9a6b6b;   /* rojo apagado */
  --draw:#6f7f8f;   /* azul grisáceo */
}

/* Resalta las cajas de elección */
.pick.win{
  border: 2px solid rgba(111,143,122,.65) !important;
  background: rgba(111,143,122,.14) !important;
}
.pick.lose{
  border: 2px solid rgba(154,107,107,.65) !important;
  background: rgba(154,107,107,.14) !important;
}
.pick.draw{
  border: 2px solid rgba(111,127,143,.65) !important;
  background: rgba(111,127,143,.14) !important;
}

/* Si tu layout aplica el fondo en un elemento interno, cubrimos también lo de dentro */
.pick.win *{ color: var(--primary) !important; }
.pick.lose *{ color: var(--primary) !important; }
.pick.draw *{ color: var(--primary) !important; }

/* Mensaje "Ganaste / Perdiste / Empate" */
.message.win{ color: var(--win) !important; font-weight:700; }
.message.lose{ color: var(--lose) !important; font-weight:700; }
.message.draw{ color: var(--draw) !important; font-weight:700; }
