* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  background: #111;
  color: #eee;
  display: flex;
  justify-content: center;
  padding: 30px;
}

.app {
  max-width: 900px;
  width: 100%;
}

.layout {
  display: flex;
  gap: 30px;
}

.panel {
  background: #1c1c1c;
  padding: 20px;
  border-radius: 12px;
  flex: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.04);
}

input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;

  background: #f7f7f7;
  color: #111;

  border: none;
  border-radius: 10px;

  font-size: 1rem;
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.15),
    0 6px 14px rgba(0,0,0,0.35);

  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease,
    background 0.15s ease;
}

/* Al hacer foco */
input:focus {
  outline: none;
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.12),
    0 10px 22px rgba(0,0,0,0.45);
}

/* Placeholder más suave */
input::placeholder {
  color: #777;
}

#taskList{
  list-style: none;
  padding-left: 0;
  margin: 12px 0 10px;
}

#taskList li{
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#taskList li::before{
  content: "•";
  color: #ff4d4d;
  font-size: 18px;
  line-height: 0;
}

button {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.danger {
  background: linear-gradient(135deg, #d12c2c, #7a1414);
  color: white;
}

/* Botones del panel izquierdo (Añadir / Jugar) */
.btn {
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

/* Añadir: “limpio” pero con estilo */
.btn-primary {
  background: linear-gradient(180deg, #f6f6f6, #dfdfdf);
  color: #111;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);
  filter: brightness(1.03);
}

.btn-primary:active {
  transform: translateY(0px) scale(0.99);
}

/* Jugar: más “peligro” y más presencia */
.btn-play {
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.18);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn-play:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-play:active {
  transform: translateY(0px) scale(0.98);
}

.btn:disabled{
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

canvas {
  width: min(420px, 100%);
  height: auto;
  display: block;
  margin: auto;
  background: #0d0d1a;
  border-radius: 50%;
  box-shadow:
    0 0 0 5px rgba(255,255,255,0.07),
    0 0 0 10px rgba(255,255,255,0.03),
    0 0 50px rgba(255, 80, 80, 0.25),
    0 20px 60px rgba(0,0,0,0.7);
}

.result{
  min-height: 28px;
  margin: 12px 0 6px;
  font-size: 1.05rem;
  color: #fff;
}

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

.buttons button {
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

/* ---------- ACEPTAR ---------- */
#accept {
  background: linear-gradient(135deg, #ff4d4d, #b30000);
  color: white;
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.35);
}

#accept:hover:enabled {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(255, 0, 0, 0.55);
}

#accept:active:enabled {
  transform: scale(0.96);
}

/* ---------- CANCELAR ---------- */
#cancel {
  background: linear-gradient(135deg, #444, #222);
  color: #ddd;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

#cancel:hover:enabled {
  background: linear-gradient(135deg, #555, #333);
  transform: scale(0.95);
}

#cancel:active:enabled {
  transform: scale(0.9);
}

/* ---------- DESHABILITADOS ---------- */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- EFECTO "NO 😈" ---------- */
#cancel:disabled {
  background: linear-gradient(135deg, #111, #000);
  color: #ff4d4d;
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.8);
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.3s infinite;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding: 14px 18px;
  margin-bottom: 18px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}


.auth h2{
  margin: 0 0 8px;
}

.muted{
  margin: 0 0 12px;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.authButtons{
  display:flex;
  gap:10px;
  margin-top: 6px;
}

.authButtons .btn{
  width: 100%;
  margin-top: 0;
}

.btn-ghost{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #eee;
  border-radius: 10px;
  padding: 10px 12px;
}
.btn-ghost:hover{
  border-color: rgba(255,255,255,0.3);
}

.btn-secondary{
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  color: #eee;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.btn-secondary:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);
}

.msg{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
}
.msg.error{
  border-color: rgba(255,77,77,0.35);
  color: #ffd1d1;
}
.msg.ok{
  border-color: rgba(110,255,150,0.25);
  color: #d4ffe2;
}

/* Responsive simple */
@media (max-width: 860px){
  .layout{ flex-direction: column; }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.12);
  border-radius: 1px;
}

.account{
  display:flex;
  gap:10px;
  align-items:center;
}

.lang-toggle {
  display: flex;
  gap: 4px;
  align-items: center;
}

.lang-btn {
  width: auto;
  margin-top: 0;
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lang-btn--active {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
}

.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
}

.modal__card{
  position: relative;
  width: min(520px, calc(100% - 24px));
  background: #1c1c1c;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  z-index: 1;
}

.modal__header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.iconBtn{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: #eee;
  cursor: pointer;
}
.iconBtn:hover{
  border-color: rgba(255,255,255,0.25);
}

.tabRow{
  display:flex;
  gap:10px;
  margin: 10px 0 12px;
}

.tab{
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #eee;
  cursor: pointer;
  font-weight: 700;
}
.tab--active{
  background: linear-gradient(180deg, #f6f6f6, #dfdfdf);
  color: #111;
  border-color: transparent;
}

.modal__body .btn{
  margin-top: 10px;
}

.modal[hidden] {
  display: none !important;
}





