* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: radial-gradient(1200px 800px at 50% 35%, #1a1516 0%, #0e0d10 45%, #070709 100%);
    color: #d4a574;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#canvas-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.match-hint {
    position: absolute;
    left: 50%;
    top: 22px;
    transform: translateX(-50%);
    z-index: 11;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(10, 10, 10, 0.55);
    border: 1px solid rgba(212, 165, 116, 0.22);
    backdrop-filter: blur(8px);
    color: rgba(212, 165, 116, 0.85);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    pointer-events: none;
    text-align: center;
}

.ui-panel {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    max-width: 500px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(212, 165, 116, 0.5);
    letter-spacing: 0.1em;
}

.subtitle {
    font-size: 0.9rem;
    color: #8b7355;
    margin-bottom: 2rem;
    font-style: italic;
}

.file-input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

input[type="file"] {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(212, 165, 116, 0.1);
    border: 2px dashed rgba(212, 165, 116, 0.5);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.file-label:hover {
    background: rgba(212, 165, 116, 0.2);
    border-color: rgba(212, 165, 116, 0.8);
}

.burn-button {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #8b4513 0%, #ff6b35 100%);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.burn-button + .burn-button {
    margin-top: 0.75rem;
}

.burn-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.burn-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

.reset-wrap {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.reset-button {
    pointer-events: auto;
    padding: 0.9rem 1.2rem;
    background: rgba(212, 165, 116, 0.10);
    border: 1px solid rgba(212, 165, 116, 0.35);
    border-radius: 6px;
    color: #d4a574;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.reset-button:hover {
    background: rgba(212, 165, 116, 0.18);
    border-color: rgba(212, 165, 116, 0.6);
}

.reset-hint {
    pointer-events: none;
    color: rgba(212, 165, 116, 0.65);
    font-size: 0.85rem;
    max-width: 240px;
    text-align: right;
}

.kofi-link {
    pointer-events: auto;
    max-width: 260px;
    text-align: right;
    font-size: 0.85rem;
    line-height: 1.25;
    color: rgba(212, 165, 116, 0.78);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 165, 116, 0.25);
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.kofi-link:hover {
    color: rgba(255, 210, 160, 0.95);
    border-bottom-color: rgba(255, 210, 160, 0.55);
}

.kofi-link:focus-visible {
    outline: 2px solid rgba(212, 165, 116, 0.55);
    outline-offset: 4px;
    border-bottom-color: transparent;
}

.status-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #8b7355;
    min-height: 1.5rem;
}


