/* Meeting Bingo — Stylesheet */
:root {
  --bg: #0a0a0f;
  --surface: #12121e;
  --card: #1a1a2e;
  --accent: #e94560;
  --accent-dim: #0f3460;
  --text: #e0e0e0;
  --text-dim: #888;
  --border: #2a2a3e;
  --bingo: #e94560;
  --checked: #e94560;
  --checked-bg: #2a1525;
  --free: #0f3460;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

/* Header */
header {
  text-align: center;
  padding: 30px 0 20px;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
}

.lang-switch {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s;
}

.lang-switch:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.subtitle {
  color: var(--text-dim);
  font-size: 1rem;
  margin-top: 8px;
}

/* How to play */
.how-to {
  background: var(--surface);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

.how-to h3 {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-align: center;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: bold;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Meeting selector */
.meeting-selector {
  text-align: center;
  margin: 30px 0;
}

.meeting-selector h2 {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.meeting-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.meeting-type-btn {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
  padding: 14px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 140px;
}

.meeting-type-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.meeting-type-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* Bingo card */
.bingo-card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  border: 2px solid var(--border);
  margin: 20px 0;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-header span {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent);
}

.btn-small {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-small:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Bingo grid */
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.bingo-cell {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 8px 4px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  word-break: break-word;
  position: relative;
  line-height: 1.3;
}

.bingo-cell:hover {
  border-color: var(--accent-dim);
}

.bingo-cell.checked {
  background: var(--checked-bg);
  border-color: var(--checked);
  color: var(--checked);
  text-decoration: line-through;
  opacity: 0.7;
}

.bingo-cell.checked::after {
  content: '×';
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.7rem;
  color: var(--checked);
}

.bingo-cell.free {
  background: var(--free);
  color: var(--accent);
  font-weight: bold;
  font-size: 0.8rem;
  cursor: default;
}

.bingo-cell.free.checked::after {
  display: none;
}

.bingo-cell.bingo-line {
  border-color: var(--bingo);
  box-shadow: 0 0 12px rgba(233, 69, 96, 0.4);
}

/* BINGO letters */
.bingo-letters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.bingo-letter {
  text-align: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent);
}

/* Result */
.bingo-result {
  text-align: center;
  padding: 30px 0;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.bingo-stamp {
  font-size: 3rem;
  font-weight: 900;
  color: var(--bingo);
  letter-spacing: 4px;
  animation: bounce 0.5s ease;
  text-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
}

@keyframes bounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

#bingo-time {
  color: var(--text-dim);
  font-size: 1rem;
  margin: 12px 0;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Premium section */
.premium-section {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px;
  margin: 30px 0;
  text-align: center;
  border: 1px solid var(--border);
}

.premium-section h2 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.premium-section p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.premium-price {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--accent);
  margin: 12px 0;
}

.wallet-display {
  margin-top: 16px;
  text-align: left;
}

.wallet-display p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.wallet-display code {
  display: block;
  word-break: break-all;
  font-size: 0.8rem;
  padding: 12px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--accent);
}

.qr-placeholder {
  margin-top: 12px;
  text-align: center;
}

/* Features */
.features {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0;
}

.feature {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

/* Speed toggle button */
.btn-speed {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

/* Speed bingo grid (3x3) */
.bingo-grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

.bingo-grid-3 .bingo-cell {
  min-height: 100px;
  font-size: 0.8rem;
}

.bingo-grid-3 .bingo-cell.free {
  font-size: 0.9rem;
}

/* Letters for 3x3 */
.bingo-grid-3 ~ .bingo-letters,
.bingo-letters {
  grid-template-columns: repeat(5, 1fr);
}

/* Personality section */
.personality-section {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  border: 1px solid var(--accent-dim);
  animation: fadeIn 0.5s ease;
}

.personality-section h3 {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-align: center;
}

.personality-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.personality-emoji {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.personality-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 4px;
}

.personality-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  .bingo-cell { min-height: 60px; font-size: 0.65rem; padding: 4px 2px; }
  .bingo-grid-3 .bingo-cell { min-height: 80px; font-size: 0.7rem; }
  .meeting-type-btn { min-width: 120px; padding: 10px 16px; font-size: 0.85rem; }
  .bingo-stamp { font-size: 2.2rem; }
  .step { font-size: 0.82rem; }
  .personality-card { flex-direction: column; text-align: center; }
  .personality-emoji { font-size: 2rem; }
  .card-header { flex-wrap: wrap; gap: 8px; }
}
