body {
    font-family: 'Home Video', sans-serif; /* Apply Home Video font globally for this page */
    font-size: 15px;
}

.redeem-container {
    max-width: 458px;
    width: 90%; /* Make it responsive */
    margin: 0 auto; /* Horizontally center the container */
    box-sizing: border-box; 
    padding-top: 0px;
    margin-top: -42px;
    user-select: none !important; /* Standard property to disable text selection */
    -webkit-user-select: none !important; /* Webkit-specific property for older browsers */
    -webkit-touch-callout: none !important; /* Disable callout for iOS */
}

form {
    width: 100%;
    /* max-width is handled by redeem-container now */
    display: flex;
    flex-direction: column;
}

form div {
    margin-bottom: 1.5em;
}

input[type="text"] {
    width: 100%;
    padding: 0.8em;
    font-size: 1rem; /* Inherit 15px from body */
    font-family: 'Home Video';
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    border: 1px solid #666; /* Lighter grey border for contrast */
    border-radius: 4px;
    box-sizing: border-box;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #fff;
    opacity: 1; /* Firefox */
}

input[type="text"]:focus {
    outline: none; /* Remove default outline */
    border-color: #ee54b2; /* Change border color on focus to pink heading color */
}

button[type="submit"] {
    display: block; /* Make the button a block element */
    width: 100%; /* Full width */
    max-width: 160px; /* Half of 320px */
    margin: 0 auto; /* Center it with top margin */
    padding: 12px 20px; /* Revert to original padding */
    font-family: 'Home Video', sans-serif;
    font-size: 15px; /* Set to 15px */
    font-weight: normal;
    color: #000;
    background-color: #ee54b2; /* Pink color */
    border: 1px solid #ee54b2;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(238, 84, 178, 0.6); /* Pink glow */
}

button[type="submit"]:hover {
    background-color: #fff; /* White background on hover */
    color: #ee54b2; /* Pink text on hover */
    border-color: #ee54b2;
    box-shadow: 0 0 12px rgba(238, 84, 178, 0.8); /* Stronger pink glow */
}

button[type="submit"]:active {
    transform: translateY(1px); /* Slight press effect */
    box-shadow: 0 0 5px rgba(238, 84, 178, 0.4); /* Reduced glow on active */
}

.error-message {
    color: #ee54b2; /* Pink color for errors, matching h1 background and input focus border */
    text-align: center;
    margin-bottom: 1em;
    display: none; /* Hidden by default, shown by JavaScript */
    font-size: 0.9em;
}

#redeemCrystalAnimationContainer {
    display: flex; /* Use flexbox to align canvas and label */
    margin-bottom: 1em;
}

#redeemCrystalCanvas {
    /* Canvas already has width/height 300px set in JS, can add additional styling if needed */
    border: 1px solid #ee54b2; /* Example border */
}

#redeemCrystalNameLabel {
    font-family: 'Home Video', monospace; /* Ensure monospace for grid alignment */
    font-size: 1.2em; /* Adjust size as needed */
    color: #fff;
    white-space: pre; /* Preserve whitespace and newlines for 8x8 grid */
    margin-left: 20px; /* Space between canvas and label */
    line-height: 1; /* Ensure tight line spacing for grid */
}
