*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #4a4a4a;
    background: #ececec url('../img/bg.png') repeat;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px 32px;
}

.card {
    width: 100%;
    max-width: 320px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 0 18px 24px;
    margin-top: 150px;
    position: relative;
    text-align: center;
}

.logo-container {
    position: relative;
    width: 291px;
    height: 291px;
    margin: -140px auto 0;
}

.logo-container img {
    display: block;
    width: 291px;
    height: 291px;
    position: relative;
    z-index: 2;
    transform: translateY(3px);
}

.progress-ring {
    position: absolute;
    inset: 0;
    width: 291px;
    height: 291px;
    transform: rotate(-90deg);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 1;
}

.progress-ring.visible {
    opacity: 1;
}

.progress-ring-fill {
    fill: none;
    stroke: #0788a5;
    stroke-width: 11;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.15s ease;
}

.brand {
    margin: 8px 0 4px;
    font-size: 1.75rem;
    font-weight: 500;
    color: #555;
    letter-spacing: -0.02em;
}

.subtitle {
    margin: 0 0 24px;
    font-size: 0.95rem;
    color: #888;
}

.progress-text {
    margin: -12px 0 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
}

.share-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-choose {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    color: #666;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-choose:hover {
    border-color: #aaa;
    background: #fafafa;
}

.btn-choose .plus {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1;
}

.file-name {
    margin: -4px 0 4px;
    font-size: 0.85rem;
    color: #777;
    min-height: 1.2em;
    word-break: break-all;
}

.share-form input,
.share-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font: inherit;
    font-size: 0.95rem;
    color: #555;
    background: #fff;
    resize: none;
}

.share-form input::placeholder,
.share-form textarea::placeholder {
    color: #aaa;
}

.share-form input:focus,
.share-form textarea:focus {
    outline: none;
    border-color: #5cb85c;
}

.form-error {
    margin: 0;
    font-size: 0.85rem;
    color: #c0392b;
    text-align: left;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 16px;
    margin-top: 4px;
    border: none;
    border-radius: 3px;
    background: #5cb85c;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.btn-share:hover {
    background: #4cae4c;
}

.btn-share:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.success-message {
    padding-top: 8px;
}

.success-message p {
    margin: 0 0 8px;
    color: #555;
}

.success-detail {
    font-size: 0.9rem;
    color: #888;
}

.download-message {
    margin: 8px 0 16px;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.download-meta {
    margin: -8px 0 20px;
    font-size: 0.85rem;
    color: #999;
}

.share-message {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-left: 3px solid #5cb85c;
    background: #f7f7f7;
    text-align: left;
    font-size: 0.9rem;
    color: #666;
}

.error-text {
    color: #c0392b;
}

.download-link {
    margin-top: 8px;
}

.tagline {
    margin: 24px 0 0;
    font-size: 0.85rem;
    color: #666;
}

.card.is-uploading .share-form {
    display: none;
}

.card.is-uploading .share-form input,
.card.is-uploading .share-form textarea,
.card.is-uploading .btn-choose {
    pointer-events: none;
    opacity: 0.6;
}

.card.is-complete .share-form {
    display: none;
}

.card.is-complete .success-message {
    display: block !important;
}
