valtech-components 4.0.482 → 4.0.484

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/esm2022/lib/components/organisms/mini-games/bubble-blitz-game.component.mjs +18 -9
  2. package/esm2022/lib/components/organisms/mini-games/chessimals-engine.mjs +109 -16
  3. package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +18 -9
  4. package/esm2022/lib/components/organisms/mini-games/christianity-card.component.mjs +270 -0
  5. package/esm2022/lib/components/organisms/mini-games/christianity-game.component.mjs +2277 -0
  6. package/esm2022/lib/components/organisms/mini-games/memory-game.component.mjs +18 -9
  7. package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +275 -9
  8. package/esm2022/lib/components/organisms/mini-games/simon-game.component.mjs +18 -9
  9. package/esm2022/lib/components/organisms/mini-games/types.mjs +1 -1
  10. package/esm2022/lib/directives/light-ripple.directive.mjs +57 -0
  11. package/esm2022/lib/version.mjs +2 -2
  12. package/esm2022/mini-games/public-api.mjs +34 -2
  13. package/esm2022/public-api.mjs +3 -1
  14. package/fesm2022/valtech-components-mini-games.mjs +34 -2
  15. package/fesm2022/valtech-components-mini-games.mjs.map +1 -1
  16. package/fesm2022/valtech-components.mjs +3047 -58
  17. package/fesm2022/valtech-components.mjs.map +1 -1
  18. package/lib/components/organisms/mini-games/bubble-blitz-game.component.d.ts +2 -0
  19. package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +3 -1
  20. package/lib/components/organisms/mini-games/christianity-card.component.d.ts +46 -0
  21. package/lib/components/organisms/mini-games/christianity-game.component.d.ts +177 -0
  22. package/lib/components/organisms/mini-games/memory-game.component.d.ts +2 -0
  23. package/lib/components/organisms/mini-games/simon-game.component.d.ts +2 -0
  24. package/lib/components/organisms/mini-games/types.d.ts +131 -1
  25. package/lib/directives/light-ripple.directive.d.ts +8 -0
  26. package/lib/version.d.ts +1 -1
  27. package/mini-games/public-api.d.ts +4 -0
  28. package/package.json +2 -1
  29. package/public-api.d.ts +2 -0
  30. package/src/lib/assets/games/christianity/card-symbol.svg +51 -0
  31. package/src/lib/assets/games/christianity/card-template-reference/front.html +114 -0
  32. package/src/lib/assets/games/christianity/card-template-reference/front.style.css +352 -0
  33. package/src/lib/assets/games/christianity/data/01-genesis.bible-reference-suggestions.csv +191 -0
  34. package/src/lib/assets/games/christianity/data/01-genesis.bible-verses.nbv-open.csv +170 -0
  35. package/src/lib/assets/games/christianity/data/01-genesis.cards.csv +281 -0
  36. package/src/lib/assets/games/christianity/data/01-genesis.cards.i18n.csv +281 -0
  37. package/src/lib/assets/games/christianity/data/01-genesis.cards.json +16453 -0
  38. package/src/lib/assets/games/christianity/data/01-genesis.unassigned-effects.csv +49 -0
  39. package/src/lib/assets/games/christianity/data/README.md +40 -0
  40. package/src/lib/assets/games/christianity/data/data-con-habilides.csv +273 -0
  41. package/src/lib/assets/games/christianity/data/habilidades-por-tipo.xlsx +0 -0
  42. package/src/lib/assets/games/christianity/data/listado-edicion.csv +281 -0
  43. package/src/lib/assets/games/christianity/editions/1/cards/.gitkeep +1 -0
  44. package/src/lib/assets/games/christianity/editions/1/cards/PLACEHOLDER.png +0 -0
  45. package/src/lib/assets/games/christianity/editions/README.md +34 -0
  46. package/src/lib/assets/games/christianity/icons/1-icon.png +0 -0
  47. package/src/lib/assets/games/christianity/icons/action.png +0 -0
  48. package/src/lib/assets/games/christianity/icons/character.png +0 -0
  49. package/src/lib/assets/games/christianity/icons/event.png +0 -0
  50. package/src/lib/assets/games/christianity/icons/leader.png +0 -0
  51. package/src/lib/assets/games/christianity/icons/offering.png +0 -0
  52. package/src/lib/assets/games/christianity/icons/place.png +0 -0
  53. package/src/lib/assets/games/christianity/icons/tool.png +0 -0
  54. package/src/lib/assets/games/christianity/icons/wisdom.png +0 -0
  55. package/src/lib/assets/games/christianity/sources/README.md +16 -0
  56. package/src/lib/assets/games/christianity/sources/spaonbv_vpl.txt +29102 -0
  57. package/src/lib/assets/games/christianity/sources/spaonbv_vpl.xml +29104 -0
  58. package/src/lib/assets/games/christianity/spaonbv.txt +52 -0
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, InjectionToken, makeEnvironmentProviders, APP_INITIALIZER, ErrorHandler, Injectable, DestroyRef, Inject, signal, computed, PLATFORM_ID, isDevMode, Optional, runInInjectionContext, effect, Pipe, TemplateRef, ViewContainerRef, input, Directive, EventEmitter, Component, Input, Output, ChangeDetectionStrategy, HostBinding, HostListener, SecurityContext, NgZone, ViewChild, ElementRef, ChangeDetectorRef, output, ContentChild, model, ViewEncapsulation, untracked, viewChild, Injector, isSignal } from '@angular/core';
2
+ import { inject, InjectionToken, makeEnvironmentProviders, APP_INITIALIZER, ErrorHandler, Injectable, DestroyRef, Inject, signal, computed, PLATFORM_ID, isDevMode, Optional, runInInjectionContext, effect, Pipe, TemplateRef, ViewContainerRef, input, Directive, ElementRef, Renderer2, HostListener, EventEmitter, Component, Input, Output, ChangeDetectionStrategy, HostBinding, SecurityContext, NgZone, ViewChild, ChangeDetectorRef, output, ContentChild, model, ViewEncapsulation, untracked, viewChild, Injector, isSignal } from '@angular/core';
3
3
  import { BehaviorSubject, throwError, Subject, map, distinctUntilChanged, filter as filter$1, take as take$1, firstValueFrom, of, from, EMPTY, Observable, interval, defer, timer, merge, concat, debounceTime, switchMap as switchMap$1, catchError as catchError$1, takeUntil, isObservable, forkJoin, race, tap as tap$1, Subscription, shareReplay as shareReplay$1 } from 'rxjs';
4
4
  import { catchError, switchMap, finalize, filter, take, timeout, map as map$1, tap, shareReplay, distinctUntilChanged as distinctUntilChanged$1, retry, debounceTime as debounceTime$1, takeUntil as takeUntil$1 } from 'rxjs/operators';
5
5
  import * as i1$3 from '@angular/common/http';
@@ -49,6 +49,7 @@ import { Capacitor } from '@capacitor/core';
49
49
  import { ImageCropperComponent } from 'ngx-image-cropper';
50
50
  import Compressor from 'compressorjs';
51
51
  import { Calendar } from 'vanilla-calendar-pro';
52
+ import { CdkDrag, CdkDragPlaceholder, CdkDragPreview, CdkDropList } from '@angular/cdk/drag-drop';
52
53
  import 'prismjs/components/prism-scss';
53
54
  import 'prismjs/components/prism-json';
54
55
  import { BrowserMultiFormatReader } from '@zxing/browser';
@@ -58,7 +59,7 @@ import fixWebmDuration from 'fix-webm-duration';
58
59
  * Current version of valtech-components.
59
60
  * This is automatically updated during the publish process.
60
61
  */
61
- const VERSION = '4.0.482';
62
+ const VERSION = '4.0.484';
62
63
 
63
64
  // Control de estado de refresco (singleton a nivel de módulo)
64
65
  let isRefreshing = false;
@@ -10117,6 +10118,61 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
10117
10118
  }]
10118
10119
  }], ctorParameters: () => [] });
10119
10120
 
10121
+ class LightRippleDirective {
10122
+ constructor() {
10123
+ this.host = inject(ElementRef);
10124
+ this.renderer = inject(Renderer2);
10125
+ }
10126
+ createRipple(event) {
10127
+ const element = this.host.nativeElement;
10128
+ const rect = element.getBoundingClientRect();
10129
+ const size = Math.max(rect.width, rect.height) * 1.55;
10130
+ const ripple = this.renderer.createElement('span');
10131
+ const x = event.clientX - rect.left - size / 2;
10132
+ const y = event.clientY - rect.top - size / 2;
10133
+ if (getComputedStyle(element).position === 'static') {
10134
+ this.renderer.setStyle(element, 'position', 'relative');
10135
+ }
10136
+ this.renderer.setStyle(element, 'overflow', 'hidden');
10137
+ this.renderer.setStyle(element, 'isolation', 'isolate');
10138
+ this.renderer.setStyle(element, 'touch-action', 'manipulation');
10139
+ this.renderer.setStyle(ripple, 'position', 'absolute');
10140
+ this.renderer.setStyle(ripple, 'left', `${x}px`);
10141
+ this.renderer.setStyle(ripple, 'top', `${y}px`);
10142
+ this.renderer.setStyle(ripple, 'width', `${size}px`);
10143
+ this.renderer.setStyle(ripple, 'height', `${size}px`);
10144
+ this.renderer.setStyle(ripple, 'border-radius', '999px');
10145
+ this.renderer.setStyle(ripple, 'pointer-events', 'none');
10146
+ this.renderer.setStyle(ripple, 'z-index', '1');
10147
+ this.renderer.setStyle(ripple, 'background', 'radial-gradient(circle, rgba(255,255,255,0.98) 0 0.16rem, rgba(191,219,254,0.9) 0.18rem 0.34rem, rgba(96,165,250,0.46) 0.36rem 23%, rgba(96,165,250,0.18) 38%, transparent 70%)');
10148
+ this.renderer.setStyle(ripple, 'box-shadow', '0 0 0.75rem rgba(255,255,255,0.85), 0 0 1.8rem rgba(96,165,250,0.52)');
10149
+ this.renderer.appendChild(element, ripple);
10150
+ ripple
10151
+ .animate([
10152
+ { opacity: 0.88, transform: 'scale(0.08)' },
10153
+ { opacity: 0.48, transform: 'scale(0.48)' },
10154
+ { opacity: 0, transform: 'scale(1)' },
10155
+ ], { duration: 680, easing: 'cubic-bezier(0.16, 0.84, 0.24, 1)' })
10156
+ .finished.finally(() => {
10157
+ if (ripple.parentNode === element) {
10158
+ this.renderer.removeChild(element, ripple);
10159
+ }
10160
+ });
10161
+ }
10162
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LightRippleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
10163
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: LightRippleDirective, isStandalone: true, selector: "[valLightRipple]", host: { listeners: { "pointerdown": "createRipple($event)" } }, ngImport: i0 }); }
10164
+ }
10165
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LightRippleDirective, decorators: [{
10166
+ type: Directive,
10167
+ args: [{
10168
+ selector: '[valLightRipple]',
10169
+ standalone: true,
10170
+ }]
10171
+ }], propDecorators: { createRipple: [{
10172
+ type: HostListener,
10173
+ args: ['pointerdown', ['$event']]
10174
+ }] } });
10175
+
10120
10176
  /**
10121
10177
  * Presets de botón por defecto provistos por la librería.
10122
10178
  *
@@ -61031,18 +61087,66 @@ const CHESSIMALS_BOT_PROFILES = [
61031
61087
  labelKey: 'chessimalsBotSentinel',
61032
61088
  descriptionKey: 'chessimalsBotSentinelBody',
61033
61089
  },
61090
+ {
61091
+ id: 'oracle',
61092
+ difficulty: 'hard',
61093
+ avatar: '🔮',
61094
+ labelKey: 'chessimalsBotOracle',
61095
+ descriptionKey: 'chessimalsBotOracleBody',
61096
+ },
61097
+ {
61098
+ id: 'ambusher',
61099
+ difficulty: 'hard',
61100
+ avatar: '🪤',
61101
+ labelKey: 'chessimalsBotAmbusher',
61102
+ descriptionKey: 'chessimalsBotAmbusherBody',
61103
+ },
61104
+ {
61105
+ id: 'locksmith',
61106
+ difficulty: 'hard',
61107
+ avatar: '🔐',
61108
+ labelKey: 'chessimalsBotLocksmith',
61109
+ descriptionKey: 'chessimalsBotLocksmithBody',
61110
+ },
61111
+ {
61112
+ id: 'storm',
61113
+ difficulty: 'hard',
61114
+ avatar: '🌩️',
61115
+ labelKey: 'chessimalsBotStorm',
61116
+ descriptionKey: 'chessimalsBotStormBody',
61117
+ },
61118
+ {
61119
+ id: 'matriarch',
61120
+ difficulty: 'hard',
61121
+ avatar: '👑',
61122
+ labelKey: 'chessimalsBotMatriarch',
61123
+ descriptionKey: 'chessimalsBotMatriarchBody',
61124
+ },
61125
+ {
61126
+ id: 'endgame',
61127
+ difficulty: 'hard',
61128
+ avatar: '⌛',
61129
+ labelKey: 'chessimalsBotEndgame',
61130
+ descriptionKey: 'chessimalsBotEndgameBody',
61131
+ },
61034
61132
  ];
61035
61133
  const BOT_STYLES = {
61036
- explorer: { advancement: 1.05, capture: 0.82, safety: 0.62, power: 0.8, center: 1.15, unlock: 1.05, reply: 0.7, randomness: 260, spread: 0.68 },
61037
- impulsive: { advancement: 0.9, capture: 1.45, safety: 0.48, power: 1.15, center: 0.8, unlock: 0.9, reply: 0.55, randomness: 290, spread: 0.62 },
61038
- runner: { advancement: 1.55, capture: 0.78, safety: 0.5, power: 0.95, center: 0.7, unlock: 1.1, reply: 0.55, randomness: 250, spread: 0.6 },
61039
- hunter: { advancement: 0.95, capture: 1.45, safety: 0.9, power: 1.05, center: 0.95, unlock: 0.95, reply: 1, randomness: 90, spread: 0.3 },
61040
- guardian: { advancement: 0.88, capture: 1, safety: 1.45, power: 0.85, center: 1.05, unlock: 1, reply: 1.15, randomness: 70, spread: 0.26 },
61041
- jumper: { advancement: 1.12, capture: 1, safety: 0.92, power: 1.42, center: 1.18, unlock: 1.08, reply: 0.95, randomness: 95, spread: 0.32 },
61042
- strategist: { advancement: 1.05, capture: 1.08, safety: 1.22, power: 1.08, center: 1.16, unlock: 1.1, reply: 1.25, randomness: 22, spread: 0.14 },
61043
- predator: { advancement: 0.98, capture: 1.68, safety: 1.02, power: 1.34, center: 1, unlock: 1, reply: 1.12, randomness: 28, spread: 0.16 },
61044
- sprinter: { advancement: 1.72, capture: 0.9, safety: 0.95, power: 1.08, center: 0.86, unlock: 1.18, reply: 1, randomness: 26, spread: 0.15 },
61045
- sentinel: { advancement: 0.9, capture: 1.12, safety: 1.72, power: 0.95, center: 1.28, unlock: 1.05, reply: 1.38, randomness: 18, spread: 0.12 },
61134
+ explorer: { advancement: 1.05, capture: 0.82, safety: 0.62, power: 0.8, center: 1.15, unlock: 1.05, reply: 0.7, randomness: 260, spread: 0.68, mobility: 0.75, trap: 0.5, endgame: 0.55 },
61135
+ impulsive: { advancement: 0.9, capture: 1.45, safety: 0.48, power: 1.15, center: 0.8, unlock: 0.9, reply: 0.55, randomness: 290, spread: 0.62, mobility: 0.85, trap: 0.62, endgame: 0.5 },
61136
+ runner: { advancement: 1.55, capture: 0.78, safety: 0.5, power: 0.95, center: 0.7, unlock: 1.1, reply: 0.55, randomness: 250, spread: 0.6, mobility: 0.72, trap: 0.45, endgame: 1.1 },
61137
+ hunter: { advancement: 0.95, capture: 1.45, safety: 0.9, power: 1.05, center: 0.95, unlock: 0.95, reply: 1, randomness: 90, spread: 0.3, mobility: 0.95, trap: 0.82, endgame: 0.76 },
61138
+ guardian: { advancement: 0.88, capture: 1, safety: 1.45, power: 0.85, center: 1.05, unlock: 1, reply: 1.15, randomness: 70, spread: 0.26, mobility: 0.82, trap: 0.72, endgame: 0.72 },
61139
+ jumper: { advancement: 1.12, capture: 1, safety: 0.92, power: 1.42, center: 1.18, unlock: 1.08, reply: 0.95, randomness: 95, spread: 0.32, mobility: 1.15, trap: 0.9, endgame: 0.82 },
61140
+ strategist: { advancement: 1.05, capture: 1.08, safety: 1.22, power: 1.08, center: 1.16, unlock: 1.1, reply: 1.25, randomness: 22, spread: 0.14, mobility: 1.08, trap: 1.06, endgame: 1 },
61141
+ predator: { advancement: 0.98, capture: 1.68, safety: 1.02, power: 1.34, center: 1, unlock: 1, reply: 1.12, randomness: 28, spread: 0.16, mobility: 1.02, trap: 1.18, endgame: 0.82 },
61142
+ sprinter: { advancement: 1.72, capture: 0.9, safety: 0.95, power: 1.08, center: 0.86, unlock: 1.18, reply: 1, randomness: 26, spread: 0.15, mobility: 0.95, trap: 0.78, endgame: 1.42 },
61143
+ sentinel: { advancement: 0.9, capture: 1.12, safety: 1.72, power: 0.95, center: 1.28, unlock: 1.05, reply: 1.38, randomness: 18, spread: 0.12, mobility: 0.86, trap: 1.04, endgame: 0.84 },
61144
+ oracle: { advancement: 1, capture: 1.12, safety: 1.42, power: 1.1, center: 1.18, unlock: 1.08, reply: 1.8, randomness: 8, spread: 0.08, mobility: 1.06, trap: 1.22, endgame: 1.08 },
61145
+ ambusher: { advancement: 0.9, capture: 1.48, safety: 1.08, power: 1.46, center: 1.05, unlock: 1.02, reply: 1.32, randomness: 14, spread: 0.1, mobility: 1.12, trap: 1.72, endgame: 0.92 },
61146
+ locksmith: { advancement: 0.88, capture: 1.04, safety: 1.55, power: 1.02, center: 1.48, unlock: 1.12, reply: 1.52, randomness: 12, spread: 0.1, mobility: 1.58, trap: 1.24, endgame: 0.86 },
61147
+ storm: { advancement: 1.18, capture: 1.38, safety: 0.98, power: 1.62, center: 1.08, unlock: 1.18, reply: 1.22, randomness: 18, spread: 0.13, mobility: 1.36, trap: 1.28, endgame: 1.02 },
61148
+ matriarch: { advancement: 0.96, capture: 1.18, safety: 1.64, power: 1.18, center: 1.22, unlock: 1.08, reply: 1.66, randomness: 10, spread: 0.08, mobility: 1.02, trap: 1.36, endgame: 1 },
61149
+ endgame: { advancement: 1.46, capture: 1, safety: 1.28, power: 1.04, center: 0.94, unlock: 1.08, reply: 1.44, randomness: 10, spread: 0.09, mobility: 0.98, trap: 1.02, endgame: 1.86 },
61046
61150
  };
61047
61151
  const DEFAULT_BOT_PROFILE_BY_DIFFICULTY = {
61048
61152
  easy: 'explorer',
@@ -61128,8 +61232,17 @@ function chooseChessimalsBotMove(state, difficulty = 'normal', profileId = DEFAU
61128
61232
  if (moves.length === 0)
61129
61233
  return undefined;
61130
61234
  const style = BOT_STYLES[profileId] ?? BOT_STYLES[DEFAULT_BOT_PROFILE_BY_DIFFICULTY[difficulty]];
61131
- const scored = moves
61132
- .map((move) => ({ move, score: scoreBotMoveWithLookahead(state, move, difficulty, style) }))
61235
+ const quickScored = moves
61236
+ .map((move) => ({ move, score: scoreBotMove(state, move, difficulty, style) }))
61237
+ .sort((a, b) => b.score - a.score);
61238
+ const lookaheadLimit = difficulty === 'hard' ? 32 : difficulty === 'normal' ? 24 : 0;
61239
+ const scored = quickScored
61240
+ .map((item, index) => ({
61241
+ move: item.move,
61242
+ score: index < lookaheadLimit
61243
+ ? scoreBotMoveWithLookahead(state, item.move, difficulty, style)
61244
+ : item.score,
61245
+ }))
61133
61246
  .sort((a, b) => b.score - a.score);
61134
61247
  if (difficulty === 'easy') {
61135
61248
  const playable = scored.filter((item) => item.score > -3000);
@@ -61330,7 +61443,7 @@ function getPowerMoves(state, piece, animal) {
61330
61443
  const directions = getPowerDirections(animal);
61331
61444
  const moves = [];
61332
61445
  for (const direction of directions) {
61333
- for (let distance = 1; distance <= 3; distance += 1) {
61446
+ for (let distance = 1; distance < state.boardSize; distance += 1) {
61334
61447
  const target = {
61335
61448
  row: piece.position.row + direction.row * distance,
61336
61449
  col: piece.position.col + direction.col * distance,
@@ -61391,7 +61504,7 @@ function getKangarooMoves(state, piece) {
61391
61504
  }
61392
61505
  return moves;
61393
61506
  }
61394
- function scoreBotMove(state, move, difficulty, style) {
61507
+ function scoreBotMove(state, move, difficulty, style, includeTacticalPressure = true) {
61395
61508
  const color = state.currentTurn;
61396
61509
  const targetPiece = move.capturesPieceId
61397
61510
  ? activePieces(state).find((piece) => piece.id === move.capturesPieceId)
@@ -61417,6 +61530,14 @@ function scoreBotMove(state, move, difficulty, style) {
61417
61530
  score += 14 * style.power;
61418
61531
  if (wouldUnlockPower(state, color, move.to))
61419
61532
  score += 90 * style.unlock;
61533
+ if (includeTacticalPressure && state.boardSize <= 6) {
61534
+ score += countPowerReachAfterMove(state, move, color) * (difficulty === 'hard' ? 8 : 4) * style.mobility;
61535
+ score += countProtectedThreatsAfterMove(state, move, color) * (difficulty === 'hard' ? 36 : 18) * style.trap;
61536
+ score += scoreEndgamePressure(state, move, color) * style.endgame;
61537
+ }
61538
+ else {
61539
+ score += scoreEndgamePressure(state, move, color) * style.endgame;
61540
+ }
61420
61541
  if (difficulty === 'hard' && isSquareVulnerableAfterMove(state, move)) {
61421
61542
  score -= (targetPiece ? 80 : 140) * style.safety;
61422
61543
  }
@@ -61447,7 +61568,7 @@ function scoreBotMoveWithLookahead(state, move, difficulty, style) {
61447
61568
  score += centerControl * (difficulty === 'hard' ? 18 : 10) * style.center;
61448
61569
  }
61449
61570
  const opponentBestReply = opponentMoves
61450
- .map((opponentMove) => scoreBotMove(afterMove, opponentMove, difficulty, style))
61571
+ .map((opponentMove) => scoreBotMove(afterMove, opponentMove, difficulty, style, false))
61451
61572
  .sort((a, b) => b - a)[0];
61452
61573
  if (opponentBestReply) {
61453
61574
  const replyWeight = difficulty === 'easy' ? 0.12 : difficulty === 'normal' ? 0.32 : 0.48;
@@ -61459,6 +61580,34 @@ function scoreBotMoveWithLookahead(state, move, difficulty, style) {
61459
61580
  }
61460
61581
  return score;
61461
61582
  }
61583
+ function countPowerReachAfterMove(state, move, color) {
61584
+ try {
61585
+ const afterMove = applyChessimalsMove(state, move);
61586
+ const evaluationState = { ...afterMove, currentTurn: color };
61587
+ return getChessimalsAllLegalMoves(evaluationState, color).filter((nextMove) => nextMove.kind === 'power').length;
61588
+ }
61589
+ catch {
61590
+ return 0;
61591
+ }
61592
+ }
61593
+ function countProtectedThreatsAfterMove(state, move, color) {
61594
+ try {
61595
+ const afterMove = applyChessimalsMove(state, move);
61596
+ const evaluationState = { ...afterMove, currentTurn: color };
61597
+ const ourMoves = getChessimalsAllLegalMoves(evaluationState, color);
61598
+ const enemyPieces = activePieces(afterMove).filter((piece) => piece.color !== color && !piece.captured);
61599
+ return enemyPieces.filter((piece) => ourMoves.some((nextMove) => nextMove.capturesPieceId === piece.id)).length;
61600
+ }
61601
+ catch {
61602
+ return 0;
61603
+ }
61604
+ }
61605
+ function scoreEndgamePressure(state, move, color) {
61606
+ const remainingEnemyPieces = activePieces(state).filter((piece) => piece.color !== color && !piece.captured).length;
61607
+ const urgency = remainingEnemyPieces <= Math.max(2, Math.floor(state.boardSize / 2)) ? 1.6 : 1;
61608
+ const distanceToPromotion = color === 'white' ? move.to.row : state.boardSize - 1 - move.to.row;
61609
+ return Math.max(0, state.boardSize - distanceToPromotion) * 14 * urgency;
61610
+ }
61462
61611
  function chooseConservativeHardCapture(state, scored) {
61463
61612
  if (state.boardSize !== 8)
61464
61613
  return undefined;
@@ -62622,6 +62771,121 @@ const MINI_GAMES_I18N = {
62622
62771
  bubbleDescription: 'Revienta grupos de burbujas, encadena combos y sube tu puntaje.',
62623
62772
  chessimalsTitle: 'Chessimals',
62624
62773
  chessimalsDescription: 'Una carrera de peones con cartas de animales y poderes tácticos.',
62774
+ christianityTitle: 'Christianity',
62775
+ christianityDescription: 'Un juego de cartas familiar con líderes, ofrendas y decisiones tácticas.',
62776
+ christianityEyebrow: 'MVP de mesa',
62777
+ christianityTable: 'Mesa de Christianity',
62778
+ christianitySplashEyebrow: 'Genesis 1',
62779
+ christianitySplashTitle: 'Preparando mesa',
62780
+ christianitySplashLoading: 'Cargando cartas reales y armando el mazo tutorial.',
62781
+ christianitySplashReady: 'Mazo listo. Ya puedes entrar al tutorial.',
62782
+ christianitySplashFallback: 'No se pudo cargar la edición real. Usaremos el mazo de prueba.',
62783
+ christianityStartTitle: 'Elige cómo entrar',
62784
+ christianityStartBody: 'Puedes jugar un tutorial pequeño con cartas reales o revisar la edición completa en la galería.',
62785
+ christianityTutorialMode: 'Tutorial MVP',
62786
+ christianityTutorialModeBody: 'Una mesa reducida con líderes, ofrendas y personajes sencillos para probar el flujo de partida.',
62787
+ christianityStartTutorial: 'Jugar tutorial',
62788
+ christianityGalleryModeBody: 'Explora la edición ordenada, filtra por tipo y abre el previsualizador de cartas.',
62789
+ christianityOpenGallery: 'Abrir galería',
62790
+ christianityHowToPlay: 'Cómo se juega',
62791
+ christianityHowToPlayBody: 'Revisa objetivo, turno, ofrendas y batalla antes de entrar a la mesa.',
62792
+ christianityHowToPlayIntro: 'Christianity usa un mazo compartido. La gracia está en adaptarse a lo que aparece y elegir bien cuándo gastar tus ofrendas.',
62793
+ christianityHowToPlayGoal: 'Gana reduciendo la vida del líder rival a 0, o quedando con más vida si el mazo se agota.',
62794
+ christianityHowToPlayTurn: 'En tu turno preparas ofrendas, robas carta, juegas cartas y luego puedes atacar.',
62795
+ christianityHowToPlayOfferings: 'Puedes jugar solo una ofrenda desde tu mano por turno. Las ofrendas listas pagan costes.',
62796
+ christianityHowToPlayBattle: 'Si el rival tiene personajes, debes atacar personajes antes que al líder.',
62797
+ christianityEditionStatus: 'Estado de edición',
62798
+ christianityTutorialActive: 'Tutorial MVP activo',
62799
+ christianityCatalogReady: 'Catálogo real cargado',
62800
+ christianityCatalogFallback: 'Mazo de prueba activo',
62801
+ christianityCatalogLoading: 'Cargando catálogo',
62802
+ christianityFutureModes: 'Modos futuros',
62803
+ christianitySoloBotMode: 'Solitario con bot',
62804
+ christianitySoloBotModeBody: 'Una partida guiada para practicar turnos, ofrendas y combate.',
62805
+ christianityTwoPlayerMode: 'Dos jugadores',
62806
+ christianityTwoPlayerModeBody: 'Partida online con estado sincronizado y manos privadas.',
62807
+ christianityOneDeviceMode: 'Un dispositivo',
62808
+ christianityOneDeviceModeBody: 'Modo local para jugar en familia pasando el dispositivo.',
62809
+ christianitySpectatorMode: 'Espectador',
62810
+ christianitySpectatorModeBody: 'Mesa pública para mirar partidas sin revelar información privada.',
62811
+ christianityTurn: 'Turno',
62812
+ christianityOfferings: 'Ofrendas',
62813
+ christianityHand: 'Mano',
62814
+ christianityOpponentBattle: 'Zona de batalla rival',
62815
+ christianityYourBattle: 'Tu zona de batalla',
62816
+ christianityOpponentHand: 'Mano rival',
62817
+ christianitySharedZone: 'Zona compartida',
62818
+ christianityMatch: 'Match',
62819
+ christianityMatchScore: 'Marcador de match',
62820
+ christianityHistory: 'Historia',
62821
+ christianityDeck: 'Mazo',
62822
+ christianityPlace: 'Lugar',
62823
+ christianityEmpty: 'Vacío',
62824
+ christianityYourHand: 'Tu mano',
62825
+ christianityCost: 'Coste',
62826
+ christianityOfferingCard: 'Ofrenda',
62827
+ christianityCharacterCard: 'Personaje',
62828
+ christianityLeaderCard: 'Líder',
62829
+ christianityWisdomCard: 'Sabiduría',
62830
+ christianityActionCard: 'Acción',
62831
+ christianityToolCard: 'Herramienta',
62832
+ christianityPlaceCard: 'Lugar',
62833
+ christianityEventCard: 'Evento',
62834
+ christianityCardRule: 'Regla de carta',
62835
+ christianityHiddenCard: 'Carta oculta',
62836
+ christianityPreviewCard: 'Ver carta',
62837
+ christianityEndTurn: 'Terminar turno',
62838
+ christianityPlayCard: 'Jugar carta',
62839
+ christianityPlayOffering: 'Jugar ofrenda',
62840
+ christianityPlayHere: 'Jugar aquí',
62841
+ christianityReset: 'Reiniciar mock',
62842
+ christianityWaitTurn: 'Espera el turno rival.',
62843
+ christianityChooseTarget: 'Elige un objetivo para atacar.',
62844
+ christianityChooseCharacterTarget: 'El rival tiene personajes: debes atacarlos antes que al líder.',
62845
+ christianityReadyToPlay: 'Puedes jugar esta carta.',
62846
+ christianityChooseSlot: 'Elige una casilla disponible para jugar esta carta.',
62847
+ christianityPlaceOffering: 'Puedes jugar esta ofrenda con el botón de acción.',
62848
+ christianityNeedOfferings: 'Necesitas más ofrendas para jugar esa carta.',
62849
+ christianityChooseCard: 'Elige una carta o un personaje listo para actuar.',
62850
+ christianityLeaderProtected: 'No puedes atacar directamente al líder mientras tenga personajes en batalla.',
62851
+ christianityLeaderBody: 'Si su vida llega a 0, la partida termina.',
62852
+ christianityLeaderRuleBody: 'El líder representa al jugador. Si su vida llega a 0, pierde la partida. No puede ser atacado directamente mientras tenga personajes en batalla.',
62853
+ christianityOfferingReady: 'Lista',
62854
+ christianityOfferingExhausted: 'Agotada',
62855
+ christianityOfferingBody: 'Se agota para pagar costes y vuelve a estar lista al comenzar tu turno.',
62856
+ christianityOfferingNoAbility: 'Esta ofrenda no tiene habilidad activable.',
62857
+ christianityOfferingsRuleBody: 'Las ofrendas son cartas que entran desde la mano a esta pila. Puedes jugar solo una por turno. Las ofrendas listas pagan costes y vuelven a prepararse al comenzar tu turno.',
62858
+ christianityOfferingRuleBody: 'Se juega desde la mano a la pila de ofrendas. Puedes jugar solo una ofrenda por turno. Sus puntos disponibles pagan costes.',
62859
+ christianityWisdomRuleBody: 'Las cartas de sabiduría entregan efectos tácticos durante tu turno. Para el tutorial se pueden revisar, pero todavía no se resuelven.',
62860
+ christianityActionRuleBody: 'Las acciones son jugadas directas de ataque o defensa. Más adelante podrán responder durante la fase de batalla.',
62861
+ christianityToolRuleBody: 'Las herramientas se anexan a personajes para mejorar o proteger sus estadísticas.',
62862
+ christianityPlaceRuleBody: 'Los lugares cambian la mesa para ambos jugadores. Solo puede haber un lugar activo a la vez.',
62863
+ christianityEventRuleBody: 'Los eventos representan momentos globales que impactan la partida y luego van a historia.',
62864
+ christianityUseAbility: 'Usar',
62865
+ christianityCloseOfferings: 'Cerrar ofrendas',
62866
+ christianityCharacterBody: 'Entra a batalla y debe esperar un turno para atacar.',
62867
+ christianityCharacterRuleBody: 'Se juega en una casilla libre de la zona de batalla. Debe esperar un turno para atacar, salvo que una habilidad indique lo contrario.',
62868
+ christianityCharacterReady: 'Listo para atacar.',
62869
+ christianityCharacterExhausted: 'No puede atacar todavía.',
62870
+ christianityCardRemaining: 'carta restante',
62871
+ christianityCardsRemaining: 'cartas restantes',
62872
+ christianityDeckBody: 'El mazo es una pila compartida. Ambos jugadores roban desde aquí, por eso importa adaptarse a lo que aparece y cuidar el ritmo de la partida.',
62873
+ christianityDeckRuleShared: 'Todas las cartas jugables viven en este mazo compartido, incluyendo personajes y ofrendas.',
62874
+ christianityDeckRuleDraw: 'Al comenzar cada turno, el jugador activo roba la primera carta disponible.',
62875
+ christianityDeckRuleEmpty: 'Si el mazo se queda sin cartas, se revisa la condición de victoria por vida al final del turno.',
62876
+ christianityClosePreview: 'Cerrar previsualizacion de carta',
62877
+ christianityCloseHistory: 'Cerrar historia',
62878
+ christianityHistoryEmpty: 'Todavía no hay cartas en historia.',
62879
+ christianityGallery: 'Galería',
62880
+ christianityCloseGallery: 'Cerrar galería',
62881
+ christianityGallerySearch: 'Buscar',
62882
+ christianityGallerySearchPlaceholder: 'Nombre, texto o referencia',
62883
+ christianityGalleryFilter: 'Tipo',
62884
+ christianityGalleryEmpty: 'No hay cartas que coincidan con el filtro.',
62885
+ christianityGenesisEdition: 'Genesis 1',
62886
+ christianityAllCards: 'Todas',
62887
+ christianityCards: 'cartas',
62888
+ christianityTutorialLoaded: 'Tutorial cargado con cartas reales de Genesis 1.',
62625
62889
  soonTitle: 'Próximamente',
62626
62890
  openGame: 'Jugar',
62627
62891
  close: 'Cerrar',
@@ -62746,10 +63010,10 @@ const MINI_GAMES_I18N = {
62746
63010
  chessimalsRulePowersTitle: 'Cuándo se activan los poderes',
62747
63011
  chessimalsRulePowersBody: 'Tus cartas se desbloquean cuando uno de tus peones cruza la línea central o cuando un peón rival entra en tu mitad del tablero.',
62748
63012
  chessimalsRuleCardsTitle: 'Cartas de animales',
62749
- chessimalsRuleEagle: 'Águila: se mueve hasta 3 casillas en diagonal, hacia adelante o atrás.',
62750
- chessimalsRuleBull: 'Toro: se mueve hasta 3 casillas en línea recta, incluso hacia los lados.',
63013
+ chessimalsRuleEagle: 'Águila: se mueve en diagonal por todo el tablero, hacia adelante o atrás, sin entrar a la última fila.',
63014
+ chessimalsRuleBull: 'Toro: se mueve en línea recta por todo el tablero, incluso hacia los lados, sin entrar a la última fila.',
62751
63015
  chessimalsRuleKangaroo: 'Canguro: salta en L, como el caballo del ajedrez. Puede saltar por encima de piezas y caer libre o capturar una pieza rival.',
62752
- chessimalsRuleLion: 'León: se mueve hasta 3 casillas en cualquier dirección.',
63016
+ chessimalsRuleLion: 'León: se mueve en cualquier dirección por todo el tablero, sin entrar a la última fila.',
62753
63017
  chessimalsRuleLimitsTitle: 'Reglas de equilibrio',
62754
63018
  chessimalsRuleLimitsBody: 'Cada carta se usa una sola vez por partida. Ningún poder puede entrar directamente a la última fila: el paso final para ganar siempre debe ser un avance normal.',
62755
63019
  chessimalsBoardSize: 'Tamaño del tablero',
@@ -62862,6 +63126,18 @@ const MINI_GAMES_I18N = {
62862
63126
  chessimalsBotSprinterBody: 'Optimiza rutas de promoción.',
62863
63127
  chessimalsBotSentinel: 'Centinela',
62864
63128
  chessimalsBotSentinelBody: 'Defiende sólido y castiga errores.',
63129
+ chessimalsBotOracle: 'Oráculo',
63130
+ chessimalsBotOracleBody: 'Lee respuestas y evita trampas profundas.',
63131
+ chessimalsBotAmbusher: 'Emboscador',
63132
+ chessimalsBotAmbusherBody: 'Prepara capturas dobles con poderes largos.',
63133
+ chessimalsBotLocksmith: 'Cerrajero',
63134
+ chessimalsBotLocksmithBody: 'Cierra el centro y reduce tus rutas.',
63135
+ chessimalsBotStorm: 'Tormenta',
63136
+ chessimalsBotStormBody: 'Usa poderes largos para presionar todo el tablero.',
63137
+ chessimalsBotMatriarch: 'Matriarca',
63138
+ chessimalsBotMatriarchBody: 'Protege su estructura y gana por desgaste.',
63139
+ chessimalsBotEndgame: 'Finalista',
63140
+ chessimalsBotEndgameBody: 'Convierte ventajas pequeñas en promoción.',
62865
63141
  chessimalsBotExplorerTendency: 'Tiende a variar rutas, probar el centro y cometer errores suaves.',
62866
63142
  chessimalsBotImpulsiveTendency: 'Tiende a capturar rápido, incluso cuando puede quedar expuesto.',
62867
63143
  chessimalsBotRunnerTendency: 'Tiende a avanzar hacia la promoción antes que defender.',
@@ -62872,6 +63148,12 @@ const MINI_GAMES_I18N = {
62872
63148
  chessimalsBotPredatorTendency: 'Tiende a forzar capturas y usar poderes agresivos.',
62873
63149
  chessimalsBotSprinterTendency: 'Tiende a encontrar caminos rápidos de promoción.',
62874
63150
  chessimalsBotSentinelTendency: 'Tiende a defender sólido y castigar errores.',
63151
+ chessimalsBotOracleTendency: 'Tiende a anticipar respuestas y elegir jugadas difíciles de refutar.',
63152
+ chessimalsBotAmbusherTendency: 'Tiende a dejar piezas bajo amenaza múltiple antes de capturar.',
63153
+ chessimalsBotLocksmithTendency: 'Tiende a cortar rutas por el centro y dejarte sin buenas casillas.',
63154
+ chessimalsBotStormTendency: 'Tiende a convertir poderes largos en presión desde varios ángulos.',
63155
+ chessimalsBotMatriarchTendency: 'Tiende a conservar piezas y cambiar solo cuando queda mejor.',
63156
+ chessimalsBotEndgameTendency: 'Tiende a simplificar y correr hacia la promoción cuando ve ventaja.',
62875
63157
  chessimalsBotReportTitle: 'Reporte del bot',
62876
63158
  chessimalsBotReportVs: 'Contra {bot}',
62877
63159
  chessimalsBotReportBody: '{outcome}. Hizo {captures} capturas y usó {powers} poderes. {style}',
@@ -63056,7 +63338,7 @@ const MINI_GAMES_I18N = {
63056
63338
  chessimalsTutorialStep4Title: 'Devuelve el turno',
63057
63339
  chessimalsTutorialStep4Body: 'Mueve el peón negro de la columna F una casilla hacia abajo para continuar.',
63058
63340
  chessimalsTutorialStep5Title: 'Usa el poder Canguro',
63059
- chessimalsTutorialStep5Body: 'Selecciona la carta Canguro y salta en L para capturar el peón negro.',
63341
+ chessimalsTutorialStep5Body: 'Selecciona la carta Canguro y salta en L para capturar el peón negro. Las otras cartas pueden cruzar todo el tablero, pero ningún poder puede entrar a la última fila.',
63060
63342
  chessimalsTutorialStep6Title: 'Prepara la llegada',
63061
63343
  chessimalsTutorialStep6Body: 'Mueve el último peón negro hacia abajo. Después tendrás camino para ganar.',
63062
63344
  chessimalsTutorialStep7Title: 'Llega a la última fila',
@@ -63129,6 +63411,121 @@ const MINI_GAMES_I18N = {
63129
63411
  bubbleDescription: 'Pop bubble groups, chain combos, and push your score higher.',
63130
63412
  chessimalsTitle: 'Chessimals',
63131
63413
  chessimalsDescription: 'A pawn race with animal cards and tactical powers.',
63414
+ christianityTitle: 'Christianity',
63415
+ christianityDescription: 'A family card game with leaders, offerings, and tactical choices.',
63416
+ christianityEyebrow: 'Table MVP',
63417
+ christianityTable: 'Christianity table',
63418
+ christianitySplashEyebrow: 'Genesis 1',
63419
+ christianitySplashTitle: 'Preparing table',
63420
+ christianitySplashLoading: 'Loading real cards and building the tutorial deck.',
63421
+ christianitySplashReady: 'Deck ready. You can enter the tutorial.',
63422
+ christianitySplashFallback: 'The real edition could not be loaded. The test deck will be used.',
63423
+ christianityStartTitle: 'Choose how to enter',
63424
+ christianityStartBody: 'Play a small tutorial with real cards or browse the full edition in the gallery.',
63425
+ christianityTutorialMode: 'MVP tutorial',
63426
+ christianityTutorialModeBody: 'A reduced table with leaders, offerings, and simple characters to test the match flow.',
63427
+ christianityStartTutorial: 'Play tutorial',
63428
+ christianityGalleryModeBody: 'Explore the ordered edition, filter by type, and open the card preview.',
63429
+ christianityOpenGallery: 'Open gallery',
63430
+ christianityHowToPlay: 'How to play',
63431
+ christianityHowToPlayBody: 'Review goal, turn flow, offerings, and battle before entering the table.',
63432
+ christianityHowToPlayIntro: 'Christianity uses a shared deck. The heart of the game is adapting to what appears and choosing when to spend offerings.',
63433
+ christianityHowToPlayGoal: 'Win by reducing the rival leader life to 0, or by having more life if the deck runs out.',
63434
+ christianityHowToPlayTurn: 'On your turn you ready offerings, draw a card, play cards, and then may attack.',
63435
+ christianityHowToPlayOfferings: 'You can play only one offering from your hand each turn. Ready offerings pay costs.',
63436
+ christianityHowToPlayBattle: 'If the rival has characters, you must attack characters before the leader.',
63437
+ christianityEditionStatus: 'Edition status',
63438
+ christianityTutorialActive: 'MVP tutorial active',
63439
+ christianityCatalogReady: 'Real catalog loaded',
63440
+ christianityCatalogFallback: 'Test deck active',
63441
+ christianityCatalogLoading: 'Loading catalog',
63442
+ christianityFutureModes: 'Future modes',
63443
+ christianitySoloBotMode: 'Solo with bot',
63444
+ christianitySoloBotModeBody: 'A guided match to practice turns, offerings, and combat.',
63445
+ christianityTwoPlayerMode: 'Two players',
63446
+ christianityTwoPlayerModeBody: 'Online match with synced state and private hands.',
63447
+ christianityOneDeviceMode: 'One device',
63448
+ christianityOneDeviceModeBody: 'Local mode for family play by passing the device.',
63449
+ christianitySpectatorMode: 'Spectator',
63450
+ christianitySpectatorModeBody: 'Public table to watch matches without revealing private information.',
63451
+ christianityTurn: 'Turn',
63452
+ christianityOfferings: 'Offerings',
63453
+ christianityHand: 'Hand',
63454
+ christianityOpponentBattle: 'Opponent battle zone',
63455
+ christianityYourBattle: 'Your battle zone',
63456
+ christianityOpponentHand: 'Opponent hand',
63457
+ christianitySharedZone: 'Shared zone',
63458
+ christianityMatch: 'Match',
63459
+ christianityMatchScore: 'Match score',
63460
+ christianityHistory: 'History',
63461
+ christianityDeck: 'Deck',
63462
+ christianityPlace: 'Place',
63463
+ christianityEmpty: 'Empty',
63464
+ christianityYourHand: 'Your hand',
63465
+ christianityCost: 'Cost',
63466
+ christianityOfferingCard: 'Offering',
63467
+ christianityCharacterCard: 'Character',
63468
+ christianityLeaderCard: 'Leader',
63469
+ christianityWisdomCard: 'Wisdom',
63470
+ christianityActionCard: 'Action',
63471
+ christianityToolCard: 'Tool',
63472
+ christianityPlaceCard: 'Place',
63473
+ christianityEventCard: 'Event',
63474
+ christianityCardRule: 'Card rule',
63475
+ christianityHiddenCard: 'Hidden card',
63476
+ christianityPreviewCard: 'Preview card',
63477
+ christianityEndTurn: 'End turn',
63478
+ christianityPlayCard: 'Play card',
63479
+ christianityPlayOffering: 'Play offering',
63480
+ christianityPlayHere: 'Play here',
63481
+ christianityReset: 'Reset mock',
63482
+ christianityWaitTurn: 'Wait for the opponent turn.',
63483
+ christianityChooseTarget: 'Choose a target to attack.',
63484
+ christianityChooseCharacterTarget: 'The opponent has characters: attack them before the leader.',
63485
+ christianityReadyToPlay: 'You can play this card.',
63486
+ christianityChooseSlot: 'Choose an available slot to play this card.',
63487
+ christianityPlaceOffering: 'You can play this offering with the action button.',
63488
+ christianityNeedOfferings: 'You need more offerings to play that card.',
63489
+ christianityChooseCard: 'Choose a card or a ready character.',
63490
+ christianityLeaderProtected: 'You cannot attack the leader directly while they have characters in battle.',
63491
+ christianityLeaderBody: 'If this leader reaches 0 life, the game ends.',
63492
+ christianityLeaderRuleBody: 'The leader represents the player. If their life reaches 0, they lose the game. They cannot be attacked directly while they have characters in battle.',
63493
+ christianityOfferingReady: 'Ready',
63494
+ christianityOfferingExhausted: 'Exhausted',
63495
+ christianityOfferingBody: 'Exhaust it to pay costs. It readies again at the start of your turn.',
63496
+ christianityOfferingNoAbility: 'This offering has no active ability.',
63497
+ christianityOfferingsRuleBody: 'Offerings are cards played from your hand into this pile. You can play only one per turn. Ready offerings pay costs and ready again at the start of your turn.',
63498
+ christianityOfferingRuleBody: 'Play it from your hand into the offering pile. You can play only one offering per turn. Its available points pay costs.',
63499
+ christianityWisdomRuleBody: 'Wisdom cards provide tactical effects during your turn. In the tutorial you can inspect them, but they do not resolve yet.',
63500
+ christianityActionRuleBody: 'Actions are direct offensive or defensive plays. Later they will be able to respond during the battle phase.',
63501
+ christianityToolRuleBody: 'Tools attach to characters to improve or protect their stats.',
63502
+ christianityPlaceRuleBody: 'Places change the table for both players. Only one place can be active at a time.',
63503
+ christianityEventRuleBody: 'Events represent global moments that affect the match and then move to history.',
63504
+ christianityUseAbility: 'Use',
63505
+ christianityCloseOfferings: 'Close offerings',
63506
+ christianityCharacterBody: 'Enters battle and must wait one turn before attacking.',
63507
+ christianityCharacterRuleBody: 'Play it into an open battle slot. It must wait one turn before attacking unless an ability says otherwise.',
63508
+ christianityCharacterReady: 'Ready to attack.',
63509
+ christianityCharacterExhausted: 'Cannot attack yet.',
63510
+ christianityCardRemaining: 'card remaining',
63511
+ christianityCardsRemaining: 'cards remaining',
63512
+ christianityDeckBody: 'The deck is a shared pile. Both players draw from it, so the match rewards adapting to what appears and managing the pace.',
63513
+ christianityDeckRuleShared: 'All playable cards live in this shared deck, including characters and offerings.',
63514
+ christianityDeckRuleDraw: 'At the start of each turn, the active player draws the first available card.',
63515
+ christianityDeckRuleEmpty: 'If the deck runs out, the leader life victory condition is checked at the end of the turn.',
63516
+ christianityClosePreview: 'Close card preview',
63517
+ christianityCloseHistory: 'Close history',
63518
+ christianityHistoryEmpty: 'There are no cards in history yet.',
63519
+ christianityGallery: 'Gallery',
63520
+ christianityCloseGallery: 'Close gallery',
63521
+ christianityGallerySearch: 'Search',
63522
+ christianityGallerySearchPlaceholder: 'Name, text, or reference',
63523
+ christianityGalleryFilter: 'Type',
63524
+ christianityGalleryEmpty: 'No cards match this filter.',
63525
+ christianityGenesisEdition: 'Genesis 1',
63526
+ christianityAllCards: 'All',
63527
+ christianityCards: 'cards',
63528
+ christianityTutorialLoaded: 'Tutorial loaded with real Genesis 1 cards.',
63132
63529
  soonTitle: 'Coming soon',
63133
63530
  openGame: 'Play',
63134
63531
  close: 'Close',
@@ -63253,10 +63650,10 @@ const MINI_GAMES_I18N = {
63253
63650
  chessimalsRulePowersTitle: 'When powers unlock',
63254
63651
  chessimalsRulePowersBody: 'Your cards unlock when one of your pawns crosses the center line, or when a rival pawn enters your half of the board.',
63255
63652
  chessimalsRuleCardsTitle: 'Animal cards',
63256
- chessimalsRuleEagle: 'Eagle: moves up to 3 squares diagonally, forward or backward.',
63257
- chessimalsRuleBull: 'Bull: moves up to 3 squares in a straight line, including sideways.',
63653
+ chessimalsRuleEagle: 'Eagle: moves diagonally across the whole board, forward or backward, without entering the final row.',
63654
+ chessimalsRuleBull: 'Bull: moves in a straight line across the whole board, including sideways, without entering the final row.',
63258
63655
  chessimalsRuleKangaroo: 'Kangaroo: jumps in an L shape, like a chess knight. It can jump over pieces and land on an empty square or capture a rival piece.',
63259
- chessimalsRuleLion: 'Lion: moves up to 3 squares in any direction.',
63656
+ chessimalsRuleLion: 'Lion: moves in any direction across the whole board, without entering the final row.',
63260
63657
  chessimalsRuleLimitsTitle: 'Balance rules',
63261
63658
  chessimalsRuleLimitsBody: 'Each card can be used once per game. No power can land directly on the final row: the winning step must always be a normal forward move.',
63262
63659
  chessimalsBoardSize: 'Board size',
@@ -63369,6 +63766,18 @@ const MINI_GAMES_I18N = {
63369
63766
  chessimalsBotSprinterBody: 'Optimizes promotion routes.',
63370
63767
  chessimalsBotSentinel: 'Sentinel',
63371
63768
  chessimalsBotSentinelBody: 'Defends solidly and punishes mistakes.',
63769
+ chessimalsBotOracle: 'Oracle',
63770
+ chessimalsBotOracleBody: 'Reads replies and avoids deep traps.',
63771
+ chessimalsBotAmbusher: 'Ambusher',
63772
+ chessimalsBotAmbusherBody: 'Sets up double captures with long powers.',
63773
+ chessimalsBotLocksmith: 'Locksmith',
63774
+ chessimalsBotLocksmithBody: 'Closes the center and reduces your routes.',
63775
+ chessimalsBotStorm: 'Storm',
63776
+ chessimalsBotStormBody: 'Uses long powers to pressure the whole board.',
63777
+ chessimalsBotMatriarch: 'Matriarch',
63778
+ chessimalsBotMatriarchBody: 'Protects structure and wins by attrition.',
63779
+ chessimalsBotEndgame: 'Endgame',
63780
+ chessimalsBotEndgameBody: 'Turns small edges into promotion.',
63372
63781
  chessimalsBotExplorerTendency: 'Tends to vary routes, test the center, and make soft mistakes.',
63373
63782
  chessimalsBotImpulsiveTendency: 'Tends to capture quickly, even when it can become exposed.',
63374
63783
  chessimalsBotRunnerTendency: 'Tends to push toward promotion before defending.',
@@ -63379,6 +63788,12 @@ const MINI_GAMES_I18N = {
63379
63788
  chessimalsBotPredatorTendency: 'Tends to force captures and use aggressive powers.',
63380
63789
  chessimalsBotSprinterTendency: 'Tends to find fast promotion paths.',
63381
63790
  chessimalsBotSentinelTendency: 'Tends to defend solidly and punish mistakes.',
63791
+ chessimalsBotOracleTendency: 'Tends to anticipate replies and choose hard-to-refute moves.',
63792
+ chessimalsBotAmbusherTendency: 'Tends to leave pieces under multiple threats before capturing.',
63793
+ chessimalsBotLocksmithTendency: 'Tends to close central routes and leave you without good squares.',
63794
+ chessimalsBotStormTendency: 'Tends to turn long powers into pressure from several angles.',
63795
+ chessimalsBotMatriarchTendency: 'Tends to preserve pieces and trade only when it improves.',
63796
+ chessimalsBotEndgameTendency: 'Tends to simplify and race toward promotion when ahead.',
63382
63797
  chessimalsBotReportTitle: 'Bot report',
63383
63798
  chessimalsBotReportVs: 'Against {bot}',
63384
63799
  chessimalsBotReportBody: '{outcome}. It made {captures} captures and used {powers} powers. {style}',
@@ -63563,7 +63978,7 @@ const MINI_GAMES_I18N = {
63563
63978
  chessimalsTutorialStep4Title: 'Return the turn',
63564
63979
  chessimalsTutorialStep4Body: 'Move the black pawn on file F one square downward to continue.',
63565
63980
  chessimalsTutorialStep5Title: 'Use the Kangaroo power',
63566
- chessimalsTutorialStep5Body: 'Select the Kangaroo card and jump in an L shape to capture the black pawn.',
63981
+ chessimalsTutorialStep5Body: 'Select the Kangaroo card and jump in an L shape to capture the black pawn. The other cards can cross the whole board, but no power can enter the final row.',
63567
63982
  chessimalsTutorialStep6Title: 'Prepare the finish',
63568
63983
  chessimalsTutorialStep6Body: 'Move the last black pawn downward. Then your path to win is open.',
63569
63984
  chessimalsTutorialStep7Title: 'Reach the last row',
@@ -64780,6 +65195,7 @@ class ChessimalsGameComponent {
64780
65195
  });
64781
65196
  this.botThinking = signal(false);
64782
65197
  this.confirmAction = signal(undefined);
65198
+ this.confirmedAction = signal(undefined);
64783
65199
  this.onlineJoinCode = signal('');
64784
65200
  this.onlineLoading = signal(false);
64785
65201
  this.onlineAction = signal(undefined);
@@ -65810,13 +66226,12 @@ class ChessimalsGameComponent {
65810
66226
  closeConfirmModal() {
65811
66227
  this.confirmAction.set(undefined);
65812
66228
  }
65813
- confirmPendingAction(token) {
65814
- if (token !== 'confirm') {
65815
- this.closeConfirmModal();
65816
- return;
65817
- }
65818
- const action = this.confirmAction();
66229
+ handleConfirmModalDismissed() {
65819
66230
  this.confirmAction.set(undefined);
66231
+ const action = this.confirmedAction();
66232
+ this.confirmedAction.set(undefined);
66233
+ if (!action)
66234
+ return;
65820
66235
  if (action === 'restart') {
65821
66236
  this.restartGame();
65822
66237
  return;
@@ -65838,6 +66253,15 @@ class ChessimalsGameComponent {
65838
66253
  this.createNewChallengeRun();
65839
66254
  }
65840
66255
  }
66256
+ confirmPendingAction(token) {
66257
+ if (token !== 'confirm') {
66258
+ this.closeConfirmModal();
66259
+ return;
66260
+ }
66261
+ const action = this.confirmAction();
66262
+ this.confirmedAction.set(action);
66263
+ this.confirmAction.set(undefined);
66264
+ }
65841
66265
  resignGame() {
65842
66266
  const game = this.game();
65843
66267
  if (game.status === 'finished')
@@ -68811,7 +69235,7 @@ class ChessimalsGameComponent {
68811
69235
  <ion-modal
68812
69236
  [isOpen]="!!confirmAction()"
68813
69237
  cssClass="val-modal-adaptive"
68814
- (didDismiss)="closeConfirmModal()"
69238
+ (didDismiss)="handleConfirmModalDismissed()"
68815
69239
  >
68816
69240
  <ng-template>
68817
69241
  <val-modal-layout
@@ -70126,7 +70550,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
70126
70550
  <ion-modal
70127
70551
  [isOpen]="!!confirmAction()"
70128
70552
  cssClass="val-modal-adaptive"
70129
- (didDismiss)="closeConfirmModal()"
70553
+ (didDismiss)="handleConfirmModalDismissed()"
70130
70554
  >
70131
70555
  <ng-template>
70132
70556
  <val-modal-layout
@@ -70152,6 +70576,2544 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
70152
70576
  type: Input
70153
70577
  }] } });
70154
70578
 
70579
+ class ChristianityCardComponent {
70580
+ constructor() {
70581
+ this.card = input.required();
70582
+ this.variant = input('table');
70583
+ this.normalizedTypeLabel = computed(() => this.card().typeLabel.toUpperCase());
70584
+ this.frontTemplate = computed(() => this.card().frontTemplate ?? 'genesis-classic');
70585
+ this.isGenesisClassicTemplate = computed(() => this.frontTemplate() === 'genesis-classic' || this.frontTemplate() === 'genesis-classic-extra');
70586
+ this.typeIconUrl = computed(() => `assets/games/christianity/icons/${this.iconName(this.card().type)}.png`);
70587
+ this.headerMetric = computed(() => {
70588
+ const card = this.card();
70589
+ if (card.type === 'leader')
70590
+ return null;
70591
+ if (card.type === 'offering')
70592
+ return { kind: 'pips', value: card.offeringValue ?? 0 };
70593
+ if (typeof card.cost === 'number')
70594
+ return { kind: 'number', value: card.cost };
70595
+ return null;
70596
+ });
70597
+ this.cardStatsText = computed(() => {
70598
+ const card = this.card();
70599
+ if (card.type !== 'character')
70600
+ return '';
70601
+ return `${card.attack ?? 0} / ${card.currentHp ?? card.life ?? 0}`;
70602
+ });
70603
+ this.leaderLifeText = computed(() => {
70604
+ const card = this.card();
70605
+ const current = card.currentHp ?? card.life ?? 0;
70606
+ const max = card.maxHp ?? card.life ?? current;
70607
+ return `${current}/${max}`;
70608
+ });
70609
+ }
70610
+ offeringPips(value) {
70611
+ const count = Number(value);
70612
+ if (!Number.isFinite(count) || count <= 0)
70613
+ return [];
70614
+ return Array.from({ length: Math.min(Math.floor(count), 5) });
70615
+ }
70616
+ iconName(type) {
70617
+ if (type === 'character')
70618
+ return 'character';
70619
+ if (type === 'offering')
70620
+ return 'offering';
70621
+ if (type === 'leader')
70622
+ return 'leader';
70623
+ return type;
70624
+ }
70625
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChristianityCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
70626
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ChristianityCardComponent, isStandalone: true, selector: "val-christianity-card", inputs: { card: { classPropertyName: "card", publicName: "card", isSignal: true, isRequired: true, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
70627
+ @if (variant() === 'back') {
70628
+ <article class="christianity-card-render christianity-card-render--back" aria-hidden="true">
70629
+ <span></span>
70630
+ </article>
70631
+ } @else {
70632
+ <article
70633
+ class="christianity-card-render"
70634
+ [class.christianity-card-render--full]="variant() === 'full'"
70635
+ [class.christianity-card-render--compact]="variant() !== 'full'"
70636
+ [class.christianity-card-render--table]="variant() === 'table'"
70637
+ [class.christianity-card-render--hand]="variant() === 'hand'"
70638
+ [class.christianity-card-render--list]="variant() === 'list'"
70639
+ [class.christianity-card-render--template-genesis-classic]="isGenesisClassicTemplate()"
70640
+ [class.christianity-card-render--template-genesis-full-art]="frontTemplate() === 'genesis-full-art'"
70641
+ [class.is-leader]="card().type === 'leader'"
70642
+ [class.is-offering]="card().type === 'offering'"
70643
+ >
70644
+ <header class="christianity-card-render__header">
70645
+ <span class="christianity-card-render__type-icon" aria-hidden="true">
70646
+ <img [src]="typeIconUrl()" alt="" />
70647
+ </span>
70648
+ <strong>{{ card().name }}</strong>
70649
+ @if (headerMetric(); as metric) {
70650
+ <span
70651
+ class="christianity-card-render__metric"
70652
+ [class.is-pips]="metric.kind === 'pips'"
70653
+ [class.is-offering-value]="card().type === 'offering'"
70654
+ >
70655
+ @if (metric.kind === 'pips') {
70656
+ @for (_ of offeringPips(metric.value); track $index) {
70657
+ <i aria-hidden="true"></i>
70658
+ }
70659
+ } @else {
70660
+ {{ metric.value }}
70661
+ }
70662
+ </span>
70663
+ }
70664
+ </header>
70665
+
70666
+ <section class="christianity-card-render__art" [class.has-image]="card().imageUrl">
70667
+ @if (card().imageUrl) {
70668
+ <img [src]="card().imageUrl" [alt]="card().name" draggable="false" />
70669
+ } @else {
70670
+ <span>{{ card().name }}</span>
70671
+ }
70672
+ <small>{{ normalizedTypeLabel() }}</small>
70673
+ </section>
70674
+
70675
+ @if (variant() === 'full') {
70676
+ <section class="christianity-card-render__verse">
70677
+ @if (card().verseText) {
70678
+ <p>{{ card().verseText }}</p>
70679
+ }
70680
+ @if (card().scripture) {
70681
+ <strong>{{ card().scripture }}</strong>
70682
+ }
70683
+ </section>
70684
+ }
70685
+
70686
+ <section class="christianity-card-render__effect">
70687
+ @if (card().editionIcon) {
70688
+ <img class="christianity-card-render__edition-watermark" [src]="card().editionIcon" alt="" aria-hidden="true" />
70689
+ }
70690
+ <div class="christianity-card-render__stats">
70691
+ @if (card().type === 'offering') {
70692
+ <strong class="is-pips">
70693
+ @for (_ of offeringPips(card().offeringValue); track $index) {
70694
+ <i aria-hidden="true"></i>
70695
+ }
70696
+ </strong>
70697
+ } @else if (card().type === 'leader') {
70698
+ <strong>{{ leaderLifeText() }}</strong>
70699
+ } @else if (cardStatsText()) {
70700
+ <strong>{{ cardStatsText() }}</strong>
70701
+ }
70702
+ </div>
70703
+ @if (variant() === 'full') {
70704
+ <div class="christianity-card-render__text">
70705
+ @if (card().abilityName) {
70706
+ <strong>{{ card().abilityName }}</strong>
70707
+ }
70708
+ @if (card().abilityText || card().statusText) {
70709
+ <p>{{ card().abilityText || card().statusText }}</p>
70710
+ }
70711
+ </div>
70712
+ <span
70713
+ class="christianity-card-render__rarity"
70714
+ [class.is-normal]="!card().rarity || card().rarity === 'normal'"
70715
+ [class.is-uncommon]="card().rarity === 'uncommon'"
70716
+ [class.is-rare]="card().rarity === 'rare'"
70717
+ [class.is-legendary]="card().rarity === 'legendary'"
70718
+ aria-hidden="true"
70719
+ ></span>
70720
+ }
70721
+ </section>
70722
+
70723
+ @if (variant() === 'full') {
70724
+ <footer class="christianity-card-render__footer">
70725
+ <span>{{ card().edition ?? 'MVP' }}</span>
70726
+ <span>{{ card().collectorNumber ?? card().id }}</span>
70727
+ <span>{{ card().year ?? '2026' }} CHRISTIANITY</span>
70728
+ <span>{{ card().author ?? 'MVP' }}</span>
70729
+ </footer>
70730
+ }
70731
+ </article>
70732
+ }
70733
+ `, isInline: true, styles: [":host{--christianity-card-aspect: 5 / 7.45;--christianity-card-back: linear-gradient(135deg, rgba(16, 42, 67, .16), rgba(16, 42, 67, .03)), repeating-linear-gradient(45deg, #dbeafe 0 .33rem, #ffffff .33rem .66rem);display:block;width:100%;min-width:0}.christianity-card-render{position:relative;box-sizing:border-box;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:.28rem;width:100%;min-width:0;aspect-ratio:var(--christianity-card-aspect);padding:.48rem;overflow:hidden;border:1px solid rgba(36,48,68,.16);border-radius:.52rem;background:linear-gradient(180deg,#fffffffa,#f8fafcfa),radial-gradient(circle at 18% 0%,rgba(214,162,29,.12),transparent 44%);color:var(--val-text-color, #1f2933);-webkit-user-select:none;user-select:none;box-shadow:0 .5rem 1.25rem #2430441a,inset 0 0 0 .18rem #ffffff9e}.christianity-card-render>*{position:relative;z-index:1}.christianity-card-render--template-genesis-classic{--christianity-frame-width: .26rem;padding:calc(.48rem + var(--christianity-frame-width));border-color:#39475733;background:linear-gradient(180deg,#aab8c7f5,#8fa0b1fa),radial-gradient(circle at 18% 0%,rgba(255,255,255,.24),transparent 42%);box-shadow:0 .5rem 1.25rem #24304421,inset 0 0 0 1px #ffffff6b,inset 0 0 0 var(--christianity-frame-width) #8797a980}.christianity-card-render--template-genesis-classic:before{content:\"\";position:absolute;inset:var(--christianity-frame-width);z-index:0;border-radius:.44rem;background:linear-gradient(180deg,#fffffffa,#f8fafcfa),radial-gradient(circle at 18% 0%,rgba(214,162,29,.1),transparent 44%);box-shadow:inset 0 0 0 1px #ffffffb8,0 .16rem .35rem #2430441a}.christianity-card-render--full{grid-template-rows:auto minmax(6.9rem,1.15fr) minmax(0,auto) minmax(4.8rem,.9fr) auto;gap:.38rem;min-height:0;padding:.56rem;border-color:#2430442e;border-radius:.75rem;background:linear-gradient(180deg,#fffffff5,#f8fafcf5),radial-gradient(circle at 20% 0%,rgba(214,162,29,.18),transparent 45%);box-shadow:0 0 0 .18rem #fff4c294,0 0 2.2rem #f5c75552,0 2.4rem 5rem #102a4357,inset 0 0 0 .35rem #ffffff8c}.christianity-card-render--full.christianity-card-render--template-genesis-classic{--christianity-frame-width: .34rem;padding:calc(.56rem + var(--christianity-frame-width));border-radius:.78rem;box-shadow:0 0 0 .14rem #ffffff6b,0 0 2.2rem #f5c7552e,0 2.4rem 5rem #102a4357,inset 0 0 0 1px #ffffff5c,inset 0 0 0 var(--christianity-frame-width) #8797a994}.christianity-card-render--full.christianity-card-render--template-genesis-classic:before{border-radius:.56rem}.christianity-card-render--template-genesis-full-art{border-color:#090d1594;background:#111827;color:#fff;text-shadow:0 .08rem .18rem rgba(0,0,0,.72);box-shadow:0 .7rem 1.45rem #090d1533,inset 0 0 1.2rem #ffffff1a}.christianity-card-render--template-genesis-full-art .christianity-card-render__art{border-radius:.36rem;box-shadow:inset 0 0 0 1px #ffffff29,inset 0 -2rem 2.5rem #090d154d}.christianity-card-render--template-genesis-full-art .christianity-card-render__effect{background:#090d1594;color:#fff;box-shadow:inset 0 0 0 1px #ffffff1f}.christianity-card-render--template-genesis-full-art .christianity-card-render__verse{color:#fff}.christianity-card-render--template-genesis-full-art .christianity-card-render__stats strong{background:#ffffffe6;color:#1f2933;text-shadow:none}.christianity-card-render--full.christianity-card-render--template-genesis-full-art{grid-template-rows:auto minmax(14rem,1fr) auto minmax(8rem,auto) auto;min-height:min(35rem,calc(100vh - 4rem));border-radius:.72rem;background:radial-gradient(circle at 50% 8%,rgba(255,255,255,.16),transparent 38%),#090d15;box-shadow:0 0 0 .12rem #ffffff1f,0 2.4rem 5rem #090d157a,inset 0 0 1.8rem #ffffff24}.christianity-card-render--back{place-items:center;padding:.55rem;background:var(--christianity-card-back);box-shadow:0 .8rem 1.55rem #24304424}.christianity-card-render--back:before{content:\"\";position:absolute;inset:.5rem;border:1px solid rgba(16,42,67,.12);border-radius:.38rem;background:linear-gradient(180deg,#ffffff2e,#ffffff0a);box-shadow:inset 0 0 0 .12rem #ffffff1f}.christianity-card-render--list{grid-template-rows:auto minmax(0,1fr) auto;gap:.22rem;padding:.38rem;border-radius:.48rem;box-shadow:0 .45rem 1rem #2430441a,inset 0 0 0 .14rem #ffffff9e}.christianity-card-render--compact{grid-template-rows:minmax(1.4rem,auto) minmax(0,1fr) minmax(1.95rem,auto);gap:.26rem;padding:.42rem}.christianity-card-render--compact.christianity-card-render--template-genesis-classic{--christianity-frame-width: .2rem;padding:calc(.42rem + var(--christianity-frame-width))}.christianity-card-render--compact.christianity-card-render--template-genesis-classic:before{border-radius:.42rem}.christianity-card-render__header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.34rem;align-items:center;min-width:0}.christianity-card-render__type-icon,.christianity-card-render__metric{display:grid;place-items:center;border-radius:999px}.christianity-card-render__type-icon{width:1.2rem;height:1.2rem;background:#24304414}.christianity-card-render__type-icon img{width:.82rem;height:.82rem;object-fit:contain}.christianity-card-render__header strong{min-width:0;display:-webkit-box;overflow:hidden;overflow-wrap:anywhere;text-overflow:clip;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:clamp(.86rem,2.5vw,1.06rem);line-height:1.04}.christianity-card-render--compact .christianity-card-render__header{gap:.24rem;align-items:start}.christianity-card-render--compact .christianity-card-render__type-icon{width:1rem;height:1rem}.christianity-card-render--compact .christianity-card-render__type-icon img{width:.7rem;height:.7rem}.christianity-card-render--compact .christianity-card-render__header strong{font-size:clamp(.72rem,2vw,.92rem);line-height:.98;-webkit-line-clamp:2}.christianity-card-render--list .christianity-card-render__header{gap:.22rem}.christianity-card-render--list .christianity-card-render__type-icon{width:.9rem;height:.9rem}.christianity-card-render--list .christianity-card-render__type-icon img{width:.62rem;height:.62rem}.christianity-card-render--list .christianity-card-render__header strong{font-size:.72rem;line-height:1;-webkit-line-clamp:2}.christianity-card-render--full .christianity-card-render__type-icon{width:1.32rem;height:1.32rem}.christianity-card-render--full .christianity-card-render__type-icon img{width:.84rem;height:.84rem}.christianity-card-render--full .christianity-card-render__header strong{font-size:clamp(1.1rem,5vw,1.55rem)}.christianity-card-render__metric{min-width:1.52rem;height:1.52rem;padding:0 .24rem;background:#ffd91a;color:#243044;font-size:.86rem;font-weight:900;line-height:1;box-shadow:inset 0 -.08rem #52401c2e}.christianity-card-render--compact .christianity-card-render__metric{min-width:1.28rem;height:1.28rem;padding:0 .2rem;font-size:.72rem}.christianity-card-render--list .christianity-card-render__metric{min-width:1.2rem;height:1.2rem;padding:0 .18rem;font-size:.7rem}.christianity-card-render--full .christianity-card-render__metric{min-width:1.72rem;height:1.72rem;padding:0 .3rem;font-size:.98rem}.christianity-card-render--full .christianity-card-render__metric.is-offering-value{display:none}.christianity-card-render__metric.is-pips,.christianity-card-render__stats .is-pips{grid-auto-flow:column;gap:.16rem;min-width:auto;padding:0 .28rem}.christianity-card-render__metric i,.christianity-card-render__stats i{display:block;width:.72rem;height:.72rem;border-radius:999px;background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.9) 0 .12rem,transparent .13rem),#ffd91a;box-shadow:inset 0 -.08rem #52401c2e,0 .12rem .24rem #102a431a}.christianity-card-render--compact .christianity-card-render__metric i,.christianity-card-render--compact .christianity-card-render__stats i{width:.5rem;height:.5rem}.christianity-card-render--list .christianity-card-render__metric i,.christianity-card-render--list .christianity-card-render__stats i{width:.48rem;height:.48rem}.christianity-card-render__art{position:relative;display:grid;place-items:center;min-height:0;overflow:hidden;border-radius:.36rem;background:linear-gradient(135deg,#5f6f2a2e,#d6a21d24),radial-gradient(circle at 50% 18%,rgba(255,255,255,.72),transparent 48%),#dbe7ef;box-shadow:inset 0 0 0 1px #24304414}.christianity-card-render__art img{width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.christianity-card-render__art>span{max-width:78%;overflow:hidden;color:#2430447a;font-size:clamp(.82rem,2.2vw,1.05rem);font-weight:900;line-height:1.02;text-align:center;text-overflow:ellipsis}.christianity-card-render--list .christianity-card-render__art>span{max-width:82%;font-size:.7rem}.christianity-card-render--full .christianity-card-render__art>span{font-size:clamp(1.1rem,5vw,1.8rem)}.christianity-card-render__art small{position:absolute;right:0;bottom:.28rem;max-width:78%;padding:.1rem .34rem;overflow:hidden;border-radius:999px 0 0 999px;background:#ffffffe6;color:#1f2933a8;font-size:.48rem;font-style:italic;font-weight:900;line-height:1;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.christianity-card-render--compact .christianity-card-render__art{border-radius:.3rem}.christianity-card-render--compact .christianity-card-render__art>span{max-width:76%;display:-webkit-box;font-size:clamp(.66rem,1.9vw,.84rem);-webkit-box-orient:vertical;-webkit-line-clamp:2}.christianity-card-render--compact .christianity-card-render__art small{bottom:.22rem;max-width:72%;padding:.08rem .28rem;font-size:.42rem}.christianity-card-render--list .christianity-card-render__art small{bottom:.2rem;padding:.08rem .26rem;font-size:.42rem}.christianity-card-render--full .christianity-card-render__art small{bottom:.42rem;min-width:4.4rem;padding:.14rem .42rem;font-size:.58rem;text-align:center}.christianity-card-render__verse,.christianity-card-render__effect{display:grid;gap:.32rem}.christianity-card-render__verse{color:#171923;font-family:Georgia,Times New Roman,serif;font-size:clamp(.66rem,2.45vw,.78rem)}.christianity-card-render__verse p,.christianity-card-render__effect p{margin:0;line-height:1.18}.christianity-card-render--full .christianity-card-render__verse p{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:4}.christianity-card-render__verse strong{font-family:inherit;font-size:.72rem;font-weight:900}.christianity-card-render__effect{position:relative;align-content:center;min-height:1.45rem;padding:.24rem;overflow:hidden;border-radius:.34rem;background:radial-gradient(circle at 50% 70%,rgba(36,48,68,.06),transparent 44%),#ffffffdb}.christianity-card-render--compact .christianity-card-render__effect{align-content:end;min-height:1.95rem;padding:.2rem .24rem;border-radius:.3rem;background:radial-gradient(circle at 50% 80%,rgba(36,48,68,.05),transparent 45%),linear-gradient(180deg,#ffffffd1,#fffffff0)}.christianity-card-render--list .christianity-card-render__effect{min-height:1.26rem;padding:.16rem;border-radius:.28rem}.christianity-card-render__edition-watermark{position:absolute;top:50%;left:50%;z-index:0;width:min(42%,4.8rem);max-width:none;opacity:.055;pointer-events:none;transform:translate(-50%,-50%)}.christianity-card-render--compact .christianity-card-render__edition-watermark{width:min(36%,2.6rem);opacity:.045}.christianity-card-render--full .christianity-card-render__effect{align-content:start;min-height:4.8rem;padding:.42rem .5rem;border-radius:.45rem}.christianity-card-render--full .christianity-card-render__edition-watermark{width:min(40%,5.4rem);opacity:.055}.christianity-card-render__stats{position:relative;z-index:1;display:flex;gap:.65rem;min-height:1rem}.christianity-card-render--compact .christianity-card-render__stats{align-items:end;min-height:1rem}.christianity-card-render__stats strong{justify-self:end;align-self:end;margin-left:auto;padding:.12rem .32rem;border-radius:999px;background:#edf2f7;font-size:clamp(.66rem,2vw,.82rem);line-height:1.05}.christianity-card-render--compact .christianity-card-render__stats strong{padding:.1rem .28rem;font-size:clamp(.64rem,1.9vw,.78rem)}.christianity-card-render--list .christianity-card-render__stats{min-height:.95rem}.christianity-card-render--list .christianity-card-render__stats strong{padding:.1rem .26rem;font-size:.66rem}.christianity-card-render--full .christianity-card-render__stats strong{margin-left:0;padding:0;background:transparent;font-size:.9rem}.christianity-card-render__text{position:relative;z-index:1;display:grid;gap:.12rem}.christianity-card-render__text strong{font-size:.78rem;line-height:1.05}.christianity-card-render__text p{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;font-size:clamp(.72rem,2.7vw,.84rem);line-height:1.18}.christianity-card-render__rarity{position:absolute;top:.62rem;right:.62rem;z-index:1;width:.46rem;height:.46rem;border-radius:.12rem;transform:rotate(45deg)}.christianity-card-render__rarity.is-normal{background:#d1d5db}.christianity-card-render__rarity.is-uncommon{background:#22c55e}.christianity-card-render__rarity.is-rare{background:#3b82f6}.christianity-card-render__rarity.is-legendary{background:#eab308}.christianity-card-render__footer{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:.24rem;align-items:center;color:#1f2933ad;font-size:.5rem;line-height:1;text-transform:uppercase}.christianity-card-render__footer span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host-context(.dark),:host-context(.ion-palette-dark),:host-context(html.ion-palette-dark),:host-context(body.dark),:host-context([data-theme=\"dark\"]){--christianity-card-back: linear-gradient(135deg, rgba(147, 197, 253, .2), rgba(15, 23, 42, .08)), repeating-linear-gradient(45deg, #1e3a5f 0 .33rem, #0f172a .33rem .66rem);color-scheme:dark}:host-context(.dark) .christianity-card-render,:host-context(.ion-palette-dark) .christianity-card-render,:host-context(html.ion-palette-dark) .christianity-card-render,:host-context(body.dark) .christianity-card-render,:host-context([data-theme=\"dark\"]) .christianity-card-render{box-shadow:0 .5rem 1.25rem #0000003d,inset 0 0 0 .18rem #ffffff61}:host-context(.dark) .christianity-card-render--back,:host-context(.ion-palette-dark) .christianity-card-render--back,:host-context(html.ion-palette-dark) .christianity-card-render--back,:host-context(body.dark) .christianity-card-render--back,:host-context([data-theme=\"dark\"]) .christianity-card-render--back{border-color:#93c5fd38;box-shadow:0 .8rem 1.55rem #00000052}:host-context(.dark) .christianity-card-render--back:before,:host-context(.ion-palette-dark) .christianity-card-render--back:before,:host-context(html.ion-palette-dark) .christianity-card-render--back:before,:host-context(body.dark) .christianity-card-render--back:before,:host-context([data-theme=\"dark\"]) .christianity-card-render--back:before{border-color:#93c5fd29;background:linear-gradient(180deg,#93c5fd24,#0f172a0a)}:host-context(.dark) .christianity-card-render--list,:host-context(.ion-palette-dark) .christianity-card-render--list,:host-context(html.ion-palette-dark) .christianity-card-render--list,:host-context(body.dark) .christianity-card-render--list,:host-context([data-theme=\"dark\"]) .christianity-card-render--list{box-shadow:0 .45rem 1rem #00000042,inset 0 0 0 .14rem #ffffff7a}:host-context(.dark) .christianity-card-render__type-icon,:host-context(.ion-palette-dark) .christianity-card-render__type-icon,:host-context(html.ion-palette-dark) .christianity-card-render__type-icon,:host-context(body.dark) .christianity-card-render__type-icon,:host-context([data-theme=\"dark\"]) .christianity-card-render__type-icon,:host-context(.dark) .christianity-card-render__stats strong,:host-context(.ion-palette-dark) .christianity-card-render__stats strong,:host-context(html.ion-palette-dark) .christianity-card-render__stats strong,:host-context(body.dark) .christianity-card-render__stats strong,:host-context([data-theme=\"dark\"]) .christianity-card-render__stats strong{background:#e2e8f0db;color:#172033}@media (min-width: 52rem){.christianity-card-render--full{grid-template-rows:auto minmax(8rem,1.2fr) minmax(0,auto) minmax(5.9rem,.9fr) auto;gap:.5rem;min-height:0;padding:1.05rem}.christianity-card-render--full.christianity-card-render--template-genesis-classic{--christianity-frame-width: .46rem;padding:calc(1.05rem + var(--christianity-frame-width))}.christianity-card-render--full .christianity-card-render__type-icon{width:1.6rem;height:1.6rem}.christianity-card-render--full .christianity-card-render__type-icon img{width:1rem;height:1rem}.christianity-card-render--full .christianity-card-render__header strong{font-size:clamp(1.25rem,5vw,1.85rem)}}\n"] }); }
70734
+ }
70735
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChristianityCardComponent, decorators: [{
70736
+ type: Component,
70737
+ args: [{ selector: 'val-christianity-card', standalone: true, template: `
70738
+ @if (variant() === 'back') {
70739
+ <article class="christianity-card-render christianity-card-render--back" aria-hidden="true">
70740
+ <span></span>
70741
+ </article>
70742
+ } @else {
70743
+ <article
70744
+ class="christianity-card-render"
70745
+ [class.christianity-card-render--full]="variant() === 'full'"
70746
+ [class.christianity-card-render--compact]="variant() !== 'full'"
70747
+ [class.christianity-card-render--table]="variant() === 'table'"
70748
+ [class.christianity-card-render--hand]="variant() === 'hand'"
70749
+ [class.christianity-card-render--list]="variant() === 'list'"
70750
+ [class.christianity-card-render--template-genesis-classic]="isGenesisClassicTemplate()"
70751
+ [class.christianity-card-render--template-genesis-full-art]="frontTemplate() === 'genesis-full-art'"
70752
+ [class.is-leader]="card().type === 'leader'"
70753
+ [class.is-offering]="card().type === 'offering'"
70754
+ >
70755
+ <header class="christianity-card-render__header">
70756
+ <span class="christianity-card-render__type-icon" aria-hidden="true">
70757
+ <img [src]="typeIconUrl()" alt="" />
70758
+ </span>
70759
+ <strong>{{ card().name }}</strong>
70760
+ @if (headerMetric(); as metric) {
70761
+ <span
70762
+ class="christianity-card-render__metric"
70763
+ [class.is-pips]="metric.kind === 'pips'"
70764
+ [class.is-offering-value]="card().type === 'offering'"
70765
+ >
70766
+ @if (metric.kind === 'pips') {
70767
+ @for (_ of offeringPips(metric.value); track $index) {
70768
+ <i aria-hidden="true"></i>
70769
+ }
70770
+ } @else {
70771
+ {{ metric.value }}
70772
+ }
70773
+ </span>
70774
+ }
70775
+ </header>
70776
+
70777
+ <section class="christianity-card-render__art" [class.has-image]="card().imageUrl">
70778
+ @if (card().imageUrl) {
70779
+ <img [src]="card().imageUrl" [alt]="card().name" draggable="false" />
70780
+ } @else {
70781
+ <span>{{ card().name }}</span>
70782
+ }
70783
+ <small>{{ normalizedTypeLabel() }}</small>
70784
+ </section>
70785
+
70786
+ @if (variant() === 'full') {
70787
+ <section class="christianity-card-render__verse">
70788
+ @if (card().verseText) {
70789
+ <p>{{ card().verseText }}</p>
70790
+ }
70791
+ @if (card().scripture) {
70792
+ <strong>{{ card().scripture }}</strong>
70793
+ }
70794
+ </section>
70795
+ }
70796
+
70797
+ <section class="christianity-card-render__effect">
70798
+ @if (card().editionIcon) {
70799
+ <img class="christianity-card-render__edition-watermark" [src]="card().editionIcon" alt="" aria-hidden="true" />
70800
+ }
70801
+ <div class="christianity-card-render__stats">
70802
+ @if (card().type === 'offering') {
70803
+ <strong class="is-pips">
70804
+ @for (_ of offeringPips(card().offeringValue); track $index) {
70805
+ <i aria-hidden="true"></i>
70806
+ }
70807
+ </strong>
70808
+ } @else if (card().type === 'leader') {
70809
+ <strong>{{ leaderLifeText() }}</strong>
70810
+ } @else if (cardStatsText()) {
70811
+ <strong>{{ cardStatsText() }}</strong>
70812
+ }
70813
+ </div>
70814
+ @if (variant() === 'full') {
70815
+ <div class="christianity-card-render__text">
70816
+ @if (card().abilityName) {
70817
+ <strong>{{ card().abilityName }}</strong>
70818
+ }
70819
+ @if (card().abilityText || card().statusText) {
70820
+ <p>{{ card().abilityText || card().statusText }}</p>
70821
+ }
70822
+ </div>
70823
+ <span
70824
+ class="christianity-card-render__rarity"
70825
+ [class.is-normal]="!card().rarity || card().rarity === 'normal'"
70826
+ [class.is-uncommon]="card().rarity === 'uncommon'"
70827
+ [class.is-rare]="card().rarity === 'rare'"
70828
+ [class.is-legendary]="card().rarity === 'legendary'"
70829
+ aria-hidden="true"
70830
+ ></span>
70831
+ }
70832
+ </section>
70833
+
70834
+ @if (variant() === 'full') {
70835
+ <footer class="christianity-card-render__footer">
70836
+ <span>{{ card().edition ?? 'MVP' }}</span>
70837
+ <span>{{ card().collectorNumber ?? card().id }}</span>
70838
+ <span>{{ card().year ?? '2026' }} CHRISTIANITY</span>
70839
+ <span>{{ card().author ?? 'MVP' }}</span>
70840
+ </footer>
70841
+ }
70842
+ </article>
70843
+ }
70844
+ `, styles: [":host{--christianity-card-aspect: 5 / 7.45;--christianity-card-back: linear-gradient(135deg, rgba(16, 42, 67, .16), rgba(16, 42, 67, .03)), repeating-linear-gradient(45deg, #dbeafe 0 .33rem, #ffffff .33rem .66rem);display:block;width:100%;min-width:0}.christianity-card-render{position:relative;box-sizing:border-box;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:.28rem;width:100%;min-width:0;aspect-ratio:var(--christianity-card-aspect);padding:.48rem;overflow:hidden;border:1px solid rgba(36,48,68,.16);border-radius:.52rem;background:linear-gradient(180deg,#fffffffa,#f8fafcfa),radial-gradient(circle at 18% 0%,rgba(214,162,29,.12),transparent 44%);color:var(--val-text-color, #1f2933);-webkit-user-select:none;user-select:none;box-shadow:0 .5rem 1.25rem #2430441a,inset 0 0 0 .18rem #ffffff9e}.christianity-card-render>*{position:relative;z-index:1}.christianity-card-render--template-genesis-classic{--christianity-frame-width: .26rem;padding:calc(.48rem + var(--christianity-frame-width));border-color:#39475733;background:linear-gradient(180deg,#aab8c7f5,#8fa0b1fa),radial-gradient(circle at 18% 0%,rgba(255,255,255,.24),transparent 42%);box-shadow:0 .5rem 1.25rem #24304421,inset 0 0 0 1px #ffffff6b,inset 0 0 0 var(--christianity-frame-width) #8797a980}.christianity-card-render--template-genesis-classic:before{content:\"\";position:absolute;inset:var(--christianity-frame-width);z-index:0;border-radius:.44rem;background:linear-gradient(180deg,#fffffffa,#f8fafcfa),radial-gradient(circle at 18% 0%,rgba(214,162,29,.1),transparent 44%);box-shadow:inset 0 0 0 1px #ffffffb8,0 .16rem .35rem #2430441a}.christianity-card-render--full{grid-template-rows:auto minmax(6.9rem,1.15fr) minmax(0,auto) minmax(4.8rem,.9fr) auto;gap:.38rem;min-height:0;padding:.56rem;border-color:#2430442e;border-radius:.75rem;background:linear-gradient(180deg,#fffffff5,#f8fafcf5),radial-gradient(circle at 20% 0%,rgba(214,162,29,.18),transparent 45%);box-shadow:0 0 0 .18rem #fff4c294,0 0 2.2rem #f5c75552,0 2.4rem 5rem #102a4357,inset 0 0 0 .35rem #ffffff8c}.christianity-card-render--full.christianity-card-render--template-genesis-classic{--christianity-frame-width: .34rem;padding:calc(.56rem + var(--christianity-frame-width));border-radius:.78rem;box-shadow:0 0 0 .14rem #ffffff6b,0 0 2.2rem #f5c7552e,0 2.4rem 5rem #102a4357,inset 0 0 0 1px #ffffff5c,inset 0 0 0 var(--christianity-frame-width) #8797a994}.christianity-card-render--full.christianity-card-render--template-genesis-classic:before{border-radius:.56rem}.christianity-card-render--template-genesis-full-art{border-color:#090d1594;background:#111827;color:#fff;text-shadow:0 .08rem .18rem rgba(0,0,0,.72);box-shadow:0 .7rem 1.45rem #090d1533,inset 0 0 1.2rem #ffffff1a}.christianity-card-render--template-genesis-full-art .christianity-card-render__art{border-radius:.36rem;box-shadow:inset 0 0 0 1px #ffffff29,inset 0 -2rem 2.5rem #090d154d}.christianity-card-render--template-genesis-full-art .christianity-card-render__effect{background:#090d1594;color:#fff;box-shadow:inset 0 0 0 1px #ffffff1f}.christianity-card-render--template-genesis-full-art .christianity-card-render__verse{color:#fff}.christianity-card-render--template-genesis-full-art .christianity-card-render__stats strong{background:#ffffffe6;color:#1f2933;text-shadow:none}.christianity-card-render--full.christianity-card-render--template-genesis-full-art{grid-template-rows:auto minmax(14rem,1fr) auto minmax(8rem,auto) auto;min-height:min(35rem,calc(100vh - 4rem));border-radius:.72rem;background:radial-gradient(circle at 50% 8%,rgba(255,255,255,.16),transparent 38%),#090d15;box-shadow:0 0 0 .12rem #ffffff1f,0 2.4rem 5rem #090d157a,inset 0 0 1.8rem #ffffff24}.christianity-card-render--back{place-items:center;padding:.55rem;background:var(--christianity-card-back);box-shadow:0 .8rem 1.55rem #24304424}.christianity-card-render--back:before{content:\"\";position:absolute;inset:.5rem;border:1px solid rgba(16,42,67,.12);border-radius:.38rem;background:linear-gradient(180deg,#ffffff2e,#ffffff0a);box-shadow:inset 0 0 0 .12rem #ffffff1f}.christianity-card-render--list{grid-template-rows:auto minmax(0,1fr) auto;gap:.22rem;padding:.38rem;border-radius:.48rem;box-shadow:0 .45rem 1rem #2430441a,inset 0 0 0 .14rem #ffffff9e}.christianity-card-render--compact{grid-template-rows:minmax(1.4rem,auto) minmax(0,1fr) minmax(1.95rem,auto);gap:.26rem;padding:.42rem}.christianity-card-render--compact.christianity-card-render--template-genesis-classic{--christianity-frame-width: .2rem;padding:calc(.42rem + var(--christianity-frame-width))}.christianity-card-render--compact.christianity-card-render--template-genesis-classic:before{border-radius:.42rem}.christianity-card-render__header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.34rem;align-items:center;min-width:0}.christianity-card-render__type-icon,.christianity-card-render__metric{display:grid;place-items:center;border-radius:999px}.christianity-card-render__type-icon{width:1.2rem;height:1.2rem;background:#24304414}.christianity-card-render__type-icon img{width:.82rem;height:.82rem;object-fit:contain}.christianity-card-render__header strong{min-width:0;display:-webkit-box;overflow:hidden;overflow-wrap:anywhere;text-overflow:clip;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:clamp(.86rem,2.5vw,1.06rem);line-height:1.04}.christianity-card-render--compact .christianity-card-render__header{gap:.24rem;align-items:start}.christianity-card-render--compact .christianity-card-render__type-icon{width:1rem;height:1rem}.christianity-card-render--compact .christianity-card-render__type-icon img{width:.7rem;height:.7rem}.christianity-card-render--compact .christianity-card-render__header strong{font-size:clamp(.72rem,2vw,.92rem);line-height:.98;-webkit-line-clamp:2}.christianity-card-render--list .christianity-card-render__header{gap:.22rem}.christianity-card-render--list .christianity-card-render__type-icon{width:.9rem;height:.9rem}.christianity-card-render--list .christianity-card-render__type-icon img{width:.62rem;height:.62rem}.christianity-card-render--list .christianity-card-render__header strong{font-size:.72rem;line-height:1;-webkit-line-clamp:2}.christianity-card-render--full .christianity-card-render__type-icon{width:1.32rem;height:1.32rem}.christianity-card-render--full .christianity-card-render__type-icon img{width:.84rem;height:.84rem}.christianity-card-render--full .christianity-card-render__header strong{font-size:clamp(1.1rem,5vw,1.55rem)}.christianity-card-render__metric{min-width:1.52rem;height:1.52rem;padding:0 .24rem;background:#ffd91a;color:#243044;font-size:.86rem;font-weight:900;line-height:1;box-shadow:inset 0 -.08rem #52401c2e}.christianity-card-render--compact .christianity-card-render__metric{min-width:1.28rem;height:1.28rem;padding:0 .2rem;font-size:.72rem}.christianity-card-render--list .christianity-card-render__metric{min-width:1.2rem;height:1.2rem;padding:0 .18rem;font-size:.7rem}.christianity-card-render--full .christianity-card-render__metric{min-width:1.72rem;height:1.72rem;padding:0 .3rem;font-size:.98rem}.christianity-card-render--full .christianity-card-render__metric.is-offering-value{display:none}.christianity-card-render__metric.is-pips,.christianity-card-render__stats .is-pips{grid-auto-flow:column;gap:.16rem;min-width:auto;padding:0 .28rem}.christianity-card-render__metric i,.christianity-card-render__stats i{display:block;width:.72rem;height:.72rem;border-radius:999px;background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.9) 0 .12rem,transparent .13rem),#ffd91a;box-shadow:inset 0 -.08rem #52401c2e,0 .12rem .24rem #102a431a}.christianity-card-render--compact .christianity-card-render__metric i,.christianity-card-render--compact .christianity-card-render__stats i{width:.5rem;height:.5rem}.christianity-card-render--list .christianity-card-render__metric i,.christianity-card-render--list .christianity-card-render__stats i{width:.48rem;height:.48rem}.christianity-card-render__art{position:relative;display:grid;place-items:center;min-height:0;overflow:hidden;border-radius:.36rem;background:linear-gradient(135deg,#5f6f2a2e,#d6a21d24),radial-gradient(circle at 50% 18%,rgba(255,255,255,.72),transparent 48%),#dbe7ef;box-shadow:inset 0 0 0 1px #24304414}.christianity-card-render__art img{width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.christianity-card-render__art>span{max-width:78%;overflow:hidden;color:#2430447a;font-size:clamp(.82rem,2.2vw,1.05rem);font-weight:900;line-height:1.02;text-align:center;text-overflow:ellipsis}.christianity-card-render--list .christianity-card-render__art>span{max-width:82%;font-size:.7rem}.christianity-card-render--full .christianity-card-render__art>span{font-size:clamp(1.1rem,5vw,1.8rem)}.christianity-card-render__art small{position:absolute;right:0;bottom:.28rem;max-width:78%;padding:.1rem .34rem;overflow:hidden;border-radius:999px 0 0 999px;background:#ffffffe6;color:#1f2933a8;font-size:.48rem;font-style:italic;font-weight:900;line-height:1;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.christianity-card-render--compact .christianity-card-render__art{border-radius:.3rem}.christianity-card-render--compact .christianity-card-render__art>span{max-width:76%;display:-webkit-box;font-size:clamp(.66rem,1.9vw,.84rem);-webkit-box-orient:vertical;-webkit-line-clamp:2}.christianity-card-render--compact .christianity-card-render__art small{bottom:.22rem;max-width:72%;padding:.08rem .28rem;font-size:.42rem}.christianity-card-render--list .christianity-card-render__art small{bottom:.2rem;padding:.08rem .26rem;font-size:.42rem}.christianity-card-render--full .christianity-card-render__art small{bottom:.42rem;min-width:4.4rem;padding:.14rem .42rem;font-size:.58rem;text-align:center}.christianity-card-render__verse,.christianity-card-render__effect{display:grid;gap:.32rem}.christianity-card-render__verse{color:#171923;font-family:Georgia,Times New Roman,serif;font-size:clamp(.66rem,2.45vw,.78rem)}.christianity-card-render__verse p,.christianity-card-render__effect p{margin:0;line-height:1.18}.christianity-card-render--full .christianity-card-render__verse p{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:4}.christianity-card-render__verse strong{font-family:inherit;font-size:.72rem;font-weight:900}.christianity-card-render__effect{position:relative;align-content:center;min-height:1.45rem;padding:.24rem;overflow:hidden;border-radius:.34rem;background:radial-gradient(circle at 50% 70%,rgba(36,48,68,.06),transparent 44%),#ffffffdb}.christianity-card-render--compact .christianity-card-render__effect{align-content:end;min-height:1.95rem;padding:.2rem .24rem;border-radius:.3rem;background:radial-gradient(circle at 50% 80%,rgba(36,48,68,.05),transparent 45%),linear-gradient(180deg,#ffffffd1,#fffffff0)}.christianity-card-render--list .christianity-card-render__effect{min-height:1.26rem;padding:.16rem;border-radius:.28rem}.christianity-card-render__edition-watermark{position:absolute;top:50%;left:50%;z-index:0;width:min(42%,4.8rem);max-width:none;opacity:.055;pointer-events:none;transform:translate(-50%,-50%)}.christianity-card-render--compact .christianity-card-render__edition-watermark{width:min(36%,2.6rem);opacity:.045}.christianity-card-render--full .christianity-card-render__effect{align-content:start;min-height:4.8rem;padding:.42rem .5rem;border-radius:.45rem}.christianity-card-render--full .christianity-card-render__edition-watermark{width:min(40%,5.4rem);opacity:.055}.christianity-card-render__stats{position:relative;z-index:1;display:flex;gap:.65rem;min-height:1rem}.christianity-card-render--compact .christianity-card-render__stats{align-items:end;min-height:1rem}.christianity-card-render__stats strong{justify-self:end;align-self:end;margin-left:auto;padding:.12rem .32rem;border-radius:999px;background:#edf2f7;font-size:clamp(.66rem,2vw,.82rem);line-height:1.05}.christianity-card-render--compact .christianity-card-render__stats strong{padding:.1rem .28rem;font-size:clamp(.64rem,1.9vw,.78rem)}.christianity-card-render--list .christianity-card-render__stats{min-height:.95rem}.christianity-card-render--list .christianity-card-render__stats strong{padding:.1rem .26rem;font-size:.66rem}.christianity-card-render--full .christianity-card-render__stats strong{margin-left:0;padding:0;background:transparent;font-size:.9rem}.christianity-card-render__text{position:relative;z-index:1;display:grid;gap:.12rem}.christianity-card-render__text strong{font-size:.78rem;line-height:1.05}.christianity-card-render__text p{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;font-size:clamp(.72rem,2.7vw,.84rem);line-height:1.18}.christianity-card-render__rarity{position:absolute;top:.62rem;right:.62rem;z-index:1;width:.46rem;height:.46rem;border-radius:.12rem;transform:rotate(45deg)}.christianity-card-render__rarity.is-normal{background:#d1d5db}.christianity-card-render__rarity.is-uncommon{background:#22c55e}.christianity-card-render__rarity.is-rare{background:#3b82f6}.christianity-card-render__rarity.is-legendary{background:#eab308}.christianity-card-render__footer{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:.24rem;align-items:center;color:#1f2933ad;font-size:.5rem;line-height:1;text-transform:uppercase}.christianity-card-render__footer span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host-context(.dark),:host-context(.ion-palette-dark),:host-context(html.ion-palette-dark),:host-context(body.dark),:host-context([data-theme=\"dark\"]){--christianity-card-back: linear-gradient(135deg, rgba(147, 197, 253, .2), rgba(15, 23, 42, .08)), repeating-linear-gradient(45deg, #1e3a5f 0 .33rem, #0f172a .33rem .66rem);color-scheme:dark}:host-context(.dark) .christianity-card-render,:host-context(.ion-palette-dark) .christianity-card-render,:host-context(html.ion-palette-dark) .christianity-card-render,:host-context(body.dark) .christianity-card-render,:host-context([data-theme=\"dark\"]) .christianity-card-render{box-shadow:0 .5rem 1.25rem #0000003d,inset 0 0 0 .18rem #ffffff61}:host-context(.dark) .christianity-card-render--back,:host-context(.ion-palette-dark) .christianity-card-render--back,:host-context(html.ion-palette-dark) .christianity-card-render--back,:host-context(body.dark) .christianity-card-render--back,:host-context([data-theme=\"dark\"]) .christianity-card-render--back{border-color:#93c5fd38;box-shadow:0 .8rem 1.55rem #00000052}:host-context(.dark) .christianity-card-render--back:before,:host-context(.ion-palette-dark) .christianity-card-render--back:before,:host-context(html.ion-palette-dark) .christianity-card-render--back:before,:host-context(body.dark) .christianity-card-render--back:before,:host-context([data-theme=\"dark\"]) .christianity-card-render--back:before{border-color:#93c5fd29;background:linear-gradient(180deg,#93c5fd24,#0f172a0a)}:host-context(.dark) .christianity-card-render--list,:host-context(.ion-palette-dark) .christianity-card-render--list,:host-context(html.ion-palette-dark) .christianity-card-render--list,:host-context(body.dark) .christianity-card-render--list,:host-context([data-theme=\"dark\"]) .christianity-card-render--list{box-shadow:0 .45rem 1rem #00000042,inset 0 0 0 .14rem #ffffff7a}:host-context(.dark) .christianity-card-render__type-icon,:host-context(.ion-palette-dark) .christianity-card-render__type-icon,:host-context(html.ion-palette-dark) .christianity-card-render__type-icon,:host-context(body.dark) .christianity-card-render__type-icon,:host-context([data-theme=\"dark\"]) .christianity-card-render__type-icon,:host-context(.dark) .christianity-card-render__stats strong,:host-context(.ion-palette-dark) .christianity-card-render__stats strong,:host-context(html.ion-palette-dark) .christianity-card-render__stats strong,:host-context(body.dark) .christianity-card-render__stats strong,:host-context([data-theme=\"dark\"]) .christianity-card-render__stats strong{background:#e2e8f0db;color:#172033}@media (min-width: 52rem){.christianity-card-render--full{grid-template-rows:auto minmax(8rem,1.2fr) minmax(0,auto) minmax(5.9rem,.9fr) auto;gap:.5rem;min-height:0;padding:1.05rem}.christianity-card-render--full.christianity-card-render--template-genesis-classic{--christianity-frame-width: .46rem;padding:calc(1.05rem + var(--christianity-frame-width))}.christianity-card-render--full .christianity-card-render__type-icon{width:1.6rem;height:1.6rem}.christianity-card-render--full .christianity-card-render__type-icon img{width:1rem;height:1rem}.christianity-card-render--full .christianity-card-render__header strong{font-size:clamp(1.25rem,5vw,1.85rem)}}\n"] }]
70845
+ }] });
70846
+
70847
+ const GENESIS_CATALOG_URL = 'assets/games/christianity/data/01-genesis.cards.json';
70848
+ const GENESIS_ICON_URL = 'assets/games/christianity/icons/1-icon.png';
70849
+ const TUTORIAL_CHARACTER_LIMIT = 12;
70850
+ const TUTORIAL_OFFERING_LIMIT = 6;
70851
+ const SPLASH_MIN_DURATION_MS = 720;
70852
+ const STARTER_CARDS = {
70853
+ o_simple: {
70854
+ id: 'o_simple',
70855
+ name: 'Ofrenda simple',
70856
+ type: 'offering',
70857
+ cost: 0,
70858
+ attack: 0,
70859
+ life: 1,
70860
+ verseText: 'Una ofrenda sencilla queda lista para sostener tus siguientes jugadas.',
70861
+ scripture: 'Genesis 4:4',
70862
+ edition: 'GEN',
70863
+ collectorNumber: '001/020',
70864
+ year: '2026',
70865
+ author: 'MVP',
70866
+ rarity: 'normal',
70867
+ },
70868
+ o_forbidden: {
70869
+ id: 'o_forbidden',
70870
+ name: 'El fruto prohibido',
70871
+ type: 'offering',
70872
+ cost: 0,
70873
+ attack: 0,
70874
+ life: 2,
70875
+ abilityName: 'Conocimiento del bien y del mal',
70876
+ abilityText: 'Al usarla, disminuye en 1 los puntos de vida de tu Líder.',
70877
+ abilityCost: 0,
70878
+ verseText: 'Dios el Señor puso al hombre en el jardín de Edén para que lo labrara y lo cuidara.',
70879
+ scripture: 'Genesis 2:17 NBV',
70880
+ edition: 'GEN',
70881
+ collectorNumber: '012/180',
70882
+ year: '2026',
70883
+ author: 'MVP',
70884
+ rarity: 'uncommon',
70885
+ },
70886
+ p_scout: {
70887
+ id: 'p_scout',
70888
+ name: 'Scout',
70889
+ type: 'character',
70890
+ cost: 1,
70891
+ attack: 1,
70892
+ life: 1,
70893
+ verseText: 'Un explorador humilde abre camino antes de que llegue la batalla.',
70894
+ scripture: 'Genesis 13:17',
70895
+ edition: 'GEN',
70896
+ collectorNumber: '002/020',
70897
+ year: '2026',
70898
+ author: 'MVP',
70899
+ rarity: 'normal',
70900
+ },
70901
+ p_guard: { id: 'p_guard', name: 'Guard', type: 'character', cost: 2, attack: 1, life: 3, edition: 'GEN', collectorNumber: '003/020', year: '2026', author: 'MVP', rarity: 'normal' },
70902
+ p_warrior: { id: 'p_warrior', name: 'Warrior', type: 'character', cost: 2, attack: 2, life: 2, edition: 'GEN', collectorNumber: '004/020', year: '2026', author: 'MVP', rarity: 'normal' },
70903
+ p_elder: { id: 'p_elder', name: 'Elder', type: 'character', cost: 3, attack: 2, life: 4, edition: 'GEN', collectorNumber: '005/020', year: '2026', author: 'MVP', rarity: 'uncommon' },
70904
+ p_champion: { id: 'p_champion', name: 'Champion', type: 'character', cost: 4, attack: 4, life: 4, edition: 'GEN', collectorNumber: '006/020', year: '2026', author: 'MVP', rarity: 'rare' },
70905
+ };
70906
+ const STARTING_SHARED_DECK = [
70907
+ 'o_simple',
70908
+ 'p_scout',
70909
+ 'o_forbidden',
70910
+ 'o_simple',
70911
+ 'p_guard',
70912
+ 'p_warrior',
70913
+ 'o_simple',
70914
+ 'p_elder',
70915
+ 'p_scout',
70916
+ 'o_simple',
70917
+ 'p_champion',
70918
+ 'p_guard',
70919
+ 'o_simple',
70920
+ 'p_warrior',
70921
+ 'p_scout',
70922
+ 'o_simple',
70923
+ 'p_elder',
70924
+ 'p_guard',
70925
+ 'o_simple',
70926
+ ];
70927
+ const STARTING_GAME = {
70928
+ gameId: 'mock-christianity',
70929
+ status: 'in_progress',
70930
+ mode: 'local_pass',
70931
+ turnOwner: 'P1',
70932
+ revision: 0,
70933
+ turnCount: 1,
70934
+ matchScore: { P1: 1, P2: 0 },
70935
+ sharedDeck: STARTING_SHARED_DECK,
70936
+ historyZone: [],
70937
+ players: {
70938
+ P1: {
70939
+ seat: 'P1',
70940
+ displayName: 'Jugador',
70941
+ avatar: 'J',
70942
+ avatarColor: '#2563eb',
70943
+ leaderName: 'Adam',
70944
+ leaderHp: 15,
70945
+ leaderMaxHp: 15,
70946
+ offerings: [
70947
+ { instanceId: 'p1_offering_001', cardId: 'o_simple', name: 'Ofrenda simple', owner: 'P1', ready: true, value: 1 },
70948
+ {
70949
+ instanceId: 'p1_offering_002',
70950
+ cardId: 'o_forbidden',
70951
+ name: 'El fruto prohibido',
70952
+ owner: 'P1',
70953
+ ready: true,
70954
+ value: 2,
70955
+ abilityName: 'Conocimiento del bien y del mal',
70956
+ abilityText: 'Al usarla, disminuye en 1 los puntos de vida de tu Lider.',
70957
+ abilityCost: 0,
70958
+ },
70959
+ ],
70960
+ offeringPlayedThisTurn: false,
70961
+ hand: ['o_simple', 'p_scout', 'p_warrior', 'p_guard'],
70962
+ battleZone: [],
70963
+ },
70964
+ P2: {
70965
+ seat: 'P2',
70966
+ displayName: 'Rival',
70967
+ avatar: 'R',
70968
+ avatarColor: '#b45309',
70969
+ leaderName: 'Noah',
70970
+ leaderHp: 15,
70971
+ leaderMaxHp: 15,
70972
+ offerings: [{ instanceId: 'p2_offering_001', cardId: 'o_simple', name: 'Ofrenda simple', owner: 'P2', ready: true, value: 1 }],
70973
+ offeringPlayedThisTurn: false,
70974
+ handCount: 4,
70975
+ battleZone: [
70976
+ {
70977
+ instanceId: 'opp_001',
70978
+ cardId: 'p_scout',
70979
+ name: 'Scout',
70980
+ owner: 'P2',
70981
+ controller: 'P2',
70982
+ slot: 0,
70983
+ attack: 1,
70984
+ currentHp: 1,
70985
+ maxHp: 1,
70986
+ canAttack: false,
70987
+ },
70988
+ ],
70989
+ },
70990
+ },
70991
+ log: ['Partida iniciada.'],
70992
+ };
70993
+ class ChristianityGameComponent {
70994
+ constructor() {
70995
+ this.i18n = inject(I18nService);
70996
+ this.bootStartedAt = performance.now();
70997
+ this.game = signal(structuredClone(STARTING_GAME));
70998
+ this.screen = signal('splash');
70999
+ this.catalogLoadState = signal('loading');
71000
+ this.selectedHandCard = signal(null);
71001
+ this.selectedAttacker = signal(null);
71002
+ this.selectedPreview = signal(null);
71003
+ this.selectedInfo = signal(null);
71004
+ this.previewTilt = signal({ rotateX: 5, rotateY: -5, shiftX: 0, shiftY: 0 });
71005
+ this.hoveredHandIndex = signal(null);
71006
+ this.draggingCardId = signal(null);
71007
+ this.showHistory = signal(false);
71008
+ this.showGallery = signal(false);
71009
+ this.offeringsSeat = signal(null);
71010
+ this.cardCatalog = signal(STARTER_CARDS);
71011
+ this.allCatalogCards = signal(Object.values(STARTER_CARDS));
71012
+ this.catalogLoaded = signal(false);
71013
+ this.gallerySearch = signal('');
71014
+ this.galleryType = signal('all');
71015
+ this.canDropOnBattleSlot = (drag) => {
71016
+ const card = this.cardDefinition(drag.data);
71017
+ return card.type === 'character' && this.canPlay(card);
71018
+ };
71019
+ this.canDropOnOfferings = (drag) => {
71020
+ const card = this.cardDefinition(drag.data);
71021
+ return card.type === 'offering' && this.canPlay(card);
71022
+ };
71023
+ this.player = computed(() => this.game().players.P1);
71024
+ this.opponent = computed(() => this.game().players.P2);
71025
+ this.currentPlayer = computed(() => this.game().players[this.game().turnOwner]);
71026
+ this.isOwnTurn = computed(() => this.game().turnOwner === 'P1');
71027
+ this.hasOpponentGuards = computed(() => this.opponent().battleZone.length > 0);
71028
+ this.opponentHandCount = computed(() => this.opponent().handCount ?? this.opponent().hand?.length ?? 0);
71029
+ this.galleryCards = computed(() => {
71030
+ const query = this.gallerySearch().trim().toLowerCase().normalize('NFD').replace(/[\u0300-\u036f]/g, '');
71031
+ const type = this.galleryType();
71032
+ return this.allCatalogCards()
71033
+ .filter(card => type === 'all' || card.type === type)
71034
+ .filter(card => {
71035
+ if (!query)
71036
+ return true;
71037
+ const text = this.translatedCardText(card);
71038
+ const haystack = [text.name, card.type, text.scripture, text.abilityName, text.abilityText, text.verseText]
71039
+ .filter(Boolean)
71040
+ .join(' ')
71041
+ .toLowerCase()
71042
+ .normalize('NFD')
71043
+ .replace(/[\u0300-\u036f]/g, '');
71044
+ return haystack.includes(query);
71045
+ })
71046
+ .sort((left, right) => this.cardSortKey(left).localeCompare(this.cardSortKey(right), 'es'));
71047
+ });
71048
+ this.galleryEditionLabel = computed(() => {
71049
+ const count = this.allCatalogCards().length;
71050
+ return `${this.t('christianityGenesisEdition')} · ${count} ${this.t('christianityCards')}`;
71051
+ });
71052
+ this.galleryEditionIcon = computed(() => GENESIS_ICON_URL);
71053
+ this.galleryTypeOptions = computed(() => [
71054
+ { value: 'all', label: this.t('christianityAllCards') },
71055
+ { value: 'leader', label: this.t('christianityLeaderCard') },
71056
+ { value: 'offering', label: this.t('christianityOfferingCard') },
71057
+ { value: 'character', label: this.t('christianityCharacterCard') },
71058
+ { value: 'wisdom', label: this.t('christianityWisdomCard') },
71059
+ { value: 'action', label: this.t('christianityActionCard') },
71060
+ { value: 'tool', label: this.t('christianityToolCard') },
71061
+ { value: 'place', label: this.t('christianityPlaceCard') },
71062
+ { value: 'event', label: this.t('christianityEventCard') },
71063
+ ]);
71064
+ this.splashStatusText = computed(() => {
71065
+ const state = this.catalogLoadState();
71066
+ if (state === 'ready')
71067
+ return this.t('christianitySplashReady');
71068
+ if (state === 'fallback')
71069
+ return this.t('christianitySplashFallback');
71070
+ return this.t('christianitySplashLoading');
71071
+ });
71072
+ this.startFeaturedCards = computed(() => {
71073
+ const cards = this.allCatalogCards();
71074
+ const preferred = ['GEN-009', 'GEN-013', 'GEN-032']
71075
+ .map(id => this.cardCatalog()[id])
71076
+ .filter((card) => !!card);
71077
+ return (preferred.length ? preferred : cards.slice(0, 3)).slice(0, 3);
71078
+ });
71079
+ this.futureModes = computed(() => [
71080
+ { title: this.t('christianitySoloBotMode'), body: this.t('christianitySoloBotModeBody') },
71081
+ { title: this.t('christianityTwoPlayerMode'), body: this.t('christianityTwoPlayerModeBody') },
71082
+ { title: this.t('christianityOneDeviceMode'), body: this.t('christianityOneDeviceModeBody') },
71083
+ { title: this.t('christianitySpectatorMode'), body: this.t('christianitySpectatorModeBody') },
71084
+ ]);
71085
+ this.selectedCardDefinition = computed(() => {
71086
+ const selected = this.selectedHandCard();
71087
+ return selected ? this.cardDefinition(selected) : null;
71088
+ });
71089
+ this.selectedPreviewCard = computed(() => {
71090
+ const cardId = this.selectedPreview()?.cardId;
71091
+ return cardId ? this.cardDefinition(cardId) : null;
71092
+ });
71093
+ this.selectedPreviewRenderCard = computed(() => {
71094
+ const preview = this.selectedPreview();
71095
+ if (!preview)
71096
+ return null;
71097
+ const card = this.selectedPreviewCard();
71098
+ if (card) {
71099
+ return this.definitionToRenderCard(card, {
71100
+ statusText: preview.body,
71101
+ });
71102
+ }
71103
+ if (preview.eyebrow === this.t('christianityLeaderCard')) {
71104
+ const [currentHp, maxHp] = preview.meta.split('/').map(value => Number(value));
71105
+ return {
71106
+ id: `leader-${preview.title.toLowerCase()}`,
71107
+ name: preview.title,
71108
+ type: 'leader',
71109
+ typeLabel: this.t('christianityLeaderCard'),
71110
+ currentHp: Number.isFinite(currentHp) ? currentHp : undefined,
71111
+ maxHp: Number.isFinite(maxHp) ? maxHp : undefined,
71112
+ life: Number.isFinite(currentHp) ? currentHp : undefined,
71113
+ abilityName: this.t('christianityLeaderCard'),
71114
+ abilityText: preview.body,
71115
+ verseText: preview.body,
71116
+ edition: 'MVP',
71117
+ collectorNumber: 'LIDER',
71118
+ year: '2026',
71119
+ author: 'MVP',
71120
+ rarity: 'legendary',
71121
+ };
71122
+ }
71123
+ return {
71124
+ id: `preview-${preview.title.toLowerCase()}`,
71125
+ name: preview.title,
71126
+ type: this.previewRenderType(preview.eyebrow),
71127
+ typeLabel: preview.eyebrow,
71128
+ abilityName: preview.eyebrow,
71129
+ abilityText: preview.body,
71130
+ verseText: preview.body,
71131
+ edition: 'MVP',
71132
+ collectorNumber: preview.eyebrow,
71133
+ year: '2026',
71134
+ author: 'MVP',
71135
+ rarity: 'normal',
71136
+ statusText: preview.meta,
71137
+ };
71138
+ });
71139
+ this.previewRule = computed(() => {
71140
+ const preview = this.selectedPreview();
71141
+ if (!preview)
71142
+ return null;
71143
+ const card = this.selectedPreviewCard();
71144
+ if (card?.type === 'offering') {
71145
+ return { title: this.t('christianityOfferingCard'), body: this.t('christianityOfferingRuleBody') };
71146
+ }
71147
+ if (card?.type === 'character') {
71148
+ return { title: this.t('christianityCharacterCard'), body: this.t('christianityCharacterRuleBody') };
71149
+ }
71150
+ if (card?.type === 'wisdom') {
71151
+ return { title: this.t('christianityWisdomCard'), body: this.t('christianityWisdomRuleBody') };
71152
+ }
71153
+ if (card?.type === 'action') {
71154
+ return { title: this.t('christianityActionCard'), body: this.t('christianityActionRuleBody') };
71155
+ }
71156
+ if (card?.type === 'tool') {
71157
+ return { title: this.t('christianityToolCard'), body: this.t('christianityToolRuleBody') };
71158
+ }
71159
+ if (card?.type === 'place') {
71160
+ return { title: this.t('christianityPlaceCard'), body: this.t('christianityPlaceRuleBody') };
71161
+ }
71162
+ if (card?.type === 'event') {
71163
+ return { title: this.t('christianityEventCard'), body: this.t('christianityEventRuleBody') };
71164
+ }
71165
+ if (card?.type === 'leader') {
71166
+ return { title: this.t('christianityLeaderCard'), body: this.t('christianityLeaderRuleBody') };
71167
+ }
71168
+ if (preview.eyebrow === this.t('christianityLeaderCard')) {
71169
+ return { title: this.t('christianityLeaderCard'), body: this.t('christianityLeaderRuleBody') };
71170
+ }
71171
+ return null;
71172
+ });
71173
+ this.statusText = computed(() => {
71174
+ const attacker = this.selectedAttacker();
71175
+ const handCard = this.selectedCardDefinition();
71176
+ if (!this.isOwnTurn()) {
71177
+ return this.t('christianityWaitTurn');
71178
+ }
71179
+ if (attacker) {
71180
+ return this.hasOpponentGuards() ? this.t('christianityChooseCharacterTarget') : this.t('christianityChooseTarget');
71181
+ }
71182
+ if (handCard) {
71183
+ if (!this.canPlay(handCard)) {
71184
+ return this.t('christianityNeedOfferings');
71185
+ }
71186
+ return handCard.type === 'offering' ? this.t('christianityPlaceOffering') : this.t('christianityChooseSlot');
71187
+ }
71188
+ return this.t('christianityChooseCard');
71189
+ });
71190
+ this.i18n.registerDefaults('MiniGames', MINI_GAMES_I18N);
71191
+ void this.loadGenesisCatalog();
71192
+ }
71193
+ t(key) {
71194
+ this.i18n.lang();
71195
+ return this.i18n.t(key, 'MiniGames');
71196
+ }
71197
+ async loadGenesisCatalog() {
71198
+ let loaded = false;
71199
+ try {
71200
+ const response = await fetch(GENESIS_CATALOG_URL);
71201
+ if (response.ok) {
71202
+ const catalog = await response.json();
71203
+ const cards = (catalog.cards ?? []).map(card => this.normalizeCatalogCard(card, catalog));
71204
+ if (cards.length) {
71205
+ this.cardCatalog.set(Object.fromEntries(cards.map(card => [card.id, card])));
71206
+ this.allCatalogCards.set(cards);
71207
+ this.catalogLoaded.set(true);
71208
+ this.game.set(this.createTutorialGame(cards));
71209
+ loaded = true;
71210
+ }
71211
+ }
71212
+ }
71213
+ catch (error) {
71214
+ console.warn('Christianity catalog could not be loaded. Falling back to starter cards.', error);
71215
+ }
71216
+ this.catalogLoadState.set(loaded ? 'ready' : 'fallback');
71217
+ this.finishSplash();
71218
+ }
71219
+ finishSplash() {
71220
+ const elapsed = performance.now() - this.bootStartedAt;
71221
+ const remaining = Math.max(0, SPLASH_MIN_DURATION_MS - elapsed);
71222
+ window.setTimeout(() => {
71223
+ if (this.screen() === 'splash') {
71224
+ this.screen.set('home');
71225
+ }
71226
+ }, remaining);
71227
+ }
71228
+ normalizeCatalogCard(card, catalog) {
71229
+ const editionIcon = card.editionIcon ?? catalog.edition?.icon ?? GENESIS_ICON_URL;
71230
+ const verseText = card.verseText ?? card.bible?.text;
71231
+ const scripture = card.scripture ?? this.formatScripture(card.bible);
71232
+ const offeringValue = card.type === 'offering' ? card.offeringValue ?? card.life ?? card.cost ?? 1 : card.offeringValue;
71233
+ const life = card.type === 'leader'
71234
+ ? card.leaderLife ?? card.life ?? 10
71235
+ : card.type === 'offering'
71236
+ ? offeringValue
71237
+ : card.life ?? 0;
71238
+ return {
71239
+ ...card,
71240
+ cost: card.type === 'offering' ? 0 : card.cost ?? 0,
71241
+ offeringValue,
71242
+ life,
71243
+ leaderLife: card.type === 'leader' ? card.leaderLife ?? life : card.leaderLife,
71244
+ attack: card.type === 'character' ? card.attack ?? 0 : card.attack,
71245
+ abilityName: card.abilityName ?? card.abilities?.[0]?.name,
71246
+ abilityText: card.abilityText ?? card.abilities?.[0]?.text,
71247
+ verseText,
71248
+ scripture,
71249
+ edition: card.edition ?? catalog.edition?.id ?? 'GEN',
71250
+ editionNumber: card.editionNumber ?? catalog.edition?.number,
71251
+ editionIcon,
71252
+ imageUrl: card.imageUrl ?? card.art?.imageUrl,
71253
+ author: card.author ?? card.art?.artistCredit,
71254
+ year: card.year ?? '2026',
71255
+ frontTemplate: card.frontTemplate ?? 'genesis-classic',
71256
+ };
71257
+ }
71258
+ formatScripture(bible) {
71259
+ if (!bible?.book || !bible.reference)
71260
+ return undefined;
71261
+ return `${bible.book} ${bible.reference}${bible.version ? ` ${bible.version}` : ''}`;
71262
+ }
71263
+ createTutorialGame(cards) {
71264
+ const leaders = cards.filter(card => card.type === 'leader');
71265
+ const playerLeader = this.findCard(leaders, 'Adán') ?? leaders[0];
71266
+ const opponentLeader = this.findCard(leaders, 'Noé') ?? leaders[1] ?? leaders[0];
71267
+ const offerings = cards.filter(card => card.type === 'offering').slice(0, TUTORIAL_OFFERING_LIMIT);
71268
+ const characters = cards
71269
+ .filter(card => card.type === 'character' && (card.cost ?? 0) <= 4 && (card.attack ?? 0) >= 0 && (card.life ?? 0) > 0)
71270
+ .slice(0, TUTORIAL_CHARACTER_LIMIT);
71271
+ const startingOffering = offerings[0] ?? STARTER_CARDS['o_simple'];
71272
+ const tutorialDeck = [
71273
+ ...offerings.slice(1),
71274
+ ...characters,
71275
+ ...offerings.slice(0, 1),
71276
+ ].slice(0, 20);
71277
+ const playerHand = tutorialDeck.slice(0, 4).map(card => card.id);
71278
+ const opponentBattleCard = characters[0];
71279
+ const sharedDeck = tutorialDeck.slice(4).map(card => card.id);
71280
+ return {
71281
+ ...structuredClone(STARTING_GAME),
71282
+ sharedDeck,
71283
+ historyZone: [],
71284
+ players: {
71285
+ P1: this.createTutorialPlayer('P1', playerLeader, startingOffering, playerHand, []),
71286
+ P2: this.createTutorialPlayer('P2', opponentLeader, startingOffering, undefined, opponentBattleCard ? [this.createCharacterInstance(opponentBattleCard, 'P2', 0, 'opp_001')] : []),
71287
+ },
71288
+ log: [this.t('christianityTutorialLoaded')],
71289
+ };
71290
+ }
71291
+ createTutorialPlayer(seat, leader, startingOffering, hand, battleZone) {
71292
+ const base = STARTING_GAME.players[seat];
71293
+ const leaderLife = leader?.leaderLife ?? leader?.life ?? base.leaderMaxHp;
71294
+ return {
71295
+ ...structuredClone(base),
71296
+ leaderCardId: leader?.id,
71297
+ leaderName: leader ? this.translatedCardText(leader).name : base.leaderName,
71298
+ leaderHp: leaderLife,
71299
+ leaderMaxHp: leaderLife,
71300
+ offerings: [this.createOfferingInstance(startingOffering, seat, `${seat.toLowerCase()}_offering_001`)],
71301
+ offeringPlayedThisTurn: false,
71302
+ hand,
71303
+ handCount: hand ? undefined : 4,
71304
+ battleZone,
71305
+ };
71306
+ }
71307
+ createOfferingInstance(card, seat, instanceId) {
71308
+ const value = card.offeringValue ?? card.life ?? 1;
71309
+ return {
71310
+ instanceId,
71311
+ cardId: card.id,
71312
+ name: this.translatedCardText(card).name,
71313
+ owner: seat,
71314
+ ready: true,
71315
+ value,
71316
+ abilityName: card.abilityName,
71317
+ abilityText: card.abilityText,
71318
+ abilityCost: card.abilityCost,
71319
+ };
71320
+ }
71321
+ createCharacterInstance(card, seat, slot, instanceId) {
71322
+ const life = card.life ?? 1;
71323
+ return {
71324
+ instanceId,
71325
+ cardId: card.id,
71326
+ name: this.translatedCardText(card).name,
71327
+ owner: seat,
71328
+ controller: seat,
71329
+ slot,
71330
+ attack: card.attack ?? 0,
71331
+ currentHp: life,
71332
+ maxHp: life,
71333
+ canAttack: false,
71334
+ };
71335
+ }
71336
+ findCard(cards, namePart) {
71337
+ return cards.find(card => this.translatedCardText(card).name.toLowerCase().includes(namePart.toLowerCase()));
71338
+ }
71339
+ cardSortKey(card) {
71340
+ const collector = card.collectorNumber ?? card.id;
71341
+ return `${card.edition ?? ''}-${collector.padStart(8, '0')}-${this.translatedCardText(card).name}`;
71342
+ }
71343
+ cardDefinition(cardId) {
71344
+ return this.cardCatalog()[cardId] ?? STARTER_CARDS[cardId] ?? STARTER_CARDS['p_scout'];
71345
+ }
71346
+ translatedCardText(card) {
71347
+ const lang = this.i18n.lang();
71348
+ const translation = card.i18n?.[lang] ?? card.i18n?.['es'];
71349
+ const primaryAbility = translation?.abilities?.[0] ?? card.abilities?.[0];
71350
+ return {
71351
+ name: translation?.name ?? card.name,
71352
+ fullName: translation?.fullName ?? card.fullName,
71353
+ verseText: translation?.verseText ?? card.verseText,
71354
+ scripture: translation?.scripture ?? card.scripture,
71355
+ abilityName: translation?.abilityName ?? primaryAbility?.name ?? card.abilityName,
71356
+ abilityText: translation?.abilityText ?? primaryAbility?.text ?? card.abilityText,
71357
+ abilities: translation?.abilities ?? card.abilities,
71358
+ };
71359
+ }
71360
+ cardDisplayName(cardId) {
71361
+ return this.translatedCardText(this.cardDefinition(cardId)).name;
71362
+ }
71363
+ playerLeaderDisplayName(player) {
71364
+ return player.leaderCardId ? this.cardDisplayName(player.leaderCardId) : player.leaderName;
71365
+ }
71366
+ catalogStatusLabel() {
71367
+ const state = this.catalogLoadState();
71368
+ if (state === 'ready')
71369
+ return this.t('christianityCatalogReady');
71370
+ if (state === 'fallback')
71371
+ return this.t('christianityCatalogFallback');
71372
+ return this.t('christianityCatalogLoading');
71373
+ }
71374
+ startFeaturedCardTransform(index) {
71375
+ const transforms = [
71376
+ 'translateX(-1.4rem) rotate(-9deg)',
71377
+ 'translateY(-0.55rem) rotate(2deg)',
71378
+ 'translateX(1.4rem) rotate(10deg)',
71379
+ ];
71380
+ return transforms[index] ?? 'none';
71381
+ }
71382
+ cardTypeLabel(card) {
71383
+ const labels = {
71384
+ action: this.t('christianityActionCard'),
71385
+ character: this.t('christianityCharacterCard'),
71386
+ event: this.t('christianityEventCard'),
71387
+ leader: this.t('christianityLeaderCard'),
71388
+ offering: this.t('christianityOfferingCard'),
71389
+ place: this.t('christianityPlaceCard'),
71390
+ tool: this.t('christianityToolCard'),
71391
+ wisdom: this.t('christianityWisdomCard'),
71392
+ };
71393
+ return labels[card.type];
71394
+ }
71395
+ definitionToRenderCard(card, overrides = {}) {
71396
+ const text = this.translatedCardText(card);
71397
+ const base = {
71398
+ id: card.id,
71399
+ name: text.name,
71400
+ type: card.type,
71401
+ typeLabel: this.cardTypeLabel(card),
71402
+ cost: card.cost,
71403
+ offeringValue: card.type === 'offering' ? card.offeringValue ?? card.life : undefined,
71404
+ attack: card.type === 'character' ? card.attack : undefined,
71405
+ life: card.life,
71406
+ currentHp: card.life,
71407
+ maxHp: card.life,
71408
+ abilityName: text.abilityName,
71409
+ abilityText: text.abilityText || this.defaultCardBody(card.type),
71410
+ verseText: text.verseText,
71411
+ scripture: text.scripture,
71412
+ edition: card.edition,
71413
+ collectorNumber: card.collectorNumber,
71414
+ editionIcon: card.editionIcon ?? (card.edition === 'GEN' ? GENESIS_ICON_URL : undefined),
71415
+ year: card.year,
71416
+ author: card.author,
71417
+ rarity: card.rarity,
71418
+ imageUrl: card.imageUrl,
71419
+ frontTemplate: card.frontTemplate ?? (card.edition === 'GEN' ? 'genesis-classic' : undefined),
71420
+ };
71421
+ return { ...base, ...overrides };
71422
+ }
71423
+ defaultCardBody(type) {
71424
+ const bodies = {
71425
+ action: this.t('christianityActionRuleBody'),
71426
+ character: this.t('christianityCharacterBody'),
71427
+ event: this.t('christianityEventRuleBody'),
71428
+ leader: this.t('christianityLeaderBody'),
71429
+ offering: this.t('christianityOfferingBody'),
71430
+ place: this.t('christianityPlaceRuleBody'),
71431
+ tool: this.t('christianityToolRuleBody'),
71432
+ wisdom: this.t('christianityWisdomRuleBody'),
71433
+ };
71434
+ return bodies[type];
71435
+ }
71436
+ characterRenderCard(card) {
71437
+ const definition = this.cardDefinition(card.cardId);
71438
+ return this.definitionToRenderCard(definition, {
71439
+ id: card.instanceId,
71440
+ attack: card.attack,
71441
+ life: card.maxHp,
71442
+ currentHp: card.currentHp,
71443
+ maxHp: card.maxHp,
71444
+ statusText: card.canAttack ? this.t('christianityCharacterReady') : this.t('christianityCharacterExhausted'),
71445
+ });
71446
+ }
71447
+ leaderRenderCard(player) {
71448
+ if (player.leaderCardId) {
71449
+ const definition = this.cardDefinition(player.leaderCardId);
71450
+ return this.definitionToRenderCard(definition, {
71451
+ id: `${player.seat}-leader`,
71452
+ name: this.translatedCardText(definition).name,
71453
+ type: 'leader',
71454
+ typeLabel: this.t('christianityLeaderCard'),
71455
+ life: player.leaderHp,
71456
+ currentHp: player.leaderHp,
71457
+ maxHp: player.leaderMaxHp,
71458
+ statusText: this.t('christianityLeaderBody'),
71459
+ });
71460
+ }
71461
+ return {
71462
+ id: `${player.seat}-leader`,
71463
+ name: player.leaderName,
71464
+ type: 'leader',
71465
+ typeLabel: this.t('christianityLeaderCard'),
71466
+ life: player.leaderHp,
71467
+ currentHp: player.leaderHp,
71468
+ maxHp: player.leaderMaxHp,
71469
+ abilityName: this.t('christianityLeaderCard'),
71470
+ abilityText: this.t('christianityLeaderBody'),
71471
+ verseText: this.t('christianityLeaderBody'),
71472
+ edition: 'MVP',
71473
+ collectorNumber: 'LIDER',
71474
+ editionIcon: GENESIS_ICON_URL,
71475
+ year: '2026',
71476
+ author: 'MVP',
71477
+ rarity: 'legendary',
71478
+ frontTemplate: 'genesis-classic',
71479
+ };
71480
+ }
71481
+ offeringRenderCard(offering) {
71482
+ const definition = this.cardDefinition(offering.cardId);
71483
+ const text = this.translatedCardText(definition);
71484
+ return this.definitionToRenderCard(definition, {
71485
+ id: offering.instanceId,
71486
+ name: text.name,
71487
+ type: 'offering',
71488
+ typeLabel: this.t('christianityOfferingCard'),
71489
+ offeringValue: offering.value,
71490
+ life: offering.value,
71491
+ currentHp: offering.value,
71492
+ maxHp: offering.value,
71493
+ abilityName: text.abilityName ?? offering.abilityName,
71494
+ abilityText: text.abilityText ?? offering.abilityText ?? this.t('christianityOfferingNoAbility'),
71495
+ statusText: offering.ready ? this.t('christianityOfferingReady') : this.t('christianityOfferingExhausted'),
71496
+ });
71497
+ }
71498
+ previewRenderType(typeLabel) {
71499
+ if (typeLabel === this.t('christianityLeaderCard'))
71500
+ return 'leader';
71501
+ if (typeLabel === this.t('christianityOfferingCard'))
71502
+ return 'offering';
71503
+ return 'character';
71504
+ }
71505
+ cardTypeIconUrl(card) {
71506
+ return this.cardTypeIconUrlForType(card.type);
71507
+ }
71508
+ previewTypeIconUrl() {
71509
+ const preview = this.selectedPreview();
71510
+ if (preview?.eyebrow === this.t('christianityLeaderCard'))
71511
+ return this.cardTypeIconUrlForType('leader');
71512
+ if (preview?.eyebrow === this.t('christianityOfferingCard'))
71513
+ return this.cardTypeIconUrlForType('offering');
71514
+ return this.cardTypeIconUrlForType('character');
71515
+ }
71516
+ cardTypeIconUrlForType(type) {
71517
+ const normalized = type.toLowerCase().normalize('NFD').replace(/[\u0300-\u036f]/g, '');
71518
+ const icon = normalized === 'lider' ? 'leader' : normalized === 'personaje' ? 'character' : normalized === 'ofrenda' ? 'offering' : normalized;
71519
+ return `assets/games/christianity/icons/${icon}.png`;
71520
+ }
71521
+ offeringPips(value) {
71522
+ const count = Number(value);
71523
+ if (!Number.isFinite(count) || count <= 0)
71524
+ return [];
71525
+ return Array.from({ length: Math.min(Math.floor(count), 5) });
71526
+ }
71527
+ battleSlots(seat) {
71528
+ const cards = this.game().players[seat].battleZone;
71529
+ const positionedCards = new Map();
71530
+ cards.forEach((card, index) => {
71531
+ const slot = Number.isInteger(card.slot) ? card.slot ?? index : index;
71532
+ if (slot >= 0 && slot < 4 && !positionedCards.has(slot)) {
71533
+ positionedCards.set(slot, card);
71534
+ }
71535
+ });
71536
+ return Array.from({ length: 4 }, (_, index) => ({
71537
+ trackId: positionedCards.get(index)?.instanceId ?? `${seat}-empty-${index}`,
71538
+ card: positionedCards.get(index),
71539
+ }));
71540
+ }
71541
+ battleSlotDropId(index) {
71542
+ return `christianity-battle-slot-${index}`;
71543
+ }
71544
+ dropTargetIds() {
71545
+ return ['christianity-offerings-drop', ...this.battleSlots('P1').map((_, index) => this.battleSlotDropId(index))];
71546
+ }
71547
+ hiddenHandCards(count) {
71548
+ return Array.from({ length: count });
71549
+ }
71550
+ fanTransform(index, total, opponent) {
71551
+ if (total <= 1)
71552
+ return 'none';
71553
+ const center = (total - 1) / 2;
71554
+ const offset = index - center;
71555
+ const rotate = offset * (opponent ? 6 : 5);
71556
+ const lift = Math.abs(offset) * 0.25;
71557
+ const hoverLift = opponent ? 0 : this.handWaveLift(index);
71558
+ const scale = opponent ? 1 : this.handWaveScale(index);
71559
+ const fanLift = opponent ? Math.abs(offset) * 0.22 : lift + hoverLift;
71560
+ const fanSpread = opponent ? offset * 0.02 : 0;
71561
+ return `translate(${fanSpread}rem, ${fanLift}rem) rotate(${rotate}deg) scale(${scale})`;
71562
+ }
71563
+ handCardZIndex(index) {
71564
+ const hovered = this.hoveredHandIndex();
71565
+ if (hovered === null)
71566
+ return 2;
71567
+ const distance = Math.abs(index - hovered);
71568
+ return Math.max(2, 8 - distance);
71569
+ }
71570
+ setHoveredHandIndex(index) {
71571
+ this.hoveredHandIndex.set(index);
71572
+ }
71573
+ clearHoveredHandIndex() {
71574
+ this.hoveredHandIndex.set(null);
71575
+ }
71576
+ releaseHoveredHand(event) {
71577
+ if (event.pointerType !== 'mouse') {
71578
+ window.setTimeout(() => this.clearHoveredHandIndex(), 180);
71579
+ }
71580
+ }
71581
+ handWaveLift(index) {
71582
+ const hovered = this.hoveredHandIndex();
71583
+ if (hovered === null)
71584
+ return 0;
71585
+ const distance = Math.abs(index - hovered);
71586
+ if (distance === 0)
71587
+ return -1.15;
71588
+ if (distance === 1)
71589
+ return -0.58;
71590
+ if (distance === 2)
71591
+ return -0.22;
71592
+ return 0;
71593
+ }
71594
+ handWaveScale(index) {
71595
+ const hovered = this.hoveredHandIndex();
71596
+ if (hovered === null)
71597
+ return 1;
71598
+ const distance = Math.abs(index - hovered);
71599
+ if (distance === 0)
71600
+ return 1.06;
71601
+ if (distance === 1)
71602
+ return 1.03;
71603
+ return 1;
71604
+ }
71605
+ readyOfferings(player) {
71606
+ return player.offerings.reduce((total, offering) => total + (offering.ready ? offering.value : 0), 0);
71607
+ }
71608
+ totalOfferings(player) {
71609
+ return player.offerings.reduce((total, offering) => total + offering.value, 0);
71610
+ }
71611
+ canPlay(card) {
71612
+ if (!this.isOwnTurn())
71613
+ return false;
71614
+ if (card.type === 'offering')
71615
+ return !this.player().offeringPlayedThisTurn;
71616
+ if (card.type === 'character')
71617
+ return this.readyOfferings(this.player()) >= (card.cost ?? 0) && this.player().battleZone.length < 4;
71618
+ return false;
71619
+ }
71620
+ canPlaySelected() {
71621
+ const selected = this.selectedHandCard();
71622
+ return !!selected && this.canPlay(this.cardDefinition(selected));
71623
+ }
71624
+ selectedActionLabel() {
71625
+ const selected = this.selectedCardDefinition();
71626
+ if (!selected)
71627
+ return this.t('christianityPlayCard');
71628
+ return selected.type === 'offering' ? this.t('christianityPlayOffering') : this.t('christianityPlayCard');
71629
+ }
71630
+ selectedActionDisabled() {
71631
+ const selected = this.selectedCardDefinition();
71632
+ if (!selected || !this.canPlay(selected))
71633
+ return true;
71634
+ return selected.type === 'character';
71635
+ }
71636
+ canPlaceSelectedCharacter() {
71637
+ const selected = this.selectedCardDefinition();
71638
+ return !!selected && selected.type === 'character' && this.canPlay(selected);
71639
+ }
71640
+ canPlaceSelectedOffering() {
71641
+ const selected = this.selectedCardDefinition();
71642
+ return !!selected && selected.type === 'offering' && this.canPlay(selected);
71643
+ }
71644
+ isDraggingCharacter() {
71645
+ const cardId = this.draggingCardId();
71646
+ if (!cardId)
71647
+ return false;
71648
+ const card = this.cardDefinition(cardId);
71649
+ return card.type === 'character' && this.canPlay(card);
71650
+ }
71651
+ isDraggingOffering() {
71652
+ const cardId = this.draggingCardId();
71653
+ if (!cardId)
71654
+ return false;
71655
+ const card = this.cardDefinition(cardId);
71656
+ return card.type === 'offering' && this.canPlay(card);
71657
+ }
71658
+ startDraggingCard(cardId) {
71659
+ this.selectedAttacker.set(null);
71660
+ this.selectedHandCard.set(cardId);
71661
+ this.draggingCardId.set(cardId);
71662
+ this.closePreview();
71663
+ }
71664
+ endDraggingCard() {
71665
+ this.draggingCardId.set(null);
71666
+ }
71667
+ dropOnBattleSlot(event, slotIndex) {
71668
+ const card = this.cardDefinition(event.item.data);
71669
+ if (card.type !== 'character')
71670
+ return;
71671
+ this.playCardFromHand(event.item.data, slotIndex);
71672
+ }
71673
+ dropOnOfferings(event) {
71674
+ const card = this.cardDefinition(event.item.data);
71675
+ if (card.type !== 'offering')
71676
+ return;
71677
+ this.playCardFromHand(event.item.data);
71678
+ }
71679
+ selectHandCard(cardId) {
71680
+ const wasSelected = this.selectedHandCard() === cardId;
71681
+ this.selectedAttacker.set(null);
71682
+ this.selectedHandCard.set(wasSelected ? null : cardId);
71683
+ this.closePreview();
71684
+ }
71685
+ playSelectedCard(slotIndex) {
71686
+ const cardId = this.selectedHandCard();
71687
+ if (!cardId)
71688
+ return;
71689
+ this.playCardFromHand(cardId, slotIndex);
71690
+ }
71691
+ playCardFromHand(cardId, slotIndex) {
71692
+ const card = this.cardDefinition(cardId);
71693
+ if (!this.canPlay(card))
71694
+ return;
71695
+ this.game.update(game => {
71696
+ const next = structuredClone(game);
71697
+ const player = next.players.P1;
71698
+ const handIndex = player.hand?.indexOf(cardId) ?? -1;
71699
+ if (handIndex < 0 || !player.hand)
71700
+ return game;
71701
+ player.hand.splice(handIndex, 1);
71702
+ if (card.type === 'offering') {
71703
+ player.offerings.push({
71704
+ instanceId: `p1_offering_${next.revision + 1}`,
71705
+ cardId: card.id,
71706
+ name: card.name,
71707
+ owner: 'P1',
71708
+ ready: true,
71709
+ value: card.offeringValue ?? card.life ?? 1,
71710
+ abilityName: card.abilityName,
71711
+ abilityText: card.abilityText,
71712
+ abilityCost: card.abilityCost,
71713
+ });
71714
+ player.offeringPlayedThisTurn = true;
71715
+ }
71716
+ else {
71717
+ this.spendOfferings(player, card.cost ?? 0);
71718
+ const occupiedSlots = new Set(player.battleZone.map((character, index) => Number.isInteger(character.slot) ? character.slot ?? index : index));
71719
+ const targetSlot = slotIndex ?? [0, 1, 2, 3].find(index => !occupiedSlots.has(index));
71720
+ if (targetSlot === undefined || occupiedSlots.has(targetSlot))
71721
+ return game;
71722
+ player.battleZone.push({
71723
+ instanceId: `p1_${next.revision + 1}_${player.battleZone.length}`,
71724
+ cardId: card.id,
71725
+ name: card.name,
71726
+ owner: 'P1',
71727
+ controller: 'P1',
71728
+ slot: targetSlot,
71729
+ attack: card.attack ?? 0,
71730
+ currentHp: card.life ?? 1,
71731
+ maxHp: card.life ?? 1,
71732
+ canAttack: false,
71733
+ });
71734
+ player.battleZone.sort((left, right) => (left.slot ?? 0) - (right.slot ?? 0));
71735
+ }
71736
+ next.revision++;
71737
+ next.log = [
71738
+ card.type === 'offering' ? `${card.name} queda lista como ofrenda.` : `${card.name} entra en batalla.`,
71739
+ ...next.log,
71740
+ ].slice(0, 4);
71741
+ return next;
71742
+ });
71743
+ this.selectedHandCard.set(null);
71744
+ this.draggingCardId.set(null);
71745
+ this.closePreview();
71746
+ }
71747
+ handleOfferingPile(seat) {
71748
+ this.openOfferings(seat);
71749
+ }
71750
+ selectAttacker(card) {
71751
+ this.selectedHandCard.set(null);
71752
+ if (!this.isOwnTurn() || !card.canAttack) {
71753
+ this.inspectCharacter(card);
71754
+ return;
71755
+ }
71756
+ this.closePreview();
71757
+ this.selectedAttacker.set(this.selectedAttacker()?.instanceId === card.instanceId ? null : card);
71758
+ }
71759
+ handleOpponentCharacter(card) {
71760
+ if (this.selectedAttacker()) {
71761
+ this.attackCharacter(card);
71762
+ return;
71763
+ }
71764
+ this.inspectCharacter(card);
71765
+ }
71766
+ handleOpponentLeader() {
71767
+ if (this.selectedAttacker() && !this.hasOpponentGuards()) {
71768
+ this.attackLeader();
71769
+ return;
71770
+ }
71771
+ this.inspectLeader('P2');
71772
+ }
71773
+ attackLeader() {
71774
+ const attacker = this.selectedAttacker();
71775
+ if (!attacker)
71776
+ return;
71777
+ if (this.hasOpponentGuards()) {
71778
+ this.selectedPreview.set({
71779
+ title: this.opponent().leaderName,
71780
+ eyebrow: this.t('christianityLeaderCard'),
71781
+ meta: `${this.opponent().leaderHp}/${this.opponent().leaderMaxHp}`,
71782
+ body: this.t('christianityLeaderProtected'),
71783
+ });
71784
+ return;
71785
+ }
71786
+ this.game.update(game => {
71787
+ const next = structuredClone(game);
71788
+ const liveAttacker = next.players.P1.battleZone.find(card => card.instanceId === attacker.instanceId);
71789
+ if (!liveAttacker || !liveAttacker.canAttack)
71790
+ return game;
71791
+ next.players.P2.leaderHp = Math.max(0, next.players.P2.leaderHp - liveAttacker.attack);
71792
+ liveAttacker.canAttack = false;
71793
+ next.revision++;
71794
+ next.log = [`${liveAttacker.name} ataca al lider rival.`, ...next.log].slice(0, 4);
71795
+ return next;
71796
+ });
71797
+ this.selectedAttacker.set(null);
71798
+ }
71799
+ attackCharacter(target) {
71800
+ const attacker = this.selectedAttacker();
71801
+ if (!attacker)
71802
+ return;
71803
+ this.game.update(game => {
71804
+ const next = structuredClone(game);
71805
+ const liveAttacker = next.players.P1.battleZone.find(card => card.instanceId === attacker.instanceId);
71806
+ const liveTarget = next.players.P2.battleZone.find(card => card.instanceId === target.instanceId);
71807
+ if (!liveAttacker || !liveTarget || !liveAttacker.canAttack)
71808
+ return game;
71809
+ liveTarget.currentHp -= liveAttacker.attack;
71810
+ liveAttacker.currentHp -= liveTarget.attack;
71811
+ liveAttacker.canAttack = false;
71812
+ this.cleanupDestroyed(next.players.P1, next);
71813
+ this.cleanupDestroyed(next.players.P2, next);
71814
+ next.revision++;
71815
+ next.log = [`${liveAttacker.name} combate contra ${liveTarget.name}.`, ...next.log].slice(0, 4);
71816
+ return next;
71817
+ });
71818
+ this.selectedAttacker.set(null);
71819
+ }
71820
+ endTurn() {
71821
+ this.selectedHandCard.set(null);
71822
+ this.selectedAttacker.set(null);
71823
+ this.selectedPreview.set(null);
71824
+ this.selectedInfo.set(null);
71825
+ this.game.update(game => {
71826
+ const next = structuredClone(game);
71827
+ next.turnOwner = next.turnOwner === 'P1' ? 'P2' : 'P1';
71828
+ next.turnCount++;
71829
+ const current = next.players[next.turnOwner];
71830
+ current.offeringPlayedThisTurn = false;
71831
+ current.offerings = current.offerings.map(offering => ({ ...offering, ready: true }));
71832
+ current.battleZone = current.battleZone.map(card => ({ ...card, canAttack: true }));
71833
+ const drawnCard = next.sharedDeck.shift();
71834
+ if (drawnCard) {
71835
+ if (current.hand) {
71836
+ current.hand.push(drawnCard);
71837
+ }
71838
+ else {
71839
+ current.handCount = (current.handCount ?? 0) + 1;
71840
+ }
71841
+ }
71842
+ next.revision++;
71843
+ next.log = [
71844
+ drawnCard ? `${current.displayName} roba una carta.` : `El mazo esta vacio.`,
71845
+ `Turno de ${current.displayName}.`,
71846
+ ...next.log,
71847
+ ].slice(0, 4);
71848
+ return next;
71849
+ });
71850
+ }
71851
+ resetMock() {
71852
+ this.game.set(this.catalogLoaded() ? this.createTutorialGame(this.allCatalogCards()) : structuredClone(STARTING_GAME));
71853
+ this.selectedHandCard.set(null);
71854
+ this.selectedAttacker.set(null);
71855
+ this.selectedPreview.set(null);
71856
+ this.selectedInfo.set(null);
71857
+ this.showHistory.set(false);
71858
+ this.showGallery.set(false);
71859
+ this.offeringsSeat.set(null);
71860
+ }
71861
+ startTutorial() {
71862
+ this.resetMock();
71863
+ this.screen.set('table');
71864
+ }
71865
+ closePreview() {
71866
+ this.selectedPreview.set(null);
71867
+ this.resetPreviewTilt();
71868
+ }
71869
+ closeInfo() {
71870
+ this.selectedInfo.set(null);
71871
+ }
71872
+ openOfferings(seat) {
71873
+ this.selectedPreview.set(null);
71874
+ this.selectedInfo.set(null);
71875
+ this.showHistory.set(false);
71876
+ this.showGallery.set(false);
71877
+ this.offeringsSeat.set(seat);
71878
+ }
71879
+ openHistory() {
71880
+ this.selectedPreview.set(null);
71881
+ this.selectedInfo.set(null);
71882
+ this.offeringsSeat.set(null);
71883
+ this.showGallery.set(false);
71884
+ this.showHistory.set(true);
71885
+ }
71886
+ closeOfferings() {
71887
+ this.offeringsSeat.set(null);
71888
+ }
71889
+ openGallery() {
71890
+ this.selectedPreview.set(null);
71891
+ this.selectedInfo.set(null);
71892
+ this.offeringsSeat.set(null);
71893
+ this.showHistory.set(false);
71894
+ this.showGallery.set(true);
71895
+ }
71896
+ closeGallery() {
71897
+ this.showGallery.set(false);
71898
+ }
71899
+ setGallerySearch(event) {
71900
+ this.gallerySearch.set(event.target.value);
71901
+ }
71902
+ setGalleryType(event) {
71903
+ this.galleryType.set(event.target.value);
71904
+ }
71905
+ tiltPreview(event) {
71906
+ const bounds = event.currentTarget.getBoundingClientRect();
71907
+ const x = (event.clientX - bounds.left) / bounds.width - 0.5;
71908
+ const y = (event.clientY - bounds.top) / bounds.height - 0.5;
71909
+ this.previewTilt.set({
71910
+ rotateX: 5 - y * 18,
71911
+ rotateY: -5 + x * 18,
71912
+ shiftX: x * 10,
71913
+ shiftY: y * 10,
71914
+ });
71915
+ }
71916
+ resetPreviewTilt() {
71917
+ this.previewTilt.set({ rotateX: 5, rotateY: -5, shiftX: 0, shiftY: 0 });
71918
+ }
71919
+ cleanupDestroyed(player, game) {
71920
+ const destroyed = player.battleZone.filter(card => card.currentHp <= 0);
71921
+ if (!destroyed.length)
71922
+ return;
71923
+ game.historyZone.push(...destroyed.map(card => card.cardId));
71924
+ player.battleZone = player.battleZone.filter(card => card.currentHp > 0);
71925
+ }
71926
+ inspectLeader(seat) {
71927
+ this.selectedInfo.set(null);
71928
+ const player = this.game().players[seat];
71929
+ const leader = player.leaderCardId ? this.cardDefinition(player.leaderCardId) : undefined;
71930
+ this.selectedPreview.set({
71931
+ title: leader ? this.translatedCardText(leader).name : player.leaderName,
71932
+ eyebrow: this.t('christianityLeaderCard'),
71933
+ meta: `${player.leaderHp}/${player.leaderMaxHp}`,
71934
+ body: seat === 'P2' && this.hasOpponentGuards() ? this.t('christianityLeaderProtected') : this.t('christianityLeaderBody'),
71935
+ cardId: player.leaderCardId,
71936
+ source: 'board',
71937
+ });
71938
+ }
71939
+ inspectOffering(offering) {
71940
+ this.selectedInfo.set(null);
71941
+ const definition = this.cardDefinition(offering.cardId);
71942
+ const text = this.translatedCardText(definition);
71943
+ this.selectedPreview.set({
71944
+ title: text.name,
71945
+ eyebrow: this.t('christianityOfferingCard'),
71946
+ meta: offering.ready ? this.t('christianityOfferingReady') : this.t('christianityOfferingExhausted'),
71947
+ body: text.abilityText ?? offering.abilityText ?? this.t('christianityOfferingBody'),
71948
+ cardId: offering.cardId,
71949
+ source: 'pile',
71950
+ });
71951
+ }
71952
+ offeringAbilityText(offering) {
71953
+ const text = this.translatedCardText(this.cardDefinition(offering.cardId));
71954
+ return text.abilityText ?? offering.abilityText ?? this.t('christianityOfferingNoAbility');
71955
+ }
71956
+ canUseOfferingAbility(offering, seat) {
71957
+ if (seat !== 'P1' || !this.isOwnTurn())
71958
+ return false;
71959
+ if (!offering.ready || !offering.abilityName)
71960
+ return false;
71961
+ return this.readyOfferings(this.game().players[seat]) >= (offering.abilityCost ?? 0);
71962
+ }
71963
+ useOfferingAbility(offering, seat) {
71964
+ if (!this.canUseOfferingAbility(offering, seat))
71965
+ return;
71966
+ this.game.update(game => {
71967
+ const next = structuredClone(game);
71968
+ const player = next.players[seat];
71969
+ const liveOffering = player.offerings.find(card => card.instanceId === offering.instanceId);
71970
+ if (!liveOffering || !liveOffering.ready)
71971
+ return game;
71972
+ const offeringId = liveOffering.instanceId;
71973
+ this.spendOfferings(player, liveOffering.abilityCost ?? 0);
71974
+ player.offerings = player.offerings.map(card => (card.instanceId === offeringId ? { ...card, ready: false } : card));
71975
+ player.leaderHp = Math.max(0, player.leaderHp - 1);
71976
+ next.revision++;
71977
+ next.log = [`${liveOffering.name}: ${liveOffering.abilityName}.`, ...next.log].slice(0, 4);
71978
+ return next;
71979
+ });
71980
+ }
71981
+ inspectDeck() {
71982
+ const remainingCards = this.game().sharedDeck.length;
71983
+ this.selectedPreview.set(null);
71984
+ this.selectedInfo.set({
71985
+ title: this.t('christianityDeck'),
71986
+ eyebrow: this.t('christianitySharedZone'),
71987
+ meta: `${remainingCards} ${remainingCards === 1 ? this.t('christianityCardRemaining') : this.t('christianityCardsRemaining')}`,
71988
+ body: this.t('christianityDeckBody'),
71989
+ facts: [
71990
+ this.t('christianityDeckRuleShared'),
71991
+ this.t('christianityDeckRuleDraw'),
71992
+ this.t('christianityDeckRuleEmpty'),
71993
+ ],
71994
+ });
71995
+ }
71996
+ inspectHowToPlay() {
71997
+ this.selectedPreview.set(null);
71998
+ this.selectedInfo.set({
71999
+ title: this.t('christianityHowToPlay'),
72000
+ eyebrow: this.t('christianityGenesisEdition'),
72001
+ meta: this.t('christianityTutorialMode'),
72002
+ body: this.t('christianityHowToPlayIntro'),
72003
+ facts: [
72004
+ this.t('christianityHowToPlayGoal'),
72005
+ this.t('christianityHowToPlayTurn'),
72006
+ this.t('christianityHowToPlayOfferings'),
72007
+ this.t('christianityHowToPlayBattle'),
72008
+ ],
72009
+ });
72010
+ }
72011
+ inspectHandCard(cardId, fromHand = false) {
72012
+ this.selectedInfo.set(null);
72013
+ const card = this.cardDefinition(cardId);
72014
+ const text = this.translatedCardText(card);
72015
+ if (fromHand) {
72016
+ this.selectedAttacker.set(null);
72017
+ this.selectedHandCard.set(cardId);
72018
+ }
72019
+ this.selectedPreview.set({
72020
+ title: text.name,
72021
+ eyebrow: this.cardTypeLabel(card),
72022
+ meta: this.cardPreviewMeta(card),
72023
+ body: this.defaultCardBody(card.type),
72024
+ cardId,
72025
+ source: fromHand ? 'hand' : 'pile',
72026
+ });
72027
+ }
72028
+ inspectGalleryCard(cardId) {
72029
+ this.inspectHandCard(cardId);
72030
+ }
72031
+ inspectHistoryCard(cardId) {
72032
+ this.showHistory.set(false);
72033
+ this.inspectHandCard(cardId);
72034
+ }
72035
+ inspectCharacter(card) {
72036
+ this.selectedInfo.set(null);
72037
+ const definition = this.cardDefinition(card.cardId);
72038
+ this.selectedPreview.set({
72039
+ title: this.translatedCardText(definition).name,
72040
+ eyebrow: this.t('christianityCharacterCard'),
72041
+ meta: `${card.attack}/${card.currentHp}`,
72042
+ body: card.canAttack ? this.t('christianityCharacterReady') : this.t('christianityCharacterExhausted'),
72043
+ cardId: card.cardId,
72044
+ source: 'board',
72045
+ });
72046
+ }
72047
+ cardPreviewMeta(card) {
72048
+ if (card.type === 'offering')
72049
+ return `${card.offeringValue ?? card.life ?? 1}`;
72050
+ if (card.type === 'leader')
72051
+ return `${card.leaderLife ?? card.life ?? 0}`;
72052
+ if (card.type === 'character')
72053
+ return `${this.t('christianityCost')} ${card.cost ?? 0} · ${card.attack ?? 0}/${card.life ?? 0}`;
72054
+ if (card.cost !== undefined)
72055
+ return `${this.t('christianityCost')} ${card.cost}`;
72056
+ return card.collectorNumber ?? card.id;
72057
+ }
72058
+ spendOfferings(player, cost) {
72059
+ let remaining = cost;
72060
+ player.offerings = player.offerings.map(offering => {
72061
+ if (remaining <= 0 || !offering.ready)
72062
+ return offering;
72063
+ remaining -= offering.value;
72064
+ return { ...offering, ready: false };
72065
+ });
72066
+ }
72067
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChristianityGameComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
72068
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ChristianityGameComponent, isStandalone: true, selector: "val-christianity-game", ngImport: i0, template: `
72069
+ <main class="christianity-shell">
72070
+ <section class="christianity-header">
72071
+ <div>
72072
+ <p>{{ t('christianityEyebrow') }}</p>
72073
+ <h1>{{ t('christianityTitle') }}</h1>
72074
+ </div>
72075
+ <div class="christianity-header-actions">
72076
+ @if (screen() !== 'splash') {
72077
+ <button type="button" class="christianity-gallery-open" valLightRipple (click)="openGallery()">
72078
+ {{ t('christianityGallery') }}
72079
+ </button>
72080
+ }
72081
+ @if (screen() === 'table') {
72082
+ <div class="christianity-turn" [class.is-own-turn]="isOwnTurn()">
72083
+ <span>{{ t('christianityTurn') }}</span>
72084
+ <strong>{{ currentPlayer().displayName }}</strong>
72085
+ </div>
72086
+ }
72087
+ </div>
72088
+ </section>
72089
+
72090
+ @if (screen() === 'splash') {
72091
+ <section class="christianity-splash" role="status" aria-live="polite">
72092
+ <div class="christianity-splash__mark">
72093
+ <i aria-hidden="true"></i>
72094
+ <i aria-hidden="true"></i>
72095
+ <i aria-hidden="true"></i>
72096
+ </div>
72097
+ <div>
72098
+ <span>{{ t('christianitySplashEyebrow') }}</span>
72099
+ <h2>{{ t('christianitySplashTitle') }}</h2>
72100
+ <p>{{ splashStatusText() }}</p>
72101
+ </div>
72102
+ </section>
72103
+ } @else if (screen() === 'home') {
72104
+ <section class="christianity-start">
72105
+ <div class="christianity-start__hero">
72106
+ <div class="christianity-start__copy">
72107
+ <span>{{ t('christianityGenesisEdition') }}</span>
72108
+ <h2>{{ t('christianityStartTitle') }}</h2>
72109
+ <p>{{ t('christianityStartBody') }}</p>
72110
+ </div>
72111
+ <div class="christianity-start__fan" aria-hidden="true">
72112
+ @for (card of startFeaturedCards(); track card.id) {
72113
+ <val-christianity-card
72114
+ [card]="definitionToRenderCard(card)"
72115
+ variant="hand"
72116
+ [style.transform]="startFeaturedCardTransform($index)"
72117
+ ></val-christianity-card>
72118
+ }
72119
+ </div>
72120
+ </div>
72121
+ <div class="christianity-start__cards">
72122
+ <article>
72123
+ <strong>{{ t('christianityTutorialMode') }}</strong>
72124
+ <p>{{ t('christianityTutorialModeBody') }}</p>
72125
+ <button type="button" class="christianity-primary-action" valLightRipple (click)="startTutorial()">
72126
+ {{ t('christianityStartTutorial') }}
72127
+ </button>
72128
+ </article>
72129
+ <article>
72130
+ <strong>{{ t('christianityGallery') }}</strong>
72131
+ <p>{{ t('christianityGalleryModeBody') }}</p>
72132
+ <button type="button" class="christianity-secondary-action" valLightRipple (click)="openGallery()">
72133
+ {{ t('christianityOpenGallery') }}
72134
+ </button>
72135
+ </article>
72136
+ <article>
72137
+ <strong>{{ t('christianityHowToPlay') }}</strong>
72138
+ <p>{{ t('christianityHowToPlayBody') }}</p>
72139
+ <button type="button" class="christianity-secondary-action" valLightRipple (click)="inspectHowToPlay()">
72140
+ {{ t('learnMore') }}
72141
+ </button>
72142
+ </article>
72143
+ </div>
72144
+ <div class="christianity-start__status" [attr.aria-label]="t('christianityEditionStatus')">
72145
+ <span>{{ galleryEditionLabel() }}</span>
72146
+ <span>{{ t('christianityTutorialActive') }}</span>
72147
+ <span>{{ catalogStatusLabel() }}</span>
72148
+ </div>
72149
+ <section class="christianity-start__modes" [attr.aria-label]="t('christianityFutureModes')">
72150
+ @for (mode of futureModes(); track mode.title) {
72151
+ <article>
72152
+ <strong>{{ mode.title }}</strong>
72153
+ <p>{{ mode.body }}</p>
72154
+ <span>{{ t('soonTitle') }}</span>
72155
+ </article>
72156
+ }
72157
+ </section>
72158
+ </section>
72159
+ } @else {
72160
+ <section class="christianity-match-strip" [attr.aria-label]="t('christianityMatchScore')">
72161
+ <article class="christianity-match-player">
72162
+ <span class="christianity-avatar" [style.background]="player().avatarColor">{{ player().avatar }}</span>
72163
+ <div>
72164
+ <strong>{{ player().displayName }}</strong>
72165
+ <small>{{ playerLeaderDisplayName(player()) }} · {{ player().leaderHp }}/{{ player().leaderMaxHp }}</small>
72166
+ </div>
72167
+ </article>
72168
+ <div class="christianity-scoreboard">
72169
+ <span>{{ t('christianityMatch') }}</span>
72170
+ <strong>{{ game().matchScore.P1 }}-{{ game().matchScore.P2 }}</strong>
72171
+ </div>
72172
+ <article class="christianity-match-player christianity-match-player--opponent">
72173
+ <span class="christianity-avatar" [style.background]="opponent().avatarColor">{{ opponent().avatar }}</span>
72174
+ <div>
72175
+ <strong>{{ opponent().displayName }}</strong>
72176
+ <small>{{ playerLeaderDisplayName(opponent()) }} · {{ opponent().leaderHp }}/{{ opponent().leaderMaxHp }}</small>
72177
+ </div>
72178
+ </article>
72179
+ </section>
72180
+
72181
+ <section class="christianity-hand-shelf christianity-hand-shelf--opponent">
72182
+ <div class="christianity-hand-meter christianity-hand-meter--opponent">
72183
+ <span>{{ t('christianityHand') }}</span>
72184
+ <strong>{{ opponentHandCount() }}</strong>
72185
+ </div>
72186
+ <section class="christianity-hand-fan christianity-hand-fan--opponent" [attr.aria-label]="t('christianityOpponentHand')">
72187
+ @for (_ of hiddenHandCards(opponentHandCount()); track $index) {
72188
+ <button
72189
+ type="button"
72190
+ class="christianity-card-preview-card christianity-card-frame christianity-card-frame--back"
72191
+ valLightRipple
72192
+ [style.transform]="fanTransform($index, opponentHandCount(), true)"
72193
+ [attr.aria-label]="t('christianityHiddenCard')"
72194
+ ></button>
72195
+ }
72196
+ </section>
72197
+ </section>
72198
+
72199
+ <section class="christianity-table" [attr.aria-label]="t('christianityTable')">
72200
+ <section class="christianity-player-side christianity-player-side--opponent">
72201
+ <section class="christianity-player-rack christianity-player-rack--opponent">
72202
+ <div class="christianity-offerings-zone">
72203
+ <button type="button" class="christianity-offering-pile" valLightRipple (click)="openOfferings('P2')">
72204
+ <i aria-hidden="true"></i>
72205
+ <i aria-hidden="true"></i>
72206
+ <i aria-hidden="true"></i>
72207
+ <span>{{ t('christianityOfferings') }}</span>
72208
+ <strong>{{ readyOfferings(opponent()) }}/{{ totalOfferings(opponent()) }}</strong>
72209
+ </button>
72210
+ </div>
72211
+ <button type="button" class="christianity-leader-card christianity-render-card-button" valLightRipple [class.is-target]="selectedAttacker() && !hasOpponentGuards()" (click)="handleOpponentLeader()">
72212
+ <val-christianity-card [card]="leaderRenderCard(opponent())" variant="table"></val-christianity-card>
72213
+ </button>
72214
+ <span class="christianity-rack-spacer" aria-hidden="true"></span>
72215
+ </section>
72216
+
72217
+ <section class="christianity-battle-zone christianity-battle-zone--opponent" [attr.aria-label]="t('christianityOpponentBattle')">
72218
+ @for (slot of battleSlots('P2'); track slot.trackId) {
72219
+ @if (slot.card) {
72220
+ <button
72221
+ type="button"
72222
+ class="christianity-card-preview-card christianity-card-preview-card--battle christianity-render-card-button"
72223
+ valLightRipple
72224
+ [class.is-target]="selectedAttacker()"
72225
+ (click)="handleOpponentCharacter(slot.card)"
72226
+ >
72227
+ <val-christianity-card [card]="characterRenderCard(slot.card)" variant="table"></val-christianity-card>
72228
+ </button>
72229
+ } @else {
72230
+ <span class="christianity-slot"></span>
72231
+ }
72232
+ }
72233
+ </section>
72234
+ </section>
72235
+
72236
+ <section class="christianity-shared-zone" [attr.aria-label]="t('christianitySharedZone')">
72237
+ <button type="button" class="christianity-zone-pile christianity-zone-pile--history" valLightRipple (click)="openHistory()">
72238
+ <i aria-hidden="true"></i>
72239
+ <i aria-hidden="true"></i>
72240
+ <i aria-hidden="true"></i>
72241
+ <span>{{ t('christianityHistory') }}</span>
72242
+ <strong>{{ game().historyZone.length }}</strong>
72243
+ </button>
72244
+ <button type="button" class="christianity-zone-pile christianity-zone-pile--deck" valLightRipple aria-live="polite" (click)="inspectDeck()">
72245
+ <i aria-hidden="true"></i>
72246
+ <i aria-hidden="true"></i>
72247
+ <i aria-hidden="true"></i>
72248
+ <span>{{ t('christianityDeck') }}</span>
72249
+ <strong>{{ game().sharedDeck.length }}</strong>
72250
+ </button>
72251
+ <div class="christianity-zone-card">
72252
+ <span>{{ t('christianityPlace') }}</span>
72253
+ <strong>{{ t('christianityEmpty') }}</strong>
72254
+ </div>
72255
+ </section>
72256
+
72257
+ <section class="christianity-player-side">
72258
+ <section class="christianity-battle-zone" [class.is-placing-card]="canPlaceSelectedCharacter() || isDraggingCharacter()" [attr.aria-label]="t('christianityYourBattle')">
72259
+ @for (slot of battleSlots('P1'); track slot.trackId) {
72260
+ @if (slot.card) {
72261
+ <button
72262
+ type="button"
72263
+ class="christianity-card-preview-card christianity-card-preview-card--battle christianity-render-card-button"
72264
+ valLightRipple
72265
+ [class.is-selected]="selectedAttacker()?.instanceId === slot.card.instanceId"
72266
+ [class.is-exhausted]="!slot.card.canAttack"
72267
+ [class.is-ready-attacker]="isOwnTurn() && slot.card.canAttack"
72268
+ (click)="selectAttacker(slot.card)"
72269
+ >
72270
+ <val-christianity-card [card]="characterRenderCard(slot.card)" variant="table"></val-christianity-card>
72271
+ </button>
72272
+ } @else {
72273
+ <button
72274
+ type="button"
72275
+ class="christianity-slot"
72276
+ cdkDropList
72277
+ [id]="battleSlotDropId($index)"
72278
+ [cdkDropListData]="$index"
72279
+ [cdkDropListConnectedTo]="['christianity-hand-source']"
72280
+ [cdkDropListEnterPredicate]="canDropOnBattleSlot"
72281
+ [cdkDropListSortingDisabled]="true"
72282
+ [class.christianity-slot--play-target]="canPlaceSelectedCharacter() || isDraggingCharacter()"
72283
+ valLightRipple
72284
+ (cdkDropListDropped)="dropOnBattleSlot($event, $index)"
72285
+ (click)="playSelectedCard($index)"
72286
+ >
72287
+ @if (canPlaceSelectedCharacter() || isDraggingCharacter()) {
72288
+ <span>{{ t('christianityPlayHere') }}</span>
72289
+ }
72290
+ </button>
72291
+ }
72292
+ }
72293
+ </section>
72294
+
72295
+ <section class="christianity-player-rack">
72296
+ <div class="christianity-offerings-zone">
72297
+ <div
72298
+ class="christianity-offering-drop-target"
72299
+ cdkDropList
72300
+ id="christianity-offerings-drop"
72301
+ [cdkDropListConnectedTo]="['christianity-hand-source']"
72302
+ [class.is-play-target]="canPlaceSelectedOffering() || isDraggingOffering()"
72303
+ [cdkDropListEnterPredicate]="canDropOnOfferings"
72304
+ [cdkDropListSortingDisabled]="true"
72305
+ (cdkDropListDropped)="dropOnOfferings($event)"
72306
+ >
72307
+ <button
72308
+ type="button"
72309
+ class="christianity-offering-pile"
72310
+ valLightRipple
72311
+ (click)="handleOfferingPile('P1')"
72312
+ >
72313
+ <i aria-hidden="true"></i>
72314
+ <i aria-hidden="true"></i>
72315
+ <i aria-hidden="true"></i>
72316
+ <span>{{ t('christianityOfferings') }}</span>
72317
+ <strong>{{ readyOfferings(player()) }}/{{ totalOfferings(player()) }}</strong>
72318
+ </button>
72319
+ </div>
72320
+ </div>
72321
+ <button type="button" class="christianity-leader-card christianity-render-card-button" valLightRipple (click)="inspectLeader('P1')">
72322
+ <val-christianity-card [card]="leaderRenderCard(player())" variant="table"></val-christianity-card>
72323
+ </button>
72324
+ <div class="christianity-player-command">
72325
+ <div class="christianity-player-badge">
72326
+ <span class="christianity-avatar" [style.background]="player().avatarColor">{{ player().avatar }}</span>
72327
+ <strong>{{ player().displayName }}</strong>
72328
+ </div>
72329
+ <button
72330
+ type="button"
72331
+ class="christianity-end-turn"
72332
+ (click)="endTurn()"
72333
+ >
72334
+ {{ t('christianityEndTurn') }}
72335
+ </button>
72336
+ </div>
72337
+ </section>
72338
+ </section>
72339
+ </section>
72340
+
72341
+ <section class="christianity-hand-shelf">
72342
+ <div class="christianity-hand-meter">
72343
+ <span>{{ t('christianityHand') }}</span>
72344
+ <strong>{{ player().hand?.length ?? 0 }}</strong>
72345
+ </div>
72346
+ <section
72347
+ class="christianity-hand-fan"
72348
+ cdkDropList
72349
+ id="christianity-hand-source"
72350
+ [cdkDropListConnectedTo]="dropTargetIds()"
72351
+ [attr.aria-label]="t('christianityYourHand')"
72352
+ (pointerleave)="clearHoveredHandIndex()"
72353
+ >
72354
+ @for (cardId of player().hand ?? []; track cardId + $index) {
72355
+ @let card = cardDefinition(cardId);
72356
+ <div
72357
+ class="christianity-hand-card-wrap"
72358
+ [class.is-selected]="selectedHandCard() === cardId"
72359
+ [class.is-dragging]="draggingCardId() === cardId"
72360
+ [style.z-index]="handCardZIndex($index)"
72361
+ [style.transform]="fanTransform($index, player().hand?.length ?? 0, false)"
72362
+ (pointerenter)="setHoveredHandIndex($index)"
72363
+ (pointerdown)="setHoveredHandIndex($index)"
72364
+ (pointerup)="releaseHoveredHand($event)"
72365
+ >
72366
+ <button
72367
+ type="button"
72368
+ class="christianity-card-preview-card christianity-card-preview-card--hand christianity-render-card-button"
72369
+ cdkDrag
72370
+ valLightRipple
72371
+ [cdkDragData]="cardId"
72372
+ [cdkDragDisabled]="!canPlay(card)"
72373
+ [class.is-selected]="selectedHandCard() === cardId"
72374
+ [class.is-disabled]="!canPlay(card)"
72375
+ (cdkDragStarted)="startDraggingCard(cardId)"
72376
+ (cdkDragEnded)="endDraggingCard()"
72377
+ (click)="selectHandCard(cardId)"
72378
+ >
72379
+ <val-christianity-card [card]="definitionToRenderCard(card)" variant="hand"></val-christianity-card>
72380
+ <ng-template cdkDragPreview>
72381
+ <div class="christianity-card-drag-preview">
72382
+ <val-christianity-card [card]="definitionToRenderCard(card)" variant="hand"></val-christianity-card>
72383
+ </div>
72384
+ </ng-template>
72385
+ <ng-template cdkDragPlaceholder>
72386
+ <div class="christianity-card-drag-placeholder"></div>
72387
+ </ng-template>
72388
+ </button>
72389
+ <button
72390
+ type="button"
72391
+ class="christianity-card-eye"
72392
+ [attr.aria-label]="t('christianityPreviewCard')"
72393
+ (click)="inspectHandCard(cardId, true); $event.stopPropagation()"
72394
+ ></button>
72395
+ </div>
72396
+ }
72397
+ </section>
72398
+ </section>
72399
+ }
72400
+
72401
+ @if (selectedPreview()) {
72402
+ <button type="button" class="christianity-preview-backdrop" [attr.aria-label]="t('christianityClosePreview')" (click)="closePreview()"></button>
72403
+ <aside
72404
+ class="christianity-floating-card-shell"
72405
+ aria-live="polite"
72406
+ >
72407
+ <button type="button" class="christianity-floating-card-close" (click)="closePreview()">
72408
+ {{ t('close') }}
72409
+ </button>
72410
+ <div
72411
+ class="christianity-floating-card"
72412
+ [style.--preview-rotate-x]="previewTilt().rotateX + 'deg'"
72413
+ [style.--preview-rotate-y]="previewTilt().rotateY + 'deg'"
72414
+ [style.--preview-shift-x]="previewTilt().shiftX + 'px'"
72415
+ [style.--preview-shift-y]="previewTilt().shiftY + 'px'"
72416
+ (pointermove)="tiltPreview($event)"
72417
+ (pointerleave)="resetPreviewTilt()"
72418
+ >
72419
+ @if (selectedPreviewRenderCard(); as previewCard) {
72420
+ <val-christianity-card [card]="previewCard" variant="full"></val-christianity-card>
72421
+ }
72422
+ </div>
72423
+ @if (previewRule(); as rule) {
72424
+ <div class="christianity-preview-rule-note">
72425
+ <span class="christianity-rule-note-icon" aria-hidden="true">i</span>
72426
+ <div>
72427
+ <small>{{ t('christianityCardRule') }}</small>
72428
+ <strong>{{ rule.title }}</strong>
72429
+ <p>{{ rule.body }}</p>
72430
+ </div>
72431
+ </div>
72432
+ }
72433
+ </aside>
72434
+ }
72435
+
72436
+ @if (selectedInfo(); as info) {
72437
+ <button type="button" class="christianity-info-backdrop" [attr.aria-label]="t('close')" (click)="closeInfo()"></button>
72438
+ <aside class="christianity-info-panel" aria-live="polite">
72439
+ <button type="button" class="christianity-dialog-close christianity-info-close" (click)="closeInfo()">
72440
+ {{ t('close') }}
72441
+ </button>
72442
+ <div class="christianity-rule-note">
72443
+ <span class="christianity-rule-note-icon" aria-hidden="true">i</span>
72444
+ <div>
72445
+ <small>{{ info.eyebrow }}</small>
72446
+ <h2>{{ info.title }}</h2>
72447
+ <strong>{{ info.meta }}</strong>
72448
+ <p>{{ info.body }}</p>
72449
+ <ul>
72450
+ @for (fact of info.facts; track fact) {
72451
+ <li>{{ fact }}</li>
72452
+ }
72453
+ </ul>
72454
+ </div>
72455
+ </div>
72456
+ </aside>
72457
+ }
72458
+
72459
+ @if (screen() === 'table') {
72460
+ <section class="christianity-actions" aria-live="polite">
72461
+ <p>{{ statusText() }}</p>
72462
+ <div>
72463
+ <button type="button" [disabled]="selectedActionDisabled()" (click)="playSelectedCard()">
72464
+ {{ selectedActionLabel() }}
72465
+ </button>
72466
+ <button type="button" (click)="resetMock()">
72467
+ {{ t('christianityReset') }}
72468
+ </button>
72469
+ </div>
72470
+ </section>
72471
+ }
72472
+
72473
+ @if (showHistory()) {
72474
+ <button type="button" class="christianity-history-backdrop" [attr.aria-label]="t('christianityCloseHistory')" (click)="showHistory.set(false)"></button>
72475
+ <section class="christianity-history-drawer">
72476
+ <header>
72477
+ <h2>{{ t('christianityHistory') }}</h2>
72478
+ <div class="christianity-dialog-actions">
72479
+ <span>{{ game().historyZone.length }}</span>
72480
+ <button type="button" class="christianity-dialog-close" (click)="showHistory.set(false)">
72481
+ {{ t('close') }}
72482
+ </button>
72483
+ </div>
72484
+ </header>
72485
+ @if (game().historyZone.length) {
72486
+ <div class="christianity-history-grid">
72487
+ @for (cardId of game().historyZone; track cardId + $index) {
72488
+ @let card = cardDefinition(cardId);
72489
+ <button type="button" class="christianity-gallery-card-button christianity-render-card-button" valLightRipple (click)="inspectHistoryCard(cardId)">
72490
+ <val-christianity-card [card]="definitionToRenderCard(card)" variant="list"></val-christianity-card>
72491
+ </button>
72492
+ }
72493
+ </div>
72494
+ } @else {
72495
+ <p>{{ t('christianityHistoryEmpty') }}</p>
72496
+ }
72497
+ </section>
72498
+ }
72499
+
72500
+ @if (showGallery()) {
72501
+ <button type="button" class="christianity-history-backdrop" [attr.aria-label]="t('christianityCloseGallery')" (click)="closeGallery()"></button>
72502
+ <section class="christianity-history-drawer christianity-gallery-drawer">
72503
+ <header>
72504
+ <div>
72505
+ <h2>{{ t('christianityGallery') }}</h2>
72506
+ <p>{{ galleryEditionLabel() }}</p>
72507
+ </div>
72508
+ <div class="christianity-dialog-actions">
72509
+ <span>{{ galleryCards().length }}</span>
72510
+ <button type="button" class="christianity-dialog-close" (click)="closeGallery()">
72511
+ {{ t('close') }}
72512
+ </button>
72513
+ </div>
72514
+ </header>
72515
+ <div class="christianity-gallery-controls">
72516
+ <label>
72517
+ <span>{{ t('christianityGallerySearch') }}</span>
72518
+ <input type="search" [value]="gallerySearch()" (input)="setGallerySearch($event)" [placeholder]="t('christianityGallerySearchPlaceholder')" />
72519
+ </label>
72520
+ <label>
72521
+ <span>{{ t('christianityGalleryFilter') }}</span>
72522
+ <select [value]="galleryType()" (change)="setGalleryType($event)">
72523
+ @for (option of galleryTypeOptions(); track option.value) {
72524
+ <option [value]="option.value">{{ option.label }}</option>
72525
+ }
72526
+ </select>
72527
+ </label>
72528
+ </div>
72529
+ <div class="christianity-gallery-edition-strip">
72530
+ <button type="button" class="is-active" valLightRipple>
72531
+ <img [src]="galleryEditionIcon()" alt="" />
72532
+ <span>{{ t('christianityGenesisEdition') }}</span>
72533
+ </button>
72534
+ </div>
72535
+ <div class="christianity-gallery-grid">
72536
+ @for (card of galleryCards(); track card.id) {
72537
+ <button type="button" class="christianity-gallery-card-button christianity-render-card-button" valLightRipple (click)="inspectGalleryCard(card.id)">
72538
+ <val-christianity-card [card]="definitionToRenderCard(card)" variant="list"></val-christianity-card>
72539
+ </button>
72540
+ } @empty {
72541
+ <p>{{ t('christianityGalleryEmpty') }}</p>
72542
+ }
72543
+ </div>
72544
+ </section>
72545
+ }
72546
+
72547
+ @if (offeringsSeat()) {
72548
+ @let offeringPlayer = game().players[offeringsSeat()!];
72549
+ <button type="button" class="christianity-history-backdrop" [attr.aria-label]="t('christianityCloseOfferings')" (click)="closeOfferings()"></button>
72550
+ <section class="christianity-history-drawer christianity-offerings-drawer">
72551
+ <header>
72552
+ <h2>{{ t('christianityOfferings') }}</h2>
72553
+ <div class="christianity-dialog-actions">
72554
+ <span>{{ readyOfferings(offeringPlayer) }}/{{ totalOfferings(offeringPlayer) }}</span>
72555
+ <button type="button" class="christianity-dialog-close" (click)="closeOfferings()">
72556
+ {{ t('close') }}
72557
+ </button>
72558
+ </div>
72559
+ </header>
72560
+ <div class="christianity-offerings-note">
72561
+ <span class="christianity-rule-note-icon" aria-hidden="true">i</span>
72562
+ <p>{{ t('christianityOfferingsRuleBody') }}</p>
72563
+ </div>
72564
+ <div class="christianity-offering-list">
72565
+ @for (offering of offeringPlayer.offerings; track offering.instanceId) {
72566
+ <article class="christianity-offering-row" [class.is-exhausted]="!offering.ready">
72567
+ <button type="button" class="christianity-offering-card christianity-render-card-button" valLightRipple (click)="inspectOffering(offering)">
72568
+ <val-christianity-card [card]="offeringRenderCard(offering)" variant="list"></val-christianity-card>
72569
+ </button>
72570
+ <div>
72571
+ <strong>{{ offering.ready ? t('christianityOfferingReady') : t('christianityOfferingExhausted') }}</strong>
72572
+ <p>{{ offeringAbilityText(offering) }}</p>
72573
+ @if (offering.abilityName) {
72574
+ <button
72575
+ type="button"
72576
+ [disabled]="!canUseOfferingAbility(offering, offeringsSeat()!)"
72577
+ (click)="useOfferingAbility(offering, offeringsSeat()!)"
72578
+ >
72579
+ {{ t('christianityUseAbility') }}
72580
+ </button>
72581
+ }
72582
+ </div>
72583
+ </article>
72584
+ }
72585
+ </div>
72586
+ </section>
72587
+ }
72588
+ </main>
72589
+ `, isInline: true, styles: [":host{--christianity-theme-ink: var(--val-text-color, #1f2933);--christianity-theme-surface: #ffffff;--christianity-theme-parchment: #eff6ff;--christianity-theme-olive: #1d4ed8;--christianity-theme-gold: #2563eb;--christianity-theme-gold-soft: rgba(37, 99, 235, .16);--christianity-theme-gold-ring: rgba(37, 99, 235, .44);--christianity-theme-glow: rgba(37, 99, 235, .24);--christianity-theme-focus: #2563eb;--christianity-theme-shadow: rgba(37, 99, 235, .15);--christianity-theme-shadow-strong: rgba(37, 99, 235, .26);--christianity-card-aspect: 5 / 7.45;--christianity-card-back: linear-gradient(135deg, rgba(16, 42, 67, .16), rgba(16, 42, 67, .03)), repeating-linear-gradient(45deg, #dbeafe 0 .33rem, #ffffff .33rem .66rem);--christianity-card-back-soft: linear-gradient(135deg, rgba(16, 42, 67, .11), rgba(16, 42, 67, .02)), repeating-linear-gradient(45deg, #dbeafe 0 .33rem, #ffffff .33rem .66rem);display:block;max-width:100%;min-width:0;overflow-x:clip;color:var(--christianity-theme-ink)}.christianity-shell{box-sizing:border-box;display:grid;gap:.65rem;width:100%;max-width:100%;min-width:0;padding:.75rem .25rem;border:1px solid rgba(36,48,68,.12);border-radius:.75rem;background:#f6f8fb;overflow-x:clip;overflow-y:visible}.christianity-header,.christianity-match-strip,.christianity-player__summary,.christianity-shared-zone,.christianity-actions{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.christianity-header h1,.christianity-header p,.christianity-match-player strong,.christianity-match-player small,.christianity-scoreboard span,.christianity-history h2,.christianity-actions p{margin:0}.christianity-header h1{font-size:1.35rem;line-height:1.1}.christianity-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:.5rem;min-width:0}.christianity-gallery-open{min-height:2.2rem;padding:0 .75rem;border:1px solid var(--christianity-theme-gold-ring);border-radius:999px;background:linear-gradient(180deg,#eff6fffa,#fffffffa),radial-gradient(circle at 20% 0%,var(--christianity-theme-gold-soft),transparent 42%);color:var(--christianity-theme-ink);font:inherit;font-size:.82rem;font-weight:800;box-shadow:0 .55rem 1.2rem #2563eb1a}.christianity-splash,.christianity-start{min-height:min(34rem,calc(100dvh - 8rem));border:1px solid rgba(37,99,235,.18);border-radius:.9rem;background:radial-gradient(circle at 50% 18%,rgba(37,99,235,.16),transparent 22rem),linear-gradient(180deg,#eff6ffed,#fffffff7),var(--christianity-card-back-soft);box-shadow:0 1.2rem 3.2rem #2563eb1f}.christianity-splash{display:grid;place-items:center;align-content:center;gap:1.2rem;padding:2.5rem 1.25rem;text-align:center}.christianity-splash__mark{position:relative;width:6.4rem;height:8.9rem;filter:drop-shadow(0 1rem 1.8rem rgba(82,64,28,.18))}.christianity-splash__mark i{position:absolute;inset:0;border:1px solid rgba(36,48,68,.16);border-radius:.7rem;background:radial-gradient(circle at 76% 12%,rgba(250,204,21,.9) 0 .42rem,transparent .45rem),linear-gradient(180deg,#fffffffa,#f8fafcfa)}.christianity-splash__mark i:nth-child(1){transform:translate(-1.1rem) rotate(-9deg)}.christianity-splash__mark i:nth-child(2){transform:translateY(-.32rem)}.christianity-splash__mark i:nth-child(3){transform:translate(1.1rem) rotate(9deg)}.christianity-splash__mark:after{content:\"\";position:absolute;inset:2.1rem 1.05rem 2.5rem;border-radius:.55rem;background:radial-gradient(circle at 50% 44%,rgba(245,199,85,.7),transparent 36%),linear-gradient(135deg,#5f6f2a33,#5f6f2a14)}.christianity-splash span,.christianity-start__copy span{color:var(--christianity-theme-olive);font-size:.76rem;font-weight:900;text-transform:uppercase}.christianity-splash h2,.christianity-start h2,.christianity-start p{margin:0}.christianity-splash h2{margin-top:.2rem;font-size:clamp(1.65rem,7vw,2.7rem);line-height:1}.christianity-splash p{max-width:26rem;margin:.55rem auto 0;color:#1f2933ad;font-size:.96rem}.christianity-start{display:grid;align-content:center;gap:1rem;padding:clamp(.85rem,2vw,1.35rem)}.christianity-start__hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(12rem,18rem);gap:1rem;align-items:center}.christianity-start__copy{display:grid;gap:.45rem;max-width:36rem}.christianity-start h2{font-size:clamp(1.6rem,6vw,2.5rem);line-height:1.02}.christianity-start__copy p,.christianity-start__cards p,.christianity-start__modes p{color:#1f2933ad;line-height:1.42}.christianity-start__fan{position:relative;display:grid;place-items:center;min-height:13rem;overflow:visible}.christianity-start__fan val-christianity-card{position:absolute;width:clamp(5.7rem,12vw,7.2rem);transform-origin:50% 92%;filter:drop-shadow(0 1rem 1.5rem rgba(82,64,28,.18))}.christianity-start__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.christianity-start__cards article,.christianity-start__modes article{display:grid;gap:.65rem;align-content:start;padding:.95rem;border:1px solid rgba(36,48,68,.12);border-radius:.75rem;background:#ffffffd1;box-shadow:0 .75rem 1.7rem #52401c14}.christianity-start__cards article{min-height:11rem}.christianity-start__cards strong{font-size:1.05rem}.christianity-start__status{display:flex;flex-wrap:wrap;gap:.45rem}.christianity-start__status span,.christianity-start__modes article>span{display:inline-flex;align-items:center;width:fit-content;min-height:1.85rem;padding:0 .62rem;border:1px solid rgba(37,99,235,.22);border-radius:999px;background:#eff6ffe0;color:#1f2933b8;font-size:.75rem;font-weight:850}.christianity-start__modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem}.christianity-start__modes article{min-height:8.5rem;background:#f8fafcb8;box-shadow:none;opacity:.82}.christianity-start__modes strong{font-size:.92rem}.christianity-start__modes p{margin:0;font-size:.8rem}.christianity-primary-action,.christianity-secondary-action{justify-self:start;min-height:2.5rem;padding:0 .9rem;border-radius:999px;font:inherit;font-weight:900}.christianity-primary-action{border:1px solid rgba(16,42,67,.16);background:#102a43;color:#fff}.christianity-secondary-action{border:1px solid var(--christianity-theme-gold-ring);background:var(--christianity-theme-parchment);color:var(--christianity-theme-ink)}.christianity-header p,.christianity-turn span,.christianity-offerings span,.christianity-hidden-hand span,.christianity-deck span,.christianity-place span,.christianity-pile span,.christianity-leader span{color:#1f2933a3;font-size:.75rem}.christianity-turn,.christianity-leader,.christianity-offerings,.christianity-hidden-hand,.christianity-pile,.christianity-deck,.christianity-place{display:grid;gap:.15rem;min-width:5.25rem;padding:.55rem .65rem;border:1px solid rgba(36,48,68,.12);border-radius:.5rem;background:#fff}.christianity-turn.is-own-turn{border-color:#12806c59;background:#ecfdf5}.christianity-match-strip{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);padding:.45rem;border:1px solid rgba(36,48,68,.1);border-radius:.75rem;background:#fff}.christianity-match-player{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.5rem;align-items:center;min-width:0}.christianity-match-player--opponent{direction:rtl}.christianity-match-player--opponent div{direction:ltr;text-align:right}.christianity-match-player div{display:grid;min-width:0}.christianity-match-player strong,.christianity-match-player small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.christianity-match-player small,.christianity-scoreboard span{color:#1f293394;font-size:.72rem}.christianity-scoreboard{display:grid;justify-items:center;min-width:4.2rem;padding:0 .55rem;border-right:1px solid rgba(36,48,68,.1);border-left:1px solid rgba(36,48,68,.1)}.christianity-scoreboard strong{font-size:1.2rem;line-height:1}.christianity-table{box-sizing:border-box;display:grid;gap:.45rem;width:100%;max-width:100%;min-width:0;padding:.45rem .35rem;border-radius:.75rem;background:#dceafb;overflow-x:clip;overflow-y:visible}.christianity-player-side{box-sizing:border-box;display:grid;gap:.35rem;width:100%;max-width:100%;min-width:0;padding:.35rem .3rem;border-radius:.7rem;background:#ffffff57;grid-template-rows:minmax(7rem,1fr) auto;min-height:13.75rem}.christianity-player-side--opponent{grid-template-rows:auto minmax(7rem,1fr)}.christianity-player{display:grid;gap:.65rem}.christianity-battle-zone{--christianity-battle-card-width: clamp(4.8rem, 15vw, 6.6rem);box-sizing:border-box;display:grid;grid-template-columns:repeat(4,var(--christianity-battle-card-width));gap:.5rem;align-items:center;justify-content:center;width:100%;max-width:100%;min-width:0;min-height:clamp(9.1rem,29vw,11rem);padding:.55rem .4rem;border-radius:.75rem;background:#ffffffc2;transition:background .16s ease,box-shadow .16s ease}.christianity-battle-zone.is-placing-card{background:linear-gradient(180deg,#fffaf0f5,#ffffffd6),#ffffffc2;box-shadow:inset 0 0 0 .14rem var(--christianity-theme-gold-soft),0 .8rem 1.7rem #5f6f2a1f}.christianity-shared-zone{padding:.55rem .4rem;border-radius:.75rem;background:#ffffffe6}.christianity-card,.christianity-end-turn,.christianity-actions button,.christianity-pile,.christianity-leader--target{border:1px solid rgba(36,48,68,.16);border-radius:.5rem;background:#fff;color:inherit;font:inherit}.christianity-card{display:grid;align-content:space-between;min-height:5.8rem;padding:.5rem;text-align:left;box-shadow:0 .5rem 1.25rem #24304414}.christianity-card span{font-weight:700}.christianity-card strong{justify-self:end;padding:.15rem .35rem;border-radius:999px;background:#edf2f7;font-size:.8rem}.christianity-card.is-selected{border-color:var(--christianity-theme-gold);box-shadow:0 0 0 .18rem var(--christianity-theme-gold-soft),0 .85rem 1.4rem var(--christianity-theme-shadow)}.christianity-card.is-disabled,.christianity-card.is-exhausted{opacity:.55}.christianity-card.is-target{border-color:#dc2626}.christianity-offering-cards{display:grid;grid-auto-flow:column;grid-auto-columns:.7rem;gap:.16rem;align-items:end;min-height:1.05rem}.christianity-offering-cards i{display:block;width:.65rem;height:.95rem;border:1px solid rgba(16,42,67,.22);border-radius:.18rem;background:#f8fafc}.christianity-offering-cards i.is-used{background:#cbd5e1;transform:rotate(90deg);transform-origin:center}.christianity-slot{display:grid;place-items:center;justify-self:center;width:var(--christianity-battle-card-width);height:auto;min-height:0;aspect-ratio:var(--christianity-card-aspect);border:1px dashed rgba(36,48,68,.22);border-radius:.5rem;background:#ffffff73;color:inherit;font:inherit}.christianity-slot--play-target{position:relative;border-color:var(--christianity-theme-gold-ring);background:linear-gradient(180deg,#fffaf0eb,#f8fafcd1),#ffffffb3;color:#5d4305;font-weight:800;overflow:hidden;box-shadow:inset 0 0 0 .12rem #d6a21d33,0 .7rem 1.25rem var(--christianity-theme-shadow);animation:christianity-target-pulse 1.45s ease-in-out infinite}.christianity-slot--play-target:before{content:\"\";position:absolute;inset:.35rem;border:1px solid rgba(214,162,29,.22);border-radius:.4rem;background:linear-gradient(135deg,rgba(214,162,29,.1),transparent 46%),radial-gradient(circle at 50% 42%,var(--christianity-theme-glow),transparent 58%)}.christianity-slot--play-target span{position:relative;z-index:2;padding:.16rem .44rem;border-radius:999px;background:#ffffffc7;font-size:.78rem}@keyframes christianity-target-pulse{0%,to{box-shadow:inset 0 0 0 .12rem #d6a21d33,0 .7rem 1.25rem var(--christianity-theme-shadow)}50%{box-shadow:inset 0 0 0 .16rem #d6a21d57,0 .9rem 1.65rem var(--christianity-theme-shadow-strong)}}.christianity-hand{display:grid;grid-auto-columns:minmax(6rem,8rem);grid-auto-flow:column;gap:.55rem;overflow-x:auto;padding-bottom:.25rem}.christianity-actions{align-items:flex-start;padding:.75rem;border-radius:.75rem;background:#fff}.christianity-actions div{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-end}.christianity-actions button,.christianity-end-turn{min-height:2.4rem;padding:0 .75rem;font-weight:700}.christianity-actions button:not(:disabled),.christianity-end-turn{background:#102a43;color:#fff}.christianity-history{padding:.75rem;border-radius:.75rem;background:#fff}.christianity-hand-fan{position:relative;display:flex;justify-content:center;min-height:10.8rem;padding:.25rem .25rem 2.1rem;isolation:isolate;overflow:visible}.christianity-hand-shelf{position:relative;display:grid;z-index:12;min-height:12rem;margin-top:-1.15rem;padding:1.45rem .25rem 1rem;overflow:visible}.christianity-hand-shelf--opponent{z-index:8;min-height:6.85rem;margin-top:0;margin-bottom:0;padding:.45rem .25rem .85rem}.christianity-hand-fan--opponent{min-height:5.9rem;padding-bottom:.75rem;align-items:start}.christianity-hand-fan--opponent .christianity-card-frame--back{width:clamp(3.7rem,12vw,4.9rem);margin-inline:-.9rem;transform-origin:50% 120%}.christianity-hand-fan--opponent .christianity-card-frame--back:first-child{margin-left:0}.christianity-hand-fan--opponent .christianity-card-frame--back:last-child{margin-right:0}.christianity-card-preview-card,.christianity-card-mini,.christianity-offering-pile,.christianity-offering-card,.christianity-leader-card,.christianity-zone-card,.christianity-zone-pile,.christianity-end-turn{border:1px solid rgba(36,48,68,.16);border-radius:.5rem;background:#fff;color:inherit;font:inherit}.christianity-card-preview-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:.28rem;align-content:stretch;width:clamp(4.9rem,17vw,7.1rem);height:auto;min-height:0;aspect-ratio:var(--christianity-card-aspect);padding:.48rem;text-align:left;transform-origin:50% 115%;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;box-shadow:0 .5rem 1.25rem #2430441a}.christianity-render-card-button{display:block;padding:0;overflow:visible;border:0;background:transparent;box-shadow:none}.christianity-render-card-button>val-christianity-card{display:block;width:100%;height:100%}.christianity-gallery-card-button{display:block;width:min(100%,6.8rem);min-width:0;aspect-ratio:var(--christianity-card-aspect);padding:0;overflow:visible;border:0;background:transparent;color:inherit;font:inherit;text-align:left;box-shadow:none}.christianity-gallery-card-button>val-christianity-card{display:block;width:100%;height:100%}.christianity-card-preview-card--hand.christianity-render-card-button,.christianity-card-preview-card--battle.christianity-render-card-button,.christianity-leader-card.christianity-render-card-button{aspect-ratio:var(--christianity-card-aspect)}.christianity-card-preview-card--hand.christianity-render-card-button:hover val-christianity-card,.christianity-card-preview-card--hand.christianity-render-card-button.is-selected val-christianity-card,.christianity-card-preview-card--battle.christianity-render-card-button.is-selected val-christianity-card,.christianity-card-preview-card--battle.christianity-render-card-button.is-target val-christianity-card,.christianity-leader-card.christianity-render-card-button.is-target val-christianity-card{filter:drop-shadow(0 0 .55rem rgba(214,162,29,.35))}.christianity-card-preview-card--battle.christianity-render-card-button.is-ready-attacker val-christianity-card{filter:drop-shadow(0 .45rem .8rem rgba(95,111,42,.16))}.christianity-card-preview-card--battle.christianity-render-card-button.is-selected{transform:translateY(-.28rem)}.christianity-card-frame{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:.28rem;align-content:stretch;overflow:hidden;padding:.48rem;text-align:left;background:linear-gradient(180deg,#fffffffa,#f8fafcfa),radial-gradient(circle at 15% 0%,rgba(214,162,29,.12),transparent 44%);box-shadow:0 .5rem 1.25rem #2430441a,inset 0 0 0 .18rem #ffffff9e}.christianity-card-frame-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.16rem;align-items:start;min-width:0}.christianity-card-frame-header small{grid-column:1;min-width:0;overflow:hidden;color:#1f2933a3;font-size:clamp(.52rem,1.5vw,.68rem);line-height:1;text-overflow:ellipsis;white-space:nowrap}.christianity-card-frame-header strong{grid-column:1;justify-self:start;align-self:start;min-width:0;padding:0;overflow:hidden;border-radius:0;background:transparent;font-size:clamp(.82rem,2.5vw,1.05rem);line-height:1.02;text-overflow:ellipsis;white-space:nowrap}.christianity-card-preview-card--hand .christianity-card-frame-header strong,.christianity-card-preview-card--battle .christianity-card-frame-header strong,.christianity-leader-card .christianity-card-frame-header strong{display:-webkit-box;overflow-wrap:anywhere;text-overflow:clip;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.christianity-card-preview-card--hand .christianity-card-frame-header small{text-transform:uppercase}.christianity-card-preview-card--hand .christianity-card-frame-art>span{display:-webkit-box;max-width:88%;overflow-wrap:anywhere;text-overflow:clip;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.christianity-card-frame-header span{grid-column:2;grid-row:1 / span 2;display:grid;place-items:center;min-width:1.3rem;height:1.3rem;padding:0 .22rem;border-radius:999px;background:#ffd91a;color:#243044;font-size:.8rem;font-weight:900;line-height:1;box-shadow:inset 0 -.08rem #52401c2e}.christianity-card-frame-header span.is-offering-pips,.christianity-full-card-cost.is-offering-pips,.christianity-offering-card span.is-offering-pips{grid-auto-flow:column;gap:.14rem;min-width:auto;padding:0 .28rem}.christianity-card-frame-header span.is-offering-pips i,.christianity-full-card-cost.is-offering-pips i,.christianity-offering-card span.is-offering-pips i,.christianity-full-card-pips i{display:block;width:.72rem;height:.72rem;border-radius:999px;background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.9) 0 .12rem,transparent .13rem),#ffd91a;box-shadow:inset 0 -.08rem #52401c2e,0 .12rem .24rem #102a431a}.christianity-card-frame-art{position:relative;display:grid;place-items:center;min-height:0;overflow:hidden;border-radius:.36rem;background:linear-gradient(135deg,#5f6f2a2e,#d6a21d24),radial-gradient(circle at 50% 18%,rgba(255,255,255,.72),transparent 48%),#dbe7ef;box-shadow:inset 0 0 0 1px #24304414}.christianity-card-frame-art>span{max-width:78%;overflow:hidden;color:#2430447a;font-size:clamp(.82rem,2.2vw,1.05rem);font-weight:900;line-height:1.02;text-align:center;text-overflow:ellipsis}.christianity-card-frame-art small{position:absolute;right:0;bottom:.28rem;max-width:78%;padding:.1rem .34rem;overflow:hidden;border-radius:999px 0 0 999px;background:#ffffffe6;color:#1f2933a8;font-size:.48rem;font-style:italic;font-weight:900;line-height:1;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.christianity-card-frame-effect{display:grid;align-content:center;gap:.1rem;min-height:1.45rem;padding:.24rem;overflow:hidden;border-radius:.34rem;background:radial-gradient(circle at 50% 70%,rgba(36,48,68,.06),transparent 44%),#ffffffdb}.christianity-card-frame-effect strong{justify-self:end;align-self:end;padding:.12rem .32rem;border-radius:999px;background:#edf2f7;font-size:clamp(.66rem,2vw,.82rem);line-height:1.05}.christianity-card-frame-effect p{margin:0;overflow:hidden;color:#1f2933b8;font-size:.58rem;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.christianity-card-frame-footer{display:flex;justify-content:space-between;gap:.22rem;color:#1f293385;font-size:.46rem;font-weight:800;line-height:1}.christianity-card-frame--battle{gap:.22rem;padding:.42rem}.christianity-card-frame--battle .christianity-card-frame-art{min-height:2.6rem}.christianity-card-frame--leader .christianity-card-frame-art{background:linear-gradient(135deg,#2563eb24,#d6a21d29),radial-gradient(circle at 50% 18%,rgba(255,255,255,.78),transparent 48%),#e7eef8}.christianity-card-frame--list{width:clamp(4.4rem,22vw,5.8rem);padding:.38rem}.christianity-card-frame--list .christianity-card-frame-art{min-height:2.5rem}.christianity-hand-card-wrap{position:relative;display:grid;justify-items:center;flex:0 0 auto;margin-inline:-.42rem;padding-bottom:2rem;transform-origin:50% 115%;transition:transform .16s ease,filter .16s ease}.christianity-hand-card-wrap:hover,.christianity-hand-card-wrap.is-selected,.christianity-hand-card-wrap.is-dragging{z-index:3}.christianity-hand-card-wrap:hover .christianity-card-preview-card--hand,.christianity-hand-card-wrap.is-selected .christianity-card-preview-card--hand,.christianity-hand-card-wrap.is-dragging .christianity-card-preview-card--hand{border-color:var(--christianity-theme-gold);box-shadow:0 0 0 .12rem var(--christianity-theme-gold-soft),0 1rem 2rem var(--christianity-theme-shadow)}.christianity-card-preview-card--hand{cursor:grab;touch-action:none}.christianity-card-preview-card--hand:active{cursor:grabbing}.christianity-card-preview-card--hand.cdk-drag-disabled{cursor:not-allowed}.christianity-card-drag-preview,.christianity-card-preview-card.cdk-drag-preview{width:clamp(4.9rem,17vw,7.1rem);height:auto;min-height:0;aspect-ratio:var(--christianity-card-aspect);border-radius:.5rem;box-shadow:0 0 0 .16rem #fff4c2ad,0 1.5rem 3rem var(--christianity-theme-shadow-strong);transform:rotate(2deg) scale(1.03)}.christianity-card-drag-preview val-christianity-card{display:block;width:100%;height:100%}.christianity-card-drag-placeholder,.christianity-card-preview-card.cdk-drag-placeholder{width:clamp(4.9rem,17vw,7.1rem);height:auto;min-height:0;aspect-ratio:var(--christianity-card-aspect);border-radius:.5rem;background:#94a3b81f;opacity:.22}.christianity-slot.cdk-drop-list-dragging,.christianity-offering-drop-target.cdk-drop-list-dragging{border-color:var(--christianity-theme-gold-ring)}.christianity-slot.cdk-drop-list-receiving,.christianity-offering-drop-target.cdk-drop-list-receiving{box-shadow:inset 0 0 0 .18rem #d6a21d57,0 1rem 1.9rem var(--christianity-theme-shadow-strong)}.christianity-card-eye{position:absolute;right:50%;bottom:.38rem;width:2.15rem;height:1.55rem;border:1px solid color-mix(in srgb,var(--christianity-theme-focus) 52%,transparent);border-radius:999px;background:#fffffff0;box-shadow:0 .55rem 1.1rem #102a4324;opacity:0;transform:translate(50%,-.2rem) scale(.92);transition:opacity .14s ease,transform .14s ease,border-color .14s ease}.christianity-card-eye:before{content:\"\";position:absolute;top:50%;left:50%;width:1.1rem;height:1.1rem;border:.12rem solid var(--christianity-theme-focus);border-radius:82% 0;background:#fffffff0;transform:translate(-50%,-50%) rotate(45deg)}.christianity-card-eye:after{content:\"\";position:absolute;top:50%;left:50%;width:.42rem;height:.42rem;border:.09rem solid rgba(255,255,255,.95);border-radius:999px;background:radial-gradient(circle at 35% 32%,#ffffff 0 .06rem,transparent .07rem),var(--christianity-theme-focus);transform:translate(-50%,-50%)}.christianity-hand-card-wrap:hover .christianity-card-eye,.christianity-hand-card-wrap.is-selected .christianity-card-eye,.christianity-card-eye:focus-visible{opacity:1;transform:translate(50%) scale(1)}.christianity-offering-drop-target{display:grid;width:min(100%,5.9rem);height:7.1rem;min-height:0;max-height:7.1rem;border:1px solid transparent;border-radius:.64rem;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.christianity-offering-drop-target.is-play-target{border-color:var(--christianity-theme-gold-ring);background:linear-gradient(180deg,#fffaf0f5,#fffffff0),radial-gradient(circle at 82% 14%,rgba(250,204,21,.28) 0 .7rem,transparent .72rem);box-shadow:inset 0 0 0 .12rem #d6a21d3d,0 .8rem 1.55rem var(--christianity-theme-shadow);animation:christianity-target-pulse 1.45s ease-in-out infinite}.christianity-offering-drop-target>.cdk-drag-placeholder{display:none}.christianity-card-frame--back,.christianity-card-preview-card--back{width:clamp(4rem,14vw,5.7rem);min-height:0;aspect-ratio:var(--christianity-card-aspect);place-items:center;padding:.55rem;overflow:hidden;box-shadow:0 .8rem 1.55rem #24304424;transform-origin:50% -18%;background:var(--christianity-card-back)}.christianity-card-frame--back:before,.christianity-card-preview-card--back:before{content:\"\";position:absolute;inset:.5rem;border:1px solid rgba(16,42,67,.12);border-radius:.38rem;background:linear-gradient(180deg,#ffffff2e,#ffffff0a);box-shadow:inset 0 0 0 .12rem #ffffff1f}.christianity-card-preview-card--battle{justify-self:center;width:var(--christianity-battle-card-width);min-width:0;height:auto;min-height:0;aspect-ratio:var(--christianity-card-aspect);margin-inline:0}.christianity-card-preview-card>span,.christianity-card-mini>span,.christianity-offering-pile>span,.christianity-offering-card>span,.christianity-leader-card>span,.christianity-zone-card>span,.christianity-zone-pile>span{position:relative;z-index:2;align-self:start;font-weight:700;line-height:1.05}.christianity-card-preview-card>strong,.christianity-card-mini>strong,.christianity-offering-pile>strong,.christianity-offering-card>strong,.christianity-leader-card>strong,.christianity-zone-card>strong,.christianity-zone-pile>strong{position:relative;z-index:3;justify-self:end;align-self:end;padding:.15rem .35rem;border-radius:999px;background:#edf2f7;font-size:.8rem}.christianity-player-rack{box-sizing:border-box;display:grid;grid-template-columns:minmax(5.9rem,7rem) minmax(5rem,1fr) minmax(4.2rem,7rem);gap:.45rem;align-items:end;justify-items:stretch;width:100%;max-width:100%;min-width:0}.christianity-player-rack--opponent{align-items:start}.christianity-hand-meter{position:absolute;top:0;right:.35rem;z-index:4;display:inline-grid;grid-auto-flow:column;gap:.25rem;align-items:center;min-height:1.7rem;padding:.18rem .46rem;border:1px solid rgba(36,48,68,.12);border-radius:999px;background:#ffffffe6;box-shadow:0 .35rem .8rem #102a4314}.christianity-hand-meter--opponent{top:.15rem}.christianity-hand-meter span{color:#1f293394;font-size:.68rem}.christianity-hand-meter strong{font-size:.86rem}.christianity-player-badge,.christianity-player-command{display:grid;gap:.35rem;justify-items:center;min-width:0}.christianity-player-badge{align-content:start;color:#1f2933c2;font-size:.74rem}.christianity-player-badge--opponent{justify-self:center;grid-auto-flow:column;align-items:center;justify-content:center}.christianity-player-badge strong{max-width:6.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.christianity-avatar{display:grid;place-items:center;width:1.85rem;height:1.85rem;border-radius:999px;color:#fff;font-size:.76rem;font-weight:800;box-shadow:0 .35rem .9rem #102a4329}.christianity-offerings-zone{display:flex;flex-wrap:wrap;gap:.25rem;justify-content:flex-start;justify-self:start;width:100%}.christianity-card-mini,.christianity-offering-pile,.christianity-offering-card,.christianity-leader-card,.christianity-zone-card,.christianity-zone-pile{display:grid;align-content:space-between;min-height:4.9rem;padding:.48rem;text-align:left}.christianity-card-frame{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;align-content:stretch}.christianity-offering-pile,.christianity-zone-card,.christianity-zone-pile{grid-template-rows:auto minmax(2.6rem,1fr) auto;align-content:stretch;gap:.32rem}.christianity-card-mini{width:3.5rem}.christianity-offering-pile{position:relative;isolation:isolate;overflow:hidden;justify-self:start;width:100%;height:100%;min-height:0;padding:.95rem .52rem .6rem;background:linear-gradient(180deg,#fff,#f8fafc),linear-gradient(135deg,rgba(250,204,21,.18),transparent 42%)}.christianity-slot>.cdk-drag-placeholder{display:none}.christianity-offering-pile i{position:absolute;top:2.45rem;left:.72rem;z-index:-1;width:2.55rem;height:3.55rem;border:1px solid rgba(16,42,67,.18);border-radius:.35rem;background:linear-gradient(180deg,#ffffffeb,#f1f5f9eb),radial-gradient(circle at 78% 18%,#facc15 0 .38rem,transparent .4rem);box-shadow:0 .35rem .85rem #102a431a;transform:rotate(-5deg)}.christianity-offering-pile i:nth-child(2){transform:translate(.28rem,.08rem) rotate(3deg)}.christianity-offering-pile i:nth-child(3){transform:translate(.55rem,.18rem) rotate(-1deg)}.christianity-leader-card{align-self:center;justify-self:center;width:clamp(4.75rem,17vw,6rem);min-height:0;aspect-ratio:var(--christianity-card-aspect)}.christianity-rack-spacer{display:block;min-height:1px}.christianity-battle-zone{grid-template-columns:repeat(4,var(--christianity-battle-card-width))}.christianity-shared-zone{box-sizing:border-box;display:grid;grid-template-columns:repeat(3,minmax(4.3rem,1fr));align-items:stretch;width:100%;max-width:100%;min-width:0}.christianity-zone-card,.christianity-zone-pile{min-height:6.45rem;padding:.7rem .52rem .55rem}.christianity-zone-pile{position:relative;isolation:isolate;overflow:hidden;box-shadow:inset 0 0 0 999px #ffffff1f}.christianity-zone-pile i{position:absolute;top:2.2rem;right:.72rem;z-index:-1;width:2.7rem;height:3.7rem;border:1px solid rgba(16,42,67,.18);border-radius:.35rem;background:#f8fafc;box-shadow:0 .35rem .85rem #102a431c;transform:rotate(4deg)}.christianity-zone-pile i:nth-child(2){transform:translate(-.28rem,.12rem) rotate(-3deg)}.christianity-zone-pile i:nth-child(3){background:var(--christianity-card-back);transform:translate(-.54rem,.24rem) rotate(2deg)}.christianity-floating-card-shell{position:fixed;top:calc(50% + 1.3rem);left:50%;z-index:132;display:grid;grid-template-rows:minmax(0,auto) auto;gap:.55rem;width:min(17.5rem,calc(52dvh - 3rem),calc(100vw - 1.25rem));max-height:calc(100dvh - 4.25rem);padding-top:2.5rem;transform:translate(-50%,-50%)}.christianity-floating-card{position:relative;z-index:1;display:block;width:100%;min-height:0;padding:0;border:0;border-radius:.75rem;background:transparent;box-shadow:0 0 2.2rem var(--christianity-theme-glow);touch-action:none;transform:translate(var(--preview-shift-x, 0px),var(--preview-shift-y, 0px)) perspective(48rem) rotateX(var(--preview-rotate-x, 5deg)) rotateY(var(--preview-rotate-y, -5deg));transition:transform 90ms ease-out}.christianity-floating-card val-christianity-card{display:block;width:100%;min-height:0}.christianity-full-card-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.42rem;align-items:center}.christianity-full-card-header strong{min-width:0;display:-webkit-box;overflow:hidden;overflow-wrap:anywhere;text-overflow:clip;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:clamp(1.25rem,5vw,1.85rem);line-height:1.04}.christianity-full-card-type-icon,.christianity-full-card-cost{display:grid;place-items:center;border-radius:999px}.christianity-full-card-type-icon{width:1.6rem;height:1.6rem;background:radial-gradient(circle at 50% 50%,rgba(95,111,42,.72) 0 .22rem,transparent .24rem),#2430441a}.christianity-full-card-type-icon img{width:1rem;height:1rem;object-fit:contain}.christianity-full-card-cost{min-width:2.1rem;height:2.1rem;padding:0 .36rem;background:#ffd91a;color:#243044;font-size:1.1rem;font-weight:900;box-shadow:inset 0 -.12rem #52401c2e}.christianity-full-card-art{position:relative;display:grid;place-items:center;min-height:9rem;overflow:hidden;border-radius:.48rem;background:linear-gradient(135deg,#5f6f2a33,#d6a21d29),radial-gradient(circle at 50% 25%,rgba(255,255,255,.76),transparent 42%),#dbe7ef;box-shadow:inset 0 0 0 1px #24304414}.christianity-full-card-art img{width:100%;height:100%;object-fit:cover}.christianity-full-card-art>span{max-width:80%;color:#24304494;font-size:clamp(1.1rem,5vw,1.8rem);font-weight:900;line-height:1.05;text-align:center}.christianity-full-card-art small{position:absolute;right:0;bottom:.55rem;min-width:5rem;padding:.16rem .48rem;border-radius:999px 0 0 999px;background:#ffffffe6;box-shadow:0 .3rem .8rem #102a431f;color:#1f2933bd;font-size:.68rem;font-style:italic;font-weight:900;text-align:center;text-transform:uppercase}.christianity-full-card-verse,.christianity-full-card-effect{display:grid;gap:.32rem}.christianity-full-card-verse p,.christianity-full-card-effect p{margin:0;line-height:1.25}.christianity-full-card-verse{color:#171923;font-family:Georgia,Times New Roman,serif;font-size:clamp(.72rem,2.7vw,.86rem)}.christianity-full-card-verse strong{font-family:inherit;font-size:.78rem;font-weight:900}.christianity-full-card-effect{position:relative;align-content:start;min-height:7rem;padding:.6rem .7rem;overflow:hidden;border-radius:.45rem;background:radial-gradient(circle at 50% 72%,rgba(36,48,68,.07),transparent 34%),#ffffffdb}.christianity-full-card-stats{display:flex;gap:1rem;min-height:1.35rem}.christianity-full-card-stats strong{font-size:1rem;line-height:1}.christianity-full-card-stats .christianity-full-card-pips{display:inline-grid;grid-auto-flow:column;gap:.2rem;justify-self:start;padding:0;background:transparent}.christianity-full-card-effect>div:last-of-type{display:grid;gap:.12rem}.christianity-full-card-effect>div:last-of-type strong{font-size:.82rem}.christianity-full-card-effect p{font-size:clamp(.78rem,2.9vw,.92rem)}.christianity-full-card-rarity{position:absolute;top:.62rem;right:.62rem;width:.46rem;height:.46rem;border-radius:.12rem;transform:rotate(45deg)}.christianity-full-card-rarity.is-normal{background:#d1d5db}.christianity-full-card-rarity.is-uncommon{background:#22c55e}.christianity-full-card-rarity.is-rare{background:#3b82f6}.christianity-full-card-rarity.is-legendary{background:#eab308}.christianity-full-card-footer{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:.34rem;align-items:center;color:#1f2933ad;font-size:.58rem;line-height:1;text-transform:uppercase}.christianity-full-card-footer span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.christianity-floating-card-close{position:absolute;top:0;right:.15rem;z-index:6;min-height:2rem;padding:0 .6rem;border:1px solid rgba(36,48,68,.14);border-radius:999px;background:#ffffffe6;color:#1f2933c7;font:inherit;font-size:.76rem;font-weight:800;box-shadow:0 .45rem 1rem #102a431a}.christianity-preview-backdrop,.christianity-history-backdrop,.christianity-info-backdrop{position:fixed;inset:0;border:0;border-radius:0;background:#0f172a75}.christianity-preview-backdrop{z-index:131}.christianity-info-backdrop{z-index:50}.christianity-info-panel{position:fixed;top:50%;left:50%;z-index:51;width:min(31rem,calc(100vw - 1.25rem));max-height:min(34rem,calc(100vh - 2rem));padding-top:2.35rem;transform:translate(-50%,-50%)}.christianity-info-close{position:absolute;top:0;right:.15rem;z-index:2}.christianity-rule-note{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.85rem;max-height:inherit;padding:1rem;overflow-y:auto;border:1px solid rgba(36,48,68,.14);border-radius:.9rem;background:linear-gradient(180deg,#fffffff7,#f8fafcf7),radial-gradient(circle at 8% 0%,rgba(37,99,235,.1),transparent 38%);box-shadow:0 1.2rem 2.6rem #102a433d,inset 0 0 0 .25rem #ffffff85}.christianity-rule-note-icon{display:grid;place-items:center;width:2.1rem;height:2.1rem;border-radius:999px;background:color-mix(in srgb,var(--christianity-theme-focus) 12%,#ffffff);color:var(--christianity-theme-focus);font-size:1rem;font-weight:900;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--christianity-theme-focus) 24%,transparent)}.christianity-rule-note small,.christianity-rule-note strong,.christianity-rule-note p,.christianity-rule-note h2{margin:0}.christianity-rule-note small{color:#1f29339e;font-size:.78rem;font-weight:800;text-transform:uppercase}.christianity-rule-note h2{margin-top:.18rem;font-size:clamp(1.5rem,7vw,2.2rem);line-height:1.05}.christianity-rule-note strong{display:inline-flex;width:fit-content;margin-top:.55rem;padding:.22rem .55rem;border-radius:999px;background:#edf2f7;font-size:.92rem}.christianity-rule-note p{margin-top:.75rem;color:#1f2933c7;line-height:1.45}.christianity-rule-note ul{display:grid;gap:.45rem;margin:.8rem 0 0;padding-left:1.05rem;color:#1f2933c7;line-height:1.35}.christianity-floating-card>small,.christianity-floating-card>span{color:#1f2933a3}.christianity-floating-card>strong{font-size:clamp(1.55rem,8vw,2.35rem);line-height:1.05}.christianity-floating-card>p{margin:0;align-self:end;font-size:.95rem;line-height:1.35}.christianity-preview-rule-note{position:relative;z-index:4;display:grid;grid-template-columns:auto minmax(0,1fr);gap:.65rem;align-items:start;padding:.75rem .85rem;border:1px solid rgba(36,48,68,.14);border-radius:.75rem;background:linear-gradient(180deg,#fffffff5,#f8fafcf5),radial-gradient(circle at 8% 0%,rgba(37,99,235,.08),transparent 44%);box-shadow:0 .75rem 1.6rem #102a431f}.christianity-preview-rule-note small,.christianity-preview-rule-note strong,.christianity-preview-rule-note p{margin:0}.christianity-preview-rule-note small{color:#1f293394;font-size:.68rem;font-weight:800;text-transform:uppercase}.christianity-preview-rule-note strong{display:block;margin-top:.08rem;font-size:.92rem;line-height:1.1}.christianity-preview-rule-note p{margin-top:.22rem;color:#1f2933bd;font-size:.82rem;line-height:1.32}@media (min-width: 52rem){.christianity-floating-card-shell{width:min(22rem,calc(67dvh - 5.85rem),calc(100vw - 3rem))}.christianity-floating-card{min-height:0;padding:0}}@media (max-width: 51.99rem){.christianity-floating-card-shell{top:calc(50% + .7rem);gap:.45rem;max-height:calc(100dvh - 3.25rem);padding-top:2.15rem}.christianity-floating-card-close{min-height:1.9rem;padding:0 .58rem;font-size:.72rem}.christianity-preview-rule-note{max-height:min(8.25rem,24dvh);padding:.62rem .68rem;overflow-y:auto;scrollbar-color:rgba(36,48,68,.28) transparent;scrollbar-gutter:stable}.christianity-preview-rule-note .christianity-rule-note-icon{width:1.8rem;height:1.8rem;font-size:.9rem}.christianity-preview-rule-note strong{font-size:.86rem}.christianity-preview-rule-note p{font-size:.78rem;line-height:1.28}}.christianity-history-backdrop{z-index:40}.christianity-history-drawer{position:fixed;right:auto;bottom:max(.5rem,env(safe-area-inset-bottom));left:50%;z-index:41;display:grid;grid-template-rows:auto minmax(0,1fr);gap:.75rem;width:min(calc(100vw - 1rem),44rem);min-height:min(18rem,calc(100dvh - 1rem));max-height:min(32rem,calc(100dvh - 2rem));padding:.8rem;border:1px solid rgba(36,48,68,.16);border-radius:.75rem;background:#fffffffa;box-shadow:0 1.5rem 4rem #102a4347;transform:translate(-50%)}.christianity-history-drawer header{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.christianity-history-drawer h2,.christianity-history-drawer p{margin:0}.christianity-history-drawer header span{display:grid;place-items:center;min-width:1.85rem;height:1.85rem;border-radius:999px;background:#edf2f7;font-weight:800}.christianity-dialog-actions{display:flex;align-items:center;gap:.45rem}.christianity-dialog-close{min-height:1.85rem;padding:0 .62rem;border:1px solid rgba(36,48,68,.14);border-radius:999px;background:#fff;color:#1f2933c7;font:inherit;font-size:.76rem;font-weight:800;box-shadow:0 .35rem .8rem #102a4314}.christianity-history-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(5.4rem,1fr));gap:.55rem;min-height:0;overflow-y:scroll;scrollbar-color:rgba(36,48,68,.32) rgba(226,232,240,.72);scrollbar-gutter:stable;padding:.1rem .1rem .25rem}.christianity-history-grid::-webkit-scrollbar,.christianity-offering-list::-webkit-scrollbar{width:.65rem}.christianity-history-grid::-webkit-scrollbar-track,.christianity-offering-list::-webkit-scrollbar-track{border-radius:999px;background:#e2e8f0b8}.christianity-history-grid::-webkit-scrollbar-thumb,.christianity-offering-list::-webkit-scrollbar-thumb{border:.14rem solid rgba(226,232,240,.72);border-radius:999px;background:#24304452}.christianity-offerings-drawer{grid-template-rows:auto auto minmax(0,1fr);width:min(calc(100vw - 1rem),48rem);min-height:min(20rem,calc(100dvh - 1rem));max-height:min(34rem,calc(100dvh - 2rem))}.christianity-offerings-note{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.65rem;align-items:start;padding:.72rem .8rem;border:1px solid rgba(36,48,68,.12);border-radius:.7rem;background:linear-gradient(180deg,#fffffff5,#f8fafcf5),radial-gradient(circle at 8% 0%,rgba(214,162,29,.12),transparent 42%)}.christianity-offerings-note p{margin:0;color:#1f2933c2;font-size:.86rem;line-height:1.35}.christianity-offering-list{display:grid;gap:.6rem;min-height:0;overflow-y:scroll;scrollbar-color:rgba(36,48,68,.32) rgba(226,232,240,.72);scrollbar-gutter:stable;padding:.1rem}.christianity-offering-row{display:grid;grid-template-columns:minmax(5.4rem,6.5rem) minmax(0,1fr);gap:.65rem;align-items:center;padding:.45rem;border:1px solid rgba(36,48,68,.12);border-radius:.65rem;background:#fff}.christianity-offering-row.is-exhausted{opacity:.68}.christianity-gallery-drawer{grid-template-rows:auto auto auto minmax(0,1fr);width:min(calc(100vw - 1rem),50rem);min-height:min(22rem,calc(100dvh - 1rem));max-height:min(36rem,calc(100dvh - 2rem))}.christianity-gallery-drawer header>div:first-child{display:grid;gap:.15rem;min-width:0}.christianity-gallery-drawer header p{color:#1f293394;font-size:.82rem}.christianity-gallery-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(8.5rem,13rem);gap:.65rem}.christianity-gallery-controls label{display:grid;gap:.25rem;min-width:0;color:#1f29339e;font-size:.74rem;font-weight:800}.christianity-gallery-controls input,.christianity-gallery-controls select{width:100%;min-width:0;min-height:2.35rem;padding:0 .75rem;border:1px solid rgba(36,48,68,.16);border-radius:.65rem;background:#fff;color:var(--christianity-theme-ink);font:inherit;font-size:.9rem}.christianity-gallery-edition-strip{display:flex;gap:.45rem;overflow-x:auto;padding-bottom:.1rem}.christianity-gallery-edition-strip button{display:inline-flex;align-items:center;gap:.45rem;min-height:2.35rem;padding:0 .75rem;border:1px solid rgba(214,162,29,.38);border-radius:999px;background:var(--christianity-theme-parchment);color:var(--christianity-theme-ink);font:inherit;font-size:.82rem;font-weight:800}.christianity-gallery-edition-strip img{width:1.2rem;height:1.2rem;object-fit:contain}.christianity-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(5.8rem,6.8rem));justify-content:center;align-content:start;gap:.65rem;min-height:0;overflow-y:scroll;scrollbar-color:rgba(36,48,68,.32) rgba(226,232,240,.72);scrollbar-gutter:stable;padding:.1rem .1rem .35rem}.christianity-gallery-grid::-webkit-scrollbar{width:.65rem}.christianity-gallery-grid::-webkit-scrollbar-track{border-radius:999px;background:#e2e8f0b8}.christianity-gallery-grid::-webkit-scrollbar-thumb{border:.14rem solid rgba(226,232,240,.72);border-radius:999px;background:#24304452}.christianity-offering-card{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr) auto;align-content:stretch;gap:.26rem;width:100%;min-height:7.7rem;padding:.58rem;overflow:hidden;text-align:left;background:linear-gradient(180deg,#fffffff5,#f8fafcf5),radial-gradient(circle at 78% 14%,rgba(250,204,21,.78) 0 .42rem,transparent .44rem);box-shadow:0 .45rem 1rem #102a431a}.christianity-offering-card small{min-width:0;overflow:hidden;color:#1f293394;font-size:.62rem;font-weight:800;line-height:1;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.christianity-offering-card strong{display:-webkit-box;align-self:start;min-width:0;margin-top:.1rem;overflow:hidden;overflow-wrap:anywhere;font-size:.88rem;line-height:1.05;-webkit-box-orient:vertical;-webkit-line-clamp:3}.christianity-offering-card span{position:absolute;right:.42rem;bottom:.42rem;display:grid;place-items:center;min-width:1.55rem;height:1.55rem;padding:0 .28rem;border-radius:999px;background:#edf2f7;font-size:.82rem;font-weight:900}.christianity-offering-card em{align-self:end;max-width:calc(100% - 1.9rem);overflow:hidden;color:#1f29339e;font-size:.64rem;font-style:normal;font-weight:800;line-height:1.05;text-overflow:ellipsis;white-space:nowrap}.christianity-offering-card p,.christianity-offering-row p{margin:0}.christianity-offering-card p{align-self:end;color:#1f2933a3;font-size:.72rem;line-height:1.2}.christianity-offering-row>div{display:grid;gap:.35rem;align-content:center;min-width:0}.christianity-offering-row>div p{color:#1f2933b8;font-size:.85rem;line-height:1.3}.christianity-offering-row>div button{justify-self:start;min-height:2.2rem;padding:0 .7rem;border:1px solid rgba(16,42,67,.16);border-radius:.5rem;background:#102a43;color:#fff;font:inherit;font-weight:800}.christianity-offering-row>div button:disabled{background:#e2e8f0;color:#1f293394}.christianity-history-grid .christianity-render-card-button{justify-self:center;width:min(100%,6.4rem)}.christianity-gallery-grid .christianity-render-card-button{justify-self:center;width:min(100%,7rem)}.christianity-offering-card.christianity-render-card-button{width:min(100%,5.8rem);min-height:0;padding:0;border:0;background:transparent;box-shadow:none}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible{outline:.1875rem solid color-mix(in srgb,var(--christianity-theme-focus) 24%,transparent);outline-offset:.125rem}:host-context(.dark),:host-context(.ion-palette-dark),:host-context(html.ion-palette-dark),:host-context(body.dark),:host-context([data-theme=\"dark\"]){--christianity-theme-ink: var(--ion-text-color, #e5edf8);--christianity-theme-surface: #111827;--christianity-theme-parchment: #13223a;--christianity-theme-olive: #93c5fd;--christianity-theme-gold: #60a5fa;--christianity-theme-gold-soft: rgba(96, 165, 250, .18);--christianity-theme-gold-ring: rgba(147, 197, 253, .42);--christianity-theme-glow: rgba(96, 165, 250, .24);--christianity-theme-focus: #93c5fd;--christianity-theme-shadow: rgba(0, 0, 0, .34);--christianity-theme-shadow-strong: rgba(0, 0, 0, .48);--christianity-card-back: linear-gradient(135deg, rgba(147, 197, 253, .2), rgba(15, 23, 42, .08)), repeating-linear-gradient(45deg, #1e3a5f 0 .33rem, #0f172a .33rem .66rem);--christianity-card-back-soft: linear-gradient(135deg, rgba(147, 197, 253, .15), rgba(15, 23, 42, .06)), repeating-linear-gradient(45deg, #1e3a5f 0 .33rem, #0f172a .33rem .66rem);color-scheme:dark}:host-context(.dark) .christianity-shell,:host-context(.ion-palette-dark) .christianity-shell,:host-context(html.ion-palette-dark) .christianity-shell,:host-context(body.dark) .christianity-shell,:host-context([data-theme=\"dark\"]) .christianity-shell{border-color:#94a3b82e;background:#07111f}:host-context(.dark) .christianity-gallery-open,:host-context(.ion-palette-dark) .christianity-gallery-open,:host-context(html.ion-palette-dark) .christianity-gallery-open,:host-context(body.dark) .christianity-gallery-open,:host-context([data-theme=\"dark\"]) .christianity-gallery-open,:host-context(.dark) .christianity-secondary-action,:host-context(.ion-palette-dark) .christianity-secondary-action,:host-context(html.ion-palette-dark) .christianity-secondary-action,:host-context(body.dark) .christianity-secondary-action,:host-context([data-theme=\"dark\"]) .christianity-secondary-action,:host-context(.dark) .christianity-gallery-edition-strip button,:host-context(.ion-palette-dark) .christianity-gallery-edition-strip button,:host-context(html.ion-palette-dark) .christianity-gallery-edition-strip button,:host-context(body.dark) .christianity-gallery-edition-strip button,:host-context([data-theme=\"dark\"]) .christianity-gallery-edition-strip button{border-color:#93c5fd5c;background:linear-gradient(180deg,#1e3a5fd1,#0f172ae0),radial-gradient(circle at 20% 0%,rgba(96,165,250,.16),transparent 42%);color:var(--christianity-theme-ink);box-shadow:0 .55rem 1.2rem #0000003d}:host-context(.dark) .christianity-splash,:host-context(.ion-palette-dark) .christianity-splash,:host-context(html.ion-palette-dark) .christianity-splash,:host-context(body.dark) .christianity-splash,:host-context([data-theme=\"dark\"]) .christianity-splash,:host-context(.dark) .christianity-start,:host-context(.ion-palette-dark) .christianity-start,:host-context(html.ion-palette-dark) .christianity-start,:host-context(body.dark) .christianity-start,:host-context([data-theme=\"dark\"]) .christianity-start{border-color:#93c5fd38;background:radial-gradient(circle at 50% 18%,rgba(96,165,250,.16),transparent 22rem),linear-gradient(180deg,#0f172ae0,#07111ff7),var(--christianity-card-back-soft);box-shadow:0 1.2rem 3.2rem #00000047}:host-context(.dark) .christianity-start__cards article,:host-context(.ion-palette-dark) .christianity-start__cards article,:host-context(html.ion-palette-dark) .christianity-start__cards article,:host-context(body.dark) .christianity-start__cards article,:host-context([data-theme=\"dark\"]) .christianity-start__cards article,:host-context(.dark) .christianity-start__modes article,:host-context(.ion-palette-dark) .christianity-start__modes article,:host-context(html.ion-palette-dark) .christianity-start__modes article,:host-context(body.dark) .christianity-start__modes article,:host-context([data-theme=\"dark\"]) .christianity-start__modes article,:host-context(.dark) .christianity-start__status span,:host-context(.ion-palette-dark) .christianity-start__status span,:host-context(html.ion-palette-dark) .christianity-start__status span,:host-context(body.dark) .christianity-start__status span,:host-context([data-theme=\"dark\"]) .christianity-start__status span,:host-context(.dark) .christianity-start__modes article>span,:host-context(.ion-palette-dark) .christianity-start__modes article>span,:host-context(html.ion-palette-dark) .christianity-start__modes article>span,:host-context(body.dark) .christianity-start__modes article>span,:host-context([data-theme=\"dark\"]) .christianity-start__modes article>span{border-color:#94a3b833;background:#0f172aad;box-shadow:0 .75rem 1.7rem #00000038}:host-context(.dark) .christianity-splash p,:host-context(.ion-palette-dark) .christianity-splash p,:host-context(html.ion-palette-dark) .christianity-splash p,:host-context(body.dark) .christianity-splash p,:host-context([data-theme=\"dark\"]) .christianity-splash p,:host-context(.dark) .christianity-start__copy p,:host-context(.ion-palette-dark) .christianity-start__copy p,:host-context(html.ion-palette-dark) .christianity-start__copy p,:host-context(body.dark) .christianity-start__copy p,:host-context([data-theme=\"dark\"]) .christianity-start__copy p,:host-context(.dark) .christianity-start__cards p,:host-context(.ion-palette-dark) .christianity-start__cards p,:host-context(html.ion-palette-dark) .christianity-start__cards p,:host-context(body.dark) .christianity-start__cards p,:host-context([data-theme=\"dark\"]) .christianity-start__cards p,:host-context(.dark) .christianity-start__modes p,:host-context(.ion-palette-dark) .christianity-start__modes p,:host-context(html.ion-palette-dark) .christianity-start__modes p,:host-context(body.dark) .christianity-start__modes p,:host-context([data-theme=\"dark\"]) .christianity-start__modes p,:host-context(.dark) .christianity-header p,:host-context(.ion-palette-dark) .christianity-header p,:host-context(html.ion-palette-dark) .christianity-header p,:host-context(body.dark) .christianity-header p,:host-context([data-theme=\"dark\"]) .christianity-header p,:host-context(.dark) .christianity-match-player small,:host-context(.ion-palette-dark) .christianity-match-player small,:host-context(html.ion-palette-dark) .christianity-match-player small,:host-context(body.dark) .christianity-match-player small,:host-context([data-theme=\"dark\"]) .christianity-match-player small,:host-context(.dark) .christianity-scoreboard span,:host-context(.ion-palette-dark) .christianity-scoreboard span,:host-context(html.ion-palette-dark) .christianity-scoreboard span,:host-context(body.dark) .christianity-scoreboard span,:host-context([data-theme=\"dark\"]) .christianity-scoreboard span{color:#e2e8f0bd}:host-context(.dark) .christianity-turn,:host-context(.ion-palette-dark) .christianity-turn,:host-context(html.ion-palette-dark) .christianity-turn,:host-context(body.dark) .christianity-turn,:host-context([data-theme=\"dark\"]) .christianity-turn,:host-context(.dark) .christianity-leader,:host-context(.ion-palette-dark) .christianity-leader,:host-context(html.ion-palette-dark) .christianity-leader,:host-context(body.dark) .christianity-leader,:host-context([data-theme=\"dark\"]) .christianity-leader,:host-context(.dark) .christianity-offerings,:host-context(.ion-palette-dark) .christianity-offerings,:host-context(html.ion-palette-dark) .christianity-offerings,:host-context(body.dark) .christianity-offerings,:host-context([data-theme=\"dark\"]) .christianity-offerings,:host-context(.dark) .christianity-hidden-hand,:host-context(.ion-palette-dark) .christianity-hidden-hand,:host-context(html.ion-palette-dark) .christianity-hidden-hand,:host-context(body.dark) .christianity-hidden-hand,:host-context([data-theme=\"dark\"]) .christianity-hidden-hand,:host-context(.dark) .christianity-pile,:host-context(.ion-palette-dark) .christianity-pile,:host-context(html.ion-palette-dark) .christianity-pile,:host-context(body.dark) .christianity-pile,:host-context([data-theme=\"dark\"]) .christianity-pile,:host-context(.dark) .christianity-deck,:host-context(.ion-palette-dark) .christianity-deck,:host-context(html.ion-palette-dark) .christianity-deck,:host-context(body.dark) .christianity-deck,:host-context([data-theme=\"dark\"]) .christianity-deck,:host-context(.dark) .christianity-place,:host-context(.ion-palette-dark) .christianity-place,:host-context(html.ion-palette-dark) .christianity-place,:host-context(body.dark) .christianity-place,:host-context([data-theme=\"dark\"]) .christianity-place,:host-context(.dark) .christianity-match-strip,:host-context(.ion-palette-dark) .christianity-match-strip,:host-context(html.ion-palette-dark) .christianity-match-strip,:host-context(body.dark) .christianity-match-strip,:host-context([data-theme=\"dark\"]) .christianity-match-strip,:host-context(.dark) .christianity-actions,:host-context(.ion-palette-dark) .christianity-actions,:host-context(html.ion-palette-dark) .christianity-actions,:host-context(body.dark) .christianity-actions,:host-context([data-theme=\"dark\"]) .christianity-actions,:host-context(.dark) .christianity-history,:host-context(.ion-palette-dark) .christianity-history,:host-context(html.ion-palette-dark) .christianity-history,:host-context(body.dark) .christianity-history,:host-context([data-theme=\"dark\"]) .christianity-history{border-color:#94a3b82e;background:#0f172ad1}:host-context(.dark) .christianity-turn.is-own-turn,:host-context(.ion-palette-dark) .christianity-turn.is-own-turn,:host-context(html.ion-palette-dark) .christianity-turn.is-own-turn,:host-context(body.dark) .christianity-turn.is-own-turn,:host-context([data-theme=\"dark\"]) .christianity-turn.is-own-turn{border-color:#2dd4bf5c;background:#14534c5c}:host-context(.dark) .christianity-table,:host-context(.ion-palette-dark) .christianity-table,:host-context(html.ion-palette-dark) .christianity-table,:host-context(body.dark) .christianity-table,:host-context([data-theme=\"dark\"]) .christianity-table{background:linear-gradient(180deg,#10233d,#0b1728)}:host-context(.dark) .christianity-player-side,:host-context(.ion-palette-dark) .christianity-player-side,:host-context(html.ion-palette-dark) .christianity-player-side,:host-context(body.dark) .christianity-player-side,:host-context([data-theme=\"dark\"]) .christianity-player-side{background:#0f172a57}:host-context(.dark) .christianity-battle-zone,:host-context(.ion-palette-dark) .christianity-battle-zone,:host-context(html.ion-palette-dark) .christianity-battle-zone,:host-context(body.dark) .christianity-battle-zone,:host-context([data-theme=\"dark\"]) .christianity-battle-zone,:host-context(.dark) .christianity-shared-zone,:host-context(.ion-palette-dark) .christianity-shared-zone,:host-context(html.ion-palette-dark) .christianity-shared-zone,:host-context(body.dark) .christianity-shared-zone,:host-context([data-theme=\"dark\"]) .christianity-shared-zone{background:#0f172a94}:host-context(.dark) .christianity-battle-zone.is-placing-card,:host-context(.ion-palette-dark) .christianity-battle-zone.is-placing-card,:host-context(html.ion-palette-dark) .christianity-battle-zone.is-placing-card,:host-context(body.dark) .christianity-battle-zone.is-placing-card,:host-context([data-theme=\"dark\"]) .christianity-battle-zone.is-placing-card{background:linear-gradient(180deg,#1e3a5fd1,#0f172ab8),#0f172a94}:host-context(.dark) .christianity-card,:host-context(.ion-palette-dark) .christianity-card,:host-context(html.ion-palette-dark) .christianity-card,:host-context(body.dark) .christianity-card,:host-context([data-theme=\"dark\"]) .christianity-card,:host-context(.dark) .christianity-slot,:host-context(.ion-palette-dark) .christianity-slot,:host-context(html.ion-palette-dark) .christianity-slot,:host-context(body.dark) .christianity-slot,:host-context([data-theme=\"dark\"]) .christianity-slot{border-color:#94a3b83d;background:#0f172a8a}:host-context(.dark) .christianity-slot--play-target,:host-context(.ion-palette-dark) .christianity-slot--play-target,:host-context(html.ion-palette-dark) .christianity-slot--play-target,:host-context(body.dark) .christianity-slot--play-target,:host-context([data-theme=\"dark\"]) .christianity-slot--play-target{color:var(--christianity-theme-ink);background:linear-gradient(180deg,#2563eb3d,#0f172ac7),#0f172abd}:host-context(.dark) .christianity-slot--play-target span,:host-context(.ion-palette-dark) .christianity-slot--play-target span,:host-context(html.ion-palette-dark) .christianity-slot--play-target span,:host-context(body.dark) .christianity-slot--play-target span,:host-context([data-theme=\"dark\"]) .christianity-slot--play-target span,:host-context(.dark) .christianity-card strong,:host-context(.ion-palette-dark) .christianity-card strong,:host-context(html.ion-palette-dark) .christianity-card strong,:host-context(body.dark) .christianity-card strong,:host-context([data-theme=\"dark\"]) .christianity-card strong{background:#1e293beb}:host-context(.dark) .christianity-offering-pile,:host-context(.ion-palette-dark) .christianity-offering-pile,:host-context(html.ion-palette-dark) .christianity-offering-pile,:host-context(body.dark) .christianity-offering-pile,:host-context([data-theme=\"dark\"]) .christianity-offering-pile,:host-context(.dark) .christianity-zone-card,:host-context(.ion-palette-dark) .christianity-zone-card,:host-context(html.ion-palette-dark) .christianity-zone-card,:host-context(body.dark) .christianity-zone-card,:host-context([data-theme=\"dark\"]) .christianity-zone-card,:host-context(.dark) .christianity-zone-pile,:host-context(.ion-palette-dark) .christianity-zone-pile,:host-context(html.ion-palette-dark) .christianity-zone-pile,:host-context(body.dark) .christianity-zone-pile,:host-context([data-theme=\"dark\"]) .christianity-zone-pile{border-color:#94a3b83d;background:linear-gradient(180deg,#111827f5,#0f172af0),radial-gradient(circle at 14% 0%,rgba(96,165,250,.12),transparent 42%);color:var(--christianity-theme-ink);box-shadow:0 .55rem 1.25rem #00000047,inset 0 0 0 .12rem #ffffff08}:host-context(.dark) .christianity-offering-pile>span,:host-context(.ion-palette-dark) .christianity-offering-pile>span,:host-context(html.ion-palette-dark) .christianity-offering-pile>span,:host-context(body.dark) .christianity-offering-pile>span,:host-context([data-theme=\"dark\"]) .christianity-offering-pile>span,:host-context(.dark) .christianity-zone-card>span,:host-context(.ion-palette-dark) .christianity-zone-card>span,:host-context(html.ion-palette-dark) .christianity-zone-card>span,:host-context(body.dark) .christianity-zone-card>span,:host-context([data-theme=\"dark\"]) .christianity-zone-card>span,:host-context(.dark) .christianity-zone-pile>span,:host-context(.ion-palette-dark) .christianity-zone-pile>span,:host-context(html.ion-palette-dark) .christianity-zone-pile>span,:host-context(body.dark) .christianity-zone-pile>span,:host-context([data-theme=\"dark\"]) .christianity-zone-pile>span,:host-context(.dark) .christianity-player-badge,:host-context(.ion-palette-dark) .christianity-player-badge,:host-context(html.ion-palette-dark) .christianity-player-badge,:host-context(body.dark) .christianity-player-badge,:host-context([data-theme=\"dark\"]) .christianity-player-badge{color:#e2e8f0c7}:host-context(.dark) .christianity-offering-pile>strong,:host-context(.ion-palette-dark) .christianity-offering-pile>strong,:host-context(html.ion-palette-dark) .christianity-offering-pile>strong,:host-context(body.dark) .christianity-offering-pile>strong,:host-context([data-theme=\"dark\"]) .christianity-offering-pile>strong,:host-context(.dark) .christianity-zone-card>strong,:host-context(.ion-palette-dark) .christianity-zone-card>strong,:host-context(html.ion-palette-dark) .christianity-zone-card>strong,:host-context(body.dark) .christianity-zone-card>strong,:host-context([data-theme=\"dark\"]) .christianity-zone-card>strong,:host-context(.dark) .christianity-zone-pile>strong,:host-context(.ion-palette-dark) .christianity-zone-pile>strong,:host-context(html.ion-palette-dark) .christianity-zone-pile>strong,:host-context(body.dark) .christianity-zone-pile>strong,:host-context([data-theme=\"dark\"]) .christianity-zone-pile>strong,:host-context(.dark) .christianity-hand-meter,:host-context(.ion-palette-dark) .christianity-hand-meter,:host-context(html.ion-palette-dark) .christianity-hand-meter,:host-context(body.dark) .christianity-hand-meter,:host-context([data-theme=\"dark\"]) .christianity-hand-meter{border-color:#94a3b833;background:#0f172ae0;color:var(--christianity-theme-ink);box-shadow:0 .35rem .8rem #00000047}:host-context(.dark) .christianity-hand-meter span,:host-context(.ion-palette-dark) .christianity-hand-meter span,:host-context(html.ion-palette-dark) .christianity-hand-meter span,:host-context(body.dark) .christianity-hand-meter span,:host-context([data-theme=\"dark\"]) .christianity-hand-meter span{color:#e2e8f0b3}:host-context(.dark) .christianity-offering-pile i,:host-context(.ion-palette-dark) .christianity-offering-pile i,:host-context(html.ion-palette-dark) .christianity-offering-pile i,:host-context(body.dark) .christianity-offering-pile i,:host-context([data-theme=\"dark\"]) .christianity-offering-pile i{border-color:#94a3b833;background:linear-gradient(180deg,#e2e8f0f0,#cbd5e1e6),radial-gradient(circle at 78% 18%,#facc15 0 .38rem,transparent .4rem)}:host-context(.dark) .christianity-zone-pile i,:host-context(.ion-palette-dark) .christianity-zone-pile i,:host-context(html.ion-palette-dark) .christianity-zone-pile i,:host-context(body.dark) .christianity-zone-pile i,:host-context([data-theme=\"dark\"]) .christianity-zone-pile i{border-color:#94a3b838;background:#e2e8f0eb;box-shadow:0 .35rem .85rem #00000042}:host-context(.dark) .christianity-zone-pile i:nth-child(3),:host-context(.ion-palette-dark) .christianity-zone-pile i:nth-child(3),:host-context(html.ion-palette-dark) .christianity-zone-pile i:nth-child(3),:host-context(body.dark) .christianity-zone-pile i:nth-child(3),:host-context([data-theme=\"dark\"]) .christianity-zone-pile i:nth-child(3){background:var(--christianity-card-back)}:host-context(.dark) .christianity-end-turn:disabled,:host-context(.ion-palette-dark) .christianity-end-turn:disabled,:host-context(html.ion-palette-dark) .christianity-end-turn:disabled,:host-context(body.dark) .christianity-end-turn:disabled,:host-context([data-theme=\"dark\"]) .christianity-end-turn:disabled{border-color:#94a3b829;background:#0f172a75;color:#e2e8f06b;opacity:1}:host-context(.dark) .christianity-history-drawer,:host-context(.ion-palette-dark) .christianity-history-drawer,:host-context(html.ion-palette-dark) .christianity-history-drawer,:host-context(body.dark) .christianity-history-drawer,:host-context([data-theme=\"dark\"]) .christianity-history-drawer,:host-context(.dark) .christianity-rule-note,:host-context(.ion-palette-dark) .christianity-rule-note,:host-context(html.ion-palette-dark) .christianity-rule-note,:host-context(body.dark) .christianity-rule-note,:host-context([data-theme=\"dark\"]) .christianity-rule-note,:host-context(.dark) .christianity-preview-rule-note,:host-context(.ion-palette-dark) .christianity-preview-rule-note,:host-context(html.ion-palette-dark) .christianity-preview-rule-note,:host-context(body.dark) .christianity-preview-rule-note,:host-context([data-theme=\"dark\"]) .christianity-preview-rule-note{border-color:#94a3b82e;background:linear-gradient(180deg,#0f172af5,#111827f5),radial-gradient(circle at 8% 0%,rgba(96,165,250,.12),transparent 40%);box-shadow:0 1.5rem 4rem #0000006b}:host-context(.dark) .christianity-dialog-close,:host-context(.ion-palette-dark) .christianity-dialog-close,:host-context(html.ion-palette-dark) .christianity-dialog-close,:host-context(body.dark) .christianity-dialog-close,:host-context([data-theme=\"dark\"]) .christianity-dialog-close,:host-context(.dark) .christianity-floating-card-close,:host-context(.ion-palette-dark) .christianity-floating-card-close,:host-context(html.ion-palette-dark) .christianity-floating-card-close,:host-context(body.dark) .christianity-floating-card-close,:host-context([data-theme=\"dark\"]) .christianity-floating-card-close{border-color:#94a3b838;background:#0f172af0;color:var(--christianity-theme-ink);box-shadow:0 .35rem .8rem #0000004d}:host-context(.dark) .christianity-history-drawer header span,:host-context(.ion-palette-dark) .christianity-history-drawer header span,:host-context(html.ion-palette-dark) .christianity-history-drawer header span,:host-context(body.dark) .christianity-history-drawer header span,:host-context([data-theme=\"dark\"]) .christianity-history-drawer header span,:host-context(.dark) .christianity-rule-note strong,:host-context(.ion-palette-dark) .christianity-rule-note strong,:host-context(html.ion-palette-dark) .christianity-rule-note strong,:host-context(body.dark) .christianity-rule-note strong,:host-context([data-theme=\"dark\"]) .christianity-rule-note strong{background:#1e293beb}:host-context(.dark) .christianity-rule-note small,:host-context(.ion-palette-dark) .christianity-rule-note small,:host-context(html.ion-palette-dark) .christianity-rule-note small,:host-context(body.dark) .christianity-rule-note small,:host-context([data-theme=\"dark\"]) .christianity-rule-note small,:host-context(.dark) .christianity-preview-rule-note small,:host-context(.ion-palette-dark) .christianity-preview-rule-note small,:host-context(html.ion-palette-dark) .christianity-preview-rule-note small,:host-context(body.dark) .christianity-preview-rule-note small,:host-context([data-theme=\"dark\"]) .christianity-preview-rule-note small,:host-context(.dark) .christianity-gallery-drawer header p,:host-context(.ion-palette-dark) .christianity-gallery-drawer header p,:host-context(html.ion-palette-dark) .christianity-gallery-drawer header p,:host-context(body.dark) .christianity-gallery-drawer header p,:host-context([data-theme=\"dark\"]) .christianity-gallery-drawer header p,:host-context(.dark) .christianity-gallery-controls label,:host-context(.ion-palette-dark) .christianity-gallery-controls label,:host-context(html.ion-palette-dark) .christianity-gallery-controls label,:host-context(body.dark) .christianity-gallery-controls label,:host-context([data-theme=\"dark\"]) .christianity-gallery-controls label{color:#e2e8f0ad}:host-context(.dark) .christianity-rule-note p,:host-context(.ion-palette-dark) .christianity-rule-note p,:host-context(html.ion-palette-dark) .christianity-rule-note p,:host-context(body.dark) .christianity-rule-note p,:host-context([data-theme=\"dark\"]) .christianity-rule-note p,:host-context(.dark) .christianity-rule-note ul,:host-context(.ion-palette-dark) .christianity-rule-note ul,:host-context(html.ion-palette-dark) .christianity-rule-note ul,:host-context(body.dark) .christianity-rule-note ul,:host-context([data-theme=\"dark\"]) .christianity-rule-note ul,:host-context(.dark) .christianity-preview-rule-note p,:host-context(.ion-palette-dark) .christianity-preview-rule-note p,:host-context(html.ion-palette-dark) .christianity-preview-rule-note p,:host-context(body.dark) .christianity-preview-rule-note p,:host-context([data-theme=\"dark\"]) .christianity-preview-rule-note p,:host-context(.dark) .christianity-offerings-note p,:host-context(.ion-palette-dark) .christianity-offerings-note p,:host-context(html.ion-palette-dark) .christianity-offerings-note p,:host-context(body.dark) .christianity-offerings-note p,:host-context([data-theme=\"dark\"]) .christianity-offerings-note p{color:#e2e8f0cc}:host-context(.dark) .christianity-gallery-controls input,:host-context(.ion-palette-dark) .christianity-gallery-controls input,:host-context(html.ion-palette-dark) .christianity-gallery-controls input,:host-context(body.dark) .christianity-gallery-controls input,:host-context([data-theme=\"dark\"]) .christianity-gallery-controls input,:host-context(.dark) .christianity-gallery-controls select,:host-context(.ion-palette-dark) .christianity-gallery-controls select,:host-context(html.ion-palette-dark) .christianity-gallery-controls select,:host-context(body.dark) .christianity-gallery-controls select,:host-context([data-theme=\"dark\"]) .christianity-gallery-controls select,:host-context(.dark) .christianity-offering-row,:host-context(.ion-palette-dark) .christianity-offering-row,:host-context(html.ion-palette-dark) .christianity-offering-row,:host-context(body.dark) .christianity-offering-row,:host-context([data-theme=\"dark\"]) .christianity-offering-row,:host-context(.dark) .christianity-offerings-note,:host-context(.ion-palette-dark) .christianity-offerings-note,:host-context(html.ion-palette-dark) .christianity-offerings-note,:host-context(body.dark) .christianity-offerings-note,:host-context([data-theme=\"dark\"]) .christianity-offerings-note{border-color:#94a3b833;background:#0f172ac7;color:var(--christianity-theme-ink)}:host-context(.dark) .christianity-history-grid,:host-context(.ion-palette-dark) .christianity-history-grid,:host-context(html.ion-palette-dark) .christianity-history-grid,:host-context(body.dark) .christianity-history-grid,:host-context([data-theme=\"dark\"]) .christianity-history-grid,:host-context(.dark) .christianity-offering-list,:host-context(.ion-palette-dark) .christianity-offering-list,:host-context(html.ion-palette-dark) .christianity-offering-list,:host-context(body.dark) .christianity-offering-list,:host-context([data-theme=\"dark\"]) .christianity-offering-list,:host-context(.dark) .christianity-gallery-grid,:host-context(.ion-palette-dark) .christianity-gallery-grid,:host-context(html.ion-palette-dark) .christianity-gallery-grid,:host-context(body.dark) .christianity-gallery-grid,:host-context([data-theme=\"dark\"]) .christianity-gallery-grid,:host-context(.dark) .christianity-preview-rule-note,:host-context(.ion-palette-dark) .christianity-preview-rule-note,:host-context(html.ion-palette-dark) .christianity-preview-rule-note,:host-context(body.dark) .christianity-preview-rule-note,:host-context([data-theme=\"dark\"]) .christianity-preview-rule-note{scrollbar-color:rgba(148,163,184,.54) rgba(15,23,42,.86)}:host-context(.dark) .christianity-rule-note-icon,:host-context(.ion-palette-dark) .christianity-rule-note-icon,:host-context(html.ion-palette-dark) .christianity-rule-note-icon,:host-context(body.dark) .christianity-rule-note-icon,:host-context([data-theme=\"dark\"]) .christianity-rule-note-icon{background:#60a5fa29;color:#bfdbfe;box-shadow:inset 0 0 0 1px #93c5fd38}:host-context(.dark) .christianity-history-grid::-webkit-scrollbar-track,:host-context(.ion-palette-dark) .christianity-history-grid::-webkit-scrollbar-track,:host-context(html.ion-palette-dark) .christianity-history-grid::-webkit-scrollbar-track,:host-context(body.dark) .christianity-history-grid::-webkit-scrollbar-track,:host-context([data-theme=\"dark\"]) .christianity-history-grid::-webkit-scrollbar-track,:host-context(.dark) .christianity-offering-list::-webkit-scrollbar-track,:host-context(.ion-palette-dark) .christianity-offering-list::-webkit-scrollbar-track,:host-context(html.ion-palette-dark) .christianity-offering-list::-webkit-scrollbar-track,:host-context(body.dark) .christianity-offering-list::-webkit-scrollbar-track,:host-context([data-theme=\"dark\"]) .christianity-offering-list::-webkit-scrollbar-track,:host-context(.dark) .christianity-gallery-grid::-webkit-scrollbar-track,:host-context(.ion-palette-dark) .christianity-gallery-grid::-webkit-scrollbar-track,:host-context(html.ion-palette-dark) .christianity-gallery-grid::-webkit-scrollbar-track,:host-context(body.dark) .christianity-gallery-grid::-webkit-scrollbar-track,:host-context([data-theme=\"dark\"]) .christianity-gallery-grid::-webkit-scrollbar-track{background:#0f172adb}:host-context(.dark) .christianity-history-grid::-webkit-scrollbar-thumb,:host-context(.ion-palette-dark) .christianity-history-grid::-webkit-scrollbar-thumb,:host-context(html.ion-palette-dark) .christianity-history-grid::-webkit-scrollbar-thumb,:host-context(body.dark) .christianity-history-grid::-webkit-scrollbar-thumb,:host-context([data-theme=\"dark\"]) .christianity-history-grid::-webkit-scrollbar-thumb,:host-context(.dark) .christianity-offering-list::-webkit-scrollbar-thumb,:host-context(.ion-palette-dark) .christianity-offering-list::-webkit-scrollbar-thumb,:host-context(html.ion-palette-dark) .christianity-offering-list::-webkit-scrollbar-thumb,:host-context(body.dark) .christianity-offering-list::-webkit-scrollbar-thumb,:host-context([data-theme=\"dark\"]) .christianity-offering-list::-webkit-scrollbar-thumb,:host-context(.dark) .christianity-gallery-grid::-webkit-scrollbar-thumb,:host-context(.ion-palette-dark) .christianity-gallery-grid::-webkit-scrollbar-thumb,:host-context(html.ion-palette-dark) .christianity-gallery-grid::-webkit-scrollbar-thumb,:host-context(body.dark) .christianity-gallery-grid::-webkit-scrollbar-thumb,:host-context([data-theme=\"dark\"]) .christianity-gallery-grid::-webkit-scrollbar-thumb{border-color:#0f172adb;background:#94a3b88a}@media (max-width: 720px){:host{overflow-x:hidden}.christianity-shell{padding:.55rem 0 .65rem;border-right:0;border-left:0;border-radius:0}.christianity-header,.christianity-match-strip,.christianity-actions{box-sizing:border-box;width:100%;padding-right:max(.5rem,env(safe-area-inset-right));padding-left:max(.5rem,env(safe-area-inset-left))}.christianity-header,.christianity-player__summary,.christianity-shared-zone,.christianity-actions{align-items:stretch;flex-direction:column}.christianity-match-strip{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:.35rem;padding:.35rem}.christianity-match-player{gap:.35rem}.christianity-match-player small{display:none}.christianity-header-actions{align-items:flex-end;flex-direction:column}.christianity-start__cards,.christianity-start__hero{grid-template-columns:minmax(0,1fr)}.christianity-start__fan{min-height:10.5rem}.christianity-start__fan val-christianity-card{width:clamp(5.2rem,22vw,6.4rem)}.christianity-start__modes{grid-template-columns:repeat(2,minmax(0,1fr))}.christianity-splash,.christianity-start{min-height:min(30rem,calc(100dvh - 7rem));padding-right:max(.65rem,env(safe-area-inset-right));padding-left:max(.65rem,env(safe-area-inset-left));border-right:0;border-left:0;border-radius:0}.christianity-scoreboard{min-width:3.65rem;padding:0 .35rem}.christianity-scoreboard strong{font-size:1.05rem}.christianity-table{gap:.35rem;padding-right:.25rem;padding-left:.25rem}.christianity-player-side{padding:.3rem .25rem}.christianity-battle-zone{--christianity-battle-card-width: min(5.2rem, calc((100vw - 4.25rem)/4) );grid-template-columns:repeat(4,var(--christianity-battle-card-width));justify-content:center;min-height:8.75rem;overflow-x:clip}.christianity-hand-fan{min-height:11.45rem;padding-bottom:2rem;overflow:visible}.christianity-hand-shelf{min-height:12.65rem;margin-top:-1rem;padding-top:1.35rem;padding-bottom:.9rem}.christianity-hand-shelf--opponent{min-height:6.65rem;margin-top:0;margin-bottom:0;padding-top:.4rem;padding-bottom:.85rem}.christianity-player-rack{grid-template-columns:minmax(4.5rem,5.7rem) minmax(4.4rem,1fr) minmax(3.5rem,4.8rem)}.christianity-shared-zone{gap:.45rem;grid-template-columns:repeat(3,minmax(0,1fr))}.christianity-zone-card,.christianity-zone-pile{min-height:6.15rem;padding:.58rem .46rem .5rem;gap:.24rem}.christianity-zone-pile i{top:2rem;right:.52rem;width:2.35rem;height:3.25rem}.christianity-offering-pile{padding:.88rem .46rem .55rem;gap:.24rem}.christianity-offering-drop-target{height:6.85rem;min-height:0;max-height:6.85rem}.christianity-offering-pile i{top:2.25rem;left:.56rem;width:2.35rem;height:3.25rem}.christianity-card-preview-card{width:clamp(4.2rem,20vw,5.7rem);height:auto;min-height:0}.christianity-leader-card{width:clamp(4.55rem,20vw,5.7rem);min-height:0}.christianity-offering-row{grid-template-columns:minmax(5rem,5.8rem) minmax(0,1fr);gap:.5rem}.christianity-gallery-controls{grid-template-columns:minmax(0,1fr)}.christianity-gallery-grid{grid-template-columns:repeat(auto-fill,minmax(5.35rem,6.1rem));justify-content:center}.christianity-offering-card{min-height:7.25rem;padding:.5rem}.christianity-hand-fan--opponent{min-height:5.75rem;padding-bottom:.7rem}.christianity-hand-fan--opponent .christianity-card-frame--back{width:clamp(3.35rem,15vw,4.25rem);margin-inline:-.72rem}}\n"], dependencies: [{ kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { kind: "directive", type: CdkDragPreview, selector: "ng-template[cdkDragPreview]", inputs: ["data", "matchSize"] }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: LightRippleDirective, selector: "[valLightRipple]" }, { kind: "component", type: ChristianityCardComponent, selector: "val-christianity-card", inputs: ["card", "variant"] }] }); }
72590
+ }
72591
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChristianityGameComponent, decorators: [{
72592
+ type: Component,
72593
+ args: [{ selector: 'val-christianity-game', standalone: true, imports: [CdkDrag, CdkDragPlaceholder, CdkDragPreview, CdkDropList, LightRippleDirective, ChristianityCardComponent], template: `
72594
+ <main class="christianity-shell">
72595
+ <section class="christianity-header">
72596
+ <div>
72597
+ <p>{{ t('christianityEyebrow') }}</p>
72598
+ <h1>{{ t('christianityTitle') }}</h1>
72599
+ </div>
72600
+ <div class="christianity-header-actions">
72601
+ @if (screen() !== 'splash') {
72602
+ <button type="button" class="christianity-gallery-open" valLightRipple (click)="openGallery()">
72603
+ {{ t('christianityGallery') }}
72604
+ </button>
72605
+ }
72606
+ @if (screen() === 'table') {
72607
+ <div class="christianity-turn" [class.is-own-turn]="isOwnTurn()">
72608
+ <span>{{ t('christianityTurn') }}</span>
72609
+ <strong>{{ currentPlayer().displayName }}</strong>
72610
+ </div>
72611
+ }
72612
+ </div>
72613
+ </section>
72614
+
72615
+ @if (screen() === 'splash') {
72616
+ <section class="christianity-splash" role="status" aria-live="polite">
72617
+ <div class="christianity-splash__mark">
72618
+ <i aria-hidden="true"></i>
72619
+ <i aria-hidden="true"></i>
72620
+ <i aria-hidden="true"></i>
72621
+ </div>
72622
+ <div>
72623
+ <span>{{ t('christianitySplashEyebrow') }}</span>
72624
+ <h2>{{ t('christianitySplashTitle') }}</h2>
72625
+ <p>{{ splashStatusText() }}</p>
72626
+ </div>
72627
+ </section>
72628
+ } @else if (screen() === 'home') {
72629
+ <section class="christianity-start">
72630
+ <div class="christianity-start__hero">
72631
+ <div class="christianity-start__copy">
72632
+ <span>{{ t('christianityGenesisEdition') }}</span>
72633
+ <h2>{{ t('christianityStartTitle') }}</h2>
72634
+ <p>{{ t('christianityStartBody') }}</p>
72635
+ </div>
72636
+ <div class="christianity-start__fan" aria-hidden="true">
72637
+ @for (card of startFeaturedCards(); track card.id) {
72638
+ <val-christianity-card
72639
+ [card]="definitionToRenderCard(card)"
72640
+ variant="hand"
72641
+ [style.transform]="startFeaturedCardTransform($index)"
72642
+ ></val-christianity-card>
72643
+ }
72644
+ </div>
72645
+ </div>
72646
+ <div class="christianity-start__cards">
72647
+ <article>
72648
+ <strong>{{ t('christianityTutorialMode') }}</strong>
72649
+ <p>{{ t('christianityTutorialModeBody') }}</p>
72650
+ <button type="button" class="christianity-primary-action" valLightRipple (click)="startTutorial()">
72651
+ {{ t('christianityStartTutorial') }}
72652
+ </button>
72653
+ </article>
72654
+ <article>
72655
+ <strong>{{ t('christianityGallery') }}</strong>
72656
+ <p>{{ t('christianityGalleryModeBody') }}</p>
72657
+ <button type="button" class="christianity-secondary-action" valLightRipple (click)="openGallery()">
72658
+ {{ t('christianityOpenGallery') }}
72659
+ </button>
72660
+ </article>
72661
+ <article>
72662
+ <strong>{{ t('christianityHowToPlay') }}</strong>
72663
+ <p>{{ t('christianityHowToPlayBody') }}</p>
72664
+ <button type="button" class="christianity-secondary-action" valLightRipple (click)="inspectHowToPlay()">
72665
+ {{ t('learnMore') }}
72666
+ </button>
72667
+ </article>
72668
+ </div>
72669
+ <div class="christianity-start__status" [attr.aria-label]="t('christianityEditionStatus')">
72670
+ <span>{{ galleryEditionLabel() }}</span>
72671
+ <span>{{ t('christianityTutorialActive') }}</span>
72672
+ <span>{{ catalogStatusLabel() }}</span>
72673
+ </div>
72674
+ <section class="christianity-start__modes" [attr.aria-label]="t('christianityFutureModes')">
72675
+ @for (mode of futureModes(); track mode.title) {
72676
+ <article>
72677
+ <strong>{{ mode.title }}</strong>
72678
+ <p>{{ mode.body }}</p>
72679
+ <span>{{ t('soonTitle') }}</span>
72680
+ </article>
72681
+ }
72682
+ </section>
72683
+ </section>
72684
+ } @else {
72685
+ <section class="christianity-match-strip" [attr.aria-label]="t('christianityMatchScore')">
72686
+ <article class="christianity-match-player">
72687
+ <span class="christianity-avatar" [style.background]="player().avatarColor">{{ player().avatar }}</span>
72688
+ <div>
72689
+ <strong>{{ player().displayName }}</strong>
72690
+ <small>{{ playerLeaderDisplayName(player()) }} · {{ player().leaderHp }}/{{ player().leaderMaxHp }}</small>
72691
+ </div>
72692
+ </article>
72693
+ <div class="christianity-scoreboard">
72694
+ <span>{{ t('christianityMatch') }}</span>
72695
+ <strong>{{ game().matchScore.P1 }}-{{ game().matchScore.P2 }}</strong>
72696
+ </div>
72697
+ <article class="christianity-match-player christianity-match-player--opponent">
72698
+ <span class="christianity-avatar" [style.background]="opponent().avatarColor">{{ opponent().avatar }}</span>
72699
+ <div>
72700
+ <strong>{{ opponent().displayName }}</strong>
72701
+ <small>{{ playerLeaderDisplayName(opponent()) }} · {{ opponent().leaderHp }}/{{ opponent().leaderMaxHp }}</small>
72702
+ </div>
72703
+ </article>
72704
+ </section>
72705
+
72706
+ <section class="christianity-hand-shelf christianity-hand-shelf--opponent">
72707
+ <div class="christianity-hand-meter christianity-hand-meter--opponent">
72708
+ <span>{{ t('christianityHand') }}</span>
72709
+ <strong>{{ opponentHandCount() }}</strong>
72710
+ </div>
72711
+ <section class="christianity-hand-fan christianity-hand-fan--opponent" [attr.aria-label]="t('christianityOpponentHand')">
72712
+ @for (_ of hiddenHandCards(opponentHandCount()); track $index) {
72713
+ <button
72714
+ type="button"
72715
+ class="christianity-card-preview-card christianity-card-frame christianity-card-frame--back"
72716
+ valLightRipple
72717
+ [style.transform]="fanTransform($index, opponentHandCount(), true)"
72718
+ [attr.aria-label]="t('christianityHiddenCard')"
72719
+ ></button>
72720
+ }
72721
+ </section>
72722
+ </section>
72723
+
72724
+ <section class="christianity-table" [attr.aria-label]="t('christianityTable')">
72725
+ <section class="christianity-player-side christianity-player-side--opponent">
72726
+ <section class="christianity-player-rack christianity-player-rack--opponent">
72727
+ <div class="christianity-offerings-zone">
72728
+ <button type="button" class="christianity-offering-pile" valLightRipple (click)="openOfferings('P2')">
72729
+ <i aria-hidden="true"></i>
72730
+ <i aria-hidden="true"></i>
72731
+ <i aria-hidden="true"></i>
72732
+ <span>{{ t('christianityOfferings') }}</span>
72733
+ <strong>{{ readyOfferings(opponent()) }}/{{ totalOfferings(opponent()) }}</strong>
72734
+ </button>
72735
+ </div>
72736
+ <button type="button" class="christianity-leader-card christianity-render-card-button" valLightRipple [class.is-target]="selectedAttacker() && !hasOpponentGuards()" (click)="handleOpponentLeader()">
72737
+ <val-christianity-card [card]="leaderRenderCard(opponent())" variant="table"></val-christianity-card>
72738
+ </button>
72739
+ <span class="christianity-rack-spacer" aria-hidden="true"></span>
72740
+ </section>
72741
+
72742
+ <section class="christianity-battle-zone christianity-battle-zone--opponent" [attr.aria-label]="t('christianityOpponentBattle')">
72743
+ @for (slot of battleSlots('P2'); track slot.trackId) {
72744
+ @if (slot.card) {
72745
+ <button
72746
+ type="button"
72747
+ class="christianity-card-preview-card christianity-card-preview-card--battle christianity-render-card-button"
72748
+ valLightRipple
72749
+ [class.is-target]="selectedAttacker()"
72750
+ (click)="handleOpponentCharacter(slot.card)"
72751
+ >
72752
+ <val-christianity-card [card]="characterRenderCard(slot.card)" variant="table"></val-christianity-card>
72753
+ </button>
72754
+ } @else {
72755
+ <span class="christianity-slot"></span>
72756
+ }
72757
+ }
72758
+ </section>
72759
+ </section>
72760
+
72761
+ <section class="christianity-shared-zone" [attr.aria-label]="t('christianitySharedZone')">
72762
+ <button type="button" class="christianity-zone-pile christianity-zone-pile--history" valLightRipple (click)="openHistory()">
72763
+ <i aria-hidden="true"></i>
72764
+ <i aria-hidden="true"></i>
72765
+ <i aria-hidden="true"></i>
72766
+ <span>{{ t('christianityHistory') }}</span>
72767
+ <strong>{{ game().historyZone.length }}</strong>
72768
+ </button>
72769
+ <button type="button" class="christianity-zone-pile christianity-zone-pile--deck" valLightRipple aria-live="polite" (click)="inspectDeck()">
72770
+ <i aria-hidden="true"></i>
72771
+ <i aria-hidden="true"></i>
72772
+ <i aria-hidden="true"></i>
72773
+ <span>{{ t('christianityDeck') }}</span>
72774
+ <strong>{{ game().sharedDeck.length }}</strong>
72775
+ </button>
72776
+ <div class="christianity-zone-card">
72777
+ <span>{{ t('christianityPlace') }}</span>
72778
+ <strong>{{ t('christianityEmpty') }}</strong>
72779
+ </div>
72780
+ </section>
72781
+
72782
+ <section class="christianity-player-side">
72783
+ <section class="christianity-battle-zone" [class.is-placing-card]="canPlaceSelectedCharacter() || isDraggingCharacter()" [attr.aria-label]="t('christianityYourBattle')">
72784
+ @for (slot of battleSlots('P1'); track slot.trackId) {
72785
+ @if (slot.card) {
72786
+ <button
72787
+ type="button"
72788
+ class="christianity-card-preview-card christianity-card-preview-card--battle christianity-render-card-button"
72789
+ valLightRipple
72790
+ [class.is-selected]="selectedAttacker()?.instanceId === slot.card.instanceId"
72791
+ [class.is-exhausted]="!slot.card.canAttack"
72792
+ [class.is-ready-attacker]="isOwnTurn() && slot.card.canAttack"
72793
+ (click)="selectAttacker(slot.card)"
72794
+ >
72795
+ <val-christianity-card [card]="characterRenderCard(slot.card)" variant="table"></val-christianity-card>
72796
+ </button>
72797
+ } @else {
72798
+ <button
72799
+ type="button"
72800
+ class="christianity-slot"
72801
+ cdkDropList
72802
+ [id]="battleSlotDropId($index)"
72803
+ [cdkDropListData]="$index"
72804
+ [cdkDropListConnectedTo]="['christianity-hand-source']"
72805
+ [cdkDropListEnterPredicate]="canDropOnBattleSlot"
72806
+ [cdkDropListSortingDisabled]="true"
72807
+ [class.christianity-slot--play-target]="canPlaceSelectedCharacter() || isDraggingCharacter()"
72808
+ valLightRipple
72809
+ (cdkDropListDropped)="dropOnBattleSlot($event, $index)"
72810
+ (click)="playSelectedCard($index)"
72811
+ >
72812
+ @if (canPlaceSelectedCharacter() || isDraggingCharacter()) {
72813
+ <span>{{ t('christianityPlayHere') }}</span>
72814
+ }
72815
+ </button>
72816
+ }
72817
+ }
72818
+ </section>
72819
+
72820
+ <section class="christianity-player-rack">
72821
+ <div class="christianity-offerings-zone">
72822
+ <div
72823
+ class="christianity-offering-drop-target"
72824
+ cdkDropList
72825
+ id="christianity-offerings-drop"
72826
+ [cdkDropListConnectedTo]="['christianity-hand-source']"
72827
+ [class.is-play-target]="canPlaceSelectedOffering() || isDraggingOffering()"
72828
+ [cdkDropListEnterPredicate]="canDropOnOfferings"
72829
+ [cdkDropListSortingDisabled]="true"
72830
+ (cdkDropListDropped)="dropOnOfferings($event)"
72831
+ >
72832
+ <button
72833
+ type="button"
72834
+ class="christianity-offering-pile"
72835
+ valLightRipple
72836
+ (click)="handleOfferingPile('P1')"
72837
+ >
72838
+ <i aria-hidden="true"></i>
72839
+ <i aria-hidden="true"></i>
72840
+ <i aria-hidden="true"></i>
72841
+ <span>{{ t('christianityOfferings') }}</span>
72842
+ <strong>{{ readyOfferings(player()) }}/{{ totalOfferings(player()) }}</strong>
72843
+ </button>
72844
+ </div>
72845
+ </div>
72846
+ <button type="button" class="christianity-leader-card christianity-render-card-button" valLightRipple (click)="inspectLeader('P1')">
72847
+ <val-christianity-card [card]="leaderRenderCard(player())" variant="table"></val-christianity-card>
72848
+ </button>
72849
+ <div class="christianity-player-command">
72850
+ <div class="christianity-player-badge">
72851
+ <span class="christianity-avatar" [style.background]="player().avatarColor">{{ player().avatar }}</span>
72852
+ <strong>{{ player().displayName }}</strong>
72853
+ </div>
72854
+ <button
72855
+ type="button"
72856
+ class="christianity-end-turn"
72857
+ (click)="endTurn()"
72858
+ >
72859
+ {{ t('christianityEndTurn') }}
72860
+ </button>
72861
+ </div>
72862
+ </section>
72863
+ </section>
72864
+ </section>
72865
+
72866
+ <section class="christianity-hand-shelf">
72867
+ <div class="christianity-hand-meter">
72868
+ <span>{{ t('christianityHand') }}</span>
72869
+ <strong>{{ player().hand?.length ?? 0 }}</strong>
72870
+ </div>
72871
+ <section
72872
+ class="christianity-hand-fan"
72873
+ cdkDropList
72874
+ id="christianity-hand-source"
72875
+ [cdkDropListConnectedTo]="dropTargetIds()"
72876
+ [attr.aria-label]="t('christianityYourHand')"
72877
+ (pointerleave)="clearHoveredHandIndex()"
72878
+ >
72879
+ @for (cardId of player().hand ?? []; track cardId + $index) {
72880
+ @let card = cardDefinition(cardId);
72881
+ <div
72882
+ class="christianity-hand-card-wrap"
72883
+ [class.is-selected]="selectedHandCard() === cardId"
72884
+ [class.is-dragging]="draggingCardId() === cardId"
72885
+ [style.z-index]="handCardZIndex($index)"
72886
+ [style.transform]="fanTransform($index, player().hand?.length ?? 0, false)"
72887
+ (pointerenter)="setHoveredHandIndex($index)"
72888
+ (pointerdown)="setHoveredHandIndex($index)"
72889
+ (pointerup)="releaseHoveredHand($event)"
72890
+ >
72891
+ <button
72892
+ type="button"
72893
+ class="christianity-card-preview-card christianity-card-preview-card--hand christianity-render-card-button"
72894
+ cdkDrag
72895
+ valLightRipple
72896
+ [cdkDragData]="cardId"
72897
+ [cdkDragDisabled]="!canPlay(card)"
72898
+ [class.is-selected]="selectedHandCard() === cardId"
72899
+ [class.is-disabled]="!canPlay(card)"
72900
+ (cdkDragStarted)="startDraggingCard(cardId)"
72901
+ (cdkDragEnded)="endDraggingCard()"
72902
+ (click)="selectHandCard(cardId)"
72903
+ >
72904
+ <val-christianity-card [card]="definitionToRenderCard(card)" variant="hand"></val-christianity-card>
72905
+ <ng-template cdkDragPreview>
72906
+ <div class="christianity-card-drag-preview">
72907
+ <val-christianity-card [card]="definitionToRenderCard(card)" variant="hand"></val-christianity-card>
72908
+ </div>
72909
+ </ng-template>
72910
+ <ng-template cdkDragPlaceholder>
72911
+ <div class="christianity-card-drag-placeholder"></div>
72912
+ </ng-template>
72913
+ </button>
72914
+ <button
72915
+ type="button"
72916
+ class="christianity-card-eye"
72917
+ [attr.aria-label]="t('christianityPreviewCard')"
72918
+ (click)="inspectHandCard(cardId, true); $event.stopPropagation()"
72919
+ ></button>
72920
+ </div>
72921
+ }
72922
+ </section>
72923
+ </section>
72924
+ }
72925
+
72926
+ @if (selectedPreview()) {
72927
+ <button type="button" class="christianity-preview-backdrop" [attr.aria-label]="t('christianityClosePreview')" (click)="closePreview()"></button>
72928
+ <aside
72929
+ class="christianity-floating-card-shell"
72930
+ aria-live="polite"
72931
+ >
72932
+ <button type="button" class="christianity-floating-card-close" (click)="closePreview()">
72933
+ {{ t('close') }}
72934
+ </button>
72935
+ <div
72936
+ class="christianity-floating-card"
72937
+ [style.--preview-rotate-x]="previewTilt().rotateX + 'deg'"
72938
+ [style.--preview-rotate-y]="previewTilt().rotateY + 'deg'"
72939
+ [style.--preview-shift-x]="previewTilt().shiftX + 'px'"
72940
+ [style.--preview-shift-y]="previewTilt().shiftY + 'px'"
72941
+ (pointermove)="tiltPreview($event)"
72942
+ (pointerleave)="resetPreviewTilt()"
72943
+ >
72944
+ @if (selectedPreviewRenderCard(); as previewCard) {
72945
+ <val-christianity-card [card]="previewCard" variant="full"></val-christianity-card>
72946
+ }
72947
+ </div>
72948
+ @if (previewRule(); as rule) {
72949
+ <div class="christianity-preview-rule-note">
72950
+ <span class="christianity-rule-note-icon" aria-hidden="true">i</span>
72951
+ <div>
72952
+ <small>{{ t('christianityCardRule') }}</small>
72953
+ <strong>{{ rule.title }}</strong>
72954
+ <p>{{ rule.body }}</p>
72955
+ </div>
72956
+ </div>
72957
+ }
72958
+ </aside>
72959
+ }
72960
+
72961
+ @if (selectedInfo(); as info) {
72962
+ <button type="button" class="christianity-info-backdrop" [attr.aria-label]="t('close')" (click)="closeInfo()"></button>
72963
+ <aside class="christianity-info-panel" aria-live="polite">
72964
+ <button type="button" class="christianity-dialog-close christianity-info-close" (click)="closeInfo()">
72965
+ {{ t('close') }}
72966
+ </button>
72967
+ <div class="christianity-rule-note">
72968
+ <span class="christianity-rule-note-icon" aria-hidden="true">i</span>
72969
+ <div>
72970
+ <small>{{ info.eyebrow }}</small>
72971
+ <h2>{{ info.title }}</h2>
72972
+ <strong>{{ info.meta }}</strong>
72973
+ <p>{{ info.body }}</p>
72974
+ <ul>
72975
+ @for (fact of info.facts; track fact) {
72976
+ <li>{{ fact }}</li>
72977
+ }
72978
+ </ul>
72979
+ </div>
72980
+ </div>
72981
+ </aside>
72982
+ }
72983
+
72984
+ @if (screen() === 'table') {
72985
+ <section class="christianity-actions" aria-live="polite">
72986
+ <p>{{ statusText() }}</p>
72987
+ <div>
72988
+ <button type="button" [disabled]="selectedActionDisabled()" (click)="playSelectedCard()">
72989
+ {{ selectedActionLabel() }}
72990
+ </button>
72991
+ <button type="button" (click)="resetMock()">
72992
+ {{ t('christianityReset') }}
72993
+ </button>
72994
+ </div>
72995
+ </section>
72996
+ }
72997
+
72998
+ @if (showHistory()) {
72999
+ <button type="button" class="christianity-history-backdrop" [attr.aria-label]="t('christianityCloseHistory')" (click)="showHistory.set(false)"></button>
73000
+ <section class="christianity-history-drawer">
73001
+ <header>
73002
+ <h2>{{ t('christianityHistory') }}</h2>
73003
+ <div class="christianity-dialog-actions">
73004
+ <span>{{ game().historyZone.length }}</span>
73005
+ <button type="button" class="christianity-dialog-close" (click)="showHistory.set(false)">
73006
+ {{ t('close') }}
73007
+ </button>
73008
+ </div>
73009
+ </header>
73010
+ @if (game().historyZone.length) {
73011
+ <div class="christianity-history-grid">
73012
+ @for (cardId of game().historyZone; track cardId + $index) {
73013
+ @let card = cardDefinition(cardId);
73014
+ <button type="button" class="christianity-gallery-card-button christianity-render-card-button" valLightRipple (click)="inspectHistoryCard(cardId)">
73015
+ <val-christianity-card [card]="definitionToRenderCard(card)" variant="list"></val-christianity-card>
73016
+ </button>
73017
+ }
73018
+ </div>
73019
+ } @else {
73020
+ <p>{{ t('christianityHistoryEmpty') }}</p>
73021
+ }
73022
+ </section>
73023
+ }
73024
+
73025
+ @if (showGallery()) {
73026
+ <button type="button" class="christianity-history-backdrop" [attr.aria-label]="t('christianityCloseGallery')" (click)="closeGallery()"></button>
73027
+ <section class="christianity-history-drawer christianity-gallery-drawer">
73028
+ <header>
73029
+ <div>
73030
+ <h2>{{ t('christianityGallery') }}</h2>
73031
+ <p>{{ galleryEditionLabel() }}</p>
73032
+ </div>
73033
+ <div class="christianity-dialog-actions">
73034
+ <span>{{ galleryCards().length }}</span>
73035
+ <button type="button" class="christianity-dialog-close" (click)="closeGallery()">
73036
+ {{ t('close') }}
73037
+ </button>
73038
+ </div>
73039
+ </header>
73040
+ <div class="christianity-gallery-controls">
73041
+ <label>
73042
+ <span>{{ t('christianityGallerySearch') }}</span>
73043
+ <input type="search" [value]="gallerySearch()" (input)="setGallerySearch($event)" [placeholder]="t('christianityGallerySearchPlaceholder')" />
73044
+ </label>
73045
+ <label>
73046
+ <span>{{ t('christianityGalleryFilter') }}</span>
73047
+ <select [value]="galleryType()" (change)="setGalleryType($event)">
73048
+ @for (option of galleryTypeOptions(); track option.value) {
73049
+ <option [value]="option.value">{{ option.label }}</option>
73050
+ }
73051
+ </select>
73052
+ </label>
73053
+ </div>
73054
+ <div class="christianity-gallery-edition-strip">
73055
+ <button type="button" class="is-active" valLightRipple>
73056
+ <img [src]="galleryEditionIcon()" alt="" />
73057
+ <span>{{ t('christianityGenesisEdition') }}</span>
73058
+ </button>
73059
+ </div>
73060
+ <div class="christianity-gallery-grid">
73061
+ @for (card of galleryCards(); track card.id) {
73062
+ <button type="button" class="christianity-gallery-card-button christianity-render-card-button" valLightRipple (click)="inspectGalleryCard(card.id)">
73063
+ <val-christianity-card [card]="definitionToRenderCard(card)" variant="list"></val-christianity-card>
73064
+ </button>
73065
+ } @empty {
73066
+ <p>{{ t('christianityGalleryEmpty') }}</p>
73067
+ }
73068
+ </div>
73069
+ </section>
73070
+ }
73071
+
73072
+ @if (offeringsSeat()) {
73073
+ @let offeringPlayer = game().players[offeringsSeat()!];
73074
+ <button type="button" class="christianity-history-backdrop" [attr.aria-label]="t('christianityCloseOfferings')" (click)="closeOfferings()"></button>
73075
+ <section class="christianity-history-drawer christianity-offerings-drawer">
73076
+ <header>
73077
+ <h2>{{ t('christianityOfferings') }}</h2>
73078
+ <div class="christianity-dialog-actions">
73079
+ <span>{{ readyOfferings(offeringPlayer) }}/{{ totalOfferings(offeringPlayer) }}</span>
73080
+ <button type="button" class="christianity-dialog-close" (click)="closeOfferings()">
73081
+ {{ t('close') }}
73082
+ </button>
73083
+ </div>
73084
+ </header>
73085
+ <div class="christianity-offerings-note">
73086
+ <span class="christianity-rule-note-icon" aria-hidden="true">i</span>
73087
+ <p>{{ t('christianityOfferingsRuleBody') }}</p>
73088
+ </div>
73089
+ <div class="christianity-offering-list">
73090
+ @for (offering of offeringPlayer.offerings; track offering.instanceId) {
73091
+ <article class="christianity-offering-row" [class.is-exhausted]="!offering.ready">
73092
+ <button type="button" class="christianity-offering-card christianity-render-card-button" valLightRipple (click)="inspectOffering(offering)">
73093
+ <val-christianity-card [card]="offeringRenderCard(offering)" variant="list"></val-christianity-card>
73094
+ </button>
73095
+ <div>
73096
+ <strong>{{ offering.ready ? t('christianityOfferingReady') : t('christianityOfferingExhausted') }}</strong>
73097
+ <p>{{ offeringAbilityText(offering) }}</p>
73098
+ @if (offering.abilityName) {
73099
+ <button
73100
+ type="button"
73101
+ [disabled]="!canUseOfferingAbility(offering, offeringsSeat()!)"
73102
+ (click)="useOfferingAbility(offering, offeringsSeat()!)"
73103
+ >
73104
+ {{ t('christianityUseAbility') }}
73105
+ </button>
73106
+ }
73107
+ </div>
73108
+ </article>
73109
+ }
73110
+ </div>
73111
+ </section>
73112
+ }
73113
+ </main>
73114
+ `, styles: [":host{--christianity-theme-ink: var(--val-text-color, #1f2933);--christianity-theme-surface: #ffffff;--christianity-theme-parchment: #eff6ff;--christianity-theme-olive: #1d4ed8;--christianity-theme-gold: #2563eb;--christianity-theme-gold-soft: rgba(37, 99, 235, .16);--christianity-theme-gold-ring: rgba(37, 99, 235, .44);--christianity-theme-glow: rgba(37, 99, 235, .24);--christianity-theme-focus: #2563eb;--christianity-theme-shadow: rgba(37, 99, 235, .15);--christianity-theme-shadow-strong: rgba(37, 99, 235, .26);--christianity-card-aspect: 5 / 7.45;--christianity-card-back: linear-gradient(135deg, rgba(16, 42, 67, .16), rgba(16, 42, 67, .03)), repeating-linear-gradient(45deg, #dbeafe 0 .33rem, #ffffff .33rem .66rem);--christianity-card-back-soft: linear-gradient(135deg, rgba(16, 42, 67, .11), rgba(16, 42, 67, .02)), repeating-linear-gradient(45deg, #dbeafe 0 .33rem, #ffffff .33rem .66rem);display:block;max-width:100%;min-width:0;overflow-x:clip;color:var(--christianity-theme-ink)}.christianity-shell{box-sizing:border-box;display:grid;gap:.65rem;width:100%;max-width:100%;min-width:0;padding:.75rem .25rem;border:1px solid rgba(36,48,68,.12);border-radius:.75rem;background:#f6f8fb;overflow-x:clip;overflow-y:visible}.christianity-header,.christianity-match-strip,.christianity-player__summary,.christianity-shared-zone,.christianity-actions{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.christianity-header h1,.christianity-header p,.christianity-match-player strong,.christianity-match-player small,.christianity-scoreboard span,.christianity-history h2,.christianity-actions p{margin:0}.christianity-header h1{font-size:1.35rem;line-height:1.1}.christianity-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:.5rem;min-width:0}.christianity-gallery-open{min-height:2.2rem;padding:0 .75rem;border:1px solid var(--christianity-theme-gold-ring);border-radius:999px;background:linear-gradient(180deg,#eff6fffa,#fffffffa),radial-gradient(circle at 20% 0%,var(--christianity-theme-gold-soft),transparent 42%);color:var(--christianity-theme-ink);font:inherit;font-size:.82rem;font-weight:800;box-shadow:0 .55rem 1.2rem #2563eb1a}.christianity-splash,.christianity-start{min-height:min(34rem,calc(100dvh - 8rem));border:1px solid rgba(37,99,235,.18);border-radius:.9rem;background:radial-gradient(circle at 50% 18%,rgba(37,99,235,.16),transparent 22rem),linear-gradient(180deg,#eff6ffed,#fffffff7),var(--christianity-card-back-soft);box-shadow:0 1.2rem 3.2rem #2563eb1f}.christianity-splash{display:grid;place-items:center;align-content:center;gap:1.2rem;padding:2.5rem 1.25rem;text-align:center}.christianity-splash__mark{position:relative;width:6.4rem;height:8.9rem;filter:drop-shadow(0 1rem 1.8rem rgba(82,64,28,.18))}.christianity-splash__mark i{position:absolute;inset:0;border:1px solid rgba(36,48,68,.16);border-radius:.7rem;background:radial-gradient(circle at 76% 12%,rgba(250,204,21,.9) 0 .42rem,transparent .45rem),linear-gradient(180deg,#fffffffa,#f8fafcfa)}.christianity-splash__mark i:nth-child(1){transform:translate(-1.1rem) rotate(-9deg)}.christianity-splash__mark i:nth-child(2){transform:translateY(-.32rem)}.christianity-splash__mark i:nth-child(3){transform:translate(1.1rem) rotate(9deg)}.christianity-splash__mark:after{content:\"\";position:absolute;inset:2.1rem 1.05rem 2.5rem;border-radius:.55rem;background:radial-gradient(circle at 50% 44%,rgba(245,199,85,.7),transparent 36%),linear-gradient(135deg,#5f6f2a33,#5f6f2a14)}.christianity-splash span,.christianity-start__copy span{color:var(--christianity-theme-olive);font-size:.76rem;font-weight:900;text-transform:uppercase}.christianity-splash h2,.christianity-start h2,.christianity-start p{margin:0}.christianity-splash h2{margin-top:.2rem;font-size:clamp(1.65rem,7vw,2.7rem);line-height:1}.christianity-splash p{max-width:26rem;margin:.55rem auto 0;color:#1f2933ad;font-size:.96rem}.christianity-start{display:grid;align-content:center;gap:1rem;padding:clamp(.85rem,2vw,1.35rem)}.christianity-start__hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(12rem,18rem);gap:1rem;align-items:center}.christianity-start__copy{display:grid;gap:.45rem;max-width:36rem}.christianity-start h2{font-size:clamp(1.6rem,6vw,2.5rem);line-height:1.02}.christianity-start__copy p,.christianity-start__cards p,.christianity-start__modes p{color:#1f2933ad;line-height:1.42}.christianity-start__fan{position:relative;display:grid;place-items:center;min-height:13rem;overflow:visible}.christianity-start__fan val-christianity-card{position:absolute;width:clamp(5.7rem,12vw,7.2rem);transform-origin:50% 92%;filter:drop-shadow(0 1rem 1.5rem rgba(82,64,28,.18))}.christianity-start__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.christianity-start__cards article,.christianity-start__modes article{display:grid;gap:.65rem;align-content:start;padding:.95rem;border:1px solid rgba(36,48,68,.12);border-radius:.75rem;background:#ffffffd1;box-shadow:0 .75rem 1.7rem #52401c14}.christianity-start__cards article{min-height:11rem}.christianity-start__cards strong{font-size:1.05rem}.christianity-start__status{display:flex;flex-wrap:wrap;gap:.45rem}.christianity-start__status span,.christianity-start__modes article>span{display:inline-flex;align-items:center;width:fit-content;min-height:1.85rem;padding:0 .62rem;border:1px solid rgba(37,99,235,.22);border-radius:999px;background:#eff6ffe0;color:#1f2933b8;font-size:.75rem;font-weight:850}.christianity-start__modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem}.christianity-start__modes article{min-height:8.5rem;background:#f8fafcb8;box-shadow:none;opacity:.82}.christianity-start__modes strong{font-size:.92rem}.christianity-start__modes p{margin:0;font-size:.8rem}.christianity-primary-action,.christianity-secondary-action{justify-self:start;min-height:2.5rem;padding:0 .9rem;border-radius:999px;font:inherit;font-weight:900}.christianity-primary-action{border:1px solid rgba(16,42,67,.16);background:#102a43;color:#fff}.christianity-secondary-action{border:1px solid var(--christianity-theme-gold-ring);background:var(--christianity-theme-parchment);color:var(--christianity-theme-ink)}.christianity-header p,.christianity-turn span,.christianity-offerings span,.christianity-hidden-hand span,.christianity-deck span,.christianity-place span,.christianity-pile span,.christianity-leader span{color:#1f2933a3;font-size:.75rem}.christianity-turn,.christianity-leader,.christianity-offerings,.christianity-hidden-hand,.christianity-pile,.christianity-deck,.christianity-place{display:grid;gap:.15rem;min-width:5.25rem;padding:.55rem .65rem;border:1px solid rgba(36,48,68,.12);border-radius:.5rem;background:#fff}.christianity-turn.is-own-turn{border-color:#12806c59;background:#ecfdf5}.christianity-match-strip{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);padding:.45rem;border:1px solid rgba(36,48,68,.1);border-radius:.75rem;background:#fff}.christianity-match-player{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.5rem;align-items:center;min-width:0}.christianity-match-player--opponent{direction:rtl}.christianity-match-player--opponent div{direction:ltr;text-align:right}.christianity-match-player div{display:grid;min-width:0}.christianity-match-player strong,.christianity-match-player small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.christianity-match-player small,.christianity-scoreboard span{color:#1f293394;font-size:.72rem}.christianity-scoreboard{display:grid;justify-items:center;min-width:4.2rem;padding:0 .55rem;border-right:1px solid rgba(36,48,68,.1);border-left:1px solid rgba(36,48,68,.1)}.christianity-scoreboard strong{font-size:1.2rem;line-height:1}.christianity-table{box-sizing:border-box;display:grid;gap:.45rem;width:100%;max-width:100%;min-width:0;padding:.45rem .35rem;border-radius:.75rem;background:#dceafb;overflow-x:clip;overflow-y:visible}.christianity-player-side{box-sizing:border-box;display:grid;gap:.35rem;width:100%;max-width:100%;min-width:0;padding:.35rem .3rem;border-radius:.7rem;background:#ffffff57;grid-template-rows:minmax(7rem,1fr) auto;min-height:13.75rem}.christianity-player-side--opponent{grid-template-rows:auto minmax(7rem,1fr)}.christianity-player{display:grid;gap:.65rem}.christianity-battle-zone{--christianity-battle-card-width: clamp(4.8rem, 15vw, 6.6rem);box-sizing:border-box;display:grid;grid-template-columns:repeat(4,var(--christianity-battle-card-width));gap:.5rem;align-items:center;justify-content:center;width:100%;max-width:100%;min-width:0;min-height:clamp(9.1rem,29vw,11rem);padding:.55rem .4rem;border-radius:.75rem;background:#ffffffc2;transition:background .16s ease,box-shadow .16s ease}.christianity-battle-zone.is-placing-card{background:linear-gradient(180deg,#fffaf0f5,#ffffffd6),#ffffffc2;box-shadow:inset 0 0 0 .14rem var(--christianity-theme-gold-soft),0 .8rem 1.7rem #5f6f2a1f}.christianity-shared-zone{padding:.55rem .4rem;border-radius:.75rem;background:#ffffffe6}.christianity-card,.christianity-end-turn,.christianity-actions button,.christianity-pile,.christianity-leader--target{border:1px solid rgba(36,48,68,.16);border-radius:.5rem;background:#fff;color:inherit;font:inherit}.christianity-card{display:grid;align-content:space-between;min-height:5.8rem;padding:.5rem;text-align:left;box-shadow:0 .5rem 1.25rem #24304414}.christianity-card span{font-weight:700}.christianity-card strong{justify-self:end;padding:.15rem .35rem;border-radius:999px;background:#edf2f7;font-size:.8rem}.christianity-card.is-selected{border-color:var(--christianity-theme-gold);box-shadow:0 0 0 .18rem var(--christianity-theme-gold-soft),0 .85rem 1.4rem var(--christianity-theme-shadow)}.christianity-card.is-disabled,.christianity-card.is-exhausted{opacity:.55}.christianity-card.is-target{border-color:#dc2626}.christianity-offering-cards{display:grid;grid-auto-flow:column;grid-auto-columns:.7rem;gap:.16rem;align-items:end;min-height:1.05rem}.christianity-offering-cards i{display:block;width:.65rem;height:.95rem;border:1px solid rgba(16,42,67,.22);border-radius:.18rem;background:#f8fafc}.christianity-offering-cards i.is-used{background:#cbd5e1;transform:rotate(90deg);transform-origin:center}.christianity-slot{display:grid;place-items:center;justify-self:center;width:var(--christianity-battle-card-width);height:auto;min-height:0;aspect-ratio:var(--christianity-card-aspect);border:1px dashed rgba(36,48,68,.22);border-radius:.5rem;background:#ffffff73;color:inherit;font:inherit}.christianity-slot--play-target{position:relative;border-color:var(--christianity-theme-gold-ring);background:linear-gradient(180deg,#fffaf0eb,#f8fafcd1),#ffffffb3;color:#5d4305;font-weight:800;overflow:hidden;box-shadow:inset 0 0 0 .12rem #d6a21d33,0 .7rem 1.25rem var(--christianity-theme-shadow);animation:christianity-target-pulse 1.45s ease-in-out infinite}.christianity-slot--play-target:before{content:\"\";position:absolute;inset:.35rem;border:1px solid rgba(214,162,29,.22);border-radius:.4rem;background:linear-gradient(135deg,rgba(214,162,29,.1),transparent 46%),radial-gradient(circle at 50% 42%,var(--christianity-theme-glow),transparent 58%)}.christianity-slot--play-target span{position:relative;z-index:2;padding:.16rem .44rem;border-radius:999px;background:#ffffffc7;font-size:.78rem}@keyframes christianity-target-pulse{0%,to{box-shadow:inset 0 0 0 .12rem #d6a21d33,0 .7rem 1.25rem var(--christianity-theme-shadow)}50%{box-shadow:inset 0 0 0 .16rem #d6a21d57,0 .9rem 1.65rem var(--christianity-theme-shadow-strong)}}.christianity-hand{display:grid;grid-auto-columns:minmax(6rem,8rem);grid-auto-flow:column;gap:.55rem;overflow-x:auto;padding-bottom:.25rem}.christianity-actions{align-items:flex-start;padding:.75rem;border-radius:.75rem;background:#fff}.christianity-actions div{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-end}.christianity-actions button,.christianity-end-turn{min-height:2.4rem;padding:0 .75rem;font-weight:700}.christianity-actions button:not(:disabled),.christianity-end-turn{background:#102a43;color:#fff}.christianity-history{padding:.75rem;border-radius:.75rem;background:#fff}.christianity-hand-fan{position:relative;display:flex;justify-content:center;min-height:10.8rem;padding:.25rem .25rem 2.1rem;isolation:isolate;overflow:visible}.christianity-hand-shelf{position:relative;display:grid;z-index:12;min-height:12rem;margin-top:-1.15rem;padding:1.45rem .25rem 1rem;overflow:visible}.christianity-hand-shelf--opponent{z-index:8;min-height:6.85rem;margin-top:0;margin-bottom:0;padding:.45rem .25rem .85rem}.christianity-hand-fan--opponent{min-height:5.9rem;padding-bottom:.75rem;align-items:start}.christianity-hand-fan--opponent .christianity-card-frame--back{width:clamp(3.7rem,12vw,4.9rem);margin-inline:-.9rem;transform-origin:50% 120%}.christianity-hand-fan--opponent .christianity-card-frame--back:first-child{margin-left:0}.christianity-hand-fan--opponent .christianity-card-frame--back:last-child{margin-right:0}.christianity-card-preview-card,.christianity-card-mini,.christianity-offering-pile,.christianity-offering-card,.christianity-leader-card,.christianity-zone-card,.christianity-zone-pile,.christianity-end-turn{border:1px solid rgba(36,48,68,.16);border-radius:.5rem;background:#fff;color:inherit;font:inherit}.christianity-card-preview-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:.28rem;align-content:stretch;width:clamp(4.9rem,17vw,7.1rem);height:auto;min-height:0;aspect-ratio:var(--christianity-card-aspect);padding:.48rem;text-align:left;transform-origin:50% 115%;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;box-shadow:0 .5rem 1.25rem #2430441a}.christianity-render-card-button{display:block;padding:0;overflow:visible;border:0;background:transparent;box-shadow:none}.christianity-render-card-button>val-christianity-card{display:block;width:100%;height:100%}.christianity-gallery-card-button{display:block;width:min(100%,6.8rem);min-width:0;aspect-ratio:var(--christianity-card-aspect);padding:0;overflow:visible;border:0;background:transparent;color:inherit;font:inherit;text-align:left;box-shadow:none}.christianity-gallery-card-button>val-christianity-card{display:block;width:100%;height:100%}.christianity-card-preview-card--hand.christianity-render-card-button,.christianity-card-preview-card--battle.christianity-render-card-button,.christianity-leader-card.christianity-render-card-button{aspect-ratio:var(--christianity-card-aspect)}.christianity-card-preview-card--hand.christianity-render-card-button:hover val-christianity-card,.christianity-card-preview-card--hand.christianity-render-card-button.is-selected val-christianity-card,.christianity-card-preview-card--battle.christianity-render-card-button.is-selected val-christianity-card,.christianity-card-preview-card--battle.christianity-render-card-button.is-target val-christianity-card,.christianity-leader-card.christianity-render-card-button.is-target val-christianity-card{filter:drop-shadow(0 0 .55rem rgba(214,162,29,.35))}.christianity-card-preview-card--battle.christianity-render-card-button.is-ready-attacker val-christianity-card{filter:drop-shadow(0 .45rem .8rem rgba(95,111,42,.16))}.christianity-card-preview-card--battle.christianity-render-card-button.is-selected{transform:translateY(-.28rem)}.christianity-card-frame{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:.28rem;align-content:stretch;overflow:hidden;padding:.48rem;text-align:left;background:linear-gradient(180deg,#fffffffa,#f8fafcfa),radial-gradient(circle at 15% 0%,rgba(214,162,29,.12),transparent 44%);box-shadow:0 .5rem 1.25rem #2430441a,inset 0 0 0 .18rem #ffffff9e}.christianity-card-frame-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.16rem;align-items:start;min-width:0}.christianity-card-frame-header small{grid-column:1;min-width:0;overflow:hidden;color:#1f2933a3;font-size:clamp(.52rem,1.5vw,.68rem);line-height:1;text-overflow:ellipsis;white-space:nowrap}.christianity-card-frame-header strong{grid-column:1;justify-self:start;align-self:start;min-width:0;padding:0;overflow:hidden;border-radius:0;background:transparent;font-size:clamp(.82rem,2.5vw,1.05rem);line-height:1.02;text-overflow:ellipsis;white-space:nowrap}.christianity-card-preview-card--hand .christianity-card-frame-header strong,.christianity-card-preview-card--battle .christianity-card-frame-header strong,.christianity-leader-card .christianity-card-frame-header strong{display:-webkit-box;overflow-wrap:anywhere;text-overflow:clip;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.christianity-card-preview-card--hand .christianity-card-frame-header small{text-transform:uppercase}.christianity-card-preview-card--hand .christianity-card-frame-art>span{display:-webkit-box;max-width:88%;overflow-wrap:anywhere;text-overflow:clip;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.christianity-card-frame-header span{grid-column:2;grid-row:1 / span 2;display:grid;place-items:center;min-width:1.3rem;height:1.3rem;padding:0 .22rem;border-radius:999px;background:#ffd91a;color:#243044;font-size:.8rem;font-weight:900;line-height:1;box-shadow:inset 0 -.08rem #52401c2e}.christianity-card-frame-header span.is-offering-pips,.christianity-full-card-cost.is-offering-pips,.christianity-offering-card span.is-offering-pips{grid-auto-flow:column;gap:.14rem;min-width:auto;padding:0 .28rem}.christianity-card-frame-header span.is-offering-pips i,.christianity-full-card-cost.is-offering-pips i,.christianity-offering-card span.is-offering-pips i,.christianity-full-card-pips i{display:block;width:.72rem;height:.72rem;border-radius:999px;background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.9) 0 .12rem,transparent .13rem),#ffd91a;box-shadow:inset 0 -.08rem #52401c2e,0 .12rem .24rem #102a431a}.christianity-card-frame-art{position:relative;display:grid;place-items:center;min-height:0;overflow:hidden;border-radius:.36rem;background:linear-gradient(135deg,#5f6f2a2e,#d6a21d24),radial-gradient(circle at 50% 18%,rgba(255,255,255,.72),transparent 48%),#dbe7ef;box-shadow:inset 0 0 0 1px #24304414}.christianity-card-frame-art>span{max-width:78%;overflow:hidden;color:#2430447a;font-size:clamp(.82rem,2.2vw,1.05rem);font-weight:900;line-height:1.02;text-align:center;text-overflow:ellipsis}.christianity-card-frame-art small{position:absolute;right:0;bottom:.28rem;max-width:78%;padding:.1rem .34rem;overflow:hidden;border-radius:999px 0 0 999px;background:#ffffffe6;color:#1f2933a8;font-size:.48rem;font-style:italic;font-weight:900;line-height:1;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.christianity-card-frame-effect{display:grid;align-content:center;gap:.1rem;min-height:1.45rem;padding:.24rem;overflow:hidden;border-radius:.34rem;background:radial-gradient(circle at 50% 70%,rgba(36,48,68,.06),transparent 44%),#ffffffdb}.christianity-card-frame-effect strong{justify-self:end;align-self:end;padding:.12rem .32rem;border-radius:999px;background:#edf2f7;font-size:clamp(.66rem,2vw,.82rem);line-height:1.05}.christianity-card-frame-effect p{margin:0;overflow:hidden;color:#1f2933b8;font-size:.58rem;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.christianity-card-frame-footer{display:flex;justify-content:space-between;gap:.22rem;color:#1f293385;font-size:.46rem;font-weight:800;line-height:1}.christianity-card-frame--battle{gap:.22rem;padding:.42rem}.christianity-card-frame--battle .christianity-card-frame-art{min-height:2.6rem}.christianity-card-frame--leader .christianity-card-frame-art{background:linear-gradient(135deg,#2563eb24,#d6a21d29),radial-gradient(circle at 50% 18%,rgba(255,255,255,.78),transparent 48%),#e7eef8}.christianity-card-frame--list{width:clamp(4.4rem,22vw,5.8rem);padding:.38rem}.christianity-card-frame--list .christianity-card-frame-art{min-height:2.5rem}.christianity-hand-card-wrap{position:relative;display:grid;justify-items:center;flex:0 0 auto;margin-inline:-.42rem;padding-bottom:2rem;transform-origin:50% 115%;transition:transform .16s ease,filter .16s ease}.christianity-hand-card-wrap:hover,.christianity-hand-card-wrap.is-selected,.christianity-hand-card-wrap.is-dragging{z-index:3}.christianity-hand-card-wrap:hover .christianity-card-preview-card--hand,.christianity-hand-card-wrap.is-selected .christianity-card-preview-card--hand,.christianity-hand-card-wrap.is-dragging .christianity-card-preview-card--hand{border-color:var(--christianity-theme-gold);box-shadow:0 0 0 .12rem var(--christianity-theme-gold-soft),0 1rem 2rem var(--christianity-theme-shadow)}.christianity-card-preview-card--hand{cursor:grab;touch-action:none}.christianity-card-preview-card--hand:active{cursor:grabbing}.christianity-card-preview-card--hand.cdk-drag-disabled{cursor:not-allowed}.christianity-card-drag-preview,.christianity-card-preview-card.cdk-drag-preview{width:clamp(4.9rem,17vw,7.1rem);height:auto;min-height:0;aspect-ratio:var(--christianity-card-aspect);border-radius:.5rem;box-shadow:0 0 0 .16rem #fff4c2ad,0 1.5rem 3rem var(--christianity-theme-shadow-strong);transform:rotate(2deg) scale(1.03)}.christianity-card-drag-preview val-christianity-card{display:block;width:100%;height:100%}.christianity-card-drag-placeholder,.christianity-card-preview-card.cdk-drag-placeholder{width:clamp(4.9rem,17vw,7.1rem);height:auto;min-height:0;aspect-ratio:var(--christianity-card-aspect);border-radius:.5rem;background:#94a3b81f;opacity:.22}.christianity-slot.cdk-drop-list-dragging,.christianity-offering-drop-target.cdk-drop-list-dragging{border-color:var(--christianity-theme-gold-ring)}.christianity-slot.cdk-drop-list-receiving,.christianity-offering-drop-target.cdk-drop-list-receiving{box-shadow:inset 0 0 0 .18rem #d6a21d57,0 1rem 1.9rem var(--christianity-theme-shadow-strong)}.christianity-card-eye{position:absolute;right:50%;bottom:.38rem;width:2.15rem;height:1.55rem;border:1px solid color-mix(in srgb,var(--christianity-theme-focus) 52%,transparent);border-radius:999px;background:#fffffff0;box-shadow:0 .55rem 1.1rem #102a4324;opacity:0;transform:translate(50%,-.2rem) scale(.92);transition:opacity .14s ease,transform .14s ease,border-color .14s ease}.christianity-card-eye:before{content:\"\";position:absolute;top:50%;left:50%;width:1.1rem;height:1.1rem;border:.12rem solid var(--christianity-theme-focus);border-radius:82% 0;background:#fffffff0;transform:translate(-50%,-50%) rotate(45deg)}.christianity-card-eye:after{content:\"\";position:absolute;top:50%;left:50%;width:.42rem;height:.42rem;border:.09rem solid rgba(255,255,255,.95);border-radius:999px;background:radial-gradient(circle at 35% 32%,#ffffff 0 .06rem,transparent .07rem),var(--christianity-theme-focus);transform:translate(-50%,-50%)}.christianity-hand-card-wrap:hover .christianity-card-eye,.christianity-hand-card-wrap.is-selected .christianity-card-eye,.christianity-card-eye:focus-visible{opacity:1;transform:translate(50%) scale(1)}.christianity-offering-drop-target{display:grid;width:min(100%,5.9rem);height:7.1rem;min-height:0;max-height:7.1rem;border:1px solid transparent;border-radius:.64rem;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.christianity-offering-drop-target.is-play-target{border-color:var(--christianity-theme-gold-ring);background:linear-gradient(180deg,#fffaf0f5,#fffffff0),radial-gradient(circle at 82% 14%,rgba(250,204,21,.28) 0 .7rem,transparent .72rem);box-shadow:inset 0 0 0 .12rem #d6a21d3d,0 .8rem 1.55rem var(--christianity-theme-shadow);animation:christianity-target-pulse 1.45s ease-in-out infinite}.christianity-offering-drop-target>.cdk-drag-placeholder{display:none}.christianity-card-frame--back,.christianity-card-preview-card--back{width:clamp(4rem,14vw,5.7rem);min-height:0;aspect-ratio:var(--christianity-card-aspect);place-items:center;padding:.55rem;overflow:hidden;box-shadow:0 .8rem 1.55rem #24304424;transform-origin:50% -18%;background:var(--christianity-card-back)}.christianity-card-frame--back:before,.christianity-card-preview-card--back:before{content:\"\";position:absolute;inset:.5rem;border:1px solid rgba(16,42,67,.12);border-radius:.38rem;background:linear-gradient(180deg,#ffffff2e,#ffffff0a);box-shadow:inset 0 0 0 .12rem #ffffff1f}.christianity-card-preview-card--battle{justify-self:center;width:var(--christianity-battle-card-width);min-width:0;height:auto;min-height:0;aspect-ratio:var(--christianity-card-aspect);margin-inline:0}.christianity-card-preview-card>span,.christianity-card-mini>span,.christianity-offering-pile>span,.christianity-offering-card>span,.christianity-leader-card>span,.christianity-zone-card>span,.christianity-zone-pile>span{position:relative;z-index:2;align-self:start;font-weight:700;line-height:1.05}.christianity-card-preview-card>strong,.christianity-card-mini>strong,.christianity-offering-pile>strong,.christianity-offering-card>strong,.christianity-leader-card>strong,.christianity-zone-card>strong,.christianity-zone-pile>strong{position:relative;z-index:3;justify-self:end;align-self:end;padding:.15rem .35rem;border-radius:999px;background:#edf2f7;font-size:.8rem}.christianity-player-rack{box-sizing:border-box;display:grid;grid-template-columns:minmax(5.9rem,7rem) minmax(5rem,1fr) minmax(4.2rem,7rem);gap:.45rem;align-items:end;justify-items:stretch;width:100%;max-width:100%;min-width:0}.christianity-player-rack--opponent{align-items:start}.christianity-hand-meter{position:absolute;top:0;right:.35rem;z-index:4;display:inline-grid;grid-auto-flow:column;gap:.25rem;align-items:center;min-height:1.7rem;padding:.18rem .46rem;border:1px solid rgba(36,48,68,.12);border-radius:999px;background:#ffffffe6;box-shadow:0 .35rem .8rem #102a4314}.christianity-hand-meter--opponent{top:.15rem}.christianity-hand-meter span{color:#1f293394;font-size:.68rem}.christianity-hand-meter strong{font-size:.86rem}.christianity-player-badge,.christianity-player-command{display:grid;gap:.35rem;justify-items:center;min-width:0}.christianity-player-badge{align-content:start;color:#1f2933c2;font-size:.74rem}.christianity-player-badge--opponent{justify-self:center;grid-auto-flow:column;align-items:center;justify-content:center}.christianity-player-badge strong{max-width:6.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.christianity-avatar{display:grid;place-items:center;width:1.85rem;height:1.85rem;border-radius:999px;color:#fff;font-size:.76rem;font-weight:800;box-shadow:0 .35rem .9rem #102a4329}.christianity-offerings-zone{display:flex;flex-wrap:wrap;gap:.25rem;justify-content:flex-start;justify-self:start;width:100%}.christianity-card-mini,.christianity-offering-pile,.christianity-offering-card,.christianity-leader-card,.christianity-zone-card,.christianity-zone-pile{display:grid;align-content:space-between;min-height:4.9rem;padding:.48rem;text-align:left}.christianity-card-frame{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;align-content:stretch}.christianity-offering-pile,.christianity-zone-card,.christianity-zone-pile{grid-template-rows:auto minmax(2.6rem,1fr) auto;align-content:stretch;gap:.32rem}.christianity-card-mini{width:3.5rem}.christianity-offering-pile{position:relative;isolation:isolate;overflow:hidden;justify-self:start;width:100%;height:100%;min-height:0;padding:.95rem .52rem .6rem;background:linear-gradient(180deg,#fff,#f8fafc),linear-gradient(135deg,rgba(250,204,21,.18),transparent 42%)}.christianity-slot>.cdk-drag-placeholder{display:none}.christianity-offering-pile i{position:absolute;top:2.45rem;left:.72rem;z-index:-1;width:2.55rem;height:3.55rem;border:1px solid rgba(16,42,67,.18);border-radius:.35rem;background:linear-gradient(180deg,#ffffffeb,#f1f5f9eb),radial-gradient(circle at 78% 18%,#facc15 0 .38rem,transparent .4rem);box-shadow:0 .35rem .85rem #102a431a;transform:rotate(-5deg)}.christianity-offering-pile i:nth-child(2){transform:translate(.28rem,.08rem) rotate(3deg)}.christianity-offering-pile i:nth-child(3){transform:translate(.55rem,.18rem) rotate(-1deg)}.christianity-leader-card{align-self:center;justify-self:center;width:clamp(4.75rem,17vw,6rem);min-height:0;aspect-ratio:var(--christianity-card-aspect)}.christianity-rack-spacer{display:block;min-height:1px}.christianity-battle-zone{grid-template-columns:repeat(4,var(--christianity-battle-card-width))}.christianity-shared-zone{box-sizing:border-box;display:grid;grid-template-columns:repeat(3,minmax(4.3rem,1fr));align-items:stretch;width:100%;max-width:100%;min-width:0}.christianity-zone-card,.christianity-zone-pile{min-height:6.45rem;padding:.7rem .52rem .55rem}.christianity-zone-pile{position:relative;isolation:isolate;overflow:hidden;box-shadow:inset 0 0 0 999px #ffffff1f}.christianity-zone-pile i{position:absolute;top:2.2rem;right:.72rem;z-index:-1;width:2.7rem;height:3.7rem;border:1px solid rgba(16,42,67,.18);border-radius:.35rem;background:#f8fafc;box-shadow:0 .35rem .85rem #102a431c;transform:rotate(4deg)}.christianity-zone-pile i:nth-child(2){transform:translate(-.28rem,.12rem) rotate(-3deg)}.christianity-zone-pile i:nth-child(3){background:var(--christianity-card-back);transform:translate(-.54rem,.24rem) rotate(2deg)}.christianity-floating-card-shell{position:fixed;top:calc(50% + 1.3rem);left:50%;z-index:132;display:grid;grid-template-rows:minmax(0,auto) auto;gap:.55rem;width:min(17.5rem,calc(52dvh - 3rem),calc(100vw - 1.25rem));max-height:calc(100dvh - 4.25rem);padding-top:2.5rem;transform:translate(-50%,-50%)}.christianity-floating-card{position:relative;z-index:1;display:block;width:100%;min-height:0;padding:0;border:0;border-radius:.75rem;background:transparent;box-shadow:0 0 2.2rem var(--christianity-theme-glow);touch-action:none;transform:translate(var(--preview-shift-x, 0px),var(--preview-shift-y, 0px)) perspective(48rem) rotateX(var(--preview-rotate-x, 5deg)) rotateY(var(--preview-rotate-y, -5deg));transition:transform 90ms ease-out}.christianity-floating-card val-christianity-card{display:block;width:100%;min-height:0}.christianity-full-card-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.42rem;align-items:center}.christianity-full-card-header strong{min-width:0;display:-webkit-box;overflow:hidden;overflow-wrap:anywhere;text-overflow:clip;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:clamp(1.25rem,5vw,1.85rem);line-height:1.04}.christianity-full-card-type-icon,.christianity-full-card-cost{display:grid;place-items:center;border-radius:999px}.christianity-full-card-type-icon{width:1.6rem;height:1.6rem;background:radial-gradient(circle at 50% 50%,rgba(95,111,42,.72) 0 .22rem,transparent .24rem),#2430441a}.christianity-full-card-type-icon img{width:1rem;height:1rem;object-fit:contain}.christianity-full-card-cost{min-width:2.1rem;height:2.1rem;padding:0 .36rem;background:#ffd91a;color:#243044;font-size:1.1rem;font-weight:900;box-shadow:inset 0 -.12rem #52401c2e}.christianity-full-card-art{position:relative;display:grid;place-items:center;min-height:9rem;overflow:hidden;border-radius:.48rem;background:linear-gradient(135deg,#5f6f2a33,#d6a21d29),radial-gradient(circle at 50% 25%,rgba(255,255,255,.76),transparent 42%),#dbe7ef;box-shadow:inset 0 0 0 1px #24304414}.christianity-full-card-art img{width:100%;height:100%;object-fit:cover}.christianity-full-card-art>span{max-width:80%;color:#24304494;font-size:clamp(1.1rem,5vw,1.8rem);font-weight:900;line-height:1.05;text-align:center}.christianity-full-card-art small{position:absolute;right:0;bottom:.55rem;min-width:5rem;padding:.16rem .48rem;border-radius:999px 0 0 999px;background:#ffffffe6;box-shadow:0 .3rem .8rem #102a431f;color:#1f2933bd;font-size:.68rem;font-style:italic;font-weight:900;text-align:center;text-transform:uppercase}.christianity-full-card-verse,.christianity-full-card-effect{display:grid;gap:.32rem}.christianity-full-card-verse p,.christianity-full-card-effect p{margin:0;line-height:1.25}.christianity-full-card-verse{color:#171923;font-family:Georgia,Times New Roman,serif;font-size:clamp(.72rem,2.7vw,.86rem)}.christianity-full-card-verse strong{font-family:inherit;font-size:.78rem;font-weight:900}.christianity-full-card-effect{position:relative;align-content:start;min-height:7rem;padding:.6rem .7rem;overflow:hidden;border-radius:.45rem;background:radial-gradient(circle at 50% 72%,rgba(36,48,68,.07),transparent 34%),#ffffffdb}.christianity-full-card-stats{display:flex;gap:1rem;min-height:1.35rem}.christianity-full-card-stats strong{font-size:1rem;line-height:1}.christianity-full-card-stats .christianity-full-card-pips{display:inline-grid;grid-auto-flow:column;gap:.2rem;justify-self:start;padding:0;background:transparent}.christianity-full-card-effect>div:last-of-type{display:grid;gap:.12rem}.christianity-full-card-effect>div:last-of-type strong{font-size:.82rem}.christianity-full-card-effect p{font-size:clamp(.78rem,2.9vw,.92rem)}.christianity-full-card-rarity{position:absolute;top:.62rem;right:.62rem;width:.46rem;height:.46rem;border-radius:.12rem;transform:rotate(45deg)}.christianity-full-card-rarity.is-normal{background:#d1d5db}.christianity-full-card-rarity.is-uncommon{background:#22c55e}.christianity-full-card-rarity.is-rare{background:#3b82f6}.christianity-full-card-rarity.is-legendary{background:#eab308}.christianity-full-card-footer{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:.34rem;align-items:center;color:#1f2933ad;font-size:.58rem;line-height:1;text-transform:uppercase}.christianity-full-card-footer span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.christianity-floating-card-close{position:absolute;top:0;right:.15rem;z-index:6;min-height:2rem;padding:0 .6rem;border:1px solid rgba(36,48,68,.14);border-radius:999px;background:#ffffffe6;color:#1f2933c7;font:inherit;font-size:.76rem;font-weight:800;box-shadow:0 .45rem 1rem #102a431a}.christianity-preview-backdrop,.christianity-history-backdrop,.christianity-info-backdrop{position:fixed;inset:0;border:0;border-radius:0;background:#0f172a75}.christianity-preview-backdrop{z-index:131}.christianity-info-backdrop{z-index:50}.christianity-info-panel{position:fixed;top:50%;left:50%;z-index:51;width:min(31rem,calc(100vw - 1.25rem));max-height:min(34rem,calc(100vh - 2rem));padding-top:2.35rem;transform:translate(-50%,-50%)}.christianity-info-close{position:absolute;top:0;right:.15rem;z-index:2}.christianity-rule-note{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.85rem;max-height:inherit;padding:1rem;overflow-y:auto;border:1px solid rgba(36,48,68,.14);border-radius:.9rem;background:linear-gradient(180deg,#fffffff7,#f8fafcf7),radial-gradient(circle at 8% 0%,rgba(37,99,235,.1),transparent 38%);box-shadow:0 1.2rem 2.6rem #102a433d,inset 0 0 0 .25rem #ffffff85}.christianity-rule-note-icon{display:grid;place-items:center;width:2.1rem;height:2.1rem;border-radius:999px;background:color-mix(in srgb,var(--christianity-theme-focus) 12%,#ffffff);color:var(--christianity-theme-focus);font-size:1rem;font-weight:900;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--christianity-theme-focus) 24%,transparent)}.christianity-rule-note small,.christianity-rule-note strong,.christianity-rule-note p,.christianity-rule-note h2{margin:0}.christianity-rule-note small{color:#1f29339e;font-size:.78rem;font-weight:800;text-transform:uppercase}.christianity-rule-note h2{margin-top:.18rem;font-size:clamp(1.5rem,7vw,2.2rem);line-height:1.05}.christianity-rule-note strong{display:inline-flex;width:fit-content;margin-top:.55rem;padding:.22rem .55rem;border-radius:999px;background:#edf2f7;font-size:.92rem}.christianity-rule-note p{margin-top:.75rem;color:#1f2933c7;line-height:1.45}.christianity-rule-note ul{display:grid;gap:.45rem;margin:.8rem 0 0;padding-left:1.05rem;color:#1f2933c7;line-height:1.35}.christianity-floating-card>small,.christianity-floating-card>span{color:#1f2933a3}.christianity-floating-card>strong{font-size:clamp(1.55rem,8vw,2.35rem);line-height:1.05}.christianity-floating-card>p{margin:0;align-self:end;font-size:.95rem;line-height:1.35}.christianity-preview-rule-note{position:relative;z-index:4;display:grid;grid-template-columns:auto minmax(0,1fr);gap:.65rem;align-items:start;padding:.75rem .85rem;border:1px solid rgba(36,48,68,.14);border-radius:.75rem;background:linear-gradient(180deg,#fffffff5,#f8fafcf5),radial-gradient(circle at 8% 0%,rgba(37,99,235,.08),transparent 44%);box-shadow:0 .75rem 1.6rem #102a431f}.christianity-preview-rule-note small,.christianity-preview-rule-note strong,.christianity-preview-rule-note p{margin:0}.christianity-preview-rule-note small{color:#1f293394;font-size:.68rem;font-weight:800;text-transform:uppercase}.christianity-preview-rule-note strong{display:block;margin-top:.08rem;font-size:.92rem;line-height:1.1}.christianity-preview-rule-note p{margin-top:.22rem;color:#1f2933bd;font-size:.82rem;line-height:1.32}@media (min-width: 52rem){.christianity-floating-card-shell{width:min(22rem,calc(67dvh - 5.85rem),calc(100vw - 3rem))}.christianity-floating-card{min-height:0;padding:0}}@media (max-width: 51.99rem){.christianity-floating-card-shell{top:calc(50% + .7rem);gap:.45rem;max-height:calc(100dvh - 3.25rem);padding-top:2.15rem}.christianity-floating-card-close{min-height:1.9rem;padding:0 .58rem;font-size:.72rem}.christianity-preview-rule-note{max-height:min(8.25rem,24dvh);padding:.62rem .68rem;overflow-y:auto;scrollbar-color:rgba(36,48,68,.28) transparent;scrollbar-gutter:stable}.christianity-preview-rule-note .christianity-rule-note-icon{width:1.8rem;height:1.8rem;font-size:.9rem}.christianity-preview-rule-note strong{font-size:.86rem}.christianity-preview-rule-note p{font-size:.78rem;line-height:1.28}}.christianity-history-backdrop{z-index:40}.christianity-history-drawer{position:fixed;right:auto;bottom:max(.5rem,env(safe-area-inset-bottom));left:50%;z-index:41;display:grid;grid-template-rows:auto minmax(0,1fr);gap:.75rem;width:min(calc(100vw - 1rem),44rem);min-height:min(18rem,calc(100dvh - 1rem));max-height:min(32rem,calc(100dvh - 2rem));padding:.8rem;border:1px solid rgba(36,48,68,.16);border-radius:.75rem;background:#fffffffa;box-shadow:0 1.5rem 4rem #102a4347;transform:translate(-50%)}.christianity-history-drawer header{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.christianity-history-drawer h2,.christianity-history-drawer p{margin:0}.christianity-history-drawer header span{display:grid;place-items:center;min-width:1.85rem;height:1.85rem;border-radius:999px;background:#edf2f7;font-weight:800}.christianity-dialog-actions{display:flex;align-items:center;gap:.45rem}.christianity-dialog-close{min-height:1.85rem;padding:0 .62rem;border:1px solid rgba(36,48,68,.14);border-radius:999px;background:#fff;color:#1f2933c7;font:inherit;font-size:.76rem;font-weight:800;box-shadow:0 .35rem .8rem #102a4314}.christianity-history-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(5.4rem,1fr));gap:.55rem;min-height:0;overflow-y:scroll;scrollbar-color:rgba(36,48,68,.32) rgba(226,232,240,.72);scrollbar-gutter:stable;padding:.1rem .1rem .25rem}.christianity-history-grid::-webkit-scrollbar,.christianity-offering-list::-webkit-scrollbar{width:.65rem}.christianity-history-grid::-webkit-scrollbar-track,.christianity-offering-list::-webkit-scrollbar-track{border-radius:999px;background:#e2e8f0b8}.christianity-history-grid::-webkit-scrollbar-thumb,.christianity-offering-list::-webkit-scrollbar-thumb{border:.14rem solid rgba(226,232,240,.72);border-radius:999px;background:#24304452}.christianity-offerings-drawer{grid-template-rows:auto auto minmax(0,1fr);width:min(calc(100vw - 1rem),48rem);min-height:min(20rem,calc(100dvh - 1rem));max-height:min(34rem,calc(100dvh - 2rem))}.christianity-offerings-note{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.65rem;align-items:start;padding:.72rem .8rem;border:1px solid rgba(36,48,68,.12);border-radius:.7rem;background:linear-gradient(180deg,#fffffff5,#f8fafcf5),radial-gradient(circle at 8% 0%,rgba(214,162,29,.12),transparent 42%)}.christianity-offerings-note p{margin:0;color:#1f2933c2;font-size:.86rem;line-height:1.35}.christianity-offering-list{display:grid;gap:.6rem;min-height:0;overflow-y:scroll;scrollbar-color:rgba(36,48,68,.32) rgba(226,232,240,.72);scrollbar-gutter:stable;padding:.1rem}.christianity-offering-row{display:grid;grid-template-columns:minmax(5.4rem,6.5rem) minmax(0,1fr);gap:.65rem;align-items:center;padding:.45rem;border:1px solid rgba(36,48,68,.12);border-radius:.65rem;background:#fff}.christianity-offering-row.is-exhausted{opacity:.68}.christianity-gallery-drawer{grid-template-rows:auto auto auto minmax(0,1fr);width:min(calc(100vw - 1rem),50rem);min-height:min(22rem,calc(100dvh - 1rem));max-height:min(36rem,calc(100dvh - 2rem))}.christianity-gallery-drawer header>div:first-child{display:grid;gap:.15rem;min-width:0}.christianity-gallery-drawer header p{color:#1f293394;font-size:.82rem}.christianity-gallery-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(8.5rem,13rem);gap:.65rem}.christianity-gallery-controls label{display:grid;gap:.25rem;min-width:0;color:#1f29339e;font-size:.74rem;font-weight:800}.christianity-gallery-controls input,.christianity-gallery-controls select{width:100%;min-width:0;min-height:2.35rem;padding:0 .75rem;border:1px solid rgba(36,48,68,.16);border-radius:.65rem;background:#fff;color:var(--christianity-theme-ink);font:inherit;font-size:.9rem}.christianity-gallery-edition-strip{display:flex;gap:.45rem;overflow-x:auto;padding-bottom:.1rem}.christianity-gallery-edition-strip button{display:inline-flex;align-items:center;gap:.45rem;min-height:2.35rem;padding:0 .75rem;border:1px solid rgba(214,162,29,.38);border-radius:999px;background:var(--christianity-theme-parchment);color:var(--christianity-theme-ink);font:inherit;font-size:.82rem;font-weight:800}.christianity-gallery-edition-strip img{width:1.2rem;height:1.2rem;object-fit:contain}.christianity-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(5.8rem,6.8rem));justify-content:center;align-content:start;gap:.65rem;min-height:0;overflow-y:scroll;scrollbar-color:rgba(36,48,68,.32) rgba(226,232,240,.72);scrollbar-gutter:stable;padding:.1rem .1rem .35rem}.christianity-gallery-grid::-webkit-scrollbar{width:.65rem}.christianity-gallery-grid::-webkit-scrollbar-track{border-radius:999px;background:#e2e8f0b8}.christianity-gallery-grid::-webkit-scrollbar-thumb{border:.14rem solid rgba(226,232,240,.72);border-radius:999px;background:#24304452}.christianity-offering-card{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr) auto;align-content:stretch;gap:.26rem;width:100%;min-height:7.7rem;padding:.58rem;overflow:hidden;text-align:left;background:linear-gradient(180deg,#fffffff5,#f8fafcf5),radial-gradient(circle at 78% 14%,rgba(250,204,21,.78) 0 .42rem,transparent .44rem);box-shadow:0 .45rem 1rem #102a431a}.christianity-offering-card small{min-width:0;overflow:hidden;color:#1f293394;font-size:.62rem;font-weight:800;line-height:1;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.christianity-offering-card strong{display:-webkit-box;align-self:start;min-width:0;margin-top:.1rem;overflow:hidden;overflow-wrap:anywhere;font-size:.88rem;line-height:1.05;-webkit-box-orient:vertical;-webkit-line-clamp:3}.christianity-offering-card span{position:absolute;right:.42rem;bottom:.42rem;display:grid;place-items:center;min-width:1.55rem;height:1.55rem;padding:0 .28rem;border-radius:999px;background:#edf2f7;font-size:.82rem;font-weight:900}.christianity-offering-card em{align-self:end;max-width:calc(100% - 1.9rem);overflow:hidden;color:#1f29339e;font-size:.64rem;font-style:normal;font-weight:800;line-height:1.05;text-overflow:ellipsis;white-space:nowrap}.christianity-offering-card p,.christianity-offering-row p{margin:0}.christianity-offering-card p{align-self:end;color:#1f2933a3;font-size:.72rem;line-height:1.2}.christianity-offering-row>div{display:grid;gap:.35rem;align-content:center;min-width:0}.christianity-offering-row>div p{color:#1f2933b8;font-size:.85rem;line-height:1.3}.christianity-offering-row>div button{justify-self:start;min-height:2.2rem;padding:0 .7rem;border:1px solid rgba(16,42,67,.16);border-radius:.5rem;background:#102a43;color:#fff;font:inherit;font-weight:800}.christianity-offering-row>div button:disabled{background:#e2e8f0;color:#1f293394}.christianity-history-grid .christianity-render-card-button{justify-self:center;width:min(100%,6.4rem)}.christianity-gallery-grid .christianity-render-card-button{justify-self:center;width:min(100%,7rem)}.christianity-offering-card.christianity-render-card-button{width:min(100%,5.8rem);min-height:0;padding:0;border:0;background:transparent;box-shadow:none}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible{outline:.1875rem solid color-mix(in srgb,var(--christianity-theme-focus) 24%,transparent);outline-offset:.125rem}:host-context(.dark),:host-context(.ion-palette-dark),:host-context(html.ion-palette-dark),:host-context(body.dark),:host-context([data-theme=\"dark\"]){--christianity-theme-ink: var(--ion-text-color, #e5edf8);--christianity-theme-surface: #111827;--christianity-theme-parchment: #13223a;--christianity-theme-olive: #93c5fd;--christianity-theme-gold: #60a5fa;--christianity-theme-gold-soft: rgba(96, 165, 250, .18);--christianity-theme-gold-ring: rgba(147, 197, 253, .42);--christianity-theme-glow: rgba(96, 165, 250, .24);--christianity-theme-focus: #93c5fd;--christianity-theme-shadow: rgba(0, 0, 0, .34);--christianity-theme-shadow-strong: rgba(0, 0, 0, .48);--christianity-card-back: linear-gradient(135deg, rgba(147, 197, 253, .2), rgba(15, 23, 42, .08)), repeating-linear-gradient(45deg, #1e3a5f 0 .33rem, #0f172a .33rem .66rem);--christianity-card-back-soft: linear-gradient(135deg, rgba(147, 197, 253, .15), rgba(15, 23, 42, .06)), repeating-linear-gradient(45deg, #1e3a5f 0 .33rem, #0f172a .33rem .66rem);color-scheme:dark}:host-context(.dark) .christianity-shell,:host-context(.ion-palette-dark) .christianity-shell,:host-context(html.ion-palette-dark) .christianity-shell,:host-context(body.dark) .christianity-shell,:host-context([data-theme=\"dark\"]) .christianity-shell{border-color:#94a3b82e;background:#07111f}:host-context(.dark) .christianity-gallery-open,:host-context(.ion-palette-dark) .christianity-gallery-open,:host-context(html.ion-palette-dark) .christianity-gallery-open,:host-context(body.dark) .christianity-gallery-open,:host-context([data-theme=\"dark\"]) .christianity-gallery-open,:host-context(.dark) .christianity-secondary-action,:host-context(.ion-palette-dark) .christianity-secondary-action,:host-context(html.ion-palette-dark) .christianity-secondary-action,:host-context(body.dark) .christianity-secondary-action,:host-context([data-theme=\"dark\"]) .christianity-secondary-action,:host-context(.dark) .christianity-gallery-edition-strip button,:host-context(.ion-palette-dark) .christianity-gallery-edition-strip button,:host-context(html.ion-palette-dark) .christianity-gallery-edition-strip button,:host-context(body.dark) .christianity-gallery-edition-strip button,:host-context([data-theme=\"dark\"]) .christianity-gallery-edition-strip button{border-color:#93c5fd5c;background:linear-gradient(180deg,#1e3a5fd1,#0f172ae0),radial-gradient(circle at 20% 0%,rgba(96,165,250,.16),transparent 42%);color:var(--christianity-theme-ink);box-shadow:0 .55rem 1.2rem #0000003d}:host-context(.dark) .christianity-splash,:host-context(.ion-palette-dark) .christianity-splash,:host-context(html.ion-palette-dark) .christianity-splash,:host-context(body.dark) .christianity-splash,:host-context([data-theme=\"dark\"]) .christianity-splash,:host-context(.dark) .christianity-start,:host-context(.ion-palette-dark) .christianity-start,:host-context(html.ion-palette-dark) .christianity-start,:host-context(body.dark) .christianity-start,:host-context([data-theme=\"dark\"]) .christianity-start{border-color:#93c5fd38;background:radial-gradient(circle at 50% 18%,rgba(96,165,250,.16),transparent 22rem),linear-gradient(180deg,#0f172ae0,#07111ff7),var(--christianity-card-back-soft);box-shadow:0 1.2rem 3.2rem #00000047}:host-context(.dark) .christianity-start__cards article,:host-context(.ion-palette-dark) .christianity-start__cards article,:host-context(html.ion-palette-dark) .christianity-start__cards article,:host-context(body.dark) .christianity-start__cards article,:host-context([data-theme=\"dark\"]) .christianity-start__cards article,:host-context(.dark) .christianity-start__modes article,:host-context(.ion-palette-dark) .christianity-start__modes article,:host-context(html.ion-palette-dark) .christianity-start__modes article,:host-context(body.dark) .christianity-start__modes article,:host-context([data-theme=\"dark\"]) .christianity-start__modes article,:host-context(.dark) .christianity-start__status span,:host-context(.ion-palette-dark) .christianity-start__status span,:host-context(html.ion-palette-dark) .christianity-start__status span,:host-context(body.dark) .christianity-start__status span,:host-context([data-theme=\"dark\"]) .christianity-start__status span,:host-context(.dark) .christianity-start__modes article>span,:host-context(.ion-palette-dark) .christianity-start__modes article>span,:host-context(html.ion-palette-dark) .christianity-start__modes article>span,:host-context(body.dark) .christianity-start__modes article>span,:host-context([data-theme=\"dark\"]) .christianity-start__modes article>span{border-color:#94a3b833;background:#0f172aad;box-shadow:0 .75rem 1.7rem #00000038}:host-context(.dark) .christianity-splash p,:host-context(.ion-palette-dark) .christianity-splash p,:host-context(html.ion-palette-dark) .christianity-splash p,:host-context(body.dark) .christianity-splash p,:host-context([data-theme=\"dark\"]) .christianity-splash p,:host-context(.dark) .christianity-start__copy p,:host-context(.ion-palette-dark) .christianity-start__copy p,:host-context(html.ion-palette-dark) .christianity-start__copy p,:host-context(body.dark) .christianity-start__copy p,:host-context([data-theme=\"dark\"]) .christianity-start__copy p,:host-context(.dark) .christianity-start__cards p,:host-context(.ion-palette-dark) .christianity-start__cards p,:host-context(html.ion-palette-dark) .christianity-start__cards p,:host-context(body.dark) .christianity-start__cards p,:host-context([data-theme=\"dark\"]) .christianity-start__cards p,:host-context(.dark) .christianity-start__modes p,:host-context(.ion-palette-dark) .christianity-start__modes p,:host-context(html.ion-palette-dark) .christianity-start__modes p,:host-context(body.dark) .christianity-start__modes p,:host-context([data-theme=\"dark\"]) .christianity-start__modes p,:host-context(.dark) .christianity-header p,:host-context(.ion-palette-dark) .christianity-header p,:host-context(html.ion-palette-dark) .christianity-header p,:host-context(body.dark) .christianity-header p,:host-context([data-theme=\"dark\"]) .christianity-header p,:host-context(.dark) .christianity-match-player small,:host-context(.ion-palette-dark) .christianity-match-player small,:host-context(html.ion-palette-dark) .christianity-match-player small,:host-context(body.dark) .christianity-match-player small,:host-context([data-theme=\"dark\"]) .christianity-match-player small,:host-context(.dark) .christianity-scoreboard span,:host-context(.ion-palette-dark) .christianity-scoreboard span,:host-context(html.ion-palette-dark) .christianity-scoreboard span,:host-context(body.dark) .christianity-scoreboard span,:host-context([data-theme=\"dark\"]) .christianity-scoreboard span{color:#e2e8f0bd}:host-context(.dark) .christianity-turn,:host-context(.ion-palette-dark) .christianity-turn,:host-context(html.ion-palette-dark) .christianity-turn,:host-context(body.dark) .christianity-turn,:host-context([data-theme=\"dark\"]) .christianity-turn,:host-context(.dark) .christianity-leader,:host-context(.ion-palette-dark) .christianity-leader,:host-context(html.ion-palette-dark) .christianity-leader,:host-context(body.dark) .christianity-leader,:host-context([data-theme=\"dark\"]) .christianity-leader,:host-context(.dark) .christianity-offerings,:host-context(.ion-palette-dark) .christianity-offerings,:host-context(html.ion-palette-dark) .christianity-offerings,:host-context(body.dark) .christianity-offerings,:host-context([data-theme=\"dark\"]) .christianity-offerings,:host-context(.dark) .christianity-hidden-hand,:host-context(.ion-palette-dark) .christianity-hidden-hand,:host-context(html.ion-palette-dark) .christianity-hidden-hand,:host-context(body.dark) .christianity-hidden-hand,:host-context([data-theme=\"dark\"]) .christianity-hidden-hand,:host-context(.dark) .christianity-pile,:host-context(.ion-palette-dark) .christianity-pile,:host-context(html.ion-palette-dark) .christianity-pile,:host-context(body.dark) .christianity-pile,:host-context([data-theme=\"dark\"]) .christianity-pile,:host-context(.dark) .christianity-deck,:host-context(.ion-palette-dark) .christianity-deck,:host-context(html.ion-palette-dark) .christianity-deck,:host-context(body.dark) .christianity-deck,:host-context([data-theme=\"dark\"]) .christianity-deck,:host-context(.dark) .christianity-place,:host-context(.ion-palette-dark) .christianity-place,:host-context(html.ion-palette-dark) .christianity-place,:host-context(body.dark) .christianity-place,:host-context([data-theme=\"dark\"]) .christianity-place,:host-context(.dark) .christianity-match-strip,:host-context(.ion-palette-dark) .christianity-match-strip,:host-context(html.ion-palette-dark) .christianity-match-strip,:host-context(body.dark) .christianity-match-strip,:host-context([data-theme=\"dark\"]) .christianity-match-strip,:host-context(.dark) .christianity-actions,:host-context(.ion-palette-dark) .christianity-actions,:host-context(html.ion-palette-dark) .christianity-actions,:host-context(body.dark) .christianity-actions,:host-context([data-theme=\"dark\"]) .christianity-actions,:host-context(.dark) .christianity-history,:host-context(.ion-palette-dark) .christianity-history,:host-context(html.ion-palette-dark) .christianity-history,:host-context(body.dark) .christianity-history,:host-context([data-theme=\"dark\"]) .christianity-history{border-color:#94a3b82e;background:#0f172ad1}:host-context(.dark) .christianity-turn.is-own-turn,:host-context(.ion-palette-dark) .christianity-turn.is-own-turn,:host-context(html.ion-palette-dark) .christianity-turn.is-own-turn,:host-context(body.dark) .christianity-turn.is-own-turn,:host-context([data-theme=\"dark\"]) .christianity-turn.is-own-turn{border-color:#2dd4bf5c;background:#14534c5c}:host-context(.dark) .christianity-table,:host-context(.ion-palette-dark) .christianity-table,:host-context(html.ion-palette-dark) .christianity-table,:host-context(body.dark) .christianity-table,:host-context([data-theme=\"dark\"]) .christianity-table{background:linear-gradient(180deg,#10233d,#0b1728)}:host-context(.dark) .christianity-player-side,:host-context(.ion-palette-dark) .christianity-player-side,:host-context(html.ion-palette-dark) .christianity-player-side,:host-context(body.dark) .christianity-player-side,:host-context([data-theme=\"dark\"]) .christianity-player-side{background:#0f172a57}:host-context(.dark) .christianity-battle-zone,:host-context(.ion-palette-dark) .christianity-battle-zone,:host-context(html.ion-palette-dark) .christianity-battle-zone,:host-context(body.dark) .christianity-battle-zone,:host-context([data-theme=\"dark\"]) .christianity-battle-zone,:host-context(.dark) .christianity-shared-zone,:host-context(.ion-palette-dark) .christianity-shared-zone,:host-context(html.ion-palette-dark) .christianity-shared-zone,:host-context(body.dark) .christianity-shared-zone,:host-context([data-theme=\"dark\"]) .christianity-shared-zone{background:#0f172a94}:host-context(.dark) .christianity-battle-zone.is-placing-card,:host-context(.ion-palette-dark) .christianity-battle-zone.is-placing-card,:host-context(html.ion-palette-dark) .christianity-battle-zone.is-placing-card,:host-context(body.dark) .christianity-battle-zone.is-placing-card,:host-context([data-theme=\"dark\"]) .christianity-battle-zone.is-placing-card{background:linear-gradient(180deg,#1e3a5fd1,#0f172ab8),#0f172a94}:host-context(.dark) .christianity-card,:host-context(.ion-palette-dark) .christianity-card,:host-context(html.ion-palette-dark) .christianity-card,:host-context(body.dark) .christianity-card,:host-context([data-theme=\"dark\"]) .christianity-card,:host-context(.dark) .christianity-slot,:host-context(.ion-palette-dark) .christianity-slot,:host-context(html.ion-palette-dark) .christianity-slot,:host-context(body.dark) .christianity-slot,:host-context([data-theme=\"dark\"]) .christianity-slot{border-color:#94a3b83d;background:#0f172a8a}:host-context(.dark) .christianity-slot--play-target,:host-context(.ion-palette-dark) .christianity-slot--play-target,:host-context(html.ion-palette-dark) .christianity-slot--play-target,:host-context(body.dark) .christianity-slot--play-target,:host-context([data-theme=\"dark\"]) .christianity-slot--play-target{color:var(--christianity-theme-ink);background:linear-gradient(180deg,#2563eb3d,#0f172ac7),#0f172abd}:host-context(.dark) .christianity-slot--play-target span,:host-context(.ion-palette-dark) .christianity-slot--play-target span,:host-context(html.ion-palette-dark) .christianity-slot--play-target span,:host-context(body.dark) .christianity-slot--play-target span,:host-context([data-theme=\"dark\"]) .christianity-slot--play-target span,:host-context(.dark) .christianity-card strong,:host-context(.ion-palette-dark) .christianity-card strong,:host-context(html.ion-palette-dark) .christianity-card strong,:host-context(body.dark) .christianity-card strong,:host-context([data-theme=\"dark\"]) .christianity-card strong{background:#1e293beb}:host-context(.dark) .christianity-offering-pile,:host-context(.ion-palette-dark) .christianity-offering-pile,:host-context(html.ion-palette-dark) .christianity-offering-pile,:host-context(body.dark) .christianity-offering-pile,:host-context([data-theme=\"dark\"]) .christianity-offering-pile,:host-context(.dark) .christianity-zone-card,:host-context(.ion-palette-dark) .christianity-zone-card,:host-context(html.ion-palette-dark) .christianity-zone-card,:host-context(body.dark) .christianity-zone-card,:host-context([data-theme=\"dark\"]) .christianity-zone-card,:host-context(.dark) .christianity-zone-pile,:host-context(.ion-palette-dark) .christianity-zone-pile,:host-context(html.ion-palette-dark) .christianity-zone-pile,:host-context(body.dark) .christianity-zone-pile,:host-context([data-theme=\"dark\"]) .christianity-zone-pile{border-color:#94a3b83d;background:linear-gradient(180deg,#111827f5,#0f172af0),radial-gradient(circle at 14% 0%,rgba(96,165,250,.12),transparent 42%);color:var(--christianity-theme-ink);box-shadow:0 .55rem 1.25rem #00000047,inset 0 0 0 .12rem #ffffff08}:host-context(.dark) .christianity-offering-pile>span,:host-context(.ion-palette-dark) .christianity-offering-pile>span,:host-context(html.ion-palette-dark) .christianity-offering-pile>span,:host-context(body.dark) .christianity-offering-pile>span,:host-context([data-theme=\"dark\"]) .christianity-offering-pile>span,:host-context(.dark) .christianity-zone-card>span,:host-context(.ion-palette-dark) .christianity-zone-card>span,:host-context(html.ion-palette-dark) .christianity-zone-card>span,:host-context(body.dark) .christianity-zone-card>span,:host-context([data-theme=\"dark\"]) .christianity-zone-card>span,:host-context(.dark) .christianity-zone-pile>span,:host-context(.ion-palette-dark) .christianity-zone-pile>span,:host-context(html.ion-palette-dark) .christianity-zone-pile>span,:host-context(body.dark) .christianity-zone-pile>span,:host-context([data-theme=\"dark\"]) .christianity-zone-pile>span,:host-context(.dark) .christianity-player-badge,:host-context(.ion-palette-dark) .christianity-player-badge,:host-context(html.ion-palette-dark) .christianity-player-badge,:host-context(body.dark) .christianity-player-badge,:host-context([data-theme=\"dark\"]) .christianity-player-badge{color:#e2e8f0c7}:host-context(.dark) .christianity-offering-pile>strong,:host-context(.ion-palette-dark) .christianity-offering-pile>strong,:host-context(html.ion-palette-dark) .christianity-offering-pile>strong,:host-context(body.dark) .christianity-offering-pile>strong,:host-context([data-theme=\"dark\"]) .christianity-offering-pile>strong,:host-context(.dark) .christianity-zone-card>strong,:host-context(.ion-palette-dark) .christianity-zone-card>strong,:host-context(html.ion-palette-dark) .christianity-zone-card>strong,:host-context(body.dark) .christianity-zone-card>strong,:host-context([data-theme=\"dark\"]) .christianity-zone-card>strong,:host-context(.dark) .christianity-zone-pile>strong,:host-context(.ion-palette-dark) .christianity-zone-pile>strong,:host-context(html.ion-palette-dark) .christianity-zone-pile>strong,:host-context(body.dark) .christianity-zone-pile>strong,:host-context([data-theme=\"dark\"]) .christianity-zone-pile>strong,:host-context(.dark) .christianity-hand-meter,:host-context(.ion-palette-dark) .christianity-hand-meter,:host-context(html.ion-palette-dark) .christianity-hand-meter,:host-context(body.dark) .christianity-hand-meter,:host-context([data-theme=\"dark\"]) .christianity-hand-meter{border-color:#94a3b833;background:#0f172ae0;color:var(--christianity-theme-ink);box-shadow:0 .35rem .8rem #00000047}:host-context(.dark) .christianity-hand-meter span,:host-context(.ion-palette-dark) .christianity-hand-meter span,:host-context(html.ion-palette-dark) .christianity-hand-meter span,:host-context(body.dark) .christianity-hand-meter span,:host-context([data-theme=\"dark\"]) .christianity-hand-meter span{color:#e2e8f0b3}:host-context(.dark) .christianity-offering-pile i,:host-context(.ion-palette-dark) .christianity-offering-pile i,:host-context(html.ion-palette-dark) .christianity-offering-pile i,:host-context(body.dark) .christianity-offering-pile i,:host-context([data-theme=\"dark\"]) .christianity-offering-pile i{border-color:#94a3b833;background:linear-gradient(180deg,#e2e8f0f0,#cbd5e1e6),radial-gradient(circle at 78% 18%,#facc15 0 .38rem,transparent .4rem)}:host-context(.dark) .christianity-zone-pile i,:host-context(.ion-palette-dark) .christianity-zone-pile i,:host-context(html.ion-palette-dark) .christianity-zone-pile i,:host-context(body.dark) .christianity-zone-pile i,:host-context([data-theme=\"dark\"]) .christianity-zone-pile i{border-color:#94a3b838;background:#e2e8f0eb;box-shadow:0 .35rem .85rem #00000042}:host-context(.dark) .christianity-zone-pile i:nth-child(3),:host-context(.ion-palette-dark) .christianity-zone-pile i:nth-child(3),:host-context(html.ion-palette-dark) .christianity-zone-pile i:nth-child(3),:host-context(body.dark) .christianity-zone-pile i:nth-child(3),:host-context([data-theme=\"dark\"]) .christianity-zone-pile i:nth-child(3){background:var(--christianity-card-back)}:host-context(.dark) .christianity-end-turn:disabled,:host-context(.ion-palette-dark) .christianity-end-turn:disabled,:host-context(html.ion-palette-dark) .christianity-end-turn:disabled,:host-context(body.dark) .christianity-end-turn:disabled,:host-context([data-theme=\"dark\"]) .christianity-end-turn:disabled{border-color:#94a3b829;background:#0f172a75;color:#e2e8f06b;opacity:1}:host-context(.dark) .christianity-history-drawer,:host-context(.ion-palette-dark) .christianity-history-drawer,:host-context(html.ion-palette-dark) .christianity-history-drawer,:host-context(body.dark) .christianity-history-drawer,:host-context([data-theme=\"dark\"]) .christianity-history-drawer,:host-context(.dark) .christianity-rule-note,:host-context(.ion-palette-dark) .christianity-rule-note,:host-context(html.ion-palette-dark) .christianity-rule-note,:host-context(body.dark) .christianity-rule-note,:host-context([data-theme=\"dark\"]) .christianity-rule-note,:host-context(.dark) .christianity-preview-rule-note,:host-context(.ion-palette-dark) .christianity-preview-rule-note,:host-context(html.ion-palette-dark) .christianity-preview-rule-note,:host-context(body.dark) .christianity-preview-rule-note,:host-context([data-theme=\"dark\"]) .christianity-preview-rule-note{border-color:#94a3b82e;background:linear-gradient(180deg,#0f172af5,#111827f5),radial-gradient(circle at 8% 0%,rgba(96,165,250,.12),transparent 40%);box-shadow:0 1.5rem 4rem #0000006b}:host-context(.dark) .christianity-dialog-close,:host-context(.ion-palette-dark) .christianity-dialog-close,:host-context(html.ion-palette-dark) .christianity-dialog-close,:host-context(body.dark) .christianity-dialog-close,:host-context([data-theme=\"dark\"]) .christianity-dialog-close,:host-context(.dark) .christianity-floating-card-close,:host-context(.ion-palette-dark) .christianity-floating-card-close,:host-context(html.ion-palette-dark) .christianity-floating-card-close,:host-context(body.dark) .christianity-floating-card-close,:host-context([data-theme=\"dark\"]) .christianity-floating-card-close{border-color:#94a3b838;background:#0f172af0;color:var(--christianity-theme-ink);box-shadow:0 .35rem .8rem #0000004d}:host-context(.dark) .christianity-history-drawer header span,:host-context(.ion-palette-dark) .christianity-history-drawer header span,:host-context(html.ion-palette-dark) .christianity-history-drawer header span,:host-context(body.dark) .christianity-history-drawer header span,:host-context([data-theme=\"dark\"]) .christianity-history-drawer header span,:host-context(.dark) .christianity-rule-note strong,:host-context(.ion-palette-dark) .christianity-rule-note strong,:host-context(html.ion-palette-dark) .christianity-rule-note strong,:host-context(body.dark) .christianity-rule-note strong,:host-context([data-theme=\"dark\"]) .christianity-rule-note strong{background:#1e293beb}:host-context(.dark) .christianity-rule-note small,:host-context(.ion-palette-dark) .christianity-rule-note small,:host-context(html.ion-palette-dark) .christianity-rule-note small,:host-context(body.dark) .christianity-rule-note small,:host-context([data-theme=\"dark\"]) .christianity-rule-note small,:host-context(.dark) .christianity-preview-rule-note small,:host-context(.ion-palette-dark) .christianity-preview-rule-note small,:host-context(html.ion-palette-dark) .christianity-preview-rule-note small,:host-context(body.dark) .christianity-preview-rule-note small,:host-context([data-theme=\"dark\"]) .christianity-preview-rule-note small,:host-context(.dark) .christianity-gallery-drawer header p,:host-context(.ion-palette-dark) .christianity-gallery-drawer header p,:host-context(html.ion-palette-dark) .christianity-gallery-drawer header p,:host-context(body.dark) .christianity-gallery-drawer header p,:host-context([data-theme=\"dark\"]) .christianity-gallery-drawer header p,:host-context(.dark) .christianity-gallery-controls label,:host-context(.ion-palette-dark) .christianity-gallery-controls label,:host-context(html.ion-palette-dark) .christianity-gallery-controls label,:host-context(body.dark) .christianity-gallery-controls label,:host-context([data-theme=\"dark\"]) .christianity-gallery-controls label{color:#e2e8f0ad}:host-context(.dark) .christianity-rule-note p,:host-context(.ion-palette-dark) .christianity-rule-note p,:host-context(html.ion-palette-dark) .christianity-rule-note p,:host-context(body.dark) .christianity-rule-note p,:host-context([data-theme=\"dark\"]) .christianity-rule-note p,:host-context(.dark) .christianity-rule-note ul,:host-context(.ion-palette-dark) .christianity-rule-note ul,:host-context(html.ion-palette-dark) .christianity-rule-note ul,:host-context(body.dark) .christianity-rule-note ul,:host-context([data-theme=\"dark\"]) .christianity-rule-note ul,:host-context(.dark) .christianity-preview-rule-note p,:host-context(.ion-palette-dark) .christianity-preview-rule-note p,:host-context(html.ion-palette-dark) .christianity-preview-rule-note p,:host-context(body.dark) .christianity-preview-rule-note p,:host-context([data-theme=\"dark\"]) .christianity-preview-rule-note p,:host-context(.dark) .christianity-offerings-note p,:host-context(.ion-palette-dark) .christianity-offerings-note p,:host-context(html.ion-palette-dark) .christianity-offerings-note p,:host-context(body.dark) .christianity-offerings-note p,:host-context([data-theme=\"dark\"]) .christianity-offerings-note p{color:#e2e8f0cc}:host-context(.dark) .christianity-gallery-controls input,:host-context(.ion-palette-dark) .christianity-gallery-controls input,:host-context(html.ion-palette-dark) .christianity-gallery-controls input,:host-context(body.dark) .christianity-gallery-controls input,:host-context([data-theme=\"dark\"]) .christianity-gallery-controls input,:host-context(.dark) .christianity-gallery-controls select,:host-context(.ion-palette-dark) .christianity-gallery-controls select,:host-context(html.ion-palette-dark) .christianity-gallery-controls select,:host-context(body.dark) .christianity-gallery-controls select,:host-context([data-theme=\"dark\"]) .christianity-gallery-controls select,:host-context(.dark) .christianity-offering-row,:host-context(.ion-palette-dark) .christianity-offering-row,:host-context(html.ion-palette-dark) .christianity-offering-row,:host-context(body.dark) .christianity-offering-row,:host-context([data-theme=\"dark\"]) .christianity-offering-row,:host-context(.dark) .christianity-offerings-note,:host-context(.ion-palette-dark) .christianity-offerings-note,:host-context(html.ion-palette-dark) .christianity-offerings-note,:host-context(body.dark) .christianity-offerings-note,:host-context([data-theme=\"dark\"]) .christianity-offerings-note{border-color:#94a3b833;background:#0f172ac7;color:var(--christianity-theme-ink)}:host-context(.dark) .christianity-history-grid,:host-context(.ion-palette-dark) .christianity-history-grid,:host-context(html.ion-palette-dark) .christianity-history-grid,:host-context(body.dark) .christianity-history-grid,:host-context([data-theme=\"dark\"]) .christianity-history-grid,:host-context(.dark) .christianity-offering-list,:host-context(.ion-palette-dark) .christianity-offering-list,:host-context(html.ion-palette-dark) .christianity-offering-list,:host-context(body.dark) .christianity-offering-list,:host-context([data-theme=\"dark\"]) .christianity-offering-list,:host-context(.dark) .christianity-gallery-grid,:host-context(.ion-palette-dark) .christianity-gallery-grid,:host-context(html.ion-palette-dark) .christianity-gallery-grid,:host-context(body.dark) .christianity-gallery-grid,:host-context([data-theme=\"dark\"]) .christianity-gallery-grid,:host-context(.dark) .christianity-preview-rule-note,:host-context(.ion-palette-dark) .christianity-preview-rule-note,:host-context(html.ion-palette-dark) .christianity-preview-rule-note,:host-context(body.dark) .christianity-preview-rule-note,:host-context([data-theme=\"dark\"]) .christianity-preview-rule-note{scrollbar-color:rgba(148,163,184,.54) rgba(15,23,42,.86)}:host-context(.dark) .christianity-rule-note-icon,:host-context(.ion-palette-dark) .christianity-rule-note-icon,:host-context(html.ion-palette-dark) .christianity-rule-note-icon,:host-context(body.dark) .christianity-rule-note-icon,:host-context([data-theme=\"dark\"]) .christianity-rule-note-icon{background:#60a5fa29;color:#bfdbfe;box-shadow:inset 0 0 0 1px #93c5fd38}:host-context(.dark) .christianity-history-grid::-webkit-scrollbar-track,:host-context(.ion-palette-dark) .christianity-history-grid::-webkit-scrollbar-track,:host-context(html.ion-palette-dark) .christianity-history-grid::-webkit-scrollbar-track,:host-context(body.dark) .christianity-history-grid::-webkit-scrollbar-track,:host-context([data-theme=\"dark\"]) .christianity-history-grid::-webkit-scrollbar-track,:host-context(.dark) .christianity-offering-list::-webkit-scrollbar-track,:host-context(.ion-palette-dark) .christianity-offering-list::-webkit-scrollbar-track,:host-context(html.ion-palette-dark) .christianity-offering-list::-webkit-scrollbar-track,:host-context(body.dark) .christianity-offering-list::-webkit-scrollbar-track,:host-context([data-theme=\"dark\"]) .christianity-offering-list::-webkit-scrollbar-track,:host-context(.dark) .christianity-gallery-grid::-webkit-scrollbar-track,:host-context(.ion-palette-dark) .christianity-gallery-grid::-webkit-scrollbar-track,:host-context(html.ion-palette-dark) .christianity-gallery-grid::-webkit-scrollbar-track,:host-context(body.dark) .christianity-gallery-grid::-webkit-scrollbar-track,:host-context([data-theme=\"dark\"]) .christianity-gallery-grid::-webkit-scrollbar-track{background:#0f172adb}:host-context(.dark) .christianity-history-grid::-webkit-scrollbar-thumb,:host-context(.ion-palette-dark) .christianity-history-grid::-webkit-scrollbar-thumb,:host-context(html.ion-palette-dark) .christianity-history-grid::-webkit-scrollbar-thumb,:host-context(body.dark) .christianity-history-grid::-webkit-scrollbar-thumb,:host-context([data-theme=\"dark\"]) .christianity-history-grid::-webkit-scrollbar-thumb,:host-context(.dark) .christianity-offering-list::-webkit-scrollbar-thumb,:host-context(.ion-palette-dark) .christianity-offering-list::-webkit-scrollbar-thumb,:host-context(html.ion-palette-dark) .christianity-offering-list::-webkit-scrollbar-thumb,:host-context(body.dark) .christianity-offering-list::-webkit-scrollbar-thumb,:host-context([data-theme=\"dark\"]) .christianity-offering-list::-webkit-scrollbar-thumb,:host-context(.dark) .christianity-gallery-grid::-webkit-scrollbar-thumb,:host-context(.ion-palette-dark) .christianity-gallery-grid::-webkit-scrollbar-thumb,:host-context(html.ion-palette-dark) .christianity-gallery-grid::-webkit-scrollbar-thumb,:host-context(body.dark) .christianity-gallery-grid::-webkit-scrollbar-thumb,:host-context([data-theme=\"dark\"]) .christianity-gallery-grid::-webkit-scrollbar-thumb{border-color:#0f172adb;background:#94a3b88a}@media (max-width: 720px){:host{overflow-x:hidden}.christianity-shell{padding:.55rem 0 .65rem;border-right:0;border-left:0;border-radius:0}.christianity-header,.christianity-match-strip,.christianity-actions{box-sizing:border-box;width:100%;padding-right:max(.5rem,env(safe-area-inset-right));padding-left:max(.5rem,env(safe-area-inset-left))}.christianity-header,.christianity-player__summary,.christianity-shared-zone,.christianity-actions{align-items:stretch;flex-direction:column}.christianity-match-strip{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:.35rem;padding:.35rem}.christianity-match-player{gap:.35rem}.christianity-match-player small{display:none}.christianity-header-actions{align-items:flex-end;flex-direction:column}.christianity-start__cards,.christianity-start__hero{grid-template-columns:minmax(0,1fr)}.christianity-start__fan{min-height:10.5rem}.christianity-start__fan val-christianity-card{width:clamp(5.2rem,22vw,6.4rem)}.christianity-start__modes{grid-template-columns:repeat(2,minmax(0,1fr))}.christianity-splash,.christianity-start{min-height:min(30rem,calc(100dvh - 7rem));padding-right:max(.65rem,env(safe-area-inset-right));padding-left:max(.65rem,env(safe-area-inset-left));border-right:0;border-left:0;border-radius:0}.christianity-scoreboard{min-width:3.65rem;padding:0 .35rem}.christianity-scoreboard strong{font-size:1.05rem}.christianity-table{gap:.35rem;padding-right:.25rem;padding-left:.25rem}.christianity-player-side{padding:.3rem .25rem}.christianity-battle-zone{--christianity-battle-card-width: min(5.2rem, calc((100vw - 4.25rem)/4) );grid-template-columns:repeat(4,var(--christianity-battle-card-width));justify-content:center;min-height:8.75rem;overflow-x:clip}.christianity-hand-fan{min-height:11.45rem;padding-bottom:2rem;overflow:visible}.christianity-hand-shelf{min-height:12.65rem;margin-top:-1rem;padding-top:1.35rem;padding-bottom:.9rem}.christianity-hand-shelf--opponent{min-height:6.65rem;margin-top:0;margin-bottom:0;padding-top:.4rem;padding-bottom:.85rem}.christianity-player-rack{grid-template-columns:minmax(4.5rem,5.7rem) minmax(4.4rem,1fr) minmax(3.5rem,4.8rem)}.christianity-shared-zone{gap:.45rem;grid-template-columns:repeat(3,minmax(0,1fr))}.christianity-zone-card,.christianity-zone-pile{min-height:6.15rem;padding:.58rem .46rem .5rem;gap:.24rem}.christianity-zone-pile i{top:2rem;right:.52rem;width:2.35rem;height:3.25rem}.christianity-offering-pile{padding:.88rem .46rem .55rem;gap:.24rem}.christianity-offering-drop-target{height:6.85rem;min-height:0;max-height:6.85rem}.christianity-offering-pile i{top:2.25rem;left:.56rem;width:2.35rem;height:3.25rem}.christianity-card-preview-card{width:clamp(4.2rem,20vw,5.7rem);height:auto;min-height:0}.christianity-leader-card{width:clamp(4.55rem,20vw,5.7rem);min-height:0}.christianity-offering-row{grid-template-columns:minmax(5rem,5.8rem) minmax(0,1fr);gap:.5rem}.christianity-gallery-controls{grid-template-columns:minmax(0,1fr)}.christianity-gallery-grid{grid-template-columns:repeat(auto-fill,minmax(5.35rem,6.1rem));justify-content:center}.christianity-offering-card{min-height:7.25rem;padding:.5rem}.christianity-hand-fan--opponent{min-height:5.75rem;padding-bottom:.7rem}.christianity-hand-fan--opponent .christianity-card-frame--back{width:clamp(3.35rem,15vw,4.25rem);margin-inline:-.72rem}}\n"] }]
73115
+ }], ctorParameters: () => [] });
73116
+
70155
73117
  addIcons({ refreshOutline, sparklesOutline, trophyOutline });
70156
73118
  const BUBBLE_COLORS = {
70157
73119
  rose: '#ff4f9f',
@@ -70208,6 +73170,7 @@ class BubbleBlitzGameComponent {
70208
73170
  this.animating = signal(false);
70209
73171
  this.leaderboard = signal(this.readLeaderboard());
70210
73172
  this.confirmAction = signal(undefined);
73173
+ this.confirmedAction = signal(undefined);
70211
73174
  this.config = computed(() => MODE_CONFIG[this.mode()]);
70212
73175
  this.feverReady = computed(() => this.fever() >= this.config().feverTarget);
70213
73176
  this.feverProgress = computed(() => Math.min(100, Math.round((this.fever() / this.config().feverTarget) * 100)));
@@ -70387,13 +73350,12 @@ class BubbleBlitzGameComponent {
70387
73350
  closeConfirmModal() {
70388
73351
  this.confirmAction.set(undefined);
70389
73352
  }
70390
- confirmPendingAction(token) {
70391
- if (token !== 'confirm') {
70392
- this.closeConfirmModal();
70393
- return;
70394
- }
70395
- const action = this.confirmAction();
73353
+ handleConfirmModalDismissed() {
70396
73354
  this.confirmAction.set(undefined);
73355
+ const action = this.confirmedAction();
73356
+ this.confirmedAction.set(undefined);
73357
+ if (!action)
73358
+ return;
70397
73359
  if (action === 'restart') {
70398
73360
  this.start();
70399
73361
  return;
@@ -70406,6 +73368,15 @@ class BubbleBlitzGameComponent {
70406
73368
  this.resetToGamesMenu();
70407
73369
  }
70408
73370
  }
73371
+ confirmPendingAction(token) {
73372
+ if (token !== 'confirm') {
73373
+ this.closeConfirmModal();
73374
+ return;
73375
+ }
73376
+ const action = this.confirmAction();
73377
+ this.confirmedAction.set(action);
73378
+ this.confirmAction.set(undefined);
73379
+ }
70409
73380
  startTimer() {
70410
73381
  this.stopTimer();
70411
73382
  this.timer = window.setInterval(() => {
@@ -70709,7 +73680,7 @@ class BubbleBlitzGameComponent {
70709
73680
  <ion-modal
70710
73681
  [isOpen]="!!confirmAction()"
70711
73682
  cssClass="val-modal-adaptive"
70712
- (didDismiss)="closeConfirmModal()"
73683
+ (didDismiss)="handleConfirmModalDismissed()"
70713
73684
  >
70714
73685
  <ng-template>
70715
73686
  <val-modal-layout
@@ -70859,7 +73830,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
70859
73830
  <ion-modal
70860
73831
  [isOpen]="!!confirmAction()"
70861
73832
  cssClass="val-modal-adaptive"
70862
- (didDismiss)="closeConfirmModal()"
73833
+ (didDismiss)="handleConfirmModalDismissed()"
70863
73834
  >
70864
73835
  <ng-template>
70865
73836
  <val-modal-layout
@@ -70923,6 +73894,7 @@ class MemoryGameComponent {
70923
73894
  this.lockBoard = signal(false);
70924
73895
  this.leaderboard = signal(this.readLeaderboard());
70925
73896
  this.confirmAction = signal(undefined);
73897
+ this.confirmedAction = signal(undefined);
70926
73898
  this.profileConfig = computed(() => PROFILE_CONFIG[this.profile()]);
70927
73899
  this.pairCount = computed(() => this.profileConfig().pairs);
70928
73900
  this.boardClass = computed(() => `memory-board ${this.profileConfig().boardClass}`);
@@ -71060,13 +74032,12 @@ class MemoryGameComponent {
71060
74032
  closeConfirmModal() {
71061
74033
  this.confirmAction.set(undefined);
71062
74034
  }
71063
- confirmPendingAction(token) {
71064
- if (token !== 'confirm') {
71065
- this.closeConfirmModal();
71066
- return;
71067
- }
71068
- const action = this.confirmAction();
74035
+ handleConfirmModalDismissed() {
71069
74036
  this.confirmAction.set(undefined);
74037
+ const action = this.confirmedAction();
74038
+ this.confirmedAction.set(undefined);
74039
+ if (!action)
74040
+ return;
71070
74041
  if (action === 'restart') {
71071
74042
  this.start();
71072
74043
  return;
@@ -71079,6 +74050,15 @@ class MemoryGameComponent {
71079
74050
  this.resetToGamesMenu();
71080
74051
  }
71081
74052
  }
74053
+ confirmPendingAction(token) {
74054
+ if (token !== 'confirm') {
74055
+ this.closeConfirmModal();
74056
+ return;
74057
+ }
74058
+ const action = this.confirmAction();
74059
+ this.confirmedAction.set(action);
74060
+ this.confirmAction.set(undefined);
74061
+ }
71082
74062
  flip(card) {
71083
74063
  if (this.lockBoard() || card.flipped || card.matched || this.won() || this.failed())
71084
74064
  return;
@@ -71393,7 +74373,7 @@ class MemoryGameComponent {
71393
74373
  <ion-modal
71394
74374
  [isOpen]="!!confirmAction()"
71395
74375
  cssClass="val-modal-adaptive"
71396
- (didDismiss)="closeConfirmModal()"
74376
+ (didDismiss)="handleConfirmModalDismissed()"
71397
74377
  >
71398
74378
  <ng-template>
71399
74379
  <val-modal-layout
@@ -71551,7 +74531,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
71551
74531
  <ion-modal
71552
74532
  [isOpen]="!!confirmAction()"
71553
74533
  cssClass="val-modal-adaptive"
71554
- (didDismiss)="closeConfirmModal()"
74534
+ (didDismiss)="handleConfirmModalDismissed()"
71555
74535
  >
71556
74536
  <ng-template>
71557
74537
  <val-modal-layout
@@ -71897,6 +74877,7 @@ class SimonGameComponent {
71897
74877
  this.activePad = signal(undefined);
71898
74878
  this.leaderboard = signal(this.readLeaderboard());
71899
74879
  this.confirmAction = signal(undefined);
74880
+ this.confirmedAction = signal(undefined);
71900
74881
  this.modeConfig = computed(() => SIMON_MODES[this.mode()]);
71901
74882
  this.bestRound = computed(() => this.modeLeaderboard()[0]?.round ?? 0);
71902
74883
  this.modeLeaderboard = computed(() => this.leaderboard()
@@ -71996,13 +74977,12 @@ class SimonGameComponent {
71996
74977
  closeConfirmModal() {
71997
74978
  this.confirmAction.set(undefined);
71998
74979
  }
71999
- confirmPendingAction(token) {
72000
- if (token !== 'confirm') {
72001
- this.closeConfirmModal();
72002
- return;
72003
- }
72004
- const action = this.confirmAction();
74980
+ handleConfirmModalDismissed() {
72005
74981
  this.confirmAction.set(undefined);
74982
+ const action = this.confirmedAction();
74983
+ this.confirmedAction.set(undefined);
74984
+ if (!action)
74985
+ return;
72006
74986
  if (action === 'restart') {
72007
74987
  this.start();
72008
74988
  return;
@@ -72015,6 +74995,15 @@ class SimonGameComponent {
72015
74995
  this.resetToGamesMenu();
72016
74996
  }
72017
74997
  }
74998
+ confirmPendingAction(token) {
74999
+ if (token !== 'confirm') {
75000
+ this.closeConfirmModal();
75001
+ return;
75002
+ }
75003
+ const action = this.confirmAction();
75004
+ this.confirmedAction.set(action);
75005
+ this.confirmAction.set(undefined);
75006
+ }
72018
75007
  tap(pad) {
72019
75008
  if (this.phase() !== 'waiting' || !this.acceptingInput)
72020
75009
  return;
@@ -72258,7 +75247,7 @@ class SimonGameComponent {
72258
75247
  <ion-modal
72259
75248
  [isOpen]="!!confirmAction()"
72260
75249
  cssClass="val-modal-adaptive"
72261
- (didDismiss)="closeConfirmModal()"
75250
+ (didDismiss)="handleConfirmModalDismissed()"
72262
75251
  >
72263
75252
  <ng-template>
72264
75253
  <val-modal-layout
@@ -72388,7 +75377,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
72388
75377
  <ion-modal
72389
75378
  [isOpen]="!!confirmAction()"
72390
75379
  cssClass="val-modal-adaptive"
72391
- (didDismiss)="closeConfirmModal()"
75380
+ (didDismiss)="handleConfirmModalDismissed()"
72392
75381
  >
72393
75382
  <ng-template>
72394
75383
  <val-modal-layout
@@ -87704,5 +90693,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
87704
90693
  * Generated bundle index. Do not edit.
87705
90694
  */
87706
90695
 
87707
- export { ACTION_CARD_DEFAULTS, AD_SIZE_MAP, API_TABLE_COLUMN_LABELS, APP_VERSION_PLATFORM_PLUGIN, APP_VERSION_REMOTE_PLUGIN, ARTICLE_CARD_DEFAULTS, ARTICLE_SPACING, ARTICLE_STRIP_DEFAULTS, AUTH_CTA_DEFAULTS, AVATAR_UPLOAD_DEFAULTS, AboutViewComponent, AccordionComponent, AccountViewComponent, ActionCardComponent, ActionHeaderComponent, ActionType, AdSlotComponent, AdsLoaderService, AdsService, AlertBoxComponent, AnalyticsErrorHandler, AnalyticsRouterTracker, AnalyticsService, AnimatedTerminalComponent, ApiKeyCreateModalComponent, ApiKeyService, ApiKeysModalComponent, ApiKeysViewComponent, AppConfigService, AppVersionService, ArticleBuilder, ArticleCardComponent, ArticleComponent, ArticleStripComponent, AttachmentUploaderComponent, AuthBackgroundComponent, AuthCtaComponent, AuthService, AuthStateService, AuthStorageService, AuthSyncService, AvatarComponent, AvatarUploadComponent, BOTTOM_NAV_DEFAULTS, BannerComponent, BlogPostBuilder, BottomNavComponent, BoxComponent, BreadcrumbComponent, BubbleBlitzGameComponent, ButtonComponent, ButtonGroupComponent, CALLOUT_LABELS, CHESSIMALS_BOT_PROFILES, CHEV_KEYS, CIRCLE_KEYS, COMMON_COUNTRY_CODES, COMMON_CURRENCIES, CORNER_KEYS, CTA_CARD_DEFAULTS, CURRENCY_INFO, CardComponent, CardSection, CardType, CardsCarouselComponent, ChangeEmailModalComponent, ChangePasswordModalComponent, ChatComposerComponent, ChatInputComponent, ChatWindowComponent, CheckInputComponent, CheckboxRadioInputComponent, ChessimalsGameComponent, ChessimalsOnlineService, ChipGroupComponent, CodeDisplayComponent, CommandDisplayComponent, CommentComponent, CommentInputComponent, CommentSectionComponent, CompanyFooterComponent, ComponentStates, ConfirmationDialogService, ContainerComponent, ContentLoaderComponent, ContentReactionComponent, ContentReactionModalComponent, ContentService, ContentTransformer, ConversationListItemComponent, ConversationService, CookieBannerComponent, CookieSettingsComponent, CountdownComponent, CreateOrgModalComponent, CtaCardComponent, CurrencyInputComponent, DEFAULT_ADS_CONFIG, DEFAULT_APP_CONFIG_SERVICE_CONFIG, DEFAULT_APP_VERSION_SERVICE_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_BACK_HEADER, DEFAULT_BUTTON_PRESETS, DEFAULT_CANCEL_BUTTON, DEFAULT_CHECK_INTERVAL_MS, DEFAULT_CONFIRM_BUTTON, DEFAULT_COUNTDOWN_LABELS, DEFAULT_COUNTDOWN_LABELS_EN, DEFAULT_DEBUG_CONSOLE_CONFIG, DEFAULT_DONATION_CONFIG, DEFAULT_EMPTY_STATE, DEFAULT_EMULATOR_CONFIG, DEFAULT_FEEDBACK_CONFIG, DEFAULT_FEEDBACK_TYPE_OPTIONS, DEFAULT_HOME_HEADER, DEFAULT_INFINITE_LIST_METADATA, DEFAULT_LOGIN_LOGO, DEFAULT_MODAL_CANCEL_BUTTON, DEFAULT_MODAL_CONFIRM_BUTTON, DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_PLATFORMS, DEFAULT_POST_UPDATE_GRACE_MS, DEFAULT_PRESETS, DEFAULT_REFRESHER_METADATA, DEFAULT_SKELETON_CONFIG, DEFAULT_SPLASH_SCREEN_CONFIG, DataTableComponent, DatasetPaginationService, DateInputComponent, DatePickerComponent, DateRangeInputComponent, DebugConsoleComponent, DeleteAccountModalComponent, DetailSkeletonComponent, DeviceService, DisplayComponent, DividerComponent, DocsApiTableComponent, DocsBreadcrumbComponent, DocsBuilder, DocsCalloutComponent, DocsCodeExampleComponent, DocsLayoutComponent, DocsNavLinksComponent, DocsNavigationService, DocsPageComponent, DocsSearchComponent, DocsSectionComponent, DocsShellComponent, DocsSidebarComponent, DocsTocComponent, DonationService, DownloadService, EditOrgModalComponent, EmptyStateComponent, EntityCardComponent, EntityFeedService, ExpandableTextComponent, ExternalBrowserService, FEATURES_LIST_DEFAULTS, FUN_MODAL_DEFAULTS, FabComponent, FaqComponent, FeaturesListComponent, FeedbackFormComponent, FeedbackService, FieldListComponent, FileInputComponent, FirebaseService, FirestoreCollectionFactory, FirestoreService, FontSizeOption, FontSizeSelectorComponent, FontSizeService, FooterComponent, FooterLinksComponent, FormComponent, FormFieldComponent, FormSchemaBuilderService, FormSkeletonComponent, FunHeaderComponent, FunModalComponent, GlassComponent, GlowCardComponent, GlowComponent, GridSkeletonComponent, HANDOFF_ROUTE_PARAM, HANDOFF_TOKEN_PARAM, HandoffService, HapticsService, HasPermissionDirective, HeaderActionsService, HeaderComponent, HintComponent, HorizontalScrollComponent, HrefComponent, HtmlViewerModalComponent, I18nService, IMAGE_DEFAULTS, INITIAL_AUTH_STATE, INITIAL_MFA_STATE, INVITATION_CARD_DEFAULTS, IONIC_COLORS$5 as IONIC_COLORS, Icon, IconComponent, IconService, ImageComponent, ImageCropComponent, ImageService, InAppBrowserService, InfiniteListComponent, InfoComponent, InputI18nHelper, InputType, InvitationCardComponent, InviteMemberModalComponent, ItemListComponent, KNOWN_ROUTES, LANG_STORAGE_KEY$1 as LANG_STORAGE_KEY, LEGAL_CONTENT_CONFIG, LOGGED_IN_HINT_COOKIE, LOGIN_DEFAULTS, LandingSplitComponent, LandingStepsComponent, LanguageSelectorComponent, LanguageSelectorV2Component, LayeredCardComponent, LegalContentService, LegalLinkService, LinkComponent, LinkProcessorService, LinkedProvidersComponent, LinksAccordionComponent, LinksCakeComponent, ListSkeletonComponent, LiveReadFallbackService, LoadMoreComponent, LoadingDirective, LocalStorageService, LocaleService, LoginAttemptModalComponent, LoginComponent, MEDIA_OBJECT_DEFAULTS, MEMBER_CARD_DEFAULTS, META_SCHEMA_VERSION, METRIC_CARD_DEFAULTS, MINI_GAME_PLAYER_AVATARS, MINI_GAME_PLAYER_COLORS, MODAL_SIZES, MOTIF_KEYS, MOTION, MaintenancePageComponent, MarkdownArticleParserService, MediaObjectComponent, MediaViewerModalComponent, MemberCardComponent, MemberDetailModalComponent, MemberImportModalComponent, MemoryGameComponent, MenuComponent, MessageBubbleComponent, MessagingService, MetaService, MetricCardComponent, MfaModalComponent, MiniGamePlayerProfileService, MiniGamesMenuComponent, ModalLayoutComponent, ModalService, ModalShellComponent, MultiSelectSearchComponent, NUM_KEYS, NavigationService, NetworkBannerComponent, NetworkStatusService, NewsBuilder, NoContentComponent, NotesBoxComponent, NotificationActionService, NotificationPreferencesViewComponent, NotificationsService, NotificationsViewComponent, NumberFromToComponent, NumberStepperComponent, OAUTH_PROVIDERS_INFO, OAuthCallbackComponent, OAuthService, OperationReferenceComponent, OptionCardsComponent, OrgInfoSheetComponent, OrgService, OrgSwitchService, OrganizationViewComponent, PATTERN_MOTIFS, PATTERN_PALETTES, PATTERN_STYLE_CONFIGS, PLATFORM_CONFIGS, POST_UPDATE_TS_KEY, PageContentComponent, PageLinksComponent, PageRefreshService, PageTemplateComponent, PageWavesComponent, PageWrapperComponent, PaginationComponent, PaginationService, PasswordInputComponent, PatternComponent, PdfService, PermissionCatalogService, PermissionSelectorComponent, PermissionsModalComponent, PermissionsViewComponent, PhoneDisplayComponent, PhoneFormatService, PhoneInputComponent, PickerV2Component, PillComponent, PinInputComponent, PlainCodeBoxComponent, PopoverSelectorComponent, PreferencesService, PreferencesViewComponent, PresetService, PriceTagComponent, PricingTableComponent, ProcessLinksPipe, ProfileContentComponent, ProfileModalComponent, ProfileSkeletonComponent, ProfileViewComponent, ProgressBarComponent, ProgressRingComponent, ProgressStatusComponent, PrompterComponent, QR_PRESETS, QrCodeComponent, QrGeneratorService, QrScannerComponent, QueryBuilder, QuoteBoxComponent, REQUEST_STATUSES, RadioInputComponent, RangeInputComponent, RatingComponent, ReactionBarComponent, ReactionsService, RefresherComponent, RequestFirestoreService, RequestFormBuilderService, RequestFormComponent, RequestModalComponent, RequestService, RetroAudioService, RightsFooterComponent, RotatingTextComponent, SEARCH_HEADER_DEFAULTS, SETTINGS_SECTIONS_CATALOG, SHAPE_KEYS, SHARE_PROFILE_MODAL_DEFAULTS, SKELETON_LAYOUT_DEFAULT_ROWS, SKELETON_PRESETS, SOLID_KEYS, STATS_BAR_DEFAULTS, STROKE_KEYS, SearchHeaderComponent, SearchSelectorComponent, SearchbarComponent, SectionHeaderComponent, SecurityViewComponent, SegmentControlComponent, SelectSearchComponent, SessionListModalComponent, SessionService, SessionTransitionOverlayComponent, SettingsHubComponent, ShareButtonsComponent, ShareProfileModalComponent, SimonGameComponent, SimpleComponent, SkeletonComponent, SkeletonLayoutComponent, SkeletonService, SplashComponent, SplashScreenService, StatsBarComponent, StatsCardComponent, StepperComponent, StorageService, SwipeCarouselComponent, SwitchOrgModalComponent, TRI_KEYS, TabbedContentComponent, TableSkeletonComponent, TabsComponent, Terminal404Component, TestimonialCardComponent, TestimonialCarouselComponent, TextComponent, TextInputComponent, TextareaInputComponent, ThemeOption, ThemeService, ThreadPanelComponent, TicketCardComponent, TicketCardImageService, TimelineComponent, TitleBlockComponent, TitleComponent, ToastService, ToggleInputComponent, TokenService, ToolbarActionType, ToolbarComponent, TransferOwnershipModalComponent, TranslatePipe, TypedCollection, TypingIndicatorComponent, UPDATE_BANNER_DEFAULT_CONTENT, UPDATE_BANNER_I18N_NAMESPACE, UpdateBannerComponent, UsageMetersComponent, UsageService, UserAvatarComponent, UsernameInputComponent, VALTECH_ADS_CONFIG, VALTECH_APP_CONFIG, VALTECH_APP_VERSION, VALTECH_AUTH_CONFIG, VALTECH_CHAT_CONFIG, VALTECH_COMPANY_LINKS, VALTECH_CONTENT_CONFIG, VALTECH_DEBUG_CONSOLE, VALTECH_DEFAULT_CONTENT, VALTECH_DONATION_CONFIG, VALTECH_FEEDBACK_CONFIG, VALTECH_FIREBASE_CONFIG, VALTECH_FOOTER_I18N, VALTECH_FOOTER_LOGO, VALTECH_LANGUAGE_SELECTOR, VALTECH_LEGAL_CONFIG, VALTECH_NETWORK_ERROR_KEY, VALTECH_REACTIONS_CONFIG, VALTECH_SETTINGS_MENU_LINKS, VALTECH_SITE_PATHS, VALTECH_SOCIAL_LINKS, VALTECH_SPLASH_SCREEN, VALTECH_WEB_BASE_URLS, VALTECH_WHATSAPP_CONFIG, VERSION, ValtechErrorService, VerifyViewComponent, WhatsappFabComponent, WhatsappService, WizardComponent, WizardFooterComponent, WorkflowService, applyChessimalsMove, applyDefaultValueToControl, authGuard, authInterceptor, authPasswordValidator, beautifyLegalArticle, blogPost, buildCompanyFooterProps, buildFooterLinks, buildLegalLinkResolver, buildPath, buildSettingsCards, button, canSubmitRequestType, chooseChessimalsBotMove, collections, connectPageRefresh, createChessimalsGame, createChessimalsReviewState, createErrorStateProps, createFirebaseConfig, createGlowCardProps, createInitialDatasetState, createInitialPaginationState, createNumberFromToField, createPageState, createPermissionLabeler, createRefreshableStream, createTitleProps, datasetPageFromLegacyCursor, docs, errorLoggingInterceptor, extractPathParams, formatClockTime, formatDateSeparator, formatRelativeTime, generatePatternTiles, generateRandomTile, getAppInfo, getAppVersion, getChessimalsAllLegalMoves, getChessimalsLegalMoves, getChessimalsPieceAt, getCollectionPath, getDocumentId, getTimeOfDayKey, goToTop, groupPermissionsByScope, guestGuard, hasEmulators, iconButton, interpretError, isAtEnd, isCollectionPath, isDocumentPath, isEmulatorMode, isIonicColor, isKnownRoute, isValidPath, joinPath, maxLength, mulberry32, news, parseMarkdownArticle, permissionGuard, permissionGuardFromRoute, positionKey, provideLegalContent, provideSplashScreen, provideValtechAboutRoutes, provideValtechAccountRoutes, provideValtechAds, provideValtechApiKeysRoutes, provideValtechAppConfig, provideValtechAppVersion, provideValtechAppVersionHttp, provideValtechAuth, provideValtechAuthInterceptor, provideValtechChat, provideValtechContent, provideValtechDebugConsole, provideValtechDonations, provideValtechErrorHandling, provideValtechFeedback, provideValtechFirebase, provideValtechI18n, provideValtechLegal, provideValtechNotificationClickActions, provideValtechNotificationPreferencesRoutes, provideValtechNotificationsRoutes, provideValtechOrganizationRoutes, provideValtechPermissionsRoutes, provideValtechPreferencesRoutes, provideValtechPresets, provideValtechProfileRoutes, provideValtechReactions, provideValtechSecurityRoutes, provideValtechSettingsRoutes, provideValtechSite, provideValtechSkeleton, provideValtechWhatsapp, query, rbacGuard, renderPatternSvgInner, replaceSpecialChars, requestSubmitMode, resignChessimalsGame, resolveColor, resolveInputDefaultValue, resolveIonicColor, resolveWebBaseUrl, roleGuard, selectableRequestTypes, storagePaths, superAdminGuard, toArticle, validateRoutes };
90696
+ export { ACTION_CARD_DEFAULTS, AD_SIZE_MAP, API_TABLE_COLUMN_LABELS, APP_VERSION_PLATFORM_PLUGIN, APP_VERSION_REMOTE_PLUGIN, ARTICLE_CARD_DEFAULTS, ARTICLE_SPACING, ARTICLE_STRIP_DEFAULTS, AUTH_CTA_DEFAULTS, AVATAR_UPLOAD_DEFAULTS, AboutViewComponent, AccordionComponent, AccountViewComponent, ActionCardComponent, ActionHeaderComponent, ActionType, AdSlotComponent, AdsLoaderService, AdsService, AlertBoxComponent, AnalyticsErrorHandler, AnalyticsRouterTracker, AnalyticsService, AnimatedTerminalComponent, ApiKeyCreateModalComponent, ApiKeyService, ApiKeysModalComponent, ApiKeysViewComponent, AppConfigService, AppVersionService, ArticleBuilder, ArticleCardComponent, ArticleComponent, ArticleStripComponent, AttachmentUploaderComponent, AuthBackgroundComponent, AuthCtaComponent, AuthService, AuthStateService, AuthStorageService, AuthSyncService, AvatarComponent, AvatarUploadComponent, BOTTOM_NAV_DEFAULTS, BannerComponent, BlogPostBuilder, BottomNavComponent, BoxComponent, BreadcrumbComponent, BubbleBlitzGameComponent, ButtonComponent, ButtonGroupComponent, CALLOUT_LABELS, CHESSIMALS_BOT_PROFILES, CHEV_KEYS, CIRCLE_KEYS, COMMON_COUNTRY_CODES, COMMON_CURRENCIES, CORNER_KEYS, CTA_CARD_DEFAULTS, CURRENCY_INFO, CardComponent, CardSection, CardType, CardsCarouselComponent, ChangeEmailModalComponent, ChangePasswordModalComponent, ChatComposerComponent, ChatInputComponent, ChatWindowComponent, CheckInputComponent, CheckboxRadioInputComponent, ChessimalsGameComponent, ChessimalsOnlineService, ChipGroupComponent, ChristianityGameComponent, CodeDisplayComponent, CommandDisplayComponent, CommentComponent, CommentInputComponent, CommentSectionComponent, CompanyFooterComponent, ComponentStates, ConfirmationDialogService, ContainerComponent, ContentLoaderComponent, ContentReactionComponent, ContentReactionModalComponent, ContentService, ContentTransformer, ConversationListItemComponent, ConversationService, CookieBannerComponent, CookieSettingsComponent, CountdownComponent, CreateOrgModalComponent, CtaCardComponent, CurrencyInputComponent, DEFAULT_ADS_CONFIG, DEFAULT_APP_CONFIG_SERVICE_CONFIG, DEFAULT_APP_VERSION_SERVICE_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_BACK_HEADER, DEFAULT_BUTTON_PRESETS, DEFAULT_CANCEL_BUTTON, DEFAULT_CHECK_INTERVAL_MS, DEFAULT_CONFIRM_BUTTON, DEFAULT_COUNTDOWN_LABELS, DEFAULT_COUNTDOWN_LABELS_EN, DEFAULT_DEBUG_CONSOLE_CONFIG, DEFAULT_DONATION_CONFIG, DEFAULT_EMPTY_STATE, DEFAULT_EMULATOR_CONFIG, DEFAULT_FEEDBACK_CONFIG, DEFAULT_FEEDBACK_TYPE_OPTIONS, DEFAULT_HOME_HEADER, DEFAULT_INFINITE_LIST_METADATA, DEFAULT_LOGIN_LOGO, DEFAULT_MODAL_CANCEL_BUTTON, DEFAULT_MODAL_CONFIRM_BUTTON, DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_PLATFORMS, DEFAULT_POST_UPDATE_GRACE_MS, DEFAULT_PRESETS, DEFAULT_REFRESHER_METADATA, DEFAULT_SKELETON_CONFIG, DEFAULT_SPLASH_SCREEN_CONFIG, DataTableComponent, DatasetPaginationService, DateInputComponent, DatePickerComponent, DateRangeInputComponent, DebugConsoleComponent, DeleteAccountModalComponent, DetailSkeletonComponent, DeviceService, DisplayComponent, DividerComponent, DocsApiTableComponent, DocsBreadcrumbComponent, DocsBuilder, DocsCalloutComponent, DocsCodeExampleComponent, DocsLayoutComponent, DocsNavLinksComponent, DocsNavigationService, DocsPageComponent, DocsSearchComponent, DocsSectionComponent, DocsShellComponent, DocsSidebarComponent, DocsTocComponent, DonationService, DownloadService, EditOrgModalComponent, EmptyStateComponent, EntityCardComponent, EntityFeedService, ExpandableTextComponent, ExternalBrowserService, FEATURES_LIST_DEFAULTS, FUN_MODAL_DEFAULTS, FabComponent, FaqComponent, FeaturesListComponent, FeedbackFormComponent, FeedbackService, FieldListComponent, FileInputComponent, FirebaseService, FirestoreCollectionFactory, FirestoreService, FontSizeOption, FontSizeSelectorComponent, FontSizeService, FooterComponent, FooterLinksComponent, FormComponent, FormFieldComponent, FormSchemaBuilderService, FormSkeletonComponent, FunHeaderComponent, FunModalComponent, GlassComponent, GlowCardComponent, GlowComponent, GridSkeletonComponent, HANDOFF_ROUTE_PARAM, HANDOFF_TOKEN_PARAM, HandoffService, HapticsService, HasPermissionDirective, HeaderActionsService, HeaderComponent, HintComponent, HorizontalScrollComponent, HrefComponent, HtmlViewerModalComponent, I18nService, IMAGE_DEFAULTS, INITIAL_AUTH_STATE, INITIAL_MFA_STATE, INVITATION_CARD_DEFAULTS, IONIC_COLORS$5 as IONIC_COLORS, Icon, IconComponent, IconService, ImageComponent, ImageCropComponent, ImageService, InAppBrowserService, InfiniteListComponent, InfoComponent, InputI18nHelper, InputType, InvitationCardComponent, InviteMemberModalComponent, ItemListComponent, KNOWN_ROUTES, LANG_STORAGE_KEY$1 as LANG_STORAGE_KEY, LEGAL_CONTENT_CONFIG, LOGGED_IN_HINT_COOKIE, LOGIN_DEFAULTS, LandingSplitComponent, LandingStepsComponent, LanguageSelectorComponent, LanguageSelectorV2Component, LayeredCardComponent, LegalContentService, LegalLinkService, LightRippleDirective, LinkComponent, LinkProcessorService, LinkedProvidersComponent, LinksAccordionComponent, LinksCakeComponent, ListSkeletonComponent, LiveReadFallbackService, LoadMoreComponent, LoadingDirective, LocalStorageService, LocaleService, LoginAttemptModalComponent, LoginComponent, MEDIA_OBJECT_DEFAULTS, MEMBER_CARD_DEFAULTS, META_SCHEMA_VERSION, METRIC_CARD_DEFAULTS, MINI_GAME_PLAYER_AVATARS, MINI_GAME_PLAYER_COLORS, MODAL_SIZES, MOTIF_KEYS, MOTION, MaintenancePageComponent, MarkdownArticleParserService, MediaObjectComponent, MediaViewerModalComponent, MemberCardComponent, MemberDetailModalComponent, MemberImportModalComponent, MemoryGameComponent, MenuComponent, MessageBubbleComponent, MessagingService, MetaService, MetricCardComponent, MfaModalComponent, MiniGamePlayerProfileService, MiniGamesMenuComponent, ModalLayoutComponent, ModalService, ModalShellComponent, MultiSelectSearchComponent, NUM_KEYS, NavigationService, NetworkBannerComponent, NetworkStatusService, NewsBuilder, NoContentComponent, NotesBoxComponent, NotificationActionService, NotificationPreferencesViewComponent, NotificationsService, NotificationsViewComponent, NumberFromToComponent, NumberStepperComponent, OAUTH_PROVIDERS_INFO, OAuthCallbackComponent, OAuthService, OperationReferenceComponent, OptionCardsComponent, OrgInfoSheetComponent, OrgService, OrgSwitchService, OrganizationViewComponent, PATTERN_MOTIFS, PATTERN_PALETTES, PATTERN_STYLE_CONFIGS, PLATFORM_CONFIGS, POST_UPDATE_TS_KEY, PageContentComponent, PageLinksComponent, PageRefreshService, PageTemplateComponent, PageWavesComponent, PageWrapperComponent, PaginationComponent, PaginationService, PasswordInputComponent, PatternComponent, PdfService, PermissionCatalogService, PermissionSelectorComponent, PermissionsModalComponent, PermissionsViewComponent, PhoneDisplayComponent, PhoneFormatService, PhoneInputComponent, PickerV2Component, PillComponent, PinInputComponent, PlainCodeBoxComponent, PopoverSelectorComponent, PreferencesService, PreferencesViewComponent, PresetService, PriceTagComponent, PricingTableComponent, ProcessLinksPipe, ProfileContentComponent, ProfileModalComponent, ProfileSkeletonComponent, ProfileViewComponent, ProgressBarComponent, ProgressRingComponent, ProgressStatusComponent, PrompterComponent, QR_PRESETS, QrCodeComponent, QrGeneratorService, QrScannerComponent, QueryBuilder, QuoteBoxComponent, REQUEST_STATUSES, RadioInputComponent, RangeInputComponent, RatingComponent, ReactionBarComponent, ReactionsService, RefresherComponent, RequestFirestoreService, RequestFormBuilderService, RequestFormComponent, RequestModalComponent, RequestService, RetroAudioService, RightsFooterComponent, RotatingTextComponent, SEARCH_HEADER_DEFAULTS, SETTINGS_SECTIONS_CATALOG, SHAPE_KEYS, SHARE_PROFILE_MODAL_DEFAULTS, SKELETON_LAYOUT_DEFAULT_ROWS, SKELETON_PRESETS, SOLID_KEYS, STATS_BAR_DEFAULTS, STROKE_KEYS, SearchHeaderComponent, SearchSelectorComponent, SearchbarComponent, SectionHeaderComponent, SecurityViewComponent, SegmentControlComponent, SelectSearchComponent, SessionListModalComponent, SessionService, SessionTransitionOverlayComponent, SettingsHubComponent, ShareButtonsComponent, ShareProfileModalComponent, SimonGameComponent, SimpleComponent, SkeletonComponent, SkeletonLayoutComponent, SkeletonService, SplashComponent, SplashScreenService, StatsBarComponent, StatsCardComponent, StepperComponent, StorageService, SwipeCarouselComponent, SwitchOrgModalComponent, TRI_KEYS, TabbedContentComponent, TableSkeletonComponent, TabsComponent, Terminal404Component, TestimonialCardComponent, TestimonialCarouselComponent, TextComponent, TextInputComponent, TextareaInputComponent, ThemeOption, ThemeService, ThreadPanelComponent, TicketCardComponent, TicketCardImageService, TimelineComponent, TitleBlockComponent, TitleComponent, ToastService, ToggleInputComponent, TokenService, ToolbarActionType, ToolbarComponent, TransferOwnershipModalComponent, TranslatePipe, TypedCollection, TypingIndicatorComponent, UPDATE_BANNER_DEFAULT_CONTENT, UPDATE_BANNER_I18N_NAMESPACE, UpdateBannerComponent, UsageMetersComponent, UsageService, UserAvatarComponent, UsernameInputComponent, VALTECH_ADS_CONFIG, VALTECH_APP_CONFIG, VALTECH_APP_VERSION, VALTECH_AUTH_CONFIG, VALTECH_CHAT_CONFIG, VALTECH_COMPANY_LINKS, VALTECH_CONTENT_CONFIG, VALTECH_DEBUG_CONSOLE, VALTECH_DEFAULT_CONTENT, VALTECH_DONATION_CONFIG, VALTECH_FEEDBACK_CONFIG, VALTECH_FIREBASE_CONFIG, VALTECH_FOOTER_I18N, VALTECH_FOOTER_LOGO, VALTECH_LANGUAGE_SELECTOR, VALTECH_LEGAL_CONFIG, VALTECH_NETWORK_ERROR_KEY, VALTECH_REACTIONS_CONFIG, VALTECH_SETTINGS_MENU_LINKS, VALTECH_SITE_PATHS, VALTECH_SOCIAL_LINKS, VALTECH_SPLASH_SCREEN, VALTECH_WEB_BASE_URLS, VALTECH_WHATSAPP_CONFIG, VERSION, ValtechErrorService, VerifyViewComponent, WhatsappFabComponent, WhatsappService, WizardComponent, WizardFooterComponent, WorkflowService, applyChessimalsMove, applyDefaultValueToControl, authGuard, authInterceptor, authPasswordValidator, beautifyLegalArticle, blogPost, buildCompanyFooterProps, buildFooterLinks, buildLegalLinkResolver, buildPath, buildSettingsCards, button, canSubmitRequestType, chooseChessimalsBotMove, collections, connectPageRefresh, createChessimalsGame, createChessimalsReviewState, createErrorStateProps, createFirebaseConfig, createGlowCardProps, createInitialDatasetState, createInitialPaginationState, createNumberFromToField, createPageState, createPermissionLabeler, createRefreshableStream, createTitleProps, datasetPageFromLegacyCursor, docs, errorLoggingInterceptor, extractPathParams, formatClockTime, formatDateSeparator, formatRelativeTime, generatePatternTiles, generateRandomTile, getAppInfo, getAppVersion, getChessimalsAllLegalMoves, getChessimalsLegalMoves, getChessimalsPieceAt, getCollectionPath, getDocumentId, getTimeOfDayKey, goToTop, groupPermissionsByScope, guestGuard, hasEmulators, iconButton, interpretError, isAtEnd, isCollectionPath, isDocumentPath, isEmulatorMode, isIonicColor, isKnownRoute, isValidPath, joinPath, maxLength, mulberry32, news, parseMarkdownArticle, permissionGuard, permissionGuardFromRoute, positionKey, provideLegalContent, provideSplashScreen, provideValtechAboutRoutes, provideValtechAccountRoutes, provideValtechAds, provideValtechApiKeysRoutes, provideValtechAppConfig, provideValtechAppVersion, provideValtechAppVersionHttp, provideValtechAuth, provideValtechAuthInterceptor, provideValtechChat, provideValtechContent, provideValtechDebugConsole, provideValtechDonations, provideValtechErrorHandling, provideValtechFeedback, provideValtechFirebase, provideValtechI18n, provideValtechLegal, provideValtechNotificationClickActions, provideValtechNotificationPreferencesRoutes, provideValtechNotificationsRoutes, provideValtechOrganizationRoutes, provideValtechPermissionsRoutes, provideValtechPreferencesRoutes, provideValtechPresets, provideValtechProfileRoutes, provideValtechReactions, provideValtechSecurityRoutes, provideValtechSettingsRoutes, provideValtechSite, provideValtechSkeleton, provideValtechWhatsapp, query, rbacGuard, renderPatternSvgInner, replaceSpecialChars, requestSubmitMode, resignChessimalsGame, resolveColor, resolveInputDefaultValue, resolveIonicColor, resolveWebBaseUrl, roleGuard, selectableRequestTypes, storagePaths, superAdminGuard, toArticle, validateRoutes };
87708
90697
  //# sourceMappingURL=valtech-components.mjs.map