:root {
    color-scheme: light;
    --bg: #fdfcff;
    --card: rgba(255, 255, 255, 0.94);
    --line: #dce2f2;
    --text: #07122f;
    --muted: #667391;
    --accent: #6f7fdc;
    --accent-2: #aeb7ff;
    --danger: #b94b64;
    --success: #327a57;
    --velora-page: #fbfaff;
    --velora-surface: rgba(255, 255, 255, 0.96);
    --velora-navy: #07122f;
    --velora-muted: #687492;
    --velora-border: #dfe4f3;
    --velora-lavender: #7f8ee8;
    --velora-lavender-soft: #eef1ff;
    --velora-shadow: 0 18px 42px rgba(38, 49, 92, 0.11);
    --velora-logo-fallback: url("https://velora.jp/assets/velora_logo.png");
}

* {
    box-sizing: border-box;
}

html body {
    margin: 0 !important;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,248,255,0.96)),
        radial-gradient(circle at 50% 18%, rgba(151, 163, 244, 0.16), transparent 34%) !important;
    color: var(--velora-navy) !important;
    font-family: "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif !important;
    letter-spacing: 0 !important;
}

body::before {
    content: "";
    position: fixed;
    inset: auto 0 0;
    height: 120px;
    pointer-events: none;
    background: linear-gradient(165deg, transparent 35%, rgba(203, 209, 255, 0.28) 36%, rgba(239, 242, 255, 0.65) 78%);
    z-index: -1;
}

html body .wrap {
    width: min(100%, 430px) !important;
    max-width: 430px !important;
    margin: 0 auto !important;
    padding: 18px 14px 34px !important;
    flex-direction: column !important;
}

html body .wrap::before {
    content: "";
    display: block;
    width: min(88vw, 390px);
    height: clamp(112px, 34vw, 156px);
    margin: 0 auto 18px;
    background-image: url("/assets/velora_logo.png"), url("/assets/velora_logo.svg"), var(--velora-logo-fallback);
    background-position: center, center, center;
    background-size: contain, contain, contain;
    background-repeat: no-repeat, no-repeat, no-repeat;
}

html body .card,
html body section.card,
html body main.card,
html body article.card {
    background: var(--velora-surface) !important;
    border: 1px solid var(--velora-border) !important;
    border-radius: 14px !important;
    box-shadow: var(--velora-shadow) !important;
    color: var(--velora-navy) !important;
    padding: 17px !important;
    margin-bottom: 14px !important;
}

html body h1,
html body h2,
html body h3 {
    color: var(--velora-navy) !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

html body h1 {
    font-size: 30px !important;
    line-height: 1.15 !important;
}

html body h2 {
    font-size: 20px !important;
}

html body p,
html body li,
html body label,
html body div,
html body td,
html body th {
    letter-spacing: 0 !important;
}

html body .muted,
html body .post-meta,
html body .score,
html body .empty,
html body .meta {
    color: var(--velora-muted) !important;
}

html body a {
    color: #5267c8 !important;
    text-decoration: none !important;
}

html body a:active {
    opacity: 0.72;
}

html body button,
html body .button,
html body input[type="submit"] {
    min-height: 44px;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #7385e7, #aeb6ff) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(116, 133, 231, 0.28) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-weight: 650 !important;
}

html body button[disabled],
html body .reaction-chip:disabled {
    background: #f0f2fb !important;
    color: #8993af !important;
    border: 1px solid #e1e5f2 !important;
    box-shadow: none !important;
}

html body .danger-button,
html body button.danger-button {
    background: #fff !important;
    border: 1px solid #f1c9d2 !important;
    color: #b94b64 !important;
    box-shadow: none !important;
}

html body input,
html body textarea,
html body select {
    width: 100%;
    border: 1px solid #dde3f3 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--velora-navy) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

html body input[type="checkbox"],
html body input[type="radio"] {
    width: auto;
}

html body .nav-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
}

html body .nav-links a,
html body .tab,
html body .top-link {
    display: inline-flex !important;
    min-height: 38px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e1e6f5 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #5267c8 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
    gap: 6px !important;
}

.velora-icon {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    color: currentColor;
    vertical-align: -0.18em;
}

.velora-icon-lg {
    width: 34px;
    height: 34px;
}

.velora-icon-xl {
    width: 46px;
    height: 46px;
}

.velora-hero-mark,
.velora-empty-mark {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f3f5ff, #e9edff);
    color: #6f7fdc;
}

.velora-soft-media,
.avatar-placeholder,
.ranking-thumb {
    background:
        linear-gradient(135deg, rgba(233,237,255,.94), rgba(245,247,252,.96)),
        radial-gradient(circle at 35% 30%, rgba(158,169,238,.22), transparent 40%) !important;
    border: 1px solid #e2e7f5 !important;
}

.avatar-placeholder,
.ranking-thumb {
    display: grid !important;
    place-items: center !important;
    color: #7f8ee8 !important;
}

.velora-upload-box {
    min-height: 172px;
    display: grid;
    place-items: center;
    text-align: center;
    border: 1px dashed #cbd4ef;
    border-radius: 14px;
    background: #fff;
    color: #5267c8;
    padding: 18px;
    margin: 14px 0;
}

.velora-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    position: sticky;
    bottom: 10px;
    margin-top: 18px;
    padding: 8px;
    border: 1px solid #e2e7f5;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 12px 32px rgba(38,49,92,.12);
    backdrop-filter: blur(10px);
}

.velora-bottom-nav a {
    display: grid;
    place-items: center;
    min-height: 38px;
    color: #6978d8 !important;
}

html body .plan,
html body .row,
html body .post {
    border-color: #e4e8f5 !important;
}

html body .plan.active,
html body .tab.active,
html body .reaction-chip.is-active {
    background: var(--velora-lavender-soft) !important;
    border-color: #9faaf2 !important;
    color: #5364c8 !important;
}

html body .reactions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

html body .reaction-form {
    margin: 0 !important;
}

html body .reaction-chip {
    min-height: 38px !important;
    padding: 8px 11px !important;
    font-size: 12px !important;
}

html body .post-media,
html body .avatar,
html body .profile-thumb,
html body .ranking-thumb,
html body img {
    border-radius: 12px !important;
}

html body .post-media {
    background: #f1f4fb !important;
    border: 1px solid #e1e6f5 !important;
}

html body .text-ad,
html body .notice {
    background: #fff !important;
    border: 1px solid #e1e6f5 !important;
    border-radius: 12px !important;
    color: var(--velora-navy) !important;
    box-shadow: 0 12px 32px rgba(38, 49, 92, 0.08) !important;
}

html body .error,
html body .field-error,
html body .notice.error {
    color: var(--danger) !important;
}

html body .success,
html body .alert-success {
    color: var(--success) !important;
}

@media (min-width: 700px) {
    html body .wrap {
        padding-top: 28px !important;
    }
}
