1992 lines
45 KiB
CSS
Raw Permalink Normal View History

2026-01-17 18:26:36 -05:00
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
font-family: 'Courier New', monospace;
image-rendering: pixelated;
}
.player {
width: 600px;
background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #0f0f0f 100%);
border: 8px solid #0a0a0a;
box-shadow:
inset 0 0 10px rgba(0,0,0,0.1),
0 30px 60px rgba(0,0,0,0.8),
5px 5px 0 rgba(0,0,0,0.3);
/* Extra top padding to accommodate eject/lightning buttons */
padding: 60px 30px 30px 30px;
position: relative;
transform: perspective(1000px) rotateX(1deg);
}
/* Heavy damage and scratches */
.player::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: url('background.webp');
2026-01-17 18:26:36 -05:00
background-size: 100%;
background-position: center;
background-repeat: repeat;
pointer-events: none;
opacity: 0.20;
mix-blend-mode: normal;
}
/* Eject button - positioned top-left of player */
.eject-btn {
position: absolute;
top: 15px;
left: 30px;
width: 50px;
height: 35px;
background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
border: 4px solid #0a0a0a;
cursor: pointer;
box-shadow:
inset 0 -3px 0 rgba(0,0,0,0.5),
inset 2px 0 0 rgba(80, 50, 20, 0.3),
0 3px 6px rgba(0,0,0,0.6);
transition: all 0.1s;
display: flex;
align-items: center;
justify-content: center;
}
/* Lightning button - positioned top-right of player */
.lightning-btn {
position: absolute;
top: 15px;
right: 30px;
width: 50px;
height: 35px;
background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
border: 4px solid #0a0a0a;
cursor: pointer;
box-shadow:
inset 0 -3px 0 rgba(0,0,0,0.5),
inset 2px 0 0 rgba(80, 50, 20, 0.3),
0 3px 6px rgba(0,0,0,0.6);
transition: all 0.1s;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
color: #cc8800;
text-shadow: 0 0 3px rgba(255, 170, 0, 0.3);
}
.lightning-btn::before,
.lightning-btn::after {
content: none;
}
.lightning-btn:active,
.eject-btn:active {
transform: translateY(2px);
box-shadow:
inset 0 -1px 0 rgba(0,0,0,0.5),
0 1px 3px rgba(0,0,0,0.6);
}
/* Eject icon: triangle pointing up */
.eject-btn::before {
content: '';
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 10px solid #666;
position: absolute;
top: 6px;
filter: drop-shadow(0 0 2px rgba(255, 0, 255, 0.3));
}
/* Eject icon: bar underneath triangle */
.eject-btn::after {
content: '';
position: absolute;
bottom: 6px;
width: 18px;
height: 3px;
background: #666;
}
.display {
background: linear-gradient(180deg, #0a1a0a 0%, #050f05 100%);
border: 4px solid #000;
padding: 15px;
/* Spacing: top margin matches bottom margin for symmetry with buttons above */
margin-top: 15px;
margin-bottom: 25px;
box-shadow:
inset 0 0 30px rgba(0,0,0,0.9),
inset 0 0 5px rgba(0,255,0,0.1);
position: relative;
overflow: hidden;
}
/* Cracked display effect */
.display::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image:
linear-gradient(120deg, transparent 0%, transparent 48%, rgba(255,255,255,0.05) 48.5%, transparent 49%),
linear-gradient(60deg, transparent 0%, transparent 68%, rgba(255,255,255,0.03) 68.5%, transparent 69%),
repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.6) 2px, rgba(0,0,0,0.6) 3px);
pointer-events: none;
z-index: 2;
}
/* Flickering scanlines */
.display::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0,0,0,0.5) 1px, rgba(0,0,0,0.5) 2px);
pointer-events: none;
animation: flicker 4s infinite;
z-index: 3;
2026-01-18 18:51:11 -05:00
will-change: opacity; /* Performance: GPU-accelerated opacity animation */
2026-01-17 18:26:36 -05:00
}
@keyframes flicker {
0%, 100% { opacity: 0.8; }
50% { opacity: 0.6; }
51% { opacity: 1; }
52% { opacity: 0.7; }
}
/* ========================================
DISPLAY GLITCH EFFECTS - START
Random visual glitches for dystopian aesthetic
======================================== */
/* RGB Chromatic Aberration Glitch */
.display.glitch-rgb .display-text-inner,
.display.glitch-rgb .time-display {
animation: rgbGlitch 0.08s steps(2) infinite;
}
@keyframes rgbGlitch {
0% {
text-shadow:
-2px 0 #ff0000,
2px 0 #00ffff,
0 0 10px #00ff00,
0 0 20px #00ff00;
transform: translateX(-1px);
}
50% {
text-shadow:
2px 0 #ff0000,
-2px 0 #00ffff,
0 0 10px #00ff00,
0 0 20px #00ff00;
transform: translateX(1px);
}
100% {
text-shadow:
-1px 0 #ff0000,
1px 0 #00ffff,
0 0 10px #00ff00,
0 0 20px #00ff00;
transform: translateX(0);
}
}
/* Intermittent Display Failure (Blackout) */
.display.blackout {
filter: brightness(0);
}
.display.blackout .display-text,
.display.blackout .display-text-inner,
.display.blackout .time-display {
opacity: 0 !important;
text-shadow: none !important;
}
/* VHS Tracking Lines Overlay */
.vhs-tracking {
position: absolute;
top: 0;
left: 0;
pointer-events: none;
opacity: 0;
z-index: 15;
}
/* Vertical tracking (default) - lines scroll up */
.vhs-tracking.vertical {
right: 0;
bottom: auto;
width: 100%;
height: 200%;
background: repeating-linear-gradient(
0deg,
transparent 0px,
transparent 8px,
rgba(255, 255, 255, 0.06) 8px,
rgba(255, 255, 255, 0.06) 12px,
transparent 12px,
transparent 25px,
rgba(0, 255, 0, 0.03) 25px,
rgba(0, 255, 0, 0.03) 28px
);
}
/* Horizontal tracking - lines scroll left */
.vhs-tracking.horizontal {
bottom: 0;
right: auto;
width: 200%;
height: 100%;
background: repeating-linear-gradient(
90deg,
transparent 0px,
transparent 8px,
rgba(255, 255, 255, 0.06) 8px,
rgba(255, 255, 255, 0.06) 12px,
transparent 12px,
transparent 25px,
rgba(0, 255, 0, 0.03) 25px,
rgba(0, 255, 0, 0.03) 28px
);
}
.vhs-tracking.active.vertical {
opacity: 1;
animation: vhsScrollVertical 0.4s linear;
2026-01-18 18:51:11 -05:00
will-change: transform, opacity; /* Performance: GPU-accelerated animation */
2026-01-17 18:26:36 -05:00
}
.vhs-tracking.active.horizontal {
opacity: 1;
animation: vhsScrollHorizontal 0.4s linear;
2026-01-18 18:51:11 -05:00
will-change: transform, opacity; /* Performance: GPU-accelerated animation */
2026-01-17 18:26:36 -05:00
}
@keyframes vhsScrollVertical {
from { transform: translateY(-50%); }
to { transform: translateY(0); }
}
@keyframes vhsScrollHorizontal {
from { transform: translateX(-50%); }
to { transform: translateX(0); }
}
/* Dim Spots - worn/aged phosphor effect on CRT */
.dim-spots-container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
z-index: 20;
overflow: hidden;
2026-01-18 18:51:11 -05:00
contain: strict; /* Performance: isolates paint scope for animated children */
2026-01-17 18:26:36 -05:00
}
.dim-spot {
position: absolute;
pointer-events: none;
will-change: transform;
}
/* Individual spot styles and animations */
.dim-spot-1 {
top: 10%;
left: 0%;
width: 50%;
height: 60%;
background: radial-gradient(ellipse 70% 75% at center, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
animation: dimSpotDrift1 45s ease-in-out infinite;
}
.dim-spot-2 {
top: 5%;
right: 0%;
width: 40%;
height: 50%;
background: radial-gradient(ellipse 75% 80% at center, rgba(0, 0, 0, 0.4) 0%, transparent 65%);
animation: dimSpotDrift2 55s ease-in-out infinite;
}
.dim-spot-3 {
bottom: 5%;
left: 10%;
width: 35%;
height: 45%;
background: radial-gradient(ellipse 70% 75% at center, rgba(0, 0, 0, 0.45) 0%, transparent 60%);
animation: dimSpotDrift3 50s ease-in-out infinite;
}
/* Slow drifting animations - each spot moves in a different pattern */
@keyframes dimSpotDrift1 {
0%, 100% { transform: translate(0%, 0%); }
25% { transform: translate(8%, 5%); }
50% { transform: translate(5%, -8%); }
75% { transform: translate(-5%, 3%); }
}
@keyframes dimSpotDrift2 {
0%, 100% { transform: translate(0%, 0%); }
25% { transform: translate(-10%, 6%); }
50% { transform: translate(-5%, 10%); }
75% { transform: translate(5%, -5%); }
}
@keyframes dimSpotDrift3 {
0%, 100% { transform: translate(0%, 0%); }
25% { transform: translate(6%, -8%); }
50% { transform: translate(12%, -3%); }
75% { transform: translate(-4%, -10%); }
}
/* ========================================
DISPLAY GLITCH EFFECTS - END
======================================== */
/* Track name text - scrolls when playing (JS controlled) */
.display-text {
color: #00ff00;
font-size: 18px;
text-shadow:
0 0 10px #00ff00,
0 0 20px #00ff00,
0 0 30px #00ff00;
letter-spacing: 2px;
margin-bottom: 10px;
position: relative;
z-index: 1;
white-space: nowrap;
overflow: hidden;
}
/* Inner span - position controlled by JavaScript for bounce effect */
.display-text-inner {
display: inline-block;
position: relative;
left: 0;
}
.time-display {
color: #00ff00;
font-size: 24px;
font-weight: bold;
text-shadow:
0 0 10px #00ff00,
0 0 20px #00ff00;
letter-spacing: 3px;
position: relative;
z-index: 1;
}
.cassette {
background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #0f0f0f 100%);
border: 6px solid #000;
border-radius: 4px;
padding: 20px;
margin-bottom: 30px;
position: relative;
box-shadow:
inset 0 0 40px rgba(0,0,0,0.9),
inset 5px 5px 20px rgba(0,0,0,0.8);
transform: perspective(800px) rotateX(2deg);
/* Prevent text selection during reel drag */
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Damage on cassette housing */
/* Removed by popular demand, leave code in place, even during "dead code" audits.
.cassette::before {
content: '';
position: absolute;
top: 10px;
right: 20px;
width: 40px;
height: 30px;
background: radial-gradient(ellipse, rgba(255, 0, 255, 0.2) 0%, transparent 70%);
border: 2px solid rgba(255, 0, 255, 0.3);
border-radius: 3px;
pointer-events: none;
}
*/
.cassette-label {
background: linear-gradient(180deg, #d0d0d0 0%, #a0a0a0 100%);
border: 3px solid #000;
padding: 15px;
text-align: center;
margin-bottom: 20px;
font-size: 14px;
color: #1a1a1a;
font-weight: bold;
box-shadow:
inset 0 0 30px rgba(0,0,0,0.3),
inset 3px 3px 10px rgba(0,0,0,0.4);
position: relative;
overflow: hidden;
/* Prevent text selection during reel drag */
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Faded neon cyan showing through wear */
.cassette-label::before {
content: '';
position: absolute;
top: 5px;
left: 10px;
width: 50px;
height: 20px;
background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
pointer-events: none;
filter: blur(2px);
}
/* Faded magenta showing through wear */
.cassette-label::after {
content: '';
position: absolute;
bottom: 8px;
right: 15px;
width: 40px;
height: 15px;
background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.3), transparent);
pointer-events: none;
filter: blur(2px);
}
.reel {
width: 80px;
height: 80px;
border: 1px solid #000;
border-radius: 50%;
background: #0a0a0a;
position: absolute;
top: 50%;
transform: translateY(-50%);
box-shadow:
inset 0 0 20px rgba(0,0,0,0.9),
inset 0 0 5px rgba(139, 69, 19, 0.3);
/* Prevent text selection during drag */
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: ns-resize;
}
.reel-left {
left: 30px;
}
.reel-right {
right: 30px;
}
.tape-wound {
position: absolute;
/* Center using top/left 50% with negative margins (Safari-safe) */
top: 50%;
left: 50%;
/* Use negative margins for centering instead of transform */
margin-left: calc(var(--tape-size, 72px) / -2);
margin-top: calc(var(--tape-size, 72px) / -2);
border-radius: 50%;
/* Darker tape color */
background: linear-gradient(135deg, #1a1815 0%, #0f0d0a 50%, #050403 100%);
box-shadow:
inset 0 0 10px rgba(0,0,0,0.9),
0 0 3px rgba(0,0,0,0.7);
z-index: 1;
/* Size controlled by JavaScript via CSS custom property */
width: var(--tape-size, 72px);
height: var(--tape-size, 72px);
/* Safari animation optimizations */
transform-origin: center center;
will-change: transform;
/* Prevent text selection during drag */
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: ns-resize;
}
.tape-wound.spinning {
animation: spinTape 2s linear infinite;
}
@keyframes spinTape {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.reel-inner {
width: 60px;
height: 60px;
border-radius: 50%;
background: conic-gradient(
from 0deg,
#2a2a2a 0deg 45deg,
#1a1a1a 45deg 90deg,
#2a2a2a 90deg 135deg,
#1a1a1a 135deg 180deg,
#2a2a2a 180deg 225deg,
#1a1a1a 225deg 270deg,
#2a2a2a 270deg 315deg,
#1a1a1a 315deg 360deg
);
box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
z-index: 2;
/* Center the spool within the reel container (Safari-safe) */
position: absolute;
top: 50%;
left: 50%;
/* Use negative margins for centering instead of transform */
margin-left: -30px; /* half of 60px width */
margin-top: -30px; /* half of 60px height */
/* Safari animation optimizations */
transform-origin: center center;
will-change: transform;
}
.reel-inner.spinning {
animation: spinSpool 2s linear infinite;
}
@keyframes spinSpool {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.tape-window {
position: relative;
width: 380px;
height: 80px;
margin: 0 auto;
background: rgba(60, 30, 10, 0.4);
border: 3px solid #000;
box-shadow: inset 0 0 15px rgba(0,0,0,0.9);
overflow: hidden;
}
.controls {
display: flex;
justify-content: center;
gap: 15px;
margin-bottom: 20px;
}
.btn {
width: 70px;
height: 70px;
border: 5px solid #000;
background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
cursor: pointer;
position: relative;
box-shadow:
inset 0 -4px 0 rgba(0,0,0,0.5),
inset 0 0 10px rgba(0,0,0,0.6),
0 4px 8px rgba(0,0,0,0.6);
transition: all 0.1s;
}
.btn:active {
transform: translateY(2px);
box-shadow:
inset 0 -2px 0 rgba(0,0,0,0.5),
0 2px 4px rgba(0,0,0,0.6);
}
.btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/* Worn colored icons on buttons */
.btn-prev::before {
width: 0;
height: 0;
border-right: 12px solid #00a0a0;
border-top: 8px solid transparent;
border-bottom: 8px solid transparent;
margin-right: 8px;
filter: drop-shadow(0 0 3px rgba(0, 255, 255, 0.4));
opacity: 0.7;
}
.btn-prev::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 3px;
height: 16px;
background: #00a0a0;
margin-left: -12px;
opacity: 0.7;
}
.btn-play::before {
width: 0;
height: 0;
border-left: 20px solid #00aa00;
border-top: 12px solid transparent;
border-bottom: 12px solid transparent;
margin-left: 3px;
filter: drop-shadow(0 0 3px rgba(0, 255, 0, 0.3));
opacity: 0.8;
}
.btn-pause::before {
width: 20px;
height: 24px;
border-left: 7px solid #cc8800;
border-right: 7px solid #cc8800;
filter: drop-shadow(0 0 3px rgba(255, 170, 0, 0.3));
opacity: 0.7;
}
.btn-stop::before {
width: 20px;
height: 20px;
background: #aa0000;
filter: drop-shadow(0 0 3px rgba(255, 0, 0, 0.3));
opacity: 0.7;
}
.btn-next::before {
width: 0;
height: 0;
border-left: 12px solid #00a0a0;
border-top: 8px solid transparent;
border-bottom: 8px solid transparent;
margin-left: -8px;
filter: drop-shadow(0 0 3px rgba(0, 255, 255, 0.4));
opacity: 0.7;
}
.btn-next::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 3px;
height: 16px;
background: #00a0a0;
margin-left: 12px;
opacity: 0.7;
}
.volume-control {
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
}
.volume-label {
color: #00ff00;
font-size: 16px;
text-shadow:
0 0 5px #00ff00,
0 0 10px #00ff00;
opacity: 0.9;
}
input[type="range"] {
-webkit-appearance: none;
appearance: none;
width: 200px;
height: 12px;
background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
border: 3px solid #000;
box-shadow:
inset 0 0 10px rgba(0,0,0,0.8),
inset 0 0 5px rgba(139, 69, 19, 0.2);
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 24px;
height: 24px;
background: linear-gradient(145deg, #00ff00 0%, #00aa00 100%);
border: 3px solid #000;
cursor: pointer;
box-shadow:
0 0 10px rgba(0, 255, 0, 0.5),
inset 0 -2px 5px rgba(0,0,0,0.4);
}
input[type="range"]::-moz-range-thumb {
width: 24px;
height: 24px;
background: linear-gradient(145deg, #00ff00 0%, #00aa00 100%);
border: 3px solid #000;
cursor: pointer;
box-shadow:
0 0 10px rgba(0, 255, 0, 0.5),
inset 0 -2px 5px rgba(0,0,0,0.4);
}
.video-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: #000;
z-index: 1000;
justify-content: center;
align-items: center;
}
.video-overlay.active {
display: flex;
}
.video-overlay video {
width: 100%;
height: 100%;
object-fit: contain;
}
.close-video {
position: absolute;
top: 20px;
right: 20px;
width: 40px;
height: 40px;
background: rgba(0,0,0,0.8);
border: 2px solid #fff;
color: #fff;
font-size: 24px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
z-index: 1003;
text-shadow: none;
}
.close-video:hover {
background: rgba(0,0,0,0.9);
border-color: #fff;
box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}
/* ========================================
ALBY LIGHTNING PANEL STYLES - START
Panel overlay and slide-in panel for Lightning payments
Styled to match the cassette player's retro 16-bit aesthetic
======================================== */
/* Semi-transparent backdrop overlay - click to close panel */
.alby-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.7);
z-index: 1000;
}
.alby-overlay.active {
display: block;
}
/* Main floating modal container */
.alby-panel {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.9);
opacity: 0;
width: 380px;
max-height: 90vh;
background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #0f0f0f 100%);
border: 6px solid #0a0a0a;
border-radius: 8px;
box-shadow:
inset 0 0 0 2px #3a3a3a,
inset 0 0 50px rgba(0,0,0,0.9),
0 20px 60px rgba(0,0,0,0.8);
z-index: 1001;
transition: transform 0.2s ease-out, opacity 0.2s ease-out;
overflow-y: auto;
font-family: 'Courier New', monospace;
pointer-events: none;
}
.alby-panel.active {
transform: translate(-50%, -50%) scale(1);
opacity: 1;
pointer-events: auto;
}
/* Panel header with amber Lightning accent */
.alby-panel-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
border-bottom: 4px solid #000;
border-radius: 4px 4px 0 0;
position: relative;
}
.alby-panel-title {
color: #cc8800;
font-size: 18px;
font-weight: bold;
text-shadow:
0 0 10px rgba(255, 170, 0, 0.5),
0 0 20px rgba(255, 170, 0, 0.3);
letter-spacing: 2px;
display: flex;
align-items: center;
gap: 10px;
}
.alby-panel-title .lightning-icon {
font-size: 20px;
}
/* Close button styled like cassette buttons */
.alby-close-btn {
width: 36px;
height: 36px;
background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
border: 3px solid #000;
color: #666;
font-size: 18px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow:
inset 0 -2px 0 rgba(0,0,0,0.5),
0 2px 4px rgba(0,0,0,0.6);
transition: all 0.1s;
}
.alby-close-btn:hover {
color: #aa0000;
}
.alby-close-btn:active {
transform: translateY(2px);
box-shadow:
inset 0 -1px 0 rgba(0,0,0,0.5),
0 1px 2px rgba(0,0,0,0.6);
}
/* Panel body content area */
.alby-panel-body {
padding: 20px;
position: relative;
}
/* Section labels with green CRT glow */
.alby-label {
color: #00ff00;
font-size: 14px;
text-shadow:
0 0 5px #00ff00,
0 0 10px #00ff00;
letter-spacing: 2px;
margin-bottom: 8px;
opacity: 0.9;
}
/* Lightning address display - styled like cassette display */
.alby-address-box {
background: linear-gradient(180deg, #0a1a0a 0%, #050f05 100%);
border: 3px solid #000;
padding: 12px;
margin-bottom: 15px;
box-shadow:
inset 0 0 20px rgba(0,0,0,0.9),
inset 0 0 5px rgba(255, 170, 0, 0.1);
position: relative;
}
/* Scanlines effect on address box */
.alby-address-box::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0,0,0,0.4) 1px, rgba(0,0,0,0.4) 2px);
pointer-events: none;
}
.alby-address {
color: #cc8800;
font-size: 15px;
text-shadow: 0 0 8px rgba(255, 170, 0, 0.5);
word-break: break-all;
position: relative;
z-index: 1;
}
/* Node ID styled as terminal text */
.alby-node-id {
color: #00ff00;
font-size: 9px;
text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
word-break: break-all;
margin-top: 10px;
opacity: 0.7;
position: relative;
z-index: 1;
}
/* Divider line */
.alby-divider {
height: 2px;
background: linear-gradient(90deg, transparent, #333, transparent);
margin: 20px 0;
}
/* Amount controls container */
.alby-amount-controls {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 15px;
}
/* Increment/decrement buttons styled like cassette buttons */
.alby-btn {
width: 40px;
height: 40px;
background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
border: 3px solid #000;
color: #00ff00;
font-size: 20px;
font-weight: bold;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow:
inset 0 -3px 0 rgba(0,0,0,0.5),
0 3px 6px rgba(0,0,0,0.6);
transition: all 0.1s;
text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}
.alby-btn:hover {
text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}
.alby-btn:active {
transform: translateY(2px);
box-shadow:
inset 0 -1px 0 rgba(0,0,0,0.5),
0 1px 3px rgba(0,0,0,0.6);
}
/* Amount input styled like CRT display */
.alby-input {
flex: 1;
background: linear-gradient(180deg, #0a1a0a 0%, #050f05 100%);
border: 3px solid #000;
padding: 10px;
color: #00ff00;
font-family: 'Courier New', monospace;
font-size: 20px;
text-align: center;
text-shadow: 0 0 10px #00ff00;
box-shadow: inset 0 0 15px rgba(0,0,0,0.9);
outline: none;
}
.alby-input:focus {
box-shadow:
inset 0 0 15px rgba(0,0,0,0.9),
0 0 5px rgba(0, 255, 0, 0.3);
}
/* Remove spinner arrows from number input */
.alby-input::-webkit-outer-spin-button,
.alby-input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.alby-input[type=number] {
-moz-appearance: textfield;
appearance: textfield;
}
/* Memo textarea styled like CRT */
.alby-textarea {
width: 100%;
background: linear-gradient(180deg, #0a1a0a 0%, #050f05 100%);
border: 3px solid #000;
padding: 12px;
color: #00ff00;
font-family: 'Courier New', monospace;
font-size: 16px;
text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
box-shadow: inset 0 0 15px rgba(0,0,0,0.9);
resize: none;
outline: none;
min-height: 80px;
}
.alby-textarea:focus {
box-shadow:
inset 0 0 15px rgba(0,0,0,0.9),
0 0 5px rgba(0, 255, 0, 0.3);
}
/* Character count display */
.alby-char-count {
color: #00ff00;
font-size: 10px;
text-shadow: 0 0 3px rgba(0, 255, 0, 0.3);
text-align: right;
margin-top: 5px;
opacity: 0.7;
}
/* Current track section - shown when audio is playing */
.alby-track-section {
margin-top: 15px;
display: none; /* Hidden by default, shown via JS when audio playing */
}
.alby-track-section.visible {
display: block;
}
/* Track display box - styled like address box with CRT look */
.alby-track-box {
background: linear-gradient(180deg, #0a1a0a 0%, #050f05 100%);
border: 3px solid #000;
padding: 12px;
margin-bottom: 10px;
box-shadow:
inset 0 0 20px rgba(0,0,0,0.9),
inset 0 0 5px rgba(255, 170, 0, 0.1);
position: relative;
}
/* Scanlines effect on track box */
.alby-track-box::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0,0,0,0.4) 1px, rgba(0,0,0,0.4) 2px);
pointer-events: none;
}
/* Track name text - amber like lightning address */
.alby-track-name {
color: #cc8800;
font-size: 13px;
text-shadow: 0 0 8px rgba(255, 170, 0, 0.5);
word-break: break-word;
position: relative;
z-index: 1;
}
/* Checkbox label container */
.alby-checkbox-label {
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
padding: 5px 0;
}
/* Custom checkbox styling to match retro theme */
.alby-checkbox-label input[type="checkbox"] {
-webkit-appearance: none;
appearance: none;
width: 20px;
height: 20px;
background: linear-gradient(180deg, #0a1a0a 0%, #050f05 100%);
border: 3px solid #000;
cursor: pointer;
position: relative;
box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}
/* Checkbox checked state - green checkmark */
.alby-checkbox-label input[type="checkbox"]:checked::after {
content: '';
position: absolute;
left: 4px;
top: 1px;
width: 6px;
height: 10px;
border: solid #00ff00;
border-width: 0 3px 3px 0;
transform: rotate(45deg);
box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}
/* Checkbox text - green CRT style */
.alby-checkbox-text {
color: #00ff00;
font-size: 12px;
text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
letter-spacing: 1px;
}
/* Main boost button - amber Lightning theme */
.alby-boost-btn {
width: 100%;
padding: 15px 20px;
margin-top: 20px;
background: linear-gradient(180deg, #cc8800 0%, #996600 100%);
border: 4px solid #000;
color: #000;
font-family: 'Courier New', monospace;
font-size: 18px;
font-weight: bold;
letter-spacing: 2px;
cursor: pointer;
box-shadow:
inset 0 -4px 0 rgba(0,0,0,0.3),
0 0 15px rgba(255, 170, 0, 0.3),
0 4px 8px rgba(0,0,0,0.6);
transition: all 0.1s;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.alby-boost-btn:hover {
box-shadow:
inset 0 -4px 0 rgba(0,0,0,0.3),
0 0 25px rgba(255, 170, 0, 0.5),
0 4px 8px rgba(0,0,0,0.6);
}
.alby-boost-btn:active {
transform: translateY(2px);
box-shadow:
inset 0 -2px 0 rgba(0,0,0,0.3),
0 0 15px rgba(255, 170, 0, 0.3),
0 2px 4px rgba(0,0,0,0.6);
}
/* Hide the simple-boost default styling, we use our own button */
simple-boost {
position: absolute !important;
width: 1px !important;
height: 1px !important;
opacity: 0 !important;
overflow: hidden !important;
pointer-events: none !important;
}
/* ========================================
ALBY LIGHTNING PANEL STYLES - END
======================================== */
2026-01-17 19:09:53 -05:00
/* ========================================
VERSION BUTTON & MODAL STYLES - START
Subtle version indicator and info modal
======================================== */
/* Version button - very subtle, bottom right of player */
.version-btn {
position: absolute;
bottom: 8px;
right: 10px;
width: 16px;
height: 16px;
background: transparent;
border: none;
color: #333;
font-family: 'Courier New', monospace;
font-size: 10px;
cursor: pointer;
opacity: 0.2;
transition: opacity 0.2s;
padding: 0;
z-index: 5;
}
.version-btn:hover {
opacity: 0.5;
}
/* Version modal backdrop */
.version-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.7);
z-index: 1000;
}
.version-overlay.active {
display: block;
}
/* Version modal container */
.version-modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.9);
opacity: 0;
width: 280px;
background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #0f0f0f 100%);
border: 6px solid #0a0a0a;
border-radius: 8px;
box-shadow:
inset 0 0 0 2px #3a3a3a,
inset 0 0 50px rgba(0,0,0,0.9),
0 20px 60px rgba(0,0,0,0.8);
z-index: 1001;
transition: transform 0.2s ease-out, opacity 0.2s ease-out;
font-family: 'Courier New', monospace;
pointer-events: none;
}
.version-modal.active {
transform: translate(-50%, -50%) scale(1);
opacity: 1;
pointer-events: auto;
}
/* Version modal header */
.version-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
border-bottom: 4px solid #000;
border-radius: 4px 4px 0 0;
}
.version-modal-title {
color: #00ff00;
font-size: 14px;
font-weight: bold;
text-shadow:
0 0 10px rgba(0, 255, 0, 0.5),
0 0 20px rgba(0, 255, 0, 0.3);
letter-spacing: 2px;
}
/* Close button styled like cassette buttons */
.version-close-btn {
width: 28px;
height: 28px;
background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
border: 3px solid #000;
color: #666;
font-size: 16px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow:
inset 0 -2px 0 rgba(0,0,0,0.5),
0 2px 4px rgba(0,0,0,0.6);
transition: all 0.1s;
}
.version-close-btn:hover {
color: #aa0000;
}
.version-close-btn:active {
transform: translateY(2px);
box-shadow:
inset 0 -1px 0 rgba(0,0,0,0.5),
0 1px 2px rgba(0,0,0,0.6);
}
/* Version modal body */
.version-modal-body {
padding: 25px;
text-align: center;
}
/* Version number display - CRT style */
.version-number {
background: linear-gradient(180deg, #0a1a0a 0%, #050f05 100%);
border: 3px solid #000;
padding: 15px 20px;
color: #00ff00;
font-size: 20px;
font-weight: bold;
text-shadow:
0 0 10px #00ff00,
0 0 20px #00ff00;
letter-spacing: 2px;
box-shadow:
inset 0 0 20px rgba(0,0,0,0.9),
inset 0 0 5px rgba(0,255,0,0.1);
position: relative;
}
/* Scanlines effect on version display */
.version-number::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0,0,0,0.4) 1px, rgba(0,0,0,0.4) 2px);
pointer-events: none;
}
/* ========================================
VERSION BUTTON & MODAL STYLES - END
======================================== */
2026-01-18 20:20:11 -05:00
/* ========================================
MOBILE RESPONSIVE STYLES - START
Supports portrait (rotated) and landscape modes
======================================== */
/* ----------------------------------------
MOBILE LANDSCAPE MODE
For phones held sideways (short height, moderate width)
Scale player proportionally to fit viewport
---------------------------------------- */
@media (max-width: 900px) and (max-height: 500px) {
body {
display: flex;
justify-content: center;
align-items: center;
padding: 5px;
min-height: 100vh;
overflow: hidden;
}
.player {
/* Scale entire player to fit viewport height */
transform: perspective(1000px) rotateX(1deg) scale(0.85);
transform-origin: center center;
width: calc(100vw - 10px);
max-width: 700px; /* Slightly larger since we're scaling down */
padding: 50px 20px 20px 20px;
}
/* Scale display area */
.display {
padding: 10px;
margin-top: 10px;
margin-bottom: 12px;
}
.display-text {
font-size: 14px;
}
.time-display {
font-size: 18px;
letter-spacing: 2px;
}
/* Scale cassette */
.cassette {
padding: 12px;
margin-bottom: 12px;
}
.cassette-label {
padding: 8px;
margin-bottom: 10px;
font-size: 11px;
}
/* Scale tape window and reels */
.tape-window {
width: 280px;
height: 60px;
}
.reel {
width: 60px;
height: 60px;
}
.reel-left {
left: 20px;
}
.reel-right {
right: 20px;
}
.reel-inner {
width: 45px;
height: 45px;
margin-left: -22.5px;
margin-top: -22.5px;
}
/* Scale control buttons - maintain touch-friendly size */
.controls {
gap: 8px;
margin-bottom: 10px;
}
.btn {
width: 50px;
height: 50px;
border-width: 4px;
}
/* Scale button icons */
.btn-prev::before {
border-right-width: 10px;
border-top-width: 6px;
border-bottom-width: 6px;
margin-right: 6px;
}
.btn-prev::after {
height: 12px;
margin-left: -10px;
}
.btn-play::before {
border-left-width: 16px;
border-top-width: 10px;
border-bottom-width: 10px;
}
.btn-pause::before {
width: 16px;
height: 20px;
border-left-width: 5px;
border-right-width: 5px;
}
.btn-stop::before {
width: 16px;
height: 16px;
}
.btn-next::before {
border-left-width: 10px;
border-top-width: 6px;
border-bottom-width: 6px;
margin-left: -6px;
}
.btn-next::after {
height: 12px;
margin-left: 10px;
}
/* Scale volume control */
.volume-control {
gap: 10px;
}
.volume-label {
font-size: 14px;
}
input[type="range"] {
width: 150px;
height: 10px;
}
input[type="range"]::-webkit-slider-thumb {
width: 20px;
height: 20px;
}
input[type="range"]::-moz-range-thumb {
width: 20px;
height: 20px;
}
/* Scale top buttons */
.eject-btn,
.lightning-btn {
top: 10px;
width: 40px;
height: 28px;
}
.eject-btn {
left: 20px;
}
.lightning-btn {
right: 20px;
font-size: 14px;
}
.eject-btn::before {
border-left-width: 6px;
border-right-width: 6px;
border-bottom-width: 8px;
top: 5px;
}
.eject-btn::after {
width: 14px;
height: 2px;
bottom: 5px;
}
/* Scale version button */
.version-btn {
bottom: 5px;
right: 8px;
font-size: 8px;
}
/* Modals in landscape */
.alby-panel {
width: 320px;
max-height: 85vh;
}
.version-modal {
width: 240px;
}
}
/* ----------------------------------------
MOBILE PORTRAIT MODE
For phones held upright (narrow width, tall height)
Only the cassette/tape rotates 90 degrees - everything else stays horizontal
Layout: [E][L] -> Screen -> ROTATED TAPE -> Controls -> Volume
---------------------------------------- */
@media (max-width: 500px) and (min-height: 600px) {
html, body {
overflow-x: hidden;
overflow-y: auto;
}
body {
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
min-height: 100vh;
}
.player {
/* Player stays horizontal, just scaled to fit width */
width: calc(100vw - 20px);
max-width: 390px;
/* Increased vertical padding to fill screen better */
padding: 55px 15px 25px 15px;
/* Remove the 3D perspective tilt on mobile for cleaner look */
transform: none;
/* Scale down border for mobile */
border-width: 6px;
/* Contain the ::before pseudo-element */
overflow: hidden;
}
/* Fix background texture scaling */
.player::before {
background-size: cover;
}
/* Scale display for portrait - stays horizontal */
.display {
padding: 12px;
margin-top: 12px;
margin-bottom: 45px;
}
.display-text {
font-size: 12px;
letter-spacing: 1px;
}
.time-display {
font-size: 16px;
letter-spacing: 2px;
}
/* ----------------------------------------
CASSETTE - SCALED TO FIT WIDTH
Horizontal layout, scaled down for portrait
---------------------------------------- */
.cassette {
padding: 12px;
margin-bottom: 45px;
}
.cassette-label {
padding: 10px;
margin-bottom: 12px;
font-size: 10px;
}
/* Tape window scaled to fit portrait width */
.tape-window {
width: calc(100% - 20px);
max-width: 280px;
height: 55px;
}
.reel {
width: 55px;
height: 55px;
}
.reel-left {
left: 18px;
}
.reel-right {
right: 18px;
}
.reel-inner {
width: 42px;
height: 42px;
margin-left: -21px;
margin-top: -21px;
}
/* Scale the entire reel (including tape-wound set by JS) */
.reel {
transform: translateY(-50%) scale(0.7);
}
/* Control buttons - stays horizontal, scaled for touch */
.controls {
gap: 10px;
margin-bottom: 20px;
}
.btn {
width: 52px;
height: 52px;
border-width: 4px;
}
/* Scale button icons for portrait */
.btn-prev::before {
border-right-width: 9px;
border-top-width: 6px;
border-bottom-width: 6px;
margin-right: 6px;
}
.btn-prev::after {
height: 12px;
margin-left: -9px;
}
.btn-play::before {
border-left-width: 14px;
border-top-width: 9px;
border-bottom-width: 9px;
}
.btn-pause::before {
width: 14px;
height: 18px;
border-left-width: 5px;
border-right-width: 5px;
}
.btn-stop::before {
width: 14px;
height: 14px;
}
.btn-next::before {
border-left-width: 9px;
border-top-width: 6px;
border-bottom-width: 6px;
margin-left: -6px;
}
.btn-next::after {
height: 12px;
margin-left: 9px;
}
/* Volume control - stays horizontal */
.volume-control {
margin-top: 30px;
gap: 10px;
}
.volume-label {
font-size: 12px;
}
input[type="range"] {
width: 120px;
height: 10px;
}
input[type="range"]::-webkit-slider-thumb {
width: 24px;
height: 24px;
}
input[type="range"]::-moz-range-thumb {
width: 24px;
height: 24px;
}
/* Top buttons - scaled */
.eject-btn,
.lightning-btn {
top: 10px;
width: 40px;
height: 28px;
}
.eject-btn {
left: 15px;
}
.lightning-btn {
right: 15px;
font-size: 14px;
}
.eject-btn::before {
border-left-width: 6px;
border-right-width: 6px;
border-bottom-width: 8px;
top: 5px;
}
.eject-btn::after {
width: 14px;
height: 2px;
bottom: 5px;
}
/* Version button */
.version-btn {
bottom: 4px;
right: 6px;
font-size: 8px;
}
/* ----------------------------------------
MODALS IN PORTRAIT MODE
---------------------------------------- */
.alby-panel {
width: calc(100vw - 30px);
max-width: 360px;
max-height: calc(100vh - 40px);
}
.version-modal {
width: calc(100vw - 40px);
max-width: 280px;
}
.close-video {
top: 15px;
right: 15px;
width: 44px;
height: 44px;
font-size: 28px;
}
}
/* ----------------------------------------
VERY SMALL PORTRAIT (iPhone SE, etc.)
Additional scaling for smaller devices
---------------------------------------- */
@media (max-width: 380px) and (min-height: 600px) {
.player {
width: calc(100vw - 16px);
padding: 40px 10px 10px 10px;
}
/* Smaller cassette for tiny screens */
.cassette {
padding: 8px;
margin-bottom: 12px;
}
.tape-window {
width: calc(100% - 16px);
max-width: 240px;
height: 48px;
}
.reel {
width: 48px;
height: 48px;
transform: translateY(-50%) scale(0.6);
}
.reel-left {
left: 15px;
}
.reel-right {
right: 15px;
}
.reel-inner {
width: 36px;
height: 36px;
margin-left: -18px;
margin-top: -18px;
}
.btn {
width: 44px;
height: 44px;
}
.controls {
gap: 5px;
}
input[type="range"] {
width: 90px;
}
.eject-btn,
.lightning-btn {
width: 34px;
height: 24px;
}
.eject-btn {
left: 10px;
}
.lightning-btn {
right: 12px;
font-size: 12px;
}
}
/* ----------------------------------------
TABLET PORTRAIT MODE
For tablets held upright - no rotation, just scale
---------------------------------------- */
@media (min-width: 501px) and (max-width: 768px) {
.player {
width: calc(100vw - 40px);
max-width: 600px;
}
}
/* ----------------------------------------
TOUCH DEVICE ENHANCEMENTS
Better hover states and touch feedback
---------------------------------------- */
@media (hover: none) and (pointer: coarse) {
/* Touch devices don't need hover state changes */
.btn:hover,
.eject-btn:hover,
.lightning-btn:hover,
.alby-btn:hover,
.alby-boost-btn:hover,
.alby-close-btn:hover,
.version-btn:hover,
.version-close-btn:hover {
/* Reset hover-specific box-shadow to default state */
box-shadow: inherit;
}
/* Larger touch targets for interactive elements */
.alby-close-btn,
.version-close-btn {
min-width: 44px;
min-height: 44px;
}
.alby-btn {
min-width: 44px;
min-height: 44px;
}
/* Ensure checkbox is easily tappable */
.alby-checkbox-label {
padding: 10px 5px;
}
.alby-checkbox-label input[type="checkbox"] {
width: 24px;
height: 24px;
}
}
/* ----------------------------------------
PREVENT ZOOM ON INPUT FOCUS (iOS)
iOS zooms when focusing inputs with font-size < 16px
---------------------------------------- */
@media (max-width: 900px) {
.alby-input,
.alby-textarea {
font-size: 16px;
}
}
/* ========================================
MOBILE RESPONSIVE STYLES - END
======================================== */