Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | /**
* Training component styles
* CSS classes for Html overlay components to avoid inline style manipulation
*/
/* Training Controls Button */
.training-button {
width: 100%;
height: 40px;
border: 2px solid color-mix(in srgb, var(--color-text-primary) 80%, transparent);
border-radius: 8px;
color: var(--color-text-primary);
font-weight: bold;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: all 0.2s ease;
}
.training-button-start {
background: var(--color-success);
}
.training-button-stop {
background: var(--color-korean-south);
}
.training-button:hover {
transform: scale(1.05);
box-shadow: 0 0 15px currentColor;
}
/* Training Mode Selector */
.mode-button {
background: color-mix(in srgb, var(--color-bg-light) 50%, transparent);
border: 2px solid color-mix(in srgb, var(--color-primary-cyan) 40%, transparent);
border-radius: 8px;
padding: 10px;
cursor: pointer;
text-align: left;
color: var(--color-text-primary);
transition: all 0.2s ease;
}
.mode-button.selected {
background: color-mix(in srgb, var(--color-primary-cyan) 25%, transparent);
border-color: var(--color-primary-cyan);
box-shadow: 0 0 12px color-mix(in srgb, var(--color-primary-cyan) 50%, transparent);
}
.mode-button:not(.selected):hover {
background: color-mix(in srgb, var(--color-gray-300) 70%, transparent);
border-color: var(--color-primary-cyan);
transform: scale(1.02);
}
.mode-button:focus-visible {
outline: 2px solid var(--color-primary-cyan);
outline-offset: 2px;
box-shadow: 0 0 12px color-mix(in srgb, var(--color-primary-cyan) 80%, transparent);
}
/* Vital Point Button */
.vital-point-button {
background: color-mix(in srgb, var(--color-bg-light) 50%, transparent);
border: 2px solid color-mix(in srgb, var(--color-korean-center) 50%, transparent);
border-radius: 8px;
padding: 8px;
cursor: pointer;
text-align: left;
color: var(--color-text-primary);
transition: all 0.2s ease;
}
.vital-point-button.selected {
background: color-mix(in srgb, var(--color-korean-center) 30%, transparent);
}
.vital-point-button:not(.selected):hover {
background: color-mix(in srgb, var(--color-gray-300) 70%, transparent);
}
/* Training Feedback Animation - Fast and snappy */
@keyframes feedbackPulse {
0% {
transform: scale(0.9);
opacity: 0;
}
40% {
transform: scale(1.05);
}
100% {
transform: scale(1);
opacity: 1;
}
}
.training-feedback {
background: color-mix(in srgb, var(--color-primary-black) 90%, transparent);
border: 3px solid var(--color-primary-gold);
border-radius: 16px;
color: var(--color-primary-gold);
text-align: center;
box-shadow: 0 0 30px color-mix(in srgb, var(--color-primary-gold) 50%, transparent);
animation: feedbackPulse 0.4s ease-out;
min-width: 200px;
}
.training-feedback.mobile {
padding: 15px 25px;
font-size: 18px;
}
.training-feedback.desktop {
padding: 20px 40px;
font-size: 24px;
}
/* Pulsing Status Indicator (replaces requestAnimationFrame) */
@keyframes statusPulse {
0%, 100% {
opacity: 0.6;
box-shadow: 0 0 8px currentColor;
}
50% {
opacity: 1;
box-shadow: 0 0 16px currentColor;
}
}
.status-indicator {
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--color-success);
}
.status-indicator.active {
animation: statusPulse 1s ease-in-out infinite;
}
.status-indicator.inactive {
background: var(--color-gray-500);
}
|