:root {
    --zh-blue: #005ba3;
    --zh-dark: #333333;
    --zh-light: #f5f5f5;
    --zh-white: #ffffff;
    --zh-border: #e0e0e0;
    --zh-success: #28a745;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: var(--zh-dark);
    background-color: var(--zh-light);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--zh-white);
    border-bottom: 4px solid var(--zh-blue);
    padding: 20px 0;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-text {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Grill Animation */
.grill-animation {
    position: relative;
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.grill {
    position: relative;
    width: 80px;
    height: 80px;
}

.grill-body {
    width: 70px;
    height: 35px;
    background: #333;
    border-radius: 0 0 35px 35px;
    position: absolute;
    bottom: 10px;
    left: 5px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.eyes {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.eyes span {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: blink 4s infinite;
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

.mouth {
    width: 12px;
    height: 6px;
    border-bottom: 2px solid white;
    border-radius: 0 0 10px 10px;
    margin-top: 2px;
}

.grill-body::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 10px;
    width: 50px;
    height: 5px;
    background: linear-gradient(to right, #ff4500, #ff8c00);
    box-shadow: 0 0 8px #ff4500;
    border-radius: 2px;
}

.grill-lid {
    width: 70px;
    height: 35px;
    background: #444;
    border-radius: 35px 35px 0 0;
    position: absolute;
    bottom: 45px;
    left: 5px;
    transform-origin: right bottom;
    animation: openLid 4s infinite;
    z-index: 3;
}

@keyframes openLid {
    0%, 20%, 80%, 100% { transform: rotate(0deg); }
    40%, 60% { transform: rotate(115deg) translate(-10px, -10px); }
}

.smoke {
    position: absolute;
    top: 0px;
    left: 25px;
    z-index: 4;
}

.smoke span {
    display: block;
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    margin-bottom: 8px;
    opacity: 0;
    animation: smokeMove 2s infinite;
}

.smoke span:nth-child(2) { animation-delay: 0.5s; }
.smoke span:nth-child(3) { animation-delay: 1s; }

@keyframes smokeMove {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-30px) scale(2); opacity: 0; }
}

.sausage {
    width: 25px;
    height: 8px;
    background: #a52a2a;
    border-radius: 4px;
    position: absolute;
    top: 32px;
    left: 28px;
    z-index: 1;
    animation: sizzle 0.5s infinite;
}

@keyframes sizzle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
}

/* Success Overlay */
#success-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.success-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.edit-link-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

#edit-link-input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--zh-border);
    background: #f0f0f0;
    border-radius: 4px;
}

#copy-btn {
    width: auto;
    padding: 10px 15px;
}

#close-success {
    margin-top: 10px;
}

.hidden { display: none !important; }

#cancel-edit {
    margin-top: 10px;
    background-color: #888;
}

.desc-text {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

.logo {
    height: 60px;
    width: auto;
}

h1 {
    font-size: 1.8rem;
    color: var(--zh-blue);
}

h2 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--zh-blue);
    border-left: 5px solid var(--zh-blue);
    padding-left: 15px;
}

.intro {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.card {
    background: var(--zh-white);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--zh-border);
    border-radius: 4px;
    font-size: 1rem;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--zh-blue);
    box-shadow: 0 0 0 2px rgba(0, 91, 163, 0.2);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.radio-item input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

button {
    background-color: var(--zh-blue);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

button:hover {
    background-color: #004a85;
}

.live-list {
    margin-top: 40px;
}

.live-indicator {
    display: inline-block;
    font-size: 0.7rem;
    background: var(--zh-success);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.registration-item {
    background: white;
    padding: 15px;
    border-left: 4px solid var(--zh-blue);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.name {
    font-weight: bold;
}

.item-badge {
    background: #eef4f9;
    color: var(--zh-blue);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.empty-msg {
    text-align: center;
    padding: 40px;
    color: #888;
    grid-column: 1 / -1;
}

footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid var(--zh-border);
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .card {
        padding: 20px;
    }

    .list-container {
        grid-template-columns: 1fr;
    }
}
