:root {
  --bg: #0e0f14;
  --panel: #151824;
  --text: #e6e9f0;
  --muted: #aab1c4;
  --accent: #6c8cff;
  --accent-2: #55d6be;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 500px at 20% 0%, #121522, #0b0c10);
  color: var(--text);
}

.container {
  max-width: 640px;
  margin: 32px auto;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  backdrop-filter: blur(6px);
}

header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.titles h1 { margin: 0; font-size: 22px; }
.subtitle { margin: 4px 0 0; color: var(--muted); }

.composer { display: flex; gap: 8px; margin: 12px 0 8px; }
#new-task {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
#new-task::placeholder { color: #8390a8; }

button {
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
}
button.secondary { background: rgba(255,255,255,0.08); color: var(--text); }
button.danger { background: var(--danger); }

.list { list-style: none; margin: 12px 0 0; padding: 0; }
.item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  margin-bottom: 8px;
}
.item label { flex: 1; }
.item.completed label { color: var(--muted); text-decoration: line-through; }
.row { display: flex; gap: 8px; }

footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.stats { color: var(--muted); }

@media (max-width: 640px) {
  .container { margin: 12px; padding: 16px; }
}

/* Wallet modal */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); z-index: 1000; }
.modal.open { display: flex; }
.modal-content {
  width: 92%; max-width: 420px; padding: 16px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.12);
}
.modal-content h2 { margin: 0 0 12px; font-size: 18px; }
.wallet-list { display: grid; gap: 10px; }
.wallet-option { display: flex; align-items: center; gap: 10px; justify-content: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.08); color: var(--text); }
.wallet-option.disabled { opacity: 0.5; cursor: not-allowed; }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 12px; }

/* Wallet icons */
.wallet-icon { width: 20px; height: 20px; border-radius: 6px; display: inline-block; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }
.icon-metamask { background: linear-gradient(140deg, #f6851b, #ffa86b); }
.icon-coinbase { background: #0052ff; }
.icon-farcaster { background: #8b5cf6; }

/* Game container */
#game-container { margin: 14px 0 8px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.godot-root { min-height: 240px; display: flex; align-items: center; justify-content: center; }
.game-note { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* Iframe style when using HTML export */
#godot-frame {
  width: 100%;
  min-height: 520px;
  border: none;
  background: #111;
}