body {
    margin: 0;
    padding: 0;
    background-color: #f8f4e8;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" opacity="0.03"><rect width="400" height="400" fill="%23f8f4e8"/><path d="M0 0 L400 0 L400 400 L0 400 Z" stroke="%23d0c8b0" stroke-width="1" fill="none"/><path d="M20 20 L380 20 L380 380 L20 380 Z" stroke="%23d0c8b0" stroke-width="0.5" fill="none"/></svg>'), linear-gradient(to bottom, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0) 5%, rgba(0,0,0,0) 95%, rgba(0,0,0,0.02) 100%);
    height: 100vh;
    overflow: hidden;
}

.spritzed {
    padding: 30px;
    position: relative;
    background-color: #ffffff;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" opacity="0.03"><rect width="400" height="400" fill="%23f8f4e8"/><path d="M0 0 L400 0 L400 400 L0 400 Z" stroke="%23d0c8b0" stroke-width="1" fill="none"/><path d="M20 20 L380 20 L380 380 L20 380 Z" stroke="%23d0c8b0" stroke-width="0.5" fill="none"/></svg>'), linear-gradient(to bottom, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0) 5%, rgba(0,0,0,0) 95%, rgba(0,0,0,0.02) 100%);
    border-left: 1px solid #d0c8b0;
    border-right: 1px solid #d0c8b0;
    box-shadow: 8px 0 15px -5px rgba(0,0,0,0.2), -8px 0 15px -5px rgba(0,0,0,0.2), inset 1px 0 0 rgba(255,255,255,0.5), inset -1px 0 0 rgba(255,255,255,0.5);
}

#nextButton {
    position: fixed;
    bottom: 35%;
    left: 0;
    width: 100%;
    z-index: 2;
    min-height: 60px;
    padding: 15px;
    font-size: 18px;
    background: linear-gradient(to bottom, #f0e8d1 0%, #e0d8c1 100%);
    color: #3a3527;
    border: 1px solid #a09880;
    border-top: 1px solid #f8f0d9;
    border-left: 1px solid #f8f0d9;
    cursor: pointer;
    font-family: Georgia, serif;
    transition: all 0.2s;
    box-shadow: 
        0 2px 3px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

#nextButton:hover {
    background: linear-gradient(to bottom, #e8e0c9 0%, #d8d0b9 100%);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -1px 0 rgba(0,0,0,0.1);
}

#nextButton:active {
    background: linear-gradient(to bottom, #d8d0b9 0%, #c8c0a9 100%);
    box-shadow: 
        inset 0 2px 3px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -1px 0 rgba(0,0,0,0.2);
}

.spritzed::before, .spritzed::after {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    margin-left: -1px;
    height: 10px;
    background-color: #a09880;
    width: 2px;
    top: 0;
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
}

.spritzed::after {
    top: auto;
    bottom: 0;
}

.spritzed > div {
    position: absolute;
}

.highlight {
    color: #c00;
}

text{
	display: none;
}

#reader {width: 100%; height: 100px; margin: 20px 0 10px; position: relative;}

#progress {
    margin: 10px 0 20px;
    text-align: center;
}

#nextButton {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

#speedControl {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    z-index: 1;
}

#wpmDisplay {
    display: inline-block;
    padding: 6px 6px;
    background: #ffffff;
    border: 2px solid #a09880;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    color: #3a3527;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.5);
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    margin: 0 6px;
    width: 80px;
    text-align: center;
}

#wpmDisplay {
    font-variant-numeric: tabular-nums;
}

#wpmDisplay div {
    display: inline-block;
}

#wpmDisplay div:first-child {
    width: 3.8ch;
    text-align: right;
    margin-right: 6px;
}

.wpm-label {
    font-family: Georgia, serif;
    font-variant-numeric: normal;
}

#speedControl button {
    min-width: 36px;
    min-height: 36px;
    padding: 8px;
    margin: 0 6px;
    background: linear-gradient(to bottom, #f0e8d1 0%, #e0d8c1 100%);
    border: 1px solid #a09880;
    border-radius: 4px;
    color: #3a3527;
    font-family: Georgia, serif;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

#speedControl button:hover {
    background: linear-gradient(to bottom, #e8e0c9 0%, #d8d0b9 100%);
}

#speedControl button:active {
    background: linear-gradient(to bottom, #d8d0b9 0%, #c8c0a9 100%);
    transform: translateY(1px);
}

#speedControl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 260px;
    margin: 0 auto;
    padding: 8px;
    left: 50%;
    transform: translateX(-50%);
}

#wpmDisplay {
    font-family: Georgia, serif;
    color: #3a3527;
}