| Server IP : 167.235.67.158 / Your IP : 216.73.216.95 Web Server : Apache System : Linux ubuntu-8gb-nbg1-1 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : upstairsbar.co.uk ( 982) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/bc.the-word.com/2026/ |
Upload File : |
/* ============================================
2026 Challenge Calendar - Space Theme
============================================ */
/* CSS Variables */
:root {
--bg-deep-space: #0a0a1a;
--bg-nebula: #0d0d2b;
--tile-locked: #1a1a3a;
--tile-locked-border: #2a2a4a;
--tile-unlocked: #4a2c82;
--tile-unlocked-glow: #7c3aed;
--tile-opened: #fbbf24;
--tile-opened-glow: #f59e0b;
--cosmic-purple: #8b5cf6;
--cosmic-blue: #3b82f6;
--cosmic-pink: #ec4899;
--cosmic-cyan: #06b6d4;
--star-white: #ffffff;
--text-primary: #f8fafc;
--text-secondary: #94a3b8;
/* Tile sizing */
--tile-size: 60px;
--tile-gap: 8px;
--tile-radius: 8px;
}
/* Reset & Base */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body {
width: 100%;
height: 100%;
overflow: hidden;
touch-action: none;
-webkit-touch-callout: none;
-webkit-user-select: none;
user-select: none;
}
body {
font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg-deep-space);
color: var(--text-primary);
}
/* Starfield Canvas */
#starfield {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
pointer-events: none;
}
/* Main App Container */
#app {
position: relative;
width: 100%;
height: 100%;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
}
/* Viewport for zoom/pan */
#viewport {
width: 100%;
height: 100%;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
cursor: grab;
}
#viewport:active {
cursor: grabbing;
}
#viewport.zooming {
cursor: zoom-in;
}
/* Pixel Grid Container */
#pixel-grid {
display: grid;
gap: var(--tile-gap);
transform-origin: center center;
transition: transform 0.3s ease-out;
padding: 40px;
}
/* Individual Pixel Tile */
.pixel-tile {
width: var(--tile-size);
height: var(--tile-size);
border-radius: var(--tile-radius);
position: relative;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 14px;
}
/* Locked Tile State */
.pixel-tile.locked {
background: linear-gradient(145deg, var(--tile-locked) 0%, #12122a 100%);
border: 2px solid var(--tile-locked-border);
box-shadow:
0 4px 15px rgba(0, 0, 0, 0.4),
inset 0 1px 0 rgba(255, 255, 255, 0.05);
color: var(--text-secondary);
opacity: 0.7;
}
.pixel-tile.locked::after {
content: '🔒';
font-size: 18px;
opacity: 0.6;
}
.pixel-tile.locked:hover {
transform: scale(1.02);
opacity: 0.85;
}
.pixel-tile.locked:active {
animation: shake 0.5s ease-in-out;
}
/* Unlocked Tile State */
.pixel-tile.unlocked {
background: linear-gradient(145deg, var(--tile-unlocked) 0%, #3a1c62 100%);
border: 2px solid var(--tile-unlocked-glow);
box-shadow:
0 0 20px rgba(124, 58, 237, 0.4),
0 0 40px rgba(124, 58, 237, 0.2),
0 4px 15px rgba(0, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
color: var(--text-primary);
animation: pulse-glow 3s ease-in-out infinite;
}
.pixel-tile.unlocked .week-num {
font-size: 16px;
font-weight: 800;
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.pixel-tile.unlocked:hover {
transform: scale(1.08) translateY(-2px);
box-shadow:
0 0 30px rgba(124, 58, 237, 0.6),
0 0 60px rgba(124, 58, 237, 0.3),
0 8px 25px rgba(0, 0, 0, 0.4);
}
.pixel-tile.unlocked:active {
transform: scale(0.98);
}
/* Opened/Completed Tile State */
.pixel-tile.opened {
background: linear-gradient(145deg, var(--tile-opened) 0%, #d97706 100%);
border: 2px solid var(--tile-opened-glow);
box-shadow:
0 0 20px rgba(251, 191, 36, 0.4),
0 0 40px rgba(251, 191, 36, 0.2),
0 4px 15px rgba(0, 0, 0, 0.3);
color: #1a1a1a;
}
.pixel-tile.opened .week-num {
font-size: 16px;
font-weight: 800;
}
.pixel-tile.opened::before {
content: '✓';
position: absolute;
top: 4px;
right: 6px;
font-size: 12px;
color: #1a1a1a;
font-weight: 900;
}
.pixel-tile.opened:hover {
transform: scale(1.05);
}
/* Pulsing glow animation */
@keyframes pulse-glow {
0%, 100% {
box-shadow:
0 0 20px rgba(124, 58, 237, 0.4),
0 0 40px rgba(124, 58, 237, 0.2),
0 4px 15px rgba(0, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
50% {
box-shadow:
0 0 30px rgba(124, 58, 237, 0.6),
0 0 60px rgba(124, 58, 237, 0.3),
0 4px 15px rgba(0, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
}
/* Shake animation for locked tiles */
@keyframes shake {
0%, 100% { transform: translateX(0); }
10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
20%, 40%, 60%, 80% { transform: translateX(5px); }
}
/* Week Indicator (shows when zoomed in) */
#week-indicator {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%);
background: rgba(10, 10, 26, 0.9);
backdrop-filter: blur(10px);
border: 1px solid rgba(124, 58, 237, 0.3);
border-radius: 20px;
padding: 10px 20px;
display: flex;
gap: 12px;
align-items: center;
z-index: 100;
transition: opacity 0.3s, transform 0.3s;
}
#week-indicator.hidden {
opacity: 0;
transform: translateX(-50%) translateY(-20px);
pointer-events: none;
}
#week-number {
font-weight: 700;
color: var(--cosmic-purple);
}
#week-date {
color: var(--text-secondary);
font-size: 14px;
}
/* Modal Overlay */
#modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(10, 10, 26, 0.95);
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
opacity: 1;
transition: opacity 0.3s ease;
}
#modal-overlay.hidden {
opacity: 0;
pointer-events: none;
}
/* 3D Cube Container */
#cube-container {
perspective: 1000px;
width: 200px;
height: 200px;
}
#cube {
width: 100%;
height: 100%;
position: relative;
transform-style: preserve-3d;
transform: translateZ(-100px) rotateX(0deg) rotateY(0deg);
transition: transform 1.5s ease-in-out;
}
#cube.spinning {
animation: cube-spin 1.5s ease-in-out forwards;
}
#cube.opening {
animation: cube-open 1s ease-in-out forwards;
}
@keyframes cube-spin {
0% {
transform: translateZ(-100px) rotateX(0deg) rotateY(0deg) scale(0.5);
}
50% {
transform: translateZ(-100px) rotateX(180deg) rotateY(180deg) scale(1.2);
}
100% {
transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) scale(1);
}
}
@keyframes cube-open {
0% {
transform: translateZ(-100px) rotateX(0deg) rotateY(0deg) scale(1);
}
100% {
transform: translateZ(-100px) rotateX(0deg) rotateY(0deg) scale(0);
opacity: 0;
}
}
.cube-face {
position: absolute;
width: 200px;
height: 200px;
border: 3px solid var(--cosmic-purple);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
font-weight: 700;
backface-visibility: visible;
}
.cube-face.front {
background: linear-gradient(145deg, var(--tile-unlocked) 0%, #3a1c62 100%);
transform: rotateY(0deg) translateZ(100px);
}
.cube-face.back {
background: linear-gradient(145deg, #2a1c52 0%, #1a0c42 100%);
transform: rotateY(180deg) translateZ(100px);
}
.cube-face.right {
background: linear-gradient(145deg, #3a2c72 0%, #2a1c52 100%);
transform: rotateY(90deg) translateZ(100px);
}
.cube-face.left {
background: linear-gradient(145deg, #3a2c72 0%, #2a1c52 100%);
transform: rotateY(-90deg) translateZ(100px);
}
.cube-face.top {
background: linear-gradient(145deg, #4a3c82 0%, #3a2c72 100%);
transform: rotateX(90deg) translateZ(100px);
}
.cube-face.bottom {
background: linear-gradient(145deg, #1a0c32 0%, #0a0022 100%);
transform: rotateX(-90deg) translateZ(100px);
}
.week-badge {
background: rgba(0, 0, 0, 0.3);
padding: 15px 30px;
border-radius: 10px;
color: white;
text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}
/* Challenge Content Card */
#challenge-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 90%;
max-width: 400px;
opacity: 1;
transition: opacity 0.5s ease;
}
#challenge-content.hidden {
opacity: 0;
pointer-events: none;
}
.challenge-card {
background: linear-gradient(145deg, rgba(74, 44, 130, 0.95) 0%, rgba(30, 20, 60, 0.98) 100%);
border: 2px solid var(--cosmic-purple);
border-radius: 20px;
padding: 30px;
box-shadow:
0 0 40px rgba(124, 58, 237, 0.4),
0 20px 60px rgba(0, 0, 0, 0.5);
backdrop-filter: blur(10px);
animation: card-appear 0.5s ease-out;
}
@keyframes card-appear {
from {
transform: scale(0.8);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
.challenge-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}
.challenge-week {
font-size: 20px;
font-weight: 800;
color: var(--cosmic-purple);
background: rgba(124, 58, 237, 0.2);
padding: 8px 16px;
border-radius: 20px;
}
.challenge-date {
color: var(--text-secondary);
font-size: 14px;
}
.challenge-text {
font-size: 22px;
line-height: 1.5;
color: var(--text-primary);
text-align: center;
padding: 20px 0;
min-height: 100px;
display: flex;
align-items: center;
justify-content: center;
}
.close-btn {
width: 100%;
padding: 16px;
margin-top: 20px;
background: linear-gradient(145deg, var(--tile-opened) 0%, #d97706 100%);
border: none;
border-radius: 12px;
color: #1a1a1a;
font-size: 18px;
font-weight: 700;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
}
.close-btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}
.close-btn:active {
transform: translateY(0);
}
/* Confetti Canvas */
#confetti-canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 2000;
}
/* Locked Toast Message */
#locked-toast {
position: fixed;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
background: rgba(26, 26, 58, 0.95);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
padding: 16px 24px;
display: flex;
align-items: center;
gap: 12px;
z-index: 500;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
animation: toast-appear 0.3s ease-out;
}
#locked-toast.hidden {
opacity: 0;
transform: translateX(-50%) translateY(20px);
pointer-events: none;
transition: opacity 0.3s, transform 0.3s;
}
@keyframes toast-appear {
from {
opacity: 0;
transform: translateX(-50%) translateY(20px);
}
to {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
}
.lock-icon {
font-size: 24px;
}
#locked-message {
color: var(--text-primary);
font-size: 16px;
}
/* Zoom Controls (optional - for accessibility) */
.zoom-controls {
position: fixed;
bottom: 20px;
right: 20px;
display: flex;
flex-direction: column;
gap: 10px;
z-index: 100;
}
.zoom-btn {
width: 50px;
height: 50px;
border-radius: 50%;
border: 2px solid var(--cosmic-purple);
background: rgba(10, 10, 26, 0.9);
color: var(--text-primary);
font-size: 24px;
cursor: pointer;
transition: all 0.2s;
}
.zoom-btn:hover {
background: var(--cosmic-purple);
}
/* Loading State */
.loading {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
font-size: 24px;
color: var(--cosmic-purple);
}
.loading::after {
content: '';
width: 40px;
height: 40px;
margin-left: 20px;
border: 4px solid rgba(124, 58, 237, 0.3);
border-top-color: var(--cosmic-purple);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Responsive adjustments */
@media (max-width: 768px) {
:root {
--tile-size: 45px;
--tile-gap: 6px;
}
.challenge-card {
padding: 20px;
}
.challenge-text {
font-size: 18px;
}
}
@media (max-width: 480px) {
:root {
--tile-size: 38px;
--tile-gap: 5px;
}
}
/* iPad specific */
@media (min-width: 768px) and (max-width: 1024px) {
:root {
--tile-size: 55px;
--tile-gap: 7px;
}
}
/* High contrast for accessibility */
@media (prefers-contrast: high) {
.pixel-tile.locked {
border-width: 3px;
}
.pixel-tile.unlocked {
border-width: 3px;
}
}
/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}