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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #FAFAFA;
    color: #1A1A1A;
    min-height: 100vh;
    min-height: 100dvh;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
}

.screen {
    display: none;
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 300ms ease, transform 300ms ease;
}

.screen.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.screen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    gap: 16px;
}

.logo {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

.restaurant-name {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.heading {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

.stars {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.star {
    font-size: 48px;
    color: #E0E0E0;
    cursor: pointer;
    transition: transform 200ms ease, color 150ms ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.star.filled {
    color: #FFB800;
}

.star.bounce {
    animation: starBounce 200ms ease;
}

@keyframes starBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

textarea {
    width: 100%;
    height: 120px;
    font-size: 16px;
    font-family: inherit;
    padding: 12px;
    border: 1px solid #DDD;
    border-radius: 8px;
    resize: vertical;
    outline: none;
    transition: border-color 200ms;
}

textarea:focus {
    border-color: var(--primary, #FF6B35);
}

.btn-primary {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 12px;
    background: var(--primary, #FF6B35);
    color: #FFF;
    font-size: 17px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 200ms;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:active {
    opacity: 0.85;
}

.secondary-link {
    font-size: 15px;
    color: var(--primary, #FF6B35);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.tip-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
}

.btn-tip {
    flex: 1;
    height: 56px;
    border: 2px solid var(--primary, #FF6B35);
    border-radius: 12px;
    background: transparent;
    color: var(--primary, #FF6B35);
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 200ms, color 200ms;
    -webkit-tap-highlight-color: transparent;
}

.btn-tip:active {
    background: var(--primary, #FF6B35);
    color: #FFF;
}

.review-card {
    width: 100%;
    background: #FFF;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.review-card-stars {
    font-size: 20px;
    color: #FFB800;
    margin-bottom: 12px;
}

.review-card-text {
    font-size: 15px;
    line-height: 1.5;
    font-style: italic;
    color: #333;
    margin-bottom: 12px;
}

.review-card-text::before { content: '"'; }
.review-card-text::after { content: '"'; }

.review-card-time {
    font-size: 13px;
    color: #999;
    display: block;
    text-align: right;
}

.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #FFF;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 300ms, transform 300ms;
    pointer-events: none;
    z-index: 100;
    max-width: 90%;
    text-align: center;
}

.toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #E0E0E0;
    border-top-color: #666;
    border-radius: 50%;
    animation: spin 600ms linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -16px 0 0 -16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}
