-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
264 lines (239 loc) · 13.5 KB
/
index.html
File metadata and controls
264 lines (239 loc) · 13.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BinGoo!</title>
<link rel="icon" type="image/png" href="favicon.png">
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Dela+Gothic+One&family=Outfit:wght@300;500;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/components.css">
<link rel="stylesheet" href="css/toast.css">
<link rel="stylesheet" href="css/animations.css">
<link id="theme-style" rel="stylesheet" href="css/themes/metal.css">
</head>
<body>
<div class="app-container">
<!-- TOP CONTROLS -->
<div class="top-controls" style="position: absolute; top: 1rem; right: 1rem; z-index: 50;">
<button id="open-settings" class="btn-icon settings-trigger" aria-label="Configuración" title="Configuración">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"/>
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>
</svg>
</button>
</div>
<!-- Celebration Overlay -->
<div id="celebration-overlay" class="celebration-overlay hidden" aria-hidden="true">
<h1 class="celebration-title" aria-label="Celebración">¡BINGO!</h1>
<div class="celebration-details"></div>
<button id="btn-close-celebration" class="btn-primary" style="margin-top: 2rem; z-index: 1000;">Cerrar</button>
<div class="fireworks-bg"></div>
<canvas id="confetti-canvas" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1;"></canvas>
</div>
<!-- Main Game Area -->
<main class="game-layout">
<!-- 80% Tablero -->
<section id="board-section" class="board-container" aria-label="Tablero de Bingo">
<div id="board-grid" class="bingo-grid">
<!-- Numbers 1-90 generated via JS -->
</div>
</section>
<!-- 20% Bombo -->
<section id="cage-section" class="cage-container" aria-label="BinGoo!">
<header class="section-header">
<h2>BinGoo!</h2>
</header>
<!-- 3D Drum Stage -->
<div id="drum-stage" class="drum-stage">
<div id="drum" class="drum">
<!-- Sphere generated by JS -->
</div>
</div>
<div class="current-draw">
<span class="draw-label">ÚLTIMO NÚMERO</span>
<div id="current-ball" class="ball sphere">--</div>
</div>
<div class="history-track" id="history-track">
<!-- History balls -->
</div>
<!-- Control Buttons -->
<div class="controls-bar">
<button id="btn-play-pause" class="btn-primary">
<span class="btn-icon-play">▶</span>
<span class="btn-text">JUGAR</span>
</button>
<button id="btn-add-player" class="btn-icon" aria-label="Añadir jugador" title="Añadir jugador">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/>
<circle cx="9" cy="7" r="4"/>
<line x1="19" y1="8" x2="19" y2="14"/>
<line x1="22" y1="11" x2="16" y2="11"/>
</svg>
</button>
<button id="btn-reset" class="btn-icon" aria-label="Reiniciar juego" title="Reiniciar juego">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/>
<path d="M3 3v5h5"/>
</svg>
</button>
</div>
</section>
</main>
<!-- Players Bar (Bottom or Side - Prompt implies section, I'll put it at bottom for standard layout or side.
Prompt mentions "sección players-bar". I'll put it as a footer-like bar or sidebar.
Given the 2fr/1fr layout is for board/bombo, the players bar fits well below or aside.
I'll style it as a bottom interactive dock for "Avant-Garde" feel.) -->
<aside id="players-bar" class="players-dock">
<!-- Players will be injected by JS -->
</aside>
</div>
<!-- MODALS - Outside app-container to avoid transform context issues -->
<!-- ADD PLAYER MODAL -->
<div id="add-player-modal" class="settings-modal hidden">
<div class="modal-backdrop"></div>
<div class="modal-content glass-panel" style="width: min(400px, 90vw);">
<header class="modal-header">
<h2 class="modal-title">AÑADIR JUGADOR</h2>
<button id="close-add-player" class="btn-close" aria-label="Cerrar">×</button>
</header>
<div class="modal-body">
<div class="form-group">
<label for="player-name">Nombre del jugador</label>
<input type="text" id="player-name" class="form-input" placeholder="Ej: María García" autocomplete="off">
</div>
<div class="form-group">
<label for="player-cards">Número de cartones</label>
<input type="number" id="player-cards" class="form-input" min="1" max="10" value="1">
</div>
</div>
<footer class="modal-footer">
<button id="btn-confirm-add-player" class="btn-primary">AÑADIR</button>
</footer>
</div>
</div>
<!-- CONFIG MODAL -->
<div id="settings-modal" class="settings-modal hidden">
<div class="modal-backdrop"></div>
<div class="modal-content glass-panel">
<header class="modal-header">
<h2 class="modal-title">SYSTEM // CONFIG</h2>
<button id="close-settings" class="btn-close" aria-label="Close">×</button>
</header>
<div class="modal-body">
<!-- THEME SECTION -->
<section class="settings-group">
<h3 class="group-title">VISUAL THEME</h3>
<div class="theme-grid">
<!-- Injected by JS -->
</div>
</section>
<!-- GAME MODE -->
<section class="settings-group">
<h3 class="group-title">GAME MODE</h3>
<div class="control-row mode-switch">
<span class="label">MANUAL</span>
<label class="switch" for="setting-mode">
<span class="sr-only">Automático</span>
<input type="checkbox" id="setting-mode">
<span class="slider"></span>
</label>
<span class="label">AUTO</span>
</div>
<div id="timer-control" class="control-row disabled">
<label for="setting-timer">PACE</label>
<input type="range" id="setting-timer" min="1" max="10" step="1">
<span id="setting-timer-val" class="value-display">3s</span>
</div>
</section>
<!-- AUDIO -->
<section class="settings-group">
<h3 class="group-title">AUDIO</h3>
<div class="control-row">
<label for="setting-volume">MASTER VOL</label>
<input type="range" id="setting-volume" min="0" max="100">
</div>
</section>
<!-- PERFORMANCE -->
<section class="settings-group">
<h3 class="group-title">RENDIMIENTO</h3>
<div class="control-row" style="flex-direction: column; align-items: stretch; gap: 0.5rem;">
<label for="setting-performance" class="label">NIVEL DE DETALLE</label>
<select id="setting-performance" class="select-input" style="background: var(--color-panel); color: var(--color-text-main); border: 1px solid var(--color-border); padding: 0.5rem; border-radius: 4px; font-family: var(--font-mono);">
<option value="high">ALTO (Todas las bolas)</option>
<option value="low">BAJO (Limitado / 10)</option>
<option value="disabled">DESACTIVADO (Estático)</option>
</select>
</div>
</section>
<!-- SCREEN LIMITS -->
<section class="settings-group">
<h3 class="group-title">LÍMITES DE PANTALLA</h3>
<div class="control-row">
<label for="setting-max-height">ALTURA PANTALLA</label>
<input type="range" id="setting-max-height" min="50" max="100" step="1" value="100">
<span id="setting-max-height-val" class="value-display">100%</span>
</div>
</section>
<!-- GAME SETTINGS -->
<section class="settings-group">
<h3 class="group-title">AJUSTES DE JUEGO</h3>
<div class="control-row">
<label for="setting-max-lines">MÁX. LÍNEAS</label>
<input type="range" id="setting-max-lines" min="0" max="10" step="1" value="1">
<span id="setting-max-lines-val" class="value-display">1</span>
</div>
<div class="control-row">
<label for="setting-max-bingos">MÁX. BINGOS</label>
<input type="range" id="setting-max-bingos" min="0" max="10" step="1" value="1">
<span id="setting-max-bingos-val" class="value-display">1</span>
</div>
<p class="setting-hint">0 = Sin límite (∞)</p>
</section>
</div>
<footer class="modal-footer">
<div class="version-badge">v1.09</div>
<button id="btn-print" class="btn-secondary">PRINT CARDS</button>
<button id="btn-reset-system" class="btn-danger">RESET TOTAL</button>
</footer>
</div>
</div>
<!-- CONFIRM MODAL (styled replacement for browser confirm) -->
<div id="confirm-modal" class="confirm-modal">
<div class="confirm-content">
<div class="confirm-icon">⚠️</div>
<h3 class="confirm-title" id="confirm-title">Confirmar</h3>
<p class="confirm-message" id="confirm-message">¿Estás seguro?</p>
<div class="confirm-buttons">
<button id="confirm-no" class="btn-confirm btn-confirm-no">CANCELAR</button>
<button id="confirm-yes" class="btn-confirm btn-confirm-yes">ACEPTAR</button>
</div>
</div>
</div>
<!-- DIAGNOSTIC MODAL (TTS Errors) -->
<div id="diagnostic-modal" class="modal" aria-hidden="true" style="display: none;">
<div class="modal-content diagnostic-content-wrapper">
<header class="modal-header">
<div class="header-title-group">
<span class="warning-icon">⚠️</span>
<h2>Error de Voz (TTS)</h2>
</div>
<button class="btn-close" data-close-modal aria-label="Cerrar">×</button>
</header>
<div class="modal-body scrollable">
<div id="diagnostic-content">
<!-- Contenido dinámico insertado via JS -->
</div>
</div>
<footer class="modal-footer">
<button id="btn-copy-diagnostic" class="btn-secondary">Copiar información</button>
<button class="btn-primary" data-close-modal>Cerrar</button>
</footer>
</div>
</div>
<script type="module" src="js/app.js"></script>
</body>
</html>